@famgia/omnify-gui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +146 -0
- package/dist/client/assets/index-CSrgTwea.js +462 -0
- package/dist/client/assets/index-CSrgTwea.js.map +1 -0
- package/dist/client/assets/index-vy33xj5r.css +1 -0
- package/dist/client/index.html +14 -0
- package/dist/client/logo.svg +10 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +1087 -0
- package/dist/server/index.js.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
function eO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function Dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},Qc={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var R1;function D4(){if(R1)return Qc;R1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var u in a)u!=="key"&&(l[u]=a[u])}else l=a;return a=l.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:l}}return Qc.Fragment=t,Qc.jsx=n,Qc.jsxs=n,Qc}var N1;function A4(){return N1||(N1=1,Ip.exports=D4()),Ip.exports}var H=A4(),Mp={exports:{}},Jt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var T1;function B4(){if(T1)return Jt;T1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),h=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=h&&k[h]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function x(k,U,W){this.props=k,this.context=U,this.refs=S,this.updater=W||y}x.prototype.isReactComponent={},x.prototype.setState=function(k,U){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,U,"setState")},x.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function w(){}w.prototype=x.prototype;function E(k,U,W){this.props=k,this.context=U,this.refs=S,this.updater=W||y}var R=E.prototype=new w;R.constructor=E,C(R,x.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function I(){}var M={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function T(k,U,W){var X=W.ref;return{$$typeof:e,type:k,key:U,ref:X!==void 0?X:null,props:W}}function z(k,U){return T(k.type,U,k.props)}function L(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function D(k){var U={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return U[W]})}var A=/\/+/g;function _(k,U){return typeof k=="object"&&k!==null&&k.key!=null?D(""+k.key):U.toString(36)}function V(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(I,I):(k.status="pending",k.then(function(U){k.status==="pending"&&(k.status="fulfilled",k.value=U)},function(U){k.status==="pending"&&(k.status="rejected",k.reason=U)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function P(k,U,W,X,J){var ne=typeof k;(ne==="undefined"||ne==="boolean")&&(k=null);var se=!1;if(k===null)se=!0;else switch(ne){case"bigint":case"string":case"number":se=!0;break;case"object":switch(k.$$typeof){case e:case t:se=!0;break;case g:return se=k._init,P(se(k._payload),U,W,X,J)}}if(se)return J=J(k),se=X===""?"."+_(k,0):X,N(J)?(W="",se!=null&&(W=se.replace(A,"$&/")+"/"),P(J,U,W,"",function(Se){return Se})):J!=null&&(L(J)&&(J=z(J,W+(J.key==null||k&&k.key===J.key?"":(""+J.key).replace(A,"$&/")+"/")+se)),U.push(J)),1;se=0;var re=X===""?".":X+":";if(N(k))for(var oe=0;oe<k.length;oe++)X=k[oe],ne=re+_(X,oe),se+=P(X,U,W,ne,J);else if(oe=b(k),typeof oe=="function")for(k=oe.call(k),oe=0;!(X=k.next()).done;)X=X.value,ne=re+_(X,oe++),se+=P(X,U,W,ne,J);else if(ne==="object"){if(typeof k.then=="function")return P(V(k),U,W,X,J);throw U=String(k),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return se}function B(k,U,W){if(k==null)return k;var X=[],J=0;return P(k,X,"","",function(ne){return U.call(W,ne,J++)}),X}function K(k){if(k._status===-1){var U=k._result;U=U(),U.then(function(W){(k._status===0||k._status===-1)&&(k._status=1,k._result=W)},function(W){(k._status===0||k._status===-1)&&(k._status=2,k._result=W)}),k._status===-1&&(k._status=0,k._result=U)}if(k._status===1)return k._result.default;throw k._result}var G=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:B,forEach:function(k,U,W){B(k,function(){U.apply(this,arguments)},W)},count:function(k){var U=0;return B(k,function(){U++}),U},toArray:function(k){return B(k,function(U){return U})||[]},only:function(k){if(!L(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Jt.Activity=v,Jt.Children=Q,Jt.Component=x,Jt.Fragment=n,Jt.Profiler=a,Jt.PureComponent=E,Jt.StrictMode=r,Jt.Suspense=d,Jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Jt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},Jt.cache=function(k){return function(){return k.apply(null,arguments)}},Jt.cacheSignal=function(){return null},Jt.cloneElement=function(k,U,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var X=C({},k.props),J=k.key;if(U!=null)for(ne in U.key!==void 0&&(J=""+U.key),U)!j.call(U,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&U.ref===void 0||(X[ne]=U[ne]);var ne=arguments.length-2;if(ne===1)X.children=W;else if(1<ne){for(var se=Array(ne),re=0;re<ne;re++)se[re]=arguments[re+2];X.children=se}return T(k.type,J,X)},Jt.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},Jt.createElement=function(k,U,W){var X,J={},ne=null;if(U!=null)for(X in U.key!==void 0&&(ne=""+U.key),U)j.call(U,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(J[X]=U[X]);var se=arguments.length-2;if(se===1)J.children=W;else if(1<se){for(var re=Array(se),oe=0;oe<se;oe++)re[oe]=arguments[oe+2];J.children=re}if(k&&k.defaultProps)for(X in se=k.defaultProps,se)J[X]===void 0&&(J[X]=se[X]);return T(k,ne,J)},Jt.createRef=function(){return{current:null}},Jt.forwardRef=function(k){return{$$typeof:u,render:k}},Jt.isValidElement=L,Jt.lazy=function(k){return{$$typeof:g,_payload:{_status:-1,_result:k},_init:K}},Jt.memo=function(k,U){return{$$typeof:m,type:k,compare:U===void 0?null:U}},Jt.startTransition=function(k){var U=M.T,W={};M.T=W;try{var X=k(),J=M.S;J!==null&&J(W,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(I,G)}catch(ne){G(ne)}finally{U!==null&&W.types!==null&&(U.types=W.types),M.T=U}},Jt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Jt.use=function(k){return M.H.use(k)},Jt.useActionState=function(k,U,W){return M.H.useActionState(k,U,W)},Jt.useCallback=function(k,U){return M.H.useCallback(k,U)},Jt.useContext=function(k){return M.H.useContext(k)},Jt.useDebugValue=function(){},Jt.useDeferredValue=function(k,U){return M.H.useDeferredValue(k,U)},Jt.useEffect=function(k,U){return M.H.useEffect(k,U)},Jt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},Jt.useId=function(){return M.H.useId()},Jt.useImperativeHandle=function(k,U,W){return M.H.useImperativeHandle(k,U,W)},Jt.useInsertionEffect=function(k,U){return M.H.useInsertionEffect(k,U)},Jt.useLayoutEffect=function(k,U){return M.H.useLayoutEffect(k,U)},Jt.useMemo=function(k,U){return M.H.useMemo(k,U)},Jt.useOptimistic=function(k,U){return M.H.useOptimistic(k,U)},Jt.useReducer=function(k,U,W){return M.H.useReducer(k,U,W)},Jt.useRef=function(k){return M.H.useRef(k)},Jt.useState=function(k){return M.H.useState(k)},Jt.useSyncExternalStore=function(k,U,W){return M.H.useSyncExternalStore(k,U,W)},Jt.useTransition=function(){return M.H.useTransition()},Jt.version="19.2.3",Jt}var I1;function Am(){return I1||(I1=1,Mp.exports=B4()),Mp.exports}var s=Am();const le=Dm(s),Bm=eO({__proto__:null,default:le},[s]);var jp={exports:{}};/*!
|
|
18
|
+
Copyright (c) 2018 Jed Watson.
|
|
19
|
+
Licensed under the MIT License (MIT), see
|
|
20
|
+
http://jedwatson.github.io/classnames
|
|
21
|
+
*/var M1;function L4(){return M1||(M1=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(l=a(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var u in l)t.call(l,u)&&l[u]&&(c=a(c,u));return c}function a(l,c){return c?l?l+" "+c:l+c:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(jp)),jp.exports}var H4=L4();const te=Dm(H4);function Oe(){return Oe=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},Oe.apply(null,arguments)}function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}var F4=Symbol.for("react.element"),k4=Symbol.for("react.transitional.element"),V4=Symbol.for("react.fragment");function tO(e){return e&&$t(e)==="object"&&(e.$$typeof===F4||e.$$typeof===k4)&&e.type===V4}function Ir(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return le.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Ir(r)):tO(r)&&r.props?n=n.concat(Ir(r.props.children,t)):n.push(r))}),n}var Uh={},K4=function(t){};function W4(e,t){}function U4(e,t){}function q4(){Uh={}}function nO(e,t,n){!t&&!Uh[n]&&(e(!1,n),Uh[n]=!0)}function Xn(e,t){nO(W4,e,t)}function G4(e,t){nO(U4,e,t)}Xn.preMessage=K4;Xn.resetWarned=q4;Xn.noteOnce=G4;function X4(e,t){if($t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rO(e){var t=X4(e,"string");return $t(t)=="symbol"?t:t+""}function q(e,t,n){return(t=rO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j1(Object(n),!0).forEach(function(r){q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pp={exports:{}},Jr={};/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-dom.production.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var P1;function Y4(){if(P1)return Jr;P1=1;var e=Am();function t(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(d,m,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:d,containerInfo:m,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Jr.createPortal=function(d,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(d,m,null,g)},Jr.flushSync=function(d){var m=c.T,g=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=m,r.p=g,r.d.f()}},Jr.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(d,m))},Jr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Jr.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var g=m.as,v=u(g,m.crossOrigin),h=typeof m.integrity=="string"?m.integrity:void 0,b=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&r.d.X(d,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jr.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=u(m.as,m.crossOrigin);r.d.M(d,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(d)},Jr.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,v=u(g,m.crossOrigin);r.d.L(d,g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Jr.preloadModule=function(d,m){if(typeof d=="string")if(m){var g=u(m.as,m.crossOrigin);r.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(d)},Jr.requestFormReset=function(d){r.d.r(d)},Jr.unstable_batchedUpdates=function(d,m){return d(m)},Jr.useFormState=function(d,m,g){return c.H.useFormState(d,m,g)},Jr.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jr.version="19.2.3",Jr}var z1;function aO(){if(z1)return Pp.exports;z1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pp.exports=Y4(),Pp.exports}var Uo=aO();const xu=Dm(Uo),Q4=eO({__proto__:null,default:xu},[Uo]);function $u(e){return e instanceof HTMLElement||e instanceof SVGElement}function Fu(e){return e&&$t(e)==="object"&&$u(e.nativeElement)?e.nativeElement:$u(e)?e:null}function Hf(e){var t=Fu(e);if(t)return t;if(e instanceof le.Component){var n;return(n=xu.findDOMNode)===null||n===void 0?void 0:n.call(xu,e)}return null}var zp={exports:{}},Nn={};/**
|
|
30
|
+
* @license React
|
|
31
|
+
* react-is.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var _1;function Z4(){if(_1)return Nn;_1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function C(S){if(typeof S=="object"&&S!==null){var x=S.$$typeof;switch(x){case e:switch(S=S.type,S){case n:case a:case r:case m:case g:return S;default:switch(S=S&&S.$$typeof,S){case u:case c:case d:case h:case v:case l:return S;default:return x}}case t:return x}}}return Nn.ContextConsumer=c,Nn.ContextProvider=l,Nn.Element=e,Nn.ForwardRef=d,Nn.Fragment=n,Nn.Lazy=h,Nn.Memo=v,Nn.Portal=t,Nn.Profiler=a,Nn.StrictMode=r,Nn.Suspense=m,Nn.SuspenseList=g,Nn.isAsyncMode=function(){return!1},Nn.isConcurrentMode=function(){return!1},Nn.isContextConsumer=function(S){return C(S)===c},Nn.isContextProvider=function(S){return C(S)===l},Nn.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Nn.isForwardRef=function(S){return C(S)===d},Nn.isFragment=function(S){return C(S)===n},Nn.isLazy=function(S){return C(S)===h},Nn.isMemo=function(S){return C(S)===v},Nn.isPortal=function(S){return C(S)===t},Nn.isProfiler=function(S){return C(S)===a},Nn.isStrictMode=function(S){return C(S)===r},Nn.isSuspense=function(S){return C(S)===m},Nn.isSuspenseList=function(S){return C(S)===g},Nn.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===a||S===r||S===m||S===g||S===b||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===v||S.$$typeof===l||S.$$typeof===c||S.$$typeof===d||S.$$typeof===y||S.getModuleId!==void 0)},Nn.typeOf=C,Nn}var D1;function J4(){return D1||(D1=1,zp.exports=Z4()),zp.exports}var _p=J4();function Ml(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var e3=Number(s.version.split(".")[0]),wu=function(t,n){typeof t=="function"?t(n):$t(t)==="object"&&t&&"current"in t&&(t.current=n)},Lr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(l){n.forEach(function(c){wu(c,l)})}},Yo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ml(function(){return Lr.apply(void 0,n)},n,function(a,l){return a.length!==l.length||a.every(function(c,u){return c!==l[u]})})},oo=function(t){var n,r;if(!t)return!1;if(yb(t)&&e3>=19)return!0;var a=_p.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==_p.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==_p.ForwardRef)};function yb(e){return s.isValidElement(e)&&!tO(e)}var t3=function(t){return yb(t)&&oo(t)},Li=function(t){if(t&&yb(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},qh=s.createContext(null);function n3(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),a=s.useRef([]),l=s.useContext(qh),c=s.useCallback(function(u,d,m){r.current+=1;var g=r.current;a.current.push({size:u,element:d,data:m}),Promise.resolve().then(function(){g===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(u,d,m)},[n,l]);return s.createElement(qh.Provider,{value:c},t)}var oO=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var c=l[a];n.call(r,c[1],c[0])}},t})()})(),Gh=typeof window<"u"&&typeof document<"u"&&window.document===document,im=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),r3=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(im):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),a3=2;function o3(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&u()}function c(){r3(l)}function u(){var d=Date.now();if(n){if(d-a<a3)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=d}return u}var i3=20,l3=["top","right","bottom","left","width","height","size","weight"],s3=typeof MutationObserver<"u",c3=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=o3(this.refresh.bind(this),i3)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Gh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s3?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Gh||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=l3.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),iO=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),Bs=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||im}),lO=Lm(0,0,0,0);function lm(e){return parseFloat(e)||0}function A1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var l=e["border-"+a+"-width"];return r+lm(l)},0)}function u3(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var l=a[r],c=e["padding-"+l];n[l]=lm(c)}return n}function d3(e){var t=e.getBBox();return Lm(0,0,t.width,t.height)}function f3(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return lO;var r=Bs(e).getComputedStyle(e),a=u3(r),l=a.left+a.right,c=a.top+a.bottom,u=lm(r.width),d=lm(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=A1(r,"left","right")+l),Math.round(d+c)!==n&&(d-=A1(r,"top","bottom")+c)),!g3(e)){var m=Math.round(u+l)-t,g=Math.round(d+c)-n;Math.abs(m)!==1&&(u-=m),Math.abs(g)!==1&&(d-=g)}return Lm(a.left,a.top,u,d)}var m3=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Bs(e).SVGGraphicsElement}:function(e){return e instanceof Bs(e).SVGElement&&typeof e.getBBox=="function"}})();function g3(e){return e===Bs(e).document.documentElement}function v3(e){return Gh?m3(e)?d3(e):f3(e):lO}function p3(e){var t=e.x,n=e.y,r=e.width,a=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(l.prototype);return iO(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function Lm(e,t,n,r){return{x:e,y:t,width:n,height:r}}var h3=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lm(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=v3(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),b3=(function(){function e(t,n){var r=p3(n);iO(this,{target:t,contentRect:r})}return e})(),y3=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new oO,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Bs(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new h3(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Bs(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new b3(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),sO=typeof WeakMap<"u"?new WeakMap:new oO,cO=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c3.getInstance(),r=new y3(t,n,this);sO.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){cO.prototype[e]=function(){var t;return(t=sO.get(this))[e].apply(t,arguments)}});var S3=(function(){return typeof im.ResizeObserver<"u"?im.ResizeObserver:cO})(),Ti=new Map;function C3(e){e.forEach(function(t){var n,r=t.target;(n=Ti.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var uO=new S3(C3);function x3(e,t){Ti.has(e)||(Ti.set(e,new Set),uO.observe(e)),Ti.get(e).add(t)}function $3(e,t){Ti.has(e)&&(Ti.get(e).delete(t),Ti.get(e).size||(uO.unobserve(e),Ti.delete(e)))}function rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B1(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,rO(r.key),r)}}function ar(e,t,n){return t&&B1(e.prototype,t),n&&B1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eu(e,t){return Eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Eu(e,t)}function so(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&&Eu(e,t)}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(e)}function Hm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hm=function(){return!!e})()}function St(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dO(e,t){if(t&&($t(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return St(e)}function Eo(e){var t=Hm();return function(){var n,r=$l(e);if(t){var a=$l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return dO(this,n)}}var w3=(function(e){so(n,e);var t=Eo(n);function n(){return rr(this,n),t.apply(this,arguments)}return ar(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function E3(e,t){var n=e.children,r=e.disabled,a=s.useRef(null),l=s.useRef(null),c=s.useContext(qh),u=typeof n=="function",d=u?n(a):n,m=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!u&&s.isValidElement(d)&&oo(d),v=g?Li(d):null,h=Yo(v,a),b=function(){var x;return Hf(a.current)||(a.current&&$t(a.current)==="object"?Hf((x=a.current)===null||x===void 0?void 0:x.nativeElement):null)||Hf(l.current)};s.useImperativeHandle(t,function(){return b()});var y=s.useRef(e);y.current=e;var C=s.useCallback(function(S){var x=y.current,w=x.onResize,E=x.data,R=S.getBoundingClientRect(),N=R.width,I=R.height,M=S.offsetWidth,j=S.offsetHeight,T=Math.floor(N),z=Math.floor(I);if(m.current.width!==T||m.current.height!==z||m.current.offsetWidth!==M||m.current.offsetHeight!==j){var L={width:T,height:z,offsetWidth:M,offsetHeight:j};m.current=L;var D=M===Math.round(N)?N:M,A=j===Math.round(I)?I:j,_=ee(ee({},L),{},{offsetWidth:D,offsetHeight:A});c==null||c(_,S,E),w&&Promise.resolve().then(function(){w(_,S)})}},[]);return s.useEffect(function(){var S=b();return S&&!r&&x3(S,C),function(){return $3(S,C)}},[a.current,r]),s.createElement(w3,{ref:l},g?s.cloneElement(d,{ref:h}):d)}var O3=s.forwardRef(E3),R3="rc-observer-key";function N3(e,t){var n=e.children,r=typeof n=="function"?[n]:Ir(n);return r.map(function(a,l){var c=(a==null?void 0:a.key)||"".concat(R3,"-").concat(l);return s.createElement(O3,Oe({},e,{key:c,ref:l===0?t:void 0}),a)})}var ca=s.forwardRef(N3);ca.Collection=n3;function Xh(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 T3(e){if(Array.isArray(e))return Xh(e)}function fO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sb(e,t){if(e){if(typeof e=="string")return Xh(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)?Xh(e,t):void 0}}function I3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
38
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e){return T3(e)||fO(e)||Sb(e)||I3()}var mO=function(t){return+setTimeout(t,16)},gO=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(mO=function(t){return window.requestAnimationFrame(t)},gO=function(t){return window.cancelAnimationFrame(t)});var L1=0,Cb=new Map;function vO(e){Cb.delete(e)}var tn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;L1+=1;var r=L1;function a(l){if(l===0)vO(r),t();else{var c=mO(function(){a(l-1)});Cb.set(r,c)}}return a(n),r};tn.cancel=function(e){var t=Cb.get(e);return vO(e),gO(t)};function pO(e){if(Array.isArray(e))return e}function M3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,c,u=[],d=!0,m=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(g){m=!0,a=g}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return u}}function hO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(e,t){return pO(e)||M3(e,t)||Sb(e,t)||hO()}function Ou(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Yr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Yh(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var H1="data-rc-order",F1="data-rc-priority",j3="rc-util-key",Qh=new Map;function bO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):j3}function Fm(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function P3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xb(e){return Array.from((Qh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yr())return null;var n=t.csp,r=t.prepend,a=t.priority,l=a===void 0?0:a,c=P3(r),u=c==="prependQueue",d=document.createElement("style");d.setAttribute(H1,c),u&&l&&d.setAttribute(F1,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var m=Fm(t),g=m.firstChild;if(r){if(u){var v=(t.styles||xb(m)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(H1)))return!1;var b=Number(h.getAttribute(F1)||0);return l>=b});if(v.length)return m.insertBefore(d,v[v.length-1].nextSibling),d}m.insertBefore(d,g)}else m.appendChild(d);return d}function SO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Fm(t);return(t.styles||xb(n)).find(function(r){return r.getAttribute(bO(t))===e})}function Ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=SO(e,t);if(n){var r=Fm(t);r.removeChild(n)}}function z3(e,t){var n=Qh.get(e);if(!n||!Yh(document,n)){var r=yO("",t),a=r.parentNode;Qh.set(e,a),e.removeChild(r)}}function Ko(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Fm(n),a=xb(r),l=ee(ee({},n),{},{styles:a});z3(r,l);var c=SO(t,l);if(c){var u,d;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&c.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var m;c.nonce=(m=l.csp)===null||m===void 0?void 0:m.nonce}return c.innerHTML!==e&&(c.innerHTML=e),c}var g=yO(e,l);return g.setAttribute(bO(l),t),g}function _3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pt(e,t){if(e==null)return{};var n,r,a=_3(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Co(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(l);if(Xn(!d,"Warning: There may be circular references"),d)return!1;if(l===c)return!0;if(n&&u>1)return!1;r.add(l);var m=u+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(var g=0;g<l.length;g++)if(!a(l[g],c[g],m))return!1;return!0}if(l&&c&&$t(l)==="object"&&$t(c)==="object"){var v=Object.keys(l);return v.length!==Object.keys(c).length?!1:v.every(function(h){return a(l[h],c[h],m)})}return!1}return a(e,t)}var D3="%";function Zh(e){return e.join(D3)}var A3=(function(){function e(t){rr(this,e),q(this,"instanceId",void 0),q(this,"cache",new Map),q(this,"extracted",new Set),this.instanceId=t}return ar(e,[{key:"get",value:function(n){return this.opGet(Zh(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Zh(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),l=r(a);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),Ls="data-token-hash",ro="data-css-hash",Ii="__cssinjs_instance__";function B3(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ro,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[Ii]=a[Ii]||e,a[Ii]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ro,"]"))).forEach(function(a){var l=a.getAttribute(ro);if(r[l]){if(a[Ii]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[l]=!0})}return new A3(e)}var ku=s.createContext({hashPriority:"low",cache:B3(),defaultCache:!0});function L3(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var $b=(function(){function e(){rr(this,e),q(this,"cache",void 0),q(this,"keys",void 0),q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ar(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c={map:this.cache};return n.forEach(function(u){if(!c)c=void 0;else{var d;c=(d=c)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=c)!==null&&r!==void 0&&r.value&&l&&(c.value[1]=this.cacheCallTimes++),(a=c)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(m,g){var v=de(m,2),h=v[1];return a.internalGet(g)[1]<h?[g,a.internalGet(g)[1]]:m},[this.keys[0],this.cacheCallTimes]),c=de(l,1),u=c[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(m,g){if(g===n.length-1)d.set(m,{value:[r,a.cacheCallTimes++]});else{var v=d.get(m);v?v.map||(v.map=new Map):d.set(m,{map:new Map}),d=d.get(m).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var l;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(l=a.value)===null||l===void 0?void 0:l[0]}var c=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),c}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!L3(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();q($b,"MAX_CACHE_SIZE",20);q($b,"MAX_CACHE_OFFSET",5);var k1=0,CO=(function(){function e(t){rr(this,e),q(this,"derivatives",void 0),q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k1,t.length===0&&(t.length>0,void 0),k1+=1}return ar(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),Dp=new $b;function sm(e){var t=Array.isArray(e)?e:[e];return Dp.has(t)||Dp.set(t,new CO(t)),Dp.get(t)}var H3=new WeakMap,Ap={};function F3(e,t){for(var n=H3,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(Ap)||n.set(Ap,e()),n.get(Ap)}var V1=new WeakMap;function fu(e){var t=V1.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof CO?t+=r.id:r&&$t(r)==="object"?t+=fu(r):t+=r}),t=Ou(t),V1.set(e,t)),t}function K1(e,t){return Ou("".concat(t,"_").concat(fu(e)))}var Jh=Yr();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function cm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var l=ee(ee({},r),{},q(q({},Ls,t),ro,n)),c=Object.keys(l).map(function(u){var d=l[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var Ff=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},k3=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var l=de(a,2),c=l[0],u=l[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},xO=function(t,n,r){var a={},l={};return Object.entries(t).forEach(function(c){var u,d,m=de(c,2),g=m[0],v=m[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[g])l[g]=v;else if((typeof v=="string"||typeof v=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[g])){var h,b=Ff(g,r==null?void 0:r.prefix);a[b]=typeof v=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[g])?"".concat(v,"px"):String(v),l[g]="var(".concat(b,")")}}),[l,k3(a,n,{scope:r==null?void 0:r.scope})]},W1=Yr()?s.useLayoutEffect:s.useEffect,en=function(t,n){var r=s.useRef(!0);W1(function(){return t(r.current)},n),W1(function(){return r.current=!1,function(){r.current=!0}},[])},js=function(t,n){en(function(r){if(!r)return t()},n)},V3=ee({},Bm),U1=V3.useInsertionEffect,K3=function(t,n,r){s.useMemo(t,r),en(function(){return n(!0)},r)},W3=U1?function(e,t,n){return U1(function(){return e(),t()},n)}:K3,U3=ee({},Bm),q3=U3.useInsertionEffect,G3=function(t){var n=[],r=!1;function a(l){r||n.push(l)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),a},X3=function(){return function(t){t()}},Y3=typeof q3<"u"?G3:X3;function wb(e,t,n,r,a){var l=s.useContext(ku),c=l.cache,u=[e].concat(De(t)),d=Zh(u),m=Y3([d]),g=function(y){c.opUpdate(d,function(C){var S=C||[void 0,void 0],x=de(S,2),w=x[0],E=w===void 0?0:w,R=x[1],N=R,I=N||n(),M=[E,I];return y?y(M):M})};s.useMemo(function(){g()},[d]);var v=c.opGet(d),h=v[1];return W3(function(){a==null||a(h)},function(b){return g(function(y){var C=de(y,2),S=C[0],x=C[1];return b&&S===0&&(a==null||a(h)),[S+1,x]}),function(){c.opUpdate(d,function(y){var C=y||[],S=de(C,2),x=S[0],w=x===void 0?0:x,E=S[1],R=w-1;return R===0?(m(function(){(b||!c.opGet(d))&&(r==null||r(E,!1))}),null):[w-1,E]})}},[d]),h}var Q3={},Z3="css",fl=new Map;function J3(e){fl.set(e,(fl.get(e)||0)+1)}function eP(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ls,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ii]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var tP=0;function nP(e,t){fl.set(e,(fl.get(e)||0)-1);var n=new Set;fl.forEach(function(r,a){r<=0&&n.add(a)}),fl.size-n.size>tP&&n.forEach(function(r){eP(r,t),fl.delete(r)})}var $O=function(t,n,r,a){var l=r.getDerivativeToken(t),c=ee(ee({},l),n);return a&&(c=a(c)),c},wO="token";function rP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(ku),a=r.cache.instanceId,l=r.container,c=n.salt,u=c===void 0?"":c,d=n.override,m=d===void 0?Q3:d,g=n.formatToken,v=n.getComputedToken,h=n.cssVar,b=F3(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),y=fu(b),C=fu(m),S=h?fu(h):"",x=wb(wO,[u,e.id,y,C,S],function(){var w,E=v?v(b,m,e):$O(b,m,e,g),R=ee({},E),N="";if(h){var I=xO(E,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),M=de(I,2);E=M[0],N=M[1]}var j=K1(E,u);E._tokenKey=j,R._tokenKey=K1(R,u);var T=(w=h==null?void 0:h.key)!==null&&w!==void 0?w:j;E._themeKey=T,J3(T);var z="".concat(Z3,"-").concat(Ou(j));return E._hashId=z,[E,z,R,N,(h==null?void 0:h.key)||""]},function(w){nP(w[0]._themeKey,a)},function(w){var E=de(w,4),R=E[0],N=E[3];if(h&&N){var I=Ko(N,Ou("css-variables-".concat(R._themeKey)),{mark:ro,prepend:"queue",attachTo:l,priority:-999});I[Ii]=a,I.setAttribute(Ls,R._themeKey)}});return x}var aP=function(t,n,r){var a=de(t,5),l=a[2],c=a[3],u=a[4],d=r||{},m=d.plain;if(!c)return null;var g=l._tokenKey,v=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},b=cm(c,u,g,h,m);return[v,g,b]},oP={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},EO="comm",OO="rule",RO="decl",iP="@import",lP="@namespace",sP="@keyframes",cP="@layer",NO=Math.abs,Eb=String.fromCharCode;function TO(e){return e.trim()}function kf(e,t,n){return e.replace(t,n)}function uP(e,t,n){return e.indexOf(t,n)}function Ps(e,t){return e.charCodeAt(t)|0}function Hs(e,t,n){return e.slice(t,n)}function bo(e){return e.length}function dP(e){return e.length}function bf(e,t){return t.push(e),e}var km=1,Fs=1,IO=0,Ga=0,$r=0,Gs="";function Ob(e,t,n,r,a,l,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:km,column:Fs,length:c,return:"",siblings:u}}function fP(){return $r}function mP(){return $r=Ga>0?Ps(Gs,--Ga):0,Fs--,$r===10&&(Fs=1,km--),$r}function ao(){return $r=Ga<IO?Ps(Gs,Ga++):0,Fs++,$r===10&&(Fs=1,km++),$r}function Mi(){return Ps(Gs,Ga)}function Vf(){return Ga}function Vm(e,t){return Hs(Gs,e,t)}function Nu(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 gP(e){return km=Fs=1,IO=bo(Gs=e),Ga=0,[]}function vP(e){return Gs="",e}function Bp(e){return TO(Vm(Ga-1,e0(e===91?e+2:e===40?e+1:e)))}function pP(e){for(;($r=Mi())&&$r<33;)ao();return Nu(e)>2||Nu($r)>3?"":" "}function hP(e,t){for(;--t&&ao()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return Vm(e,Vf()+(t<6&&Mi()==32&&ao()==32))}function e0(e){for(;ao();)switch($r){case e:return Ga;case 34:case 39:e!==34&&e!==39&&e0($r);break;case 40:e===41&&e0(e);break;case 92:ao();break}return Ga}function bP(e,t){for(;ao()&&e+$r!==57;)if(e+$r===84&&Mi()===47)break;return"/*"+Vm(t,Ga-1)+"*"+Eb(e===47?e:ao())}function yP(e){for(;!Nu(Mi());)ao();return Vm(e,Ga)}function SP(e){return vP(Kf("",null,null,null,[""],e=gP(e),0,[0],e))}function Kf(e,t,n,r,a,l,c,u,d){for(var m=0,g=0,v=c,h=0,b=0,y=0,C=1,S=1,x=1,w=0,E="",R=a,N=l,I=r,M=E;S;)switch(y=w,w=ao()){case 40:if(y!=108&&Ps(M,v-1)==58){uP(M+=kf(Bp(w),"&","&\f"),"&\f",NO(m?u[m-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:M+=Bp(w);break;case 9:case 10:case 13:case 32:M+=pP(y);break;case 92:M+=hP(Vf()-1,7);continue;case 47:switch(Mi()){case 42:case 47:bf(CP(bP(ao(),Vf()),t,n,d),d),(Nu(y||1)==5||Nu(Mi()||1)==5)&&bo(M)&&Hs(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*C:u[m++]=bo(M)*x;case 125*C:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+g:x==-1&&(M=kf(M,/\f/g,"")),b>0&&(bo(M)-v||C===0&&y===47)&&bf(b>32?G1(M+";",r,n,v-1,d):G1(kf(M," ","")+";",r,n,v-2,d),d);break;case 59:M+=";";default:if(bf(I=q1(M,t,n,m,g,a,u,E,R=[],N=[],v,l),l),w===123)if(g===0)Kf(M,t,I,I,R,l,v,u,N);else{switch(h){case 99:if(Ps(M,3)===110)break;case 108:if(Ps(M,2)===97)break;default:g=0;case 100:case 109:case 115:}g?Kf(e,I,I,r&&bf(q1(e,I,I,0,0,a,u,E,a,R=[],v,N),N),a,N,v,u,r?R:N):Kf(M,I,I,I,[""],N,0,u,N)}}m=g=b=0,C=x=1,E=M="",v=c;break;case 58:v=1+bo(M),b=y;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&mP()==125)continue}switch(M+=Eb(w),w*C){case 38:x=g>0?1:(M+="\f",-1);break;case 44:u[m++]=(bo(M)-1)*x,x=1;break;case 64:Mi()===45&&(M+=Bp(ao())),h=Mi(),g=v=bo(E=M+=yP(Vf())),w++;break;case 45:y===45&&bo(M)==2&&(C=0)}}return l}function q1(e,t,n,r,a,l,c,u,d,m,g,v){for(var h=a-1,b=a===0?l:[""],y=dP(b),C=0,S=0,x=0;C<r;++C)for(var w=0,E=Hs(e,h+1,h=NO(S=c[C])),R=e;w<y;++w)(R=TO(S>0?b[w]+" "+E:kf(E,/&\f/g,b[w])))&&(d[x++]=R);return Ob(e,t,n,a===0?OO:u,d,m,g,v)}function CP(e,t,n,r){return Ob(e,t,n,EO,Eb(fP()),Hs(e,2,-2),0,r)}function G1(e,t,n,r,a){return Ob(e,t,n,RO,Hs(e,0,r),Hs(e,r+1,-1),r,a)}function t0(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xP(e,t,n,r){switch(e.type){case cP:if(e.children.length)break;case iP:case lP:case RO:return e.return=e.return||e.value;case EO:return"";case sP:return e.return=e.value+"{"+t0(e.children,r)+"}";case OO:if(!bo(e.value=e.props.join(",")))return""}return bo(n=t0(e.children,r))?e.return=e.value+"{"+n+"}":""}var X1="data-ant-cssinjs-cache-path",MO="_FILE_STYLE__",Sl,jO=!0;function $P(){if(!Sl&&(Sl={},Yr())){var e=document.createElement("div");e.className=X1,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var l=a.split(":"),c=de(l,2),u=c[0],d=c[1];Sl[u]=d});var n=document.querySelector("style[".concat(X1,"]"));if(n){var r;jO=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function wP(e){return $P(),!!Sl[e]}function EP(e){var t=Sl[e],n=null;if(t&&Yr())if(jO)n=MO;else{var r=document.querySelector("style[".concat(ro,'="').concat(Sl[e],'"]'));r?n=r.innerHTML:delete Sl[e]}return[n,t]}var OP="_skip_check_",PO="_multi_value_";function Wf(e){var t=t0(SP(e),xP);return t.replace(/\{%%%\:[^;];}/g,";")}function RP(e){return $t(e)==="object"&&e&&(OP in e||PO in e)}function Y1(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(c){var u,d=c.trim().split(/\s+/),m=d[0]||"",g=((u=m.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return m="".concat(g).concat(a).concat(m.slice(g.length)),[m].concat(De(d.slice(1))).join(" ")});return l.join(",")}var NP=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer;n.path;var m=n.hashPriority,g=n.transformers,v=g===void 0?[]:g;n.linters;var h="",b={};function y(x){var w=x.getName(u);if(!b[w]){var E=e(x.style,n,{root:!1,parentSelectors:c}),R=de(E,1),N=R[0];b[w]="@keyframes ".concat(x.getName(u)).concat(N)}}function C(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?C(E,w):E&&w.push(E)}),w}var S=C(Array.isArray(t)?t:[t]);return S.forEach(function(x){var w=typeof x=="string"&&!a?{}:x;if(typeof w=="string")h+="".concat(w,`
|
|
40
|
+
`);else if(w._keyframe)y(w);else{var E=v.reduce(function(R,N){var I;return(N==null||(I=N.visit)===null||I===void 0?void 0:I.call(N,R))||R},w);Object.keys(E).forEach(function(R){var N=E[R];if($t(N)==="object"&&N&&(R!=="animationName"||!N._keyframe)&&!RP(N)){var I=!1,M=R.trim(),j=!1;(a||l)&&u?M.startsWith("@")?I=!0:M==="&"?M=Y1("",u,m):M=Y1(R,u,m):a&&!u&&(M==="&"||M==="")&&(M="",j=!0);var T=e(N,n,{root:j,injectHash:I,parentSelectors:[].concat(De(c),[M])}),z=de(T,2),L=z[0],D=z[1];b=ee(ee({},b),D),h+="".concat(M).concat(L)}else{let V=function(P,B){var K=P.replace(/[A-Z]/g,function(Q){return"-".concat(Q.toLowerCase())}),G=B;!oP[P]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),P==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(y(B),G=B.getName(u)),h+="".concat(K,":").concat(G,";")};var A,_=(A=N==null?void 0:N.value)!==null&&A!==void 0?A:N;$t(N)==="object"&&N!==null&&N!==void 0&&N[PO]&&Array.isArray(_)?_.forEach(function(P){V(R,P)}):V(R,_)}})}}),a?d&&(h&&(h="@layer ".concat(d.name," {").concat(h,"}")),d.dependencies&&(b["@layer ".concat(d.name)]=d.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(d.name,";")}).join(`
|
|
41
|
+
`))):h="{".concat(h,"}"),[h,b]};function zO(e,t){return Ou("".concat(e.join("%")).concat(t))}function TP(){return null}var _O="style";function n0(e,t){var n=e.token,r=e.path,a=e.hashId,l=e.layer,c=e.nonce,u=e.clientOnly,d=e.order,m=d===void 0?0:d,g=s.useContext(ku),v=g.autoClear;g.mock;var h=g.defaultCache,b=g.hashPriority,y=g.container,C=g.ssrInline,S=g.transformers,x=g.linters,w=g.cache,E=g.layer,R=n._tokenKey,N=[R];E&&N.push("layer"),N.push.apply(N,De(r));var I=Jh,M=wb(_O,N,function(){var D=N.join("|");if(wP(D)){var A=EP(D),_=de(A,2),V=_[0],P=_[1];if(V)return[V,R,P,{},u,m]}var B=t(),K=NP(B,{hashId:a,hashPriority:b,layer:E?l:void 0,path:r.join("-"),transformers:S,linters:x}),G=de(K,2),Q=G[0],k=G[1],U=Wf(Q),W=zO(N,U);return[U,R,W,k,u,m]},function(D,A){var _=de(D,3),V=_[2];(A||v)&&Jh&&Ru(V,{mark:ro,attachTo:y})},function(D){var A=de(D,4),_=A[0];A[1];var V=A[2],P=A[3];if(I&&_!==MO){var B={mark:ro,prepend:E?!1:"queue",attachTo:y,priority:m},K=typeof c=="function"?c():c;K&&(B.csp={nonce:K});var G=[],Q=[];Object.keys(P).forEach(function(U){U.startsWith("@layer")?G.push(U):Q.push(U)}),G.forEach(function(U){Ko(Wf(P[U]),"_layer-".concat(U),ee(ee({},B),{},{prepend:!0}))});var k=Ko(_,V,B);k[Ii]=w.instanceId,k.setAttribute(Ls,R),Q.forEach(function(U){Ko(Wf(P[U]),"_effect-".concat(U),B)})}}),j=de(M,3),T=j[0],z=j[1],L=j[2];return function(D){var A;return!C||I||!h?A=s.createElement(TP,null):A=s.createElement("style",Oe({},q(q({},Ls,z),ro,L),{dangerouslySetInnerHTML:{__html:T}})),s.createElement(s.Fragment,null,A,D)}}var IP=function(t,n,r){var a=de(t,6),l=a[0],c=a[1],u=a[2],d=a[3],m=a[4],g=a[5],v=r||{},h=v.plain;if(m)return null;var b=l,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)};return b=cm(l,c,u,y,h),d&&Object.keys(d).forEach(function(C){if(!n[C]){n[C]=!0;var S=Wf(d[C]),x=cm(S,c,"_effect-".concat(C),y,h);C.startsWith("@layer")?b=x+b:b+=x}}),[g,u,b]},DO="cssVar",MP=function(t,n){var r=t.key,a=t.prefix,l=t.unitless,c=t.ignore,u=t.token,d=t.scope,m=d===void 0?"":d,g=s.useContext(ku),v=g.cache.instanceId,h=g.container,b=u._tokenKey,y=[].concat(De(t.path),[r,m,b]),C=wb(DO,y,function(){var S=n(),x=xO(S,r,{prefix:a,unitless:l,ignore:c,scope:m}),w=de(x,2),E=w[0],R=w[1],N=zO(y,R);return[E,R,N,r]},function(S){var x=de(S,3),w=x[2];Jh&&Ru(w,{mark:ro,attachTo:h})},function(S){var x=de(S,3),w=x[1],E=x[2];if(w){var R=Ko(w,E,{mark:ro,prepend:"queue",attachTo:h,priority:-999});R[Ii]=v,R.setAttribute(Ls,r)}});return C},jP=function(t,n,r){var a=de(t,4),l=a[1],c=a[2],u=a[3],d=r||{},m=d.plain;if(!l)return null;var g=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},h=cm(l,u,c,v,m);return[g,c,h]};q(q(q({},_O,IP),wO,aP),DO,jP);var Yt=(function(){function e(t,n){rr(this,e),q(this,"name",void 0),q(this,"style",void 0),q(this,"_keyframe",!0),this.name=t,this.style=n}return ar(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function gs(e){return e.notSplit=!0,e}gs(["borderTop","borderBottom"]),gs(["borderTop"]),gs(["borderBottom"]),gs(["borderLeft","borderRight"]),gs(["borderLeft"]),gs(["borderRight"]);var Rb=s.createContext({});function AO(e){return pO(e)||fO(e)||Sb(e)||hO()}function sa(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function BO(e,t,n,r){if(!t.length)return n;var a=AO(t),l=a[0],c=a.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=De(e):u=ee({},e),r&&n===void 0&&c.length===1?delete u[l][c[0]]:u[l]=BO(u[l],c,n,r),u}function Ua(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!sa(e,t.slice(0,-1))?e:BO(e,t,n,r)}function PP(e){return $t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Q1(e){return Array.isArray(e)?[]:{}}var zP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ns(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Q1(t[0]);return t.forEach(function(a){function l(c,u){var d=new Set(u),m=sa(a,c),g=Array.isArray(m);if(g||PP(m)){if(!d.has(m)){d.add(m);var v=sa(r,c);g?r=Ua(r,c,[]):(!v||$t(v)!=="object")&&(r=Ua(r,c,Q1(m))),zP(m).forEach(function(h){l([].concat(De(c),[h]),d)})}}else r=Ua(r,c,m)}l([])}),r}function _P(){}const DP=s.createContext({}),Oo=()=>{const e=()=>{};return e.deprecated=_P,e},LO=s.createContext(void 0);var HO={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"},AP={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},BP=ee(ee({},AP),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const FO={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Z1={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},BP),timePickerLocale:Object.assign({},FO)},Na="${label} is not a valid ${type}",io={locale:"en",Pagination:HO,DatePicker:Z1,TimePicker:FO,Calendar:Z1,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Na,method:Na,array:Na,object:Na,number:Na,date:Na,boolean:Na,integer:Na,float:Na,regexp:Na,email:Na,url:Na,hex:Na},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Uf=Object.assign({},io.Modal),qf=[];const J1=()=>qf.reduce((e,t)=>Object.assign(Object.assign({},e),t),io.Modal);function LP(e){if(e){const t=Object.assign({},e);return qf.push(t),Uf=J1(),()=>{qf=qf.filter(n=>n!==t),Uf=J1()}}Uf=Object.assign({},io.Modal)}function kO(){return Uf}const Nb=s.createContext(void 0),co=(e,t)=>{const n=s.useContext(Nb),r=s.useMemo(()=>{var l;const c=t||io[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof c=="function"?c():c),u||{})},[e,t,n]),a=s.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?io.locale:l},[n]);return[r,a]},HP="internalMark",FP=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>LP(t==null?void 0:t.Modal),[t]);const a=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(Nb.Provider,{value:a},n)},Tb={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"},ks=Object.assign(Object.assign({},Tb),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
42
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
43
|
+
'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}),Dr=Math.round;function Lp(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const e$=(e,t,n)=>n===0?e:e/100;function Zc(e,t){const n=t||255;return e>n?n:e<0?0:e}class un{constructor(t){q(this,"isValid",!0),q(this,"r",0),q(this,"g",0),q(this,"b",0),q(this,"a",1),q(this,"_h",void 0),q(this,"_s",void 0),q(this,"_l",void 0),q(this,"_v",void 0),q(this,"_max",void 0),q(this,"_min",void 0),q(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let l=function(c){return a.startsWith(c)};var r=l;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):l("rgb")?this.fromRgbString(a):l("hsl")?this.fromHslString(a):(l("hsv")||l("hsb"))&&this.fromHsvString(a)}else if(t instanceof un)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Zc(t.r),this.g=Zc(t.g),this.b=Zc(t.b),this.a=typeof t.a=="number"?Zc(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(l){const c=l/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Dr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,l=u=>(r[u]-this[u])*a+this[u],c={r:Dr(l("r")),g:Dr(l("g")),b:Dr(l("b")),a:Dr(l("a")*100)/100};return this._c(c)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=l=>Dr((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Dr(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Dr(this.getSaturation()*100),r=Dr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=Zc(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,l){return parseInt(n[a]+n[l||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const h=Dr(r*255);this.r=h,this.g=h,this.b=h}let l=0,c=0,u=0;const d=t/60,m=(1-Math.abs(2*r-1))*n,g=m*(1-Math.abs(d%2-1));d>=0&&d<1?(l=m,c=g):d>=1&&d<2?(l=g,c=m):d>=2&&d<3?(c=m,u=g):d>=3&&d<4?(c=g,u=m):d>=4&&d<5?(l=g,u=m):d>=5&&d<6&&(l=m,u=g);const v=r-m/2;this.r=Dr((l+v)*255),this.g=Dr((c+v)*255),this.b=Dr((u+v)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const l=Dr(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const c=t/60,u=Math.floor(c),d=c-u,m=Dr(r*(1-n)*255),g=Dr(r*(1-n*d)*255),v=Dr(r*(1-n*(1-d))*255);switch(u){case 0:this.g=v,this.b=m;break;case 1:this.r=g,this.b=m;break;case 2:this.r=m,this.b=v;break;case 3:this.r=m,this.g=g;break;case 4:this.r=v,this.g=m;break;case 5:default:this.g=m,this.b=g;break}}fromHsvString(t){const n=Lp(t,e$);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Lp(t,e$);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Lp(t,(r,a)=>a.includes("%")?Dr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var yf=2,t$=.16,kP=.05,VP=.05,KP=.15,VO=5,KO=4,WP=[{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 n$(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-yf*t:Math.round(e.h)+yf*t:r=n?Math.round(e.h)+yf*t:Math.round(e.h)-yf*t,r<0?r+=360:r>=360&&(r-=360),r}function r$(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-t$*t:t===KO?r=e.s+t$:r=e.s+kP*t,r>1&&(r=1),n&&t===VO&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function a$(e,t,n){var r;return n?r=e.v+VP*t:r=e.v-KP*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function wl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new un(e),a=r.toHsv(),l=VO;l>0;l-=1){var c=new un({h:n$(a,l,!0),s:r$(a,l,!0),v:a$(a,l,!0)});n.push(c)}n.push(r);for(var u=1;u<=KO;u+=1){var d=new un({h:n$(a,u),s:r$(a,u),v:a$(a,u)});n.push(d)}return t.theme==="dark"?WP.map(function(m){var g=m.index,v=m.amount;return new un(t.backgroundColor||"#141414").mix(n[g],v).toHexString()}):n.map(function(m){return m.toHexString()})}var Hp={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"},r0=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];r0.primary=r0[5];var a0=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];a0.primary=a0[5];var o0=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];o0.primary=o0[5];var um=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];um.primary=um[5];var i0=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];i0.primary=i0[5];var l0=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];l0.primary=l0[5];var s0=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];s0.primary=s0[5];var c0=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];c0.primary=c0[5];var dm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dm.primary=dm[5];var u0=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];u0.primary=u0[5];var d0=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];d0.primary=d0[5];var f0=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];f0.primary=f0[5];var m0=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];m0.primary=m0[5];var Fp={red:r0,volcano:a0,orange:o0,gold:um,yellow:i0,lime:l0,green:s0,cyan:c0,blue:dm,geekblue:u0,purple:d0,magenta:f0,grey:m0};function WO(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:l,colorInfo:c,colorPrimary:u,colorBgBase:d,colorTextBase:m}=e,g=t(u),v=t(r),h=t(a),b=t(l),y=t(c),C=n(d,m),S=e.colorLink||e.colorInfo,x=t(S),w=new un(b[1]).mix(new un(b[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:w,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[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:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const UP=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function qP(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},UP(r))}const UO=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Gf(e){return(e+8)/e}function GP(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,l=e*Math.pow(Math.E,a/5),c=r>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Gf(n)}))}const qO=e=>{const t=GP(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),a=n[1],l=n[0],c=n[2],u=r[1],d=r[0],m=r[2];return{fontSizeSM:l,fontSize:a,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:m,lineHeightSM:d,fontHeight:Math.round(u*a),fontHeightLG:Math.round(m*c),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function XP(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 ka=(e,t)=>new un(e).setA(t).toRgbString(),Jc=(e,t)=>new un(e).darken(t).toHexString(),YP=e=>{const t=wl(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]}},QP=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ka(r,.88),colorTextSecondary:ka(r,.65),colorTextTertiary:ka(r,.45),colorTextQuaternary:ka(r,.25),colorFill:ka(r,.15),colorFillSecondary:ka(r,.06),colorFillTertiary:ka(r,.04),colorFillQuaternary:ka(r,.02),colorBgSolid:ka(r,1),colorBgSolidHover:ka(r,.75),colorBgSolidActive:ka(r,.95),colorBgLayout:Jc(n,4),colorBgContainer:Jc(n,0),colorBgElevated:Jc(n,0),colorBgSpotlight:ka(r,.85),colorBgBlur:"transparent",colorBorder:Jc(n,15),colorBorderSecondary:Jc(n,6)}};function Km(e){Hp.pink=Hp.magenta,Fp.pink=Fp.magenta;const t=Object.keys(Tb).map(n=>{const r=e[n]===Hp[n]?Fp[n]:wl(e[n]);return Array.from({length:10},()=>1).reduce((a,l,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),WO(e,{generateColorPalettes:YP,generateNeutralColorPalettes:QP})),qO(e.fontSize)),XP(e)),UO(e)),qP(e))}const Ib=sm(Km),Tu={token:ks,override:{override:ks},hashed:!0},Mb=le.createContext(Tu),Iu="ant",Wm="anticon",ZP=["outlined","borderless","filled","underlined"],JP=(e,t)=>t||(e?`${Iu}-${e}`:Iu),Ot=s.createContext({getPrefixCls:JP,iconPrefixCls:Wm}),{Consumer:pee}=Ot,o$={};function Er(e){const t=s.useContext(Ot),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,l=t[e];return Object.assign(Object.assign({classNames:o$,styles:o$},l),{getPrefixCls:n,direction:r,getPopupContainer:a})}const e6=`-ant-${Date.now()}-${Math.random()}`;function t6(e,t){const n={},r=(c,u)=>{let d=c.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},a=(c,u)=>{const d=new un(c),m=wl(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=m[1],n[`${u}-color-hover`]=m[4],n[`${u}-color-active`]=m[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=m[0],n[`${u}-color-deprecated-border`]=m[2]};if(t.primaryColor){a(t.primaryColor,"primary");const c=new un(t.primaryColor),u=wl(c.toRgbString());u.forEach((m,g)=>{n[`primary-${g+1}`]=m}),n["primary-color-deprecated-l-35"]=r(c,m=>m.lighten(35)),n["primary-color-deprecated-l-20"]=r(c,m=>m.lighten(20)),n["primary-color-deprecated-t-20"]=r(c,m=>m.tint(20)),n["primary-color-deprecated-t-50"]=r(c,m=>m.tint(50)),n["primary-color-deprecated-f-12"]=r(c,m=>m.setA(m.a*.12));const d=new un(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,m=>m.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
44
|
+
:root {
|
|
45
|
+
${Object.keys(n).map(c=>`--${e}-${c}: ${n[c]};`).join(`
|
|
46
|
+
`)}
|
|
47
|
+
}
|
|
48
|
+
`.trim()}function n6(e,t){const n=t6(e,t);Yr()&&Ko(n,`${e6}-dynamic-theme`)}const ba=s.createContext(!1),jb=({children:e,disabled:t})=>{const n=s.useContext(ba);return s.createElement(ba.Provider,{value:t??n},e)},El=s.createContext(void 0),r6=({children:e,size:t})=>{const n=s.useContext(El);return s.createElement(El.Provider,{value:t||n},e)};function a6(){const e=s.useContext(ba),t=s.useContext(El);return{componentDisabled:e,componentSize:t}}var GO=ar(function e(){rr(this,e)}),XO="CALC_UNIT",o6=new RegExp(XO,"g");function kp(e){return typeof e=="number"?"".concat(e).concat(XO):e}var i6=(function(e){so(n,e);var t=Eo(n);function n(r,a){var l;rr(this,n),l=t.call(this),q(St(l),"result",""),q(St(l),"unitlessCssVar",void 0),q(St(l),"lowPriority",void 0);var c=$t(r);return l.unitlessCssVar=a,r instanceof n?l.result="(".concat(r.result,")"):c==="number"?l.result=kp(r):c==="string"&&(l.result=r),l}return ar(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(kp(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(kp(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var l=this,c=a||{},u=c.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(d=!1),this.result=this.result.replace(o6,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(GO),l6=(function(e){so(n,e);var t=Eo(n);function n(r){var a;return rr(this,n),a=t.call(this),q(St(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return ar(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(GO),s6=function(t,n){var r=t==="css"?i6:l6;return function(a){return new r(a,n)}},i$=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 Sn(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function Ol(e){var t=s.useRef(!1),n=s.useState(e),r=de(n,2),a=r[0],l=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(u,d){d&&t.current||l(u)}return[a,c]}function Vp(e){return e!==void 0}function Gn(e,t){var n=t||{},r=n.defaultValue,a=n.value,l=n.onChange,c=n.postState,u=Ol(function(){return Vp(a)?a:Vp(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=de(u,2),m=d[0],g=d[1],v=a!==void 0?a:m,h=c?c(v):v,b=Sn(l),y=Ol([v]),C=de(y,2),S=C[0],x=C[1];js(function(){var E=S[0];m!==E&&b(m,E)},[S]),js(function(){Vp(a)||g(a)},[a]);var w=Sn(function(E,R){g(E,R),x([v],R)});return[h,w]}function l$(e,t,n,r){var a=ee({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=de(u,2),m=d[0],g=d[1];if(a!=null&&a[m]||a!=null&&a[g]){var v;(v=a[g])!==null&&v!==void 0||(a[g]=a==null?void 0:a[m])}})}var c=ee(ee({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var YO=typeof CSSINJS_STATISTIC<"u",g0=!0;function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!YO)return Object.assign.apply(Object,[{}].concat(t));g0=!1;var r={};return t.forEach(function(a){if($t(a)==="object"){var l=Object.keys(a);l.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),g0=!0,r}var s$={};function c6(){}var u6=function(t){var n,r=t,a=c6;return YO&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(g0){var d;(d=n)===null||d===void 0||d.add(u)}return c[u]}}),a=function(c,u){var d;s$[c]={global:Array.from(n),component:ee(ee({},(d=s$[c])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:a}};function c$(e,t,n){if(typeof n=="function"){var r;return n(Qt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function d6(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(l){return Z(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(l){return Z(l)}).join(","),")")}}}var f6=1e3*60*10,m6=(function(){function e(){rr(this,e),q(this,"map",new Map),q(this,"objectIDMap",new WeakMap),q(this,"nextID",0),q(this,"lastAccessBeat",new Map),q(this,"accessBeat",0)}return ar(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(l){return l&&$t(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat($t(l),"_").concat(l)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,l){r-a>f6&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),u$=new m6;function g6(e,t){return le.useMemo(function(){var n=u$.get(t);if(n)return n;var r=e();return u$.set(t,r),r},t)}var v6=function(){return{}};function p6(e){var t=e.useCSP,n=t===void 0?v6:t,r=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function d(h,b,y,C){var S=Array.isArray(h)?h[0]:h;function x(j){return"".concat(String(S)).concat(j.slice(0,1).toUpperCase()).concat(j.slice(1))}var w=(C==null?void 0:C.unitless)||{},E=typeof u=="function"?u(h):{},R=ee(ee({},E),{},q({},x("zIndexPopup"),!0));Object.keys(w).forEach(function(j){R[x(j)]=w[j]});var N=ee(ee({},C),{},{unitless:R,prefixToken:x}),I=g(h,b,y,N),M=m(S,y,N);return function(j){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,z=I(j,T),L=de(z,2),D=L[1],A=M(T),_=de(A,2),V=_[0],P=_[1];return[V,D,P]}}function m(h,b,y){var C=y.unitless,S=y.injectStyle,x=S===void 0?!0:S,w=y.prefixToken,E=y.ignore,R=function(M){var j=M.rootCls,T=M.cssVar,z=T===void 0?{}:T,L=r(),D=L.realToken;return MP({path:[h],prefix:z.prefix,key:z.key,unitless:C,ignore:E,token:D,scope:j},function(){var A=c$(h,D,b),_=l$(h,D,A,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(A).forEach(function(V){_[w(V)]=_[V],delete _[V]}),_}),null},N=function(M){var j=r(),T=j.cssVar;return[function(z){return x&&T?le.createElement(le.Fragment,null,le.createElement(R,{rootCls:M,cssVar:T,component:h}),z):z},T==null?void 0:T.key]};return N}function g(h,b,y){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(h)?h:[h,h],x=de(S,1),w=x[0],E=S.join("-"),R=e.layer||{name:"antd"};return function(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,M=r(),j=M.theme,T=M.realToken,z=M.hashId,L=M.token,D=M.cssVar,A=a(),_=A.rootPrefixCls,V=A.iconPrefixCls,P=n(),B=D?"css":"js",K=g6(function(){var X=new Set;return D&&Object.keys(C.unitless||{}).forEach(function(J){X.add(Ff(J,D.prefix)),X.add(Ff(J,i$(w,D.prefix)))}),s6(B,X)},[B,w,D==null?void 0:D.prefix]),G=d6(B),Q=G.max,k=G.min,U={theme:j,token:L,hashId:z,nonce:function(){return P.nonce},clientOnly:C.clientOnly,layer:R,order:C.order||-999};typeof l=="function"&&n0(ee(ee({},U),{},{clientOnly:!1,path:["Shared",_]}),function(){return l(L,{prefix:{rootPrefixCls:_,iconPrefixCls:V},csp:P})});var W=n0(ee(ee({},U),{},{path:[E,N,V]}),function(){if(C.injectStyle===!1)return[];var X=u6(L),J=X.token,ne=X.flush,se=c$(w,T,y),re=".".concat(N),oe=l$(w,T,se,{deprecatedTokens:C.deprecatedTokens});D&&se&&$t(se)==="object"&&Object.keys(se).forEach(function(ge){se[ge]="var(".concat(Ff(ge,i$(w,D.prefix)),")")});var Se=Qt(J,{componentCls:re,prefixCls:N,iconCls:".".concat(V),antCls:".".concat(_),calc:K,max:Q,min:k},D?se:oe),me=b(Se,{hashId:z,prefixCls:N,rootPrefixCls:_,iconPrefixCls:V});ne(w,oe);var ie=typeof c=="function"?c(Se,N,I,C.resetFont):null;return[C.resetStyle===!1?null:ie,me]});return[W,z]}}function v(h,b,y){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=g(h,b,y,ee({resetStyle:!1,order:-998},C)),x=function(E){var R=E.prefixCls,N=E.rootCls,I=N===void 0?R:N;return S(R,I),null};return x}return{genStyleHooks:d,genSubStyleComponent:v,genComponentStyleHook:g}}const Pi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],h6="5.29.3";function Kp(e){return e>=0&&e<=255}function cu(e,t){const{r:n,g:r,b:a,a:l}=new un(e).toRgb();if(l<1)return e;const{r:c,g:u,b:d}=new un(t).toRgb();for(let m=.01;m<=1;m+=.01){const g=Math.round((n-c*(1-m))/m),v=Math.round((r-u*(1-m))/m),h=Math.round((a-d*(1-m))/m);if(Kp(g)&&Kp(v)&&Kp(h))return new un({r:g,g:v,b:h,a:Math.round(m*100)/100}).toRgbString()}return new un({r:n,g:r,b:a,a:1}).toRgbString()}var b6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Pb(e){const{override:t}=e,n=b6(e,["override"]),r=Object.assign({},t);Object.keys(ks).forEach(h=>{delete r[h]});const a=Object.assign(Object.assign({},n),r),l=480,c=576,u=768,d=992,m=1200,g=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:cu(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:cu(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:cu(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:cu(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
49
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
+
`,boxShadowSecondary:`
|
|
53
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
+
`,boxShadowTertiary:`
|
|
57
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
58
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
59
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
60
|
+
`,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
61
|
+
0 1px 2px -2px ${new un("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
62
|
+
0 3px 6px 0 ${new un("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
63
|
+
0 5px 12px 4px ${new un("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
64
|
+
`,boxShadowDrawerRight:`
|
|
65
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
66
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
67
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
68
|
+
`,boxShadowDrawerLeft:`
|
|
69
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
70
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
71
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
72
|
+
`,boxShadowDrawerUp:`
|
|
73
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
74
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
75
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
76
|
+
`,boxShadowDrawerDown:`
|
|
77
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
80
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var d$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const QO={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},y6={motionBase:!0,motionUnit:!0},S6={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},ZO=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,l=d$(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=Pb(c),l&&Object.entries(l).forEach(([u,d])=>{const{theme:m}=d,g=d$(d,["theme"]);let v=g;m&&(v=ZO(Object.assign(Object.assign({},c),g),{override:g},m)),c[u]=v}),c};function jr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=le.useContext(Mb),l=`${h6}-${t||""}`,c=n||Ib,[u,d,m]=rP(c,[ks,e],{salt:l,override:r,getComputedToken:ZO,formatToken:Pb,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:QO,ignore:y6,preserve:S6}});return[c,m,t?d:"",u,a]}const qo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},cn=(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}),jl=()=>({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"}}),zi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),C6=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),x6=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),c),{[a]:c})}},xo=(e,t)=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Xa=(e,t)=>({"&:focus-visible":xo(e,t)}),JO=e=>({[`.${e}`]:Object.assign(Object.assign({},jl()),{[`.${e} .${e}-icon`]:{display:"block"}})}),zb=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Xa(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:nn,genComponentStyleHook:$6,genSubStyleComponent:Xs}=p6({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s.useContext(Ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=jr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=s.useContext(Ot);return e??{}},getResetStyles:(e,t)=>{var n;const r=C6(e);return[r,{"&":r},JO((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Wm)]},getCommonStyle:x6,getCompUnitless:()=>QO});function Um(e,t){return Pi.reduce((n,r)=>{const a=e[`${r}1`],l=e[`${r}3`],c=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:l,darkColor:c,textColor:u}))},{})}const w6=(e,t)=>{const[n,r]=jr();return n0({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>JO(e))},E6=Object.assign({},Bm),{useId:f$}=E6,O6=()=>"",R6=typeof f$>"u"?O6:f$;function N6(e,t,n){var r;Oo();const a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},Tu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Tu.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=R6();return Ml(()=>{var u,d;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{m[h]=Object.assign(Object.assign({},m[h]),e.components[h])});const g=`css-var-${c.replace(/:/g,"")}`,v=((u=a.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||g});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:m,cssVar:v})},[a,l],(u,d)=>u.some((m,g)=>{const v=d[g];return!Co(m,v,!0)}))}var T6=["children"],eR=s.createContext({});function I6(e){var t=e.children,n=Pt(e,T6);return s.createElement(eR.Provider,{value:n},t)}var M6=(function(e){so(n,e);var t=Eo(n);function n(){return rr(this,n),t.apply(this,arguments)}return ar(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function j6(e){var t=s.useReducer(function(u){return u+1},0),n=de(t,2),r=n[1],a=s.useRef(e),l=Sn(function(){return a.current}),c=Sn(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[l,c]}var wi="none",Sf="appear",Cf="enter",xf="leave",m$="none",no="prepare",Ts="start",Is="active",_b="end",tR="prepared";function g$(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function P6(e,t){var n={animationend:g$("Animation","AnimationEnd"),transitionend:g$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var z6=P6(Yr(),typeof window<"u"?window:{}),nR={};if(Yr()){var _6=document.createElement("div");nR=_6.style}var $f={};function rR(e){if($f[e])return $f[e];var t=z6[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var l=n[a];if(Object.prototype.hasOwnProperty.call(t,l)&&l in nR)return $f[e]=t[l],$f[e]}return""}var aR=rR("animationend"),oR=rR("transitionend"),iR=!!(aR&&oR),v$=aR||"animationend",p$=oR||"transitionend";function h$(e,t){if(!e)return null;if($t(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const D6=(function(e){var t=s.useRef();function n(a){a&&(a.removeEventListener(p$,e),a.removeEventListener(v$,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(p$,e),a.addEventListener(v$,e),t.current=a)}return s.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var lR=Yr()?s.useLayoutEffect:s.useEffect;const A6=(function(){var e=s.useRef(null);function t(){tn.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=tn(function(){a<=1?r({isCanceled:function(){return l!==e.current}}):n(r,a-1)});e.current=l}return s.useEffect(function(){return function(){t()}},[]),[n,t]});var B6=[no,Ts,Is,_b],L6=[no,tR],sR=!1,H6=!0;function cR(e){return e===Is||e===_b}const F6=(function(e,t,n){var r=Ol(m$),a=de(r,2),l=a[0],c=a[1],u=A6(),d=de(u,2),m=d[0],g=d[1];function v(){c(no,!0)}var h=t?L6:B6;return lR(function(){if(l!==m$&&l!==_b){var b=h.indexOf(l),y=h[b+1],C=n(l);C===sR?c(y,!0):y&&m(function(S){function x(){S.isCanceled()||c(y,!0)}C===!0?x():Promise.resolve(C).then(x)})}},[e,l]),s.useEffect(function(){return function(){g()}},[]),[v,l]});function k6(e,t,n,r){var a=r.motionEnter,l=a===void 0?!0:a,c=r.motionAppear,u=c===void 0?!0:c,d=r.motionLeave,m=d===void 0?!0:d,g=r.motionDeadline,v=r.motionLeaveImmediately,h=r.onAppearPrepare,b=r.onEnterPrepare,y=r.onLeavePrepare,C=r.onAppearStart,S=r.onEnterStart,x=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,R=r.onLeaveActive,N=r.onAppearEnd,I=r.onEnterEnd,M=r.onLeaveEnd,j=r.onVisibleChanged,T=Ol(),z=de(T,2),L=z[0],D=z[1],A=j6(wi),_=de(A,2),V=_[0],P=_[1],B=Ol(null),K=de(B,2),G=K[0],Q=K[1],k=V(),U=s.useRef(!1),W=s.useRef(null);function X(){return n()}var J=s.useRef(!1);function ne(){P(wi),Q(null,!0)}var se=Sn(function(ve){var Te=V();if(Te!==wi){var Ee=X();if(!(ve&&!ve.deadline&&ve.target!==Ee)){var xe=J.current,Ve;Te===Sf&&xe?Ve=N==null?void 0:N(Ee,ve):Te===Cf&&xe?Ve=I==null?void 0:I(Ee,ve):Te===xf&&xe&&(Ve=M==null?void 0:M(Ee,ve)),xe&&Ve!==!1&&ne()}}}),re=D6(se),oe=de(re,1),Se=oe[0],me=function(Te){switch(Te){case Sf:return q(q(q({},no,h),Ts,C),Is,w);case Cf:return q(q(q({},no,b),Ts,S),Is,E);case xf:return q(q(q({},no,y),Ts,x),Is,R);default:return{}}},ie=s.useMemo(function(){return me(k)},[k]),ge=F6(k,!e,function(ve){if(ve===no){var Te=ie[no];return Te?Te(X()):sR}if(ce in ie){var Ee;Q(((Ee=ie[ce])===null||Ee===void 0?void 0:Ee.call(ie,X(),null))||null)}return ce===Is&&k!==wi&&(Se(X()),g>0&&(clearTimeout(W.current),W.current=setTimeout(function(){se({deadline:!0})},g))),ce===tR&&ne(),H6}),ue=de(ge,2),ae=ue[0],ce=ue[1],ye=cR(ce);J.current=ye;var Ce=s.useRef(null);lR(function(){if(!(U.current&&Ce.current===t)){D(t);var ve=U.current;U.current=!0;var Te;!ve&&t&&u&&(Te=Sf),ve&&t&&l&&(Te=Cf),(ve&&!t&&m||!ve&&v&&!t&&m)&&(Te=xf);var Ee=me(Te);Te&&(e||Ee[no])?(P(Te),ae()):P(wi),Ce.current=t}},[t]),s.useEffect(function(){(k===Sf&&!u||k===Cf&&!l||k===xf&&!m)&&P(wi)},[u,l,m]),s.useEffect(function(){return function(){U.current=!1,clearTimeout(W.current)}},[]);var je=s.useRef(!1);s.useEffect(function(){L&&(je.current=!0),L!==void 0&&k===wi&&((je.current||L)&&(j==null||j(L)),je.current=!0)},[L,k]);var ze=G;return ie[no]&&ce===Ts&&(ze=ee({transition:"none"},ze)),[k,ce,ze,L??t]}function V6(e){var t=e;$t(e)==="object"&&(t=e.transitionSupport);function n(a,l){return!!(a.motionName&&t&&l!==!1)}var r=s.forwardRef(function(a,l){var c=a.visible,u=c===void 0?!0:c,d=a.removeOnLeave,m=d===void 0?!0:d,g=a.forceRender,v=a.children,h=a.motionName,b=a.leavedClassName,y=a.eventProps,C=s.useContext(eR),S=C.motion,x=n(a,S),w=s.useRef(),E=s.useRef();function R(){try{return w.current instanceof HTMLElement?w.current:Hf(E.current)}catch{return null}}var N=k6(x,u,R,a),I=de(N,4),M=I[0],j=I[1],T=I[2],z=I[3],L=s.useRef(z);z&&(L.current=!0);var D=s.useCallback(function(K){w.current=K,wu(l,K)},[l]),A,_=ee(ee({},y),{},{visible:u});if(!v)A=null;else if(M===wi)z?A=v(ee({},_),D):!m&&L.current&&b?A=v(ee(ee({},_),{},{className:b}),D):g||!m&&!b?A=v(ee(ee({},_),{},{style:{display:"none"}}),D):A=null;else{var V;j===no?V="prepare":cR(j)?V="active":j===Ts&&(V="start");var P=h$(h,"".concat(M,"-").concat(V));A=v(ee(ee({},_),{},{className:te(h$(h,M),q(q({},P,P&&V),h,typeof h=="string")),style:T}),D)}if(s.isValidElement(A)&&oo(A)){var B=Li(A);B||(A=s.cloneElement(A,{ref:D}))}return s.createElement(M6,{ref:E},A)});return r.displayName="CSSMotion",r}const Sa=V6(iR);var v0="add",p0="keep",h0="remove",Wp="removed";function K6(e){var t;return e&&$t(e)==="object"&&"key"in e?t=e:t={key:e},ee(ee({},t),{},{key:String(t.key)})}function b0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(K6)}function W6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,l=b0(e),c=b0(t);l.forEach(function(m){for(var g=!1,v=r;v<a;v+=1){var h=c[v];if(h.key===m.key){r<v&&(n=n.concat(c.slice(r,v).map(function(b){return ee(ee({},b),{},{status:v0})})),r=v),n.push(ee(ee({},h),{},{status:p0})),r+=1,g=!0;break}}g||n.push(ee(ee({},m),{},{status:h0}))}),r<a&&(n=n.concat(c.slice(r).map(function(m){return ee(ee({},m),{},{status:v0})})));var u={};n.forEach(function(m){var g=m.key;u[g]=(u[g]||0)+1});var d=Object.keys(u).filter(function(m){return u[m]>1});return d.forEach(function(m){n=n.filter(function(g){var v=g.key,h=g.status;return v!==m||h!==h0}),n.forEach(function(g){g.key===m&&(g.status=p0)})}),n}var U6=["component","children","onVisibleChanged","onAllRemoved"],q6=["status"],G6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function X6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sa,n=(function(r){so(l,r);var a=Eo(l);function l(){var c;rr(this,l);for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return c=a.call.apply(a,[this].concat(d)),q(St(c),"state",{keyEntities:[]}),q(St(c),"removeKey",function(g){c.setState(function(v){var h=v.keyEntities.map(function(b){return b.key!==g?b:ee(ee({},b),{},{status:Wp})});return{keyEntities:h}},function(){var v=c.state.keyEntities,h=v.filter(function(b){var y=b.status;return y!==Wp}).length;h===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return ar(l,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,m=this.props,g=m.component,v=m.children,h=m.onVisibleChanged;m.onAllRemoved;var b=Pt(m,U6),y=g||s.Fragment,C={};return G6.forEach(function(S){C[S]=b[S],delete b[S]}),delete b.keys,s.createElement(y,b,d.map(function(S,x){var w=S.status,E=Pt(S,q6),R=w===v0||w===p0;return s.createElement(t,Oe({},C,{key:E.key,visible:R,eventProps:E,onVisibleChanged:function(I){h==null||h(I,{key:E.key}),I||u.removeKey(E.key)}}),function(N,I){return v(ee(ee({},N),{},{index:x}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var m=u.keys,g=d.keyEntities,v=b0(m),h=W6(g,v);return{keyEntities:h.filter(function(b){var y=g.find(function(C){var S=C.key;return b.key===S});return!(y&&y.status===Wp&&b.status===h0)})}}}]),l})(s.Component);return q(n,"defaultProps",{component:"div"}),n}const uR=X6(iR),b$=s.createContext(!0);function Y6(e){const t=s.useContext(b$),{children:n}=e,[,r]=jr(),{motion:a}=r,l=s.useRef(!1);return l.current||(l.current=t!==a),l.current?s.createElement(b$.Provider,{value:a},s.createElement(I6,{motion:a},n)):n}const Q6=()=>null;var Z6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const J6=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let fm,dR,fR,mR;function Xf(){return fm||Iu}function ez(){return dR||Wm}function tz(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const nz=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(fm=t),n!==void 0&&(dR=n),"holderRender"in e&&(mR=a),r&&(tz(r)?n6(Xf(),r):fR=r)},rz=()=>({getPrefixCls:(e,t)=>t||(e?`${Xf()}-${e}`:Xf()),getIconPrefixCls:ez,getRootPrefixCls:()=>fm||Xf(),getTheme:()=>fR,holderRender:mR}),az=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:l,form:c,locale:u,componentSize:d,direction:m,space:g,splitter:v,virtual:h,dropdownMatchSelectWidth:b,popupMatchSelectWidth:y,popupOverflow:C,legacyLocale:S,parentContext:x,iconPrefixCls:w,theme:E,componentDisabled:R,segmented:N,statistic:I,spin:M,calendar:j,carousel:T,cascader:z,collapse:L,typography:D,checkbox:A,descriptions:_,divider:V,drawer:P,skeleton:B,steps:K,image:G,layout:Q,list:k,mentions:U,modal:W,progress:X,result:J,slider:ne,breadcrumb:se,menu:re,pagination:oe,input:Se,textArea:me,empty:ie,badge:ge,radio:ue,rate:ae,switch:ce,transfer:ye,avatar:Ce,message:je,tag:ze,table:ve,card:Te,tabs:Ee,timeline:xe,timePicker:Ve,upload:Xe,notification:it,tree:at,colorPicker:Ye,datePicker:Je,rangePicker:_e,flex:Ie,wave:We,dropdown:Be,warning:Ge,tour:Me,tooltip:Qe,popover:lt,popconfirm:mt,floatButton:Dt,floatButtonGroup:At,variant:et,inputNumber:ct,treeSelect:gt}=e,ot=s.useCallback((ht,zt)=>{const{prefixCls:tt}=e;if(zt)return zt;const Ze=tt||x.getPrefixCls("");return ht?`${Ze}-${ht}`:Ze},[x.getPrefixCls,e.prefixCls]),vt=w||x.iconPrefixCls||Wm,Mt=n||x.csp;w6(vt,Mt);const pe=N6(E,x.theme,{prefixCls:ot("")}),be={csp:Mt,autoInsertSpaceInButton:r,alert:a,anchor:l,locale:u||S,direction:m,space:g,splitter:v,virtual:h,popupMatchSelectWidth:y??b,popupOverflow:C,getPrefixCls:ot,iconPrefixCls:vt,theme:pe,segmented:N,statistic:I,spin:M,calendar:j,carousel:T,cascader:z,collapse:L,typography:D,checkbox:A,descriptions:_,divider:V,drawer:P,skeleton:B,steps:K,image:G,input:Se,textArea:me,layout:Q,list:k,mentions:U,modal:W,progress:X,result:J,slider:ne,breadcrumb:se,menu:re,pagination:oe,empty:ie,badge:ge,radio:ue,rate:ae,switch:ce,transfer:ye,avatar:Ce,message:je,tag:ze,table:ve,card:Te,tabs:Ee,timeline:xe,timePicker:Ve,upload:Xe,notification:it,tree:at,colorPicker:Ye,datePicker:Je,rangePicker:_e,flex:Ie,wave:We,dropdown:Be,warning:Ge,tour:Me,tooltip:Qe,popover:lt,popconfirm:mt,floatButton:Dt,floatButtonGroup:At,variant:et,inputNumber:ct,treeSelect:gt},we=Object.assign({},x);Object.keys(be).forEach(ht=>{be[ht]!==void 0&&(we[ht]=be[ht])}),J6.forEach(ht=>{const zt=e[ht];zt&&(we[ht]=zt)}),typeof r<"u"&&(we.button=Object.assign({autoInsertSpace:r},we.button));const Ke=Ml(()=>we,we,(ht,zt)=>{const tt=Object.keys(ht),Ze=Object.keys(zt);return tt.length!==Ze.length||tt.some(Ct=>ht[Ct]!==zt[Ct])}),{layer:ke}=s.useContext(ku),He=s.useMemo(()=>({prefixCls:vt,csp:Mt,layer:ke?"antd":void 0}),[vt,Mt,ke]);let Le=s.createElement(s.Fragment,null,s.createElement(Q6,{dropdownMatchSelectWidth:b}),t);const nt=s.useMemo(()=>{var ht,zt,tt,Ze;return Ns(((ht=io.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((tt=(zt=Ke.locale)===null||zt===void 0?void 0:zt.Form)===null||tt===void 0?void 0:tt.defaultValidateMessages)||{},((Ze=Ke.form)===null||Ze===void 0?void 0:Ze.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[Ke,c==null?void 0:c.validateMessages]);Object.keys(nt).length>0&&(Le=s.createElement(LO.Provider,{value:nt},Le)),u&&(Le=s.createElement(FP,{locale:u,_ANT_MARK__:HP},Le)),Le=s.createElement(Rb.Provider,{value:He},Le),d&&(Le=s.createElement(r6,{size:d},Le)),Le=s.createElement(Y6,null,Le);const pt=s.useMemo(()=>{const ht=pe||{},{algorithm:zt,token:tt,components:Ze,cssVar:Ct}=ht,Ft=Z6(ht,["algorithm","token","components","cssVar"]),Nt=zt&&(!Array.isArray(zt)||zt.length>0)?sm(zt):Ib,rn={};Object.entries(Ze||{}).forEach(([Wt,on])=>{const rt=Object.assign({},on);"algorithm"in rt&&(rt.algorithm===!0?rt.theme=Nt:(Array.isArray(rt.algorithm)||typeof rt.algorithm=="function")&&(rt.theme=sm(rt.algorithm)),delete rt.algorithm),rn[Wt]=rt});const dn=Object.assign(Object.assign({},ks),tt);return Object.assign(Object.assign({},Ft),{theme:Nt,token:dn,components:rn,override:Object.assign({override:dn},rn),cssVar:Ct})},[pe]);return E&&(Le=s.createElement(Mb.Provider,{value:pt},Le)),Ke.warning&&(Le=s.createElement(DP.Provider,{value:Ke.warning},Le)),R!==void 0&&(Le=s.createElement(jb,{disabled:R},Le)),s.createElement(Ot.Provider,{value:Ke},Le)},uo=e=>{const t=s.useContext(Ot),n=s.useContext(Nb);return s.createElement(az,Object.assign({parentContext:t,legacyLocale:n},e))};uo.ConfigContext=Ot;uo.SizeContext=El;uo.config=nz;uo.useConfig=a6;Object.defineProperty(uo,"SizeContext",{get:()=>El});var oz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function gR(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function iz(e){return gR(e)instanceof ShadowRoot}function mm(e){return iz(e)?gR(e):null}function lz(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function sz(e,t){Xn(e,"[@ant-design/icons] ".concat(t))}function y$(e){return $t(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&($t(e.icon)==="object"||typeof e.icon=="function")}function S$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[lz(n)]=r}return t},{})}function y0(e,t,n){return n?le.createElement(e.tag,ee(ee({key:t},S$(e.attrs)),n),(e.children||[]).map(function(r,a){return y0(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):le.createElement(e.tag,ee({key:t},S$(e.attrs)),(e.children||[]).map(function(r,a){return y0(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function vR(e){return wl(e)[0]}function pR(e){return e?Array.isArray(e)?e:[e]:[]}var cz=`
|
|
81
|
+
.anticon {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
color: inherit;
|
|
85
|
+
font-style: normal;
|
|
86
|
+
line-height: 0;
|
|
87
|
+
text-align: center;
|
|
88
|
+
text-transform: none;
|
|
89
|
+
vertical-align: -0.125em;
|
|
90
|
+
text-rendering: optimizeLegibility;
|
|
91
|
+
-webkit-font-smoothing: antialiased;
|
|
92
|
+
-moz-osx-font-smoothing: grayscale;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.anticon > * {
|
|
96
|
+
line-height: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.anticon svg {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.anticon::before {
|
|
104
|
+
display: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.anticon .anticon-icon {
|
|
108
|
+
display: block;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.anticon[tabindex] {
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.anticon-spin::before,
|
|
116
|
+
.anticon-spin {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
119
|
+
animation: loadingCircle 1s infinite linear;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@-webkit-keyframes loadingCircle {
|
|
123
|
+
100% {
|
|
124
|
+
-webkit-transform: rotate(360deg);
|
|
125
|
+
transform: rotate(360deg);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@keyframes loadingCircle {
|
|
130
|
+
100% {
|
|
131
|
+
-webkit-transform: rotate(360deg);
|
|
132
|
+
transform: rotate(360deg);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`,uz=function(t){var n=s.useContext(Rb),r=n.csp,a=n.prefixCls,l=n.layer,c=cz;a&&(c=c.replace(/anticon/g,a)),l&&(c="@layer ".concat(l,` {
|
|
136
|
+
`).concat(c,`
|
|
137
|
+
}`)),s.useEffect(function(){var u=t.current,d=mm(u);Ko(c,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},dz=["icon","className","onClick","style","primaryColor","secondaryColor"],mu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fz(e){var t=e.primaryColor,n=e.secondaryColor;mu.primaryColor=t,mu.secondaryColor=n||vR(t),mu.calculated=!!n}function mz(){return ee({},mu)}var Ys=function(t){var n=t.icon,r=t.className,a=t.onClick,l=t.style,c=t.primaryColor,u=t.secondaryColor,d=Pt(t,dz),m=s.useRef(),g=mu;if(c&&(g={primaryColor:c,secondaryColor:u||vR(c)}),uz(m),sz(y$(n),"icon should be icon definiton, but got ".concat(n)),!y$(n))return null;var v=n;return v&&typeof v.icon=="function"&&(v=ee(ee({},v),{},{icon:v.icon(g.primaryColor,g.secondaryColor)})),y0(v.icon,"svg-".concat(v.name),ee(ee({className:r,onClick:a,style:l,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:m}))};Ys.displayName="IconReact";Ys.getTwoToneColors=mz;Ys.setTwoToneColors=fz;function hR(e){var t=pR(e),n=de(t,2),r=n[0],a=n[1];return Ys.setTwoToneColors({primaryColor:r,secondaryColor:a})}function gz(){var e=Ys.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var vz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];hR(dm.primary);var Kt=s.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,l=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,m=Pt(e,vz),g=s.useContext(Rb),v=g.prefixCls,h=v===void 0?"anticon":v,b=g.rootClassName,y=te(b,h,q(q({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!a||r.name==="loading"),n),C=c;C===void 0&&u&&(C=-1);var S=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,x=pR(d),w=de(x,2),E=w[0],R=w[1];return s.createElement("span",Oe({role:"img","aria-label":r.name},m,{ref:t,tabIndex:C,onClick:u,className:y}),s.createElement(Ys,{icon:r,primaryColor:E,secondaryColor:R,style:S}))});Kt.displayName="AntdIcon";Kt.getTwoToneColor=gz;Kt.setTwoToneColor=hR;var pz=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:oz}))},Vu=s.forwardRef(pz),hz={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"},bz=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:hz}))},Pl=s.forwardRef(bz),yz={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"},Sz=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:yz}))},Hi=s.forwardRef(Sz),Cz={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"},xz=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:Cz}))},zl=s.forwardRef(xz),$z={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"},wz=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:$z}))},qm=s.forwardRef(wz),Ez=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
138
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
139
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
140
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
141
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
142
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
143
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
144
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
145
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
146
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
147
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
148
|
+
summary tabIndex target title type useMap value width wmode wrap`,Oz=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
149
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
150
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
151
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
152
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
153
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
154
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Rz="".concat(Ez," ").concat(Oz).split(/[\s\n]+/),Nz="aria-",Tz="data-";function C$(e,t){return e.indexOf(t)===0}function Ar(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=ee({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||C$(a,Nz))||n.data&&C$(a,Tz)||n.attr&&Rz.includes(a))&&(r[a]=e[a])}),r}function bR(e){return e&&le.isValidElement(e)&&e.type===le.Fragment}const Db=(e,t,n)=>le.isValidElement(e)?le.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function wr(e,t){return Db(e,e,t)}const wf=(e,t,n,r,a)=>({background:e,border:`${Z(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Iz=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:l,fontSizeLG:c,lineHeight:u,borderRadiusLG:d,motionEaseInOutCirc:m,withDescriptionIconSize:g,colorText:v,colorTextHeading:h,withDescriptionPadding:b,defaultPadding:y}=e;return{[t]:Object.assign(Object.assign({},cn(e)),{position:"relative",display:"flex",alignItems:"center",padding:y,wordWrap:"break-word",borderRadius:d,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:u},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${m}, opacity ${n} ${m},
|
|
155
|
+
padding-top ${n} ${m}, padding-bottom ${n} ${m},
|
|
156
|
+
margin-bottom ${n} ${m}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:b,[`${t}-icon`]:{marginInlineEnd:a,fontSize:g,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:c},[`${t}-description`]:{display:"block",color:v}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Mz=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:l,colorWarningBorder:c,colorWarningBg:u,colorError:d,colorErrorBorder:m,colorErrorBg:g,colorInfo:v,colorInfoBorder:h,colorInfoBg:b}=e;return{[t]:{"&-success":wf(a,r,n,e,t),"&-info":wf(b,h,v,e,t),"&-warning":wf(u,c,l,e,t),"&-error":Object.assign(Object.assign({},wf(g,m,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},jz=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:l,colorIcon:c,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:l,lineHeight:Z(l),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:u}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:u}}}}},Pz=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),zz=nn("Alert",e=>[Iz(e),Mz(e),jz(e)],Pz);var x$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _z={success:Vu,info:qm,error:Pl,warning:zl},Dz=e=>{const{icon:t,prefixCls:n,type:r}=e,a=_z[r]||null;return t?Db(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:te(`${n}-icon`,t.props.className)})):s.createElement(a,{className:`${n}-icon`})},Az=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:l}=e,c=r===!0||r===void 0?s.createElement(Hi,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},l),c):null},yR=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:l,className:c,rootClassName:u,style:d,onMouseEnter:m,onMouseLeave:g,onClick:v,afterClose:h,showIcon:b,closable:y,closeText:C,closeIcon:S,action:x,id:w}=e,E=x$(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[R,N]=s.useState(!1),I=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:I.current}));const{getPrefixCls:M,direction:j,closable:T,closeIcon:z,className:L,style:D}=Er("alert"),A=M("alert",r),[_,V,P]=zz(A),B=J=>{var ne;N(!0),(ne=e.onClose)===null||ne===void 0||ne.call(e,J)},K=s.useMemo(()=>e.type!==void 0?e.type:l?"warning":"info",[e.type,l]),G=s.useMemo(()=>typeof y=="object"&&y.closeIcon||C?!0:typeof y=="boolean"?y:S!==!1&&S!==null&&S!==void 0?!0:!!T,[C,S,y,T]),Q=l&&b===void 0?!0:b,k=te(A,`${A}-${K}`,{[`${A}-with-description`]:!!n,[`${A}-no-icon`]:!Q,[`${A}-banner`]:!!l,[`${A}-rtl`]:j==="rtl"},L,c,u,P,V),U=Ar(E,{aria:!0,data:!0}),W=s.useMemo(()=>typeof y=="object"&&y.closeIcon?y.closeIcon:C||(S!==void 0?S:typeof T=="object"&&T.closeIcon?T.closeIcon:z),[S,y,T,C,z]),X=s.useMemo(()=>{const J=y??T;if(typeof J=="object"){const{closeIcon:ne}=J;return x$(J,["closeIcon"])}return{}},[y,T]);return _(s.createElement(Sa,{visible:!R,motionName:`${A}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:J=>({maxHeight:J.offsetHeight}),onLeaveEnd:h},({className:J,style:ne},se)=>s.createElement("div",Object.assign({id:w,ref:Lr(I,se),"data-show":!R,className:te(k,J),style:Object.assign(Object.assign(Object.assign({},D),d),ne),onMouseEnter:m,onMouseLeave:g,onClick:v,role:"alert"},U),Q?s.createElement(Dz,{description:n,icon:e.icon,prefixCls:A,type:K}):null,s.createElement("div",{className:`${A}-content`},a?s.createElement("div",{className:`${A}-message`},a):null,n?s.createElement("div",{className:`${A}-description`},n):null),x?s.createElement("div",{className:`${A}-action`},x):null,s.createElement(Az,{isClosable:G,prefixCls:A,closeIcon:W,handleClose:B,ariaProps:X}))))});function Bz(e,t,n){return t=$l(t),dO(e,Hm()?Reflect.construct(t,n||[],$l(e).constructor):t.apply(e,n))}let Lz=(function(e){function t(){var n;return rr(this,t),n=Bz(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return so(t,e),ar(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:l,children:c}=this.props,{error:u,info:d}=this.state,m=(d==null?void 0:d.componentStack)||null,g=typeof r>"u"?(u||"").toString():r,v=typeof a>"u"?m:a;return u?s.createElement(yR,{id:l,type:"error",message:g,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},v)}):c}}])})(s.Component);const gm=yR;gm.ErrorBoundary=Lz;const $$=e=>typeof e=="object"&&e!=null&&e.nodeType===1,w$=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ef=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return w$(n.overflowY,t)||w$(n.overflowX,t)||(r=>{const a=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},Of=(e,t,n,r,a,l,c,u)=>l<e&&c>t||l>e&&c<t?0:l<=e&&u<=n||c>=t&&u>=n?l-e-r:c>t&&u<n||l<e&&u>n?c-t+a:0,Hz=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},E$=(e,t)=>{var n,r,a,l;if(typeof document>"u")return[];const{scrollMode:c,block:u,inline:d,boundary:m,skipOverflowHiddenElements:g}=t,v=typeof m=="function"?m:P=>P!==m;if(!$$(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,b=[];let y=e;for(;$$(y)&&v(y);){if(y=Hz(y),y===h){b.push(y);break}y!=null&&y===document.body&&Ef(y)&&!Ef(document.documentElement)||y!=null&&Ef(y,g)&&b.push(y)}const C=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,S=(l=(a=window.visualViewport)==null?void 0:a.height)!=null?l:innerHeight,{scrollX:x,scrollY:w}=window,{height:E,width:R,top:N,right:I,bottom:M,left:j}=e.getBoundingClientRect(),{top:T,right:z,bottom:L,left:D}=(P=>{const B=window.getComputedStyle(P);return{top:parseFloat(B.scrollMarginTop)||0,right:parseFloat(B.scrollMarginRight)||0,bottom:parseFloat(B.scrollMarginBottom)||0,left:parseFloat(B.scrollMarginLeft)||0}})(e);let A=u==="start"||u==="nearest"?N-T:u==="end"?M+L:N+E/2-T+L,_=d==="center"?j+R/2-D+z:d==="end"?I+z:j-D;const V=[];for(let P=0;P<b.length;P++){const B=b[P],{height:K,width:G,top:Q,right:k,bottom:U,left:W}=B.getBoundingClientRect();if(c==="if-needed"&&N>=0&&j>=0&&M<=S&&I<=C&&(B===h&&!Ef(B)||N>=Q&&M<=U&&j>=W&&I<=k))return V;const X=getComputedStyle(B),J=parseInt(X.borderLeftWidth,10),ne=parseInt(X.borderTopWidth,10),se=parseInt(X.borderRightWidth,10),re=parseInt(X.borderBottomWidth,10);let oe=0,Se=0;const me="offsetWidth"in B?B.offsetWidth-B.clientWidth-J-se:0,ie="offsetHeight"in B?B.offsetHeight-B.clientHeight-ne-re:0,ge="offsetWidth"in B?B.offsetWidth===0?0:G/B.offsetWidth:0,ue="offsetHeight"in B?B.offsetHeight===0?0:K/B.offsetHeight:0;if(h===B)oe=u==="start"?A:u==="end"?A-S:u==="nearest"?Of(w,w+S,S,ne,re,w+A,w+A+E,E):A-S/2,Se=d==="start"?_:d==="center"?_-C/2:d==="end"?_-C:Of(x,x+C,C,J,se,x+_,x+_+R,R),oe=Math.max(0,oe+w),Se=Math.max(0,Se+x);else{oe=u==="start"?A-Q-ne:u==="end"?A-U+re+ie:u==="nearest"?Of(Q,U,K,ne,re+ie,A,A+E,E):A-(Q+K/2)+ie/2,Se=d==="start"?_-W-J:d==="center"?_-(W+G/2)+me/2:d==="end"?_-k+se+me:Of(W,k,G,J,se+me,_,_+R,R);const{scrollLeft:ae,scrollTop:ce}=B;oe=ue===0?0:Math.max(0,Math.min(ce+oe/ue,B.scrollHeight-K/ue+ie)),Se=ge===0?0:Math.max(0,Math.min(ae+Se/ge,B.scrollWidth-G/ge+me)),A+=ce-oe,_+=ae-Se}V.push({el:B,top:oe,left:Se})}return V},Fz=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function kz(e,t){if(!e.isConnected||!(a=>{let l=a;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(e))return;const n=(a=>{const l=window.getComputedStyle(a);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(E$(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:l,left:c}of E$(e,Fz(t))){const u=l-n.top+n.bottom,d=c-n.left+n.right;a.scroll({top:u,left:d,behavior:r})}}function S0(e){return e!=null&&e===e.window}const Vz=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return S0(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!S0(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function Kz(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Wz(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,l=n(),c=Vz(l),u=Date.now(),d=()=>{const g=Date.now()-u,v=Kz(g>a?a:g,c,e,a);S0(l)?l.scrollTo(window.pageXOffset,v):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=v:l.scrollTop=v,g<a?tn(d):typeof r=="function"&&r()};tn(d)}const Pr=e=>{const[,,,,t]=jr();return t?`${e}-css-var`:""};var ft={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},Uz=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,l=e.duration,c=l===void 0?4.5:l,u=e.showProgress,d=e.pauseOnHover,m=d===void 0?!0:d,g=e.eventKey,v=e.content,h=e.closable,b=e.closeIcon,y=b===void 0?"x":b,C=e.props,S=e.onClick,x=e.onNoticeClose,w=e.times,E=e.hovering,R=s.useState(!1),N=de(R,2),I=N[0],M=N[1],j=s.useState(0),T=de(j,2),z=T[0],L=T[1],D=s.useState(0),A=de(D,2),_=A[0],V=A[1],P=E||I,B=c>0&&u,K=function(){x(g)},G=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===ft.ENTER)&&K()};s.useEffect(function(){if(!P&&c>0){var X=Date.now()-_,J=setTimeout(function(){K()},c*1e3-_);return function(){m&&clearTimeout(J),V(Date.now()-X)}}},[c,P,w]),s.useEffect(function(){if(!P&&B&&(m||_===0)){var X=performance.now(),J,ne=function se(){cancelAnimationFrame(J),J=requestAnimationFrame(function(re){var oe=re+_-X,Se=Math.min(oe/(c*1e3),1);L(Se*100),Se<1&&se()})};return ne(),function(){m&&cancelAnimationFrame(J)}}},[c,_,P,B,w]);var Q=s.useMemo(function(){return $t(h)==="object"&&h!==null?h:h?{closeIcon:y}:{}},[h,y]),k=Ar(Q,!0),U=100-(!z||z<0?0:z>100?100:z),W="".concat(n,"-notice");return s.createElement("div",Oe({},C,{ref:t,className:te(W,a,q({},"".concat(W,"-closable"),h)),style:r,onMouseEnter:function(J){var ne;M(!0),C==null||(ne=C.onMouseEnter)===null||ne===void 0||ne.call(C,J)},onMouseLeave:function(J){var ne;M(!1),C==null||(ne=C.onMouseLeave)===null||ne===void 0||ne.call(C,J)},onClick:S}),s.createElement("div",{className:"".concat(W,"-content")},v),h&&s.createElement("a",Oe({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:G,"aria-label":"Close"},k,{onClick:function(J){J.preventDefault(),J.stopPropagation(),K()}}),Q.closeIcon),B&&s.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:U},U+"%"))}),SR=le.createContext({}),CR=function(t){var n=t.children,r=t.classNames;return le.createElement(SR.Provider,{value:{classNames:r}},n)},O$=8,R$=3,N$=16,qz=function(t){var n={offset:O$,threshold:R$,gap:N$};if(t&&$t(t)==="object"){var r,a,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:O$,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:R$,n.gap=(l=t.gap)!==null&&l!==void 0?l:N$}return[!!t,n]},Gz=["className","style","classNames","styles"],Xz=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,l=t.className,c=t.style,u=t.motion,d=t.onAllNoticeRemoved,m=t.onNoticeClose,g=t.stack,v=s.useContext(SR),h=v.classNames,b=s.useRef({}),y=s.useState(null),C=de(y,2),S=C[0],x=C[1],w=s.useState([]),E=de(w,2),R=E[0],N=E[1],I=n.map(function(P){return{config:P,key:String(P.key)}}),M=qz(g),j=de(M,2),T=j[0],z=j[1],L=z.offset,D=z.threshold,A=z.gap,_=T&&(R.length>0||I.length<=D),V=typeof u=="function"?u(r):u;return s.useEffect(function(){T&&R.length>1&&N(function(P){return P.filter(function(B){return I.some(function(K){var G=K.key;return B===G})})})},[R,I,T]),s.useEffect(function(){var P;if(T&&b.current[(P=I[I.length-1])===null||P===void 0?void 0:P.key]){var B;x(b.current[(B=I[I.length-1])===null||B===void 0?void 0:B.key])}},[I,T]),le.createElement(uR,Oe({key:r,className:te(a,"".concat(a,"-").concat(r),h==null?void 0:h.list,l,q(q({},"".concat(a,"-stack"),!!T),"".concat(a,"-stack-expanded"),_)),style:c,keys:I,motionAppear:!0},V,{onAllRemoved:function(){d(r)}}),function(P,B){var K=P.config,G=P.className,Q=P.style,k=P.index,U=K,W=U.key,X=U.times,J=String(W),ne=K,se=ne.className,re=ne.style,oe=ne.classNames,Se=ne.styles,me=Pt(ne,Gz),ie=I.findIndex(function(xe){return xe.key===J}),ge={};if(T){var ue=I.length-1-(ie>-1?ie:k-1),ae=r==="top"||r==="bottom"?"-50%":"0";if(ue>0){var ce,ye,Ce;ge.height=_?(ce=b.current[J])===null||ce===void 0?void 0:ce.offsetHeight:S==null?void 0:S.offsetHeight;for(var je=0,ze=0;ze<ue;ze++){var ve;je+=((ve=b.current[I[I.length-1-ze].key])===null||ve===void 0?void 0:ve.offsetHeight)+A}var Te=(_?je:ue*L)*(r.startsWith("top")?1:-1),Ee=!_&&S!==null&&S!==void 0&&S.offsetWidth&&(ye=b.current[J])!==null&&ye!==void 0&&ye.offsetWidth?((S==null?void 0:S.offsetWidth)-L*2*(ue<3?ue:3))/((Ce=b.current[J])===null||Ce===void 0?void 0:Ce.offsetWidth):1;ge.transform="translate3d(".concat(ae,", ").concat(Te,"px, 0) scaleX(").concat(Ee,")")}else ge.transform="translate3d(".concat(ae,", 0, 0)")}return le.createElement("div",{ref:B,className:te("".concat(a,"-notice-wrapper"),G,oe==null?void 0:oe.wrapper),style:ee(ee(ee({},Q),ge),Se==null?void 0:Se.wrapper),onMouseEnter:function(){return N(function(Ve){return Ve.includes(J)?Ve:[].concat(De(Ve),[J])})},onMouseLeave:function(){return N(function(Ve){return Ve.filter(function(Xe){return Xe!==J})})}},le.createElement(Uz,Oe({},me,{ref:function(Ve){ie>-1?b.current[J]=Ve:delete b.current[J]},prefixCls:a,classNames:oe,styles:Se,className:te(se,h==null?void 0:h.notice),style:re,times:X,key:W,eventKey:W,onNoticeClose:m,hovering:T&&R.length>0})))})},Yz=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,l=e.motion,c=e.maxCount,u=e.className,d=e.style,m=e.onAllRemoved,g=e.stack,v=e.renderNotifications,h=s.useState([]),b=de(h,2),y=b[0],C=b[1],S=function(T){var z,L=y.find(function(D){return D.key===T});L==null||(z=L.onClose)===null||z===void 0||z.call(L),C(function(D){return D.filter(function(A){return A.key!==T})})};s.useImperativeHandle(t,function(){return{open:function(T){C(function(z){var L=De(z),D=L.findIndex(function(V){return V.key===T.key}),A=ee({},T);if(D>=0){var _;A.times=(((_=z[D])===null||_===void 0?void 0:_.times)||0)+1,L[D]=A}else A.times=0,L.push(A);return c>0&&L.length>c&&(L=L.slice(-c)),L})},close:function(T){S(T)},destroy:function(){C([])}}});var x=s.useState({}),w=de(x,2),E=w[0],R=w[1];s.useEffect(function(){var j={};y.forEach(function(T){var z=T.placement,L=z===void 0?"topRight":z;L&&(j[L]=j[L]||[],j[L].push(T))}),Object.keys(E).forEach(function(T){j[T]=j[T]||[]}),R(j)},[y]);var N=function(T){R(function(z){var L=ee({},z),D=L[T]||[];return D.length||delete L[T],L})},I=s.useRef(!1);if(s.useEffect(function(){Object.keys(E).length>0?I.current=!0:I.current&&(m==null||m(),I.current=!1)},[E]),!a)return null;var M=Object.keys(E);return Uo.createPortal(s.createElement(s.Fragment,null,M.map(function(j){var T=E[j],z=s.createElement(Xz,{key:j,configList:T,placement:j,prefixCls:r,className:u==null?void 0:u(j),style:d==null?void 0:d(j),motion:l,onNoticeClose:S,onAllNoticeRemoved:N,stack:g});return v?v(z,{prefixCls:r,key:j}):z})),a)}),Qz=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Zz=function(){return document.body},T$=0;function Jz(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(l){var c=a[l];c!==void 0&&(e[l]=c)})}),e}function xR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Zz:t,r=e.motion,a=e.prefixCls,l=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,m=e.stack,g=e.renderNotifications,v=Pt(e,Qz),h=s.useState(),b=de(h,2),y=b[0],C=b[1],S=s.useRef(),x=s.createElement(Yz,{container:y,ref:S,prefixCls:a,motion:r,maxCount:l,className:c,style:u,onAllRemoved:d,stack:m,renderNotifications:g}),w=s.useState([]),E=de(w,2),R=E[0],N=E[1],I=Sn(function(j){var T=Jz(v,j);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(T$),T$+=1),N(function(z){return[].concat(De(z),[{type:"open",config:T}])})}),M=s.useMemo(function(){return{open:I,close:function(T){N(function(z){return[].concat(De(z),[{type:"close",key:T}])})},destroy:function(){N(function(T){return[].concat(De(T),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){C(n())}),s.useEffect(function(){if(S.current&&R.length){R.forEach(function(z){switch(z.type){case"open":S.current.open(z.config);break;case"close":S.current.close(z.key);break;case"destroy":S.current.destroy();break}});var j,T;N(function(z){return(j!==z||!T)&&(j=z,T=z.filter(function(L){return!R.includes(L)})),T})}},[R]),[M,x]}var e_={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"},t_=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:e_}))},_l=s.forwardRef(t_);function vm(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function pm(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function I$(e){const{closable:t,closeIcon:n}=e||{};return le.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const n_={},$R=(e,t,n=n_)=>{const r=I$(e),a=I$(t),[l]=co("global",io.global),c=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=le.useMemo(()=>Object.assign({closeIcon:le.createElement(Hi,null)},n),[n]),d=le.useMemo(()=>r===!1?!1:r?vm(u,a,r):a===!1?!1:a?vm(u,a):u.closable?u:!1,[r,a,u]);return le.useMemo(()=>{var m,g;if(d===!1)return[!1,null,c,{}];const{closeIconRender:v}=u,{closeIcon:h}=d;let b=h;const y=Ar(d,!0);return b!=null&&(v&&(b=v(h)),b=le.isValidElement(b)?le.cloneElement(b,Object.assign(Object.assign(Object.assign({},b.props),{"aria-label":(g=(m=b.props)===null||m===void 0?void 0:m["aria-label"])!==null&&g!==void 0?g:l.close}),y)):le.createElement("span",Object.assign({"aria-label":l.close},y),b)),[!0,b,c,y]},[c,l.close,d,u])},wR=()=>le.useReducer(e=>e+1,0),r_=e=>{const[t,n]=s.useState(null);return[s.useCallback((a,l,c)=>{const u=t??a,d=Math.min(u||0,a),m=Math.max(u||0,a),g=l.slice(d,m+1).map(e),v=g.some(b=>!c.has(b)),h=[];return g.forEach(b=>{v?(c.has(b)||h.push(b),c.add(b)):(c.delete(b),h.push(b))}),n(v?m:null),h},[t]),n]},a_=()=>{const[e,t]=s.useState([]),n=s.useCallback(r=>(t(a=>[].concat(De(a),[r])),()=>{t(a=>a.filter(l=>l!==r))}),[]);return[e,n]};function o_(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const i_=(e,t)=>s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,l){return n[l]?n[l]:Reflect.get(a,l)}}):o_(r,n)}),l_=e=>{const t=s.useRef(e),[,n]=wR();return[()=>t.current,r=>{t.current=r,n()}]},Gm=le.createContext(void 0),Ei=100,s_=10,Ab=Ei*s_,ER={Modal:Ei,Drawer:Ei,Popover:Ei,Popconfirm:Ei,Tooltip:Ei,Tour:Ei,FloatButton:Ei},c_={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u_(e){return e in ER}const Ku=(e,t)=>{const[,n]=jr(),r=le.useContext(Gm),a=u_(e);let l;if(t!==void 0)l=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+ER[e]:c+=c_[e],l=[r===void 0?t:c,c]}return l},d_=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:l,colorError:c,colorWarning:u,colorInfo:d,fontSizeLG:m,motionEaseInOutCirc:g,motionDurationSlow:v,marginXS:h,paddingXS:b,borderRadiusLG:y,zIndexPopup:C,contentPadding:S,contentBg:x}=e,w=`${t}-notice`,E=new Yt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),R=new Yt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),N={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:m},[`${w}-content`]:{display:"inline-block",padding:S,background:x,borderRadius:y,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
|
|
157
|
+
${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},cn(e)),{color:a,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
158
|
+
${t}-move-up-appear,
|
|
159
|
+
${t}-move-up-enter
|
|
160
|
+
`]:{animationName:E,animationDuration:v,animationPlayState:"paused",animationTimingFunction:g},[`
|
|
161
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
162
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
163
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:R,animationDuration:v,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},N)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},N),{padding:0,textAlign:"start"})}]},f_=e=>({zIndexPopup:e.zIndexPopupBase+Ab+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),m_=nn("Message",e=>{const t=Qt(e,{height:150});return d_(t)},f_),g_={info:s.createElement(qm,null),success:s.createElement(Vu,null),error:s.createElement(Pl,null),warning:s.createElement(zl,null),loading:s.createElement(_l,null)},v_=({prefixCls:e,type:t,icon:n,children:r})=>s.createElement("div",{className:te(`${e}-custom-content`,`${e}-${t}`)},n||g_[t],s.createElement("span",null,r));function p_(e,t){return{motionName:t??`${e}-move-up`}}function h_(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,l)=>n.then(a,l),r.promise=n,r}var b_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const y_=8,S_=3,C_=({children:e,prefixCls:t})=>{const n=Pr(t),[r,a,l]=m_(t,n);return r(s.createElement(CR,{classNames:{list:te(a,l,n)}},e))},x_=(e,{prefixCls:t,key:n})=>s.createElement(C_,{prefixCls:t,key:n},e),$_=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:l,duration:c=S_,rtl:u,transitionName:d,onAllRemoved:m}=e,{getPrefixCls:g,getPopupContainer:v,message:h,direction:b}=s.useContext(Ot),y=r||g("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??y_}),S=()=>te({[`${y}-rtl`]:u??b==="rtl"}),x=()=>p_(y,d),w=s.createElement("span",{className:`${y}-close-x`},s.createElement(Hi,{className:`${y}-close-icon`})),[E,R]=xR({prefixCls:y,style:C,className:S,motion:x,closable:!1,closeIcon:w,duration:c,getContainer:()=>(a==null?void 0:a())||(v==null?void 0:v())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:x_});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:y,message:h})),R});let M$=0;function w_(e){const t=s.useRef(null);return Oo(),[s.useMemo(()=>{const r=d=>{var m;(m=t.current)===null||m===void 0||m.close(d)},a=d=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:m,prefixCls:g,message:v}=t.current,h=`${g}-notice`,{content:b,icon:y,type:C,key:S,className:x,style:w,onClose:E}=d,R=b_(d,["content","icon","type","key","className","style","onClose"]);let N=S;return N==null&&(M$+=1,N=`antd-message-${M$}`),h_(I=>(m(Object.assign(Object.assign({},R),{key:N,content:s.createElement(v_,{prefixCls:g,type:C,icon:y},b),placement:"top",className:te(C&&`${h}-${C}`,x,v==null?void 0:v.className),style:Object.assign(Object.assign({},v==null?void 0:v.style),w),onClose:()=>{E==null||E(),I()}})),()=>{r(N)}))},c={open:a,destroy:d=>{var m;d!==void 0?r(d):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const m=(g,v,h)=>{let b;g&&typeof g=="object"&&"content"in g?b=g:b={content:g};let y,C;typeof v=="function"?C=v:(y=v,C=h);const S=Object.assign(Object.assign({onClose:C,duration:y},b),{type:d});return a(S)};c[d]=m}),c},[]),s.createElement($_,Object.assign({key:"message-holder"},e,{ref:t}))]}function E_(e){return w_(e)}function OR(e,t){this.v=e,this.k=t}function ta(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ta=function(c,u,d,m){function g(v,h){ta(c,v,function(b){return this._invoke(v,h,b)})}u?a?a(c,u,{value:d,enumerable:!m,configurable:!m,writable:!m}):c[u]=d:(g("next",0),g("throw",1),g("return",2))},ta(e,t,n,r)}function Bb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(b,y,C,S){var x=y&&y.prototype instanceof u?y:u,w=Object.create(x.prototype);return ta(w,"_invoke",(function(E,R,N){var I,M,j,T=0,z=N||[],L=!1,D={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(V,P){return I=V,M=0,j=e,D.n=P,c}};function A(_,V){for(M=_,j=V,t=0;!L&&T&&!P&&t<z.length;t++){var P,B=z[t],K=D.p,G=B[2];_>3?(P=G===V)&&(j=B[(M=B[4])?5:(M=3,3)],B[4]=B[5]=e):B[0]<=K&&((P=_<2&&K<B[1])?(M=0,D.v=V,D.n=B[1]):K<G&&(P=_<3||B[0]>V||V>G)&&(B[4]=_,B[5]=V,D.n=G,M=0))}if(P||_>1)return c;throw L=!0,V}return function(_,V,P){if(T>1)throw TypeError("Generator is already running");for(L&&V===1&&A(V,P),M=V,j=P;(t=M<2?e:j)||!L;){I||(M?M<3?(M>1&&(D.n=-1),A(M,j)):D.n=j:D.v=j);try{if(T=2,I){if(M||(_="next"),t=I[_]){if(!(t=t.call(I,j)))throw TypeError("iterator result is not an object");if(!t.done)return t;j=t.value,M<2&&(M=0)}else M===1&&(t=I.return)&&t.call(I),M<2&&(j=TypeError("The iterator does not provide a '"+_+"' method"),M=1);I=e}else if((t=(L=D.n<0)?j:E.call(R,D))!==c)break}catch(B){I=e,M=1,j=B}finally{T=1}}return{value:t,done:L}}})(b,C,S),!0),w}var c={};function u(){}function d(){}function m(){}t=Object.getPrototypeOf;var g=[][r]?t(t([][r]())):(ta(t={},r,function(){return this}),t),v=m.prototype=u.prototype=Object.create(g);function h(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,m):(b.__proto__=m,ta(b,a,"GeneratorFunction")),b.prototype=Object.create(v),b}return d.prototype=m,ta(v,"constructor",m),ta(m,"constructor",d),d.displayName="GeneratorFunction",ta(m,a,"GeneratorFunction"),ta(v),ta(v,a,"Generator"),ta(v,r,function(){return this}),ta(v,"toString",function(){return"[object Generator]"}),(Bb=function(){return{w:l,m:h}})()}function hm(e,t){function n(a,l,c,u){try{var d=e[a](l),m=d.value;return m instanceof OR?t.resolve(m.v).then(function(g){n("next",g,c,u)},function(g){n("throw",g,c,u)}):t.resolve(m).then(function(g){d.value=g,c(d)},function(g){return n("throw",g,c,u)})}catch(g){u(g)}}var r;this.next||(ta(hm.prototype),ta(hm.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ta(this,"_invoke",function(a,l,c){function u(){return new t(function(d,m){n(a,c,d,m)})}return r=r?r.then(u,u):u()},!0)}function RR(e,t,n,r,a){return new hm(Bb().w(e,t,n,r),a||Promise)}function O_(e,t,n,r,a){var l=RR(e,t,n,r,a);return l.next().then(function(c){return c.done?c.value:l.next()})}function R_(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function j$(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError($t(e)+" is not iterable")}function aa(){var e=Bb(),t=e.m(aa),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(c){var u=typeof c=="function"&&c.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function l(c){var u,d;return function(m){u||(u={stop:function(){return d(m.a,2)},catch:function(){return m.v},abrupt:function(v,h){return d(m.a,a[v],h)},delegateYield:function(v,h,b){return u.resultName=h,d(m.d,j$(v),b)},finish:function(v){return d(m.f,v)}},d=function(v,h,b){m.p=u.prev,m.n=u.next;try{return v(h,b)}finally{u.next=m.n}}),u.resultName&&(u[u.resultName]=m.v,u.resultName=void 0),u.sent=m.v,u.next=m.n;try{return c.call(this,u)}finally{m.p=u.prev,m.n=u.next}}}return(aa=function(){return{wrap:function(d,m,g,v){return e.w(l(d),m,g,v&&v.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,m){return new OR(d,m)},AsyncIterator:hm,async:function(d,m,g,v,h){return(r(m)?RR:O_)(l(d),m,g,v,h)},keys:R_,values:j$}})()}function P$(e,t,n,r,a,l,c){try{var u=e[l](c),d=u.value}catch(m){return void n(m)}u.done?t(d):Promise.resolve(d).then(r,a)}function Dl(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function c(d){P$(l,r,a,c,u,"next",d)}function u(d){P$(l,r,a,c,u,"throw",d)}c(void 0)})}}var Wu=ee({},Q4),N_=Wu.version,Up=Wu.render,T_=Wu.unmountComponentAtNode,Xm;try{var I_=Number((N_||"").split(".")[0]);I_>=18&&(Xm=Wu.createRoot)}catch{}function z$(e){var t=Wu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&$t(t)==="object"&&(t.usingClientEntryPoint=e)}var bm="__rc_react_root__";function M_(e,t){z$(!0);var n=t[bm]||Xm(t);z$(!1),n.render(e),t[bm]=n}function j_(e,t){Up==null||Up(e,t)}function P_(e,t){if(Xm){M_(e,t);return}j_(e,t)}function z_(e){return C0.apply(this,arguments)}function C0(){return C0=Dl(aa().mark(function e(t){return aa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[bm])===null||a===void 0||a.unmount(),delete t[bm]}));case 1:case"end":return r.stop()}},e)})),C0.apply(this,arguments)}function __(e){T_(e)}function D_(e){return x0.apply(this,arguments)}function x0(){return x0=Dl(aa().mark(function e(t){return aa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Xm===void 0){r.next=2;break}return r.abrupt("return",z_(t));case 2:__(t);case 3:case"end":return r.stop()}},e)})),x0.apply(this,arguments)}const A_=(e,t)=>(P_(e,t),()=>D_(t));let _$=A_;function Lb(e){return e&&(_$=e),_$}const qp=()=>({height:0,opacity:0}),D$=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},B_=e=>({height:e?e.offsetHeight:0}),Gp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Mu=(e=Iu)=>({motionName:`${e}-motion-collapse`,onAppearStart:qp,onEnterStart:qp,onAppearActive:D$,onEnterActive:D$,onLeaveStart:B_,onLeaveActive:qp,onAppearEnd:Gp,onEnterEnd:Gp,onLeaveEnd:Gp,motionDeadline:500}),_i=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function _n(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Uu=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),l=a.width,c=a.height;if(l||c)return!0}}return!1}),L_=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},H_=$6("Wave",L_),Ym=`${Iu}-wave-target`;function F_(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function k_(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(F_))!==null&&t!==void 0?t:null}function Xp(e){return Number.isNaN(e)?0:e}const V_=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,l=s.useRef(null),c=s.useRef(null);s.useEffect(()=>{c.current=a()},[]);const[u,d]=s.useState(null),[m,g]=s.useState([]),[v,h]=s.useState(0),[b,y]=s.useState(0),[C,S]=s.useState(0),[x,w]=s.useState(0),[E,R]=s.useState(!1),N={left:v,top:b,width:C,height:x,borderRadius:m.map(j=>`${j}px`).join(" ")};u&&(N["--wave-color"]=u);function I(){const j=getComputedStyle(n);d(k_(n));const T=j.position==="static",{borderLeftWidth:z,borderTopWidth:L}=j;h(T?n.offsetLeft:Xp(-Number.parseFloat(z))),y(T?n.offsetTop:Xp(-Number.parseFloat(L))),S(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:D,borderTopRightRadius:A,borderBottomLeftRadius:_,borderBottomRightRadius:V}=j;g([D,A,V,_].map(P=>Xp(Number.parseFloat(P))))}if(s.useEffect(()=>{if(n){const j=tn(()=>{I(),R(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(n)),()=>{tn.cancel(j),T==null||T.disconnect()}}},[n]),!E)return null;const M=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ym));return s.createElement(Sa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(j,T)=>{var z,L;if(T.deadline||T.propertyName==="opacity"){const D=(z=l.current)===null||z===void 0?void 0:z.parentElement;(L=c.current)===null||L===void 0||L.call(c).then(()=>{D==null||D.remove()})}return!1}},({className:j},T)=>s.createElement("div",{ref:Lr(l,T),className:te(t,j,{"wave-quick":M}),style:N}))},K_=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const l=Lb();let c=null;function u(){return c}c=l(s.createElement(V_,Object.assign({},t,{target:e,registerUnmount:u})),a)},W_=(e,t,n)=>{const{wave:r}=s.useContext(Ot),[,a,l]=jr(),c=Sn(m=>{const g=e.current;if(r!=null&&r.disabled||!g)return;const v=g.querySelector(`.${Ym}`)||g,{showEffect:h}=r||{};(h||K_)(v,{className:t,token:a,component:n,event:m,hashId:l})}),u=s.useRef(null);return m=>{tn.cancel(u.current),u.current=tn(()=>{c(m)})}},qu=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=s.useContext(Ot),l=s.useRef(null),c=a("wave"),[,u]=H_(c),d=W_(l,te(c,u),r);if(le.useEffect(()=>{const g=l.current;if(!g||g.nodeType!==window.Node.ELEMENT_NODE||n)return;const v=h=>{!Uu(h.target)||!g.getAttribute||g.getAttribute("disabled")||g.disabled||g.className.includes("disabled")&&!g.className.includes("disabled:")||g.getAttribute("aria-disabled")==="true"||g.className.includes("-leave")||d(h)};return g.addEventListener("click",v,!0),()=>{g.removeEventListener("click",v,!0)}},[n]),!le.isValidElement(t))return t??null;const m=oo(t)?Lr(Li(t),l):l;return wr(t,{ref:m})},Hr=e=>{const t=le.useContext(El);return le.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},U_=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},q_=nn(["Space","Compact"],e=>[U_(e)],()=>({}),{resetStyle:!1});var NR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Qm=s.createContext(null),Fi=(e,t)=>{const n=s.useContext(Qm),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:l,isLastItem:c}=n,u=a==="vertical"?"-vertical-":"-";return te(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:c,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},G_=e=>{const{children:t}=e;return s.createElement(Qm.Provider,{value:null},t)},X_=e=>{const{children:t}=e,n=NR(e,["children"]);return s.createElement(Qm.Provider,{value:s.useMemo(()=>n,[n])},t)},Y_=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ot),{size:r,direction:a,block:l,prefixCls:c,className:u,rootClassName:d,children:m}=e,g=NR(e,["size","direction","block","prefixCls","className","rootClassName","children"]),v=Hr(E=>r??E),h=t("space-compact",c),[b,y]=q_(h),C=te(h,y,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:l,[`${h}-vertical`]:a==="vertical"},u,d),S=s.useContext(Qm),x=Ir(m),w=s.useMemo(()=>x.map((E,R)=>{const N=(E==null?void 0:E.key)||`${h}-item-${R}`;return s.createElement(X_,{key:N,compactSize:v,compactDirection:a,isFirstItem:R===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:R===x.length-1&&(!S||(S==null?void 0:S.isLastItem))},E)}),[x,S,a,v,h]);return x.length===0?null:b(s.createElement("div",Object.assign({className:C},g),w))};var Q_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TR=s.createContext(void 0),Z_=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ot),{prefixCls:r,size:a,className:l}=e,c=Q_(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=jr(),m=s.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),g=te(u,{[`${u}-${m}`]:m,[`${u}-rtl`]:n==="rtl"},l,d);return s.createElement(TR.Provider,{value:a},s.createElement("div",Object.assign({},c,{className:g})))},A$=/^[\u4E00-\u9FA5]{2}$/,$0=A$.test.bind(A$);function Hb(e){return e==="danger"?{danger:!0}:{type:e}}function B$(e){return typeof e=="string"}function Yp(e){return e==="text"||e==="link"}function J_(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&B$(e.type)&&$0(e.props.children)?wr(e,{children:e.props.children.split("").join(n)}):B$(e)?$0(e)?le.createElement("span",null,e.split("").join(n)):le.createElement("span",null,e):bR(e)?le.createElement("span",null,e):e}function e8(e,t){let n=!1;const r=[];return le.Children.forEach(e,a=>{const l=typeof a,c=l==="string"||l==="number";if(n&&c){const u=r.length-1,d=r[u];r[u]=`${d}${a}`}else r.push(a);n=c}),le.Children.map(r,a=>J_(a,t))}["default","primary","danger"].concat(De(Pi));const IR=s.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:l}=e,c=te(`${l}-icon`,n);return le.createElement("span",{ref:t,className:c,style:r},a)}),L$=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:l}=e,c=te(`${n}-loading-icon`,r);return le.createElement(IR,{prefixCls:n,className:c,style:a,ref:t},le.createElement(_l,{className:l}))}),Qp=()=>({width:0,opacity:0,transform:"scale(0)"}),Zp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),t8=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:l,mount:c}=e,u=!!n;return r?le.createElement(L$,{prefixCls:t,className:a,style:l}):le.createElement(Sa,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Qp,onAppearActive:Zp,onEnterStart:Qp,onEnterActive:Zp,onLeaveStart:Zp,onLeaveActive:Qp},({className:d,style:m},g)=>{const v=Object.assign(Object.assign({},l),m);return le.createElement(L$,{prefixCls:t,className:te(a,d),style:v,ref:g})})},H$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),n8=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},H$(`${t}-primary`,a),H$(`${t}-danger`,l)]}};var r8=["b"],a8=["v"],Jp=function(t){return Math.round(Number(t||0))},o8=function(t){if(t instanceof un)return t;if(t&&$t(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Pt(n,r8);return ee(ee({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ju=(function(e){so(n,e);var t=Eo(n);function n(r){return rr(this,n),t.call(this,o8(r))}return ar(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),l=Jp(a.s*100),c=Jp(a.b*100),u=Jp(a.h),d=a.a,m="hsb(".concat(u,", ").concat(l,"%, ").concat(c,"%)"),g="hsba(".concat(u,", ").concat(l,"%, ").concat(c,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?m:g}},{key:"toHsb",value:function(){var a=this.toHsv(),l=a.v,c=Pt(a,a8);return ee(ee({},c),{},{b:l,a:this.a})}}]),n})(un),i8=function(t){return t instanceof ju?t:new ju(t)};i8("#1677ff");const l8=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",s8=(e,t)=>e?l8(e,t):"";let w0=(function(){function e(t){rr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:l})=>({color:new e(a),percent:l})),this.metaColor=new ju(this.colors[0].color.metaColor)):this.metaColor=new ju(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ar(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return s8(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const l=n.colors[a];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var c8={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"},u8=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:c8}))},Vs=s.forwardRef(u8),MR=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,l=e.style,c=e.children,u=e.isActive,d=e.role,m=e.classNames,g=e.styles,v=le.useState(u||r),h=de(v,2),b=h[0],y=h[1];return le.useEffect(function(){(r||u)&&y(!0)},[r,u]),b?le.createElement("div",{ref:t,className:te("".concat(n,"-content"),q(q({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:l,role:d},le.createElement("div",{className:te("".concat(n,"-content-box"),m==null?void 0:m.body),style:g==null?void 0:g.body},c)):null});MR.displayName="PanelContent";var d8=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],jR=le.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,m=e.classNames,g=m===void 0?{}:m,v=e.styles,h=v===void 0?{}:v,b=e.prefixCls,y=e.collapsible,C=e.accordion,S=e.panelKey,x=e.extra,w=e.header,E=e.expandIcon,R=e.openMotion,N=e.destroyInactivePanel,I=e.children,M=Pt(e,d8),j=y==="disabled",T=x!=null&&typeof x!="boolean",z=q(q(q({onClick:function(){c==null||c(S)},onKeyDown:function(B){(B.key==="Enter"||B.keyCode===ft.ENTER||B.which===ft.ENTER)&&(c==null||c(S))},role:C?"tab":"button"},"aria-expanded",l),"aria-disabled",j),"tabIndex",j?-1:0),L=typeof E=="function"?E(e):le.createElement("i",{className:"arrow"}),D=L&&le.createElement("div",Oe({className:"".concat(b,"-expand-icon")},["header","icon"].includes(y)?z:{}),L),A=te("".concat(b,"-item"),q(q({},"".concat(b,"-item-active"),l),"".concat(b,"-item-disabled"),j),d),_=te(a,"".concat(b,"-header"),q({},"".concat(b,"-collapsible-").concat(y),!!y),g.header),V=ee({className:_,style:h.header},["header","icon"].includes(y)?{}:z);return le.createElement("div",Oe({},M,{ref:t,className:A}),le.createElement("div",V,r&&D,le.createElement("span",Oe({className:"".concat(b,"-header-text")},y==="header"?z:{}),w),T&&le.createElement("div",{className:"".concat(b,"-extra")},x)),le.createElement(Sa,Oe({visible:l,leavedClassName:"".concat(b,"-content-hidden")},R,{forceRender:u,removeOnLeave:N}),function(P,B){var K=P.className,G=P.style;return le.createElement(MR,{ref:B,prefixCls:b,className:K,classNames:g,style:G,styles:h,isActive:l,forceRender:u,role:C?"tabpanel":void 0},I)}))}),f8=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],m8=function(t,n){var r=n.prefixCls,a=n.accordion,l=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,m=n.openMotion,g=n.expandIcon;return t.map(function(v,h){var b=v.children,y=v.label,C=v.key,S=v.collapsible,x=v.onItemClick,w=v.destroyInactivePanel,E=Pt(v,f8),R=String(C??h),N=S??l,I=w??c,M=function(z){N!=="disabled"&&(u(z),x==null||x(z))},j=!1;return a?j=d[0]===R:j=d.indexOf(R)>-1,le.createElement(jR,Oe({},E,{prefixCls:r,key:R,panelKey:R,isActive:j,accordion:a,openMotion:m,expandIcon:g,header:y,collapsible:N,onItemClick:M,destroyInactivePanel:I}),b)})},g8=function(t,n,r){if(!t)return null;var a=r.prefixCls,l=r.accordion,c=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,m=r.activeKey,g=r.openMotion,v=r.expandIcon,h=t.key||String(n),b=t.props,y=b.header,C=b.headerClass,S=b.destroyInactivePanel,x=b.collapsible,w=b.onItemClick,E=!1;l?E=m[0]===h:E=m.indexOf(h)>-1;var R=x??c,N=function(j){R!=="disabled"&&(d(j),w==null||w(j))},I={key:h,panelKey:h,header:y,headerClass:C,isActive:E,prefixCls:a,destroyInactivePanel:S??u,openMotion:g,accordion:l,children:t.props.children,onItemClick:N,expandIcon:v,collapsible:R};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(M){typeof I[M]>"u"&&delete I[M]}),le.cloneElement(t,I))};function v8(e,t,n){return Array.isArray(e)?m8(e,n):Ir(t).map(function(r,a){return g8(r,a,n)})}function p8(e){var t=e;if(!Array.isArray(t)){var n=$t(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var h8=le.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,l=a===void 0?!1:a,c=e.style,u=e.accordion,d=e.className,m=e.children,g=e.collapsible,v=e.openMotion,h=e.expandIcon,b=e.activeKey,y=e.defaultActiveKey,C=e.onChange,S=e.items,x=te(r,d),w=Gn([],{value:b,onChange:function(T){return C==null?void 0:C(T)},defaultValue:y,postState:p8}),E=de(w,2),R=E[0],N=E[1],I=function(T){return N(function(){if(u)return R[0]===T?[]:[T];var z=R.indexOf(T),L=z>-1;return L?R.filter(function(D){return D!==T}):[].concat(De(R),[T])})};Xn(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var M=v8(S,m,{prefixCls:r,accordion:u,openMotion:v,expandIcon:h,collapsible:g,destroyInactivePanel:l,onItemClick:I,activeKey:R});return le.createElement("div",Oe({ref:t,className:x,style:c,role:u?"tablist":void 0},Ar(e,{aria:!0,data:!0})),M)});const Fb=Object.assign(h8,{Panel:jR});Fb.Panel;const b8=s.forwardRef((e,t)=>{const{getPrefixCls:n}=s.useContext(Ot),{prefixCls:r,className:a,showArrow:l=!0}=e,c=n("collapse",r),u=te({[`${c}-no-arrow`]:!l},a);return s.createElement(Fb.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),Zm=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
164
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
165
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),y8=e=>({animationDuration:e,animationFillMode:"both"}),S8=e=>({animationDuration:e,animationFillMode:"both"}),Jm=(e,t,n,r,a=!1)=>{const l=a?"&":"";return{[`
|
|
166
|
+
${l}${e}-enter,
|
|
167
|
+
${l}${e}-appear
|
|
168
|
+
`]:Object.assign(Object.assign({},y8(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},S8(r)),{animationPlayState:"paused"}),[`
|
|
169
|
+
${l}${e}-enter${e}-enter-active,
|
|
170
|
+
${l}${e}-appear${e}-appear-active
|
|
171
|
+
`]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},C8=new Yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),x8=new Yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$8=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Jm(r,C8,x8,e.motionDurationMid,t),{[`
|
|
172
|
+
${a}${r}-enter,
|
|
173
|
+
${a}${r}-appear
|
|
174
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},w8=new Yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),E8=new Yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),O8=new Yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R8=new Yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N8=new Yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T8=new Yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I8=new Yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M8=new Yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),j8={"move-up":{inKeyframes:I8,outKeyframes:M8},"move-down":{inKeyframes:w8,outKeyframes:E8},"move-left":{inKeyframes:O8,outKeyframes:R8},"move-right":{inKeyframes:N8,outKeyframes:T8}},ym=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=j8[t];return[Jm(r,a,l,e.motionDurationMid),{[`
|
|
175
|
+
${r}-enter,
|
|
176
|
+
${r}-appear
|
|
177
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},kb=new Yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vb=new Yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kb=new Yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Wb=new Yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),P8=new Yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),z8=new Yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),_8=new Yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),D8=new Yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),A8={"slide-up":{inKeyframes:kb,outKeyframes:Vb},"slide-down":{inKeyframes:Kb,outKeyframes:Wb},"slide-left":{inKeyframes:P8,outKeyframes:z8},"slide-right":{inKeyframes:_8,outKeyframes:D8}},Di=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=A8[t];return[Jm(r,a,l,e.motionDurationMid),{[`
|
|
178
|
+
${r}-enter,
|
|
179
|
+
${r}-appear
|
|
180
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ub=new Yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),B8=new Yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),F$=new Yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),k$=new Yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),L8=new Yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),H8=new Yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),F8=new Yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),k8=new Yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),V8=new Yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),K8=new Yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),W8=new Yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),U8=new Yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),q8={zoom:{inKeyframes:Ub,outKeyframes:B8},"zoom-big":{inKeyframes:F$,outKeyframes:k$},"zoom-big-fast":{inKeyframes:F$,outKeyframes:k$},"zoom-left":{inKeyframes:F8,outKeyframes:k8},"zoom-right":{inKeyframes:V8,outKeyframes:K8},"zoom-up":{inKeyframes:L8,outKeyframes:H8},"zoom-down":{inKeyframes:W8,outKeyframes:U8}},Gu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=q8[t];return[Jm(r,a,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
181
|
+
${r}-enter,
|
|
182
|
+
${r}-appear
|
|
183
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},G8=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:l,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:m,lineType:g,colorBorder:v,colorText:h,colorTextHeading:b,colorTextDisabled:y,fontSizeLG:C,lineHeight:S,lineHeightLG:x,marginSM:w,paddingSM:E,paddingLG:R,paddingXS:N,motionDurationSlow:I,fontSizeIcon:M,contentPadding:j,fontHeight:T,fontHeightLG:z}=e,L=`${Z(m)} ${g} ${v}`;return{[t]:Object.assign(Object.assign({},cn(e)),{backgroundColor:a,border:L,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
|
|
184
|
+
&,
|
|
185
|
+
& > ${t}-header`]:{borderRadius:`${Z(d)} ${Z(d)} 0 0`}},"&:last-child":{[`
|
|
186
|
+
&,
|
|
187
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${Z(d)} ${Z(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:b,lineHeight:S,cursor:"pointer",transition:`all ${I}, visibility 0s`},Xa(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},jl()),{fontSize:M,transition:`transform ${I}`,svg:{transition:`transform ${I}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:L,[`& > ${t}-content-box`]:{padding:j},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:N,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(E).sub(N).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:C,lineHeight:x,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:z,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:R}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Z(d)} ${Z(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:y,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},X8=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Y8=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
|
|
188
|
+
> ${t}-item:last-child,
|
|
189
|
+
> ${t}-item:last-child ${t}-header
|
|
190
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},Q8=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Z8=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),J8=nn("Collapse",e=>{const t=Qt(e,{collapseHeaderPaddingSM:`${Z(e.paddingXS)} ${Z(e.paddingSM)}`,collapseHeaderPaddingLG:`${Z(e.padding)} ${Z(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[G8(t),Y8(t),Q8(t),X8(t),Zm(t)]},Z8),e5=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:l,style:c}=Er("collapse"),{prefixCls:u,className:d,rootClassName:m,style:g,bordered:v=!0,ghost:h,size:b,expandIconPosition:y="start",children:C,destroyInactivePanel:S,destroyOnHidden:x,expandIcon:w}=e,E=Hr(V=>{var P;return(P=b??V)!==null&&P!==void 0?P:"middle"}),R=n("collapse",u),N=n(),[I,M,j]=J8(R),T=s.useMemo(()=>y==="left"?"start":y==="right"?"end":y,[y]),z=w??a,L=s.useCallback((V={})=>{const P=typeof z=="function"?z(V):s.createElement(Vs,{rotate:V.isActive?r==="rtl"?-90:90:void 0,"aria-label":V.isActive?"expanded":"collapsed"});return wr(P,()=>{var B;return{className:te((B=P.props)===null||B===void 0?void 0:B.className,`${R}-arrow`)}})},[z,R,r]),D=te(`${R}-icon-position-${T}`,{[`${R}-borderless`]:!v,[`${R}-rtl`]:r==="rtl",[`${R}-ghost`]:!!h,[`${R}-${E}`]:E!=="middle"},l,d,m,M,j),A=s.useMemo(()=>Object.assign(Object.assign({},Mu(N)),{motionAppear:!1,leavedClassName:`${R}-content-hidden`}),[N,R]),_=s.useMemo(()=>C?Ir(C).map((V,P)=>{var B,K;const G=V.props;if(G!=null&&G.disabled){const Q=(B=V.key)!==null&&B!==void 0?B:String(P),k=Object.assign(Object.assign({},_n(V.props,["disabled"])),{key:Q,collapsible:(K=G.collapsible)!==null&&K!==void 0?K:"disabled"});return wr(V,k)}return V}):null,[C]);return I(s.createElement(Fb,Object.assign({ref:t,openMotion:A},_n(e,["rootClassName"]),{expandIcon:L,prefixCls:R,className:D,style:Object.assign(Object.assign({},c),g),destroyInactivePanel:x??S}),_))}),qb=Object.assign(e5,{Panel:b8}),t5=e=>e instanceof w0?e:new w0(e),n5=(e,t)=>{const{r:n,g:r,b:a,a:l}=e.toRgb(),c=new ju(e.toRgbString()).onBackground(t).toHsv();return l<=.5?c.v>.5:n*.299+r*.587+a*.114>192},PR=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Qt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},zR=e=>{var t,n,r,a,l,c;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,m=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,g=(a=e.contentLineHeight)!==null&&a!==void 0?a:Gf(u),v=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:Gf(d),h=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:Gf(m),b=n5(new w0(e.colorBgSolid),"#fff")?"#000":"#fff",y=Pi.reduce((C,S)=>Object.assign(Object.assign({},C),{[`${S}ShadowColor`]:`0 ${Z(e.controlOutlineWidth)} 0 ${cu(e[`${S}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},y),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:b,contentFontSize:u,contentFontSizeSM:d,contentFontSizeLG:m,contentLineHeight:g,contentLineHeightSM:v,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-u*g)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*v)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-m*h)/2-e.lineWidth,0)})},r5=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:l,motionEaseInOut:c,iconGap:u,calc:d}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:jl(),"> a":{color:"currentColor"},"&:not(:disabled)":Xa(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${l} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},_R=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),a5=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),o5=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),eg=(e,t,n,r,a,l,c,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},_R(e,Object.assign({background:t},c),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:l||void 0}})}),i5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},o5(e))}),l5=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),tg=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?l5:i5;return Object.assign(Object.assign({},l(e)),_R(e.componentCls,t,n))},ng=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},tg(e,r,a))}),rg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},tg(e,r,a))}),ag=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),og=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},tg(e,n,r))}),$o=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},tg(e,r,a,n))}),s5=e=>{const{componentCls:t}=e;return Pi.reduce((n,r)=>{const a=e[`${r}6`],l=e[`${r}1`],c=e[`${r}5`],u=e[`${r}2`],d=e[`${r}3`],m=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},ng(e,e.colorTextLightSolid,a,{background:c},{background:m})),rg(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),ag(e)),og(e,l,{color:a,background:u},{color:a,background:d})),$o(e,a,"link",{color:c},{color:m})),$o(e,a,"text",{color:c,background:l},{color:m,background:d}))})},{})},c5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ng(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ag(e)),og(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),eg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),$o(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),u5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},rg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ag(e)),og(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),$o(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),$o(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),eg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),d5=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ng(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),rg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ag(e)),og(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),$o(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),$o(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),eg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),f5=e=>Object.assign(Object.assign({},$o(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),eg(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),m5=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:c5(e),[`${t}-color-primary`]:u5(e),[`${t}-color-dangerous`]:d5(e),[`${t}-color-link`]:f5(e)},s5(e))},g5=e=>Object.assign(Object.assign(Object.assign(Object.assign({},rg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),$o(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ng(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),$o(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Gb=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:a,height:r,padding:`${Z(d)} ${Z(c)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:a5(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},v5=e=>{const t=Qt(e,{fontSize:e.contentFontSize});return Gb(t,e.componentCls)},p5=e=>{const t=Qt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Gb(t,`${e.componentCls}-sm`)},h5=e=>{const t=Qt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Gb(t,`${e.componentCls}-lg`)},b5=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},y5=nn("Button",e=>{const t=PR(e);return[r5(t),v5(t),p5(t),h5(t),b5(t),m5(t),g5(t),n8(t)]},zR,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function S5(e,t,n,r){const{focusElCls:a,focus:l,borderElCls:c}=n,u=c?"> *":"",d=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[d]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function C5(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xu(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,l=`${a}-compact`;return{[l]:Object.assign(Object.assign({},S5(e,l,t,a)),C5(a,l,t))}}function x5(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function $5(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 w5(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},x5(e,t,e.componentCls)),$5(e.componentCls,t))}}const E5=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,l=a(r).mul(-1).equal(),c=u=>{const d=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},c()),c(!0))},O5=Xs(["Button","compact"],e=>{const t=PR(e);return[Xu(t),w5(t),E5(t)]},zR);var R5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function N5(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const T5={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},I5=le.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:l,color:c,variant:u,type:d,danger:m=!1,shape:g,size:v,styles:h,disabled:b,className:y,rootClassName:C,children:S,icon:x,iconPosition:w="start",ghost:E=!1,block:R=!1,htmlType:N="button",classNames:I,style:M={},autoInsertSpace:j,autoFocus:T}=e,z=R5(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=d||"default",{button:D}=le.useContext(Ot),A=g||(D==null?void 0:D.shape)||"default",[_,V]=s.useMemo(()=>{if(c&&u)return[c,u];if(d||m){const mt=T5[L]||[];return m?["danger",mt[1]]:mt}return D!=null&&D.color&&(D!=null&&D.variant)?[D.color,D.variant]:["default","outlined"]},[c,u,d,m,D==null?void 0:D.color,D==null?void 0:D.variant,L]),B=_==="danger"?"dangerous":_,{getPrefixCls:K,direction:G,autoInsertSpace:Q,className:k,style:U,classNames:W,styles:X}=Er("button"),J=(n=j??Q)!==null&&n!==void 0?n:!0,ne=K("btn",l),[se,re,oe]=y5(ne),Se=s.useContext(ba),me=b??Se,ie=s.useContext(TR),ge=s.useMemo(()=>N5(a),[a]),[ue,ae]=s.useState(ge.loading),[ce,ye]=s.useState(!1),Ce=s.useRef(null),je=Yo(t,Ce),ze=s.Children.count(S)===1&&!x&&!Yp(V),ve=s.useRef(!0);le.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),en(()=>{let mt=null;ge.delay>0?mt=setTimeout(()=>{mt=null,ae(!0)},ge.delay):ae(ge.loading);function Dt(){mt&&(clearTimeout(mt),mt=null)}return Dt},[ge.delay,ge.loading]),s.useEffect(()=>{if(!Ce.current||!J)return;const mt=Ce.current.textContent||"";ze&&$0(mt)?ce||ye(!0):ce&&ye(!1)}),s.useEffect(()=>{T&&Ce.current&&Ce.current.focus()},[]);const Te=le.useCallback(mt=>{var Dt;if(ue||me){mt.preventDefault();return}(Dt=e.onClick)===null||Dt===void 0||Dt.call(e,("href"in e,mt))},[e.onClick,ue,me]),{compactSize:Ee,compactItemClassnames:xe}=Fi(ne,G),Ve={large:"lg",small:"sm",middle:void 0},Xe=Hr(mt=>{var Dt,At;return(At=(Dt=v??Ee)!==null&&Dt!==void 0?Dt:ie)!==null&&At!==void 0?At:mt}),it=Xe&&(r=Ve[Xe])!==null&&r!==void 0?r:"",at=ue?"loading":x,Ye=_n(z,["navigate"]),Je=te(ne,re,oe,{[`${ne}-${A}`]:A!=="default"&&A,[`${ne}-${L}`]:L,[`${ne}-dangerous`]:m,[`${ne}-color-${B}`]:B,[`${ne}-variant-${V}`]:V,[`${ne}-${it}`]:it,[`${ne}-icon-only`]:!S&&S!==0&&!!at,[`${ne}-background-ghost`]:E&&!Yp(V),[`${ne}-loading`]:ue,[`${ne}-two-chinese-chars`]:ce&&J&&!ue,[`${ne}-block`]:R,[`${ne}-rtl`]:G==="rtl",[`${ne}-icon-end`]:w==="end"},xe,y,C,k),_e=Object.assign(Object.assign({},U),M),Ie=te(I==null?void 0:I.icon,W.icon),We=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),X.icon||{}),Be=mt=>le.createElement(IR,{prefixCls:ne,className:Ie,style:We},mt),Ge=()=>le.createElement(t8,{existIcon:!!x,prefixCls:ne,loading:ue,mount:ve.current});let Me;x&&!ue?Me=Be(x):a&&typeof a=="object"&&a.icon?Me=Be(a.icon):Me=Ge();const Qe=S||S===0?e8(S,ze&&J):null;if(Ye.href!==void 0)return se(le.createElement("a",Object.assign({},Ye,{className:te(Je,{[`${ne}-disabled`]:me}),href:me?void 0:Ye.href,style:_e,onClick:Te,ref:je,tabIndex:me?-1:0,"aria-disabled":me}),Me,Qe));let lt=le.createElement("button",Object.assign({},z,{type:N,className:Je,style:_e,onClick:Te,disabled:me,ref:je}),Me,Qe,xe&&le.createElement(O5,{prefixCls:ne}));return Yp(V)||(lt=le.createElement(qu,{component:"Button",disabled:ue},lt)),se(lt)}),wn=I5;wn.Group=Z_;wn.__ANT_BUTTON=!0;const eh=e=>typeof(e==null?void 0:e.then)=="function",Xb=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:l,autoFocus:c,emitEvent:u,isSilent:d,quitOnNullishReturnValue:m,actionFn:g}=e,v=s.useRef(!1),h=s.useRef(null),[b,y]=Ol(!1),C=(...w)=>{l==null||l.apply(void 0,w)};s.useEffect(()=>{let w=null;return c&&(w=setTimeout(()=>{var E;(E=h.current)===null||E===void 0||E.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[c]);const S=w=>{eh(w)&&(y(!0),w.then((...E)=>{y(!1,!0),C.apply(void 0,E),v.current=!1},E=>{if(y(!1,!0),v.current=!1,!(d!=null&&d()))return Promise.reject(E)}))},x=w=>{if(v.current)return;if(v.current=!0,!g){C();return}let E;if(u){if(E=g(w),m&&!eh(E)){v.current=!1,C(w);return}}else if(g.length)E=g(l),v.current=!1;else if(E=g(),!eh(E)){C();return}S(E)};return s.createElement(wn,Object.assign({},Hb(t),{onClick:x,loading:b,prefixCls:r},a,{ref:h}),n)},Yu=le.createContext({}),{Provider:DR}=Yu,V$=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:u,onConfirm:d}=s.useContext(Yu);return a?le.createElement(Xb,{isSilent:r,actionFn:u,close:(...m)=>{c==null||c.apply(void 0,m),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},K$=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:u,onOk:d}=s.useContext(Yu);return le.createElement(Xb,{isSilent:n,type:c||"primary",actionFn:d,close:(...m)=>{t==null||t.apply(void 0,m),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},l)};var AR=s.createContext(null),W$=[];function M5(e,t){var n=s.useState(function(){if(!Yr())return null;var y=document.createElement("div");return y}),r=de(n,1),a=r[0],l=s.useRef(!1),c=s.useContext(AR),u=s.useState(W$),d=de(u,2),m=d[0],g=d[1],v=c||(l.current?void 0:function(y){g(function(C){var S=[y].concat(De(C));return S})});function h(){a.parentElement||document.body.appendChild(a),l.current=!0}function b(){var y;(y=a.parentElement)===null||y===void 0||y.removeChild(a),l.current=!1}return en(function(){return e?c?c(h):h():b(),b},[e]),en(function(){m.length&&(m.forEach(function(y){return y()}),g(W$))},[m]),[a,v]}var th;function BR(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,l;if(e){var c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),m=parseInt(u.height,10);try{var g=d?"width: ".concat(u.width,";"):"",v=m?"height: ".concat(u.height,";"):"";Ko(`
|
|
191
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
192
|
+
`).concat(g,`
|
|
193
|
+
`).concat(v,`
|
|
194
|
+
}`),t)}catch(y){console.error(y),a=d,l=m}}document.body.appendChild(n);var h=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,b=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ru(t),{width:h,height:b}}function U$(e){return typeof document>"u"?0:(th===void 0&&(th=BR()),th.width)}function E0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:BR(e)}function j5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var P5="rc-util-locker-".concat(Date.now()),q$=0;function z5(e){var t=!!e,n=s.useState(function(){return q$+=1,"".concat(P5,"_").concat(q$)}),r=de(n,1),a=r[0];en(function(){if(t){var l=E0(document.body).width,c=j5();Ko(`
|
|
195
|
+
html body {
|
|
196
|
+
overflow-y: hidden;
|
|
197
|
+
`.concat(c?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
198
|
+
}`),a)}else Ru(a);return function(){Ru(a)}},[t,a])}var _5=!1;function D5(e){return _5}var G$=function(t){return t===!1?!1:!Yr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Yb=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var l=e.autoDestroy,c=l===void 0?!0:l,u=e.children,d=s.useState(n),m=de(d,2),g=m[0],v=m[1],h=g||n;s.useEffect(function(){(c||n)&&v(n)},[n,c]);var b=s.useState(function(){return G$(a)}),y=de(b,2),C=y[0],S=y[1];s.useEffect(function(){var L=G$(a);S(L??null)});var x=M5(h&&!C),w=de(x,2),E=w[0],R=w[1],N=C??E;z5(r&&n&&Yr()&&(N===E||N===document.body));var I=null;if(u&&oo(u)&&t){var M=u;I=M.ref}var j=Yo(I,t);if(!h||!Yr()||C===void 0)return null;var T=N===!1||D5(),z=u;return t&&(z=s.cloneElement(u,{ref:j})),s.createElement(AR.Provider,{value:R},T?z:Uo.createPortal(z,N))}),LR=s.createContext({});function A5(){var e=ee({},Bm);return e.useId}var X$=0,Y$=A5();const ig=Y$?(function(t){var n=Y$();return t||n}):(function(t){var n=s.useState("ssr-id"),r=de(n,2),a=r[0],l=r[1];return s.useEffect(function(){var c=X$;X$+=1,l("rc_unique_".concat(c))},[]),t||a});function Q$(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Z$(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function B5(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=Z$(a),n.top+=Z$(a,!0),n}const L5=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var H5={width:0,height:0,overflow:"hidden",outline:"none"},F5={outline:"none"},HR=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.title,c=e.ariaId,u=e.footer,d=e.closable,m=e.closeIcon,g=e.onClose,v=e.children,h=e.bodyStyle,b=e.bodyProps,y=e.modalRender,C=e.onMouseDown,S=e.onMouseUp,x=e.holderRef,w=e.visible,E=e.forceRender,R=e.width,N=e.height,I=e.classNames,M=e.styles,j=le.useContext(LR),T=j.panel,z=Yo(x,T),L=s.useRef(),D=s.useRef();le.useImperativeHandle(t,function(){return{focus:function(){var U;(U=L.current)===null||U===void 0||U.focus({preventScroll:!0})},changeActive:function(U){var W=document,X=W.activeElement;U&&X===D.current?L.current.focus({preventScroll:!0}):!U&&X===L.current&&D.current.focus({preventScroll:!0})}}});var A={};R!==void 0&&(A.width=R),N!==void 0&&(A.height=N);var _=u?le.createElement("div",{className:te("".concat(n,"-footer"),I==null?void 0:I.footer),style:ee({},M==null?void 0:M.footer)},u):null,V=l?le.createElement("div",{className:te("".concat(n,"-header"),I==null?void 0:I.header),style:ee({},M==null?void 0:M.header)},le.createElement("div",{className:"".concat(n,"-title"),id:c},l)):null,P=s.useMemo(function(){return $t(d)==="object"&&d!==null?d:d?{closeIcon:m??le.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,m,n]),B=Ar(P,!0),K=$t(d)==="object"&&d.disabled,G=d?le.createElement("button",Oe({type:"button",onClick:g,"aria-label":"Close"},B,{className:"".concat(n,"-close"),disabled:K}),P.closeIcon):null,Q=le.createElement("div",{className:te("".concat(n,"-content"),I==null?void 0:I.content),style:M==null?void 0:M.content},G,V,le.createElement("div",Oe({className:te("".concat(n,"-body"),I==null?void 0:I.body),style:ee(ee({},h),M==null?void 0:M.body)},b),v),_);return le.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:z,style:ee(ee({},a),A),className:te(n,r),onMouseDown:C,onMouseUp:S},le.createElement("div",{ref:L,tabIndex:0,style:F5},le.createElement(L5,{shouldUpdate:w||E},y?y(Q):Q)),le.createElement("div",{tabIndex:0,ref:D,style:H5}))}),FR=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,l=e.className,c=e.visible,u=e.forceRender,d=e.destroyOnClose,m=e.motionName,g=e.ariaId,v=e.onVisibleChanged,h=e.mousePosition,b=s.useRef(),y=s.useState(),C=de(y,2),S=C[0],x=C[1],w={};S&&(w.transformOrigin=S);function E(){var R=B5(b.current);x(h&&(h.x||h.y)?"".concat(h.x-R.left,"px ").concat(h.y-R.top,"px"):"")}return s.createElement(Sa,{visible:c,onVisibleChanged:v,onAppearPrepare:E,onEnterPrepare:E,forceRender:u,motionName:m,removeOnLeave:d,ref:b},function(R,N){var I=R.className,M=R.style;return s.createElement(HR,Oe({},e,{ref:t,title:r,ariaId:g,prefixCls:n,holderRef:N,style:ee(ee(ee({},M),a),w),className:te(l,I)}))})});FR.displayName="Content";var k5=function(t){var n=t.prefixCls,r=t.style,a=t.visible,l=t.maskProps,c=t.motionName,u=t.className;return s.createElement(Sa,{key:"mask",visible:a,motionName:c,leavedClassName:"".concat(n,"-mask-hidden")},function(d,m){var g=d.className,v=d.style;return s.createElement("div",Oe({ref:m,style:ee(ee({},v),r),className:te("".concat(n,"-mask"),g,u)},l))})},V5=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,l=t.visible,c=l===void 0?!1:l,u=t.keyboard,d=u===void 0?!0:u,m=t.focusTriggerAfterClose,g=m===void 0?!0:m,v=t.wrapStyle,h=t.wrapClassName,b=t.wrapProps,y=t.onClose,C=t.afterOpenChange,S=t.afterClose,x=t.transitionName,w=t.animation,E=t.closable,R=E===void 0?!0:E,N=t.mask,I=N===void 0?!0:N,M=t.maskTransitionName,j=t.maskAnimation,T=t.maskClosable,z=T===void 0?!0:T,L=t.maskStyle,D=t.maskProps,A=t.rootClassName,_=t.classNames,V=t.styles,P=s.useRef(),B=s.useRef(),K=s.useRef(),G=s.useState(c),Q=de(G,2),k=Q[0],U=Q[1],W=ig();function X(){Yh(B.current,document.activeElement)||(P.current=document.activeElement)}function J(){if(!Yh(B.current,document.activeElement)){var ae;(ae=K.current)===null||ae===void 0||ae.focus()}}function ne(ae){if(ae)J();else{if(U(!1),I&&P.current&&g){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}k&&(S==null||S())}C==null||C(ae)}function se(ae){y==null||y(ae)}var re=s.useRef(!1),oe=s.useRef(),Se=function(){clearTimeout(oe.current),re.current=!0},me=function(){oe.current=setTimeout(function(){re.current=!1})},ie=null;z&&(ie=function(ce){re.current?re.current=!1:B.current===ce.target&&se(ce)});function ge(ae){if(d&&ae.keyCode===ft.ESC){ae.stopPropagation(),se(ae);return}c&&ae.keyCode===ft.TAB&&K.current.changeActive(!ae.shiftKey)}s.useEffect(function(){c&&(U(!0),X())},[c]),s.useEffect(function(){return function(){clearTimeout(oe.current)}},[]);var ue=ee(ee(ee({zIndex:a},v),V==null?void 0:V.wrapper),{},{display:k?null:"none"});return s.createElement("div",Oe({className:te("".concat(r,"-root"),A)},Ar(t,{data:!0})),s.createElement(k5,{prefixCls:r,visible:I&&c,motionName:Q$(r,M,j),style:ee(ee({zIndex:a},L),V==null?void 0:V.mask),maskProps:D,className:_==null?void 0:_.mask}),s.createElement("div",Oe({tabIndex:-1,onKeyDown:ge,className:te("".concat(r,"-wrap"),h,_==null?void 0:_.wrapper),ref:B,onClick:ie,style:ue},b),s.createElement(FR,Oe({},t,{onMouseDown:Se,onMouseUp:me,ref:K,closable:R,ariaId:W,prefixCls:r,visible:c&&k,onClose:se,onVisibleChanged:ne,motionName:Q$(r,x,w)}))))},kR=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,l=t.destroyOnClose,c=l===void 0?!1:l,u=t.afterClose,d=t.panelRef,m=s.useState(n),g=de(m,2),v=g[0],h=g[1],b=s.useMemo(function(){return{panel:d}},[d]);return s.useEffect(function(){n&&h(!0)},[n]),!a&&c&&!v?null:s.createElement(LR.Provider,{value:b},s.createElement(Yb,{open:n||a||v,autoDestroy:!1,getContainer:r,autoLock:n||v},s.createElement(V5,Oe({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),h(!1)}}))))};kR.displayName="Dialog";var gl="RC_FORM_INTERNAL_HOOKS",Fn=function(){Xn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Rl=s.createContext({getFieldValue:Fn,getFieldsValue:Fn,getFieldError:Fn,getFieldWarning:Fn,getFieldsError:Fn,isFieldsTouched:Fn,isFieldTouched:Fn,isFieldValidating:Fn,isFieldsValidating:Fn,resetFields:Fn,setFields:Fn,setFieldValue:Fn,setFieldsValue:Fn,validateFields:Fn,submit:Fn,getInternalHooks:function(){return Fn(),{dispatch:Fn,initEntityValue:Fn,registerField:Fn,useSubscribe:Fn,setInitialValues:Fn,destroyForm:Fn,setCallbacks:Fn,registerWatch:Fn,getFields:Fn,setValidateMessages:Fn,setPreserve:Fn,getInitialValue:Fn}}}),Pu=s.createContext(null);function O0(e){return e==null?[]:Array.isArray(e)?e:[e]}function K5(e){return e&&!!e._init}function R0(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var N0=R0();function W5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function U5(e,t,n){if(Hm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Eu(a,n.prototype),a}function T0(e){var t=typeof Map=="function"?new Map:void 0;return T0=function(r){if(r===null||!W5(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return U5(r,arguments,$l(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Eu(a,r)},T0(e)}var q5=/%[sdj%]/g,G5=function(){};function I0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ma(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(q5,function(u){if(u==="%%")return"%";if(a>=l)return u;switch(u){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return u}});return c}return e}function X5(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||X5(t)&&typeof e=="string"&&!e)}function Y5(e,t,n){var r=[],a=0,l=e.length;function c(u){r.push.apply(r,De(u||[])),a++,a===l&&n(r)}e.forEach(function(u){t(u,c)})}function J$(e,t,n){var r=0,a=e.length;function l(c){if(c&&c.length){n(c);return}var u=r;r=r+1,u<a?t(e[u],l):n([])}l([])}function Q5(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,De(e[n]||[]))}),t}var ew=(function(e){so(n,e);var t=Eo(n);function n(r,a){var l;return rr(this,n),l=t.call(this,"Async Validation Error"),q(St(l),"errors",void 0),q(St(l),"fields",void 0),l.errors=r,l.fields=a,l}return ar(n)})(T0(Error));function Z5(e,t,n,r,a){if(t.first){var l=new Promise(function(h,b){var y=function(x){return r(x),x.length?b(new ew(x,I0(x))):h(a)},C=Q5(e);J$(C,n,y)});return l.catch(function(h){return h}),l}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),d=u.length,m=0,g=[],v=new Promise(function(h,b){var y=function(S){if(g.push.apply(g,S),m++,m===d)return r(g),g.length?b(new ew(g,I0(g))):h(a)};u.length||(r(g),h(a)),u.forEach(function(C){var S=e[C];c.indexOf(C)!==-1?J$(S,n,y):Y5(S,n,y)})});return v.catch(function(h){return h}),v}function J5(e){return!!(e&&e.message!==void 0)}function eD(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function tw(e,t){return function(n){var r;return e.fullFields?r=eD(t,e.fullFields):r=t[n.field||e.fullField],J5(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 nw(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];$t(r)==="object"&&$t(e[n])==="object"?e[n]=ee(ee({},e[n]),r):e[n]=r}}return e}var vs="enum",tD=function(t,n,r,a,l){t[vs]=Array.isArray(t[vs])?t[vs]:[],t[vs].indexOf(n)===-1&&a.push(Ma(l.messages[vs],t.fullField,t[vs].join(", ")))},nD=function(t,n,r,a,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||a.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},rD=function(t,n,r,a,l){var c=typeof t.len=="number",u=typeof t.min=="number",d=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,v=null,h=typeof n=="number",b=typeof n=="string",y=Array.isArray(n);if(h?v="number":b?v="string":y&&(v="array"),!v)return!1;y&&(g=n.length),b&&(g=n.replace(m,"_").length),c?g!==t.len&&a.push(Ma(l.messages[v].len,t.fullField,t.len)):u&&!d&&g<t.min?a.push(Ma(l.messages[v].min,t.fullField,t.min)):d&&!u&&g>t.max?a.push(Ma(l.messages[v].max,t.fullField,t.max)):u&&d&&(g<t.min||g>t.max)&&a.push(Ma(l.messages[v].range,t.fullField,t.min,t.max))},VR=function(t,n,r,a,l,c){t.required&&(!r.hasOwnProperty(t.field)||Mr(n,c||t.type))&&a.push(Ma(l.messages.required,t.fullField))},Rf;const aD=(function(){if(Rf)return Rf;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),d=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(c,"$")),g=function(I){return I&&I.exact?u:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(c).concat(t(I),")"),"g")};g.v4=function(N){return N&&N.exact?d:new RegExp("".concat(t(N)).concat(n).concat(t(N)),"g")},g.v6=function(N){return N&&N.exact?m:new RegExp("".concat(t(N)).concat(c).concat(t(N)),"g")};var v="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",b=g.v4().source,y=g.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',R="(?:".concat(v,"|www\\.)").concat(h,"(?:localhost|").concat(b,"|").concat(y,"|").concat(C).concat(S).concat(x,")").concat(w).concat(E);return Rf=new RegExp("(?:^".concat(R,"$)"),"i"),Rf});var rw={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},uu={integer:function(t){return uu.number(t)&&parseInt(t,10)===t},float:function(t){return uu.number(t)&&!uu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return $t(t)==="object"&&!uu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(rw.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aD())},hex:function(t){return typeof t=="string"&&!!t.match(rw.hex)}},oD=function(t,n,r,a,l){if(t.required&&n===void 0){VR(t,n,r,a,l);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;c.indexOf(u)>-1?uu[u](n)||a.push(Ma(l.messages.types[u],t.fullField,t.type)):u&&$t(n)!==t.type&&a.push(Ma(l.messages.types[u],t.fullField,t.type))},iD=function(t,n,r,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Ma(l.messages.whitespace,t.fullField))};const hn={required:VR,whitespace:iD,type:oD,range:rD,enum:tD,pattern:nD};var lD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l)}r(c)},sD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();hn.required(t,n,a,c,l,"array"),n!=null&&(hn.type(t,n,a,c,l),hn.range(t,n,a,c,l))}r(c)},cD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&hn.type(t,n,a,c,l)}r(c)},uD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n,"date")&&!t.required)return r();if(hn.required(t,n,a,c,l),!Mr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),hn.type(t,d,a,c,l),d&&hn.range(t,d.getTime(),a,c,l)}}r(c)},dD="enum",fD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&hn[dD](t,n,a,c,l)}r(c)},mD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&(hn.type(t,n,a,c,l),hn.range(t,n,a,c,l))}r(c)},gD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&(hn.type(t,n,a,c,l),hn.range(t,n,a,c,l))}r(c)},vD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&hn.type(t,n,a,c,l)}r(c)},pD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&(hn.type(t,n,a,c,l),hn.range(t,n,a,c,l))}r(c)},hD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),n!==void 0&&hn.type(t,n,a,c,l)}r(c)},bD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n,"string")&&!t.required)return r();hn.required(t,n,a,c,l),Mr(n,"string")||hn.pattern(t,n,a,c,l)}r(c)},yD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n)&&!t.required)return r();hn.required(t,n,a,c,l),Mr(n)||hn.type(t,n,a,c,l)}r(c)},SD=function(t,n,r,a,l){var c=[],u=Array.isArray(n)?"array":$t(n);hn.required(t,n,a,c,l,u),r(c)},CD=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mr(n,"string")&&!t.required)return r();hn.required(t,n,a,c,l,"string"),Mr(n,"string")||(hn.type(t,n,a,c,l),hn.range(t,n,a,c,l),hn.pattern(t,n,a,c,l),t.whitespace===!0&&hn.whitespace(t,n,a,c,l))}r(c)},nh=function(t,n,r,a,l){var c=t.type,u=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(Mr(n,c)&&!t.required)return r();hn.required(t,n,a,u,l,c),Mr(n,c)||hn.type(t,n,a,u,l)}r(u)};const gu={string:CD,method:vD,number:pD,boolean:cD,regexp:yD,integer:gD,float:mD,array:sD,object:hD,enum:fD,pattern:bD,date:uD,url:nh,hex:nh,email:nh,required:SD,any:lD};var Qu=(function(){function e(t){rr(this,e),q(this,"rules",null),q(this,"_messages",N0),this.define(t)}return ar(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if($t(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var l=n[a];r.rules[a]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=nw(R0(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,u=a,d=l;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,c),Promise.resolve(c);function m(y){var C=[],S={};function x(E){if(Array.isArray(E)){var R;C=(R=C).concat.apply(R,De(E))}else C.push(E)}for(var w=0;w<y.length;w++)x(y[w]);C.length?(S=I0(C),d(C,S)):d(null,c)}if(u.messages){var g=this.messages();g===N0&&(g=R0()),nw(g,u.messages),u.messages=g}else u.messages=this.messages();var v={},h=u.keys||Object.keys(this.rules);h.forEach(function(y){var C=r.rules[y],S=c[y];C.forEach(function(x){var w=x;typeof w.transform=="function"&&(c===n&&(c=ee({},c)),S=c[y]=w.transform(S),S!=null&&(w.type=w.type||(Array.isArray(S)?"array":$t(S)))),typeof w=="function"?w={validator:w}:w=ee({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=y,w.fullField=w.fullField||y,w.type=r.getType(w),v[y]=v[y]||[],v[y].push({rule:w,value:S,source:c,field:y}))})});var b={};return Z5(v,u,function(y,C){var S=y.rule,x=(S.type==="object"||S.type==="array")&&($t(S.fields)==="object"||$t(S.defaultField)==="object");x=x&&(S.required||!S.required&&y.value),S.field=y.field;function w(M,j){return ee(ee({},j),{},{fullField:"".concat(S.fullField,".").concat(M),fullFields:S.fullFields?[].concat(De(S.fullFields),[M]):[M]})}function E(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=Array.isArray(M)?M:[M];!u.suppressWarning&&j.length&&e.warning("async-validator:",j),j.length&&S.message!==void 0&&(j=[].concat(S.message));var T=j.map(tw(S,c));if(u.first&&T.length)return b[S.field]=1,C(T);if(!x)C(T);else{if(S.required&&!y.value)return S.message!==void 0?T=[].concat(S.message).map(tw(S,c)):u.error&&(T=[u.error(S,Ma(u.messages.required,S.field))]),C(T);var z={};S.defaultField&&Object.keys(y.value).map(function(A){z[A]=S.defaultField}),z=ee(ee({},z),y.rule.fields);var L={};Object.keys(z).forEach(function(A){var _=z[A],V=Array.isArray(_)?_:[_];L[A]=V.map(w.bind(null,A))});var D=new e(L);D.messages(u.messages),y.rule.options&&(y.rule.options.messages=u.messages,y.rule.options.error=u.error),D.validate(y.value,y.rule.options||u,function(A){var _=[];T&&T.length&&_.push.apply(_,De(T)),A&&A.length&&_.push.apply(_,De(A)),C(_.length?_:null)})}}var R;if(S.asyncValidator)R=S.asyncValidator(S,y.value,E,y.source,u);else if(S.validator){try{R=S.validator(S,y.value,E,y.source,u)}catch(M){var N,I;(N=(I=console).error)===null||N===void 0||N.call(I,M),u.suppressValidatorError||setTimeout(function(){throw M},0),E(M.message)}R===!0?E():R===!1?E(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):R instanceof Array?E(R):R instanceof Error&&E(R.message)}R&&R.then&&R.then(function(){return E()},function(M){return E(M)})},function(y){m(y)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!gu.hasOwnProperty(n.type))throw new Error(Ma("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?gu.required:gu[this.getType(n)]||void 0}}]),e})();q(Qu,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");gu[t]=n});q(Qu,"warning",G5);q(Qu,"messages",N0);q(Qu,"validators",gu);var Ta="'${name}' is not a valid ${type}",KR={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:Ta,method:Ta,array:Ta,object:Ta,number:Ta,date:Ta,boolean:Ta,integer:Ta,float:Ta,regexp:Ta,email:Ta,url:Ta,hex:Ta},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}"}},aw=Qu;function xD(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var ow="CODE_LOGIC_ERROR";function M0(e,t,n,r,a){return j0.apply(this,arguments)}function j0(){return j0=Dl(aa().mark(function e(t,n,r,a,l){var c,u,d,m,g,v,h,b,y;return aa().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=ee({},r),delete c.ruleIndex,aw.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(ow)}}),d=null,c&&c.type==="array"&&c.defaultField&&(d=c.defaultField,delete c.defaultField),m=new aw(q({},t,[c])),g=Ns(KR,a.validateMessages),m.messages(g),v=[],S.prev=10,S.next=13,Promise.resolve(m.validate(q({},t,n),ee({},a)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(v=S.t0.errors.map(function(x,w){var E=x.message,R=E===ow?g.default:E;return s.isValidElement(R)?s.cloneElement(R,{key:"error_".concat(w)}):R}));case 18:if(!(!v.length&&d&&Array.isArray(n)&&n.length>0)){S.next=23;break}return S.next=21,Promise.all(n.map(function(x,w){return M0("".concat(t,".").concat(w),x,d,a,l)}));case 21:return h=S.sent,S.abrupt("return",h.reduce(function(x,w){return[].concat(De(x),De(w))},[]));case 23:return b=ee(ee({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),y=v.map(function(x){return typeof x=="string"?xD(x,b):x}),S.abrupt("return",y);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),j0.apply(this,arguments)}function $D(e,t,n,r,a,l){var c=e.join("."),u=n.map(function(g,v){var h=g.validator,b=ee(ee({},g),{},{ruleIndex:v});return h&&(b.validator=function(y,C,S){var x=!1,w=function(){for(var N=arguments.length,I=new Array(N),M=0;M<N;M++)I[M]=arguments[M];Promise.resolve().then(function(){Xn(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||S.apply(void 0,I)})},E=h(y,C,w);x=E&&typeof E.then=="function"&&typeof E.catch=="function",Xn(x,"`callback` is deprecated. Please return a promise instead."),x&&E.then(function(){S()}).catch(function(R){S(R||" ")})}),b}).sort(function(g,v){var h=g.warningOnly,b=g.ruleIndex,y=v.warningOnly,C=v.ruleIndex;return!!h==!!y?b-C:h?1:-1}),d;if(a===!0)d=new Promise((function(){var g=Dl(aa().mark(function v(h,b){var y,C,S;return aa().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:y=0;case 1:if(!(y<u.length)){w.next=12;break}return C=u[y],w.next=5,M0(c,t,C,r,l);case 5:if(S=w.sent,!S.length){w.next=9;break}return b([{errors:S,rule:C}]),w.abrupt("return");case 9:y+=1,w.next=1;break;case 12:h([]);case 13:case"end":return w.stop()}},v)}));return function(v,h){return g.apply(this,arguments)}})());else{var m=u.map(function(g){return M0(c,t,g,r,l).then(function(v){return{errors:v,rule:g}})});d=(a?ED(m):wD(m)).then(function(g){return Promise.reject(g)})}return d.catch(function(g){return g}),d}function wD(e){return P0.apply(this,arguments)}function P0(){return P0=Dl(aa().mark(function e(t){return aa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var l,c=(l=[]).concat.apply(l,De(a));return c}));case 1:case"end":return r.stop()}},e)})),P0.apply(this,arguments)}function ED(e){return z0.apply(this,arguments)}function z0(){return z0=Dl(aa().mark(function e(t){var n;return aa().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(l){t.forEach(function(c){c.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return a.stop()}},e)})),z0.apply(this,arguments)}function vr(e){return O0(e)}function iw(e,t){var n={};return t.forEach(function(r){var a=sa(e,r);n=Ua(n,r,a)}),n}function zs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return WR(t,r,n)})}function WR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function OD(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||$t(e)!=="object"||$t(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return De(a).every(function(l){var c=e[l],u=t[l];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function RD(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&$t(t.target)==="object"&&e in t.target?t.target[e]:t}function lw(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],l=t-n;return l>0?[].concat(De(e.slice(0,n)),[a],De(e.slice(n,t)),De(e.slice(t+1,r))):l<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,n+1)),[a],De(e.slice(n+1,r))):e}var ND=["name"],Va=[];function rh(e,t,n,r,a,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==a}var Qb=(function(e){so(n,e);var t=Eo(n);function n(r){var a;if(rr(this,n),a=t.call(this,r),q(St(a),"state",{resetCount:0}),q(St(a),"cancelRegisterFunc",null),q(St(a),"mounted",!1),q(St(a),"touched",!1),q(St(a),"dirty",!1),q(St(a),"validatePromise",void 0),q(St(a),"prevValidating",void 0),q(St(a),"errors",Va),q(St(a),"warnings",Va),q(St(a),"cancelRegister",function(){var d=a.props,m=d.preserve,g=d.isListField,v=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(g,m,vr(v)),a.cancelRegisterFunc=null}),q(St(a),"getNamePath",function(){var d=a.props,m=d.name,g=d.fieldContext,v=g.prefixName,h=v===void 0?[]:v;return m!==void 0?[].concat(De(h),De(m)):[]}),q(St(a),"getRules",function(){var d=a.props,m=d.rules,g=m===void 0?[]:m,v=d.fieldContext;return g.map(function(h){return typeof h=="function"?h(v):h})}),q(St(a),"refresh",function(){a.mounted&&a.setState(function(d){var m=d.resetCount;return{resetCount:m+1}})}),q(St(a),"metaCache",null),q(St(a),"triggerMetaEvent",function(d){var m=a.props.onMetaChange;if(m){var g=ee(ee({},a.getMeta()),{},{destroy:d});Co(a.metaCache,g)||m(g),a.metaCache=g}else a.metaCache=null}),q(St(a),"onStoreChange",function(d,m,g){var v=a.props,h=v.shouldUpdate,b=v.dependencies,y=b===void 0?[]:b,C=v.onReset,S=g.store,x=a.getNamePath(),w=a.getValue(d),E=a.getValue(S),R=m&&zs(m,x);switch(g.type==="valueUpdate"&&g.source==="external"&&!Co(w,E)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Va,a.warnings=Va,a.triggerMetaEvent()),g.type){case"reset":if(!m||R){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Va,a.warnings=Va,a.triggerMetaEvent(),C==null||C(),a.refresh();return}break;case"remove":{if(h&&rh(h,d,S,w,E,g)){a.reRender();return}break}case"setField":{var N=g.data;if(R){"touched"in N&&(a.touched=N.touched),"validating"in N&&!("originRCField"in N)&&(a.validatePromise=N.validating?Promise.resolve([]):null),"errors"in N&&(a.errors=N.errors||Va),"warnings"in N&&(a.warnings=N.warnings||Va),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in N&&zs(m,x,!0)){a.reRender();return}if(h&&!x.length&&rh(h,d,S,w,E,g)){a.reRender();return}break}case"dependenciesUpdate":{var I=y.map(vr);if(I.some(function(M){return zs(g.relatedFields,M)})){a.reRender();return}break}default:if(R||(!y.length||x.length||h)&&rh(h,d,S,w,E,g)){a.reRender();return}break}h===!0&&a.reRender()}),q(St(a),"validateRules",function(d){var m=a.getNamePath(),g=a.getValue(),v=d||{},h=v.triggerName,b=v.validateOnly,y=b===void 0?!1:b,C=Promise.resolve().then(Dl(aa().mark(function S(){var x,w,E,R,N,I,M;return aa().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(a.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(x=a.props,w=x.validateFirst,E=w===void 0?!1:w,R=x.messageVariables,N=x.validateDebounce,I=a.getRules(),h&&(I=I.filter(function(z){return z}).filter(function(z){var L=z.validateTrigger;if(!L)return!0;var D=O0(L);return D.includes(h)})),!(N&&h)){T.next=10;break}return T.next=8,new Promise(function(z){setTimeout(z,N)});case 8:if(a.validatePromise===C){T.next=10;break}return T.abrupt("return",[]);case 10:return M=$D(m,g,I,d,E,R),M.catch(function(z){return z}).then(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Va;if(a.validatePromise===C){var L;a.validatePromise=null;var D=[],A=[];(L=z.forEach)===null||L===void 0||L.call(z,function(_){var V=_.rule.warningOnly,P=_.errors,B=P===void 0?Va:P;V?A.push.apply(A,De(B)):D.push.apply(D,De(B))}),a.errors=D,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),T.abrupt("return",M);case 13:case"end":return T.stop()}},S)})));return y||(a.validatePromise=C,a.dirty=!0,a.errors=Va,a.warnings=Va,a.triggerMetaEvent(),a.reRender()),C}),q(St(a),"isFieldValidating",function(){return!!a.validatePromise}),q(St(a),"isFieldTouched",function(){return a.touched}),q(St(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,m=d.getInternalHooks(gl),g=m.getInitialValue;return g(a.getNamePath())!==void 0}),q(St(a),"getErrors",function(){return a.errors}),q(St(a),"getWarnings",function(){return a.warnings}),q(St(a),"isListField",function(){return a.props.isListField}),q(St(a),"isList",function(){return a.props.isList}),q(St(a),"isPreserve",function(){return a.props.preserve}),q(St(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),q(St(a),"getOnlyChild",function(d){if(typeof d=="function"){var m=a.getMeta();return ee(ee({},a.getOnlyChild(d(a.getControlled(),m,a.props.fieldContext))),{},{isFunction:!0})}var g=Ir(d);return g.length!==1||!s.isValidElement(g[0])?{child:g,isFunction:!1}:{child:g[0],isFunction:!1}}),q(St(a),"getValue",function(d){var m=a.props.fieldContext.getFieldsValue,g=a.getNamePath();return sa(d||m(!0),g)}),q(St(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=a.props,g=m.name,v=m.trigger,h=m.validateTrigger,b=m.getValueFromEvent,y=m.normalize,C=m.valuePropName,S=m.getValueProps,x=m.fieldContext,w=h!==void 0?h:x.validateTrigger,E=a.getNamePath(),R=x.getInternalHooks,N=x.getFieldsValue,I=R(gl),M=I.dispatch,j=a.getValue(),T=S||function(_){return q({},C,_)},z=d[v],L=g!==void 0?T(j):{},D=ee(ee({},d),L);D[v]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,V=arguments.length,P=new Array(V),B=0;B<V;B++)P[B]=arguments[B];b?_=b.apply(void 0,P):_=RD.apply(void 0,[C].concat(P)),y&&(_=y(_,j,N(!0))),_!==j&&M({type:"updateValue",namePath:E,value:_}),z&&z.apply(void 0,P)};var A=O0(w||[]);return A.forEach(function(_){var V=D[_];D[_]=function(){V&&V.apply(void 0,arguments);var P=a.props.rules;P&&P.length&&M({type:"validateField",namePath:E,triggerName:_})}}),D}),r.fieldContext){var l=r.fieldContext.getInternalHooks,c=l(gl),u=c.initEntityValue;u(St(a))}return a}return ar(n,[{key:"componentDidMount",value:function(){var a=this.props,l=a.shouldUpdate,c=a.fieldContext;if(this.mounted=!0,c){var u=c.getInternalHooks,d=u(gl),m=d.registerField;this.cancelRegisterFunc=m(this)}l===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,l=this.props.children,c=this.getOnlyChild(l),u=c.child,d=c.isFunction,m;return d?m=u:s.isValidElement(u)?m=s.cloneElement(u,this.getControlled(u.props)):(Xn(!u,"`children` of Field is not validate ReactElement."),m=u),s.createElement(s.Fragment,{key:a},m)}}]),n})(s.Component);q(Qb,"contextType",Rl);q(Qb,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Zb(e){var t,n=e.name,r=Pt(e,ND),a=s.useContext(Rl),l=s.useContext(Pu),c=n!==void 0?vr(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return u||(d="_".concat((c||[]).join("_"))),s.createElement(Qb,Oe({key:d,name:c,isListField:u},r,{fieldContext:a}))}function UR(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,l=e.validateTrigger,c=e.isListField,u=s.useContext(Rl),d=s.useContext(Pu),m=s.useRef({keys:[],id:0}),g=m.current,v=s.useMemo(function(){var C=vr(u.prefixName)||[];return[].concat(De(C),De(vr(t)))},[u.prefixName,t]),h=s.useMemo(function(){return ee(ee({},u),{},{prefixName:v})},[u,v]),b=s.useMemo(function(){return{getKey:function(S){var x=v.length,w=S[x];return[g.keys[w],S.slice(x+1)]}}},[v]);if(typeof r!="function")return Xn(!1,"Form.List only accepts function as children."),null;var y=function(S,x,w){var E=w.source;return E==="internal"?!1:S!==x};return s.createElement(Pu.Provider,{value:b},s.createElement(Rl.Provider,{value:h},s.createElement(Zb,{name:[],shouldUpdate:y,rules:a,validateTrigger:l,initialValue:n,isList:!0,isListField:c??!!d},function(C,S){var x=C.value,w=x===void 0?[]:x,E=C.onChange,R=u.getFieldValue,N=function(){var T=R(v||[]);return T||[]},I={add:function(T,z){var L=N();z>=0&&z<=L.length?(g.keys=[].concat(De(g.keys.slice(0,z)),[g.id],De(g.keys.slice(z))),E([].concat(De(L.slice(0,z)),[T],De(L.slice(z))))):(g.keys=[].concat(De(g.keys),[g.id]),E([].concat(De(L),[T]))),g.id+=1},remove:function(T){var z=N(),L=new Set(Array.isArray(T)?T:[T]);L.size<=0||(g.keys=g.keys.filter(function(D,A){return!L.has(A)}),E(z.filter(function(D,A){return!L.has(A)})))},move:function(T,z){if(T!==z){var L=N();T<0||T>=L.length||z<0||z>=L.length||(g.keys=lw(g.keys,T,z),E(lw(L,T,z)))}}},M=w||[];return Array.isArray(M)||(M=[]),r(M.map(function(j,T){var z=g.keys[T];return z===void 0&&(g.keys[T]=g.id,z=g.keys[T],g.id+=1),{name:T,key:z,isListField:!0}}),I,S)})))}function TD(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,l){e.forEach(function(c,u){c.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(t&&l(r),a(r))})})}):Promise.resolve([])}var qR="__@field_split__";function ah(e){return e.map(function(t){return"".concat($t(t),":").concat(t)}).join(qR)}var ps=(function(){function e(){rr(this,e),q(this,"kvs",new Map)}return ar(e,[{key:"set",value:function(n,r){this.kvs.set(ah(n),r)}},{key:"get",value:function(n){return this.kvs.get(ah(n))}},{key:"update",value:function(n,r){var a=this.get(n),l=r(a);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ah(n))}},{key:"map",value:function(n){return De(this.kvs.entries()).map(function(r){var a=de(r,2),l=a[0],c=a[1],u=l.split(qR);return n({key:u.map(function(d){var m=d.match(/^([^:]*):(.*)$/),g=de(m,3),v=g[1],h=g[2];return v==="number"?Number(h):h}),value:c})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,l=r.value;return n[a.join(".")]=l,null}),n}}]),e})(),ID=["name"],MD=ar(function e(t){var n=this;rr(this,e),q(this,"formHooked",!1),q(this,"forceRootUpdate",void 0),q(this,"subscribable",!0),q(this,"store",{}),q(this,"fieldEntities",[]),q(this,"initialValues",{}),q(this,"callbacks",{}),q(this,"validateMessages",null),q(this,"preserve",null),q(this,"lastValidatePromise",null),q(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),q(this,"getInternalHooks",function(r){return r===gl?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Xn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),q(this,"useSubscribe",function(r){n.subscribable=r}),q(this,"prevWithoutPreserves",null),q(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var l,c=Ns(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;c=Ua(c,d,sa(r,d))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),q(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new ps;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||a.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),q(this,"getInitialValue",function(r){var a=sa(n.initialValues,r);return r.length?Ns(a):a}),q(this,"setCallbacks",function(r){n.callbacks=r}),q(this,"setValidateMessages",function(r){n.validateMessages=r}),q(this,"setPreserve",function(r){n.preserve=r}),q(this,"watchList",[]),q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(c){c(a,l,r)})}}),q(this,"timeoutId",null),q(this,"warningUnhooked",function(){}),q(this,"updateStore",function(r){n.store=r}),q(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new ps;return n.getFieldEntities(r).forEach(function(l){var c=l.getNamePath();a.set(c,l)}),a}),q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(l){var c=vr(l);return a.get(c)||{INVALIDATE_NAME_PATH:vr(l)}})}),q(this,"getFieldsValue",function(r,a){n.warningUnhooked();var l,c,u;if(r===!0||Array.isArray(r)?(l=r,c=a):r&&$t(r)==="object"&&(u=r.strict,c=r.filter),l===!0&&!c)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),m=[];return d.forEach(function(g){var v,h,b="INVALIDATE_NAME_PATH"in g?g.INVALIDATE_NAME_PATH:g.getNamePath();if(u){var y,C;if((y=(C=g).isList)!==null&&y!==void 0&&y.call(C))return}else if(!l&&(v=(h=g).isListField)!==null&&v!==void 0&&v.call(h))return;if(!c)m.push(b);else{var S="getMeta"in g?g.getMeta():null;c(S)&&m.push(b)}}),iw(n.store,m.map(vr))}),q(this,"getFieldValue",function(r){n.warningUnhooked();var a=vr(r);return sa(n.store,a)}),q(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(l,c){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:vr(r[c]),errors:[],warnings:[]}})}),q(this,"getFieldError",function(r){n.warningUnhooked();var a=vr(r),l=n.getFieldsError([a])[0];return l.errors}),q(this,"getFieldWarning",function(r){n.warningUnhooked();var a=vr(r),l=n.getFieldsError([a])[0];return l.warnings}),q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];var c=a[0],u=a[1],d,m=!1;a.length===0?d=null:a.length===1?Array.isArray(c)?(d=c.map(vr),m=!1):(d=null,m=c):(d=c.map(vr),m=u);var g=n.getFieldEntities(!0),v=function(S){return S.isFieldTouched()};if(!d)return m?g.every(function(C){return v(C)||C.isList()}):g.some(v);var h=new ps;d.forEach(function(C){h.set(C,[])}),g.forEach(function(C){var S=C.getNamePath();d.forEach(function(x){x.every(function(w,E){return S[E]===w})&&h.update(x,function(w){return[].concat(De(w),[C])})})});var b=function(S){return S.some(v)},y=h.map(function(C){var S=C.value;return S});return m?y.every(b):y.some(b)}),q(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),q(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(c){return c.isFieldValidating()});var l=r.map(vr);return a.some(function(c){var u=c.getNamePath();return zs(l,u)&&c.isFieldValidating()})}),q(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),q(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new ps,l=n.getFieldEntities(!0);l.forEach(function(d){var m=d.props.initialValue,g=d.getNamePath();if(m!==void 0){var v=a.get(g)||new Set;v.add({entity:d,value:m}),a.set(g,v)}});var c=function(m){m.forEach(function(g){var v=g.props.initialValue;if(v!==void 0){var h=g.getNamePath(),b=n.getInitialValue(h);if(b!==void 0)Xn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var y=a.get(h);if(y&&y.size>1)Xn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var C=n.getFieldValue(h),S=g.isListField();!S&&(!r.skipExist||C===void 0)&&n.updateStore(Ua(n.store,h,De(y)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var m=a.get(d);if(m){var g;(g=u).push.apply(g,De(De(m).map(function(v){return v.entity})))}})):u=l,c(u)}),q(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Ns(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(vr);l.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(Ua(n.store,c,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(a,l,{type:"reset"}),n.notifyWatch(l)}),q(this,"setFields",function(r){n.warningUnhooked();var a=n.store,l=[];r.forEach(function(c){var u=c.name,d=Pt(c,ID),m=vr(u);l.push(m),"value"in d&&n.updateStore(Ua(n.store,m,d.value)),n.notifyObservers(a,[m],{type:"setField",data:c})}),n.notifyWatch(l)}),q(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(l){var c=l.getNamePath(),u=l.getMeta(),d=ee(ee({},u),{},{name:c,value:n.getFieldValue(c)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),q(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var l=r.getNamePath(),c=sa(n.store,l);c===void 0&&n.updateStore(Ua(n.store,l,a))}}),q(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),q(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(v){return v!==r}),!n.isMergedPreserve(u)&&(!c||d.length>1)){var m=c?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==m&&n.fieldEntities.every(function(v){return!WR(v.getNamePath(),a)})){var g=n.store;n.updateStore(Ua(g,a,m,!0)),n.notifyObservers(g,[a],{type:"remove"}),n.triggerDependenciesUpdate(g,a)}}n.notifyWatch([a])}}),q(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,l=r.value;n.updateValue(a,l);break}case"validateField":{var c=r.namePath,u=r.triggerName;n.validateFields([c],{triggerName:u});break}}}),q(this,"notifyObservers",function(r,a,l){if(n.subscribable){var c=ee(ee({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,a,c)})}else n.forceRootUpdate()}),q(this,"triggerDependenciesUpdate",function(r,a){var l=n.getDependencyChildrenFields(a);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[a].concat(De(l))}),l}),q(this,"updateValue",function(r,a){var l=vr(r),c=n.store;n.updateStore(Ua(n.store,l,a)),n.notifyObservers(c,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(c,l),d=n.callbacks.onValuesChange;if(d){var m=iw(n.store,[l]);d(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(De(u)))}),q(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var l=Ns(n.store,r);n.updateStore(l)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),q(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),q(this,"getDependencyChildrenFields",function(r){var a=new Set,l=[],c=new ps;n.getFieldEntities().forEach(function(d){var m=d.props.dependencies;(m||[]).forEach(function(g){var v=vr(g);c.update(v,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(d),h})})});var u=function d(m){var g=c.get(m)||new Set;g.forEach(function(v){if(!a.has(v)){a.add(v);var h=v.getNamePath();v.isFieldDirty()&&h.length&&(l.push(h),d(h))}})};return u(r),l}),q(this,"triggerOnFieldsChange",function(r,a){var l=n.callbacks.onFieldsChange;if(l){var c=n.getFields();if(a){var u=new ps;a.forEach(function(m){var g=m.name,v=m.errors;u.set(g,v)}),c.forEach(function(m){m.errors=u.get(m.name)||m.errors})}var d=c.filter(function(m){var g=m.name;return zs(r,g)});d.length&&l(d,c)}}),q(this,"validateFields",function(r,a){n.warningUnhooked();var l,c;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(l=r,c=a):c=r;var u=!!l,d=u?l.map(vr):[],m=[],g=String(Date.now()),v=new Set,h=c||{},b=h.recursive,y=h.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(y&&!w.isFieldDirty())){var E=w.getNamePath();if(v.add(E.join(g)),!u||zs(d,E,b)){var R=w.validateRules(ee({validateMessages:ee(ee({},KR),n.validateMessages)},c));m.push(R.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(N){var I,M=[],j=[];return(I=N.forEach)===null||I===void 0||I.call(N,function(T){var z=T.rule.warningOnly,L=T.errors;z?j.push.apply(j,De(L)):M.push.apply(M,De(L))}),M.length?Promise.reject({name:E,errors:M,warnings:j}):{name:E,errors:M,warnings:j}}))}}});var C=TD(m);n.lastValidatePromise=C,C.catch(function(w){return w}).then(function(w){var E=w.map(function(R){var N=R.name;return N});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,w)});var S=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var E=w.filter(function(R){return R&&R.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:E,outOfDate:n.lastValidatePromise!==C})});S.catch(function(w){return w});var x=d.filter(function(w){return v.has(w.join(g))});return n.triggerOnFieldsChange(x),S}),q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(l){console.error(l)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function Jb(e){var t=s.useRef(),n=s.useState({}),r=de(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){a({})},c=new MD(l);t.current=c.getForm()}return[t.current]}var _0=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),GR=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,l=t.children,c=s.useContext(_0),u=s.useRef({});return s.createElement(_0.Provider,{value:ee(ee({},c),{},{validateMessages:ee(ee({},c.validateMessages),n),triggerFormChange:function(m,g){r&&r(m,{changedFields:g,forms:u.current}),c.triggerFormChange(m,g)},triggerFormFinish:function(m,g){a&&a(m,{values:g,forms:u.current}),c.triggerFormFinish(m,g)},registerForm:function(m,g){m&&(u.current=ee(ee({},u.current),{},q({},m,g))),c.registerForm(m,g)},unregisterForm:function(m){var g=ee({},u.current);delete g[m],u.current=g,c.unregisterForm(m)}})},l)},jD=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],PD=function(t,n){var r=t.name,a=t.initialValues,l=t.fields,c=t.form,u=t.preserve,d=t.children,m=t.component,g=m===void 0?"form":m,v=t.validateMessages,h=t.validateTrigger,b=h===void 0?"onChange":h,y=t.onValuesChange,C=t.onFieldsChange,S=t.onFinish,x=t.onFinishFailed,w=t.clearOnDestroy,E=Pt(t,jD),R=s.useRef(null),N=s.useContext(_0),I=Jb(c),M=de(I,1),j=M[0],T=j.getInternalHooks(gl),z=T.useSubscribe,L=T.setInitialValues,D=T.setCallbacks,A=T.setValidateMessages,_=T.setPreserve,V=T.destroyForm;s.useImperativeHandle(n,function(){return ee(ee({},j),{},{nativeElement:R.current})}),s.useEffect(function(){return N.registerForm(r,j),function(){N.unregisterForm(r)}},[N,j,r]),A(ee(ee({},N.validateMessages),v)),D({onValuesChange:y,onFieldsChange:function(X){if(N.triggerFormChange(r,X),C){for(var J=arguments.length,ne=new Array(J>1?J-1:0),se=1;se<J;se++)ne[se-1]=arguments[se];C.apply(void 0,[X].concat(ne))}},onFinish:function(X){N.triggerFormFinish(r,X),S&&S(X)},onFinishFailed:x}),_(u);var P=s.useRef(null);L(a,!P.current),P.current||(P.current=!0),s.useEffect(function(){return function(){return V(w)}},[]);var B,K=typeof d=="function";if(K){var G=j.getFieldsValue(!0);B=d(G,j)}else B=d;z(!K);var Q=s.useRef();s.useEffect(function(){OD(Q.current||[],l||[])||j.setFields(l||[]),Q.current=l},[l,j]);var k=s.useMemo(function(){return ee(ee({},j),{},{validateTrigger:b})},[j,b]),U=s.createElement(Pu.Provider,{value:null},s.createElement(Rl.Provider,{value:k},B));return g===!1?U:s.createElement(g,Oe({},E,{ref:R,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),j.submit()},onReset:function(X){var J;X.preventDefault(),j.resetFields(),(J=E.onReset)===null||J===void 0||J.call(E,X)}}),U)};function sw(e){try{return JSON.stringify(e)}catch{return Math.random()}}function XR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],l=a===void 0?{}:a,c=K5(l)?{form:l}:l,u=c.form,d=s.useState(),m=de(d,2),g=m[0],v=m[1],h=s.useMemo(function(){return sw(g)},[g]),b=s.useRef(h);b.current=h;var y=s.useContext(Rl),C=u||y,S=C&&C._init,x=vr(r),w=s.useRef(x);return w.current=x,s.useEffect(function(){if(S){var E=C.getFieldsValue,R=C.getInternalHooks,N=R(gl),I=N.registerWatch,M=function(L,D){var A=c.preserve?D:L;return typeof r=="function"?r(A):sa(A,w.current)},j=I(function(z,L){var D=M(z,L),A=sw(D);b.current!==A&&(b.current=A,v(D))}),T=M(E(),E(!0));return g!==T&&v(T),j}},[S]),g}var zD=s.forwardRef(PD),Qs=zD;Qs.FormProvider=GR;Qs.Field=Zb;Qs.List=UR;Qs.useForm=Jb;Qs.useWatch=XR;const Go=s.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),YR=s.createContext(null),QR=e=>{const t=_n(e,["prefixCls"]);return s.createElement(GR,Object.assign({},t))},ey=s.createContext({prefixCls:""}),Qr=s.createContext({}),ZR=({children:e,status:t,override:n})=>{const r=s.useContext(Qr),a=s.useMemo(()=>{const l=Object.assign({},r);return n&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,n,r]);return s.createElement(Qr.Provider,{value:a},e)},JR=s.createContext(void 0),Ai=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=le.createElement(ZR,{override:!0,status:!0},a)),t&&(a=le.createElement(G_,null,a)),a};var eN=function(t){if(Yr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},_D=function(t,n){if(!eN(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function D0(e,t){return!Array.isArray(e)&&t!==void 0?_D(e,t):eN(e)}const DD=()=>Yr()&&window.document.documentElement,lg=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:l}=e,c=te({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=te({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),d=s.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return s.createElement("span",{className:te(t,c,u,n),style:Object.assign(Object.assign({},d),r)})},AD=new Yt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),sg=e=>({height:e,lineHeight:Z(e)}),_s=e=>Object.assign({width:e},sg(e)),BD=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:AD,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),oh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},sg(e)),LD=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},_s(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},_s(a)),[`${t}${t}-sm`]:Object.assign({},_s(l))}},HD=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},oh(t,u)),[`${r}-lg`]:Object.assign({},oh(a,u)),[`${r}-sm`]:Object.assign({},oh(l,u))}},cw=e=>Object.assign({width:e},sg(e)),FD=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},cw(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cw(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ih=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},lh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},sg(e)),kD=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},lh(r,u))},ih(e,r,n)),{[`${n}-lg`]:Object.assign({},lh(a,u))}),ih(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},lh(l,u))}),ih(e,l,`${n}-sm`))},VD=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:l,skeletonInputCls:c,skeletonImageCls:u,controlHeight:d,controlHeightLG:m,controlHeightSM:g,gradientFromColor:v,padding:h,marginSM:b,borderRadius:y,titleHeight:C,blockRadius:S,paragraphLiHeight:x,controlHeightXS:w,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:v},_s(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},_s(m)),[`${n}-sm`]:Object.assign({},_s(g))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:v,borderRadius:S,[`+ ${a}`]:{marginBlockStart:g}},[a]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:v,borderRadius:S,"+ li":{marginBlockStart:w}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},kD(e)),LD(e)),HD(e)),FD(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
199
|
+
${r},
|
|
200
|
+
${a} > li,
|
|
201
|
+
${n},
|
|
202
|
+
${l},
|
|
203
|
+
${c},
|
|
204
|
+
${u}
|
|
205
|
+
`]:Object.assign({},BD(e))}}},KD=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Zs=nn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Qt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return VD(r)},KD,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),WD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:l="circle",size:c="default"}=e,{getPrefixCls:u}=s.useContext(Ot),d=u("skeleton",t),[m,g,v]=Zs(d),h=_n(e,["prefixCls","className"]),b=te(d,`${d}-element`,{[`${d}-active`]:a},n,r,g,v);return m(s.createElement("div",{className:b},s.createElement(lg,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:c},h))))},UD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l=!1,size:c="default"}=e,{getPrefixCls:u}=s.useContext(Ot),d=u("skeleton",t),[m,g,v]=Zs(d),h=_n(e,["prefixCls"]),b=te(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,g,v);return m(s.createElement("div",{className:b},s.createElement(lg,Object.assign({prefixCls:`${d}-button`,size:c},h))))},qD="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",GD=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l}=e,{getPrefixCls:c}=s.useContext(Ot),u=c("skeleton",t),[d,m,g]=Zs(u),v=te(u,`${u}-element`,{[`${u}-active`]:l},n,r,m,g);return d(s.createElement("div",{className:v},s.createElement("div",{className:te(`${u}-image`,n),style:a},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:qD,className:`${u}-image-path`})))))},XD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l,size:c="default"}=e,{getPrefixCls:u}=s.useContext(Ot),d=u("skeleton",t),[m,g,v]=Zs(d),h=_n(e,["prefixCls"]),b=te(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,g,v);return m(s.createElement("div",{className:b},s.createElement(lg,Object.assign({prefixCls:`${d}-input`,size:c},h))))},YD=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l,children:c}=e,{getPrefixCls:u}=s.useContext(Ot),d=u("skeleton",t),[m,g,v]=Zs(d),h=te(d,`${d}-element`,{[`${d}-active`]:l},g,n,r,v);return m(s.createElement("div",{className:h},s.createElement("div",{className:te(`${d}-image`,n),style:a},c)))},QD=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},ZD=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,l=Array.from({length:a}).map((c,u)=>s.createElement("li",{key:u,style:{width:QD(u,e)}}));return s.createElement("ul",{className:te(t,n),style:r},l)},JD=({prefixCls:e,className:t,width:n,style:r})=>s.createElement("h3",{className:te(e,t),style:Object.assign({width:n},r)});function sh(e){return e&&typeof e=="object"?e:{}}function eA(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tA(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function nA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ki=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:l,children:c,avatar:u=!1,title:d=!0,paragraph:m=!0,active:g,round:v}=e,{getPrefixCls:h,direction:b,className:y,style:C}=Er("skeleton"),S=h("skeleton",t),[x,w,E]=Zs(S);if(n||!("loading"in e)){const R=!!u,N=!!d,I=!!m;let M;if(R){const z=Object.assign(Object.assign({prefixCls:`${S}-avatar`},eA(N,I)),sh(u));M=s.createElement("div",{className:`${S}-header`},s.createElement(lg,Object.assign({},z)))}let j;if(N||I){let z;if(N){const D=Object.assign(Object.assign({prefixCls:`${S}-title`},tA(R,I)),sh(d));z=s.createElement(JD,Object.assign({},D))}let L;if(I){const D=Object.assign(Object.assign({prefixCls:`${S}-paragraph`},nA(R,N)),sh(m));L=s.createElement(ZD,Object.assign({},D))}j=s.createElement("div",{className:`${S}-content`},z,L)}const T=te(S,{[`${S}-with-avatar`]:R,[`${S}-active`]:g,[`${S}-rtl`]:b==="rtl",[`${S}-round`]:v},y,r,a,w,E);return x(s.createElement("div",{className:T,style:Object.assign(Object.assign({},C),l)},M,j))}return c??null};ki.Button=UD;ki.Avatar=WD;ki.Input=XD;ki.Image=GD;ki.Node=YD;function uw(){}const rA=s.createContext({add:uw,remove:uw});function aA(e){const t=s.useContext(rA),n=s.useRef(null);return Sn(a=>{if(a){const l=e?a.querySelector(e):a;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const dw=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s.useContext(Yu);return le.createElement(wn,Object.assign({onClick:n},e),t)},fw=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=s.useContext(Yu);return le.createElement(wn,Object.assign({},Hb(n),{loading:e,onClick:a},t),r)};function tN(e,t){return le.createElement("span",{className:`${e}-close-x`},t||le.createElement(Hi,{className:`${e}-close-icon`}))}const nN=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:l,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:m}=e,[g]=co("Modal",kO()),v=t||(g==null?void 0:g.okText),h=r||(g==null?void 0:g.cancelText),b=le.useMemo(()=>({confirmLoading:a,okButtonProps:u,cancelButtonProps:d,okTextLocale:v,cancelTextLocale:h,okType:n,onOk:l,onCancel:c}),[a,u,d,v,h,n,l,c]);let y;return typeof m=="function"||typeof m>"u"?(y=le.createElement(le.Fragment,null,le.createElement(dw,null),le.createElement(fw,null)),typeof m=="function"&&(y=m(y,{OkBtn:fw,CancelBtn:dw})),y=le.createElement(DR,{value:b},y)):y=m,le.createElement(jb,{disabled:!1},y)},oA=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"}}}},iA=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lA=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,l={};for(let c=a;c>=0;c--)c===0?(l[`${r}${t}-${c}`]={display:"none"},l[`${r}-push-${c}`]={insetInlineStart:"auto"},l[`${r}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${c}`]={marginInlineStart:0},l[`${r}${t}-order-${c}`]={order:0}):(l[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/a*100}%`,maxWidth:`${c/a*100}%`}],l[`${r}${t}-push-${c}`]={insetInlineStart:`${c/a*100}%`},l[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/a*100}%`},l[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/a*100}%`},l[`${r}${t}-order-${c}`]={order:c});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},A0=(e,t)=>lA(e,t),sA=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},A0(e,n))}),cA=()=>({}),uA=()=>({}),dA=nn("Grid",oA,cA),rN=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),fA=nn("Grid",e=>{const t=Qt(e,{gridColumns:24}),n=rN(t);return delete n.xs,[iA(t),A0(t,""),A0(t,"-xs"),Object.keys(n).map(r=>sA(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},uA);function mw(e){return{position:e,inset:0}}const mA=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},mw("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},mw("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$8(e)}]},gA=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Z(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},cn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Z(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Z(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Xa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Z(e.borderRadiusLG)} ${Z(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:`${Z(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
206
|
+
${t}-body,
|
|
207
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},vA=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pA=e=>{const{componentCls:t}=e,n=rN(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,l=Object.keys(r).map(c=>({[`@media (min-width: ${Z(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(De(Object.keys(n).map((c,u)=>{const d=Object.keys(n)[u-1];return d?{[`${a}${c}-width`]:`var(${a}${d}-width)`}:null})),[{width:`var(${a}xs-width)`}],De(l))}}},aN=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Qt(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()})},oN=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Z(e.paddingMD)} ${Z(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Z(e.padding)} ${Z(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Z(e.paddingXS)} ${Z(e.padding)}`:0,footerBorderTop:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Z(e.padding*2)} ${Z(e.padding*2)} ${Z(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),iN=nn("Modal",e=>{const t=aN(e);return[gA(t),vA(t),mA(t),Gu(t,"zoom"),pA(t)]},oN,{unitless:{titleLineHeight:!0}});var hA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let B0;const bA=e=>{B0={x:e.pageX,y:e.pageY},setTimeout(()=>{B0=null},100)};DD()&&document.documentElement.addEventListener("click",bA,!0);const lN=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:l,centered:c,getContainer:u,focusTriggerAfterClose:d=!0,style:m,visible:g,width:v=520,footer:h,classNames:b,styles:y,children:C,loading:S,confirmLoading:x,zIndex:w,mousePosition:E,onOk:R,onCancel:N,destroyOnHidden:I,destroyOnClose:M,panelRef:j=null,modalRender:T}=e,z=hA(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:L,getPrefixCls:D,direction:A,modal:_}=s.useContext(Ot),V=Ce=>{x||N==null||N(Ce)},P=Ce=>{R==null||R(Ce)},B=D("modal",t),K=D(),G=Pr(B),[Q,k,U]=iN(B,G),W=te(l,{[`${B}-centered`]:c??(_==null?void 0:_.centered),[`${B}-wrap-rtl`]:A==="rtl"}),X=h!==null&&!S?s.createElement(nN,Object.assign({},e,{onOk:P,onCancel:V})):null,[J,ne,se,re]=$R(pm(e),pm(_),{closable:!0,closeIcon:s.createElement(Hi,{className:`${B}-close-icon`}),closeIconRender:Ce=>tN(B,Ce)}),oe=T?Ce=>s.createElement("div",{className:`${B}-render`},T(Ce)):void 0,Se=`.${B}-${T?"render":"content"}`,me=aA(Se),ie=Lr(j,me),[ge,ue]=Ku("Modal",w),[ae,ce]=s.useMemo(()=>v&&typeof v=="object"?[void 0,v]:[v,void 0],[v]),ye=s.useMemo(()=>{const Ce={};return ce&&Object.keys(ce).forEach(je=>{const ze=ce[je];ze!==void 0&&(Ce[`--${B}-${je}-width`]=typeof ze=="number"?`${ze}px`:ze)}),Ce},[B,ce]);return Q(s.createElement(Ai,{form:!0,space:!0},s.createElement(Gm.Provider,{value:ue},s.createElement(kR,Object.assign({width:ae},z,{zIndex:ge,getContainer:u===void 0?L:u,prefixCls:B,rootClassName:te(k,r,U,G),footer:X,visible:a??g,mousePosition:E??B0,onClose:V,closable:J&&Object.assign({disabled:se,closeIcon:ne},re),closeIcon:ne,focusTriggerAfterClose:d,transitionName:_i(K,"zoom",e.transitionName),maskTransitionName:_i(K,"fade",e.maskTransitionName),className:te(k,n,_==null?void 0:_.className),style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),m),ye),classNames:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.classNames),b),{wrapper:te(W,b==null?void 0:b.wrapper)}),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),y),panelRef:ie,destroyOnClose:I??M,modalRender:oe}),S?s.createElement(ki,{active:!0,title:!1,paragraph:{rows:4},className:`${B}-body-skeleton`}):C))))},yA=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:l,lineHeight:c,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:m}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:Object.assign({},zi()),[`&${t} ${t}-body`]:{padding:m},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Z(e.marginSM)})`},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${Z(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${g}-content`]:{color:e.colorText,fontSize:l,lineHeight:c},[`${g}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${g}-error ${g}-body > ${e.iconCls}`]:{color:e.colorError},[`${g}-warning ${g}-body > ${e.iconCls},
|
|
208
|
+
${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},SA=Xs(["Modal","confirm"],e=>{const t=aN(e);return yA(t)},oN,{order:-1e3});var CA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sN=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:l,type:c,okCancel:u,footer:d,locale:m}=e,g=CA(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let v=n;if(!n&&n!==null)switch(c){case"info":v=s.createElement(qm,null);break;case"success":v=s.createElement(Vu,null);break;case"error":v=s.createElement(Pl,null);break;default:v=s.createElement(zl,null)}const h=u??c==="confirm",b=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[y]=co("Modal"),C=m||y,S=r||(h?C==null?void 0:C.okText:C==null?void 0:C.justOkText),x=a||(C==null?void 0:C.cancelText),w=s.useMemo(()=>Object.assign({autoFocusButton:b,cancelTextLocale:x,okTextLocale:S,mergedOkCancel:h},g),[b,x,S,h,g]),E=s.createElement(s.Fragment,null,s.createElement(V$,null),s.createElement(K$,null)),R=e.title!==void 0&&e.title!==null,N=`${l}-body`;return s.createElement("div",{className:`${l}-body-wrapper`},s.createElement("div",{className:te(N,{[`${N}-has-title`]:R})},v,s.createElement("div",{className:`${l}-paragraph`},R&&s.createElement("span",{className:`${l}-title`},e.title),s.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?s.createElement(DR,{value:w},s.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(E,{OkBtn:K$,CancelBtn:V$}):E)):d,s.createElement(SA,{prefixCls:t}))},xA=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:l,wrapClassName:c,rootPrefixCls:u,bodyStyle:d,closable:m=!1,onConfirm:g,styles:v,title:h}=e,b=`${l}-confirm`,y=e.width||416,C=e.style||{},S=e.mask===void 0?!0:e.mask,x=e.maskClosable===void 0?!1:e.maskClosable,w=te(b,`${b}-${e.type}`,{[`${b}-rtl`]:a==="rtl"},e.className),[,E]=jr(),R=s.useMemo(()=>n!==void 0?n:E.zIndexPopupBase+Ab,[n,E]);return s.createElement(lN,Object.assign({},e,{className:w,wrapClassName:te({[`${b}-centered`]:!!e.centered},c),onCancel:()=>{t==null||t({triggerCancel:!0}),g==null||g(!1)},title:h,footer:null,transitionName:_i(u||"","zoom",e.transitionName),maskTransitionName:_i(u||"","fade",e.maskTransitionName),mask:S,maskClosable:x,style:C,styles:Object.assign({body:d,mask:r},v),width:y,zIndex:R,closable:m}),s.createElement(sN,Object.assign({},e,{confirmPrefixCls:b})))},cN=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return s.createElement(uo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},s.createElement(xA,Object.assign({},e)))},vl=[];let uN="";function dN(){return uN}const $A=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:l}=e,c=kO(),u=s.useContext(Ot),d=dN()||u.getPrefixCls(),m=r||`${d}-modal`;let g=a;return g===!1&&(g=void 0),le.createElement(cN,Object.assign({},e,{rootPrefixCls:d,prefixCls:m,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:c,getContainer:g}))};function Zu(e){const t=rz(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),a,l;function c(...g){var v;if(g.some(y=>y==null?void 0:y.triggerCancel)){var b;(v=e.onCancel)===null||v===void 0||(b=v).call.apply(b,[e,()=>{}].concat(De(g.slice(1))))}for(let y=0;y<vl.length;y++)if(vl[y]===d){vl.splice(y,1);break}l()}const u=g=>{clearTimeout(a),a=setTimeout(()=>{const v=t.getPrefixCls(void 0,dN()),h=t.getIconPrefixCls(),b=t.getTheme(),y=le.createElement($A,Object.assign({},g));l=Lb()(le.createElement(uo,{prefixCls:v,iconPrefixCls:h,theme:b},typeof t.holderRender=="function"?t.holderRender(y):y),n)})};function d(...g){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),c.apply(this,g)}}),r.visible&&delete r.visible,u(r)}function m(g){typeof g=="function"?r=g(r):r=Object.assign(Object.assign({},r),g),u(r)}return u(r),vl.push(d),{destroy:d,update:m}}function fN(e){return Object.assign(Object.assign({},e),{type:"warning"})}function mN(e){return Object.assign(Object.assign({},e),{type:"info"})}function gN(e){return Object.assign(Object.assign({},e),{type:"success"})}function vN(e){return Object.assign(Object.assign({},e),{type:"error"})}function pN(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function wA({rootPrefixCls:e}){uN=e}var EA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const OA=(e,t)=>{var n,{afterClose:r,config:a}=e,l=EA(e,["afterClose","config"]);const[c,u]=s.useState(!0),[d,m]=s.useState(a),{direction:g,getPrefixCls:v}=s.useContext(Ot),h=v("modal"),b=v(),y=()=>{var w;r(),(w=d.afterClose)===null||w===void 0||w.call(d)},C=(...w)=>{var E;if(u(!1),w.some(I=>I==null?void 0:I.triggerCancel)){var N;(E=d.onCancel)===null||E===void 0||(N=E).call.apply(N,[d,()=>{}].concat(De(w.slice(1))))}};s.useImperativeHandle(t,()=>({destroy:C,update:w=>{m(E=>{const R=typeof w=="function"?w(E):w;return Object.assign(Object.assign({},E),R)})}}));const S=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[x]=co("Modal",io.Modal);return s.createElement(cN,Object.assign({prefixCls:h,rootPrefixCls:b},d,{close:C,open:c,afterClose:y,okText:d.okText||(S?x==null?void 0:x.okText:x==null?void 0:x.justOkText),direction:d.direction||g,cancelText:d.cancelText||(x==null?void 0:x.cancelText)},l))},RA=s.forwardRef(OA);let gw=0;const NA=s.memo(s.forwardRef((e,t)=>{const[n,r]=a_();return s.useImperativeHandle(t,()=>({patchElement:r}),[r]),s.createElement(s.Fragment,null,n)}));function hN(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(De(t).forEach(c=>{c()}),n([]))},[t]);const r=s.useCallback(l=>function(u){var d;gw+=1;const m=s.createRef();let g;const v=new Promise(S=>{g=S});let h=!1,b;const y=s.createElement(RA,{key:`modal-${gw}`,config:l(u),ref:m,afterClose:()=>{b==null||b()},isSilent:()=>h,onConfirm:S=>{g(S)}});return b=(d=e.current)===null||d===void 0?void 0:d.patchElement(y),b&&vl.push(b),{destroy:()=>{function S(){var x;(x=m.current)===null||x===void 0||x.destroy()}m.current?S():n(x=>[].concat(De(x),[S]))},update:S=>{function x(){var w;(w=m.current)===null||w===void 0||w.update(S)}m.current?x():n(w=>[].concat(De(w),[x]))},then:S=>(h=!0,v.then(S))}},[]);return[s.useMemo(()=>({info:r(mN),success:r(gN),error:r(vN),warning:r(fN),confirm:r(pN)}),[r]),s.createElement(NA,{key:"modal-holder",ref:e})]}const TA=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,l=new Yt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new Yt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),u=new Yt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),d=new Yt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:d}}}}},IA=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],MA={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},jA=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[MA[t]]:{value:0,_skip_check_:!0}}}}},PA=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},zA=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},_A=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},PA(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},zA(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},IA.map(n=>jA(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},DA=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:l,borderRadiusLG:c,colorSuccess:u,colorInfo:d,colorWarning:m,colorError:g,colorTextHeading:v,notificationBg:h,notificationPadding:b,notificationMarginEdge:y,notificationProgressBg:C,notificationProgressHeight:S,fontSize:x,lineHeight:w,width:E,notificationIconSize:R,colorText:N,colorSuccessBg:I,colorErrorBg:M,colorInfoBg:j,colorWarningBg:T}=e,z=`${n}-notice`;return{position:"relative",marginBottom:l,marginInlineStart:"auto",background:h,borderRadius:c,boxShadow:r,[z]:{padding:b,width:E,maxWidth:`calc(100vw - ${Z(e.calc(y).mul(2).equal())})`,lineHeight:w,wordWrap:"break-word",borderRadius:c,overflow:"hidden","&-success":I?{background:I}:{},"&-error":M?{background:M}:{},"&-info":j?{background:j}:{},"&-warning":T?{background:T}:{}},[`${z}-message`]:{color:v,fontSize:a,lineHeight:e.lineHeightLG},[`${z}-description`]:{fontSize:x,color:N,marginTop:e.marginXS},[`${z}-closable ${z}-message`]:{paddingInlineEnd:e.paddingLG},[`${z}-with-icon ${z}-message`]:{marginInlineStart:e.calc(e.marginSM).add(R).equal(),fontSize:a},[`${z}-with-icon ${z}-description`]:{marginInlineStart:e.calc(e.marginSM).add(R).equal(),fontSize:x},[`${z}-icon`]:{position:"absolute",fontSize:R,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:d},[`&-warning${t}`]:{color:m},[`&-error${t}`]:{color:g}},[`${z}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Xa(e)),[`${z}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${Z(c)} * 2)`,left:{_skip_check_:!0,value:c},right:{_skip_check_:!0,value:c},bottom:0,blockSize:S,border:0,"&, &::-webkit-progress-bar":{borderRadius:c,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:C},"&::-webkit-progress-value":{borderRadius:c,background:C}},[`${z}-actions`]:{float:"right",marginTop:e.marginSM}}},AA=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:l}=e,c=`${t}-notice`,u=new Yt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},cn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:l,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:l,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${c}-actions`]:{float:"left"}}})},{[t]:{[`${c}-wrapper`]:DA(e)}}]},BA=e=>({zIndexPopup:e.zIndexPopupBase+Ab+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),LA=e=>{const t=e.paddingMD,n=e.paddingLG;return Qt(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:`${Z(e.paddingMD)} ${Z(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},HA=nn("Notification",e=>{const t=LA(e);return[AA(t),TA(t),_A(t)]},BA);function bN(e,t){return t===null||t===!1?null:t||s.createElement(Hi,{className:`${e}-close-icon`})}const FA={success:Vu,info:qm,error:Pl,warning:zl},kA=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:l,actions:c,role:u="alert"}=e;let d=null;return n?d=s.createElement("span",{className:`${t}-icon`},n):r&&(d=s.createElement(FA[r]||null,{className:te(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:te({[`${t}-with-icon`]:d}),role:u},d,s.createElement("div",{className:`${t}-message`},a),l&&s.createElement("div",{className:`${t}-description`},l),c&&s.createElement("div",{className:`${t}-actions`},c))};function VA(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function KA(e){return{motionName:`${e}-fade`}}function WA(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 UA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vw=24,qA=4.5,GA="topRight",XA=({children:e,prefixCls:t})=>{const n=Pr(t),[r,a,l]=HA(t,n);return r(le.createElement(CR,{classNames:{list:te(a,l,n)}},e))},YA=(e,{prefixCls:t,key:n})=>le.createElement(XA,{prefixCls:t,key:n},e),QA=le.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:l,maxCount:c,rtl:u,onAllRemoved:d,stack:m,duration:g,pauseOnHover:v=!0,showProgress:h}=e,{getPrefixCls:b,getPopupContainer:y,notification:C,direction:S}=s.useContext(Ot),[,x]=jr(),w=a||b("notification"),E=j=>VA(j,n??vw,r??vw),R=()=>te({[`${w}-rtl`]:u??S==="rtl"}),N=()=>KA(w),[I,M]=xR({prefixCls:w,style:E,className:R,motion:N,closable:!0,closeIcon:bN(w),duration:g??qA,getContainer:()=>(l==null?void 0:l())||(y==null?void 0:y())||document.body,maxCount:c,pauseOnHover:v,showProgress:h,onAllRemoved:d,renderNotifications:YA,stack:m===!1?!1:{threshold:typeof m=="object"?m==null?void 0:m.threshold:void 0,offset:8,gap:x.margin}});return le.useImperativeHandle(t,()=>Object.assign(Object.assign({},I),{prefixCls:w,notification:C})),M});function ZA(e){const t=le.useRef(null);return Oo(),[le.useMemo(()=>{const r=u=>{var d;if(!t.current)return;const{open:m,prefixCls:g,notification:v}=t.current,h=`${g}-notice`,{message:b,description:y,icon:C,type:S,btn:x,actions:w,className:E,style:R,role:N="alert",closeIcon:I,closable:M}=u,j=UA(u,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),T=w??x,z=bN(h,WA(I,e,v));return m(Object.assign(Object.assign({placement:(d=e==null?void 0:e.placement)!==null&&d!==void 0?d:GA},j),{content:le.createElement(kA,{prefixCls:h,icon:C,type:S,message:b,description:y,actions:T,role:N}),className:te(S&&`${h}-${S}`,E,v==null?void 0:v.className),style:Object.assign(Object.assign({},v==null?void 0:v.style),R),closeIcon:z,closable:M??!!z}))},l={open:r,destroy:u=>{var d,m;u!==void 0?(d=t.current)===null||d===void 0||d.close(u):(m=t.current)===null||m===void 0||m.destroy()}};return["success","info","warning","error"].forEach(u=>{l[u]=d=>r(Object.assign(Object.assign({},d),{type:u}))}),l},[]),le.createElement(QA,Object.assign({key:"notification-holder"},e,{ref:t}))]}function JA(e){return ZA(e)}const pw=le.createContext({}),yN=le.createContext({message:{},notification:{},modal:{}}),eB=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:l}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:l,[`&${t}-rtl`]:{direction:"rtl"}}}},tB=()=>({}),nB=nn("App",eB,tB),rB=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:l,notification:c,style:u,component:d="div"}=e,{direction:m,getPrefixCls:g}=s.useContext(Ot),v=g("app",t),[h,b,y]=nB(v),C=te(b,v,r,a,y,{[`${v}-rtl`]:m==="rtl"}),S=s.useContext(pw),x=le.useMemo(()=>({message:Object.assign(Object.assign({},S.message),l),notification:Object.assign(Object.assign({},S.notification),c)}),[l,c,S.message,S.notification]),[w,E]=E_(x.message),[R,N]=JA(x.notification),[I,M]=hN(),j=le.useMemo(()=>({message:w,notification:R,modal:I}),[w,R,I]);Oo()(!(y&&d===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const T=d===!1?le.Fragment:d,z={className:C,style:u};return h(le.createElement(yN.Provider,{value:j},le.createElement(pw.Provider,{value:x},le.createElement(T,Object.assign({},d===!1?void 0:z),M,E,N,n))))},aB=()=>le.useContext(yN),ty=rB;ty.useApp=aB;function SN(e){return t=>s.createElement(uo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const CN=(e,t,n,r,a)=>SN(c=>{const{prefixCls:u,style:d}=c,m=s.useRef(null),[g,v]=s.useState(0),[h,b]=s.useState(0),[y,C]=Gn(!1,{value:c.open}),{getPrefixCls:S}=s.useContext(Ot),x=S(r||"select",u);s.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(I=>{const M=I[0].target;v(M.offsetHeight+8),b(M.offsetWidth)}),N=setInterval(()=>{var I;const M=a?`.${a(x)}`:`.${x}-dropdown`,j=(I=m.current)===null||I===void 0?void 0:I.querySelector(M);j&&(clearInterval(N),R.observe(j))},10);return()=>{clearInterval(N),R.disconnect()}}},[x]);let w=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},d),{margin:0}),open:y,visible:y,getPopupContainer:()=>m.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const E={paddingBottom:g,position:"relative",minWidth:h};return s.createElement("div",{ref:m,style:E},s.createElement(e,Object.assign({},w)))}),cg=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var ug=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,l=t.children,c=t.onMouseDown,u=t.onClick,d=typeof r=="function"?r(a):r;return s.createElement("span",{className:n,onMouseDown:function(g){g.preventDefault(),c==null||c(g)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},d!==void 0?d:s.createElement("span",{className:te(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},oB=function(t,n,r,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,m=le.useMemo(function(){if($t(a)==="object")return a.clearIcon;if(l)return l},[a,l]),g=le.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(d==="combobox"&&u===""))},[a,c,r.length,u,d]);return{allowClear:g,clearIcon:le.createElement(ug,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},xN=s.createContext(null);function iB(){return s.useContext(xN)}function lB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=de(t,2),r=n[0],a=n[1],l=s.useRef(null),c=function(){window.clearTimeout(l.current)};s.useEffect(function(){return c},[]);var u=function(m,g){c(),l.current=window.setTimeout(function(){a(m),g&&g()},e)};return[r,u,c]}function $N(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function sB(e,t,n,r){var a=s.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function l(c){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=c.target;d.shadowRoot&&c.composed&&(d=c.composedPath()[0]||d),a.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(d)&&m!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function cB(e){return e&&![ft.ESC,ft.SHIFT,ft.BACKSPACE,ft.TAB,ft.WIN_KEY,ft.ALT,ft.META,ft.WIN_KEY_RIGHT,ft.CTRL,ft.SEMICOLON,ft.EQUALS,ft.CAPS_LOCK,ft.CONTEXT_MENU,ft.F1,ft.F2,ft.F3,ft.F4,ft.F5,ft.F6,ft.F7,ft.F8,ft.F9,ft.F10,ft.F11,ft.F12].includes(e)}var uB=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],hs=void 0;function dB(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,l=e.renderItem,c=e.responsive,u=e.responsiveDisabled,d=e.registerSize,m=e.itemKey,g=e.className,v=e.style,h=e.children,b=e.display,y=e.order,C=e.component,S=C===void 0?"div":C,x=Pt(e,uB),w=c&&!b;function E(j){d(m,j)}s.useEffect(function(){return function(){E(null)}},[]);var R=l&&a!==hs?l(a,{index:y}):h,N;r||(N={opacity:w?0:1,height:w?0:hs,overflowY:w?"hidden":hs,order:c?y:hs,pointerEvents:w?"none":hs,position:w?"absolute":hs});var I={};w&&(I["aria-hidden"]=!0);var M=s.createElement(S,Oe({className:te(!r&&n,g),style:ee(ee({},N),v)},I,x,{ref:t}),R);return c&&(M=s.createElement(ca,{onResize:function(T){var z=T.offsetWidth;E(z)},disabled:u},M)),M}var Ms=s.forwardRef(dB);Ms.displayName="Item";function fB(e){if(typeof MessageChannel>"u")tn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function mB(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],fB(function(){Uo.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function bs(e,t){var n=s.useState(t),r=de(n,2),a=r[0],l=r[1],c=Sn(function(u){e(function(){l(u)})});return[a,c]}var Sm=le.createContext(null),gB=["component"],vB=["className"],pB=["className"],hB=function(t,n){var r=s.useContext(Sm);if(!r){var a=t.component,l=a===void 0?"div":a,c=Pt(t,gB);return s.createElement(l,Oe({},c,{ref:n}))}var u=r.className,d=Pt(r,vB),m=t.className,g=Pt(t,pB);return s.createElement(Sm.Provider,{value:null},s.createElement(Ms,Oe({ref:n,className:te(u,m)},d,g)))},wN=s.forwardRef(hB);wN.displayName="RawItem";var bB=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],EN="responsive",ON="invalidate";function yB(e){return"+ ".concat(e.length," ...")}function SB(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,l=a===void 0?[]:a,c=e.renderItem,u=e.renderRawItem,d=e.itemKey,m=e.itemWidth,g=m===void 0?10:m,v=e.ssr,h=e.style,b=e.className,y=e.maxCount,C=e.renderRest,S=e.renderRawRest,x=e.prefix,w=e.suffix,E=e.component,R=E===void 0?"div":E,N=e.itemComponent,I=e.onVisibleChange,M=Pt(e,bB),j=v==="full",T=mB(),z=bs(T,null),L=de(z,2),D=L[0],A=L[1],_=D||0,V=bs(T,new Map),P=de(V,2),B=P[0],K=P[1],G=bs(T,0),Q=de(G,2),k=Q[0],U=Q[1],W=bs(T,0),X=de(W,2),J=X[0],ne=X[1],se=bs(T,0),re=de(se,2),oe=re[0],Se=re[1],me=bs(T,0),ie=de(me,2),ge=ie[0],ue=ie[1],ae=s.useState(null),ce=de(ae,2),ye=ce[0],Ce=ce[1],je=s.useState(null),ze=de(je,2),ve=ze[0],Te=ze[1],Ee=s.useMemo(function(){return ve===null&&j?Number.MAX_SAFE_INTEGER:ve||0},[ve,D]),xe=s.useState(!1),Ve=de(xe,2),Xe=Ve[0],it=Ve[1],at="".concat(r,"-item"),Ye=Math.max(k,J),Je=y===EN,_e=l.length&&Je,Ie=y===ON,We=_e||typeof y=="number"&&l.length>y,Be=s.useMemo(function(){var He=l;return _e?D===null&&j?He=l:He=l.slice(0,Math.min(l.length,_/g)):typeof y=="number"&&(He=l.slice(0,y)),He},[l,g,D,y,_e]),Ge=s.useMemo(function(){return _e?l.slice(Ee+1):l.slice(Be.length)},[l,Be,_e,Ee]),Me=s.useCallback(function(He,Le){var nt;return typeof d=="function"?d(He):(nt=d&&(He==null?void 0:He[d]))!==null&&nt!==void 0?nt:Le},[d]),Qe=s.useCallback(c||function(He){return He},[c]);function lt(He,Le,nt){ve===He&&(Le===void 0||Le===ye)||(Te(He),nt||(it(He<l.length-1),I==null||I(He)),Le!==void 0&&Ce(Le))}function mt(He,Le){A(Le.clientWidth)}function Dt(He,Le){K(function(nt){var pt=new Map(nt);return Le===null?pt.delete(He):pt.set(He,Le),pt})}function At(He,Le){ne(Le),U(J)}function et(He,Le){Se(Le)}function ct(He,Le){ue(Le)}function gt(He){return B.get(Me(Be[He],He))}en(function(){if(_&&typeof Ye=="number"&&Be){var He=oe+ge,Le=Be.length,nt=Le-1;if(!Le){lt(0,null);return}for(var pt=0;pt<Le;pt+=1){var ht=gt(pt);if(j&&(ht=ht||0),ht===void 0){lt(pt-1,void 0,!0);break}if(He+=ht,nt===0&&He<=_||pt===nt-1&&He+gt(nt)<=_){lt(nt,null);break}else if(He+Ye>_){lt(pt-1,He-ht-ge+J);break}}w&>(0)+ge>_&&Ce(null)}},[_,B,J,oe,ge,Me,Be]);var ot=Xe&&!!Ge.length,vt={};ye!==null&&_e&&(vt={position:"absolute",left:ye,top:0});var Mt={prefixCls:at,responsive:_e,component:N,invalidate:Ie},pe=u?function(He,Le){var nt=Me(He,Le);return s.createElement(Sm.Provider,{key:nt,value:ee(ee({},Mt),{},{order:Le,item:He,itemKey:nt,registerSize:Dt,display:Le<=Ee})},u(He,Le))}:function(He,Le){var nt=Me(He,Le);return s.createElement(Ms,Oe({},Mt,{order:Le,key:nt,item:He,renderItem:Qe,itemKey:nt,registerSize:Dt,display:Le<=Ee}))},be={order:ot?Ee:Number.MAX_SAFE_INTEGER,className:"".concat(at,"-rest"),registerSize:At,display:ot},we=C||yB,Ke=S?s.createElement(Sm.Provider,{value:ee(ee({},Mt),be)},S(Ge)):s.createElement(Ms,Oe({},Mt,be),typeof we=="function"?we(Ge):we),ke=s.createElement(R,Oe({className:te(!Ie&&r,b),style:h,ref:t},M),x&&s.createElement(Ms,Oe({},Mt,{responsive:Je,responsiveDisabled:!_e,order:-1,className:"".concat(at,"-prefix"),registerSize:et,display:!0}),x),Be.map(pe),We?Ke:null,w&&s.createElement(Ms,Oe({},Mt,{responsive:Je,responsiveDisabled:!_e,order:Ee,className:"".concat(at,"-suffix"),registerSize:ct,display:!0,style:vt}),w));return Je?s.createElement(ca,{onResize:mt,disabled:!_e},ke):ke}var So=s.forwardRef(SB);So.displayName="Overflow";So.Item=wN;So.RESPONSIVE=EN;So.INVALIDATE=ON;function CB(e,t,n){var r=ee(ee({},e),t);return Object.keys(t).forEach(function(a){var l=t[a];typeof l=="function"&&(r[a]=function(){for(var c,u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return l.apply(void 0,d),(c=e[a])===null||c===void 0?void 0:c.call.apply(c,[e].concat(d))})}),r}var xB=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],$B=function(t,n){var r=t.prefixCls,a=t.id,l=t.inputElement,c=t.autoFocus,u=t.autoComplete,d=t.editable,m=t.activeDescendantId,g=t.value,v=t.open,h=t.attrs,b=Pt(t,xB),y=l||s.createElement("input",null),C=y,S=C.ref,x=C.props;return"maxLength"in y.props,y=s.cloneElement(y,ee(ee(ee({type:"search"},CB(b,x)),{},{id:a,ref:Lr(n,S),autoComplete:u||"off",autoFocus:c,className:te("".concat(r,"-selection-search-input"),x==null?void 0:x.className),role:"combobox","aria-expanded":v||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":v?m:void 0},h),{},{value:d?g:"",readOnly:!d,unselectable:d?null:"on",style:ee(ee({},x.style),{},{opacity:d?null:0})})),y},RN=s.forwardRef($B);function NN(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var wB=typeof window<"u"&&window.document&&window.document.documentElement,EB=wB;function OB(e){return e!=null}function RB(e){return!e&&e!==0}function hw(e){return["string","number"].includes($t(e))}function TN(e){var t=void 0;return e&&(hw(e.title)?t=e.title.toString():hw(e.label)&&(t=e.label.toString())),t}function NB(e,t){EB?s.useLayoutEffect(e,t):s.useEffect(e,t)}function TB(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var bw=function(t){t.preventDefault(),t.stopPropagation()},IB=function(t){var n=t.id,r=t.prefixCls,a=t.values,l=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,m=t.placeholder,g=t.disabled,v=t.mode,h=t.showSearch,b=t.autoFocus,y=t.autoComplete,C=t.activeDescendantId,S=t.tabIndex,x=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,R=t.maxTagPlaceholder,N=R===void 0?function(ue){return"+ ".concat(ue.length," ...")}:R,I=t.tagRender,M=t.onToggleOpen,j=t.onRemove,T=t.onInputChange,z=t.onInputPaste,L=t.onInputKeyDown,D=t.onInputMouseDown,A=t.onInputCompositionStart,_=t.onInputCompositionEnd,V=t.onInputBlur,P=s.useRef(null),B=s.useState(0),K=de(B,2),G=K[0],Q=K[1],k=s.useState(!1),U=de(k,2),W=U[0],X=U[1],J="".concat(r,"-selection"),ne=l||v==="multiple"&&u===!1||v==="tags"?c:"",se=v==="tags"||v==="multiple"&&u===!1||h&&(l||W);NB(function(){Q(P.current.scrollWidth)},[ne]);var re=function(ae,ce,ye,Ce,je){return s.createElement("span",{title:TN(ae),className:te("".concat(J,"-item"),q({},"".concat(J,"-item-disabled"),ye))},s.createElement("span",{className:"".concat(J,"-item-content")},ce),Ce&&s.createElement(ug,{className:"".concat(J,"-item-remove"),onMouseDown:bw,onClick:je,customizeIcon:x},"×"))},oe=function(ae,ce,ye,Ce,je,ze){var ve=function(Ee){bw(Ee),M(!l)};return s.createElement("span",{onMouseDown:ve},I({label:ce,value:ae,disabled:ye,closable:Ce,onClose:je,isMaxTag:!!ze}))},Se=function(ae){var ce=ae.disabled,ye=ae.label,Ce=ae.value,je=!g&&!ce,ze=ye;if(typeof E=="number"&&(typeof ye=="string"||typeof ye=="number")){var ve=String(ze);ve.length>E&&(ze="".concat(ve.slice(0,E),"..."))}var Te=function(xe){xe&&xe.stopPropagation(),j(ae)};return typeof I=="function"?oe(Ce,ze,ce,je,Te):re(ae,ze,ce,je,Te)},me=function(ae){if(!a.length)return null;var ce=typeof N=="function"?N(ae):N;return typeof I=="function"?oe(void 0,ce,!1,!1,void 0,!0):re({title:ce},ce,!1)},ie=s.createElement("div",{className:"".concat(J,"-search"),style:{width:G},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},s.createElement(RN,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:g,autoFocus:b,autoComplete:y,editable:se,activeDescendantId:C,value:ne,onKeyDown:L,onMouseDown:D,onChange:T,onPaste:z,onCompositionStart:A,onCompositionEnd:_,onBlur:V,tabIndex:S,attrs:Ar(t,!0)}),s.createElement("span",{ref:P,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ne," ")),ge=s.createElement(So,{prefixCls:"".concat(J,"-overflow"),data:a,renderItem:Se,renderRest:me,suffix:ie,itemKey:TB,maxCount:w});return s.createElement("span",{className:"".concat(J,"-wrap")},ge,!a.length&&!ne&&s.createElement("span",{className:"".concat(J,"-placeholder")},m))},MB=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,l=t.inputRef,c=t.disabled,u=t.autoFocus,d=t.autoComplete,m=t.activeDescendantId,g=t.mode,v=t.open,h=t.values,b=t.placeholder,y=t.tabIndex,C=t.showSearch,S=t.searchValue,x=t.activeValue,w=t.maxLength,E=t.onInputKeyDown,R=t.onInputMouseDown,N=t.onInputChange,I=t.onInputPaste,M=t.onInputCompositionStart,j=t.onInputCompositionEnd,T=t.onInputBlur,z=t.title,L=s.useState(!1),D=de(L,2),A=D[0],_=D[1],V=g==="combobox",P=V||C,B=h[0],K=S||"";V&&x&&!A&&(K=x),s.useEffect(function(){V&&_(!1)},[V,x]);var G=g!=="combobox"&&!v&&!C?!1:!!K,Q=z===void 0?TN(B):z,k=s.useMemo(function(){return B?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},b)},[B,G,b,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(RN,{ref:l,prefixCls:r,id:a,open:v,inputElement:n,disabled:c,autoFocus:u,autoComplete:d,editable:P,activeDescendantId:m,value:K,onKeyDown:E,onMouseDown:R,onChange:function(W){_(!0),N(W)},onPaste:I,onCompositionStart:M,onCompositionEnd:j,onBlur:T,tabIndex:y,attrs:Ar(t,!0),maxLength:V?w:void 0})),!V&&B?s.createElement("span",{className:"".concat(r,"-selection-item"),title:Q,style:G?{visibility:"hidden"}:void 0},B.label):null,k)},jB=function(t,n){var r=s.useRef(null),a=s.useRef(!1),l=t.prefixCls,c=t.open,u=t.mode,d=t.showSearch,m=t.tokenWithEnter,g=t.disabled,v=t.prefix,h=t.autoClearSearchValue,b=t.onSearch,y=t.onSearchSubmit,C=t.onToggleOpen,S=t.onInputKeyDown,x=t.onInputBlur,w=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(Q){r.current.focus(Q)},blur:function(){r.current.blur()}}});var E=$N(0),R=de(E,2),N=R[0],I=R[1],M=function(Q){var k=Q.which,U=r.current instanceof HTMLTextAreaElement;!U&&c&&(k===ft.UP||k===ft.DOWN)&&Q.preventDefault(),S&&S(Q),k===ft.ENTER&&u==="tags"&&!a.current&&!c&&(y==null||y(Q.target.value)),!(U&&!c&&~[ft.UP,ft.DOWN,ft.LEFT,ft.RIGHT].indexOf(k))&&cB(k)&&C(!0)},j=function(){I(!0)},T=s.useRef(null),z=function(Q){b(Q,!0,a.current)!==!1&&C(!0)},L=function(){a.current=!0},D=function(Q){a.current=!1,u!=="combobox"&&z(Q.target.value)},A=function(Q){var k=Q.target.value;if(m&&T.current&&/[\r\n]/.test(T.current)){var U=T.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(U,T.current)}T.current=null,z(k)},_=function(Q){var k=Q.clipboardData,U=k==null?void 0:k.getData("text");T.current=U||""},V=function(Q){var k=Q.target;if(k!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},P=function(Q){var k=N();Q.target!==r.current&&!k&&!(u==="combobox"&&g)&&Q.preventDefault(),(u!=="combobox"&&(!d||!k)||!c)&&(c&&h!==!1&&b("",!0,!1),C())},B={inputRef:r,onInputKeyDown:M,onInputMouseDown:j,onInputChange:A,onInputPaste:_,onInputCompositionStart:L,onInputCompositionEnd:D,onInputBlur:x},K=u==="multiple"||u==="tags"?s.createElement(IB,Oe({},t,B)):s.createElement(MB,Oe({},t,B));return s.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:V,onMouseDown:P},v&&s.createElement("div",{className:"".concat(l,"-prefix")},v),K)},PB=s.forwardRef(jB);function zB(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,l=r||{},c=l.className,u=l.content,d=a.x,m=d===void 0?0:d,g=a.y,v=g===void 0?0:g,h=s.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],C=n.points[1],S=y[0],x=y[1],w=C[0],E=C[1];S===w||!["t","b"].includes(S)?b.top=v:S==="t"?b.top=0:b.bottom=0,x===E||!["l","r"].includes(x)?b.left=m:x==="l"?b.left=0:b.right=0}return s.createElement("div",{ref:h,className:te("".concat(t,"-arrow"),c),style:b},u)}function _B(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,l=e.motion;return a?s.createElement(Sa,Oe({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return s.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),u)})}):null}var DB=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),AB=s.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,l=e.style,c=e.target,u=e.onVisibleChanged,d=e.open,m=e.keepDom,g=e.fresh,v=e.onClick,h=e.mask,b=e.arrow,y=e.arrowPos,C=e.align,S=e.motion,x=e.maskMotion,w=e.forceRender,E=e.getPopupContainer,R=e.autoDestroy,N=e.portal,I=e.zIndex,M=e.onMouseEnter,j=e.onMouseLeave,T=e.onPointerEnter,z=e.onPointerDownCapture,L=e.ready,D=e.offsetX,A=e.offsetY,_=e.offsetR,V=e.offsetB,P=e.onAlign,B=e.onPrepare,K=e.stretch,G=e.targetWidth,Q=e.targetHeight,k=typeof n=="function"?n():n,U=d||m,W=(E==null?void 0:E.length)>0,X=s.useState(!E||!W),J=de(X,2),ne=J[0],se=J[1];if(en(function(){!ne&&W&&c&&se(!0)},[ne,W,c]),!ne)return null;var re="auto",oe={left:"-1000vw",top:"-1000vh",right:re,bottom:re};if(L||!d){var Se,me=C.points,ie=C.dynamicInset||((Se=C._experimental)===null||Se===void 0?void 0:Se.dynamicInset),ge=ie&&me[0][1]==="r",ue=ie&&me[0][0]==="b";ge?(oe.right=_,oe.left=re):(oe.left=D,oe.right=re),ue?(oe.bottom=V,oe.top=re):(oe.top=A,oe.bottom=re)}var ae={};return K&&(K.includes("height")&&Q?ae.height=Q:K.includes("minHeight")&&Q&&(ae.minHeight=Q),K.includes("width")&&G?ae.width=G:K.includes("minWidth")&&G&&(ae.minWidth=G)),d||(ae.pointerEvents="none"),s.createElement(N,{open:w||U,getContainer:E&&function(){return E(c)},autoDestroy:R},s.createElement(_B,{prefixCls:a,open:d,zIndex:I,mask:h,motion:x}),s.createElement(ca,{onResize:P,disabled:!d},function(ce){return s.createElement(Sa,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(a,"-hidden")},S,{onAppearPrepare:B,onEnterPrepare:B,visible:d,onVisibleChanged:function(Ce){var je;S==null||(je=S.onVisibleChanged)===null||je===void 0||je.call(S,Ce),u(Ce)}}),function(ye,Ce){var je=ye.className,ze=ye.style,ve=te(a,je,r);return s.createElement("div",{ref:Lr(ce,t,Ce),className:ve,style:ee(ee(ee(ee({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},oe),ae),ze),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:M,onMouseLeave:j,onPointerEnter:T,onClick:v,onPointerDownCapture:z},b&&s.createElement(zB,{prefixCls:a,arrow:b,arrowPos:y,align:C}),s.createElement(DB,{cache:!d&&!g},k))})}))}),BB=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=oo(n),l=s.useCallback(function(u){wu(t,r?r(u):u)},[r]),c=Yo(l,Li(n));return a?s.cloneElement(n,{ref:c}):n}),yw=s.createContext(null);function Sw(e){return e?Array.isArray(e)?e:[e]:[]}function LB(e,t,n,r){return s.useMemo(function(){var a=Sw(n??t),l=Sw(r??t),c=new Set(a),u=new Set(l);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[c,u]},[e,t,n,r])}function HB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function FB(e,t,n,r){for(var a=n.points,l=Object.keys(e),c=0;c<l.length;c+=1){var u,d=l[c];if(HB((u=e[d])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function Cw(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ju(e){return e.ownerDocument.defaultView}function L0(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=Ju(n).getComputedStyle(n),l=a.overflowX,c=a.overflowY,u=a.overflow;[l,c,u].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function eu(e){return zu(parseFloat(e),0)}function xw(e,t){var n=ee({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Ju(r).getComputedStyle(r),l=a.overflow,c=a.overflowClipMargin,u=a.borderTopWidth,d=a.borderBottomWidth,m=a.borderLeftWidth,g=a.borderRightWidth,v=r.getBoundingClientRect(),h=r.offsetHeight,b=r.clientHeight,y=r.offsetWidth,C=r.clientWidth,S=eu(u),x=eu(d),w=eu(m),E=eu(g),R=zu(Math.round(v.width/y*1e3)/1e3),N=zu(Math.round(v.height/h*1e3)/1e3),I=(y-C-w-E)*R,M=(h-b-S-x)*N,j=S*N,T=x*N,z=w*R,L=E*R,D=0,A=0;if(l==="clip"){var _=eu(c);D=_*R,A=_*N}var V=v.x+z-D,P=v.y+j-A,B=V+v.width+2*D-z-L-I,K=P+v.height+2*A-j-T-M;n.left=Math.max(n.left,V),n.top=Math.max(n.top,P),n.right=Math.min(n.right,B),n.bottom=Math.min(n.bottom,K)}}),n}function $w(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ww(e,t){var n=t||[],r=de(n,2),a=r[0],l=r[1];return[$w(e.width,a),$w(e.height,l)]}function Ew(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ys(e,t){var n=t[0],r=t[1],a,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:l}}function $i(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function kB(e,t,n,r,a,l,c){var u=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=de(u,2),m=d[0],g=d[1],v=s.useRef(0),h=s.useMemo(function(){return t?L0(t):[]},[t]),b=s.useRef({}),y=function(){b.current={}};e||y();var C=Sn(function(){if(t&&n&&e){let On=function(zr,fr){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve,Wi=U.x+zr,Zo=U.y+fr,Bl=Wi+ue,Rt=Zo+ge,Ht=Math.max(Wi,Vr.left),An=Math.max(Zo,Vr.top),Wn=Math.min(Bl,Vr.right),Cn=Math.min(Rt,Vr.bottom);return Math.max(0,(Wn-Ht)*(Cn-An))},Rr=function(){Nt=U.y+we,rn=Nt+ge,dn=U.x+be,Wt=dn+ue};var kr=On,Kn=Rr,w,E,R,N,I=t,M=I.ownerDocument,j=Ju(I),T=j.getComputedStyle(I),z=T.position,L=I.style.left,D=I.style.top,A=I.style.right,_=I.style.bottom,V=I.style.overflow,P=ee(ee({},a[r]),l),B=M.createElement("div");(w=I.parentElement)===null||w===void 0||w.appendChild(B),B.style.left="".concat(I.offsetLeft,"px"),B.style.top="".concat(I.offsetTop,"px"),B.style.position=z,B.style.height="".concat(I.offsetHeight,"px"),B.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var K;if(Array.isArray(n))K={x:n[0],y:n[1],width:0,height:0};else{var G,Q,k=n.getBoundingClientRect();k.x=(G=k.x)!==null&&G!==void 0?G:k.left,k.y=(Q=k.y)!==null&&Q!==void 0?Q:k.top,K={x:k.x,y:k.y,width:k.width,height:k.height}}var U=I.getBoundingClientRect(),W=j.getComputedStyle(I),X=W.height,J=W.width;U.x=(E=U.x)!==null&&E!==void 0?E:U.left,U.y=(R=U.y)!==null&&R!==void 0?R:U.top;var ne=M.documentElement,se=ne.clientWidth,re=ne.clientHeight,oe=ne.scrollWidth,Se=ne.scrollHeight,me=ne.scrollTop,ie=ne.scrollLeft,ge=U.height,ue=U.width,ae=K.height,ce=K.width,ye={left:0,top:0,right:se,bottom:re},Ce={left:-ie,top:-me,right:oe-ie,bottom:Se-me},je=P.htmlRegion,ze="visible",ve="visibleFirst";je!=="scroll"&&je!==ve&&(je=ze);var Te=je===ve,Ee=xw(Ce,h),xe=xw(ye,h),Ve=je===ze?xe:Ee,Xe=Te?xe:Ve;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var it=I.getBoundingClientRect();I.style.left=L,I.style.top=D,I.style.right=A,I.style.bottom=_,I.style.overflow=V,(N=I.parentElement)===null||N===void 0||N.removeChild(B);var at=zu(Math.round(ue/parseFloat(J)*1e3)/1e3),Ye=zu(Math.round(ge/parseFloat(X)*1e3)/1e3);if(at===0||Ye===0||$u(n)&&!Uu(n))return;var Je=P.offset,_e=P.targetOffset,Ie=ww(U,Je),We=de(Ie,2),Be=We[0],Ge=We[1],Me=ww(K,_e),Qe=de(Me,2),lt=Qe[0],mt=Qe[1];K.x-=lt,K.y-=mt;var Dt=P.points||[],At=de(Dt,2),et=At[0],ct=At[1],gt=Ew(ct),ot=Ew(et),vt=ys(K,gt),Mt=ys(U,ot),pe=ee({},P),be=vt.x-Mt.x+Be,we=vt.y-Mt.y+Ge,Ke=On(be,we),ke=On(be,we,xe),He=ys(K,["t","l"]),Le=ys(U,["t","l"]),nt=ys(K,["b","r"]),pt=ys(U,["b","r"]),ht=P.overflow||{},zt=ht.adjustX,tt=ht.adjustY,Ze=ht.shiftX,Ct=ht.shiftY,Ft=function(fr){return typeof fr=="boolean"?fr:fr>=0},Nt,rn,dn,Wt;Rr();var on=Ft(tt),rt=ot[0]===gt[0];if(on&&ot[0]==="t"&&(rn>Xe.bottom||b.current.bt)){var dt=we;rt?dt-=ge-ae:dt=He.y-pt.y-Ge;var It=On(be,dt),wt=On(be,dt,xe);It>Ke||It===Ke&&(!Te||wt>=ke)?(b.current.bt=!0,we=dt,Ge=-Ge,pe.points=[$i(ot,0),$i(gt,0)]):b.current.bt=!1}if(on&&ot[0]==="b"&&(Nt<Xe.top||b.current.tb)){var st=we;rt?st+=ge-ae:st=nt.y-Le.y-Ge;var bt=On(be,st),Bt=On(be,st,xe);bt>Ke||bt===Ke&&(!Te||Bt>=ke)?(b.current.tb=!0,we=st,Ge=-Ge,pe.points=[$i(ot,0),$i(gt,0)]):b.current.tb=!1}var qt=Ft(zt),ut=ot[1]===gt[1];if(qt&&ot[1]==="l"&&(Wt>Xe.right||b.current.rl)){var Tt=be;ut?Tt-=ue-ce:Tt=He.x-pt.x-Be;var kt=On(Tt,we),Dn=On(Tt,we,xe);kt>Ke||kt===Ke&&(!Te||Dn>=ke)?(b.current.rl=!0,be=Tt,Be=-Be,pe.points=[$i(ot,1),$i(gt,1)]):b.current.rl=!1}if(qt&&ot[1]==="r"&&(dn<Xe.left||b.current.lr)){var or=be;ut?or+=ue-ce:or=nt.x-Le.x-Be;var lr=On(or,we),sr=On(or,we,xe);lr>Ke||lr===Ke&&(!Te||sr>=ke)?(b.current.lr=!0,be=or,Be=-Be,pe.points=[$i(ot,1),$i(gt,1)]):b.current.lr=!1}Rr();var Tn=Ze===!0?0:Ze;typeof Tn=="number"&&(dn<xe.left&&(be-=dn-xe.left-Be,K.x+ce<xe.left+Tn&&(be+=K.x-xe.left+ce-Tn)),Wt>xe.right&&(be-=Wt-xe.right-Be,K.x>xe.right-Tn&&(be+=K.x-xe.right+Tn)));var In=Ct===!0?0:Ct;typeof In=="number"&&(Nt<xe.top&&(we-=Nt-xe.top-Ge,K.y+ae<xe.top+In&&(we+=K.y-xe.top+ae-In)),rn>xe.bottom&&(we-=rn-xe.bottom-Ge,K.y>xe.bottom-In&&(we+=K.y-xe.bottom+In)));var Or=U.x+be,Fr=Or+ue,pr=U.y+we,fn=pr+ge,yt=K.x,xt=yt+ce,Gt=K.y,ln=Gt+ae,yn=Math.max(Or,yt),En=Math.min(Fr,xt),Yn=(yn+En)/2,Jn=Yn-Or,dr=Math.max(pr,Gt),Vn=Math.min(fn,ln),hr=(dr+Vn)/2,ia=hr-pr;c==null||c(t,pe);var Lt=it.right-U.x-(be+U.width),Xt=it.bottom-U.y-(we+U.height);at===1&&(be=Math.round(be),Lt=Math.round(Lt)),Ye===1&&(we=Math.round(we),Xt=Math.round(Xt));var ir={ready:!0,offsetX:be/at,offsetY:we/Ye,offsetR:Lt/at,offsetB:Xt/Ye,arrowX:Jn/at,arrowY:ia/Ye,scaleX:at,scaleY:Ye,align:pe};g(ir)}}),S=function(){v.current+=1;var E=v.current;Promise.resolve().then(function(){v.current===E&&C()})},x=function(){g(function(E){return ee(ee({},E),{},{ready:!1})})};return en(x,[r]),en(function(){e||x()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,S]}function VB(e,t,n,r,a){en(function(){if(e&&t&&n){let h=function(){r(),a()};var v=h,l=t,c=n,u=L0(l),d=L0(c),m=Ju(c),g=new Set([m].concat(De(u),De(d)));return g.forEach(function(b){b.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),function(){g.forEach(function(b){b.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function KB(e,t,n,r,a,l,c,u){var d=s.useRef(e);d.current=e;var m=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!a||l)){var v=function(){m.current=!1},h=function(S){var x;d.current&&!c(((x=S.composedPath)===null||x===void 0||(x=x.call(S))===null||x===void 0?void 0:x[0])||S.target)&&!m.current&&u(!1)},b=Ju(r);b.addEventListener("pointerdown",v,!0),b.addEventListener("mousedown",h,!0),b.addEventListener("contextmenu",h,!0);var y=mm(n);return y&&(y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0)),function(){b.removeEventListener("pointerdown",v,!0),b.removeEventListener("mousedown",h,!0),b.removeEventListener("contextmenu",h,!0),y&&(y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0))}}},[t,n,r,a,l]);function g(){m.current=!0}return g}var WB=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function UB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yb,t=s.forwardRef(function(n,r){var a=n.prefixCls,l=a===void 0?"rc-trigger-popup":a,c=n.children,u=n.action,d=u===void 0?"hover":u,m=n.showAction,g=n.hideAction,v=n.popupVisible,h=n.defaultPopupVisible,b=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,C=n.mouseEnterDelay,S=n.mouseLeaveDelay,x=S===void 0?.1:S,w=n.focusDelay,E=n.blurDelay,R=n.mask,N=n.maskClosable,I=N===void 0?!0:N,M=n.getPopupContainer,j=n.forceRender,T=n.autoDestroy,z=n.destroyPopupOnHide,L=n.popup,D=n.popupClassName,A=n.popupStyle,_=n.popupPlacement,V=n.builtinPlacements,P=V===void 0?{}:V,B=n.popupAlign,K=n.zIndex,G=n.stretch,Q=n.getPopupClassNameFromAlign,k=n.fresh,U=n.alignPoint,W=n.onPopupClick,X=n.onPopupAlign,J=n.arrow,ne=n.popupMotion,se=n.maskMotion,re=n.popupTransitionName,oe=n.popupAnimation,Se=n.maskTransitionName,me=n.maskAnimation,ie=n.className,ge=n.getTriggerDOMNode,ue=Pt(n,WB),ae=T||z||!1,ce=s.useState(!1),ye=de(ce,2),Ce=ye[0],je=ye[1];en(function(){je(cg())},[]);var ze=s.useRef({}),ve=s.useContext(yw),Te=s.useMemo(function(){return{registerSubPopup:function(Ht,An){ze.current[Ht]=An,ve==null||ve.registerSubPopup(Ht,An)}}},[ve]),Ee=ig(),xe=s.useState(null),Ve=de(xe,2),Xe=Ve[0],it=Ve[1],at=s.useRef(null),Ye=Sn(function(Rt){at.current=Rt,$u(Rt)&&Xe!==Rt&&it(Rt),ve==null||ve.registerSubPopup(Ee,Rt)}),Je=s.useState(null),_e=de(Je,2),Ie=_e[0],We=_e[1],Be=s.useRef(null),Ge=Sn(function(Rt){$u(Rt)&&Ie!==Rt&&(We(Rt),Be.current=Rt)}),Me=s.Children.only(c),Qe=(Me==null?void 0:Me.props)||{},lt={},mt=Sn(function(Rt){var Ht,An,Wn=Ie;return(Wn==null?void 0:Wn.contains(Rt))||((Ht=mm(Wn))===null||Ht===void 0?void 0:Ht.host)===Rt||Rt===Wn||(Xe==null?void 0:Xe.contains(Rt))||((An=mm(Xe))===null||An===void 0?void 0:An.host)===Rt||Rt===Xe||Object.values(ze.current).some(function(Cn){return(Cn==null?void 0:Cn.contains(Rt))||Rt===Cn})}),Dt=Cw(l,ne,oe,re),At=Cw(l,se,me,Se),et=s.useState(h||!1),ct=de(et,2),gt=ct[0],ot=ct[1],vt=v??gt,Mt=Sn(function(Rt){v===void 0&&ot(Rt)});en(function(){ot(v||!1)},[v]);var pe=s.useRef(vt);pe.current=vt;var be=s.useRef([]);be.current=[];var we=Sn(function(Rt){var Ht;Mt(Rt),((Ht=be.current[be.current.length-1])!==null&&Ht!==void 0?Ht:vt)!==Rt&&(be.current.push(Rt),b==null||b(Rt))}),Ke=s.useRef(),ke=function(){clearTimeout(Ke.current)},He=function(Ht){var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ke(),An===0?we(Ht):Ke.current=setTimeout(function(){we(Ht)},An*1e3)};s.useEffect(function(){return ke},[]);var Le=s.useState(!1),nt=de(Le,2),pt=nt[0],ht=nt[1];en(function(Rt){(!Rt||vt)&&ht(!0)},[vt]);var zt=s.useState(null),tt=de(zt,2),Ze=tt[0],Ct=tt[1],Ft=s.useState(null),Nt=de(Ft,2),rn=Nt[0],dn=Nt[1],Wt=function(Ht){dn([Ht.clientX,Ht.clientY])},on=kB(vt,Xe,U&&rn!==null?rn:Ie,_,P,B,X),rt=de(on,11),dt=rt[0],It=rt[1],wt=rt[2],st=rt[3],bt=rt[4],Bt=rt[5],qt=rt[6],ut=rt[7],Tt=rt[8],kt=rt[9],Dn=rt[10],or=LB(Ce,d,m,g),lr=de(or,2),sr=lr[0],Tn=lr[1],In=sr.has("click"),Or=Tn.has("click")||Tn.has("contextMenu"),Fr=Sn(function(){pt||Dn()}),pr=function(){pe.current&&U&&Or&&He(!1)};VB(vt,Ie,Xe,Fr,pr),en(function(){Fr()},[rn,_]),en(function(){vt&&!(P!=null&&P[_])&&Fr()},[JSON.stringify(B)]);var fn=s.useMemo(function(){var Rt=FB(P,l,kt,U);return te(Rt,Q==null?void 0:Q(kt))},[kt,Q,P,l,U]);s.useImperativeHandle(r,function(){return{nativeElement:Be.current,popupElement:at.current,forceAlign:Fr}});var yt=s.useState(0),xt=de(yt,2),Gt=xt[0],ln=xt[1],yn=s.useState(0),En=de(yn,2),Yn=En[0],Jn=En[1],dr=function(){if(G&&Ie){var Ht=Ie.getBoundingClientRect();ln(Ht.width),Jn(Ht.height)}},Vn=function(){dr(),Fr()},hr=function(Ht){ht(!1),Dn(),y==null||y(Ht)},ia=function(){return new Promise(function(Ht){dr(),Ct(function(){return Ht})})};en(function(){Ze&&(Dn(),Ze(),Ct(null))},[Ze]);function Lt(Rt,Ht,An,Wn){lt[Rt]=function(Cn){var Jo;Wn==null||Wn(Cn),He(Ht,An);for(var ei=arguments.length,dc=new Array(ei>1?ei-1:0),Ro=1;Ro<ei;Ro++)dc[Ro-1]=arguments[Ro];(Jo=Qe[Rt])===null||Jo===void 0||Jo.call.apply(Jo,[Qe,Cn].concat(dc))}}(In||Or)&&(lt.onClick=function(Rt){var Ht;pe.current&&Or?He(!1):!pe.current&&In&&(Wt(Rt),He(!0));for(var An=arguments.length,Wn=new Array(An>1?An-1:0),Cn=1;Cn<An;Cn++)Wn[Cn-1]=arguments[Cn];(Ht=Qe.onClick)===null||Ht===void 0||Ht.call.apply(Ht,[Qe,Rt].concat(Wn))});var Xt=KB(vt,Or,Ie,Xe,R,I,mt,He),ir=sr.has("hover"),kr=Tn.has("hover"),Kn,On;ir&&(Lt("onMouseEnter",!0,C,function(Rt){Wt(Rt)}),Lt("onPointerEnter",!0,C,function(Rt){Wt(Rt)}),Kn=function(Ht){(vt||pt)&&Xe!==null&&Xe!==void 0&&Xe.contains(Ht.target)&&He(!0,C)},U&&(lt.onMouseMove=function(Rt){var Ht;(Ht=Qe.onMouseMove)===null||Ht===void 0||Ht.call(Qe,Rt)})),kr&&(Lt("onMouseLeave",!1,x),Lt("onPointerLeave",!1,x),On=function(){He(!1,x)}),sr.has("focus")&&Lt("onFocus",!0,w),Tn.has("focus")&&Lt("onBlur",!1,E),sr.has("contextMenu")&&(lt.onContextMenu=function(Rt){var Ht;pe.current&&Tn.has("contextMenu")?He(!1):(Wt(Rt),He(!0)),Rt.preventDefault();for(var An=arguments.length,Wn=new Array(An>1?An-1:0),Cn=1;Cn<An;Cn++)Wn[Cn-1]=arguments[Cn];(Ht=Qe.onContextMenu)===null||Ht===void 0||Ht.call.apply(Ht,[Qe,Rt].concat(Wn))}),ie&&(lt.className=te(Qe.className,ie));var Rr=s.useRef(!1);Rr.current||(Rr.current=j||vt||pt);var zr=ee(ee({},Qe),lt),fr={},Vr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Vr.forEach(function(Rt){ue[Rt]&&(fr[Rt]=function(){for(var Ht,An=arguments.length,Wn=new Array(An),Cn=0;Cn<An;Cn++)Wn[Cn]=arguments[Cn];(Ht=zr[Rt])===null||Ht===void 0||Ht.call.apply(Ht,[zr].concat(Wn)),ue[Rt].apply(ue,Wn)})});var Wi=s.cloneElement(Me,ee(ee({},zr),fr)),Zo={x:Bt,y:qt},Bl=J?ee({},J!==!0?J:{}):null;return s.createElement(s.Fragment,null,s.createElement(ca,{disabled:!vt,ref:Ge,onResize:Vn},s.createElement(BB,{getTriggerDOMNode:ge},Wi)),Rr.current&&s.createElement(yw.Provider,{value:Te},s.createElement(AB,{portal:e,ref:Ye,prefixCls:l,popup:L,className:te(D,fn),style:A,target:Ie,onMouseEnter:Kn,onMouseLeave:On,onPointerEnter:Kn,zIndex:K,open:vt,keepDom:pt,fresh:k,onClick:W,onPointerDownCapture:Xt,mask:R,motion:Dt,maskMotion:At,onVisibleChanged:hr,onPrepare:ia,forceRender:j,autoDestroy:ae,getPopupContainer:M,align:kt,arrow:Bl,arrowPos:Zo,ready:dt,offsetX:It,offsetY:wt,offsetR:st,offsetB:bt,onAlign:Fr,stretch:G,targetWidth:Gt/ut,targetHeight:Yn/Tt})))});return t}const dg=UB(Yb);var qB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],GB=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},XB=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,l=t.children,c=t.popupElement,u=t.animation,d=t.transitionName,m=t.dropdownStyle,g=t.dropdownClassName,v=t.direction,h=v===void 0?"ltr":v,b=t.placement,y=t.builtinPlacements,C=t.dropdownMatchSelectWidth,S=t.dropdownRender,x=t.dropdownAlign,w=t.getPopupContainer,E=t.empty,R=t.getTriggerDOMNode,N=t.onPopupVisibleChange,I=t.onPopupMouseEnter,M=Pt(t,qB),j="".concat(r,"-dropdown"),T=c;S&&(T=S(c));var z=s.useMemo(function(){return y||GB(C)},[y,C]),L=u?"".concat(j,"-").concat(u):d,D=typeof C=="number",A=s.useMemo(function(){return D?null:C===!1?"minWidth":"width"},[C,D]),_=m;D&&(_=ee(ee({},_),{},{width:C}));var V=s.useRef(null);return s.useImperativeHandle(n,function(){return{getPopupElement:function(){var B;return(B=V.current)===null||B===void 0?void 0:B.popupElement}}}),s.createElement(dg,Oe({},M,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:b||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:z,prefixCls:j,popupTransitionName:L,popup:s.createElement("div",{onMouseEnter:I},T),ref:V,stretch:A,popupAlign:x,popupVisible:a,getPopupContainer:w,popupClassName:te(g,q({},"".concat(j,"-empty"),E)),popupStyle:_,getTriggerDOMNode:R,onPopupVisibleChange:N}),l)},YB=s.forwardRef(XB);function Ow(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function H0(e){return typeof e<"u"&&!Number.isNaN(e)}function IN(e,t){var n=e||{},r=n.label,a=n.value,l=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:l||"options",groupLabel:c||u}}function QB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],l=IN(n,!1),c=l.label,u=l.value,d=l.options,m=l.groupLabel;function g(v,h){Array.isArray(v)&&v.forEach(function(b){if(h||!(d in b)){var y=b[u];a.push({key:Ow(b,a.length),groupOption:h,data:b,label:b[c],value:y})}else{var C=b[m];C===void 0&&r&&(C=b.label),a.push({key:Ow(b,a.length),group:!0,data:b,label:C}),g(b[d],!0)}})}return g(e,!1),a}function F0(e){var t=ee({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Xn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ZB=function(t,n,r){if(!n||!n.length)return null;var a=!1,l=function u(d,m){var g=AO(m),v=g[0],h=g.slice(1);if(!v)return[d];var b=d.split(v);return a=a||b.length>1,b.reduce(function(y,C){return[].concat(De(y),De(u(C,h)))},[]).filter(Boolean)},c=l(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},ny=s.createContext(null);function JB(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var l=a.label,c=a.value;return["number","string"].includes($t(l))?l:c}).join(", ")),n.length>r?", ...":null)}var eL=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],tL=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],k0=function(t){return t==="tags"||t==="multiple"},nL=s.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,m=e.omitDomProps,g=e.displayValues,v=e.onDisplayValuesChange,h=e.emptyOptions,b=e.notFoundContent,y=b===void 0?"Not Found":b,C=e.onClear,S=e.mode,x=e.disabled,w=e.loading,E=e.getInputElement,R=e.getRawInputElement,N=e.open,I=e.defaultOpen,M=e.onDropdownVisibleChange,j=e.activeValue,T=e.onActiveValueChange,z=e.activeDescendantId,L=e.searchValue,D=e.autoClearSearchValue,A=e.onSearch,_=e.onSearchSplit,V=e.tokenSeparators,P=e.allowClear,B=e.prefix,K=e.suffixIcon,G=e.clearIcon,Q=e.OptionList,k=e.animation,U=e.transitionName,W=e.dropdownStyle,X=e.dropdownClassName,J=e.dropdownMatchSelectWidth,ne=e.dropdownRender,se=e.dropdownAlign,re=e.placement,oe=e.builtinPlacements,Se=e.getPopupContainer,me=e.showAction,ie=me===void 0?[]:me,ge=e.onFocus,ue=e.onBlur,ae=e.onKeyUp,ce=e.onKeyDown,ye=e.onMouseDown,Ce=Pt(e,eL),je=k0(S),ze=(c!==void 0?c:je)||S==="combobox",ve=ee({},Ce);tL.forEach(function(yt){delete ve[yt]}),m==null||m.forEach(function(yt){delete ve[yt]});var Te=s.useState(!1),Ee=de(Te,2),xe=Ee[0],Ve=Ee[1];s.useEffect(function(){Ve(cg())},[]);var Xe=s.useRef(null),it=s.useRef(null),at=s.useRef(null),Ye=s.useRef(null),Je=s.useRef(null),_e=s.useRef(!1),Ie=lB(),We=de(Ie,3),Be=We[0],Ge=We[1],Me=We[2];s.useImperativeHandle(t,function(){var yt,xt;return{focus:(yt=Ye.current)===null||yt===void 0?void 0:yt.focus,blur:(xt=Ye.current)===null||xt===void 0?void 0:xt.blur,scrollTo:function(ln){var yn;return(yn=Je.current)===null||yn===void 0?void 0:yn.scrollTo(ln)},nativeElement:Xe.current||it.current}});var Qe=s.useMemo(function(){var yt;if(S!=="combobox")return L;var xt=(yt=g[0])===null||yt===void 0?void 0:yt.value;return typeof xt=="string"||typeof xt=="number"?String(xt):""},[L,S,g]),lt=S==="combobox"&&typeof E=="function"&&E()||null,mt=typeof R=="function"&&R(),Dt=Yo(it,mt==null||(n=mt.props)===null||n===void 0?void 0:n.ref),At=s.useState(!1),et=de(At,2),ct=et[0],gt=et[1];en(function(){gt(!0)},[]);var ot=Gn(!1,{defaultValue:I,value:N}),vt=de(ot,2),Mt=vt[0],pe=vt[1],be=ct?Mt:!1,we=!y&&h;(x||we&&be&&S==="combobox")&&(be=!1);var Ke=we?!1:be,ke=s.useCallback(function(yt){var xt=yt!==void 0?yt:!be;x||(pe(xt),be!==xt&&(M==null||M(xt)))},[x,be,pe,M]),He=s.useMemo(function(){return(V||[]).some(function(yt){return[`
|
|
209
|
+
`,`\r
|
|
210
|
+
`].includes(yt)})},[V]),Le=s.useContext(ny)||{},nt=Le.maxCount,pt=Le.rawValues,ht=function(xt,Gt,ln){if(!(je&&H0(nt)&&(pt==null?void 0:pt.size)>=nt)){var yn=!0,En=xt;T==null||T(null);var Yn=ZB(xt,V,H0(nt)?nt-pt.size:void 0),Jn=ln?null:Yn;return S!=="combobox"&&Jn&&(En="",_==null||_(Jn),ke(!1),yn=!1),A&&Qe!==En&&A(En,{source:Gt?"typing":"effect"}),yn}},zt=function(xt){!xt||!xt.trim()||A(xt,{source:"submit"})};s.useEffect(function(){!be&&!je&&S!=="combobox"&&ht("",!1,!1)},[be]),s.useEffect(function(){Mt&&x&&pe(!1),x&&!_e.current&&Ge(!1)},[x]);var tt=$N(),Ze=de(tt,2),Ct=Ze[0],Ft=Ze[1],Nt=s.useRef(!1),rn=function(xt){var Gt=Ct(),ln=xt.key,yn=ln==="Enter";if(yn&&(S!=="combobox"&&xt.preventDefault(),be||ke(!0)),Ft(!!Qe),ln==="Backspace"&&!Gt&&je&&!Qe&&g.length){for(var En=De(g),Yn=null,Jn=En.length-1;Jn>=0;Jn-=1){var dr=En[Jn];if(!dr.disabled){En.splice(Jn,1),Yn=dr;break}}Yn&&v(En,{type:"remove",values:[Yn]})}for(var Vn=arguments.length,hr=new Array(Vn>1?Vn-1:0),ia=1;ia<Vn;ia++)hr[ia-1]=arguments[ia];if(be&&(!yn||!Nt.current)){var Lt;yn&&(Nt.current=!0),(Lt=Je.current)===null||Lt===void 0||Lt.onKeyDown.apply(Lt,[xt].concat(hr))}ce==null||ce.apply(void 0,[xt].concat(hr))},dn=function(xt){for(var Gt=arguments.length,ln=new Array(Gt>1?Gt-1:0),yn=1;yn<Gt;yn++)ln[yn-1]=arguments[yn];if(be){var En;(En=Je.current)===null||En===void 0||En.onKeyUp.apply(En,[xt].concat(ln))}xt.key==="Enter"&&(Nt.current=!1),ae==null||ae.apply(void 0,[xt].concat(ln))},Wt=function(xt){var Gt=g.filter(function(ln){return ln!==xt});v(Gt,{type:"remove",values:[xt]})},on=function(){Nt.current=!1},rt=s.useRef(!1),dt=function(){Ge(!0),x||(ge&&!rt.current&&ge.apply(void 0,arguments),ie.includes("focus")&&ke(!0)),rt.current=!0},It=function(){_e.current=!0,Ge(!1,function(){rt.current=!1,_e.current=!1,ke(!1)}),!x&&(Qe&&(S==="tags"?A(Qe,{source:"submit"}):S==="multiple"&&A("",{source:"blur"})),ue&&ue.apply(void 0,arguments))},wt=[];s.useEffect(function(){return function(){wt.forEach(function(yt){return clearTimeout(yt)}),wt.splice(0,wt.length)}},[]);var st=function(xt){var Gt,ln=xt.target,yn=(Gt=at.current)===null||Gt===void 0?void 0:Gt.getPopupElement();if(yn&&yn.contains(ln)){var En=setTimeout(function(){var Vn=wt.indexOf(En);if(Vn!==-1&&wt.splice(Vn,1),Me(),!xe&&!yn.contains(document.activeElement)){var hr;(hr=Ye.current)===null||hr===void 0||hr.focus()}});wt.push(En)}for(var Yn=arguments.length,Jn=new Array(Yn>1?Yn-1:0),dr=1;dr<Yn;dr++)Jn[dr-1]=arguments[dr];ye==null||ye.apply(void 0,[xt].concat(Jn))},bt=s.useState({}),Bt=de(bt,2),qt=Bt[1];function ut(){qt({})}var Tt;mt&&(Tt=function(xt){ke(xt)}),sB(function(){var yt;return[Xe.current,(yt=at.current)===null||yt===void 0?void 0:yt.getPopupElement()]},Ke,ke,!!mt);var kt=s.useMemo(function(){return ee(ee({},e),{},{notFoundContent:y,open:be,triggerOpen:Ke,id:r,showSearch:ze,multiple:je,toggleOpen:ke})},[e,y,Ke,be,r,ze,je,ke]),Dn=!!K||w,or;Dn&&(or=s.createElement(ug,{className:te("".concat(a,"-arrow"),q({},"".concat(a,"-arrow-loading"),w)),customizeIcon:K,customizeIconProps:{loading:w,searchValue:Qe,open:be,focused:Be,showSearch:ze}}));var lr=function(){var xt;C==null||C(),(xt=Ye.current)===null||xt===void 0||xt.focus(),v([],{type:"clear",values:g}),ht("",!1,!1)},sr=oB(a,lr,g,P,G,x,Qe,S),Tn=sr.allowClear,In=sr.clearIcon,Or=s.createElement(Q,{ref:Je}),Fr=te(a,l,q(q(q(q(q(q(q(q(q(q({},"".concat(a,"-focused"),Be),"".concat(a,"-multiple"),je),"".concat(a,"-single"),!je),"".concat(a,"-allow-clear"),P),"".concat(a,"-show-arrow"),Dn),"".concat(a,"-disabled"),x),"".concat(a,"-loading"),w),"".concat(a,"-open"),be),"".concat(a,"-customize-input"),lt),"".concat(a,"-show-search"),ze)),pr=s.createElement(YB,{ref:at,disabled:x,prefixCls:a,visible:Ke,popupElement:Or,animation:k,transitionName:U,dropdownStyle:W,dropdownClassName:X,direction:d,dropdownMatchSelectWidth:J,dropdownRender:ne,dropdownAlign:se,placement:re,builtinPlacements:oe,getPopupContainer:Se,empty:h,getTriggerDOMNode:function(xt){return it.current||xt},onPopupVisibleChange:Tt,onPopupMouseEnter:ut},mt?s.cloneElement(mt,{ref:Dt}):s.createElement(PB,Oe({},e,{domRef:it,prefixCls:a,inputElement:lt,ref:Ye,id:r,prefix:B,showSearch:ze,autoClearSearchValue:D,mode:S,activeDescendantId:z,tagRender:u,values:g,open:be,onToggleOpen:ke,activeValue:j,searchValue:Qe,onSearch:ht,onSearchSubmit:zt,onRemove:Wt,tokenWithEnter:He,onInputBlur:on}))),fn;return mt?fn=pr:fn=s.createElement("div",Oe({className:Fr},ve,{ref:Xe,onMouseDown:st,onKeyDown:rn,onKeyUp:dn,onFocus:dt,onBlur:It}),s.createElement(JB,{visible:Be&&!be,values:g}),pr,or,Tn&&In),s.createElement(xN.Provider,{value:kt},fn)}),ry=function(){return null};ry.isSelectOptGroup=!0;var ay=function(){return null};ay.isSelectOption=!0;var MN=s.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,l=e.children,c=e.prefixCls,u=e.onInnerResize,d=e.innerProps,m=e.rtl,g=e.extra,v={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(v={height:n,position:"relative",overflow:"hidden"},h=ee(ee({},h),{},q(q(q(q(q({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),s.createElement("div",{style:v},s.createElement(ca,{onResize:function(y){var C=y.offsetHeight;C&&u&&u()}},s.createElement("div",Oe({style:h,className:te(q({},"".concat(c,"-holder-inner"),c)),ref:t},d),l,g)))});MN.displayName="Filler";function rL(e){var t=e.children,n=e.setRef,r=s.useCallback(function(a){n(a)},[]);return s.cloneElement(t,{ref:r})}function aL(e,t,n,r,a,l,c,u){var d=u.getKey;return e.slice(t,n+1).map(function(m,g){var v=t+g,h=c(m,v,{style:{width:r},offsetX:a}),b=d(m);return s.createElement(rL,{key:b,setRef:function(C){return l(m,C)}},h)})}function oL(e,t,n){var r=e.length,a=t.length,l,c;if(r===0&&a===0)return null;r<a?(l=e,c=t):(l=t,c=e);var u={__EMPTY_ITEM__:!0};function d(y){return y!==void 0?n(y):u}for(var m=null,g=Math.abs(r-a)!==1,v=0;v<c.length;v+=1){var h=d(l[v]),b=d(c[v]);if(h!==b){m=v,g=g||h!==d(c[v+1]);break}}return m===null?null:{index:m,multiple:g}}function iL(e,t,n){var r=s.useState(e),a=de(r,2),l=a[0],c=a[1],u=s.useState(null),d=de(u,2),m=d[0],g=d[1];return s.useEffect(function(){var v=oL(l||[],e||[],t);(v==null?void 0:v.index)!==void 0&&g(e[v.index]),c(e)},[e]),[m]}var Rw=(typeof navigator>"u"?"undefined":$t(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const jN=(function(e,t,n,r){var a=s.useRef(!1),l=s.useRef(null);function c(){clearTimeout(l.current),a.current=!0,l.current=setTimeout(function(){a.current=!1},50)}var u=s.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(d,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=d?m<0&&u.current.left||m>0&&u.current.right:m<0&&u.current.top||m>0&&u.current.bottom;return g&&v?(clearTimeout(l.current),a.current=!1):(!v||a.current)&&c(),!a.current&&v}});function lL(e,t,n,r,a,l,c){var u=s.useRef(0),d=s.useRef(null),m=s.useRef(null),g=s.useRef(!1),v=jN(t,n,r,a);function h(w,E){if(tn.cancel(d.current),!v(!1,E)){var R=w;if(!R._virtualHandled)R._virtualHandled=!0;else return;u.current+=E,m.current=E,Rw||R.preventDefault(),d.current=tn(function(){var N=g.current?10:1;c(u.current*N,!1),u.current=0})}}function b(w,E){c(E,!0),Rw||w.preventDefault()}var y=s.useRef(null),C=s.useRef(null);function S(w){if(e){tn.cancel(C.current),C.current=tn(function(){y.current=null},2);var E=w.deltaX,R=w.deltaY,N=w.shiftKey,I=E,M=R;(y.current==="sx"||!y.current&&N&&R&&!E)&&(I=R,M=0,y.current="sx");var j=Math.abs(I),T=Math.abs(M);y.current===null&&(y.current=l&&j>T?"x":"y"),y.current==="y"?h(w,M):b(w,I)}}function x(w){e&&(g.current=w.detail===m.current)}return[S,x]}function sL(e,t,n,r){var a=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=de(a,2),c=l[0],u=l[1],d=function(g){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,h=c.get(g),b=c.get(v);if(h===void 0||b===void 0)for(var y=e.length,C=u.length;C<y;C+=1){var S,x=e[C],w=t(x);c.set(w,C);var E=(S=n.get(w))!==null&&S!==void 0?S:r;if(u[C]=(u[C-1]||0)+E,w===g&&(h=C),w===v&&(b=C),h!==void 0&&b!==void 0)break}return{top:u[h-1]||0,bottom:u[b]}};return d}var cL=(function(){function e(){rr(this,e),q(this,"maps",void 0),q(this,"id",0),q(this,"diffRecords",new Map),this.maps=Object.create(null)}return ar(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Nw(e){var t=parseFloat(e);return isNaN(t)?0:t}function uL(e,t,n){var r=s.useState(0),a=de(r,2),l=a[0],c=a[1],u=s.useRef(new Map),d=s.useRef(new cL),m=s.useRef(0);function g(){m.current+=1}function v(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g();var y=function(){var x=!1;u.current.forEach(function(w,E){if(w&&w.offsetParent){var R=w.offsetHeight,N=getComputedStyle(w),I=N.marginTop,M=N.marginBottom,j=Nw(I),T=Nw(M),z=R+j+T;d.current.get(E)!==z&&(d.current.set(E,z),x=!0)}}),x&&c(function(w){return w+1})};if(b)y();else{m.current+=1;var C=m.current;Promise.resolve().then(function(){C===m.current&&y()})}}function h(b,y){var C=e(b);u.current.get(C),y?(u.current.set(C,y),v()):u.current.delete(C)}return s.useEffect(function(){return g},[]),[h,v,d.current,l]}var Tw=14/15;function dL(e,t,n){var r=s.useRef(!1),a=s.useRef(0),l=s.useRef(0),c=s.useRef(null),u=s.useRef(null),d,m=function(b){if(r.current){var y=Math.ceil(b.touches[0].pageX),C=Math.ceil(b.touches[0].pageY),S=a.current-y,x=l.current-C,w=Math.abs(S)>Math.abs(x);w?a.current=y:l.current=C;var E=n(w,w?S:x,!1,b);E&&b.preventDefault(),clearInterval(u.current),E&&(u.current=setInterval(function(){w?S*=Tw:x*=Tw;var R=Math.floor(w?S:x);(!n(w,R,!0)||Math.abs(R)<=.1)&&clearInterval(u.current)},16))}},g=function(){r.current=!1,d()},v=function(b){d(),b.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(b.touches[0].pageX),l.current=Math.ceil(b.touches[0].pageY),c.current=b.target,c.current.addEventListener("touchmove",m,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};d=function(){c.current&&(c.current.removeEventListener("touchmove",m),c.current.removeEventListener("touchend",g))},en(function(){return e&&t.current.addEventListener("touchstart",v,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",v),d(),clearInterval(u.current)}},[e])}function Iw(e){return Math.floor(Math.pow(e,.5))}function V0(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function fL(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var a=!1,l,c,u=function(){tn.cancel(l)},d=function h(){u(),l=tn(function(){n(c),h()})},m=function(){a=!1,u()},g=function(b){if(!(b.target.draggable||b.button!==0)){var y=b;y._virtualHandled||(y._virtualHandled=!0,a=!0)}},v=function(b){if(a){var y=V0(b,!1),C=r.getBoundingClientRect(),S=C.top,x=C.bottom;if(y<=S){var w=S-y;c=-Iw(w),d()}else if(y>=x){var E=y-x;c=Iw(E),d()}else u()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",v),r.ownerDocument.addEventListener("dragend",m),function(){r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",v),r.ownerDocument.removeEventListener("dragend",m),u()}}},[e])}var mL=10;function gL(e,t,n,r,a,l,c,u){var d=s.useRef(),m=s.useState(null),g=de(m,2),v=g[0],h=g[1];return en(function(){if(v&&v.times<mL){if(!e.current){h(function(G){return ee({},G)});return}l();var b=v.targetAlign,y=v.originAlign,C=v.index,S=v.offset,x=e.current.clientHeight,w=!1,E=b,R=null;if(x){for(var N=b||y,I=0,M=0,j=0,T=Math.min(t.length-1,C),z=0;z<=T;z+=1){var L=a(t[z]);M=I;var D=n.get(L);j=M+(D===void 0?r:D),I=j}for(var A=N==="top"?S:x-S,_=T;_>=0;_-=1){var V=a(t[_]),P=n.get(V);if(P===void 0){w=!0;break}if(A-=P,A<=0)break}switch(N){case"top":R=M-S;break;case"bottom":R=j-x+S;break;default:{var B=e.current.scrollTop,K=B+x;M<B?E="top":j>K&&(E="bottom")}}R!==null&&c(R),R!==v.lastTop&&(w=!0)}w&&h(ee(ee({},v),{},{times:v.times+1,targetAlign:E,lastTop:R}))}},[v,e.current]),function(b){if(b==null){u();return}if(tn.cancel(d.current),typeof b=="number")c(b);else if(b&&$t(b)==="object"){var y,C=b.align;"index"in b?y=b.index:y=t.findIndex(function(w){return a(w)===b.key});var S=b.offset,x=S===void 0?0:S;h({times:0,index:y,offset:x,originAlign:C})}}}var Mw=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,u=e.onStopMove,d=e.onScroll,m=e.horizontal,g=e.spinSize,v=e.containerSize,h=e.style,b=e.thumbStyle,y=e.showScrollBar,C=s.useState(!1),S=de(C,2),x=S[0],w=S[1],E=s.useState(null),R=de(E,2),N=R[0],I=R[1],M=s.useState(null),j=de(M,2),T=j[0],z=j[1],L=!r,D=s.useRef(),A=s.useRef(),_=s.useState(y),V=de(_,2),P=V[0],B=V[1],K=s.useRef(),G=function(){y===!0||y===!1||(clearTimeout(K.current),B(!0),K.current=setTimeout(function(){B(!1)},3e3))},Q=l-v||0,k=v-g||0,U=s.useMemo(function(){if(a===0||Q===0)return 0;var me=a/Q;return me*k},[a,Q,k]),W=function(ie){ie.stopPropagation(),ie.preventDefault()},X=s.useRef({top:U,dragging:x,pageY:N,startTop:T});X.current={top:U,dragging:x,pageY:N,startTop:T};var J=function(ie){w(!0),I(V0(ie,m)),z(X.current.top),c(),ie.stopPropagation(),ie.preventDefault()};s.useEffect(function(){var me=function(ae){ae.preventDefault()},ie=D.current,ge=A.current;return ie.addEventListener("touchstart",me,{passive:!1}),ge.addEventListener("touchstart",J,{passive:!1}),function(){ie.removeEventListener("touchstart",me),ge.removeEventListener("touchstart",J)}},[]);var ne=s.useRef();ne.current=Q;var se=s.useRef();se.current=k,s.useEffect(function(){if(x){var me,ie=function(ae){var ce=X.current,ye=ce.dragging,Ce=ce.pageY,je=ce.startTop;tn.cancel(me);var ze=D.current.getBoundingClientRect(),ve=v/(m?ze.width:ze.height);if(ye){var Te=(V0(ae,m)-Ce)*ve,Ee=je;!L&&m?Ee-=Te:Ee+=Te;var xe=ne.current,Ve=se.current,Xe=Ve?Ee/Ve:0,it=Math.ceil(Xe*xe);it=Math.max(it,0),it=Math.min(it,xe),me=tn(function(){d(it,m)})}},ge=function(){w(!1),u()};return window.addEventListener("mousemove",ie,{passive:!0}),window.addEventListener("touchmove",ie,{passive:!0}),window.addEventListener("mouseup",ge,{passive:!0}),window.addEventListener("touchend",ge,{passive:!0}),function(){window.removeEventListener("mousemove",ie),window.removeEventListener("touchmove",ie),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),tn.cancel(me)}}},[x]),s.useEffect(function(){return G(),function(){clearTimeout(K.current)}},[a]),s.useImperativeHandle(t,function(){return{delayHidden:G}});var re="".concat(n,"-scrollbar"),oe={position:"absolute",visibility:P?null:"hidden"},Se={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(oe,{height:8,left:0,right:0,bottom:0}),Object.assign(Se,q({height:"100%",width:g},L?"left":"right",U))):(Object.assign(oe,q({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(Se,{width:"100%",height:g,top:U})),s.createElement("div",{ref:D,className:te(re,q(q(q({},"".concat(re,"-horizontal"),m),"".concat(re,"-vertical"),!m),"".concat(re,"-visible"),P)),style:ee(ee({},oe),h),onMouseDown:W,onMouseMove:G},s.createElement("div",{ref:A,className:te("".concat(re,"-thumb"),q({},"".concat(re,"-thumb-moving"),x)),style:ee(ee({},Se),b),onMouseDown:J}))}),vL=20;function jw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,vL),Math.floor(n)}var pL=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],hL=[],bL={overflowY:"auto",overflowAnchor:"none"};function yL(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,d=u===void 0?!0:u,m=e.style,g=e.data,v=e.children,h=e.itemKey,b=e.virtual,y=e.direction,C=e.scrollWidth,S=e.component,x=S===void 0?"div":S,w=e.onScroll,E=e.onVirtualScroll,R=e.onVisibleChange,N=e.innerProps,I=e.extraRender,M=e.styles,j=e.showScrollBar,T=j===void 0?"optional":j,z=Pt(e,pL),L=s.useCallback(function(rt){return typeof h=="function"?h(rt):rt==null?void 0:rt[h]},[h]),D=uL(L),A=de(D,4),_=A[0],V=A[1],P=A[2],B=A[3],K=!!(b!==!1&&l&&c),G=s.useMemo(function(){return Object.values(P.maps).reduce(function(rt,dt){return rt+dt},0)},[P.id,P.maps]),Q=K&&g&&(Math.max(c*g.length,G)>l||!!C),k=y==="rtl",U=te(r,q({},"".concat(r,"-rtl"),k),a),W=g||hL,X=s.useRef(),J=s.useRef(),ne=s.useRef(),se=s.useState(0),re=de(se,2),oe=re[0],Se=re[1],me=s.useState(0),ie=de(me,2),ge=ie[0],ue=ie[1],ae=s.useState(!1),ce=de(ae,2),ye=ce[0],Ce=ce[1],je=function(){Ce(!0)},ze=function(){Ce(!1)},ve={getKey:L};function Te(rt){Se(function(dt){var It;typeof rt=="function"?It=rt(dt):It=rt;var wt=gt(It);return X.current.scrollTop=wt,wt})}var Ee=s.useRef({start:0,end:W.length}),xe=s.useRef(),Ve=iL(W,L),Xe=de(Ve,1),it=Xe[0];xe.current=it;var at=s.useMemo(function(){if(!K)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!Q){var rt;return{scrollHeight:((rt=J.current)===null||rt===void 0?void 0:rt.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var dt=0,It,wt,st,bt=W.length,Bt=0;Bt<bt;Bt+=1){var qt=W[Bt],ut=L(qt),Tt=P.get(ut),kt=dt+(Tt===void 0?c:Tt);kt>=oe&&It===void 0&&(It=Bt,wt=dt),kt>oe+l&&st===void 0&&(st=Bt),dt=kt}return It===void 0&&(It=0,wt=0,st=Math.ceil(l/c)),st===void 0&&(st=W.length-1),st=Math.min(st+1,W.length-1),{scrollHeight:dt,start:It,end:st,offset:wt}},[Q,K,oe,W,B,l]),Ye=at.scrollHeight,Je=at.start,_e=at.end,Ie=at.offset;Ee.current.start=Je,Ee.current.end=_e,s.useLayoutEffect(function(){var rt=P.getRecord();if(rt.size===1){var dt=Array.from(rt.keys())[0],It=rt.get(dt),wt=W[Je];if(wt&&It===void 0){var st=L(wt);if(st===dt){var bt=P.get(dt),Bt=bt-c;Te(function(qt){return qt+Bt})}}}P.resetRecord()},[Ye]);var We=s.useState({width:0,height:l}),Be=de(We,2),Ge=Be[0],Me=Be[1],Qe=function(dt){Me({width:dt.offsetWidth,height:dt.offsetHeight})},lt=s.useRef(),mt=s.useRef(),Dt=s.useMemo(function(){return jw(Ge.width,C)},[Ge.width,C]),At=s.useMemo(function(){return jw(Ge.height,Ye)},[Ge.height,Ye]),et=Ye-l,ct=s.useRef(et);ct.current=et;function gt(rt){var dt=rt;return Number.isNaN(ct.current)||(dt=Math.min(dt,ct.current)),dt=Math.max(dt,0),dt}var ot=oe<=0,vt=oe>=et,Mt=ge<=0,pe=ge>=C,be=jN(ot,vt,Mt,pe),we=function(){return{x:k?-ge:ge,y:oe}},Ke=s.useRef(we()),ke=Sn(function(rt){if(E){var dt=ee(ee({},we()),rt);(Ke.current.x!==dt.x||Ke.current.y!==dt.y)&&(E(dt),Ke.current=dt)}});function He(rt,dt){var It=rt;dt?(Uo.flushSync(function(){ue(It)}),ke()):Te(It)}function Le(rt){var dt=rt.currentTarget.scrollTop;dt!==oe&&Te(dt),w==null||w(rt),ke()}var nt=function(dt){var It=dt,wt=C?C-Ge.width:0;return It=Math.max(It,0),It=Math.min(It,wt),It},pt=Sn(function(rt,dt){dt?(Uo.flushSync(function(){ue(function(It){var wt=It+(k?-rt:rt);return nt(wt)})}),ke()):Te(function(It){var wt=It+rt;return wt})}),ht=lL(K,ot,vt,Mt,pe,!!C,pt),zt=de(ht,2),tt=zt[0],Ze=zt[1];dL(K,X,function(rt,dt,It,wt){var st=wt;return be(rt,dt,It)?!1:!st||!st._virtualHandled?(st&&(st._virtualHandled=!0),tt({preventDefault:function(){},deltaX:rt?dt:0,deltaY:rt?0:dt}),!0):!1}),fL(Q,X,function(rt){Te(function(dt){return dt+rt})}),en(function(){function rt(It){var wt=ot&&It.detail<0,st=vt&&It.detail>0;K&&!wt&&!st&&It.preventDefault()}var dt=X.current;return dt.addEventListener("wheel",tt,{passive:!1}),dt.addEventListener("DOMMouseScroll",Ze,{passive:!0}),dt.addEventListener("MozMousePixelScroll",rt,{passive:!1}),function(){dt.removeEventListener("wheel",tt),dt.removeEventListener("DOMMouseScroll",Ze),dt.removeEventListener("MozMousePixelScroll",rt)}},[K,ot,vt]),en(function(){if(C){var rt=nt(ge);ue(rt),ke({x:rt})}},[Ge.width,C]);var Ct=function(){var dt,It;(dt=lt.current)===null||dt===void 0||dt.delayHidden(),(It=mt.current)===null||It===void 0||It.delayHidden()},Ft=gL(X,W,P,c,L,function(){return V(!0)},Te,Ct);s.useImperativeHandle(t,function(){return{nativeElement:ne.current,getScrollInfo:we,scrollTo:function(dt){function It(wt){return wt&&$t(wt)==="object"&&("left"in wt||"top"in wt)}It(dt)?(dt.left!==void 0&&ue(nt(dt.left)),Ft(dt.top)):Ft(dt)}}}),en(function(){if(R){var rt=W.slice(Je,_e+1);R(rt,W)}},[Je,_e,W]);var Nt=sL(W,L,P,c),rn=I==null?void 0:I({start:Je,end:_e,virtual:Q,offsetX:ge,offsetY:Ie,rtl:k,getSize:Nt}),dn=aL(W,Je,_e,C,ge,_,v,ve),Wt=null;l&&(Wt=ee(q({},d?"height":"maxHeight",l),bL),K&&(Wt.overflowY="hidden",C&&(Wt.overflowX="hidden"),ye&&(Wt.pointerEvents="none")));var on={};return k&&(on.dir="rtl"),s.createElement("div",Oe({ref:ne,style:ee(ee({},m),{},{position:"relative"}),className:U},on,z),s.createElement(ca,{onResize:Qe},s.createElement(x,{className:"".concat(r,"-holder"),style:Wt,ref:X,onScroll:Le,onMouseEnter:Ct},s.createElement(MN,{prefixCls:r,height:Ye,offsetX:ge,offsetY:Ie,scrollWidth:C,onInnerResize:V,ref:J,innerProps:N,rtl:k,extra:rn},dn))),Q&&Ye>l&&s.createElement(Mw,{ref:lt,prefixCls:r,scrollOffset:oe,scrollRange:Ye,rtl:k,onScroll:He,onStartMove:je,onStopMove:ze,spinSize:At,containerSize:Ge.height,style:M==null?void 0:M.verticalScrollBar,thumbStyle:M==null?void 0:M.verticalScrollBarThumb,showScrollBar:T}),Q&&C>Ge.width&&s.createElement(Mw,{ref:mt,prefixCls:r,scrollOffset:ge,scrollRange:C,rtl:k,onScroll:He,onStartMove:je,onStopMove:ze,spinSize:Dt,containerSize:Ge.width,horizontal:!0,style:M==null?void 0:M.horizontalScrollBar,thumbStyle:M==null?void 0:M.horizontalScrollBarThumb,showScrollBar:T}))}var fg=s.forwardRef(yL);fg.displayName="List";function SL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var CL=["disabled","title","children","style","className"];function Pw(e){return typeof e=="string"||typeof e=="number"}var xL=function(t,n){var r=iB(),a=r.prefixCls,l=r.id,c=r.open,u=r.multiple,d=r.mode,m=r.searchValue,g=r.toggleOpen,v=r.notFoundContent,h=r.onPopupScroll,b=s.useContext(ny),y=b.maxCount,C=b.flattenOptions,S=b.onActiveValue,x=b.defaultActiveFirstOption,w=b.onSelect,E=b.menuItemSelectedIcon,R=b.rawValues,N=b.fieldNames,I=b.virtual,M=b.direction,j=b.listHeight,T=b.listItemHeight,z=b.optionRender,L="".concat(a,"-item"),D=Ml(function(){return C},[c,C],function(me,ie){return ie[0]&&me[1]!==ie[1]}),A=s.useRef(null),_=s.useMemo(function(){return u&&H0(y)&&(R==null?void 0:R.size)>=y},[u,y,R==null?void 0:R.size]),V=function(ie){ie.preventDefault()},P=function(ie){var ge;(ge=A.current)===null||ge===void 0||ge.scrollTo(typeof ie=="number"?{index:ie}:ie)},B=s.useCallback(function(me){return d==="combobox"?!1:R.has(me)},[d,De(R).toString(),R.size]),K=function(ie){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=D.length,ae=0;ae<ue;ae+=1){var ce=(ie+ae*ge+ue)%ue,ye=D[ce]||{},Ce=ye.group,je=ye.data;if(!Ce&&!(je!=null&&je.disabled)&&(B(je.value)||!_))return ce}return-1},G=s.useState(function(){return K(0)}),Q=de(G,2),k=Q[0],U=Q[1],W=function(ie){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;U(ie);var ue={source:ge?"keyboard":"mouse"},ae=D[ie];if(!ae){S(null,-1,ue);return}S(ae.value,ie,ue)};s.useEffect(function(){W(x!==!1?K(0):-1)},[D.length,m]);var X=s.useCallback(function(me){return d==="combobox"?String(me).toLowerCase()===m.toLowerCase():R.has(me)},[d,m,De(R).toString(),R.size]);s.useEffect(function(){var me=setTimeout(function(){if(!u&&c&&R.size===1){var ge=Array.from(R)[0],ue=D.findIndex(function(ae){var ce=ae.data;return m?String(ce.value).startsWith(m):ce.value===ge});ue!==-1&&(W(ue),P(ue))}});if(c){var ie;(ie=A.current)===null||ie===void 0||ie.scrollTo(void 0)}return function(){return clearTimeout(me)}},[c,m]);var J=function(ie){ie!==void 0&&w(ie,{selected:!R.has(ie)}),u||g(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(ie){var ge=ie.which,ue=ie.ctrlKey;switch(ge){case ft.N:case ft.P:case ft.UP:case ft.DOWN:{var ae=0;if(ge===ft.UP?ae=-1:ge===ft.DOWN?ae=1:SL()&&ue&&(ge===ft.N?ae=1:ge===ft.P&&(ae=-1)),ae!==0){var ce=K(k+ae,ae);P(ce),W(ce,!0)}break}case ft.TAB:case ft.ENTER:{var ye,Ce=D[k];Ce&&!(Ce!=null&&(ye=Ce.data)!==null&&ye!==void 0&&ye.disabled)&&!_?J(Ce.value):J(void 0),c&&ie.preventDefault();break}case ft.ESC:g(!1),c&&ie.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ie){P(ie)}}}),D.length===0)return s.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:V},v);var ne=Object.keys(N).map(function(me){return N[me]}),se=function(ie){return ie.label};function re(me,ie){var ge=me.group;return{role:ge?"presentation":"option",id:"".concat(l,"_list_").concat(ie)}}var oe=function(ie){var ge=D[ie];if(!ge)return null;var ue=ge.data||{},ae=ue.value,ce=ge.group,ye=Ar(ue,!0),Ce=se(ge);return ge?s.createElement("div",Oe({"aria-label":typeof Ce=="string"&&!ce?Ce:null},ye,{key:ie},re(ge,ie),{"aria-selected":X(ae)}),ae):null},Se={role:"listbox",id:"".concat(l,"_list")};return s.createElement(s.Fragment,null,I&&s.createElement("div",Oe({},Se,{style:{height:0,width:0,overflow:"hidden"}}),oe(k-1),oe(k),oe(k+1)),s.createElement(fg,{itemKey:"key",ref:A,data:D,height:j,itemHeight:T,fullHeight:!1,onMouseDown:V,onScroll:h,virtual:I,direction:M,innerProps:I?null:Se},function(me,ie){var ge=me.group,ue=me.groupOption,ae=me.data,ce=me.label,ye=me.value,Ce=ae.key;if(ge){var je,ze=(je=ae.title)!==null&&je!==void 0?je:Pw(ce)?ce.toString():void 0;return s.createElement("div",{className:te(L,"".concat(L,"-group"),ae.className),title:ze},ce!==void 0?ce:Ce)}var ve=ae.disabled,Te=ae.title;ae.children;var Ee=ae.style,xe=ae.className,Ve=Pt(ae,CL),Xe=_n(Ve,ne),it=B(ye),at=ve||!it&&_,Ye="".concat(L,"-option"),Je=te(L,Ye,xe,q(q(q(q({},"".concat(Ye,"-grouped"),ue),"".concat(Ye,"-active"),k===ie&&!at),"".concat(Ye,"-disabled"),at),"".concat(Ye,"-selected"),it)),_e=se(me),Ie=!E||typeof E=="function"||it,We=typeof _e=="number"?_e:_e||ye,Be=Pw(We)?We.toString():void 0;return Te!==void 0&&(Be=Te),s.createElement("div",Oe({},Ar(Xe),I?{}:re(me,ie),{"aria-selected":X(ye),className:Je,title:Be,onMouseMove:function(){k===ie||at||W(ie)},onClick:function(){at||J(ye)},style:Ee}),s.createElement("div",{className:"".concat(Ye,"-content")},typeof z=="function"?z(me,{index:ie}):We),s.isValidElement(E)||it,Ie&&s.createElement(ug,{className:"".concat(L,"-option-state"),customizeIcon:E,customizeIconProps:{value:ye,disabled:at,isSelected:it}},it?"✓":null))}))},$L=s.forwardRef(xL);const wL=(function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var l=n.current,c=l.values,u=l.options,d=e.map(function(v){if(v.label===void 0){var h;return ee(ee({},v),{},{label:(h=c.get(v.value))===null||h===void 0?void 0:h.label})}return v}),m=new Map,g=new Map;return d.forEach(function(v){m.set(v.value,v),g.set(v.value,t.get(v.value)||u.get(v.value))}),n.current.values=m,n.current.options=g,d},[e,t]),a=s.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,a]});function ch(e,t){return NN(e).join("").toUpperCase().includes(t)}const EL=(function(e,t,n,r,a){return s.useMemo(function(){if(!n||r===!1)return e;var l=t.options,c=t.label,u=t.value,d=[],m=typeof r=="function",g=n.toUpperCase(),v=m?r:function(b,y){return a?ch(y[a],g):y[l]?ch(y[c!=="children"?c:"label"],g):ch(y[u],g)},h=m?function(b){return F0(b)}:function(b){return b};return e.forEach(function(b){if(b[l]){var y=v(n,h(b));if(y)d.push(b);else{var C=b[l].filter(function(S){return v(n,h(S))});C.length&&d.push(ee(ee({},b),{},q({},l,C)))}return}v(n,h(b))&&d.push(b)}),d},[e,r,a,n,t])});var zw=0,OL=Yr();function RL(){var e;return OL?(e=zw,zw+=1):e="TEST_OR_SSR",e}function NL(e){var t=s.useState(),n=de(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_select_".concat(RL()))},[]),e||r}var TL=["children","value"],IL=["children"];function ML(e){var t=e,n=t.key,r=t.props,a=r.children,l=r.value,c=Pt(r,TL);return ee({key:n,value:l!==void 0?l:n,children:a},c)}function PN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ir(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var a=n,l=a.type.isSelectOptGroup,c=a.key,u=a.props,d=u.children,m=Pt(u,IL);return t||!l?ML(n):ee(ee({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},m),{},{options:PN(d)})}).filter(function(n){return n})}var jL=function(t,n,r,a,l){return s.useMemo(function(){var c=t,u=!t;u&&(c=PN(n));var d=new Map,m=new Map,g=function(b,y,C){C&&typeof C=="string"&&b.set(y[C],y)},v=function h(b){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<b.length;C+=1){var S=b[C];!S[r.options]||y?(d.set(S[r.value],S),g(m,S,r.label),g(m,S,a),g(m,S,l)):h(S[r.options],!0)}};return v(c),{options:c,valueOptions:d,labelOptions:m}},[t,n,r,a,l])};function _w(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var PL=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],zL=["inputValue"];function _L(e){return!e||$t(e)!=="object"}var DL=s.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,l=a===void 0?"rc-select":a,c=e.backfill,u=e.fieldNames,d=e.inputValue,m=e.searchValue,g=e.onSearch,v=e.autoClearSearchValue,h=v===void 0?!0:v,b=e.onSelect,y=e.onDeselect,C=e.dropdownMatchSelectWidth,S=C===void 0?!0:C,x=e.filterOption,w=e.filterSort,E=e.optionFilterProp,R=e.optionLabelProp,N=e.options,I=e.optionRender,M=e.children,j=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,z=e.virtual,L=e.direction,D=e.listHeight,A=D===void 0?200:D,_=e.listItemHeight,V=_===void 0?20:_,P=e.labelRender,B=e.value,K=e.defaultValue,G=e.labelInValue,Q=e.onChange,k=e.maxCount,U=Pt(e,PL),W=NL(n),X=k0(r),J=!!(!N&&M),ne=s.useMemo(function(){return x===void 0&&r==="combobox"?!1:x},[x,r]),se=s.useMemo(function(){return IN(u,J)},[JSON.stringify(u),J]),re=Gn("",{value:m!==void 0?m:d,postState:function(He){return He||""}}),oe=de(re,2),Se=oe[0],me=oe[1],ie=jL(N,M,se,E,R),ge=ie.valueOptions,ue=ie.labelOptions,ae=ie.options,ce=s.useCallback(function(ke){var He=NN(ke);return He.map(function(Le){var nt,pt,ht,zt,tt;if(_L(Le))nt=Le;else{var Ze;ht=Le.key,pt=Le.label,nt=(Ze=Le.value)!==null&&Ze!==void 0?Ze:ht}var Ct=ge.get(nt);if(Ct){var Ft;pt===void 0&&(pt=Ct==null?void 0:Ct[R||se.label]),ht===void 0&&(ht=(Ft=Ct==null?void 0:Ct.key)!==null&&Ft!==void 0?Ft:nt),zt=Ct==null?void 0:Ct.disabled,tt=Ct==null?void 0:Ct.title}return{label:pt,value:nt,key:ht,disabled:zt,title:tt}})},[se,R,ge]),ye=Gn(K,{value:B}),Ce=de(ye,2),je=Ce[0],ze=Ce[1],ve=s.useMemo(function(){var ke,He=X&&je===null?[]:je,Le=ce(He);return r==="combobox"&&RB((ke=Le[0])===null||ke===void 0?void 0:ke.value)?[]:Le},[je,ce,r,X]),Te=wL(ve,ge),Ee=de(Te,2),xe=Ee[0],Ve=Ee[1],Xe=s.useMemo(function(){if(!r&&xe.length===1){var ke=xe[0];if(ke.value===null&&(ke.label===null||ke.label===void 0))return[]}return xe.map(function(He){var Le;return ee(ee({},He),{},{label:(Le=typeof P=="function"?P(He):He.label)!==null&&Le!==void 0?Le:He.value})})},[r,xe,P]),it=s.useMemo(function(){return new Set(xe.map(function(ke){return ke.value}))},[xe]);s.useEffect(function(){if(r==="combobox"){var ke,He=(ke=xe[0])===null||ke===void 0?void 0:ke.value;me(OB(He)?String(He):"")}},[xe]);var at=_w(function(ke,He){var Le=He??ke;return q(q({},se.value,ke),se.label,Le)}),Ye=s.useMemo(function(){if(r!=="tags")return ae;var ke=De(ae),He=function(nt){return ge.has(nt)};return De(xe).sort(function(Le,nt){return Le.value<nt.value?-1:1}).forEach(function(Le){var nt=Le.value;He(nt)||ke.push(at(nt,Le.label))}),ke},[at,ae,ge,xe,r]),Je=EL(Ye,se,Se,ne,E),_e=s.useMemo(function(){return r!=="tags"||!Se||Je.some(function(ke){return ke[E||"value"]===Se})||Je.some(function(ke){return ke[se.value]===Se})?Je:[at(Se)].concat(De(Je))},[at,E,r,Je,Se,se]),Ie=function ke(He){var Le=De(He).sort(function(nt,pt){return w(nt,pt,{searchValue:Se})});return Le.map(function(nt){return Array.isArray(nt.options)?ee(ee({},nt),{},{options:nt.options.length>0?ke(nt.options):nt.options}):nt})},We=s.useMemo(function(){return w?Ie(_e):_e},[_e,w,Se]),Be=s.useMemo(function(){return QB(We,{fieldNames:se,childrenAsData:J})},[We,se,J]),Ge=function(He){var Le=ce(He);if(ze(Le),Q&&(Le.length!==xe.length||Le.some(function(ht,zt){var tt;return((tt=xe[zt])===null||tt===void 0?void 0:tt.value)!==(ht==null?void 0:ht.value)}))){var nt=G?Le:Le.map(function(ht){return ht.value}),pt=Le.map(function(ht){return F0(Ve(ht.value))});Q(X?nt:nt[0],X?pt:pt[0])}},Me=s.useState(null),Qe=de(Me,2),lt=Qe[0],mt=Qe[1],Dt=s.useState(0),At=de(Dt,2),et=At[0],ct=At[1],gt=j!==void 0?j:r!=="combobox",ot=s.useCallback(function(ke,He){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=Le.source,pt=nt===void 0?"keyboard":nt;ct(He),c&&r==="combobox"&&ke!==null&&pt==="keyboard"&&mt(String(ke))},[c,r]),vt=function(He,Le,nt){var pt=function(){var Wt,on=Ve(He);return[G?{label:on==null?void 0:on[se.label],value:He,key:(Wt=on==null?void 0:on.key)!==null&&Wt!==void 0?Wt:He}:He,F0(on)]};if(Le&&b){var ht=pt(),zt=de(ht,2),tt=zt[0],Ze=zt[1];b(tt,Ze)}else if(!Le&&y&&nt!=="clear"){var Ct=pt(),Ft=de(Ct,2),Nt=Ft[0],rn=Ft[1];y(Nt,rn)}},Mt=_w(function(ke,He){var Le,nt=X?He.selected:!0;nt?Le=X?[].concat(De(xe),[ke]):[ke]:Le=xe.filter(function(pt){return pt.value!==ke}),Ge(Le),vt(ke,nt),r==="combobox"?mt(""):(!k0||h)&&(me(""),mt(""))}),pe=function(He,Le){Ge(He);var nt=Le.type,pt=Le.values;(nt==="remove"||nt==="clear")&&pt.forEach(function(ht){vt(ht.value,!1,nt)})},be=function(He,Le){if(me(He),mt(null),Le.source==="submit"){var nt=(He||"").trim();if(nt){var pt=Array.from(new Set([].concat(De(it),[nt])));Ge(pt),vt(nt,!0),me("")}return}Le.source!=="blur"&&(r==="combobox"&&Ge(He),g==null||g(He))},we=function(He){var Le=He;r!=="tags"&&(Le=He.map(function(pt){var ht=ue.get(pt);return ht==null?void 0:ht.value}).filter(function(pt){return pt!==void 0}));var nt=Array.from(new Set([].concat(De(it),De(Le))));Ge(nt),nt.forEach(function(pt){vt(pt,!0)})},Ke=s.useMemo(function(){var ke=z!==!1&&S!==!1;return ee(ee({},ie),{},{flattenOptions:Be,onActiveValue:ot,defaultActiveFirstOption:gt,onSelect:Mt,menuItemSelectedIcon:T,rawValues:it,fieldNames:se,virtual:ke,direction:L,listHeight:A,listItemHeight:V,childrenAsData:J,maxCount:k,optionRender:I})},[k,ie,Be,ot,gt,Mt,T,it,se,z,S,L,A,V,J,I]);return s.createElement(ny.Provider,{value:Ke},s.createElement(nL,Oe({},U,{id:W,prefixCls:l,ref:t,omitDomProps:zL,mode:r,displayValues:Xe,onDisplayValuesChange:pe,direction:L,searchValue:Se,onSearch:be,autoClearSearchValue:h,onSearchSplit:we,dropdownMatchSelectWidth:S,OptionList:$L,emptyOptions:!Be.length,activeValue:lt,activeDescendantId:"".concat(W,"_list_").concat(et)})))}),oy=DL;oy.Option=ay;oy.OptGroup=ry;function Ks(e,t,n){return te({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ed=(e,t)=>t||e,AL=()=>{const[,e]=jr(),[t]=co("Empty"),r=new un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},BL=()=>{const[,e]=jr(),[t]=co("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:l}=e,{borderColor:c,shadowColor:u,contentColor:d}=s.useMemo(()=>({borderColor:new un(n).onBackground(l).toHexString(),shadowColor:new un(r).onBackground(l).toHexString(),contentColor:new un(a).onBackground(l).toHexString()}),[n,r,a,l]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:c},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},LL=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:l,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:c,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},HL=nn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Qt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return LL(a)});var FL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const zN=s.createElement(AL,null),_N=s.createElement(BL,null),Tr=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:l,description:c,children:u,imageStyle:d,style:m,classNames:g,styles:v}=e,h=FL(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:y,className:C,style:S,classNames:x,styles:w,image:E}=Er("empty"),R=b("empty",a),[N,I,M]=HL(R),[j]=co("Empty"),T=typeof c<"u"?c:j==null?void 0:j.description,z=typeof T=="string"?T:"empty",L=(t=l??E)!==null&&t!==void 0?t:zN;let D=null;return typeof L=="string"?D=s.createElement("img",{draggable:!1,alt:z,src:L}):D=L,N(s.createElement("div",Object.assign({className:te(I,M,R,C,{[`${R}-normal`]:L===_N,[`${R}-rtl`]:y==="rtl"},n,r,x.root,g==null?void 0:g.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),S),v==null?void 0:v.root),m)},h),s.createElement("div",{className:te(`${R}-image`,x.image,g==null?void 0:g.image),style:Object.assign(Object.assign(Object.assign({},d),w.image),v==null?void 0:v.image)},D),T&&s.createElement("div",{className:te(`${R}-description`,x.description,g==null?void 0:g.description),style:Object.assign(Object.assign({},w.description),v==null?void 0:v.description)},T),u&&s.createElement("div",{className:te(`${R}-footer`,x.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign({},w.footer),v==null?void 0:v.footer)},u)))};Tr.PRESENTED_IMAGE_DEFAULT=zN;Tr.PRESENTED_IMAGE_SIMPLE=_N;const DN=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(Ot),r=n("empty");switch(t){case"Table":case"List":return le.createElement(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return le.createElement(Tr,null)}},td=(e,t,n)=>{var r,a;const{variant:l,[e]:c}=s.useContext(Ot),u=s.useContext(JR),d=c==null?void 0:c.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(a=(r=u??d)!==null&&r!==void 0?r:l)!==null&&a!==void 0?a:"outlined";const g=ZP.includes(m);return[m,g]},kL=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function VL(e,t){return e||kL(t)}const Dw=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},KL=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},cn(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,[`
|
|
211
|
+
${a}${u}bottomLeft,
|
|
212
|
+
${l}${u}bottomLeft
|
|
213
|
+
`]:{animationName:kb},[`
|
|
214
|
+
${a}${u}topLeft,
|
|
215
|
+
${l}${u}topLeft,
|
|
216
|
+
${a}${u}topRight,
|
|
217
|
+
${l}${u}topRight
|
|
218
|
+
`]:{animationName:Kb},[`${c}${u}bottomLeft`]:{animationName:Vb},[`
|
|
219
|
+
${c}${u}topLeft,
|
|
220
|
+
${c}${u}topRight
|
|
221
|
+
`]:{animationName:Wb},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Dw(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},qo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Dw(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Di(e,"slide-up"),Di(e,"slide-down"),ym(e,"move-up"),ym(e,"move-down")]},WL=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,l=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(l).sub(a).equal(),0);return{basePadding:l,containerPadding:c,itemHeight:Z(t),itemLineHeight:Z(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},UL=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},qL=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:l,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:u,colorIcon:d,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:g}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:g,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(g).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},jl()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},GL=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=UL(e),u=t?`${n}-${t}`:"",d=WL(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},qL(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Z(r)} 0`,lineHeight:Z(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:Z(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Z(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${a}-item + ${a}-item,
|
|
222
|
+
${n}-prefix + ${n}-selection-wrap
|
|
223
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:Z(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function uh(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
224
|
+
&${n}-show-arrow ${n}-selector,
|
|
225
|
+
&${n}-allow-clear ${n}-selector
|
|
226
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[GL(e,t),a]}const XL=e=>{const{componentCls:t}=e,n=Qt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Qt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[uh(e),uh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},uh(r,"lg")]};function dh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},cn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Z(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
227
|
+
${n}-selection-item,
|
|
228
|
+
${n}-selection-placeholder
|
|
229
|
+
`]:{display:"block",padding:0,lineHeight:Z(l),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
230
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
231
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
232
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
233
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Z(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:Z(l)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Z(r)}`,"&:after":{display:"none"}}}}}}}function YL(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[dh(e),dh(Qt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Z(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
234
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
235
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
236
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},dh(Qt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const QL=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:l,controlHeightLG:c,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:m,colorText:g,fontWeightStrong:v,controlItemBgActive:h,controlItemBgHover:b,colorBgContainer:y,colorFillSecondary:C,colorBgContainerDisabled:S,colorTextDisabled:x,colorPrimaryHover:w,colorPrimary:E,controlOutline:R}=e,N=u*2,I=r*2,M=Math.min(a-N,a-I),j=Math.min(l-N,l-I),T=Math.min(c-N,c-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:m+50,optionSelectedColor:g,optionSelectedFontWeight:v,optionSelectedBg:h,optionActiveBg:b,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:y,clearBg:y,singleItemHeightLG:c,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:M,multipleItemHeightSM:j,multipleItemHeightLG:T,multipleSelectorBgDisabled:S,multipleItemColorDisabled:x,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:E,activeOutlineColor:R,selectAffixPadding:u}},AN=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Z(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Aw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},AN(e,t))}),ZL=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},AN(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Aw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Aw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),BN=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Z(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Bw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},BN(e,t))}),JL=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},BN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Bw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Bw(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),eH=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),LN=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Lw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},LN(e,t))}),tH=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},LN(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Lw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Lw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),nH=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ZL(e)),JL(e)),eH(e)),tH(e))}),rH=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},aH=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},oH=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},cn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},rH(e)),aH(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},qo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},qo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},jl()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},iH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},oH(e),YL(e),XL(e),KL(e),{[`${t}-rtl`]:{direction:"rtl"}},Xu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},lH=nn("Select",(e,{rootPrefixCls:t})=>{const n=Qt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[iH(n),nH(n)]},QL,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var sH={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"},cH=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:sH}))},HN=s.forwardRef(cH),uH={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"},dH=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:uH}))},iy=s.forwardRef(dH),fH={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"},mH=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:fH}))},ly=s.forwardRef(mH);function gH({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:l,hasFeedback:c,prefixCls:u,showSuffixIcon:d,feedbackIcon:m,showArrow:g,componentName:v}){const h=t??s.createElement(Pl,null),b=x=>e===null&&!c&&!g?null:s.createElement(s.Fragment,null,d!==!1&&x,c&&m);let y=null;if(e!==void 0)y=b(e);else if(a)y=b(s.createElement(_l,{spin:!0}));else{const x=`${u}-suffix`;y=({open:w,showSearch:E})=>b(w&&E?s.createElement(ly,{className:x}):s.createElement(iy,{className:x}))}let C=null;n!==void 0?C=n:l?C=s.createElement(HN,null):C=null;let S=null;return r!==void 0?S=r:S=s.createElement(Hi,null),{clearIcon:h,suffixIcon:y,itemIcon:C,removeIcon:S}}function vH(e){return le.useMemo(()=>{if(e)return(...t)=>le.createElement(Ai,{space:!0},e.apply(void 0,t))},[e])}function pH(e,t){return t!==void 0?t:e!==null}var hH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const FN="SECRET_COMBOBOX_MODE_DO_NOT_USE",bH=(e,t)=>{var n,r,a,l,c;const{prefixCls:u,bordered:d,className:m,rootClassName:g,getPopupContainer:v,popupClassName:h,dropdownClassName:b,listHeight:y=256,placement:C,listItemHeight:S,size:x,disabled:w,notFoundContent:E,status:R,builtinPlacements:N,dropdownMatchSelectWidth:I,popupMatchSelectWidth:M,direction:j,style:T,allowClear:z,variant:L,dropdownStyle:D,transitionName:A,tagRender:_,maxCount:V,prefix:P,dropdownRender:B,popupRender:K,onDropdownVisibleChange:G,onOpenChange:Q,styles:k,classNames:U}=e,W=hH(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:X,getPrefixCls:J,renderEmpty:ne,direction:se,virtual:re,popupMatchSelectWidth:oe,popupOverflow:Se}=s.useContext(Ot),{showSearch:me,style:ie,styles:ge,className:ue,classNames:ae}=Er("select"),[,ce]=jr(),ye=S??(ce==null?void 0:ce.controlHeight),Ce=J("select",u),je=J(),ze=j??se,{compactSize:ve,compactItemClassnames:Te}=Fi(Ce,ze),[Ee,xe]=td("select",L,d),Ve=Pr(Ce),[Xe,it,at]=lH(Ce,Ve),Ye=s.useMemo(()=>{const{mode:nt}=e;if(nt!=="combobox")return nt===FN?"combobox":nt},[e.mode]),Je=Ye==="multiple"||Ye==="tags",_e=pH(e.suffixIcon,e.showArrow),Ie=(n=M??I)!==null&&n!==void 0?n:oe,We=((r=k==null?void 0:k.popup)===null||r===void 0?void 0:r.root)||((a=ge.popup)===null||a===void 0?void 0:a.root)||D,Be=vH(K||B),Ge=Q||G,{status:Me,hasFeedback:Qe,isFormItemInput:lt,feedbackIcon:mt}=s.useContext(Qr),Dt=ed(Me,R);let At;E!==void 0?At=E:Ye==="combobox"?At=null:At=(ne==null?void 0:ne("Select"))||s.createElement(DN,{componentName:"Select"});const{suffixIcon:et,itemIcon:ct,removeIcon:gt,clearIcon:ot}=gH(Object.assign(Object.assign({},W),{multiple:Je,hasFeedback:Qe,feedbackIcon:mt,showSuffixIcon:_e,prefixCls:Ce,componentName:"Select"})),vt=z===!0?{clearIcon:ot}:z,Mt=_n(W,["suffixIcon","itemIcon"]),pe=te(((l=U==null?void 0:U.popup)===null||l===void 0?void 0:l.root)||((c=ae==null?void 0:ae.popup)===null||c===void 0?void 0:c.root)||h||b,{[`${Ce}-dropdown-${ze}`]:ze==="rtl"},g,ae.root,U==null?void 0:U.root,at,Ve,it),be=Hr(nt=>{var pt;return(pt=x??ve)!==null&&pt!==void 0?pt:nt}),we=s.useContext(ba),Ke=w??we,ke=te({[`${Ce}-lg`]:be==="large",[`${Ce}-sm`]:be==="small",[`${Ce}-rtl`]:ze==="rtl",[`${Ce}-${Ee}`]:xe,[`${Ce}-in-form-item`]:lt},Ks(Ce,Dt,Qe),Te,ue,m,ae.root,U==null?void 0:U.root,g,at,Ve,it),He=s.useMemo(()=>C!==void 0?C:ze==="rtl"?"bottomRight":"bottomLeft",[C,ze]),[Le]=Ku("SelectLike",We==null?void 0:We.zIndex);return Xe(s.createElement(oy,Object.assign({ref:t,virtual:re,showSearch:me},Mt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ge.root),k==null?void 0:k.root),ie),T),dropdownMatchSelectWidth:Ie,transitionName:_i(je,"slide-up",A),builtinPlacements:VL(N,Se),listHeight:y,listItemHeight:ye,mode:Ye,prefixCls:Ce,placement:He,direction:ze,prefix:P,suffixIcon:et,menuItemSelectedIcon:ct,removeIcon:gt,allowClear:vt,notFoundContent:At,className:ke,getPopupContainer:v||X,dropdownClassName:pe,disabled:Ke,dropdownStyle:Object.assign(Object.assign({},We),{zIndex:Le}),maxCount:Je?V:void 0,tagRender:Je?_:void 0,dropdownRender:Be,onDropdownVisibleChange:Ge})))},tr=s.forwardRef(bH),yH=CN(tr,"dropdownAlign");tr.SECRET_COMBOBOX_MODE_DO_NOT_USE=FN;tr.Option=ay;tr.OptGroup=ry;tr._InternalPanelDoNotUseOrYouWillBeFired=yH;const kN=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},VN=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Ws=["xxl","xl","lg","md","sm","xs"],SH=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)`}),CH=e=>{const t=e,n=[].concat(Ws).reverse();return n.forEach((r,a)=>{const l=r.toUpperCase(),c=`screen${l}Min`,u=`screen${l}`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`);if(a<n.length-1){const d=`screen${l}Max`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);const g=`screen${n[a+1].toUpperCase()}Min`;if(!(t[d]<=t[g]))throw new Error(`${d}<=${g} fails : !(${t[d]}<=${t[g]})`)}}),e},KN=(e,t)=>{if(t){for(const n of Ws)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},xH=()=>{const[,e]=jr(),t=SH(CH(e));return le.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return a=l,n.forEach(c=>c(a)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(a),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,c])=>{const u=({matches:m})=>{this.dispatch(Object.assign(Object.assign({},a),{[l]:m}))},d=window.matchMedia(c);kN(d,u),this.matchHandlers[c]={mql:d,listener:u},u(d)})},unregister(){Object.values(t).forEach(l=>{const c=this.matchHandlers[l];VN(c==null?void 0:c.mql,c==null?void 0:c.listener)}),n.clear()}}},[t])};function mg(e=!0,t={}){const n=s.useRef(t),[,r]=wR(),a=xH();return en(()=>{const l=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(l)},[]),n.current}const Us=e=>e?typeof e=="function"?e():e:null;function sy(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,u=e.style;return s.createElement("div",{className:te("".concat(n,"-content"),c),style:u},s.createElement("div",{className:te("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Ss={shiftX:64,adjustY:1},Cs={adjustX:1,shiftY:!0},Ka=[0,0],$H={left:{points:["cr","cl"],overflow:Cs,offset:[-4,0],targetOffset:Ka},right:{points:["cl","cr"],overflow:Cs,offset:[4,0],targetOffset:Ka},top:{points:["bc","tc"],overflow:Ss,offset:[0,-4],targetOffset:Ka},bottom:{points:["tc","bc"],overflow:Ss,offset:[0,4],targetOffset:Ka},topLeft:{points:["bl","tl"],overflow:Ss,offset:[0,-4],targetOffset:Ka},leftTop:{points:["tr","tl"],overflow:Cs,offset:[-4,0],targetOffset:Ka},topRight:{points:["br","tr"],overflow:Ss,offset:[0,-4],targetOffset:Ka},rightTop:{points:["tl","tr"],overflow:Cs,offset:[4,0],targetOffset:Ka},bottomRight:{points:["tr","br"],overflow:Ss,offset:[0,4],targetOffset:Ka},rightBottom:{points:["bl","br"],overflow:Cs,offset:[4,0],targetOffset:Ka},bottomLeft:{points:["tl","bl"],overflow:Ss,offset:[0,4],targetOffset:Ka},leftBottom:{points:["br","bl"],overflow:Cs,offset:[-4,0],targetOffset:Ka}},wH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],EH=function(t,n){var r=t.overlayClassName,a=t.trigger,l=a===void 0?["hover"]:a,c=t.mouseEnterDelay,u=c===void 0?0:c,d=t.mouseLeaveDelay,m=d===void 0?.1:d,g=t.overlayStyle,v=t.prefixCls,h=v===void 0?"rc-tooltip":v,b=t.children,y=t.onVisibleChange,C=t.afterVisibleChange,S=t.transitionName,x=t.animation,w=t.motion,E=t.placement,R=E===void 0?"right":E,N=t.align,I=N===void 0?{}:N,M=t.destroyTooltipOnHide,j=M===void 0?!1:M,T=t.defaultVisible,z=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,A=t.id,_=t.showArrow,V=_===void 0?!0:_,P=t.classNames,B=t.styles,K=Pt(t,wH),G=ig(A),Q=s.useRef(null);s.useImperativeHandle(n,function(){return Q.current});var k=ee({},K);"visible"in t&&(k.popupVisible=t.visible);var U=function(){return s.createElement(sy,{key:"content",prefixCls:h,id:G,bodyClassName:P==null?void 0:P.body,overlayInnerStyle:ee(ee({},L),B==null?void 0:B.body)},D)},W=function(){var J=s.Children.only(b),ne=(J==null?void 0:J.props)||{},se=ee(ee({},ne),{},{"aria-describedby":D?G:null});return s.cloneElement(b,se)};return s.createElement(dg,Oe({popupClassName:te(r,P==null?void 0:P.root),prefixCls:h,popup:U,action:l,builtinPlacements:$H,popupPlacement:R,ref:Q,popupAlign:I,getPopupContainer:z,onPopupVisibleChange:y,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:x,popupMotion:w,defaultPopupVisible:T,autoDestroy:j,mouseLeaveDelay:m,popupStyle:ee(ee({},g),B==null?void 0:B.root),mouseEnterDelay:u,arrow:V},k),W())};const OH=s.forwardRef(EH);function cy(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,l=0,c=a,u=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),m=a-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),v=2*a-m,h=g,b=2*a-u,y=d,C=2*a-l,S=c,x=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),E=`polygon(${w}px 100%, 50% ${w}px, ${2*a-w}px 100%, ${w}px 100%)`,R=`path('M ${l} ${c} A ${r} ${r} 0 0 0 ${u} ${d} L ${m} ${g} A ${n} ${n} 0 0 1 ${v} ${h} L ${b} ${y} A ${r} ${r} 0 0 0 ${C} ${S} Z')`;return{arrowShadowWidth:x,arrowPath:R,arrowPolygon:E}}const RH=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:u,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Z(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},WN=8;function gg(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?WN:r}}function Nf(e,t){return e?t:{}}function uy(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},RH(e,t,a)),{"&:before":{background:t}})]},Nf(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Nf(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Nf(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Nf(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function NH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const c=Object.assign(Object.assign({},l),a);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const Hw={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"]}},TH={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"]}},IH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function UN(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:l,visibleFirst:c}=e,u=t/2,d={},m=gg({contentRadius:l,limitVerticalRadius:!0});return Object.keys(Hw).forEach(g=>{const v=r&&TH[g]||Hw[g],h=Object.assign(Object.assign({},v),{offset:[0,0],dynamicInset:!0});switch(d[g]=h,IH.has(g)&&(h.autoArrow=!1),g){case"top":case"topLeft":case"topRight":h.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=u+a;break}if(r)switch(g){case"topLeft":case"bottomLeft":h.offset[0]=-m.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":h.offset[0]=m.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":h.offset[1]=-m.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":h.offset[1]=m.arrowOffsetHorizontal*2-u;break}h.overflow=NH(g,m,t,n),c&&(h.htmlRegion="visibleFirst")}),d}const MH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:u,controlHeight:d,boxShadowSecondary:m,paddingSM:g,paddingXS:v,arrowOffsetHorizontal:h,sizePopupArrow:b}=e,y=t(c).add(b).add(h).equal(),C=t(c).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":l,[`${n}-inner`]:{minWidth:C,minHeight:d,padding:`${Z(e.calc(g).div(2).equal())} ${Z(v)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:m,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,WN)}},[`${n}-content`]:{position:"relative"}}),Um(e,(S,{darkColor:x})=>({[`&${n}-${S}`]:{[`${n}-inner`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},uy(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},gg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),cy(Qt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),qN=(e,t=!0)=>nn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:l,colorBgSpotlight:c}=r,u=Qt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:a,tooltipBg:c});return[MH(u),Gu(r,"zoom-big-fast")]},jH,{resetStyle:!1,injectStyle:t})(e),PH=Pi.map(e=>`${e}-inverse`),zH=["success","processing","error","default","warning"];function vg(e,t=!0){return t?[].concat(De(PH),De(Pi)).includes(e):Pi.includes(e)}function _H(e){return zH.includes(e)}function GN(e,t){const n=vg(t),r=te({[`${e}-${t}`]:t&&n}),a={},l={},c=t5(t).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=d,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:l}}const DH=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=s.useContext(Ot),d=u("tooltip",t),[m,g,v]=qN(d),h=GN(d,l),b=h.arrowStyle,y=Object.assign(Object.assign({},c),h.overlayStyle),C=te(g,v,d,`${d}-pure`,`${d}-placement-${r}`,n,h.className);return m(s.createElement("div",{className:C,style:b},s.createElement("div",{className:`${d}-arrow`}),s.createElement(sy,Object.assign({},e,{className:g,prefixCls:d,overlayInnerStyle:y}),a)))};var AH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const BH=s.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:l,getTooltipContainer:c,color:u,overlayInnerStyle:d,children:m,afterOpenChange:g,afterVisibleChange:v,destroyTooltipOnHide:h,destroyOnHidden:b,arrow:y=!0,title:C,overlay:S,builtinPlacements:x,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0,motion:R,getPopupContainer:N,placement:I="top",mouseEnterDelay:M=.1,mouseLeaveDelay:j=.1,overlayStyle:T,rootClassName:z,overlayClassName:L,styles:D,classNames:A}=e,_=AH(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),V=!!y,[,P]=jr(),{getPopupContainer:B,getPrefixCls:K,direction:G,className:Q,style:k,classNames:U,styles:W}=Er("tooltip"),X=Oo(),J=s.useRef(null),ne=()=>{var _e;(_e=J.current)===null||_e===void 0||_e.forceAlign()};s.useImperativeHandle(t,()=>{var _e,Ie;return{forceAlign:ne,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),ne()},nativeElement:(_e=J.current)===null||_e===void 0?void 0:_e.nativeElement,popupElement:(Ie=J.current)===null||Ie===void 0?void 0:Ie.popupElement}});const[se,re]=Gn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),oe=!C&&!S&&C!==0,Se=_e=>{var Ie,We;re(oe?!1:_e),oe||((Ie=e.onOpenChange)===null||Ie===void 0||Ie.call(e,_e),(We=e.onVisibleChange)===null||We===void 0||We.call(e,_e))},me=s.useMemo(()=>{var _e,Ie;let We=w;return typeof y=="object"&&(We=(Ie=(_e=y.pointAtCenter)!==null&&_e!==void 0?_e:y.arrowPointAtCenter)!==null&&Ie!==void 0?Ie:w),x||UN({arrowPointAtCenter:We,autoAdjustOverflow:E,arrowWidth:V?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0})},[w,y,x,P]),ie=s.useMemo(()=>C===0?C:S||C||"",[S,C]),ge=s.createElement(Ai,{space:!0},typeof ie=="function"?ie():ie),ue=K("tooltip",a),ae=K(),ce=e["data-popover-inject"];let ye=se;!("open"in e)&&!("visible"in e)&&oe&&(ye=!1);const Ce=s.isValidElement(m)&&!bR(m)?m:s.createElement("span",null,m),je=Ce.props,ze=!je.className||typeof je.className=="string"?te(je.className,l||`${ue}-open`):je.className,[ve,Te,Ee]=qN(ue,!ce),xe=GN(ue,u),Ve=xe.arrowStyle,Xe=te(L,{[`${ue}-rtl`]:G==="rtl"},xe.className,z,Te,Ee,Q,U.root,A==null?void 0:A.root),it=te(U.body,A==null?void 0:A.body),[at,Ye]=Ku("Tooltip",_.zIndex),Je=s.createElement(OH,Object.assign({},_,{zIndex:at,showArrow:V,placement:I,mouseEnterDelay:M,mouseLeaveDelay:j,prefixCls:ue,classNames:{root:Xe,body:it},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ve),W.root),k),T),D==null?void 0:D.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),d),D==null?void 0:D.body),xe.overlayStyle)},getTooltipContainer:N||c||B,ref:J,builtinPlacements:me,overlay:ge,visible:ye,onVisibleChange:Se,afterVisibleChange:g??v,arrowContent:s.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:_i(ae,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:b??!!h}),ye?wr(Ce,{className:ze}):Ce);return ve(s.createElement(Gm.Provider,{value:Ye},Je))}),ja=BH;ja._InternalPanelDoNotUseOrYouWillBeFired=DH;const LH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:l,boxShadowSecondary:c,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:m,titleMarginBottom:g,colorBgElevated:v,popoverBg:h,titleBorderBottom:b,innerContentPadding:y,titlePadding:C}=e;return[{[t]:Object.assign(Object.assign({},cn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":v,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:g,color:u,fontWeight:a,borderBottom:b,padding:C},[`${t}-inner-content`]:{color:n,padding:y}})},uy(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},HH=e=>{const{componentCls:t}=e;return{[t]:Pi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},FH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:l,zIndexPopupBase:c,borderRadiusLG:u,marginXS:d,lineType:m,colorSplit:g,paddingSM:v}=e,h=n-r,b=h/2,y=h/2-t,C=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:c+30},cy(e)),gg({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${b}px ${C}px ${y}px`:0,titleBorderBottom:l?`${t}px ${m} ${g}`:"none",innerContentPadding:l?`${v}px ${C}px`:0})},XN=nn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Qt(e,{popoverBg:t,popoverColor:n});return[LH(r),HH(r),Gu(r,"zoom-big")]},FH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var kH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const YN=({title:e,content:t,prefixCls:n})=>!e&&!t?null:s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${n}-title`},e),t&&s.createElement("div",{className:`${n}-inner-content`},t)),VH=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:u,children:d}=e,m=Us(c),g=Us(u),v=te(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return s.createElement("div",{className:v,style:a},s.createElement("div",{className:`${n}-arrow`}),s.createElement(sy,Object.assign({},e,{className:t,prefixCls:n}),d||s.createElement(YN,{prefixCls:n,title:m,content:g})))},QN=e=>{const{prefixCls:t,className:n}=e,r=kH(e,["prefixCls","className"]),{getPrefixCls:a}=s.useContext(Ot),l=a("popover",t),[c,u,d]=XN(l);return c(s.createElement(VH,Object.assign({},r,{prefixCls:l,hashId:u,className:te(n,d)})))};var KH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const WH=s.forwardRef((e,t)=>{var n,r;const{prefixCls:a,title:l,content:c,overlayClassName:u,placement:d="top",trigger:m="hover",children:g,mouseEnterDelay:v=.1,mouseLeaveDelay:h=.1,onOpenChange:b,overlayStyle:y={},styles:C,classNames:S}=e,x=KH(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:E,style:R,classNames:N,styles:I}=Er("popover"),M=w("popover",a),[j,T,z]=XN(M),L=w(),D=te(u,T,z,E,N.root,S==null?void 0:S.root),A=te(N.body,S==null?void 0:S.body),[_,V]=Gn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(k,U)=>{V(k,!0),b==null||b(k,U)},B=k=>{k.keyCode===ft.ESC&&P(!1,k)},K=k=>{P(k)},G=Us(l),Q=Us(c);return j(s.createElement(ja,Object.assign({placement:d,trigger:m,mouseEnterDelay:v,mouseLeaveDelay:h},x,{prefixCls:M,classNames:{root:D,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),R),y),C==null?void 0:C.root),body:Object.assign(Object.assign({},I.body),C==null?void 0:C.body)},ref:t,open:_,onOpenChange:K,overlay:G||Q?s.createElement(YN,{prefixCls:M,title:G,content:Q}):null,transitionName:_i(L,"zoom-big",x.transitionName),"data-popover-inject":!0}),wr(g,{onKeyDown:k=>{var U,W;s.isValidElement(g)&&((W=g==null?void 0:(U=g.props).onKeyDown)===null||W===void 0||W.call(U,k)),B(k)}})))}),ZN=WH;ZN._InternalPanelDoNotUseOrYouWillBeFired=QN;const UH=new Yt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),qH=new Yt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),GH=new Yt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),XH=new Yt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),YH=new Yt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),QH=new Yt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ZH=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:l,textFontSizeSM:c,statusSize:u,dotSize:d,textFontWeight:m,indicatorHeight:g,indicatorHeightSM:v,marginXS:h,calc:b}=e,y=`${r}-scroll-number`,C=Um(e,(S,{darkColor:x})=>({[`&${t} ${t}-color-${S}`]:{background:x,[`&:not(${t}-count)`]:{color:x},"a:hover &":{background:x}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:Z(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(g).div(2).equal(),boxShadow:`0 0 0 ${Z(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:v,height:v,fontSize:c,lineHeight:Z(v),borderRadius:b(v).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Z(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Z(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${y}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:QH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:UH,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),C),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:qH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:GH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:XH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:YH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${y}-custom-component, ${t}-count`]:{transform:"none"},[`${y}-custom-component, ${y}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[y]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${y}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${y}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${y}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${y}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},JN=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,l=t,c=n,u=e.colorTextLightSolid,d=e.colorError,m=e.colorErrorHover;return Qt(e,{badgeFontHeight:l,badgeShadowSize:c,badgeTextColor:u,badgeColor:d,badgeColorHover:m,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},eT=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},JH=nn("Badge",e=>{const t=JN(e);return ZH(t)},eT),e7=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:l}=e,c=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,d=Um(e,(m,{darkColor:g})=>({[`&${c}-color-${m}`]:{background:g,color:g}}));return{[u]:{position:"relative"},[c]:Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{position:"absolute",top:r,padding:`0 ${Z(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Z(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${Z(l(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),d),{[`&${c}-placement-end`]:{insetInlineEnd:l(a).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:l(a).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},t7=nn(["Badge","Ribbon"],e=>{const t=JN(e);return e7(t)},eT),n7=e=>{const{className:t,prefixCls:n,style:r,color:a,children:l,text:c,placement:u="end",rootClassName:d}=e,{getPrefixCls:m,direction:g}=s.useContext(Ot),v=m("ribbon",n),h=`${v}-wrapper`,[b,y,C]=t7(v,h),S=vg(a,!1),x=te(v,`${v}-placement-${u}`,{[`${v}-rtl`]:g==="rtl",[`${v}-color-${a}`]:S},t),w={},E={};return a&&!S&&(w.background=a,E.color=a),b(s.createElement("div",{className:te(h,d,y,C)},l,s.createElement("div",{className:te(x,y),style:Object.assign(Object.assign({},w),r)},s.createElement("span",{className:`${v}-text`},c),s.createElement("div",{className:`${v}-corner`,style:E}))))},Fw=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let l;return a&&(l={position:"absolute",top:`${a}00%`,left:0}),s.createElement("span",{style:l,className:te(`${t}-only-unit`,{current:r})},n)};function r7(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const a7=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),l=Math.abs(n),[c,u]=s.useState(a),[d,m]=s.useState(l),g=()=>{u(a),m(l)};s.useEffect(()=>{const b=setTimeout(g,1e3);return()=>clearTimeout(b)},[a]);let v,h;if(c===a||Number.isNaN(a)||Number.isNaN(c))v=[s.createElement(Fw,Object.assign({},e,{key:a,current:!0}))],h={transition:"none"};else{v=[];const b=a+10,y=[];for(let w=a;w<=b;w+=1)y.push(w);const C=d<l?1:-1,S=y.findIndex(w=>w%10===c);v=(C<0?y.slice(0,S+1):y.slice(S)).map((w,E)=>{const R=w%10;return s.createElement(Fw,Object.assign({},e,{key:w,value:R,offset:C<0?E-S:E,current:E===S}))}),h={transform:`translateY(${-r7(c,a,C)}00%)`}}return s.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:g},v)};var o7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const i7=s.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:l,style:c,title:u,show:d,component:m="sup",children:g}=e,v=o7(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=s.useContext(Ot),b=h("scroll-number",n),y=Object.assign(Object.assign({},v),{"data-show":d,style:c,className:te(b,a,l),title:u});let C=r;if(r&&Number(r)%1===0){const S=String(r).split("");C=s.createElement("bdi",null,S.map((x,w)=>s.createElement(a7,{prefixCls:b,count:Number(r),value:x,key:S.length-w})))}return c!=null&&c.borderColor&&(y.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),g?wr(g,S=>({className:te(`${b}-custom-component`,S==null?void 0:S.className,l)})):s.createElement(m,Object.assign({},y,{ref:t}),C)});var l7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const s7=s.forwardRef((e,t)=>{var n,r,a,l,c;const{prefixCls:u,scrollNumberPrefixCls:d,children:m,status:g,text:v,color:h,count:b=null,overflowCount:y=99,dot:C=!1,size:S="default",title:x,offset:w,style:E,className:R,rootClassName:N,classNames:I,styles:M,showZero:j=!1}=e,T=l7(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:z,direction:L,badge:D}=s.useContext(Ot),A=z("badge",u),[_,V,P]=JH(A),B=b>y?`${y}+`:b,K=B==="0"||B===0||v==="0"||v===0,G=b===null||K&&!j,Q=(g!=null||h!=null)&&G,k=g!=null||!K,U=C&&!K,W=U?"":B,X=s.useMemo(()=>((W==null||W==="")&&(v==null||v==="")||K&&!j)&&!U,[W,K,j,U,v]),J=s.useRef(b);X||(J.current=b);const ne=J.current,se=s.useRef(W);X||(se.current=W);const re=se.current,oe=s.useRef(U);X||(oe.current=U);const Se=s.useMemo(()=>{if(!w)return Object.assign(Object.assign({},D==null?void 0:D.style),E);const je={marginTop:w[1]};return L==="rtl"?je.left=Number.parseInt(w[0],10):je.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},je),D==null?void 0:D.style),E)},[L,w,E,D==null?void 0:D.style]),me=x??(typeof ne=="string"||typeof ne=="number"?ne:void 0),ie=!X&&(v===0?j:!!v&&v!==!0),ge=ie?s.createElement("span",{className:`${A}-status-text`},v):null,ue=!ne||typeof ne!="object"?void 0:wr(ne,je=>({style:Object.assign(Object.assign({},Se),je.style)})),ae=vg(h,!1),ce=te(I==null?void 0:I.indicator,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:Q,[`${A}-status-${g}`]:!!g,[`${A}-color-${h}`]:ae}),ye={};h&&!ae&&(ye.color=h,ye.background=h);const Ce=te(A,{[`${A}-status`]:Q,[`${A}-not-a-wrapper`]:!m,[`${A}-rtl`]:L==="rtl"},R,N,D==null?void 0:D.className,(r=D==null?void 0:D.classNames)===null||r===void 0?void 0:r.root,I==null?void 0:I.root,V,P);if(!m&&Q&&(v||k||!G)){const je=Se.color;return _(s.createElement("span",Object.assign({},T,{className:Ce,style:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.root),(a=D==null?void 0:D.styles)===null||a===void 0?void 0:a.root),Se)}),s.createElement("span",{className:ce,style:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.indicator),(l=D==null?void 0:D.styles)===null||l===void 0?void 0:l.indicator),ye)}),ie&&s.createElement("span",{style:{color:je},className:`${A}-status-text`},v)))}return _(s.createElement("span",Object.assign({ref:t},T,{className:Ce,style:Object.assign(Object.assign({},(c=D==null?void 0:D.styles)===null||c===void 0?void 0:c.root),M==null?void 0:M.root)}),m,s.createElement(Sa,{visible:!X,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:je})=>{var ze,ve;const Te=z("scroll-number",d),Ee=oe.current,xe=te(I==null?void 0:I.indicator,(ze=D==null?void 0:D.classNames)===null||ze===void 0?void 0:ze.indicator,{[`${A}-dot`]:Ee,[`${A}-count`]:!Ee,[`${A}-count-sm`]:S==="small",[`${A}-multiple-words`]:!Ee&&re&&re.toString().length>1,[`${A}-status-${g}`]:!!g,[`${A}-color-${h}`]:ae});let Ve=Object.assign(Object.assign(Object.assign({},M==null?void 0:M.indicator),(ve=D==null?void 0:D.styles)===null||ve===void 0?void 0:ve.indicator),Se);return h&&!ae&&(Ve=Ve||{},Ve.background=h),s.createElement(i7,{prefixCls:Te,show:!X,motionClassName:je,className:xe,count:re,title:me,style:Ve,key:"scrollNumber"},ue)}),ge))}),Cl=s7;Cl.Ribbon=n7;var c7={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"},u7=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:c7}))},_u=s.forwardRef(u7),d7=ft.ESC,f7=ft.TAB;function m7(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,l=e.overlayRef,c=s.useRef(!1),u=function(){if(t){var v,h;(v=n.current)===null||v===void 0||(h=v.focus)===null||h===void 0||h.call(v),r==null||r(!1)}},d=function(){var v;return(v=l.current)!==null&&v!==void 0&&v.focus?(l.current.focus(),c.current=!0,!0):!1},m=function(v){switch(v.keyCode){case d7:u();break;case f7:{var h=!1;c.current||(h=d()),h?v.preventDefault():u();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",m),a&&tn(d,3),function(){window.removeEventListener("keydown",m),c.current=!1}):function(){c.current=!1}},[t])}var g7=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,l=s.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),c=Lr(t,Li(l));return le.createElement(le.Fragment,null,r&&le.createElement("div",{className:"".concat(a,"-arrow")}),le.cloneElement(l,{ref:oo(l)?c:void 0}))}),xs={adjustX:1,adjustY:1},$s=[0,0],v7={topLeft:{points:["bl","tl"],overflow:xs,offset:[0,-4],targetOffset:$s},top:{points:["bc","tc"],overflow:xs,offset:[0,-4],targetOffset:$s},topRight:{points:["br","tr"],overflow:xs,offset:[0,-4],targetOffset:$s},bottomLeft:{points:["tl","bl"],overflow:xs,offset:[0,4],targetOffset:$s},bottom:{points:["tc","bc"],overflow:xs,offset:[0,4],targetOffset:$s},bottomRight:{points:["tr","br"],overflow:xs,offset:[0,4],targetOffset:$s}},p7=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function h7(e,t){var n,r=e.arrow,a=r===void 0?!1:r,l=e.prefixCls,c=l===void 0?"rc-dropdown":l,u=e.transitionName,d=e.animation,m=e.align,g=e.placement,v=g===void 0?"bottomLeft":g,h=e.placements,b=h===void 0?v7:h,y=e.getPopupContainer,C=e.showAction,S=e.hideAction,x=e.overlayClassName,w=e.overlayStyle,E=e.visible,R=e.trigger,N=R===void 0?["hover"]:R,I=e.autoFocus,M=e.overlay,j=e.children,T=e.onVisibleChange,z=Pt(e,p7),L=le.useState(),D=de(L,2),A=D[0],_=D[1],V="visible"in e?E:A,P=le.useRef(null),B=le.useRef(null),K=le.useRef(null);le.useImperativeHandle(t,function(){return P.current});var G=function(re){_(re),T==null||T(re)};m7({visible:V,triggerRef:K,onVisibleChange:G,autoFocus:I,overlayRef:B});var Q=function(re){var oe=e.onOverlayClick;_(!1),oe&&oe(re)},k=function(){return le.createElement(g7,{ref:B,overlay:M,prefixCls:c,arrow:a})},U=function(){return typeof M=="function"?k:k()},W=function(){var re=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?re:!oe},X=function(){var re=e.openClassName;return re!==void 0?re:"".concat(c,"-open")},J=le.cloneElement(j,{className:te((n=j.props)===null||n===void 0?void 0:n.className,V&&X()),ref:oo(j)?Lr(K,Li(j)):void 0}),ne=S;return!ne&&N.indexOf("contextMenu")!==-1&&(ne=["click"]),le.createElement(dg,Oe({builtinPlacements:b},z,{prefixCls:c,ref:P,popupClassName:te(x,q({},"".concat(c,"-show-arrow"),a)),popupStyle:w,action:N,showAction:C,hideAction:ne,popupPlacement:v,popupAlign:m,popupTransitionName:u,popupAnimation:d,popupVisible:V,stretch:W()?"minWidth":"",popup:U(),onPopupVisibleChange:G,onPopupClick:Q,getPopupContainer:y}),J)}const tT=le.forwardRef(h7),b7=e=>typeof e!="object"&&typeof e!="function"||e===null;var nT=s.createContext(null);function rT(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function aT(e){var t=s.useContext(nT);return rT(t,e)}var y7=["children","locked"],lo=s.createContext(null);function S7(e,t){var n=ee({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Du(e){var t=e.children,n=e.locked,r=Pt(e,y7),a=s.useContext(lo),l=Ml(function(){return S7(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!Co(c[1],u[1],!0))});return s.createElement(lo.Provider,{value:l},t)}var C7=[],oT=s.createContext(null);function pg(){return s.useContext(oT)}var iT=s.createContext(C7);function Js(e){var t=s.useContext(iT);return s.useMemo(function(){return e!==void 0?[].concat(De(t),[e]):t},[t,e])}var lT=s.createContext(null),dy=s.createContext({});function kw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Uu(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),l=Number(a),c=null;return a&&!Number.isNaN(l)?c=l:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function x7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=De(e.querySelectorAll("*")).filter(function(r){return kw(r,t)});return kw(e,t)&&n.unshift(e),n}var K0=ft.LEFT,W0=ft.RIGHT,U0=ft.UP,Yf=ft.DOWN,Qf=ft.ENTER,sT=ft.ESC,tu=ft.HOME,nu=ft.END,Vw=[U0,Yf,K0,W0];function $7(e,t,n,r){var a,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Qf)return{inlineTrigger:!0};var m=q(q({},U0,l),Yf,c),g=q(q(q(q({},K0,n?c:l),W0,n?l:c),Yf,u),Qf,u),v=q(q(q(q(q(q({},U0,l),Yf,c),Qf,u),sT,d),K0,n?u:d),W0,n?d:u),h={inline:m,horizontal:g,vertical:v,inlineSub:m,horizontalSub:v,verticalSub:v},b=(a=h["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(b){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function w7(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function E7(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function fy(e,t){var n=x7(e,!0);return n.filter(function(r){return t.has(r)})}function Kw(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=fy(e,t),l=a.length,c=a.findIndex(function(u){return n===u});return r<0?c===-1?c=l-1:c-=1:r>0&&(c+=1),c=(c+l)%l,a[c]}var q0=function(t,n){var r=new Set,a=new Map,l=new Map;return t.forEach(function(c){var u=document.querySelector("[data-menu-id='".concat(rT(n,c),"']"));u&&(r.add(u),l.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:l}};function O7(e,t,n,r,a,l,c,u,d,m){var g=s.useRef(),v=s.useRef();v.current=t;var h=function(){tn.cancel(g.current)};return s.useEffect(function(){return function(){h()}},[]),function(b){var y=b.which;if([].concat(Vw,[Qf,sT,tu,nu]).includes(y)){var C=l(),S=q0(C,r),x=S,w=x.elements,E=x.key2element,R=x.element2key,N=E.get(t),I=E7(N,w),M=R.get(I),j=$7(e,c(M,!0).length===1,n,y);if(!j&&y!==tu&&y!==nu)return;(Vw.includes(y)||[tu,nu].includes(y))&&b.preventDefault();var T=function(B){if(B){var K=B,G=B.querySelector("a");G!=null&&G.getAttribute("href")&&(K=G);var Q=R.get(B);u(Q),h(),g.current=tn(function(){v.current===Q&&K.focus()})}};if([tu,nu].includes(y)||j.sibling||!I){var z;!I||e==="inline"?z=a.current:z=w7(I);var L,D=fy(z,w);y===tu?L=D[0]:y===nu?L=D[D.length-1]:L=Kw(z,w,I,j.offset),T(L)}else if(j.inlineTrigger)d(M);else if(j.offset>0)d(M,!0),h(),g.current=tn(function(){S=q0(C,r);var P=I.getAttribute("aria-controls"),B=document.getElementById(P),K=Kw(B,S.elements);T(K)},5);else if(j.offset<0){var A=c(M,!0),_=A[A.length-2],V=E.get(_);d(_,!1),T(V)}}m==null||m(b)}}function R7(e){Promise.resolve().then(e)}var my="__RC_UTIL_PATH_SPLIT__",Ww=function(t){return t.join(my)},N7=function(t){return t.split(my)},G0="rc-menu-more";function T7(){var e=s.useState({}),t=de(e,2),n=t[1],r=s.useRef(new Map),a=s.useRef(new Map),l=s.useState([]),c=de(l,2),u=c[0],d=c[1],m=s.useRef(0),g=s.useRef(!1),v=function(){g.current||n({})},h=s.useCallback(function(E,R){var N=Ww(R);a.current.set(N,E),r.current.set(E,N),m.current+=1;var I=m.current;R7(function(){I===m.current&&v()})},[]),b=s.useCallback(function(E,R){var N=Ww(R);a.current.delete(N),r.current.delete(E)},[]),y=s.useCallback(function(E){d(E)},[]),C=s.useCallback(function(E,R){var N=r.current.get(E)||"",I=N7(N);return R&&u.includes(I[0])&&I.unshift(G0),I},[u]),S=s.useCallback(function(E,R){return E.filter(function(N){return N!==void 0}).some(function(N){var I=C(N,!0);return I.includes(R)})},[C]),x=function(){var R=De(r.current.keys());return u.length&&R.push(G0),R},w=s.useCallback(function(E){var R="".concat(r.current.get(E)).concat(my),N=new Set;return De(a.current.keys()).forEach(function(I){I.startsWith(R)&&N.add(a.current.get(I))}),N},[]);return s.useEffect(function(){return function(){g.current=!0}},[]),{registerPath:h,unregisterPath:b,refreshOverflowKeys:y,isSubPathKey:S,getKeyPath:C,getKeys:x,getSubPathKeys:w}}function du(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var I7=Math.random().toFixed(5).toString().slice(2),Uw=0;function M7(e){var t=Gn(e,{value:e}),n=de(t,2),r=n[0],a=n[1];return s.useEffect(function(){Uw+=1;var l="".concat(I7,"-").concat(Uw);a("rc-menu-uuid-".concat(l))},[]),r}function cT(e,t,n,r){var a=s.useContext(lo),l=a.activeKey,c=a.onActive,u=a.onInactive,d={active:l===e};return t||(d.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),c(e)},d.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),u(e)}),d}function uT(e){var t=s.useContext(lo),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*a}:{paddingLeft:l*a}}function dT(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=s.createElement(t,ee({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var j7=["item"];function Cm(e){var t=e.item,n=Pt(e,j7);return Object.defineProperty(n,"item",{get:function(){return Xn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var P7=["title","attribute","elementRef"],z7=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_7=["active"],D7=(function(e){so(n,e);var t=Eo(n);function n(){return rr(this,n),t.apply(this,arguments)}return ar(n,[{key:"render",value:function(){var a=this.props,l=a.title,c=a.attribute,u=a.elementRef,d=Pt(a,P7),m=_n(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Xn(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(So.Item,Oe({},c,{title:typeof l=="string"?l:void 0},m,{ref:u}))}}]),n})(s.Component),A7=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,m=e.onMouseEnter,g=e.onMouseLeave,v=e.onClick,h=e.onKeyDown,b=e.onFocus,y=Pt(e,z7),C=aT(a),S=s.useContext(lo),x=S.prefixCls,w=S.onItemClick,E=S.disabled,R=S.overflowDisabled,N=S.itemIcon,I=S.selectedKeys,M=S.onActive,j=s.useContext(dy),T=j._internalRenderMenuItem,z="".concat(x,"-item"),L=s.useRef(),D=s.useRef(),A=E||l,_=Yo(t,D),V=Js(a),P=function(oe){return{key:a,keyPath:De(V).reverse(),item:L.current,domEvent:oe}},B=c||N,K=cT(a,A,m,g),G=K.active,Q=Pt(K,_7),k=I.includes(a),U=uT(V.length),W=function(oe){if(!A){var Se=P(oe);v==null||v(Cm(Se)),w(Se)}},X=function(oe){if(h==null||h(oe),oe.which===ft.ENTER){var Se=P(oe);v==null||v(Cm(Se)),w(Se)}},J=function(oe){M(a),b==null||b(oe)},ne={};e.role==="option"&&(ne["aria-selected"]=k);var se=s.createElement(D7,Oe({ref:L,elementRef:_,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":R&&C?null:C},_n(y,["extra"]),Q,ne,{component:"li","aria-disabled":l,style:ee(ee({},U),n),className:te(z,q(q(q({},"".concat(z,"-active"),G),"".concat(z,"-selected"),k),"".concat(z,"-disabled"),A),r),onClick:W,onKeyDown:X,onFocus:J}),u,s.createElement(dT,{props:ee(ee({},e),{},{isSelected:k}),icon:B}));return T&&(se=T(se,e,{selected:k})),se});function B7(e,t){var n=e.eventKey,r=pg(),a=Js(n);return s.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:s.createElement(A7,Oe({},e,{ref:t}))}const nd=s.forwardRef(B7);var L7=["className","children"],H7=function(t,n){var r=t.className,a=t.children,l=Pt(t,L7),c=s.useContext(lo),u=c.prefixCls,d=c.mode,m=c.rtl;return s.createElement("ul",Oe({className:te(u,m&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),a)},gy=s.forwardRef(H7);gy.displayName="SubMenuList";function vy(e,t){return Ir(e).map(function(n,r){if(s.isValidElement(n)){var a,l,c=n.key,u=(a=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&a!==void 0?a:c,d=u==null;d&&(u="tmp_key-".concat([].concat(De(t),[r]).join("-")));var m={key:u,eventKey:u};return s.cloneElement(n,m)}return n})}var ra={adjustX:1,adjustY:1},F7={topLeft:{points:["bl","tl"],overflow:ra},topRight:{points:["br","tr"],overflow:ra},bottomLeft:{points:["tl","bl"],overflow:ra},bottomRight:{points:["tr","br"],overflow:ra},leftTop:{points:["tr","tl"],overflow:ra},leftBottom:{points:["br","bl"],overflow:ra},rightTop:{points:["tl","tr"],overflow:ra},rightBottom:{points:["bl","br"],overflow:ra}},k7={topLeft:{points:["bl","tl"],overflow:ra},topRight:{points:["br","tr"],overflow:ra},bottomLeft:{points:["tl","bl"],overflow:ra},bottomRight:{points:["tr","br"],overflow:ra},rightTop:{points:["tr","tl"],overflow:ra},rightBottom:{points:["br","bl"],overflow:ra},leftTop:{points:["tl","tr"],overflow:ra},leftBottom:{points:["bl","br"],overflow:ra}};function fT(e,t,n){if(t)return t;if(n)return n[e]||n.other}var V7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function K7(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,l=e.popupStyle,c=e.popupClassName,u=e.popupOffset,d=e.disabled,m=e.mode,g=e.onVisibleChange,v=s.useContext(lo),h=v.getPopupContainer,b=v.rtl,y=v.subMenuOpenDelay,C=v.subMenuCloseDelay,S=v.builtinPlacements,x=v.triggerSubMenuAction,w=v.forceSubMenuRender,E=v.rootClassName,R=v.motion,N=v.defaultMotions,I=s.useState(!1),M=de(I,2),j=M[0],T=M[1],z=ee(b?ee({},k7):ee({},F7),S),L=V7[m],D=fT(m,R,N),A=s.useRef(D);m!=="inline"&&(A.current=D);var _=ee(ee({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=s.useRef();return s.useEffect(function(){return V.current=tn(function(){T(n)}),function(){tn.cancel(V.current)}},[n]),s.createElement(dg,{prefixCls:t,popupClassName:te("".concat(t,"-popup"),q({},"".concat(t,"-rtl"),b),c,E),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:z,popupPlacement:L,popupVisible:j,popup:a,popupStyle:l,popupAlign:u&&{offset:u},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:g,forceRender:w,popupMotion:_,fresh:!0},r)}function W7(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,l="inline",c=s.useContext(lo),u=c.prefixCls,d=c.forceSubMenuRender,m=c.motion,g=c.defaultMotions,v=c.mode,h=s.useRef(!1);h.current=v===l;var b=s.useState(!h.current),y=de(b,2),C=y[0],S=y[1],x=h.current?n:!1;s.useEffect(function(){h.current&&S(!1)},[v]);var w=ee({},fT(l,m,g));r.length>1&&(w.motionAppear=!1);var E=w.onVisibleChanged;return w.onVisibleChanged=function(R){return!h.current&&!R&&S(!0),E==null?void 0:E(R)},C?null:s.createElement(Du,{mode:l,locked:!h.current},s.createElement(Sa,Oe({visible:x},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(R){var N=R.className,I=R.style;return s.createElement(gy,{id:t,className:N,style:I},a)}))}var U7=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],q7=["active"],G7=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,l=e.eventKey;e.warnKey;var c=e.disabled,u=e.internalPopupClose,d=e.children,m=e.itemIcon,g=e.expandIcon,v=e.popupClassName,h=e.popupOffset,b=e.popupStyle,y=e.onClick,C=e.onMouseEnter,S=e.onMouseLeave,x=e.onTitleClick,w=e.onTitleMouseEnter,E=e.onTitleMouseLeave,R=Pt(e,U7),N=aT(l),I=s.useContext(lo),M=I.prefixCls,j=I.mode,T=I.openKeys,z=I.disabled,L=I.overflowDisabled,D=I.activeKey,A=I.selectedKeys,_=I.itemIcon,V=I.expandIcon,P=I.onItemClick,B=I.onOpenChange,K=I.onActive,G=s.useContext(dy),Q=G._internalRenderSubMenuItem,k=s.useContext(lT),U=k.isSubPathKey,W=Js(),X="".concat(M,"-submenu"),J=z||c,ne=s.useRef(),se=s.useRef(),re=m??_,oe=g??V,Se=T.includes(l),me=!L&&Se,ie=U(A,l),ge=cT(l,J,w,E),ue=ge.active,ae=Pt(ge,q7),ce=s.useState(!1),ye=de(ce,2),Ce=ye[0],je=ye[1],ze=function(Me){J||je(Me)},ve=function(Me){ze(!0),C==null||C({key:l,domEvent:Me})},Te=function(Me){ze(!1),S==null||S({key:l,domEvent:Me})},Ee=s.useMemo(function(){return ue||(j!=="inline"?Ce||U([D],l):!1)},[j,ue,D,Ce,l,U]),xe=uT(W.length),Ve=function(Me){J||(x==null||x({key:l,domEvent:Me}),j==="inline"&&B(l,!Se))},Xe=du(function(Ge){y==null||y(Cm(Ge)),P(Ge)}),it=function(Me){j!=="inline"&&B(l,Me)},at=function(){K(l)},Ye=N&&"".concat(N,"-popup"),Je=s.useMemo(function(){return s.createElement(dT,{icon:j!=="horizontal"?oe:void 0,props:ee(ee({},e),{},{isOpen:me,isSubMenu:!0})},s.createElement("i",{className:"".concat(X,"-arrow")}))},[j,oe,e,me,X]),_e=s.createElement("div",Oe({role:"menuitem",style:xe,className:"".concat(X,"-title"),tabIndex:J?null:-1,ref:ne,title:typeof a=="string"?a:null,"data-menu-id":L&&N?null:N,"aria-expanded":me,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":J,onClick:Ve,onFocus:at},ae),a,Je),Ie=s.useRef(j);if(j!=="inline"&&W.length>1?Ie.current="vertical":Ie.current=j,!L){var We=Ie.current;_e=s.createElement(K7,{mode:We,prefixCls:X,visible:!u&&me&&j!=="inline",popupClassName:v,popupOffset:h,popupStyle:b,popup:s.createElement(Du,{mode:We==="horizontal"?"vertical":We},s.createElement(gy,{id:Ye,ref:se},d)),disabled:J,onVisibleChange:it},_e)}var Be=s.createElement(So.Item,Oe({ref:t,role:"none"},R,{component:"li",style:n,className:te(X,"".concat(X,"-").concat(j),r,q(q(q(q({},"".concat(X,"-open"),me),"".concat(X,"-active"),Ee),"".concat(X,"-selected"),ie),"".concat(X,"-disabled"),J)),onMouseEnter:ve,onMouseLeave:Te}),_e,!L&&s.createElement(W7,{id:Ye,open:me,keyPath:W},d));return Q&&(Be=Q(Be,e,{selected:ie,active:Ee,open:me,disabled:J})),s.createElement(Du,{onItemClick:Xe,mode:j==="horizontal"?"vertical":j,itemIcon:re,expandIcon:oe},Be)}),hg=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Js(n),l=vy(r,a),c=pg();s.useEffect(function(){if(c)return c.registerPath(n,a),function(){c.unregisterPath(n,a)}},[a]);var u;return c?u=l:u=s.createElement(G7,Oe({ref:t},e),l),s.createElement(iT.Provider,{value:a},u)});function py(e){var t=e.className,n=e.style,r=s.useContext(lo),a=r.prefixCls,l=pg();return l?null:s.createElement("li",{role:"separator",className:te("".concat(a,"-item-divider"),t),style:n})}var X7=["className","title","eventKey","children"],Y7=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,l=Pt(e,X7),c=s.useContext(lo),u=c.prefixCls,d="".concat(u,"-item-group");return s.createElement("li",Oe({ref:t,role:"presentation"},l,{onClick:function(g){return g.stopPropagation()},className:te(d,n)}),s.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),hy=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Js(n),l=vy(r,a),c=pg();return c?l:s.createElement(Y7,Oe({ref:t},_n(e,["warnKey"])),l)}),Q7=["label","children","key","type","extra"];function X0(e,t,n){var r=t.item,a=t.group,l=t.submenu,c=t.divider;return(e||[]).map(function(u,d){if(u&&$t(u)==="object"){var m=u,g=m.label,v=m.children,h=m.key,b=m.type,y=m.extra,C=Pt(m,Q7),S=h??"tmp-".concat(d);return v||b==="group"?b==="group"?s.createElement(a,Oe({key:S},C,{title:g}),X0(v,t,n)):s.createElement(l,Oe({key:S},C,{title:g}),X0(v,t,n)):b==="divider"?s.createElement(c,Oe({key:S},C)):s.createElement(r,Oe({key:S},C,{extra:y}),g,(!!y||y===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},y))}return null}).filter(function(u){return u})}function qw(e,t,n,r,a){var l=e,c=ee({divider:py,item:nd,group:hy,submenu:hg},r);return t&&(l=X0(t,c,a)),vy(l,n)}var Z7=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],sl=[],J7=s.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,l=a===void 0?"rc-menu":a,c=r.rootClassName,u=r.style,d=r.className,m=r.tabIndex,g=m===void 0?0:m,v=r.items,h=r.children,b=r.direction,y=r.id,C=r.mode,S=C===void 0?"vertical":C,x=r.inlineCollapsed,w=r.disabled,E=r.disabledOverflow,R=r.subMenuOpenDelay,N=R===void 0?.1:R,I=r.subMenuCloseDelay,M=I===void 0?.1:I,j=r.forceSubMenuRender,T=r.defaultOpenKeys,z=r.openKeys,L=r.activeKey,D=r.defaultActiveFirst,A=r.selectable,_=A===void 0?!0:A,V=r.multiple,P=V===void 0?!1:V,B=r.defaultSelectedKeys,K=r.selectedKeys,G=r.onSelect,Q=r.onDeselect,k=r.inlineIndent,U=k===void 0?24:k,W=r.motion,X=r.defaultMotions,J=r.triggerSubMenuAction,ne=J===void 0?"hover":J,se=r.builtinPlacements,re=r.itemIcon,oe=r.expandIcon,Se=r.overflowedIndicator,me=Se===void 0?"...":Se,ie=r.overflowedIndicatorPopupClassName,ge=r.getPopupContainer,ue=r.onClick,ae=r.onOpenChange,ce=r.onKeyDown;r.openAnimation,r.openTransitionName;var ye=r._internalRenderMenuItem,Ce=r._internalRenderSubMenuItem,je=r._internalComponents,ze=Pt(r,Z7),ve=s.useMemo(function(){return[qw(h,v,sl,je,l),qw(h,v,sl,{},l)]},[h,v,je]),Te=de(ve,2),Ee=Te[0],xe=Te[1],Ve=s.useState(!1),Xe=de(Ve,2),it=Xe[0],at=Xe[1],Ye=s.useRef(),Je=M7(y),_e=b==="rtl",Ie=Gn(T,{value:z,postState:function(yt){return yt||sl}}),We=de(Ie,2),Be=We[0],Ge=We[1],Me=function(yt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Gt(){Ge(yt),ae==null||ae(yt)}xt?Uo.flushSync(Gt):Gt()},Qe=s.useState(Be),lt=de(Qe,2),mt=lt[0],Dt=lt[1],At=s.useRef(!1),et=s.useMemo(function(){return(S==="inline"||S==="vertical")&&x?["vertical",x]:[S,!1]},[S,x]),ct=de(et,2),gt=ct[0],ot=ct[1],vt=gt==="inline",Mt=s.useState(gt),pe=de(Mt,2),be=pe[0],we=pe[1],Ke=s.useState(ot),ke=de(Ke,2),He=ke[0],Le=ke[1];s.useEffect(function(){we(gt),Le(ot),At.current&&(vt?Ge(mt):Me(sl))},[gt,ot]);var nt=s.useState(0),pt=de(nt,2),ht=pt[0],zt=pt[1],tt=ht>=Ee.length-1||be!=="horizontal"||E;s.useEffect(function(){vt&&Dt(Be)},[Be]),s.useEffect(function(){return At.current=!0,function(){At.current=!1}},[]);var Ze=T7(),Ct=Ze.registerPath,Ft=Ze.unregisterPath,Nt=Ze.refreshOverflowKeys,rn=Ze.isSubPathKey,dn=Ze.getKeyPath,Wt=Ze.getKeys,on=Ze.getSubPathKeys,rt=s.useMemo(function(){return{registerPath:Ct,unregisterPath:Ft}},[Ct,Ft]),dt=s.useMemo(function(){return{isSubPathKey:rn}},[rn]);s.useEffect(function(){Nt(tt?sl:Ee.slice(ht+1).map(function(fn){return fn.key}))},[ht,tt]);var It=Gn(L||D&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:L}),wt=de(It,2),st=wt[0],bt=wt[1],Bt=du(function(fn){bt(fn)}),qt=du(function(){bt(void 0)});s.useImperativeHandle(t,function(){return{list:Ye.current,focus:function(yt){var xt,Gt=Wt(),ln=q0(Gt,Je),yn=ln.elements,En=ln.key2element,Yn=ln.element2key,Jn=fy(Ye.current,yn),dr=st??(Jn[0]?Yn.get(Jn[0]):(xt=Ee.find(function(ia){return!ia.props.disabled}))===null||xt===void 0?void 0:xt.key),Vn=En.get(dr);if(dr&&Vn){var hr;Vn==null||(hr=Vn.focus)===null||hr===void 0||hr.call(Vn,yt)}}}});var ut=Gn(B||[],{value:K,postState:function(yt){return Array.isArray(yt)?yt:yt==null?sl:[yt]}}),Tt=de(ut,2),kt=Tt[0],Dn=Tt[1],or=function(yt){if(_){var xt=yt.key,Gt=kt.includes(xt),ln;P?Gt?ln=kt.filter(function(En){return En!==xt}):ln=[].concat(De(kt),[xt]):ln=[xt],Dn(ln);var yn=ee(ee({},yt),{},{selectedKeys:ln});Gt?Q==null||Q(yn):G==null||G(yn)}!P&&Be.length&&be!=="inline"&&Me(sl)},lr=du(function(fn){ue==null||ue(Cm(fn)),or(fn)}),sr=du(function(fn,yt){var xt=Be.filter(function(ln){return ln!==fn});if(yt)xt.push(fn);else if(be!=="inline"){var Gt=on(fn);xt=xt.filter(function(ln){return!Gt.has(ln)})}Co(Be,xt,!0)||Me(xt,!0)}),Tn=function(yt,xt){var Gt=xt??!Be.includes(yt);sr(yt,Gt)},In=O7(be,st,_e,Je,Ye,Wt,dn,bt,Tn,ce);s.useEffect(function(){at(!0)},[]);var Or=s.useMemo(function(){return{_internalRenderMenuItem:ye,_internalRenderSubMenuItem:Ce}},[ye,Ce]),Fr=be!=="horizontal"||E?Ee:Ee.map(function(fn,yt){return s.createElement(Du,{key:fn.key,overflowDisabled:yt>ht},fn)}),pr=s.createElement(So,Oe({id:y,ref:Ye,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:nd,className:te(l,"".concat(l,"-root"),"".concat(l,"-").concat(be),d,q(q({},"".concat(l,"-inline-collapsed"),He),"".concat(l,"-rtl"),_e),c),dir:b,style:u,role:"menu",tabIndex:g,data:Fr,renderRawItem:function(yt){return yt},renderRawRest:function(yt){var xt=yt.length,Gt=xt?Ee.slice(-xt):null;return s.createElement(hg,{eventKey:G0,title:me,disabled:tt,internalPopupClose:xt===0,popupClassName:ie},Gt)},maxCount:be!=="horizontal"||E?So.INVALIDATE:So.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(yt){zt(yt)},onKeyDown:In},ze));return s.createElement(dy.Provider,{value:Or},s.createElement(nT.Provider,{value:Je},s.createElement(Du,{prefixCls:l,rootClassName:c,mode:be,openKeys:Be,rtl:_e,disabled:w,motion:it?W:null,defaultMotions:it?X:null,activeKey:st,onActive:Bt,onInactive:qt,selectedKeys:kt,inlineIndent:U,subMenuOpenDelay:N,subMenuCloseDelay:M,forceSubMenuRender:j,builtinPlacements:se,triggerSubMenuAction:ne,getPopupContainer:ge,itemIcon:re,expandIcon:oe,onItemClick:lr,onOpenChange:sr},s.createElement(lT.Provider,{value:dt},pr),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(oT.Provider,{value:rt},xe)))))}),ec=J7;ec.Item=nd;ec.SubMenu=hg;ec.ItemGroup=hy;ec.Divider=py;var e9={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"},t9=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:e9}))},n9=s.forwardRef(t9);const mT=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),r9=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,fontSize:m,bodyBg:g,headerBg:v}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:l,padding:c,color:u,lineHeight:Z(l),background:v,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:m,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},gT=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:l,marginXXS:c,colorTextLightSolid:u,colorBgContainer:d}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:a,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:a}},vT=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],pT=nn("Layout",r9,gT,{deprecatedTokens:vT}),a9=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:l,triggerHeight:c,triggerColor:u,triggerBg:d,headerHeight:m,zeroTriggerWidth:g,zeroTriggerHeight:v,borderRadiusLG:h,lightSiderBg:b,lightTriggerColor:y,lightTriggerBg:C,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:u,lineHeight:Z(c),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:v,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Z(h)} ${Z(h)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${Z(h)} 0 0 ${Z(h)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:y,background:C},[`${t}-zero-width-trigger`]:{color:y,background:C,border:`1px solid ${S}`,borderInlineStart:0}}}}},o9=nn(["Layout","Sider"],a9,gT,{deprecatedTokens:vT});var i9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Gw={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},l9=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),bg=s.createContext({}),s9=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),hT=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:l,defaultCollapsed:c=!1,theme:u="dark",style:d={},collapsible:m=!1,reverseArrow:g=!1,width:v=200,collapsedWidth:h=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:C,onBreakpoint:S}=e,x=i9(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=s.useContext(mT),[E,R]=s.useState("collapsed"in e?e.collapsed:c),[N,I]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const M=(re,oe)=>{"collapsed"in e||R(re),C==null||C(re,oe)},{getPrefixCls:j,direction:T}=s.useContext(Ot),z=j("layout-sider",n),[L,D,A]=o9(z),_=s.useRef(null);_.current=re=>{I(re.matches),S==null||S(re.matches),E!==re.matches&&M(re.matches,"responsive")},s.useEffect(()=>{function re(Se){var me;return(me=_.current)===null||me===void 0?void 0:me.call(_,Se)}let oe;return typeof(window==null?void 0:window.matchMedia)<"u"&&y&&y in Gw&&(oe=window.matchMedia(`screen and (max-width: ${Gw[y]})`),kN(oe,re),re(oe)),()=>{VN(oe,re)}},[y]),s.useEffect(()=>{const re=s9("ant-sider-");return w.addSider(re),()=>w.removeSider(re)},[]);const V=()=>{M(!E,"clickTrigger")},P=_n(x,["collapsed"]),B=E?h:v,K=l9(B)?`${B}px`:String(B),G=Number.parseFloat(String(h||0))===0?s.createElement("span",{onClick:V,className:te(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${g?"right":"left"}`),style:b},a||s.createElement(n9,null)):null,Q=T==="rtl"==!g,W={expanded:Q?s.createElement(Vs,null):s.createElement(_u,null),collapsed:Q?s.createElement(_u,null):s.createElement(Vs,null)}[E?"collapsed":"expanded"],X=a!==null?G||s.createElement("div",{className:`${z}-trigger`,onClick:V,style:{width:K}},a||W):null,J=Object.assign(Object.assign({},d),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),ne=te(z,`${z}-${u}`,{[`${z}-collapsed`]:!!E,[`${z}-has-trigger`]:m&&a!==null&&!G,[`${z}-below`]:!!N,[`${z}-zero-width`]:Number.parseFloat(K)===0},r,D,A),se=s.useMemo(()=>({siderCollapsed:E}),[E]);return L(s.createElement(bg.Provider,{value:se},s.createElement("aside",Object.assign({className:ne},P,{style:J,ref:t}),s.createElement("div",{className:`${z}-children`},l),m||N&&G?X:null)))});var c9={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"},u9=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:c9}))},by=s.forwardRef(u9);const xm=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var d9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const bT=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=d9(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=s.useContext(Ot),c=l("menu",t),u=te({[`${c}-item-divider-dashed`]:!!r},n);return s.createElement(py,Object.assign({className:u},a))},yT=e=>{var t;const{className:n,children:r,icon:a,title:l,danger:c,extra:u}=e,{prefixCls:d,firstLevel:m,direction:g,disableMenuItemTitleTooltip:v,inlineCollapsed:h}=s.useContext(xm),b=E=>{const R=r==null?void 0:r[0],N=s.createElement("span",{className:te(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!a||s.isValidElement(r)&&r.type==="span")&&r&&E&&m&&typeof R=="string"?s.createElement("div",{className:`${d}-inline-collapsed-noicon`},R.charAt(0)):N},{siderCollapsed:y}=s.useContext(bg);let C=l;typeof l>"u"?C=m?r:"":l===!1&&(C="");const S={title:C};!y&&!h&&(S.title=null,S.open=!1);const x=Ir(r).length;let w=s.createElement(nd,Object.assign({},_n(e,["title","icon","danger"]),{className:te({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:(a?x+1:x)===1},n),title:typeof l=="string"?l:void 0}),wr(a,{className:te(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),b(h));return v||(w=s.createElement(ja,Object.assign({},S,{placement:g==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var f9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $m=s.createContext(null),ST=s.forwardRef((e,t)=>{const{children:n}=e,r=f9(e,["children"]),a=s.useContext($m),l=s.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=t3(n),u=Yo(t,c?Li(n):null);return s.createElement($m.Provider,{value:l},s.createElement(Ai,{space:!0},c?s.cloneElement(n,{ref:u}):n))}),m9=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:l,lineType:c,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Z(l)} ${c} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
|
|
237
|
+
> ${t}-item-active,
|
|
238
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},g9=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
239
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Z(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Z(t)})`}}}}),Xw=e=>xo(e),Yw=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:u,subMenuItemBg:d,itemSelectedBg:m,activeBarHeight:g,activeBarWidth:v,activeBarBorderWidth:h,motionDurationSlow:b,motionEaseInOut:y,motionEaseOut:C,itemPaddingInline:S,motionDurationMid:x,itemHoverColor:w,lineType:E,colorSplit:R,itemDisabledColor:N,dangerItemColor:I,dangerItemHoverColor:M,dangerItemSelectedColor:j,dangerItemActiveBg:T,dangerItemSelectedBg:z,popupBg:L,itemHoverBg:D,itemActiveBg:A,menuSubMenuBg:_,horizontalItemSelectedColor:V,horizontalItemSelectedBg:P,horizontalItemBorderRadius:B,horizontalItemHoverBg:K}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},Xw(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Xw(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${N} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:M}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:m,[`&${n}-item-danger`]:{backgroundColor:z}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${Z(g)} solid transparent`,transition:`border-color ${b} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:K,"&::after":{borderBottomWidth:g,borderBottomColor:V}},"&-selected":{color:V,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:g,borderBottomColor:V}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Z(h)} ${E} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Z(v)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${C}`,`opacity ${x} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${y}`,`opacity ${x} ${y}`].join(",")}}}}}},Qw=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:l,marginXS:c,itemMarginBlock:u,itemWidth:d,itemPaddingInline:m}=e,g=e.calc(l).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Z(n),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${t}-item,
|
|
240
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Z(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
241
|
+
${t}-submenu-title`]:{paddingInlineEnd:g}}},v9=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:l,controlHeightLG:c,motionEaseOut:u,paddingXL:d,itemMarginInline:m,fontSizeLG:g,motionDurationFast:v,motionDurationSlow:h,paddingXS:b,boxShadowSecondary:y,collapsedWidth:C,collapsedIconSize:S}=e,x={height:r,lineHeight:Z(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Qw(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Qw(e)),{boxShadow:y})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${Z(e.calc(c).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${v} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:x,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:x}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:g,textAlign:"center"}}},[`> ${t}-item,
|
|
242
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
243
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
244
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Z(e.calc(S).div(2).equal())} - ${Z(m)})`,textOverflow:"clip",[`
|
|
245
|
+
${t}-submenu-arrow,
|
|
246
|
+
${t}-submenu-expand-icon
|
|
247
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:Z(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},qo),{paddingInline:b})}}]},Zw=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:l,iconCls:c,iconSize:u,iconMarginInlineEnd:d}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${l}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},jl()),[`&${t}-item-only-child`]:{[`> ${c}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jw=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Z(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Z(c)})`}}}}},p9=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOut:c,paddingXS:u,padding:d,colorSplit:m,lineWidth:g,zIndexPopup:v,borderRadiusLG:h,subMenuItemBorderRadius:b,menuArrowSize:y,menuArrowOffset:C,lineType:S,groupTitleLineHeight:x,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},zi()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),zi()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Z(u)} ${Z(d)}`,fontSize:w,lineHeight:x,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`,`padding ${l} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${c}`,`padding ${a} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:S,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Zw(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Z(e.calc(r).mul(2).equal())} ${Z(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},Zw(e)),Jw(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Jw(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
248
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Z(C)})`},"&::after":{transform:`rotate(45deg) translateX(${Z(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Z(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Z(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Z(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},h9=e=>{var t,n,r;const{colorPrimary:a,colorError:l,colorTextDisabled:c,colorErrorBg:u,colorText:d,colorTextDescription:m,colorBgContainer:g,colorFillAlter:v,colorFillContent:h,lineWidth:b,lineWidthBold:y,controlItemBgActive:C,colorBgTextHover:S,controlHeightLG:x,lineHeight:w,colorBgElevated:E,marginXXS:R,padding:N,fontSize:I,controlHeightSM:M,fontSizeLG:j,colorTextLightSolid:T,colorErrorHover:z}=e,L=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:b,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new un(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:m,groupTitleColor:m,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:g,itemBg:g,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:h,itemActiveBg:C,colorSubItemBg:v,subMenuItemBg:v,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:y,activeBarHeight:y,colorActiveBarBorderSize:b,activeBarBorderWidth:D,colorItemTextDisabled:c,itemDisabledColor:c,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:x,groupTitleLineHeight:w,collapsedWidth:x*2,popupBg:E,itemMarginBlock:R,itemPaddingInline:N,horizontalLineHeight:`${x*1.15}px`,iconSize:I,iconMarginInlineEnd:M-I,collapsedIconSize:j,groupTitleFontSize:I,darkItemDisabledColor:new un(T).setA(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:a,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:T,darkDangerItemHoverColor:z,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:l,itemWidth:L?`calc(100% + ${D}px)`:`calc(100% - ${A*2}px)`}},b9=(e,t=e,n=!0)=>nn("Menu",a=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:m,darkItemBg:g,darkSubMenuItemBg:v,darkItemSelectedColor:h,darkItemSelectedBg:b,darkDangerItemSelectedBg:y,darkItemHoverBg:C,darkGroupTitleColor:S,darkItemHoverColor:x,darkItemDisabledColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:N,popupBg:I,darkPopupBg:M}=a,j=a.calc(u).div(7).mul(5).equal(),T=Qt(a,{menuArrowSize:j,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(j).mul(.25).equal(),menuSubMenuBg:l,calc:a.calc,popupBg:I}),z=Qt(T,{itemColor:d,itemHoverColor:x,groupTitleColor:S,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:g,popupBg:M,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:w,dangerItemColor:m,dangerItemHoverColor:E,dangerItemSelectedColor:R,dangerItemActiveBg:N,dangerItemSelectedBg:y,menuSubMenuBg:v,horizontalItemSelectedColor:h,horizontalItemSelectedBg:b});return[p9(T),m9(T),v9(T),Yw(T,"light"),Yw(z,"dark"),g9(T),Zm(T),Di(T,"slide-up"),Di(T,"slide-down"),Gu(T,"zoom-big")]},h9,{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),CT=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:l}=e,c=s.useContext(xm),{prefixCls:u,inlineCollapsed:d,theme:m}=c,g=Js();let v;if(!r)v=d&&!g.length&&a&&typeof a=="string"?s.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):s.createElement("span",{className:`${u}-title-content`},a);else{const y=s.isValidElement(a)&&a.type==="span";v=s.createElement(s.Fragment,null,wr(r,{className:te(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),y?a:s.createElement("span",{className:`${u}-title-content`},a))}const h=s.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[b]=Ku("Menu");return s.createElement(xm.Provider,{value:h},s.createElement(hg,Object.assign({},_n(e,["icon"]),{title:v,popupClassName:te(u,n,`${u}-${l||m}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))};var y9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fh(e){return e===null||e===!1}const S9={item:yT,submenu:CT,divider:bT},C9=s.forwardRef((e,t)=>{var n;const r=s.useContext($m),a=r||{},{getPrefixCls:l,getPopupContainer:c,direction:u,menu:d}=s.useContext(Ot),m=l(),{prefixCls:g,className:v,style:h,theme:b="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:S,siderCollapsed:x,rootClassName:w,mode:E,selectable:R,onClick:N,overflowedIndicatorPopupClassName:I}=e,M=y9(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=_n(M,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const T=Sn((...U)=>{var W;N==null||N.apply(void 0,U),(W=a.onClick)===null||W===void 0||W.call(a)}),z=a.mode||E,L=R??a.selectable,D=S??x,A={horizontal:{motionName:`${m}-slide-up`},inline:Mu(m),other:{motionName:`${m}-zoom-big`}},_=l("menu",g||a.prefixCls),V=Pr(_),[P,B,K]=b9(_,V,!r),G=te(`${_}-${b}`,d==null?void 0:d.className,v),Q=s.useMemo(()=>{var U,W;if(typeof y=="function"||fh(y))return y||null;if(typeof a.expandIcon=="function"||fh(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||fh(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const X=(U=y??(a==null?void 0:a.expandIcon))!==null&&U!==void 0?U:d==null?void 0:d.expandIcon;return wr(X,{className:te(`${_}-submenu-expand-icon`,s.isValidElement(X)?(W=X.props)===null||W===void 0?void 0:W.className:void 0)})},[y,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,_]),k=s.useMemo(()=>({prefixCls:_,inlineCollapsed:D||!1,direction:u,firstLevel:!0,theme:b,mode:z,disableMenuItemTitleTooltip:C}),[_,D,u,C,b]);return P(s.createElement($m.Provider,{value:null},s.createElement(xm.Provider,{value:k},s.createElement(ec,Object.assign({getPopupContainer:c,overflowedIndicator:s.createElement(by,null),overflowedIndicatorPopupClassName:te(_,`${_}-${b}`,I),mode:z,selectable:L,onClick:T},j,{inlineCollapsed:D,style:Object.assign(Object.assign({},d==null?void 0:d.style),h),className:G,prefixCls:_,direction:u,defaultMotions:A,expandIcon:Q,ref:t,rootClassName:te(w,B,a.rootClassName,K,V),_internalComponents:S9})))))}),Al=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext(bg);return s.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var l;(l=n.current)===null||l===void 0||l.focus(a)}})),s.createElement(C9,Object.assign({ref:n},e,r))});Al.Item=yT;Al.SubMenu=CT;Al.Divider=bT;Al.ItemGroup=hy;const x9=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},$9=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:l,antCls:c,iconCls:u,motionDurationMid:d,paddingBlock:m,fontSize:g,dropdownEdgeChildPadding:v,colorTextDisabled:h,fontSizeIcon:b,controlPaddingHorizontal:y,colorBgElevated:C}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${u}-down, & > ${c}-btn-icon > ${u}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${u}-down`]:{fontSize:b},[`${u}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${u}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
249
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
250
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
|
|
251
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
|
|
252
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
|
|
253
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:kb},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
|
|
254
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
|
|
255
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
|
|
256
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
|
|
257
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
|
|
258
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Kb},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
259
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
260
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Vb},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
261
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
262
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Wb}}},uy(e,C,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},cn(e)),{[n]:Object.assign(Object.assign({padding:v,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Xa(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Z(m)} ${Z(y)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${d}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Z(m)} ${Z(y)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Xa(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Z(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:b,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Z(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:h,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Di(e,"slide-up"),Di(e,"slide-down"),ym(e,"move-up"),ym(e,"move-down"),Gu(e,"zoom-big")]]},w9=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},gg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),cy(e)),E9=nn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,l=Qt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[$9(l),x9(l)]},w9,{resetStyle:!1}),yg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:l,trigger:c,disabled:u,dropdownRender:d,popupRender:m,getPopupContainer:g,overlayClassName:v,rootClassName:h,overlayStyle:b,open:y,onOpenChange:C,visible:S,onVisibleChange:x,mouseEnterDelay:w=.15,mouseLeaveDelay:E=.1,autoAdjustOverflow:R=!0,placement:N="",overlay:I,transitionName:M,destroyOnHidden:j,destroyPopupOnHide:T}=e,{getPopupContainer:z,getPrefixCls:L,direction:D,dropdown:A}=s.useContext(Ot),_=m||d;Oo();const V=s.useMemo(()=>{const ye=L();return M!==void 0?M:N.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[L,N,M]),P=s.useMemo(()=>N?N.includes("Center")?N.slice(0,N.indexOf("Center")):N:D==="rtl"?"bottomRight":"bottomLeft",[N,D]),B=L("dropdown",a),K=Pr(B),[G,Q,k]=E9(B,K),[,U]=jr(),W=s.Children.only(b7(l)?s.createElement("span",null,l):l),X=wr(W,{className:te(`${B}-trigger`,{[`${B}-rtl`]:D==="rtl"},W.props.className),disabled:(t=W.props.disabled)!==null&&t!==void 0?t:u}),J=u?[]:c,ne=!!(J!=null&&J.includes("contextMenu")),[se,re]=Gn(!1,{value:y??S}),oe=Sn(ye=>{C==null||C(ye,{source:"trigger"}),x==null||x(ye),re(ye)}),Se=te(v,h,Q,k,K,A==null?void 0:A.className,{[`${B}-rtl`]:D==="rtl"}),me=UN({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:R,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),ie=Sn(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(C==null||C(!1,{source:"menu"}),re(!1))}),ge=()=>{let ye;return n!=null&&n.items?ye=s.createElement(Al,Object.assign({},n)):typeof I=="function"?ye=I():ye=I,_&&(ye=_(ye)),ye=s.Children.only(typeof ye=="string"?s.createElement("span",null,ye):ye),s.createElement(ST,{prefixCls:`${B}-menu`,rootClassName:te(k,K),expandIcon:s.createElement("span",{className:`${B}-menu-submenu-arrow`},D==="rtl"?s.createElement(_u,{className:`${B}-menu-submenu-arrow-icon`}):s.createElement(Vs,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ie,validator:({mode:Ce})=>{}},ye)},[ue,ae]=Ku("Dropdown",b==null?void 0:b.zIndex);let ce=s.createElement(tT,Object.assign({alignPoint:ne},_n(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:E,visible:se,builtinPlacements:me,arrow:!!r,overlayClassName:Se,prefixCls:B,getPopupContainer:g||z,transitionName:V,trigger:J,overlay:ge,placement:P,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),b),{zIndex:ue}),autoDestroy:j??T}),X);return ue&&(ce=s.createElement(Gm.Provider,{value:ae},ce)),G(ce)},O9=CN(yg,"align",void 0,"dropdown",e=>e),R9=e=>s.createElement(O9,Object.assign({},e),s.createElement("span",null));yg._InternalPanelDoNotUseOrYouWillBeFired=R9;const xT=s.createContext(null),N9=xT.Provider,$T=s.createContext(null),T9=$T.Provider;var I9=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],wT=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,l=e.style,c=e.checked,u=e.disabled,d=e.defaultChecked,m=d===void 0?!1:d,g=e.type,v=g===void 0?"checkbox":g,h=e.title,b=e.onChange,y=Pt(e,I9),C=s.useRef(null),S=s.useRef(null),x=Gn(m,{value:c}),w=de(x,2),E=w[0],R=w[1];s.useImperativeHandle(t,function(){return{focus:function(j){var T;(T=C.current)===null||T===void 0||T.focus(j)},blur:function(){var j;(j=C.current)===null||j===void 0||j.blur()},input:C.current,nativeElement:S.current}});var N=te(r,a,q(q({},"".concat(r,"-checked"),E),"".concat(r,"-disabled"),u)),I=function(j){u||("checked"in e||R(j.target.checked),b==null||b({target:ee(ee({},e),{},{type:v,checked:j.target.checked}),stopPropagation:function(){j.stopPropagation()},preventDefault:function(){j.preventDefault()},nativeEvent:j.nativeEvent}))};return s.createElement("span",{className:N,title:h,style:l,ref:S},s.createElement("input",Oe({},y,{className:"".concat(r,"-input"),ref:C,onChange:I,disabled:u,checked:!!E,type:v})),s.createElement("span",{className:"".concat(r,"-inner")}))});function ET(e){const t=le.useRef(null),n=()=>{tn.cancel(t.current),t.current=null};return[()=>{n(),t.current=tn(()=>{t.current=null})},l=>{t.current&&(l.stopPropagation(),n()),e==null||e(l)}]}const M9=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},cn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},j9=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:l,motionDurationMid:c,motionEaseInOutCirc:u,colorBgContainer:d,colorBorder:m,lineWidth:g,colorBgContainerDisabled:v,colorTextDisabled:h,paddingXS:b,dotColorDisabled:y,lineType:C,radioColor:S,radioBgColor:x,calc:w}=e,E=`${t}-inner`,N=w(a).sub(w(4).mul(2)),I=w(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},cn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Z(g)} ${C} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},cn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
263
|
+
&:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:xo(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:I,height:I,marginBlockStart:w(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:S,borderBlockStart:0,borderInlineStart:0,borderRadius:I,transform:"scale(0)",opacity:0,transition:`all ${l} ${u}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:I,height:I,backgroundColor:d,borderColor:m,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:x,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${l} ${u}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:v,borderColor:m,cursor:"not-allowed","&::after":{backgroundColor:y}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${w(N).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},P9=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:l,colorBorder:c,motionDurationMid:u,buttonPaddingInline:d,fontSize:m,buttonBg:g,fontSizeLG:v,controlHeightLG:h,controlHeightSM:b,paddingXS:y,borderRadius:C,borderRadiusSM:S,borderRadiusLG:x,buttonCheckedBg:w,buttonSolidCheckedColor:E,colorTextDisabled:R,colorBgContainerDisabled:N,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:M,colorPrimary:j,colorPrimaryHover:T,colorPrimaryActive:z,buttonSolidCheckedBg:L,buttonSolidCheckedHoverBg:D,buttonSolidCheckedActiveBg:A,calc:_}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:m,lineHeight:Z(_(n).sub(_(a).mul(2)).equal()),background:g,border:`${Z(a)} ${l} ${c}`,borderBlockStartWidth:_(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${u}`,`background ${u}`,`box-shadow ${u}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:_(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Z(a)} ${l} ${c}`,borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C},"&:first-child:last-child":{borderRadius:C},[`${r}-group-large &`]:{height:h,fontSize:v,lineHeight:Z(_(h).sub(_(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:b,paddingInline:_(y).sub(a).equal(),paddingBlock:0,lineHeight:Z(_(b).sub(_(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:j},"&:has(:focus-visible)":xo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:j,background:w,borderColor:j,"&::before":{backgroundColor:j},"&:first-child":{borderColor:j},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:z,borderColor:z,"&::before":{backgroundColor:z}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:L,borderColor:L,"&:hover":{color:E,background:D,borderColor:D},"&:active":{color:E,background:A,borderColor:A}},"&-disabled":{color:R,backgroundColor:N,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:N,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:M,backgroundColor:I,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},z9=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:l,colorText:c,colorBgContainer:u,colorTextDisabled:d,controlItemBgActiveDisabled:m,colorTextLightSolid:g,colorPrimary:v,colorPrimaryHover:h,colorPrimaryActive:b,colorWhite:y}=e,C=4,S=l,x=t?S-C*2:S-(C+a)*2;return{radioSize:S,dotSize:x,dotColorDisabled:d,buttonSolidCheckedColor:g,buttonSolidCheckedBg:v,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:b,buttonBg:u,buttonCheckedBg:u,buttonColor:c,buttonCheckedBgDisabled:m,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?v:y,radioBgColor:t?u:v}},OT=nn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Z(n)} ${t}`,l=Qt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[M9(l),j9(l),P9(l)]},z9,{unitless:{radioSize:!0,dotSize:!0}});var _9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const D9=(e,t)=>{var n,r;const a=s.useContext(xT),l=s.useContext($T),{getPrefixCls:c,direction:u,radio:d}=s.useContext(Ot),m=s.useRef(null),g=Lr(t,m),{isFormItemInput:v}=s.useContext(Qr),h=P=>{var B,K;(B=e.onChange)===null||B===void 0||B.call(e,P),(K=a==null?void 0:a.onChange)===null||K===void 0||K.call(a,P)},{prefixCls:b,className:y,rootClassName:C,children:S,style:x,title:w}=e,E=_9(e,["prefixCls","className","rootClassName","children","style","title"]),R=c("radio",b),N=((a==null?void 0:a.optionType)||l)==="button",I=N?`${R}-button`:R,M=Pr(R),[j,T,z]=OT(R,M),L=Object.assign({},E),D=s.useContext(ba);a&&(L.name=a.name,L.onChange=h,L.checked=e.value===a.value,L.disabled=(n=L.disabled)!==null&&n!==void 0?n:a.disabled),L.disabled=(r=L.disabled)!==null&&r!==void 0?r:D;const A=te(`${I}-wrapper`,{[`${I}-wrapper-checked`]:L.checked,[`${I}-wrapper-disabled`]:L.disabled,[`${I}-wrapper-rtl`]:u==="rtl",[`${I}-wrapper-in-form-item`]:v,[`${I}-wrapper-block`]:!!(a!=null&&a.block)},d==null?void 0:d.className,y,C,T,z,M),[_,V]=ET(L.onClick);return j(s.createElement(qu,{component:"Radio",disabled:L.disabled},s.createElement("label",{className:A,style:Object.assign(Object.assign({},d==null?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:_},s.createElement(wT,Object.assign({},L,{className:te(L.className,{[Ym]:!N}),type:"radio",prefixCls:I,ref:g,onClick:V})),S!==void 0?s.createElement("span",{className:`${I}-label`},S):null)))},wm=s.forwardRef(D9),A9=["parentNode"],B9="form_item";function vu(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function RT(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:A9.includes(n)?`${B9}_${n}`:n}function NT(e,t,n,r,a,l){let c=r;return l!==void 0?c=l:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||a&&n.validated)&&(c="success"),c}var L9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Y0(e){return vu(e).join("_")}function eE(e,t){const n=t.getFieldInstance(e),r=Fu(n);if(r)return r;const a=RT(vu(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function TT(e){const[t]=Jb(),n=s.useRef({}),r=s.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>l=>{const c=Y0(a);l?n.current[c]=l:delete n.current[c]}},scrollToField:(a,l={})=>{const{focus:c}=l,u=L9(l,["focus"]),d=eE(a,r);d&&(kz(d,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),c&&r.focusField(a))},focusField:a=>{var l,c;const u=r.getFieldInstance(a);typeof(u==null?void 0:u.focus)=="function"?u.focus():(c=(l=eE(a,r))===null||l===void 0?void 0:l.focus)===null||c===void 0||c.call(l)},getFieldInstance:a=>{const l=Y0(a);return n.current[l]}}),[e,t]);return[r]}const H9=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ot),{name:a}=s.useContext(Qr),l=ig(Y0(a)),{prefixCls:c,className:u,rootClassName:d,options:m,buttonStyle:g="outline",disabled:v,children:h,size:b,style:y,id:C,optionType:S,name:x=l,defaultValue:w,value:E,block:R=!1,onChange:N,onMouseEnter:I,onMouseLeave:M,onFocus:j,onBlur:T}=e,[z,L]=Gn(w,{value:E}),D=s.useCallback(W=>{const X=z,J=W.target.value;"value"in e||L(J),J!==X&&(N==null||N(W))},[z,L,N]),A=n("radio",c),_=`${A}-group`,V=Pr(A),[P,B,K]=OT(A,V);let G=h;m&&m.length>0&&(G=m.map(W=>typeof W=="string"||typeof W=="number"?s.createElement(wm,{key:W.toString(),prefixCls:A,disabled:v,value:W,checked:z===W},W):s.createElement(wm,{key:`radio-group-value-options-${W.value}`,prefixCls:A,disabled:W.disabled||v,value:W.value,checked:z===W.value,title:W.title,style:W.style,className:W.className,id:W.id,required:W.required},W.label)));const Q=Hr(b),k=te(_,`${_}-${g}`,{[`${_}-${Q}`]:Q,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:R},u,d,B,K,V),U=s.useMemo(()=>({onChange:D,value:z,disabled:v,name:x,optionType:S,block:R}),[D,z,v,x,S,R]);return P(s.createElement("div",Object.assign({},Ar(e,{aria:!0,data:!0}),{className:k,style:y,onMouseEnter:I,onMouseLeave:M,onFocus:j,onBlur:T,id:C,ref:t}),s.createElement(N9,{value:U},G)))}),F9=s.memo(H9);var k9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const V9=(e,t)=>{const{getPrefixCls:n}=s.useContext(Ot),{prefixCls:r}=e,a=k9(e,["prefixCls"]),l=n("radio",r);return s.createElement(T9,{value:"button"},s.createElement(wm,Object.assign({prefixCls:l},a,{type:"radio",ref:t})))},K9=s.forwardRef(V9),rd=wm;rd.Button=K9;rd.Group=F9;rd.__ANT_RADIO=!0;function tc(e){return Qt(e,{inputAffixPadding:e.paddingXXS})}const nc=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:l,controlHeightLG:c,fontSizeLG:u,lineHeightLG:d,paddingSM:m,controlPaddingHorizontalSM:g,controlPaddingHorizontal:v,colorFillAlter:h,colorPrimaryHover:b,colorPrimary:y,controlOutlineWidth:C,controlOutline:S,colorErrorOutline:x,colorWarningOutline:w,colorBgContainer:E,inputFontSize:R,inputFontSizeLG:N,inputFontSizeSM:I}=e,M=R||n,j=I||M,T=N||u,z=Math.round((t-M*r)/2*10)/10-a,L=Math.round((l-j*r)/2*10)/10-a,D=Math.ceil((c-T*d)/2*10)/10-a;return{paddingBlock:Math.max(z,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(D,0),paddingInline:m-a,paddingInlineSM:g-a,paddingInlineLG:v-a,addonBg:h,activeBorderColor:y,hoverBorderColor:b,activeShadow:`0 0 0 ${C}px ${S}`,errorActiveShadow:`0 0 0 ${C}px ${x}`,warningActiveShadow:`0 0 0 ${C}px ${w}`,hoverBg:E,activeBg:E,inputFontSize:M,inputFontSizeLG:T,inputFontSizeSM:j}},W9=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Sg=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},W9(Qt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),yy=(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}}),tE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),IT=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sg(e))}),tE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),MT=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Sg(e))}})}),jT=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},PT=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},rE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},PT(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),zT=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sg(e))}),rE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),aE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),_T=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},aE(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),aE(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:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),DT=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(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}}),oE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},DT(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`}}),AT=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},DT(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"}}),oE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),oE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),BT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),LT=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${Z(t)} ${Z(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Sy=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ad=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},BT(e.colorTextPlaceholder)),{"&-lg":Object.assign({},LT(e)),"&-sm":Object.assign({},Sy(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),HT=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},LT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Sy(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},zi()),{[`${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},[`
|
|
264
|
+
& > ${t}-affix-wrapper,
|
|
265
|
+
& > ${t}-number-affix-wrapper,
|
|
266
|
+
& > ${n}-picker-range
|
|
267
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
268
|
+
& > ${n}-select-auto-complete ${t},
|
|
269
|
+
& > ${n}-cascader-picker ${t},
|
|
270
|
+
& > ${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,
|
|
271
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
272
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
273
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
274
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
275
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
276
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},U9=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),ad(e)),IT(e)),zT(e)),jT(e)),AT(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:c,paddingBottom:c}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},q9=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Z(e.inputAffixPadding)}`}}}},G9=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:l,colorIconHover:c,iconCls:u}=e,d=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},ad(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),q9(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},X9=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},cn(e)),HT(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},MT(e)),_T(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}}})})}},Y9=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
277
|
+
> ${t},
|
|
278
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Q9=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},FT=nn(["Input","Shared"],e=>{const t=Qt(e,tc(e));return[U9(t),G9(t)]},nc,{resetFont:!1}),kT=nn(["Input","Component"],e=>{const t=Qt(e,tc(e));return[X9(t),Y9(t),Q9(t),Xu(t)]},nc,{resetFont:!1});var Z9={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"},J9=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:Z9}))},pl=s.forwardRef(J9);const Cg=s.createContext(null);var eF=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,l=t.indicator,c=l===void 0?{}:l,u=c.size,d=c.align,m=d===void 0?"center":d,g=s.useState(),v=de(g,2),h=v[0],b=v[1],y=s.useRef(),C=le.useCallback(function(x){return typeof u=="function"?u(x):typeof u=="number"?u:x},[u]);function S(){tn.cancel(y.current)}return s.useEffect(function(){var x={};if(n)if(r){x.width=C(n.width);var w=a?"right":"left";m==="start"&&(x[w]=n[w]),m==="center"&&(x[w]=n[w]+n.width/2,x.transform=a?"translateX(50%)":"translateX(-50%)"),m==="end"&&(x[w]=n[w]+n.width,x.transform="translateX(-100%)")}else x.height=C(n.height),m==="start"&&(x.top=n.top),m==="center"&&(x.top=n.top+n.height/2,x.transform="translateY(-50%)"),m==="end"&&(x.top=n.top+n.height,x.transform="translateY(-100%)");return S(),y.current=tn(function(){var E=h&&x&&Object.keys(x).every(function(R){var N=x[R],I=h[R];return typeof N=="number"&&typeof I=="number"?Math.round(N)===Math.round(I):N===I});E||b(x)}),S},[JSON.stringify(n),r,a,m,C]),{style:h}},iE={width:0,height:0,left:0,top:0};function tF(e,t,n){return s.useMemo(function(){for(var r,a=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||iE,c=l.left+l.width,u=0;u<e.length;u+=1){var d=e[u].key,m=t.get(d);if(!m){var g;m=t.get((g=e[u-1])===null||g===void 0?void 0:g.key)||iE}var v=a.get(d)||ee({},m);v.right=c-v.left-v.width,a.set(d,v)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function lE(e,t){var n=s.useRef(e),r=s.useState({}),a=de(r,2),l=a[1];function c(u){var d=typeof u=="function"?u(n.current):u;d!==n.current&&t(d,n.current),n.current=d,l({})}return[n.current,c]}var nF=.1,sE=.01,Zf=20,cE=Math.pow(.995,Zf);function rF(e,t){var n=s.useState(),r=de(n,2),a=r[0],l=r[1],c=s.useState(0),u=de(c,2),d=u[0],m=u[1],g=s.useState(0),v=de(g,2),h=v[0],b=v[1],y=s.useState(),C=de(y,2),S=C[0],x=C[1],w=s.useRef();function E(T){var z=T.touches[0],L=z.screenX,D=z.screenY;l({x:L,y:D}),window.clearInterval(w.current)}function R(T){if(a){var z=T.touches[0],L=z.screenX,D=z.screenY;l({x:L,y:D});var A=L-a.x,_=D-a.y;t(A,_);var V=Date.now();m(V),b(V-d),x({x:A,y:_})}}function N(){if(a&&(l(null),x(null),S)){var T=S.x/h,z=S.y/h,L=Math.abs(T),D=Math.abs(z);if(Math.max(L,D)<nF)return;var A=T,_=z;w.current=window.setInterval(function(){if(Math.abs(A)<sE&&Math.abs(_)<sE){window.clearInterval(w.current);return}A*=cE,_*=cE,t(A*Zf,_*Zf)},Zf)}}var I=s.useRef();function M(T){var z=T.deltaX,L=T.deltaY,D=0,A=Math.abs(z),_=Math.abs(L);A===_?D=I.current==="x"?z:L:A>_?(D=z,I.current="x"):(D=L,I.current="y"),t(-D,-D)&&T.preventDefault()}var j=s.useRef(null);j.current={onTouchStart:E,onTouchMove:R,onTouchEnd:N,onWheel:M},s.useEffect(function(){function T(A){j.current.onTouchStart(A)}function z(A){j.current.onTouchMove(A)}function L(A){j.current.onTouchEnd(A)}function D(A){j.current.onWheel(A)}return document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",D,{passive:!1}),function(){document.removeEventListener("touchmove",z),document.removeEventListener("touchend",L)}},[])}function VT(e){var t=s.useState(0),n=de(t,2),r=n[0],a=n[1],l=s.useRef(0),c=s.useRef();return c.current=e,js(function(){var u;(u=c.current)===null||u===void 0||u.call(c)},[r]),function(){l.current===r&&(l.current+=1,a(l.current))}}function aF(e){var t=s.useRef([]),n=s.useState({}),r=de(n,2),a=r[1],l=s.useRef(typeof e=="function"?e():e),c=VT(function(){var d=l.current;t.current.forEach(function(m){d=m(d)}),t.current=[],l.current=d,a({})});function u(d){t.current.push(d),c()}return[l.current,u]}var uE={width:0,height:0,left:0,top:0,right:0};function oF(e,t,n,r,a,l,c){var u=c.tabs,d=c.tabPosition,m=c.rtl,g,v,h;return["top","bottom"].includes(d)?(g="width",v=m?"right":"left",h=Math.abs(n)):(g="height",v="top",h=-n),s.useMemo(function(){if(!u.length)return[0,0];for(var b=u.length,y=b,C=0;C<b;C+=1){var S=e.get(u[C].key)||uE;if(Math.floor(S[v]+S[g])>Math.floor(h+t)){y=C-1;break}}for(var x=0,w=b-1;w>=0;w-=1){var E=e.get(u[w].key)||uE;if(E[v]<h){x=w+1;break}}return x>y?[0,-1]:[x,y]},[e,t,r,a,l,h,d,u.map(function(b){return b.key}).join("_"),m])}function dE(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var iF="TABS_DQ";function KT(e){return String(e).replace(/"/g,iF)}function Cy(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var WT=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,l=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),fE=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var l,c={};return $t(a)==="object"&&!s.isValidElement(a)?c=a:c.right=a,n==="right"&&(l=c.right),n==="left"&&(l=c.left),l?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),lF=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,l=e.locale,c=e.mobile,u=e.more,d=u===void 0?{}:u,m=e.style,g=e.className,v=e.editable,h=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,C=e.onTabClick,S=e.getPopupContainer,x=e.popupClassName,w=s.useState(!1),E=de(w,2),R=E[0],N=E[1],I=s.useState(null),M=de(I,2),j=M[0],T=M[1],z=d.icon,L=z===void 0?"More":z,D="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),_=j!==null?"".concat(D,"-").concat(j):null,V=l==null?void 0:l.dropdownAriaLabel;function P(W,X){W.preventDefault(),W.stopPropagation(),v.onEdit("remove",{key:X,event:W})}var B=s.createElement(ec,{onClick:function(X){var J=X.key,ne=X.domEvent;C(J,ne),N(!1)},prefixCls:"".concat(A,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[j],"aria-label":V!==void 0?V:"expanded dropdown"},a.map(function(W){var X=W.closable,J=W.disabled,ne=W.closeIcon,se=W.key,re=W.label,oe=Cy(X,ne,v,J);return s.createElement(nd,{key:se,id:"".concat(D,"-").concat(se),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(se),disabled:J},s.createElement("span",null,re),oe&&s.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(me){me.stopPropagation(),P(me,se)}},ne||v.removeIcon||"×"))}));function K(W){for(var X=a.filter(function(oe){return!oe.disabled}),J=X.findIndex(function(oe){return oe.key===j})||0,ne=X.length,se=0;se<ne;se+=1){J=(J+W+ne)%ne;var re=X[J];if(!re.disabled){T(re.key);return}}}function G(W){var X=W.which;if(!R){[ft.DOWN,ft.SPACE,ft.ENTER].includes(X)&&(N(!0),W.preventDefault());return}switch(X){case ft.UP:K(-1),W.preventDefault();break;case ft.DOWN:K(1),W.preventDefault();break;case ft.ESC:N(!1);break;case ft.SPACE:case ft.ENTER:j!==null&&C(j,W);break}}s.useEffect(function(){var W=document.getElementById(_);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[j]),s.useEffect(function(){R||T(null)},[R]);var Q=q({},b?"marginRight":"marginLeft",h);a.length||(Q.visibility="hidden",Q.order=1);var k=te(q({},"".concat(A,"-rtl"),b)),U=c?null:s.createElement(tT,Oe({prefixCls:A,overlay:B,visible:a.length?R:!1,onVisibleChange:N,overlayClassName:te(k,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},d),s.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:Q,"aria-haspopup":"listbox","aria-controls":D,id:"".concat(r,"-more"),"aria-expanded":R,onKeyDown:G},L));return s.createElement("div",{className:te("".concat(n,"-nav-operations"),g),style:m,ref:t},U,s.createElement(WT,{prefixCls:n,locale:l,editable:v}))});const sF=s.memo(lF,function(e,t){return t.tabMoving});var cF=function(t){var n=t.prefixCls,r=t.id,a=t.active,l=t.focus,c=t.tab,u=c.key,d=c.label,m=c.disabled,g=c.closeIcon,v=c.icon,h=t.closable,b=t.renderWrapper,y=t.removeAriaLabel,C=t.editable,S=t.onClick,x=t.onFocus,w=t.onBlur,E=t.onKeyDown,R=t.onMouseDown,N=t.onMouseUp,I=t.style,M=t.tabCount,j=t.currentPosition,T="".concat(n,"-tab"),z=Cy(h,g,C,m);function L(P){m||S(P)}function D(P){P.preventDefault(),P.stopPropagation(),C.onEdit("remove",{key:u,event:P})}var A=s.useMemo(function(){return v&&typeof d=="string"?s.createElement("span",null,d):d},[d,v]),_=s.useRef(null);s.useEffect(function(){l&&_.current&&_.current.focus()},[l]);var V=s.createElement("div",{key:u,"data-node-key":KT(u),className:te(T,q(q(q(q({},"".concat(T,"-with-remove"),z),"".concat(T,"-active"),a),"".concat(T,"-disabled"),m),"".concat(T,"-focus"),l)),style:I,onClick:L},s.createElement("div",{ref:_,role:"tab","aria-selected":a,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(T,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":m,tabIndex:m?null:a?0:-1,onClick:function(B){B.stopPropagation(),L(B)},onKeyDown:E,onMouseDown:R,onMouseUp:N,onFocus:x,onBlur:w},l&&s.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(j," of ").concat(M)),v&&s.createElement("span",{className:"".concat(T,"-icon")},v),d&&A),z&&s.createElement("button",{type:"button",role:"tab","aria-label":y||"remove",tabIndex:a?0:-1,className:"".concat(T,"-remove"),onClick:function(B){B.stopPropagation(),D(B)}},g||C.removeIcon||"×"));return b?b(V):V},uF=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,u=t.getBoundingClientRect(),d=u.width,m=u.height,g=u.left,v=u.top;return Math.abs(d-r)<1?[d,m,g-n.left,v-n.top]:[r,a,c,l]},ws=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,l=n.offsetHeight,c=l===void 0?0:l;if(t.current){var u=t.current.getBoundingClientRect(),d=u.width,m=u.height;if(Math.abs(d-a)<1)return[d,m]}return[a,c]},Tf=function(t,n){return t[n?0:1]},mE=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,l=e.animated,c=e.activeKey,u=e.rtl,d=e.extra,m=e.editable,g=e.locale,v=e.tabPosition,h=e.tabBarGutter,b=e.children,y=e.onTabClick,C=e.onTabScroll,S=e.indicator,x=s.useContext(Cg),w=x.prefixCls,E=x.tabs,R=s.useRef(null),N=s.useRef(null),I=s.useRef(null),M=s.useRef(null),j=s.useRef(null),T=s.useRef(null),z=s.useRef(null),L=v==="top"||v==="bottom",D=lE(0,function(st,bt){L&&C&&C({direction:st>bt?"left":"right"})}),A=de(D,2),_=A[0],V=A[1],P=lE(0,function(st,bt){!L&&C&&C({direction:st>bt?"top":"bottom"})}),B=de(P,2),K=B[0],G=B[1],Q=s.useState([0,0]),k=de(Q,2),U=k[0],W=k[1],X=s.useState([0,0]),J=de(X,2),ne=J[0],se=J[1],re=s.useState([0,0]),oe=de(re,2),Se=oe[0],me=oe[1],ie=s.useState([0,0]),ge=de(ie,2),ue=ge[0],ae=ge[1],ce=aF(new Map),ye=de(ce,2),Ce=ye[0],je=ye[1],ze=tF(E,Ce,ne[0]),ve=Tf(U,L),Te=Tf(ne,L),Ee=Tf(Se,L),xe=Tf(ue,L),Ve=Math.floor(ve)<Math.floor(Te+Ee),Xe=Ve?ve-xe:ve-Ee,it="".concat(w,"-nav-operations-hidden"),at=0,Ye=0;L&&u?(at=0,Ye=Math.max(0,Te-Xe)):(at=Math.min(0,Xe-Te),Ye=0);function Je(st){return st<at?at:st>Ye?Ye:st}var _e=s.useRef(null),Ie=s.useState(),We=de(Ie,2),Be=We[0],Ge=We[1];function Me(){Ge(Date.now())}function Qe(){_e.current&&clearTimeout(_e.current)}rF(M,function(st,bt){function Bt(qt,ut){qt(function(Tt){var kt=Je(Tt+ut);return kt})}return Ve?(L?Bt(V,st):Bt(G,bt),Qe(),Me(),!0):!1}),s.useEffect(function(){return Qe(),Be&&(_e.current=setTimeout(function(){Ge(0)},100)),Qe},[Be]);var lt=oF(ze,Xe,L?_:K,Te,Ee,xe,ee(ee({},e),{},{tabs:E})),mt=de(lt,2),Dt=mt[0],At=mt[1],et=Sn(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,bt=ze.get(st)||{width:0,height:0,left:0,right:0,top:0};if(L){var Bt=_;u?bt.right<_?Bt=bt.right:bt.right+bt.width>_+Xe&&(Bt=bt.right+bt.width-Xe):bt.left<-_?Bt=-bt.left:bt.left+bt.width>-_+Xe&&(Bt=-(bt.left+bt.width-Xe)),G(0),V(Je(Bt))}else{var qt=K;bt.top<-K?qt=-bt.top:bt.top+bt.height>-K+Xe&&(qt=-(bt.top+bt.height-Xe)),V(0),G(Je(qt))}}),ct=s.useState(),gt=de(ct,2),ot=gt[0],vt=gt[1],Mt=s.useState(!1),pe=de(Mt,2),be=pe[0],we=pe[1],Ke=E.filter(function(st){return!st.disabled}).map(function(st){return st.key}),ke=function(bt){var Bt=Ke.indexOf(ot||c),qt=Ke.length,ut=(Bt+bt+qt)%qt,Tt=Ke[ut];vt(Tt)},He=function(bt,Bt){var qt=Ke.indexOf(bt),ut=E.find(function(kt){return kt.key===bt}),Tt=Cy(ut==null?void 0:ut.closable,ut==null?void 0:ut.closeIcon,m,ut==null?void 0:ut.disabled);Tt&&(Bt.preventDefault(),Bt.stopPropagation(),m.onEdit("remove",{key:bt,event:Bt}),qt===Ke.length-1?ke(-1):ke(1))},Le=function(bt,Bt){we(!0),Bt.button===1&&He(bt,Bt)},nt=function(bt){var Bt=bt.code,qt=u&&L,ut=Ke[0],Tt=Ke[Ke.length-1];switch(Bt){case"ArrowLeft":{L&&ke(qt?1:-1);break}case"ArrowRight":{L&&ke(qt?-1:1);break}case"ArrowUp":{bt.preventDefault(),L||ke(-1);break}case"ArrowDown":{bt.preventDefault(),L||ke(1);break}case"Home":{bt.preventDefault(),vt(ut);break}case"End":{bt.preventDefault(),vt(Tt);break}case"Enter":case"Space":{bt.preventDefault(),y(ot??c,bt);break}case"Backspace":case"Delete":{He(ot,bt);break}}},pt={};L?pt[u?"marginRight":"marginLeft"]=h:pt.marginTop=h;var ht=E.map(function(st,bt){var Bt=st.key;return s.createElement(cF,{id:a,prefixCls:w,key:Bt,tab:st,style:bt===0?void 0:pt,closable:st.closable,editable:m,active:Bt===c,focus:Bt===ot,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,tabCount:Ke.length,currentPosition:bt+1,onClick:function(ut){y(Bt,ut)},onKeyDown:nt,onFocus:function(){be||vt(Bt),et(Bt),Me(),M.current&&(u||(M.current.scrollLeft=0),M.current.scrollTop=0)},onBlur:function(){vt(void 0)},onMouseDown:function(ut){return Le(Bt,ut)},onMouseUp:function(){we(!1)}})}),zt=function(){return je(function(){var bt,Bt=new Map,qt=(bt=j.current)===null||bt===void 0?void 0:bt.getBoundingClientRect();return E.forEach(function(ut){var Tt,kt=ut.key,Dn=(Tt=j.current)===null||Tt===void 0?void 0:Tt.querySelector('[data-node-key="'.concat(KT(kt),'"]'));if(Dn){var or=uF(Dn,qt),lr=de(or,4),sr=lr[0],Tn=lr[1],In=lr[2],Or=lr[3];Bt.set(kt,{width:sr,height:Tn,left:In,top:Or})}}),Bt})};s.useEffect(function(){zt()},[E.map(function(st){return st.key}).join("_")]);var tt=VT(function(){var st=ws(R),bt=ws(N),Bt=ws(I);W([st[0]-bt[0]-Bt[0],st[1]-bt[1]-Bt[1]]);var qt=ws(z);me(qt);var ut=ws(T);ae(ut);var Tt=ws(j);se([Tt[0]-qt[0],Tt[1]-qt[1]]),zt()}),Ze=E.slice(0,Dt),Ct=E.slice(At+1),Ft=[].concat(De(Ze),De(Ct)),Nt=ze.get(c),rn=eF({activeTabOffset:Nt,horizontal:L,indicator:S,rtl:u}),dn=rn.style;s.useEffect(function(){et()},[c,at,Ye,dE(Nt),dE(ze),L]),s.useEffect(function(){tt()},[u]);var Wt=!!Ft.length,on="".concat(w,"-nav-wrap"),rt,dt,It,wt;return L?u?(dt=_>0,rt=_!==Ye):(rt=_<0,dt=_!==at):(It=K<0,wt=K!==at),s.createElement(ca,{onResize:tt},s.createElement("div",{ref:Yo(t,R),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:te("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Me()}},s.createElement(fE,{ref:N,position:"left",extra:d,prefixCls:w}),s.createElement(ca,{onResize:tt},s.createElement("div",{className:te(on,q(q(q(q({},"".concat(on,"-ping-left"),rt),"".concat(on,"-ping-right"),dt),"".concat(on,"-ping-top"),It),"".concat(on,"-ping-bottom"),wt)),ref:M},s.createElement(ca,{onResize:tt},s.createElement("div",{ref:j,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(K,"px)"),transition:Be?"none":void 0}},ht,s.createElement(WT,{ref:z,prefixCls:w,locale:g,editable:m,style:ee(ee({},ht.length===0?void 0:pt),{},{visibility:Wt?"hidden":null})}),s.createElement("div",{className:te("".concat(w,"-ink-bar"),q({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:dn}))))),s.createElement(sF,Oe({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:T,prefixCls:w,tabs:Ft,className:!Wt&&it,tabMoving:!!Be})),s.createElement(fE,{ref:I,position:"right",extra:d,prefixCls:w})))}),UT=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.id,c=e.active,u=e.tabKey,d=e.children;return s.createElement("div",{id:l&&"".concat(l,"-panel-").concat(u),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(u),"aria-hidden":!c,style:a,className:te(n,c&&"".concat(n,"-active"),r),ref:t},d)}),dF=["renderTabBar"],fF=["label","key"],mF=function(t){var n=t.renderTabBar,r=Pt(t,dF),a=s.useContext(Cg),l=a.tabs;if(n){var c=ee(ee({},r),{},{panes:l.map(function(u){var d=u.label,m=u.key,g=Pt(u,fF);return s.createElement(UT,Oe({tab:d,key:m,tabKey:m},g))})});return n(c,mE)}return s.createElement(mE,r)},gF=["key","forceRender","style","className","destroyInactiveTabPane"],vF=function(t){var n=t.id,r=t.activeKey,a=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,u=s.useContext(Cg),d=u.prefixCls,m=u.tabs,g=a.tabPane,v="".concat(d,"-tabpane");return s.createElement("div",{className:te("".concat(d,"-content-holder"))},s.createElement("div",{className:te("".concat(d,"-content"),"".concat(d,"-content-").concat(l),q({},"".concat(d,"-content-animated"),g))},m.map(function(h){var b=h.key,y=h.forceRender,C=h.style,S=h.className,x=h.destroyInactiveTabPane,w=Pt(h,gF),E=b===r;return s.createElement(Sa,Oe({key:b,visible:E,forceRender:y,removeOnLeave:!!(c||x),leavedClassName:"".concat(v,"-hidden")},a.tabPaneMotion),function(R,N){var I=R.style,M=R.className;return s.createElement(UT,Oe({},w,{prefixCls:v,id:n,tabKey:b,animated:g,active:E,style:ee(ee({},C),I),className:te(S,M),ref:N}))})})))};function pF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ee({inkBar:!0},$t(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var hF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],gE=0,bF=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,l=e.className,c=e.items,u=e.direction,d=e.activeKey,m=e.defaultActiveKey,g=e.editable,v=e.animated,h=e.tabPosition,b=h===void 0?"top":h,y=e.tabBarGutter,C=e.tabBarStyle,S=e.tabBarExtraContent,x=e.locale,w=e.more,E=e.destroyInactiveTabPane,R=e.renderTabBar,N=e.onChange,I=e.onTabClick,M=e.onTabScroll,j=e.getPopupContainer,T=e.popupClassName,z=e.indicator,L=Pt(e,hF),D=s.useMemo(function(){return(c||[]).filter(function(ue){return ue&&$t(ue)==="object"&&"key"in ue})},[c]),A=u==="rtl",_=pF(v),V=s.useState(!1),P=de(V,2),B=P[0],K=P[1];s.useEffect(function(){K(cg())},[]);var G=Gn(function(){var ue;return(ue=D[0])===null||ue===void 0?void 0:ue.key},{value:d,defaultValue:m}),Q=de(G,2),k=Q[0],U=Q[1],W=s.useState(function(){return D.findIndex(function(ue){return ue.key===k})}),X=de(W,2),J=X[0],ne=X[1];s.useEffect(function(){var ue=D.findIndex(function(ce){return ce.key===k});if(ue===-1){var ae;ue=Math.max(0,Math.min(J,D.length-1)),U((ae=D[ue])===null||ae===void 0?void 0:ae.key)}ne(ue)},[D.map(function(ue){return ue.key}).join("_"),k,J]);var se=Gn(null,{value:n}),re=de(se,2),oe=re[0],Se=re[1];s.useEffect(function(){n||(Se("rc-tabs-".concat(gE)),gE+=1)},[]);function me(ue,ae){I==null||I(ue,ae);var ce=ue!==k;U(ue),ce&&(N==null||N(ue))}var ie={id:oe,activeKey:k,animated:_,tabPosition:b,rtl:A,mobile:B},ge=ee(ee({},ie),{},{editable:g,locale:x,more:w,tabBarGutter:y,onTabClick:me,onTabScroll:M,extra:S,style:C,panes:null,getPopupContainer:j,popupClassName:T,indicator:z});return s.createElement(Cg.Provider,{value:{tabs:D,prefixCls:a}},s.createElement("div",Oe({ref:t,id:n,className:te(a,"".concat(a,"-").concat(b),q(q(q({},"".concat(a,"-mobile"),B),"".concat(a,"-editable"),g),"".concat(a,"-rtl"),A),l)},L),s.createElement(mF,Oe({},ge,{renderTabBar:R})),s.createElement(vF,Oe({destroyInactiveTabPane:E},ie,{animated:_}))))});const yF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function SF(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},yF),{motionName:_i(e,"switch")})),n}var CF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function xF(e){return e.filter(t=>t)}function $F(e,t){if(e)return e.map(r=>{var a;const l=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Ir(t).map(r=>{if(s.isValidElement(r)){const{key:a,props:l}=r,c=l||{},{tab:u}=c,d=CF(c,["tab"]);return Object.assign(Object.assign({key:String(a)},d),{label:u})}return null});return xF(n)}const wF=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}`}}}}},[Di(e,"slide-up"),Di(e,"slide-down")]]},EF=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Z(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:xo(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:Z(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(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 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},OF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},cn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Z(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},qo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},RF=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:l,verticalItemMargin:c,calc:u}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
279
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
280
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Z(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},NF=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:l,horizontalItemPaddingSM:c,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},TF=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:u,itemColor:d}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Xa(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:xo(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},IF=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Z(e.marginXS)},marginLeft:{_skip_check_:!0,value:Z(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},MF=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},Xa(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),TF(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Xa(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"}}}}}},jF=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:l}=e,c=t||l,u=n||a,d=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:u,cardHeightLG:d,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},PF=nn("Tabs",e=>{const t=Qt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[NF(t),IF(t),RF(t),OF(t),EF(t),MF(t),wF(t)]},jF),zF=()=>null;var _F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const DF=s.forwardRef((e,t)=>{var n,r,a,l,c,u,d,m,g,v,h;const{type:b,className:y,rootClassName:C,size:S,onEdit:x,hideAdd:w,centered:E,addIcon:R,removeIcon:N,moreIcon:I,more:M,popupClassName:j,children:T,items:z,animated:L,style:D,indicatorSize:A,indicator:_,destroyInactiveTabPane:V,destroyOnHidden:P}=e,B=_F(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:K}=B,{direction:G,tabs:Q,getPrefixCls:k,getPopupContainer:U}=s.useContext(Ot),W=k("tabs",K),X=Pr(W),[J,ne,se]=PF(W,X),re=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:re.current}));let oe;b==="editable-card"&&(oe={onEdit:(ce,{key:ye,event:Ce})=>{x==null||x(ce==="add"?Ce:ye,ce)},removeIcon:(n=N??(Q==null?void 0:Q.removeIcon))!==null&&n!==void 0?n:s.createElement(Hi,null),addIcon:(R??(Q==null?void 0:Q.addIcon))||s.createElement(pl,null),showAdd:w!==!0});const Se=k(),me=Hr(S),ie=$F(z,T),ge=SF(W,L),ue=Object.assign(Object.assign({},Q==null?void 0:Q.style),D),ae={align:(r=_==null?void 0:_.align)!==null&&r!==void 0?r:(a=Q==null?void 0:Q.indicator)===null||a===void 0?void 0:a.align,size:(d=(c=(l=_==null?void 0:_.size)!==null&&l!==void 0?l:A)!==null&&c!==void 0?c:(u=Q==null?void 0:Q.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:Q==null?void 0:Q.indicatorSize};return J(s.createElement(bF,Object.assign({ref:re,direction:G,getPopupContainer:U},B,{items:ie,className:te({[`${W}-${me}`]:me,[`${W}-card`]:["card","editable-card"].includes(b),[`${W}-editable-card`]:b==="editable-card",[`${W}-centered`]:E},Q==null?void 0:Q.className,y,C,ne,se,X),popupClassName:te(j,ne,se,X),style:ue,editable:oe,more:Object.assign({icon:(h=(v=(g=(m=Q==null?void 0:Q.more)===null||m===void 0?void 0:m.icon)!==null&&g!==void 0?g:Q==null?void 0:Q.moreIcon)!==null&&v!==void 0?v:I)!==null&&h!==void 0?h:s.createElement(by,null),transitionName:`${Se}-slide-up`},M),prefixCls:W,animated:ge,indicator:ae,destroyInactiveTabPane:P??V})))}),xg=DF;xg.TabPane=zF;var AF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qT=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=AF(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=s.useContext(Ot),c=l("card",t),u=te(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},a,{className:u}))},BF=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:l}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Z(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},zi()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},qo),{[`
|
|
281
|
+
> ${n}-typography,
|
|
282
|
+
> ${n}-typography-edit-content
|
|
283
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},LF=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
284
|
+
${Z(a)} 0 0 0 ${n},
|
|
285
|
+
0 ${Z(a)} 0 0 ${n},
|
|
286
|
+
${Z(a)} ${Z(a)} 0 0 ${n},
|
|
287
|
+
${Z(a)} 0 0 0 ${n} inset,
|
|
288
|
+
0 ${Z(a)} 0 0 ${n} inset;
|
|
289
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},HF=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:l,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},zi()),{"& > 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:Z(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:Z(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${l}`}}})},FF=e=>Object.assign(Object.assign({margin:`${Z(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},zi()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},qo),"&-description":{color:e.colorTextDescription}}),kF=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${Z(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Z(e.padding)} ${Z(a)}`}}},VF=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},KF=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:l,bodyPadding:c,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},cn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:BF(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-grid`]:LF(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:HF(e),[`${t}-meta`]:FF(e)}),[`${t}-bordered`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:kF(e),[`${t}-loading`]:VF(e),[`${t}-rtl`]:{direction:"rtl"}}},WF=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${Z(r)}`,fontSize:l,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},UF=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},qF=nn("Card",e=>{const t=Qt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[KF(t),WF(t)]},UF);var vE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const GF=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((a,l)=>{const c=`action-${l}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:c},s.createElement("span",null,a))}))},XF=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,extra:c,headStyle:u={},bodyStyle:d={},title:m,loading:g,bordered:v,variant:h,size:b,type:y,cover:C,actions:S,tabList:x,children:w,activeTabKey:E,defaultActiveTabKey:R,tabBarExtraContent:N,hoverable:I,tabProps:M={},classNames:j,styles:T}=e,z=vE(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:L,direction:D,card:A}=s.useContext(Ot),[_]=td("card",h,v),V=ze=>{var ve;(ve=e.onTabChange)===null||ve===void 0||ve.call(e,ze)},P=ze=>{var ve;return te((ve=A==null?void 0:A.classNames)===null||ve===void 0?void 0:ve[ze],j==null?void 0:j[ze])},B=ze=>{var ve;return Object.assign(Object.assign({},(ve=A==null?void 0:A.styles)===null||ve===void 0?void 0:ve[ze]),T==null?void 0:T[ze])},K=s.useMemo(()=>{let ze=!1;return s.Children.forEach(w,ve=>{(ve==null?void 0:ve.type)===qT&&(ze=!0)}),ze},[w]),G=L("card",n),[Q,k,U]=qF(G),W=s.createElement(ki,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),X=E!==void 0,J=Object.assign(Object.assign({},M),{[X?"activeKey":"defaultActiveKey"]:X?E:R,tabBarExtraContent:N});let ne;const se=Hr(b),re=!se||se==="default"?"large":se,oe=x?s.createElement(xg,Object.assign({size:re},J,{className:`${G}-head-tabs`,onChange:V,items:x.map(ze=>{var{tab:ve}=ze,Te=vE(ze,["tab"]);return Object.assign({label:ve},Te)})})):null;if(m||c||oe){const ze=te(`${G}-head`,P("header")),ve=te(`${G}-head-title`,P("title")),Te=te(`${G}-extra`,P("extra")),Ee=Object.assign(Object.assign({},u),B("header"));ne=s.createElement("div",{className:ze,style:Ee},s.createElement("div",{className:`${G}-head-wrapper`},m&&s.createElement("div",{className:ve,style:B("title")},m),c&&s.createElement("div",{className:Te,style:B("extra")},c)),oe)}const Se=te(`${G}-cover`,P("cover")),me=C?s.createElement("div",{className:Se,style:B("cover")},C):null,ie=te(`${G}-body`,P("body")),ge=Object.assign(Object.assign({},d),B("body")),ue=s.createElement("div",{className:ie,style:ge},g?W:w),ae=te(`${G}-actions`,P("actions")),ce=S!=null&&S.length?s.createElement(GF,{actionClasses:ae,actionStyle:B("actions"),actions:S}):null,ye=_n(z,["onTabChange"]),Ce=te(G,A==null?void 0:A.className,{[`${G}-loading`]:g,[`${G}-bordered`]:_!=="borderless",[`${G}-hoverable`]:I,[`${G}-contain-grid`]:K,[`${G}-contain-tabs`]:x==null?void 0:x.length,[`${G}-${se}`]:se,[`${G}-type-${y}`]:!!y,[`${G}-rtl`]:D==="rtl"},r,a,k,U),je=Object.assign(Object.assign({},A==null?void 0:A.style),l);return Q(s.createElement("div",Object.assign({ref:t},ye,{className:Ce,style:je}),ne,me,ue,ce))});var YF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const QF=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=YF(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=s.useContext(Ot),d=u("card",t),m=te(`${d}-meta`,n),g=r?s.createElement("div",{className:`${d}-meta-avatar`},r):null,v=a?s.createElement("div",{className:`${d}-meta-title`},a):null,h=l?s.createElement("div",{className:`${d}-meta-description`},l):null,b=v||h?s.createElement("div",{className:`${d}-meta-detail`},v,h):null;return s.createElement("div",Object.assign({},c,{className:m}),g,b)},Gr=XF;Gr.Grid=qT;Gr.Meta=QF;function ZF(e,t,n){var r=n||{},a=r.noTrailing,l=a===void 0?!1:a,c=r.noLeading,u=c===void 0?!1:c,d=r.debounceMode,m=d===void 0?void 0:d,g,v=!1,h=0;function b(){g&&clearTimeout(g)}function y(S){var x=S||{},w=x.upcomingOnly,E=w===void 0?!1:w;b(),v=!E}function C(){for(var S=arguments.length,x=new Array(S),w=0;w<S;w++)x[w]=arguments[w];var E=this,R=Date.now()-h;if(v)return;function N(){h=Date.now(),t.apply(E,x)}function I(){g=void 0}!u&&m&&!g&&N(),b(),m===void 0&&R>e?u?(h=Date.now(),l||(g=setTimeout(m?I:N,e))):N():l!==!0&&(g=setTimeout(m?I:N,m===void 0?e-R:e))}return C.cancel=y,C}function JF(e,t,n){var r={},a=r.atBegin,l=a===void 0?!1:a;return ZF(e,t,{debounceMode:l!==!1})}function ha(e,t){return e[t]}var ek=["children"];function GT(e,t){return"".concat(e,"-").concat(t)}function tk(e){return e&&e.type&&e.type.isTreeNode}function od(e,t){return e??t}function qs(e){var t=e||{},n=t.title,r=t._title,a=t.key,l=t.children,c=n||"title";return{title:c,_title:r||[c],key:a||"key",children:l||"children"}}function XT(e){function t(n){var r=Ir(n);return r.map(function(a){if(!tk(a))return Xn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var l=a.key,c=a.props,u=c.children,d=Pt(c,ek),m=ee({key:l},d),g=t(u);return g.length&&(m.children=g),m}).filter(function(a){return a})}return t(e)}function mh(e,t,n){var r=qs(n),a=r._title,l=r.key,c=r.children,u=new Set(t===!0?[]:t),d=[];function m(g){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return g.map(function(h,b){for(var y=GT(v?v.pos:"0",b),C=od(h[l],y),S,x=0;x<a.length;x+=1){var w=a[x];if(h[w]!==void 0){S=h[w];break}}var E=Object.assign(_n(h,[].concat(De(a),[l,c])),{title:S,key:C,parent:v,pos:y,children:null,data:h,isStart:[].concat(De(v?v.isStart:[]),[b===0]),isEnd:[].concat(De(v?v.isEnd:[]),[b===g.length-1])});return d.push(E),t===!0||u.has(C)?E.children=m(h[c]||[],E):E.children=[],E})}return m(e),d}function nk(e,t,n){var r={};$t(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,l=a.childrenPropName,c=a.externalGetKey,u=a.fieldNames,d=qs(u),m=d.key,g=d.children,v=l||g,h;c?typeof c=="string"?h=function(C){return C[c]}:typeof c=="function"&&(h=function(C){return c(C)}):h=function(C,S){return od(C[m],S)};function b(y,C,S,x){var w=y?y[v]:e,E=y?GT(S.pos,C):"0",R=y?[].concat(De(x),[y]):[];if(y){var N=h(y,E),I={node:y,index:C,pos:E,key:N,parentPos:S.node?S.pos:null,level:S.level+1,nodes:R};t(I)}w&&w.forEach(function(M,j){b(M,j,{node:y,pos:E,level:S?S.level+1:-1},R)})}b(null)}function xy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,l=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,m=l||d,g={},v={},h={posEntities:g,keyEntities:v};return n&&(h=n(h)||h),nk(e,function(b){var y=b.node,C=b.index,S=b.pos,x=b.key,w=b.parentPos,E=b.level,R=b.nodes,N={node:y,nodes:R,index:C,key:x,pos:S,level:E},I=od(x,S);g[S]=N,v[I]=N,N.parent=g[w],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),r&&r(N,h)},{externalGetKey:m,childrenPropName:c,fieldNames:u}),a&&a(h),h}function pu(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,l=t.loadingKeys,c=t.checkedKeys,u=t.halfCheckedKeys,d=t.dragOverNodeKey,m=t.dropPosition,g=t.keyEntities,v=ha(g,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(v?v.pos:""),dragOver:d===e&&m===0,dragOverGapTop:d===e&&m===-1,dragOverGapBottom:d===e&&m===1};return h}function xr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,l=e.loaded,c=e.loading,u=e.halfChecked,d=e.dragOver,m=e.dragOverGapTop,g=e.dragOverGapBottom,v=e.pos,h=e.active,b=e.eventKey,y=ee(ee({},t),{},{expanded:n,selected:r,checked:a,loaded:l,loading:c,halfChecked:u,dragOver:d,dragOverGapTop:m,dragOverGapBottom:g,pos:v,active:h,key:b});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Xn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),y}function YT(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function rk(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function ak(e,t,n,r){for(var a=new Set(e),l=new Set,c=0;c<=n;c+=1){var u=t.get(c)||new Set;u.forEach(function(v){var h=v.key,b=v.node,y=v.children,C=y===void 0?[]:y;a.has(h)&&!r(b)&&C.filter(function(S){return!r(S.node)}).forEach(function(S){a.add(S.key)})})}for(var d=new Set,m=n;m>=0;m-=1){var g=t.get(m)||new Set;g.forEach(function(v){var h=v.parent,b=v.node;if(!(r(b)||!v.parent||d.has(v.parent.key))){if(r(v.parent.node)){d.add(h.key);return}var y=!0,C=!1;(h.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var x=S.key,w=a.has(x);y&&!w&&(y=!1),!C&&(w||l.has(x))&&(C=!0)}),y&&a.add(h.key),C&&l.add(h.key),d.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(YT(l,a))}}function ok(e,t,n,r,a){for(var l=new Set(e),c=new Set(t),u=0;u<=r;u+=1){var d=n.get(u)||new Set;d.forEach(function(h){var b=h.key,y=h.node,C=h.children,S=C===void 0?[]:C;!l.has(b)&&!c.has(b)&&!a(y)&&S.filter(function(x){return!a(x.node)}).forEach(function(x){l.delete(x.key)})})}c=new Set;for(var m=new Set,g=r;g>=0;g-=1){var v=n.get(g)||new Set;v.forEach(function(h){var b=h.parent,y=h.node;if(!(a(y)||!h.parent||m.has(h.parent.key))){if(a(h.parent.node)){m.add(b.key);return}var C=!0,S=!1;(b.children||[]).filter(function(x){return!a(x.node)}).forEach(function(x){var w=x.key,E=l.has(w);C&&!E&&(C=!1),!S&&(E||c.has(w))&&(S=!0)}),C||l.delete(b.key),S&&c.add(b.key),m.add(b.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(YT(c,l))}}function Ds(e,t,n,r){var a=[],l;r?l=r:l=rk;var c=new Set(e.filter(function(g){var v=!!ha(n,g);return v||a.push(g),v})),u=new Map,d=0;Object.keys(n).forEach(function(g){var v=n[g],h=v.level,b=u.get(h);b||(b=new Set,u.set(h,b)),b.add(v),d=Math.max(d,h)}),Xn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(g){return"'".concat(g,"'")}).join(", ")));var m;return t===!0?m=ak(c,u,d,l):m=ok(c,t.halfCheckedKeys,u,d,l),m}const ik=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},cn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},cn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},cn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:xo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Z(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
290
|
+
${n}:not(${n}-disabled),
|
|
291
|
+
${t}:not(${t}-disabled)
|
|
292
|
+
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
293
|
+
${n}-checked:not(${n}-disabled),
|
|
294
|
+
${t}-checked:not(${t}-disabled)
|
|
295
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function QT(e,t){const n=Qt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return ik(n)}const ZT=nn("Checkbox",(e,{prefixCls:t})=>[QT(t,e)]),JT=le.createContext(null);var lk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sk=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:l,children:c,indeterminate:u=!1,style:d,onMouseEnter:m,onMouseLeave:g,skipGroup:v=!1,disabled:h}=e,b=lk(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:C,checkbox:S}=s.useContext(Ot),x=s.useContext(JT),{isFormItemInput:w}=s.useContext(Qr),E=s.useContext(ba),R=(n=(x==null?void 0:x.disabled)||h)!==null&&n!==void 0?n:E,N=s.useRef(b.value),I=s.useRef(null),M=Lr(t,I);s.useEffect(()=>{x==null||x.registerValue(b.value)},[]),s.useEffect(()=>{if(!v)return b.value!==N.current&&(x==null||x.cancelValue(N.current),x==null||x.registerValue(b.value),N.current=b.value),()=>x==null?void 0:x.cancelValue(b.value)},[b.value]),s.useEffect(()=>{var K;!((K=I.current)===null||K===void 0)&&K.input&&(I.current.input.indeterminate=u)},[u]);const j=y("checkbox",r),T=Pr(j),[z,L,D]=ZT(j,T),A=Object.assign({},b);x&&!v&&(A.onChange=(...K)=>{b.onChange&&b.onChange.apply(b,K),x.toggleOption&&x.toggleOption({label:c,value:b.value})},A.name=x.name,A.checked=x.value.includes(b.value));const _=te(`${j}-wrapper`,{[`${j}-rtl`]:C==="rtl",[`${j}-wrapper-checked`]:A.checked,[`${j}-wrapper-disabled`]:R,[`${j}-wrapper-in-form-item`]:w},S==null?void 0:S.className,a,l,D,T,L),V=te({[`${j}-indeterminate`]:u},Ym,L),[P,B]=ET(A.onClick);return z(s.createElement(qu,{component:"Checkbox",disabled:R},s.createElement("label",{className:_,style:Object.assign(Object.assign({},S==null?void 0:S.style),d),onMouseEnter:m,onMouseLeave:g,onClick:P},s.createElement(wT,Object.assign({},A,{onClick:B,prefixCls:j,className:V,disabled:R,ref:M})),c!=null&&s.createElement("span",{className:`${j}-label`},c))))},eI=s.forwardRef(sk);var ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uk=s.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:l,className:c,rootClassName:u,style:d,onChange:m}=e,g=ck(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:h}=s.useContext(Ot),[b,y]=s.useState(g.value||n||[]),[C,S]=s.useState([]);s.useEffect(()=>{"value"in g&&y(g.value||[])},[g.value]);const x=s.useMemo(()=>a.map(V=>typeof V=="string"||typeof V=="number"?{label:V,value:V}:V),[a]),w=V=>{S(P=>P.filter(B=>B!==V))},E=V=>{S(P=>[].concat(De(P),[V]))},R=V=>{const P=b.indexOf(V.value),B=De(b);P===-1?B.push(V.value):B.splice(P,1),"value"in g||y(B),m==null||m(B.filter(K=>C.includes(K)).sort((K,G)=>{const Q=x.findIndex(U=>U.value===K),k=x.findIndex(U=>U.value===G);return Q-k}))},N=v("checkbox",l),I=`${N}-group`,M=Pr(N),[j,T,z]=ZT(N,M),L=_n(g,["value","disabled"]),D=a.length?x.map(V=>s.createElement(eI,{prefixCls:N,key:V.value.toString(),disabled:"disabled"in V?V.disabled:g.disabled,value:V.value,checked:b.includes(V.value),onChange:V.onChange,className:te(`${I}-item`,V.className),style:V.style,title:V.title,id:V.id,required:V.required},V.label)):r,A=s.useMemo(()=>({toggleOption:R,value:b,disabled:g.disabled,name:g.name,registerValue:E,cancelValue:w}),[R,b,g.disabled,g.name,E,w]),_=te(I,{[`${I}-rtl`]:h==="rtl"},c,u,z,M,T);return j(s.createElement("div",Object.assign({className:_,style:d},L,{ref:t}),s.createElement(JT.Provider,{value:A},D)))}),na=eI;na.Group=uk;na.__ANT_CHECKBOX=!0;const tI=s.createContext({});var dk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function pE(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const fk=["xs","sm","md","lg","xl","xxl"],hl=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ot),{gutter:a,wrap:l}=s.useContext(tI),{prefixCls:c,span:u,order:d,offset:m,push:g,pull:v,className:h,children:b,flex:y,style:C}=e,S=dk(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",c),[w,E,R]=fA(x),N={};let I={};fk.forEach(T=>{let z={};const L=e[T];typeof L=="number"?z.span=L:typeof L=="object"&&(z=L||{}),delete S[T],I=Object.assign(Object.assign({},I),{[`${x}-${T}-${z.span}`]:z.span!==void 0,[`${x}-${T}-order-${z.order}`]:z.order||z.order===0,[`${x}-${T}-offset-${z.offset}`]:z.offset||z.offset===0,[`${x}-${T}-push-${z.push}`]:z.push||z.push===0,[`${x}-${T}-pull-${z.pull}`]:z.pull||z.pull===0,[`${x}-rtl`]:r==="rtl"}),z.flex&&(I[`${x}-${T}-flex`]=!0,N[`--${x}-${T}-flex`]=pE(z.flex))});const M=te(x,{[`${x}-${u}`]:u!==void 0,[`${x}-order-${d}`]:d,[`${x}-offset-${m}`]:m,[`${x}-push-${g}`]:g,[`${x}-pull-${v}`]:v},h,I,E,R),j={};if(a!=null&&a[0]){const T=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;j.paddingLeft=T,j.paddingRight=T}return y&&(j.flex=pE(y),l===!1&&!j.minWidth&&(j.minWidth=0)),w(s.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},j),C),N),className:M,ref:t}),b))});function mk(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((l,c)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<Ws.length;u++){const d=Ws[u];if(a[d]&&l[d]!==void 0){n[c]=l[d];break}}else n[c]=l}),n}var gk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function hE(e,t){const[n,r]=s.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<Ws.length;l++){const c=Ws[l];if(!t||!t[c])continue;const u=e[c];if(u!==void 0){r(u);return}}};return s.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const Em=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:l,style:c,children:u,gutter:d=0,wrap:m}=e,g=gk(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:v,direction:h}=s.useContext(Ot),b=mg(!0,null),y=hE(a,b),C=hE(r,b),S=v("row",n),[x,w,E]=dA(S),R=mk(d,b),N=te(S,{[`${S}-no-wrap`]:m===!1,[`${S}-${C}`]:C,[`${S}-${y}`]:y,[`${S}-rtl`]:h==="rtl"},l,w,E),I={};if(R!=null&&R[0]){const z=typeof R[0]=="number"?`${R[0]/-2}px`:`calc(${R[0]} / -2)`;I.marginLeft=z,I.marginRight=z}const[M,j]=R;I.rowGap=j;const T=s.useMemo(()=>({gutter:[M,j],wrap:m}),[M,j,m]);return x(s.createElement(tI.Provider,{value:T},s.createElement("div",Object.assign({},g,{className:N,style:Object.assign(Object.assign({},I),c),ref:t}),u)))}),vk=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},pk=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:l,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},cn(e)),{borderBlockStart:`${Z(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Z(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Z(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Z(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Z(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${c} * 100%)`},"&::after":{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${c} * 100%)`},"&::after":{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Z(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Z(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},hk=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),bk=nn("Divider",e=>{const t=Qt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[pk(t),vk(t)]},hk,{unitless:{orientationMargin:!0}});var yk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Sk={small:"sm",middle:"md"},hu=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=Er("divider"),{prefixCls:l,type:c="horizontal",orientation:u="center",orientationMargin:d,className:m,rootClassName:g,children:v,dashed:h,variant:b="solid",plain:y,style:C,size:S}=e,x=yk(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[E,R,N]=bk(w),I=Hr(S),M=Sk[I],j=!!v,T=s.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),z=T==="start"&&d!=null,L=T==="end"&&d!=null,D=te(w,r,R,N,`${w}-${c}`,{[`${w}-with-text`]:j,[`${w}-with-text-${T}`]:j,[`${w}-dashed`]:!!h,[`${w}-${b}`]:b!=="solid",[`${w}-plain`]:!!y,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:z,[`${w}-no-default-orientation-margin-end`]:L,[`${w}-${M}`]:!!M},m,g),A=s.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),_={marginInlineStart:z?A:void 0,marginInlineEnd:L?A:void 0};return E(s.createElement("div",Object.assign({className:D,style:Object.assign(Object.assign({},a),C)},x,{role:"separator"}),v&&c!=="vertical"&&s.createElement("span",{className:`${w}-inner-text`,style:_},v)))};var Ck={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"},xk=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:Ck}))},$k=s.forwardRef(xk);function Q0(){return typeof BigInt=="function"}function nI(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function xl(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),l=a[0]||"0",c=a[1]||"0";l==="0"&&c==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:l,decimalStr:c,fullStr:"".concat(u).concat(r)}}function $y(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function bl(e){var t=String(e);if($y(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&wy(t)?t.length-t.indexOf(".")-1:0}function $g(e){var t=String(e);if($y(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Q0()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Q0()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(bl(t))}return xl(t).fullStr}function wy(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 wk=(function(){function e(t){if(rr(this,e),q(this,"origin",""),q(this,"negative",void 0),q(this,"integer",void 0),q(this,"decimal",void 0),q(this,"decimalLen",void 0),q(this,"empty",void 0),q(this,"nan",void 0),nI(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if($y(n)&&(n=Number(n)),n=typeof n=="string"?n:$g(n),wy(n)){var r=xl(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var l=a[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}return ar(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var l=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),c=this.alignDecimal(l),u=n.alignDecimal(l),d=r(c,u).toString(),m=a(l),g=xl(d),v=g.negativeStr,h=g.trimStr,b="".concat(v).concat(h.padStart(m+1,"0"));return new e("".concat(b.slice(0,-m),".").concat(b.slice(-m)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,l){return a+l},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,l){return a*l},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":xl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),Ek=(function(){function e(t){if(rr(this,e),q(this,"origin",""),q(this,"number",void 0),q(this,"empty",void 0),nI(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ar(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var l=Math.max(bl(this.number),bl(r));return new e(a.toFixed(l))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var l=Math.max(bl(this.number),bl(r));return new e(a.toFixed(l))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":$g(this.number):this.origin}}]),e})();function to(e){return Q0()?new wk(e):new Ek(e)}function Jf(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=xl(e),l=a.negativeStr,c=a.integerStr,u=a.decimalStr,d="".concat(t).concat(u),m="".concat(l).concat(c);if(n>=0){var g=Number(u[n]);if(g>=5&&!r){var v=to(e).add("".concat(l,"0.").concat("0".repeat(n)).concat(10-g));return Jf(v.toString(),t,n,r)}return n===0?m:"".concat(m).concat(t).concat(u.padEnd(n,"0").slice(0,n))}return d===".0"?m:"".concat(m).concat(d)}function Ok(e){return!!(e.addonBefore||e.addonAfter)}function Rk(e){return!!(e.prefix||e.suffix||e.allowClear)}function bE(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Om(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=bE(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=bE(t,e,r),n(a);return}n(a)}}function Ey(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var Oy=le.forwardRef(function(e,t){var n,r,a,l=e.inputElement,c=e.children,u=e.prefixCls,d=e.prefix,m=e.suffix,g=e.addonBefore,v=e.addonAfter,h=e.className,b=e.style,y=e.disabled,C=e.readOnly,S=e.focused,x=e.triggerFocus,w=e.allowClear,E=e.value,R=e.handleReset,N=e.hidden,I=e.classes,M=e.classNames,j=e.dataAttrs,T=e.styles,z=e.components,L=e.onClear,D=c??l,A=(z==null?void 0:z.affixWrapper)||"span",_=(z==null?void 0:z.groupWrapper)||"span",V=(z==null?void 0:z.wrapper)||"span",P=(z==null?void 0:z.groupAddon)||"span",B=s.useRef(null),K=function(ae){var ce;(ce=B.current)!==null&&ce!==void 0&&ce.contains(ae.target)&&(x==null||x())},G=Rk(e),Q=s.cloneElement(D,{value:E,className:te((n=D.props)===null||n===void 0?void 0:n.className,!G&&(M==null?void 0:M.variant))||null}),k=s.useRef(null);if(le.useImperativeHandle(t,function(){return{nativeElement:k.current||B.current}}),G){var U=null;if(w){var W=!y&&!C&&E,X="".concat(u,"-clear-icon"),J=$t(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";U=le.createElement("button",{type:"button",tabIndex:-1,onClick:function(ae){R==null||R(ae),L==null||L()},onMouseDown:function(ae){return ae.preventDefault()},className:te(X,q(q({},"".concat(X,"-hidden"),!W),"".concat(X,"-has-suffix"),!!m))},J)}var ne="".concat(u,"-affix-wrapper"),se=te(ne,q(q(q(q(q({},"".concat(u,"-disabled"),y),"".concat(ne,"-disabled"),y),"".concat(ne,"-focused"),S),"".concat(ne,"-readonly"),C),"".concat(ne,"-input-with-clear-btn"),m&&w&&E),I==null?void 0:I.affixWrapper,M==null?void 0:M.affixWrapper,M==null?void 0:M.variant),re=(m||w)&&le.createElement("span",{className:te("".concat(u,"-suffix"),M==null?void 0:M.suffix),style:T==null?void 0:T.suffix},U,m);Q=le.createElement(A,Oe({className:se,style:T==null?void 0:T.affixWrapper,onClick:K},j==null?void 0:j.affixWrapper,{ref:B}),d&&le.createElement("span",{className:te("".concat(u,"-prefix"),M==null?void 0:M.prefix),style:T==null?void 0:T.prefix},d),Q,re)}if(Ok(e)){var oe="".concat(u,"-group"),Se="".concat(oe,"-addon"),me="".concat(oe,"-wrapper"),ie=te("".concat(u,"-wrapper"),oe,I==null?void 0:I.wrapper,M==null?void 0:M.wrapper),ge=te(me,q({},"".concat(me,"-disabled"),y),I==null?void 0:I.group,M==null?void 0:M.groupWrapper);Q=le.createElement(_,{className:ge,ref:k},le.createElement(V,{className:ie},g&&le.createElement(P,{className:Se},g),Q,v&&le.createElement(P,{className:Se},v)))}return le.cloneElement(Q,{className:te((r=Q.props)===null||r===void 0?void 0:r.className,h)||null,style:ee(ee({},(a=Q.props)===null||a===void 0?void 0:a.style),b),hidden:N})}),Nk=["show"];function rI(e,t){return s.useMemo(function(){var n={};t&&(n.show=$t(t)==="object"&&t.formatter?t.formatter:!!t),n=ee(ee({},n),e);var r=n,a=r.show,l=Pt(r,Nk);return ee(ee({},l),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:l.strategy||function(c){return c.length}})},[e,t])}var Tk=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Ik=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,d=e.onKeyUp,m=e.prefixCls,g=m===void 0?"rc-input":m,v=e.disabled,h=e.htmlSize,b=e.className,y=e.maxLength,C=e.suffix,S=e.showCount,x=e.count,w=e.type,E=w===void 0?"text":w,R=e.classes,N=e.classNames,I=e.styles,M=e.onCompositionStart,j=e.onCompositionEnd,T=Pt(e,Tk),z=s.useState(!1),L=de(z,2),D=L[0],A=L[1],_=s.useRef(!1),V=s.useRef(!1),P=s.useRef(null),B=s.useRef(null),K=function(xe){P.current&&Ey(P.current,xe)},G=Gn(e.defaultValue,{value:e.value}),Q=de(G,2),k=Q[0],U=Q[1],W=k==null?"":String(k),X=s.useState(null),J=de(X,2),ne=J[0],se=J[1],re=rI(x,S),oe=re.max||y,Se=re.strategy(W),me=!!oe&&Se>oe;s.useImperativeHandle(t,function(){var Ee;return{focus:K,blur:function(){var Ve;(Ve=P.current)===null||Ve===void 0||Ve.blur()},setSelectionRange:function(Ve,Xe,it){var at;(at=P.current)===null||at===void 0||at.setSelectionRange(Ve,Xe,it)},select:function(){var Ve;(Ve=P.current)===null||Ve===void 0||Ve.select()},input:P.current,nativeElement:((Ee=B.current)===null||Ee===void 0?void 0:Ee.nativeElement)||P.current}}),s.useEffect(function(){V.current&&(V.current=!1),A(function(Ee){return Ee&&v?!1:Ee})},[v]);var ie=function(xe,Ve,Xe){var it=Ve;if(!_.current&&re.exceedFormatter&&re.max&&re.strategy(Ve)>re.max){if(it=re.exceedFormatter(Ve,{max:re.max}),Ve!==it){var at,Ye;se([((at=P.current)===null||at===void 0?void 0:at.selectionStart)||0,((Ye=P.current)===null||Ye===void 0?void 0:Ye.selectionEnd)||0])}}else if(Xe.source==="compositionEnd")return;U(it),P.current&&Om(P.current,xe,r,it)};s.useEffect(function(){if(ne){var Ee;(Ee=P.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,De(ne))}},[ne]);var ge=function(xe){ie(xe,xe.target.value,{source:"change"})},ue=function(xe){_.current=!1,ie(xe,xe.currentTarget.value,{source:"compositionEnd"}),j==null||j(xe)},ae=function(xe){c&&xe.key==="Enter"&&!V.current&&(V.current=!0,c(xe)),u==null||u(xe)},ce=function(xe){xe.key==="Enter"&&(V.current=!1),d==null||d(xe)},ye=function(xe){A(!0),a==null||a(xe)},Ce=function(xe){V.current&&(V.current=!1),A(!1),l==null||l(xe)},je=function(xe){U(""),K(),P.current&&Om(P.current,xe,r)},ze=me&&"".concat(g,"-out-of-range"),ve=function(){var xe=_n(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return le.createElement("input",Oe({autoComplete:n},xe,{onChange:ge,onFocus:ye,onBlur:Ce,onKeyDown:ae,onKeyUp:ce,className:te(g,q({},"".concat(g,"-disabled"),v),N==null?void 0:N.input),style:I==null?void 0:I.input,ref:P,size:h,type:E,onCompositionStart:function(Xe){_.current=!0,M==null||M(Xe)},onCompositionEnd:ue}))},Te=function(){var xe=Number(oe)>0;if(C||re.show){var Ve=re.showFormatter?re.showFormatter({value:W,count:Se,maxLength:oe}):"".concat(Se).concat(xe?" / ".concat(oe):"");return le.createElement(le.Fragment,null,re.show&&le.createElement("span",{className:te("".concat(g,"-show-count-suffix"),q({},"".concat(g,"-show-count-has-suffix"),!!C),N==null?void 0:N.count),style:ee({},I==null?void 0:I.count)},Ve),C)}return null};return le.createElement(Oy,Oe({},T,{prefixCls:g,className:te(b,ze),handleReset:je,value:W,focused:D,triggerFocus:K,suffix:Te(),disabled:v,classes:R,classNames:N,styles:I,ref:B}),ve())});function Mk(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var l=r[a];return typeof l=="function"?l.bind(r):l}}):e}function jk(e,t){var n=s.useRef(null);function r(){try{var l=e.selectionStart,c=e.selectionEnd,u=e.value,d=u.substring(0,l),m=u.substring(c);n.current={start:l,end:c,value:u,beforeTxt:d,afterTxt:m}}catch{}}function a(){if(e&&n.current&&t)try{var l=e.value,c=n.current,u=c.beforeTxt,d=c.afterTxt,m=c.start,g=l.length;if(l.startsWith(u))g=u.length;else if(l.endsWith(d))g=l.length-n.current.afterTxt.length;else{var v=u[m-1],h=l.indexOf(v,m-1);h!==-1&&(g=h+1)}e.setSelectionRange(g,g)}catch(b){Xn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b.message))}}return[r,a]}var Pk=function(){var t=s.useState(!1),n=de(t,2),r=n[0],a=n[1];return en(function(){a(cg())},[]),r},zk=200,_k=600;function Dk(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,l=e.downDisabled,c=e.onStep,u=s.useRef(),d=s.useRef([]),m=s.useRef();m.current=c;var g=function(){clearTimeout(u.current)},v=function(E,R){E.preventDefault(),g(),m.current(R);function N(){m.current(R),u.current=setTimeout(N,zk)}u.current=setTimeout(N,_k)};s.useEffect(function(){return function(){g(),d.current.forEach(function(w){return tn.cancel(w)})}},[]);var h=Pk();if(h)return null;var b="".concat(t,"-handler"),y=te(b,"".concat(b,"-up"),q({},"".concat(b,"-up-disabled"),a)),C=te(b,"".concat(b,"-down"),q({},"".concat(b,"-down-disabled"),l)),S=function(){return d.current.push(tn(g))},x={unselectable:"on",role:"button",onMouseUp:S,onMouseLeave:S};return s.createElement("div",{className:"".concat(b,"-wrap")},s.createElement("span",Oe({},x,{onMouseDown:function(E){v(E,!0)},"aria-label":"Increase Value","aria-disabled":a,className:y}),n||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),s.createElement("span",Oe({},x,{onMouseDown:function(E){v(E,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:C}),r||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function yE(e){var t=typeof e=="number"?$g(e):xl(e).fullStr,n=t.includes(".");return n?xl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Ak=(function(){var e=s.useRef(0),t=function(){tn.cancel(e.current)};return s.useEffect(function(){return t},[]),function(n){t(),e.current=tn(function(){n()})}});var Bk=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Lk=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],SE=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},CE=function(t){var n=to(t);return n.isInvalidate()?null:n},Hk=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.min,c=e.max,u=e.step,d=u===void 0?1:u,m=e.defaultValue,g=e.value,v=e.disabled,h=e.readOnly,b=e.upHandler,y=e.downHandler,C=e.keyboard,S=e.changeOnWheel,x=S===void 0?!1:S,w=e.controls,E=w===void 0?!0:w;e.classNames;var R=e.stringMode,N=e.parser,I=e.formatter,M=e.precision,j=e.decimalSeparator,T=e.onChange,z=e.onInput,L=e.onPressEnter,D=e.onStep,A=e.changeOnBlur,_=A===void 0?!0:A,V=e.domRef,P=Pt(e,Bk),B="".concat(n,"-input"),K=s.useRef(null),G=s.useState(!1),Q=de(G,2),k=Q[0],U=Q[1],W=s.useRef(!1),X=s.useRef(!1),J=s.useRef(!1),ne=s.useState(function(){return to(g??m)}),se=de(ne,2),re=se[0],oe=se[1];function Se(et){g===void 0&&oe(et)}var me=s.useCallback(function(et,ct){if(!ct)return M>=0?M:Math.max(bl(et),bl(d))},[M,d]),ie=s.useCallback(function(et){var ct=String(et);if(N)return N(ct);var gt=ct;return j&&(gt=gt.replace(j,".")),gt.replace(/[^\w.-]+/g,"")},[N,j]),ge=s.useRef(""),ue=s.useCallback(function(et,ct){if(I)return I(et,{userTyping:ct,input:String(ge.current)});var gt=typeof et=="number"?$g(et):et;if(!ct){var ot=me(gt,ct);if(wy(gt)&&(j||ot>=0)){var vt=j||".";gt=Jf(gt,vt,ot)}}return gt},[I,me,j]),ae=s.useState(function(){var et=m??g;return re.isInvalidate()&&["string","number"].includes($t(et))?Number.isNaN(et)?"":et:ue(re.toString(),!1)}),ce=de(ae,2),ye=ce[0],Ce=ce[1];ge.current=ye;function je(et,ct){Ce(ue(et.isInvalidate()?et.toString(!1):et.toString(!ct),ct))}var ze=s.useMemo(function(){return CE(c)},[c,M]),ve=s.useMemo(function(){return CE(l)},[l,M]),Te=s.useMemo(function(){return!ze||!re||re.isInvalidate()?!1:ze.lessEquals(re)},[ze,re]),Ee=s.useMemo(function(){return!ve||!re||re.isInvalidate()?!1:re.lessEquals(ve)},[ve,re]),xe=jk(K.current,k),Ve=de(xe,2),Xe=Ve[0],it=Ve[1],at=function(ct){return ze&&!ct.lessEquals(ze)?ze:ve&&!ve.lessEquals(ct)?ve:null},Ye=function(ct){return!at(ct)},Je=function(ct,gt){var ot=ct,vt=Ye(ot)||ot.isEmpty();if(!ot.isEmpty()&&!gt&&(ot=at(ot)||ot,vt=!0),!h&&!v&&vt){var Mt=ot.toString(),pe=me(Mt,gt);return pe>=0&&(ot=to(Jf(Mt,".",pe)),Ye(ot)||(ot=to(Jf(Mt,".",pe,!0)))),ot.equals(re)||(Se(ot),T==null||T(ot.isEmpty()?null:SE(R,ot)),g===void 0&&je(ot,gt)),ot}return re},_e=Ak(),Ie=function et(ct){if(Xe(),ge.current=ct,Ce(ct),!X.current){var gt=ie(ct),ot=to(gt);ot.isNaN()||Je(ot,!0)}z==null||z(ct),_e(function(){var vt=ct;N||(vt=ct.replace(/。/g,".")),vt!==ct&&et(vt)})},We=function(){X.current=!0},Be=function(){X.current=!1,Ie(K.current.value)},Ge=function(ct){Ie(ct.target.value)},Me=function(ct){var gt;if(!(ct&&Te||!ct&&Ee)){W.current=!1;var ot=to(J.current?yE(d):d);ct||(ot=ot.negate());var vt=(re||to(0)).add(ot.toString()),Mt=Je(vt,!1);D==null||D(SE(R,Mt),{offset:J.current?yE(d):d,type:ct?"up":"down"}),(gt=K.current)===null||gt===void 0||gt.focus()}},Qe=function(ct){var gt=to(ie(ye)),ot;gt.isNaN()?ot=Je(re,ct):ot=Je(gt,ct),g!==void 0?je(re,!1):ot.isNaN()||je(ot,!1)},lt=function(){W.current=!0},mt=function(ct){var gt=ct.key,ot=ct.shiftKey;W.current=!0,J.current=ot,gt==="Enter"&&(X.current||(W.current=!1),Qe(!1),L==null||L(ct)),C!==!1&&!X.current&&["Up","ArrowUp","Down","ArrowDown"].includes(gt)&&(Me(gt==="Up"||gt==="ArrowUp"),ct.preventDefault())},Dt=function(){W.current=!1,J.current=!1};s.useEffect(function(){if(x&&k){var et=function(ot){Me(ot.deltaY<0),ot.preventDefault()},ct=K.current;if(ct)return ct.addEventListener("wheel",et,{passive:!1}),function(){return ct.removeEventListener("wheel",et)}}});var At=function(){_&&Qe(!1),U(!1),W.current=!1};return js(function(){re.isInvalidate()||je(re,!1)},[M,I]),js(function(){var et=to(g);oe(et);var ct=to(ie(ye));(!et.equals(ct)||!W.current||I)&&je(et,W.current)},[g]),js(function(){I&&it()},[ye]),s.createElement("div",{ref:V,className:te(n,r,q(q(q(q(q({},"".concat(n,"-focused"),k),"".concat(n,"-disabled"),v),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),re.isNaN()),"".concat(n,"-out-of-range"),!re.isInvalidate()&&!Ye(re))),style:a,onFocus:function(){U(!0)},onBlur:At,onKeyDown:mt,onKeyUp:Dt,onCompositionStart:We,onCompositionEnd:Be,onBeforeInput:lt},E&&s.createElement(Dk,{prefixCls:n,upNode:b,downNode:y,upDisabled:Te,downDisabled:Ee,onStep:Me}),s.createElement("div",{className:"".concat(B,"-wrap")},s.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:d},P,{ref:Lr(K,t),className:B,value:ye,onChange:Ge,disabled:v,readOnly:h}))))}),Fk=s.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,l=a===void 0?"rc-input-number":a,c=e.value,u=e.prefix,d=e.suffix,m=e.addonBefore,g=e.addonAfter,v=e.className,h=e.classNames,b=Pt(e,Lk),y=s.useRef(null),C=s.useRef(null),S=s.useRef(null),x=function(E){S.current&&Ey(S.current,E)};return s.useImperativeHandle(t,function(){return Mk(S.current,{focus:x,nativeElement:y.current.nativeElement||C.current})}),s.createElement(Oy,{className:v,triggerFocus:x,prefixCls:l,value:c,disabled:n,style:r,prefix:u,suffix:d,addonAfter:g,addonBefore:m,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:y},s.createElement(Hk,Oe({prefixCls:l,disabled:n,ref:S,domRef:C,className:h==null?void 0:h.input},b)))});const kk=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},nc(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},xE=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},Vk=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:l,inputFontSizeLG:c,controlHeightLG:u,controlHeightSM:d,colorError:m,paddingInlineSM:g,paddingBlockSM:v,paddingBlockLG:h,paddingInlineLG:b,colorIcon:y,motionDurationMid:C,handleHoverColor:S,handleOpacity:x,paddingInline:w,paddingBlock:E,handleBg:R,handleActiveBg:N,colorTextDisabled:I,borderRadiusSM:M,borderRadiusLG:j,controlWidth:T,handleBorderColor:z,filledHandleBg:L,lineHeightLG:D,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),ad(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:a}),IT(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${z}`}}})),zT(e,{[`${t}-handler-wrap`]:{background:L,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${z}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:R}}})),AT(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${z}`}}})),jT(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:c,lineHeight:D,borderRadius:j,[`input${t}-input`]:{height:A(u).sub(A(n).mul(2)).equal(),padding:`${Z(h)} ${Z(b)}`}},"&-sm":{padding:0,fontSize:l,borderRadius:M,[`input${t}-input`]:{height:A(d).sub(A(n).mul(2)).equal(),padding:`${Z(v)} ${Z(g)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:m}}},"&-group":Object.assign(Object.assign(Object.assign({},cn(e)),HT(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:j,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:M}}},MT(e)),_T(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{width:"100%",padding:`${Z(E)} ${Z(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${C} linear`,appearance:"textfield",fontSize:"inherit"}),BT(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:x,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${C}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
296
|
+
${t}-handler-up-inner,
|
|
297
|
+
${t}-handler-down-inner
|
|
298
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:y,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Z(n)} ${r} ${z}`,transition:`all ${C} linear`,"&:active":{background:N},"&:hover":{height:"60%",[`
|
|
299
|
+
${t}-handler-up-inner,
|
|
300
|
+
${t}-handler-down-inner
|
|
301
|
+
`]:{color:S}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},jl()),{color:y,transition:`all ${C} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},xE(e,"lg")),xE(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
302
|
+
${t}-handler-up-disabled,
|
|
303
|
+
${t}-handler-down-disabled
|
|
304
|
+
`]:{cursor:"not-allowed"},[`
|
|
305
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
306
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
307
|
+
`]:{color:I}})}]},Kk=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:l,borderRadiusLG:c,borderRadiusSM:u,paddingInlineLG:d,paddingInlineSM:m,paddingBlockLG:g,paddingBlockSM:v,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Z(n)} 0`}},ad(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:l,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:d,[`input${t}-input`]:{padding:`${Z(g)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:m,[`input${t}-input`]:{padding:`${Z(v)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},Wk=nn("InputNumber",e=>{const t=Qt(e,tc(e));return[Vk(t),Kk(t),Xu(t)]},kk,{unitless:{handleOpacity:!0},resetFont:!1});var Uk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aI=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ot),a=s.useRef(null);s.useImperativeHandle(t,()=>a.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:m,addonBefore:g,addonAfter:v,prefix:h,suffix:b,bordered:y,readOnly:C,status:S,controls:x,variant:w}=e,E=Uk(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),R=n("input-number",m),N=Pr(R),[I,M,j]=Wk(R,N),{compactSize:T,compactItemClassnames:z}=Fi(R,r);let L=s.createElement($k,{className:`${R}-handler-up-inner`}),D=s.createElement(iy,{className:`${R}-handler-down-inner`});const A=typeof x=="boolean"?x:void 0;typeof x=="object"&&(L=typeof x.upIcon>"u"?L:s.createElement("span",{className:`${R}-handler-up-inner`},x.upIcon),D=typeof x.downIcon>"u"?D:s.createElement("span",{className:`${R}-handler-down-inner`},x.downIcon));const{hasFeedback:_,status:V,isFormItemInput:P,feedbackIcon:B}=s.useContext(Qr),K=ed(V,S),G=Hr(re=>{var oe;return(oe=u??T)!==null&&oe!==void 0?oe:re}),Q=s.useContext(ba),k=d??Q,[U,W]=td("inputNumber",w,y),X=_&&s.createElement(s.Fragment,null,B),J=te({[`${R}-lg`]:G==="large",[`${R}-sm`]:G==="small",[`${R}-rtl`]:r==="rtl",[`${R}-in-form-item`]:P},M),ne=`${R}-group`,se=s.createElement(Fk,Object.assign({ref:a,disabled:k,className:te(j,N,l,c,z),upHandler:L,downHandler:D,prefixCls:R,readOnly:C,controls:A,prefix:h,suffix:X||b,addonBefore:g&&s.createElement(Ai,{form:!0,space:!0},g),addonAfter:v&&s.createElement(Ai,{form:!0,space:!0},v),classNames:{input:J,variant:te({[`${R}-${U}`]:W},Ks(R,K,_)),affixWrapper:te({[`${R}-affix-wrapper-sm`]:G==="small",[`${R}-affix-wrapper-lg`]:G==="large",[`${R}-affix-wrapper-rtl`]:r==="rtl",[`${R}-affix-wrapper-without-controls`]:x===!1||k||C},M),wrapper:te({[`${ne}-rtl`]:r==="rtl"},M),groupWrapper:te({[`${R}-group-wrapper-sm`]:G==="small",[`${R}-group-wrapper-lg`]:G==="large",[`${R}-group-wrapper-rtl`]:r==="rtl",[`${R}-group-wrapper-${U}`]:W},Ks(`${R}-group-wrapper`,K,_),M)}},E));return I(se)}),em=aI,qk=e=>s.createElement(uo,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(aI,Object.assign({},e)));em._InternalPanelDoNotUseOrYouWillBeFired=qk;const oI=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:le.createElement(Pl,null)}),t};function iI(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,l,c,u;!((a=e.current)===null||a===void 0)&&a.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((c=e.current)===null||c===void 0)&&c.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Gk(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Xk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const id=s.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:l,disabled:c,onBlur:u,onFocus:d,suffix:m,allowClear:g,addonAfter:v,addonBefore:h,className:b,style:y,styles:C,rootClassName:S,onChange:x,classNames:w,variant:E,_skipAddonWarning:R}=e,N=Xk(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:I,direction:M,allowClear:j,autoComplete:T,className:z,style:L,classNames:D,styles:A}=Er("input"),_=I("input",n),V=s.useRef(null),P=Pr(_),[B,K,G]=FT(_,S),[Q]=kT(_,P),{compactSize:k,compactItemClassnames:U}=Fi(_,M),W=Hr(je=>{var ze;return(ze=l??k)!==null&&ze!==void 0?ze:je}),X=le.useContext(ba),J=c??X,{status:ne,hasFeedback:se,feedbackIcon:re}=s.useContext(Qr),oe=ed(ne,a),Se=Gk(e)||!!se;s.useRef(Se);const me=iI(V,!0),ie=je=>{me(),u==null||u(je)},ge=je=>{me(),d==null||d(je)},ue=je=>{me(),x==null||x(je)},ae=(se||m)&&le.createElement(le.Fragment,null,m,se&&re),ce=oI(g??j),[ye,Ce]=td("input",E,r);return B(Q(le.createElement(Ik,Object.assign({ref:Lr(t,V),prefixCls:_,autoComplete:T},N,{disabled:J,onBlur:ie,onFocus:ge,style:Object.assign(Object.assign({},L),y),styles:Object.assign(Object.assign({},A),C),suffix:ae,allowClear:ce,className:te(b,S,G,P,U,z),onChange:ue,addonBefore:h&&le.createElement(Ai,{form:!0,space:!0},h),addonAfter:v&&le.createElement(Ai,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},w),D),{input:te({[`${_}-sm`]:W==="small",[`${_}-lg`]:W==="large",[`${_}-rtl`]:M==="rtl"},w==null?void 0:w.input,D.input,K),variant:te({[`${_}-${ye}`]:Ce},Ks(_,oe)),affixWrapper:te({[`${_}-affix-wrapper-sm`]:W==="small",[`${_}-affix-wrapper-lg`]:W==="large",[`${_}-affix-wrapper-rtl`]:M==="rtl"},K),wrapper:te({[`${_}-group-rtl`]:M==="rtl"},K),groupWrapper:te({[`${_}-group-wrapper-sm`]:W==="small",[`${_}-group-wrapper-lg`]:W==="large",[`${_}-group-wrapper-rtl`]:M==="rtl",[`${_}-group-wrapper-${ye}`]:Ce},Ks(`${_}-group-wrapper`,oe,se),K)})}))))}),Yk={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},Ry=le.createContext({});var Qk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Zk=e=>Ir(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function Jk(e,t,n){const r=s.useMemo(()=>t||Zk(n),[t,n]);return s.useMemo(()=>r.map(l=>{var{span:c}=l,u=Qk(l,["span"]);return c==="filled"?Object.assign(Object.assign({},u),{filled:!0}):Object.assign(Object.assign({},u),{span:typeof c=="number"?c:KN(e,c)})}),[r,e])}var eV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function tV(e,t){let n=[],r=[],a=!1,l=0;return e.filter(c=>c).forEach(c=>{const{filled:u}=c,d=eV(c,["filled"]);if(u){r.push(d),n.push(r),r=[],l=0;return}const m=t-l;l+=c.span||1,l>=t?(l>t?(a=!0,r.push(Object.assign(Object.assign({},d),{span:m}))):r.push(d),n.push(r),r=[],l=0):r.push(d)}),r.length>0&&n.push(r),n=n.map(c=>{const u=c.reduce((d,m)=>d+(m.span||1),0);if(u<t){const d=c[c.length-1];return d.span=t-(u-(d.span||1)),c}return c}),[n,a]}const nV=(e,t)=>{const[n,r]=s.useMemo(()=>tV(t,e),[t,e]);return n},rV=({children:e})=>e,If=e=>e!=null,gh=e=>{const{itemPrefixCls:t,component:n,span:r,className:a,style:l,labelStyle:c,contentStyle:u,bordered:d,label:m,content:g,colon:v,type:h,styles:b}=e,y=n,{classNames:C}=s.useContext(Ry),S=Object.assign(Object.assign({},c),b==null?void 0:b.label),x=Object.assign(Object.assign({},u),b==null?void 0:b.content);return d?s.createElement(y,{colSpan:r,style:l,className:te(a,{[`${t}-item-${h}`]:h==="label"||h==="content",[C==null?void 0:C.label]:(C==null?void 0:C.label)&&h==="label",[C==null?void 0:C.content]:(C==null?void 0:C.content)&&h==="content"})},If(m)&&s.createElement("span",{style:S},m),If(g)&&s.createElement("span",{style:x},g)):s.createElement(y,{colSpan:r,style:l,className:te(`${t}-item`,a)},s.createElement("div",{className:`${t}-item-container`},If(m)&&s.createElement("span",{style:S,className:te(`${t}-item-label`,C==null?void 0:C.label,{[`${t}-item-no-colon`]:!v})},m),If(g)&&s.createElement("span",{style:x,className:te(`${t}-item-content`,C==null?void 0:C.content)},g)))};function vh(e,{colon:t,prefixCls:n,bordered:r},{component:a,type:l,showLabel:c,showContent:u,labelStyle:d,contentStyle:m,styles:g}){return e.map(({label:v,children:h,prefixCls:b=n,className:y,style:C,labelStyle:S,contentStyle:x,span:w=1,key:E,styles:R},N)=>typeof a=="string"?s.createElement(gh,{key:`${l}-${E||N}`,className:y,style:C,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},d),g==null?void 0:g.label),S),R==null?void 0:R.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},m),g==null?void 0:g.content),x),R==null?void 0:R.content)},span:w,colon:t,component:a,itemPrefixCls:b,bordered:r,label:c?v:null,content:u?h:null,type:l}):[s.createElement(gh,{key:`label-${E||N}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),g==null?void 0:g.label),C),S),R==null?void 0:R.label),span:1,colon:t,component:a[0],itemPrefixCls:b,bordered:r,label:v,type:"label"}),s.createElement(gh,{key:`content-${E||N}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m),g==null?void 0:g.content),C),x),R==null?void 0:R.content),span:w*2-1,component:a[1],itemPrefixCls:b,bordered:r,content:h,type:"content"})])}const aV=e=>{const t=s.useContext(Ry),{prefixCls:n,vertical:r,row:a,index:l,bordered:c}=e;return r?s.createElement(s.Fragment,null,s.createElement("tr",{key:`label-${l}`,className:`${n}-row`},vh(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),s.createElement("tr",{key:`content-${l}`,className:`${n}-row`},vh(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):s.createElement("tr",{key:l,className:`${n}-row`},vh(a,e,Object.assign({component:c?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},oV=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Z(e.padding)} ${Z(e.paddingLG)}`,borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Z(e.paddingSM)} ${Z(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Z(e.paddingXS)} ${Z(e.padding)}`}}}}}},iV=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:a,colonMarginRight:l,colonMarginLeft:c,titleMarginBottom:u}=e;return{[t]:Object.assign(Object.assign(Object.assign({},cn(e)),oV(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:u},[`${t}-title`]:Object.assign(Object.assign({},qo),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:a},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Z(c)} ${Z(l)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},lV=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),sV=nn("Descriptions",e=>{const t=Qt(e,{});return iV(t)},lV);var cV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Pn=e=>{const{prefixCls:t,title:n,extra:r,column:a,colon:l=!0,bordered:c,layout:u,children:d,className:m,rootClassName:g,style:v,size:h,labelStyle:b,contentStyle:y,styles:C,items:S,classNames:x}=e,w=cV(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:E,direction:R,className:N,style:I,classNames:M,styles:j}=Er("descriptions"),T=E("descriptions",t),z=mg(),L=s.useMemo(()=>{var G;return typeof a=="number"?a:(G=KN(z,Object.assign(Object.assign({},Yk),a)))!==null&&G!==void 0?G:3},[z,a]),D=Jk(z,S,d),A=Hr(h),_=nV(L,D),[V,P,B]=sV(T),K=s.useMemo(()=>({labelStyle:b,contentStyle:y,styles:{content:Object.assign(Object.assign({},j.content),C==null?void 0:C.content),label:Object.assign(Object.assign({},j.label),C==null?void 0:C.label)},classNames:{label:te(M.label,x==null?void 0:x.label),content:te(M.content,x==null?void 0:x.content)}}),[b,y,C,x,M,j]);return V(s.createElement(Ry.Provider,{value:K},s.createElement("div",Object.assign({className:te(T,N,M.root,x==null?void 0:x.root,{[`${T}-${A}`]:A&&A!=="default",[`${T}-bordered`]:!!c,[`${T}-rtl`]:R==="rtl"},m,g,P,B),style:Object.assign(Object.assign(Object.assign(Object.assign({},I),j.root),C==null?void 0:C.root),v)},w),(n||r)&&s.createElement("div",{className:te(`${T}-header`,M.header,x==null?void 0:x.header),style:Object.assign(Object.assign({},j.header),C==null?void 0:C.header)},n&&s.createElement("div",{className:te(`${T}-title`,M.title,x==null?void 0:x.title),style:Object.assign(Object.assign({},j.title),C==null?void 0:C.title)},n),r&&s.createElement("div",{className:te(`${T}-extra`,M.extra,x==null?void 0:x.extra),style:Object.assign(Object.assign({},j.extra),C==null?void 0:C.extra)},r)),s.createElement("div",{className:`${T}-view`},s.createElement("table",null,s.createElement("tbody",null,_.map((G,Q)=>s.createElement(aV,{key:Q,index:Q,colon:l,prefixCls:T,vertical:u==="vertical",bordered:c,row:G}))))))))};Pn.Item=rV;function $E(e){return["small","middle","large"].includes(e)}function wE(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const uV=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:l,fontSizeLG:c,fontSizeSM:u,borderRadiusLG:d,borderRadiusSM:m,colorBgContainerDisabled:g,lineWidth:v}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:g,borderWidth:v,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:c,borderRadius:d},"&-small":{paddingInline:l,borderRadius:m,fontSize:u},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Xu(e,{focus:!1})]}},dV=nn(["Space","Addon"],e=>[uV(e)]);var fV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const mV=le.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:l}=e,c=fV(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:d}=le.useContext(Ot),m=u("space-addon",l),[g,v,h]=dV(m),{compactItemClassnames:b,compactSize:y}=Fi(m,d),C=te(m,v,b,h,{[`${m}-${y}`]:y},n);return g(le.createElement("div",Object.assign({ref:t,className:C,style:a},c),r))}),lI=le.createContext({latestIndex:0}),gV=lI.Provider,vV=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:l}=s.useContext(lI);return n==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:e,style:a},n),t<l&&r&&s.createElement("span",{className:`${e}-split`},r))},pV=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"}}}},hV=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},bV=nn("Space",e=>{const t=Qt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[pV(t),hV(t)]},()=>({}),{resetStyle:!1});var yV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const SV=s.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:l,className:c,style:u,classNames:d,styles:m}=Er("space"),{size:g=l??"small",align:v,className:h,rootClassName:b,children:y,direction:C="horizontal",prefixCls:S,split:x,style:w,wrap:E=!1,classNames:R,styles:N}=e,I=yV(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[M,j]=Array.isArray(g)?g:[g,g],T=$E(j),z=$E(M),L=wE(j),D=wE(M),A=Ir(y,{keepEmpty:!0}),_=v===void 0&&C==="horizontal"?"center":v,V=r("space",S),[P,B,K]=bV(V),G=te(V,c,B,`${V}-${C}`,{[`${V}-rtl`]:a==="rtl",[`${V}-align-${_}`]:_,[`${V}-gap-row-${j}`]:T,[`${V}-gap-col-${M}`]:z},h,b,K),Q=te(`${V}-item`,(n=R==null?void 0:R.item)!==null&&n!==void 0?n:d.item),k=Object.assign(Object.assign({},m.item),N==null?void 0:N.item),U=A.map((J,ne)=>{const se=(J==null?void 0:J.key)||`${Q}-${ne}`;return s.createElement(vV,{className:Q,key:se,index:ne,split:x,style:k},J)}),W=s.useMemo(()=>({latestIndex:A.reduce((ne,se,re)=>se!=null?re:ne,0)}),[A]);if(A.length===0)return null;const X={};return E&&(X.flexWrap="wrap"),!z&&D&&(X.columnGap=M),!T&&L&&(X.rowGap=j),P(s.createElement("div",Object.assign({ref:t,className:G,style:Object.assign(Object.assign(Object.assign({},X),u),w)},I),s.createElement(gV,{value:W},U)))}),zn=SV;zn.Compact=Y_;zn.Addon=mV;var CV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sI=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(Ot),{prefixCls:a,type:l="default",danger:c,disabled:u,loading:d,onClick:m,htmlType:g,children:v,className:h,menu:b,arrow:y,autoFocus:C,overlay:S,trigger:x,align:w,open:E,onOpenChange:R,placement:N,getPopupContainer:I,href:M,icon:j=s.createElement(by,null),title:T,buttonsRender:z=me=>me,mouseEnterDelay:L,mouseLeaveDelay:D,overlayClassName:A,overlayStyle:_,destroyOnHidden:V,destroyPopupOnHide:P,dropdownRender:B,popupRender:K}=e,G=CV(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),Q=n("dropdown",a),k=`${Q}-button`,W={menu:b,arrow:y,autoFocus:C,align:w,disabled:u,trigger:u?[]:x,onOpenChange:R,getPopupContainer:I||t,mouseEnterDelay:L,mouseLeaveDelay:D,overlayClassName:A,overlayStyle:_,destroyOnHidden:V,popupRender:K||B},{compactSize:X,compactItemClassnames:J}=Fi(Q,r),ne=te(k,J,h);"destroyPopupOnHide"in e&&(W.destroyPopupOnHide=P),"overlay"in e&&(W.overlay=S),"open"in e&&(W.open=E),"placement"in e?W.placement=N:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const se=s.createElement(wn,{type:l,danger:c,disabled:u,loading:d,onClick:m,htmlType:g,href:M,title:T},v),re=s.createElement(wn,{type:l,danger:c,icon:j}),[oe,Se]=z([se,re]);return s.createElement(zn.Compact,Object.assign({className:ne,size:X,block:!0},G),oe,s.createElement(yg,Object.assign({},W),Se))};sI.__ANT_BUTTON=!0;const Ny=yg;Ny.Button=sI;function xV(e){return e==null?null:typeof e=="object"&&!s.isValidElement(e)?e:{title:e}}function Rm(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const $V=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
308
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
309
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},wV=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),EE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},EV=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},cn(e)),wV(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},EE(e,e.controlHeightSM)),"&-large":Object.assign({},EE(e,e.controlHeightLG))})}},OV=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:l,labelColor:c,labelFontSize:u,labelHeight:d,labelColonMarginInlineStart:m,labelColonMarginInlineEnd:g,itemMarginBottom:v}=e;return{[t]:Object.assign(Object.assign({},cn(e)),{marginBottom:v,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
310
|
+
&-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:d,color:c,fontSize:u,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:l,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:m,marginInlineEnd:g},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ub,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ml=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),RV=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,
|
|
311
|
+
${t}-col-xl-24${n}-label`]:ml(e)}}},NV=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,
|
|
312
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},TV=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ml(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},IV=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
313
|
+
${r}-col-24${n}-label,
|
|
314
|
+
${r}-col-xl-24${n}-label`]:ml(e)},[`@media (max-width: ${Z(e.screenXSMax)})`]:[TV(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ml(e)}}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ml(e)}}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ml(e)}}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ml(e)}}}}},MV=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),cI=(e,t)=>Qt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Ty=nn("Form",(e,{rootPrefixCls:t})=>{const n=cI(e,t);return[EV(n),OV(n),$V(n),RV(n),NV(n),IV(n),Zm(n),Ub]},MV,{order:-1e3}),OE=[];function ph(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const uI=({help:e,helpStatus:t,errors:n=OE,warnings:r=OE,className:a,fieldId:l,onVisibleChanged:c})=>{const{prefixCls:u}=s.useContext(ey),d=`${u}-item-explain`,m=Pr(u),[g,v,h]=Ty(u,m),b=s.useMemo(()=>Mu(u),[u]),y=Rm(n),C=Rm(r),S=s.useMemo(()=>e!=null?[ph(e,"help",t)]:[].concat(De(y.map((E,R)=>ph(E,"error","error",R))),De(C.map((E,R)=>ph(E,"warning","warning",R)))),[e,t,y,C]),x=s.useMemo(()=>{const E={};return S.forEach(({key:R})=>{E[R]=(E[R]||0)+1}),S.map((R,N)=>Object.assign(Object.assign({},R),{key:E[R.key]>1?`${R.key}-fallback-${N}`:R.key}))},[S]),w={};return l&&(w.id=`${l}_help`),g(s.createElement(Sa,{motionDeadline:b.motionDeadline,motionName:`${u}-show-help`,visible:!!x.length,onVisibleChanged:c},E=>{const{className:R,style:N}=E;return s.createElement("div",Object.assign({},w,{className:te(d,R,h,m,a,v),style:N}),s.createElement(uR,Object.assign({keys:x},Mu(u),{motionName:`${u}-show-help-item`,component:!1}),I=>{const{key:M,error:j,errorStatus:T,className:z,style:L}=I;return s.createElement("div",{key:M,className:te(z,{[`${d}-${T}`]:T}),style:L},j)}))}))};var jV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PV=(e,t)=>{const n=s.useContext(ba),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:u,className:d,style:m}=Er("form"),{prefixCls:g,className:v,rootClassName:h,size:b,disabled:y=n,form:C,colon:S,labelAlign:x,labelWrap:w,labelCol:E,wrapperCol:R,hideRequiredMark:N,layout:I="horizontal",scrollToFirstError:M,requiredMark:j,onFinishFailed:T,name:z,style:L,feedbackIcons:D,variant:A}=e,_=jV(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),V=Hr(b),P=s.useContext(LO),B=s.useMemo(()=>j!==void 0?j:N?!1:l!==void 0?l:!0,[N,j,l]),K=S??c,G=r("form",g),Q=Pr(G),[k,U,W]=Ty(G,Q),X=te(G,`${G}-${I}`,{[`${G}-hide-required-mark`]:B===!1,[`${G}-rtl`]:a==="rtl",[`${G}-${V}`]:V},W,Q,U,d,v,h),[J]=TT(C),{__INTERNAL__:ne}=J;ne.name=z;const se=s.useMemo(()=>({name:z,labelAlign:x,labelCol:E,labelWrap:w,wrapperCol:R,layout:I,colon:K,requiredMark:B,itemRef:ne.itemRef,form:J,feedbackIcons:D}),[z,x,E,R,I,K,B,J,D]),re=s.useRef(null);s.useImperativeHandle(t,()=>{var me;return Object.assign(Object.assign({},J),{nativeElement:(me=re.current)===null||me===void 0?void 0:me.nativeElement})});const oe=(me,ie)=>{if(me){let ge={block:"nearest"};typeof me=="object"&&(ge=Object.assign(Object.assign({},ge),me)),J.scrollToField(ie,ge)}},Se=me=>{if(T==null||T(me),me.errorFields.length){const ie=me.errorFields[0].name;if(M!==void 0){oe(M,ie);return}u!==void 0&&oe(u,ie)}};return k(s.createElement(JR.Provider,{value:A},s.createElement(jb,{disabled:y},s.createElement(El.Provider,{value:V},s.createElement(QR,{validateMessages:P},s.createElement(Go.Provider,{value:se},s.createElement(ZR,{status:!0},s.createElement(Qs,Object.assign({id:z},_,{name:z,onFinishFailed:Se,form:J,ref:re,style:Object.assign(Object.assign({},m),L),className:X})))))))))},zV=s.forwardRef(PV);function _V(e){if(typeof e=="function")return e;const t=Ir(e);return t.length<=1?t[0]:t}const dI=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Qr);return{status:e,errors:t,warnings:n}};dI.Context=Qr;function DV(e){const[t,n]=s.useState(e),r=s.useRef(null),a=s.useRef([]),l=s.useRef(!1);s.useEffect(()=>(l.current=!1,()=>{l.current=!0,tn.cancel(r.current),r.current=null}),[]);function c(u){l.current||(r.current===null&&(a.current=[],r.current=tn(()=>{r.current=null,n(d=>{let m=d;return a.current.forEach(g=>{m=g(m)}),m})})),a.current.push(u))}return[t,c]}function AV(){const{itemRef:e}=s.useContext(Go),t=s.useRef({});function n(r,a){const l=a&&typeof a=="object"&&Li(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==l)&&(t.current.name=c,t.current.originRef=l,t.current.ref=Lr(e(r),l)),t.current.ref}return n}const BV=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},LV=Xs(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=cI(e,t);return BV(n)});var HV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const FV=24,kV=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:d,extra:m,help:g,fieldId:v,marginBottom:h,onErrorVisibleChanged:b,label:y}=e,C=`${t}-item`,S=s.useContext(Go),x=s.useMemo(()=>{let _=Object.assign({},a||S.wrapperCol||{});return y===null&&!r&&!a&&S.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(P=>{const B=P?[P]:[],K=sa(S.labelCol,B),G=typeof K=="object"?K:{},Q=sa(_,B),k=typeof Q=="object"?Q:{};"span"in G&&!("offset"in k)&&G.span<FV&&(_=Ua(_,[].concat(B,["offset"]),G.span))}),_},[a,S.wrapperCol,S.labelCol,y,r]),w=te(`${C}-control`,x.className),E=s.useMemo(()=>{const{labelCol:_,wrapperCol:V}=S;return HV(S,["labelCol","wrapperCol"])},[S]),R=s.useRef(null),[N,I]=s.useState(0);en(()=>{m&&R.current?I(R.current.clientHeight):I(0)},[m]);const M=s.createElement("div",{className:`${C}-control-input`},s.createElement("div",{className:`${C}-control-input-content`},l)),j=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),T=h!==null||c.length||u.length?s.createElement(ey.Provider,{value:j},s.createElement(uI,{fieldId:v,errors:c,warnings:u,help:g,helpStatus:n,className:`${C}-explain-connected`,onVisibleChanged:b})):null,z={};v&&(z.id=`${v}_extra`);const L=m?s.createElement("div",Object.assign({},z,{className:`${C}-extra`,ref:R}),m):null,D=T||L?s.createElement("div",{className:`${C}-additional`,style:h?{minHeight:h+N}:{}},T,L):null,A=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:M,errorList:T,extra:L}):s.createElement(s.Fragment,null,M,D);return s.createElement(Go.Provider,{value:E},s.createElement(hl,Object.assign({},x,{className:w}),A),s.createElement(LV,{prefixCls:t}))};var VV={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"},KV=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:VV}))},WV=s.forwardRef(KV),UV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qV=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:l,required:c,requiredMark:u,tooltip:d,vertical:m})=>{var g;const[v]=co("Form"),{labelAlign:h,labelCol:b,labelWrap:y,colon:C}=s.useContext(Go);if(!t)return null;const S=r||b||{},x=a||h,w=`${e}-item-label`,E=te(w,x==="left"&&`${w}-left`,S.className,{[`${w}-wrap`]:!!y});let R=t;const N=l===!0||C!==!1&&l!==!1;N&&!m&&typeof t=="string"&&t.trim()&&(R=t.replace(/[:|:]\s*$/,""));const M=xV(d);if(M){const{icon:A=s.createElement(WV,null)}=M,_=UV(M,["icon"]),V=s.createElement(ja,Object.assign({},_),s.cloneElement(A,{className:`${e}-item-tooltip`,title:"",onClick:P=>{P.preventDefault()},tabIndex:null}));R=s.createElement(s.Fragment,null,R,V)}const j=u==="optional",T=typeof u=="function",z=u===!1;T?R=u(R,{required:!!c}):j&&!c&&(R=s.createElement(s.Fragment,null,R,s.createElement("span",{className:`${e}-item-optional`,title:""},(v==null?void 0:v.optional)||((g=io.Form)===null||g===void 0?void 0:g.optional))));let L;z?L="hidden":(j||T)&&(L="optional");const D=te({[`${e}-item-required`]:c,[`${e}-item-required-mark-${L}`]:L,[`${e}-item-no-colon`]:!N});return s.createElement(hl,Object.assign({},S,{className:E}),s.createElement("label",{htmlFor:n,className:D,title:typeof t=="string"?t:""},R))},GV={success:Vu,warning:zl,error:Pl,validating:_l};function fI({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:l,meta:c,noStyle:u,name:d}){const m=`${l}-item`,{feedbackIcons:g}=s.useContext(Go),v=NT(t,n,c,null,!!r,a),{isFormItemInput:h,status:b,hasFeedback:y,feedbackIcon:C,name:S}=s.useContext(Qr),x=s.useMemo(()=>{var w;let E;if(r){const N=r!==!0&&r.icons||g,I=v&&((w=N==null?void 0:N({status:v,errors:t,warnings:n}))===null||w===void 0?void 0:w[v]),M=v?GV[v]:null;E=I!==!1&&M?s.createElement("span",{className:te(`${m}-feedback-icon`,`${m}-feedback-icon-${v}`)},I||s.createElement(M,null)):null}const R={status:v||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:E,isFormItemInput:!0,name:d};return u&&(R.status=(v??b)||"",R.isFormItemInput=h,R.hasFeedback=!!(r??y),R.feedbackIcon=r!==void 0?R.feedbackIcon:C,R.name=d??S),R},[v,r,u,h,b]);return s.createElement(Qr.Provider,{value:x},e)}var XV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function YV(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:l,errors:c,warnings:u,validateStatus:d,meta:m,hasFeedback:g,hidden:v,children:h,fieldId:b,required:y,isRequired:C,onSubItemMetaChange:S,layout:x,name:w}=e,E=XV(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),R=`${t}-item`,{requiredMark:N,layout:I}=s.useContext(Go),M=x||I,j=M==="vertical",T=s.useRef(null),z=Rm(c),L=Rm(u),D=l!=null,A=!!(D||c.length||u.length),_=!!T.current&&Uu(T.current),[V,P]=s.useState(null);en(()=>{if(A&&T.current){const k=getComputedStyle(T.current);P(Number.parseInt(k.marginBottom,10))}},[A,_]);const B=k=>{k||P(null)},G=((k=!1)=>{const U=k?z:m.errors,W=k?L:m.warnings;return NT(U,W,m,"",!!g,d)})(),Q=te(R,n,r,{[`${R}-with-help`]:D||z.length||L.length,[`${R}-has-feedback`]:G&&g,[`${R}-has-success`]:G==="success",[`${R}-has-warning`]:G==="warning",[`${R}-has-error`]:G==="error",[`${R}-is-validating`]:G==="validating",[`${R}-hidden`]:v,[`${R}-${M}`]:M});return s.createElement("div",{className:Q,style:a,ref:T},s.createElement(Em,Object.assign({className:`${R}-row`},_n(E,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),s.createElement(qV,Object.assign({htmlFor:b},e,{requiredMark:N,required:y??C,prefixCls:t,vertical:j})),s.createElement(kV,Object.assign({},e,m,{errors:z,warnings:L,prefixCls:t,status:G,help:l,marginBottom:V,onErrorVisibleChanged:B}),s.createElement(YR.Provider,{value:S},s.createElement(fI,{prefixCls:t,meta:m,errors:m.errors,warnings:m.warnings,hasFeedback:g,validateStatus:G,name:w},h)))),!!V&&s.createElement("div",{className:`${R}-margin-offset`,style:{marginBottom:-V}}))}const QV="__SPLIT__";function ZV(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const l=e[a],c=t[a];return l===c||typeof l=="function"||typeof c=="function"})}const JV=s.memo(({children:e})=>e,(e,t)=>ZV(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function RE(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function eK(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:m,label:g,messageVariables:v,trigger:h="onChange",validateTrigger:b,hidden:y,help:C,layout:S}=e,{getPrefixCls:x}=s.useContext(Ot),{name:w}=s.useContext(Go),E=_V(d),R=typeof E=="function",N=s.useContext(YR),{validateTrigger:I}=s.useContext(Rl),M=b!==void 0?b:I,j=t!=null,T=x("form",l),z=Pr(T),[L,D,A]=Ty(T,z);Oo();const _=s.useContext(Pu),V=s.useRef(null),[P,B]=DV({}),[K,G]=Ol(()=>RE()),Q=se=>{const re=_==null?void 0:_.getKey(se.name);if(G(se.destroy?RE():se,!0),n&&C!==!1&&N){let oe=se.name;if(se.destroy)oe=V.current||oe;else if(re!==void 0){const[Se,me]=re;oe=[Se].concat(De(me)),V.current=oe}N(se,oe)}},k=(se,re)=>{B(oe=>{const Se=Object.assign({},oe),ie=[].concat(De(se.name.slice(0,-1)),De(re)).join(QV);return se.destroy?delete Se[ie]:Se[ie]=se,Se})},[U,W]=s.useMemo(()=>{const se=De(K.errors),re=De(K.warnings);return Object.values(P).forEach(oe=>{se.push.apply(se,De(oe.errors||[])),re.push.apply(re,De(oe.warnings||[]))}),[se,re]},[P,K.errors,K.warnings]),X=AV();function J(se,re,oe){return n&&!y?s.createElement(fI,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:K,errors:U,warnings:W,noStyle:!0,name:t},se):s.createElement(YV,Object.assign({key:"row"},e,{className:te(r,A,z,D),prefixCls:T,fieldId:re,isRequired:oe,errors:U,warnings:W,meta:K,onSubItemMetaChange:k,layout:S,name:t}),se)}if(!j&&!R&&!a)return L(J(E));let ne={};return typeof g=="string"?ne.label=g:t&&(ne.label=String(t)),v&&(ne=Object.assign(Object.assign({},ne),v)),L(s.createElement(Zb,Object.assign({},e,{messageVariables:ne,trigger:h,validateTrigger:M,onMetaChange:Q}),(se,re,oe)=>{const Se=vu(t).length&&re?re.name:[],me=RT(Se,w),ie=m!==void 0?m:!!(u!=null&&u.some(ae=>{if(ae&&typeof ae=="object"&&ae.required&&!ae.warningOnly)return!0;if(typeof ae=="function"){const ce=ae(oe);return(ce==null?void 0:ce.required)&&!(ce!=null&&ce.warningOnly)}return!1})),ge=Object.assign({},se);let ue=null;if(Array.isArray(E)&&j)ue=E;else if(!(R&&(!(c||a)||j))){if(!(a&&!R&&!j))if(s.isValidElement(E)){const ae=Object.assign(Object.assign({},E.props),ge);if(ae.id||(ae.id=me),C||U.length>0||W.length>0||e.extra){const Ce=[];(C||U.length>0)&&Ce.push(`${me}_help`),e.extra&&Ce.push(`${me}_extra`),ae["aria-describedby"]=Ce.join(" ")}U.length>0&&(ae["aria-invalid"]="true"),ie&&(ae["aria-required"]="true"),oo(E)&&(ae.ref=X(Se,E)),new Set([].concat(De(vu(h)),De(vu(M)))).forEach(Ce=>{ae[Ce]=(...je)=>{var ze,ve,Te,Ee,xe;(Te=ge[Ce])===null||Te===void 0||(ze=Te).call.apply(ze,[ge].concat(je)),(xe=(Ee=E.props)[Ce])===null||xe===void 0||(ve=xe).call.apply(ve,[Ee].concat(je))}});const ye=[ae["aria-required"],ae["aria-invalid"],ae["aria-describedby"]];ue=s.createElement(JV,{control:ge,update:E,childProps:ye},wr(E,ae))}else R&&(c||a)&&!j?ue=E(oe):ue=E}return J(ue,me,ie)}))}const mI=eK;mI.useStatus=dI;var tK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nK=e=>{var{prefixCls:t,children:n}=e,r=tK(e,["prefixCls","children"]);const{getPrefixCls:a}=s.useContext(Ot),l=a("form",t),c=s.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return s.createElement(UR,Object.assign({},r),(u,d,m)=>s.createElement(ey.Provider,{value:c},n(u.map(g=>Object.assign(Object.assign({},g),{fieldKey:g.key})),d,{errors:m.errors,warnings:m.warnings})))};function rK(){const{form:e}=s.useContext(Go);return e}const Et=zV;Et.Item=mI;Et.List=nK;Et.ErrorList=uI;Et.useForm=TT;Et.useFormInstance=rK;Et.useWatch=XR;Et.Provider=QR;Et.create=()=>{};var aK={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"},oK=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:aK}))},gI=s.forwardRef(oK);function NE(e,t,n,r){var a=xu.unstable_batchedUpdates?function(c){xu.unstable_batchedUpdates(n,c)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var iK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},lK=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:iK}))},TE=s.forwardRef(lK);const sK=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ot),{prefixCls:r,className:a}=e,l=t("input-group",r),c=t("input"),[u,d,m]=kT(c),g=te(l,m,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:n==="rtl"},d,a),v=s.useContext(Qr),h=s.useMemo(()=>Object.assign(Object.assign({},v),{isFormItemInput:!1}),[v]);return u(s.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Qr.Provider,{value:h},e.children)))},cK=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},uK=nn(["Input","OTP"],e=>{const t=Qt(e,tc(e));return cK(t)},nc);var dK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fK=s.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:l,index:c,mask:u}=e,d=dK(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:m}=s.useContext(Ot),g=m("otp"),v=typeof u=="string"?u:r,h=s.useRef(null);s.useImperativeHandle(t,()=>h.current);const b=S=>{a(c,S.target.value)},y=()=>{tn(()=>{var S;const x=(S=h.current)===null||S===void 0?void 0:S.input;document.activeElement===x&&x&&x.select()})},C=S=>{const{key:x,ctrlKey:w,metaKey:E}=S;x==="ArrowLeft"?l(c-1):x==="ArrowRight"?l(c+1):x==="z"&&(w||E)?S.preventDefault():x==="Backspace"&&!r&&l(c-1),y()};return s.createElement("span",{className:`${g}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&s.createElement("span",{className:`${g}-mask-icon`,"aria-hidden":"true"},v),s.createElement(id,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},d,{ref:h,value:r,onInput:b,onFocus:y,onKeyDown:C,onMouseDown:y,onMouseUp:y,className:te(n,{[`${g}-mask-input`]:u})})))});var mK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Mf(e){return(e||"").split("")}const gK=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?s.createElement("span",{className:`${n}-separator`},a):null},vK=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:l,value:c,onChange:u,formatter:d,separator:m,variant:g,disabled:v,status:h,autoFocus:b,mask:y,type:C,onInput:S,inputMode:x}=e,w=mK(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:E,direction:R}=s.useContext(Ot),N=E("otp",n),I=Ar(w,{aria:!0,data:!0,attr:!0}),[M,j,T]=uK(N),z=Hr(X=>a??X),L=s.useContext(Qr),D=ed(L.status,h),A=s.useMemo(()=>Object.assign(Object.assign({},L),{status:D,hasFeedback:!1,feedbackIcon:null}),[L,D]),_=s.useRef(null),V=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var X;(X=V.current[0])===null||X===void 0||X.focus()},blur:()=>{var X;for(let J=0;J<r;J+=1)(X=V.current[J])===null||X===void 0||X.blur()},nativeElement:_.current}));const P=X=>d?d(X):X,[B,K]=s.useState(()=>Mf(P(l||"")));s.useEffect(()=>{c!==void 0&&K(Mf(c))},[c]);const G=Sn(X=>{K(X),S&&S(X),u&&X.length===r&&X.every(J=>J)&&X.some((J,ne)=>B[ne]!==J)&&u(X.join(""))}),Q=Sn((X,J)=>{let ne=De(B);for(let re=0;re<X;re+=1)ne[re]||(ne[re]="");J.length<=1?ne[X]=J:ne=ne.slice(0,X).concat(Mf(J)),ne=ne.slice(0,r);for(let re=ne.length-1;re>=0&&!ne[re];re-=1)ne.pop();const se=P(ne.map(re=>re||" ").join(""));return ne=Mf(se).map((re,oe)=>re===" "&&!ne[oe]?ne[oe]:re),ne}),k=(X,J)=>{var ne;const se=Q(X,J),re=Math.min(X+J.length,r-1);re!==X&&se[X]!==void 0&&((ne=V.current[re])===null||ne===void 0||ne.focus()),G(se)},U=X=>{var J;(J=V.current[X])===null||J===void 0||J.focus()},W={variant:g,disabled:v,status:D,mask:y,type:C,inputMode:x};return M(s.createElement("div",Object.assign({},I,{ref:_,className:te(N,{[`${N}-sm`]:z==="small",[`${N}-lg`]:z==="large",[`${N}-rtl`]:R==="rtl"},T,j),role:"group"}),s.createElement(Qr.Provider,{value:A},Array.from({length:r}).map((X,J)=>{const ne=`otp-${J}`,se=B[J]||"";return s.createElement(s.Fragment,{key:ne},s.createElement(fK,Object.assign({ref:re=>{V.current[J]=re},index:J,size:z,htmlSize:1,className:`${N}-input`,onChange:k,value:se,onActiveChange:U,autoFocus:J===0&&b},W)),J<r-1&&s.createElement(gK,{separator:m,index:J,prefixCls:N}))}))))});var pK={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"},hK=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:pK}))},bK=s.forwardRef(hK),yK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const SK=e=>e?s.createElement(gI,null):s.createElement(bK,null),CK={click:"onClick",hover:"onMouseOver"},xK=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:l=SK,suffix:c}=e,u=s.useContext(ba),d=n??u,m=typeof a=="object"&&a.visible!==void 0,[g,v]=s.useState(()=>m?a.visible:!1),h=s.useRef(null);s.useEffect(()=>{m&&v(a.visible)},[m,a]);const b=iI(h),y=()=>{var L;if(d)return;g&&b();const D=!g;v(D),typeof a=="object"&&((L=a.onVisibleChange)===null||L===void 0||L.call(a,D))},C=L=>{const D=CK[r]||"",A=l(g),_={[D]:y,className:`${L}-icon`,key:"passwordIcon",onMouseDown:V=>{V.preventDefault()},onMouseUp:V=>{V.preventDefault()}};return s.cloneElement(s.isValidElement(A)?A:s.createElement("span",null,A),_)},{className:S,prefixCls:x,inputPrefixCls:w,size:E}=e,R=yK(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:N}=s.useContext(Ot),I=N("input",w),M=N("input-password",x),j=a&&C(M),T=te(M,S,{[`${M}-${E}`]:!!E}),z=Object.assign(Object.assign({},_n(R,["suffix","iconRender","visibilityToggle"])),{type:g?"text":"password",className:T,prefixCls:I,suffix:s.createElement(s.Fragment,null,j,c)});return E&&(z.size=E),s.createElement(id,Object.assign({ref:Lr(t,h)},z))});var $K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const wK=s.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:l,suffix:c,enterButton:u=!1,addonAfter:d,loading:m,disabled:g,onSearch:v,onChange:h,onCompositionStart:b,onCompositionEnd:y,variant:C,onPressEnter:S}=e,x=$K(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:w,direction:E}=s.useContext(Ot),R=s.useRef(!1),N=w("input-search",n),I=w("input",r),{compactSize:M}=Fi(N,E),j=Hr(W=>{var X;return(X=l??M)!==null&&X!==void 0?X:W}),T=s.useRef(null),z=W=>{W!=null&&W.target&&W.type==="click"&&v&&v(W.target.value,W,{source:"clear"}),h==null||h(W)},L=W=>{var X;document.activeElement===((X=T.current)===null||X===void 0?void 0:X.input)&&W.preventDefault()},D=W=>{var X,J;v&&v((J=(X=T.current)===null||X===void 0?void 0:X.input)===null||J===void 0?void 0:J.value,W,{source:"input"})},A=W=>{R.current||m||(S==null||S(W),D(W))},_=typeof u=="boolean"?s.createElement(ly,null):null,V=`${N}-button`;let P;const B=u||{},K=B.type&&B.type.__ANT_BUTTON===!0;K||B.type==="button"?P=wr(B,Object.assign({onMouseDown:L,onClick:W=>{var X,J;(J=(X=B==null?void 0:B.props)===null||X===void 0?void 0:X.onClick)===null||J===void 0||J.call(X,W),D(W)},key:"enterButton"},K?{className:V,size:j}:{})):P=s.createElement(wn,{className:V,color:u?"primary":"default",size:j,disabled:g,key:"enterButton",onMouseDown:L,onClick:D,loading:m,icon:_,variant:C==="borderless"||C==="filled"||C==="underlined"?"text":u?"solid":void 0},u),d&&(P=[P,wr(d,{key:"addonAfter"})]);const G=te(N,{[`${N}-rtl`]:E==="rtl",[`${N}-${j}`]:!!j,[`${N}-with-button`]:!!u},a),Q=W=>{R.current=!0,b==null||b(W)},k=W=>{R.current=!1,y==null||y(W)},U=Object.assign(Object.assign({},x),{className:G,prefixCls:I,type:"search",size:j,variant:C,onPressEnter:A,onCompositionStart:Q,onCompositionEnd:k,addonAfter:P,suffix:c,onChange:z,disabled:g,_skipAddonWarning:!0});return s.createElement(id,Object.assign({ref:Lr(T,t)},U))});var EK=`
|
|
315
|
+
min-height:0 !important;
|
|
316
|
+
max-height:none !important;
|
|
317
|
+
height:0 !important;
|
|
318
|
+
visibility:hidden !important;
|
|
319
|
+
overflow:hidden !important;
|
|
320
|
+
position:absolute !important;
|
|
321
|
+
z-index:-1000 !important;
|
|
322
|
+
top:0 !important;
|
|
323
|
+
right:0 !important;
|
|
324
|
+
pointer-events: none !important;
|
|
325
|
+
`,OK=["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"],hh={},Ia;function RK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&hh[n])return hh[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=OK.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:c,boxSizing:a};return t&&n&&(hh[n]=d),d}function NK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ia||(Ia=document.createElement("textarea"),Ia.setAttribute("tab-index","-1"),Ia.setAttribute("aria-hidden","true"),Ia.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ia)),e.getAttribute("wrap")?Ia.setAttribute("wrap",e.getAttribute("wrap")):Ia.removeAttribute("wrap");var a=RK(e,t),l=a.paddingSize,c=a.borderSize,u=a.boxSizing,d=a.sizingStyle;Ia.setAttribute("style","".concat(d,";").concat(EK)),Ia.value=e.value||e.placeholder||"";var m=void 0,g=void 0,v,h=Ia.scrollHeight;if(u==="border-box"?h+=c:u==="content-box"&&(h-=l),n!==null||r!==null){Ia.value=" ";var b=Ia.scrollHeight-l;n!==null&&(m=b*n,u==="border-box"&&(m=m+l+c),h=Math.max(m,h)),r!==null&&(g=b*r,u==="border-box"&&(g=g+l+c),v=h>g?"":"hidden",h=Math.min(g,h))}var y={height:h,overflowY:v,resize:"none"};return m&&(y.minHeight=m),g&&(y.maxHeight=g),y}var TK=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bh=0,yh=1,Sh=2,IK=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,l=n.value,c=n.autoSize,u=n.onResize,d=n.className,m=n.style,g=n.disabled,v=n.onChange;n.onInternalAutoSize;var h=Pt(n,TK),b=Gn(a,{value:l,postState:function(W){return W??""}}),y=de(b,2),C=y[0],S=y[1],x=function(W){S(W.target.value),v==null||v(W)},w=s.useRef();s.useImperativeHandle(t,function(){return{textArea:w.current}});var E=s.useMemo(function(){return c&&$t(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),R=de(E,2),N=R[0],I=R[1],M=!!c,j=s.useState(Sh),T=de(j,2),z=T[0],L=T[1],D=s.useState(),A=de(D,2),_=A[0],V=A[1],P=function(){L(bh)};en(function(){M&&P()},[l,N,I,M]),en(function(){if(z===bh)L(yh);else if(z===yh){var U=NK(w.current,!1,N,I);L(Sh),V(U)}},[z]);var B=s.useRef(),K=function(){tn.cancel(B.current)},G=function(W){z===Sh&&(u==null||u(W),c&&(K(),B.current=tn(function(){P()})))};s.useEffect(function(){return K},[]);var Q=M?_:null,k=ee(ee({},m),Q);return(z===bh||z===yh)&&(k.overflowY="hidden",k.overflowX="hidden"),s.createElement(ca,{onResize:G,disabled:!(c||u)},s.createElement("textarea",Oe({},h,{ref:w,style:k,className:te(r,d,q({},"".concat(r,"-disabled"),g)),disabled:g,value:C,onChange:x})))}),MK=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],jK=le.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,m=e.maxLength,g=e.onCompositionStart,v=e.onCompositionEnd,h=e.suffix,b=e.prefixCls,y=b===void 0?"rc-textarea":b,C=e.showCount,S=e.count,x=e.className,w=e.style,E=e.disabled,R=e.hidden,N=e.classNames,I=e.styles,M=e.onResize,j=e.onClear,T=e.onPressEnter,z=e.readOnly,L=e.autoSize,D=e.onKeyDown,A=Pt(e,MK),_=Gn(r,{value:a,defaultValue:r}),V=de(_,2),P=V[0],B=V[1],K=P==null?"":String(P),G=le.useState(!1),Q=de(G,2),k=Q[0],U=Q[1],W=le.useRef(!1),X=le.useState(null),J=de(X,2),ne=J[0],se=J[1],re=s.useRef(null),oe=s.useRef(null),Se=function(){var Be;return(Be=oe.current)===null||Be===void 0?void 0:Be.textArea},me=function(){Se().focus()};s.useImperativeHandle(t,function(){var We;return{resizableTextArea:oe.current,focus:me,blur:function(){Se().blur()},nativeElement:((We=re.current)===null||We===void 0?void 0:We.nativeElement)||Se()}}),s.useEffect(function(){U(function(We){return!E&&We})},[E]);var ie=le.useState(null),ge=de(ie,2),ue=ge[0],ae=ge[1];le.useEffect(function(){if(ue){var We;(We=Se()).setSelectionRange.apply(We,De(ue))}},[ue]);var ce=rI(S,C),ye=(n=ce.max)!==null&&n!==void 0?n:m,Ce=Number(ye)>0,je=ce.strategy(K),ze=!!ye&&je>ye,ve=function(Be,Ge){var Me=Ge;!W.current&&ce.exceedFormatter&&ce.max&&ce.strategy(Ge)>ce.max&&(Me=ce.exceedFormatter(Ge,{max:ce.max}),Ge!==Me&&ae([Se().selectionStart||0,Se().selectionEnd||0])),B(Me),Om(Be.currentTarget,Be,u,Me)},Te=function(Be){W.current=!0,g==null||g(Be)},Ee=function(Be){W.current=!1,ve(Be,Be.currentTarget.value),v==null||v(Be)},xe=function(Be){ve(Be,Be.target.value)},Ve=function(Be){Be.key==="Enter"&&T&&T(Be),D==null||D(Be)},Xe=function(Be){U(!0),l==null||l(Be)},it=function(Be){U(!1),c==null||c(Be)},at=function(Be){B(""),me(),Om(Se(),Be,u)},Ye=h,Je;ce.show&&(ce.showFormatter?Je=ce.showFormatter({value:K,count:je,maxLength:ye}):Je="".concat(je).concat(Ce?" / ".concat(ye):""),Ye=le.createElement(le.Fragment,null,Ye,le.createElement("span",{className:te("".concat(y,"-data-count"),N==null?void 0:N.count),style:I==null?void 0:I.count},Je)));var _e=function(Be){var Ge;M==null||M(Be),(Ge=Se())!==null&&Ge!==void 0&&Ge.style.height&&se(!0)},Ie=!L&&!C&&!d;return le.createElement(Oy,{ref:re,value:K,allowClear:d,handleReset:at,suffix:Ye,prefixCls:y,classNames:ee(ee({},N),{},{affixWrapper:te(N==null?void 0:N.affixWrapper,q(q({},"".concat(y,"-show-count"),C),"".concat(y,"-textarea-allow-clear"),d))}),disabled:E,focused:k,className:te(x,ze&&"".concat(y,"-out-of-range")),style:ee(ee({},w),ne&&!Ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Je=="string"?Je:void 0}},hidden:R,readOnly:z,onClear:j},le.createElement(IK,Oe({},A,{autoSize:L,maxLength:m,onKeyDown:Ve,onChange:xe,onFocus:Xe,onBlur:it,onCompositionStart:Te,onCompositionEnd:Ee,className:te(N==null?void 0:N.textarea),style:ee(ee({},I==null?void 0:I.textarea),{},{resize:w==null?void 0:w.resize}),disabled:E,prefixCls:y,onResize:_e,ref:oe,readOnly:z})))});const PK=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"}},[`
|
|
326
|
+
&-allow-clear > ${t},
|
|
327
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
328
|
+
`]:{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}}}}}},zK=nn(["Input","TextArea"],e=>{const t=Qt(e,tc(e));return PK(t)},nc,{resetFont:!1});var _K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vI=s.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:l,disabled:c,status:u,allowClear:d,classNames:m,rootClassName:g,className:v,style:h,styles:b,variant:y,showCount:C,onMouseDown:S,onResize:x}=e,w=_K(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:E,direction:R,allowClear:N,autoComplete:I,className:M,style:j,classNames:T,styles:z}=Er("textArea"),L=s.useContext(ba),D=c??L,{status:A,hasFeedback:_,feedbackIcon:V}=s.useContext(Qr),P=ed(A,u),B=s.useRef(null);s.useImperativeHandle(t,()=>{var ce;return{resizableTextArea:(ce=B.current)===null||ce===void 0?void 0:ce.resizableTextArea,focus:ye=>{var Ce,je;Ey((je=(Ce=B.current)===null||Ce===void 0?void 0:Ce.resizableTextArea)===null||je===void 0?void 0:je.textArea,ye)},blur:()=>{var ye;return(ye=B.current)===null||ye===void 0?void 0:ye.blur()}}});const K=E("input",r),G=Pr(K),[Q,k,U]=FT(K,g),[W]=zK(K,G),{compactSize:X,compactItemClassnames:J}=Fi(K,R),ne=Hr(ce=>{var ye;return(ye=l??X)!==null&&ye!==void 0?ye:ce}),[se,re]=td("textArea",y,a),oe=oI(d??N),[Se,me]=s.useState(!1),[ie,ge]=s.useState(!1),ue=ce=>{me(!0),S==null||S(ce);const ye=()=>{me(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},ae=ce=>{var ye,Ce;if(x==null||x(ce),Se&&typeof getComputedStyle=="function"){const je=(Ce=(ye=B.current)===null||ye===void 0?void 0:ye.nativeElement)===null||Ce===void 0?void 0:Ce.querySelector("textarea");je&&getComputedStyle(je).resize==="both"&&ge(!0)}};return Q(W(s.createElement(jK,Object.assign({autoComplete:I},w,{style:Object.assign(Object.assign({},j),h),styles:Object.assign(Object.assign({},z),b),disabled:D,allowClear:oe,className:te(U,G,v,g,J,M,ie&&`${K}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),T),{textarea:te({[`${K}-sm`]:ne==="small",[`${K}-lg`]:ne==="large"},k,m==null?void 0:m.textarea,T.textarea,Se&&`${K}-mouse-active`),variant:te({[`${K}-${se}`]:re},Ks(K,P)),affixWrapper:te(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:R==="rtl",[`${K}-affix-wrapper-sm`]:ne==="small",[`${K}-affix-wrapper-lg`]:ne==="large",[`${K}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:K,suffix:_&&s.createElement("span",{className:`${K}-textarea-suffix`},V),showCount:C,ref:B,onResize:ae,onMouseDown:ue}))))}),kn=id;kn.Group=sK;kn.Search=wK;kn.TextArea=vI;kn.Password=xK;kn.OTP=vK;function DK(e,t,n){return typeof n=="boolean"?n:e.length?!0:Ir(t).some(a=>a.type===hT)}var pI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function wg({suffixCls:e,tagName:t,displayName:n}){return r=>s.forwardRef((l,c)=>s.createElement(r,Object.assign({ref:c,suffixCls:e,tagName:t},l)))}const Iy=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=pI(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=s.useContext(Ot),d=u("layout",n),[m,g,v]=pT(d),h=r?`${d}-${r}`:d;return m(s.createElement(l,Object.assign({className:te(n||h,a,g,v),ref:t},c)))}),AK=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(Ot),[r,a]=s.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:m,tagName:g,style:v}=e,h=pI(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=_n(h,["suffixCls"]),{getPrefixCls:y,className:C,style:S}=Er("layout"),x=y("layout",l),w=DK(r,d,m),[E,R,N]=pT(x),I=te(x,{[`${x}-has-sider`]:w,[`${x}-rtl`]:n==="rtl"},C,c,u,R,N),M=s.useMemo(()=>({siderHook:{addSider:j=>{a(T=>[].concat(De(T),[j]))},removeSider:j=>{a(T=>T.filter(z=>z!==j))}}}),[]);return E(s.createElement(mT.Provider,{value:M},s.createElement(g,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},S),v)},b),d)))}),BK=wg({tagName:"div",displayName:"Layout"})(AK),LK=wg({suffixCls:"header",tagName:"header",displayName:"Header"})(Iy),HK=wg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Iy),FK=wg({suffixCls:"content",tagName:"main",displayName:"Content"})(Iy),wo=BK;wo.Header=LK;wo.Footer=HK;wo.Content=FK;wo.Sider=hT;wo._InternalSiderContext=bg;var kK={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"},VK=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:kK}))},IE=s.forwardRef(VK),KK={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"},WK=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:KK}))},ME=s.forwardRef(WK),UK={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:"页码"},qK=[10,20,50,100],GK=function(t){var n=t.pageSizeOptions,r=n===void 0?qK:n,a=t.locale,l=t.changeSize,c=t.pageSize,u=t.goButton,d=t.quickGo,m=t.rootPrefixCls,g=t.disabled,v=t.buildOptionText,h=t.showSizeChanger,b=t.sizeChangerRender,y=le.useState(""),C=de(y,2),S=C[0],x=C[1],w=function(){return!S||Number.isNaN(S)?void 0:Number(S)},E=typeof v=="function"?v:function(D){return"".concat(D," ").concat(a.items_per_page)},R=function(A){x(A.target.value)},N=function(A){u||S===""||(x(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(d==null||d(w())))},I=function(A){S!==""&&(A.keyCode===ft.ENTER||A.type==="click")&&(x(""),d==null||d(w()))},M=function(){return r.some(function(A){return A.toString()===c.toString()})?r:r.concat([c]).sort(function(A,_){var V=Number.isNaN(Number(A))?0:Number(A),P=Number.isNaN(Number(_))?0:Number(_);return V-P})},j="".concat(m,"-options");if(!h&&!d)return null;var T=null,z=null,L=null;return h&&b&&(T=b({disabled:g,size:c,onSizeChange:function(A){l==null||l(Number(A))},"aria-label":a.page_size,className:"".concat(j,"-size-changer"),options:M().map(function(D){return{label:E(D),value:D}})})),d&&(u&&(L=typeof u=="boolean"?le.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:g,className:"".concat(j,"-quick-jumper-button")},a.jump_to_confirm):le.createElement("span",{onClick:I,onKeyUp:I},u)),z=le.createElement("div",{className:"".concat(j,"-quick-jumper")},a.jump_to,le.createElement("input",{disabled:g,type:"text",value:S,onChange:R,onKeyUp:I,onBlur:N,"aria-label":a.page}),a.page,L)),le.createElement("li",{className:j},T,z)},ru=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,l=t.className,c=t.showTitle,u=t.onClick,d=t.onKeyPress,m=t.itemRender,g="".concat(n,"-item"),v=te(g,"".concat(g,"-").concat(r),q(q({},"".concat(g,"-active"),a),"".concat(g,"-disabled"),!r),l),h=function(){u(r)},b=function(S){d(S,u,r)},y=m(r,"page",le.createElement("a",{rel:"nofollow"},r));return y?le.createElement("li",{title:c?String(r):null,className:v,onClick:h,onKeyDown:b,tabIndex:0},y):null},XK=function(t,n,r){return r};function jE(){}function PE(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function cl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var YK=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,l=a===void 0?"rc-select":a,c=t.className,u=t.current,d=t.defaultCurrent,m=d===void 0?1:d,g=t.total,v=g===void 0?0:g,h=t.pageSize,b=t.defaultPageSize,y=b===void 0?10:b,C=t.onChange,S=C===void 0?jE:C,x=t.hideOnSinglePage,w=t.align,E=t.showPrevNextJumpers,R=E===void 0?!0:E,N=t.showQuickJumper,I=t.showLessItems,M=t.showTitle,j=M===void 0?!0:M,T=t.onShowSizeChange,z=T===void 0?jE:T,L=t.locale,D=L===void 0?UK:L,A=t.style,_=t.totalBoundaryShowSizeChanger,V=_===void 0?50:_,P=t.disabled,B=t.simple,K=t.showTotal,G=t.showSizeChanger,Q=G===void 0?v>V:G,k=t.sizeChangerRender,U=t.pageSizeOptions,W=t.itemRender,X=W===void 0?XK:W,J=t.jumpPrevIcon,ne=t.jumpNextIcon,se=t.prevIcon,re=t.nextIcon,oe=le.useRef(null),Se=Gn(10,{value:h,defaultValue:y}),me=de(Se,2),ie=me[0],ge=me[1],ue=Gn(1,{value:u,defaultValue:m,postState:function(Tt){return Math.max(1,Math.min(Tt,cl(void 0,ie,v)))}}),ae=de(ue,2),ce=ae[0],ye=ae[1],Ce=le.useState(ce),je=de(Ce,2),ze=je[0],ve=je[1];s.useEffect(function(){ve(ce)},[ce]);var Te=Math.max(1,ce-(I?3:5)),Ee=Math.min(cl(void 0,ie,v),ce+(I?3:5));function xe(ut,Tt){var kt=ut||le.createElement("button",{type:"button","aria-label":Tt,className:"".concat(r,"-item-link")});return typeof ut=="function"&&(kt=le.createElement(ut,ee({},t))),kt}function Ve(ut){var Tt=ut.target.value,kt=cl(void 0,ie,v),Dn;return Tt===""?Dn=Tt:Number.isNaN(Number(Tt))?Dn=ze:Tt>=kt?Dn=kt:Dn=Number(Tt),Dn}function Xe(ut){return PE(ut)&&ut!==ce&&PE(v)&&v>0}var it=v>ie?N:!1;function at(ut){(ut.keyCode===ft.UP||ut.keyCode===ft.DOWN)&&ut.preventDefault()}function Ye(ut){var Tt=Ve(ut);switch(Tt!==ze&&ve(Tt),ut.keyCode){case ft.ENTER:Ie(Tt);break;case ft.UP:Ie(Tt-1);break;case ft.DOWN:Ie(Tt+1);break}}function Je(ut){Ie(Ve(ut))}function _e(ut){var Tt=cl(ut,ie,v),kt=ce>Tt&&Tt!==0?Tt:ce;ge(ut),ve(kt),z==null||z(ce,ut),ye(kt),S==null||S(kt,ut)}function Ie(ut){if(Xe(ut)&&!P){var Tt=cl(void 0,ie,v),kt=ut;return ut>Tt?kt=Tt:ut<1&&(kt=1),kt!==ze&&ve(kt),ye(kt),S==null||S(kt,ie),kt}return ce}var We=ce>1,Be=ce<cl(void 0,ie,v);function Ge(){We&&Ie(ce-1)}function Me(){Be&&Ie(ce+1)}function Qe(){Ie(Te)}function lt(){Ie(Ee)}function mt(ut,Tt){if(ut.key==="Enter"||ut.charCode===ft.ENTER||ut.keyCode===ft.ENTER){for(var kt=arguments.length,Dn=new Array(kt>2?kt-2:0),or=2;or<kt;or++)Dn[or-2]=arguments[or];Tt.apply(void 0,Dn)}}function Dt(ut){mt(ut,Ge)}function At(ut){mt(ut,Me)}function et(ut){mt(ut,Qe)}function ct(ut){mt(ut,lt)}function gt(ut){var Tt=X(ut,"prev",xe(se,"prev page"));return le.isValidElement(Tt)?le.cloneElement(Tt,{disabled:!We}):Tt}function ot(ut){var Tt=X(ut,"next",xe(re,"next page"));return le.isValidElement(Tt)?le.cloneElement(Tt,{disabled:!Be}):Tt}function vt(ut){(ut.type==="click"||ut.keyCode===ft.ENTER)&&Ie(ze)}var Mt=null,pe=Ar(t,{aria:!0,data:!0}),be=K&&le.createElement("li",{className:"".concat(r,"-total-text")},K(v,[v===0?0:(ce-1)*ie+1,ce*ie>v?v:ce*ie])),we=null,Ke=cl(void 0,ie,v);if(x&&v<=ie)return null;var ke=[],He={rootPrefixCls:r,onClick:Ie,onKeyPress:mt,showTitle:j,itemRender:X,page:-1},Le=ce-1>0?ce-1:0,nt=ce+1<Ke?ce+1:Ke,pt=N&&N.goButton,ht=$t(B)==="object"?B.readOnly:!B,zt=pt,tt=null;B&&(pt&&(typeof pt=="boolean"?zt=le.createElement("button",{type:"button",onClick:vt,onKeyUp:vt},D.jump_to_confirm):zt=le.createElement("span",{onClick:vt,onKeyUp:vt},pt),zt=le.createElement("li",{title:j?"".concat(D.jump_to).concat(ce,"/").concat(Ke):null,className:"".concat(r,"-simple-pager")},zt)),tt=le.createElement("li",{title:j?"".concat(ce,"/").concat(Ke):null,className:"".concat(r,"-simple-pager")},ht?ze:le.createElement("input",{type:"text","aria-label":D.jump_to,value:ze,disabled:P,onKeyDown:at,onKeyUp:Ye,onChange:Ye,onBlur:Je,size:3}),le.createElement("span",{className:"".concat(r,"-slash")},"/"),Ke));var Ze=I?1:2;if(Ke<=3+Ze*2){Ke||ke.push(le.createElement(ru,Oe({},He,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Ct=1;Ct<=Ke;Ct+=1)ke.push(le.createElement(ru,Oe({},He,{key:Ct,page:Ct,active:ce===Ct})))}else{var Ft=I?D.prev_3:D.prev_5,Nt=I?D.next_3:D.next_5,rn=X(Te,"jump-prev",xe(J,"prev page")),dn=X(Ee,"jump-next",xe(ne,"next page"));R&&(Mt=rn?le.createElement("li",{title:j?Ft:null,key:"prev",onClick:Qe,tabIndex:0,onKeyDown:et,className:te("".concat(r,"-jump-prev"),q({},"".concat(r,"-jump-prev-custom-icon"),!!J))},rn):null,we=dn?le.createElement("li",{title:j?Nt:null,key:"next",onClick:lt,tabIndex:0,onKeyDown:ct,className:te("".concat(r,"-jump-next"),q({},"".concat(r,"-jump-next-custom-icon"),!!ne))},dn):null);var Wt=Math.max(1,ce-Ze),on=Math.min(ce+Ze,Ke);ce-1<=Ze&&(on=1+Ze*2),Ke-ce<=Ze&&(Wt=Ke-Ze*2);for(var rt=Wt;rt<=on;rt+=1)ke.push(le.createElement(ru,Oe({},He,{key:rt,page:rt,active:ce===rt})));if(ce-1>=Ze*2&&ce!==3&&(ke[0]=le.cloneElement(ke[0],{className:te("".concat(r,"-item-after-jump-prev"),ke[0].props.className)}),ke.unshift(Mt)),Ke-ce>=Ze*2&&ce!==Ke-2){var dt=ke[ke.length-1];ke[ke.length-1]=le.cloneElement(dt,{className:te("".concat(r,"-item-before-jump-next"),dt.props.className)}),ke.push(we)}Wt!==1&&ke.unshift(le.createElement(ru,Oe({},He,{key:1,page:1}))),on!==Ke&&ke.push(le.createElement(ru,Oe({},He,{key:Ke,page:Ke})))}var It=gt(Le);if(It){var wt=!We||!Ke;It=le.createElement("li",{title:j?D.prev_page:null,onClick:Ge,tabIndex:wt?null:0,onKeyDown:Dt,className:te("".concat(r,"-prev"),q({},"".concat(r,"-disabled"),wt)),"aria-disabled":wt},It)}var st=ot(nt);if(st){var bt,Bt;B?(bt=!Be,Bt=We?0:null):(bt=!Be||!Ke,Bt=bt?null:0),st=le.createElement("li",{title:j?D.next_page:null,onClick:Me,tabIndex:Bt,onKeyDown:At,className:te("".concat(r,"-next"),q({},"".concat(r,"-disabled"),bt)),"aria-disabled":bt},st)}var qt=te(r,c,q(q(q(q(q({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),B),"".concat(r,"-disabled"),P));return le.createElement("ul",Oe({className:qt,style:A,ref:oe},pe),be,It,B?tt:ke,st,le.createElement(GK,{locale:D,rootPrefixCls:r,disabled:P,selectPrefixCls:l,changeSize:_e,pageSize:ie,pageSizeOptions:U,quickGo:it?Ie:null,goButton:zt,showSizeChanger:Q,sizeChangerRender:k}))};const QK=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}}}}},ZK=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Z(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
329
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
330
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
331
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM),input:Object.assign(Object.assign({},Sy(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},JK=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Z(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:Z(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${Z(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Z(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:`${Z(e.inputOutlineOffset)} 0 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},eW=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
332
|
+
${t}-prev,
|
|
333
|
+
${t}-jump-prev,
|
|
334
|
+
${t}-jump-next
|
|
335
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
336
|
+
${t}-prev,
|
|
337
|
+
${t}-next,
|
|
338
|
+
${t}-jump-prev,
|
|
339
|
+
${t}-jump-next
|
|
340
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Z(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Z(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ad(e)),yy(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Sg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},tW=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Z(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Z(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}}}}},nW=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Z(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),tW(e)),eW(e)),JK(e)),ZK(e)),QK(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"}}},rW=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Xa(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},xo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:xo(e)}}}},hI=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},nc(e)),bI=e=>Qt(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"},tc(e)),aW=nn("Pagination",e=>{const t=bI(e);return[nW(t),rW(t)]},hI),oW=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Z(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}}}}},iW=Xs(["Pagination","bordered"],e=>{const t=bI(e);return oW(t)},hI);function zE(e){return s.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var lW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sW=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:l,style:c,size:u,locale:d,responsive:m,showSizeChanger:g,selectComponentClass:v,pageSizeOptions:h}=e,b=lW(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:y}=mg(m),[,C]=jr(),{getPrefixCls:S,direction:x,showSizeChanger:w,className:E,style:R}=Er("pagination"),N=S("pagination",n),[I,M,j]=aW(N),T=Hr(u),z=T==="small"||!!(y&&!T&&m),[L]=co("Pagination",HO),D=Object.assign(Object.assign({},L),d),[A,_]=zE(g),[V,P]=zE(w),B=A??V,K=_??P,G=v||tr,Q=s.useMemo(()=>h?h.map(ne=>Number(ne)):void 0,[h]),k=ne=>{var se;const{disabled:re,size:oe,onSizeChange:Se,"aria-label":me,className:ie,options:ge}=ne,{className:ue,onChange:ae}=K||{},ce=(se=ge.find(ye=>String(ye.value)===String(oe)))===null||se===void 0?void 0:se.value;return s.createElement(G,Object.assign({disabled:re,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ye=>ye.parentNode,"aria-label":me,options:ge},K,{value:ce,onChange:(ye,Ce)=>{Se==null||Se(ye),ae==null||ae(ye,Ce)},size:z?"small":"middle",className:te(ie,ue)}))},U=s.useMemo(()=>{const ne=s.createElement("span",{className:`${N}-item-ellipsis`},"•••"),se=s.createElement("button",{className:`${N}-item-link`,type:"button",tabIndex:-1},x==="rtl"?s.createElement(Vs,null):s.createElement(_u,null)),re=s.createElement("button",{className:`${N}-item-link`,type:"button",tabIndex:-1},x==="rtl"?s.createElement(_u,null):s.createElement(Vs,null)),oe=s.createElement("a",{className:`${N}-item-link`},s.createElement("div",{className:`${N}-item-container`},x==="rtl"?s.createElement(ME,{className:`${N}-item-link-icon`}):s.createElement(IE,{className:`${N}-item-link-icon`}),ne)),Se=s.createElement("a",{className:`${N}-item-link`},s.createElement("div",{className:`${N}-item-container`},x==="rtl"?s.createElement(IE,{className:`${N}-item-link-icon`}):s.createElement(ME,{className:`${N}-item-link-icon`}),ne));return{prevIcon:se,nextIcon:re,jumpPrevIcon:oe,jumpNextIcon:Se}},[x,N]),W=S("select",r),X=te({[`${N}-${t}`]:!!t,[`${N}-mini`]:z,[`${N}-rtl`]:x==="rtl",[`${N}-bordered`]:C.wireframe},E,a,l,M,j),J=Object.assign(Object.assign({},R),c);return I(s.createElement(s.Fragment,null,C.wireframe&&s.createElement(iW,{prefixCls:N}),s.createElement(YK,Object.assign({},U,b,{style:J,prefixCls:N,selectPrefixCls:W,className:X,locale:D,pageSizeOptions:Q,showSizeChanger:B,sizeChangerRender:k}))))},Nm=100,yI=Nm/5,SI=Nm/2-yI/2,Ch=SI*2*Math.PI,_E=50,DE=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:te(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:SI,cx:_E,cy:_E,strokeWidth:yI,style:n})},cW=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[l,c]=s.useState(!1);en(()=>{e!==0&&c(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const d={strokeDashoffset:`${Ch/4}`,strokeDasharray:`${Ch*u/100} ${Ch*(100-u)/100}`};return s.createElement("span",{className:te(r,`${n}-progress`,u<=0&&a)},s.createElement("svg",{viewBox:`0 0 ${Nm} ${Nm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},s.createElement(DE,{dotClassName:n,hasCircleCls:!0}),s.createElement(DE,{dotClassName:n,style:d})))};function uW(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,l=`${a}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:te(a,n>0&&l)},s.createElement("span",{className:te(r,`${t}-dot-spin`)},[1,2,3,4].map(c=>s.createElement("i",{className:`${t}-dot-item`,key:c})))),s.createElement(cW,{prefixCls:t,percent:n}))}function dW(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,l=`${n}-dot`;return r&&s.isValidElement(r)?wr(r,{className:te((t=r.props)===null||t===void 0?void 0:t.className,l),percent:a}):s.createElement(uW,{prefixCls:n,percent:a})}const fW=new Yt("antSpinMove",{to:{opacity:1}}),mW=new Yt("antRotate",{to:{transform:"rotate(405deg)"}}),gW=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},cn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fW,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:mW,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},vW=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},pW=nn("Spin",e=>{const t=Qt(e,{spinDotDefault:e.colorTextDescription});return gW(t)},vW),hW=200,AE=[[30,.05],[70,.03],[96,.01]];function bW(e,t){const[n,r]=s.useState(0),a=s.useRef(null),l=t==="auto";return s.useEffect(()=>(l&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const u=100-c;for(let d=0;d<AE.length;d+=1){const[m,g]=AE[d];if(c<=m)return c+u*g}return c})},hW)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[l,e]),l?n:t}var yW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let CI;function SW(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Vi=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:l,rootClassName:c,size:u="default",tip:d,wrapperClassName:m,style:g,children:v,fullscreen:h=!1,indicator:b,percent:y}=e,C=yW(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:S,direction:x,className:w,style:E,indicator:R}=Er("spin"),N=S("spin",n),[I,M,j]=pW(N),[T,z]=s.useState(()=>r&&!SW(r,a)),L=bW(T,y);s.useEffect(()=>{if(r){const K=JF(a,()=>{z(!0)});return K(),()=>{var G;(G=K==null?void 0:K.cancel)===null||G===void 0||G.call(K)}}z(!1)},[a,r]);const D=s.useMemo(()=>typeof v<"u"&&!h,[v,h]),A=te(N,w,{[`${N}-sm`]:u==="small",[`${N}-lg`]:u==="large",[`${N}-spinning`]:T,[`${N}-show-text`]:!!d,[`${N}-rtl`]:x==="rtl"},l,!h&&c,M,j),_=te(`${N}-container`,{[`${N}-blur`]:T}),V=(t=b??R)!==null&&t!==void 0?t:CI,P=Object.assign(Object.assign({},E),g),B=s.createElement("div",Object.assign({},C,{style:P,className:A,"aria-live":"polite","aria-busy":T}),s.createElement(dW,{prefixCls:N,indicator:V,percent:L}),d&&(D||h)?s.createElement("div",{className:`${N}-text`},d):null);return I(D?s.createElement("div",Object.assign({},C,{className:te(`${N}-nested-loading`,m,M,j)}),T&&s.createElement("div",{key:"loading"},B),s.createElement("div",{className:_,key:"container"},v)):h?s.createElement("div",{className:te(`${N}-fullscreen`,{[`${N}-fullscreen-show`]:T},c,M,j)},B):B)};Vi.setDefaultIndicator=e=>{CI=e};const CW=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var xW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $W=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:l,title:c,children:u,footer:d}=e,m=xW(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:g}=s.useContext(Ot),v=g(),h=t||g("modal"),b=Pr(v),[y,C,S]=iN(h,b),x=`${h}-confirm`;let w={};return l?w={closable:a??!1,title:"",footer:"",children:s.createElement(sN,Object.assign({},e,{prefixCls:h,confirmPrefixCls:x,rootPrefixCls:v,content:u}))}:w={closable:a??!0,title:c,footer:d!==null&&s.createElement(nN,Object.assign({},e)),children:u},y(s.createElement(HR,Object.assign({prefixCls:h,className:te(C,`${h}-pure-panel`,l&&x,l&&`${x}-${l}`,n,S,b)},m,{closeIcon:tN(h,r),closable:a},w)))},wW=SN($W);function xI(e){return Zu(fN(e))}const Xr=lN;Xr.useModal=hN;Xr.info=function(t){return Zu(mN(t))};Xr.success=function(t){return Zu(gN(t))};Xr.error=function(t){return Zu(vN(t))};Xr.warning=xI;Xr.warn=xI;Xr.confirm=function(t){return Zu(pN(t))};Xr.destroyAll=function(){for(;vl.length;){const t=vl.pop();t&&t()}};Xr.config=wA;Xr._InternalPanelDoNotUseOrYouWillBeFired=wW;const EW=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:l,colorWarning:c,marginXXS:u,marginXS:d,fontSize:m,fontWeightStrong:g,colorTextHeading:v}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:m},[`${t}-message`]:{marginBottom:d,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:m,lineHeight:1,marginInlineEnd:d},[`${t}-title`]:{fontWeight:g,color:v,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:u,color:l}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:d}}}}},OW=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},$I=nn("Popconfirm",e=>EW(e),OW,{resetStyle:!1});var RW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const wI=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:l,cancelText:c,okText:u,okType:d="primary",icon:m=s.createElement(zl,null),showCancel:g=!0,close:v,onConfirm:h,onCancel:b,onPopupClick:y}=e,{getPrefixCls:C}=s.useContext(Ot),[S]=co("Popconfirm",io.Popconfirm),x=Us(a),w=Us(l);return s.createElement("div",{className:`${t}-inner-content`,onClick:y},s.createElement("div",{className:`${t}-message`},m&&s.createElement("span",{className:`${t}-message-icon`},m),s.createElement("div",{className:`${t}-message-text`},x&&s.createElement("div",{className:`${t}-title`},x),w&&s.createElement("div",{className:`${t}-description`},w))),s.createElement("div",{className:`${t}-buttons`},g&&s.createElement(wn,Object.assign({onClick:b,size:"small"},r),c||(S==null?void 0:S.cancelText)),s.createElement(Xb,{buttonProps:Object.assign(Object.assign({size:"small"},Hb(d)),n),actionFn:h,close:v,prefixCls:C("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},u||(S==null?void 0:S.okText))))},NW=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,l=RW(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=s.useContext(Ot),u=c("popconfirm",t),[d]=$I(u);return d(s.createElement(QN,{placement:n,className:te(u,r),style:a,content:s.createElement(wI,Object.assign({prefixCls:u},l))}))};var TW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IW=s.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:l="top",trigger:c="click",okType:u="primary",icon:d=s.createElement(zl,null),children:m,overlayClassName:g,onOpenChange:v,onVisibleChange:h,overlayStyle:b,styles:y,classNames:C}=e,S=TW(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:w,style:E,classNames:R,styles:N}=Er("popconfirm"),[I,M]=Gn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=(B,K)=>{M(B,!0),h==null||h(B),v==null||v(B,K)},T=B=>{j(!1,B)},z=B=>{var K;return(K=e.onConfirm)===null||K===void 0?void 0:K.call(void 0,B)},L=B=>{var K;j(!1,B),(K=e.onCancel)===null||K===void 0||K.call(void 0,B)},D=(B,K)=>{const{disabled:G=!1}=e;G||j(B,K)},A=x("popconfirm",a),_=te(A,w,g,R.root,C==null?void 0:C.root),V=te(R.body,C==null?void 0:C.body),[P]=$I(A);return P(s.createElement(ZN,Object.assign({},_n(S,["title"]),{trigger:c,placement:l,onOpenChange:D,open:I,ref:t,classNames:{root:_,body:V},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},N.root),E),b),y==null?void 0:y.root),body:Object.assign(Object.assign({},N.body),y==null?void 0:y.body)},content:s.createElement(wI,Object.assign({okType:u,icon:d},e,{prefixCls:A,close:T,onConfirm:z,onCancel:L})),"data-popover-inject":!0}),m))}),tm=IW;tm._InternalPanelDoNotUseOrYouWillBeFired=NW;const MW=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:a,groupSeparator:l="",prefixCls:c}=e;let u;if(typeof n=="function")u=n(t);else{const d=String(t),m=d.match(/^(-?)(\d*)(\.(\d+))?$/);if(!m||d==="-")u=d;else{const g=m[1];let v=m[2]||"0",h=m[4]||"";v=v.replace(/\B(?=(\d{3})+(?!\d))/g,l),typeof r=="number"&&(h=h.padEnd(r,"0").slice(0,r>0?r:0)),h&&(h=`${a}${h}`),u=[s.createElement("span",{key:"int",className:`${c}-content-value-int`},g,v),h&&s.createElement("span",{key:"decimal",className:`${c}-content-value-decimal`},h)]}}return s.createElement("span",{className:`${c}-content-value`},u)},jW=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:l,colorTextHeading:c,contentFontSize:u,fontFamily:d}=e;return{[t]:Object.assign(Object.assign({},cn(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:l},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:c,fontSize:u,fontFamily:d,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},PW=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},zW=nn("Statistic",e=>{const t=Qt(e,{});return jW(t)},PW);var _W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const yl=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,valueStyle:c,value:u=0,title:d,valueRender:m,prefix:g,suffix:v,loading:h=!1,formatter:b,precision:y,decimalSeparator:C=".",groupSeparator:S=",",onMouseEnter:x,onMouseLeave:w}=e,E=_W(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:R,direction:N,className:I,style:M}=Er("statistic"),j=R("statistic",n),[T,z,L]=zW(j),D=s.createElement(MW,{decimalSeparator:C,groupSeparator:S,prefixCls:j,formatter:b,precision:y,value:u}),A=te(j,{[`${j}-rtl`]:N==="rtl"},I,r,a,z,L),_=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:_.current}));const V=Ar(E,{aria:!0,data:!0});return T(s.createElement("div",Object.assign({},V,{ref:_,className:A,style:Object.assign(Object.assign({},M),l),onMouseEnter:x,onMouseLeave:w}),d&&s.createElement("div",{className:`${j}-title`},d),s.createElement(ki,{paragraph:!1,loading:h,className:`${j}-skeleton`,active:!0},s.createElement("div",{style:c,className:`${j}-content`},g&&s.createElement("span",{className:`${j}-content-prefix`},g),m?m(D):D,v&&s.createElement("span",{className:`${j}-content-suffix`},v)))))}),DW=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function AW(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(d=>d.slice(1,-1)),l=t.replace(r,"[]"),c=DW.reduce((d,[m,g])=>{if(d.includes(m)){const v=Math.floor(n/g);return n-=v*g,d.replace(new RegExp(`${m}+`,"g"),h=>{const b=h.length;return v.toString().padStart(b,"0")})}return d},l);let u=0;return c.replace(r,()=>{const d=a[u];return u+=1,d})}function BW(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),l=Date.now(),c=Math.max(n?a-l:l-a,0);return AW(c,r)}var LW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function HW(e){return new Date(e).getTime()}const EI=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:l}=e,c=LW(e,["value","format","onChange","onFinish","type"]),u=l==="countdown",[d,m]=s.useState(null),g=Sn(()=>{const b=Date.now(),y=HW(t);m({});const C=u?y-b:b-y;return r==null||r(C),u&&y<b?(a==null||a(),!1):!0});s.useEffect(()=>{let b;const y=()=>tn.cancel(b),C=()=>{b=tn(()=>{g()&&C()})};return C(),y},[t,u]),s.useEffect(()=>{m({})},[]);const v=(b,y)=>d?BW(b,Object.assign(Object.assign({},y),{format:n}),u):"-",h=b=>wr(b,{title:void 0});return s.createElement(yl,Object.assign({},c,{value:t,valueRender:h,formatter:v}))},FW=e=>s.createElement(EI,Object.assign({},e,{type:"countdown"})),kW=s.memo(FW);yl.Timer=EI;yl.Countdown=kW;var VW=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],OI=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,l=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,m=e.loadingIcon,g=e.checkedChildren,v=e.unCheckedChildren,h=e.onClick,b=e.onChange,y=e.onKeyDown,C=Pt(e,VW),S=Gn(!1,{value:c,defaultValue:u}),x=de(S,2),w=x[0],E=x[1];function R(j,T){var z=w;return d||(z=j,E(z),b==null||b(z,T)),z}function N(j){j.which===ft.LEFT?R(!1,j):j.which===ft.RIGHT&&R(!0,j),y==null||y(j)}function I(j){var T=R(!w,j);h==null||h(T,j)}var M=te(a,l,(n={},q(n,"".concat(a,"-checked"),w),q(n,"".concat(a,"-disabled"),d),n));return s.createElement("button",Oe({},C,{type:"button",role:"switch","aria-checked":w,disabled:d,className:M,ref:t,onKeyDown:N,onClick:I}),m,s.createElement("span",{className:"".concat(a,"-inner")},s.createElement("span",{className:"".concat(a,"-inner-checked")},g),s.createElement("span",{className:"".concat(a,"-inner-unchecked")},v)))});OI.displayName="Switch";const KW=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:l,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,m=`${t}-inner`,g=Z(d(u).add(d(r).mul(2)).equal()),v=Z(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:Z(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:l,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${v})`,marginInlineEnd:`calc(100% - ${g} + ${v})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:c,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${v})`,marginInlineEnd:`calc(-100% + ${g} - ${v})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Z(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},WW=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},UW=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:l,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(l).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${Z(c(l).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},qW=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:l,handleSize:c,calc:u}=e,d=`${t}-inner`,m=Z(u(c).add(u(r).mul(2)).equal()),g=Z(u(l).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${g})`,marginInlineEnd:`calc(100% - ${m} + ${g})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${g})`,marginInlineEnd:`calc(-100% + ${m} - ${g})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},GW=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},cn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Z(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Xa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},XW=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,l=t*n,c=r/2,u=2,d=l-u*2,m=c-u*2;return{trackHeight:l,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:m*2+u*2,trackPadding:u,handleBg:a,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new un("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+u+u*2}},YW=nn("Switch",e=>{const t=Qt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[GW(t),qW(t),UW(t),WW(t),KW(t)]},XW);var QW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZW=s.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:l,className:c,rootClassName:u,style:d,checked:m,value:g,defaultChecked:v,defaultValue:h,onChange:b}=e,y=QW(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[C,S]=Gn(!1,{value:m??g,defaultValue:v??h}),{getPrefixCls:x,direction:w,switch:E}=s.useContext(Ot),R=s.useContext(ba),N=(a??R)||l,I=x("switch",n),M=s.createElement("div",{className:`${I}-handle`},l&&s.createElement(_l,{className:`${I}-loading-icon`})),[j,T,z]=YW(I),L=Hr(r),D=te(E==null?void 0:E.className,{[`${I}-small`]:L==="small",[`${I}-loading`]:l,[`${I}-rtl`]:w==="rtl"},c,u,T,z),A=Object.assign(Object.assign({},E==null?void 0:E.style),d),_=(...V)=>{S(V[0]),b==null||b.apply(void 0,V)};return j(s.createElement(qu,{component:"Switch",disabled:N},s.createElement(OI,Object.assign({},y,{checked:C,onChange:_,prefixCls:I,className:D,style:A,disabled:N,ref:t,loadingIcon:M}))))}),Tm=ZW;Tm.__ANT_SWITCH=!0;var Ni={},ld="rc-table-internal-hook";function My(e){var t=s.createContext(void 0),n=function(a){var l=a.value,c=a.children,u=s.useRef(l);u.current=l;var d=s.useState(function(){return{getValue:function(){return u.current},listeners:new Set}}),m=de(d,1),g=m[0];return en(function(){Uo.unstable_batchedUpdates(function(){g.listeners.forEach(function(v){v(l)})})},[l]),s.createElement(t.Provider,{value:g},c)};return{Context:t,Provider:n,defaultValue:e}}function Br(e,t){var n=Sn(typeof t=="function"?t:function(v){if(t===void 0)return v;if(!Array.isArray(t))return v[t];var h={};return t.forEach(function(b){h[b]=v[b]}),h}),r=s.useContext(e==null?void 0:e.Context),a=r||{},l=a.listeners,c=a.getValue,u=s.useRef();u.current=n(r?c():e==null?void 0:e.defaultValue);var d=s.useState({}),m=de(d,2),g=m[1];return en(function(){if(!r)return;function v(h){var b=n(h);Co(u.current,b,!0)||g({})}return l.add(v),function(){l.delete(v)}},[r]),u.current}function JW(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(a,l){var c=oo(a),u=function(m,g){var v=c?{ref:g}:{},h=s.useRef(0),b=s.useRef(m),y=t();return y!==null?s.createElement(a,Oe({},m,v)):((!l||l(b.current,m))&&(h.current+=1),b.current=m,s.createElement(e.Provider,{value:h.current},s.createElement(a,Oe({},m,v))))};return c?s.forwardRef(u):u}function r(a,l){var c=oo(a),u=function(m,g){var v=c?{ref:g}:{};return t(),s.createElement(a,Oe({},m,v))};return c?s.memo(s.forwardRef(u),l):s.memo(u,l)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var jy=JW(),RI=jy.makeImmutable,rc=jy.responseImmutable,eU=jy.useImmutableMark,oa=My(),NI=s.createContext({renderWithProps:!1}),tU="RC_TABLE_KEY";function nU(e){return e==null?[]:Array.isArray(e)?e:[e]}function Eg(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},l=a.key,c=a.dataIndex,u=l||nU(c).join("-")||tU;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function Z0(e){return e!=null}function rU(e){return typeof e=="number"&&!Number.isNaN(e)}function aU(e){return e&&$t(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function oU(e,t,n,r,a,l){var c=s.useContext(NI),u=eU(),d=Ml(function(){if(Z0(r))return[r];var m=t==null||t===""?[]:Array.isArray(t)?t:[t],g=sa(e,m),v=g,h=void 0;if(a){var b=a(g,e,n);aU(b)?(v=b.children,h=b.props,c.renderWithProps=!0):v=b}return[v,h]},[u,e,r,t,a,n],function(m,g){if(l){var v=de(m,2),h=v[1],b=de(g,2),y=b[1];return l(y,h)}return c.renderWithProps?!0:!Co(m,g,!0)});return d}function iU(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function lU(e,t){return Br(oa,function(n){var r=iU(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var sU=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,l,c=n===!0?{showTitle:!0}:n;return c&&(c.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():s.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function cU(e){var t,n,r,a,l,c,u,d,m=e.component,g=e.children,v=e.ellipsis,h=e.scope,b=e.prefixCls,y=e.className,C=e.align,S=e.record,x=e.render,w=e.dataIndex,E=e.renderIndex,R=e.shouldCellUpdate,N=e.index,I=e.rowType,M=e.colSpan,j=e.rowSpan,T=e.fixLeft,z=e.fixRight,L=e.firstFixLeft,D=e.lastFixLeft,A=e.firstFixRight,_=e.lastFixRight,V=e.appendNode,P=e.additionalProps,B=P===void 0?{}:P,K=e.isSticky,G="".concat(b,"-cell"),Q=Br(oa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),k=Q.supportSticky,U=Q.allColumnsFixedLeft,W=Q.rowHoverable,X=oU(S,w,E,g,x,R),J=de(X,2),ne=J[0],se=J[1],re={},oe=typeof T=="number"&&k,Se=typeof z=="number"&&k;oe&&(re.position="sticky",re.left=T),Se&&(re.position="sticky",re.right=z);var me=(t=(n=(r=se==null?void 0:se.colSpan)!==null&&r!==void 0?r:B.colSpan)!==null&&n!==void 0?n:M)!==null&&t!==void 0?t:1,ie=(a=(l=(c=se==null?void 0:se.rowSpan)!==null&&c!==void 0?c:B.rowSpan)!==null&&l!==void 0?l:j)!==null&&a!==void 0?a:1,ge=lU(N,ie),ue=de(ge,2),ae=ue[0],ce=ue[1],ye=Sn(function(xe){var Ve;S&&ce(N,N+ie-1),B==null||(Ve=B.onMouseEnter)===null||Ve===void 0||Ve.call(B,xe)}),Ce=Sn(function(xe){var Ve;S&&ce(-1,-1),B==null||(Ve=B.onMouseLeave)===null||Ve===void 0||Ve.call(B,xe)});if(me===0||ie===0)return null;var je=(u=B.title)!==null&&u!==void 0?u:sU({rowType:I,ellipsis:v,children:ne}),ze=te(G,y,(d={},q(q(q(q(q(q(q(q(q(q(d,"".concat(G,"-fix-left"),oe&&k),"".concat(G,"-fix-left-first"),L&&k),"".concat(G,"-fix-left-last"),D&&k),"".concat(G,"-fix-left-all"),D&&U&&k),"".concat(G,"-fix-right"),Se&&k),"".concat(G,"-fix-right-first"),A&&k),"".concat(G,"-fix-right-last"),_&&k),"".concat(G,"-ellipsis"),v),"".concat(G,"-with-append"),V),"".concat(G,"-fix-sticky"),(oe||Se)&&K&&k),q(d,"".concat(G,"-row-hover"),!se&&ae)),B.className,se==null?void 0:se.className),ve={};C&&(ve.textAlign=C);var Te=ee(ee(ee(ee({},se==null?void 0:se.style),re),ve),B.style),Ee=ne;return $t(Ee)==="object"&&!Array.isArray(Ee)&&!s.isValidElement(Ee)&&(Ee=null),v&&(D||A)&&(Ee=s.createElement("span",{className:"".concat(G,"-content")},Ee)),s.createElement(m,Oe({},se,B,{className:ze,style:Te,title:je,scope:h,onMouseEnter:W?ye:void 0,onMouseLeave:W?Ce:void 0,colSpan:me!==1?me:null,rowSpan:ie!==1?ie:null}),V,Ee)}const ac=s.memo(cU);function Py(e,t,n,r,a){var l=n[e]||{},c=n[t]||{},u,d;l.fixed==="left"?u=r.left[a==="rtl"?t:e]:c.fixed==="right"&&(d=r.right[a==="rtl"?e:t]);var m=!1,g=!1,v=!1,h=!1,b=n[t+1],y=n[e-1],C=b&&!b.fixed||y&&!y.fixed||n.every(function(R){return R.fixed==="left"});if(a==="rtl"){if(u!==void 0){var S=y&&y.fixed==="left";h=!S&&C}else if(d!==void 0){var x=b&&b.fixed==="right";v=!x&&C}}else if(u!==void 0){var w=b&&b.fixed==="left";m=!w&&C}else if(d!==void 0){var E=y&&y.fixed==="right";g=!E&&C}return{fixLeft:u,fixRight:d,lastFixLeft:m,firstFixRight:g,lastFixRight:v,firstFixLeft:h,isSticky:r.isSticky}}var TI=s.createContext({});function uU(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,u=e.align,d=Br(oa,["prefixCls","direction"]),m=d.prefixCls,g=d.direction,v=s.useContext(TI),h=v.scrollColumnIndex,b=v.stickyOffsets,y=v.flattenColumns,C=n+l-1,S=C+1===h?l+1:l,x=Py(n,n+S-1,y,b,g);return s.createElement(ac,Oe({className:t,index:n,component:"td",prefixCls:m,record:null,dataIndex:null,align:u,colSpan:S,rowSpan:c,render:function(){return r}},x))}var dU=["children"];function fU(e){var t=e.children,n=Pt(e,dU);return s.createElement("tr",n,t)}function Og(e){var t=e.children;return t}Og.Row=fU;Og.Cell=uU;function mU(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Br(oa,"prefixCls"),l=r.length-1,c=r[l],u=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:c!=null&&c.scrollbar?l:null}},[c,r,l,n]);return s.createElement(TI.Provider,{value:u},s.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const jf=rc(mU);var II=Og;function gU(e){return null}function vU(e){return null}function MI(e,t,n,r,a,l,c){var u=l(t,c);e.push({record:t,indent:n,index:c,rowKey:u});var d=a==null?void 0:a.has(u);if(t&&Array.isArray(t[r])&&d)for(var m=0;m<t[r].length;m+=1)MI(e,t[r][m],n+1,r,a,l,m)}function jI(e,t,n,r){var a=s.useMemo(function(){if(n!=null&&n.size){for(var l=[],c=0;c<(e==null?void 0:e.length);c+=1){var u=e[c];MI(l,u,0,t,n,r,c)}return l}return e==null?void 0:e.map(function(d,m){return{record:d,indent:0,index:m,rowKey:r(d,m)}})},[e,t,n,r]);return a}function PI(e,t,n,r){var a=Br(oa,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=a.flattenColumns,c=a.expandableType,u=a.expandedKeys,d=a.childrenColumnName,m=a.onTriggerExpand,g=a.rowExpandable,v=a.onRow,h=a.expandRowByClick,b=a.rowClassName,y=c==="nest",C=c==="row"&&(!g||g(e)),S=C||y,x=u&&u.has(t),w=d&&e&&e[d],E=Sn(m),R=v==null?void 0:v(e,n),N=R==null?void 0:R.onClick,I=function(z){h&&S&&m(e,z);for(var L=arguments.length,D=new Array(L>1?L-1:0),A=1;A<L;A++)D[A-1]=arguments[A];N==null||N.apply(void 0,[z].concat(D))},M;typeof b=="string"?M=b:typeof b=="function"&&(M=b(e,n,r));var j=Eg(l);return ee(ee({},a),{},{columnsKey:j,nestExpandable:y,expanded:x,hasNestChildren:w,record:e,onTriggerExpand:E,rowSupportExpand:C,expandable:S,rowProps:ee(ee({},R),{},{className:te(M,R==null?void 0:R.className),onClick:I})})}function zI(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,l=e.className,c=e.expanded,u=e.colSpan,d=e.isEmpty,m=e.stickyOffset,g=m===void 0?0:m,v=Br(oa,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),h=v.scrollbarSize,b=v.fixHeader,y=v.fixColumn,C=v.componentWidth,S=v.horizonScroll,x=n;return(d?S&&C:y)&&(x=s.createElement("div",{style:{width:C-g-(b&&!d?h:0),position:"sticky",left:g,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},x)),s.createElement(r,{className:l,style:{display:c?null:"none"}},s.createElement(ac,{component:a,prefixCls:t,colSpan:u},x))}function pU(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,l=e.expandable,c="".concat(t,"-row-expand-icon");if(!l)return s.createElement("span",{className:te(c,"".concat(t,"-row-spaced"))});var u=function(m){r(n,m),m.stopPropagation()};return s.createElement("span",{className:te(c,q(q({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function hU(e,t,n){var r=[];function a(l){(l||[]).forEach(function(c,u){r.push(t(c,u)),a(c[n])})}return a(e),r}function _I(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function DI(e,t,n,r,a){var l,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,d=e.record,m=e.prefixCls,g=e.columnsKey,v=e.fixedInfoList,h=e.expandIconColumnIndex,b=e.nestExpandable,y=e.indentSize,C=e.expandIcon,S=e.expanded,x=e.hasNestChildren,w=e.onTriggerExpand,E=e.expandable,R=e.expandedKeys,N=g[n],I=v[n],M;n===(h||0)&&b&&(M=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(y*r,"px")},className:"".concat(m,"-row-indent indent-level-").concat(r)}),C({prefixCls:m,expanded:S,expandable:x,record:d,onExpand:w})));var j=((l=t.onCell)===null||l===void 0?void 0:l.call(t,d,a))||{};if(u){var T=j.rowSpan,z=T===void 0?1:T;if(E&&z&&n<u){for(var L=z,D=a;D<a+z;D+=1){var A=c[D];R.has(A)&&(L+=1)}j.rowSpan=L}}return{key:N,fixedInfo:I,appendCellNode:M,additionalCellProps:j}}function bU(e){var t=e.className,n=e.style,r=e.record,a=e.index,l=e.renderIndex,c=e.rowKey,u=e.rowKeys,d=e.indent,m=d===void 0?0:d,g=e.rowComponent,v=e.cellComponent,h=e.scopeCellComponent,b=e.expandedRowInfo,y=PI(r,c,a,m),C=y.prefixCls,S=y.flattenColumns,x=y.expandedRowClassName,w=y.expandedRowRender,E=y.rowProps,R=y.expanded,N=y.rowSupportExpand,I=s.useRef(!1);I.current||(I.current=R);var M=_I(x,r,a,m),j=s.createElement(g,Oe({},E,{"data-row-key":c,className:te(t,"".concat(C,"-row"),"".concat(C,"-row-level-").concat(m),E==null?void 0:E.className,q({},M,m>=1)),style:ee(ee({},n),E==null?void 0:E.style)}),S.map(function(L,D){var A=L.render,_=L.dataIndex,V=L.className,P=DI(y,L,D,m,a,u,b==null?void 0:b.offset),B=P.key,K=P.fixedInfo,G=P.appendCellNode,Q=P.additionalCellProps;return s.createElement(ac,Oe({className:V,ellipsis:L.ellipsis,align:L.align,scope:L.rowScope,component:L.rowScope?h:v,prefixCls:C,key:B,record:r,index:a,renderIndex:l,dataIndex:_,render:A,shouldCellUpdate:L.shouldCellUpdate},K,{appendNode:G,additionalProps:Q}))})),T;if(N&&(I.current||R)){var z=w(r,a,m+1,R);T=s.createElement(zI,{expanded:R,className:te("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(m+1),M),prefixCls:C,component:g,cellComponent:v,colSpan:b?b.colSpan:S.length,stickyOffset:b==null?void 0:b.sticky,isEmpty:!1},z)}return s.createElement(s.Fragment,null,j,T)}const yU=rc(bU);function SU(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,l=s.useRef();return en(function(){l.current&&n(t,l.current.offsetWidth)},[]),s.createElement(ca,{data:t},s.createElement("th",{ref:l,className:"".concat(r,"-measure-cell")},s.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function CU(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,l=s.useRef(null),c=Br(oa,["measureRowRender"]),u=c.measureRowRender,d=s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:l,tabIndex:-1},s.createElement(ca.Collection,{onBatchResize:function(g){Uu(l.current)&&g.forEach(function(v){var h=v.data,b=v.size;r(h,b.offsetWidth)})}},n.map(function(m){var g=a.find(function(b){return b.key===m}),v=g==null?void 0:g.title,h=s.isValidElement(v)?s.cloneElement(v,{ref:null}):v;return s.createElement(SU,{prefixCls:t,key:m,columnKey:m,onColumnResize:r,title:h})})));return u?u(d):d}function xU(e){var t=e.data,n=e.measureColumnWidth,r=Br(oa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,l=r.getComponent,c=r.onColumnResize,u=r.flattenColumns,d=r.getRowKey,m=r.expandedKeys,g=r.childrenColumnName,v=r.emptyNode,h=r.expandedRowOffset,b=h===void 0?0:h,y=r.colWidths,C=jI(t,g,m,d),S=s.useMemo(function(){return C.map(function(T){return T.rowKey})},[C]),x=s.useRef({renderWithProps:!1}),w=s.useMemo(function(){for(var T=u.length-b,z=0,L=0;L<b;L+=1)z+=y[L]||0;return{offset:b,colSpan:T,sticky:z}},[u.length,b,y]),E=l(["body","wrapper"],"tbody"),R=l(["body","row"],"tr"),N=l(["body","cell"],"td"),I=l(["body","cell"],"th"),M;t.length?M=C.map(function(T,z){var L=T.record,D=T.indent,A=T.index,_=T.rowKey;return s.createElement(yU,{key:_,rowKey:_,rowKeys:S,record:L,index:z,renderIndex:A,rowComponent:R,cellComponent:N,scopeCellComponent:I,indent:D,expandedRowInfo:w})}):M=s.createElement(zI,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:R,cellComponent:N,colSpan:u.length,isEmpty:!0},v);var j=Eg(u);return s.createElement(NI.Provider,{value:x.current},s.createElement(E,{className:"".concat(a,"-tbody")},n&&s.createElement(CU,{prefixCls:a,columnsKey:j,onColumnResize:c,columns:u}),M))}const $U=rc(xU);var wU=["expandable"],bu="RC_TABLE_INTERNAL_COL_DEFINE";function EU(e){var t=e.expandable,n=Pt(e,wU),r;return"expandable"in e?r=ee(ee({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var OU=["columnType"];function AI(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=Br(oa,["tableLayout"]),l=a.tableLayout,c=[],u=r||n.length,d=!1,m=u-1;m>=0;m-=1){var g=t[m],v=n&&n[m],h=void 0,b=void 0;if(v&&(h=v[bu],l==="auto"&&(b=v.minWidth)),g||b||h||d){var y=h||{};y.columnType;var C=Pt(y,OU);c.unshift(s.createElement("col",Oe({key:m,style:{width:g,minWidth:b}},C))),d=!0}}return c.length>0?s.createElement("colgroup",null,c):null}var RU=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function NU(e,t){return s.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var a=e[r];if(a!==void 0)n[r]=a;else return null}return n},[e.join("_"),t])}var TU=s.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,l=e.flattenColumns,c=e.colWidths,u=e.colGroup,d=e.columCount,m=e.stickyOffsets,g=e.direction,v=e.fixHeader,h=e.stickyTopOffset,b=e.stickyBottomOffset,y=e.stickyClassName,C=e.scrollX,S=e.tableLayout,x=S===void 0?"fixed":S,w=e.onScroll,E=e.children,R=Pt(e,RU),N=Br(oa,["prefixCls","scrollbarSize","isSticky","getComponent"]),I=N.prefixCls,M=N.scrollbarSize,j=N.isSticky,T=N.getComponent,z=T(["header","table"],"table"),L=j&&!v?0:M,D=s.useRef(null),A=s.useCallback(function(k){wu(t,k),wu(D,k)},[]);s.useEffect(function(){function k(W){var X=W,J=X.currentTarget,ne=X.deltaX;ne&&(w({currentTarget:J,scrollLeft:J.scrollLeft+ne}),W.preventDefault())}var U=D.current;return U==null||U.addEventListener("wheel",k,{passive:!1}),function(){U==null||U.removeEventListener("wheel",k)}},[]);var _=l[l.length-1],V={fixed:_?_.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(I,"-cell-scrollbar")}}},P=s.useMemo(function(){return L?[].concat(De(a),[V]):a},[L,a]),B=s.useMemo(function(){return L?[].concat(De(l),[V]):l},[L,l]),K=s.useMemo(function(){var k=m.right,U=m.left;return ee(ee({},m),{},{left:g==="rtl"?[].concat(De(U.map(function(W){return W+L})),[0]):U,right:g==="rtl"?k:[].concat(De(k.map(function(W){return W+L})),[0]),isSticky:j})},[L,m,j]),G=NU(c,d),Q=s.useMemo(function(){var k=!G||!G.length||G.every(function(U){return!U});return r||k},[r,G]);return s.createElement("div",{style:ee({overflow:"hidden"},j?{top:h,bottom:b}:{}),ref:A,className:te(n,q({},y,!!y))},s.createElement(z,{style:{tableLayout:x,minWidth:"100%",width:C}},Q?u:s.createElement(AI,{colWidths:[].concat(De(G),[L]),columCount:d+1,columns:B}),E(ee(ee({},R),{},{stickyOffsets:K,columns:P,flattenColumns:B}))))});const BE=s.memo(TU);var IU=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,l=t.rowComponent,c=t.cellComponent,u=t.onHeaderRow,d=t.index,m=Br(oa,["prefixCls","direction"]),g=m.prefixCls,v=m.direction,h;u&&(h=u(n.map(function(y){return y.column}),d));var b=Eg(n.map(function(y){return y.column}));return s.createElement(l,h,n.map(function(y,C){var S=y.column,x=Py(y.colStart,y.colEnd,a,r,v),w;return S&&S.onHeaderCell&&(w=y.column.onHeaderCell(S)),s.createElement(ac,Oe({},y,{scope:S.title?y.colSpan>1?"colgroup":"col":null,ellipsis:S.ellipsis,align:S.align,component:c,prefixCls:g,key:b[C]},x,{additionalProps:w,rowType:"header"}))}))};function MU(e){var t=[];function n(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[d]=t[d]||[];var m=u,g=c.filter(Boolean).map(function(v){var h={key:v.key,className:v.className||"",children:v.title,column:v,colStart:m},b=1,y=v.children;return y&&y.length>0&&(b=n(y,m,d+1).reduce(function(C,S){return C+S},0),h.hasSubColumns=!0),"colSpan"in v&&(b=v.colSpan),"rowSpan"in v&&(h.rowSpan=v.rowSpan),h.colSpan=b,h.colEnd=h.colStart+b-1,t[d].push(h),m+=b,b});return g}n(e,0);for(var r=t.length,a=function(u){t[u].forEach(function(d){!("rowSpan"in d)&&!d.hasSubColumns&&(d.rowSpan=r-u)})},l=0;l<r;l+=1)a(l);return t}var jU=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,l=t.onHeaderRow,c=Br(oa,["prefixCls","getComponent"]),u=c.prefixCls,d=c.getComponent,m=s.useMemo(function(){return MU(r)},[r]),g=d(["header","wrapper"],"thead"),v=d(["header","row"],"tr"),h=d(["header","cell"],"th");return s.createElement(g,{className:"".concat(u,"-thead")},m.map(function(b,y){var C=s.createElement(IU,{key:y,flattenColumns:a,cells:b,stickyOffsets:n,rowComponent:v,cellComponent:h,onHeaderRow:l,index:y});return C}))};const LE=rc(jU);function HE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function PU(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(h){var b=HE(t,h.width);b?r+=b:a+=1});var l=Math.max(t,n),c=Math.max(l-r,a),u=a,d=c/a,m=0,g=e.map(function(h){var b=ee({},h),y=HE(t,b.width);if(y)b.width=y;else{var C=Math.floor(d);b.width=u===1?c:C,c-=C,u-=1}return m+=b.width,b});if(m<l){var v=l/m;c=l,g.forEach(function(h,b){var y=Math.floor(h.width*v);h.width=b===g.length-1?c:y,c-=y})}return[g,Math.max(m,l)]}return[e,t]},[e,t,n])}var zU=["children"],_U=["fixed"];function zy(e){return Ir(e).filter(function(t){return s.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,l=Pt(r,zU),c=ee({key:n},l);return a&&(c.children=zy(a)),c})}function BI(e){return e.filter(function(t){return t&&$t(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?ee(ee({},t),{},{children:BI(n)}):t})}function J0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&$t(n)==="object"}).reduce(function(n,r,a){var l=r.fixed,c=l===!0?"left":l,u="".concat(t,"-").concat(a),d=r.children;return d&&d.length>0?[].concat(De(n),De(J0(d,u).map(function(m){var g;return ee(ee({},m),{},{fixed:(g=m.fixed)!==null&&g!==void 0?g:c})}))):[].concat(De(n),[ee(ee({key:u},r),{},{fixed:c})])},[])}function DU(e){return e.map(function(t){var n=t.fixed,r=Pt(t,_U),a=n;return n==="left"?a="right":n==="right"&&(a="left"),ee({fixed:a},r)})}function AU(e,t){var n=e.prefixCls,r=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,m=e.onTriggerExpand,g=e.expandIcon,v=e.rowExpandable,h=e.expandIconColumnIndex,b=e.expandedRowOffset,y=b===void 0?0:b,C=e.direction,S=e.expandRowByClick,x=e.columnWidth,w=e.fixed,E=e.scrollWidth,R=e.clientWidth,N=s.useMemo(function(){var _=r||zy(a)||[];return BI(_.slice())},[r,a]),I=s.useMemo(function(){if(l){var _=N.slice();if(!_.includes(Ni)){var V=h||0,P=V===0&&w==="right"?N.length:V;P>=0&&_.splice(P,0,Ni)}var B=_.indexOf(Ni);_=_.filter(function(k,U){return k!==Ni||U===B});var K=N[B],G;w?G=w:G=K?K.fixed:null;var Q=q(q(q(q(q(q({},bu,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",G),"className","".concat(n,"-row-expand-icon-cell")),"width",x),"render",function(U,W,X){var J=d(W,X),ne=c.has(J),se=v?v(W):!0,re=g({prefixCls:n,expanded:ne,expandable:se,record:W,onExpand:m});return S?s.createElement("span",{onClick:function(Se){return Se.stopPropagation()}},re):re});return _.map(function(k,U){var W=k===Ni?Q:k;return U<y?ee(ee({},W),{},{fixed:W.fixed||"left"}):W})}return N.filter(function(k){return k!==Ni})},[l,N,d,c,g,C,y]),M=s.useMemo(function(){var _=I;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,I,C]),j=s.useMemo(function(){return C==="rtl"?DU(J0(M)):J0(M)},[M,C,E]),T=s.useMemo(function(){for(var _=-1,V=j.length-1;V>=0;V-=1){var P=j[V].fixed;if(P==="left"||P===!0){_=V;break}}if(_>=0)for(var B=0;B<=_;B+=1){var K=j[B].fixed;if(K!=="left"&&K!==!0)return!0}var G=j.findIndex(function(U){var W=U.fixed;return W==="right"});if(G>=0)for(var Q=G;Q<j.length;Q+=1){var k=j[Q].fixed;if(k!=="right")return!0}return!1},[j]),z=PU(j,E,R),L=de(z,2),D=L[0],A=L[1];return[M,D,A,T]}function BU(e,t,n){var r=EU(e),a=r.expandIcon,l=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,m=r.onExpand,g=r.onExpandedRowsChange,v=r.childrenColumnName,h=a||pU,b=v||"children",y=s.useMemo(function(){return d?"row":e.expandable&&e.internalHooks===ld&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(N){return N&&$t(N)==="object"&&N[b]})?"nest":!1},[!!d,t]),C=s.useState(function(){return c||(u?hU(t,n,b):[])}),S=de(C,2),x=S[0],w=S[1],E=s.useMemo(function(){return new Set(l||x||[])},[l,x]),R=s.useCallback(function(N){var I=n(N,t.indexOf(N)),M,j=E.has(I);j?(E.delete(I),M=De(E)):M=[].concat(De(E),[I]),w(M),m&&m(!j,N),g&&g(M)},[n,E,t,m,g]);return[r,y,E,h,b,R]}function LU(e,t,n){var r=e.map(function(a,l){return Py(l,l,e,t,n)});return Ml(function(){return r},[r],function(a,l){return!Co(a,l)})}function HU(e){var t=s.useRef(e),n=s.useState({}),r=de(n,2),a=r[1],l=s.useRef(null),c=s.useRef([]);function u(d){c.current.push(d);var m=Promise.resolve();l.current=m,m.then(function(){if(l.current===m){var g=c.current,v=t.current;c.current=[],g.forEach(function(h){t.current=h(t.current)}),l.current=null,v!==t.current&&a({})}})}return s.useEffect(function(){return function(){l.current=null}},[]),[t.current,u]}function FU(e){var t=s.useRef(null),n=s.useRef();function r(){window.clearTimeout(n.current)}function a(c){t.current=c,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function l(){return t.current}return s.useEffect(function(){return r},[]),[a,l]}function kU(){var e=s.useState(-1),t=de(e,2),n=t[0],r=t[1],a=s.useState(-1),l=de(a,2),c=l[0],u=l[1],d=s.useCallback(function(m,g){r(m),u(g)},[]);return[n,c,d]}var FE=Yr()?window:null;function VU(e,t){var n=$t(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,l=n.offsetSummary,c=l===void 0?0:l,u=n.offsetScroll,d=u===void 0?0:u,m=n.getContainer,g=m===void 0?function(){return FE}:m,v=g()||FE,h=!!e;return s.useMemo(function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:d,container:v}},[h,d,a,c,t,v])}function KU(e,t,n){var r=s.useMemo(function(){var a=t.length,l=function(m,g,v){for(var h=[],b=0,y=m;y!==g;y+=v)h.push(b),t[y].fixed&&(b+=e[y]||0);return h},c=l(0,a,1),u=l(a-1,-1,-1).reverse();return n==="rtl"?{left:u,right:c}:{left:c,right:u}},[e,t,n]);return r}function kE(e){var t=e.className,n=e.children;return s.createElement("div",{className:t},n)}function VE(e){var t=Fu(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var WU=function(t,n){var r,a,l=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,d=t.container,m=t.direction,g=Br(oa,"prefixCls"),v=((r=l.current)===null||r===void 0?void 0:r.scrollWidth)||0,h=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,b=v&&h*(h/v),y=s.useRef(),C=HU({scrollLeft:0,isHiddenScrollBar:!0}),S=de(C,2),x=S[0],w=S[1],E=s.useRef({delta:0,x:0}),R=s.useState(!1),N=de(R,2),I=N[0],M=N[1],j=s.useRef(null);s.useEffect(function(){return function(){tn.cancel(j.current)}},[]);var T=function(){M(!1)},z=function(V){V.persist(),E.current.delta=V.pageX-x.scrollLeft,E.current.x=0,M(!0),V.preventDefault()},L=function(V){var P,B=V||((P=window)===null||P===void 0?void 0:P.event),K=B.buttons;if(!I||K===0){I&&M(!1);return}var G=E.current.x+V.pageX-E.current.x-E.current.delta,Q=m==="rtl";G=Math.max(Q?b-h:0,Math.min(Q?0:h-b,G));var k=!Q||Math.abs(G)+Math.abs(b)<h;k&&(c({scrollLeft:G/h*(v+2)}),E.current.x=V.pageX)},D=function(){tn.cancel(j.current),j.current=tn(function(){if(l.current){var V=VE(l.current).top,P=V+l.current.offsetHeight,B=d===window?document.documentElement.scrollTop+window.innerHeight:VE(d).top+d.clientHeight;w(function(K){return ee(ee({},K),{},{isHiddenScrollBar:P-U$()<=B||V>=B-u})})}})},A=function(V){w(function(P){return ee(ee({},P),{},{scrollLeft:v?V/v*h:0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:A,checkScrollBarVisible:D}}),s.useEffect(function(){var _=NE(document.body,"mouseup",T,!1),V=NE(document.body,"mousemove",L,!1);return D(),function(){_.remove(),V.remove()}},[b,I]),s.useEffect(function(){if(l.current){for(var _=[],V=Fu(l.current);V;)_.push(V),V=V.parentElement;return _.forEach(function(P){return P.addEventListener("scroll",D,!1)}),window.addEventListener("resize",D,!1),window.addEventListener("scroll",D,!1),d.addEventListener("scroll",D,!1),function(){_.forEach(function(P){return P.removeEventListener("scroll",D)}),window.removeEventListener("resize",D),window.removeEventListener("scroll",D),d.removeEventListener("scroll",D)}}},[d]),s.useEffect(function(){x.isHiddenScrollBar||w(function(_){var V=l.current;return V?ee(ee({},_),{},{scrollLeft:V.scrollLeft/V.scrollWidth*V.clientWidth}):_})},[x.isHiddenScrollBar]),v<=h||!b||x.isHiddenScrollBar?null:s.createElement("div",{style:{height:U$(),width:h,bottom:u},className:"".concat(g,"-sticky-scroll")},s.createElement("div",{onMouseDown:z,ref:y,className:te("".concat(g,"-sticky-scroll-bar"),q({},"".concat(g,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))};const UU=s.forwardRef(WU);var LI="rc-table",qU=[],GU={};function XU(){return"No Data"}function YU(e,t){var n=ee({rowKey:"key",prefixCls:LI,emptyText:XU},e),r=n.prefixCls,a=n.className,l=n.rowClassName,c=n.style,u=n.data,d=n.rowKey,m=n.scroll,g=n.tableLayout,v=n.direction,h=n.title,b=n.footer,y=n.summary,C=n.caption,S=n.id,x=n.showHeader,w=n.components,E=n.emptyText,R=n.onRow,N=n.onHeaderRow,I=n.measureRowRender,M=n.onScroll,j=n.internalHooks,T=n.transformColumns,z=n.internalRefs,L=n.tailor,D=n.getContainerWidth,A=n.sticky,_=n.rowHoverable,V=_===void 0?!0:_,P=u||qU,B=!!P.length,K=j===ld,G=s.useCallback(function(Lt,Xt){return sa(w,Lt)||Xt},[w]),Q=s.useMemo(function(){return typeof d=="function"?d:function(Lt){var Xt=Lt&&Lt[d];return Xt}},[d]),k=G(["body"]),U=kU(),W=de(U,3),X=W[0],J=W[1],ne=W[2],se=BU(n,P,Q),re=de(se,6),oe=re[0],Se=re[1],me=re[2],ie=re[3],ge=re[4],ue=re[5],ae=m==null?void 0:m.x,ce=s.useState(0),ye=de(ce,2),Ce=ye[0],je=ye[1],ze=AU(ee(ee(ee({},n),oe),{},{expandable:!!oe.expandedRowRender,columnTitle:oe.columnTitle,expandedKeys:me,getRowKey:Q,onTriggerExpand:ue,expandIcon:ie,expandIconColumnIndex:oe.expandIconColumnIndex,direction:v,scrollWidth:K&&L&&typeof ae=="number"?ae:null,clientWidth:Ce}),K?T:null),ve=de(ze,4),Te=ve[0],Ee=ve[1],xe=ve[2],Ve=ve[3],Xe=xe??ae,it=s.useMemo(function(){return{columns:Te,flattenColumns:Ee}},[Te,Ee]),at=s.useRef(),Ye=s.useRef(),Je=s.useRef(),_e=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:at.current,scrollTo:function(Xt){var ir;if(Je.current instanceof HTMLElement){var kr=Xt.index,Kn=Xt.top,On=Xt.key;if(rU(Kn)){var Rr;(Rr=Je.current)===null||Rr===void 0||Rr.scrollTo({top:Kn})}else{var zr,fr=On??Q(P[kr]);(zr=Je.current.querySelector('[data-row-key="'.concat(fr,'"]')))===null||zr===void 0||zr.scrollIntoView()}}else(ir=Je.current)!==null&&ir!==void 0&&ir.scrollTo&&Je.current.scrollTo(Xt)}}});var Ie=s.useRef(),We=s.useState(!1),Be=de(We,2),Ge=Be[0],Me=Be[1],Qe=s.useState(!1),lt=de(Qe,2),mt=lt[0],Dt=lt[1],At=s.useState(new Map),et=de(At,2),ct=et[0],gt=et[1],ot=Eg(Ee),vt=ot.map(function(Lt){return ct.get(Lt)}),Mt=s.useMemo(function(){return vt},[vt.join("_")]),pe=KU(Mt,Ee,v),be=m&&Z0(m.y),we=m&&Z0(Xe)||!!oe.fixed,Ke=we&&Ee.some(function(Lt){var Xt=Lt.fixed;return Xt}),ke=s.useRef(),He=VU(A,r),Le=He.isSticky,nt=He.offsetHeader,pt=He.offsetSummary,ht=He.offsetScroll,zt=He.stickyClassName,tt=He.container,Ze=s.useMemo(function(){return y==null?void 0:y(P)},[y,P]),Ct=(be||Le)&&s.isValidElement(Ze)&&Ze.type===Og&&Ze.props.fixed,Ft,Nt,rn;be&&(Nt={overflowY:B?"scroll":"auto",maxHeight:m.y}),we&&(Ft={overflowX:"auto"},be||(Nt={overflowY:"hidden"}),rn={width:Xe===!0?"auto":Xe,minWidth:"100%"});var dn=s.useCallback(function(Lt,Xt){gt(function(ir){if(ir.get(Lt)!==Xt){var kr=new Map(ir);return kr.set(Lt,Xt),kr}return ir})},[]),Wt=FU(),on=de(Wt,2),rt=on[0],dt=on[1];function It(Lt,Xt){Xt&&(typeof Xt=="function"?Xt(Lt):Xt.scrollLeft!==Lt&&(Xt.scrollLeft=Lt,Xt.scrollLeft!==Lt&&setTimeout(function(){Xt.scrollLeft=Lt},0)))}var wt=Sn(function(Lt){var Xt=Lt.currentTarget,ir=Lt.scrollLeft,kr=v==="rtl",Kn=typeof ir=="number"?ir:Xt.scrollLeft,On=Xt||GU;if(!dt()||dt()===On){var Rr;rt(On),It(Kn,Ye.current),It(Kn,Je.current),It(Kn,Ie.current),It(Kn,(Rr=ke.current)===null||Rr===void 0?void 0:Rr.setScrollLeft)}var zr=Xt||Ye.current;if(zr){var fr=K&&L&&typeof Xe=="number"?Xe:zr.scrollWidth,Vr=zr.clientWidth;if(fr===Vr){Me(!1),Dt(!1);return}kr?(Me(-Kn<fr-Vr),Dt(-Kn>0)):(Me(Kn>0),Dt(Kn<fr-Vr))}}),st=Sn(function(Lt){wt(Lt),M==null||M(Lt)}),bt=function(){if(we&&Je.current){var Xt;wt({currentTarget:Fu(Je.current),scrollLeft:(Xt=Je.current)===null||Xt===void 0?void 0:Xt.scrollLeft})}else Me(!1),Dt(!1)},Bt=function(Xt){var ir,kr=Xt.width;(ir=ke.current)===null||ir===void 0||ir.checkScrollBarVisible();var Kn=at.current?at.current.offsetWidth:kr;K&&D&&at.current&&(Kn=D(at.current,Kn)||Kn),Kn!==Ce&&(bt(),je(Kn))},qt=s.useRef(!1);s.useEffect(function(){qt.current&&bt()},[we,u,Te.length]),s.useEffect(function(){qt.current=!0},[]);var ut=s.useState(0),Tt=de(ut,2),kt=Tt[0],Dn=Tt[1],or=s.useState(!0),lr=de(or,2),sr=lr[0],Tn=lr[1];en(function(){(!L||!K)&&(Je.current instanceof Element?Dn(E0(Je.current).width):Dn(E0(_e.current).width)),Tn(D0("position","sticky"))},[]),s.useEffect(function(){K&&z&&(z.body.current=Je.current)});var In=s.useCallback(function(Lt){return s.createElement(s.Fragment,null,s.createElement(LE,Lt),Ct==="top"&&s.createElement(jf,Lt,Ze))},[Ct,Ze]),Or=s.useCallback(function(Lt){return s.createElement(jf,Lt,Ze)},[Ze]),Fr=G(["table"],"table"),pr=s.useMemo(function(){return g||(Ke?Xe==="max-content"?"auto":"fixed":be||Le||Ee.some(function(Lt){var Xt=Lt.ellipsis;return Xt})?"fixed":"auto")},[be,Ke,Ee,g,Le]),fn,yt={colWidths:Mt,columCount:Ee.length,stickyOffsets:pe,onHeaderRow:N,fixHeader:be,scroll:m},xt=s.useMemo(function(){return B?null:typeof E=="function"?E():E},[B,E]),Gt=s.createElement($U,{data:P,measureColumnWidth:be||we||Le}),ln=s.createElement(AI,{colWidths:Ee.map(function(Lt){var Xt=Lt.width;return Xt}),columns:Ee}),yn=C!=null?s.createElement("caption",{className:"".concat(r,"-caption")},C):void 0,En=Ar(n,{data:!0}),Yn=Ar(n,{aria:!0});if(be||Le){var Jn;typeof k=="function"?(Jn=k(P,{scrollbarSize:kt,ref:Je,onScroll:wt}),yt.colWidths=Ee.map(function(Lt,Xt){var ir=Lt.width,kr=Xt===Ee.length-1?ir-kt:ir;return typeof kr=="number"&&!Number.isNaN(kr)?kr:0})):Jn=s.createElement("div",{style:ee(ee({},Ft),Nt),onScroll:st,ref:Je,className:te("".concat(r,"-body"))},s.createElement(Fr,Oe({style:ee(ee({},rn),{},{tableLayout:pr})},Yn),yn,ln,Gt,!Ct&&Ze&&s.createElement(jf,{stickyOffsets:pe,flattenColumns:Ee},Ze)));var dr=ee(ee(ee({noData:!P.length},yt),it),{},{direction:v,stickyClassName:zt,scrollX:Xe,tableLayout:pr,onScroll:wt});fn=s.createElement(s.Fragment,null,x!==!1&&s.createElement(BE,Oe({},dr,{stickyTopOffset:nt,className:"".concat(r,"-header"),ref:Ye,colGroup:ln}),In),Jn,Ct&&Ct!=="top"&&s.createElement(BE,Oe({},dr,{stickyBottomOffset:pt,className:"".concat(r,"-summary"),ref:Ie,colGroup:ln}),Or),Le&&Je.current&&Je.current instanceof Element&&s.createElement(UU,{ref:ke,offsetScroll:ht,scrollBodyRef:Je,onScroll:wt,container:tt,direction:v}))}else fn=s.createElement("div",{style:ee(ee({},Ft),Nt),className:te("".concat(r,"-content")),onScroll:wt,ref:Je},s.createElement(Fr,Oe({style:ee(ee({},rn),{},{tableLayout:pr})},Yn),yn,ln,x!==!1&&s.createElement(LE,Oe({},yt,it)),Gt,Ze&&s.createElement(jf,{stickyOffsets:pe,flattenColumns:Ee},Ze)));var Vn=s.createElement("div",Oe({className:te(r,a,q(q(q(q(q(q(q(q(q(q({},"".concat(r,"-rtl"),v==="rtl"),"".concat(r,"-ping-left"),Ge),"".concat(r,"-ping-right"),mt),"".concat(r,"-layout-fixed"),g==="fixed"),"".concat(r,"-fixed-header"),be),"".concat(r,"-fixed-column"),Ke),"".concat(r,"-fixed-column-gapped"),Ke&&Ve),"".concat(r,"-scroll-horizontal"),we),"".concat(r,"-has-fix-left"),Ee[0]&&Ee[0].fixed),"".concat(r,"-has-fix-right"),Ee[Ee.length-1]&&Ee[Ee.length-1].fixed==="right")),style:c,id:S,ref:at},En),h&&s.createElement(kE,{className:"".concat(r,"-title")},h(P)),s.createElement("div",{ref:_e,className:"".concat(r,"-container")},fn),b&&s.createElement(kE,{className:"".concat(r,"-footer")},b(P)));we&&(Vn=s.createElement(ca,{onResize:Bt},Vn));var hr=LU(Ee,pe,v),ia=s.useMemo(function(){return{scrollX:Xe,prefixCls:r,getComponent:G,scrollbarSize:kt,direction:v,fixedInfoList:hr,isSticky:Le,supportSticky:sr,componentWidth:Ce,fixHeader:be,fixColumn:Ke,horizonScroll:we,tableLayout:pr,rowClassName:l,expandedRowClassName:oe.expandedRowClassName,expandIcon:ie,expandableType:Se,expandRowByClick:oe.expandRowByClick,expandedRowRender:oe.expandedRowRender,expandedRowOffset:oe.expandedRowOffset,onTriggerExpand:ue,expandIconColumnIndex:oe.expandIconColumnIndex,indentSize:oe.indentSize,allColumnsFixedLeft:Ee.every(function(Lt){return Lt.fixed==="left"}),emptyNode:xt,columns:Te,flattenColumns:Ee,onColumnResize:dn,colWidths:Mt,hoverStartRow:X,hoverEndRow:J,onHover:ne,rowExpandable:oe.rowExpandable,onRow:R,getRowKey:Q,expandedKeys:me,childrenColumnName:ge,rowHoverable:V,measureRowRender:I}},[Xe,r,G,kt,v,hr,Le,sr,Ce,be,Ke,we,pr,l,oe.expandedRowClassName,ie,Se,oe.expandRowByClick,oe.expandedRowRender,oe.expandedRowOffset,ue,oe.expandIconColumnIndex,oe.indentSize,xt,Te,Ee,dn,Mt,X,J,ne,oe.rowExpandable,R,Q,me,ge,V,I]);return s.createElement(oa.Provider,{value:ia},Vn)}var QU=s.forwardRef(YU);function HI(e){return RI(QU,e)}var oc=HI();oc.EXPAND_COLUMN=Ni;oc.INTERNAL_HOOKS=ld;oc.Column=gU;oc.ColumnGroup=vU;oc.Summary=II;var _y=My(null),FI=My(null);function ZU(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function JU(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,l=e.index,c=e.component,u=e.renderIndex,d=e.record,m=e.style,g=e.className,v=e.inverse,h=e.getHeight,b=n.render,y=n.dataIndex,C=n.className,S=n.width,x=Br(FI,["columnsOffset"]),w=x.columnsOffset,E=DI(t,n,r,a,l),R=E.key,N=E.fixedInfo,I=E.appendCellNode,M=E.additionalCellProps,j=M.style,T=M.colSpan,z=T===void 0?1:T,L=M.rowSpan,D=L===void 0?1:L,A=r-1,_=ZU(A,z,w),V=z>1?S-_:0,P=ee(ee(ee({},j),m),{},{flex:"0 0 ".concat(_,"px"),width:"".concat(_,"px"),marginRight:V,pointerEvents:"auto"}),B=s.useMemo(function(){return v?D<=1:z===0||D===0||D>1},[D,z,v]);B?P.visibility="hidden":v&&(P.height=h==null?void 0:h(D));var K=B?function(){return null}:b,G={};return(D===0||z===0)&&(G.rowSpan=1,G.colSpan=1),s.createElement(ac,Oe({className:te(C,g),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:c,prefixCls:t.prefixCls,key:R,record:d,index:l,renderIndex:u,dataIndex:y,render:K,shouldCellUpdate:n.shouldCellUpdate},N,{appendNode:I,additionalProps:ee(ee({},M),{},{style:P},G)}))}var eq=["data","index","className","rowKey","style","extra","getHeight"],tq=s.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,l=e.rowKey,c=e.style,u=e.extra,d=e.getHeight,m=Pt(e,eq),g=n.record,v=n.indent,h=n.index,b=Br(oa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=b.scrollX,C=b.flattenColumns,S=b.prefixCls,x=b.fixColumn,w=b.componentWidth,E=Br(_y,["getComponent"]),R=E.getComponent,N=PI(g,l,r,v),I=R(["body","row"],"div"),M=R(["body","cell"],"div"),j=N.rowSupportExpand,T=N.expanded,z=N.rowProps,L=N.expandedRowRender,D=N.expandedRowClassName,A;if(j&&T){var _=L(g,r,v+1,T),V=_I(D,g,r,v),P={};x&&(P={style:q({},"--virtual-width","".concat(w,"px"))});var B="".concat(S,"-expanded-row-cell");A=s.createElement(I,{className:te("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(v+1),V)},s.createElement(ac,{component:M,prefixCls:S,className:te(B,q({},"".concat(B,"-fixed"),x)),additionalProps:P},_))}var K=ee(ee({},c),{},{width:y});u&&(K.position="absolute",K.pointerEvents="none");var G=s.createElement(I,Oe({},z,m,{"data-row-key":l,ref:j?null:t,className:te(a,"".concat(S,"-row"),z==null?void 0:z.className,q({},"".concat(S,"-row-extra"),u)),style:ee(ee({},K),z==null?void 0:z.style)}),C.map(function(Q,k){return s.createElement(JU,{key:k,component:M,rowInfo:N,column:Q,colIndex:k,indent:v,index:r,renderIndex:h,record:g,inverse:u,getHeight:d})}));return j?s.createElement("div",{ref:t},G,A):G}),KE=rc(tq),nq=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Br(oa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),l=a.flattenColumns,c=a.onColumnResize,u=a.getRowKey,d=a.expandedKeys,m=a.prefixCls,g=a.childrenColumnName,v=a.scrollX,h=a.direction,b=Br(_y),y=b.sticky,C=b.scrollY,S=b.listItemHeight,x=b.getComponent,w=b.onScroll,E=s.useRef(),R=jI(n,g,d,u),N=s.useMemo(function(){var A=0;return l.map(function(_){var V=_.width,P=_.minWidth,B=_.key,K=Math.max(V||0,P||0);return A+=K,[B,K,A]})},[l]),I=s.useMemo(function(){return N.map(function(A){return A[2]})},[N]);s.useEffect(function(){N.forEach(function(A){var _=de(A,2),V=_[0],P=_[1];c(V,P)})},[N]),s.useImperativeHandle(t,function(){var A,_={scrollTo:function(P){var B;(B=E.current)===null||B===void 0||B.scrollTo(P)},nativeElement:(A=E.current)===null||A===void 0?void 0:A.nativeElement};return Object.defineProperty(_,"scrollLeft",{get:function(){var P;return((P=E.current)===null||P===void 0?void 0:P.getScrollInfo().x)||0},set:function(P){var B;(B=E.current)===null||B===void 0||B.scrollTo({left:P})}}),Object.defineProperty(_,"scrollTop",{get:function(){var P;return((P=E.current)===null||P===void 0?void 0:P.getScrollInfo().y)||0},set:function(P){var B;(B=E.current)===null||B===void 0||B.scrollTo({top:P})}}),_});var M=function(_,V){var P,B=(P=R[V])===null||P===void 0?void 0:P.record,K=_.onCell;if(K){var G,Q=K(B,V);return(G=Q==null?void 0:Q.rowSpan)!==null&&G!==void 0?G:1}return 1},j=function(_){var V=_.start,P=_.end,B=_.getSize,K=_.offsetY;if(P<0)return null;for(var G=l.filter(function(me){return M(me,V)===0}),Q=V,k=function(ie){if(G=G.filter(function(ge){return M(ge,ie)===0}),!G.length)return Q=ie,1},U=V;U>=0&&!k(U);U-=1);for(var W=l.filter(function(me){return M(me,P)!==1}),X=P,J=function(ie){if(W=W.filter(function(ge){return M(ge,ie)!==1}),!W.length)return X=Math.max(ie-1,P),1},ne=P;ne<R.length&&!J(ne);ne+=1);for(var se=[],re=function(ie){var ge=R[ie];if(!ge)return 1;l.some(function(ue){return M(ue,ie)>1})&&se.push(ie)},oe=Q;oe<=X;oe+=1)re(oe);var Se=se.map(function(me){var ie=R[me],ge=u(ie.record,me),ue=function(ye){var Ce=me+ye-1,je=u(R[Ce].record,Ce),ze=B(ge,je);return ze.bottom-ze.top},ae=B(ge);return s.createElement(KE,{key:me,data:ie,rowKey:ge,index:me,style:{top:-K+ae.top},extra:!0,getHeight:ue})});return Se},T=s.useMemo(function(){return{columnsOffset:I}},[I]),z="".concat(m,"-tbody"),L=x(["body","wrapper"]),D={};return y&&(D.position="sticky",D.bottom=0,$t(y)==="object"&&y.offsetScroll&&(D.bottom=y.offsetScroll)),s.createElement(FI.Provider,{value:T},s.createElement(fg,{fullHeight:!1,ref:E,prefixCls:"".concat(z,"-virtual"),styles:{horizontalScrollBar:D},className:z,height:C,itemHeight:S||24,data:R,itemKey:function(_){return u(_.record)},component:L,scrollWidth:v,direction:h,onVirtualScroll:function(_){var V,P=_.x;r({currentTarget:(V=E.current)===null||V===void 0?void 0:V.nativeElement,scrollLeft:P})},onScroll:w,extraRender:j},function(A,_,V){var P=u(A.record,_);return s.createElement(KE,{data:A,rowKey:P,index:_,style:V.style})}))}),rq=rc(nq),aq=function(t,n){var r=n.ref,a=n.onScroll;return s.createElement(rq,{ref:r,data:t,onScroll:a})};function oq(e,t){var n=e.data,r=e.columns,a=e.scroll,l=e.sticky,c=e.prefixCls,u=c===void 0?LI:c,d=e.className,m=e.listItemHeight,g=e.components,v=e.onScroll,h=a||{},b=h.x,y=h.y;typeof b!="number"&&(b=1),typeof y!="number"&&(y=500);var C=Sn(function(w,E){return sa(g,w)||E}),S=Sn(v),x=s.useMemo(function(){return{sticky:l,scrollY:y,listItemHeight:m,getComponent:C,onScroll:S}},[l,y,m,C,S]);return s.createElement(_y.Provider,{value:x},s.createElement(oc,Oe({},e,{className:te(d,"".concat(u,"-virtual")),scroll:ee(ee({},a),{},{x:b}),components:ee(ee({},g),{},{body:n!=null&&n.length?aq:void 0}),columns:r,internalHooks:ld,tailor:!0,ref:t})))}var iq=s.forwardRef(oq);function kI(e){return RI(iq,e)}kI();const lq=e=>null,sq=e=>null;var Dy=s.createContext(null),cq=s.createContext({}),uq=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,l=t.isEnd,c="".concat(n,"-indent-unit"),u=[],d=0;d<r;d+=1)u.push(s.createElement("span",{key:d,className:te(c,q(q({},"".concat(c,"-start"),a[d]),"".concat(c,"-end"),l[d]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const dq=s.memo(uq);var fq=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],WE="open",UE="close",mq="---",Au=function(t){var n,r,a,l=t.eventKey,c=t.className,u=t.style,d=t.dragOver,m=t.dragOverGapTop,g=t.dragOverGapBottom,v=t.isLeaf,h=t.isStart,b=t.isEnd,y=t.expanded,C=t.selected,S=t.checked,x=t.halfChecked,w=t.loading,E=t.domRef,R=t.active,N=t.data,I=t.onMouseMove,M=t.selectable,j=Pt(t,fq),T=le.useContext(Dy),z=le.useContext(cq),L=le.useRef(null),D=le.useState(!1),A=de(D,2),_=A[0],V=A[1],P=!!(T.disabled||t.disabled||(n=z.nodeDisabled)!==null&&n!==void 0&&n.call(z,N)),B=le.useMemo(function(){return!T.checkable||t.checkable===!1?!1:T.checkable},[T.checkable,t.checkable]),K=function(Ie){P||T.onNodeSelect(Ie,xr(t))},G=function(Ie){P||!B||t.disableCheckbox||T.onNodeCheck(Ie,xr(t),!S)},Q=le.useMemo(function(){return typeof M=="boolean"?M:T.selectable},[M,T.selectable]),k=function(Ie){T.onNodeClick(Ie,xr(t)),Q?K(Ie):G(Ie)},U=function(Ie){T.onNodeDoubleClick(Ie,xr(t))},W=function(Ie){T.onNodeMouseEnter(Ie,xr(t))},X=function(Ie){T.onNodeMouseLeave(Ie,xr(t))},J=function(Ie){T.onNodeContextMenu(Ie,xr(t))},ne=le.useMemo(function(){return!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(N)))},[T.draggable,N]),se=function(Ie){Ie.stopPropagation(),V(!0),T.onNodeDragStart(Ie,t);try{Ie.dataTransfer.setData("text/plain","")}catch{}},re=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),T.onNodeDragEnter(Ie,t)},oe=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),T.onNodeDragOver(Ie,t)},Se=function(Ie){Ie.stopPropagation(),T.onNodeDragLeave(Ie,t)},me=function(Ie){Ie.stopPropagation(),V(!1),T.onNodeDragEnd(Ie,t)},ie=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),V(!1),T.onNodeDrop(Ie,t)},ge=function(Ie){w||T.onNodeExpand(Ie,xr(t))},ue=le.useMemo(function(){var _e=ha(T.keyEntities,l)||{},Ie=_e.children;return!!(Ie||[]).length},[T.keyEntities,l]),ae=le.useMemo(function(){return v===!1?!1:v||!T.loadData&&!ue||T.loadData&&t.loaded&&!ue},[v,T.loadData,ue,t.loaded]);le.useEffect(function(){w||typeof T.loadData=="function"&&y&&!ae&&!t.loaded&&T.onNodeLoad(xr(t))},[w,T.loadData,T.onNodeLoad,y,ae,t]);var ce=le.useMemo(function(){var _e;return(_e=T.draggable)!==null&&_e!==void 0&&_e.icon?le.createElement("span",{className:"".concat(T.prefixCls,"-draggable-icon")},T.draggable.icon):null},[T.draggable]),ye=function(Ie){var We=t.switcherIcon||T.switcherIcon;return typeof We=="function"?We(ee(ee({},t),{},{isLeaf:Ie})):We},Ce=function(){if(ae){var Ie=ye(!0);return Ie!==!1?le.createElement("span",{className:te("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher-noop"))},Ie):null}var We=ye(!1);return We!==!1?le.createElement("span",{onClick:ge,className:te("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher_").concat(y?WE:UE))},We):null},je=le.useMemo(function(){if(!B)return null;var _e=typeof B!="boolean"?B:null;return le.createElement("span",{className:te("".concat(T.prefixCls,"-checkbox"),q(q(q({},"".concat(T.prefixCls,"-checkbox-checked"),S),"".concat(T.prefixCls,"-checkbox-indeterminate"),!S&&x),"".concat(T.prefixCls,"-checkbox-disabled"),P||t.disableCheckbox)),onClick:G,role:"checkbox","aria-checked":x?"mixed":S,"aria-disabled":P||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},_e)},[B,S,x,P,t.disableCheckbox,t.title]),ze=le.useMemo(function(){return ae?null:y?WE:UE},[ae,y]),ve=le.useMemo(function(){return le.createElement("span",{className:te("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__").concat(ze||"docu"),q({},"".concat(T.prefixCls,"-icon_loading"),w))})},[T.prefixCls,ze,w]),Te=le.useMemo(function(){var _e=!!T.draggable,Ie=!t.disabled&&_e&&T.dragOverNodeKey===l;return Ie?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),Ee=le.useMemo(function(){var _e=t.title,Ie=_e===void 0?mq:_e,We="".concat(T.prefixCls,"-node-content-wrapper"),Be;if(T.showIcon){var Ge=t.icon||T.icon;Be=Ge?le.createElement("span",{className:te("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__customize"))},typeof Ge=="function"?Ge(t):Ge):ve}else T.loadData&&w&&(Be=ve);var Me;return typeof Ie=="function"?Me=Ie(N):T.titleRender?Me=T.titleRender(N):Me=Ie,le.createElement("span",{ref:L,title:typeof Ie=="string"?Ie:"",className:te(We,"".concat(We,"-").concat(ze||"normal"),q({},"".concat(T.prefixCls,"-node-selected"),!P&&(C||_))),onMouseEnter:W,onMouseLeave:X,onContextMenu:J,onClick:k,onDoubleClick:U},Be,le.createElement("span",{className:"".concat(T.prefixCls,"-title")},Me),Te)},[T.prefixCls,T.showIcon,t,T.icon,ve,T.titleRender,N,ze,W,X,J,k,U]),xe=Ar(j,{aria:!0,data:!0}),Ve=ha(T.keyEntities,l)||{},Xe=Ve.level,it=b[b.length-1],at=!P&&ne,Ye=T.draggingNodeKey===l,Je=M!==void 0?{"aria-selected":!!M}:void 0;return le.createElement("div",Oe({ref:E,role:"treeitem","aria-expanded":v?void 0:y,className:te(c,"".concat(T.prefixCls,"-treenode"),(a={},q(q(q(q(q(q(q(q(q(q(a,"".concat(T.prefixCls,"-treenode-disabled"),P),"".concat(T.prefixCls,"-treenode-switcher-").concat(y?"open":"close"),!v),"".concat(T.prefixCls,"-treenode-checkbox-checked"),S),"".concat(T.prefixCls,"-treenode-checkbox-indeterminate"),x),"".concat(T.prefixCls,"-treenode-selected"),C),"".concat(T.prefixCls,"-treenode-loading"),w),"".concat(T.prefixCls,"-treenode-active"),R),"".concat(T.prefixCls,"-treenode-leaf-last"),it),"".concat(T.prefixCls,"-treenode-draggable"),ne),"dragging",Ye),q(q(q(q(q(q(q(a,"drop-target",T.dropTargetKey===l),"drop-container",T.dropContainerKey===l),"drag-over",!P&&d),"drag-over-gap-top",!P&&m),"drag-over-gap-bottom",!P&&g),"filter-node",(r=T.filterTreeNode)===null||r===void 0?void 0:r.call(T,xr(t))),"".concat(T.prefixCls,"-treenode-leaf"),ae))),style:u,draggable:at,onDragStart:at?se:void 0,onDragEnter:ne?re:void 0,onDragOver:ne?oe:void 0,onDragLeave:ne?Se:void 0,onDrop:ne?ie:void 0,onDragEnd:ne?me:void 0,onMouseMove:I},Je,xe),le.createElement(dq,{prefixCls:T.prefixCls,level:Xe,isStart:h,isEnd:b}),ce,Ce(),je,Ee)};Au.isTreeNode=1;function ho(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Vo(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Ay(e){return e.split("-")}function gq(e,t){var n=[],r=ha(t,e);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var u=c.key,d=c.children;n.push(u),a(d)})}return a(r.children),n}function vq(e){if(e.parent){var t=Ay(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function pq(e){var t=Ay(e.pos);return Number(t[t.length-1])===0}function qE(e,t,n,r,a,l,c,u,d,m){var g,v=e.clientX,h=e.clientY,b=e.target.getBoundingClientRect(),y=b.top,C=b.height,S=(m==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-v),x=(S-12)/r,w=d.filter(function(P){var B;return(B=u[P])===null||B===void 0||(B=B.children)===null||B===void 0?void 0:B.length}),E=ha(u,n.eventKey);if(h<y+C/2){var R=c.findIndex(function(P){return P.key===E.key}),N=R<=0?0:R-1,I=c[N].key;E=ha(u,I)}var M=E.key,j=E,T=E.key,z=0,L=0;if(!w.includes(M))for(var D=0;D<x&&vq(E);D+=1)E=E.parent,L+=1;var A=t.data,_=E.node,V=!0;return pq(E)&&E.level===0&&h<y+C/2&&l({dragNode:A,dropNode:_,dropPosition:-1})&&E.key===n.eventKey?z=-1:(j.children||[]).length&&w.includes(T)?l({dragNode:A,dropNode:_,dropPosition:0})?z=0:V=!1:L===0?x>-1.5?l({dragNode:A,dropNode:_,dropPosition:1})?z=1:V=!1:l({dragNode:A,dropNode:_,dropPosition:0})?z=0:l({dragNode:A,dropNode:_,dropPosition:1})?z=1:V=!1:l({dragNode:A,dropNode:_,dropPosition:1})?z=1:V=!1,{dropPosition:z,dropLevelOffset:L,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:T,dropContainerKey:z===0?null:((g=E.parent)===null||g===void 0?void 0:g.key)||null,dropAllowed:V}}function GE(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function xh(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if($t(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Xn(!1,"`checkedKeys` is not an array or an object"),null;return t}function eb(e,t){var n=new Set;function r(a){if(!n.has(a)){var l=ha(t,a);if(l){n.add(a);var c=l.parent,u=l.node;u.disabled||c&&r(c.key)}}}return(e||[]).forEach(function(a){r(a)}),De(n)}const Oi={},tb="SELECT_ALL",nb="SELECT_INVERT",rb="SELECT_NONE",XE=[],VI=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&VI(e,r[e],n)}),n),hq=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:l,getTitleCheckboxProps:c,onChange:u,onSelect:d,onSelectAll:m,onSelectInvert:g,onSelectNone:v,onSelectMultiple:h,columnWidth:b,type:y,selections:C,fixed:S,renderCell:x,hideSelectAll:w,checkStrictly:E=!0}=t||{},{prefixCls:R,data:N,pageData:I,getRecordByKey:M,getRowKey:j,expandType:T,childrenColumnName:z,locale:L,getPopupContainer:D}=e,A=Oo(),[_,V]=r_(ie=>ie),[P,B]=Gn(r||a||XE,{value:r}),K=s.useRef(new Map),G=s.useCallback(ie=>{if(n){const ge=new Map;ie.forEach(ue=>{let ae=M(ue);!ae&&K.current.has(ue)&&(ae=K.current.get(ue)),ge.set(ue,ae)}),K.current=ge}},[M,n]);s.useEffect(()=>{G(P)},[P]);const Q=s.useMemo(()=>VI(z,I),[z,I]),{keyEntities:k}=s.useMemo(()=>{if(E)return{keyEntities:null};let ie=N;if(n){const ge=new Set(Q.map((ae,ce)=>j(ae,ce))),ue=Array.from(K.current).reduce((ae,[ce,ye])=>ge.has(ce)?ae:ae.concat(ye),[]);ie=[].concat(De(ie),De(ue))}return xy(ie,{externalGetKey:j,childrenPropName:z})},[N,j,E,z,n,Q]),U=s.useMemo(()=>{const ie=new Map;return Q.forEach((ge,ue)=>{const ae=j(ge,ue),ce=(l?l(ge):null)||{};ie.set(ae,ce)}),ie},[Q,j,l]),W=s.useCallback(ie=>{const ge=j(ie);let ue;return U.has(ge)?ue=U.get(j(ie)):ue=l?l(ie):void 0,!!(ue!=null&&ue.disabled)},[U,j]),[X,J]=s.useMemo(()=>{if(E)return[P||[],[]];const{checkedKeys:ie,halfCheckedKeys:ge}=Ds(P,!0,k,W);return[ie||[],ge]},[P,E,k,W]),ne=s.useMemo(()=>{const ie=y==="radio"?X.slice(0,1):X;return new Set(ie)},[X,y]),se=s.useMemo(()=>y==="radio"?new Set:new Set(J),[J,y]);s.useEffect(()=>{t||B(XE)},[!!t]);const re=s.useCallback((ie,ge)=>{let ue,ae;G(ie),n?(ue=ie,ae=ie.map(ce=>K.current.get(ce))):(ue=[],ae=[],ie.forEach(ce=>{const ye=M(ce);ye!==void 0&&(ue.push(ce),ae.push(ye))})),B(ue),u==null||u(ue,ae,{type:ge})},[B,M,u,n]),oe=s.useCallback((ie,ge,ue,ae)=>{if(d){const ce=ue.map(ye=>M(ye));d(M(ie),ge,ce,ae)}re(ue,"single")},[d,M,re]),Se=s.useMemo(()=>!C||w?null:(C===!0?[tb,nb,rb]:C).map(ge=>ge===tb?{key:"all",text:L.selectionAll,onSelect(){re(N.map((ue,ae)=>j(ue,ae)).filter(ue=>{const ae=U.get(ue);return!(ae!=null&&ae.disabled)||ne.has(ue)}),"all")}}:ge===nb?{key:"invert",text:L.selectInvert,onSelect(){const ue=new Set(ne);I.forEach((ce,ye)=>{const Ce=j(ce,ye),je=U.get(Ce);je!=null&&je.disabled||(ue.has(Ce)?ue.delete(Ce):ue.add(Ce))});const ae=Array.from(ue);g&&(A.deprecated(!1,"onSelectInvert","onChange"),g(ae)),re(ae,"invert")}}:ge===rb?{key:"none",text:L.selectNone,onSelect(){v==null||v(),re(Array.from(ne).filter(ue=>{const ae=U.get(ue);return ae==null?void 0:ae.disabled}),"none")}}:ge).map(ge=>Object.assign(Object.assign({},ge),{onSelect:(...ue)=>{var ae,ce;(ce=ge.onSelect)===null||ce===void 0||(ae=ce).call.apply(ae,[ge].concat(ue)),V(null)}})),[C,ne,I,j,g,re]);return[s.useCallback(ie=>{var ge;if(!t)return ie.filter(_e=>_e!==Oi);let ue=De(ie);const ae=new Set(ne),ce=Q.map(j).filter(_e=>!U.get(_e).disabled),ye=ce.every(_e=>ae.has(_e)),Ce=ce.some(_e=>ae.has(_e)),je=()=>{const _e=[];ye?ce.forEach(We=>{ae.delete(We),_e.push(We)}):ce.forEach(We=>{ae.has(We)||(ae.add(We),_e.push(We))});const Ie=Array.from(ae);m==null||m(!ye,Ie.map(We=>M(We)),_e.map(We=>M(We))),re(Ie,"all"),V(null)};let ze,ve;if(y!=="radio"){let _e;if(Se){const mt={getPopupContainer:D,items:Se.map((Dt,At)=>{const{key:et,text:ct,onSelect:gt}=Dt;return{key:et??At,onClick:()=>{gt==null||gt(ce)},label:ct}})};_e=s.createElement("div",{className:`${R}-selection-extra`},s.createElement(Ny,{menu:mt,getPopupContainer:D},s.createElement("span",null,s.createElement(iy,null))))}const Ie=Q.map((mt,Dt)=>{const At=j(mt,Dt),et=U.get(At)||{};return Object.assign({checked:ae.has(At)},et)}).filter(({disabled:mt})=>mt),We=!!Ie.length&&Ie.length===Q.length,Be=We&&Ie.every(({checked:mt})=>mt),Ge=We&&Ie.some(({checked:mt})=>mt),Me=(c==null?void 0:c())||{},{onChange:Qe,disabled:lt}=Me;ve=s.createElement(na,Object.assign({"aria-label":_e?"Custom selection":"Select all"},Me,{checked:We?Be:!!Q.length&&ye,indeterminate:We?!Be&&Ge:!ye&&Ce,onChange:mt=>{je(),Qe==null||Qe(mt)},disabled:lt??(Q.length===0||We),skipGroup:!0})),ze=!w&&s.createElement("div",{className:`${R}-selection`},ve,_e)}let Te;y==="radio"?Te=(_e,Ie,We)=>{const Be=j(Ie,We),Ge=ae.has(Be),Me=U.get(Be);return{node:s.createElement(rd,Object.assign({},Me,{checked:Ge,onClick:Qe=>{var lt;Qe.stopPropagation(),(lt=Me==null?void 0:Me.onClick)===null||lt===void 0||lt.call(Me,Qe)},onChange:Qe=>{var lt;ae.has(Be)||oe(Be,!0,[Be],Qe.nativeEvent),(lt=Me==null?void 0:Me.onChange)===null||lt===void 0||lt.call(Me,Qe)}})),checked:Ge}}:Te=(_e,Ie,We)=>{var Be;const Ge=j(Ie,We),Me=ae.has(Ge),Qe=se.has(Ge),lt=U.get(Ge);let mt;return T==="nest"?mt=Qe:mt=(Be=lt==null?void 0:lt.indeterminate)!==null&&Be!==void 0?Be:Qe,{node:s.createElement(na,Object.assign({},lt,{indeterminate:mt,checked:Me,skipGroup:!0,onClick:Dt=>{var At;Dt.stopPropagation(),(At=lt==null?void 0:lt.onClick)===null||At===void 0||At.call(lt,Dt)},onChange:Dt=>{var At;const{nativeEvent:et}=Dt,{shiftKey:ct}=et,gt=ce.indexOf(Ge),ot=X.some(vt=>ce.includes(vt));if(ct&&E&&ot){const vt=_(gt,ce,ae),Mt=Array.from(ae);h==null||h(!Me,Mt.map(pe=>M(pe)),vt.map(pe=>M(pe))),re(Mt,"multiple")}else{const vt=X;if(E){const Mt=Me?ho(vt,Ge):Vo(vt,Ge);oe(Ge,!Me,Mt,et)}else{const Mt=Ds([].concat(De(vt),[Ge]),!0,k,W),{checkedKeys:pe,halfCheckedKeys:be}=Mt;let we=pe;if(Me){const Ke=new Set(pe);Ke.delete(Ge),we=Ds(Array.from(Ke),{halfCheckedKeys:be},k,W).checkedKeys}oe(Ge,!Me,we,et)}}V(Me?null:gt),(At=lt==null?void 0:lt.onChange)===null||At===void 0||At.call(lt,Dt)}})),checked:Me}};const Ee=(_e,Ie,We)=>{const{node:Be,checked:Ge}=Te(_e,Ie,We);return x?x(Ge,Ie,We,Be):Be};if(!ue.includes(Oi))if(ue.findIndex(_e=>{var Ie;return((Ie=_e[bu])===null||Ie===void 0?void 0:Ie.columnType)==="EXPAND_COLUMN"})===0){const[_e,...Ie]=ue;ue=[_e,Oi].concat(De(Ie))}else ue=[Oi].concat(De(ue));const xe=ue.indexOf(Oi);ue=ue.filter((_e,Ie)=>_e!==Oi||Ie===xe);const Ve=ue[xe-1],Xe=ue[xe+1];let it=S;it===void 0&&((Xe==null?void 0:Xe.fixed)!==void 0?it=Xe.fixed:(Ve==null?void 0:Ve.fixed)!==void 0&&(it=Ve.fixed)),it&&Ve&&((ge=Ve[bu])===null||ge===void 0?void 0:ge.columnType)==="EXPAND_COLUMN"&&Ve.fixed===void 0&&(Ve.fixed=it);const at=te(`${R}-selection-col`,{[`${R}-selection-col-with-dropdown`]:C&&y==="checkbox"}),Ye=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ve):t.columnTitle:ze,Je={fixed:it,width:b,className:`${R}-selection-column`,title:Ye(),render:Ee,onCell:t.onCell,align:t.align,[bu]:{className:at}};return ue.map(_e=>_e===Oi?Je:_e)},[j,Q,t,X,ne,se,b,Se,T,U,h,oe,W]),ne]};function bq(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:l,expandable:c}=t,u=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:d=>{r(a,d),d.stopPropagation()},className:te(u,{[`${u}-spaced`]:!c,[`${u}-expanded`]:c&&l,[`${u}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}function yq(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let l=r;if(a){const c=getComputedStyle(a),u=Number.parseInt(c.borderLeftWidth,10),d=Number.parseInt(c.borderRightWidth,10);l=r-u-d}return l}}const Bi=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function ic(e,t){return t?`${t}-${e}`:`${e}`}const Rg=(e,t)=>typeof e=="function"?e(t):e,Sq=(e,t)=>{const n=Rg(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var Cq={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"},xq=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:Cq}))},$q=s.forwardRef(xq),wq=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,l={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:l.top=0,l.left=-r*a;break;case 1:l.bottom=0,l.left=-r*a;break;case 0:l.bottom=0,l.left=a;break}return le.createElement("div",{style:l})};function KI(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Eq(e,t){var n=s.useState(!1),r=de(n,2),a=r[0],l=r[1];en(function(){if(a)return e(),function(){t()}},[a]),en(function(){return l(!0),function(){l(!1)}},[])}var Oq=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Rq=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,l=e.motionNodes,c=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,m=e.active,g=e.treeNodeRequiredProps,v=Pt(e,Oq),h=s.useState(!0),b=de(h,2),y=b[0],C=b[1],S=s.useContext(Dy),x=S.prefixCls,w=l&&c!=="hide";en(function(){l&&w!==y&&C(w)},[l]);var E=function(){l&&u()},R=s.useRef(!1),N=function(){l&&!R.current&&(R.current=!0,d())};Eq(E,N);var I=function(j){w===j&&N()};return l?s.createElement(Sa,Oe({ref:t,visible:y},a,{motionAppear:c==="show",onVisibleChanged:I}),function(M,j){var T=M.className,z=M.style;return s.createElement("div",{ref:j,className:te("".concat(x,"-treenode-motion"),T),style:z},l.map(function(L){var D=Object.assign({},(KI(L.data),L.data)),A=L.title,_=L.key,V=L.isStart,P=L.isEnd;delete D.children;var B=pu(_,g);return s.createElement(Au,Oe({},D,B,{title:A,active:m,data:L.data,key:_,isStart:V,isEnd:P}))}))}):s.createElement(Au,Oe({domRef:t,className:n,style:r},v,{active:m}))});function Nq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(l,c){var u=new Map;l.forEach(function(m){u.set(m,!0)});var d=c.filter(function(m){return!u.has(m)});return d.length===1?d[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function YE(e,t,n){var r=e.findIndex(function(u){return u.key===n}),a=e[r+1],l=t.findIndex(function(u){return u.key===n});if(a){var c=t.findIndex(function(u){return u.key===a.key});return t.slice(l+1,c)}return t.slice(l+1)}var Tq=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],QE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Iq=function(){},Nl="RC_TREE_MOTION_".concat(Math.random()),ab={key:Nl},WI={key:Nl,level:0,index:0,pos:"0",node:ab,nodes:[ab]},ZE={parent:null,children:[],pos:WI.pos,data:ab,title:null,key:Nl,isStart:[],isEnd:[]};function JE(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function e2(e){var t=e.key,n=e.pos;return od(t,n)}function Mq(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var jq=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,l=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,m=e.halfCheckedKeys,g=e.keyEntities,v=e.disabled,h=e.dragging,b=e.dragOverNodeKey,y=e.dropPosition,C=e.motion,S=e.height,x=e.itemHeight,w=e.virtual,E=e.scrollWidth,R=e.focusable,N=e.activeItem,I=e.focused,M=e.tabIndex,j=e.onKeyDown,T=e.onFocus,z=e.onBlur,L=e.onActiveChange,D=e.onListChangeStart,A=e.onListChangeEnd,_=Pt(e,Tq),V=s.useRef(null),P=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(Te){V.current.scrollTo(Te)},getIndentWidth:function(){return P.current.offsetWidth}}});var B=s.useState(a),K=de(B,2),G=K[0],Q=K[1],k=s.useState(r),U=de(k,2),W=U[0],X=U[1],J=s.useState(r),ne=de(J,2),se=ne[0],re=ne[1],oe=s.useState([]),Se=de(oe,2),me=Se[0],ie=Se[1],ge=s.useState(null),ue=de(ge,2),ae=ue[0],ce=ue[1],ye=s.useRef(r);ye.current=r;function Ce(){var ve=ye.current;X(ve),re(ve),ie([]),ce(null),A()}en(function(){Q(a);var ve=Nq(G,a);if(ve.key!==null)if(ve.add){var Te=W.findIndex(function(at){var Ye=at.key;return Ye===ve.key}),Ee=JE(YE(W,r,ve.key),w,S,x),xe=W.slice();xe.splice(Te+1,0,ZE),re(xe),ie(Ee),ce("show")}else{var Ve=r.findIndex(function(at){var Ye=at.key;return Ye===ve.key}),Xe=JE(YE(r,W,ve.key),w,S,x),it=r.slice();it.splice(Ve+1,0,ZE),re(it),ie(Xe),ce("hide")}else W!==r&&(X(r),re(r))},[a,r]),s.useEffect(function(){h||Ce()},[h]);var je=C?se:r,ze={expandedKeys:a,selectedKeys:l,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:m,dragOverNodeKey:b,dropPosition:y,keyEntities:g};return s.createElement(s.Fragment,null,I&&N&&s.createElement("span",{style:QE,"aria-live":"assertive"},Mq(N)),s.createElement("div",null,s.createElement("input",{style:QE,disabled:R===!1||v,tabIndex:R!==!1?M:null,onKeyDown:j,onFocus:T,onBlur:z,value:"",onChange:Iq,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),s.createElement(fg,Oe({},_,{data:je,itemKey:e2,height:S,fullHeight:!1,virtual:w,itemHeight:x,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:V,role:"tree",onVisibleChange:function(Te){Te.every(function(Ee){return e2(Ee)!==Nl})&&Ce()}}),function(ve){var Te=ve.pos,Ee=Object.assign({},(KI(ve.data),ve.data)),xe=ve.title,Ve=ve.key,Xe=ve.isStart,it=ve.isEnd,at=od(Ve,Te);delete Ee.key,delete Ee.children;var Ye=pu(at,ze);return s.createElement(Rq,Oe({},Ee,Ye,{title:xe,active:!!N&&Ve===N.key,pos:Te,data:ve.data,isStart:Xe,isEnd:it,motion:C,motionNodes:Ve===Nl?me:null,motionType:ae,onMotionStart:D,onMotionEnd:Ce,treeNodeRequiredProps:ze,onMouseMove:function(){L(null)}}))}))}),Pq=10,By=(function(e){so(n,e);var t=Eo(n);function n(){var r;rr(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),q(St(r),"destroyed",!1),q(St(r),"delayedDragEnterLogic",void 0),q(St(r),"loadingRetryTimes",{}),q(St(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:qs()}),q(St(r),"dragStartMousePosition",null),q(St(r),"dragNodeProps",null),q(St(r),"currentMouseOverDroppableNodeKey",null),q(St(r),"listRef",s.createRef()),q(St(r),"onNodeDragStart",function(u,d){var m=r.state,g=m.expandedKeys,v=m.keyEntities,h=r.props.onDragStart,b=d.eventKey;r.dragNodeProps=d,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var y=ho(g,b);r.setState({draggingNodeKey:b,dragChildrenKeys:gq(b,v),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(y),window.addEventListener("dragend",r.onWindowDragEnd),h==null||h({event:u,node:xr(d)})}),q(St(r),"onNodeDragEnter",function(u,d){var m=r.state,g=m.expandedKeys,v=m.keyEntities,h=m.dragChildrenKeys,b=m.flattenNodes,y=m.indent,C=r.props,S=C.onDragEnter,x=C.onExpand,w=C.allowDrop,E=C.direction,R=d.pos,N=d.eventKey;if(r.currentMouseOverDroppableNodeKey!==N&&(r.currentMouseOverDroppableNodeKey=N),!r.dragNodeProps){r.resetDragState();return}var I=qE(u,r.dragNodeProps,d,y,r.dragStartMousePosition,w,b,v,g,E),M=I.dropPosition,j=I.dropLevelOffset,T=I.dropTargetKey,z=I.dropContainerKey,L=I.dropTargetPos,D=I.dropAllowed,A=I.dragOverNodeKey;if(h.includes(T)||!D){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(_){clearTimeout(r.delayedDragEnterLogic[_])}),r.dragNodeProps.eventKey!==d.eventKey&&(u.persist(),r.delayedDragEnterLogic[R]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var _=De(g),V=ha(v,d.eventKey);V&&(V.children||[]).length&&(_=Vo(g,d.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(_),x==null||x(_,{node:xr(d),expanded:!0,nativeEvent:u.nativeEvent})}},800)),r.dragNodeProps.eventKey===T&&j===0){r.resetDragState();return}r.setState({dragOverNodeKey:A,dropPosition:M,dropLevelOffset:j,dropTargetKey:T,dropContainerKey:z,dropTargetPos:L,dropAllowed:D}),S==null||S({event:u,node:xr(d),expandedKeys:g})}),q(St(r),"onNodeDragOver",function(u,d){var m=r.state,g=m.dragChildrenKeys,v=m.flattenNodes,h=m.keyEntities,b=m.expandedKeys,y=m.indent,C=r.props,S=C.onDragOver,x=C.allowDrop,w=C.direction;if(r.dragNodeProps){var E=qE(u,r.dragNodeProps,d,y,r.dragStartMousePosition,x,v,h,b,w),R=E.dropPosition,N=E.dropLevelOffset,I=E.dropTargetKey,M=E.dropContainerKey,j=E.dropTargetPos,T=E.dropAllowed,z=E.dragOverNodeKey;g.includes(I)||!T||(r.dragNodeProps.eventKey===I&&N===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():R===r.state.dropPosition&&N===r.state.dropLevelOffset&&I===r.state.dropTargetKey&&M===r.state.dropContainerKey&&j===r.state.dropTargetPos&&T===r.state.dropAllowed&&z===r.state.dragOverNodeKey||r.setState({dropPosition:R,dropLevelOffset:N,dropTargetKey:I,dropContainerKey:M,dropTargetPos:j,dropAllowed:T,dragOverNodeKey:z}),S==null||S({event:u,node:xr(d)}))}}),q(St(r),"onNodeDragLeave",function(u,d){r.currentMouseOverDroppableNodeKey===d.eventKey&&!u.currentTarget.contains(u.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var m=r.props.onDragLeave;m==null||m({event:u,node:xr(d)})}),q(St(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),q(St(r),"onNodeDragEnd",function(u,d){var m=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),m==null||m({event:u,node:xr(d)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),q(St(r),"onNodeDrop",function(u,d){var m,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=r.state,h=v.dragChildrenKeys,b=v.dropPosition,y=v.dropTargetKey,C=v.dropTargetPos,S=v.dropAllowed;if(S){var x=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),y!==null){var w=ee(ee({},pu(y,r.getTreeNodeRequiredProps())),{},{active:((m=r.getActiveItem())===null||m===void 0?void 0:m.key)===y,data:ha(r.state.keyEntities,y).node}),E=h.includes(y);Xn(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var R=Ay(C),N={event:u,node:xr(w),dragNode:r.dragNodeProps?xr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:b!==0,dropPosition:b+Number(R[R.length-1])};g||x==null||x(N),r.dragNodeProps=null}}}),q(St(r),"cleanDragState",function(){var u=r.state.draggingNodeKey;u!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),q(St(r),"triggerExpandActionExpand",function(u,d){var m=r.state,g=m.expandedKeys,v=m.flattenNodes,h=d.expanded,b=d.key,y=d.isLeaf;if(!(y||u.shiftKey||u.metaKey||u.ctrlKey)){var C=v.filter(function(x){return x.key===b})[0],S=xr(ee(ee({},pu(b,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(h?ho(g,b):Vo(g,b)),r.onNodeExpand(u,S)}}),q(St(r),"onNodeClick",function(u,d){var m=r.props,g=m.onClick,v=m.expandAction;v==="click"&&r.triggerExpandActionExpand(u,d),g==null||g(u,d)}),q(St(r),"onNodeDoubleClick",function(u,d){var m=r.props,g=m.onDoubleClick,v=m.expandAction;v==="doubleClick"&&r.triggerExpandActionExpand(u,d),g==null||g(u,d)}),q(St(r),"onNodeSelect",function(u,d){var m=r.state.selectedKeys,g=r.state,v=g.keyEntities,h=g.fieldNames,b=r.props,y=b.onSelect,C=b.multiple,S=d.selected,x=d[h.key],w=!S;w?C?m=Vo(m,x):m=[x]:m=ho(m,x);var E=m.map(function(R){var N=ha(v,R);return N?N.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:m}),y==null||y(m,{event:"select",selected:w,node:d,selectedNodes:E,nativeEvent:u.nativeEvent})}),q(St(r),"onNodeCheck",function(u,d,m){var g=r.state,v=g.keyEntities,h=g.checkedKeys,b=g.halfCheckedKeys,y=r.props,C=y.checkStrictly,S=y.onCheck,x=d.key,w,E={event:"check",node:d,checked:m,nativeEvent:u.nativeEvent};if(C){var R=m?Vo(h,x):ho(h,x),N=ho(b,x);w={checked:R,halfChecked:N},E.checkedNodes=R.map(function(L){return ha(v,L)}).filter(Boolean).map(function(L){return L.node}),r.setUncontrolledState({checkedKeys:R})}else{var I=Ds([].concat(De(h),[x]),!0,v),M=I.checkedKeys,j=I.halfCheckedKeys;if(!m){var T=new Set(M);T.delete(x);var z=Ds(Array.from(T),{halfCheckedKeys:j},v);M=z.checkedKeys,j=z.halfCheckedKeys}w=M,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=j,M.forEach(function(L){var D=ha(v,L);if(D){var A=D.node,_=D.pos;E.checkedNodes.push(A),E.checkedNodesPositions.push({node:A,pos:_})}}),r.setUncontrolledState({checkedKeys:M},!1,{halfCheckedKeys:j})}S==null||S(w,E)}),q(St(r),"onNodeLoad",function(u){var d,m=u.key,g=r.state.keyEntities,v=ha(g,m);if(!(v!=null&&(d=v.children)!==null&&d!==void 0&&d.length)){var h=new Promise(function(b,y){r.setState(function(C){var S=C.loadedKeys,x=S===void 0?[]:S,w=C.loadingKeys,E=w===void 0?[]:w,R=r.props,N=R.loadData,I=R.onLoad;if(!N||x.includes(m)||E.includes(m))return null;var M=N(u);return M.then(function(){var j=r.state.loadedKeys,T=Vo(j,m);I==null||I(T,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:T}),r.setState(function(z){return{loadingKeys:ho(z.loadingKeys,m)}}),b()}).catch(function(j){if(r.setState(function(z){return{loadingKeys:ho(z.loadingKeys,m)}}),r.loadingRetryTimes[m]=(r.loadingRetryTimes[m]||0)+1,r.loadingRetryTimes[m]>=Pq){var T=r.state.loadedKeys;Xn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Vo(T,m)}),b()}y(j)}),{loadingKeys:Vo(E,m)}})});return h.catch(function(){}),h}}),q(St(r),"onNodeMouseEnter",function(u,d){var m=r.props.onMouseEnter;m==null||m({event:u,node:d})}),q(St(r),"onNodeMouseLeave",function(u,d){var m=r.props.onMouseLeave;m==null||m({event:u,node:d})}),q(St(r),"onNodeContextMenu",function(u,d){var m=r.props.onRightClick;m&&(u.preventDefault(),m({event:u,node:d}))}),q(St(r),"onFocus",function(){var u=r.props.onFocus;r.setState({focused:!0});for(var d=arguments.length,m=new Array(d),g=0;g<d;g++)m[g]=arguments[g];u==null||u.apply(void 0,m)}),q(St(r),"onBlur",function(){var u=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var d=arguments.length,m=new Array(d),g=0;g<d;g++)m[g]=arguments[g];u==null||u.apply(void 0,m)}),q(St(r),"getTreeNodeRequiredProps",function(){var u=r.state,d=u.expandedKeys,m=u.selectedKeys,g=u.loadedKeys,v=u.loadingKeys,h=u.checkedKeys,b=u.halfCheckedKeys,y=u.dragOverNodeKey,C=u.dropPosition,S=u.keyEntities;return{expandedKeys:d||[],selectedKeys:m||[],loadedKeys:g||[],loadingKeys:v||[],checkedKeys:h||[],halfCheckedKeys:b||[],dragOverNodeKey:y,dropPosition:C,keyEntities:S}}),q(St(r),"setExpandedKeys",function(u){var d=r.state,m=d.treeData,g=d.fieldNames,v=mh(m,u,g);r.setUncontrolledState({expandedKeys:u,flattenNodes:v},!0)}),q(St(r),"onNodeExpand",function(u,d){var m=r.state.expandedKeys,g=r.state,v=g.listChanging,h=g.fieldNames,b=r.props,y=b.onExpand,C=b.loadData,S=d.expanded,x=d[h.key];if(!v){var w=m.includes(x),E=!S;if(Xn(S&&w||!S&&!w,"Expand state not sync with index check"),m=E?Vo(m,x):ho(m,x),r.setExpandedKeys(m),y==null||y(m,{node:d,expanded:E,nativeEvent:u.nativeEvent}),E&&C){var R=r.onNodeLoad(d);R&&R.then(function(){var N=mh(r.state.treeData,m,h);r.setUncontrolledState({flattenNodes:N})}).catch(function(){var N=r.state.expandedKeys,I=ho(N,x);r.setExpandedKeys(I)})}}}),q(St(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),q(St(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),q(St(r),"onActiveChange",function(u){var d=r.state.activeKey,m=r.props,g=m.onActiveChange,v=m.itemScrollOffset,h=v===void 0?0:v;d!==u&&(r.setState({activeKey:u}),u!==null&&r.scrollTo({key:u,offset:h}),g==null||g(u))}),q(St(r),"getActiveItem",function(){var u=r.state,d=u.activeKey,m=u.flattenNodes;return d===null?null:m.find(function(g){var v=g.key;return v===d})||null}),q(St(r),"offsetActiveKey",function(u){var d=r.state,m=d.flattenNodes,g=d.activeKey,v=m.findIndex(function(y){var C=y.key;return C===g});v===-1&&u<0&&(v=m.length),v=(v+u+m.length)%m.length;var h=m[v];if(h){var b=h.key;r.onActiveChange(b)}else r.onActiveChange(null)}),q(St(r),"onKeyDown",function(u){var d=r.state,m=d.activeKey,g=d.expandedKeys,v=d.checkedKeys,h=d.fieldNames,b=r.props,y=b.onKeyDown,C=b.checkable,S=b.selectable;switch(u.which){case ft.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case ft.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var x=r.getActiveItem();if(x&&x.data){var w=r.getTreeNodeRequiredProps(),E=x.data.isLeaf===!1||!!(x.data[h.children]||[]).length,R=xr(ee(ee({},pu(m,w)),{},{data:x.data,active:!0}));switch(u.which){case ft.LEFT:{E&&g.includes(m)?r.onNodeExpand({},R):x.parent&&r.onActiveChange(x.parent.key),u.preventDefault();break}case ft.RIGHT:{E&&!g.includes(m)?r.onNodeExpand({},R):x.children&&x.children.length&&r.onActiveChange(x.children[0].key),u.preventDefault();break}case ft.ENTER:case ft.SPACE:{C&&!R.disabled&&R.checkable!==!1&&!R.disableCheckbox?r.onNodeCheck({},R,!v.includes(m)):!C&&S&&!R.disabled&&R.selectable!==!1&&r.onNodeSelect({},R);break}}}y==null||y(u)}),q(St(r),"setUncontrolledState",function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var g=!1,v=!0,h={};Object.keys(u).forEach(function(b){if(r.props.hasOwnProperty(b)){v=!1;return}g=!0,h[b]=u[b]}),g&&(!d||v)&&r.setState(ee(ee({},h),m))}}),q(St(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return ar(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,l=a.activeKey,c=a.itemScrollOffset,u=c===void 0?0:c;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:u}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,l=a.focused,c=a.flattenNodes,u=a.keyEntities,d=a.draggingNodeKey,m=a.activeKey,g=a.dropLevelOffset,v=a.dropContainerKey,h=a.dropTargetKey,b=a.dropPosition,y=a.dragOverNodeKey,C=a.indent,S=this.props,x=S.prefixCls,w=S.className,E=S.style,R=S.showLine,N=S.focusable,I=S.tabIndex,M=I===void 0?0:I,j=S.selectable,T=S.showIcon,z=S.icon,L=S.switcherIcon,D=S.draggable,A=S.checkable,_=S.checkStrictly,V=S.disabled,P=S.motion,B=S.loadData,K=S.filterTreeNode,G=S.height,Q=S.itemHeight,k=S.scrollWidth,U=S.virtual,W=S.titleRender,X=S.dropIndicatorRender,J=S.onContextMenu,ne=S.onScroll,se=S.direction,re=S.rootClassName,oe=S.rootStyle,Se=Ar(this.props,{aria:!0,data:!0}),me;D&&($t(D)==="object"?me=D:typeof D=="function"?me={nodeDraggable:D}:me={});var ie={prefixCls:x,selectable:j,showIcon:T,icon:z,switcherIcon:L,draggable:me,draggingNodeKey:d,checkable:A,checkStrictly:_,disabled:V,keyEntities:u,dropLevelOffset:g,dropContainerKey:v,dropTargetKey:h,dropPosition:b,dragOverNodeKey:y,indent:C,direction:se,dropIndicatorRender:X,loadData:B,filterTreeNode:K,titleRender:W,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return s.createElement(Dy.Provider,{value:ie},s.createElement("div",{className:te(x,w,re,q(q(q({},"".concat(x,"-show-line"),R),"".concat(x,"-focused"),l),"".concat(x,"-active-focused"),m!==null)),style:oe},s.createElement(jq,Oe({ref:this.listRef,prefixCls:x,style:E,data:c,disabled:V,selectable:j,checkable:!!A,motion:P,dragging:d!==null,height:G,itemHeight:Q,virtual:U,focusable:N,focused:l,tabIndex:M,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:J,onScroll:ne,scrollWidth:k},this.getTreeNodeRequiredProps(),Se))))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var c=l.prevProps,u={prevProps:a};function d(M){return!c&&a.hasOwnProperty(M)||c&&c[M]!==a[M]}var m,g=l.fieldNames;if(d("fieldNames")&&(g=qs(a.fieldNames),u.fieldNames=g),d("treeData")?m=a.treeData:d("children")&&(Xn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),m=XT(a.children)),m){u.treeData=m;var v=xy(m,{fieldNames:g});u.keyEntities=ee(q({},Nl,WI),v.keyEntities)}var h=u.keyEntities||l.keyEntities;if(d("expandedKeys")||c&&d("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!c&&a.defaultExpandParent?eb(a.expandedKeys,h):a.expandedKeys;else if(!c&&a.defaultExpandAll){var b=ee({},h);delete b[Nl];var y=[];Object.keys(b).forEach(function(M){var j=b[M];j.children&&j.children.length&&y.push(j.key)}),u.expandedKeys=y}else!c&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?eb(a.defaultExpandedKeys,h):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,m||u.expandedKeys){var C=mh(m||l.treeData,u.expandedKeys||l.expandedKeys,g);u.flattenNodes=C}if(a.selectable&&(d("selectedKeys")?u.selectedKeys=GE(a.selectedKeys,a):!c&&a.defaultSelectedKeys&&(u.selectedKeys=GE(a.defaultSelectedKeys,a))),a.checkable){var S;if(d("checkedKeys")?S=xh(a.checkedKeys)||{}:!c&&a.defaultCheckedKeys?S=xh(a.defaultCheckedKeys)||{}:m&&(S=xh(a.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),S){var x=S,w=x.checkedKeys,E=w===void 0?[]:w,R=x.halfCheckedKeys,N=R===void 0?[]:R;if(!a.checkStrictly){var I=Ds(E,!0,h);E=I.checkedKeys,N=I.halfCheckedKeys}u.checkedKeys=E,u.halfCheckedKeys=N}}return d("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(s.Component);q(By,"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:wq,allowDrop:function(){return!0},expandAction:!1});q(By,"TreeNode",Au);var zq={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"},_q=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:zq}))},Tl=s.forwardRef(_q),Dq={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"},Aq=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:Dq}))},Bq=s.forwardRef(Aq),Lq={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"},Hq=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:Lq}))},Fq=s.forwardRef(Hq),kq={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"},Vq=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:kq}))},Kq=s.forwardRef(Vq);const Wq=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:l,controlItemBgHover:c})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:l},"&:hover:before":{background:c}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:l,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Uq=new Yt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),qq=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Gq=(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:`${Z(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Xq=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:l,indentSize:c,nodeSelectedBg:u,nodeHoverBg:d,colorTextQuaternary:m,controlItemBgActiveDisabled:g}=t;return{[n]:Object.assign(Object.assign({},cn(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:xo(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:Uq,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:Z(l),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:g},[`${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:c}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},qq(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:l,height:l,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(l).div(2).equal()).mul(.8).equal(),height:t.calc(l).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:l,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Gq(e,t)),{"&:hover":{backgroundColor:d},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Z(t.calc(l).div(2).equal())} !important`}})}},Yq=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,l=t.calc(t.paddingXS).div(2).equal(),c=Qt(t,{treeCls:r,treeNodeCls:a,treeNodePadding:l});return[Xq(e,c),n&&Wq(c)].filter(Boolean)},Qq=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Zq=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Qq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Jq=nn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:QT(`${t}-checkbox`,e)},Yq(t,e),Zm(e)],Zq),t2=4;function eG(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:l="ltr"}=e,c=l==="ltr"?"left":"right",u=l==="ltr"?"right":"left",d={[c]:-n*a+t2,[u]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[c]=a+t2;break}return le.createElement("div",{style:d,className:`${r}-drop-indicator`})}var tG={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"},nG=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:tG}))},rG=s.forwardRef(nG),aG={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"},oG=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:aG}))},iG=s.forwardRef(oG),lG={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"},sG=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:lG}))},cG=s.forwardRef(sG);const uG=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:l,showLine:c,switcherLoadingIcon:u}=e,{isLeaf:d,expanded:m,loading:g}=l;if(g)return s.isValidElement(u)?u:s.createElement(_l,{className:`${r}-switcher-loading-icon`});let v;if(c&&typeof c=="object"&&(v=c.showLeafIcon),d){if(!c)return null;if(typeof v!="boolean"&&v){const y=typeof v=="function"?v(l):v,C=`${r}-switcher-line-custom-icon`;return s.isValidElement(y)?wr(y,{className:te((t=y.props)===null||t===void 0?void 0:t.className,C)}):y}return v?s.createElement(Tl,{className:`${r}-switcher-line-icon`}):s.createElement("span",{className:`${r}-switcher-leaf-line`})}const h=`${r}-switcher-icon`,b=typeof a=="function"?a(l):a;return s.isValidElement(b)?wr(b,{className:te((n=b.props)===null||n===void 0?void 0:n.className,h)}):b!==void 0?b:c?m?s.createElement(iG,{className:`${r}-switcher-line-icon`}):s.createElement(cG,{className:`${r}-switcher-line-icon`}):s.createElement(rG,{className:h})},UI=le.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:l,tree:c}=le.useContext(Ot),{prefixCls:u,className:d,showIcon:m=!1,showLine:g,switcherIcon:v,switcherLoadingIcon:h,blockNode:b=!1,children:y,checkable:C=!1,selectable:S=!0,draggable:x,disabled:w,motion:E,style:R}=e,N=r("tree",u),I=r(),M=le.useContext(ba),j=w??M,T=E??Object.assign(Object.assign({},Mu(I)),{motionAppear:!1}),z=Object.assign(Object.assign({},e),{checkable:C,selectable:S,showIcon:m,motion:T,blockNode:b,disabled:j,showLine:!!g,dropIndicatorRender:eG}),[L,D,A]=Jq(N),[,_]=jr(),V=_.paddingXS/2+(((n=_.Tree)===null||n===void 0?void 0:n.titleHeight)||_.controlHeightSM),P=le.useMemo(()=>{if(!x)return!1;let K={};switch(typeof x){case"function":K.nodeDraggable=x;break;case"object":K=Object.assign({},x);break}return K.icon!==!1&&(K.icon=K.icon||le.createElement(Kq,null)),K},[x]),B=K=>le.createElement(uG,{prefixCls:N,switcherIcon:v,switcherLoadingIcon:h,treeNodeProps:K,showLine:g});return L(le.createElement(By,Object.assign({itemHeight:V,ref:t,virtual:l},z,{style:Object.assign(Object.assign({},c==null?void 0:c.style),R),prefixCls:N,className:te({[`${N}-icon-hide`]:!m,[`${N}-block-node`]:b,[`${N}-unselectable`]:!S,[`${N}-rtl`]:a==="rtl",[`${N}-disabled`]:j},c==null?void 0:c.className,d,D,A),direction:a,checkable:C&&le.createElement("span",{className:`${N}-checkbox-inner`}),selectable:S,switcherIcon:B,draggable:P}),y))}),n2=0,$h=1,r2=2;function Ly(e,t,n){const{key:r,children:a}=n;function l(c){const u=c[r],d=c[a];t(u,c)!==!1&&Ly(d||[],t,n)}e.forEach(l)}function dG({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const l=[];let c=n2;if(n&&n===r)return[n];if(!n||!r)return[];function u(d){return d===n||d===r}return Ly(e,d=>{if(c===r2)return!1;if(u(d)){if(l.push(d),c===n2)c=$h;else if(c===$h)return c=r2,!1}else c===$h&&l.push(d);return t.includes(d)},qs(a)),l}function wh(e,t,n){const r=De(t),a=[];return Ly(e,(l,c)=>{const u=r.indexOf(l);return u!==-1&&(a.push(c),r.splice(u,1)),!!r.length},qs(n)),a}var a2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fG(e){const{isLeaf:t,expanded:n}=e;return t?s.createElement(Tl,null):n?s.createElement(Bq,null):s.createElement(Fq,null)}function o2({treeData:e,children:t}){return e||XT(t)}const mG=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,l=a2(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=s.useRef(null),u=s.useRef(null),d=()=>{const{keyEntities:j}=xy(o2(l),{fieldNames:l.fieldNames});let T;return n?T=Object.keys(j):r?T=eb(l.expandedKeys||a||[],j):T=l.expandedKeys||a||[],T},[m,g]=s.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[v,h]=s.useState(()=>d());s.useEffect(()=>{"selectedKeys"in l&&g(l.selectedKeys)},[l.selectedKeys]),s.useEffect(()=>{"expandedKeys"in l&&h(l.expandedKeys)},[l.expandedKeys]);const b=(j,T)=>{var z;return"expandedKeys"in l||h(j),(z=l.onExpand)===null||z===void 0?void 0:z.call(l,j,T)},y=(j,T)=>{var z;const{multiple:L,fieldNames:D}=l,{node:A,nativeEvent:_}=T,{key:V=""}=A,P=o2(l),B=Object.assign(Object.assign({},T),{selected:!0}),K=(_==null?void 0:_.ctrlKey)||(_==null?void 0:_.metaKey),G=_==null?void 0:_.shiftKey;let Q;L&&K?(Q=j,c.current=V,u.current=Q,B.selectedNodes=wh(P,Q,D)):L&&G?(Q=Array.from(new Set([].concat(De(u.current||[]),De(dG({treeData:P,expandedKeys:v,startKey:V,endKey:c.current,fieldNames:D}))))),B.selectedNodes=wh(P,Q,D)):(Q=[V],c.current=V,u.current=Q,B.selectedNodes=wh(P,Q,D)),(z=l.onSelect)===null||z===void 0||z.call(l,Q,B),"selectedKeys"in l||g(Q)},{getPrefixCls:C,direction:S}=s.useContext(Ot),{prefixCls:x,className:w,showIcon:E=!0,expandAction:R="click"}=l,N=a2(l,["prefixCls","className","showIcon","expandAction"]),I=C("tree",x),M=te(`${I}-directory`,{[`${I}-directory-rtl`]:S==="rtl"},w);return s.createElement(UI,Object.assign({icon:fG,ref:t,blockNode:!0},N,{showIcon:E,expandAction:R,prefixCls:I,className:M,expandedKeys:v,selectedKeys:m,onSelect:y,onExpand:b}))},gG=s.forwardRef(mG),Hy=UI;Hy.DirectoryTree=gG;Hy.TreeNode=Au;const i2=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:l}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(id,{prefix:s.createElement(ly,null),placeholder:a.filterSearchPlaceholder,onChange:l,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},vG=e=>{const{keyCode:t}=e;t===ft.ENTER&&e.stopPropagation()},pG=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:vG,ref:t},e.children));function As(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(De(t),De(As(r))))}),t}function hG(e){return e.some(({children:t})=>t)}function qI(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function GI({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l}){return e.map((c,u)=>{const d=String(c.value);if(c.children)return{key:d||u,label:c.text,popupClassName:`${t}-dropdown-submenu`,children:GI({filters:c.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l})};const m=r?na:rd,g={key:c.value!==void 0?d:u,label:s.createElement(s.Fragment,null,s.createElement(m,{checked:n.includes(d)}),s.createElement("span",null,c.text))};return a.trim()?typeof l=="function"?l(a,c)?g:null:qI(a,c.text)?g:null:g})}function Eh(e){return e||[]}const bG=e=>{var t,n,r,a;const{tablePrefixCls:l,prefixCls:c,column:u,dropdownPrefixCls:d,columnKey:m,filterOnClose:g,filterMultiple:v,filterMode:h="menu",filterSearch:b=!1,filterState:y,triggerFilter:C,locale:S,children:x,getPopupContainer:w,rootClassName:E}=e,{filterResetToDefaultFilteredValue:R,defaultFilteredValue:N,filterDropdownProps:I={},filterDropdownOpen:M,filterDropdownVisible:j,onFilterDropdownVisibleChange:T,onFilterDropdownOpenChange:z}=u,[L,D]=s.useState(!1),A=!!(y&&(!((t=y.filteredKeys)===null||t===void 0)&&t.length||y.forceFiltered)),_=ve=>{var Te;D(ve),(Te=I.onOpenChange)===null||Te===void 0||Te.call(I,ve),z==null||z(ve),T==null||T(ve)},V=(a=(r=(n=I.open)!==null&&n!==void 0?n:M)!==null&&r!==void 0?r:j)!==null&&a!==void 0?a:L,P=y==null?void 0:y.filteredKeys,[B,K]=l_(Eh(P)),G=({selectedKeys:ve})=>{K(ve)},Q=(ve,{node:Te,checked:Ee})=>{G(v?{selectedKeys:ve}:{selectedKeys:Ee&&Te.key?[Te.key]:[]})};s.useEffect(()=>{L&&G({selectedKeys:Eh(P)})},[P]);const[k,U]=s.useState([]),W=ve=>{U(ve)},[X,J]=s.useState(""),ne=ve=>{const{value:Te}=ve.target;J(Te)};s.useEffect(()=>{L||J("")},[L]);const se=ve=>{const Te=ve!=null&&ve.length?ve:null;if(Te===null&&(!y||!y.filteredKeys)||Co(Te,y==null?void 0:y.filteredKeys,!0))return null;C({column:u,key:m,filteredKeys:Te})},re=()=>{_(!1),se(B())},oe=({confirm:ve,closeDropdown:Te}={confirm:!1,closeDropdown:!1})=>{ve&&se([]),Te&&_(!1),J(""),K(R?(N||[]).map(Ee=>String(Ee)):[])},Se=({closeDropdown:ve}={closeDropdown:!0})=>{ve&&_(!1),se(B())},me=(ve,Te)=>{Te.source==="trigger"&&(ve&&P!==void 0&&K(Eh(P)),_(ve),!ve&&!u.filterDropdown&&g&&re())},ie=te({[`${d}-menu-without-submenu`]:!hG(u.filters||[])}),ge=ve=>{if(ve.target.checked){const Te=As(u==null?void 0:u.filters).map(Ee=>String(Ee));K(Te)}else K([])},ue=({filters:ve})=>(ve||[]).map((Te,Ee)=>{const xe=String(Te.value),Ve={title:Te.text,key:Te.value!==void 0?xe:String(Ee)};return Te.children&&(Ve.children=ue({filters:Te.children})),Ve}),ae=ve=>{var Te;return Object.assign(Object.assign({},ve),{text:ve.title,value:ve.key,children:((Te=ve.children)===null||Te===void 0?void 0:Te.map(Ee=>ae(Ee)))||[]})};let ce;const{direction:ye,renderEmpty:Ce}=s.useContext(Ot);if(typeof u.filterDropdown=="function")ce=u.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:ve=>G({selectedKeys:ve}),selectedKeys:B(),confirm:Se,clearFilters:oe,filters:u.filters,visible:V,close:()=>{_(!1)}});else if(u.filterDropdown)ce=u.filterDropdown;else{const ve=B()||[],Te=()=>{var xe,Ve;const Xe=(xe=Ce==null?void 0:Ce("Table.filter"))!==null&&xe!==void 0?xe:s.createElement(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE,description:S.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return Xe;if(h==="tree")return s.createElement(s.Fragment,null,s.createElement(i2,{filterSearch:b,value:X,onChange:ne,tablePrefixCls:l,locale:S}),s.createElement("div",{className:`${l}-filter-dropdown-tree`},v?s.createElement(na,{checked:ve.length===As(u.filters).length,indeterminate:ve.length>0&&ve.length<As(u.filters).length,className:`${l}-filter-dropdown-checkall`,onChange:ge},(Ve=S==null?void 0:S.filterCheckall)!==null&&Ve!==void 0?Ve:S==null?void 0:S.filterCheckAll):null,s.createElement(Hy,{checkable:!0,selectable:!1,blockNode:!0,multiple:v,checkStrictly:!v,className:`${d}-menu`,onCheck:Q,checkedKeys:ve,selectedKeys:ve,showIcon:!1,treeData:ue({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:X.trim()?Ye=>typeof b=="function"?b(X,ae(Ye)):qI(X,Ye.title):void 0})));const it=GI({filters:u.filters||[],filterSearch:b,prefixCls:c,filteredKeys:B(),filterMultiple:v,searchValue:X}),at=it.every(Ye=>Ye===null);return s.createElement(s.Fragment,null,s.createElement(i2,{filterSearch:b,value:X,onChange:ne,tablePrefixCls:l,locale:S}),at?Xe:s.createElement(Al,{selectable:!0,multiple:v,prefixCls:`${d}-menu`,className:ie,onSelect:G,onDeselect:G,selectedKeys:ve,getPopupContainer:w,openKeys:k,onOpenChange:W,items:it}))},Ee=()=>R?Co((N||[]).map(xe=>String(xe)),ve,!0):ve.length===0;ce=s.createElement(s.Fragment,null,Te(),s.createElement("div",{className:`${c}-dropdown-btns`},s.createElement(wn,{type:"link",size:"small",disabled:Ee(),onClick:()=>oe()},S.filterReset),s.createElement(wn,{type:"primary",size:"small",onClick:re},S.filterConfirm)))}u.filterDropdown&&(ce=s.createElement(ST,{selectable:void 0},ce)),ce=s.createElement(pG,{className:`${c}-dropdown`},ce);const ze=vm({trigger:["click"],placement:ye==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ve;return typeof u.filterIcon=="function"?ve=u.filterIcon(A):u.filterIcon?ve=u.filterIcon:ve=s.createElement($q,null),s.createElement("span",{role:"button",tabIndex:-1,className:te(`${c}-trigger`,{active:A}),onClick:Te=>{Te.stopPropagation()}},ve)})(),getPopupContainer:w},Object.assign(Object.assign({},I),{rootClassName:te(E,I.rootClassName),open:V,onOpenChange:me,popupRender:()=>typeof(I==null?void 0:I.dropdownRender)=="function"?I.dropdownRender(ce):ce}));return s.createElement("div",{className:`${c}-column`},s.createElement("span",{className:`${l}-column-title`},x),s.createElement(Ny,Object.assign({},ze)))},ob=(e,t,n)=>{let r=[];return(e||[]).forEach((a,l)=>{var c;const u=ic(l,n),d=a.filterDropdown!==void 0;if(a.filters||d||"onFilter"in a)if("filteredValue"in a){let m=a.filteredValue;d||(m=(c=m==null?void 0:m.map(String))!==null&&c!==void 0?c:m),r.push({column:a,key:Bi(a,u),filteredKeys:m,forceFiltered:a.filtered})}else r.push({column:a,key:Bi(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(De(r),De(ob(a.children,t,u))))}),r};function XI(e,t,n,r,a,l,c,u,d){return n.map((m,g)=>{const v=ic(g,u),{filterOnClose:h=!0,filterMultiple:b=!0,filterMode:y,filterSearch:C}=m;let S=m;if(S.filters||S.filterDropdown){const x=Bi(S,v),w=r.find(({key:E})=>x===E);S=Object.assign(Object.assign({},S),{title:E=>s.createElement(bG,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:S,columnKey:x,filterState:w,filterOnClose:h,filterMultiple:b,filterMode:y,filterSearch:C,triggerFilter:l,locale:a,getPopupContainer:c,rootClassName:d},Rg(m.title,E))})}return"children"in S&&(S=Object.assign(Object.assign({},S),{children:XI(e,t,S.children,r,a,l,c,v,d)})),S})}const l2=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const l=n,{filters:c,filterDropdown:u}=a;if(u)t[l]=r||null;else if(Array.isArray(r)){const d=As(c);t[l]=d.filter(m=>r.includes(String(m)))}else t[l]=null}),t},ib=(e,t,n)=>t.reduce((a,l)=>{const{column:{onFilter:c,filters:u},filteredKeys:d}=l;return c&&d&&d.length?a.map(m=>Object.assign({},m)).filter(m=>d.some(g=>{const v=As(u),h=v.findIndex(y=>String(y)===String(g)),b=h!==-1?v[h]:g;return m[n]&&(m[n]=ib(m[n],t,n)),c(b,m)})):a},e),YI=e=>e.flatMap(t=>"children"in t?[t].concat(De(YI(t.children||[]))):[t]),yG=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:l,locale:c,rootClassName:u}=e;Oo();const d=s.useMemo(()=>YI(r||[]),[r]),[m,g]=s.useState(()=>ob(d,!0)),v=s.useMemo(()=>{const C=ob(d,!1);if(C.length===0)return C;let S=!0;if(C.forEach(({filteredKeys:x})=>{x!==void 0&&(S=!1)}),S){const x=(d||[]).map((w,E)=>Bi(w,ic(E)));return m.filter(({key:w})=>x.includes(w)).map(w=>{const E=d[x.indexOf(w.key)];return Object.assign(Object.assign({},w),{column:Object.assign(Object.assign({},w.column),E),forceFiltered:E.filtered})})}return C},[d,m]),h=s.useMemo(()=>l2(v),[v]),b=C=>{const S=v.filter(({key:x})=>x!==C.key);S.push(C),g(S),a(l2(S),S)};return[C=>XI(t,n,C,v,c,b,l,void 0,u),v,h]},SG=(e,t,n)=>{const r=s.useRef({});function a(l){var c;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let m=function(g){g.forEach((v,h)=>{const b=n(v,h);d.set(b,v),v&&typeof v=="object"&&t in v&&m(v[t]||[])})};var u=m;const d=new Map;m(e),r.current={data:e,childrenColumnName:t,kvMap:d,getRowKey:n}}return(c=r.current.kvMap)===null||c===void 0?void 0:c.get(l)}return[a]};var CG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const QI=10;function xG(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const l=e[a];typeof l!="function"&&(n[a]=l)}),n}function $G(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,l=CG(r,["total"]),[c,u]=s.useState(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:QI})),d=vm(c,l,{total:a>0?a:e}),m=Math.ceil((a||e)/d.pageSize);d.current>m&&(d.current=m||1);const g=(h,b)=>{u({current:h??1,pageSize:b||d.pageSize})},v=(h,b)=>{var y;n&&((y=n.onChange)===null||y===void 0||y.call(n,h,b)),g(h,b),t(h,b||(d==null?void 0:d.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:v}),g]}var wG={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"},EG=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:wG}))},OG=s.forwardRef(EG),RG={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"},NG=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:RG}))},TG=s.forwardRef(NG);const nm="ascend",Oh="descend",Im=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,s2=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,IG=(e,t)=>t?e[e.indexOf(t)+1]:e[0],lb=(e,t,n)=>{let r=[];const a=(l,c)=>{r.push({column:l,key:Bi(l,c),multiplePriority:Im(l),sortOrder:l.sortOrder})};return(e||[]).forEach((l,c)=>{const u=ic(c,n);l.children?("sortOrder"in l&&a(l,u),r=[].concat(De(r),De(lb(l.children,t,u)))):l.sorter&&("sortOrder"in l?a(l,u):t&&l.defaultSortOrder&&r.push({column:l,key:Bi(l,u),multiplePriority:Im(l),sortOrder:l.defaultSortOrder}))}),r},ZI=(e,t,n,r,a,l,c,u)=>(t||[]).map((m,g)=>{const v=ic(g,u);let h=m;if(h.sorter){const b=h.sortDirections||a,y=h.showSorterTooltip===void 0?c:h.showSorterTooltip,C=Bi(h,v),S=n.find(({key:T})=>T===C),x=S?S.sortOrder:null,w=IG(b,x);let E;if(m.sortIcon)E=m.sortIcon({sortOrder:x});else{const T=b.includes(nm)&&s.createElement(TG,{className:te(`${e}-column-sorter-up`,{active:x===nm})}),z=b.includes(Oh)&&s.createElement(OG,{className:te(`${e}-column-sorter-down`,{active:x===Oh})});E=s.createElement("span",{className:te(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&z)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,z))}const{cancelSort:R,triggerAsc:N,triggerDesc:I}=l||{};let M=R;w===Oh?M=I:w===nm&&(M=N);const j=typeof y=="object"?Object.assign({title:M},y):{title:M};h=Object.assign(Object.assign({},h),{className:te(h.className,{[`${e}-column-sort`]:x}),title:T=>{const z=`${e}-column-sorters`,L=s.createElement("span",{className:`${e}-column-title`},Rg(m.title,T)),D=s.createElement("div",{className:z},L,E);return y?typeof y!="boolean"&&(y==null?void 0:y.target)==="sorter-icon"?s.createElement("div",{className:te(z,`${z}-tooltip-target-sorter`)},L,s.createElement(ja,Object.assign({},j),E)):s.createElement(ja,Object.assign({},j),D):D},onHeaderCell:T=>{var z;const L=((z=m.onHeaderCell)===null||z===void 0?void 0:z.call(m,T))||{},D=L.onClick,A=L.onKeyDown;L.onClick=P=>{r({column:m,key:C,sortOrder:w,multiplePriority:Im(m)}),D==null||D(P)},L.onKeyDown=P=>{P.keyCode===ft.ENTER&&(r({column:m,key:C,sortOrder:w,multiplePriority:Im(m)}),A==null||A(P))};const _=Sq(m.title,{}),V=_==null?void 0:_.toString();return x&&(L["aria-sort"]=x==="ascend"?"ascending":"descending"),L["aria-label"]=V||"",L.className=te(L.className,`${e}-column-has-sorters`),L.tabIndex=0,m.ellipsis&&(L.title=(_??"").toString()),L}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:ZI(e,h.children,n,r,a,l,c,v)})),h}),c2=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},u2=e=>{const t=e.filter(({sortOrder:n})=>n).map(c2);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},c2(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},sb=(e,t,n)=>{const r=t.slice().sort((c,u)=>u.multiplePriority-c.multiplePriority),a=e.slice(),l=r.filter(({column:{sorter:c},sortOrder:u})=>s2(c)&&u);return l.length?a.sort((c,u)=>{for(let d=0;d<l.length;d+=1){const m=l[d],{column:{sorter:g},sortOrder:v}=m,h=s2(g);if(h&&v){const b=h(c,u,v);if(b!==0)return v===nm?b:-b}}return 0}).map(c=>{const u=c[n];return u?Object.assign(Object.assign({},c),{[n]:sb(u,t,n)}):c}):a},MG=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:l,onSorterChange:c}=e,[u,d]=s.useState(()=>lb(n,!0)),m=(C,S)=>{const x=[];return C.forEach((w,E)=>{const R=ic(E,S);if(x.push(Bi(w,R)),Array.isArray(w.children)){const N=m(w.children,R);x.push.apply(x,De(N))}}),x},g=s.useMemo(()=>{let C=!0;const S=lb(n,!1);if(!S.length){const R=m(n);return u.filter(({key:N})=>R.includes(N))}const x=[];function w(R){C?x.push(R):x.push(Object.assign(Object.assign({},R),{sortOrder:null}))}let E=null;return S.forEach(R=>{E===null?(w(R),R.sortOrder&&(R.multiplePriority===!1?C=!1:E=!0)):(E&&R.multiplePriority!==!1||(C=!1),w(R))}),x},[n,u]),v=s.useMemo(()=>{var C,S;const x=g.map(({column:w,sortOrder:E})=>({column:w,order:E}));return{sortColumns:x,sortColumn:(C=x[0])===null||C===void 0?void 0:C.column,sortOrder:(S=x[0])===null||S===void 0?void 0:S.order}},[g]),h=C=>{let S;C.multiplePriority===!1||!g.length||g[0].multiplePriority===!1?S=[C]:S=[].concat(De(g.filter(({key:x})=>x!==C.key)),[C]),d(S),c(u2(S),S)};return[C=>ZI(t,C,g,h,r,a,l),g,v,()=>u2(g)]},JI=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=Rg(r.title,t),"children"in a&&(a.children=JI(a.children,t)),a}),jG=e=>[s.useCallback(n=>JI(n,e),[e])],PG=HI((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zG=kI((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),_G=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:l,tablePaddingVertical:c,tablePaddingHorizontal:u,calc:d}=e,m=`${Z(n)} ${r} ${a}`,g=(v,h,b)=>({[`&${t}-${v}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Z(d(h).mul(-1).equal())}
|
|
341
|
+
${Z(d(d(b).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:m,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:m,borderTop:m,[`
|
|
342
|
+
> ${t}-content,
|
|
343
|
+
> ${t}-header,
|
|
344
|
+
> ${t}-body,
|
|
345
|
+
> ${t}-summary
|
|
346
|
+
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:m},"> thead":{"> tr:not(:last-child) > th":{borderBottom:m},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:m}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Z(d(c).mul(-1).equal())} ${Z(d(d(u).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:m,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
347
|
+
> tr${t}-expanded-row,
|
|
348
|
+
> tr${t}-placeholder
|
|
349
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}}},g("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),g("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:m,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Z(n)} 0 ${Z(n)} ${l}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:m}}}},DG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},qo),{wordBreak:"keep-all",[`
|
|
350
|
+
&${t}-cell-fix-left-last,
|
|
351
|
+
&${t}-cell-fix-right-first
|
|
352
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},AG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},BG=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:l,lineType:c,tableBorderColor:u,tableExpandIconBg:d,tableExpandColumnWidth:m,borderRadius:g,tablePaddingVertical:v,tablePaddingHorizontal:h,tableExpandedRowBg:b,paddingXXS:y,expandIconMarginTop:C,expandIconSize:S,expandIconHalfInner:x,expandIconScale:w,calc:E}=e,R=`${Z(a)} ${c} ${u}`,N=E(y).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:m},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},zb(e)),{position:"relative",float:"left",width:S,height:S,color:"inherit",lineHeight:Z(S),background:d,border:R,borderRadius:g,transform:`scale(${w})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:N,insetInlineStart:N,height:a},"&::after":{top:N,bottom:N,insetInlineStart:x,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:C,marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:b}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Z(E(v).mul(-1).equal())} ${Z(E(h).mul(-1).equal())}`,padding:`${Z(v)} ${Z(h)}`}}}},LG=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:l,paddingXXS:c,paddingXS:u,colorText:d,lineWidth:m,lineType:g,tableBorderColor:v,headerIconColor:h,fontSizeSM:b,tablePaddingHorizontal:y,borderRadius:C,motionDurationSlow:S,colorIcon:x,colorPrimary:w,tableHeaderFilterActiveBg:E,colorTextDisabled:R,tableFilterDropdownBg:N,tableFilterDropdownHeight:I,controlItemBgHover:M,controlItemBgActive:j,boxShadowSecondary:T,filterDropdownMenuBg:z,calc:L}=e,D=`${n}-dropdown`,A=`${t}-filter-dropdown`,_=`${n}-tree`,V=`${Z(m)} ${g} ${v}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:L(c).mul(-1).equal(),marginInline:`${Z(c)} ${Z(L(y).div(2).mul(-1).equal())}`,padding:`0 ${Z(c)}`,color:h,fontSize:b,borderRadius:C,cursor:"pointer",transition:`all ${S}`,"&:hover":{color:x,background:E},"&.active":{color:w}}}},{[`${n}-dropdown`]:{[A]:Object.assign(Object.assign({},cn(e)),{minWidth:a,backgroundColor:N,borderRadius:C,boxShadow:T,overflow:"hidden",[`${D}-menu`]:{maxHeight:I,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:z,"&:empty::after":{display:"block",padding:`${Z(u)} 0`,color:R,fontSize:b,textAlign:"center",content:'"Not Found"'}},[`${A}-tree`]:{paddingBlock:`${Z(u)} 0`,paddingInline:u,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:M},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:j}}},[`${A}-search`]:{padding:u,borderBottom:V,"&-input":{input:{minWidth:l},[r]:{color:R}}},[`${A}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${A}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Z(L(u).sub(m).equal())} ${Z(u)}`,overflow:"hidden",borderTop:V}})}},{[`${n}-dropdown ${A}, ${A}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:u,color:d},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},HG=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:l,tableBg:c,zIndexTableSticky:u,calc:d}=e,m=r;return{[`${t}-wrapper`]:{[`
|
|
353
|
+
${t}-cell-fix-left,
|
|
354
|
+
${t}-cell-fix-right
|
|
355
|
+
`]:{position:"sticky !important",zIndex:l,background:c},[`
|
|
356
|
+
${t}-cell-fix-left-first::after,
|
|
357
|
+
${t}-cell-fix-left-last::after
|
|
358
|
+
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
359
|
+
${t}-cell-fix-right-first::after,
|
|
360
|
+
${t}-cell-fix-right-last::after
|
|
361
|
+
`]:{position:"absolute",top:0,bottom:d(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(u).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${m}`},[`
|
|
362
|
+
${t}-cell-fix-left-first::after,
|
|
363
|
+
${t}-cell-fix-left-last::after
|
|
364
|
+
`]:{boxShadow:`inset 10px 0 8px -8px ${m}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${m}`},[`
|
|
365
|
+
${t}-cell-fix-right-first::after,
|
|
366
|
+
${t}-cell-fix-right-last::after
|
|
367
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${m}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
368
|
+
${t}-cell-fix-left-first::after,
|
|
369
|
+
${t}-cell-fix-left-last::after,
|
|
370
|
+
${t}-cell-fix-right-first::after,
|
|
371
|
+
${t}-cell-fix-right-last::after
|
|
372
|
+
`]:{boxShadow:"none"}}}}},FG=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${Z(r)} 0`}}},kG=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Z(n)} ${Z(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Z(n)} ${Z(n)}`}}}}},VG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},KG=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:l,paddingXS:c,headerIconColor:u,headerIconHoverColor:d,tableSelectionColumnWidth:m,tableSelectedRowBg:g,tableSelectedRowHoverBg:v,tableRowHoverBg:h,tablePaddingHorizontal:b,calc:y}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:m,[`&${t}-selection-col-with-dropdown`]:{width:y(m).add(a).add(y(l).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:y(m).add(y(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:y(m).add(a).add(y(l).div(4)).add(y(c).mul(2)).equal()}},[`
|
|
373
|
+
table tr th${t}-selection-column,
|
|
374
|
+
table tr td${t}-selection-column,
|
|
375
|
+
${t}-selection-column
|
|
376
|
+
`]:{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:Z(y(b).div(4).equal()),[r]:{color:u,fontSize:a,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:g,"&-row-hover":{background:v}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},WG=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(l,c,u,d)=>({[`${t}${t}-${l}`]:{fontSize:d,[`
|
|
377
|
+
${t}-title,
|
|
378
|
+
${t}-footer,
|
|
379
|
+
${t}-cell,
|
|
380
|
+
${t}-thead > tr > th,
|
|
381
|
+
${t}-tbody > tr > th,
|
|
382
|
+
${t}-tbody > tr > td,
|
|
383
|
+
tfoot > tr > th,
|
|
384
|
+
tfoot > tr > td
|
|
385
|
+
`]:{padding:`${Z(c)} ${Z(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Z(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Z(r(c).mul(-1).equal())} ${Z(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Z(r(c).mul(-1).equal()),marginInline:`${Z(r(n).sub(u).equal())} ${Z(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Z(r(u).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},UG=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
386
|
+
&${t}-cell-fix-left:hover,
|
|
387
|
+
&${t}-cell-fix-right:hover
|
|
388
|
+
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},qG=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:l,tableScrollBg:c,zIndexTableSticky:u,stickyScrollBarBorderRadius:d,lineWidth:m,lineType:g,tableBorderColor:v}=e,h=`${Z(m)} ${g} ${v}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Z(l)} !important`,zIndex:u,display:"flex",alignItems:"center",background:c,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},d2=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,l=`${Z(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 ${Z(a(n).mul(-1).equal())} 0 ${r}`}}}},GG=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:l,calc:c}=e,u=`${Z(r)} ${a} ${l}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
389
|
+
& > ${t}-row,
|
|
390
|
+
& > div:not(${t}-row) > ${t}-row
|
|
391
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:u,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Z(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:u,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:u,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:c(r).mul(-1).equal(),borderInlineStart:u}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:u,borderBottom:u}}}}}},XG=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:l,lineWidth:c,lineType:u,tableBorderColor:d,tableFontSize:m,tableBg:g,tableRadius:v,tableHeaderTextColor:h,motionDurationMid:b,tableHeaderBg:y,tableHeaderCellSplitColor:C,tableFooterTextColor:S,tableFooterBg:x,calc:w}=e,E=`${Z(c)} ${u} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},zi()),{[t]:Object.assign(Object.assign({},cn(e)),{fontSize:m,background:g,borderRadius:`${Z(v)} ${Z(v)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Z(v)} ${Z(v)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
392
|
+
${t}-cell,
|
|
393
|
+
${t}-thead > tr > th,
|
|
394
|
+
${t}-tbody > tr > th,
|
|
395
|
+
${t}-tbody > tr > td,
|
|
396
|
+
tfoot > tr > th,
|
|
397
|
+
tfoot > tr > td
|
|
398
|
+
`]:{position:"relative",padding:`${Z(r)} ${Z(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Z(r)} ${Z(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:y,borderBottom:E,transition:`background ${b} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:C,transform:"translateY(-50%)",transition:`background-color ${b}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${b}, border-color ${b}`,borderBottom:E,[`
|
|
399
|
+
> ${t}-wrapper:only-child,
|
|
400
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
401
|
+
`]:{[t]:{marginBlock:Z(w(r).mul(-1).equal()),marginInline:`${Z(w(l).sub(a).equal())}
|
|
402
|
+
${Z(w(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:y,borderBottom:E,transition:`background ${b} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${Z(r)} ${Z(a)}`,color:S,background:x}})}},YG=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:l,controlItemBgActive:c,controlItemBgActiveHover:u,padding:d,paddingSM:m,paddingXS:g,colorBorderSecondary:v,borderRadiusLG:h,controlHeight:b,colorTextPlaceholder:y,fontSize:C,fontSizeSM:S,lineHeight:x,lineWidth:w,colorIcon:E,colorIconHover:R,opacityLoading:N,controlInteractiveSize:I}=e,M=new un(a).onBackground(n).toHexString(),j=new un(l).onBackground(n).toHexString(),T=new un(t).onBackground(n).toHexString(),z=new un(E),L=new un(R),D=I/2-w,A=D*2+w*3;return{headerBg:T,headerColor:r,headerSortActiveBg:M,headerSortHoverBg:j,bodySortBg:T,rowHoverBg:T,rowSelectedBg:c,rowSelectedHoverBg:u,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:m,cellPaddingInlineMD:g,cellPaddingBlockSM:g,cellPaddingInlineSM:g,borderColor:v,headerBorderRadius:h,footerBg:T,footerColor:r,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:v,fixedHeaderSortActiveBg:M,headerFilterHoverBg:l,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:b,stickyScrollBarBg:y,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*x-w*3)/2-Math.ceil((S*1.4-w*3)/2),headerIconColor:z.clone().setA(z.a*N).toRgbString(),headerIconHoverColor:L.clone().setA(L.a*N).toRgbString(),expandIconHalfInner:D,expandIconSize:A,expandIconScale:I/A}},f2=2,QG=nn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:l,headerColor:c,headerSortActiveBg:u,headerSortHoverBg:d,bodySortBg:m,rowHoverBg:g,rowSelectedBg:v,rowSelectedHoverBg:h,rowExpandedBg:b,cellPaddingBlock:y,cellPaddingInline:C,cellPaddingBlockMD:S,cellPaddingInlineMD:x,cellPaddingBlockSM:w,cellPaddingInlineSM:E,borderColor:R,footerBg:N,footerColor:I,headerBorderRadius:M,cellFontSize:j,cellFontSizeMD:T,cellFontSizeSM:z,headerSplitColor:L,fixedHeaderSortActiveBg:D,headerFilterHoverBg:A,filterDropdownBg:_,expandIconBg:V,selectionColumnWidth:P,stickyScrollBarBg:B,calc:K}=e,G=Qt(e,{tableFontSize:j,tableBg:r,tableRadius:M,tablePaddingVertical:y,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:S,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:E,tableBorderColor:R,tableHeaderTextColor:c,tableHeaderBg:l,tableFooterTextColor:I,tableFooterBg:N,tableHeaderCellSplitColor:L,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableBodySortBg:m,tableFixedHeaderSortActiveBg:D,tableHeaderFilterActiveBg:A,tableFilterDropdownBg:_,tableRowHoverBg:g,tableSelectedRowBg:v,tableSelectedRowHoverBg:h,zIndexTableFixed:f2,zIndexTableSticky:K(f2).add(1).equal({unit:!1}),tableFontSizeMiddle:T,tableFontSizeSmall:z,tableSelectionColumnWidth:P,tableExpandIconBg:V,tableExpandColumnWidth:K(a).add(K(e.padding).mul(2)).equal(),tableExpandedRowBg:b,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:B,tableScrollThumbBgHover:t,tableScrollBg:n});return[XG(G),FG(G),d2(G),UG(G),LG(G),_G(G),kG(G),BG(G),d2(G),AG(G),KG(G),HG(G),qG(G),DG(G),WG(G),VG(G),GG(G)]},YG,{unitless:{expandIconScale:!0}}),m2=[],ZG=(e,t)=>{var n,r;const{prefixCls:a,className:l,rootClassName:c,style:u,size:d,bordered:m,dropdownPrefixCls:g,dataSource:v,pagination:h,rowSelection:b,rowKey:y="key",rowClassName:C,columns:S,children:x,childrenColumnName:w,onChange:E,getPopupContainer:R,loading:N,expandIcon:I,expandable:M,expandedRowRender:j,expandIconColumnIndex:T,indentSize:z,scroll:L,sortDirections:D,locale:A,showSorterTooltip:_={target:"full-header"},virtual:V}=e;Oo();const P=s.useMemo(()=>S||zy(x),[S,x]),B=s.useMemo(()=>P.some(tt=>tt.responsive),[P]),K=mg(B),G=s.useMemo(()=>{const tt=new Set(Object.keys(K).filter(Ze=>K[Ze]));return P.filter(Ze=>!Ze.responsive||Ze.responsive.some(Ct=>tt.has(Ct)))},[P,K]),Q=_n(e,["className","style","columns"]),{locale:k=io,direction:U,table:W,renderEmpty:X,getPrefixCls:J,getPopupContainer:ne}=s.useContext(Ot),se=Hr(d),re=Object.assign(Object.assign({},k.Table),A),oe=v||m2,Se=J("table",a),me=J("dropdown",g),[,ie]=jr(),ge=Pr(Se),[ue,ae,ce]=QG(Se,ge),ye=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:T},M),{expandIcon:(n=M==null?void 0:M.expandIcon)!==null&&n!==void 0?n:(r=W==null?void 0:W.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ce="children"}=ye,je=s.useMemo(()=>oe.some(tt=>tt==null?void 0:tt[Ce])?"nest":j||M!=null&&M.expandedRowRender?"row":null,[oe]),ze={body:s.useRef(null)},ve=yq(Se),Te=s.useRef(null),Ee=s.useRef(null);i_(t,()=>Object.assign(Object.assign({},Ee.current),{nativeElement:Te.current}));const xe=s.useMemo(()=>typeof y=="function"?y:tt=>tt==null?void 0:tt[y],[y]),[Ve]=SG(oe,Ce,xe),Xe={},it=(tt,Ze,Ct=!1)=>{var Ft,Nt,rn,dn;const Wt=Object.assign(Object.assign({},Xe),tt);Ct&&((Ft=Xe.resetPagination)===null||Ft===void 0||Ft.call(Xe),!((Nt=Wt.pagination)===null||Nt===void 0)&&Nt.current&&(Wt.pagination.current=1),h&&((rn=h.onChange)===null||rn===void 0||rn.call(h,1,(dn=Wt.pagination)===null||dn===void 0?void 0:dn.pageSize))),L&&L.scrollToFirstRowOnChange!==!1&&ze.body.current&&Wz(0,{getContainer:()=>ze.body.current}),E==null||E(Wt.pagination,Wt.filters,Wt.sorter,{currentDataSource:ib(sb(oe,Wt.sorterStates,Ce),Wt.filterStates,Ce),action:Ze})},at=(tt,Ze)=>{it({sorter:tt,sorterStates:Ze},"sort",!1)},[Ye,Je,_e,Ie]=MG({prefixCls:Se,mergedColumns:G,onSorterChange:at,sortDirections:D||["ascend","descend"],tableLocale:re,showSorterTooltip:_}),We=s.useMemo(()=>sb(oe,Je,Ce),[oe,Je]);Xe.sorter=Ie(),Xe.sorterStates=Je;const Be=(tt,Ze)=>{it({filters:tt,filterStates:Ze},"filter",!0)},[Ge,Me,Qe]=yG({prefixCls:Se,locale:re,dropdownPrefixCls:me,mergedColumns:G,onFilterChange:Be,getPopupContainer:R||ne,rootClassName:te(c,ge)}),lt=ib(We,Me,Ce);Xe.filters=Qe,Xe.filterStates=Me;const mt=s.useMemo(()=>{const tt={};return Object.keys(Qe).forEach(Ze=>{Qe[Ze]!==null&&(tt[Ze]=Qe[Ze])}),Object.assign(Object.assign({},_e),{filters:tt})},[_e,Qe]),[Dt]=jG(mt),At=(tt,Ze)=>{it({pagination:Object.assign(Object.assign({},Xe.pagination),{current:tt,pageSize:Ze})},"paginate")},[et,ct]=$G(lt.length,At,h);Xe.pagination=h===!1?{}:xG(et,h),Xe.resetPagination=ct;const gt=s.useMemo(()=>{if(h===!1||!et.pageSize)return lt;const{current:tt=1,total:Ze,pageSize:Ct=QI}=et;return lt.length<Ze?lt.length>Ct?lt.slice((tt-1)*Ct,tt*Ct):lt:lt.slice((tt-1)*Ct,tt*Ct)},[!!h,lt,et==null?void 0:et.current,et==null?void 0:et.pageSize,et==null?void 0:et.total]),[ot,vt]=hq({prefixCls:Se,data:lt,pageData:gt,getRowKey:xe,getRecordByKey:Ve,expandType:je,childrenColumnName:Ce,locale:re,getPopupContainer:R||ne},b),Mt=(tt,Ze,Ct)=>{let Ft;return typeof C=="function"?Ft=te(C(tt,Ze,Ct)):Ft=te(C),te({[`${Se}-row-selected`]:vt.has(xe(tt,Ze))},Ft)};ye.__PARENT_RENDER_ICON__=ye.expandIcon,ye.expandIcon=ye.expandIcon||I||bq(re),je==="nest"&&ye.expandIconColumnIndex===void 0?ye.expandIconColumnIndex=b?1:0:ye.expandIconColumnIndex>0&&b&&(ye.expandIconColumnIndex-=1),typeof ye.indentSize!="number"&&(ye.indentSize=typeof z=="number"?z:15);const pe=s.useCallback(tt=>Dt(ot(Ge(Ye(tt)))),[Ye,Ge,ot]),be=()=>{if(h===!1||!(et!=null&&et.total))return{};const tt=()=>et.size||(se==="small"||se==="middle"?"small":void 0),Ze=wt=>{const st=wt==="left"?"start":wt==="right"?"end":wt;return s.createElement(sW,Object.assign({},et,{align:et.align||st,className:te(`${Se}-pagination`,et.className),size:tt()}))},Ct=U==="rtl"?"left":"right",Ft=et.position;if(Ft===null||!Array.isArray(Ft))return{bottom:Ze(Ct)};const Nt=Ft.find(wt=>typeof wt=="string"&&wt.toLowerCase().includes("top")),rn=Ft.find(wt=>typeof wt=="string"&&wt.toLowerCase().includes("bottom")),dn=Ft.every(wt=>`${wt}`=="none"),Wt=Nt?Nt.toLowerCase().replace("top",""):"",on=rn?rn.toLowerCase().replace("bottom",""):"",rt=!Nt&&!rn&&!dn,dt=()=>Wt?Ze(Wt):void 0,It=()=>{if(on)return Ze(on);if(rt)return Ze(Ct)};return{top:dt(),bottom:It()}},we=s.useMemo(()=>typeof N=="boolean"?{spinning:N}:typeof N=="object"&&N!==null?Object.assign({spinning:!0},N):void 0,[N]),Ke=te(ce,ge,`${Se}-wrapper`,W==null?void 0:W.className,{[`${Se}-wrapper-rtl`]:U==="rtl"},l,c,ae),ke=Object.assign(Object.assign({},W==null?void 0:W.style),u),He=s.useMemo(()=>we!=null&&we.spinning&&oe===m2?null:typeof(A==null?void 0:A.emptyText)<"u"?A.emptyText:(X==null?void 0:X("Table"))||s.createElement(DN,{componentName:"Table"}),[we==null?void 0:we.spinning,oe,A==null?void 0:A.emptyText,X]),Le=V?zG:PG,nt={},pt=s.useMemo(()=>{const{fontSize:tt,lineHeight:Ze,lineWidth:Ct,padding:Ft,paddingXS:Nt,paddingSM:rn}=ie,dn=Math.floor(tt*Ze);switch(se){case"middle":return rn*2+dn+Ct;case"small":return Nt*2+dn+Ct;default:return Ft*2+dn+Ct}},[ie,se]);V&&(nt.listItemHeight=pt);const{top:ht,bottom:zt}=be();return ue(s.createElement("div",{ref:Te,className:Ke,style:ke},s.createElement(Vi,Object.assign({spinning:!1},we),ht,s.createElement(Le,Object.assign({},nt,Q,{ref:Ee,columns:G,direction:U,expandable:ye,prefixCls:Se,className:te({[`${Se}-middle`]:se==="middle",[`${Se}-small`]:se==="small",[`${Se}-bordered`]:m,[`${Se}-empty`]:oe.length===0},ce,ge,ae),data:gt,rowKey:xe,rowClassName:Mt,emptyText:He,internalHooks:ld,internalRefs:ze,transformColumns:pe,getContainerWidth:ve,measureRowRender:tt=>s.createElement(uo,{getPopupContainer:Ze=>Ze},tt)})),zt)))},JG=s.forwardRef(ZG),eX=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(JG,Object.assign({},e,{ref:t,_renderTimes:n.current}))},qa=s.forwardRef(eX);qa.SELECTION_COLUMN=Oi;qa.EXPAND_COLUMN=Ni;qa.SELECTION_ALL=tb;qa.SELECTION_INVERT=nb;qa.SELECTION_NONE=rb;qa.Column=lq;qa.ColumnGroup=sq;qa.Summary=II;const tX=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:l}=e,c=l(r).sub(n).equal(),u=l(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},cn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Fy=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Qt(e,{tagFontSize:a,tagLineHeight:Z(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},ky=e=>({defaultBg:new un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),eM=nn("Tag",e=>{const t=Fy(e);return tX(t)},ky);var nX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const rX=s.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:l,children:c,icon:u,onChange:d,onClick:m}=e,g=nX(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:v,tag:h}=s.useContext(Ot),b=E=>{d==null||d(!l),m==null||m(E)},y=v("tag",n),[C,S,x]=eM(y),w=te(y,`${y}-checkable`,{[`${y}-checkable-checked`]:l},h==null?void 0:h.className,a,S,x);return C(s.createElement("span",Object.assign({},g,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:w,onClick:b}),u,s.createElement("span",null,c)))}),aX=e=>Um(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),oX=Xs(["Tag","preset"],e=>{const t=Fy(e);return aX(t)},ky);function iX(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Pf=(e,t,n)=>{const r=iX(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},lX=Xs(["Tag","status"],e=>{const t=Fy(e);return[Pf(t,"success","Success"),Pf(t,"processing","Info"),Pf(t,"error","Error"),Pf(t,"warning","Warning")]},ky);var sX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cX=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,children:c,icon:u,color:d,onClose:m,bordered:g=!0,visible:v}=e,h=sX(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:y,tag:C}=s.useContext(Ot),[S,x]=s.useState(!0),w=_n(h,["closeIcon","closable"]);s.useEffect(()=>{v!==void 0&&x(v)},[v]);const E=vg(d),R=_H(d),N=E||R,I=Object.assign(Object.assign({backgroundColor:d&&!N?d:void 0},C==null?void 0:C.style),l),M=b("tag",n),[j,T,z]=eM(M),L=te(M,C==null?void 0:C.className,{[`${M}-${d}`]:N,[`${M}-has-color`]:d&&!N,[`${M}-hidden`]:!S,[`${M}-rtl`]:y==="rtl",[`${M}-borderless`]:!g},r,a,T,z),D=K=>{K.stopPropagation(),m==null||m(K),!K.defaultPrevented&&x(!1)},[,A]=$R(pm(e),pm(C),{closable:!1,closeIconRender:K=>{const G=s.createElement("span",{className:`${M}-close-icon`,onClick:D},K);return Db(K,G,Q=>({onClick:k=>{var U;(U=Q==null?void 0:Q.onClick)===null||U===void 0||U.call(Q,k),D(k)},className:te(Q==null?void 0:Q.className,`${M}-close-icon`)}))}}),_=typeof h.onClick=="function"||c&&c.type==="a",V=u||null,P=V?s.createElement(s.Fragment,null,V,c&&s.createElement("span",null,c)):c,B=s.createElement("span",Object.assign({},w,{ref:t,className:L,style:I}),P,A,E&&s.createElement(oX,{key:"preset",prefixCls:M}),R&&s.createElement(lX,{key:"status",prefixCls:M}));return j(_?s.createElement(qu,{component:"Tag"},B):B)}),qn=cX;qn.CheckableTag=rX;const uX=e=>{const t=e!=null&&e.algorithm?sm(e.algorithm):Ib,n=Object.assign(Object.assign({},ks),e==null?void 0:e.token);return $O(n,{override:e==null?void 0:e.token},t,Pb)};function dX(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 fX=(e,t)=>{const n=t??Km(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),dX(t??e)),qO(r)),{controlHeight:a}),UO(Object.assign(Object.assign({},n),{controlHeight:a})))},Wa=(e,t)=>new un(e).setA(t).toRgbString(),Es=(e,t)=>new un(e).lighten(t).toHexString(),mX=e=>{const t=wl(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]}},gX=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Wa(r,.85),colorTextSecondary:Wa(r,.65),colorTextTertiary:Wa(r,.45),colorTextQuaternary:Wa(r,.25),colorFill:Wa(r,.18),colorFillSecondary:Wa(r,.12),colorFillTertiary:Wa(r,.08),colorFillQuaternary:Wa(r,.04),colorBgSolid:Wa(r,.95),colorBgSolidHover:Wa(r,1),colorBgSolidActive:Wa(r,.9),colorBgElevated:Es(n,12),colorBgContainer:Es(n,8),colorBgLayout:Es(n,0),colorBgSpotlight:Es(n,26),colorBgBlur:Wa(r,.04),colorBorder:Es(n,26),colorBorderSecondary:Es(n,19)}},vX=(e,t)=>{const n=Object.keys(Tb).map(l=>{const c=wl(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,d,m)=>(u[`${l}-${m+1}`]=c[m],u[`${l}${m+1}`]=c[m],u),{})}).reduce((l,c)=>(l=Object.assign(Object.assign({},l),c),l),{}),r=t??Km(e),a=WO(e,{generateColorPalettes:mX,generateNeutralColorPalettes:gX});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),a),{colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover})};function pX(){const[e,t,n]=jr();return{theme:e,token:t,hashId:n}}const ya={defaultSeed:Tu.token,useToken:pX,defaultAlgorithm:Km,darkAlgorithm:vX,compactAlgorithm:fX,getDesignToken:uX,defaultConfig:Tu,_internalContext:Mb};var hX={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"},bX=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:hX}))},rm=s.forwardRef(bX),yX={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"},SX=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:yX}))},ji=s.forwardRef(SX),CX={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"},xX=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:CX}))},$X=s.forwardRef(xX);const wX=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}},EX=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
403
|
+
h${r}&,
|
|
404
|
+
div&-h${r},
|
|
405
|
+
div&-h${r} > textarea,
|
|
406
|
+
h${r}
|
|
407
|
+
`]=wX(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},OX=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},zb(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},RX=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:um[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}}),NX=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"}}}},TX=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),IX=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),MX=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},EX(e)),{[`
|
|
408
|
+
& + h1${t},
|
|
409
|
+
& + h2${t},
|
|
410
|
+
& + h3${t},
|
|
411
|
+
& + h4${t},
|
|
412
|
+
& + h5${t}
|
|
413
|
+
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),RX(e)),OX(e)),{[`
|
|
414
|
+
${t}-expand,
|
|
415
|
+
${t}-collapse,
|
|
416
|
+
${t}-edit,
|
|
417
|
+
${t}-copy
|
|
418
|
+
`]:Object.assign(Object.assign({},zb(e)),{marginInlineStart:e.marginXXS})}),NX(e)),TX(e)),IX()),{"&-rtl":{direction:"rtl"}})}},jX=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),tM=nn("Typography",MX,jX),PX=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:l,maxLength:c,autoSize:u=!0,value:d,onSave:m,onCancel:g,onEnd:v,component:h,enterIcon:b=s.createElement($X,null)}=e,y=s.useRef(null),C=s.useRef(!1),S=s.useRef(null),[x,w]=s.useState(d);s.useEffect(()=>{w(d)},[d]),s.useEffect(()=>{var _;if(!((_=y.current)===null||_===void 0)&&_.resizableTextArea){const{textArea:V}=y.current.resizableTextArea;V.focus();const{length:P}=V.value;V.setSelectionRange(P,P)}},[]);const E=({target:_})=>{w(_.value.replace(/[\n\r]/g,""))},R=()=>{C.current=!0},N=()=>{C.current=!1},I=({keyCode:_})=>{C.current||(S.current=_)},M=()=>{m(x.trim())},j=({keyCode:_,ctrlKey:V,altKey:P,metaKey:B,shiftKey:K})=>{S.current!==_||C.current||V||P||B||K||(_===ft.ENTER?(M(),v==null||v()):_===ft.ESC&&g())},T=()=>{M()},[z,L,D]=tM(t),A=te(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${h}`]:!!h},r,L,D);return z(s.createElement("div",{className:A,style:a},s.createElement(vI,{ref:y,maxLength:c,value:x,onChange:E,onKeyDown:I,onKeyUp:j,onCompositionStart:R,onCompositionEnd:N,onBlur:T,"aria-label":n,rows:1,autoSize:u}),b!==null?wr(b,{className:`${t}-edit-content-confirm`}):null))};var Rh,g2;function zX(){return g2||(g2=1,Rh=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),Rh}var Nh,v2;function _X(){if(v2)return Nh;v2=1;var e=zX(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,c)}function a(l,c){var u,d,m,g,v,h,b=!1;c||(c={}),u=c.debug||!1;try{m=e(),g=document.createRange(),v=document.getSelection(),h=document.createElement("span"),h.textContent=l,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(C){if(C.stopPropagation(),c.format)if(C.preventDefault(),typeof C.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[c.format]||t.default;window.clipboardData.setData(S,l)}else C.clipboardData.clearData(),C.clipboardData.setData(c.format,l);c.onCopy&&(C.preventDefault(),c.onCopy(C.clipboardData))}),document.body.appendChild(h),g.selectNodeContents(h),v.addRange(g);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");b=!0}catch(C){u&&console.error("unable to copy using execCommand: ",C),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",l),c.onCopy&&c.onCopy(window.clipboardData),b=!0}catch(S){u&&console.error("unable to copy using clipboardData: ",S),u&&console.error("falling back to prompt"),d=r("message"in c?c.message:n),window.prompt(d,l)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(g):v.removeAllRanges()),h&&document.body.removeChild(h),m()}return b}return Nh=a,Nh}var DX=_X();const AX=Dm(DX);var BX=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(g){try{m(r.next(g))}catch(v){c(v)}}function d(g){try{m(r.throw(g))}catch(v){c(v)}}function m(g){g.done?l(g.value):a(g.value).then(u,d)}m((r=r.apply(e,t||[])).next())})};const LX=({copyConfig:e,children:t})=>{const[n,r]=s.useState(!1),[a,l]=s.useState(!1),c=s.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},d={};e.format&&(d.format=e.format),s.useEffect(()=>u,[]);const m=Sn(g=>BX(void 0,void 0,void 0,function*(){var v;g==null||g.preventDefault(),g==null||g.stopPropagation(),l(!0);try{const h=typeof e.text=="function"?yield e.text():e.text;AX(h||CW(t,!0).join("")||"",d),l(!1),r(!0),u(),c.current=setTimeout(()=>{r(!1)},3e3),(v=e.onCopy)===null||v===void 0||v.call(e,g)}catch(h){throw l(!1),h}}));return{copied:n,copyLoading:a,onClick:m}};function Th(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const HX=e=>{const t=s.useRef(void 0);return s.useEffect(()=>{t.current=e}),t.current},FX=(e,t,n)=>s.useMemo(()=>e===!0?{title:t??n}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var kX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nM=s.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:l,setContentRef:c,children:u,direction:d,style:m}=e,g=kX(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:v,direction:h,className:b,style:y}=Er("typography"),C=d??h,S=c?Lr(t,c):t,x=v("typography",n),[w,E,R]=tM(x),N=te(x,b,{[`${x}-rtl`]:C==="rtl"},a,l,E,R),I=Object.assign(Object.assign({},y),m);return w(s.createElement(r,Object.assign({className:N,style:I,ref:S},g),u))});var VX={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"},KX=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:VX}))},WX=s.forwardRef(KX);function p2(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ih(e,t,n){return e===!0||e===void 0?t:e||n&&t}function UX(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 Vy=e=>["string","number"].includes(typeof e),qX=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:l,tabIndex:c,onCopy:u,loading:d})=>{const m=p2(a),g=p2(l),{copied:v,copy:h}=n??{},b=t?v:h,y=Ih(m[t?1:0],b),C=typeof y=="string"?y:b;return s.createElement(ja,{title:y},s.createElement("button",{type:"button",className:te(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":C,tabIndex:c},t?Ih(g[1],s.createElement(HN,null),!0):Ih(g[0],d?s.createElement(_l,null):s.createElement(WX,null),!0)))},zf=s.forwardRef(({style:e,children:t},n)=>{const r=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),GX=e=>e.reduce((t,n)=>t+(Vy(n)?String(n).length:1),0);function h2(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const l=e[a],u=Vy(l)?String(l).length:1,d=n+u;if(d>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=d}return e}const Mh=0,jh=1,Ph=2,zh=3,b2=4,_f={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function XX(e){const{enableMeasure:t,width:n,text:r,children:a,rows:l,expanded:c,miscDeps:u,onEllipsis:d}=e,m=s.useMemo(()=>Ir(r),[r]),g=s.useMemo(()=>GX(m),[r]),v=s.useMemo(()=>a(m,!1),[r]),[h,b]=s.useState(null),y=s.useRef(null),C=s.useRef(null),S=s.useRef(null),x=s.useRef(null),w=s.useRef(null),[E,R]=s.useState(!1),[N,I]=s.useState(Mh),[M,j]=s.useState(0),[T,z]=s.useState(null);en(()=>{I(t&&n&&g?jh:Mh)},[n,r,l,t,m]),en(()=>{var _,V,P,B;if(N===jh){I(Ph);const K=C.current&&getComputedStyle(C.current).whiteSpace;z(K)}else if(N===Ph){const K=!!(!((_=S.current)===null||_===void 0)&&_.isExceed());I(K?zh:b2),b(K?[0,g]:null),R(K);const G=((V=S.current)===null||V===void 0?void 0:V.getHeight())||0,Q=l===1?0:((P=x.current)===null||P===void 0?void 0:P.getHeight())||0,k=((B=w.current)===null||B===void 0?void 0:B.getHeight())||0,U=Math.max(G,Q+k);j(U+1),d(K)}},[N]);const L=h?Math.ceil((h[0]+h[1])/2):0;en(()=>{var _;const[V,P]=h||[0,0];if(V!==P){const K=(((_=y.current)===null||_===void 0?void 0:_.getHeight())||0)>M;let G=L;P-V===1&&(G=K?V:P),b(K?[V,G]:[G,P])}},[h,L]);const D=s.useMemo(()=>{if(!t)return a(m,!1);if(N!==zh||!h||h[0]!==h[1]){const _=a(m,!1);return[b2,Mh].includes(N)?_:s.createElement("span",{style:Object.assign(Object.assign({},_f),{WebkitLineClamp:l})},_)}return a(c?m:h2(m,h[0]),E)},[c,N,h,m].concat(De(u))),A={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,D,N===Ph&&s.createElement(s.Fragment,null,s.createElement(zf,{style:Object.assign(Object.assign(Object.assign({},A),_f),{WebkitLineClamp:l}),ref:S},v),s.createElement(zf,{style:Object.assign(Object.assign(Object.assign({},A),_f),{WebkitLineClamp:l-1}),ref:x},v),s.createElement(zf,{style:Object.assign(Object.assign(Object.assign({},A),_f),{WebkitLineClamp:1}),ref:w},a([],!0))),N===zh&&h&&h[0]!==h[1]&&s.createElement(zf,{style:Object.assign(Object.assign({},A),{top:400}),ref:y},a(h2(m,L),!0)),N===jh&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const YX=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:s.createElement(ja,Object.assign({open:t?void 0:!1},r),n);var QX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ZX({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:l,italic:c},u){let d=u;function m(g,v){v&&(d=s.createElement(g,{},d))}return m("strong",a),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",c),d}const JX="...",y2=["delete","mark","code","underline","strong","keyboard","italic"],Ng=s.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:l,type:c,disabled:u,children:d,ellipsis:m,editable:g,copyable:v,component:h,title:b}=e,y=QX(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:S}=s.useContext(Ot),[x]=co("Text"),w=s.useRef(null),E=s.useRef(null),R=C("typography",r),N=_n(y,y2),[I,M]=Th(g),[j,T]=Gn(!1,{value:M.editing}),{triggerType:z=["icon"]}=M,L=Me=>{var Qe;Me&&((Qe=M.onStart)===null||Qe===void 0||Qe.call(M)),T(Me)},D=HX(j);en(()=>{var Me;!j&&D&&((Me=E.current)===null||Me===void 0||Me.focus())},[j]);const A=Me=>{Me==null||Me.preventDefault(),L(!0)},_=Me=>{var Qe;(Qe=M.onChange)===null||Qe===void 0||Qe.call(M,Me),L(!1)},V=()=>{var Me;(Me=M.onCancel)===null||Me===void 0||Me.call(M),L(!1)},[P,B]=Th(v),{copied:K,copyLoading:G,onClick:Q}=LX({copyConfig:B,children:d}),[k,U]=s.useState(!1),[W,X]=s.useState(!1),[J,ne]=s.useState(!1),[se,re]=s.useState(!1),[oe,Se]=s.useState(!0),[me,ie]=Th(m,{expandable:!1,symbol:Me=>Me?x==null?void 0:x.collapse:x==null?void 0:x.expand}),[ge,ue]=Gn(ie.defaultExpanded||!1,{value:ie.expanded}),ae=me&&(!ge||ie.expandable==="collapsible"),{rows:ce=1}=ie,ye=s.useMemo(()=>ae&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||I||P),[ae,ie,I,P]);en(()=>{me&&!ye&&(U(D0("webkitLineClamp")),X(D0("textOverflow")))},[ye,me]);const[Ce,je]=s.useState(ae),ze=s.useMemo(()=>ye?!1:ce===1?W:k,[ye,W,k]);en(()=>{je(ze&&ae)},[ze,ae]);const ve=ae&&(Ce?se:J),Te=ae&&ce===1&&Ce,Ee=ae&&ce>1&&Ce,xe=(Me,Qe)=>{var lt;ue(Qe.expanded),(lt=ie.onExpand)===null||lt===void 0||lt.call(ie,Me,Qe)},[Ve,Xe]=s.useState(0),it=({offsetWidth:Me})=>{Xe(Me)},at=Me=>{var Qe;ne(Me),J!==Me&&((Qe=ie.onEllipsis)===null||Qe===void 0||Qe.call(ie,Me))};s.useEffect(()=>{const Me=w.current;if(me&&Ce&&Me){const Qe=UX(Me);se!==Qe&&re(Qe)}},[me,Ce,d,Ee,oe,Ve]),s.useEffect(()=>{const Me=w.current;if(typeof IntersectionObserver>"u"||!Me||!Ce||!ae)return;const Qe=new IntersectionObserver(()=>{Se(!!Me.offsetParent)});return Qe.observe(Me),()=>{Qe.disconnect()}},[Ce,ae]);const Ye=FX(ie.tooltip,M.text,d),Je=s.useMemo(()=>{if(!(!me||Ce))return[M.text,d,b,Ye.title].find(Vy)},[me,Ce,b,Ye.title,ve]);if(j)return s.createElement(PX,{value:(n=M.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:_,onCancel:V,onEnd:M.onEnd,prefixCls:R,className:a,style:l,direction:S,component:h,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const _e=()=>{const{expandable:Me,symbol:Qe}=ie;return Me?s.createElement("button",{type:"button",key:"expand",className:`${R}-${ge?"collapse":"expand"}`,onClick:lt=>xe(lt,{expanded:!ge}),"aria-label":ge?x.collapse:x==null?void 0:x.expand},typeof Qe=="function"?Qe(ge):Qe):null},Ie=()=>{if(!I)return;const{icon:Me,tooltip:Qe,tabIndex:lt}=M,mt=Ir(Qe)[0]||(x==null?void 0:x.edit),Dt=typeof mt=="string"?mt:"";return z.includes("icon")?s.createElement(ja,{key:"edit",title:Qe===!1?"":mt},s.createElement("button",{type:"button",ref:E,className:`${R}-edit`,onClick:A,"aria-label":Dt,tabIndex:lt},Me||s.createElement(ji,{role:"button"}))):null},We=()=>P?s.createElement(qX,Object.assign({key:"copy"},B,{prefixCls:R,copied:K,locale:x,onCopy:Q,loading:G,iconOnly:d==null})):null,Be=Me=>[Me&&_e(),Ie(),We()],Ge=Me=>[Me&&!ge&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},JX),ie.suffix,Be(Me)];return s.createElement(ca,{onResize:it,disabled:!ae},Me=>s.createElement(YX,{tooltipProps:Ye,enableEllipsis:ae,isEllipsis:ve},s.createElement(nM,Object.assign({className:te({[`${R}-${c}`]:c,[`${R}-disabled`]:u,[`${R}-ellipsis`]:me,[`${R}-ellipsis-single-line`]:Te,[`${R}-ellipsis-multiple-line`]:Ee},a),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Ee?ce:void 0}),component:h,ref:Lr(Me,w,t),direction:S,onClick:z.includes("text")?A:void 0,"aria-label":Je==null?void 0:Je.toString(),title:b},N),s.createElement(XX,{enableMeasure:ae&&!Ce,text:d,rows:ce,width:Ve,onEllipsis:at,expanded:ge,miscDeps:[K,ge,G,I,P,x].concat(De(y2.map(Qe=>e[Qe])))},(Qe,lt)=>ZX(e,s.createElement(s.Fragment,null,Qe.length>0&<&&!ge&&Je?s.createElement("span",{key:"show-content","aria-hidden":!0},Qe):Qe,Ge(lt)))))))});var eY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tY=s.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:l}=e,c=eY(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},c),{rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r});return s.createElement(Ng,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),a)});var nY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const rY=s.forwardRef((e,t)=>{const{children:n}=e,r=nY(e,["children"]);return s.createElement(Ng,Object.assign({ref:t},r,{component:"div"}),n)});var aY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const oY=(e,t)=>{const{ellipsis:n,children:r}=e,a=aY(e,["ellipsis","children"]),l=s.useMemo(()=>n&&typeof n=="object"?_n(n,["expandable","rows"]):n,[n]);return s.createElement(Ng,Object.assign({ref:t},a,{ellipsis:l,component:"span"}),r)},iY=s.forwardRef(oY);var lY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sY=[1,2,3,4,5],cY=s.forwardRef((e,t)=>{const{level:n=1,children:r}=e,a=lY(e,["level","children"]),l=sY.includes(n)?`h${n}`:"h1";return s.createElement(Ng,Object.assign({ref:t},a,{component:l}),r)}),fo=nM;fo.Text=iY;fo.Link=tY;fo.Title=cY;fo.Paragraph=rY;var _h={exports:{}},au={},Dh={exports:{}},Ah={};/**
|
|
419
|
+
* @license React
|
|
420
|
+
* scheduler.production.js
|
|
421
|
+
*
|
|
422
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
423
|
+
*
|
|
424
|
+
* This source code is licensed under the MIT license found in the
|
|
425
|
+
* LICENSE file in the root directory of this source tree.
|
|
426
|
+
*/var S2;function uY(){return S2||(S2=1,(function(e){function t(P,B){var K=P.length;P.push(B);e:for(;0<K;){var G=K-1>>>1,Q=P[G];if(0<a(Q,B))P[G]=B,P[K]=Q,K=G;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var B=P[0],K=P.pop();if(K!==B){P[0]=K;e:for(var G=0,Q=P.length,k=Q>>>1;G<k;){var U=2*(G+1)-1,W=P[U],X=U+1,J=P[X];if(0>a(W,K))X<Q&&0>a(J,W)?(P[G]=J,P[X]=K,G=X):(P[G]=W,P[U]=K,G=U);else if(X<Q&&0>a(J,K))P[G]=J,P[X]=K,G=X;else break e}}return B}function a(P,B){var K=P.sortIndex-B.sortIndex;return K!==0?K:P.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],m=[],g=1,v=null,h=3,b=!1,y=!1,C=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function R(P){for(var B=n(m);B!==null;){if(B.callback===null)r(m);else if(B.startTime<=P)r(m),B.sortIndex=B.expirationTime,t(d,B);else break;B=n(m)}}function N(P){if(C=!1,R(P),!y)if(n(d)!==null)y=!0,I||(I=!0,D());else{var B=n(m);B!==null&&V(N,B.startTime-P)}}var I=!1,M=-1,j=5,T=-1;function z(){return S?!0:!(e.unstable_now()-T<j)}function L(){if(S=!1,I){var P=e.unstable_now();T=P;var B=!0;try{e:{y=!1,C&&(C=!1,w(M),M=-1),b=!0;var K=h;try{t:{for(R(P),v=n(d);v!==null&&!(v.expirationTime>P&&z());){var G=v.callback;if(typeof G=="function"){v.callback=null,h=v.priorityLevel;var Q=G(v.expirationTime<=P);if(P=e.unstable_now(),typeof Q=="function"){v.callback=Q,R(P),B=!0;break t}v===n(d)&&r(d),R(P)}else r(d);v=n(d)}if(v!==null)B=!0;else{var k=n(m);k!==null&&V(N,k.startTime-P),B=!1}}break e}finally{v=null,h=K,b=!1}B=void 0}}finally{B?D():I=!1}}}var D;if(typeof E=="function")D=function(){E(L)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,_=A.port2;A.port1.onmessage=L,D=function(){_.postMessage(null)}}else D=function(){x(L,0)};function V(P,B){M=x(function(){P(e.unstable_now())},B)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var K=h;h=B;try{return P()}finally{h=K}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(P,B){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var K=h;h=P;try{return B()}finally{h=K}},e.unstable_scheduleCallback=function(P,B,K){var G=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?G+K:G):K=G,P){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=K+Q,P={id:g++,callback:B,priorityLevel:P,startTime:K,expirationTime:Q,sortIndex:-1},K>G?(P.sortIndex=K,t(m,P),n(d)===null&&P===n(m)&&(C?(w(M),M=-1):C=!0,V(N,K-G))):(P.sortIndex=Q,t(d,P),y||b||(y=!0,I||(I=!0,D()))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var B=h;return function(){var K=h;h=B;try{return P.apply(this,arguments)}finally{h=K}}}})(Ah)),Ah}var C2;function dY(){return C2||(C2=1,Dh.exports=uY()),Dh.exports}/**
|
|
427
|
+
* @license React
|
|
428
|
+
* react-dom-client.production.js
|
|
429
|
+
*
|
|
430
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
431
|
+
*
|
|
432
|
+
* This source code is licensed under the MIT license found in the
|
|
433
|
+
* LICENSE file in the root directory of this source tree.
|
|
434
|
+
*/var x2;function fY(){if(x2)return au;x2=1;var e=dY(),t=Am(),n=aO();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)i+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function l(o){var i=o,f=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(f=i.return),o=i.return;while(o)}return i.tag===3?f:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function u(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function d(o){if(l(o)!==o)throw Error(r(188))}function m(o){var i=o.alternate;if(!i){if(i=l(o),i===null)throw Error(r(188));return i!==o?null:o}for(var f=o,p=i;;){var $=f.return;if($===null)break;var O=$.alternate;if(O===null){if(p=$.return,p!==null){f=p;continue}break}if($.child===O.child){for(O=$.child;O;){if(O===f)return d($),o;if(O===p)return d($),i;O=O.sibling}throw Error(r(188))}if(f.return!==p.return)f=$,p=O;else{for(var F=!1,Y=$.child;Y;){if(Y===f){F=!0,f=$,p=O;break}if(Y===p){F=!0,p=$,f=O;break}Y=Y.sibling}if(!F){for(Y=O.child;Y;){if(Y===f){F=!0,f=O,p=$;break}if(Y===p){F=!0,p=O,f=$;break}Y=Y.sibling}if(!F)throw Error(r(189))}}if(f.alternate!==p)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?o:i}function g(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=g(o),i!==null)return i;o=o.sibling}return null}var v=Object.assign,h=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function D(o){return o===null||typeof o!="object"?null:(o=L&&o[L]||o["@@iterator"],typeof o=="function"?o:null)}var A=Symbol.for("react.client.reference");function _(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===A?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case C:return"Fragment";case x:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case I:return"SuspenseList";case T:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case E:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case R:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return i=o.displayName||null,i!==null?i:_(o.type)||"Memo";case j:i=o._payload,o=o._init;try{return _(o(i))}catch{}}return null}var V=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},G=[],Q=-1;function k(o){return{current:o}}function U(o){0>Q||(o.current=G[Q],G[Q]=null,Q--)}function W(o,i){Q++,G[Q]=o.current,o.current=i}var X=k(null),J=k(null),ne=k(null),se=k(null);function re(o,i){switch(W(ne,i),W(J,o),W(X,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?Yx(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=Yx(i),o=Qx(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}U(X),W(X,o)}function oe(){U(X),U(J),U(ne)}function Se(o){o.memoizedState!==null&&W(se,o);var i=X.current,f=Qx(i,o.type);i!==f&&(W(J,o),W(X,f))}function me(o){J.current===o&&(U(X),U(J)),se.current===o&&(U(se),qc._currentValue=K)}var ie,ge;function ue(o){if(ie===void 0)try{throw Error()}catch(f){var i=f.stack.trim().match(/\n( *(at )?)/);ie=i&&i[1]||"",ge=-1<f.stack.indexOf(`
|
|
435
|
+
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
436
|
+
`+ie+o+ge}var ae=!1;function ce(o,i){if(!o||ae)return"";ae=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(i){var qe=function(){throw Error()};if(Object.defineProperty(qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(qe,[])}catch(Ae){var Pe=Ae}Reflect.construct(o,[],qe)}else{try{qe.call()}catch(Ae){Pe=Ae}o.call(qe.prototype)}}else{try{throw Error()}catch(Ae){Pe=Ae}(qe=o())&&typeof qe.catch=="function"&&qe.catch(function(){})}}catch(Ae){if(Ae&&Pe&&typeof Ae.stack=="string")return[Ae.stack,Pe.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var $=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");$&&$.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=p.DetermineComponentFrameRoot(),F=O[0],Y=O[1];if(F&&Y){var fe=F.split(`
|
|
437
|
+
`),Ne=Y.split(`
|
|
438
|
+
`);for($=p=0;p<fe.length&&!fe[p].includes("DetermineComponentFrameRoot");)p++;for(;$<Ne.length&&!Ne[$].includes("DetermineComponentFrameRoot");)$++;if(p===fe.length||$===Ne.length)for(p=fe.length-1,$=Ne.length-1;1<=p&&0<=$&&fe[p]!==Ne[$];)$--;for(;1<=p&&0<=$;p--,$--)if(fe[p]!==Ne[$]){if(p!==1||$!==1)do if(p--,$--,0>$||fe[p]!==Ne[$]){var Fe=`
|
|
439
|
+
`+fe[p].replace(" at new "," at ");return o.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",o.displayName)),Fe}while(1<=p&&0<=$);break}}}finally{ae=!1,Error.prepareStackTrace=f}return(f=o?o.displayName||o.name:"")?ue(f):""}function ye(o,i){switch(o.tag){case 26:case 27:case 5:return ue(o.type);case 16:return ue("Lazy");case 13:return o.child!==i&&i!==null?ue("Suspense Fallback"):ue("Suspense");case 19:return ue("SuspenseList");case 0:case 15:return ce(o.type,!1);case 11:return ce(o.type.render,!1);case 1:return ce(o.type,!0);case 31:return ue("Activity");default:return""}}function Ce(o){try{var i="",f=null;do i+=ye(o,f),f=o,o=o.return;while(o);return i}catch(p){return`
|
|
440
|
+
Error generating stack: `+p.message+`
|
|
441
|
+
`+p.stack}}var je=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,ve=e.unstable_cancelCallback,Te=e.unstable_shouldYield,Ee=e.unstable_requestPaint,xe=e.unstable_now,Ve=e.unstable_getCurrentPriorityLevel,Xe=e.unstable_ImmediatePriority,it=e.unstable_UserBlockingPriority,at=e.unstable_NormalPriority,Ye=e.unstable_LowPriority,Je=e.unstable_IdlePriority,_e=e.log,Ie=e.unstable_setDisableYieldValue,We=null,Be=null;function Ge(o){if(typeof _e=="function"&&Ie(o),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(We,o)}catch{}}var Me=Math.clz32?Math.clz32:mt,Qe=Math.log,lt=Math.LN2;function mt(o){return o>>>=0,o===0?32:31-(Qe(o)/lt|0)|0}var Dt=256,At=262144,et=4194304;function ct(o){var i=o&42;if(i!==0)return i;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function gt(o,i,f){var p=o.pendingLanes;if(p===0)return 0;var $=0,O=o.suspendedLanes,F=o.pingedLanes;o=o.warmLanes;var Y=p&134217727;return Y!==0?(p=Y&~O,p!==0?$=ct(p):(F&=Y,F!==0?$=ct(F):f||(f=Y&~o,f!==0&&($=ct(f))))):(Y=p&~O,Y!==0?$=ct(Y):F!==0?$=ct(F):f||(f=p&~o,f!==0&&($=ct(f)))),$===0?0:i!==0&&i!==$&&(i&O)===0&&(O=$&-$,f=i&-i,O>=f||O===32&&(f&4194048)!==0)?i:$}function ot(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function vt(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mt(){var o=et;return et<<=1,(et&62914560)===0&&(et=4194304),o}function pe(o){for(var i=[],f=0;31>f;f++)i.push(o);return i}function be(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function we(o,i,f,p,$,O){var F=o.pendingLanes;o.pendingLanes=f,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=f,o.entangledLanes&=f,o.errorRecoveryDisabledLanes&=f,o.shellSuspendCounter=0;var Y=o.entanglements,fe=o.expirationTimes,Ne=o.hiddenUpdates;for(f=F&~f;0<f;){var Fe=31-Me(f),qe=1<<Fe;Y[Fe]=0,fe[Fe]=-1;var Pe=Ne[Fe];if(Pe!==null)for(Ne[Fe]=null,Fe=0;Fe<Pe.length;Fe++){var Ae=Pe[Fe];Ae!==null&&(Ae.lane&=-536870913)}f&=~qe}p!==0&&Ke(o,p,0),O!==0&&$===0&&o.tag!==0&&(o.suspendedLanes|=O&~(F&~i))}function Ke(o,i,f){o.pendingLanes|=i,o.suspendedLanes&=~i;var p=31-Me(i);o.entangledLanes|=i,o.entanglements[p]=o.entanglements[p]|1073741824|f&261930}function ke(o,i){var f=o.entangledLanes|=i;for(o=o.entanglements;f;){var p=31-Me(f),$=1<<p;$&i|o[p]&i&&(o[p]|=i),f&=~$}}function He(o,i){var f=i&-i;return f=(f&42)!==0?1:Le(f),(f&(o.suspendedLanes|i))!==0?0:f}function Le(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function nt(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function pt(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:S1(o.type))}function ht(o,i){var f=B.p;try{return B.p=o,i()}finally{B.p=f}}var zt=Math.random().toString(36).slice(2),tt="__reactFiber$"+zt,Ze="__reactProps$"+zt,Ct="__reactContainer$"+zt,Ft="__reactEvents$"+zt,Nt="__reactListeners$"+zt,rn="__reactHandles$"+zt,dn="__reactResources$"+zt,Wt="__reactMarker$"+zt;function on(o){delete o[tt],delete o[Ze],delete o[Ft],delete o[Nt],delete o[rn]}function rt(o){var i=o[tt];if(i)return i;for(var f=o.parentNode;f;){if(i=f[Ct]||f[tt]){if(f=i.alternate,i.child!==null||f!==null&&f.child!==null)for(o=a1(o);o!==null;){if(f=o[tt])return f;o=a1(o)}return i}o=f,f=o.parentNode}return null}function dt(o){if(o=o[tt]||o[Ct]){var i=o.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return o}return null}function It(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function wt(o){var i=o[dn];return i||(i=o[dn]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function st(o){o[Wt]=!0}var bt=new Set,Bt={};function qt(o,i){ut(o,i),ut(o+"Capture",i)}function ut(o,i){for(Bt[o]=i,o=0;o<i.length;o++)bt.add(i[o])}var Tt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kt={},Dn={};function or(o){return je.call(Dn,o)?!0:je.call(kt,o)?!1:Tt.test(o)?Dn[o]=!0:(kt[o]=!0,!1)}function lr(o,i,f){if(or(i))if(f===null)o.removeAttribute(i);else{switch(typeof f){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var p=i.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+f)}}function sr(o,i,f){if(f===null)o.removeAttribute(i);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+f)}}function Tn(o,i,f,p){if(p===null)o.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(f);return}o.setAttributeNS(i,f,""+p)}}function In(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Or(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Fr(o,i,f){var p=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);if(!o.hasOwnProperty(i)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var $=p.get,O=p.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return $.call(this)},set:function(F){f=""+F,O.call(this,F)}}),Object.defineProperty(o,i,{enumerable:p.enumerable}),{getValue:function(){return f},setValue:function(F){f=""+F},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function pr(o){if(!o._valueTracker){var i=Or(o)?"checked":"value";o._valueTracker=Fr(o,i,""+o[i])}}function fn(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var f=i.getValue(),p="";return o&&(p=Or(o)?o.checked?"true":"false":o.value),o=p,o!==f?(i.setValue(o),!0):!1}function yt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var xt=/[\n"\\]/g;function Gt(o){return o.replace(xt,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ln(o,i,f,p,$,O,F,Y){o.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?o.type=F:o.removeAttribute("type"),i!=null?F==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+In(i)):o.value!==""+In(i)&&(o.value=""+In(i)):F!=="submit"&&F!=="reset"||o.removeAttribute("value"),i!=null?En(o,F,In(i)):f!=null?En(o,F,In(f)):p!=null&&o.removeAttribute("value"),$==null&&O!=null&&(o.defaultChecked=!!O),$!=null&&(o.checked=$&&typeof $!="function"&&typeof $!="symbol"),Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"?o.name=""+In(Y):o.removeAttribute("name")}function yn(o,i,f,p,$,O,F,Y){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(o.type=O),i!=null||f!=null){if(!(O!=="submit"&&O!=="reset"||i!=null)){pr(o);return}f=f!=null?""+In(f):"",i=i!=null?""+In(i):f,Y||i===o.value||(o.value=i),o.defaultValue=i}p=p??$,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=Y?o.checked:!!p,o.defaultChecked=!!p,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(o.name=F),pr(o)}function En(o,i,f){i==="number"&&yt(o.ownerDocument)===o||o.defaultValue===""+f||(o.defaultValue=""+f)}function Yn(o,i,f,p){if(o=o.options,i){i={};for(var $=0;$<f.length;$++)i["$"+f[$]]=!0;for(f=0;f<o.length;f++)$=i.hasOwnProperty("$"+o[f].value),o[f].selected!==$&&(o[f].selected=$),$&&p&&(o[f].defaultSelected=!0)}else{for(f=""+In(f),i=null,$=0;$<o.length;$++){if(o[$].value===f){o[$].selected=!0,p&&(o[$].defaultSelected=!0);return}i!==null||o[$].disabled||(i=o[$])}i!==null&&(i.selected=!0)}}function Jn(o,i,f){if(i!=null&&(i=""+In(i),i!==o.value&&(o.value=i),f==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=f!=null?""+In(f):""}function dr(o,i,f,p){if(i==null){if(p!=null){if(f!=null)throw Error(r(92));if(V(p)){if(1<p.length)throw Error(r(93));p=p[0]}f=p}f==null&&(f=""),i=f}f=In(i),o.defaultValue=f,p=o.textContent,p===f&&p!==""&&p!==null&&(o.value=p),pr(o)}function Vn(o,i){if(i){var f=o.firstChild;if(f&&f===o.lastChild&&f.nodeType===3){f.nodeValue=i;return}}o.textContent=i}var hr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ia(o,i,f){var p=i.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?p?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":p?o.setProperty(i,f):typeof f!="number"||f===0||hr.has(i)?i==="float"?o.cssFloat=f:o[i]=(""+f).trim():o[i]=f+"px"}function Lt(o,i,f){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,f!=null){for(var p in f)!f.hasOwnProperty(p)||i!=null&&i.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var $ in i)p=i[$],i.hasOwnProperty($)&&f[$]!==p&&ia(o,$,p)}else for(var O in i)i.hasOwnProperty(O)&&ia(o,O,i[O])}function Xt(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ir=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),kr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Kn(o){return kr.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function On(){}var Rr=null;function zr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var fr=null,Vr=null;function Wi(o){var i=dt(o);if(i&&(o=i.stateNode)){var f=o[Ze]||null;e:switch(o=i.stateNode,i.type){case"input":if(ln(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),i=f.name,f.type==="radio"&&i!=null){for(f=o;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Gt(""+i)+'"][type="radio"]'),i=0;i<f.length;i++){var p=f[i];if(p!==o&&p.form===o.form){var $=p[Ze]||null;if(!$)throw Error(r(90));ln(p,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name)}}for(i=0;i<f.length;i++)p=f[i],p.form===o.form&&fn(p)}break e;case"textarea":Jn(o,f.value,f.defaultValue);break e;case"select":i=f.value,i!=null&&Yn(o,!!f.multiple,i,!1)}}}var Zo=!1;function Bl(o,i,f){if(Zo)return o(i,f);Zo=!0;try{var p=o(i);return p}finally{if(Zo=!1,(fr!==null||Vr!==null)&&(Xd(),fr&&(i=fr,o=Vr,Vr=fr=null,Wi(i),o)))for(i=0;i<o.length;i++)Wi(o[i])}}function Rt(o,i){var f=o.stateNode;if(f===null)return null;var p=f[Ze]||null;if(p===null)return null;f=p[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(f&&typeof f!="function")throw Error(r(231,i,typeof f));return f}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),An=!1;if(Ht)try{var Wn={};Object.defineProperty(Wn,"passive",{get:function(){An=!0}}),window.addEventListener("test",Wn,Wn),window.removeEventListener("test",Wn,Wn)}catch{An=!1}var Cn=null,Jo=null,ei=null;function dc(){if(ei)return ei;var o,i=Jo,f=i.length,p,$="value"in Cn?Cn.value:Cn.textContent,O=$.length;for(o=0;o<f&&i[o]===$[o];o++);var F=f-o;for(p=1;p<=F&&i[f-p]===$[O-p];p++);return ei=$.slice(o,1<p?1-p:void 0)}function Ro(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function dd(){return!0}function Zy(){return!1}function ua(o){function i(f,p,$,O,F){this._reactName=f,this._targetInst=$,this.type=p,this.nativeEvent=O,this.target=F,this.currentTarget=null;for(var Y in o)o.hasOwnProperty(Y)&&(f=o[Y],this[Y]=f?f(O):O[Y]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?dd:Zy,this.isPropagationStopped=Zy,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=dd)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=dd)},persist:function(){},isPersistent:dd}),i}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fd=ua(Ui),fc=v({},Ui,{view:0,detail:0}),zM=ua(fc),jg,Pg,mc,md=v({},fc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_g,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==mc&&(mc&&o.type==="mousemove"?(jg=o.screenX-mc.screenX,Pg=o.screenY-mc.screenY):Pg=jg=0,mc=o),jg)},movementY:function(o){return"movementY"in o?o.movementY:Pg}}),Jy=ua(md),_M=v({},md,{dataTransfer:0}),DM=ua(_M),AM=v({},fc,{relatedTarget:0}),zg=ua(AM),BM=v({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),LM=ua(BM),HM=v({},Ui,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),FM=ua(HM),kM=v({},Ui,{data:0}),eS=ua(kM),VM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KM={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"},WM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UM(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=WM[o])?!!i[o]:!1}function _g(){return UM}var qM=v({},fc,{key:function(o){if(o.key){var i=VM[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=Ro(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?KM[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_g,charCode:function(o){return o.type==="keypress"?Ro(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Ro(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),GM=ua(qM),XM=v({},md,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tS=ua(XM),YM=v({},fc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_g}),QM=ua(YM),ZM=v({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),JM=ua(ZM),ej=v({},md,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),tj=ua(ej),nj=v({},Ui,{newState:0,oldState:0}),rj=ua(nj),aj=[9,13,27,32],Dg=Ht&&"CompositionEvent"in window,gc=null;Ht&&"documentMode"in document&&(gc=document.documentMode);var oj=Ht&&"TextEvent"in window&&!gc,nS=Ht&&(!Dg||gc&&8<gc&&11>=gc),rS=" ",aS=!1;function oS(o,i){switch(o){case"keyup":return aj.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ll=!1;function ij(o,i){switch(o){case"compositionend":return iS(i);case"keypress":return i.which!==32?null:(aS=!0,rS);case"textInput":return o=i.data,o===rS&&aS?null:o;default:return null}}function lj(o,i){if(Ll)return o==="compositionend"||!Dg&&oS(o,i)?(o=dc(),ei=Jo=Cn=null,Ll=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return nS&&i.locale!=="ko"?null:i.data;default:return null}}var sj={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 lS(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!sj[o.type]:i==="textarea"}function sS(o,i,f,p){fr?Vr?Vr.push(p):Vr=[p]:fr=p,i=nf(i,"onChange"),0<i.length&&(f=new fd("onChange","change",null,f,p),o.push({event:f,listeners:i}))}var vc=null,pc=null;function cj(o){Kx(o,0)}function gd(o){var i=It(o);if(fn(i))return o}function cS(o,i){if(o==="change")return i}var uS=!1;if(Ht){var Ag;if(Ht){var Bg="oninput"in document;if(!Bg){var dS=document.createElement("div");dS.setAttribute("oninput","return;"),Bg=typeof dS.oninput=="function"}Ag=Bg}else Ag=!1;uS=Ag&&(!document.documentMode||9<document.documentMode)}function fS(){vc&&(vc.detachEvent("onpropertychange",mS),pc=vc=null)}function mS(o){if(o.propertyName==="value"&&gd(pc)){var i=[];sS(i,pc,o,zr(o)),Bl(cj,i)}}function uj(o,i,f){o==="focusin"?(fS(),vc=i,pc=f,vc.attachEvent("onpropertychange",mS)):o==="focusout"&&fS()}function dj(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return gd(pc)}function fj(o,i){if(o==="click")return gd(i)}function mj(o,i){if(o==="input"||o==="change")return gd(i)}function gj(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Ca=typeof Object.is=="function"?Object.is:gj;function hc(o,i){if(Ca(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var f=Object.keys(o),p=Object.keys(i);if(f.length!==p.length)return!1;for(p=0;p<f.length;p++){var $=f[p];if(!je.call(i,$)||!Ca(o[$],i[$]))return!1}return!0}function gS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function vS(o,i){var f=gS(o);o=0;for(var p;f;){if(f.nodeType===3){if(p=o+f.textContent.length,o<=i&&p>=i)return{node:f,offset:i-o};o=p}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=gS(f)}}function pS(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?pS(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function hS(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=yt(o.document);i instanceof o.HTMLIFrameElement;){try{var f=typeof i.contentWindow.location.href=="string"}catch{f=!1}if(f)o=i.contentWindow;else break;i=yt(o.document)}return i}function Lg(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var vj=Ht&&"documentMode"in document&&11>=document.documentMode,Hl=null,Hg=null,bc=null,Fg=!1;function bS(o,i,f){var p=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Fg||Hl==null||Hl!==yt(p)||(p=Hl,"selectionStart"in p&&Lg(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),bc&&hc(bc,p)||(bc=p,p=nf(Hg,"onSelect"),0<p.length&&(i=new fd("onSelect","select",null,i,f),o.push({event:i,listeners:p}),i.target=Hl)))}function qi(o,i){var f={};return f[o.toLowerCase()]=i.toLowerCase(),f["Webkit"+o]="webkit"+i,f["Moz"+o]="moz"+i,f}var Fl={animationend:qi("Animation","AnimationEnd"),animationiteration:qi("Animation","AnimationIteration"),animationstart:qi("Animation","AnimationStart"),transitionrun:qi("Transition","TransitionRun"),transitionstart:qi("Transition","TransitionStart"),transitioncancel:qi("Transition","TransitionCancel"),transitionend:qi("Transition","TransitionEnd")},kg={},yS={};Ht&&(yS=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function Gi(o){if(kg[o])return kg[o];if(!Fl[o])return o;var i=Fl[o],f;for(f in i)if(i.hasOwnProperty(f)&&f in yS)return kg[o]=i[f];return o}var SS=Gi("animationend"),CS=Gi("animationiteration"),xS=Gi("animationstart"),pj=Gi("transitionrun"),hj=Gi("transitionstart"),bj=Gi("transitioncancel"),$S=Gi("transitionend"),wS=new Map,Vg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vg.push("scrollEnd");function Za(o,i){wS.set(o,i),qt(i,[o])}var vd=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},za=[],kl=0,Kg=0;function pd(){for(var o=kl,i=Kg=kl=0;i<o;){var f=za[i];za[i++]=null;var p=za[i];za[i++]=null;var $=za[i];za[i++]=null;var O=za[i];if(za[i++]=null,p!==null&&$!==null){var F=p.pending;F===null?$.next=$:($.next=F.next,F.next=$),p.pending=$}O!==0&&ES(f,$,O)}}function hd(o,i,f,p){za[kl++]=o,za[kl++]=i,za[kl++]=f,za[kl++]=p,Kg|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Wg(o,i,f,p){return hd(o,i,f,p),bd(o)}function Xi(o,i){return hd(o,null,null,i),bd(o)}function ES(o,i,f){o.lanes|=f;var p=o.alternate;p!==null&&(p.lanes|=f);for(var $=!1,O=o.return;O!==null;)O.childLanes|=f,p=O.alternate,p!==null&&(p.childLanes|=f),O.tag===22&&(o=O.stateNode,o===null||o._visibility&1||($=!0)),o=O,O=O.return;return o.tag===3?(O=o.stateNode,$&&i!==null&&($=31-Me(f),o=O.hiddenUpdates,p=o[$],p===null?o[$]=[i]:p.push(i),i.lane=f|536870912),O):null}function bd(o){if(50<Hc)throw Hc=0,ep=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Vl={};function yj(o,i,f,p){this.tag=o,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xa(o,i,f,p){return new yj(o,i,f,p)}function Ug(o){return o=o.prototype,!(!o||!o.isReactComponent)}function No(o,i){var f=o.alternate;return f===null?(f=xa(o.tag,i,o.key,o.mode),f.elementType=o.elementType,f.type=o.type,f.stateNode=o.stateNode,f.alternate=o,o.alternate=f):(f.pendingProps=i,f.type=o.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=o.flags&65011712,f.childLanes=o.childLanes,f.lanes=o.lanes,f.child=o.child,f.memoizedProps=o.memoizedProps,f.memoizedState=o.memoizedState,f.updateQueue=o.updateQueue,i=o.dependencies,f.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},f.sibling=o.sibling,f.index=o.index,f.ref=o.ref,f.refCleanup=o.refCleanup,f}function OS(o,i){o.flags&=65011714;var f=o.alternate;return f===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=f.childLanes,o.lanes=f.lanes,o.child=f.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=f.memoizedProps,o.memoizedState=f.memoizedState,o.updateQueue=f.updateQueue,o.type=f.type,i=f.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function yd(o,i,f,p,$,O){var F=0;if(p=o,typeof o=="function")Ug(o)&&(F=1);else if(typeof o=="string")F=w4(o,f,X.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case T:return o=xa(31,f,i,$),o.elementType=T,o.lanes=O,o;case C:return Yi(f.children,$,O,i);case S:F=8,$|=24;break;case x:return o=xa(12,f,i,$|2),o.elementType=x,o.lanes=O,o;case N:return o=xa(13,f,i,$),o.elementType=N,o.lanes=O,o;case I:return o=xa(19,f,i,$),o.elementType=I,o.lanes=O,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case E:F=10;break e;case w:F=9;break e;case R:F=11;break e;case M:F=14;break e;case j:F=16,p=null;break e}F=29,f=Error(r(130,o===null?"null":typeof o,"")),p=null}return i=xa(F,f,i,$),i.elementType=o,i.type=p,i.lanes=O,i}function Yi(o,i,f,p){return o=xa(7,o,p,i),o.lanes=f,o}function qg(o,i,f){return o=xa(6,o,null,i),o.lanes=f,o}function RS(o){var i=xa(18,null,null,0);return i.stateNode=o,i}function Gg(o,i,f){return i=xa(4,o.children!==null?o.children:[],o.key,i),i.lanes=f,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var NS=new WeakMap;function _a(o,i){if(typeof o=="object"&&o!==null){var f=NS.get(o);return f!==void 0?f:(i={value:o,source:i,stack:Ce(i)},NS.set(o,i),i)}return{value:o,source:i,stack:Ce(i)}}var Kl=[],Wl=0,Sd=null,yc=0,Da=[],Aa=0,ti=null,mo=1,go="";function To(o,i){Kl[Wl++]=yc,Kl[Wl++]=Sd,Sd=o,yc=i}function TS(o,i,f){Da[Aa++]=mo,Da[Aa++]=go,Da[Aa++]=ti,ti=o;var p=mo;o=go;var $=32-Me(p)-1;p&=~(1<<$),f+=1;var O=32-Me(i)+$;if(30<O){var F=$-$%5;O=(p&(1<<F)-1).toString(32),p>>=F,$-=F,mo=1<<32-Me(i)+$|f<<$|p,go=O+o}else mo=1<<O|f<<$|p,go=o}function Xg(o){o.return!==null&&(To(o,1),TS(o,1,0))}function Yg(o){for(;o===Sd;)Sd=Kl[--Wl],Kl[Wl]=null,yc=Kl[--Wl],Kl[Wl]=null;for(;o===ti;)ti=Da[--Aa],Da[Aa]=null,go=Da[--Aa],Da[Aa]=null,mo=Da[--Aa],Da[Aa]=null}function IS(o,i){Da[Aa++]=mo,Da[Aa++]=go,Da[Aa++]=ti,mo=i.id,go=i.overflow,ti=o}var Kr=null,Qn=null,bn=!1,ni=null,Ba=!1,Qg=Error(r(519));function ri(o){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sc(_a(i,o)),Qg}function MS(o){var i=o.stateNode,f=o.type,p=o.memoizedProps;switch(i[tt]=o,i[Ze]=p,f){case"dialog":gn("cancel",i),gn("close",i);break;case"iframe":case"object":case"embed":gn("load",i);break;case"video":case"audio":for(f=0;f<kc.length;f++)gn(kc[f],i);break;case"source":gn("error",i);break;case"img":case"image":case"link":gn("error",i),gn("load",i);break;case"details":gn("toggle",i);break;case"input":gn("invalid",i),yn(i,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":gn("invalid",i);break;case"textarea":gn("invalid",i),dr(i,p.value,p.defaultValue,p.children)}f=p.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||i.textContent===""+f||p.suppressHydrationWarning===!0||Gx(i.textContent,f)?(p.popover!=null&&(gn("beforetoggle",i),gn("toggle",i)),p.onScroll!=null&&gn("scroll",i),p.onScrollEnd!=null&&gn("scrollend",i),p.onClick!=null&&(i.onclick=On),i=!0):i=!1,i||ri(o,!0)}function jS(o){for(Kr=o.return;Kr;)switch(Kr.tag){case 5:case 31:case 13:Ba=!1;return;case 27:case 3:Ba=!0;return;default:Kr=Kr.return}}function Ul(o){if(o!==Kr)return!1;if(!bn)return jS(o),bn=!0,!1;var i=o.tag,f;if((f=i!==3&&i!==27)&&((f=i===5)&&(f=o.type,f=!(f!=="form"&&f!=="button")||vp(o.type,o.memoizedProps)),f=!f),f&&Qn&&ri(o),jS(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Qn=r1(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Qn=r1(o)}else i===27?(i=Qn,hi(o.type)?(o=Sp,Sp=null,Qn=o):Qn=i):Qn=Kr?Ha(o.stateNode.nextSibling):null;return!0}function Qi(){Qn=Kr=null,bn=!1}function Zg(){var o=ni;return o!==null&&(ga===null?ga=o:ga.push.apply(ga,o),ni=null),o}function Sc(o){ni===null?ni=[o]:ni.push(o)}var Jg=k(null),Zi=null,Io=null;function ai(o,i,f){W(Jg,i._currentValue),i._currentValue=f}function Mo(o){o._currentValue=Jg.current,U(Jg)}function ev(o,i,f){for(;o!==null;){var p=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,p!==null&&(p.childLanes|=i)):p!==null&&(p.childLanes&i)!==i&&(p.childLanes|=i),o===f)break;o=o.return}}function tv(o,i,f,p){var $=o.child;for($!==null&&($.return=o);$!==null;){var O=$.dependencies;if(O!==null){var F=$.child;O=O.firstContext;e:for(;O!==null;){var Y=O;O=$;for(var fe=0;fe<i.length;fe++)if(Y.context===i[fe]){O.lanes|=f,Y=O.alternate,Y!==null&&(Y.lanes|=f),ev(O.return,f,o),p||(F=null);break e}O=Y.next}}else if($.tag===18){if(F=$.return,F===null)throw Error(r(341));F.lanes|=f,O=F.alternate,O!==null&&(O.lanes|=f),ev(F,f,o),F=null}else F=$.child;if(F!==null)F.return=$;else for(F=$;F!==null;){if(F===o){F=null;break}if($=F.sibling,$!==null){$.return=F.return,F=$;break}F=F.return}$=F}}function ql(o,i,f,p){o=null;for(var $=i,O=!1;$!==null;){if(!O){if(($.flags&524288)!==0)O=!0;else if(($.flags&262144)!==0)break}if($.tag===10){var F=$.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var Y=$.type;Ca($.pendingProps.value,F.value)||(o!==null?o.push(Y):o=[Y])}}else if($===se.current){if(F=$.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==$.memoizedState.memoizedState&&(o!==null?o.push(qc):o=[qc])}$=$.return}o!==null&&tv(i,o,f,p),i.flags|=262144}function Cd(o){for(o=o.firstContext;o!==null;){if(!Ca(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ji(o){Zi=o,Io=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Wr(o){return PS(Zi,o)}function xd(o,i){return Zi===null&&Ji(o),PS(o,i)}function PS(o,i){var f=i._currentValue;if(i={context:i,memoizedValue:f,next:null},Io===null){if(o===null)throw Error(r(308));Io=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else Io=Io.next=i;return f}var Sj=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(f,p){o.push(p)}};this.abort=function(){i.aborted=!0,o.forEach(function(f){return f()})}},Cj=e.unstable_scheduleCallback,xj=e.unstable_NormalPriority,br={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nv(){return{controller:new Sj,data:new Map,refCount:0}}function Cc(o){o.refCount--,o.refCount===0&&Cj(xj,function(){o.controller.abort()})}var xc=null,rv=0,Gl=0,Xl=null;function $j(o,i){if(xc===null){var f=xc=[];rv=0,Gl=ip(),Xl={status:"pending",value:void 0,then:function(p){f.push(p)}}}return rv++,i.then(zS,zS),i}function zS(){if(--rv===0&&xc!==null){Xl!==null&&(Xl.status="fulfilled");var o=xc;xc=null,Gl=0,Xl=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function wj(o,i){var f=[],p={status:"pending",value:null,reason:null,then:function($){f.push($)}};return o.then(function(){p.status="fulfilled",p.value=i;for(var $=0;$<f.length;$++)(0,f[$])(i)},function($){for(p.status="rejected",p.reason=$,$=0;$<f.length;$++)(0,f[$])(void 0)}),p}var _S=P.S;P.S=function(o,i){bx=xe(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&$j(o,i),_S!==null&&_S(o,i)};var el=k(null);function av(){var o=el.current;return o!==null?o:Un.pooledCache}function $d(o,i){i===null?W(el,el.current):W(el,i.pool)}function DS(){var o=av();return o===null?null:{parent:br._currentValue,pool:o}}var Yl=Error(r(460)),ov=Error(r(474)),wd=Error(r(542)),Ed={then:function(){}};function AS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function BS(o,i,f){switch(f=o[f],f===void 0?o.push(i):f!==i&&(i.then(On,On),i=f),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,HS(o),o;default:if(typeof i.status=="string")i.then(On,On);else{if(o=Un,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(p){if(i.status==="pending"){var $=i;$.status="fulfilled",$.value=p}},function(p){if(i.status==="pending"){var $=i;$.status="rejected",$.reason=p}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,HS(o),o}throw nl=i,Yl}}function tl(o){try{var i=o._init;return i(o._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(nl=f,Yl):f}}var nl=null;function LS(){if(nl===null)throw Error(r(459));var o=nl;return nl=null,o}function HS(o){if(o===Yl||o===wd)throw Error(r(483))}var Ql=null,$c=0;function Od(o){var i=$c;return $c+=1,Ql===null&&(Ql=[]),BS(Ql,o,i)}function wc(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function Rd(o,i){throw i.$$typeof===h?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function FS(o){function i($e,he){if(o){var Re=$e.deletions;Re===null?($e.deletions=[he],$e.flags|=16):Re.push(he)}}function f($e,he){if(!o)return null;for(;he!==null;)i($e,he),he=he.sibling;return null}function p($e){for(var he=new Map;$e!==null;)$e.key!==null?he.set($e.key,$e):he.set($e.index,$e),$e=$e.sibling;return he}function $($e,he){return $e=No($e,he),$e.index=0,$e.sibling=null,$e}function O($e,he,Re){return $e.index=Re,o?(Re=$e.alternate,Re!==null?(Re=Re.index,Re<he?($e.flags|=67108866,he):Re):($e.flags|=67108866,he)):($e.flags|=1048576,he)}function F($e){return o&&$e.alternate===null&&($e.flags|=67108866),$e}function Y($e,he,Re,Ue){return he===null||he.tag!==6?(he=qg(Re,$e.mode,Ue),he.return=$e,he):(he=$(he,Re),he.return=$e,he)}function fe($e,he,Re,Ue){var Vt=Re.type;return Vt===C?Fe($e,he,Re.props.children,Ue,Re.key):he!==null&&(he.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===j&&tl(Vt)===he.type)?(he=$(he,Re.props),wc(he,Re),he.return=$e,he):(he=yd(Re.type,Re.key,Re.props,null,$e.mode,Ue),wc(he,Re),he.return=$e,he)}function Ne($e,he,Re,Ue){return he===null||he.tag!==4||he.stateNode.containerInfo!==Re.containerInfo||he.stateNode.implementation!==Re.implementation?(he=Gg(Re,$e.mode,Ue),he.return=$e,he):(he=$(he,Re.children||[]),he.return=$e,he)}function Fe($e,he,Re,Ue,Vt){return he===null||he.tag!==7?(he=Yi(Re,$e.mode,Ue,Vt),he.return=$e,he):(he=$(he,Re),he.return=$e,he)}function qe($e,he,Re){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return he=qg(""+he,$e.mode,Re),he.return=$e,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case b:return Re=yd(he.type,he.key,he.props,null,$e.mode,Re),wc(Re,he),Re.return=$e,Re;case y:return he=Gg(he,$e.mode,Re),he.return=$e,he;case j:return he=tl(he),qe($e,he,Re)}if(V(he)||D(he))return he=Yi(he,$e.mode,Re,null),he.return=$e,he;if(typeof he.then=="function")return qe($e,Od(he),Re);if(he.$$typeof===E)return qe($e,xd($e,he),Re);Rd($e,he)}return null}function Pe($e,he,Re,Ue){var Vt=he!==null?he.key:null;if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return Vt!==null?null:Y($e,he,""+Re,Ue);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case b:return Re.key===Vt?fe($e,he,Re,Ue):null;case y:return Re.key===Vt?Ne($e,he,Re,Ue):null;case j:return Re=tl(Re),Pe($e,he,Re,Ue)}if(V(Re)||D(Re))return Vt!==null?null:Fe($e,he,Re,Ue,null);if(typeof Re.then=="function")return Pe($e,he,Od(Re),Ue);if(Re.$$typeof===E)return Pe($e,he,xd($e,Re),Ue);Rd($e,Re)}return null}function Ae($e,he,Re,Ue,Vt){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint")return $e=$e.get(Re)||null,Y(he,$e,""+Ue,Vt);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case b:return $e=$e.get(Ue.key===null?Re:Ue.key)||null,fe(he,$e,Ue,Vt);case y:return $e=$e.get(Ue.key===null?Re:Ue.key)||null,Ne(he,$e,Ue,Vt);case j:return Ue=tl(Ue),Ae($e,he,Re,Ue,Vt)}if(V(Ue)||D(Ue))return $e=$e.get(Re)||null,Fe(he,$e,Ue,Vt,null);if(typeof Ue.then=="function")return Ae($e,he,Re,Od(Ue),Vt);if(Ue.$$typeof===E)return Ae($e,he,Re,xd(he,Ue),Vt);Rd(he,Ue)}return null}function jt($e,he,Re,Ue){for(var Vt=null,xn=null,_t=he,sn=he=0,pn=null;_t!==null&&sn<Re.length;sn++){_t.index>sn?(pn=_t,_t=null):pn=_t.sibling;var $n=Pe($e,_t,Re[sn],Ue);if($n===null){_t===null&&(_t=pn);break}o&&_t&&$n.alternate===null&&i($e,_t),he=O($n,he,sn),xn===null?Vt=$n:xn.sibling=$n,xn=$n,_t=pn}if(sn===Re.length)return f($e,_t),bn&&To($e,sn),Vt;if(_t===null){for(;sn<Re.length;sn++)_t=qe($e,Re[sn],Ue),_t!==null&&(he=O(_t,he,sn),xn===null?Vt=_t:xn.sibling=_t,xn=_t);return bn&&To($e,sn),Vt}for(_t=p(_t);sn<Re.length;sn++)pn=Ae(_t,$e,sn,Re[sn],Ue),pn!==null&&(o&&pn.alternate!==null&&_t.delete(pn.key===null?sn:pn.key),he=O(pn,he,sn),xn===null?Vt=pn:xn.sibling=pn,xn=pn);return o&&_t.forEach(function(xi){return i($e,xi)}),bn&&To($e,sn),Vt}function Ut($e,he,Re,Ue){if(Re==null)throw Error(r(151));for(var Vt=null,xn=null,_t=he,sn=he=0,pn=null,$n=Re.next();_t!==null&&!$n.done;sn++,$n=Re.next()){_t.index>sn?(pn=_t,_t=null):pn=_t.sibling;var xi=Pe($e,_t,$n.value,Ue);if(xi===null){_t===null&&(_t=pn);break}o&&_t&&xi.alternate===null&&i($e,_t),he=O(xi,he,sn),xn===null?Vt=xi:xn.sibling=xi,xn=xi,_t=pn}if($n.done)return f($e,_t),bn&&To($e,sn),Vt;if(_t===null){for(;!$n.done;sn++,$n=Re.next())$n=qe($e,$n.value,Ue),$n!==null&&(he=O($n,he,sn),xn===null?Vt=$n:xn.sibling=$n,xn=$n);return bn&&To($e,sn),Vt}for(_t=p(_t);!$n.done;sn++,$n=Re.next())$n=Ae(_t,$e,sn,$n.value,Ue),$n!==null&&(o&&$n.alternate!==null&&_t.delete($n.key===null?sn:$n.key),he=O($n,he,sn),xn===null?Vt=$n:xn.sibling=$n,xn=$n);return o&&_t.forEach(function(_4){return i($e,_4)}),bn&&To($e,sn),Vt}function Hn($e,he,Re,Ue){if(typeof Re=="object"&&Re!==null&&Re.type===C&&Re.key===null&&(Re=Re.props.children),typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case b:e:{for(var Vt=Re.key;he!==null;){if(he.key===Vt){if(Vt=Re.type,Vt===C){if(he.tag===7){f($e,he.sibling),Ue=$(he,Re.props.children),Ue.return=$e,$e=Ue;break e}}else if(he.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===j&&tl(Vt)===he.type){f($e,he.sibling),Ue=$(he,Re.props),wc(Ue,Re),Ue.return=$e,$e=Ue;break e}f($e,he);break}else i($e,he);he=he.sibling}Re.type===C?(Ue=Yi(Re.props.children,$e.mode,Ue,Re.key),Ue.return=$e,$e=Ue):(Ue=yd(Re.type,Re.key,Re.props,null,$e.mode,Ue),wc(Ue,Re),Ue.return=$e,$e=Ue)}return F($e);case y:e:{for(Vt=Re.key;he!==null;){if(he.key===Vt)if(he.tag===4&&he.stateNode.containerInfo===Re.containerInfo&&he.stateNode.implementation===Re.implementation){f($e,he.sibling),Ue=$(he,Re.children||[]),Ue.return=$e,$e=Ue;break e}else{f($e,he);break}else i($e,he);he=he.sibling}Ue=Gg(Re,$e.mode,Ue),Ue.return=$e,$e=Ue}return F($e);case j:return Re=tl(Re),Hn($e,he,Re,Ue)}if(V(Re))return jt($e,he,Re,Ue);if(D(Re)){if(Vt=D(Re),typeof Vt!="function")throw Error(r(150));return Re=Vt.call(Re),Ut($e,he,Re,Ue)}if(typeof Re.then=="function")return Hn($e,he,Od(Re),Ue);if(Re.$$typeof===E)return Hn($e,he,xd($e,Re),Ue);Rd($e,Re)}return typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint"?(Re=""+Re,he!==null&&he.tag===6?(f($e,he.sibling),Ue=$(he,Re),Ue.return=$e,$e=Ue):(f($e,he),Ue=qg(Re,$e.mode,Ue),Ue.return=$e,$e=Ue),F($e)):f($e,he)}return function($e,he,Re,Ue){try{$c=0;var Vt=Hn($e,he,Re,Ue);return Ql=null,Vt}catch(_t){if(_t===Yl||_t===wd)throw _t;var xn=xa(29,_t,null,$e.mode);return xn.lanes=Ue,xn.return=$e,xn}finally{}}}var rl=FS(!0),kS=FS(!1),oi=!1;function iv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lv(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function ii(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function li(o,i,f){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(Rn&2)!==0){var $=p.pending;return $===null?i.next=i:(i.next=$.next,$.next=i),p.pending=i,i=bd(o),ES(o,null,f),i}return hd(o,p,i,f),bd(o)}function Ec(o,i,f){if(i=i.updateQueue,i!==null&&(i=i.shared,(f&4194048)!==0)){var p=i.lanes;p&=o.pendingLanes,f|=p,i.lanes=f,ke(o,f)}}function sv(o,i){var f=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,f===p)){var $=null,O=null;if(f=f.firstBaseUpdate,f!==null){do{var F={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};O===null?$=O=F:O=O.next=F,f=f.next}while(f!==null);O===null?$=O=i:O=O.next=i}else $=O=i;f={baseState:p.baseState,firstBaseUpdate:$,lastBaseUpdate:O,shared:p.shared,callbacks:p.callbacks},o.updateQueue=f;return}o=f.lastBaseUpdate,o===null?f.firstBaseUpdate=i:o.next=i,f.lastBaseUpdate=i}var cv=!1;function Oc(){if(cv){var o=Xl;if(o!==null)throw o}}function Rc(o,i,f,p){cv=!1;var $=o.updateQueue;oi=!1;var O=$.firstBaseUpdate,F=$.lastBaseUpdate,Y=$.shared.pending;if(Y!==null){$.shared.pending=null;var fe=Y,Ne=fe.next;fe.next=null,F===null?O=Ne:F.next=Ne,F=fe;var Fe=o.alternate;Fe!==null&&(Fe=Fe.updateQueue,Y=Fe.lastBaseUpdate,Y!==F&&(Y===null?Fe.firstBaseUpdate=Ne:Y.next=Ne,Fe.lastBaseUpdate=fe))}if(O!==null){var qe=$.baseState;F=0,Fe=Ne=fe=null,Y=O;do{var Pe=Y.lane&-536870913,Ae=Pe!==Y.lane;if(Ae?(vn&Pe)===Pe:(p&Pe)===Pe){Pe!==0&&Pe===Gl&&(cv=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:Y.tag,payload:Y.payload,callback:null,next:null});e:{var jt=o,Ut=Y;Pe=i;var Hn=f;switch(Ut.tag){case 1:if(jt=Ut.payload,typeof jt=="function"){qe=jt.call(Hn,qe,Pe);break e}qe=jt;break e;case 3:jt.flags=jt.flags&-65537|128;case 0:if(jt=Ut.payload,Pe=typeof jt=="function"?jt.call(Hn,qe,Pe):jt,Pe==null)break e;qe=v({},qe,Pe);break e;case 2:oi=!0}}Pe=Y.callback,Pe!==null&&(o.flags|=64,Ae&&(o.flags|=8192),Ae=$.callbacks,Ae===null?$.callbacks=[Pe]:Ae.push(Pe))}else Ae={lane:Pe,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},Fe===null?(Ne=Fe=Ae,fe=qe):Fe=Fe.next=Ae,F|=Pe;if(Y=Y.next,Y===null){if(Y=$.shared.pending,Y===null)break;Ae=Y,Y=Ae.next,Ae.next=null,$.lastBaseUpdate=Ae,$.shared.pending=null}}while(!0);Fe===null&&(fe=qe),$.baseState=fe,$.firstBaseUpdate=Ne,$.lastBaseUpdate=Fe,O===null&&($.shared.lanes=0),fi|=F,o.lanes=F,o.memoizedState=qe}}function VS(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function KS(o,i){var f=o.callbacks;if(f!==null)for(o.callbacks=null,o=0;o<f.length;o++)VS(f[o],i)}var Zl=k(null),Nd=k(0);function WS(o,i){o=Ho,W(Nd,o),W(Zl,i),Ho=o|i.baseLanes}function uv(){W(Nd,Ho),W(Zl,Zl.current)}function dv(){Ho=Nd.current,U(Zl),U(Nd)}var $a=k(null),La=null;function si(o){var i=o.alternate;W(mr,mr.current&1),W($a,o),La===null&&(i===null||Zl.current!==null||i.memoizedState!==null)&&(La=o)}function fv(o){W(mr,mr.current),W($a,o),La===null&&(La=o)}function US(o){o.tag===22?(W(mr,mr.current),W($a,o),La===null&&(La=o)):ci()}function ci(){W(mr,mr.current),W($a,$a.current)}function wa(o){U($a),La===o&&(La=null),U(mr)}var mr=k(0);function Td(o){for(var i=o;i!==null;){if(i.tag===13){var f=i.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||bp(f)||yp(f)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var jo=0,an=null,Bn=null,yr=null,Id=!1,Jl=!1,al=!1,Md=0,Nc=0,es=null,Ej=0;function cr(){throw Error(r(321))}function mv(o,i){if(i===null)return!1;for(var f=0;f<i.length&&f<o.length;f++)if(!Ca(o[f],i[f]))return!1;return!0}function gv(o,i,f,p,$,O){return jo=O,an=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,P.H=o===null||o.memoizedState===null?TC:Tv,al=!1,O=f(p,$),al=!1,Jl&&(O=GS(i,f,p,$)),qS(o),O}function qS(o){P.H=Mc;var i=Bn!==null&&Bn.next!==null;if(jo=0,yr=Bn=an=null,Id=!1,Nc=0,es=null,i)throw Error(r(300));o===null||Sr||(o=o.dependencies,o!==null&&Cd(o)&&(Sr=!0))}function GS(o,i,f,p){an=o;var $=0;do{if(Jl&&(es=null),Nc=0,Jl=!1,25<=$)throw Error(r(301));if($+=1,yr=Bn=null,o.updateQueue!=null){var O=o.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}P.H=IC,O=i(f,p)}while(Jl);return O}function Oj(){var o=P.H,i=o.useState()[0];return i=typeof i.then=="function"?Tc(i):i,o=o.useState()[0],(Bn!==null?Bn.memoizedState:null)!==o&&(an.flags|=1024),i}function vv(){var o=Md!==0;return Md=0,o}function pv(o,i,f){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~f}function hv(o){if(Id){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Id=!1}jo=0,yr=Bn=an=null,Jl=!1,Nc=Md=0,es=null}function la(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yr===null?an.memoizedState=yr=o:yr=yr.next=o,yr}function gr(){if(Bn===null){var o=an.alternate;o=o!==null?o.memoizedState:null}else o=Bn.next;var i=yr===null?an.memoizedState:yr.next;if(i!==null)yr=i,Bn=o;else{if(o===null)throw an.alternate===null?Error(r(467)):Error(r(310));Bn=o,o={memoizedState:Bn.memoizedState,baseState:Bn.baseState,baseQueue:Bn.baseQueue,queue:Bn.queue,next:null},yr===null?an.memoizedState=yr=o:yr=yr.next=o}return yr}function jd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tc(o){var i=Nc;return Nc+=1,es===null&&(es=[]),o=BS(es,o,i),i=an,(yr===null?i.memoizedState:yr.next)===null&&(i=i.alternate,P.H=i===null||i.memoizedState===null?TC:Tv),o}function Pd(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Tc(o);if(o.$$typeof===E)return Wr(o)}throw Error(r(438,String(o)))}function bv(o){var i=null,f=an.updateQueue;if(f!==null&&(i=f.memoCache),i==null){var p=an.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(i={data:p.data.map(function($){return $.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),f===null&&(f=jd(),an.updateQueue=f),f.memoCache=i,f=i.data[i.index],f===void 0)for(f=i.data[i.index]=Array(o),p=0;p<o;p++)f[p]=z;return i.index++,f}function Po(o,i){return typeof i=="function"?i(o):i}function zd(o){var i=gr();return yv(i,Bn,o)}function yv(o,i,f){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=f;var $=o.baseQueue,O=p.pending;if(O!==null){if($!==null){var F=$.next;$.next=O.next,O.next=F}i.baseQueue=$=O,p.pending=null}if(O=o.baseState,$===null)o.memoizedState=O;else{i=$.next;var Y=F=null,fe=null,Ne=i,Fe=!1;do{var qe=Ne.lane&-536870913;if(qe!==Ne.lane?(vn&qe)===qe:(jo&qe)===qe){var Pe=Ne.revertLane;if(Pe===0)fe!==null&&(fe=fe.next={lane:0,revertLane:0,gesture:null,action:Ne.action,hasEagerState:Ne.hasEagerState,eagerState:Ne.eagerState,next:null}),qe===Gl&&(Fe=!0);else if((jo&Pe)===Pe){Ne=Ne.next,Pe===Gl&&(Fe=!0);continue}else qe={lane:0,revertLane:Ne.revertLane,gesture:null,action:Ne.action,hasEagerState:Ne.hasEagerState,eagerState:Ne.eagerState,next:null},fe===null?(Y=fe=qe,F=O):fe=fe.next=qe,an.lanes|=Pe,fi|=Pe;qe=Ne.action,al&&f(O,qe),O=Ne.hasEagerState?Ne.eagerState:f(O,qe)}else Pe={lane:qe,revertLane:Ne.revertLane,gesture:Ne.gesture,action:Ne.action,hasEagerState:Ne.hasEagerState,eagerState:Ne.eagerState,next:null},fe===null?(Y=fe=Pe,F=O):fe=fe.next=Pe,an.lanes|=qe,fi|=qe;Ne=Ne.next}while(Ne!==null&&Ne!==i);if(fe===null?F=O:fe.next=Y,!Ca(O,o.memoizedState)&&(Sr=!0,Fe&&(f=Xl,f!==null)))throw f;o.memoizedState=O,o.baseState=F,o.baseQueue=fe,p.lastRenderedState=O}return $===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function Sv(o){var i=gr(),f=i.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=o;var p=f.dispatch,$=f.pending,O=i.memoizedState;if($!==null){f.pending=null;var F=$=$.next;do O=o(O,F.action),F=F.next;while(F!==$);Ca(O,i.memoizedState)||(Sr=!0),i.memoizedState=O,i.baseQueue===null&&(i.baseState=O),f.lastRenderedState=O}return[O,p]}function XS(o,i,f){var p=an,$=gr(),O=bn;if(O){if(f===void 0)throw Error(r(407));f=f()}else f=i();var F=!Ca((Bn||$).memoizedState,f);if(F&&($.memoizedState=f,Sr=!0),$=$.queue,$v(ZS.bind(null,p,$,o),[o]),$.getSnapshot!==i||F||yr!==null&&yr.memoizedState.tag&1){if(p.flags|=2048,ts(9,{destroy:void 0},QS.bind(null,p,$,f,i),null),Un===null)throw Error(r(349));O||(jo&127)!==0||YS(p,i,f)}return f}function YS(o,i,f){o.flags|=16384,o={getSnapshot:i,value:f},i=an.updateQueue,i===null?(i=jd(),an.updateQueue=i,i.stores=[o]):(f=i.stores,f===null?i.stores=[o]:f.push(o))}function QS(o,i,f,p){i.value=f,i.getSnapshot=p,JS(i)&&eC(o)}function ZS(o,i,f){return f(function(){JS(i)&&eC(o)})}function JS(o){var i=o.getSnapshot;o=o.value;try{var f=i();return!Ca(o,f)}catch{return!0}}function eC(o){var i=Xi(o,2);i!==null&&va(i,o,2)}function Cv(o){var i=la();if(typeof o=="function"){var f=o;if(o=f(),al){Ge(!0);try{f()}finally{Ge(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:o},i}function tC(o,i,f,p){return o.baseState=f,yv(o,Bn,typeof p=="function"?p:Po)}function Rj(o,i,f,p,$){if(Ad(o))throw Error(r(485));if(o=i.action,o!==null){var O={payload:$,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){O.listeners.push(F)}};P.T!==null?f(!0):O.isTransition=!1,p(O),f=i.pending,f===null?(O.next=i.pending=O,nC(i,O)):(O.next=f.next,i.pending=f.next=O)}}function nC(o,i){var f=i.action,p=i.payload,$=o.state;if(i.isTransition){var O=P.T,F={};P.T=F;try{var Y=f($,p),fe=P.S;fe!==null&&fe(F,Y),rC(o,i,Y)}catch(Ne){xv(o,i,Ne)}finally{O!==null&&F.types!==null&&(O.types=F.types),P.T=O}}else try{O=f($,p),rC(o,i,O)}catch(Ne){xv(o,i,Ne)}}function rC(o,i,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(p){aC(o,i,p)},function(p){return xv(o,i,p)}):aC(o,i,f)}function aC(o,i,f){i.status="fulfilled",i.value=f,oC(i),o.state=f,i=o.pending,i!==null&&(f=i.next,f===i?o.pending=null:(f=f.next,i.next=f,nC(o,f)))}function xv(o,i,f){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do i.status="rejected",i.reason=f,oC(i),i=i.next;while(i!==p)}o.action=null}function oC(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function iC(o,i){return i}function lC(o,i){if(bn){var f=Un.formState;if(f!==null){e:{var p=an;if(bn){if(Qn){t:{for(var $=Qn,O=Ba;$.nodeType!==8;){if(!O){$=null;break t}if($=Ha($.nextSibling),$===null){$=null;break t}}O=$.data,$=O==="F!"||O==="F"?$:null}if($){Qn=Ha($.nextSibling),p=$.data==="F!";break e}}ri(p)}p=!1}p&&(i=f[0])}}return f=la(),f.memoizedState=f.baseState=i,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iC,lastRenderedState:i},f.queue=p,f=OC.bind(null,an,p),p.dispatch=f,p=Cv(!1),O=Nv.bind(null,an,!1,p.queue),p=la(),$={state:i,dispatch:null,action:o,pending:null},p.queue=$,f=Rj.bind(null,an,$,O,f),$.dispatch=f,p.memoizedState=o,[i,f,!1]}function sC(o){var i=gr();return cC(i,Bn,o)}function cC(o,i,f){if(i=yv(o,i,iC)[0],o=zd(Po)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var p=Tc(i)}catch(F){throw F===Yl?wd:F}else p=i;i=gr();var $=i.queue,O=$.dispatch;return f!==i.memoizedState&&(an.flags|=2048,ts(9,{destroy:void 0},Nj.bind(null,$,f),null)),[p,O,o]}function Nj(o,i){o.action=i}function uC(o){var i=gr(),f=Bn;if(f!==null)return cC(i,f,o);gr(),i=i.memoizedState,f=gr();var p=f.queue.dispatch;return f.memoizedState=o,[i,p,!1]}function ts(o,i,f,p){return o={tag:o,create:f,deps:p,inst:i,next:null},i=an.updateQueue,i===null&&(i=jd(),an.updateQueue=i),f=i.lastEffect,f===null?i.lastEffect=o.next=o:(p=f.next,f.next=o,o.next=p,i.lastEffect=o),o}function dC(){return gr().memoizedState}function _d(o,i,f,p){var $=la();an.flags|=o,$.memoizedState=ts(1|i,{destroy:void 0},f,p===void 0?null:p)}function Dd(o,i,f,p){var $=gr();p=p===void 0?null:p;var O=$.memoizedState.inst;Bn!==null&&p!==null&&mv(p,Bn.memoizedState.deps)?$.memoizedState=ts(i,O,f,p):(an.flags|=o,$.memoizedState=ts(1|i,O,f,p))}function fC(o,i){_d(8390656,8,o,i)}function $v(o,i){Dd(2048,8,o,i)}function Tj(o){an.flags|=4;var i=an.updateQueue;if(i===null)i=jd(),an.updateQueue=i,i.events=[o];else{var f=i.events;f===null?i.events=[o]:f.push(o)}}function mC(o){var i=gr().memoizedState;return Tj({ref:i,nextImpl:o}),function(){if((Rn&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function gC(o,i){return Dd(4,2,o,i)}function vC(o,i){return Dd(4,4,o,i)}function pC(o,i){if(typeof i=="function"){o=o();var f=i(o);return function(){typeof f=="function"?f():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function hC(o,i,f){f=f!=null?f.concat([o]):null,Dd(4,4,pC.bind(null,i,o),f)}function wv(){}function bC(o,i){var f=gr();i=i===void 0?null:i;var p=f.memoizedState;return i!==null&&mv(i,p[1])?p[0]:(f.memoizedState=[o,i],o)}function yC(o,i){var f=gr();i=i===void 0?null:i;var p=f.memoizedState;if(i!==null&&mv(i,p[1]))return p[0];if(p=o(),al){Ge(!0);try{o()}finally{Ge(!1)}}return f.memoizedState=[p,i],p}function Ev(o,i,f){return f===void 0||(jo&1073741824)!==0&&(vn&261930)===0?o.memoizedState=i:(o.memoizedState=f,o=Sx(),an.lanes|=o,fi|=o,f)}function SC(o,i,f,p){return Ca(f,i)?f:Zl.current!==null?(o=Ev(o,f,p),Ca(o,i)||(Sr=!0),o):(jo&42)===0||(jo&1073741824)!==0&&(vn&261930)===0?(Sr=!0,o.memoizedState=f):(o=Sx(),an.lanes|=o,fi|=o,i)}function CC(o,i,f,p,$){var O=B.p;B.p=O!==0&&8>O?O:8;var F=P.T,Y={};P.T=Y,Nv(o,!1,i,f);try{var fe=$(),Ne=P.S;if(Ne!==null&&Ne(Y,fe),fe!==null&&typeof fe=="object"&&typeof fe.then=="function"){var Fe=wj(fe,p);Ic(o,i,Fe,Ra(o))}else Ic(o,i,p,Ra(o))}catch(qe){Ic(o,i,{then:function(){},status:"rejected",reason:qe},Ra())}finally{B.p=O,F!==null&&Y.types!==null&&(F.types=Y.types),P.T=F}}function Ij(){}function Ov(o,i,f,p){if(o.tag!==5)throw Error(r(476));var $=xC(o).queue;CC(o,$,i,K,f===null?Ij:function(){return $C(o),f(p)})}function xC(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:K},next:null};var f={};return i.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:f},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function $C(o){var i=xC(o);i.next===null&&(i=o.alternate.memoizedState),Ic(o,i.next.queue,{},Ra())}function Rv(){return Wr(qc)}function wC(){return gr().memoizedState}function EC(){return gr().memoizedState}function Mj(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var f=Ra();o=ii(f);var p=li(i,o,f);p!==null&&(va(p,i,f),Ec(p,i,f)),i={cache:nv()},o.payload=i;return}i=i.return}}function jj(o,i,f){var p=Ra();f={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Ad(o)?RC(i,f):(f=Wg(o,i,f,p),f!==null&&(va(f,o,p),NC(f,i,p)))}function OC(o,i,f){var p=Ra();Ic(o,i,f,p)}function Ic(o,i,f,p){var $={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(Ad(o))RC(i,$);else{var O=o.alternate;if(o.lanes===0&&(O===null||O.lanes===0)&&(O=i.lastRenderedReducer,O!==null))try{var F=i.lastRenderedState,Y=O(F,f);if($.hasEagerState=!0,$.eagerState=Y,Ca(Y,F))return hd(o,i,$,0),Un===null&&pd(),!1}catch{}finally{}if(f=Wg(o,i,$,p),f!==null)return va(f,o,p),NC(f,i,p),!0}return!1}function Nv(o,i,f,p){if(p={lane:2,revertLane:ip(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Ad(o)){if(i)throw Error(r(479))}else i=Wg(o,f,p,2),i!==null&&va(i,o,2)}function Ad(o){var i=o.alternate;return o===an||i!==null&&i===an}function RC(o,i){Jl=Id=!0;var f=o.pending;f===null?i.next=i:(i.next=f.next,f.next=i),o.pending=i}function NC(o,i,f){if((f&4194048)!==0){var p=i.lanes;p&=o.pendingLanes,f|=p,i.lanes=f,ke(o,f)}}var Mc={readContext:Wr,use:Pd,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useLayoutEffect:cr,useInsertionEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useSyncExternalStore:cr,useId:cr,useHostTransitionStatus:cr,useFormState:cr,useActionState:cr,useOptimistic:cr,useMemoCache:cr,useCacheRefresh:cr};Mc.useEffectEvent=cr;var TC={readContext:Wr,use:Pd,useCallback:function(o,i){return la().memoizedState=[o,i===void 0?null:i],o},useContext:Wr,useEffect:fC,useImperativeHandle:function(o,i,f){f=f!=null?f.concat([o]):null,_d(4194308,4,pC.bind(null,i,o),f)},useLayoutEffect:function(o,i){return _d(4194308,4,o,i)},useInsertionEffect:function(o,i){_d(4,2,o,i)},useMemo:function(o,i){var f=la();i=i===void 0?null:i;var p=o();if(al){Ge(!0);try{o()}finally{Ge(!1)}}return f.memoizedState=[p,i],p},useReducer:function(o,i,f){var p=la();if(f!==void 0){var $=f(i);if(al){Ge(!0);try{f(i)}finally{Ge(!1)}}}else $=i;return p.memoizedState=p.baseState=$,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:$},p.queue=o,o=o.dispatch=jj.bind(null,an,o),[p.memoizedState,o]},useRef:function(o){var i=la();return o={current:o},i.memoizedState=o},useState:function(o){o=Cv(o);var i=o.queue,f=OC.bind(null,an,i);return i.dispatch=f,[o.memoizedState,f]},useDebugValue:wv,useDeferredValue:function(o,i){var f=la();return Ev(f,o,i)},useTransition:function(){var o=Cv(!1);return o=CC.bind(null,an,o.queue,!0,!1),la().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,f){var p=an,$=la();if(bn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=i(),Un===null)throw Error(r(349));(vn&127)!==0||YS(p,i,f)}$.memoizedState=f;var O={value:f,getSnapshot:i};return $.queue=O,fC(ZS.bind(null,p,O,o),[o]),p.flags|=2048,ts(9,{destroy:void 0},QS.bind(null,p,O,f,i),null),f},useId:function(){var o=la(),i=Un.identifierPrefix;if(bn){var f=go,p=mo;f=(p&~(1<<32-Me(p)-1)).toString(32)+f,i="_"+i+"R_"+f,f=Md++,0<f&&(i+="H"+f.toString(32)),i+="_"}else f=Ej++,i="_"+i+"r_"+f.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:Rv,useFormState:lC,useActionState:lC,useOptimistic:function(o){var i=la();i.memoizedState=i.baseState=o;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=f,i=Nv.bind(null,an,!0,f),f.dispatch=i,[o,i]},useMemoCache:bv,useCacheRefresh:function(){return la().memoizedState=Mj.bind(null,an)},useEffectEvent:function(o){var i=la(),f={impl:o};return i.memoizedState=f,function(){if((Rn&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}},Tv={readContext:Wr,use:Pd,useCallback:bC,useContext:Wr,useEffect:$v,useImperativeHandle:hC,useInsertionEffect:gC,useLayoutEffect:vC,useMemo:yC,useReducer:zd,useRef:dC,useState:function(){return zd(Po)},useDebugValue:wv,useDeferredValue:function(o,i){var f=gr();return SC(f,Bn.memoizedState,o,i)},useTransition:function(){var o=zd(Po)[0],i=gr().memoizedState;return[typeof o=="boolean"?o:Tc(o),i]},useSyncExternalStore:XS,useId:wC,useHostTransitionStatus:Rv,useFormState:sC,useActionState:sC,useOptimistic:function(o,i){var f=gr();return tC(f,Bn,o,i)},useMemoCache:bv,useCacheRefresh:EC};Tv.useEffectEvent=mC;var IC={readContext:Wr,use:Pd,useCallback:bC,useContext:Wr,useEffect:$v,useImperativeHandle:hC,useInsertionEffect:gC,useLayoutEffect:vC,useMemo:yC,useReducer:Sv,useRef:dC,useState:function(){return Sv(Po)},useDebugValue:wv,useDeferredValue:function(o,i){var f=gr();return Bn===null?Ev(f,o,i):SC(f,Bn.memoizedState,o,i)},useTransition:function(){var o=Sv(Po)[0],i=gr().memoizedState;return[typeof o=="boolean"?o:Tc(o),i]},useSyncExternalStore:XS,useId:wC,useHostTransitionStatus:Rv,useFormState:uC,useActionState:uC,useOptimistic:function(o,i){var f=gr();return Bn!==null?tC(f,Bn,o,i):(f.baseState=o,[o,f.queue.dispatch])},useMemoCache:bv,useCacheRefresh:EC};IC.useEffectEvent=mC;function Iv(o,i,f,p){i=o.memoizedState,f=f(p,i),f=f==null?i:v({},i,f),o.memoizedState=f,o.lanes===0&&(o.updateQueue.baseState=f)}var Mv={enqueueSetState:function(o,i,f){o=o._reactInternals;var p=Ra(),$=ii(p);$.payload=i,f!=null&&($.callback=f),i=li(o,$,p),i!==null&&(va(i,o,p),Ec(i,o,p))},enqueueReplaceState:function(o,i,f){o=o._reactInternals;var p=Ra(),$=ii(p);$.tag=1,$.payload=i,f!=null&&($.callback=f),i=li(o,$,p),i!==null&&(va(i,o,p),Ec(i,o,p))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var f=Ra(),p=ii(f);p.tag=2,i!=null&&(p.callback=i),i=li(o,p,f),i!==null&&(va(i,o,f),Ec(i,o,f))}};function MC(o,i,f,p,$,O,F){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,O,F):i.prototype&&i.prototype.isPureReactComponent?!hc(f,p)||!hc($,O):!0}function jC(o,i,f,p){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(f,p),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(f,p),i.state!==o&&Mv.enqueueReplaceState(i,i.state,null)}function ol(o,i){var f=i;if("ref"in i){f={};for(var p in i)p!=="ref"&&(f[p]=i[p])}if(o=o.defaultProps){f===i&&(f=v({},f));for(var $ in o)f[$]===void 0&&(f[$]=o[$])}return f}function PC(o){vd(o)}function zC(o){console.error(o)}function _C(o){vd(o)}function Bd(o,i){try{var f=o.onUncaughtError;f(i.value,{componentStack:i.stack})}catch(p){setTimeout(function(){throw p})}}function DC(o,i,f){try{var p=o.onCaughtError;p(f.value,{componentStack:f.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch($){setTimeout(function(){throw $})}}function jv(o,i,f){return f=ii(f),f.tag=3,f.payload={element:null},f.callback=function(){Bd(o,i)},f}function AC(o){return o=ii(o),o.tag=3,o}function BC(o,i,f,p){var $=f.type.getDerivedStateFromError;if(typeof $=="function"){var O=p.value;o.payload=function(){return $(O)},o.callback=function(){DC(i,f,p)}}var F=f.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(o.callback=function(){DC(i,f,p),typeof $!="function"&&(mi===null?mi=new Set([this]):mi.add(this));var Y=p.stack;this.componentDidCatch(p.value,{componentStack:Y!==null?Y:""})})}function Pj(o,i,f,p,$){if(f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(i=f.alternate,i!==null&&ql(i,f,$,!0),f=$a.current,f!==null){switch(f.tag){case 31:case 13:return La===null?Yd():f.alternate===null&&ur===0&&(ur=3),f.flags&=-257,f.flags|=65536,f.lanes=$,p===Ed?f.flags|=16384:(i=f.updateQueue,i===null?f.updateQueue=new Set([p]):i.add(p),rp(o,p,$)),!1;case 22:return f.flags|=65536,p===Ed?f.flags|=16384:(i=f.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([p])},f.updateQueue=i):(f=i.retryQueue,f===null?i.retryQueue=new Set([p]):f.add(p)),rp(o,p,$)),!1}throw Error(r(435,f.tag))}return rp(o,p,$),Yd(),!1}if(bn)return i=$a.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=$,p!==Qg&&(o=Error(r(422),{cause:p}),Sc(_a(o,f)))):(p!==Qg&&(i=Error(r(423),{cause:p}),Sc(_a(i,f))),o=o.current.alternate,o.flags|=65536,$&=-$,o.lanes|=$,p=_a(p,f),$=jv(o.stateNode,p,$),sv(o,$),ur!==4&&(ur=2)),!1;var O=Error(r(520),{cause:p});if(O=_a(O,f),Lc===null?Lc=[O]:Lc.push(O),ur!==4&&(ur=2),i===null)return!0;p=_a(p,f),f=i;do{switch(f.tag){case 3:return f.flags|=65536,o=$&-$,f.lanes|=o,o=jv(f.stateNode,p,o),sv(f,o),!1;case 1:if(i=f.type,O=f.stateNode,(f.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(mi===null||!mi.has(O))))return f.flags|=65536,$&=-$,f.lanes|=$,$=AC($),BC($,o,f,p),sv(f,$),!1}f=f.return}while(f!==null);return!1}var Pv=Error(r(461)),Sr=!1;function Ur(o,i,f,p){i.child=o===null?kS(i,null,f,p):rl(i,o.child,f,p)}function LC(o,i,f,p,$){f=f.render;var O=i.ref;if("ref"in p){var F={};for(var Y in p)Y!=="ref"&&(F[Y]=p[Y])}else F=p;return Ji(i),p=gv(o,i,f,F,O,$),Y=vv(),o!==null&&!Sr?(pv(o,i,$),zo(o,i,$)):(bn&&Y&&Xg(i),i.flags|=1,Ur(o,i,p,$),i.child)}function HC(o,i,f,p,$){if(o===null){var O=f.type;return typeof O=="function"&&!Ug(O)&&O.defaultProps===void 0&&f.compare===null?(i.tag=15,i.type=O,FC(o,i,O,p,$)):(o=yd(f.type,null,p,i,i.mode,$),o.ref=i.ref,o.return=i,i.child=o)}if(O=o.child,!Fv(o,$)){var F=O.memoizedProps;if(f=f.compare,f=f!==null?f:hc,f(F,p)&&o.ref===i.ref)return zo(o,i,$)}return i.flags|=1,o=No(O,p),o.ref=i.ref,o.return=i,i.child=o}function FC(o,i,f,p,$){if(o!==null){var O=o.memoizedProps;if(hc(O,p)&&o.ref===i.ref)if(Sr=!1,i.pendingProps=p=O,Fv(o,$))(o.flags&131072)!==0&&(Sr=!0);else return i.lanes=o.lanes,zo(o,i,$)}return zv(o,i,f,p,$)}function kC(o,i,f,p){var $=p.children,O=o!==null?o.memoizedState:null;if(o===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((i.flags&128)!==0){if(O=O!==null?O.baseLanes|f:f,o!==null){for(p=i.child=o.child,$=0;p!==null;)$=$|p.lanes|p.childLanes,p=p.sibling;p=$&~O}else p=0,i.child=null;return VC(o,i,O,f,p)}if((f&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&$d(i,O!==null?O.cachePool:null),O!==null?WS(i,O):uv(),US(i);else return p=i.lanes=536870912,VC(o,i,O!==null?O.baseLanes|f:f,f,p)}else O!==null?($d(i,O.cachePool),WS(i,O),ci(),i.memoizedState=null):(o!==null&&$d(i,null),uv(),ci());return Ur(o,i,$,f),i.child}function jc(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function VC(o,i,f,p,$){var O=av();return O=O===null?null:{parent:br._currentValue,pool:O},i.memoizedState={baseLanes:f,cachePool:O},o!==null&&$d(i,null),uv(),US(i),o!==null&&ql(o,i,p,!0),i.childLanes=$,null}function Ld(o,i){return i=Fd({mode:i.mode,children:i.children},o.mode),i.ref=o.ref,o.child=i,i.return=o,i}function KC(o,i,f){return rl(i,o.child,null,f),o=Ld(i,i.pendingProps),o.flags|=2,wa(i),i.memoizedState=null,o}function zj(o,i,f){var p=i.pendingProps,$=(i.flags&128)!==0;if(i.flags&=-129,o===null){if(bn){if(p.mode==="hidden")return o=Ld(i,p),i.lanes=536870912,jc(null,o);if(fv(i),(o=Qn)?(o=n1(o,Ba),o=o!==null&&o.data==="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:ti!==null?{id:mo,overflow:go}:null,retryLane:536870912,hydrationErrors:null},f=RS(o),f.return=i,i.child=f,Kr=i,Qn=null)):o=null,o===null)throw ri(i);return i.lanes=536870912,null}return Ld(i,p)}var O=o.memoizedState;if(O!==null){var F=O.dehydrated;if(fv(i),$)if(i.flags&256)i.flags&=-257,i=KC(o,i,f);else if(i.memoizedState!==null)i.child=o.child,i.flags|=128,i=null;else throw Error(r(558));else if(Sr||ql(o,i,f,!1),$=(f&o.childLanes)!==0,Sr||$){if(p=Un,p!==null&&(F=He(p,f),F!==0&&F!==O.retryLane))throw O.retryLane=F,Xi(o,F),va(p,o,F),Pv;Yd(),i=KC(o,i,f)}else o=O.treeContext,Qn=Ha(F.nextSibling),Kr=i,bn=!0,ni=null,Ba=!1,o!==null&&IS(i,o),i=Ld(i,p),i.flags|=4096;return i}return o=No(o.child,{mode:p.mode,children:p.children}),o.ref=i.ref,i.child=o,o.return=i,o}function Hd(o,i){var f=i.ref;if(f===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(o===null||o.ref!==f)&&(i.flags|=4194816)}}function zv(o,i,f,p,$){return Ji(i),f=gv(o,i,f,p,void 0,$),p=vv(),o!==null&&!Sr?(pv(o,i,$),zo(o,i,$)):(bn&&p&&Xg(i),i.flags|=1,Ur(o,i,f,$),i.child)}function WC(o,i,f,p,$,O){return Ji(i),i.updateQueue=null,f=GS(i,p,f,$),qS(o),p=vv(),o!==null&&!Sr?(pv(o,i,O),zo(o,i,O)):(bn&&p&&Xg(i),i.flags|=1,Ur(o,i,f,O),i.child)}function UC(o,i,f,p,$){if(Ji(i),i.stateNode===null){var O=Vl,F=f.contextType;typeof F=="object"&&F!==null&&(O=Wr(F)),O=new f(p,O),i.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Mv,i.stateNode=O,O._reactInternals=i,O=i.stateNode,O.props=p,O.state=i.memoizedState,O.refs={},iv(i),F=f.contextType,O.context=typeof F=="object"&&F!==null?Wr(F):Vl,O.state=i.memoizedState,F=f.getDerivedStateFromProps,typeof F=="function"&&(Iv(i,f,F,p),O.state=i.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(F=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),F!==O.state&&Mv.enqueueReplaceState(O,O.state,null),Rc(i,p,O,$),Oc(),O.state=i.memoizedState),typeof O.componentDidMount=="function"&&(i.flags|=4194308),p=!0}else if(o===null){O=i.stateNode;var Y=i.memoizedProps,fe=ol(f,Y);O.props=fe;var Ne=O.context,Fe=f.contextType;F=Vl,typeof Fe=="object"&&Fe!==null&&(F=Wr(Fe));var qe=f.getDerivedStateFromProps;Fe=typeof qe=="function"||typeof O.getSnapshotBeforeUpdate=="function",Y=i.pendingProps!==Y,Fe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(Y||Ne!==F)&&jC(i,O,p,F),oi=!1;var Pe=i.memoizedState;O.state=Pe,Rc(i,p,O,$),Oc(),Ne=i.memoizedState,Y||Pe!==Ne||oi?(typeof qe=="function"&&(Iv(i,f,qe,p),Ne=i.memoizedState),(fe=oi||MC(i,f,fe,p,Pe,Ne,F))?(Fe||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(i.flags|=4194308)):(typeof O.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=p,i.memoizedState=Ne),O.props=p,O.state=Ne,O.context=F,p=fe):(typeof O.componentDidMount=="function"&&(i.flags|=4194308),p=!1)}else{O=i.stateNode,lv(o,i),F=i.memoizedProps,Fe=ol(f,F),O.props=Fe,qe=i.pendingProps,Pe=O.context,Ne=f.contextType,fe=Vl,typeof Ne=="object"&&Ne!==null&&(fe=Wr(Ne)),Y=f.getDerivedStateFromProps,(Ne=typeof Y=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(F!==qe||Pe!==fe)&&jC(i,O,p,fe),oi=!1,Pe=i.memoizedState,O.state=Pe,Rc(i,p,O,$),Oc();var Ae=i.memoizedState;F!==qe||Pe!==Ae||oi||o!==null&&o.dependencies!==null&&Cd(o.dependencies)?(typeof Y=="function"&&(Iv(i,f,Y,p),Ae=i.memoizedState),(Fe=oi||MC(i,f,Fe,p,Pe,Ae,fe)||o!==null&&o.dependencies!==null&&Cd(o.dependencies))?(Ne||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(p,Ae,fe),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(p,Ae,fe)),typeof O.componentDidUpdate=="function"&&(i.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof O.componentDidUpdate!="function"||F===o.memoizedProps&&Pe===o.memoizedState||(i.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||F===o.memoizedProps&&Pe===o.memoizedState||(i.flags|=1024),i.memoizedProps=p,i.memoizedState=Ae),O.props=p,O.state=Ae,O.context=fe,p=Fe):(typeof O.componentDidUpdate!="function"||F===o.memoizedProps&&Pe===o.memoizedState||(i.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||F===o.memoizedProps&&Pe===o.memoizedState||(i.flags|=1024),p=!1)}return O=p,Hd(o,i),p=(i.flags&128)!==0,O||p?(O=i.stateNode,f=p&&typeof f.getDerivedStateFromError!="function"?null:O.render(),i.flags|=1,o!==null&&p?(i.child=rl(i,o.child,null,$),i.child=rl(i,null,f,$)):Ur(o,i,f,$),i.memoizedState=O.state,o=i.child):o=zo(o,i,$),o}function qC(o,i,f,p){return Qi(),i.flags|=256,Ur(o,i,f,p),i.child}var _v={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dv(o){return{baseLanes:o,cachePool:DS()}}function Av(o,i,f){return o=o!==null?o.childLanes&~f:0,i&&(o|=Oa),o}function GC(o,i,f){var p=i.pendingProps,$=!1,O=(i.flags&128)!==0,F;if((F=O)||(F=o!==null&&o.memoizedState===null?!1:(mr.current&2)!==0),F&&($=!0,i.flags&=-129),F=(i.flags&32)!==0,i.flags&=-33,o===null){if(bn){if($?si(i):ci(),(o=Qn)?(o=n1(o,Ba),o=o!==null&&o.data!=="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:ti!==null?{id:mo,overflow:go}:null,retryLane:536870912,hydrationErrors:null},f=RS(o),f.return=i,i.child=f,Kr=i,Qn=null)):o=null,o===null)throw ri(i);return yp(o)?i.lanes=32:i.lanes=536870912,null}var Y=p.children;return p=p.fallback,$?(ci(),$=i.mode,Y=Fd({mode:"hidden",children:Y},$),p=Yi(p,$,f,null),Y.return=i,p.return=i,Y.sibling=p,i.child=Y,p=i.child,p.memoizedState=Dv(f),p.childLanes=Av(o,F,f),i.memoizedState=_v,jc(null,p)):(si(i),Bv(i,Y))}var fe=o.memoizedState;if(fe!==null&&(Y=fe.dehydrated,Y!==null)){if(O)i.flags&256?(si(i),i.flags&=-257,i=Lv(o,i,f)):i.memoizedState!==null?(ci(),i.child=o.child,i.flags|=128,i=null):(ci(),Y=p.fallback,$=i.mode,p=Fd({mode:"visible",children:p.children},$),Y=Yi(Y,$,f,null),Y.flags|=2,p.return=i,Y.return=i,p.sibling=Y,i.child=p,rl(i,o.child,null,f),p=i.child,p.memoizedState=Dv(f),p.childLanes=Av(o,F,f),i.memoizedState=_v,i=jc(null,p));else if(si(i),yp(Y)){if(F=Y.nextSibling&&Y.nextSibling.dataset,F)var Ne=F.dgst;F=Ne,p=Error(r(419)),p.stack="",p.digest=F,Sc({value:p,source:null,stack:null}),i=Lv(o,i,f)}else if(Sr||ql(o,i,f,!1),F=(f&o.childLanes)!==0,Sr||F){if(F=Un,F!==null&&(p=He(F,f),p!==0&&p!==fe.retryLane))throw fe.retryLane=p,Xi(o,p),va(F,o,p),Pv;bp(Y)||Yd(),i=Lv(o,i,f)}else bp(Y)?(i.flags|=192,i.child=o.child,i=null):(o=fe.treeContext,Qn=Ha(Y.nextSibling),Kr=i,bn=!0,ni=null,Ba=!1,o!==null&&IS(i,o),i=Bv(i,p.children),i.flags|=4096);return i}return $?(ci(),Y=p.fallback,$=i.mode,fe=o.child,Ne=fe.sibling,p=No(fe,{mode:"hidden",children:p.children}),p.subtreeFlags=fe.subtreeFlags&65011712,Ne!==null?Y=No(Ne,Y):(Y=Yi(Y,$,f,null),Y.flags|=2),Y.return=i,p.return=i,p.sibling=Y,i.child=p,jc(null,p),p=i.child,Y=o.child.memoizedState,Y===null?Y=Dv(f):($=Y.cachePool,$!==null?(fe=br._currentValue,$=$.parent!==fe?{parent:fe,pool:fe}:$):$=DS(),Y={baseLanes:Y.baseLanes|f,cachePool:$}),p.memoizedState=Y,p.childLanes=Av(o,F,f),i.memoizedState=_v,jc(o.child,p)):(si(i),f=o.child,o=f.sibling,f=No(f,{mode:"visible",children:p.children}),f.return=i,f.sibling=null,o!==null&&(F=i.deletions,F===null?(i.deletions=[o],i.flags|=16):F.push(o)),i.child=f,i.memoizedState=null,f)}function Bv(o,i){return i=Fd({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function Fd(o,i){return o=xa(22,o,null,i),o.lanes=0,o}function Lv(o,i,f){return rl(i,o.child,null,f),o=Bv(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function XC(o,i,f){o.lanes|=i;var p=o.alternate;p!==null&&(p.lanes|=i),ev(o.return,i,f)}function Hv(o,i,f,p,$,O){var F=o.memoizedState;F===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:p,tail:f,tailMode:$,treeForkCount:O}:(F.isBackwards=i,F.rendering=null,F.renderingStartTime=0,F.last=p,F.tail=f,F.tailMode=$,F.treeForkCount=O)}function YC(o,i,f){var p=i.pendingProps,$=p.revealOrder,O=p.tail;p=p.children;var F=mr.current,Y=(F&2)!==0;if(Y?(F=F&1|2,i.flags|=128):F&=1,W(mr,F),Ur(o,i,p,f),p=bn?yc:0,!Y&&o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&XC(o,f,i);else if(o.tag===19)XC(o,f,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch($){case"forwards":for(f=i.child,$=null;f!==null;)o=f.alternate,o!==null&&Td(o)===null&&($=f),f=f.sibling;f=$,f===null?($=i.child,i.child=null):($=f.sibling,f.sibling=null),Hv(i,!1,$,f,O,p);break;case"backwards":case"unstable_legacy-backwards":for(f=null,$=i.child,i.child=null;$!==null;){if(o=$.alternate,o!==null&&Td(o)===null){i.child=$;break}o=$.sibling,$.sibling=f,f=$,$=o}Hv(i,!0,f,null,O,p);break;case"together":Hv(i,!1,null,null,void 0,p);break;default:i.memoizedState=null}return i.child}function zo(o,i,f){if(o!==null&&(i.dependencies=o.dependencies),fi|=i.lanes,(f&i.childLanes)===0)if(o!==null){if(ql(o,i,f,!1),(f&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,f=No(o,o.pendingProps),i.child=f,f.return=i;o.sibling!==null;)o=o.sibling,f=f.sibling=No(o,o.pendingProps),f.return=i;f.sibling=null}return i.child}function Fv(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&Cd(o)))}function _j(o,i,f){switch(i.tag){case 3:re(i,i.stateNode.containerInfo),ai(i,br,o.memoizedState.cache),Qi();break;case 27:case 5:Se(i);break;case 4:re(i,i.stateNode.containerInfo);break;case 10:ai(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,fv(i),null;break;case 13:var p=i.memoizedState;if(p!==null)return p.dehydrated!==null?(si(i),i.flags|=128,null):(f&i.child.childLanes)!==0?GC(o,i,f):(si(i),o=zo(o,i,f),o!==null?o.sibling:null);si(i);break;case 19:var $=(o.flags&128)!==0;if(p=(f&i.childLanes)!==0,p||(ql(o,i,f,!1),p=(f&i.childLanes)!==0),$){if(p)return YC(o,i,f);i.flags|=128}if($=i.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),W(mr,mr.current),p)break;return null;case 22:return i.lanes=0,kC(o,i,f,i.pendingProps);case 24:ai(i,br,o.memoizedState.cache)}return zo(o,i,f)}function QC(o,i,f){if(o!==null)if(o.memoizedProps!==i.pendingProps)Sr=!0;else{if(!Fv(o,f)&&(i.flags&128)===0)return Sr=!1,_j(o,i,f);Sr=(o.flags&131072)!==0}else Sr=!1,bn&&(i.flags&1048576)!==0&&TS(i,yc,i.index);switch(i.lanes=0,i.tag){case 16:e:{var p=i.pendingProps;if(o=tl(i.elementType),i.type=o,typeof o=="function")Ug(o)?(p=ol(o,p),i.tag=1,i=UC(null,i,o,p,f)):(i.tag=0,i=zv(null,i,o,p,f));else{if(o!=null){var $=o.$$typeof;if($===R){i.tag=11,i=LC(null,i,o,p,f);break e}else if($===M){i.tag=14,i=HC(null,i,o,p,f);break e}}throw i=_(o)||o,Error(r(306,i,""))}}return i;case 0:return zv(o,i,i.type,i.pendingProps,f);case 1:return p=i.type,$=ol(p,i.pendingProps),UC(o,i,p,$,f);case 3:e:{if(re(i,i.stateNode.containerInfo),o===null)throw Error(r(387));p=i.pendingProps;var O=i.memoizedState;$=O.element,lv(o,i),Rc(i,p,null,f);var F=i.memoizedState;if(p=F.cache,ai(i,br,p),p!==O.cache&&tv(i,[br],f,!0),Oc(),p=F.element,O.isDehydrated)if(O={element:p,isDehydrated:!1,cache:F.cache},i.updateQueue.baseState=O,i.memoizedState=O,i.flags&256){i=qC(o,i,p,f);break e}else if(p!==$){$=_a(Error(r(424)),i),Sc($),i=qC(o,i,p,f);break e}else{switch(o=i.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Qn=Ha(o.firstChild),Kr=i,bn=!0,ni=null,Ba=!0,f=kS(i,null,p,f),i.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Qi(),p===$){i=zo(o,i,f);break e}Ur(o,i,p,f)}i=i.child}return i;case 26:return Hd(o,i),o===null?(f=s1(i.type,null,i.pendingProps,null))?i.memoizedState=f:bn||(f=i.type,o=i.pendingProps,p=rf(ne.current).createElement(f),p[tt]=i,p[Ze]=o,qr(p,f,o),st(p),i.stateNode=p):i.memoizedState=s1(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return Se(i),o===null&&bn&&(p=i.stateNode=o1(i.type,i.pendingProps,ne.current),Kr=i,Ba=!0,$=Qn,hi(i.type)?(Sp=$,Qn=Ha(p.firstChild)):Qn=$),Ur(o,i,i.pendingProps.children,f),Hd(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&bn&&(($=p=Qn)&&(p=d4(p,i.type,i.pendingProps,Ba),p!==null?(i.stateNode=p,Kr=i,Qn=Ha(p.firstChild),Ba=!1,$=!0):$=!1),$||ri(i)),Se(i),$=i.type,O=i.pendingProps,F=o!==null?o.memoizedProps:null,p=O.children,vp($,O)?p=null:F!==null&&vp($,F)&&(i.flags|=32),i.memoizedState!==null&&($=gv(o,i,Oj,null,null,f),qc._currentValue=$),Hd(o,i),Ur(o,i,p,f),i.child;case 6:return o===null&&bn&&((o=f=Qn)&&(f=f4(f,i.pendingProps,Ba),f!==null?(i.stateNode=f,Kr=i,Qn=null,o=!0):o=!1),o||ri(i)),null;case 13:return GC(o,i,f);case 4:return re(i,i.stateNode.containerInfo),p=i.pendingProps,o===null?i.child=rl(i,null,p,f):Ur(o,i,p,f),i.child;case 11:return LC(o,i,i.type,i.pendingProps,f);case 7:return Ur(o,i,i.pendingProps,f),i.child;case 8:return Ur(o,i,i.pendingProps.children,f),i.child;case 12:return Ur(o,i,i.pendingProps.children,f),i.child;case 10:return p=i.pendingProps,ai(i,i.type,p.value),Ur(o,i,p.children,f),i.child;case 9:return $=i.type._context,p=i.pendingProps.children,Ji(i),$=Wr($),p=p($),i.flags|=1,Ur(o,i,p,f),i.child;case 14:return HC(o,i,i.type,i.pendingProps,f);case 15:return FC(o,i,i.type,i.pendingProps,f);case 19:return YC(o,i,f);case 31:return zj(o,i,f);case 22:return kC(o,i,f,i.pendingProps);case 24:return Ji(i),p=Wr(br),o===null?($=av(),$===null&&($=Un,O=nv(),$.pooledCache=O,O.refCount++,O!==null&&($.pooledCacheLanes|=f),$=O),i.memoizedState={parent:p,cache:$},iv(i),ai(i,br,$)):((o.lanes&f)!==0&&(lv(o,i),Rc(i,null,null,f),Oc()),$=o.memoizedState,O=i.memoizedState,$.parent!==p?($={parent:p,cache:p},i.memoizedState=$,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=$),ai(i,br,p)):(p=O.cache,ai(i,br,p),p!==$.cache&&tv(i,[br],f,!0))),Ur(o,i,i.pendingProps.children,f),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function _o(o){o.flags|=4}function kv(o,i,f,p,$){if((i=(o.mode&32)!==0)&&(i=!1),i){if(o.flags|=16777216,($&335544128)===$)if(o.stateNode.complete)o.flags|=8192;else if(wx())o.flags|=8192;else throw nl=Ed,ov}else o.flags&=-16777217}function ZC(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!m1(i))if(wx())o.flags|=8192;else throw nl=Ed,ov}function kd(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?Mt():536870912,o.lanes|=i,os|=i)}function Pc(o,i){if(!bn)switch(o.tailMode){case"hidden":i=o.tail;for(var f=null;i!==null;)i.alternate!==null&&(f=i),i=i.sibling;f===null?o.tail=null:f.sibling=null;break;case"collapsed":f=o.tail;for(var p=null;f!==null;)f.alternate!==null&&(p=f),f=f.sibling;p===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function Zn(o){var i=o.alternate!==null&&o.alternate.child===o.child,f=0,p=0;if(i)for(var $=o.child;$!==null;)f|=$.lanes|$.childLanes,p|=$.subtreeFlags&65011712,p|=$.flags&65011712,$.return=o,$=$.sibling;else for($=o.child;$!==null;)f|=$.lanes|$.childLanes,p|=$.subtreeFlags,p|=$.flags,$.return=o,$=$.sibling;return o.subtreeFlags|=p,o.childLanes=f,i}function Dj(o,i,f){var p=i.pendingProps;switch(Yg(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zn(i),null;case 1:return Zn(i),null;case 3:return f=i.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),i.memoizedState.cache!==p&&(i.flags|=2048),Mo(br),oe(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(o===null||o.child===null)&&(Ul(i)?_o(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Zg())),Zn(i),null;case 26:var $=i.type,O=i.memoizedState;return o===null?(_o(i),O!==null?(Zn(i),ZC(i,O)):(Zn(i),kv(i,$,null,p,f))):O?O!==o.memoizedState?(_o(i),Zn(i),ZC(i,O)):(Zn(i),i.flags&=-16777217):(o=o.memoizedProps,o!==p&&_o(i),Zn(i),kv(i,$,o,p,f)),null;case 27:if(me(i),f=ne.current,$=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&_o(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return Zn(i),null}o=X.current,Ul(i)?MS(i):(o=o1($,p,f),i.stateNode=o,_o(i))}return Zn(i),null;case 5:if(me(i),$=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&_o(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return Zn(i),null}if(O=X.current,Ul(i))MS(i);else{var F=rf(ne.current);switch(O){case 1:O=F.createElementNS("http://www.w3.org/2000/svg",$);break;case 2:O=F.createElementNS("http://www.w3.org/1998/Math/MathML",$);break;default:switch($){case"svg":O=F.createElementNS("http://www.w3.org/2000/svg",$);break;case"math":O=F.createElementNS("http://www.w3.org/1998/Math/MathML",$);break;case"script":O=F.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof p.is=="string"?F.createElement("select",{is:p.is}):F.createElement("select"),p.multiple?O.multiple=!0:p.size&&(O.size=p.size);break;default:O=typeof p.is=="string"?F.createElement($,{is:p.is}):F.createElement($)}}O[tt]=i,O[Ze]=p;e:for(F=i.child;F!==null;){if(F.tag===5||F.tag===6)O.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===i)break e;for(;F.sibling===null;){if(F.return===null||F.return===i)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}i.stateNode=O;e:switch(qr(O,$,p),$){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&_o(i)}}return Zn(i),kv(i,i.type,o===null?null:o.memoizedProps,i.pendingProps,f),null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==p&&_o(i);else{if(typeof p!="string"&&i.stateNode===null)throw Error(r(166));if(o=ne.current,Ul(i)){if(o=i.stateNode,f=i.memoizedProps,p=null,$=Kr,$!==null)switch($.tag){case 27:case 5:p=$.memoizedProps}o[tt]=i,o=!!(o.nodeValue===f||p!==null&&p.suppressHydrationWarning===!0||Gx(o.nodeValue,f)),o||ri(i,!0)}else o=rf(o).createTextNode(p),o[tt]=i,i.stateNode=o}return Zn(i),null;case 31:if(f=i.memoizedState,o===null||o.memoizedState!==null){if(p=Ul(i),f!==null){if(o===null){if(!p)throw Error(r(318));if(o=i.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[tt]=i}else Qi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Zn(i),o=!1}else f=Zg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),o=!0;if(!o)return i.flags&256?(wa(i),i):(wa(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Zn(i),null;case 13:if(p=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if($=Ul(i),p!==null&&p.dehydrated!==null){if(o===null){if(!$)throw Error(r(318));if($=i.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error(r(317));$[tt]=i}else Qi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Zn(i),$=!1}else $=Zg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=$),$=!0;if(!$)return i.flags&256?(wa(i),i):(wa(i),null)}return wa(i),(i.flags&128)!==0?(i.lanes=f,i):(f=p!==null,o=o!==null&&o.memoizedState!==null,f&&(p=i.child,$=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&($=p.alternate.memoizedState.cachePool.pool),O=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(O=p.memoizedState.cachePool.pool),O!==$&&(p.flags|=2048)),f!==o&&f&&(i.child.flags|=8192),kd(i,i.updateQueue),Zn(i),null);case 4:return oe(),o===null&&up(i.stateNode.containerInfo),Zn(i),null;case 10:return Mo(i.type),Zn(i),null;case 19:if(U(mr),p=i.memoizedState,p===null)return Zn(i),null;if($=(i.flags&128)!==0,O=p.rendering,O===null)if($)Pc(p,!1);else{if(ur!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(O=Td(o),O!==null){for(i.flags|=128,Pc(p,!1),o=O.updateQueue,i.updateQueue=o,kd(i,o),i.subtreeFlags=0,o=f,f=i.child;f!==null;)OS(f,o),f=f.sibling;return W(mr,mr.current&1|2),bn&&To(i,p.treeForkCount),i.child}o=o.sibling}p.tail!==null&&xe()>qd&&(i.flags|=128,$=!0,Pc(p,!1),i.lanes=4194304)}else{if(!$)if(o=Td(O),o!==null){if(i.flags|=128,$=!0,o=o.updateQueue,i.updateQueue=o,kd(i,o),Pc(p,!0),p.tail===null&&p.tailMode==="hidden"&&!O.alternate&&!bn)return Zn(i),null}else 2*xe()-p.renderingStartTime>qd&&f!==536870912&&(i.flags|=128,$=!0,Pc(p,!1),i.lanes=4194304);p.isBackwards?(O.sibling=i.child,i.child=O):(o=p.last,o!==null?o.sibling=O:i.child=O,p.last=O)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=xe(),o.sibling=null,f=mr.current,W(mr,$?f&1|2:f&1),bn&&To(i,p.treeForkCount),o):(Zn(i),null);case 22:case 23:return wa(i),dv(),p=i.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(i.flags|=8192):p&&(i.flags|=8192),p?(f&536870912)!==0&&(i.flags&128)===0&&(Zn(i),i.subtreeFlags&6&&(i.flags|=8192)):Zn(i),f=i.updateQueue,f!==null&&kd(i,f.retryQueue),f=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==f&&(i.flags|=2048),o!==null&&U(el),null;case 24:return f=null,o!==null&&(f=o.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),Mo(br),Zn(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function Aj(o,i){switch(Yg(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Mo(br),oe(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return me(i),null;case 31:if(i.memoizedState!==null){if(wa(i),i.alternate===null)throw Error(r(340));Qi()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 13:if(wa(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Qi()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return U(mr),null;case 4:return oe(),null;case 10:return Mo(i.type),null;case 22:case 23:return wa(i),dv(),o!==null&&U(el),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return Mo(br),null;case 25:return null;default:return null}}function JC(o,i){switch(Yg(i),i.tag){case 3:Mo(br),oe();break;case 26:case 27:case 5:me(i);break;case 4:oe();break;case 31:i.memoizedState!==null&&wa(i);break;case 13:wa(i);break;case 19:U(mr);break;case 10:Mo(i.type);break;case 22:case 23:wa(i),dv(),o!==null&&U(el);break;case 24:Mo(br)}}function zc(o,i){try{var f=i.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var $=p.next;f=$;do{if((f.tag&o)===o){p=void 0;var O=f.create,F=f.inst;p=O(),F.destroy=p}f=f.next}while(f!==$)}}catch(Y){jn(i,i.return,Y)}}function ui(o,i,f){try{var p=i.updateQueue,$=p!==null?p.lastEffect:null;if($!==null){var O=$.next;p=O;do{if((p.tag&o)===o){var F=p.inst,Y=F.destroy;if(Y!==void 0){F.destroy=void 0,$=i;var fe=f,Ne=Y;try{Ne()}catch(Fe){jn($,fe,Fe)}}}p=p.next}while(p!==O)}}catch(Fe){jn(i,i.return,Fe)}}function ex(o){var i=o.updateQueue;if(i!==null){var f=o.stateNode;try{KS(i,f)}catch(p){jn(o,o.return,p)}}}function tx(o,i,f){f.props=ol(o.type,o.memoizedProps),f.state=o.memoizedState;try{f.componentWillUnmount()}catch(p){jn(o,i,p)}}function _c(o,i){try{var f=o.ref;if(f!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof f=="function"?o.refCleanup=f(p):f.current=p}}catch($){jn(o,i,$)}}function vo(o,i){var f=o.ref,p=o.refCleanup;if(f!==null)if(typeof p=="function")try{p()}catch($){jn(o,i,$)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch($){jn(o,i,$)}else f.current=null}function nx(o){var i=o.type,f=o.memoizedProps,p=o.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":f.autoFocus&&p.focus();break e;case"img":f.src?p.src=f.src:f.srcSet&&(p.srcset=f.srcSet)}}catch($){jn(o,o.return,$)}}function Vv(o,i,f){try{var p=o.stateNode;o4(p,o.type,f,i),p[Ze]=i}catch($){jn(o,o.return,$)}}function rx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&hi(o.type)||o.tag===4}function Kv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||rx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&hi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Wv(o,i,f){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(o,i):(i=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,i.appendChild(o),f=f._reactRootContainer,f!=null||i.onclick!==null||(i.onclick=On));else if(p!==4&&(p===27&&hi(o.type)&&(f=o.stateNode,i=null),o=o.child,o!==null))for(Wv(o,i,f),o=o.sibling;o!==null;)Wv(o,i,f),o=o.sibling}function Vd(o,i,f){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?f.insertBefore(o,i):f.appendChild(o);else if(p!==4&&(p===27&&hi(o.type)&&(f=o.stateNode),o=o.child,o!==null))for(Vd(o,i,f),o=o.sibling;o!==null;)Vd(o,i,f),o=o.sibling}function ax(o){var i=o.stateNode,f=o.memoizedProps;try{for(var p=o.type,$=i.attributes;$.length;)i.removeAttributeNode($[0]);qr(i,p,f),i[tt]=o,i[Ze]=f}catch(O){jn(o,o.return,O)}}var Do=!1,Cr=!1,Uv=!1,ox=typeof WeakSet=="function"?WeakSet:Set,_r=null;function Bj(o,i){if(o=o.containerInfo,mp=df,o=hS(o),Lg(o)){if("selectionStart"in o)var f={start:o.selectionStart,end:o.selectionEnd};else e:{f=(f=o.ownerDocument)&&f.defaultView||window;var p=f.getSelection&&f.getSelection();if(p&&p.rangeCount!==0){f=p.anchorNode;var $=p.anchorOffset,O=p.focusNode;p=p.focusOffset;try{f.nodeType,O.nodeType}catch{f=null;break e}var F=0,Y=-1,fe=-1,Ne=0,Fe=0,qe=o,Pe=null;t:for(;;){for(var Ae;qe!==f||$!==0&&qe.nodeType!==3||(Y=F+$),qe!==O||p!==0&&qe.nodeType!==3||(fe=F+p),qe.nodeType===3&&(F+=qe.nodeValue.length),(Ae=qe.firstChild)!==null;)Pe=qe,qe=Ae;for(;;){if(qe===o)break t;if(Pe===f&&++Ne===$&&(Y=F),Pe===O&&++Fe===p&&(fe=F),(Ae=qe.nextSibling)!==null)break;qe=Pe,Pe=qe.parentNode}qe=Ae}f=Y===-1||fe===-1?null:{start:Y,end:fe}}else f=null}f=f||{start:0,end:0}}else f=null;for(gp={focusedElem:o,selectionRange:f},df=!1,_r=i;_r!==null;)if(i=_r,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,_r=o;else for(;_r!==null;){switch(i=_r,O=i.alternate,o=i.flags,i.tag){case 0:if((o&4)!==0&&(o=i.updateQueue,o=o!==null?o.events:null,o!==null))for(f=0;f<o.length;f++)$=o[f],$.ref.impl=$.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&O!==null){o=void 0,f=i,$=O.memoizedProps,O=O.memoizedState,p=f.stateNode;try{var jt=ol(f.type,$);o=p.getSnapshotBeforeUpdate(jt,O),p.__reactInternalSnapshotBeforeUpdate=o}catch(Ut){jn(f,f.return,Ut)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,f=o.nodeType,f===9)hp(o);else if(f===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":hp(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,_r=o;break}_r=i.return}}function ix(o,i,f){var p=f.flags;switch(f.tag){case 0:case 11:case 15:Bo(o,f),p&4&&zc(5,f);break;case 1:if(Bo(o,f),p&4)if(o=f.stateNode,i===null)try{o.componentDidMount()}catch(F){jn(f,f.return,F)}else{var $=ol(f.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate($,i,o.__reactInternalSnapshotBeforeUpdate)}catch(F){jn(f,f.return,F)}}p&64&&ex(f),p&512&&_c(f,f.return);break;case 3:if(Bo(o,f),p&64&&(o=f.updateQueue,o!==null)){if(i=null,f.child!==null)switch(f.child.tag){case 27:case 5:i=f.child.stateNode;break;case 1:i=f.child.stateNode}try{KS(o,i)}catch(F){jn(f,f.return,F)}}break;case 27:i===null&&p&4&&ax(f);case 26:case 5:Bo(o,f),i===null&&p&4&&nx(f),p&512&&_c(f,f.return);break;case 12:Bo(o,f);break;case 31:Bo(o,f),p&4&&cx(o,f);break;case 13:Bo(o,f),p&4&&ux(o,f),p&64&&(o=f.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(f=qj.bind(null,f),m4(o,f))));break;case 22:if(p=f.memoizedState!==null||Do,!p){i=i!==null&&i.memoizedState!==null||Cr,$=Do;var O=Cr;Do=p,(Cr=i)&&!O?Lo(o,f,(f.subtreeFlags&8772)!==0):Bo(o,f),Do=$,Cr=O}break;case 30:break;default:Bo(o,f)}}function lx(o){var i=o.alternate;i!==null&&(o.alternate=null,lx(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&on(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var er=null,da=!1;function Ao(o,i,f){for(f=f.child;f!==null;)sx(o,i,f),f=f.sibling}function sx(o,i,f){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(We,f)}catch{}switch(f.tag){case 26:Cr||vo(f,i),Ao(o,i,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:Cr||vo(f,i);var p=er,$=da;hi(f.type)&&(er=f.stateNode,da=!1),Ao(o,i,f),Kc(f.stateNode),er=p,da=$;break;case 5:Cr||vo(f,i);case 6:if(p=er,$=da,er=null,Ao(o,i,f),er=p,da=$,er!==null)if(da)try{(er.nodeType===9?er.body:er.nodeName==="HTML"?er.ownerDocument.body:er).removeChild(f.stateNode)}catch(O){jn(f,i,O)}else try{er.removeChild(f.stateNode)}catch(O){jn(f,i,O)}break;case 18:er!==null&&(da?(o=er,e1(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,f.stateNode),ms(o)):e1(er,f.stateNode));break;case 4:p=er,$=da,er=f.stateNode.containerInfo,da=!0,Ao(o,i,f),er=p,da=$;break;case 0:case 11:case 14:case 15:ui(2,f,i),Cr||ui(4,f,i),Ao(o,i,f);break;case 1:Cr||(vo(f,i),p=f.stateNode,typeof p.componentWillUnmount=="function"&&tx(f,i,p)),Ao(o,i,f);break;case 21:Ao(o,i,f);break;case 22:Cr=(p=Cr)||f.memoizedState!==null,Ao(o,i,f),Cr=p;break;default:Ao(o,i,f)}}function cx(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ms(o)}catch(f){jn(i,i.return,f)}}}function ux(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ms(o)}catch(f){jn(i,i.return,f)}}function Lj(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new ox),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new ox),i;default:throw Error(r(435,o.tag))}}function Kd(o,i){var f=Lj(o);i.forEach(function(p){if(!f.has(p)){f.add(p);var $=Gj.bind(null,o,p);p.then($,$)}})}function fa(o,i){var f=i.deletions;if(f!==null)for(var p=0;p<f.length;p++){var $=f[p],O=o,F=i,Y=F;e:for(;Y!==null;){switch(Y.tag){case 27:if(hi(Y.type)){er=Y.stateNode,da=!1;break e}break;case 5:er=Y.stateNode,da=!1;break e;case 3:case 4:er=Y.stateNode.containerInfo,da=!0;break e}Y=Y.return}if(er===null)throw Error(r(160));sx(O,F,$),er=null,da=!1,O=$.alternate,O!==null&&(O.return=null),$.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)dx(i,o),i=i.sibling}var Ja=null;function dx(o,i){var f=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:fa(i,o),ma(o),p&4&&(ui(3,o,o.return),zc(3,o),ui(5,o,o.return));break;case 1:fa(i,o),ma(o),p&512&&(Cr||f===null||vo(f,f.return)),p&64&&Do&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(f=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=f===null?p:f.concat(p))));break;case 26:var $=Ja;if(fa(i,o),ma(o),p&512&&(Cr||f===null||vo(f,f.return)),p&4){var O=f!==null?f.memoizedState:null;if(p=o.memoizedState,f===null)if(p===null)if(o.stateNode===null){e:{p=o.type,f=o.memoizedProps,$=$.ownerDocument||$;t:switch(p){case"title":O=$.getElementsByTagName("title")[0],(!O||O[Wt]||O[tt]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=$.createElement(p),$.head.insertBefore(O,$.querySelector("head > title"))),qr(O,p,f),O[tt]=o,st(O),p=O;break e;case"link":var F=d1("link","href",$).get(p+(f.href||""));if(F){for(var Y=0;Y<F.length;Y++)if(O=F[Y],O.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&O.getAttribute("rel")===(f.rel==null?null:f.rel)&&O.getAttribute("title")===(f.title==null?null:f.title)&&O.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){F.splice(Y,1);break t}}O=$.createElement(p),qr(O,p,f),$.head.appendChild(O);break;case"meta":if(F=d1("meta","content",$).get(p+(f.content||""))){for(Y=0;Y<F.length;Y++)if(O=F[Y],O.getAttribute("content")===(f.content==null?null:""+f.content)&&O.getAttribute("name")===(f.name==null?null:f.name)&&O.getAttribute("property")===(f.property==null?null:f.property)&&O.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&O.getAttribute("charset")===(f.charSet==null?null:f.charSet)){F.splice(Y,1);break t}}O=$.createElement(p),qr(O,p,f),$.head.appendChild(O);break;default:throw Error(r(468,p))}O[tt]=o,st(O),p=O}o.stateNode=p}else f1($,o.type,o.stateNode);else o.stateNode=u1($,p,o.memoizedProps);else O!==p?(O===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):O.count--,p===null?f1($,o.type,o.stateNode):u1($,p,o.memoizedProps)):p===null&&o.stateNode!==null&&Vv(o,o.memoizedProps,f.memoizedProps)}break;case 27:fa(i,o),ma(o),p&512&&(Cr||f===null||vo(f,f.return)),f!==null&&p&4&&Vv(o,o.memoizedProps,f.memoizedProps);break;case 5:if(fa(i,o),ma(o),p&512&&(Cr||f===null||vo(f,f.return)),o.flags&32){$=o.stateNode;try{Vn($,"")}catch(jt){jn(o,o.return,jt)}}p&4&&o.stateNode!=null&&($=o.memoizedProps,Vv(o,$,f!==null?f.memoizedProps:$)),p&1024&&(Uv=!0);break;case 6:if(fa(i,o),ma(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,f=o.stateNode;try{f.nodeValue=p}catch(jt){jn(o,o.return,jt)}}break;case 3:if(lf=null,$=Ja,Ja=af(i.containerInfo),fa(i,o),Ja=$,ma(o),p&4&&f!==null&&f.memoizedState.isDehydrated)try{ms(i.containerInfo)}catch(jt){jn(o,o.return,jt)}Uv&&(Uv=!1,fx(o));break;case 4:p=Ja,Ja=af(o.stateNode.containerInfo),fa(i,o),ma(o),Ja=p;break;case 12:fa(i,o),ma(o);break;case 31:fa(i,o),ma(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Kd(o,p)));break;case 13:fa(i,o),ma(o),o.child.flags&8192&&o.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(Ud=xe()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Kd(o,p)));break;case 22:$=o.memoizedState!==null;var fe=f!==null&&f.memoizedState!==null,Ne=Do,Fe=Cr;if(Do=Ne||$,Cr=Fe||fe,fa(i,o),Cr=Fe,Do=Ne,ma(o),p&8192)e:for(i=o.stateNode,i._visibility=$?i._visibility&-2:i._visibility|1,$&&(f===null||fe||Do||Cr||il(o)),f=null,i=o;;){if(i.tag===5||i.tag===26){if(f===null){fe=f=i;try{if(O=fe.stateNode,$)F=O.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{Y=fe.stateNode;var qe=fe.memoizedProps.style,Pe=qe!=null&&qe.hasOwnProperty("display")?qe.display:null;Y.style.display=Pe==null||typeof Pe=="boolean"?"":(""+Pe).trim()}}catch(jt){jn(fe,fe.return,jt)}}}else if(i.tag===6){if(f===null){fe=i;try{fe.stateNode.nodeValue=$?"":fe.memoizedProps}catch(jt){jn(fe,fe.return,jt)}}}else if(i.tag===18){if(f===null){fe=i;try{var Ae=fe.stateNode;$?t1(Ae,!0):t1(fe.stateNode,!1)}catch(jt){jn(fe,fe.return,jt)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;f===i&&(f=null),i=i.return}f===i&&(f=null),i.sibling.return=i.return,i=i.sibling}p&4&&(p=o.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,Kd(o,f))));break;case 19:fa(i,o),ma(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Kd(o,p)));break;case 30:break;case 21:break;default:fa(i,o),ma(o)}}function ma(o){var i=o.flags;if(i&2){try{for(var f,p=o.return;p!==null;){if(rx(p)){f=p;break}p=p.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var $=f.stateNode,O=Kv(o);Vd(o,O,$);break;case 5:var F=f.stateNode;f.flags&32&&(Vn(F,""),f.flags&=-33);var Y=Kv(o);Vd(o,Y,F);break;case 3:case 4:var fe=f.stateNode.containerInfo,Ne=Kv(o);Wv(o,Ne,fe);break;default:throw Error(r(161))}}catch(Fe){jn(o,o.return,Fe)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function fx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;fx(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function Bo(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ix(o,i.alternate,i),i=i.sibling}function il(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:ui(4,i,i.return),il(i);break;case 1:vo(i,i.return);var f=i.stateNode;typeof f.componentWillUnmount=="function"&&tx(i,i.return,f),il(i);break;case 27:Kc(i.stateNode);case 26:case 5:vo(i,i.return),il(i);break;case 22:i.memoizedState===null&&il(i);break;case 30:il(i);break;default:il(i)}o=o.sibling}}function Lo(o,i,f){for(f=f&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var p=i.alternate,$=o,O=i,F=O.flags;switch(O.tag){case 0:case 11:case 15:Lo($,O,f),zc(4,O);break;case 1:if(Lo($,O,f),p=O,$=p.stateNode,typeof $.componentDidMount=="function")try{$.componentDidMount()}catch(Ne){jn(p,p.return,Ne)}if(p=O,$=p.updateQueue,$!==null){var Y=p.stateNode;try{var fe=$.shared.hiddenCallbacks;if(fe!==null)for($.shared.hiddenCallbacks=null,$=0;$<fe.length;$++)VS(fe[$],Y)}catch(Ne){jn(p,p.return,Ne)}}f&&F&64&&ex(O),_c(O,O.return);break;case 27:ax(O);case 26:case 5:Lo($,O,f),f&&p===null&&F&4&&nx(O),_c(O,O.return);break;case 12:Lo($,O,f);break;case 31:Lo($,O,f),f&&F&4&&cx($,O);break;case 13:Lo($,O,f),f&&F&4&&ux($,O);break;case 22:O.memoizedState===null&&Lo($,O,f),_c(O,O.return);break;case 30:break;default:Lo($,O,f)}i=i.sibling}}function qv(o,i){var f=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==f&&(o!=null&&o.refCount++,f!=null&&Cc(f))}function Gv(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Cc(o))}function eo(o,i,f,p){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)mx(o,i,f,p),i=i.sibling}function mx(o,i,f,p){var $=i.flags;switch(i.tag){case 0:case 11:case 15:eo(o,i,f,p),$&2048&&zc(9,i);break;case 1:eo(o,i,f,p);break;case 3:eo(o,i,f,p),$&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Cc(o)));break;case 12:if($&2048){eo(o,i,f,p),o=i.stateNode;try{var O=i.memoizedProps,F=O.id,Y=O.onPostCommit;typeof Y=="function"&&Y(F,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(fe){jn(i,i.return,fe)}}else eo(o,i,f,p);break;case 31:eo(o,i,f,p);break;case 13:eo(o,i,f,p);break;case 23:break;case 22:O=i.stateNode,F=i.alternate,i.memoizedState!==null?O._visibility&2?eo(o,i,f,p):Dc(o,i):O._visibility&2?eo(o,i,f,p):(O._visibility|=2,ns(o,i,f,p,(i.subtreeFlags&10256)!==0||!1)),$&2048&&qv(F,i);break;case 24:eo(o,i,f,p),$&2048&&Gv(i.alternate,i);break;default:eo(o,i,f,p)}}function ns(o,i,f,p,$){for($=$&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var O=o,F=i,Y=f,fe=p,Ne=F.flags;switch(F.tag){case 0:case 11:case 15:ns(O,F,Y,fe,$),zc(8,F);break;case 23:break;case 22:var Fe=F.stateNode;F.memoizedState!==null?Fe._visibility&2?ns(O,F,Y,fe,$):Dc(O,F):(Fe._visibility|=2,ns(O,F,Y,fe,$)),$&&Ne&2048&&qv(F.alternate,F);break;case 24:ns(O,F,Y,fe,$),$&&Ne&2048&&Gv(F.alternate,F);break;default:ns(O,F,Y,fe,$)}i=i.sibling}}function Dc(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var f=o,p=i,$=p.flags;switch(p.tag){case 22:Dc(f,p),$&2048&&qv(p.alternate,p);break;case 24:Dc(f,p),$&2048&&Gv(p.alternate,p);break;default:Dc(f,p)}i=i.sibling}}var Ac=8192;function rs(o,i,f){if(o.subtreeFlags&Ac)for(o=o.child;o!==null;)gx(o,i,f),o=o.sibling}function gx(o,i,f){switch(o.tag){case 26:rs(o,i,f),o.flags&Ac&&o.memoizedState!==null&&E4(f,Ja,o.memoizedState,o.memoizedProps);break;case 5:rs(o,i,f);break;case 3:case 4:var p=Ja;Ja=af(o.stateNode.containerInfo),rs(o,i,f),Ja=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=Ac,Ac=16777216,rs(o,i,f),Ac=p):rs(o,i,f));break;default:rs(o,i,f)}}function vx(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function Bc(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var f=0;f<i.length;f++){var p=i[f];_r=p,hx(p,o)}vx(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)px(o),o=o.sibling}function px(o){switch(o.tag){case 0:case 11:case 15:Bc(o),o.flags&2048&&ui(9,o,o.return);break;case 3:Bc(o);break;case 12:Bc(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,Wd(o)):Bc(o);break;default:Bc(o)}}function Wd(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var f=0;f<i.length;f++){var p=i[f];_r=p,hx(p,o)}vx(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:ui(8,i,i.return),Wd(i);break;case 22:f=i.stateNode,f._visibility&2&&(f._visibility&=-3,Wd(i));break;default:Wd(i)}o=o.sibling}}function hx(o,i){for(;_r!==null;){var f=_r;switch(f.tag){case 0:case 11:case 15:ui(8,f,i);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var p=f.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Cc(f.memoizedState.cache)}if(p=f.child,p!==null)p.return=f,_r=p;else e:for(f=o;_r!==null;){p=_r;var $=p.sibling,O=p.return;if(lx(p),p===f){_r=null;break e}if($!==null){$.return=O,_r=$;break e}_r=O}}}var Hj={getCacheForType:function(o){var i=Wr(br),f=i.data.get(o);return f===void 0&&(f=o(),i.data.set(o,f)),f},cacheSignal:function(){return Wr(br).controller.signal}},Fj=typeof WeakMap=="function"?WeakMap:Map,Rn=0,Un=null,mn=null,vn=0,Mn=0,Ea=null,di=!1,as=!1,Xv=!1,Ho=0,ur=0,fi=0,ll=0,Yv=0,Oa=0,os=0,Lc=null,ga=null,Qv=!1,Ud=0,bx=0,qd=1/0,Gd=null,mi=null,Nr=0,gi=null,is=null,Fo=0,Zv=0,Jv=null,yx=null,Hc=0,ep=null;function Ra(){return(Rn&2)!==0&&vn!==0?vn&-vn:P.T!==null?ip():pt()}function Sx(){if(Oa===0)if((vn&536870912)===0||bn){var o=At;At<<=1,(At&3932160)===0&&(At=262144),Oa=o}else Oa=536870912;return o=$a.current,o!==null&&(o.flags|=32),Oa}function va(o,i,f){(o===Un&&(Mn===2||Mn===9)||o.cancelPendingCommit!==null)&&(ls(o,0),vi(o,vn,Oa,!1)),be(o,f),((Rn&2)===0||o!==Un)&&(o===Un&&((Rn&2)===0&&(ll|=f),ur===4&&vi(o,vn,Oa,!1)),po(o))}function Cx(o,i,f){if((Rn&6)!==0)throw Error(r(327));var p=!f&&(i&127)===0&&(i&o.expiredLanes)===0||ot(o,i),$=p?Kj(o,i):np(o,i,!0),O=p;do{if($===0){as&&!p&&vi(o,i,0,!1);break}else{if(f=o.current.alternate,O&&!kj(f)){$=np(o,i,!1),O=!1;continue}if($===2){if(O=i,o.errorRecoveryDisabledLanes&O)var F=0;else F=o.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){i=F;e:{var Y=o;$=Lc;var fe=Y.current.memoizedState.isDehydrated;if(fe&&(ls(Y,F).flags|=256),F=np(Y,F,!1),F!==2){if(Xv&&!fe){Y.errorRecoveryDisabledLanes|=O,ll|=O,$=4;break e}O=ga,ga=$,O!==null&&(ga===null?ga=O:ga.push.apply(ga,O))}$=F}if(O=!1,$!==2)continue}}if($===1){ls(o,0),vi(o,i,0,!0);break}e:{switch(p=o,O=$,O){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:vi(p,i,Oa,!di);break e;case 2:ga=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&($=Ud+300-xe(),10<$)){if(vi(p,i,Oa,!di),gt(p,0,!0)!==0)break e;Fo=i,p.timeoutHandle=Zx(xx.bind(null,p,f,ga,Gd,Qv,i,Oa,ll,os,di,O,"Throttled",-0,0),$);break e}xx(p,f,ga,Gd,Qv,i,Oa,ll,os,di,O,null,-0,0)}}break}while(!0);po(o)}function xx(o,i,f,p,$,O,F,Y,fe,Ne,Fe,qe,Pe,Ae){if(o.timeoutHandle=-1,qe=i.subtreeFlags,qe&8192||(qe&16785408)===16785408){qe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:On},gx(i,O,qe);var jt=(O&62914560)===O?Ud-xe():(O&4194048)===O?bx-xe():0;if(jt=O4(qe,jt),jt!==null){Fo=O,o.cancelPendingCommit=jt(Ix.bind(null,o,i,O,f,p,$,F,Y,fe,Fe,qe,null,Pe,Ae)),vi(o,O,F,!Ne);return}}Ix(o,i,O,f,p,$,F,Y,fe)}function kj(o){for(var i=o;;){var f=i.tag;if((f===0||f===11||f===15)&&i.flags&16384&&(f=i.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var p=0;p<f.length;p++){var $=f[p],O=$.getSnapshot;$=$.value;try{if(!Ca(O(),$))return!1}catch{return!1}}if(f=i.child,i.subtreeFlags&16384&&f!==null)f.return=i,i=f;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function vi(o,i,f,p){i&=~Yv,i&=~ll,o.suspendedLanes|=i,o.pingedLanes&=~i,p&&(o.warmLanes|=i),p=o.expirationTimes;for(var $=i;0<$;){var O=31-Me($),F=1<<O;p[O]=-1,$&=~F}f!==0&&Ke(o,f,i)}function Xd(){return(Rn&6)===0?(Fc(0),!1):!0}function tp(){if(mn!==null){if(Mn===0)var o=mn.return;else o=mn,Io=Zi=null,hv(o),Ql=null,$c=0,o=mn;for(;o!==null;)JC(o.alternate,o),o=o.return;mn=null}}function ls(o,i){var f=o.timeoutHandle;f!==-1&&(o.timeoutHandle=-1,s4(f)),f=o.cancelPendingCommit,f!==null&&(o.cancelPendingCommit=null,f()),Fo=0,tp(),Un=o,mn=f=No(o.current,null),vn=i,Mn=0,Ea=null,di=!1,as=ot(o,i),Xv=!1,os=Oa=Yv=ll=fi=ur=0,ga=Lc=null,Qv=!1,(i&8)!==0&&(i|=i&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=i;0<p;){var $=31-Me(p),O=1<<$;i|=o[$],p&=~O}return Ho=i,pd(),f}function $x(o,i){an=null,P.H=Mc,i===Yl||i===wd?(i=LS(),Mn=3):i===ov?(i=LS(),Mn=4):Mn=i===Pv?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ea=i,mn===null&&(ur=1,Bd(o,_a(i,o.current)))}function wx(){var o=$a.current;return o===null?!0:(vn&4194048)===vn?La===null:(vn&62914560)===vn||(vn&536870912)!==0?o===La:!1}function Ex(){var o=P.H;return P.H=Mc,o===null?Mc:o}function Ox(){var o=P.A;return P.A=Hj,o}function Yd(){ur=4,di||(vn&4194048)!==vn&&$a.current!==null||(as=!0),(fi&134217727)===0&&(ll&134217727)===0||Un===null||vi(Un,vn,Oa,!1)}function np(o,i,f){var p=Rn;Rn|=2;var $=Ex(),O=Ox();(Un!==o||vn!==i)&&(Gd=null,ls(o,i)),i=!1;var F=ur;e:do try{if(Mn!==0&&mn!==null){var Y=mn,fe=Ea;switch(Mn){case 8:tp(),F=6;break e;case 3:case 2:case 9:case 6:$a.current===null&&(i=!0);var Ne=Mn;if(Mn=0,Ea=null,ss(o,Y,fe,Ne),f&&as){F=0;break e}break;default:Ne=Mn,Mn=0,Ea=null,ss(o,Y,fe,Ne)}}Vj(),F=ur;break}catch(Fe){$x(o,Fe)}while(!0);return i&&o.shellSuspendCounter++,Io=Zi=null,Rn=p,P.H=$,P.A=O,mn===null&&(Un=null,vn=0,pd()),F}function Vj(){for(;mn!==null;)Rx(mn)}function Kj(o,i){var f=Rn;Rn|=2;var p=Ex(),$=Ox();Un!==o||vn!==i?(Gd=null,qd=xe()+500,ls(o,i)):as=ot(o,i);e:do try{if(Mn!==0&&mn!==null){i=mn;var O=Ea;t:switch(Mn){case 1:Mn=0,Ea=null,ss(o,i,O,1);break;case 2:case 9:if(AS(O)){Mn=0,Ea=null,Nx(i);break}i=function(){Mn!==2&&Mn!==9||Un!==o||(Mn=7),po(o)},O.then(i,i);break e;case 3:Mn=7;break e;case 4:Mn=5;break e;case 7:AS(O)?(Mn=0,Ea=null,Nx(i)):(Mn=0,Ea=null,ss(o,i,O,7));break;case 5:var F=null;switch(mn.tag){case 26:F=mn.memoizedState;case 5:case 27:var Y=mn;if(F?m1(F):Y.stateNode.complete){Mn=0,Ea=null;var fe=Y.sibling;if(fe!==null)mn=fe;else{var Ne=Y.return;Ne!==null?(mn=Ne,Qd(Ne)):mn=null}break t}}Mn=0,Ea=null,ss(o,i,O,5);break;case 6:Mn=0,Ea=null,ss(o,i,O,6);break;case 8:tp(),ur=6;break e;default:throw Error(r(462))}}Wj();break}catch(Fe){$x(o,Fe)}while(!0);return Io=Zi=null,P.H=p,P.A=$,Rn=f,mn!==null?0:(Un=null,vn=0,pd(),ur)}function Wj(){for(;mn!==null&&!Te();)Rx(mn)}function Rx(o){var i=QC(o.alternate,o,Ho);o.memoizedProps=o.pendingProps,i===null?Qd(o):mn=i}function Nx(o){var i=o,f=i.alternate;switch(i.tag){case 15:case 0:i=WC(f,i,i.pendingProps,i.type,void 0,vn);break;case 11:i=WC(f,i,i.pendingProps,i.type.render,i.ref,vn);break;case 5:hv(i);default:JC(f,i),i=mn=OS(i,Ho),i=QC(f,i,Ho)}o.memoizedProps=o.pendingProps,i===null?Qd(o):mn=i}function ss(o,i,f,p){Io=Zi=null,hv(i),Ql=null,$c=0;var $=i.return;try{if(Pj(o,$,i,f,vn)){ur=1,Bd(o,_a(f,o.current)),mn=null;return}}catch(O){if($!==null)throw mn=$,O;ur=1,Bd(o,_a(f,o.current)),mn=null;return}i.flags&32768?(bn||p===1?o=!0:as||(vn&536870912)!==0?o=!1:(di=o=!0,(p===2||p===9||p===3||p===6)&&(p=$a.current,p!==null&&p.tag===13&&(p.flags|=16384))),Tx(i,o)):Qd(i)}function Qd(o){var i=o;do{if((i.flags&32768)!==0){Tx(i,di);return}o=i.return;var f=Dj(i.alternate,i,Ho);if(f!==null){mn=f;return}if(i=i.sibling,i!==null){mn=i;return}mn=i=o}while(i!==null);ur===0&&(ur=5)}function Tx(o,i){do{var f=Aj(o.alternate,o);if(f!==null){f.flags&=32767,mn=f;return}if(f=o.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!i&&(o=o.sibling,o!==null)){mn=o;return}mn=o=f}while(o!==null);ur=6,mn=null}function Ix(o,i,f,p,$,O,F,Y,fe){o.cancelPendingCommit=null;do Zd();while(Nr!==0);if((Rn&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(O=i.lanes|i.childLanes,O|=Kg,we(o,f,O,F,Y,fe),o===Un&&(mn=Un=null,vn=0),is=i,gi=o,Fo=f,Zv=O,Jv=$,yx=p,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,Xj(at,function(){return _x(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||p){p=P.T,P.T=null,$=B.p,B.p=2,F=Rn,Rn|=4;try{Bj(o,i,f)}finally{Rn=F,B.p=$,P.T=p}}Nr=1,Mx(),jx(),Px()}}function Mx(){if(Nr===1){Nr=0;var o=gi,i=is,f=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||f){f=P.T,P.T=null;var p=B.p;B.p=2;var $=Rn;Rn|=4;try{dx(i,o);var O=gp,F=hS(o.containerInfo),Y=O.focusedElem,fe=O.selectionRange;if(F!==Y&&Y&&Y.ownerDocument&&pS(Y.ownerDocument.documentElement,Y)){if(fe!==null&&Lg(Y)){var Ne=fe.start,Fe=fe.end;if(Fe===void 0&&(Fe=Ne),"selectionStart"in Y)Y.selectionStart=Ne,Y.selectionEnd=Math.min(Fe,Y.value.length);else{var qe=Y.ownerDocument||document,Pe=qe&&qe.defaultView||window;if(Pe.getSelection){var Ae=Pe.getSelection(),jt=Y.textContent.length,Ut=Math.min(fe.start,jt),Hn=fe.end===void 0?Ut:Math.min(fe.end,jt);!Ae.extend&&Ut>Hn&&(F=Hn,Hn=Ut,Ut=F);var $e=vS(Y,Ut),he=vS(Y,Hn);if($e&&he&&(Ae.rangeCount!==1||Ae.anchorNode!==$e.node||Ae.anchorOffset!==$e.offset||Ae.focusNode!==he.node||Ae.focusOffset!==he.offset)){var Re=qe.createRange();Re.setStart($e.node,$e.offset),Ae.removeAllRanges(),Ut>Hn?(Ae.addRange(Re),Ae.extend(he.node,he.offset)):(Re.setEnd(he.node,he.offset),Ae.addRange(Re))}}}}for(qe=[],Ae=Y;Ae=Ae.parentNode;)Ae.nodeType===1&&qe.push({element:Ae,left:Ae.scrollLeft,top:Ae.scrollTop});for(typeof Y.focus=="function"&&Y.focus(),Y=0;Y<qe.length;Y++){var Ue=qe[Y];Ue.element.scrollLeft=Ue.left,Ue.element.scrollTop=Ue.top}}df=!!mp,gp=mp=null}finally{Rn=$,B.p=p,P.T=f}}o.current=i,Nr=2}}function jx(){if(Nr===2){Nr=0;var o=gi,i=is,f=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||f){f=P.T,P.T=null;var p=B.p;B.p=2;var $=Rn;Rn|=4;try{ix(o,i.alternate,i)}finally{Rn=$,B.p=p,P.T=f}}Nr=3}}function Px(){if(Nr===4||Nr===3){Nr=0,Ee();var o=gi,i=is,f=Fo,p=yx;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Nr=5:(Nr=0,is=gi=null,zx(o,o.pendingLanes));var $=o.pendingLanes;if($===0&&(mi=null),nt(f),i=i.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(We,i,void 0,(i.current.flags&128)===128)}catch{}if(p!==null){i=P.T,$=B.p,B.p=2,P.T=null;try{for(var O=o.onRecoverableError,F=0;F<p.length;F++){var Y=p[F];O(Y.value,{componentStack:Y.stack})}}finally{P.T=i,B.p=$}}(Fo&3)!==0&&Zd(),po(o),$=o.pendingLanes,(f&261930)!==0&&($&42)!==0?o===ep?Hc++:(Hc=0,ep=o):Hc=0,Fc(0)}}function zx(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,Cc(i)))}function Zd(){return Mx(),jx(),Px(),_x()}function _x(){if(Nr!==5)return!1;var o=gi,i=Zv;Zv=0;var f=nt(Fo),p=P.T,$=B.p;try{B.p=32>f?32:f,P.T=null,f=Jv,Jv=null;var O=gi,F=Fo;if(Nr=0,is=gi=null,Fo=0,(Rn&6)!==0)throw Error(r(331));var Y=Rn;if(Rn|=4,px(O.current),mx(O,O.current,F,f),Rn=Y,Fc(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(We,O)}catch{}return!0}finally{B.p=$,P.T=p,zx(o,i)}}function Dx(o,i,f){i=_a(f,i),i=jv(o.stateNode,i,2),o=li(o,i,2),o!==null&&(be(o,2),po(o))}function jn(o,i,f){if(o.tag===3)Dx(o,o,f);else for(;i!==null;){if(i.tag===3){Dx(i,o,f);break}else if(i.tag===1){var p=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(mi===null||!mi.has(p))){o=_a(f,o),f=AC(2),p=li(i,f,2),p!==null&&(BC(f,p,i,o),be(p,2),po(p));break}}i=i.return}}function rp(o,i,f){var p=o.pingCache;if(p===null){p=o.pingCache=new Fj;var $=new Set;p.set(i,$)}else $=p.get(i),$===void 0&&($=new Set,p.set(i,$));$.has(f)||(Xv=!0,$.add(f),o=Uj.bind(null,o,i,f),i.then(o,o))}function Uj(o,i,f){var p=o.pingCache;p!==null&&p.delete(i),o.pingedLanes|=o.suspendedLanes&f,o.warmLanes&=~f,Un===o&&(vn&f)===f&&(ur===4||ur===3&&(vn&62914560)===vn&&300>xe()-Ud?(Rn&2)===0&&ls(o,0):Yv|=f,os===vn&&(os=0)),po(o)}function Ax(o,i){i===0&&(i=Mt()),o=Xi(o,i),o!==null&&(be(o,i),po(o))}function qj(o){var i=o.memoizedState,f=0;i!==null&&(f=i.retryLane),Ax(o,f)}function Gj(o,i){var f=0;switch(o.tag){case 31:case 13:var p=o.stateNode,$=o.memoizedState;$!==null&&(f=$.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(i),Ax(o,f)}function Xj(o,i){return ze(o,i)}var Jd=null,cs=null,ap=!1,ef=!1,op=!1,pi=0;function po(o){o!==cs&&o.next===null&&(cs===null?Jd=cs=o:cs=cs.next=o),ef=!0,ap||(ap=!0,Qj())}function Fc(o,i){if(!op&&ef){op=!0;do for(var f=!1,p=Jd;p!==null;){if(o!==0){var $=p.pendingLanes;if($===0)var O=0;else{var F=p.suspendedLanes,Y=p.pingedLanes;O=(1<<31-Me(42|o)+1)-1,O&=$&~(F&~Y),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(f=!0,Fx(p,O))}else O=vn,O=gt(p,p===Un?O:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(O&3)===0||ot(p,O)||(f=!0,Fx(p,O));p=p.next}while(f);op=!1}}function Yj(){Bx()}function Bx(){ef=ap=!1;var o=0;pi!==0&&l4()&&(o=pi);for(var i=xe(),f=null,p=Jd;p!==null;){var $=p.next,O=Lx(p,i);O===0?(p.next=null,f===null?Jd=$:f.next=$,$===null&&(cs=f)):(f=p,(o!==0||(O&3)!==0)&&(ef=!0)),p=$}Nr!==0&&Nr!==5||Fc(o),pi!==0&&(pi=0)}function Lx(o,i){for(var f=o.suspendedLanes,p=o.pingedLanes,$=o.expirationTimes,O=o.pendingLanes&-62914561;0<O;){var F=31-Me(O),Y=1<<F,fe=$[F];fe===-1?((Y&f)===0||(Y&p)!==0)&&($[F]=vt(Y,i)):fe<=i&&(o.expiredLanes|=Y),O&=~Y}if(i=Un,f=vn,f=gt(o,o===i?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,f===0||o===i&&(Mn===2||Mn===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&ve(p),o.callbackNode=null,o.callbackPriority=0;if((f&3)===0||ot(o,f)){if(i=f&-f,i===o.callbackPriority)return i;switch(p!==null&&ve(p),nt(f)){case 2:case 8:f=it;break;case 32:f=at;break;case 268435456:f=Je;break;default:f=at}return p=Hx.bind(null,o),f=ze(f,p),o.callbackPriority=i,o.callbackNode=f,i}return p!==null&&p!==null&&ve(p),o.callbackPriority=2,o.callbackNode=null,2}function Hx(o,i){if(Nr!==0&&Nr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var f=o.callbackNode;if(Zd()&&o.callbackNode!==f)return null;var p=vn;return p=gt(o,o===Un?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(Cx(o,p,i),Lx(o,xe()),o.callbackNode!=null&&o.callbackNode===f?Hx.bind(null,o):null)}function Fx(o,i){if(Zd())return null;Cx(o,i,!0)}function Qj(){c4(function(){(Rn&6)!==0?ze(Xe,Yj):Bx()})}function ip(){if(pi===0){var o=Gl;o===0&&(o=Dt,Dt<<=1,(Dt&261888)===0&&(Dt=256)),pi=o}return pi}function kx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Kn(""+o)}function Vx(o,i){var f=i.ownerDocument.createElement("input");return f.name=i.name,f.value=i.value,o.id&&f.setAttribute("form",o.id),i.parentNode.insertBefore(f,i),o=new FormData(o),f.parentNode.removeChild(f),o}function Zj(o,i,f,p,$){if(i==="submit"&&f&&f.stateNode===$){var O=kx(($[Ze]||null).action),F=p.submitter;F&&(i=(i=F[Ze]||null)?kx(i.formAction):F.getAttribute("formAction"),i!==null&&(O=i,F=null));var Y=new fd("action","action",null,p,$);o.push({event:Y,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(pi!==0){var fe=F?Vx($,F):new FormData($);Ov(f,{pending:!0,data:fe,method:$.method,action:O},null,fe)}}else typeof O=="function"&&(Y.preventDefault(),fe=F?Vx($,F):new FormData($),Ov(f,{pending:!0,data:fe,method:$.method,action:O},O,fe))},currentTarget:$}]})}}for(var lp=0;lp<Vg.length;lp++){var sp=Vg[lp],Jj=sp.toLowerCase(),e4=sp[0].toUpperCase()+sp.slice(1);Za(Jj,"on"+e4)}Za(SS,"onAnimationEnd"),Za(CS,"onAnimationIteration"),Za(xS,"onAnimationStart"),Za("dblclick","onDoubleClick"),Za("focusin","onFocus"),Za("focusout","onBlur"),Za(pj,"onTransitionRun"),Za(hj,"onTransitionStart"),Za(bj,"onTransitionCancel"),Za($S,"onTransitionEnd"),ut("onMouseEnter",["mouseout","mouseover"]),ut("onMouseLeave",["mouseout","mouseover"]),ut("onPointerEnter",["pointerout","pointerover"]),ut("onPointerLeave",["pointerout","pointerover"]),qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qt("onBeforeInput",["compositionend","keypress","textInput","paste"]),qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kc="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(" "),t4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kc));function Kx(o,i){i=(i&4)!==0;for(var f=0;f<o.length;f++){var p=o[f],$=p.event;p=p.listeners;e:{var O=void 0;if(i)for(var F=p.length-1;0<=F;F--){var Y=p[F],fe=Y.instance,Ne=Y.currentTarget;if(Y=Y.listener,fe!==O&&$.isPropagationStopped())break e;O=Y,$.currentTarget=Ne;try{O($)}catch(Fe){vd(Fe)}$.currentTarget=null,O=fe}else for(F=0;F<p.length;F++){if(Y=p[F],fe=Y.instance,Ne=Y.currentTarget,Y=Y.listener,fe!==O&&$.isPropagationStopped())break e;O=Y,$.currentTarget=Ne;try{O($)}catch(Fe){vd(Fe)}$.currentTarget=null,O=fe}}}}function gn(o,i){var f=i[Ft];f===void 0&&(f=i[Ft]=new Set);var p=o+"__bubble";f.has(p)||(Wx(i,o,2,!1),f.add(p))}function cp(o,i,f){var p=0;i&&(p|=4),Wx(f,o,p,i)}var tf="_reactListening"+Math.random().toString(36).slice(2);function up(o){if(!o[tf]){o[tf]=!0,bt.forEach(function(f){f!=="selectionchange"&&(t4.has(f)||cp(f,!1,o),cp(f,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[tf]||(i[tf]=!0,cp("selectionchange",!1,i))}}function Wx(o,i,f,p){switch(S1(i)){case 2:var $=T4;break;case 8:$=I4;break;default:$=Ep}f=$.bind(null,i,f,o),$=void 0,!An||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||($=!0),p?$!==void 0?o.addEventListener(i,f,{capture:!0,passive:$}):o.addEventListener(i,f,!0):$!==void 0?o.addEventListener(i,f,{passive:$}):o.addEventListener(i,f,!1)}function dp(o,i,f,p,$){var O=p;if((i&1)===0&&(i&2)===0&&p!==null)e:for(;;){if(p===null)return;var F=p.tag;if(F===3||F===4){var Y=p.stateNode.containerInfo;if(Y===$)break;if(F===4)for(F=p.return;F!==null;){var fe=F.tag;if((fe===3||fe===4)&&F.stateNode.containerInfo===$)return;F=F.return}for(;Y!==null;){if(F=rt(Y),F===null)return;if(fe=F.tag,fe===5||fe===6||fe===26||fe===27){p=O=F;continue e}Y=Y.parentNode}}p=p.return}Bl(function(){var Ne=O,Fe=zr(f),qe=[];e:{var Pe=wS.get(o);if(Pe!==void 0){var Ae=fd,jt=o;switch(o){case"keypress":if(Ro(f)===0)break e;case"keydown":case"keyup":Ae=GM;break;case"focusin":jt="focus",Ae=zg;break;case"focusout":jt="blur",Ae=zg;break;case"beforeblur":case"afterblur":Ae=zg;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ae=Jy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ae=DM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ae=QM;break;case SS:case CS:case xS:Ae=LM;break;case $S:Ae=JM;break;case"scroll":case"scrollend":Ae=zM;break;case"wheel":Ae=tj;break;case"copy":case"cut":case"paste":Ae=FM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ae=tS;break;case"toggle":case"beforetoggle":Ae=rj}var Ut=(i&4)!==0,Hn=!Ut&&(o==="scroll"||o==="scrollend"),$e=Ut?Pe!==null?Pe+"Capture":null:Pe;Ut=[];for(var he=Ne,Re;he!==null;){var Ue=he;if(Re=Ue.stateNode,Ue=Ue.tag,Ue!==5&&Ue!==26&&Ue!==27||Re===null||$e===null||(Ue=Rt(he,$e),Ue!=null&&Ut.push(Vc(he,Ue,Re))),Hn)break;he=he.return}0<Ut.length&&(Pe=new Ae(Pe,jt,null,f,Fe),qe.push({event:Pe,listeners:Ut}))}}if((i&7)===0){e:{if(Pe=o==="mouseover"||o==="pointerover",Ae=o==="mouseout"||o==="pointerout",Pe&&f!==Rr&&(jt=f.relatedTarget||f.fromElement)&&(rt(jt)||jt[Ct]))break e;if((Ae||Pe)&&(Pe=Fe.window===Fe?Fe:(Pe=Fe.ownerDocument)?Pe.defaultView||Pe.parentWindow:window,Ae?(jt=f.relatedTarget||f.toElement,Ae=Ne,jt=jt?rt(jt):null,jt!==null&&(Hn=l(jt),Ut=jt.tag,jt!==Hn||Ut!==5&&Ut!==27&&Ut!==6)&&(jt=null)):(Ae=null,jt=Ne),Ae!==jt)){if(Ut=Jy,Ue="onMouseLeave",$e="onMouseEnter",he="mouse",(o==="pointerout"||o==="pointerover")&&(Ut=tS,Ue="onPointerLeave",$e="onPointerEnter",he="pointer"),Hn=Ae==null?Pe:It(Ae),Re=jt==null?Pe:It(jt),Pe=new Ut(Ue,he+"leave",Ae,f,Fe),Pe.target=Hn,Pe.relatedTarget=Re,Ue=null,rt(Fe)===Ne&&(Ut=new Ut($e,he+"enter",jt,f,Fe),Ut.target=Re,Ut.relatedTarget=Hn,Ue=Ut),Hn=Ue,Ae&&jt)t:{for(Ut=n4,$e=Ae,he=jt,Re=0,Ue=$e;Ue;Ue=Ut(Ue))Re++;Ue=0;for(var Vt=he;Vt;Vt=Ut(Vt))Ue++;for(;0<Re-Ue;)$e=Ut($e),Re--;for(;0<Ue-Re;)he=Ut(he),Ue--;for(;Re--;){if($e===he||he!==null&&$e===he.alternate){Ut=$e;break t}$e=Ut($e),he=Ut(he)}Ut=null}else Ut=null;Ae!==null&&Ux(qe,Pe,Ae,Ut,!1),jt!==null&&Hn!==null&&Ux(qe,Hn,jt,Ut,!0)}}e:{if(Pe=Ne?It(Ne):window,Ae=Pe.nodeName&&Pe.nodeName.toLowerCase(),Ae==="select"||Ae==="input"&&Pe.type==="file")var xn=cS;else if(lS(Pe))if(uS)xn=mj;else{xn=dj;var _t=uj}else Ae=Pe.nodeName,!Ae||Ae.toLowerCase()!=="input"||Pe.type!=="checkbox"&&Pe.type!=="radio"?Ne&&Xt(Ne.elementType)&&(xn=cS):xn=fj;if(xn&&(xn=xn(o,Ne))){sS(qe,xn,f,Fe);break e}_t&&_t(o,Pe,Ne),o==="focusout"&&Ne&&Pe.type==="number"&&Ne.memoizedProps.value!=null&&En(Pe,"number",Pe.value)}switch(_t=Ne?It(Ne):window,o){case"focusin":(lS(_t)||_t.contentEditable==="true")&&(Hl=_t,Hg=Ne,bc=null);break;case"focusout":bc=Hg=Hl=null;break;case"mousedown":Fg=!0;break;case"contextmenu":case"mouseup":case"dragend":Fg=!1,bS(qe,f,Fe);break;case"selectionchange":if(vj)break;case"keydown":case"keyup":bS(qe,f,Fe)}var sn;if(Dg)e:{switch(o){case"compositionstart":var pn="onCompositionStart";break e;case"compositionend":pn="onCompositionEnd";break e;case"compositionupdate":pn="onCompositionUpdate";break e}pn=void 0}else Ll?oS(o,f)&&(pn="onCompositionEnd"):o==="keydown"&&f.keyCode===229&&(pn="onCompositionStart");pn&&(nS&&f.locale!=="ko"&&(Ll||pn!=="onCompositionStart"?pn==="onCompositionEnd"&&Ll&&(sn=dc()):(Cn=Fe,Jo="value"in Cn?Cn.value:Cn.textContent,Ll=!0)),_t=nf(Ne,pn),0<_t.length&&(pn=new eS(pn,o,null,f,Fe),qe.push({event:pn,listeners:_t}),sn?pn.data=sn:(sn=iS(f),sn!==null&&(pn.data=sn)))),(sn=oj?ij(o,f):lj(o,f))&&(pn=nf(Ne,"onBeforeInput"),0<pn.length&&(_t=new eS("onBeforeInput","beforeinput",null,f,Fe),qe.push({event:_t,listeners:pn}),_t.data=sn)),Zj(qe,o,Ne,f,Fe)}Kx(qe,i)})}function Vc(o,i,f){return{instance:o,listener:i,currentTarget:f}}function nf(o,i){for(var f=i+"Capture",p=[];o!==null;){var $=o,O=$.stateNode;if($=$.tag,$!==5&&$!==26&&$!==27||O===null||($=Rt(o,f),$!=null&&p.unshift(Vc(o,$,O)),$=Rt(o,i),$!=null&&p.push(Vc(o,$,O))),o.tag===3)return p;o=o.return}return[]}function n4(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Ux(o,i,f,p,$){for(var O=i._reactName,F=[];f!==null&&f!==p;){var Y=f,fe=Y.alternate,Ne=Y.stateNode;if(Y=Y.tag,fe!==null&&fe===p)break;Y!==5&&Y!==26&&Y!==27||Ne===null||(fe=Ne,$?(Ne=Rt(f,O),Ne!=null&&F.unshift(Vc(f,Ne,fe))):$||(Ne=Rt(f,O),Ne!=null&&F.push(Vc(f,Ne,fe)))),f=f.return}F.length!==0&&o.push({event:i,listeners:F})}var r4=/\r\n?/g,a4=/\u0000|\uFFFD/g;function qx(o){return(typeof o=="string"?o:""+o).replace(r4,`
|
|
442
|
+
`).replace(a4,"")}function Gx(o,i){return i=qx(i),qx(o)===i}function Ln(o,i,f,p,$,O){switch(f){case"children":typeof p=="string"?i==="body"||i==="textarea"&&p===""||Vn(o,p):(typeof p=="number"||typeof p=="bigint")&&i!=="body"&&Vn(o,""+p);break;case"className":sr(o,"class",p);break;case"tabIndex":sr(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":sr(o,f,p);break;case"style":Lt(o,p,O);break;case"data":if(i!=="object"){sr(o,"data",p);break}case"src":case"href":if(p===""&&(i!=="a"||f!=="href")){o.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(f);break}p=Kn(""+p),o.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){o.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof O=="function"&&(f==="formAction"?(i!=="input"&&Ln(o,i,"name",$.name,$,null),Ln(o,i,"formEncType",$.formEncType,$,null),Ln(o,i,"formMethod",$.formMethod,$,null),Ln(o,i,"formTarget",$.formTarget,$,null)):(Ln(o,i,"encType",$.encType,$,null),Ln(o,i,"method",$.method,$,null),Ln(o,i,"target",$.target,$,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(f);break}p=Kn(""+p),o.setAttribute(f,p);break;case"onClick":p!=null&&(o.onclick=On);break;case"onScroll":p!=null&&gn("scroll",o);break;case"onScrollEnd":p!=null&&gn("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if($.children!=null)throw Error(r(60));o.innerHTML=f}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}f=Kn(""+p),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(f,""+p):o.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(f,""):o.removeAttribute(f);break;case"capture":case"download":p===!0?o.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(f,p):o.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(f,p):o.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(f):o.setAttribute(f,p);break;case"popover":gn("beforetoggle",o),gn("toggle",o),lr(o,"popover",p);break;case"xlinkActuate":Tn(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Tn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Tn(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Tn(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Tn(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Tn(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Tn(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Tn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Tn(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":lr(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=ir.get(f)||f,lr(o,f,p))}}function fp(o,i,f,p,$,O){switch(f){case"style":Lt(o,p,O);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if($.children!=null)throw Error(r(60));o.innerHTML=f}}break;case"children":typeof p=="string"?Vn(o,p):(typeof p=="number"||typeof p=="bigint")&&Vn(o,""+p);break;case"onScroll":p!=null&&gn("scroll",o);break;case"onScrollEnd":p!=null&&gn("scrollend",o);break;case"onClick":p!=null&&(o.onclick=On);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bt.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&($=f.endsWith("Capture"),i=f.slice(2,$?f.length-7:void 0),O=o[Ze]||null,O=O!=null?O[f]:null,typeof O=="function"&&o.removeEventListener(i,O,$),typeof p=="function")){typeof O!="function"&&O!==null&&(f in o?o[f]=null:o.hasAttribute(f)&&o.removeAttribute(f)),o.addEventListener(i,p,$);break e}f in o?o[f]=p:p===!0?o.setAttribute(f,""):lr(o,f,p)}}}function qr(o,i,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gn("error",o),gn("load",o);var p=!1,$=!1,O;for(O in f)if(f.hasOwnProperty(O)){var F=f[O];if(F!=null)switch(O){case"src":p=!0;break;case"srcSet":$=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ln(o,i,O,F,f,null)}}$&&Ln(o,i,"srcSet",f.srcSet,f,null),p&&Ln(o,i,"src",f.src,f,null);return;case"input":gn("invalid",o);var Y=O=F=$=null,fe=null,Ne=null;for(p in f)if(f.hasOwnProperty(p)){var Fe=f[p];if(Fe!=null)switch(p){case"name":$=Fe;break;case"type":F=Fe;break;case"checked":fe=Fe;break;case"defaultChecked":Ne=Fe;break;case"value":O=Fe;break;case"defaultValue":Y=Fe;break;case"children":case"dangerouslySetInnerHTML":if(Fe!=null)throw Error(r(137,i));break;default:Ln(o,i,p,Fe,f,null)}}yn(o,O,Y,fe,Ne,F,$,!1);return;case"select":gn("invalid",o),p=F=O=null;for($ in f)if(f.hasOwnProperty($)&&(Y=f[$],Y!=null))switch($){case"value":O=Y;break;case"defaultValue":F=Y;break;case"multiple":p=Y;default:Ln(o,i,$,Y,f,null)}i=O,f=F,o.multiple=!!p,i!=null?Yn(o,!!p,i,!1):f!=null&&Yn(o,!!p,f,!0);return;case"textarea":gn("invalid",o),O=$=p=null;for(F in f)if(f.hasOwnProperty(F)&&(Y=f[F],Y!=null))switch(F){case"value":p=Y;break;case"defaultValue":$=Y;break;case"children":O=Y;break;case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(91));break;default:Ln(o,i,F,Y,f,null)}dr(o,p,$,O);return;case"option":for(fe in f)if(f.hasOwnProperty(fe)&&(p=f[fe],p!=null))switch(fe){case"selected":o.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Ln(o,i,fe,p,f,null)}return;case"dialog":gn("beforetoggle",o),gn("toggle",o),gn("cancel",o),gn("close",o);break;case"iframe":case"object":gn("load",o);break;case"video":case"audio":for(p=0;p<kc.length;p++)gn(kc[p],o);break;case"image":gn("error",o),gn("load",o);break;case"details":gn("toggle",o);break;case"embed":case"source":case"link":gn("error",o),gn("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ne in f)if(f.hasOwnProperty(Ne)&&(p=f[Ne],p!=null))switch(Ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ln(o,i,Ne,p,f,null)}return;default:if(Xt(i)){for(Fe in f)f.hasOwnProperty(Fe)&&(p=f[Fe],p!==void 0&&fp(o,i,Fe,p,f,void 0));return}}for(Y in f)f.hasOwnProperty(Y)&&(p=f[Y],p!=null&&Ln(o,i,Y,p,f,null))}function o4(o,i,f,p){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var $=null,O=null,F=null,Y=null,fe=null,Ne=null,Fe=null;for(Ae in f){var qe=f[Ae];if(f.hasOwnProperty(Ae)&&qe!=null)switch(Ae){case"checked":break;case"value":break;case"defaultValue":fe=qe;default:p.hasOwnProperty(Ae)||Ln(o,i,Ae,null,p,qe)}}for(var Pe in p){var Ae=p[Pe];if(qe=f[Pe],p.hasOwnProperty(Pe)&&(Ae!=null||qe!=null))switch(Pe){case"type":O=Ae;break;case"name":$=Ae;break;case"checked":Ne=Ae;break;case"defaultChecked":Fe=Ae;break;case"value":F=Ae;break;case"defaultValue":Y=Ae;break;case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,i));break;default:Ae!==qe&&Ln(o,i,Pe,Ae,p,qe)}}ln(o,F,Y,fe,Ne,Fe,O,$);return;case"select":Ae=F=Y=Pe=null;for(O in f)if(fe=f[O],f.hasOwnProperty(O)&&fe!=null)switch(O){case"value":break;case"multiple":Ae=fe;default:p.hasOwnProperty(O)||Ln(o,i,O,null,p,fe)}for($ in p)if(O=p[$],fe=f[$],p.hasOwnProperty($)&&(O!=null||fe!=null))switch($){case"value":Pe=O;break;case"defaultValue":Y=O;break;case"multiple":F=O;default:O!==fe&&Ln(o,i,$,O,p,fe)}i=Y,f=F,p=Ae,Pe!=null?Yn(o,!!f,Pe,!1):!!p!=!!f&&(i!=null?Yn(o,!!f,i,!0):Yn(o,!!f,f?[]:"",!1));return;case"textarea":Ae=Pe=null;for(Y in f)if($=f[Y],f.hasOwnProperty(Y)&&$!=null&&!p.hasOwnProperty(Y))switch(Y){case"value":break;case"children":break;default:Ln(o,i,Y,null,p,$)}for(F in p)if($=p[F],O=f[F],p.hasOwnProperty(F)&&($!=null||O!=null))switch(F){case"value":Pe=$;break;case"defaultValue":Ae=$;break;case"children":break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:$!==O&&Ln(o,i,F,$,p,O)}Jn(o,Pe,Ae);return;case"option":for(var jt in f)if(Pe=f[jt],f.hasOwnProperty(jt)&&Pe!=null&&!p.hasOwnProperty(jt))switch(jt){case"selected":o.selected=!1;break;default:Ln(o,i,jt,null,p,Pe)}for(fe in p)if(Pe=p[fe],Ae=f[fe],p.hasOwnProperty(fe)&&Pe!==Ae&&(Pe!=null||Ae!=null))switch(fe){case"selected":o.selected=Pe&&typeof Pe!="function"&&typeof Pe!="symbol";break;default:Ln(o,i,fe,Pe,p,Ae)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ut in f)Pe=f[Ut],f.hasOwnProperty(Ut)&&Pe!=null&&!p.hasOwnProperty(Ut)&&Ln(o,i,Ut,null,p,Pe);for(Ne in p)if(Pe=p[Ne],Ae=f[Ne],p.hasOwnProperty(Ne)&&Pe!==Ae&&(Pe!=null||Ae!=null))switch(Ne){case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,i));break;default:Ln(o,i,Ne,Pe,p,Ae)}return;default:if(Xt(i)){for(var Hn in f)Pe=f[Hn],f.hasOwnProperty(Hn)&&Pe!==void 0&&!p.hasOwnProperty(Hn)&&fp(o,i,Hn,void 0,p,Pe);for(Fe in p)Pe=p[Fe],Ae=f[Fe],!p.hasOwnProperty(Fe)||Pe===Ae||Pe===void 0&&Ae===void 0||fp(o,i,Fe,Pe,p,Ae);return}}for(var $e in f)Pe=f[$e],f.hasOwnProperty($e)&&Pe!=null&&!p.hasOwnProperty($e)&&Ln(o,i,$e,null,p,Pe);for(qe in p)Pe=p[qe],Ae=f[qe],!p.hasOwnProperty(qe)||Pe===Ae||Pe==null&&Ae==null||Ln(o,i,qe,Pe,p,Ae)}function Xx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function i4(){if(typeof performance.getEntriesByType=="function"){for(var o=0,i=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var $=f[p],O=$.transferSize,F=$.initiatorType,Y=$.duration;if(O&&Y&&Xx(F)){for(F=0,Y=$.responseEnd,p+=1;p<f.length;p++){var fe=f[p],Ne=fe.startTime;if(Ne>Y)break;var Fe=fe.transferSize,qe=fe.initiatorType;Fe&&Xx(qe)&&(fe=fe.responseEnd,F+=Fe*(fe<Y?1:(Y-Ne)/(fe-Ne)))}if(--p,i+=8*(O+F)/($.duration/1e3),o++,10<o)break}}if(0<o)return i/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var mp=null,gp=null;function rf(o){return o.nodeType===9?o:o.ownerDocument}function Yx(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qx(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function vp(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var pp=null;function l4(){var o=window.event;return o&&o.type==="popstate"?o===pp?!1:(pp=o,!0):(pp=null,!1)}var Zx=typeof setTimeout=="function"?setTimeout:void 0,s4=typeof clearTimeout=="function"?clearTimeout:void 0,Jx=typeof Promise=="function"?Promise:void 0,c4=typeof queueMicrotask=="function"?queueMicrotask:typeof Jx<"u"?function(o){return Jx.resolve(null).then(o).catch(u4)}:Zx;function u4(o){setTimeout(function(){throw o})}function hi(o){return o==="head"}function e1(o,i){var f=i,p=0;do{var $=f.nextSibling;if(o.removeChild(f),$&&$.nodeType===8)if(f=$.data,f==="/$"||f==="/&"){if(p===0){o.removeChild($),ms(i);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")Kc(o.ownerDocument.documentElement);else if(f==="head"){f=o.ownerDocument.head,Kc(f);for(var O=f.firstChild;O;){var F=O.nextSibling,Y=O.nodeName;O[Wt]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&O.rel.toLowerCase()==="stylesheet"||f.removeChild(O),O=F}}else f==="body"&&Kc(o.ownerDocument.body);f=$}while(f);ms(i)}function t1(o,i){var f=o;o=0;do{var p=f.nextSibling;if(f.nodeType===1?i?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(i?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(o===0)break;o--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||o++;f=p}while(f)}function hp(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var f=i;switch(i=i.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":hp(f),on(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}o.removeChild(f)}}function d4(o,i,f,p){for(;o.nodeType===1;){var $=f;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[Wt])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(O=o.getAttribute("rel"),O==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(O!==$.rel||o.getAttribute("href")!==($.href==null||$.href===""?null:$.href)||o.getAttribute("crossorigin")!==($.crossOrigin==null?null:$.crossOrigin)||o.getAttribute("title")!==($.title==null?null:$.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(O=o.getAttribute("src"),(O!==($.src==null?null:$.src)||o.getAttribute("type")!==($.type==null?null:$.type)||o.getAttribute("crossorigin")!==($.crossOrigin==null?null:$.crossOrigin))&&O&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var O=$.name==null?null:""+$.name;if($.type==="hidden"&&o.getAttribute("name")===O)return o}else return o;if(o=Ha(o.nextSibling),o===null)break}return null}function f4(o,i,f){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!f||(o=Ha(o.nextSibling),o===null))return null;return o}function n1(o,i){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!i||(o=Ha(o.nextSibling),o===null))return null;return o}function bp(o){return o.data==="$?"||o.data==="$~"}function yp(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function m4(o,i){var f=o.ownerDocument;if(o.data==="$~")o._reactRetry=i;else if(o.data!=="$?"||f.readyState!=="loading")i();else{var p=function(){i(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function Ha(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return o}var Sp=null;function r1(o){o=o.nextSibling;for(var i=0;o;){if(o.nodeType===8){var f=o.data;if(f==="/$"||f==="/&"){if(i===0)return Ha(o.nextSibling);i--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||i++}o=o.nextSibling}return null}function a1(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var f=o.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(i===0)return o;i--}else f!=="/$"&&f!=="/&"||i++}o=o.previousSibling}return null}function o1(o,i,f){switch(i=rf(f),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Kc(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);on(o)}var Fa=new Map,i1=new Set;function af(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ko=B.d;B.d={f:g4,r:v4,D:p4,C:h4,L:b4,m:y4,X:C4,S:S4,M:x4};function g4(){var o=ko.f(),i=Xd();return o||i}function v4(o){var i=dt(o);i!==null&&i.tag===5&&i.type==="form"?$C(i):ko.r(o)}var us=typeof document>"u"?null:document;function l1(o,i,f){var p=us;if(p&&typeof i=="string"&&i){var $=Gt(i);$='link[rel="'+o+'"][href="'+$+'"]',typeof f=="string"&&($+='[crossorigin="'+f+'"]'),i1.has($)||(i1.add($),o={rel:o,crossOrigin:f,href:i},p.querySelector($)===null&&(i=p.createElement("link"),qr(i,"link",o),st(i),p.head.appendChild(i)))}}function p4(o){ko.D(o),l1("dns-prefetch",o,null)}function h4(o,i){ko.C(o,i),l1("preconnect",o,i)}function b4(o,i,f){ko.L(o,i,f);var p=us;if(p&&o&&i){var $='link[rel="preload"][as="'+Gt(i)+'"]';i==="image"&&f&&f.imageSrcSet?($+='[imagesrcset="'+Gt(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&($+='[imagesizes="'+Gt(f.imageSizes)+'"]')):$+='[href="'+Gt(o)+'"]';var O=$;switch(i){case"style":O=ds(o);break;case"script":O=fs(o)}Fa.has(O)||(o=v({rel:"preload",href:i==="image"&&f&&f.imageSrcSet?void 0:o,as:i},f),Fa.set(O,o),p.querySelector($)!==null||i==="style"&&p.querySelector(Wc(O))||i==="script"&&p.querySelector(Uc(O))||(i=p.createElement("link"),qr(i,"link",o),st(i),p.head.appendChild(i)))}}function y4(o,i){ko.m(o,i);var f=us;if(f&&o){var p=i&&typeof i.as=="string"?i.as:"script",$='link[rel="modulepreload"][as="'+Gt(p)+'"][href="'+Gt(o)+'"]',O=$;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=fs(o)}if(!Fa.has(O)&&(o=v({rel:"modulepreload",href:o},i),Fa.set(O,o),f.querySelector($)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Uc(O)))return}p=f.createElement("link"),qr(p,"link",o),st(p),f.head.appendChild(p)}}}function S4(o,i,f){ko.S(o,i,f);var p=us;if(p&&o){var $=wt(p).hoistableStyles,O=ds(o);i=i||"default";var F=$.get(O);if(!F){var Y={loading:0,preload:null};if(F=p.querySelector(Wc(O)))Y.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":i},f),(f=Fa.get(O))&&Cp(o,f);var fe=F=p.createElement("link");st(fe),qr(fe,"link",o),fe._p=new Promise(function(Ne,Fe){fe.onload=Ne,fe.onerror=Fe}),fe.addEventListener("load",function(){Y.loading|=1}),fe.addEventListener("error",function(){Y.loading|=2}),Y.loading|=4,of(F,i,p)}F={type:"stylesheet",instance:F,count:1,state:Y},$.set(O,F)}}}function C4(o,i){ko.X(o,i);var f=us;if(f&&o){var p=wt(f).hoistableScripts,$=fs(o),O=p.get($);O||(O=f.querySelector(Uc($)),O||(o=v({src:o,async:!0},i),(i=Fa.get($))&&xp(o,i),O=f.createElement("script"),st(O),qr(O,"link",o),f.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},p.set($,O))}}function x4(o,i){ko.M(o,i);var f=us;if(f&&o){var p=wt(f).hoistableScripts,$=fs(o),O=p.get($);O||(O=f.querySelector(Uc($)),O||(o=v({src:o,async:!0,type:"module"},i),(i=Fa.get($))&&xp(o,i),O=f.createElement("script"),st(O),qr(O,"link",o),f.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},p.set($,O))}}function s1(o,i,f,p){var $=($=ne.current)?af($):null;if(!$)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(i=ds(f.href),f=wt($).hoistableStyles,p=f.get(i),p||(p={type:"style",instance:null,count:0,state:null},f.set(i,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){o=ds(f.href);var O=wt($).hoistableStyles,F=O.get(o);if(F||($=$.ownerDocument||$,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(o,F),(O=$.querySelector(Wc(o)))&&!O._p&&(F.instance=O,F.state.loading=5),Fa.has(o)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Fa.set(o,f),O||$4($,o,f,F.state))),i&&p===null)throw Error(r(528,""));return F}if(i&&p!==null)throw Error(r(529,""));return null;case"script":return i=f.async,f=f.src,typeof f=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=fs(f),f=wt($).hoistableScripts,p=f.get(i),p||(p={type:"script",instance:null,count:0,state:null},f.set(i,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function ds(o){return'href="'+Gt(o)+'"'}function Wc(o){return'link[rel="stylesheet"]['+o+"]"}function c1(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function $4(o,i,f,p){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?p.loading=1:(i=o.createElement("link"),p.preload=i,i.addEventListener("load",function(){return p.loading|=1}),i.addEventListener("error",function(){return p.loading|=2}),qr(i,"link",f),st(i),o.head.appendChild(i))}function fs(o){return'[src="'+Gt(o)+'"]'}function Uc(o){return"script[async]"+o}function u1(o,i,f){if(i.count++,i.instance===null)switch(i.type){case"style":var p=o.querySelector('style[data-href~="'+Gt(f.href)+'"]');if(p)return i.instance=p,st(p),p;var $=v({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),st(p),qr(p,"style",$),of(p,f.precedence,o),i.instance=p;case"stylesheet":$=ds(f.href);var O=o.querySelector(Wc($));if(O)return i.state.loading|=4,i.instance=O,st(O),O;p=c1(f),($=Fa.get($))&&Cp(p,$),O=(o.ownerDocument||o).createElement("link"),st(O);var F=O;return F._p=new Promise(function(Y,fe){F.onload=Y,F.onerror=fe}),qr(O,"link",p),i.state.loading|=4,of(O,f.precedence,o),i.instance=O;case"script":return O=fs(f.src),($=o.querySelector(Uc(O)))?(i.instance=$,st($),$):(p=f,($=Fa.get(O))&&(p=v({},f),xp(p,$)),o=o.ownerDocument||o,$=o.createElement("script"),st($),qr($,"link",p),o.head.appendChild($),i.instance=$);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(p=i.instance,i.state.loading|=4,of(p,f.precedence,o));return i.instance}function of(o,i,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),$=p.length?p[p.length-1]:null,O=$,F=0;F<p.length;F++){var Y=p[F];if(Y.dataset.precedence===i)O=Y;else if(O!==$)break}O?O.parentNode.insertBefore(o,O.nextSibling):(i=f.nodeType===9?f.head:f,i.insertBefore(o,i.firstChild))}function Cp(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function xp(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var lf=null;function d1(o,i,f){if(lf===null){var p=new Map,$=lf=new Map;$.set(f,p)}else $=lf,p=$.get(f),p||(p=new Map,$.set(f,p));if(p.has(o))return p;for(p.set(o,null),f=f.getElementsByTagName(o),$=0;$<f.length;$++){var O=f[$];if(!(O[Wt]||O[tt]||o==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var F=O.getAttribute(i)||"";F=o+F;var Y=p.get(F);Y?Y.push(O):p.set(F,[O])}}return p}function f1(o,i,f){o=o.ownerDocument||o,o.head.insertBefore(f,i==="title"?o.querySelector("head > title"):null)}function w4(o,i,f){if(f===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return o=i.disabled,typeof i.precedence=="string"&&o==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function m1(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function E4(o,i,f,p){if(f.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var $=ds(p.href),O=i.querySelector(Wc($));if(O){i=O._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(o.count++,o=sf.bind(o),i.then(o,o)),f.state.loading|=4,f.instance=O,st(O);return}O=i.ownerDocument||i,p=c1(p),($=Fa.get($))&&Cp(p,$),O=O.createElement("link"),st(O);var F=O;F._p=new Promise(function(Y,fe){F.onload=Y,F.onerror=fe}),qr(O,"link",p),f.instance=O}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(f,i),(i=f.state.preload)&&(f.state.loading&3)===0&&(o.count++,f=sf.bind(o),i.addEventListener("load",f),i.addEventListener("error",f))}}var $p=0;function O4(o,i){return o.stylesheets&&o.count===0&&uf(o,o.stylesheets),0<o.count||0<o.imgCount?function(f){var p=setTimeout(function(){if(o.stylesheets&&uf(o,o.stylesheets),o.unsuspend){var O=o.unsuspend;o.unsuspend=null,O()}},6e4+i);0<o.imgBytes&&$p===0&&($p=62500*i4());var $=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&uf(o,o.stylesheets),o.unsuspend)){var O=o.unsuspend;o.unsuspend=null,O()}},(o.imgBytes>$p?50:800)+i);return o.unsuspend=f,function(){o.unsuspend=null,clearTimeout(p),clearTimeout($)}}:null}function sf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var cf=null;function uf(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,cf=new Map,i.forEach(R4,o),cf=null,sf.call(o))}function R4(o,i){if(!(i.state.loading&4)){var f=cf.get(o);if(f)var p=f.get(null);else{f=new Map,cf.set(o,f);for(var $=o.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<$.length;O++){var F=$[O];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(f.set(F.dataset.precedence,F),p=F)}p&&f.set(null,p)}$=i.instance,F=$.getAttribute("data-precedence"),O=f.get(F)||p,O===p&&f.set(null,$),f.set(F,$),this.count++,p=sf.bind(this),$.addEventListener("load",p),$.addEventListener("error",p),O?O.parentNode.insertBefore($,O.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore($,o.firstChild)),i.state.loading|=4}}var qc={$$typeof:E,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function N4(o,i,f,p,$,O,F,Y,fe){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pe(0),this.hiddenUpdates=pe(null),this.identifierPrefix=p,this.onUncaughtError=$,this.onCaughtError=O,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=fe,this.incompleteTransitions=new Map}function g1(o,i,f,p,$,O,F,Y,fe,Ne,Fe,qe){return o=new N4(o,i,f,F,fe,Ne,Fe,qe,Y),i=1,O===!0&&(i|=24),O=xa(3,null,null,i),o.current=O,O.stateNode=o,i=nv(),i.refCount++,o.pooledCache=i,i.refCount++,O.memoizedState={element:p,isDehydrated:f,cache:i},iv(O),o}function v1(o){return o?(o=Vl,o):Vl}function p1(o,i,f,p,$,O){$=v1($),p.context===null?p.context=$:p.pendingContext=$,p=ii(i),p.payload={element:f},O=O===void 0?null:O,O!==null&&(p.callback=O),f=li(o,p,i),f!==null&&(va(f,o,i),Ec(f,o,i))}function h1(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var f=o.retryLane;o.retryLane=f!==0&&f<i?f:i}}function wp(o,i){h1(o,i),(o=o.alternate)&&h1(o,i)}function b1(o){if(o.tag===13||o.tag===31){var i=Xi(o,67108864);i!==null&&va(i,o,67108864),wp(o,67108864)}}function y1(o){if(o.tag===13||o.tag===31){var i=Ra();i=Le(i);var f=Xi(o,i);f!==null&&va(f,o,i),wp(o,i)}}var df=!0;function T4(o,i,f,p){var $=P.T;P.T=null;var O=B.p;try{B.p=2,Ep(o,i,f,p)}finally{B.p=O,P.T=$}}function I4(o,i,f,p){var $=P.T;P.T=null;var O=B.p;try{B.p=8,Ep(o,i,f,p)}finally{B.p=O,P.T=$}}function Ep(o,i,f,p){if(df){var $=Op(p);if($===null)dp(o,i,p,ff,f),C1(o,p);else if(j4($,o,i,f,p))p.stopPropagation();else if(C1(o,p),i&4&&-1<M4.indexOf(o)){for(;$!==null;){var O=dt($);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var F=ct(O.pendingLanes);if(F!==0){var Y=O;for(Y.pendingLanes|=2,Y.entangledLanes|=2;F;){var fe=1<<31-Me(F);Y.entanglements[1]|=fe,F&=~fe}po(O),(Rn&6)===0&&(qd=xe()+500,Fc(0))}}break;case 31:case 13:Y=Xi(O,2),Y!==null&&va(Y,O,2),Xd(),wp(O,2)}if(O=Op(p),O===null&&dp(o,i,p,ff,f),O===$)break;$=O}$!==null&&p.stopPropagation()}else dp(o,i,p,null,f)}}function Op(o){return o=zr(o),Rp(o)}var ff=null;function Rp(o){if(ff=null,o=rt(o),o!==null){var i=l(o);if(i===null)o=null;else{var f=i.tag;if(f===13){if(o=c(i),o!==null)return o;o=null}else if(f===31){if(o=u(i),o!==null)return o;o=null}else if(f===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return ff=o,null}function S1(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ve()){case Xe:return 2;case it:return 8;case at:case Ye:return 32;case Je:return 268435456;default:return 32}default:return 32}}var Np=!1,bi=null,yi=null,Si=null,Gc=new Map,Xc=new Map,Ci=[],M4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function C1(o,i){switch(o){case"focusin":case"focusout":bi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":Gc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xc.delete(i.pointerId)}}function Yc(o,i,f,p,$,O){return o===null||o.nativeEvent!==O?(o={blockedOn:i,domEventName:f,eventSystemFlags:p,nativeEvent:O,targetContainers:[$]},i!==null&&(i=dt(i),i!==null&&b1(i)),o):(o.eventSystemFlags|=p,i=o.targetContainers,$!==null&&i.indexOf($)===-1&&i.push($),o)}function j4(o,i,f,p,$){switch(i){case"focusin":return bi=Yc(bi,o,i,f,p,$),!0;case"dragenter":return yi=Yc(yi,o,i,f,p,$),!0;case"mouseover":return Si=Yc(Si,o,i,f,p,$),!0;case"pointerover":var O=$.pointerId;return Gc.set(O,Yc(Gc.get(O)||null,o,i,f,p,$)),!0;case"gotpointercapture":return O=$.pointerId,Xc.set(O,Yc(Xc.get(O)||null,o,i,f,p,$)),!0}return!1}function x1(o){var i=rt(o.target);if(i!==null){var f=l(i);if(f!==null){if(i=f.tag,i===13){if(i=c(f),i!==null){o.blockedOn=i,ht(o.priority,function(){y1(f)});return}}else if(i===31){if(i=u(f),i!==null){o.blockedOn=i,ht(o.priority,function(){y1(f)});return}}else if(i===3&&f.stateNode.current.memoizedState.isDehydrated){o.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}o.blockedOn=null}function mf(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var f=Op(o.nativeEvent);if(f===null){f=o.nativeEvent;var p=new f.constructor(f.type,f);Rr=p,f.target.dispatchEvent(p),Rr=null}else return i=dt(f),i!==null&&b1(i),o.blockedOn=f,!1;i.shift()}return!0}function $1(o,i,f){mf(o)&&f.delete(i)}function P4(){Np=!1,bi!==null&&mf(bi)&&(bi=null),yi!==null&&mf(yi)&&(yi=null),Si!==null&&mf(Si)&&(Si=null),Gc.forEach($1),Xc.forEach($1)}function gf(o,i){o.blockedOn===i&&(o.blockedOn=null,Np||(Np=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,P4)))}var vf=null;function w1(o){vf!==o&&(vf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vf===o&&(vf=null);for(var i=0;i<o.length;i+=3){var f=o[i],p=o[i+1],$=o[i+2];if(typeof p!="function"){if(Rp(p||f)===null)continue;break}var O=dt(f);O!==null&&(o.splice(i,3),i-=3,Ov(O,{pending:!0,data:$,method:f.method,action:p},p,$))}}))}function ms(o){function i(fe){return gf(fe,o)}bi!==null&&gf(bi,o),yi!==null&&gf(yi,o),Si!==null&&gf(Si,o),Gc.forEach(i),Xc.forEach(i);for(var f=0;f<Ci.length;f++){var p=Ci[f];p.blockedOn===o&&(p.blockedOn=null)}for(;0<Ci.length&&(f=Ci[0],f.blockedOn===null);)x1(f),f.blockedOn===null&&Ci.shift();if(f=(o.ownerDocument||o).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var $=f[p],O=f[p+1],F=$[Ze]||null;if(typeof O=="function")F||w1(f);else if(F){var Y=null;if(O&&O.hasAttribute("formAction")){if($=O,F=O[Ze]||null)Y=F.formAction;else if(Rp($)!==null)continue}else Y=F.action;typeof Y=="function"?f[p+1]=Y:(f.splice(p,3),p-=3),w1(f)}}}function E1(){function o(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function(F){return $=F})},focusReset:"manual",scroll:"manual"})}function i(){$!==null&&($(),$=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var O=navigation.currentEntry;O&&O.url!=null&&navigation.navigate(O.url,{state:O.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,$=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),$!==null&&($(),$=null)}}}function Tp(o){this._internalRoot=o}pf.prototype.render=Tp.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var f=i.current,p=Ra();p1(f,p,o,i,null,null)},pf.prototype.unmount=Tp.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;p1(o.current,2,null,o,null,null),Xd(),i[Ct]=null}};function pf(o){this._internalRoot=o}pf.prototype.unstable_scheduleHydration=function(o){if(o){var i=pt();o={blockedOn:null,target:o,priority:i};for(var f=0;f<Ci.length&&i!==0&&i<Ci[f].priority;f++);Ci.splice(f,0,o),f===0&&x1(o)}};var O1=t.version;if(O1!=="19.2.3")throw Error(r(527,O1,"19.2.3"));B.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=m(i),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var z4={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hf.isDisabled&&hf.supportsFiber)try{We=hf.inject(z4),Be=hf}catch{}}return au.createRoot=function(o,i){if(!a(o))throw Error(r(299));var f=!1,p="",$=PC,O=zC,F=_C;return i!=null&&(i.unstable_strictMode===!0&&(f=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&($=i.onUncaughtError),i.onCaughtError!==void 0&&(O=i.onCaughtError),i.onRecoverableError!==void 0&&(F=i.onRecoverableError)),i=g1(o,1,!1,null,null,f,p,null,$,O,F,E1),o[Ct]=i.current,up(o),new Tp(i)},au.hydrateRoot=function(o,i,f){if(!a(o))throw Error(r(299));var p=!1,$="",O=PC,F=zC,Y=_C,fe=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&($=f.identifierPrefix),f.onUncaughtError!==void 0&&(O=f.onUncaughtError),f.onCaughtError!==void 0&&(F=f.onCaughtError),f.onRecoverableError!==void 0&&(Y=f.onRecoverableError),f.formState!==void 0&&(fe=f.formState)),i=g1(o,1,!0,i,f??null,p,$,fe,O,F,Y,E1),i.context=v1(null),f=i.current,p=Ra(),p=Le(p),$=ii(p),$.callback=null,li(f,$,p),f=p,i.current.lanes=f,be(i,f),po(i),o[Ct]=i.current,up(o),new pf(i)},au.version="19.2.3",au}var $2;function mY(){if($2)return _h.exports;$2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_h.exports=fY(),_h.exports}var rM=mY();Lb(function(e,t){t._reactRoot||(t._reactRoot=rM.createRoot(t));var n=t._reactRoot;return n.render(e),function(){return new Promise(function(r){setTimeout(function(){n.unmount(),r()},0)})}});/**
|
|
443
|
+
* react-router v7.11.0
|
|
444
|
+
*
|
|
445
|
+
* Copyright (c) Remix Software Inc.
|
|
446
|
+
*
|
|
447
|
+
* This source code is licensed under the MIT license found in the
|
|
448
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
449
|
+
*
|
|
450
|
+
* @license MIT
|
|
451
|
+
*/var w2="popstate";function gY(e={}){function t(r,a){let{pathname:l,search:c,hash:u}=r.location;return cb("",{pathname:l,search:c,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Bu(a)}return pY(t,n,null,e)}function nr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ya(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vY(){return Math.random().toString(36).substring(2,10)}function E2(e,t){return{usr:e.state,key:e.key,idx:t}}function cb(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?lc(t):t,state:n,key:t&&t.key||r||vY()}}function Bu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function lc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function pY(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,c=a.history,u="POP",d=null,m=g();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function g(){return(c.state||{idx:null}).idx}function v(){u="POP";let S=g(),x=S==null?null:S-m;m=S,d&&d({action:u,location:C.location,delta:x})}function h(S,x){u="PUSH";let w=cb(C.location,S,x);m=g()+1;let E=E2(w,m),R=C.createHref(w);try{c.pushState(E,"",R)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(R)}l&&d&&d({action:u,location:C.location,delta:1})}function b(S,x){u="REPLACE";let w=cb(C.location,S,x);m=g();let E=E2(w,m),R=C.createHref(w);c.replaceState(E,"",R),l&&d&&d({action:u,location:C.location,delta:0})}function y(S){return hY(S)}let C={get action(){return u},get location(){return e(a,c)},listen(S){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(w2,v),d=S,()=>{a.removeEventListener(w2,v),d=null}},createHref(S){return t(a,S)},createURL:y,encodeLocation(S){let x=y(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:b,go(S){return c.go(S)}};return C}function hY(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),nr(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Bu(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function aM(e,t,n="/"){return bY(e,t,n,!1)}function bY(e,t,n,r){let a=typeof t=="string"?lc(t):t,l=Xo(a.pathname||"/",n);if(l==null)return null;let c=oM(e);yY(c);let u=null;for(let d=0;u==null&&d<c.length;++d){let m=IY(l);u=NY(c[d],m,r)}return u}function oM(e,t=[],n=[],r="",a=!1){let l=(c,u,d=a,m)=>{let g={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&d)return;nr(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let v=Wo([r,g.relativePath]),h=n.concat(g);c.children&&c.children.length>0&&(nr(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),oM(c.children,t,h,v,d)),!(c.path==null&&!c.index)&&t.push({path:v,score:OY(v,c.index),routesMeta:h})};return e.forEach((c,u)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))l(c,u);else for(let m of iM(c.path))l(c,u,!0,m)}),t}function iM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let c=iM(r.join("/")),u=[];return u.push(...c.map(d=>d===""?l:[l,d].join("/"))),a&&u.push(...c),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function yY(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var SY=/^:[\w-]+$/,CY=3,xY=2,$Y=1,wY=10,EY=-2,O2=e=>e==="*";function OY(e,t){let n=e.split("/"),r=n.length;return n.some(O2)&&(r+=EY),t&&(r+=xY),n.filter(a=>!O2(a)).reduce((a,l)=>a+(SY.test(l)?CY:l===""?$Y:wY),r)}function RY(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function NY(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",c=[];for(let u=0;u<r.length;++u){let d=r[u],m=u===r.length-1,g=l==="/"?t:t.slice(l.length)||"/",v=Mm({path:d.relativePath,caseSensitive:d.caseSensitive,end:m},g),h=d.route;if(!v&&m&&n&&!r[r.length-1].route.index&&(v=Mm({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!v)return null;Object.assign(a,v.params),c.push({params:a,pathname:Wo([l,v.pathname]),pathnameBase:zY(Wo([l,v.pathnameBase])),route:h}),v.pathnameBase!=="/"&&(l=Wo([l,v.pathnameBase]))}return c}function Mm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TY(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((m,{paramName:g,isOptional:v},h)=>{if(g==="*"){let y=u[h]||"";c=l.slice(0,l.length-y.length).replace(/(.)\/+$/,"$1")}const b=u[h];return v&&!b?m[g]=void 0:m[g]=(b||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:e}}function TY(e,t=!1,n=!0){Ya(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function IY(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ya(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Xo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var lM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,MY=e=>lM.test(e);function jY(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?lc(e):e,l;if(n)if(MY(n))l=n;else{if(n.includes("//")){let c=n;n=n.replace(/\/\/+/g,"/"),Ya(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${n}`)}n.startsWith("/")?l=R2(n.substring(1),"/"):l=R2(n,t)}else l=t;return{pathname:l,search:_Y(r),hash:DY(a)}}function R2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Bh(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function PY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ky(e){let t=PY(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Wy(e,t,n,r=!1){let a;typeof e=="string"?a=lc(e):(a={...e},nr(!a.pathname||!a.pathname.includes("?"),Bh("?","pathname","search",a)),nr(!a.pathname||!a.pathname.includes("#"),Bh("#","pathname","hash",a)),nr(!a.search||!a.search.includes("#"),Bh("#","search","hash",a)));let l=e===""||a.pathname==="",c=l?"/":a.pathname,u;if(c==null)u=n;else{let v=t.length-1;if(!r&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),v-=1;a.pathname=h.join("/")}u=v>=0?t[v]:"/"}let d=jY(a,u),m=c&&c!=="/"&&c.endsWith("/"),g=(l||c===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(m||g)&&(d.pathname+="/"),d}var Wo=e=>e.join("/").replace(/\/\/+/g,"/"),zY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_Y=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,AY=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function BY(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function LY(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var sM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cM(e,t){let n=e;if(typeof n!="string"||!lM.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(sM)try{let l=new URL(window.location.href),c=n.startsWith("//")?new URL(l.protocol+n):new URL(n),u=Xo(c.pathname,t);c.origin===l.origin&&u!=null?n=u+c.search+c.hash:a=!0}catch{Ya(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uM=["POST","PUT","PATCH","DELETE"];new Set(uM);var HY=["GET",...uM];new Set(HY);var sc=s.createContext(null);sc.displayName="DataRouter";var Tg=s.createContext(null);Tg.displayName="DataRouterState";var FY=s.createContext(!1),dM=s.createContext({isTransitioning:!1});dM.displayName="ViewTransition";var kY=s.createContext(new Map);kY.displayName="Fetchers";var VY=s.createContext(null);VY.displayName="Await";var Pa=s.createContext(null);Pa.displayName="Navigation";var sd=s.createContext(null);sd.displayName="Location";var Qa=s.createContext({outlet:null,matches:[],isDataRoute:!1});Qa.displayName="Route";var Uy=s.createContext(null);Uy.displayName="RouteError";var fM="REACT_ROUTER_ERROR",KY="REDIRECT",WY="ROUTE_ERROR_RESPONSE";function UY(e){if(e.startsWith(`${fM}:${KY}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function qY(e){if(e.startsWith(`${fM}:${WY}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new AY(t.status,t.statusText,t.data)}catch{}}function GY(e,{relative:t}={}){nr(cc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=s.useContext(Pa),{hash:a,pathname:l,search:c}=ud(e,{relative:t}),u=l;return n!=="/"&&(u=l==="/"?n:Wo([n,l])),r.createHref({pathname:u,search:c,hash:a})}function cc(){return s.useContext(sd)!=null}function Qo(){return nr(cc(),"useLocation() may be used only in the context of a <Router> component."),s.useContext(sd).location}var mM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gM(e){s.useContext(Pa).static||s.useLayoutEffect(e)}function cd(){let{isDataRoute:e}=s.useContext(Qa);return e?uQ():XY()}function XY(){nr(cc(),"useNavigate() may be used only in the context of a <Router> component.");let e=s.useContext(sc),{basename:t,navigator:n}=s.useContext(Pa),{matches:r}=s.useContext(Qa),{pathname:a}=Qo(),l=JSON.stringify(Ky(r)),c=s.useRef(!1);return gM(()=>{c.current=!0}),s.useCallback((d,m={})=>{if(Ya(c.current,mM),!c.current)return;if(typeof d=="number"){n.go(d);return}let g=Wy(d,JSON.parse(l),a,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Wo([t,g.pathname])),(m.replace?n.replace:n.push)(g,m.state,m)},[t,n,l,a,e])}var YY=s.createContext(null);function QY(e){let t=s.useContext(Qa).outlet;return s.useMemo(()=>t&&s.createElement(YY.Provider,{value:e},t),[t,e])}function ZY(){let{matches:e}=s.useContext(Qa),t=e[e.length-1];return t?t.params:{}}function ud(e,{relative:t}={}){let{matches:n}=s.useContext(Qa),{pathname:r}=Qo(),a=JSON.stringify(Ky(n));return s.useMemo(()=>Wy(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function JY(e,t){return vM(e,t)}function vM(e,t,n,r,a){var w;nr(cc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=s.useContext(Pa),{matches:c}=s.useContext(Qa),u=c[c.length-1],d=u?u.params:{},m=u?u.pathname:"/",g=u?u.pathnameBase:"/",v=u&&u.route;{let E=v&&v.path||"";hM(m,!v||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
452
|
+
|
|
453
|
+
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let h=Qo(),b;if(t){let E=typeof t=="string"?lc(t):t;nr(g==="/"||((w=E.pathname)==null?void 0:w.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${E.pathname}" was given in the \`location\` prop.`),b=E}else b=h;let y=b.pathname||"/",C=y;if(g!=="/"){let E=g.replace(/^\//,"").split("/");C="/"+y.replace(/^\//,"").split("/").slice(E.length).join("/")}let S=aM(e,{pathname:C});Ya(v||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Ya(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=aQ(S&&S.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:Wo([g,l.encodeLocation?l.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?g:Wo([g,l.encodeLocation?l.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),c,n,r,a);return t&&x?s.createElement(sd.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},x):x}function eQ(){let e=cQ(),t=BY(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=s.createElement(s.Fragment,null,s.createElement("p",null,"💿 Hey developer 👋"),s.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",s.createElement("code",{style:l},"ErrorBoundary")," or"," ",s.createElement("code",{style:l},"errorElement")," prop on your route.")),s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:a},n):null,c)}var tQ=s.createElement(eQ,null),pM=class extends s.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=qY(e.digest);n&&(e=n)}let t=e!==void 0?s.createElement(Qa.Provider,{value:this.props.routeContext},s.createElement(Uy.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?s.createElement(nQ,{error:e},t):t}};pM.contextType=FY;var Lh=new WeakMap;function nQ({children:e,error:t}){let{basename:n}=s.useContext(Pa);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=UY(t.digest);if(r){let a=Lh.get(t);if(a)throw a;let l=cM(r.location,n);if(sM&&!Lh.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw Lh.set(t,c),c}return s.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function rQ({routeContext:e,match:t,children:n}){let r=s.useContext(sc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),s.createElement(Qa.Provider,{value:e},n)}function aQ(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=n==null?void 0:n.errors;if(c!=null){let g=l.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);nr(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let u=!1,d=-1;if(n)for(let g=0;g<l.length;g++){let v=l[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(d=g),v.route.id){let{loaderData:h,errors:b}=n,y=v.route.loader&&!h.hasOwnProperty(v.route.id)&&(!b||b[v.route.id]===void 0);if(v.route.lazy||y){u=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}let m=n&&r?(g,v)=>{var h,b;r(g,{location:n.location,params:((b=(h=n.matches)==null?void 0:h[0])==null?void 0:b.params)??{},unstable_pattern:LY(n.matches),errorInfo:v})}:void 0;return l.reduceRight((g,v,h)=>{let b,y=!1,C=null,S=null;n&&(b=c&&v.route.id?c[v.route.id]:void 0,C=v.route.errorElement||tQ,u&&(d<0&&h===0?(hM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,S=null):d===h&&(y=!0,S=v.route.hydrateFallbackElement||null)));let x=t.concat(l.slice(0,h+1)),w=()=>{let E;return b?E=C:y?E=S:v.route.Component?E=s.createElement(v.route.Component,null):v.route.element?E=v.route.element:E=g,s.createElement(rQ,{match:v,routeContext:{outlet:g,matches:x,isDataRoute:n!=null},children:E})};return n&&(v.route.ErrorBoundary||v.route.errorElement||h===0)?s.createElement(pM,{location:n.location,revalidation:n.revalidation,component:C,error:b,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:m}):w()},null)}function qy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oQ(e){let t=s.useContext(sc);return nr(t,qy(e)),t}function iQ(e){let t=s.useContext(Tg);return nr(t,qy(e)),t}function lQ(e){let t=s.useContext(Qa);return nr(t,qy(e)),t}function Gy(e){let t=lQ(e),n=t.matches[t.matches.length-1];return nr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sQ(){return Gy("useRouteId")}function cQ(){var r;let e=s.useContext(Uy),t=iQ("useRouteError"),n=Gy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function uQ(){let{router:e}=oQ("useNavigate"),t=Gy("useNavigate"),n=s.useRef(!1);return gM(()=>{n.current=!0}),s.useCallback(async(a,l={})=>{Ya(n.current,mM),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...l}))},[e,t])}var N2={};function hM(e,t,n){!t&&!N2[e]&&(N2[e]=!0,Ya(!1,n))}s.memo(dQ);function dQ({routes:e,future:t,state:n,onError:r}){return vM(e,void 0,n,r,t)}function fQ({to:e,replace:t,state:n,relative:r}){nr(cc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=s.useContext(Pa);Ya(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=s.useContext(Qa),{pathname:c}=Qo(),u=cd(),d=Wy(e,Ky(l),c,r==="path"),m=JSON.stringify(d);return s.useEffect(()=>{u(JSON.parse(m),{replace:t,state:n,relative:r})},[u,m,r,t,n]),null}function mQ(e){return QY(e.context)}function Ri(e){nr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gQ({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1,unstable_useTransitions:c}){nr(!cc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=s.useMemo(()=>({basename:u,navigator:a,static:l,unstable_useTransitions:c,future:{}}),[u,a,l,c]);typeof n=="string"&&(n=lc(n));let{pathname:m="/",search:g="",hash:v="",state:h=null,key:b="default"}=n,y=s.useMemo(()=>{let C=Xo(m,u);return C==null?null:{location:{pathname:C,search:g,hash:v,state:h,key:b},navigationType:r}},[u,m,g,v,h,b,r]);return Ya(y!=null,`<Router basename="${u}"> is not able to match the URL "${m}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:s.createElement(Pa.Provider,{value:d},s.createElement(sd.Provider,{children:t,value:y}))}function vQ({children:e,location:t}){return JY(ub(e),t)}function ub(e,t=[]){let n=[];return s.Children.forEach(e,(r,a)=>{if(!s.isValidElement(r))return;let l=[...t,a];if(r.type===s.Fragment){n.push.apply(n,ub(r.props.children,l));return}nr(r.type===Ri,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),nr(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=ub(r.props.children,l)),n.push(c)}),n}var am="get",om="application/x-www-form-urlencoded";function Ig(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function pQ(e){return Ig(e)&&e.tagName.toLowerCase()==="button"}function hQ(e){return Ig(e)&&e.tagName.toLowerCase()==="form"}function bQ(e){return Ig(e)&&e.tagName.toLowerCase()==="input"}function yQ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SQ(e,t){return e.button===0&&(!t||t==="_self")&&!yQ(e)}var Df=null;function CQ(){if(Df===null)try{new FormData(document.createElement("form"),0),Df=!1}catch{Df=!0}return Df}var xQ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hh(e){return e!=null&&!xQ.has(e)?(Ya(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${om}"`),null):e}function $Q(e,t){let n,r,a,l,c;if(hQ(e)){let u=e.getAttribute("action");r=u?Xo(u,t):null,n=e.getAttribute("method")||am,a=Hh(e.getAttribute("enctype"))||om,l=new FormData(e)}else if(pQ(e)||bQ(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Xo(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||am,a=Hh(e.getAttribute("formenctype"))||Hh(u.getAttribute("enctype"))||om,l=new FormData(u,e),!CQ()){let{name:m,type:g,value:v}=e;if(g==="image"){let h=m?`${m}.`:"";l.append(`${h}x`,"0"),l.append(`${h}y`,"0")}else m&&l.append(m,v)}}else{if(Ig(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=am,r=null,a=om,c=e}return l&&a==="text/plain"&&(c=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xy(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wQ(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Xo(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function EQ(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function OQ(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function RQ(e,t,n){let r=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let c=await EQ(l,n);return c.links?c.links():[]}return[]}));return MQ(r.flat(1).filter(OQ).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function T2(e,t,n,r,a,l){let c=(d,m)=>n[m]?d.route.id!==n[m].route.id:!0,u=(d,m)=>{var g;return n[m].pathname!==d.pathname||((g=n[m].route.path)==null?void 0:g.endsWith("*"))&&n[m].params["*"]!==d.params["*"]};return l==="assets"?t.filter((d,m)=>c(d,m)||u(d,m)):l==="data"?t.filter((d,m)=>{var v;let g=r.routes[d.route.id];if(!g||!g.hasLoader)return!1;if(c(d,m)||u(d,m))return!0;if(d.route.shouldRevalidate){let h=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function NQ(e,t,{includeHydrateFallback:n}={}){return TQ(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function TQ(e){return[...new Set(e)]}function IQ(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function MQ(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let l=JSON.stringify(IQ(a));return n.has(l)||(n.add(l),r.push({key:l,link:a})),r},[])}function bM(){let e=s.useContext(sc);return Xy(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function jQ(){let e=s.useContext(Tg);return Xy(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yy=s.createContext(void 0);Yy.displayName="FrameworkContext";function yM(){let e=s.useContext(Yy);return Xy(e,"You must render this element inside a <HydratedRouter> element"),e}function PQ(e,t){let n=s.useContext(Yy),[r,a]=s.useState(!1),[l,c]=s.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:m,onMouseLeave:g,onTouchStart:v}=t,h=s.useRef(null);s.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let C=x=>{x.forEach(w=>{c(w.isIntersecting)})},S=new IntersectionObserver(C,{threshold:.5});return h.current&&S.observe(h.current),()=>{S.disconnect()}}},[e]),s.useEffect(()=>{if(r){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[r]);let b=()=>{a(!0)},y=()=>{a(!1),c(!1)};return n?e!=="intent"?[l,h,{}]:[l,h,{onFocus:ou(u,b),onBlur:ou(d,y),onMouseEnter:ou(m,b),onMouseLeave:ou(g,y),onTouchStart:ou(v,b)}]:[!1,h,{}]}function ou(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zQ({page:e,...t}){let{router:n}=bM(),r=s.useMemo(()=>aM(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?s.createElement(DQ,{page:e,matches:r,...t}):null}function _Q(e){let{manifest:t,routeModules:n}=yM(),[r,a]=s.useState([]);return s.useEffect(()=>{let l=!1;return RQ(e,t,n).then(c=>{l||a(c)}),()=>{l=!0}},[e,t,n]),r}function DQ({page:e,matches:t,...n}){let r=Qo(),{manifest:a,routeModules:l}=yM(),{basename:c}=bM(),{loaderData:u,matches:d}=jQ(),m=s.useMemo(()=>T2(e,t,d,a,r,"data"),[e,t,d,a,r]),g=s.useMemo(()=>T2(e,t,d,a,r,"assets"),[e,t,d,a,r]),v=s.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,C=!1;if(t.forEach(x=>{var E;let w=a.routes[x.route.id];!w||!w.hasLoader||(!m.some(R=>R.route.id===x.route.id)&&x.route.id in u&&((E=l[x.route.id])!=null&&E.shouldRevalidate)||w.hasClientLoader?C=!0:y.add(x.route.id))}),y.size===0)return[];let S=wQ(e,c,"data");return C&&y.size>0&&S.searchParams.set("_routes",t.filter(x=>y.has(x.route.id)).map(x=>x.route.id).join(",")),[S.pathname+S.search]},[c,u,r,a,m,t,e,l]),h=s.useMemo(()=>NQ(g,a),[g,a]),b=_Q(g);return s.createElement(s.Fragment,null,v.map(y=>s.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),h.map(y=>s.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),b.map(({key:y,link:C})=>s.createElement("link",{key:y,nonce:n.nonce,...C})))}function AQ(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var BQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{BQ&&(window.__reactRouterVersion="7.11.0")}catch{}function LQ({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=s.useRef();a.current==null&&(a.current=gY({window:r,v5Compat:!0}));let l=a.current,[c,u]=s.useState({action:l.action,location:l.location}),d=s.useCallback(m=>{n===!1?u(m):s.startTransition(()=>u(m))},[n]);return s.useLayoutEffect(()=>l.listen(d),[l,d]),s.createElement(gQ,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:n})}var SM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CM=s.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:l,replace:c,state:u,target:d,to:m,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:h,...b},y){let{basename:C,unstable_useTransitions:S}=s.useContext(Pa),x=typeof m=="string"&&SM.test(m),w=cM(m,C);m=w.to;let E=GY(m,{relative:a}),[R,N,I]=PQ(r,b),M=VQ(m,{replace:c,state:u,target:d,preventScrollReset:g,relative:a,viewTransition:v,unstable_defaultShouldRevalidate:h,unstable_useTransitions:S});function j(z){t&&t(z),z.defaultPrevented||M(z)}let T=s.createElement("a",{...b,...I,href:w.absoluteURL||E,onClick:w.isExternal||l?t:j,ref:AQ(y,N),target:d,"data-discover":!x&&n==="render"?"true":void 0});return R&&!x?s.createElement(s.Fragment,null,T,s.createElement(zQ,{page:E})):T});CM.displayName="Link";var HQ=s.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:l,to:c,viewTransition:u,children:d,...m},g){let v=ud(c,{relative:m.relative}),h=Qo(),b=s.useContext(Tg),{navigator:y,basename:C}=s.useContext(Pa),S=b!=null&&GQ(v)&&u===!0,x=y.encodeLocation?y.encodeLocation(v).pathname:v.pathname,w=h.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(w=w.toLowerCase(),E=E?E.toLowerCase():null,x=x.toLowerCase()),E&&C&&(E=Xo(E,C)||E);const R=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let N=w===x||!a&&w.startsWith(x)&&w.charAt(R)==="/",I=E!=null&&(E===x||!a&&E.startsWith(x)&&E.charAt(x.length)==="/"),M={isActive:N,isPending:I,isTransitioning:S},j=N?t:void 0,T;typeof r=="function"?T=r(M):T=[r,N?"active":null,I?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let z=typeof l=="function"?l(M):l;return s.createElement(CM,{...m,"aria-current":j,className:T,ref:g,style:z,to:c,viewTransition:u},typeof d=="function"?d(M):d)});HQ.displayName="NavLink";var FQ=s.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:c=am,action:u,onSubmit:d,relative:m,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:h,...b},y)=>{let{unstable_useTransitions:C}=s.useContext(Pa),S=UQ(),x=qQ(u,{relative:m}),w=c.toLowerCase()==="get"?"get":"post",E=typeof u=="string"&&SM.test(u),R=N=>{if(d&&d(N),N.defaultPrevented)return;N.preventDefault();let I=N.nativeEvent.submitter,M=(I==null?void 0:I.getAttribute("formmethod"))||c,j=()=>S(I||N.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:l,relative:m,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:h});C&&n!==!1?s.startTransition(()=>j()):j()};return s.createElement("form",{ref:y,method:w,action:x,onSubmit:r?d:R,...b,"data-discover":!E&&e==="render"?"true":void 0})});FQ.displayName="Form";function kQ(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xM(e){let t=s.useContext(sc);return nr(t,kQ(e)),t}function VQ(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:l,viewTransition:c,unstable_defaultShouldRevalidate:u,unstable_useTransitions:d}={}){let m=cd(),g=Qo(),v=ud(e,{relative:l});return s.useCallback(h=>{if(SQ(h,t)){h.preventDefault();let b=n!==void 0?n:Bu(g)===Bu(v),y=()=>m(e,{replace:b,state:r,preventScrollReset:a,relative:l,viewTransition:c,unstable_defaultShouldRevalidate:u});d?s.startTransition(()=>y()):y()}},[g,m,v,n,r,t,e,a,l,c,u,d])}var KQ=0,WQ=()=>`__${String(++KQ)}__`;function UQ(){let{router:e}=xM("useSubmit"),{basename:t}=s.useContext(Pa),n=sQ(),r=e.fetch,a=e.navigate;return s.useCallback(async(l,c={})=>{let{action:u,method:d,encType:m,formData:g,body:v}=$Q(l,t);if(c.navigate===!1){let h=c.fetcherKey||WQ();await r(h,n,c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||d,formEncType:c.encType||m,flushSync:c.flushSync})}else await a(c.action||u,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||d,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:n,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,a,t,n])}function qQ(e,{relative:t}={}){let{basename:n}=s.useContext(Pa),r=s.useContext(Qa);nr(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...ud(e||".",{relative:t})},c=Qo();if(e==null){l.search=c.search;let u=new URLSearchParams(l.search),d=u.getAll("index");if(d.some(g=>g==="")){u.delete("index"),d.filter(v=>v).forEach(v=>u.append("index",v));let g=u.toString();l.search=g?`?${g}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Wo([n,l.pathname])),Bu(l)}function GQ(e,{relative:t}={}){let n=s.useContext(dM);nr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=xM("useViewTransitionState"),a=ud(e,{relative:t});if(!n.isTransitioning)return!1;let l=Xo(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=Xo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Mm(a.pathname,c)!=null||Mm(a.pathname,l)!=null}var XQ={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"},YQ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:XQ}))},QQ=s.forwardRef(YQ),ZQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},JQ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:ZQ}))},eZ=s.forwardRef(JQ),tZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},nZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:tZ}))},rZ=s.forwardRef(nZ),aZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},oZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:aZ}))},iZ=s.forwardRef(oZ),lZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"}}]},name:"diff",theme:"outlined"},sZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:lZ}))},Lu=s.forwardRef(sZ),cZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 00-11.3 0L209.4 249a8.03 8.03 0 000 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z"}}]},name:"disconnect",theme:"outlined"},uZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:cZ}))},dZ=s.forwardRef(uZ),fZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},mZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:fZ}))},$M=s.forwardRef(mZ),gZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},vZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:gZ}))},db=s.forwardRef(vZ),pZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},hZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:pZ}))},bZ=s.forwardRef(hZ),yZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},SZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:yZ}))},jm=s.forwardRef(SZ),CZ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},xZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:CZ}))},$Z=s.forwardRef(xZ),wZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},EZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:wZ}))},I2=s.forwardRef(EZ),OZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},RZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:OZ}))},fb=s.forwardRef(RZ),NZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},TZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:NZ}))},IZ=s.forwardRef(TZ),MZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},jZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:MZ}))},PZ=s.forwardRef(jZ),zZ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},_Z=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:zZ}))},DZ=s.forwardRef(_Z),AZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},BZ=function(t,n){return s.createElement(Kt,Oe({},t,{ref:n,icon:AZ}))},LZ=s.forwardRef(BZ);const M2=e=>{let t;const n=new Set,r=(m,g)=>{const v=typeof m=="function"?m(t):m;if(!Object.is(v,t)){const h=t;t=g??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(b=>b(t,h))}},a=()=>t,u={setState:r,getState:a,getInitialState:()=>d,subscribe:m=>(n.add(m),()=>n.delete(m))},d=t=e(r,a,u);return u},HZ=(e=>e?M2(e):M2),FZ=e=>e;function kZ(e,t=FZ){const n=le.useSyncExternalStore(e.subscribe,le.useCallback(()=>t(e.getState()),[e,t]),le.useCallback(()=>t(e.getInitialState()),[e,t]));return le.useDebugValue(n),n}const j2=e=>{const t=HZ(e),n=r=>kZ(t,r);return Object.assign(n,t),n},Qy=(e=>e?j2(e):j2),VZ="";async function Af(e,t){var a;const r=await(await fetch(VZ+e,{...t,headers:{"Content-Type":"application/json",...t==null?void 0:t.headers}})).json();if(!r.success)throw new Error(((a=r.error)==null?void 0:a.message)??"Request failed");return r.data}const pa={get:e=>Af(e),post:(e,t)=>Af(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>Af(e,{method:"PUT",body:JSON.stringify(t)}),delete:e=>Af(e,{method:"DELETE"})},Os={getAll:()=>pa.get("/api/schemas"),get:e=>pa.get(`/api/schemas/${e}`),create:e=>pa.post("/api/schemas",e),update:(e,t)=>pa.put(`/api/schemas/${e}`,t),delete:e=>pa.delete(`/api/schemas/${e}`),validate:e=>pa.post("/api/validate",e?{schema:e}:{}),preview:(e,t)=>t?pa.get(`/api/preview/${e}/${t}`):pa.get(`/api/preview/${e}`)},Ki=Qy(e=>({schemas:{},selectedSchema:null,loading:!1,error:null,validationErrors:[],previews:[],previewType:"laravel",loadSchemas:async()=>{e({loading:!0,error:null});try{const t=await Os.getAll();e({schemas:t,loading:!1})}catch(t){e({error:t.message,loading:!1})}},selectSchema:t=>{e({selectedSchema:t,validationErrors:[]})},createSchema:async t=>{e({loading:!0,error:null});try{const n=await Os.create(t);e(r=>({schemas:{...r.schemas,[n.name]:n},loading:!1}))}catch(n){throw e({error:n.message,loading:!1}),n}},updateSchema:async(t,n)=>{e({loading:!0,error:null});try{const r=await Os.update(t,n);e(a=>({schemas:{...a.schemas,[t]:r},loading:!1}))}catch(r){throw e({error:r.message,loading:!1}),r}},deleteSchema:async t=>{e({loading:!0,error:null});try{await Os.delete(t),e(n=>{const{[t]:r,...a}=n.schemas;return{schemas:a,selectedSchema:n.selectedSchema===t?null:n.selectedSchema,loading:!1}})}catch(n){throw e({error:n.message,loading:!1}),n}},validateSchema:async t=>{try{const n=await Os.validate(t);e({validationErrors:n.errors.map(r=>({path:r.path,message:r.message,severity:"error"}))})}catch(n){e({validationErrors:[{path:"root",message:n.message,severity:"error"}]})}},loadPreview:async(t,n)=>{e({loading:!0,previewType:t});try{const r=await Os.preview(t,n);e({previews:r,loading:!1})}catch(r){e({error:r.message,loading:!1})}},setSchemas:t=>{e({schemas:t})},updateSchemaInStore:(t,n)=>{e(r=>({schemas:{...r.schemas,[t]:n}}))}}));function KZ(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var l;const c=d=>d===null?null:JSON.parse(d,void 0),u=(l=n.getItem(a))!=null?l:null;return u instanceof Promise?u.then(c):c(u)},setItem:(a,l)=>n.setItem(a,JSON.stringify(l,void 0)),removeItem:a=>n.removeItem(a)}}const mb=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return mb(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return mb(r)(n)}}}},WZ=(e,t)=>(n,r,a)=>{let l={storage:KZ(()=>localStorage),partialize:C=>C,version:0,merge:(C,S)=>({...S,...C}),...t},c=!1;const u=new Set,d=new Set;let m=l.storage;if(!m)return e((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...C)},r,a);const g=()=>{const C=l.partialize({...r()});return m.setItem(l.name,{state:C,version:l.version})},v=a.setState;a.setState=(C,S)=>(v(C,S),g());const h=e((...C)=>(n(...C),g()),r,a);a.getInitialState=()=>h;let b;const y=()=>{var C,S;if(!m)return;c=!1,u.forEach(w=>{var E;return w((E=r())!=null?E:h)});const x=((S=l.onRehydrateStorage)==null?void 0:S.call(l,(C=r())!=null?C:h))||void 0;return mb(m.getItem.bind(m))(l.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==l.version){if(l.migrate){const E=l.migrate(w.state,w.version);return E instanceof Promise?E.then(R=>[!0,R]):[!0,E]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,w.state];return[!1,void 0]}).then(w=>{var E;const[R,N]=w;if(b=l.merge(N,(E=r())!=null?E:h),n(b,!0),R)return g()}).then(()=>{x==null||x(b,void 0),b=r(),c=!0,d.forEach(w=>w(b))}).catch(w=>{x==null||x(void 0,w)})};return a.persist={setOptions:C=>{l={...l,...C},C.storage&&(m=C.storage)},clearStorage:()=>{m==null||m.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>y(),hasHydrated:()=>c,onHydrate:C=>(u.add(C),()=>{u.delete(C)}),onFinishHydration:C=>(d.add(C),()=>{d.delete(C)})},l.skipHydration||y(),b||h},UZ=WZ,Zt=e=>typeof e=="string",iu=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},P2=e=>e==null?"":""+e,qZ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},GZ=/###/g,z2=e=>e&&e.indexOf("###")>-1?e.replace(GZ,"."):e,_2=e=>!e||Zt(e),yu=(e,t,n)=>{const r=Zt(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(_2(e))return{};const l=z2(r[a]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++a}return _2(e)?{}:{obj:e,k:z2(r[a])}},D2=(e,t,n)=>{const{obj:r,k:a}=yu(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let l=t[t.length-1],c=t.slice(0,t.length-1),u=yu(e,c,Object);for(;u.obj===void 0&&c.length;)l=`${c[c.length-1]}.${l}`,c=c.slice(0,c.length-1),u=yu(e,c,Object),u!=null&&u.obj&&typeof u.obj[`${u.k}.${l}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${l}`]=n},XZ=(e,t,n,r)=>{const{obj:a,k:l}=yu(e,t,Object);a[l]=a[l]||[],a[l].push(n)},Pm=(e,t)=>{const{obj:n,k:r}=yu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},YZ=(e,t,n)=>{const r=Pm(e,n);return r!==void 0?r:Pm(t,n)},wM=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Zt(e[r])||e[r]instanceof String||Zt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):wM(e[r],t[r],n):e[r]=t[r]);return e},Rs=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var QZ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ZZ=e=>Zt(e)?e.replace(/[&<>"'\/]/g,t=>QZ[t]):e;class JZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const eJ=[" ",",","?","!",";"],tJ=new JZ(20),nJ=(e,t,n)=>{t=t||"",n=n||"";const r=eJ.filter(c=>t.indexOf(c)<0&&n.indexOf(c)<0);if(r.length===0)return!0;const a=tJ.getRegExp(`(${r.map(c=>c==="?"?"\\?":c).join("|")})`);let l=!a.test(e);if(!l){const c=e.indexOf(n);c>0&&!a.test(e.substring(0,c))&&(l=!0)}return l},gb=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let l=0;l<r.length;){if(!a||typeof a!="object")return;let c,u="";for(let d=l;d<r.length;++d)if(d!==l&&(u+=n),u+=r[d],c=a[u],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&d<r.length-1)continue;l+=d-l+1;break}a=c}return a},Hu=e=>e==null?void 0:e.replace("_","-"),rJ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class zm{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||rJ,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Zt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zm(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zm(this.logger,t)}}var yo=new zm;class Mg{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,l])=>{for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let c=0;c<l;c++)a.apply(a,[t,...n])})}}class A2 extends Mg{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){var m,g;const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):Zt(r)&&l?u.push(...r.split(l)):u.push(r)));const d=Pm(this.data,u);return!d&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),d||!c||!Zt(r)?d:gb((g=(m=this.data)==null?void 0:m[t])==null?void 0:g[n],r,l)}addResource(t,n,r,a,l={silent:!1}){const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(c?r.split(c):r)),t.indexOf(".")>-1&&(u=t.split("."),a=n,n=u[1]),this.addNamespaces(n),D2(this.data,u,a),l.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const l in r)(Zt(r[l])||Array.isArray(r[l]))&&this.addResource(t,n,l,r[l],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,l,c={silent:!1,skipCopy:!1}){let u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let d=Pm(this.data,u)||{};c.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?wM(d,r,l):d={...d,...r},D2(this.data,u,d),c.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var EM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(l=>{var c;t=((c=this.processors[l])==null?void 0:c.process(t,n,r,a))??t}),t}};const OM=Symbol("i18next/PATH_KEY");function aJ(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),a===OM?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function vb(e,t){const{[OM]:n}=e(aJ());return n.join((t==null?void 0:t.keySeparator)??".")}const B2={},Fh=e=>!Zt(e)&&typeof e!="boolean"&&typeof e!="number";class _m extends Mg{constructor(t,n={}){super(),qZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const a=this.resolve(t,r);if((a==null?void 0:a.res)===void 0)return!1;const l=Fh(a.res);return!(r.returnObjects===!1&&l)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const c=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!nJ(t,r,a);if(c&&!u){const d=t.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:t,namespaces:Zt(l)?[l]:l};const m=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(m[0])>-1)&&(l=m.shift()),t=m.join(a)}return{key:t,namespaces:Zt(l)?[l]:l}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=vb(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:u,namespaces:d}=this.extractFromKey(t[t.length-1],a),m=d[d.length-1];let g=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const v=a.lng||this.language,h=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return h?l?{res:`${m}${g}${u}`,usedKey:u,exactUsedKey:u,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(a)}:`${m}${g}${u}`:l?{res:u,usedKey:u,exactUsedKey:u,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(a)}:u;const b=this.resolve(t,a);let y=b==null?void 0:b.res;const C=(b==null?void 0:b.usedKey)||u,S=(b==null?void 0:b.exactUsedKey)||u,x=["[object Number]","[object Function]","[object RegExp]"],w=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,R=a.count!==void 0&&!Zt(a.count),N=_m.hasDefaultValue(a),I=R?this.pluralResolver.getSuffix(v,a.count,a):"",M=a.ordinal&&R?this.pluralResolver.getSuffix(v,a.count,{ordinal:!1}):"",j=R&&!a.ordinal&&a.count===0,T=j&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${I}`]||a[`defaultValue${M}`]||a.defaultValue;let z=y;E&&!y&&N&&(z=T);const L=Fh(z),D=Object.prototype.toString.apply(z);if(E&&z&&L&&x.indexOf(D)<0&&!(Zt(w)&&Array.isArray(z))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,z,{...a,ns:d}):`key '${u} (${this.language})' returned an object instead of string.`;return l?(b.res=A,b.usedParams=this.getUsedParamsDetails(a),b):A}if(c){const A=Array.isArray(z),_=A?[]:{},V=A?S:C;for(const P in z)if(Object.prototype.hasOwnProperty.call(z,P)){const B=`${V}${c}${P}`;N&&!y?_[P]=this.translate(B,{...a,defaultValue:Fh(T)?T[P]:void 0,joinArrays:!1,ns:d}):_[P]=this.translate(B,{...a,joinArrays:!1,ns:d}),_[P]===B&&(_[P]=z[P])}y=_}}else if(E&&Zt(w)&&Array.isArray(y))y=y.join(w),y&&(y=this.extendTranslation(y,t,a,r));else{let A=!1,_=!1;!this.isValidLookup(y)&&N&&(A=!0,y=T),this.isValidLookup(y)||(_=!0,y=u);const P=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:y,B=N&&T!==y&&this.options.updateMissing;if(_||A||B){if(this.logger.log(B?"updateKey":"missingKey",v,m,u,B?T:y),c){const k=this.resolve(u,{...a,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let k=0;k<G.length;k++)K.push(G[k]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(a.lng||this.language):K.push(a.lng||this.language);const Q=(k,U,W)=>{var J;const X=N&&W!==y?W:P;this.options.missingKeyHandler?this.options.missingKeyHandler(k,m,U,X,B,a):(J=this.backendConnector)!=null&&J.saveMissing&&this.backendConnector.saveMissing(k,m,U,X,B,a),this.emit("missingKey",k,m,U,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?K.forEach(k=>{const U=this.pluralResolver.getSuffixes(k,a);j&&a[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(W=>{Q([k],u+W,a[`defaultValue${W}`]||T)})}):Q(K,u,T))}y=this.extendTranslation(y,t,a,b,r),_&&y===u&&this.options.appendNamespaceToMissingKey&&(y=`${m}${g}${u}`),(_||A)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${u}`:u,A?y:void 0,a))}return l?(b.res=y,b.usedParams=this.getUsedParamsDetails(a),b):y}extendTranslation(t,n,r,a,l){var d,m;if((d=this.i18nFormat)!=null&&d.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const g=Zt(t)&&(((m=r==null?void 0:r.interpolation)==null?void 0:m.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(g){const b=t.match(this.interpolator.nestingRegexp);v=b&&b.length}let h=r.replace&&!Zt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||a.usedLng,r),g){const b=t.match(this.interpolator.nestingRegexp),y=b&&b.length;v<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...b)=>(l==null?void 0:l[0])===b[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):this.translate(...b,n),r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=Zt(c)?[c]:c;return t!=null&&(u!=null&&u.length)&&r.applyPostProcessor!==!1&&(t=EM.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,l,c,u;return Zt(t)&&(t=[t]),t.forEach(d=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(d,n),g=m.key;a=g;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const h=n.count!==void 0&&!Zt(n.count),b=h&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(Zt(n.context)||typeof n.context=="number")&&n.context!=="",C=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);v.forEach(S=>{var x,w;this.isValidLookup(r)||(u=S,!B2[`${C[0]}-${S}`]&&((x=this.utils)!=null&&x.hasLoadedNamespace)&&!((w=this.utils)!=null&&w.hasLoadedNamespace(u))&&(B2[`${C[0]}-${S}`]=!0,this.logger.warn(`key "${a}" for languages "${C.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(E=>{var I;if(this.isValidLookup(r))return;c=E;const R=[g];if((I=this.i18nFormat)!=null&&I.addLookupKeys)this.i18nFormat.addLookupKeys(R,g,E,S,n);else{let M;h&&(M=this.pluralResolver.getSuffix(E,n.count,n));const j=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(n.ordinal&&M.indexOf(T)===0&&R.push(g+M.replace(T,this.options.pluralSeparator)),R.push(g+M),b&&R.push(g+j)),y){const z=`${g}${this.options.contextSeparator||"_"}${n.context}`;R.push(z),h&&(n.ordinal&&M.indexOf(T)===0&&R.push(z+M.replace(T,this.options.pluralSeparator)),R.push(z+M),b&&R.push(z+j))}}let N;for(;N=R.pop();)this.isValidLookup(r)||(l=N,r=this.getResource(E,S,N,n))}))})}),{res:r,usedKey:a,exactUsedKey:l,usedLng:c,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Zt(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const l of n)delete a[l]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class L2{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yo.create("languageUtils")}getScriptPartFromCode(t){if(t=Hu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Hu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Zt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const l=this.getLanguagePartFromCode(r);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(c=>{if(c===l)return c;if(!(c.indexOf("-")<0&&l.indexOf("-")<0)&&(c.indexOf("-")>0&&l.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===l||c.indexOf(l)===0&&l.length>1))return c})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Zt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],l=c=>{c&&(this.isSupportedCode(c)?a.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Zt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Zt(t)&&l(this.formatLanguageCode(t)),r.forEach(c=>{a.indexOf(c)<0&&l(this.formatLanguageCode(c))}),a}}const H2={zero:0,one:1,two:2,few:3,many:4,other:5},F2={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oJ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=yo.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Hu(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:r,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let c;try{c=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F2;if(!t.match(/-|_/))return F2;const d=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(d,n)}return this.pluralRulesCache[l]=c,c}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,l)=>H2[a]-H2[l]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const k2=(e,t,n,r=".",a=!0)=>{let l=YZ(e,t,n);return!l&&a&&Zt(n)&&(l=gb(e,n,r),l===void 0&&(l=gb(t,n,r))),l},kh=e=>e.replace(/\$/g,"$$$$");class V2{constructor(t={}){var n;this.logger=yo.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:l,prefixEscaped:c,suffix:u,suffixEscaped:d,formatSeparator:m,unescapeSuffix:g,unescapePrefix:v,nestingPrefix:h,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:C,nestingOptionsSeparator:S,maxReplaces:x,alwaysFormat:w}=t.interpolation;this.escape=n!==void 0?n:ZZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?Rs(l):c||"{{",this.suffix=u?Rs(u):d||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?Rs(h):b||Rs("$t("),this.nestingSuffix=y?Rs(y):C||Rs(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=x||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var b;let l,c,u;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=y=>{if(y.indexOf(this.formatSeparator)<0){const w=k2(n,d,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...a,...n,interpolationkey:y}):w}const C=y.split(this.formatSeparator),S=C.shift().trim(),x=C.join(this.formatSeparator).trim();return this.format(k2(n,d,S,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:S})};this.resetRegExp();const g=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((b=a==null?void 0:a.interpolation)==null?void 0:b.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>kh(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?kh(this.escape(y)):kh(y)}].forEach(y=>{for(u=0;l=y.regex.exec(t);){const C=l[1].trim();if(c=m(C),c===void 0)if(typeof g=="function"){const x=g(t,l,a);c=Zt(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,C))c="";else if(v){c=l[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),c="";else!Zt(c)&&!this.useRawValueToEscape&&(c=P2(c));const S=y.safeValue(c);if(t=t.replace(l[0],S),v?(y.regex.lastIndex+=c.length,y.regex.lastIndex-=l[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,l,c;const u=(d,m)=>{const g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;const v=d.split(new RegExp(`${g}[ ]*{`));let h=`{${v[1]}`;d=v[0],h=this.interpolate(h,c);const b=h.match(/'/g),y=h.match(/"/g);(((b==null?void 0:b.length)??0)%2===0&&!y||y.length%2!==0)&&(h=h.replace(/'/g,'"'));try{c=JSON.parse(h),m&&(c={...m,...c})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,C),`${d}${g}${h}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,d};for(;a=this.nestingRegexp.exec(t);){let d=[];c={...r},c=c.replace&&!Zt(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const m=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(m!==-1&&(d=a[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),a[1]=a[1].slice(0,m)),l=n(u.call(this,a[1].trim(),c),c),l&&a[0]===t&&!Zt(l))return l;Zt(l)||(l=P2(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),l=""),d.length&&(l=d.reduce((g,v)=>this.format(g,v,r.lng,{...r,interpolationkey:a[1].trim()}),l.trim())),t=t.replace(a[0],l),this.regexp.lastIndex=0}return t}}const iJ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(c=>{if(c){const[u,...d]=c.split(":"),m=d.join(":").trim().replace(/^'+|'+$/g,""),g=u.trim();n[g]||(n[g]=m),m==="false"&&(n[g]=!1),m==="true"&&(n[g]=!0),isNaN(m)||(n[g]=parseInt(m,10))}})}return{formatName:t,formatOptions:n}},K2=e=>{const t={};return(n,r,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const c=r+JSON.stringify(l);let u=t[c];return u||(u=e(Hu(r),a),t[c]=u),u(n)}},lJ=e=>(t,n,r)=>e(Hu(n),r)(t);class sJ{constructor(t={}){this.logger=yo.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?K2:lJ;this.formats={number:r((a,l)=>{const c=new Intl.NumberFormat(a,{...l});return u=>c.format(u)}),currency:r((a,l)=>{const c=new Intl.NumberFormat(a,{...l,style:"currency"});return u=>c.format(u)}),datetime:r((a,l)=>{const c=new Intl.DateTimeFormat(a,{...l});return u=>c.format(u)}),relativetime:r((a,l)=>{const c=new Intl.RelativeTimeFormat(a,{...l});return u=>c.format(u,l.range||"day")}),list:r((a,l)=>{const c=new Intl.ListFormat(a,{...l});return u=>c.format(u)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=K2(n)}format(t,n,r,a={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(u=>u.indexOf(")")>-1)){const u=l.findIndex(d=>d.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,u)].join(this.formatSeparator)}return l.reduce((u,d)=>{var v;const{formatName:m,formatOptions:g}=iJ(d);if(this.formats[m]){let h=u;try{const b=((v=a==null?void 0:a.formatParams)==null?void 0:v[a.interpolationkey])||{},y=b.locale||b.lng||a.locale||a.lng||r;h=this.formats[m](u,y,{...g,...a,...b})}catch(b){this.logger.warn(b)}return h}else this.logger.warn(`there was no format function for ${m}`);return u},t)}}const cJ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class uJ extends Mg{constructor(t,n,r,a={}){var l,c;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=yo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(c=(l=this.backend)==null?void 0:l.init)==null||c.call(l,r,a.backend,a)}queueLoad(t,n,r,a){const l={},c={},u={},d={};return t.forEach(m=>{let g=!0;n.forEach(v=>{const h=`${m}|${v}`;!r.reload&&this.store.hasResourceBundle(m,v)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?c[h]===void 0&&(c[h]=!0):(this.state[h]=1,g=!1,c[h]===void 0&&(c[h]=!0),l[h]===void 0&&(l[h]=!0),d[v]===void 0&&(d[v]=!0)))}),g||(u[m]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(d)}}loaded(t,n,r){const a=t.split("|"),l=a[0],c=a[1];n&&this.emit("failedLoading",l,c,n),!n&&r&&this.store.addResourceBundle(l,c,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(d=>{XZ(d.loaded,[l],c),cJ(d,t),n&&d.errors.push(n),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(m=>{u[m]||(u[m]={});const g=d.loaded[m];g.length&&g.forEach(v=>{u[m][v]===void 0&&(u[m][v]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(d=>!d.done)}read(t,n,r,a=0,l=this.retryTimeout,c){if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:l,callback:c});return}this.readingCalls++;const u=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&g&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,l*2,c)},l);return}c(m,g)},d=this.backend[r].bind(this.backend);if(d.length===2){try{const m=d(t,n);m&&typeof m.then=="function"?m.then(g=>u(null,g)).catch(u):u(null,m)}catch(m){u(m)}return}return d(t,n,u)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Zt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Zt(n)&&(n=[n]);const l=this.queueLoad(t,n,r,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(c=>{this.loadOne(c)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],l=r[1];this.read(a,l,"read",void 0,void 0,(c,u)=>{c&&this.logger.warn(`${n}loading namespace ${l} for language ${a} failed`,c),!c&&u&&this.logger.log(`${n}loaded namespace ${l} for language ${a}`,u),this.loaded(t,c,u)})}saveMissing(t,n,r,a,l,c={},u=()=>{}){var d,m,g,v,h;if((m=(d=this.services)==null?void 0:d.utils)!=null&&m.hasLoadedNamespace&&!((v=(g=this.services)==null?void 0:g.utils)!=null&&v.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const b={...c,isUpdate:l},y=this.backend.create.bind(this.backend);if(y.length<6)try{let C;y.length===5?C=y(t,n,r,a,b):C=y(t,n,r,a),C&&typeof C.then=="function"?C.then(S=>u(null,S)).catch(u):u(null,C)}catch(C){u(C)}else y(t,n,r,a,u,b)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const W2=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Zt(e[1])&&(t.defaultValue=e[1]),Zt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),U2=e=>{var t,n;return Zt(e.ns)&&(e.ns=[e.ns]),Zt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Zt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Bf=()=>{},dJ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Su extends Mg{constructor(t={},n){if(super(),this.options=U2(t),this.services={},this.logger=yo,this.modules={external:[]},dJ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Zt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=W2();this.options={...r,...this.options,...U2(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const a=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?yo.init(a(this.modules.logger),this.options):yo.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=sJ;const g=new L2(this.options);this.store=new A2(this.options.resources,this.options);const v=this.services;v.logger=yo,v.resourceStore=this.store,v.languageUtils=g,v.pluralResolver=new oJ(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(v.formatter=a(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new V2(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new uJ(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(v.languageDetector=a(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=a(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new _m(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Bf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const u=iu(),d=()=>{const m=(g,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(v),n(g,v)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),u}loadResources(t,n=Bf){var l,c;let r=n;const a=Zt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const u=[],d=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&u.indexOf(v)<0&&u.push(v)})};a?d(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>d(g)),(c=(l=this.options.preload)==null?void 0:l.forEach)==null||c.call(l,m=>d(m)),this.services.backendConnector.load(u,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(t,n,r){const a=iu();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Bf),this.services.backendConnector.reload(t,n,l=>{a.resolve(),r(l)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&EM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=iu();this.emit("languageChanging",t);const a=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},l=(u,d)=>{d?this.isLanguageChangingTo===t&&(a(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),n&&n(u,(...m)=>this.t(...m))},c=u=>{var g,v;!t&&!u&&this.services.languageDetector&&(u=[]);const d=Zt(u)?u:u&&u[0],m=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(Zt(u)?[u]:u);m&&(this.language||a(m),this.translator.language||this.translator.changeLanguage(m),(v=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||v.call(g,m)),this.loadResources(m,h=>{l(h,m)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),r}getFixedT(t,n,r){const a=(l,c,...u)=>{let d;typeof c!="object"?d=this.options.overloadTranslationOptionHandler([l,c].concat(u)):d={...c},d.lng=d.lng||a.lng,d.lngs=d.lngs||a.lngs,d.ns=d.ns||a.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||r||a.keyPrefix);const m=this.options.keySeparator||".";let g;return d.keyPrefix&&Array.isArray(l)?g=l.map(v=>(typeof v=="function"&&(v=vb(v,{...this.options,...c})),`${d.keyPrefix}${m}${v}`)):(typeof l=="function"&&(l=vb(l,{...this.options,...c})),g=d.keyPrefix?`${d.keyPrefix}${m}${l}`:l),this.t(g,d)};return Zt(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const c=(u,d)=>{const m=this.services.backendConnector.state[`${u}|${d}`];return m===-1||m===0||m===2};if(n.precheck){const u=n.precheck(this,c);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(r,t)&&(!a||c(l,t)))}loadNamespaces(t,n){const r=iu();return this.options.ns?(Zt(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=iu();Zt(t)&&(t=[t]);const a=this.options.preload||[],l=t.filter(c=>a.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return l.length?(this.options.preload=a.concat(l),this.loadResources(c=>{r.resolve(),n&&n(c)}),r):(n&&n(),Promise.resolve())}dir(t){var a,l;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const c=new Intl.Locale(t);if(c&&c.getTextInfo){const u=c.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((l=this.services)==null?void 0:l.languageUtils)||new L2(W2());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Su(t,n);return r.createInstance=Su.createInstance,r}cloneInstance(t={},n=Bf){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},l=new Su(a);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(u=>{l[u]=this[u]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},r){const u=Object.keys(this.store.data).reduce((d,m)=>(d[m]={...this.store.data[m]},d[m]=Object.keys(d[m]).reduce((g,v)=>(g[v]={...d[m][v]},g),d[m]),d),{});l.store=new A2(u,a),l.services.resourceStore=l.store}return t.interpolation&&(l.services.interpolator=new V2(a)),l.translator=new _m(l.services,a),l.translator.on("*",(u,...d)=>{l.emit(u,...d)}),l.init(a,n),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Zr=Su.createInstance();Zr.createInstance;Zr.dir;Zr.init;Zr.loadResources;Zr.reloadResources;Zr.use;Zr.changeLanguage;Zr.getFixedT;Zr.t;Zr.exists;Zr.setDefaultNamespace;Zr.hasLoadedNamespace;Zr.loadNamespaces;Zr.loadLanguages;const fJ=(e,t,n,r)=>{var l,c,u,d;const a=[n,{code:t,...r||{}}];if((c=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&c.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);Il(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(d=(u=e==null?void 0:e.services)==null?void 0:u.logger)!=null&&d.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},q2={},RM=(e,t,n,r)=>{Il(n)&&q2[n]||(Il(n)&&(q2[n]=new Date),fJ(e,t,n,r))},NM=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},pb=(e,t,n)=>{e.loadNamespaces(t,NM(e,n))},G2=(e,t,n,r)=>{if(Il(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return pb(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,NM(e,r))},mJ=(e,t,n={})=>!t.languages||!t.languages.length?(RM(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),Il=e=>typeof e=="string",gJ=e=>typeof e=="object"&&e!==null,vJ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,pJ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},hJ=e=>pJ[e],bJ=e=>e.replace(vJ,hJ);let hb={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:bJ,transDefaultProps:void 0};const yJ=(e={})=>{hb={...hb,...e}},SJ=()=>hb;let TM;const CJ=e=>{TM=e},xJ=()=>TM,$J={type:"3rdParty",init(e){yJ(e.options.react),CJ(e)}},wJ=s.createContext();class EJ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Vh={exports:{}},Kh={};/**
|
|
454
|
+
* @license React
|
|
455
|
+
* use-sync-external-store-shim.production.js
|
|
456
|
+
*
|
|
457
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
458
|
+
*
|
|
459
|
+
* This source code is licensed under the MIT license found in the
|
|
460
|
+
* LICENSE file in the root directory of this source tree.
|
|
461
|
+
*/var X2;function OJ(){if(X2)return Kh;X2=1;var e=Am();function t(v,h){return v===h&&(v!==0||1/v===1/h)||v!==v&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function u(v,h){var b=h(),y=r({inst:{value:b,getSnapshot:h}}),C=y[0].inst,S=y[1];return l(function(){C.value=b,C.getSnapshot=h,d(C)&&S({inst:C})},[v,b,h]),a(function(){return d(C)&&S({inst:C}),v(function(){d(C)&&S({inst:C})})},[v]),c(b),b}function d(v){var h=v.getSnapshot;v=v.value;try{var b=h();return!n(v,b)}catch{return!0}}function m(v,h){return h()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:u;return Kh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Kh}var Y2;function RJ(){return Y2||(Y2=1,Vh.exports=OJ()),Vh.exports}var NJ=RJ();const TJ=(e,t)=>Il(t)?t:gJ(t)&&Il(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,IJ={t:TJ,ready:!1},MJ=()=>()=>{},jJ=(e,t={})=>{var T,z,L;const{i18n:n}=t,{i18n:r,defaultNS:a}=s.useContext(wJ)||{},l=n||r||xJ();l&&!l.reportNamespaces&&(l.reportNamespaces=new EJ),l||RM(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=s.useMemo(()=>{var D;return{...SJ(),...(D=l==null?void 0:l.options)==null?void 0:D.react,...t}},[l,t]),{useSuspense:u,keyPrefix:d}=c,m=a||((T=l==null?void 0:l.options)==null?void 0:T.defaultNS),g=Il(m)?[m]:m||["translation"],v=s.useMemo(()=>g,g);(L=(z=l==null?void 0:l.reportNamespaces)==null?void 0:z.addUsedNamespaces)==null||L.call(z,v);const h=s.useRef(0),b=s.useCallback(D=>{if(!l)return MJ;const{bindI18n:A,bindI18nStore:_}=c,V=()=>{h.current+=1,D()};return A&&l.on(A,V),_&&l.store.on(_,V),()=>{A&&A.split(" ").forEach(P=>l.off(P,V)),_&&_.split(" ").forEach(P=>l.store.off(P,V))}},[l,c]),y=s.useRef(),C=s.useCallback(()=>{if(!l)return IJ;const D=!!(l.isInitialized||l.initializedStoreOnce)&&v.every(K=>mJ(K,l,c)),A=t.lng||l.language,_=h.current,V=y.current;if(V&&V.ready===D&&V.lng===A&&V.keyPrefix===d&&V.revision===_)return V;const B={t:l.getFixedT(A,c.nsMode==="fallback"?v:v[0],d),ready:D,lng:A,keyPrefix:d,revision:_};return y.current=B,B},[l,v,d,c,t.lng]),[S,x]=s.useState(0),{t:w,ready:E}=NJ.useSyncExternalStore(b,C,C);s.useEffect(()=>{if(l&&!E&&!u){const D=()=>x(A=>A+1);t.lng?G2(l,t.lng,v,D):pb(l,v,D)}},[l,t.lng,v,E,u,S]);const R=l||{},N=s.useRef(null),I=s.useRef(),M=D=>{const A=Object.getOwnPropertyDescriptors(D);A.__original&&delete A.__original;const _=Object.create(Object.getPrototypeOf(D),A);if(!Object.prototype.hasOwnProperty.call(_,"__original"))try{Object.defineProperty(_,"__original",{value:D,writable:!1,enumerable:!1,configurable:!1})}catch{}return _},j=s.useMemo(()=>{const D=R,A=D==null?void 0:D.language;let _=D;D&&(N.current&&N.current.__original===D?I.current!==A?(_=M(D),N.current=_,I.current=A):_=N.current:(_=M(D),N.current=_,I.current=A));const V=[w,_,E];return V.t=w,V.i18n=_,V.ready=E,V},[w,R,E,R.resolvedLanguage,R.language,R.languages]);if(l&&u&&!E)throw new Promise(D=>{const A=()=>D();t.lng?G2(l,t.lng,v,A):pb(l,v,A)});return j},PJ={common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",apply:"Apply",update:"Update",back:"Back",yes:"Yes",no:"No",loading:"Loading...",actions:"Actions",options:"Options",name:"Name",type:"Type",auto:"(auto)"},nav:{home:"Home",settings:"Settings"},home:{title:"Schemas",newSchema:"New Schema",createFirst:"Create First Schema",noSchemas:"No schemas found",properties:"{{count}} properties",values:"{{count}} values",deleteConfirm:'Delete schema "{{name}}"?'},schema:{newSchema:"New Schema",editSchema:"Edit Schema",createSchema:"Create Schema",saveChanges:"Save Changes",schemaName:"Schema Name",displayName:"Display Name",kind:"Kind",kindObject:"Object",kindEnum:"Enum",group:"Group",tableName:"Custom Table Name",titleField:"Title Field",autoId:"Auto ID",idType:"ID Type",timestamps:"Timestamps",softDelete:"Soft Delete",translations:"Translations",authenticatable:"Authenticatable",loginIdField:"Login ID Field",passwordField:"Password Field",guardName:"Guard Name",authConfig:"Auth Config",schemaCreated:'Schema "{{name}}" created',schemaSaved:'Schema "{{name}}" saved'},property:{title:"Properties",addProperty:"Add Property",editProperty:"Edit Property",propertyName:"Property Name",noProperties:'No properties defined. Click "Add Property" to start.',deleteConfirm:"Delete this property?",nullable:"Nullable",unique:"Unique",unsigned:"Unsigned",positiveOnly:"Unsigned (positive only)",defaultValue:"Default Value",defaultPlaceholder:"Leave empty for no default",description:"Description",descriptionPlaceholder:"Field description/comment",maxLength:"Max Length",precision:"Precision (Total Digits)",scale:"Scale (Decimal Places)",enumReference:"Enum Reference or Values",selectOptions:"Options (for Select)",sourceSchema:"Source Schema (for Lookup)"},association:{relationType:"Relation Type",targetSchema:"Target Schema",targetSchemas:"Target Schemas (Polymorphic)",morphName:"Morph Name",advancedOptions:"Advanced Options",inversedBy:"Inversed By",mappedBy:"Mapped By",onDelete:"On Delete",onUpdate:"On Update",joinTable:"Custom Join Table Name",owning:"Owning Side (has foreign key)",standardRelations:"Standard Relations",polymorphicRelations:"Polymorphic Relations"},index:{title:"Indexes",addIndex:"Add Index",editIndex:"Edit Index",columns:"Columns",indexName:"Index Name (optional)",indexType:"Index Type",uniqueIndex:"Unique Index",noIndexes:'No indexes defined. Click "Add Index" to optimize queries.',deleteConfirm:"Delete this index?",selectColumns:"Select columns for this index",autoGenerated:"Auto-generated if empty"},enum:{title:"Enum Values",addValue:"Add Value",noValues:'No enum values defined. Click "Add Value" to start.'},settings:{title:"Settings",database:"Database",databaseType:"Database Type",databaseHint:"This affects available index types and SQL generation.",appearance:"Appearance",darkMode:"Dark Mode",showPreview:"Show Preview Panel",language:"Language",serverConfig:"Server Configuration",schemasDir:"Schemas Directory",serverPort:"Server Port",host:"Host"},preview:{title:"Code Preview",laravel:"Laravel",typescript:"TypeScript",sql:"SQL"},validation:{required:"{{field}} is required",invalidName:"Invalid property name",selectAtLeastOne:"Select at least one column"}},zJ={common:{save:"保存",cancel:"キャンセル",delete:"削除",edit:"編集",add:"追加",apply:"適用",update:"更新",back:"戻る",yes:"はい",no:"いいえ",loading:"読み込み中...",actions:"操作",options:"オプション",name:"名前",type:"型",auto:"(自動)"},nav:{home:"ホーム",settings:"設定"},home:{title:"スキーマ",newSchema:"新規スキーマ",createFirst:"最初のスキーマを作成",noSchemas:"スキーマが見つかりません",properties:"{{count}} プロパティ",values:"{{count}} 値",deleteConfirm:"スキーマ「{{name}}」を削除しますか?"},schema:{newSchema:"新規スキーマ",editSchema:"スキーマ編集",createSchema:"スキーマ作成",saveChanges:"変更を保存",schemaName:"スキーマ名",displayName:"表示名",kind:"種類",kindObject:"オブジェクト",kindEnum:"列挙型",group:"グループ",tableName:"カスタムテーブル名",titleField:"タイトルフィールド",autoId:"自動ID",idType:"IDタイプ",timestamps:"タイムスタンプ",softDelete:"論理削除",translations:"多言語対応",authenticatable:"認証可能",loginIdField:"ログインIDフィールド",passwordField:"パスワードフィールド",guardName:"ガード名",authConfig:"認証設定",schemaCreated:"スキーマ「{{name}}」を作成しました",schemaSaved:"スキーマ「{{name}}」を保存しました"},property:{title:"プロパティ",addProperty:"プロパティ追加",editProperty:"プロパティ編集",propertyName:"プロパティ名",noProperties:"プロパティが定義されていません。「プロパティ追加」をクリックして開始してください。",deleteConfirm:"このプロパティを削除しますか?",nullable:"NULL許可",unique:"ユニーク",unsigned:"符号なし",positiveOnly:"符号なし(正の値のみ)",defaultValue:"デフォルト値",defaultPlaceholder:"空のままでデフォルト値なし",description:"説明",descriptionPlaceholder:"フィールドの説明・コメント",maxLength:"最大長",precision:"精度(総桁数)",scale:"スケール(小数点以下桁数)",enumReference:"列挙型参照または値",selectOptions:"オプション(Select用)",sourceSchema:"ソーススキーマ(Lookup用)"},association:{relationType:"リレーション型",targetSchema:"ターゲットスキーマ",targetSchemas:"ターゲットスキーマ(ポリモーフィック)",morphName:"モーフ名",advancedOptions:"詳細オプション",inversedBy:"逆参照",mappedBy:"マップ元",onDelete:"削除時",onUpdate:"更新時",joinTable:"カスタム中間テーブル名",owning:"所有側(外部キーを持つ)",standardRelations:"標準リレーション",polymorphicRelations:"ポリモーフィックリレーション"},index:{title:"インデックス",addIndex:"インデックス追加",editIndex:"インデックス編集",columns:"カラム",indexName:"インデックス名(任意)",indexType:"インデックス型",uniqueIndex:"ユニークインデックス",noIndexes:"インデックスが定義されていません。「インデックス追加」をクリックしてクエリを最適化してください。",deleteConfirm:"このインデックスを削除しますか?",selectColumns:"インデックスのカラムを選択",autoGenerated:"空の場合は自動生成"},enum:{title:"列挙値",addValue:"値を追加",noValues:"列挙値が定義されていません。「値を追加」をクリックして開始してください。"},settings:{title:"設定",database:"データベース",databaseType:"データベースタイプ",databaseHint:"利用可能なインデックス型とSQL生成に影響します。",appearance:"外観",darkMode:"ダークモード",showPreview:"プレビューパネル表示",language:"言語",serverConfig:"サーバー設定",schemasDir:"スキーマディレクトリ",serverPort:"サーバーポート",host:"ホスト"},preview:{title:"コードプレビュー",laravel:"Laravel",typescript:"TypeScript",sql:"SQL"},validation:{required:"{{field}}は必須です",invalidName:"無効なプロパティ名です",selectAtLeastOne:"少なくとも1つのカラムを選択してください"}},_J={common:{save:"Luu",cancel:"Huy",delete:"Xoa",edit:"Sua",add:"Them",apply:"Ap dung",update:"Cap nhat",back:"Quay lai",yes:"Co",no:"Khong",loading:"Dang tai...",actions:"Thao tac",options:"Tuy chon",name:"Ten",type:"Kieu",auto:"(tu dong)"},nav:{home:"Trang chu",settings:"Cai dat"},home:{title:"Schema",newSchema:"Schema moi",createFirst:"Tao Schema dau tien",noSchemas:"Khong tim thay schema",properties:"{{count}} thuoc tinh",values:"{{count}} gia tri",deleteConfirm:'Xoa schema "{{name}}"?'},schema:{newSchema:"Schema moi",editSchema:"Sua Schema",createSchema:"Tao Schema",saveChanges:"Luu thay doi",schemaName:"Ten Schema",displayName:"Ten hien thi",kind:"Loai",kindObject:"Doi tuong",kindEnum:"Enum",group:"Nhom",tableName:"Ten bang tuy chinh",titleField:"Truong tieu de",autoId:"ID tu dong",idType:"Kieu ID",timestamps:"Thoi gian",softDelete:"Xoa mem",translations:"Da ngon ngu",authenticatable:"Xac thuc",loginIdField:"Truong Login ID",passwordField:"Truong mat khau",guardName:"Ten Guard",authConfig:"Cau hinh xac thuc",schemaCreated:'Da tao schema "{{name}}"',schemaSaved:'Da luu schema "{{name}}"'},property:{title:"Thuoc tinh",addProperty:"Them thuoc tinh",editProperty:"Sua thuoc tinh",propertyName:"Ten thuoc tinh",noProperties:'Chua co thuoc tinh. Nhan "Them thuoc tinh" de bat dau.',deleteConfirm:"Xoa thuoc tinh nay?",nullable:"Co the null",unique:"Duy nhat",unsigned:"Khong dau",positiveOnly:"Khong dau (chi so duong)",defaultValue:"Gia tri mac dinh",defaultPlaceholder:"De trong neu khong co gia tri mac dinh",description:"Mo ta",descriptionPlaceholder:"Mo ta/ghi chu cho truong",maxLength:"Do dai toi da",precision:"Do chinh xac (tong so chu so)",scale:"Thang do (so chu so thap phan)",enumReference:"Tham chieu Enum hoac gia tri",selectOptions:"Tuy chon (cho Select)",sourceSchema:"Schema nguon (cho Lookup)"},association:{relationType:"Kieu quan he",targetSchema:"Schema dich",targetSchemas:"Cac Schema dich (Polymorphic)",morphName:"Ten Morph",advancedOptions:"Tuy chon nang cao",inversedBy:"Inversed By",mappedBy:"Mapped By",onDelete:"Khi xoa",onUpdate:"Khi cap nhat",joinTable:"Ten bang trung gian tuy chinh",owning:"Phia so huu (co khoa ngoai)",standardRelations:"Quan he tieu chuan",polymorphicRelations:"Quan he Polymorphic"},index:{title:"Chi muc",addIndex:"Them chi muc",editIndex:"Sua chi muc",columns:"Cot",indexName:"Ten chi muc (tuy chon)",indexType:"Kieu chi muc",uniqueIndex:"Chi muc duy nhat",noIndexes:'Chua co chi muc. Nhan "Them chi muc" de toi uu truy van.',deleteConfirm:"Xoa chi muc nay?",selectColumns:"Chon cot cho chi muc",autoGenerated:"Tu dong tao neu de trong"},enum:{title:"Gia tri Enum",addValue:"Them gia tri",noValues:'Chua co gia tri enum. Nhan "Them gia tri" de bat dau.'},settings:{title:"Cai dat",database:"Co so du lieu",databaseType:"Loai co so du lieu",databaseHint:"Anh huong den cac kieu chi muc va tao SQL.",appearance:"Giao dien",darkMode:"Che do toi",showPreview:"Hien thi bang xem truoc",language:"Ngon ngu",serverConfig:"Cau hinh may chu",schemasDir:"Thu muc Schema",serverPort:"Cong may chu",host:"Host"},preview:{title:"Xem truoc code",laravel:"Laravel",typescript:"TypeScript",sql:"SQL"},validation:{required:"{{field}} la bat buoc",invalidName:"Ten thuoc tinh khong hop le",selectAtLeastOne:"Chon it nhat mot cot"}},DJ=typeof localStorage<"u"?localStorage.getItem("omnify-gui-lang"):null,Q2=typeof navigator<"u"?navigator.language.split("-")[0]:"en",AJ=DJ??(["en","ja","vi"].includes(Q2)?Q2:"en");Zr.use($J).init({resources:{en:{translation:PJ},ja:{translation:zJ},vi:{translation:_J}},lng:AJ,fallbackLng:"en",interpolation:{escapeValue:!1}});const BJ=[{value:"en",label:"English"},{value:"ja",label:"日本語"},{value:"vi",label:"Tiếng Việt"}],uc=Qy()(UZ(e=>({darkMode:!1,sidebarCollapsed:!1,previewPanelOpen:!0,databaseType:"mysql",language:Zr.language||"en",toggleDarkMode:()=>e(t=>({darkMode:!t.darkMode})),toggleSidebar:()=>e(t=>({sidebarCollapsed:!t.sidebarCollapsed})),togglePreviewPanel:()=>e(t=>({previewPanelOpen:!t.previewPanelOpen})),setDarkMode:t=>e({darkMode:t}),setSidebarCollapsed:t=>e({sidebarCollapsed:t}),setPreviewPanelOpen:t=>e({previewPanelOpen:t}),setDatabaseType:t=>e({databaseType:t}),setLanguage:t=>{Zr.changeLanguage(t),localStorage.setItem("omnify-gui-lang",t),e({language:t})}}),{name:"omnify-gui-ui"})),LJ={mysql:["btree","hash","fulltext","spatial"],postgresql:["btree","hash","gin","gist"],sqlite:[],sqlserver:["clustered","nonclustered","fulltext"]},{Sider:HJ}=wo;function FJ(){const e=cd(),t=Qo(),{schemas:n}=Ki(),{sidebarCollapsed:r,toggleSidebar:a}=uc(),{token:l}=ya.useToken(),c=Object.keys(n),u=[{key:"/",icon:H.jsx(bZ,{}),label:"Home"},{key:"schemas",icon:H.jsx(Tl,{}),label:"Schemas",children:[{key:"/schema/new",icon:H.jsx(pl,{}),label:"New Schema"},...c.map(m=>({key:`/schema/${m}`,label:m}))]},{key:"/relationships",icon:H.jsx(QQ,{}),label:"Relationships"},{key:"/history",icon:H.jsx(db,{}),label:"History"},{key:"/settings",icon:H.jsx(PZ,{}),label:"Settings"}],d=({key:m})=>{m!=="schemas"&&e(m)};return H.jsxs(HJ,{collapsible:!0,collapsed:r,onCollapse:a,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,background:l.colorBgContainer,borderRight:`1px solid ${l.colorBorderSecondary}`},children:[H.jsx("div",{style:{height:64,display:"flex",alignItems:"center",justifyContent:"center",borderBottom:`1px solid ${l.colorBorderSecondary}`},children:H.jsx("span",{style:{fontSize:r?16:20,fontWeight:600,color:l.colorPrimary},children:r?"O":"Omnify"})}),H.jsx(Al,{mode:"inline",selectedKeys:[t.pathname],defaultOpenKeys:["schemas"],items:u,onClick:d,style:{border:"none"}})]})}const IM=Qy((e,t)=>({connected:!1,socket:null,connect:()=>{const{socket:n}=t();if(n)return;const a=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,l=new WebSocket(a);l.onopen=()=>{console.log("WebSocket connected"),e({connected:!0,socket:l})},l.onmessage=c=>{try{const u=JSON.parse(c.data);kJ(u)}catch{console.error("Invalid WebSocket message")}},l.onclose=()=>{console.log("WebSocket disconnected"),e({connected:!1,socket:null}),setTimeout(()=>{t().connect()},3e3)},l.onerror=c=>{console.error("WebSocket error:",c)}},disconnect:()=>{const{socket:n}=t();n&&(n.close(),e({connected:!1,socket:null}))}}));function kJ(e){const t=Ki.getState();switch(e.type){case"schema:changed":t.updateSchemaInStore(e.payload.name,e.payload.schema);break;case"schemas:reloaded":t.setSchemas(e.payload.schemas);break;case"connection:ready":console.log(`Connected to schemas at: ${e.payload.schemasDir}`);break}}const{Header:VJ}=wo;function KJ(){const{darkMode:e,toggleDarkMode:t}=uc(),{connected:n}=IM(),{validationErrors:r}=Ki(),{token:a}=ya.useToken(),l=r.length;return H.jsxs(VJ,{style:{background:a.colorBgContainer,padding:`0 ${a.padding}px`,display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${a.colorBorderSecondary}`,height:64},children:[H.jsx("div",{children:l>0&&H.jsx(Cl,{count:l,style:{marginRight:a.margin},children:H.jsx("span",{style:{color:a.colorError},children:"Validation Errors"})})}),H.jsxs(zn,{size:"middle",children:[H.jsx(ja,{title:n?"Connected":"Disconnected",children:n?H.jsx(LZ,{style:{color:a.colorSuccess,fontSize:18}}):H.jsx(dZ,{style:{color:a.colorError,fontSize:18}})}),H.jsx(Tm,{checked:e,onChange:t,checkedChildren:H.jsx($Z,{}),unCheckedChildren:H.jsx(DZ,{})})]})]})}const{Content:WJ}=wo;function UJ(){const{sidebarCollapsed:e}=uc(),{connect:t}=IM(),{token:n}=ya.useToken();return s.useEffect(()=>{t()},[t]),H.jsxs(wo,{style:{minHeight:"100vh"},children:[H.jsx(FJ,{}),H.jsxs(wo,{style:{marginLeft:e?80:200,transition:"margin-left 0.2s"},children:[H.jsx(KJ,{}),H.jsx(WJ,{style:{padding:n.padding,minHeight:280,background:n.colorBgContainer},children:H.jsx(mQ,{})})]})]})}const Cu={getAll:()=>pa.get("/api/versions"),get:e=>pa.get(`/api/versions/${e}`),getLatest:()=>pa.get("/api/versions/latest"),getDiff:(e,t)=>pa.get(`/api/versions/diff/${e}/${t}`),getPending:()=>pa.get("/api/versions/pending")},{Text:ul}=fo;function bb({changes:e,compact:t=!1}){const{token:n}=ya.useToken(),r=u=>{const d={fontSize:t?14:16};switch(u){case"schema_added":case"property_added":case"index_added":return H.jsx(fb,{style:{...d,color:n.colorSuccess}});case"schema_removed":case"property_removed":case"index_removed":return H.jsx(jm,{style:{...d,color:n.colorError}});case"property_renamed":return H.jsx(TE,{style:{...d,color:n.colorInfo}});case"property_modified":case"option_changed":case"schema_modified":return H.jsx(ji,{style:{...d,color:n.colorWarning}});default:return H.jsx(Tl,{style:{...d,color:n.colorPrimary}})}},a=u=>({schema_added:"Added",schema_removed:"Removed",schema_modified:"Modified",property_added:"New Field",property_removed:"Removed Field",property_modified:"Changed Field",property_renamed:"Renamed Field",index_added:"New Index",index_removed:"Removed Index",option_changed:"Options Changed",initial:"Initial"})[u]||u.replace(/_/g," "),l=u=>u.includes("added")?"success":u.includes("removed")?"error":u.includes("renamed")?"processing":u.includes("modified")||u.includes("changed")?"warning":u==="initial"?"blue":"default",c=u=>{if(u==null)return"-";if(typeof u=="object"){const d=u;if(d.type){const m=[d.type];return d.length&&m.push(`(${d.length})`),d.precision&&d.scale&&m.push(`(${d.precision},${d.scale})`),d.nullable&&m.push("nullable"),d.unique&&m.push("unique"),d.displayName&&m.push(`"${d.displayName}"`),d.relation&&m.push(`→ ${d.target||"relation"}`),m.join(" ")}return Object.entries(d).filter(([,m])=>m!==void 0).map(([m,g])=>`${m}: ${typeof g=="boolean"?g?"yes":"no":g}`).join(", ")}return String(u)};return e.length===0?H.jsx(ul,{type:"secondary",children:"No changes"}):H.jsx("div",{children:e.map((u,d)=>H.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,padding:t?"8px 0":"12px",marginBottom:t?0:8,background:t?"transparent":n.colorBgContainer,borderRadius:t?0:n.borderRadius,border:t?"none":`1px solid ${n.colorBorderSecondary}`,borderBottom:t?`1px solid ${n.colorBorderSecondary}`:void 0},children:[r(u.action),H.jsxs("div",{style:{flex:1,minWidth:0},children:[H.jsxs("div",{style:{marginBottom:u.from!==void 0||u.to!==void 0?4:0},children:[H.jsx(qn,{color:l(u.action),style:{marginRight:8},children:a(u.action)}),u.schema&&H.jsx(ul,{strong:!0,style:{fontSize:t?13:14},children:u.schema}),u.property&&H.jsxs(ul,{code:!0,style:{marginLeft:4,fontSize:t?12:13},children:[".",u.property]})]}),(u.from!==void 0||u.to!==void 0)&&H.jsx("div",{style:{fontSize:t?12:13,padding:t?"4px 0":"8px 12px",background:t?"transparent":n.colorBgLayout,borderRadius:n.borderRadius,marginTop:4},children:u.action==="property_renamed"?H.jsxs(zn,{children:[H.jsx(ul,{type:"secondary",children:String(u.from)}),H.jsx(TE,{}),H.jsx(ul,{strong:!0,children:String(u.to)})]}):H.jsxs(H.Fragment,{children:[u.from!==void 0&&H.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[H.jsx(jm,{style:{color:n.colorError,marginTop:3,flexShrink:0}}),H.jsx(ul,{delete:!0,type:"secondary",style:{wordBreak:"break-word"},children:c(u.from)})]}),u.to!==void 0&&H.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-start",marginTop:u.from!==void 0?4:0},children:[H.jsx(fb,{style:{color:n.colorSuccess,marginTop:3,flexShrink:0}}),H.jsx(ul,{style:{color:n.colorSuccess,wordBreak:"break-word"},children:c(u.to)})]})]})})]})]},d))})}function qJ(e){let t=0,n=0,r=0;for(const a of e)a.action.includes("added")?t++:a.action.includes("removed")?n++:r++;return{added:t,removed:n,modified:r}}const{Title:GJ,Text:Z2}=fo;function XJ({open:e,onClose:t,onConfirm:n}){const{token:r}=ya.useToken(),[a,l]=s.useState(!0),[c,u]=s.useState(null),[d,m]=s.useState(null);s.useEffect(()=>{e&&g()},[e]);const g=async()=>{l(!0),u(null);try{const h=await Cu.getPending();m(h)}catch(h){u(h.message)}finally{l(!1)}},v=()=>{if(a)return H.jsxs("div",{style:{textAlign:"center",padding:r.paddingXL},children:[H.jsx(Vi,{size:"large"}),H.jsx("div",{style:{marginTop:r.margin},children:H.jsx(Z2,{type:"secondary",children:"Analyzing schema changes..."})})]});if(c)return H.jsx(gm,{message:"Error Loading Changes",description:c,type:"error",showIcon:!0});if(!d)return H.jsx(Tr,{description:"Unable to load changes"});if(!d.hasChanges)return H.jsxs("div",{style:{textAlign:"center",padding:r.paddingXL},children:[H.jsx(rZ,{style:{fontSize:48,color:r.colorSuccess,marginBottom:16}}),H.jsx(GJ,{level:4,children:"No Changes Detected"}),H.jsxs(Z2,{type:"secondary",children:["Your schemas are up to date with version ",d.latestVersion??"initial","."]})]});const h=qJ(d.changes);return H.jsxs("div",{children:[H.jsxs(Em,{gutter:16,style:{marginBottom:24},children:[H.jsx(hl,{span:6,children:H.jsx(yl,{title:"Total Changes",value:d.changes.length,prefix:H.jsx(Lu,{})})}),H.jsx(hl,{span:6,children:H.jsx(yl,{title:"Added",value:h.added,valueStyle:{color:r.colorSuccess},prefix:H.jsx(fb,{})})}),H.jsx(hl,{span:6,children:H.jsx(yl,{title:"Modified",value:h.modified,valueStyle:{color:r.colorWarning},prefix:H.jsx(ji,{})})}),H.jsx(hl,{span:6,children:H.jsx(yl,{title:"Removed",value:h.removed,valueStyle:{color:r.colorError},prefix:H.jsx(jm,{})})})]}),H.jsx(gm,{message:d.latestVersion?`Comparing with version ${d.latestVersion}`:"Initial version - all schemas are new",description:`${d.currentSchemaCount} schemas in current project`,type:"info",showIcon:!0,icon:H.jsx($M,{}),style:{marginBottom:16}}),H.jsx("div",{style:{maxHeight:400,overflow:"auto",padding:12,background:r.colorBgLayout,borderRadius:r.borderRadius},children:H.jsx(bb,{changes:d.changes})})]})};return H.jsx(Xr,{title:H.jsxs(zn,{children:[H.jsx(Lu,{}),H.jsx("span",{children:"Pending Changes Preview"}),(d==null?void 0:d.hasChanges)&&H.jsx(Cl,{count:d.changes.length,style:{backgroundColor:r.colorPrimary}})]}),open:e,onCancel:t,width:700,footer:H.jsxs(zn,{children:[H.jsx(wn,{onClick:t,children:"Close"}),n&&(d==null?void 0:d.hasChanges)&&H.jsx(wn,{type:"primary",onClick:n,children:"Generate Migration"})]}),children:v()})}const{Title:YJ,Text:lu}=fo;function QJ(){const e=cd(),{schemas:t,loading:n,deleteSchema:r}=Ki(),{token:a}=ya.useToken(),[l,c]=s.useState(!1),[u,d]=s.useState(null);s.useEffect(()=>{Cu.getPending().then(S=>d(S)).catch(()=>d(null))},[t]);const m=S=>u?u.changes.filter(x=>x.schema===S).length:0,g=(u==null?void 0:u.changes.length)??0,v=Object.values(t),h=v.filter(S=>S.kind==="object"),b=v.filter(S=>S.kind==="enum"),y=async(S,x)=>{x.stopPropagation(),window.confirm(`Delete schema "${S}"?`)&&await r(S)};if(n&&v.length===0)return H.jsx("div",{style:{textAlign:"center",padding:a.paddingXL},children:H.jsx(Vi,{size:"large"})});const C=S=>{var E,R,N;const x=m(S.name),w=x>0;return H.jsx(hl,{xs:24,sm:12,lg:8,xl:6,children:H.jsx(Cl.Ribbon,{text:w?`${x} changes`:void 0,color:w?"orange":void 0,style:{display:w?"block":"none"},children:H.jsx(Gr,{hoverable:!0,onClick:()=>e(`/schema/${S.name}`),style:{height:"100%",borderColor:w?a.colorWarning:void 0},actions:[H.jsx(ji,{onClick:()=>e(`/schema/${S.name}`)},"edit"),H.jsx(rm,{style:{color:a.colorError},onClick:I=>y(S.name,I)},"delete")],children:H.jsx(Gr.Meta,{avatar:H.jsx(Cl,{dot:w,offset:[-2,2],children:S.kind==="enum"?H.jsx(I2,{style:{fontSize:24,color:a.colorPurple}}):H.jsx(Tl,{style:{fontSize:24,color:w?a.colorWarning:a.colorPrimary}})}),title:H.jsxs(zn,{children:[S.name,w&&H.jsx(ja,{title:`${x} pending change(s)`,children:H.jsx($M,{style:{color:a.colorWarning,fontSize:14}})})]}),description:H.jsxs(zn,{direction:"vertical",size:"small",children:[S.displayName&&H.jsx(lu,{type:"secondary",children:S.displayName}),S.properties&&H.jsxs(lu,{type:"secondary",children:[Object.keys(S.properties).length," properties"]}),S.kind==="enum"&&S.values&&H.jsxs(lu,{type:"secondary",children:[S.values.length," values"]}),H.jsxs(zn,{size:"small",wrap:!0,children:[((E=S.options)==null?void 0:E.timestamps)&&H.jsx(qn,{color:"blue",children:"timestamps"}),((R=S.options)==null?void 0:R.softDelete)&&H.jsx(qn,{color:"orange",children:"soft delete"}),((N=S.options)==null?void 0:N.authenticatable)&&H.jsx(qn,{color:"red",children:"auth"})]})]})})})})},S.name)};return H.jsxs("div",{children:[H.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:a.margin},children:[H.jsx(YJ,{level:3,style:{margin:0},children:"Schemas"}),H.jsxs(zn,{children:[H.jsx(Cl,{count:g,offset:[-5,5],children:H.jsx(wn,{icon:H.jsx(Lu,{}),onClick:()=>c(!0),type:g>0?"primary":"default",ghost:g>0,children:g>0?`${g} Changes`:"No Changes"})}),H.jsx(wn,{type:"primary",icon:H.jsx(pl,{}),onClick:()=>e("/schema/new"),children:"New Schema"})]})]}),v.length===0?H.jsx(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE,description:"No schemas found",style:{marginTop:a.marginXL},children:H.jsx(wn,{type:"primary",onClick:()=>e("/schema/new"),children:"Create First Schema"})}):H.jsxs(H.Fragment,{children:[H.jsxs("div",{style:{marginBottom:a.marginLG},children:[H.jsx(hu,{orientation:"left",children:H.jsxs(zn,{children:[H.jsx(Tl,{style:{color:a.colorPrimary}}),H.jsxs("span",{children:["Objects (",h.length,")"]})]})}),h.length===0?H.jsx(lu,{type:"secondary",style:{marginLeft:a.marginLG},children:"No object schemas"}):H.jsx(Em,{gutter:[16,16],children:h.map(C)})]}),H.jsxs("div",{children:[H.jsx(hu,{orientation:"left",children:H.jsxs(zn,{children:[H.jsx(I2,{style:{color:a.colorPurple}}),H.jsxs("span",{children:["Enums (",b.length,")"]})]})}),b.length===0?H.jsx(lu,{type:"secondary",style:{marginLeft:a.marginLG},children:"No enum schemas"}):H.jsx(Em,{gutter:[16,16],children:b.map(C)})]})]}),H.jsx(XJ,{open:l,onClose:()=>c(!1)})]})}function ZJ({schemaName:e}){const{previews:t,loadPreview:n,loading:r}=Ki(),{token:a}=ya.useToken(),[l,c]=s.useState("laravel");s.useEffect(()=>{n(l,e)},[l,e,n]);const u=d=>{c(d)};return r?H.jsx(Gr,{children:H.jsx("div",{style:{textAlign:"center",padding:a.paddingXL},children:H.jsx(Vi,{size:"large"})})}):H.jsx(Gr,{children:H.jsx(xg,{activeKey:l,onChange:u,items:[{key:"laravel",label:"Laravel Migration",children:H.jsx(Wh,{previews:t,type:"laravel"})},{key:"typescript",label:"TypeScript",children:H.jsx(Wh,{previews:t,type:"typescript"})},{key:"sql",label:"Raw SQL",children:H.jsx(Wh,{previews:t,type:"sql"})}]})})}function Wh({previews:e,type:t}){const{token:n}=ya.useToken(),a=(Array.isArray(e)?e:[]).filter(l=>l.type===t);return a.length===0?H.jsx(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE,description:"No preview available"}):H.jsx("div",{style:{display:"flex",flexDirection:"column",gap:n.margin},children:a.map((l,c)=>H.jsxs("div",{children:[H.jsxs("div",{style:{display:"flex",alignItems:"center",gap:n.marginXS,marginBottom:n.marginXS},children:[H.jsx(iZ,{}),H.jsx("strong",{children:l.fileName})]}),H.jsx("pre",{style:{background:n.colorBgLayout,padding:n.padding,borderRadius:n.borderRadius,overflow:"auto",maxHeight:400,fontSize:13,lineHeight:1.5},children:H.jsx("code",{children:l.content})})]},c))})}const JJ=["String","Int","BigInt","Float","Decimal","Boolean","Text","LongText","Date","Time","Timestamp","Json","Email","Password","File","MultiFile","Point","Coordinates","Enum","Select","Lookup"],MM=["OneToOne","OneToMany","ManyToOne","ManyToMany"],eee=["MorphTo","MorphOne","MorphMany","MorphToMany","MorphedByMany"],J2=["CASCADE","SET NULL","SET DEFAULT","RESTRICT","NO ACTION"];function jM(e){return!e||!e.trim()?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e.trim())}function tee(e,t,n){const r=t.trim();return e.some((a,l)=>l!==n&&a===r)}function nee(e,t,n){const r=(e==null?void 0:e.trim())??"";return r?jM(r)?tee(t,r,n)?{valid:!1,error:"Duplicate value"}:{valid:!0}:{valid:!1,error:"Must be a valid identifier (a-z, A-Z, 0-9, _)"}:{valid:!1,error:"Value is required"}}const{Text:ea}=fo,ree=[{label:"Standard Relations",options:MM.map(e=>({value:e,label:e.replace(/([A-Z])/g," $1").trim()}))},{label:"Polymorphic Relations",options:eee.map(e=>({value:e,label:e.replace(/([A-Z])/g," $1").trim()}))}],aee=["String","Email","Password"],oee=["Int","BigInt","Float","Decimal"];function iee(){const{name:e}=ZY(),t=cd(),{schemas:n,loading:r,createSchema:a,updateSchema:l,validateSchema:c}=Ki(),{databaseType:u}=uc(),{token:d}=ya.useToken(),{message:m}=ty.useApp(),g=LJ[u],[v]=Et.useForm(),[h]=Et.useForm(),[b]=Et.useForm(),[y,C]=s.useState({name:"",kind:"object",id:!0,idType:"BigInt",timestamps:!0,softDelete:!1}),[S,x]=s.useState([]),[w,E]=s.useState([]),[R,N]=s.useState([]),[I,M]=s.useState(!1),j=y.name?y.name.charAt(0).toLowerCase()+y.name.slice(1):"",T=j?j.endsWith("y")?j.slice(0,-1)+"ies":j.endsWith("s")?j+"es":j+"s":"",z=T?T.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""):"",[L,D]=s.useState(!1),[A,_]=s.useState(!1),[V,P]=s.useState(null),[B,K]=s.useState(!1),[G,Q]=s.useState(null),[k,U]=s.useState(!1),[W,X]=s.useState(null),[J]=Et.useForm(),[ne,se]=s.useState([]),re=e&&e!=="new"?n[e]:null,oe=Object.keys(n).filter(pe=>pe!==e),Se=S.map(pe=>pe.name).filter(Boolean),me=(pe,be)=>{const we=R.map(ke=>ke.value),Ke=nee(pe,we,be);return Ke.valid?null:Ke.error??"Invalid value"};s.useEffect(()=>{var pe,be,we,Ke,ke,He,Le,nt,pt,ht,zt;if(e==="new"){M(!0);const tt={name:"",kind:"object",id:!0,idType:"BigInt",timestamps:!0,softDelete:!1,authenticatableLoginIdField:"email",authenticatablePasswordField:"password",authenticatableGuardName:"web"};C(tt),x([]),E([]),N([]),v.setFieldsValue(tt),D(!0)}else if(re){M(!1);const tt={name:re.name,kind:re.kind,displayName:re.displayName,singular:re.singular,plural:re.plural,titleIndex:re.titleIndex,group:re.group,id:((pe=re.options)==null?void 0:pe.id)??!0,idType:((be=re.options)==null?void 0:be.idType)??"BigInt",timestamps:((we=re.options)==null?void 0:we.timestamps)??!1,softDelete:((Ke=re.options)==null?void 0:Ke.softDelete)??!1,tableName:(ke=re.options)==null?void 0:ke.tableName,translations:((He=re.options)==null?void 0:He.translations)??!1,authenticatable:((Le=re.options)==null?void 0:Le.authenticatable)??!1,authenticatableLoginIdField:((nt=re.options)==null?void 0:nt.authenticatableLoginIdField)??"email",authenticatablePasswordField:((pt=re.options)==null?void 0:pt.authenticatablePasswordField)??"password",authenticatableGuardName:((ht=re.options)==null?void 0:ht.authenticatableGuardName)??"web"};C(tt);const Ze=Object.entries(re.properties??{}).map(([Ft,Nt])=>({name:Ft,type:Nt.type,nullable:Nt.nullable,unique:Nt.unique,default:Nt.default!==void 0?String(Nt.default):void 0,displayName:Nt.displayName,description:Nt.description,relation:Nt.relation,target:Nt.target,targets:Nt.targets,morphName:Nt.morphName,inversedBy:Nt.inversedBy,mappedBy:Nt.mappedBy,onDelete:Nt.onDelete,onUpdate:Nt.onUpdate,owning:Nt.owning,joinTable:Nt.joinTable,length:Nt.length,precision:Nt.precision,scale:Nt.scale,unsigned:Nt.unsigned,enum:Nt.enum,options:Nt.options,source:Nt.source}));x(Ze);const Ct=(((zt=re.options)==null?void 0:zt.indexes)??[]).map(Ft=>({name:Ft.name,columns:[...Ft.columns],unique:Ft.unique,type:Ft.type}));E(Ct),N(re.values?[...re.values]:[])}},[e,re,v]);const ie=async()=>{try{if(y.kind==="enum"){for(let we=0;we<R.length;we++){const Ke=me(R[we].value,we);if(Ke){m.error(`Enum value ${we+1}: ${Ke}`);return}}if(R.length===0){m.error("Enum must have at least one value");return}}const pe={};for(const we of S){const Ke={type:we.type};we.nullable&&(Ke.nullable=we.nullable),we.unique&&(Ke.unique=we.unique),we.default!==void 0&&we.default!==""&&(Ke.default=we.default),we.displayName&&(Ke.displayName=we.displayName),we.description&&(Ke.description=we.description),we.relation&&(Ke.relation=we.relation),we.target&&(Ke.target=we.target),we.targets&&we.targets.length>0&&(Ke.targets=we.targets),we.morphName&&(Ke.morphName=we.morphName),we.inversedBy&&(Ke.inversedBy=we.inversedBy),we.mappedBy&&(Ke.mappedBy=we.mappedBy),we.onDelete&&(Ke.onDelete=we.onDelete),we.onUpdate&&(Ke.onUpdate=we.onUpdate),we.owning!==void 0&&(Ke.owning=we.owning),we.joinTable&&(Ke.joinTable=we.joinTable),we.length!==void 0&&(Ke.length=we.length),we.precision!==void 0&&(Ke.precision=we.precision),we.scale!==void 0&&(Ke.scale=we.scale),we.unsigned&&(Ke.unsigned=we.unsigned),we.enum&&(Ke.enum=we.enum),we.options&&we.options.length>0&&(Ke.options=we.options),we.source&&(Ke.source=we.source),pe[we.name]=Ke}const be={name:y.name,kind:y.kind,filePath:(re==null?void 0:re.filePath)??""};y.displayName&&(be.displayName=y.displayName),y.singular&&(be.singular=y.singular),y.plural&&(be.plural=y.plural),y.titleIndex&&(be.titleIndex=y.titleIndex),y.group&&(be.group=y.group),y.kind==="enum"?be.values=R:be.properties=pe,be.options={id:y.id,idType:y.idType,timestamps:y.timestamps,softDelete:y.softDelete},y.tableName&&(be.options.tableName=y.tableName),y.translations&&(be.options.translations=y.translations),y.authenticatable&&(be.options.authenticatable=!0,y.authenticatableLoginIdField&&(be.options.authenticatableLoginIdField=y.authenticatableLoginIdField),y.authenticatablePasswordField&&(be.options.authenticatablePasswordField=y.authenticatablePasswordField),y.authenticatableGuardName&&(be.options.authenticatableGuardName=y.authenticatableGuardName)),w.length>0&&(be.options.indexes=w.map(we=>({columns:we.columns,unique:we.unique,name:we.name,type:we.type}))),await c(be),I?(await a(be),m.success(`Schema "${y.name}" created`),t(`/schema/${y.name}`)):(await l(e,be),m.success(`Schema "${y.name}" saved`))}catch(pe){m.error(pe.message)}},ge=()=>{v.setFieldsValue(y),D(!0)},ue=async()=>{try{const pe=await v.validateFields();C({...y,...pe}),D(!1)}catch{}},ae=()=>{P(null),h.resetFields(),h.setFieldsValue({type:"String",nullable:!1,unique:!1}),_(!0)},ce=pe=>{P(pe);const be=S[pe];h.setFieldsValue(be),_(!0)},ye=async()=>{try{const pe=await h.validateFields(),be={name:pe.name,type:pe.type,nullable:pe.nullable,unique:pe.unique,default:pe.default,displayName:pe.displayName,description:pe.description,relation:pe.relation,target:pe.target,targets:pe.targets,morphName:pe.morphName,inversedBy:pe.inversedBy,mappedBy:pe.mappedBy,onDelete:pe.onDelete,onUpdate:pe.onUpdate,owning:pe.owning,joinTable:pe.joinTable,length:pe.length,precision:pe.precision,scale:pe.scale,unsigned:pe.unsigned,enum:pe.enum,options:pe.options,source:pe.source};if(V!==null){const we=[...S];we[V]=be,x(we)}else x([...S,be]);_(!1)}catch{}},Ce=pe=>{x(S.filter((be,we)=>we!==pe))},je=()=>{Q(null),b.resetFields(),b.setFieldsValue({unique:!1}),K(!0)},ze=pe=>{Q(pe);const be=w[pe];b.setFieldsValue(be),K(!0)},ve=async()=>{try{const pe=await b.validateFields(),be={name:pe.name||void 0,columns:pe.columns,unique:pe.unique,type:pe.type||void 0};if(G!==null){const we=[...w];we[G]=be,E(we)}else E([...w,be]);K(!1)}catch{}},Te=pe=>{E(w.filter((be,we)=>we!==pe))},Ee=()=>{X(null),J.resetFields(),J.setFieldsValue({value:"",label:""}),se([]),U(!0)},xe=pe=>{X(pe);const be=R[pe];J.setFieldsValue({value:be.value,label:be.label??""});const we=be.extra?Object.entries(be.extra).map(([Ke,ke])=>({key:Ke,value:String(ke)})):[];se(we),U(!0)},Ve=async()=>{try{const pe=await J.validateFields(),be=me(pe.value,W??R.length);if(be){m.error(be);return}const we={};for(const ke of ne)ke.key.trim()&&(we[ke.key.trim()]=ke.value);const Ke={value:pe.value,label:pe.label||void 0,extra:Object.keys(we).length>0?we:void 0};if(W!==null){const ke=[...R];ke[W]=Ke,N(ke)}else N([...R,Ke]);U(!1)}catch{}},Xe=pe=>{N(R.filter((be,we)=>we!==pe))},it=()=>{se([...ne,{key:"",value:""}])},at=(pe,be,we)=>{const Ke=[...ne];Ke[pe]={...Ke[pe],[be]:we},se(Ke)},Ye=pe=>{se(ne.filter((be,we)=>we!==pe))},Je=Et.useWatch("type",h),_e=Et.useWatch("relation",h),Ie=Et.useWatch("kind",v),We=Et.useWatch("authenticatable",v),Be=Et.useWatch("id",v),Ge=aee.includes(Je),Me=oee.includes(Je),Qe=Je==="Decimal",lt=Je==="Enum",mt=Je==="Select"||Je==="Lookup",Dt=Je==="Association",At=_e==="MorphTo",et=["MorphOne","MorphMany","MorphedByMany"].includes(_e??""),ct=["ManyToMany","MorphToMany"].includes(_e??""),gt=MM.includes(_e);if(r&&!re&&e!=="new")return H.jsx("div",{style:{textAlign:"center",padding:d.paddingXL},children:H.jsx(Vi,{size:"large"})});const ot=[{title:"Name",dataIndex:"name",key:"name",render:pe=>H.jsx(ea,{strong:!0,children:pe})},{title:"Type",dataIndex:"type",key:"type",render:(pe,be)=>H.jsxs(zn,{children:[H.jsx(qn,{color:"blue",children:pe}),pe==="Association"&&be.target&&H.jsxs(qn,{color:"purple",children:[be.relation," → ",be.target]}),pe==="Association"&&be.targets&&be.targets.length>0&&H.jsxs(qn,{color:"magenta",children:[be.relation," → [",be.targets.join(", "),"]"]}),be.length!==void 0&&H.jsxs(qn,{color:"cyan",children:["len:",be.length]}),be.precision!==void 0&&H.jsxs(qn,{color:"cyan",children:["(",be.precision,",",be.scale??2,")"]})]})},{title:"Options",key:"options",render:(pe,be)=>H.jsxs(zn,{size:"small",children:[be.nullable&&H.jsx(qn,{children:"Nullable"}),be.unique&&H.jsx(qn,{color:"orange",children:"Unique"}),be.unsigned&&H.jsx(qn,{color:"red",children:"Unsigned"}),be.default!==void 0&&be.default!==""&&H.jsx(ja,{title:`Default: ${be.default}`,children:H.jsx(qn,{color:"green",children:"Default"})})]})},{title:"Actions",key:"actions",width:100,render:(pe,be,we)=>H.jsxs(zn,{children:[H.jsx(wn,{type:"text",icon:H.jsx(ji,{}),onClick:()=>ce(we)}),H.jsx(tm,{title:"Delete this property?",onConfirm:()=>Ce(we),okText:"Yes",cancelText:"No",children:H.jsx(wn,{type:"text",danger:!0,icon:H.jsx(rm,{})})})]})}],vt=[{title:"Name",dataIndex:"name",key:"name",render:(pe,be)=>H.jsx(ea,{strong:!0,children:pe||`index_${be._idx+1}`})},{title:"Columns",dataIndex:"columns",key:"columns",render:pe=>H.jsx(zn,{size:"small",children:pe.map(be=>H.jsx(qn,{color:"cyan",children:be},be))})},{title:"Options",key:"options",render:(pe,be)=>H.jsxs(zn,{size:"small",children:[be.unique&&H.jsx(qn,{color:"orange",children:"Unique"}),be.type&&H.jsx(qn,{color:"geekblue",children:be.type})]})},{title:"Actions",key:"actions",width:100,render:(pe,be)=>H.jsxs(zn,{children:[H.jsx(wn,{type:"text",icon:H.jsx(ji,{}),onClick:()=>ze(be._idx)}),H.jsx(tm,{title:"Delete this index?",onConfirm:()=>Te(be._idx),okText:"Yes",cancelText:"No",children:H.jsx(wn,{type:"text",danger:!0,icon:H.jsx(rm,{})})})]})}],Mt=[];return y.id&&Mt.push(H.jsxs(qn,{color:"blue",children:["ID: ",y.idType]},"id")),y.timestamps&&Mt.push(H.jsx(qn,{color:"green",children:"Timestamps"},"ts")),y.softDelete&&Mt.push(H.jsx(qn,{color:"orange",children:"Soft Delete"},"sd")),y.translations&&Mt.push(H.jsx(qn,{color:"purple",children:"Translations"},"tr")),y.authenticatable&&Mt.push(H.jsx(qn,{color:"red",children:"Authenticatable"},"auth")),H.jsxs("div",{children:[H.jsxs("div",{style:{marginBottom:d.margin,display:"flex",justifyContent:"space-between"},children:[H.jsx(wn,{icon:H.jsx(eZ,{}),onClick:()=>t("/"),children:"Back"}),H.jsx(wn,{type:"primary",icon:H.jsx(IZ,{}),onClick:ie,size:"large",children:I?"Create Schema":"Save Changes"})]}),H.jsx(xg,{items:[{key:"editor",label:"Editor",children:H.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:d.margin},children:[H.jsx(Gr,{title:I?"New Schema":y.name,size:"small",extra:H.jsx(wn,{icon:H.jsx(ji,{}),onClick:ge,children:"Edit"}),children:H.jsxs(Pn,{column:3,size:"small",children:[H.jsx(Pn.Item,{label:"Name",children:H.jsx(ea,{strong:!0,children:y.name||"-"})}),H.jsx(Pn.Item,{label:"Display Name",children:y.displayName||"-"}),H.jsx(Pn.Item,{label:"Kind",children:H.jsx(qn,{color:y.kind==="enum"?"purple":"blue",children:y.kind})}),H.jsx(Pn.Item,{label:"Singular",children:y.singular||H.jsxs(ea,{type:"secondary",children:[j||"-"," (auto)"]})}),H.jsx(Pn.Item,{label:"Plural",children:y.plural||H.jsxs(ea,{type:"secondary",children:[T||"-"," (auto)"]})}),H.jsx(Pn.Item,{label:"Group",children:y.group||"-"}),y.kind==="object"&&H.jsxs(H.Fragment,{children:[H.jsx(Pn.Item,{label:"Table Name",children:y.tableName?H.jsx(ea,{code:!0,children:y.tableName}):H.jsxs(ea,{type:"secondary",children:[H.jsx(ea,{code:!0,children:z||"-"})," (auto)"]})}),H.jsx(Pn.Item,{label:"Title Field",children:y.titleIndex||"-"}),H.jsx(Pn.Item,{label:""}),H.jsx(Pn.Item,{label:"Options",span:3,children:Mt.length>0?H.jsx(zn,{size:"small",children:Mt}):"-"}),y.authenticatable&&H.jsx(Pn.Item,{label:"Auth Config",span:3,children:H.jsxs(zn,{children:[H.jsx(ea,{type:"secondary",children:"Login:"})," ",y.authenticatableLoginIdField,H.jsx(ea,{type:"secondary",children:"Password:"})," ",y.authenticatablePasswordField,H.jsx(ea,{type:"secondary",children:"Guard:"})," ",y.authenticatableGuardName]})})]})]})}),y.kind==="enum"&&H.jsx(Gr,{title:"Enum Values",size:"small",extra:H.jsx(wn,{type:"primary",icon:H.jsx(pl,{}),onClick:Ee,children:"Add Value"}),children:H.jsx(qa,{dataSource:R.map((pe,be)=>({...pe,_idx:be,_key:`enum_${be}_${pe.value||"new"}`})),rowKey:"_key",pagination:!1,size:"small",locale:{emptyText:'No enum values defined. Click "Add Value" to start.'},columns:[{title:"Value",dataIndex:"value",key:"value",render:pe=>H.jsx(ea,{strong:!0,code:!0,children:pe})},{title:"Label",dataIndex:"label",key:"label",render:pe=>pe||H.jsx(ea,{type:"secondary",children:"-"})},{title:"Extra",key:"extra",width:120,render:(pe,be)=>{const we=be.extra?Object.keys(be.extra).length:0;return we>0?H.jsx(ja,{title:Object.entries(be.extra).map(([Ke,ke])=>`${Ke}: ${ke}`).join(", "),children:H.jsxs(qn,{color:"blue",children:[we," props"]})}):H.jsx(ea,{type:"secondary",children:"-"})}},{title:"Actions",key:"actions",width:100,render:(pe,be)=>H.jsxs(zn,{children:[H.jsx(wn,{type:"text",icon:H.jsx(ji,{}),onClick:()=>xe(be._idx)}),H.jsx(tm,{title:"Delete this value?",onConfirm:()=>Xe(be._idx),okText:"Yes",cancelText:"No",children:H.jsx(wn,{type:"text",danger:!0,icon:H.jsx(rm,{})})})]})}]})}),y.kind==="object"&&H.jsx(Gr,{title:"Properties",size:"small",extra:H.jsx(wn,{type:"primary",icon:H.jsx(pl,{}),onClick:ae,children:"Add Property"}),children:H.jsx(qa,{dataSource:S,columns:ot,rowKey:"name",pagination:!1,size:"small",locale:{emptyText:'No properties defined. Click "Add Property" to start.'}})}),y.kind==="object"&&H.jsx(Gr,{title:"Indexes",size:"small",extra:H.jsx(wn,{type:"primary",icon:H.jsx(pl,{}),onClick:je,disabled:Se.length===0,children:"Add Index"}),children:H.jsx(qa,{dataSource:w.map((pe,be)=>({...pe,_idx:be,_key:`idx_${be}_${pe.columns.join("_")}`})),columns:vt,rowKey:"_key",pagination:!1,size:"small",locale:{emptyText:'No indexes defined. Click "Add Index" to optimize queries.'}})})]})},{key:"preview",label:"Code Preview",children:H.jsx(ZJ,{schemaName:e==="new"?void 0:e})}]}),H.jsx(Xr,{title:"Edit Schema",open:L,onOk:ue,onCancel:()=>D(!1),okText:"Apply",width:700,children:H.jsxs(Et,{form:v,layout:"vertical",style:{marginTop:d.margin},children:[H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:d.margin},children:[H.jsx(Et.Item,{name:"name",label:"Schema Name",rules:[{required:!0,message:"Name is required"}],children:H.jsx(kn,{placeholder:"e.g., User, Post",disabled:!I})}),H.jsx(Et.Item,{name:"displayName",label:"Display Name",children:H.jsx(kn,{placeholder:"e.g., User Account"})}),H.jsx(Et.Item,{name:"kind",label:"Kind",children:H.jsx(tr,{disabled:!I,options:[{value:"object",label:"Object"},{value:"enum",label:"Enum"}]})})]}),H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:d.margin},children:[H.jsx(Et.Item,{name:"singular",label:"Singular Name",children:H.jsx(kn,{placeholder:j?`${j} (auto)`:"e.g., user"})}),H.jsx(Et.Item,{name:"plural",label:"Plural Name",children:H.jsx(kn,{placeholder:T?`${T} (auto)`:"e.g., users"})}),H.jsx(Et.Item,{name:"group",label:"Group",children:H.jsx(kn,{placeholder:"e.g., auth, content"})})]}),Ie==="object"&&H.jsxs(H.Fragment,{children:[H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:d.margin},children:[H.jsx(Et.Item,{name:"tableName",label:"Custom Table Name",children:H.jsx(kn,{placeholder:z?`${z} (auto)`:"e.g., users"})}),H.jsx(Et.Item,{name:"titleIndex",label:"Title Field",children:H.jsx(tr,{allowClear:!0,options:Se.map(pe=>({value:pe,label:pe})),placeholder:"Field to use as title"})})]}),H.jsx(hu,{style:{margin:`${d.marginSM}px 0`}}),H.jsxs("div",{style:{display:"flex",gap:d.marginLG,flexWrap:"wrap",alignItems:"flex-end"},children:[H.jsx(Et.Item,{name:"id",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Auto ID"})}),H.jsx(Et.Item,{name:"idType",label:"ID Type",style:{marginBottom:0,minWidth:100},children:H.jsx(tr,{disabled:!Be,options:[{value:"BigInt",label:"BigInt"},{value:"Int",label:"Int"},{value:"Uuid",label:"UUID"},{value:"String",label:"String"}]})}),H.jsx(Et.Item,{name:"timestamps",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Timestamps"})}),H.jsx(Et.Item,{name:"softDelete",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Soft Delete"})}),H.jsx(Et.Item,{name:"translations",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Translations"})}),H.jsx(Et.Item,{name:"authenticatable",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Authenticatable"})})]}),We&&H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:d.margin,marginTop:d.margin,background:d.colorBgTextHover,padding:d.padding,borderRadius:d.borderRadius},children:[H.jsx(Et.Item,{name:"authenticatableLoginIdField",label:"Login ID Field",style:{marginBottom:0},children:H.jsx(kn,{placeholder:"email"})}),H.jsx(Et.Item,{name:"authenticatablePasswordField",label:"Password Field",style:{marginBottom:0},children:H.jsx(kn,{placeholder:"password"})}),H.jsx(Et.Item,{name:"authenticatableGuardName",label:"Guard Name",style:{marginBottom:0},children:H.jsx(kn,{placeholder:"web"})})]})]})]})}),H.jsx(Xr,{title:V!==null?"Edit Property":"Add Property",open:A,onOk:ye,onCancel:()=>_(!1),okText:V!==null?"Update":"Add",width:600,children:H.jsxs(Et,{form:h,layout:"vertical",style:{marginTop:d.margin},children:[H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:d.margin},children:[H.jsx(Et.Item,{name:"name",label:"Property Name",rules:[{required:!0,message:"Name is required"},{pattern:/^[a-zA-Z_][a-zA-Z0-9_]*$/,message:"Invalid property name"}],children:H.jsx(kn,{placeholder:"e.g., email, firstName"})}),H.jsx(Et.Item,{name:"type",label:"Type",rules:[{required:!0,message:"Type is required"}],children:H.jsx(tr,{options:[...JJ.map(pe=>({value:pe,label:pe})),{value:"Association",label:"Association (Relation)"}],showSearch:!0})})]}),Ge&&H.jsx(Et.Item,{name:"length",label:"Max Length",children:H.jsx(em,{min:1,max:65535,placeholder:"255",style:{width:"100%"}})}),Me&&H.jsxs("div",{style:{display:"grid",gridTemplateColumns:Qe?"1fr 1fr 1fr":"1fr",gap:d.margin},children:[Qe&&H.jsxs(H.Fragment,{children:[H.jsx(Et.Item,{name:"precision",label:"Precision (Total Digits)",children:H.jsx(em,{min:1,max:65,placeholder:"8",style:{width:"100%"}})}),H.jsx(Et.Item,{name:"scale",label:"Scale (Decimal Places)",children:H.jsx(em,{min:0,max:30,placeholder:"2",style:{width:"100%"}})})]}),H.jsx(Et.Item,{name:"unsigned",valuePropName:"checked",style:{alignSelf:"end"},children:H.jsx(na,{children:"Unsigned (positive only)"})})]}),lt&&H.jsx(Et.Item,{name:"enum",label:"Enum Reference or Values",rules:[{required:!0,message:"Enum is required"}],children:H.jsx(tr,{mode:"tags",placeholder:"Type enum name or add values",options:oe.filter(pe=>{var be;return((be=n[pe])==null?void 0:be.kind)==="enum"}).map(pe=>({value:pe,label:`${pe} (Enum)`}))})}),mt&&H.jsxs(H.Fragment,{children:[H.jsx(Et.Item,{name:"options",label:"Options (for Select)",children:H.jsx(tr,{mode:"tags",placeholder:"Add options"})}),H.jsx(Et.Item,{name:"source",label:"Source Schema (for Lookup)",children:H.jsx(tr,{allowClear:!0,options:oe.map(pe=>({value:pe,label:pe})),placeholder:"Select source schema"})})]}),Dt&&H.jsxs(H.Fragment,{children:[H.jsx(Et.Item,{name:"relation",label:"Relation Type",rules:[{required:!0,message:"Relation is required"}],children:H.jsx(tr,{options:ree})}),gt&&H.jsx(Et.Item,{name:"target",label:"Target Schema",rules:[{required:!0,message:"Target is required"}],children:H.jsx(tr,{options:oe.map(pe=>({value:pe,label:pe})),placeholder:"Select target schema",showSearch:!0})}),At&&H.jsx(Et.Item,{name:"targets",label:"Target Schemas (Polymorphic)",rules:[{required:!0,message:"At least one target is required"}],children:H.jsx(tr,{mode:"multiple",options:oe.map(pe=>({value:pe,label:pe})),placeholder:"Select possible target schemas"})}),et&&H.jsxs(H.Fragment,{children:[H.jsx(Et.Item,{name:"target",label:"Target Schema",rules:[{required:!0,message:"Target is required"}],children:H.jsx(tr,{options:oe.map(pe=>({value:pe,label:pe})),placeholder:"Select target schema",showSearch:!0})}),H.jsx(Et.Item,{name:"morphName",label:"Morph Name",rules:[{required:!0,message:"Morph name is required for polymorphic inverse"}],children:H.jsx(kn,{placeholder:"e.g., commentable, taggable"})})]}),_e==="MorphToMany"&&H.jsxs(H.Fragment,{children:[H.jsx(Et.Item,{name:"target",label:"Target Schema",rules:[{required:!0,message:"Target is required"}],children:H.jsx(tr,{options:oe.map(pe=>({value:pe,label:pe})),placeholder:"Select target schema",showSearch:!0})}),H.jsx(Et.Item,{name:"morphName",label:"Morph Name",children:H.jsx(kn,{placeholder:"e.g., taggable"})})]}),H.jsx(qb,{ghost:!0,items:[{key:"advanced",label:"Advanced Options",children:H.jsxs(H.Fragment,{children:[H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:d.margin},children:[H.jsx(Et.Item,{name:"inversedBy",label:"Inversed By",children:H.jsx(kn,{placeholder:"Property on target"})}),H.jsx(Et.Item,{name:"mappedBy",label:"Mapped By",children:H.jsx(kn,{placeholder:"Property on target"})})]}),H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:d.margin},children:[H.jsx(Et.Item,{name:"onDelete",label:"On Delete",children:H.jsx(tr,{allowClear:!0,options:J2.map(pe=>({value:pe,label:pe})),placeholder:"CASCADE"})}),H.jsx(Et.Item,{name:"onUpdate",label:"On Update",children:H.jsx(tr,{allowClear:!0,options:J2.map(pe=>({value:pe,label:pe})),placeholder:"CASCADE"})})]}),ct&&H.jsx(Et.Item,{name:"joinTable",label:"Custom Join Table Name",children:H.jsx(kn,{placeholder:"Auto-generated if empty"})}),H.jsx(Et.Item,{name:"owning",valuePropName:"checked",children:H.jsx(na,{children:"Owning Side (has foreign key)"})})]})}]})]}),H.jsx(hu,{style:{margin:`${d.marginSM}px 0`}}),H.jsxs(zn,{size:"large",children:[H.jsx(Et.Item,{name:"nullable",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Nullable"})}),H.jsx(Et.Item,{name:"unique",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Unique"})})]}),H.jsx(Et.Item,{name:"default",label:"Default Value",style:{marginTop:d.margin},children:H.jsx(kn,{placeholder:"Leave empty for no default"})}),H.jsx(Et.Item,{name:"displayName",label:"Display Name",children:H.jsx(kn,{placeholder:"Human readable name for forms"})}),H.jsx(Et.Item,{name:"description",label:"Description",children:H.jsx(kn.TextArea,{placeholder:"Field description/comment",rows:2})})]})}),H.jsx(Xr,{title:G!==null?"Edit Index":"Add Index",open:B,onOk:ve,onCancel:()=>K(!1),okText:G!==null?"Update":"Add",width:500,children:H.jsxs(Et,{form:b,layout:"vertical",style:{marginTop:d.margin},children:[H.jsx(Et.Item,{name:"columns",label:"Columns",rules:[{required:!0,message:"Select at least one column"}],children:H.jsx(tr,{mode:"multiple",options:Se.map(pe=>({value:pe,label:pe})),placeholder:"Select columns for this index"})}),H.jsx(Et.Item,{name:"name",label:"Index Name (optional)",children:H.jsx(kn,{placeholder:"Auto-generated if empty"})}),g.length>0&&H.jsx(Et.Item,{name:"type",label:`Index Type (${u})`,children:H.jsx(tr,{allowClear:!0,options:g.map(pe=>({value:pe,label:pe.toUpperCase()})),placeholder:"Default: btree"})}),H.jsx(Et.Item,{name:"unique",valuePropName:"checked",noStyle:!0,children:H.jsx(na,{children:"Unique Index"})})]})}),H.jsx(Xr,{title:W!==null?"Edit Enum Value":"Add Enum Value",open:k,onOk:Ve,onCancel:()=>U(!1),okText:W!==null?"Update":"Add",width:500,children:H.jsxs(Et,{form:J,layout:"vertical",style:{marginTop:d.margin},children:[H.jsx(Et.Item,{name:"value",label:"Value",normalize:pe=>(pe==null?void 0:pe.trim())??pe,rules:[{required:!0,message:"Value is required"},{validator:(pe,be)=>be?jM(be)?Promise.resolve():Promise.reject(new Error("Must be a valid identifier (a-z, A-Z, 0-9, _)")):Promise.resolve()}],children:H.jsx(kn,{placeholder:"e.g., ACTIVE, pending, InProgress"})}),H.jsx(Et.Item,{name:"label",label:"Display Label (for forms)",children:H.jsx(kn,{placeholder:"e.g., Active Status, In Progress"})}),H.jsx(hu,{style:{margin:`${d.marginSM}px 0`}}),H.jsxs("div",{style:{marginBottom:d.marginSM},children:[H.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:d.marginXS},children:[H.jsx(ea,{type:"secondary",children:"Extra Properties (for UI customization)"}),H.jsx(wn,{size:"small",icon:H.jsx(pl,{}),onClick:it,children:"Add Property"})]}),ne.length===0?H.jsx(ea,{type:"secondary",style:{fontStyle:"italic",display:"block"},children:"No extra properties. Add custom fields like bgColor, textColor, icon, order, etc."}):H.jsx(zn,{direction:"vertical",style:{width:"100%"},children:ne.map((pe,be)=>H.jsxs(zn,{style:{width:"100%"},children:[H.jsx(kn,{value:pe.key,onChange:we=>at(be,"key",we.target.value),placeholder:"Key (e.g., bgColor)",style:{width:150}}),H.jsx(kn,{value:pe.value,onChange:we=>at(be,"value",we.target.value),placeholder:"Value (e.g., #ff0000)",style:{width:200}}),H.jsx(wn,{type:"text",danger:!0,icon:H.jsx(jm,{}),onClick:()=>Ye(be)})]},be))})]})]})})]})}const{Title:lee,Text:dl}=fo;function see(){const{schemas:e}=Ki(),{token:t}=ya.useToken(),n=Object.values(e),r=[];for(const a of n)if(a.properties)for(const[l,c]of Object.entries(a.properties)){const u=c;u.type==="Association"&&u.target&&r.push({from:a.name,to:u.target,type:u.relation??"Unknown",property:l})}return H.jsxs("div",{children:[H.jsx(lee,{level:3,children:"Relationships"}),r.length===0?H.jsx(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE,description:"No relationships defined yet"}):H.jsx(Gr,{children:H.jsx("div",{style:{display:"flex",flexDirection:"column",gap:t.margin},children:r.map((a,l)=>H.jsxs("div",{style:{padding:t.padding,background:t.colorBgLayout,borderRadius:t.borderRadius,display:"flex",alignItems:"center",gap:t.margin},children:[H.jsx(dl,{strong:!0,children:a.from}),H.jsx(dl,{type:"secondary",children:"→"}),H.jsx(dl,{code:!0,children:a.type}),H.jsx(dl,{type:"secondary",children:"→"}),H.jsx(dl,{strong:!0,children:a.to}),H.jsxs(dl,{type:"secondary",children:["(via ",a.property,")"]})]},l))})}),H.jsx(Gr,{style:{marginTop:t.margin},children:H.jsx(dl,{type:"secondary",children:"Relationship visualization diagram coming soon. Currently showing a list of all defined relationships between schemas."})})]})}const{Title:cee,Text:su}=fo,{Panel:uee}=qb;function dee(){const{token:e}=ya.useToken(),[t,n]=s.useState([]),[r,a]=s.useState(!0),[l,c]=s.useState(null),[u,d]=s.useState(null),[m,g]=s.useState(!1),[v,h]=s.useState(!1),[b,y]=s.useState(null),[C,S]=s.useState(null);s.useEffect(()=>{x()},[]);const x=async()=>{a(!0),c(null);try{const N=await Cu.getAll();n(N.reverse())}catch(N){c(N.message)}finally{a(!1)}},w=async N=>{try{const I=await Cu.get(N);d(I),g(!0)}catch(I){c(I.message)}},E=async(N,I)=>{try{const M=await Cu.getDiff(N,I);y(M),S({from:N,to:I}),h(!0)}catch(M){c(M.message)}},R=[{title:"Version",dataIndex:"version",key:"version",width:100,render:N=>H.jsx(Cl,{count:`v${N}`,style:{backgroundColor:e.colorPrimary}})},{title:"Migration",dataIndex:"migration",key:"migration",ellipsis:!0,render:N=>N||H.jsx(su,{type:"secondary",children:"-"})},{title:"Description",dataIndex:"description",key:"description",ellipsis:!0,render:N=>N||H.jsx(su,{type:"secondary",children:"-"})},{title:"Schemas",dataIndex:"schemaCount",key:"schemaCount",width:100,align:"center",render:N=>H.jsx(qn,{children:N})},{title:"Changes",dataIndex:"changeCount",key:"changeCount",width:100,align:"center",render:N=>H.jsx(qn,{color:N>0?"blue":"default",children:N})},{title:"Timestamp",dataIndex:"timestamp",key:"timestamp",width:180,render:N=>new Date(N).toLocaleString()},{title:"Actions",key:"actions",width:150,render:(N,I)=>H.jsxs(zn,{children:[H.jsx(wn,{type:"text",icon:H.jsx(gI,{}),onClick:()=>w(I.version)}),I.version>1&&H.jsx(wn,{type:"text",icon:H.jsx(Lu,{}),onClick:()=>E(I.version-1,I.version)})]})}];return r?H.jsx("div",{style:{textAlign:"center",padding:e.paddingXL},children:H.jsx(Vi,{size:"large"})}):H.jsxs("div",{children:[H.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.margin},children:H.jsxs(cee,{level:3,style:{margin:0},children:[H.jsx(db,{style:{marginRight:8}}),"Version History"]})}),l&&H.jsx(gm,{message:"Error",description:l,type:"error",showIcon:!0,closable:!0,style:{marginBottom:e.margin},onClose:()=>c(null)}),t.length===0?H.jsx(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE,description:"No versions found. Generate a migration to create the first version."}):H.jsx(qa,{columns:R,dataSource:t,rowKey:"version",pagination:{pageSize:10}}),H.jsx(Xr,{title:H.jsxs(zn,{children:[H.jsx(db,{}),H.jsxs("span",{children:["Version ",u==null?void 0:u.version]})]}),open:m,onCancel:()=>g(!1),footer:null,width:800,children:u&&H.jsxs("div",{children:[H.jsxs(Pn,{column:2,size:"small",style:{marginBottom:16},children:[H.jsx(Pn.Item,{label:"Version",children:u.version}),H.jsx(Pn.Item,{label:"Driver",children:u.driver}),H.jsx(Pn.Item,{label:"Migration",children:u.migration||"-"}),H.jsx(Pn.Item,{label:"Timestamp",children:new Date(u.timestamp).toLocaleString()}),u.description&&H.jsx(Pn.Item,{label:"Description",span:2,children:u.description})]}),H.jsx(Gr,{title:"Changes",size:"small",style:{marginBottom:16},children:u.changes.length===0?H.jsx(su,{type:"secondary",children:"No changes recorded"}):H.jsx(bb,{changes:u.changes,compact:!0})}),H.jsx(Gr,{title:"Schema Snapshot",size:"small",children:H.jsx(qb,{ghost:!0,children:Object.entries(u.snapshot).map(([N,I])=>H.jsx(uee,{header:H.jsxs(zn,{children:[H.jsx(Tl,{}),H.jsx(su,{strong:!0,children:N}),H.jsx(qn,{children:I.kind})]}),children:H.jsx("pre",{style:{fontSize:12,background:e.colorBgLayout,padding:12,borderRadius:e.borderRadius,overflow:"auto",maxHeight:300},children:JSON.stringify(I,null,2)})},N))})})]})}),H.jsx(Xr,{title:H.jsxs(zn,{children:[H.jsx(Lu,{}),H.jsxs("span",{children:["Diff: v",C==null?void 0:C.from," → v",C==null?void 0:C.to]})]}),open:v,onCancel:()=>h(!1),footer:null,width:700,children:b&&H.jsx("div",{children:b.changes.length===0?H.jsx(Tr,{description:"No changes between versions"}):H.jsxs("div",{children:[H.jsxs(su,{type:"secondary",style:{marginBottom:16,display:"block"},children:[b.changes.length," change(s) detected"]}),H.jsx(bb,{changes:b.changes})]})})})]})}const{Title:fee,Text:Lf}=fo,mee=[{value:"mysql",label:"MySQL / MariaDB"},{value:"postgresql",label:"PostgreSQL"},{value:"sqlite",label:"SQLite"},{value:"sqlserver",label:"SQL Server"}];function gee(){const{t:e}=jJ(),{darkMode:t,toggleDarkMode:n,previewPanelOpen:r,togglePreviewPanel:a,databaseType:l,setDatabaseType:c,language:u,setLanguage:d}=uc(),{token:m}=ya.useToken(),[g,v]=s.useState(null),[h,b]=s.useState(!0);return s.useEffect(()=>{pa.get("/api/config").then(v).catch(console.error).finally(()=>b(!1))},[]),h?H.jsx("div",{style:{textAlign:"center",padding:m.paddingXL},children:H.jsx(Vi,{size:"large"})}):H.jsxs("div",{children:[H.jsx(fee,{level:3,children:e("settings.title")}),H.jsxs(Gr,{title:e("settings.database"),style:{marginBottom:m.margin},children:[H.jsx(Pn,{column:1,children:H.jsx(Pn.Item,{label:e("settings.databaseType"),children:H.jsx(tr,{value:l,onChange:c,options:mee,style:{width:200}})})}),H.jsx(Lf,{type:"secondary",style:{marginTop:m.marginSM,display:"block"},children:e("settings.databaseHint")})]}),H.jsx(Gr,{title:e("settings.appearance"),style:{marginBottom:m.margin},children:H.jsxs(Pn,{column:1,children:[H.jsx(Pn.Item,{label:e("settings.language"),children:H.jsx(tr,{value:u,onChange:y=>d(y),options:BJ,style:{width:200}})}),H.jsx(Pn.Item,{label:e("settings.darkMode"),children:H.jsx(Tm,{checked:t,onChange:n})}),H.jsx(Pn.Item,{label:e("settings.showPreview"),children:H.jsx(Tm,{checked:r,onChange:a})})]})}),H.jsx(Gr,{title:e("settings.serverConfig"),children:H.jsxs(Pn,{column:1,children:[H.jsx(Pn.Item,{label:e("settings.schemasDir"),children:H.jsx(Lf,{code:!0,children:(g==null?void 0:g.schemasDir)??"N/A"})}),H.jsx(Pn.Item,{label:e("settings.serverPort"),children:H.jsx(Lf,{code:!0,children:(g==null?void 0:g.port)??"N/A"})}),H.jsx(Pn.Item,{label:e("settings.host"),children:H.jsx(Lf,{code:!0,children:(g==null?void 0:g.host)??"N/A"})})]})})]})}function vee(){const{loadSchemas:e}=Ki(),{darkMode:t}=uc();return s.useEffect(()=>{e()},[e]),H.jsx(uo,{theme:{algorithm:t?ya.darkAlgorithm:ya.defaultAlgorithm,token:{colorPrimary:"#1677ff",borderRadius:6}},children:H.jsx(ty,{children:H.jsx(LQ,{children:H.jsx(vQ,{children:H.jsxs(Ri,{element:H.jsx(UJ,{}),children:[H.jsx(Ri,{path:"/",element:H.jsx(QJ,{})}),H.jsx(Ri,{path:"/schema/:name",element:H.jsx(iee,{})}),H.jsx(Ri,{path:"/relationships",element:H.jsx(see,{})}),H.jsx(Ri,{path:"/history",element:H.jsx(dee,{})}),H.jsx(Ri,{path:"/settings",element:H.jsx(gee,{})}),H.jsx(Ri,{path:"*",element:H.jsx(fQ,{to:"/",replace:!0})})]})})})})})}const PM=document.getElementById("root");if(!PM)throw new Error("Root element not found");rM.createRoot(PM).render(H.jsx(s.StrictMode,{children:H.jsx(vee,{})}));
|
|
462
|
+
//# sourceMappingURL=index-CSrgTwea.js.map
|