jobtrack 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/bin/jobtrack.js +44 -0
- package/package.json +30 -0
- package/src/assets.ts +34 -0
- package/src/autostart.ts +50 -0
- package/src/cli.ts +44 -0
- package/src/os.ts +28 -0
- package/src/server.ts +66 -0
- package/src/settings.ts +21 -0
- package/src/tray.ts +88 -0
- package/src/types/systray.d.ts +45 -0
- package/vendor/.env.example +29 -0
- package/vendor/web-dist/apple-touch-icon.png +0 -0
- package/vendor/web-dist/assets/index-BwFWDywX.js +444 -0
- package/vendor/web-dist/assets/index-CRnClsEb.css +1 -0
- package/vendor/web-dist/favicon.ico +0 -0
- package/vendor/web-dist/favicon.svg +45 -0
- package/vendor/web-dist/index.html +27 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var W=V(null),ee=V(null),G=V(null),K=V(null);function q(e,t){switch(U(G,t),U(ee,e),U(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(W),U(W,e)}function J(){H(W),H(ee),H(G)}function te(e){e.memoizedState!==null&&U(K,e);var t=W.current,n=Hd(t,e.type);t!==n&&(U(ee,e),U(W,n))}function Y(e){ee.current===e&&(H(W),H(ee)),K.current===e&&(H(K),Qf._currentValue=R)}var ne,X;function re(e){if(ne===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ne=t&&t[1]||``,X=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+ne+e+X}var ie=!1;function ae(e,t){if(!e||ie)return``;ie=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ie=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?re(n):``}function oe(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re(`Lazy`);case 13:return e.child!==t&&t!==null?re(`Suspense Fallback`):re(`Suspense`);case 19:return re(`SuspenseList`);case 0:case 15:return ae(e.type,!1);case 11:return ae(e.type.render,!1);case 1:return ae(e.type,!0);case 31:return re(`Activity`);default:return``}}function se(e){try{var t=``,n=null;do t+=oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var ce=Object.prototype.hasOwnProperty,le=t.unstable_scheduleCallback,ue=t.unstable_cancelCallback,de=t.unstable_shouldYield,fe=t.unstable_requestPaint,pe=t.unstable_now,me=t.unstable_getCurrentPriorityLevel,he=t.unstable_ImmediatePriority,ge=t.unstable_UserBlockingPriority,_e=t.unstable_NormalPriority,ve=t.unstable_LowPriority,ye=t.unstable_IdlePriority,be=t.log,xe=t.unstable_setDisableYieldValue,Se=null,Ce=null;function we(e){if(typeof be==`function`&&xe(e),Ce&&typeof Ce.setStrictMode==`function`)try{Ce.setStrictMode(Se,e)}catch{}}var Te=Math.clz32?Math.clz32:Oe,Ee=Math.log,De=Math.LN2;function Oe(e){return e>>>=0,e===0?32:31-(Ee(e)/De|0)|0}var ke=256,Ae=262144,je=4194304;function Me(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ne(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Me(n))):i=Me(o):i=Me(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Me(n))):i=Me(o)):i=Me(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Ie(){var e=je;return je<<=1,!(je&62914560)&&(je=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Te(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Be(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Te(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ve(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Te(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function He(e,t){var n=t&-t;return n=n&42?1:Ue(n),(n&(e.suspendedLanes|t))===0?n:0}function Ue(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ge(){var e=L.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function Ke(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var qe=Math.random().toString(36).slice(2),Je=`__reactFiber$`+qe,Ye=`__reactProps$`+qe,Xe=`__reactContainer$`+qe,Ze=`__reactEvents$`+qe,Qe=`__reactListeners$`+qe,$e=`__reactHandles$`+qe,et=`__reactResources$`+qe,tt=`__reactMarker$`+qe;function nt(e){delete e[Je],delete e[Ye],delete e[Ze],delete e[Qe],delete e[$e]}function rt(e){var t=e[Je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[Je])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function it(e){if(e=e[Je]||e[Xe]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function at(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ot(e){var t=e[et];return t||=e[et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function st(e){e[tt]=!0}var ct=new Set,lt={};function ut(e,t){dt(e,t),dt(e+`Capture`,t)}function dt(e,t){for(lt[e]=t,e=0;e<t.length;e++)ct.add(t[e])}var ft=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]*$`),pt={},mt={};function ht(e){return ce.call(mt,e)?!0:ce.call(pt,e)?!1:ft.test(e)?mt[e]=!0:(pt[e]=!0,!1)}function gt(e,t,n){if(ht(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function _t(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function vt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function yt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function bt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function St(e){if(!e._valueTracker){var t=bt(e)?`checked`:`value`;e._valueTracker=xt(e,t,``+e[t])}}function Ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=bt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Tt=/[\n"\\]/g;function Et(e){return e.replace(Tt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Dt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+yt(t)):e.value!==``+yt(t)&&(e.value=``+yt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):kt(e,o,yt(n)):kt(e,o,yt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+yt(s):e.removeAttribute(`name`)}function Ot(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){St(e);return}n=n==null?``:``+yt(n),t=t==null?n:``+yt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),St(e)}function kt(e,t,n){t===`number`&&wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function At(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+yt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jt(e,t,n){if(t!=null&&(t=``+yt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+yt(n)}function Mt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=yt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),St(e)}function Nt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pt=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 Ft(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Pt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function It(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ft(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ft(e,o,t[o])}function Lt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Rt=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`]]),zt=/^[\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 Bt(e){return zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Vt(){}var Ht=null;function Ut(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wt=null,Gt=null;function Kt(e){var t=it(e);if(t&&(e=t.stateNode)){var n=e[Ye]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Dt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Et(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ye]||null;if(!a)throw Error(i(90));Dt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ct(r)}break a;case`textarea`:jt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&At(e,!!n.multiple,t,!1)}}}var qt=!1;function Jt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(Wt!==null||Gt!==null)&&(_u(),Wt&&(t=Wt,e=Gt,Gt=Wt=null,Kt(t),e)))for(t=0;t<e.length;t++)Kt(e[t])}}function Yt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ye]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Xt=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,"passive",{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch{Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tn=i.slice(e,1<r?1-r:void 0)}function rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?an:on,this.isPropagationStopped=on,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=sn(cn),un=h({},cn,{view:0,detail:0}),dn=sn(un),fn,pn,mn,hn=h({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==mn&&(mn&&e.type===`mousemove`?(fn=e.screenX-mn.screenX,pn=e.screenY-mn.screenY):pn=fn=0,mn=e),fn)},movementY:function(e){return`movementY`in e?e.movementY:pn}}),gn=sn(hn),_n=sn(h({},hn,{dataTransfer:0})),vn=sn(h({},un,{relatedTarget:0})),yn=sn(h({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(h({},cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),xn=sn(h({},cn,{data:0})),Sn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Z={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`},Cn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cn[e])?!!t[e]:!1}function Tn(){return wn}var En=sn(h({},un,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Z[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return e.type===`keypress`?rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Dn=sn(h({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=sn(h({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),kn=sn(h({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=sn(h({},hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),jn=sn(h({},cn,{newState:0,oldState:0})),Mn=[9,13,27,32],Nn=Xt&&`CompositionEvent`in window,Pn=null;Xt&&`documentMode`in document&&(Pn=document.documentMode);var Fn=Xt&&`TextEvent`in window&&!Pn,In=Xt&&(!Nn||Pn&&8<Pn&&11>=Pn),Ln=` `,Rn=!1;function zn(e,t){switch(e){case`keyup`:return Mn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Bn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Vn=!1;function Hn(e,t){switch(e){case`compositionend`:return Bn(t);case`keypress`:return t.which===32?(Rn=!0,Ln):null;case`textInput`:return e=t.data,e===Ln&&Rn?null:e;default:return null}}function Un(e,t){if(Vn)return e===`compositionend`||!Nn&&zn(e,t)?(e=nn(),tn=en=$t=null,Vn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return In&&t.locale!==`ko`?null:t.data;default:return null}}var Wn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Wn[e.type]:t===`textarea`}function Kn(e,t,n,r){Wt?Gt?Gt.push(r):Gt=[r]:Wt=r,t=Td(t,`onChange`),0<t.length&&(n=new ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var qn=null,Jn=null;function Yn(e){_d(e,0)}function Xn(e){if(Ct(at(e)))return e}function Zn(e,t){if(e===`change`)return t}var Qn=!1;if(Xt){var $n;if(Xt){var er=`oninput`in document;if(!er){var tr=document.createElement(`div`);tr.setAttribute(`oninput`,`return;`),er=typeof tr.oninput==`function`}$n=er}else $n=!1;Qn=$n&&(!document.documentMode||9<document.documentMode)}function nr(){qn&&(qn.detachEvent(`onpropertychange`,rr),Jn=qn=null)}function rr(e){if(e.propertyName===`value`&&Xn(Jn)){var t=[];Kn(t,Jn,e,Ut(e)),Jt(Yn,t)}}function ir(e,t,n){e===`focusin`?(nr(),qn=t,Jn=n,qn.attachEvent(`onpropertychange`,rr)):e===`focusout`&&nr()}function ar(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Xn(Jn)}function or(e,t){if(e===`click`)return Xn(t)}function sr(e,t){if(e===`input`||e===`change`)return Xn(t)}function cr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var lr=typeof Object.is==`function`?Object.is:cr;function ur(e,t){if(lr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ce.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n=dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=dr(n)}}function pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=wt(e.document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var gr=Xt&&`documentMode`in document&&11>=document.documentMode,_r=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;br||_r==null||_r!==wt(r)||(r=_r,`selectionStart`in r&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yr&&ur(yr,r)||(yr=r,r=Td(vr,`onSelect`),0<r.length&&(t=new ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Cr={animationend:Sr(`Animation`,`AnimationEnd`),animationiteration:Sr(`Animation`,`AnimationIteration`),animationstart:Sr(`Animation`,`AnimationStart`),transitionrun:Sr(`Transition`,`TransitionRun`),transitionstart:Sr(`Transition`,`TransitionStart`),transitioncancel:Sr(`Transition`,`TransitionCancel`),transitionend:Sr(`Transition`,`TransitionEnd`)},wr={},Tr={};Xt&&(Tr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),`TransitionEvent`in window||delete Cr.transitionend.transition);function Er(e){if(wr[e])return wr[e];if(!Cr[e])return e;var t=Cr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Tr)return wr[e]=t[n];return e}var Dr=Er(`animationend`),Or=Er(`animationiteration`),kr=Er(`animationstart`),Ar=Er(`transitionrun`),jr=Er(`transitionstart`),Mr=Er(`transitioncancel`),Nr=Er(`transitionend`),Pr=new Map,Fr=`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(` `);Fr.push(`scrollEnd`);function Ir(e,t){Pr.set(e,t),ut(t,[e])}var Lr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Rr=[],zr=0,Br=0;function Vr(){for(var e=zr,t=Br=zr=0;t<e;){var n=Rr[t];Rr[t++]=null;var r=Rr[t];Rr[t++]=null;var i=Rr[t];Rr[t++]=null;var a=Rr[t];if(Rr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Gr(n,i,a)}}function Hr(e,t,n,r){Rr[zr++]=e,Rr[zr++]=t,Rr[zr++]=n,Rr[zr++]=r,Br|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ur(e,t,n,r){return Hr(e,t,n,r),Kr(e)}function Wr(e,t){return Hr(e,null,null,t),Kr(e)}function Gr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Te(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Kr(e){if(50<cu)throw cu=0,lu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var qr={};function Jr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(e,t,n,r){return new Jr(e,t,n,r)}function Xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zr(e,t){var n=e.alternate;return n===null?(n=Yr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $r(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Xr(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,W.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=Yr(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ei(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=Yr(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=Yr(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=Yr(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Yr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ei(e,t,n,r){return e=Yr(7,e,r,t),e.lanes=n,e}function ti(e,t,n){return e=Yr(6,e,null,t),e.lanes=n,e}function ni(e){var t=Yr(18,null,null,0);return t.stateNode=e,t}function ri(e,t,n){return t=Yr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ii=new WeakMap;function ai(e,t){if(typeof e==`object`&&e){var n=ii.get(e);return n===void 0?(t={value:e,source:t,stack:se(t)},ii.set(e,t),t):n}return{value:e,source:t,stack:se(t)}}var oi=[],si=0,ci=null,li=0,ui=[],di=0,fi=null,pi=1,mi=``;function hi(e,t){oi[si++]=li,oi[si++]=ci,ci=e,li=t}function gi(e,t,n){ui[di++]=pi,ui[di++]=mi,ui[di++]=fi,fi=e;var r=pi;e=mi;var i=32-Te(r)-1;r&=~(1<<i),n+=1;var a=32-Te(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pi=1<<32-Te(t)+i|n<<i|r,mi=a+e}else pi=1<<a|n<<i|r,mi=e}function _i(e){e.return!==null&&(hi(e,1),gi(e,1,0))}function vi(e){for(;e===ci;)ci=oi[--si],oi[si]=null,li=oi[--si],oi[si]=null;for(;e===fi;)fi=ui[--di],ui[di]=null,mi=ui[--di],ui[di]=null,pi=ui[--di],ui[di]=null}function yi(e,t){ui[di++]=pi,ui[di++]=mi,ui[di++]=fi,pi=t.id,mi=t.overflow,fi=e}var bi=null,xi=null,Si=!1,Ci=null,wi=!1,Ti=Error(i(519));function Ei(e){throw Mi(ai(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ti}function Di(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Je]=e,t[Ye]=r,n){case`dialog`:vd(`cancel`,t),vd(`close`,t);break;case`iframe`:case`object`:case`embed`:vd(`load`,t);break;case`video`:case`audio`:for(n=0;n<hd.length;n++)vd(hd[n],t);break;case`source`:vd(`error`,t);break;case`img`:case`image`:case`link`:vd(`error`,t),vd(`load`,t);break;case`details`:vd(`toggle`,t);break;case`input`:vd(`invalid`,t),Ot(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:vd(`invalid`,t);break;case`textarea`:vd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&(vd(`beforetoggle`,t),vd(`toggle`,t)),r.onScroll!=null&&vd(`scroll`,t),r.onScrollEnd!=null&&vd(`scrollend`,t),r.onClick!=null&&(t.onclick=Vt),t=!0):t=!1,t||Ei(e,!0)}function Oi(e){for(bi=e.return;bi;)switch(bi.tag){case 5:case 31:case 13:wi=!1;return;case 27:case 3:wi=!0;return;default:bi=bi.return}}function ki(e){if(e!==bi)return!1;if(!Si)return Oi(e),Si=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ud(e.type,e.memoizedProps)),n=!n),n&&xi&&Ei(e),Oi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));xi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));xi=uf(e)}else t===27?(t=xi,Zd(e.type)?(e=lf,lf=null,xi=e):xi=t):xi=bi?cf(e.stateNode.nextSibling):null;return!0}function Ai(){xi=bi=null,Si=!1}function ji(){var e=Ci;return e!==null&&(Jl===null?Jl=e:Jl.push.apply(Jl,e),Ci=null),e}function Mi(e){Ci===null?Ci=[e]:Ci.push(e)}var Ni=V(null),Pi=null,Fi=null;function Ii(e,t,n){U(Ni,t._currentValue),t._currentValue=n}function Li(e){e._currentValue=Ni.current,H(Ni)}function Ri(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ri(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ri(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Bi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;lr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===K.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&zi(t,e,n,r),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!lr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hi(e){Pi=e,Fi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ui(e){return Gi(Pi,e)}function Wi(e,t){return Pi===null&&Hi(e),Gi(e,t)}function Gi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Fi===null){if(e===null)throw Error(i(308));Fi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fi=Fi.next=t;return n}var Ki=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},qi=t.unstable_scheduleCallback,Ji=t.unstable_NormalPriority,Yi={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xi(){return{controller:new Ki,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&qi(Ji,function(){e.controller.abort()})}var Qi=null,$i=0,ea=0,ta=null;function na(e,t){if(Qi===null){var n=Qi=[];$i=0,ea=ld(),ta={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return $i++,t.then(ra,ra),t}function ra(){if(--$i===0&&Qi!==null){ta!==null&&(ta.status=`fulfilled`);var e=Qi;Qi=null,ea=0,ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ia(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var aa=I.S;I.S=function(e,t){Zl=pe(),typeof t==`object`&&t&&typeof t.then==`function`&&na(e,t),aa!==null&&aa(e,t)};var oa=V(null);function sa(){var e=oa.current;return e===null?Ml.pooledCache:e}function ca(e,t){t===null?U(oa,oa.current):U(oa,t.pool)}function la(){var e=sa();return e===null?null:{parent:Yi._currentValue,pool:e}}var ua=Error(i(460)),da=Error(i(474)),fa=Error(i(542)),pa={then:function(){}};function ma(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ha(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vt,Vt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ya(e),e;default:if(typeof t.status==`string`)t.then(Vt,Vt);else{if(e=Ml,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ya(e),e}throw _a=t,ua}}function ga(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(_a=e,ua):e}}var _a=null;function va(){if(_a===null)throw Error(i(459));var e=_a;return _a=null,e}function ya(e){if(e===ua||e===fa)throw Error(i(483))}var ba=null,xa=0;function Sa(e){var t=xa;return xa+=1,ba===null&&(ba=[]),ha(ba,e,t)}function Ca(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function wa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ta(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Zr(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ti(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&ga(i)===t.type)?(t=a(t,n.props),Ca(t,n),t.return=e,t):(t=$r(n.type,n.key,n.props,null,e.mode,r),Ca(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ri(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ei(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ti(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=$r(t.type,t.key,t.props,null,e.mode,n),Ca(n,t),n.return=e,n;case v:return t=ri(t,e.mode,n),t.return=e,t;case O:return t=ga(t),f(e,t,n)}if(F(t)||M(t))return t=ei(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Sa(t),n);if(t.$$typeof===C)return f(e,Wi(e,t),n);wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ga(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Sa(n),r);if(n.$$typeof===C)return p(e,t,Wi(e,n),r);wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ga(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Sa(r),i);if(r.$$typeof===C)return m(e,t,n,Wi(t,r),i);wa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Si&&hi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Si&&hi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Si&&hi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Si&&hi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Si&&hi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Si&&hi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ga(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ca(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=ei(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=$r(o.type,o.key,o.props,null,e.mode,c),Ca(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=ri(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ga(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Sa(o),c);if(o.$$typeof===C)return b(e,r,Wi(e,o),c);wa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ti(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{xa=0;var i=b(e,t,n,r);return ba=null,i}catch(t){if(t===ua||t===fa)throw t;var a=Yr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ea=Ta(!0),Da=Ta(!1),Oa=!1;function ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,jl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Kr(e),Gr(e,null,n),t}return Hr(e,r,t,n),Kr(e)}function Na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}function Pa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fa=!1;function Ia(){if(Fa){var e=ta;if(e!==null)throw e}}function La(e,t,n,r){Fa=!1;var i=e.updateQueue;Oa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Pl&f)===f:(r&f)===f){f!==0&&f===ea&&(Fa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Oa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Hl|=o,e.lanes=o,e.memoizedState=d}}function Ra(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ra(n[e],t)}var Ba=V(null),Va=V(0);function Ha(e,t){e=Bl,U(Va,e),U(Ba,t),Bl=e|t.baseLanes}function Ua(){U(Va,Bl),U(Ba,Ba.current)}function Wa(){Bl=Va.current,H(Ba),H(Va)}var Ga=V(null),Ka=null;function qa(e){var t=e.alternate;U(Qa,Qa.current&1),U(Ga,e),Ka===null&&(t===null||Ba.current!==null||t.memoizedState!==null)&&(Ka=e)}function Ja(e){U(Qa,Qa.current),U(Ga,e),Ka===null&&(Ka=e)}function Ya(e){e.tag===22?(U(Qa,Qa.current),U(Ga,e),Ka===null&&(Ka=e)):Xa(e)}function Xa(){U(Qa,Qa.current),U(Ga,Ga.current)}function Za(e){H(Ga),Ka===e&&(Ka=null),H(Qa)}var Qa=V(0);function $a(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var eo=0,to=null,no=null,ro=null,io=!1,ao=!1,oo=!1,so=0,co=0,lo=null,uo=0;function fo(){throw Error(i(321))}function po(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function mo(e,t,n,r,i,a){return eo=a,to=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?ks:As,oo=!1,a=n(r,i),oo=!1,ao&&(a=go(t,n,r,i)),ho(e),a}function ho(e){I.H=Os;var t=no!==null&&no.next!==null;if(eo=0,ro=no=to=null,io=!1,co=0,lo=null,t)throw Error(i(300));e===null||qs||(e=e.dependencies,e!==null&&Vi(e)&&(qs=!0))}function go(e,t,n,r){to=e;var a=0;do{if(ao&&(lo=null),co=0,ao=!1,25<=a)throw Error(i(301));if(a+=1,ro=no=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=js,o=t(n,r)}while(ao);return o}function _o(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Co(t):t,e=e.useState()[0],(no===null?null:no.memoizedState)!==e&&(to.flags|=1024),t}function vo(){var e=so!==0;return so=0,e}function yo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function bo(e){if(io){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}io=!1}eo=0,ro=no=to=null,ao=!1,co=so=0,lo=null}function xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ro===null?to.memoizedState=ro=e:ro=ro.next=e,ro}function Q(){if(no===null){var e=to.alternate;e=e===null?null:e.memoizedState}else e=no.next;var t=ro===null?to.memoizedState:ro.next;if(t!==null)ro=t,no=e;else{if(e===null)throw to.alternate===null?Error(i(467)):Error(i(310));no=e,e={memoizedState:no.memoizedState,baseState:no.baseState,baseQueue:no.baseQueue,queue:no.queue,next:null},ro===null?to.memoizedState=ro=e:ro=ro.next=e}return ro}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Co(e){var t=co;return co+=1,lo===null&&(lo=[]),e=ha(lo,e,t),t=to,(ro===null?t.memoizedState:ro.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?ks:As),e}function wo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Co(e);if(e.$$typeof===C)return Ui(e)}throw Error(i(438,String(e)))}function To(e){var t=null,n=to.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=to.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=So(),to.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Eo(e,t){return typeof t==`function`?t(e):t}function Do(e){return Oo(Q(),no,e)}function Oo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(eo&f)===f:(Pl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ea&&(d=!0);else if((eo&p)===p){u=u.next,p===ea&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,to.lanes|=p,Hl|=p;f=u.action,oo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,to.lanes|=f,Hl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!lr(o,e.memoizedState)&&(qs=!0,d&&(n=ta,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ko(e){var t=Q(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);lr(o,t.memoizedState)||(qs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(e,t,n){var r=to,a=Q(),o=Si;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!lr((no||a).memoizedState,n);if(s&&(a.memoizedState=n,qs=!0),a=a.queue,ts(No.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ro!==null&&ro.memoizedState.tag&1){if(r.flags|=2048,Xo(9,{destroy:void 0},Mo.bind(null,r,a,n,t),null),Ml===null)throw Error(i(349));o||eo&127||jo(r,t,n)}return n}function jo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=to.updateQueue,t===null?(t=So(),to.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mo(e,t,n,r){t.value=n,t.getSnapshot=r,Po(t)&&Fo(e)}function No(e,t,n){return n(function(){Po(t)&&Fo(e)})}function Po(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch{return!0}}function Fo(e){var t=Wr(e,2);t!==null&&fu(t,e,2)}function Io(e){var t=xo();if(typeof e==`function`){var n=e;if(e=n(),oo){we(!0);try{n()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t}function Lo(e,t,n,r){return e.baseState=n,Oo(e,no,typeof r==`function`?r:Eo)}function Ro(e,t,n,r,a){if(Ts(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Bo(e,t,s)}catch(n){Ho(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Bo(e,t,a)}catch(n){Ho(e,t,n)}}function Bo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Vo(e,t,n)},function(n){return Ho(e,t,n)}):Vo(e,t,n)}function Vo(e,t,n){t.status=`fulfilled`,t.value=n,Uo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zo(e,n)))}function Ho(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Uo(t),t=t.next;while(t!==r)}e.action=null}function Uo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wo(e,t){return t}function Go(e,t){if(Si){var n=Ml.formState;if(n!==null){a:{var r=to;if(Si){if(xi){b:{for(var i=xi,a=wi;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){xi=cf(i.nextSibling),r=i.data===`F!`;break a}}Ei(r)}r=!1}r&&(t=n[0])}}return n=xo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:t},n.queue=r,n=Ss.bind(null,to,r),r.dispatch=n,r=Io(!1),a=ws.bind(null,to,!1,r.queue),r=xo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ro.bind(null,to,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ko(e){return qo(Q(),no,e)}function qo(e,t,n){if(t=Oo(e,t,Wo)[0],e=Do(Eo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Co(t)}catch(e){throw e===ua?fa:e}else r=t;t=Q();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(to.flags|=2048,Xo(9,{destroy:void 0},Jo.bind(null,i,n),null)),[r,a,e]}function Jo(e,t){e.action=t}function Yo(e){var t=Q(),n=no;if(n!==null)return qo(t,n,e);Q(),t=t.memoizedState,n=Q();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Xo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=to.updateQueue,t===null&&(t=So(),to.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zo(){return Q().memoizedState}function Qo(e,t,n,r){var i=xo();to.flags|=e,i.memoizedState=Xo(1|t,{destroy:void 0},n,r===void 0?null:r)}function $o(e,t,n,r){var i=Q();r=r===void 0?null:r;var a=i.memoizedState.inst;no!==null&&r!==null&&po(r,no.memoizedState.deps)?i.memoizedState=Xo(t,a,n,r):(to.flags|=e,i.memoizedState=Xo(1|t,a,n,r))}function es(e,t){Qo(8390656,8,e,t)}function ts(e,t){$o(2048,8,e,t)}function ns(e){to.flags|=4;var t=to.updateQueue;if(t===null)t=So(),to.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function $(e){var t=Q().memoizedState;return ns({ref:t,nextImpl:e}),function(){if(jl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function rs(e,t){return $o(4,2,e,t)}function is(e,t){return $o(4,4,e,t)}function as(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function os(e,t,n){n=n==null?null:n.concat([e]),$o(4,4,as.bind(null,t,e),n)}function ss(){}function cs(e,t){var n=Q();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&po(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ls(e,t){var n=Q();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&po(t,r[1]))return r[0];if(r=e(),oo){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r}function us(e,t,n){return n===void 0||eo&1073741824&&!(Pl&261930)?e.memoizedState=t:(e.memoizedState=n,e=du(),to.lanes|=e,Hl|=e,n)}function ds(e,t,n,r){return lr(n,t)?n:Ba.current===null?!(eo&42)||eo&1073741824&&!(Pl&261930)?(qs=!0,e.memoizedState=n):(e=du(),to.lanes|=e,Hl|=e,t):(e=us(e,n,r),lr(e,t)||(qs=!0),e)}function fs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,ws(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Cs(e,t,ia(c,r),uu(e)):Cs(e,t,r,uu(e))}catch(n){Cs(e,t,{then:function(){},status:`rejected`,reason:n},uu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function ps(){}function ms(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=hs(e).queue;fs(e,a,t,R,n===null?ps:function(){return gs(e),n(r)})}function hs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function gs(e){var t=hs(e);t.next===null&&(t=e.alternate.memoizedState),Cs(e,t.next.queue,{},uu())}function _s(){return Ui(Qf)}function vs(){return Q().memoizedState}function ys(){return Q().memoizedState}function bs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=uu();e=ja(n);var r=Ma(t,e,n);r!==null&&(fu(r,t,n),Na(r,t,n)),t={cache:Xi()},e.payload=t;return}t=t.return}}function xs(e,t,n){var r=uu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ts(e)?Es(t,n):(n=Ur(e,t,n,r),n!==null&&(fu(n,e,r),Ds(n,t,r)))}function Ss(e,t,n){Cs(e,t,n,uu())}function Cs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ts(e))Es(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,lr(s,o))return Hr(e,t,i,0),Ml===null&&Vr(),!1}catch{}if(n=Ur(e,t,i,r),n!==null)return fu(n,e,r),Ds(n,t,r),!0}return!1}function ws(e,t,n,r){if(r={lane:2,revertLane:ld(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ts(e)){if(t)throw Error(i(479))}else t=Ur(e,n,r,2),t!==null&&fu(t,e,2)}function Ts(e){var t=e.alternate;return e===to||t!==null&&t===to}function Es(e,t){ao=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ds(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}var Os={readContext:Ui,use:wo,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useLayoutEffect:fo,useInsertionEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useSyncExternalStore:fo,useId:fo,useHostTransitionStatus:fo,useFormState:fo,useActionState:fo,useOptimistic:fo,useMemoCache:fo,useCacheRefresh:fo};Os.useEffectEvent=fo;var ks={readContext:Ui,use:wo,useCallback:function(e,t){return xo().memoizedState=[e,t===void 0?null:t],e},useContext:Ui,useEffect:es,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Qo(4194308,4,as.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){Qo(4,2,e,t)},useMemo:function(e,t){var n=xo();t=t===void 0?null:t;var r=e();if(oo){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=xo();if(n!==void 0){var i=n(t);if(oo){we(!0);try{n(t)}finally{we(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=xs.bind(null,to,e),[r.memoizedState,e]},useRef:function(e){var t=xo();return e={current:e},t.memoizedState=e},useState:function(e){e=Io(e);var t=e.queue,n=Ss.bind(null,to,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ss,useDeferredValue:function(e,t){return us(xo(),e,t)},useTransition:function(){var e=Io(!1);return e=fs.bind(null,to,e.queue,!0,!1),xo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=to,a=xo();if(Si){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ml===null)throw Error(i(349));Pl&127||jo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,es(No.bind(null,r,o,e),[e]),r.flags|=2048,Xo(9,{destroy:void 0},Mo.bind(null,r,o,n,t),null),n},useId:function(){var e=xo(),t=Ml.identifierPrefix;if(Si){var n=mi,r=pi;n=(r&~(1<<32-Te(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=so++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=uo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:_s,useFormState:Go,useActionState:Go,useOptimistic:function(e){var t=xo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ws.bind(null,to,!0,n),n.dispatch=t,[e,t]},useMemoCache:To,useCacheRefresh:function(){return xo().memoizedState=bs.bind(null,to)},useEffectEvent:function(e){var t=xo(),n={impl:e};return t.memoizedState=n,function(){if(jl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},As={readContext:Ui,use:wo,useCallback:cs,useContext:Ui,useEffect:ts,useImperativeHandle:os,useInsertionEffect:rs,useLayoutEffect:is,useMemo:ls,useReducer:Do,useRef:Zo,useState:function(){return Do(Eo)},useDebugValue:ss,useDeferredValue:function(e,t){return ds(Q(),no.memoizedState,e,t)},useTransition:function(){var e=Do(Eo)[0],t=Q().memoizedState;return[typeof e==`boolean`?e:Co(e),t]},useSyncExternalStore:Ao,useId:vs,useHostTransitionStatus:_s,useFormState:Ko,useActionState:Ko,useOptimistic:function(e,t){return Lo(Q(),no,e,t)},useMemoCache:To,useCacheRefresh:ys};As.useEffectEvent=$;var js={readContext:Ui,use:wo,useCallback:cs,useContext:Ui,useEffect:ts,useImperativeHandle:os,useInsertionEffect:rs,useLayoutEffect:is,useMemo:ls,useReducer:ko,useRef:Zo,useState:function(){return ko(Eo)},useDebugValue:ss,useDeferredValue:function(e,t){var n=Q();return no===null?us(n,e,t):ds(n,no.memoizedState,e,t)},useTransition:function(){var e=ko(Eo)[0],t=Q().memoizedState;return[typeof e==`boolean`?e:Co(e),t]},useSyncExternalStore:Ao,useId:vs,useHostTransitionStatus:_s,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){var n=Q();return no===null?(n.baseState=e,[e,n.queue.dispatch]):Lo(n,no,e,t)},useMemoCache:To,useCacheRefresh:ys};js.useEffectEvent=$;function Ms(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ns={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uu(),i=ja(r);i.payload=t,n!=null&&(i.callback=n),t=Ma(e,i,r),t!==null&&(fu(t,e,r),Na(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uu(),i=ja(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ma(e,i,r),t!==null&&(fu(t,e,r),Na(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uu(),r=ja(n);r.tag=2,t!=null&&(r.callback=t),t=Ma(e,r,n),t!==null&&(fu(t,e,n),Na(t,e,n))}};function Ps(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!ur(n,r)||!ur(i,a):!0}function Fs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ns.enqueueReplaceState(t,t.state,null)}function Is(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ls(e){Lr(e)}function Rs(e){console.error(e)}function zs(e){Lr(e)}function Bs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Vs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Hs(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){Bs(e,t)},n}function Us(e){return e=ja(e),e.tag=3,e}function Ws(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Vs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Vs(t,n,r),typeof i!=`function`&&(eu===null?eu=new Set([this]):eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Gs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Bi(t,n,a,!0),n=Ga.current,n!==null){switch(n.tag){case 31:case 13:return Ka===null?wu():n.alternate===null&&Vl===0&&(Vl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===pa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Uu(e,r,a)),!1;case 22:return n.flags|=65536,r===pa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Uu(e,r,a)),!1}throw Error(i(435,n.tag))}return Uu(e,r,a),wu(),!1}if(Si)return t=Ga.current,t===null?(r!==Ti&&(t=Error(i(423),{cause:r}),Mi(ai(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ai(r,n),a=Hs(e.stateNode,r,a),Pa(e,a),Vl!==4&&(Vl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ti&&(e=Error(i(422),{cause:r}),Mi(ai(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=ai(o,n),ql===null?ql=[o]:ql.push(o),Vl!==4&&(Vl=2),t===null)return!0;r=ai(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Hs(n.stateNode,r,e),Pa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(eu===null||!eu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Us(a),Ws(a,e,n,r),Pa(n,a),!1}n=n.return}while(n!==null);return!1}var Ks=Error(i(461)),qs=!1;function Js(e,t,n,r){t.child=e===null?Da(t,null,n,r):Ea(t,e.child,n,r)}function Ys(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Hi(t),r=mo(e,t,n,o,a,i),s=vo(),e!==null&&!qs?(yo(e,t,i),yc(e,t,i)):(Si&&s&&_i(t),t.flags|=1,Js(e,t,r,i),t.child)}function Xs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Xr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Zs(e,t,a,r,i)):(e=$r(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!bc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?ur:n,n(o,r)&&e.ref===t.ref)return yc(e,t,i)}return t.flags|=1,e=Zr(a,r),e.ref=t.ref,e.return=t,t.child=e}function Zs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(qs=!1,t.pendingProps=r=a,bc(e,i))e.flags&131072&&(qs=!0);else return t.lanes=e.lanes,yc(e,t,i)}}return ac(e,t,n,r,i)}function Qs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ec(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ca(t,a===null?null:a.cachePool),a===null?Ua():Ha(t,a),Ya(t);else return r=t.lanes=536870912,ec(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ca(t,null),Ua(),Xa(t)):(ca(t,a.cachePool),Ha(t,a),Xa(t),t.memoizedState=null);return Js(e,t,i,n),t.child}function $s(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ec(e,t,n,r,i){var a=sa();return a=a===null?null:{parent:Yi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ca(t,null),Ua(),Ya(t),e!==null&&Bi(e,t,r,!0),t.childLanes=i,null}function tc(e,t){return t=mc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nc(e,t,n){return Ea(t,e.child,null,n),e=tc(t,t.pendingProps),e.flags|=2,Za(t),t.memoizedState=null,e}function rc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Si){if(r.mode===`hidden`)return e=tc(t,r),t.lanes=536870912,$s(null,e);if(Ja(t),(e=xi)?(e=rf(e,wi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fi===null?null:{id:pi,overflow:mi},retryLane:536870912,hydrationErrors:null},n=ni(e),n.return=t,t.child=n,bi=t,xi=null)):e=null,e===null)throw Ei(t);return t.lanes=536870912,null}return tc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ja(t),a){if(t.flags&256)t.flags&=-257,t=nc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(qs||Bi(e,t,n,!1),a=(n&e.childLanes)!==0,qs||a){if(r=Ml,r!==null&&(s=He(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Wr(e,s),fu(r,e,s),Ks;wu(),t=nc(e,t,n)}else e=o.treeContext,xi=cf(s.nextSibling),bi=t,Si=!0,Ci=null,wi=!1,e!==null&&yi(t,e),t=tc(t,r),t.flags|=4096;return t}return e=Zr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ic(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ac(e,t,n,r,i){return Hi(t),n=mo(e,t,n,r,void 0,i),r=vo(),e!==null&&!qs?(yo(e,t,i),yc(e,t,i)):(Si&&r&&_i(t),t.flags|=1,Js(e,t,n,i),t.child)}function oc(e,t,n,r,i,a){return Hi(t),t.updateQueue=null,n=go(t,r,n,i),ho(e),r=vo(),e!==null&&!qs?(yo(e,t,a),yc(e,t,a)):(Si&&r&&_i(t),t.flags|=1,Js(e,t,n,a),t.child)}function sc(e,t,n,r,i){if(Hi(t),t.stateNode===null){var a=qr,o=n.contextType;typeof o==`object`&&o&&(a=Ui(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ns,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ka(t),o=n.contextType,a.context=typeof o==`object`&&o?Ui(o):qr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ms(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ns.enqueueReplaceState(a,a.state,null),La(t,r,a,i),Ia(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Is(n,s);a.props=c;var l=a.context,u=n.contextType;o=qr,typeof u==`object`&&u&&(o=Ui(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Fs(t,a,r,o),Oa=!1;var f=t.memoizedState;a.state=f,La(t,r,a,i),Ia(),l=t.memoizedState,s||f!==l||Oa?(typeof d==`function`&&(Ms(t,n,d,r),l=t.memoizedState),(c=Oa||Ps(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Aa(e,t),o=t.memoizedProps,u=Is(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=qr,typeof l==`object`&&l&&(c=Ui(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Fs(t,a,r,c),Oa=!1,f=t.memoizedState,a.state=f,La(t,r,a,i),Ia();var p=t.memoizedState;o!==d||f!==p||Oa||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof s==`function`&&(Ms(t,n,s,r),p=t.memoizedState),(u=Oa||Ps(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,ic(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ea(t,e.child,null,i),t.child=Ea(t,null,n,i)):Js(e,t,n,i),t.memoizedState=a.state,e=t.child):e=yc(e,t,i),e}function cc(e,t,n,r){return Ai(),t.flags|=256,Js(e,t,n,r),t.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uc(e){return{baseLanes:e,cachePool:la()}}function dc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Gl),e}function fc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(Qa.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Si){if(a?qa(t):Xa(t),(e=xi)?(e=rf(e,wi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fi===null?null:{id:pi,overflow:mi},retryLane:536870912,hydrationErrors:null},n=ni(e),n.return=t,t.child=n,bi=t,xi=null)):e=null,e===null)throw Ei(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Xa(t),a=t.mode,c=mc({mode:`hidden`,children:c},a),r=ei(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=uc(n),r.childLanes=dc(e,s,n),t.memoizedState=lc,$s(null,r)):(qa(t),pc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(qa(t),t.flags&=-257,t=hc(e,t,n)):t.memoizedState===null?(Xa(t),c=r.fallback,a=t.mode,r=mc({mode:`visible`,children:r.children},a),c=ei(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ea(t,e.child,null,n),r=t.child,r.memoizedState=uc(n),r.childLanes=dc(e,s,n),t.memoizedState=lc,t=$s(null,r)):(Xa(t),t.child=e.child,t.flags|=128,t=null);else if(qa(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Mi({value:r,source:null,stack:null}),t=hc(e,t,n)}else if(qs||Bi(e,t,n,!1),s=(n&e.childLanes)!==0,qs||s){if(s=Ml,s!==null&&(r=He(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Wr(e,r),fu(s,e,r),Ks;af(c)||wu(),t=hc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,xi=cf(c.nextSibling),bi=t,Si=!0,Ci=null,wi=!1,e!==null&&yi(t,e),t=pc(t,r.children),t.flags|=4096);return t}return a?(Xa(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=Zr(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ei(c,a,n,null),c.flags|=2):c=Zr(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,$s(null,r),r=t.child,c=e.child.memoizedState,c===null?c=uc(n):(a=c.cachePool,a===null?a=la():(l=Yi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=dc(e,s,n),t.memoizedState=lc,$s(e.child,r)):(qa(t),n=e.child,e=n.sibling,n=Zr(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function pc(e,t){return t=mc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function mc(e,t){return e=Yr(22,e,null,t),e.lanes=0,e}function hc(e,t,n){return Ea(t,e.child,null,n),e=pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ri(e.return,t,n)}function _c(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function vc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Qa.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,U(Qa,o),Js(e,t,r,n),r=Si?li:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gc(e,n,t);else if(e.tag===19)gc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&$a(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_c(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$a(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_c(t,!0,n,null,a,r);break;case`together`:_c(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function yc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Bi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Zr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Vi(e)))}function xc(e,t,n){switch(t.tag){case 3:q(t,t.stateNode.containerInfo),Ii(t,Yi,e.memoizedState.cache),Ai();break;case 27:case 5:te(t);break;case 4:q(t,t.stateNode.containerInfo);break;case 10:Ii(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ja(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(qa(t),e=yc(e,t,n),e===null?null:e.sibling):fc(e,t,n):(qa(t),t.flags|=128,null);qa(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Bi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return vc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(Qa,Qa.current),r)break;return null;case 22:return t.lanes=0,Qs(e,t,n,t.pendingProps);case 24:Ii(t,Yi,e.memoizedState.cache)}return yc(e,t,n)}function Sc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)qs=!0;else{if(!bc(e,n)&&!(t.flags&128))return qs=!1,xc(e,t,n);qs=!!(e.flags&131072)}}else qs=!1,Si&&t.flags&1048576&&gi(t,li,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e==`function`)Xr(e)?(r=Is(e,r),t.tag=1,t=sc(null,t,e,r,n)):(t.tag=0,t=ac(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=Ys(null,t,e,r,n);break a}if(a===D){t.tag=14,t=Xs(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return ac(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Is(r,t.pendingProps),sc(e,t,r,a,n);case 3:a:{if(q(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Aa(e,t),La(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ii(t,Yi,r),r!==o.cache&&zi(t,[Yi],n,!0),Ia(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=cc(e,t,r,n);break a}if(r!==a){a=ai(Error(i(424)),t),Mi(a),t=cc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(xi=cf(e.firstChild),bi=t,Si=!0,Ci=null,wi=!0,n=Da(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ai(),r===a){t=yc(e,t,n);break a}Js(e,t,r,n)}t=t.child}return t;case 26:return ic(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Si||(n=t.type,e=t.pendingProps,r=Bd(G.current).createElement(n),r[Je]=t,r[Ye]=e,Pd(r,n,e),st(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),e===null&&Si&&(r=t.stateNode=ff(t.type,t.pendingProps,G.current),bi=t,wi=!0,a=xi,Zd(t.type)?(lf=a,xi=cf(r.firstChild)):xi=a),Js(e,t,t.pendingProps.children,n),ic(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Si&&((a=r=xi)&&(r=tf(r,t.type,t.pendingProps,wi),r===null?a=!1:(t.stateNode=r,bi=t,xi=cf(r.firstChild),wi=!1,a=!0)),a||Ei(t)),te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=mo(e,t,_o,null,null,n),Qf._currentValue=a),ic(e,t),Js(e,t,r,n),t.child;case 6:return e===null&&Si&&((e=n=xi)&&(n=nf(n,t.pendingProps,wi),n===null?e=!1:(t.stateNode=n,bi=t,xi=null,e=!0)),e||Ei(t)),null;case 13:return fc(e,t,n);case 4:return q(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ea(t,null,r,n):Js(e,t,r,n),t.child;case 11:return Ys(e,t,t.type,t.pendingProps,n);case 7:return Js(e,t,t.pendingProps,n),t.child;case 8:return Js(e,t,t.pendingProps.children,n),t.child;case 12:return Js(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ii(t,t.type,r.value),Js(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Hi(t),a=Ui(a),r=r(a),t.flags|=1,Js(e,t,r,n),t.child;case 14:return Xs(e,t,t.type,t.pendingProps,n);case 15:return Zs(e,t,t.type,t.pendingProps,n);case 19:return vc(e,t,n);case 31:return rc(e,t,n);case 22:return Qs(e,t,n,t.pendingProps);case 24:return Hi(t),r=Ui(Yi),e===null?(a=sa(),a===null&&(a=Ml,o=Xi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ka(t),Ii(t,Yi,a)):((e.lanes&n)!==0&&(Aa(e,t),La(t,null,null,n),Ia()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ii(t,Yi,r),r!==a.cache&&zi(t,[Yi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ii(t,Yi,r))),Js(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Cc(e){e.flags|=4}function wc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(xu())e.flags|=8192;else throw _a=pa,da}}else e.flags&=-16777217}function Tc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t)){if(xu())e.flags|=8192;else throw _a=pa,da}}function Ec(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ie(),e.lanes|=t,Kl|=t)}function Dc(e,t){if(!Si)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function kc(e,t,n){var r=t.pendingProps;switch(vi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oc(t),null;case 1:return Oc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Li(Yi),J(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ki(t)?Cc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ji())),Oc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Cc(t),o===null?(Oc(t),wc(t,a,null,r,n)):(Oc(t),Tc(t,o))):o?o===e.memoizedState?(Oc(t),t.flags&=-16777217):(Cc(t),Oc(t),Tc(t,o)):(e=e.memoizedProps,e!==r&&Cc(t),Oc(t),wc(t,a,e,r,n)),null;case 27:if(Y(t),n=G.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Oc(t),null}e=W.current,ki(t)?Di(t,e):(e=ff(a,r,n),t.stateNode=e,Cc(t))}return Oc(t),null;case 5:if(Y(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Oc(t),null}if(o=W.current,ki(t))Di(t,o);else{var s=Bd(G.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Je]=t,o[Ye]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Cc(t)}}return Oc(t),wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Cc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=G.current,ki(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=bi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Je]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ei(t,!0)}else e=Bd(e).createTextNode(r),e[Je]=t,t.stateNode=e}return Oc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ki(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Je]=t}else Ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oc(t),e=!1}else n=ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Za(t),t):(Za(t),null);if(t.flags&128)throw Error(i(558))}return Oc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ki(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Je]=t}else Ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oc(t),a=!1}else a=ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Za(t),t):(Za(t),null)}return Za(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ec(t,t.updateQueue),Oc(t),null);case 4:return J(),e===null&&xd(t.stateNode.containerInfo),Oc(t),null;case 10:return Li(t.type),Oc(t),null;case 19:if(H(Qa),r=t.memoizedState,r===null)return Oc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Dc(r,!1);else{if(Vl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=$a(e),o!==null){for(t.flags|=128,Dc(r,!1),e=o.updateQueue,t.updateQueue=e,Ec(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qr(n,e),n=n.sibling;return U(Qa,Qa.current&1|2),Si&&hi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&pe()>Ql&&(t.flags|=128,a=!0,Dc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=$a(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ec(t,e),Dc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Si)return Oc(t),null}else 2*pe()-r.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,a=!0,Dc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Oc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=pe(),e.sibling=null,n=Qa.current,U(Qa,a?n&1|2:n&1),Si&&hi(t,r.treeForkCount),e);case 22:case 23:return Za(t),Wa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Oc(t),t.subtreeFlags&6&&(t.flags|=8192)):Oc(t),n=t.updateQueue,n!==null&&Ec(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&H(oa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Li(Yi),Oc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Ac(e,t){switch(vi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Li(Yi),J(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Y(t),null;case 31:if(t.memoizedState!==null){if(Za(t),t.alternate===null)throw Error(i(340));Ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Za(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Qa),null;case 4:return J(),null;case 10:return Li(t.type),null;case 22:case 23:return Za(t),Wa(),e!==null&&H(oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Li(Yi),null;case 25:return null;default:return null}}function jc(e,t){switch(vi(t),t.tag){case 3:Li(Yi),J();break;case 26:case 27:case 5:Y(t);break;case 4:J();break;case 31:t.memoizedState!==null&&Za(t);break;case 13:Za(t);break;case 19:H(Qa);break;case 10:Li(t.type);break;case 22:case 23:Za(t),Wa(),e!==null&&H(oa);break;case 24:Li(Yi)}}function Mc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Hu(t,t.return,e)}}function Nc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Hu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Hu(t,t.return,e)}}function Pc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{za(t,n)}catch(t){Hu(e,e.return,t)}}}function Fc(e,t,n){n.props=Is(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Hu(e,t,n)}}function Ic(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Hu(e,t,n)}}function Lc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Hu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Hu(e,t,n)}else n.current=null}}function Rc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Hu(e,e.return,t)}}function zc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[Ye]=t}catch(t){Hu(e,e.return,t)}}function Bc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Vc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Bc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Hc(e,t,n),e=e.sibling;e!==null;)Hc(e,t,n),e=e.sibling}function Uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function Wc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[Je]=e,t[Ye]=n}catch(t){Hu(e,e.return,t)}}var Gc=!1,Kc=!1,qc=!1,Jc=typeof WeakSet==`function`?WeakSet:Set,Yc=null;function Xc(e,t){if(e=e.containerInfo,Rd=sp,e=mr(e),hr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Yc=t;Yc!==null;)if(t=Yc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Yc=e;else for(;Yc!==null;){switch(t=Yc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Is(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Hu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Yc=e;break}Yc=t.return}}function Zc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:fl(e,n),r&4&&Mc(5,n);break;case 1:if(fl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Hu(n,n.return,e)}else{var i=Is(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Hu(n,n.return,e)}}}r&64&&Pc(n),r&512&&Ic(n,n.return);break;case 3:if(fl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{za(e,t)}catch(e){Hu(n,n.return,e)}}break;case 27:t===null&&r&4&&Wc(n);case 26:case 5:fl(e,n),t===null&&r&4&&Rc(n),r&512&&Ic(n,n.return);break;case 12:fl(e,n);break;case 31:fl(e,n),r&4&&rl(e,n);break;case 13:fl(e,n),r&4&&il(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ku.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Gc,!r){t=t!==null&&t.memoizedState!==null||Kc,i=Gc;var a=Kc;Gc=r,(Kc=t)&&!a?ml(e,n,!!(n.subtreeFlags&8772)):fl(e,n),Gc=i,Kc=a}break;case 30:break;default:fl(e,n)}}function Qc(e){var t=e.alternate;t!==null&&(e.alternate=null,Qc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $c=null,el=!1;function tl(e,t,n){for(n=n.child;n!==null;)nl(e,t,n),n=n.sibling}function nl(e,t,n){if(Ce&&typeof Ce.onCommitFiberUnmount==`function`)try{Ce.onCommitFiberUnmount(Se,n)}catch{}switch(n.tag){case 26:Kc||Lc(n,t),tl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kc||Lc(n,t);var r=$c,i=el;Zd(n.type)&&($c=n.stateNode,el=!1),tl(e,t,n),pf(n.stateNode),$c=r,el=i;break;case 5:Kc||Lc(n,t);case 6:if(r=$c,i=el,$c=null,tl(e,t,n),$c=r,el=i,$c!==null){if(el)try{($c.nodeType===9?$c.body:$c.nodeName===`HTML`?$c.ownerDocument.body:$c).removeChild(n.stateNode)}catch(e){Hu(n,t,e)}else try{$c.removeChild(n.stateNode)}catch(e){Hu(n,t,e)}}break;case 18:$c!==null&&(el?(e=$c,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd($c,n.stateNode));break;case 4:r=$c,i=el,$c=n.stateNode.containerInfo,el=!0,tl(e,t,n),$c=r,el=i;break;case 0:case 11:case 14:case 15:Nc(2,n,t),Kc||Nc(4,n,t),tl(e,t,n);break;case 1:Kc||(Lc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Fc(n,t,r)),tl(e,t,n);break;case 21:tl(e,t,n);break;case 22:Kc=(r=Kc)||n.memoizedState!==null,tl(e,t,n),Kc=r;break;default:tl(e,t,n)}}function rl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Hu(t,t.return,e)}}}function il(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Hu(t,t.return,e)}}function al(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jc),t;default:throw Error(i(435,e.tag))}}function ol(e,t){var n=al(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=qu.bind(null,e,t);t.then(r,r)}})}function sl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){$c=c.stateNode,el=!1;break a}break;case 5:$c=c.stateNode,el=!1;break a;case 3:case 4:$c=c.stateNode.containerInfo,el=!0;break a}c=c.return}if($c===null)throw Error(i(160));nl(o,s,a),$c=null,el=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ll(t,e),t=t.sibling}var cl=null;function ll(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sl(t,e),ul(e),r&4&&(Nc(3,e,e.return),Mc(3,e),Nc(5,e,e.return));break;case 1:sl(t,e),ul(e),r&512&&(Kc||n===null||Lc(n,n.return)),r&64&&Gc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=cl;if(sl(t,e),ul(e),r&512&&(Kc||n===null||Lc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[tt]||o[Je]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[Je]=e,st(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Je]=e,st(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode)}else e.stateNode=If(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&zc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:sl(t,e),ul(e),r&512&&(Kc||n===null||Lc(n,n.return)),n!==null&&r&4&&zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(sl(t,e),ul(e),r&512&&(Kc||n===null||Lc(n,n.return)),e.flags&32){a=e.stateNode;try{Nt(a,``)}catch(t){Hu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,zc(e,a,n===null?a:n.memoizedProps)),r&1024&&(qc=!0);break;case 6:if(sl(t,e),ul(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Hu(e,e.return,t)}}break;case 3:if(Bf=null,a=cl,cl=gf(t.containerInfo),sl(t,e),cl=a,ul(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Hu(e,e.return,t)}qc&&(qc=!1,dl(e));break;case 4:r=cl,cl=gf(e.stateNode.containerInfo),sl(t,e),ul(e),cl=r;break;case 12:sl(t,e),ul(e);break;case 31:sl(t,e),ul(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 13:sl(t,e),ul(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xl=pe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Gc,d=Kc;if(Gc=u||a,Kc=d||l,sl(t,e),Kc=d,Gc=u,ul(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Gc||Kc||pl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Hu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Hu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Hu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ol(e,n))));break;case 19:sl(t,e),ul(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 30:break;case 21:break;default:sl(t,e),ul(e)}}function ul(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Bc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Uc(e,Vc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Nt(o,``),n.flags&=-33),Uc(e,Vc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Hc(e,Vc(e),s);break;default:throw Error(i(161))}}catch(t){Hu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zc(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nc(4,t,t.return),pl(t);break;case 1:Lc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Fc(t,t.return,n),pl(t);break;case 27:pf(t.stateNode);case 26:case 5:Lc(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ml(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:ml(i,a,n),Mc(4,a);break;case 1:if(ml(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Hu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ra(c[i],s)}catch(e){Hu(r,r.return,e)}}n&&o&64&&Pc(a),Ic(a,a.return);break;case 27:Wc(a);case 26:case 5:ml(i,a,n),n&&r===null&&o&4&&Rc(a),Ic(a,a.return);break;case 12:ml(i,a,n);break;case 31:ml(i,a,n),n&&o&4&&rl(i,a);break;case 13:ml(i,a,n),n&&o&4&&il(i,a);break;case 22:a.memoizedState===null&&ml(i,a,n),Ic(a,a.return);break;case 30:break;default:ml(i,a,n)}t=t.sibling}}function hl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Zi(n))}function gl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function _l(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vl(e,t,n,r),t=t.sibling}function vl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:_l(e,t,n,r),i&2048&&Mc(9,t);break;case 1:_l(e,t,n,r);break;case 3:_l(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e)));break;case 12:if(i&2048){_l(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Hu(t,t.return,e)}}else _l(e,t,n,r);break;case 31:_l(e,t,n,r);break;case 13:_l(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?_l(e,t,n,r):(a._visibility|=2,yl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?_l(e,t,n,r):bl(e,t),i&2048&&hl(o,t);break;case 24:_l(e,t,n,r),i&2048&&gl(t.alternate,t);break;default:_l(e,t,n,r)}}function yl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:yl(a,o,s,c,i),Mc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,yl(a,o,s,c,i)):u._visibility&2?yl(a,o,s,c,i):bl(a,o),i&&l&2048&&hl(o.alternate,o);break;case 24:yl(a,o,s,c,i),i&&l&2048&&gl(o.alternate,o);break;default:yl(a,o,s,c,i)}t=t.sibling}}function bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:bl(n,r),i&2048&&hl(r.alternate,r);break;case 24:bl(n,r),i&2048&&gl(r.alternate,r);break;default:bl(n,r)}t=t.sibling}}var xl=8192;function Sl(e,t,n){if(e.subtreeFlags&xl)for(e=e.child;e!==null;)Cl(e,t,n),e=e.sibling}function Cl(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&xl&&e.memoizedState!==null&&Gf(n,cl,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var r=cl;cl=gf(e.stateNode.containerInfo),Sl(e,t,n),cl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=xl,xl=16777216,Sl(e,t,n),xl=r):Sl(e,t,n));break;default:Sl(e,t,n)}}function wl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Tl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Yc=r,Ol(r,e)}wl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)El(e),e=e.sibling}function El(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&Nc(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dl(e)):Tl(e);break;default:Tl(e)}}function Dl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Yc=r,Ol(r,e)}wl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nc(8,t,t.return),Dl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Dl(t));break;default:Dl(t)}e=e.sibling}}function Ol(e,t){for(;Yc!==null;){var n=Yc;switch(n.tag){case 0:case 11:case 15:Nc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Zi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Yc=r;else a:for(n=e;Yc!==null;){r=Yc;var i=r.sibling,a=r.return;if(Qc(r),r===n){Yc=null;break a}if(i!==null){i.return=a,Yc=i;break a}Yc=a}}}var kl={getCacheForType:function(e){var t=Ui(Yi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ui(Yi).controller.signal}},Al=typeof WeakMap==`function`?WeakMap:Map,jl=0,Ml=null,Nl=null,Pl=0,Fl=0,Il=null,Ll=!1,Rl=!1,zl=!1,Bl=0,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=null,Jl=null,Yl=!1,Xl=0,Zl=0,Ql=1/0,$l=null,eu=null,tu=0,nu=null,ru=null,iu=0,au=0,ou=null,su=null,cu=0,lu=null;function uu(){return jl&2&&Pl!==0?Pl&-Pl:I.T===null?Ge():ld()}function du(){if(Gl===0){if(!(Pl&536870912)||Si){var e=Ae;Ae<<=1,!(Ae&3932160)&&(Ae=262144),Gl=e}else Gl=536870912}return e=Ga.current,e!==null&&(e.flags|=32),Gl}function fu(e,t,n){(e===Ml&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)&&(yu(e,0),gu(e,Pl,Gl,!1)),Re(e,n),(!(jl&2)||e!==Ml)&&(e===Ml&&(!(jl&2)&&(Ul|=n),Vl===4&&gu(e,Pl,Gl,!1)),td(e))}function pu(e,t,n){if(jl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Pe(e,t),a=r?Du(e,t):Tu(e,t,!0),o=r;do{if(a===0){Rl&&!r&&gu(e,t,0,!1);break}if(n=e.current.alternate,o&&!hu(n)){a=Tu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ql;var l=c.current.memoizedState.isDehydrated;if(l&&(yu(c,s).flags|=256),s=Tu(c,s,!1),s!==2){if(zl&&!l){c.errorRecoveryDisabledLanes|=o,Ul|=o,a=4;break a}o=Jl,Jl=a,o!==null&&(Jl===null?Jl=o:Jl.push.apply(Jl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){yu(e,0),gu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:gu(r,t,Gl,!Ll);break a;case 2:Jl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Xl+300-pe(),10<a)){if(gu(r,t,Gl,!Ll),Ne(r,0,!0)!==0)break a;iu=t,r.timeoutHandle=Kd(mu.bind(null,r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,`Throttled`,-0,0),a);break a}mu(r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,null,-0,0)}break}while(1);td(e)}function mu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vt},Cl(t,a,d);var m=(a&62914560)===a?Xl-pe():(a&4194048)===a?Zl-pe():0;if(m=qf(d,m),m!==null){iu=a,e.cancelPendingCommit=m(Pu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),gu(e,a,o,!l);return}}Pu(e,t,a,n,r,i,o,s,c)}function hu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!lr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function gu(e,t,n,r){t&=~Wl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Te(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Be(e,n,t)}function _u(){return jl&6?!0:(nd(0,!1),!1)}function vu(){if(Nl!==null){if(Fl===0)var e=Nl.return;else e=Nl,Fi=Pi=null,bo(e),ba=null,xa=0,e=Nl;for(;e!==null;)jc(e.alternate,e),e=e.return;Nl=null}}function yu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),iu=0,vu(),Ml=e,Nl=n=Zr(e.current,null),Pl=t,Fl=0,Il=null,Ll=!1,Rl=Pe(e,t),zl=!1,Kl=Gl=Wl=Ul=Hl=Vl=0,Jl=ql=null,Yl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Te(r),a=1<<i;t|=e[i],r&=~a}return Bl=t,Vr(),n}function bu(e,t){to=null,I.H=Os,t===ua||t===fa?(t=va(),Fl=3):t===da?(t=va(),Fl=4):Fl=t===Ks?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Il=t,Nl===null&&(Vl=1,Bs(e,ai(t,e.current)))}function xu(){var e=Ga.current;return e===null?!0:(Pl&4194048)===Pl?Ka===null:(Pl&62914560)===Pl||Pl&536870912?e===Ka:!1}function Su(){var e=I.H;return I.H=Os,e===null?Os:e}function Cu(){var e=I.A;return I.A=kl,e}function wu(){Vl=4,Ll||(Pl&4194048)!==Pl&&Ga.current!==null||(Rl=!0),!(Hl&134217727)&&!(Ul&134217727)||Ml===null||gu(Ml,Pl,Gl,!1)}function Tu(e,t,n){var r=jl;jl|=2;var i=Su(),a=Cu();(Ml!==e||Pl!==t)&&($l=null,yu(e,t)),t=!1;var o=Vl;a:do try{if(Fl!==0&&Nl!==null){var s=Nl,c=Il;switch(Fl){case 8:vu(),o=6;break a;case 3:case 2:case 9:case 6:Ga.current===null&&(t=!0);var l=Fl;if(Fl=0,Il=null,ju(e,s,c,l),n&&Rl){o=0;break a}break;default:l=Fl,Fl=0,Il=null,ju(e,s,c,l)}}Eu(),o=Vl;break}catch(t){bu(e,t)}while(1);return t&&e.shellSuspendCounter++,Fi=Pi=null,jl=r,I.H=i,I.A=a,Nl===null&&(Ml=null,Pl=0,Vr()),o}function Eu(){for(;Nl!==null;)ku(Nl)}function Du(e,t){var n=jl;jl|=2;var r=Su(),a=Cu();Ml!==e||Pl!==t?($l=null,Ql=pe()+500,yu(e,t)):Rl=Pe(e,t);a:do try{if(Fl!==0&&Nl!==null){t=Nl;var o=Il;b:switch(Fl){case 1:Fl=0,Il=null,ju(e,t,o,1);break;case 2:case 9:if(ma(o)){Fl=0,Il=null,Au(t);break}t=function(){Fl!==2&&Fl!==9||Ml!==e||(Fl=7),td(e)},o.then(t,t);break a;case 3:Fl=7;break a;case 4:Fl=5;break a;case 7:ma(o)?(Fl=0,Il=null,Au(t)):(Fl=0,Il=null,ju(e,t,o,7));break;case 5:var s=null;switch(Nl.tag){case 26:s=Nl.memoizedState;case 5:case 27:var c=Nl;if(s?Wf(s):c.stateNode.complete){Fl=0,Il=null;var l=c.sibling;if(l!==null)Nl=l;else{var u=c.return;u===null?Nl=null:(Nl=u,Mu(u))}break b}}Fl=0,Il=null,ju(e,t,o,5);break;case 6:Fl=0,Il=null,ju(e,t,o,6);break;case 8:vu(),Vl=6;break a;default:throw Error(i(462))}}Ou();break}catch(t){bu(e,t)}while(1);return Fi=Pi=null,I.H=r,I.A=a,jl=n,Nl===null?(Ml=null,Pl=0,Vr(),Vl):0}function Ou(){for(;Nl!==null&&!de();)ku(Nl)}function ku(e){var t=Sc(e.alternate,e,Bl);e.memoizedProps=e.pendingProps,t===null?Mu(e):Nl=t}function Au(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=oc(n,t,t.pendingProps,t.type,void 0,Pl);break;case 11:t=oc(n,t,t.pendingProps,t.type.render,t.ref,Pl);break;case 5:bo(t);default:jc(n,t),t=Nl=Qr(t,Bl),t=Sc(n,t,Bl)}e.memoizedProps=e.pendingProps,t===null?Mu(e):Nl=t}function ju(e,t,n,r){Fi=Pi=null,bo(t),ba=null,xa=0;var i=t.return;try{if(Gs(e,i,t,n,Pl)){Vl=1,Bs(e,ai(n,e.current)),Nl=null;return}}catch(t){if(i!==null)throw Nl=i,t;Vl=1,Bs(e,ai(n,e.current)),Nl=null;return}t.flags&32768?(Si||r===1?e=!0:Rl||Pl&536870912?e=!1:(Ll=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ga.current,r!==null&&r.tag===13&&(r.flags|=16384))),Nu(t,e)):Mu(t)}function Mu(e){var t=e;do{if(t.flags&32768){Nu(t,Ll);return}e=t.return;var n=kc(t.alternate,t,Bl);if(n!==null){Nl=n;return}if(t=t.sibling,t!==null){Nl=t;return}Nl=t=e}while(t!==null);Vl===0&&(Vl=5)}function Nu(e,t){do{var n=Ac(e.alternate,e);if(n!==null){n.flags&=32767,Nl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Nl=e;return}Nl=e=n}while(e!==null);Vl=6,Nl=null}function Pu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do zu();while(tu!==0);if(jl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Br,ze(e,n,o,s,c,l),e===Ml&&(Nl=Ml=null,Pl=0),ru=t,nu=e,iu=n,au=o,ou=a,su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Ju(_e,function(){return Bu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=jl,jl|=4;try{Xc(e,t,n)}finally{jl=s,L.p=a,I.T=r}}tu=1,Fu(),Iu(),Lu()}}function Fu(){if(tu===1){tu=0;var e=nu,t=ru,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=jl;jl|=4;try{ll(t,e);var a=zd,o=mr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&pr(s.ownerDocument.documentElement,s)){if(c!==null&&hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=fr(s,h),v=fr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{jl=i,L.p=r,I.T=n}}e.current=t,tu=2}}function Iu(){if(tu===2){tu=0;var e=nu,t=ru,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=jl;jl|=4;try{Zc(e,t.alternate,t)}finally{jl=i,L.p=r,I.T=n}}tu=3}}function Lu(){if(tu===4||tu===3){tu=0,fe();var e=nu,t=ru,n=iu,r=su;t.subtreeFlags&10256||t.flags&10256?tu=5:(tu=0,ru=nu=null,Ru(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(eu=null),We(n),t=t.stateNode,Ce&&typeof Ce.onCommitFiberRoot==`function`)try{Ce.onCommitFiberRoot(Se,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}iu&3&&zu(),td(e),i=e.pendingLanes,n&261930&&i&42?e===lu?cu++:(cu=0,lu=e):cu=0,nd(0,!1)}}function Ru(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function zu(){return Fu(),Iu(),Lu(),Bu()}function Bu(){if(tu!==5)return!1;var e=nu,t=au;au=0;var n=We(iu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=ou,ou=null;var o=nu,s=iu;if(tu=0,ru=nu=null,iu=0,jl&6)throw Error(i(331));var c=jl;if(jl|=4,El(o.current),vl(o,o.current,s,n),jl=c,nd(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot==`function`)try{Ce.onPostCommitFiberRoot(Se,o)}catch{}return!0}finally{L.p=a,I.T=r,Ru(e,t)}}function Vu(e,t,n){t=ai(n,t),t=Hs(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(Re(e,2),td(e))}function Hu(e,t,n){if(e.tag===3)Vu(e,e,n);else for(;t!==null;){if(t.tag===3){Vu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(eu===null||!eu.has(r))){e=ai(n,e),n=Us(2),r=Ma(t,n,2),r!==null&&(Ws(n,r,t,e),Re(r,2),td(r));break}}t=t.return}}function Uu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Al;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(zl=!0,i.add(n),e=Wu.bind(null,e,t,n),t.then(e,e))}function Wu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ml===e&&(Pl&n)===n&&(Vl===4||Vl===3&&(Pl&62914560)===Pl&&300>pe()-Xl?!(jl&2)&&yu(e,0):Wl|=n,Kl===Pl&&(Kl=0)),td(e)}function Gu(e,t){t===0&&(t=Ie()),e=Wr(e,t),e!==null&&(Re(e,t),td(e))}function Ku(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gu(e,n)}function qu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Gu(e,n)}function Ju(e,t){return le(e,t)}var Yu=null,Xu=null,Zu=!1,Qu=!1,$u=!1,ed=0;function td(e){e!==Xu&&e.next===null&&(Xu===null?Yu=Xu=e:Xu=Xu.next=e),Qu=!0,Zu||(Zu=!0,cd())}function nd(e,t){if(!$u&&Qu){$u=!0;do for(var n=!1,r=Yu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Te(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,sd(r,a))}else a=Pl,a=Ne(r,r===Ml?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Pe(r,a)||(n=!0,sd(r,a))}r=r.next}while(n);$u=!1}}function rd(){id()}function id(){Qu=Zu=!1;var e=0;ed!==0&&Gd()&&(e=ed);for(var t=pe(),n=null,r=Yu;r!==null;){var i=r.next,a=ad(r,t);a===0?(r.next=null,n===null?Yu=i:n.next=i,i===null&&(Xu=n)):(n=r,(e!==0||a&3)&&(Qu=!0)),r=i}tu!==0&&tu!==5||nd(e,!1),ed!==0&&(ed=0)}function ad(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Te(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Fe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ml,n=Pl,n=Ne(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ue(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Pe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ue(r),We(n)){case 2:case 8:n=ge;break;case 32:n=_e;break;case 268435456:n=ye;break;default:n=_e}return r=od.bind(null,e),n=le(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ue(r),e.callbackPriority=2,e.callbackNode=null,2}function od(e,t){if(tu!==0&&tu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zu()&&e.callbackNode!==n)return null;var r=Pl;return r=Ne(e,e===Ml?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(pu(e,r,t),ad(e,pe()),e.callbackNode!=null&&e.callbackNode===n?od.bind(null,e):null)}function sd(e,t){if(zu())return null;pu(e,t,!0)}function cd(){Yd(function(){jl&6?le(he,rd):id()})}function ld(){if(ed===0){var e=ea;e===0&&(e=ke,ke<<=1,!(ke&261888)&&(ke=256)),ed=e}return ed}function ud(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Bt(``+e)}function dd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function fd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=ud((i[Ye]||null).action),o=r.submitter;o&&(t=(t=o[Ye]||null)?ud(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ed!==0){var e=o?dd(i,o):new FormData(i);ms(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?dd(i,o):new FormData(i),ms(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var pd=0;pd<Fr.length;pd++){var md=Fr[pd];Ir(md.toLowerCase(),`on`+(md[0].toUpperCase()+md.slice(1)))}Ir(Dr,`onAnimationEnd`),Ir(Or,`onAnimationIteration`),Ir(kr,`onAnimationStart`),Ir(`dblclick`,`onDoubleClick`),Ir(`focusin`,`onFocus`),Ir(`focusout`,`onBlur`),Ir(Ar,`onTransitionRun`),Ir(jr,`onTransitionStart`),Ir(Mr,`onTransitionCancel`),Ir(Nr,`onTransitionEnd`),dt(`onMouseEnter`,[`mouseout`,`mouseover`]),dt(`onMouseLeave`,[`mouseout`,`mouseover`]),dt(`onPointerEnter`,[`pointerout`,`pointerover`]),dt(`onPointerLeave`,[`pointerout`,`pointerover`]),ut(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ut(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ut(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ut(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ut(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ut(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var hd=`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(` `),gd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(hd));function _d(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Lr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Lr(e)}i.currentTarget=null,a=c}}}}function vd(e,t){var n=t[Ze];n===void 0&&(n=t[Ze]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,ct.forEach(function(t){t!==`selectionchange`&&(gd.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!Zt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=rt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Jt(function(){var r=a,i=Ut(n),s=[];a:{var c=Pr.get(e);if(c!==void 0){var l=ln,u=e;switch(e){case`keypress`:if(rn(n)===0)break a;case`keydown`:case`keyup`:l=En;break;case`focusin`:u=`focus`,l=vn;break;case`focusout`:u=`blur`,l=vn;break;case`beforeblur`:case`afterblur`:l=vn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=_n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=On;break;case Dr:case Or:case kr:l=yn;break;case Nr:l=kn;break;case`scroll`:case`scrollend`:l=dn;break;case`wheel`:l=An;break;case`copy`:case`cut`:case`paste`:l=bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Dn;break;case`toggle`:case`beforetoggle`:l=jn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Yt(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Ht&&(u=n.relatedTarget||n.fromElement)&&(rt(u)||u[Xe]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?rt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Dn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:at(l),h=u==null?c:at(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,rt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?at(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=Zn;else if(Gn(c)){if(Qn)v=sr;else{v=ar;var y=ir}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Lt(r.elementType)&&(v=Zn):v=or;if(v&&=v(e,r)){Kn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&kt(c,`number`,c.value)}switch(y=r?at(r):window,e){case`focusin`:(Gn(y)||y.contentEditable===`true`)&&(_r=y,vr=r,yr=null);break;case`focusout`:yr=vr=_r=null;break;case`mousedown`:br=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:br=!1,xr(s,n,i);break;case`selectionchange`:if(gr)break;case`keydown`:case`keyup`:xr(s,n,i)}var b;if(Nn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Vn?zn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(In&&n.locale!==`ko`&&(Vn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Vn&&(b=nn()):($t=i,en=`value`in $t?$t.value:$t.textContent,Vn=!0)),y=Td(r,x),0<y.length&&(x=new xn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Bn(n),b!==null&&(x.data=b)))),(b=Fn?Hn(e,n):Un(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),fd(s,e,r,n,i)}_d(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Yt(e,n),i!=null&&r.unshift(wd(e,i,a)),i=Yt(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Yt(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=Yt(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
|
|
9
|
+
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Nt(e,``+r);break;case`className`:_t(e,`class`,r);break;case`tabIndex`:_t(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_t(e,n,r);break;case`style`:It(e,r,o);break;case`data`:if(t!==`object`){_t(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`onScroll`:r!=null&&vd(`scroll`,e);break;case`onScrollEnd`:r!=null&&vd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Bt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:vd(`beforetoggle`,e),vd(`toggle`,e),gt(e,`popover`,r);break;case`xlinkActuate`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:gt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Rt.get(n)||n,gt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:It(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Nt(e,``+r);break;case`onScroll`:r!=null&&vd(`scroll`,e);break;case`onScrollEnd`:r!=null&&vd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[Ye]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):gt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:vd(`error`,e),vd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:vd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Ot(e,o,c,l,u,s,a,!1);return;case`select`:for(a in vd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&At(e,!!r,n,!0):At(e,!!r,t,!1);return;case`textarea`:for(s in vd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Mt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:vd(`beforetoggle`,e),vd(`toggle`,e),vd(`cancel`,e),vd(`close`,e);break;case`iframe`:case`object`:vd(`load`,e);break;case`video`:case`audio`:for(r=0;r<hd.length;r++)vd(hd[r],e);break;case`image`:vd(`error`,e),vd(`load`,e);break;case`details`:vd(`toggle`,e);break;case`embed`:case`source`:case`link`:vd(`error`,e),vd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Lt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Dt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?At(e,!!n,n?[]:``,!1):At(e,!!n,t,!0)):At(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}jt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Lt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e!==Wd&&(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[tt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body)}n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),nt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[tt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=L.d;L.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=_u();return e||t}function yf(e){var t=it(e);t!==null&&t.tag===5&&t.type===`form`?gs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),st(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Et(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Et(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Et(n.imageSizes)+`"]`)):i+=`[href="`+Et(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),st(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Et(r)+`"][href="`+Et(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),st(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ot(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);st(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ot(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),st(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ot(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),st(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=G.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Et(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),st(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Et(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Et(n.href)+`"]`);if(r)return t.instance=r,st(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),st(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,st(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),st(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,st(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),st(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[tt]||a[Je]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,st(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),st(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Yr(3,null,null,t),e.current=a,a.stateNode=e,t=Xi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ka(a),e}function tp(e){return e?(e=qr,e):qr}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=ja(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ma(e,r,t),n!==null&&(fu(n,e,t),Na(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=Wr(e,67108864);t!==null&&fu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=uu();t=Ue(t);var n=Wr(e,t);n!==null&&fu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,up(e,t,n,r)}finally{L.p=a,I.T=i}}function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,up(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=it(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Me(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Te(o);s.entanglements[1]|=c,o&=~c}td(a),!(jl&6)&&(Ql=pe()+500,nd(0,!1))}}break;case 31:case 13:s=Wr(a,2),s!==null&&fu(s,a,2),_u(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Ut(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=rt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){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(me()){case he:return 2;case ge:return 8;case _e:case ve:return 32;case ye:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=it(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=rt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ht=r,n.target.dispatchEvent(r),Ht=null}else return t=it(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=it(n);a!==null&&(e.splice(t,3),t-=3,ms(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ye]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ye]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,uu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),_u(),t[Xe]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ge();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.8`)throw Error(i(527,Lp,`19.2.8`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Se=zp.inject(Rp),Ce=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ls,s=Rs,c=zs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[Xe]=t.current,xd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=`modulepreload`,v=function(e){return`/`+e},y={},b=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=v(t,n),t=s(t),t in y)return;y[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:_,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},x=c(u(),1),S=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,C=/^[\\/]{2}/;function w(e,t){return t+e.replace(/\\/g,`/`)}var T=`popstate`;function E(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function D(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return M(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:N(t)}return F(t,n,null,e)}function O(e,t){if(e===!1||e==null)throw Error(t)}function k(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function A(){return Math.random().toString(36).substring(2,10)}function j(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function M(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?P(t):t,state:n,key:t&&t.key||r||A(),mask:i}}function N({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 P(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 F(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u()+1;let d=j(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u();let i=j(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return I(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(T,d),c=e,()=>{i.removeEventListener(T,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function I(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),O(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:N(t);return i=i.replace(/ $/,`%20`),!n&&C.test(i)&&(i=r+i),new URL(i,r)}function L(e,t,n=`/`){return R(e,t,n,!1)}function R(e,t,n,r,i){let a=oe((typeof t==`string`?P(t):t).pathname||`/`,n);if(a==null)return null;let o=i??z(e),s=null,c=ae(a);for(let e=0;s==null&&e<o.length;++e)s=ne(o[e],c,r);return s}function z(e){let t=B(e);return H(t),t}function B(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;O(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=me([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(O(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),B(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:te(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=ie(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of V(e.path))a(e,t,!0,n)}),t}function V(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=V(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function H(e){e.sort((e,t)=>e.score===t.score?Y(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var U=/^:[\w-]+$/,W=3,ee=2,G=1,K=10,q=-2,J=e=>e===`*`;function te(e,t){let n=e.split(`/`),r=n.length;return n.some(J)&&(r+=q),t&&(r+=ee),n.filter(e=>!J(e)).reduce((e,t)=>e+(U.test(t)?W:t===``?G:K),r)}function Y(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ne(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?re(u,l,s.matcher,s.compiledParams):X(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=X({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:me([a,d.pathname]),pathnameBase:ge(me([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=me([a,d.pathnameBase]))}return o}function X(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ie(e.path,e.caseSensitive,e.end);return re(e,t,n,r)}function re(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ie(e,t=!1,n=!0){k(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=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ae(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return k(!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 oe(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function se(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?P(e):e,a;return n?(n=pe(n),a=n.startsWith(`/`)?ce(n.substring(1),`/`):ce(n,t)):a=t,{pathname:a,search:_e(r),hash:ve(i)}}function ce(e,t){let n=he(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function le(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 ue(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function de(e){let t=ue(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function fe(e,t,n,r=!1){let i;typeof e==`string`?i=P(e):(i={...e},O(!i.pathname||!i.pathname.includes(`?`),le(`?`,`pathname`,`search`,i)),O(!i.pathname||!i.pathname.includes(`#`),le(`#`,`pathname`,`hash`,i)),O(!i.search||!i.search.includes(`#`),le(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=se(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var pe=e=>e.replace(/[\\/]{2,}/g,`/`),me=e=>pe(e.join(`/`)),he=e=>e.replace(/\/+$/,``),ge=e=>he(e).replace(/^\/*/,`/`),_e=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ve=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,ye=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 be(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function xe(e){return me(e.map(e=>e.route.path).filter(Boolean))||`/`}var Se=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ce(e,t){let n=e;if(typeof n!=`string`||!S.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Se)try{let e=new URL(window.location.href),r=C.test(n)?new URL(w(n,e.protocol)):new URL(n),a=oe(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{k(!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:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var we=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(we);var Te=[`GET`,...we];new Set(Te);var Ee=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function De(e){try{return Ee.includes(new URL(e).protocol)}catch{return!1}}var Oe=x.createContext(null);Oe.displayName=`DataRouter`;var ke=x.createContext(null);ke.displayName=`DataRouterState`;var Ae=x.createContext(!1);function je(){return x.useContext(Ae)}var Me=x.createContext({isTransitioning:!1});Me.displayName=`ViewTransition`;var Ne=x.createContext(new Map);Ne.displayName=`Fetchers`;var Pe=x.createContext(null);Pe.displayName=`Await`;var Fe=x.createContext(null);Fe.displayName=`Navigation`;var Ie=x.createContext(null);Ie.displayName=`Location`;var Le=x.createContext({outlet:null,matches:[],isDataRoute:!1});Le.displayName=`Route`;var Re=x.createContext(null);Re.displayName=`RouteError`;var ze=`REACT_ROUTER_ERROR`,Be=`REDIRECT`,Ve=`ROUTE_ERROR_RESPONSE`;function He(e){if(e.startsWith(`${ze}:${Be}:{`))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 Ue(e){if(e.startsWith(`${ze}:${Ve}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new ye(t.status,t.statusText,t.data)}catch{}}function We(e,{relative:t}={}){O(Ge(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=x.useContext(Fe),{hash:i,pathname:a,search:o}=Qe(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:me([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Ge(){return x.useContext(Ie)!=null}function Ke(){return O(Ge(),`useLocation() may be used only in the context of a <Router> component.`),x.useContext(Ie).location}var qe=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Je(e){x.useContext(Fe).static||x.useLayoutEffect(e)}function Ye(){let{isDataRoute:e}=x.useContext(Le);return e?ht():Xe()}function Xe(){O(Ge(),`useNavigate() may be used only in the context of a <Router> component.`);let e=x.useContext(Oe),{basename:t,navigator:n}=x.useContext(Fe),{matches:r}=x.useContext(Le),{pathname:i}=Ke(),a=JSON.stringify(de(r)),o=x.useRef(!1);return Je(()=>{o.current=!0}),x.useCallback((r,s={})=>{if(k(o.current,qe),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=fe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:me([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}x.createContext(null);function Ze(){let{matches:e}=x.useContext(Le);return e[e.length-1]?.params??{}}function Qe(e,{relative:t}={}){let{matches:n}=x.useContext(Le),{pathname:r}=Ke(),i=JSON.stringify(de(n));return x.useMemo(()=>fe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function $e(e,t){return et(e,t)}function et(e,t,n){O(Ge(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=x.useContext(Fe),{matches:i}=x.useContext(Le),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;_t(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Ke(),d;if(t){let e=typeof t==`string`?P(t):t;O(c===`/`||e.pathname?.startsWith(c),`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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):L(e,{pathname:p});k(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),k(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 h=st(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:me([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:me([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?x.createElement(Ie.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function tt(){let e=mt(),t=be(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)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=x.createElement(x.Fragment,null,x.createElement(`p`,null,`💿 Hey developer 👋`),x.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,x.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,x.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),x.createElement(x.Fragment,null,x.createElement(`h2`,null,`Unexpected Application Error!`),x.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?x.createElement(`pre`,{style:i},n):null,o)}var nt=x.createElement(tt,null),rt=class extends x.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?t.error:e.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`){let t=Ue(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:x.createElement(Le.Provider,{value:this.props.routeContext},x.createElement(Re.Provider,{value:e,children:this.props.component}));return this.context?x.createElement(at,{error:e},t):t}};rt.contextType=Ae;var it=new WeakMap;function at({children:e,error:t}){let{basename:n}=x.useContext(Fe);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=He(t.digest);if(e){let r=it.get(t);if(r)throw r;let i=Ce(e.location,n),a=i.absoluteURL||i.to;if(De(a))throw Error(`Invalid redirect location`);if(Se&&!it.get(t)){if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw it.set(t,n),n}}return x.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function ot({routeContext:e,match:t,children:n}){let r=x.useContext(Oe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Le.Provider,{value:e},n)}function st(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);O(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:xe(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||nt,o&&(s<0&&c===0?(_t(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?x.createElement(n.route.Component,null):n.route.element?n.route.element:e,x.createElement(ot,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?x.createElement(rt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function ct(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lt(e){let t=x.useContext(Oe);return O(t,ct(e)),t}function ut(e){let t=x.useContext(ke);return O(t,ct(e)),t}function dt(e){let t=x.useContext(Le);return O(t,ct(e)),t}function ft(e){let t=dt(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function pt(){return ft(`useRouteId`)}function mt(){let e=x.useContext(Re),t=ut(`useRouteError`),n=ft(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ht(){let{router:e}=lt(`useNavigate`),t=ft(`useNavigate`),n=x.useRef(!1);return Je(()=>{n.current=!0}),x.useCallback(async(r,i={})=>{k(n.current,qe),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var gt={};function _t(e,t,n){!t&&!gt[e]&&(gt[e]=!0,k(!1,n))}x.memo(vt);function vt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return et(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function yt({to:e,replace:t,state:n,relative:r}){O(Ge(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=x.useContext(Fe);k(!i,`<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:a}=x.useContext(Le),{pathname:o}=Ke(),s=Ye(),c=fe(e,de(a),o,r===`path`),l=JSON.stringify(c);return x.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function bt(e){O(!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 xt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){O(!Ge(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=x.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=P(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=x.useMemo(()=>{let e=oe(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return k(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:x.createElement(Fe.Provider,{value:c},x.createElement(Ie.Provider,{children:t,value:h}))}function St({children:e,location:t}){return $e(Ct(e),t)}x.Component;function Ct(e,t=[]){let n=[];return x.Children.forEach(e,(e,r)=>{if(!x.isValidElement(e))return;let i=[...t,r];if(e.type===x.Fragment){n.push.apply(n,Ct(e.props.children,i));return}O(e.type===bt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ct(e.props.children,i)),n.push(a)}),n}var wt=`get`,Tt=`application/x-www-form-urlencoded`;function Et(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Dt(e){return Et(e)&&e.tagName.toLowerCase()===`button`}function Ot(e){return Et(e)&&e.tagName.toLowerCase()===`form`}function kt(e){return Et(e)&&e.tagName.toLowerCase()===`input`}function At(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jt(e,t){return e.button===0&&(!t||t===`_self`)&&!At(e)}function Mt(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Nt(e,t){let n=Mt(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Pt=null;function Ft(){if(Pt===null)try{new FormData(document.createElement(`form`),0),Pt=!1}catch{Pt=!0}return Pt}var It=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Lt(e){return e!=null&&!It.has(e)?(k(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tt}"`),null):e}function Rt(e,t){let n,r,i,a,o;if(Ot(e)){let o=e.getAttribute(`action`);r=o?oe(o,t):null,n=e.getAttribute(`method`)||wt,i=Lt(e.getAttribute(`enctype`))||Tt,a=new FormData(e)}else if(Dt(e)||kt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?oe(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||wt,i=Lt(e.getAttribute(`formenctype`))||Lt(o.getAttribute(`enctype`))||Tt,a=new FormData(o,e),!Ft()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Et(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=wt,r=null,i=Tt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function zt(e,t){if(e===!1||e==null)throw Error(t)}function Bt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&oe(i.pathname,t)===`/`?`${he(t)}/_root.${r}`:`${he(i.pathname)}.${r}`,i}async function Vt(e,t){if(e.id in t)return t[e.id];try{let n=await b(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ht(e){return e!=null&&typeof e.page==`string`}function Ut(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 Wt(e,t,n){return Yt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Vt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ut).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Gt(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Kt(e,t,{includeHydrateFallback:n}={}){return qt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function qt(e){return[...new Set(e)]}function Jt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Yt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ht(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Jt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Xt(){let e=x.useContext(Oe);return zt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Zt(){let e=x.useContext(ke);return zt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Qt=x.createContext(void 0);Qt.displayName=`FrameworkContext`;function $t(){let e=x.useContext(Qt);return zt(e,`You must render this element inside a <HydratedRouter> element`),e}function en(e,t){let n=x.useContext(Qt),[r,i]=x.useState(!1),[a,o]=x.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=x.useRef(null);x.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),x.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:tn(s,p),onBlur:tn(c,m),onMouseEnter:tn(l,p),onMouseLeave:tn(u,m),onTouchStart:tn(d,p)}]:[a,f,{}]:[!1,f,{}]}function tn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function nn({page:e,...t}){let n=je(),{nonce:r}=$t(),{router:i}=Xt(),a=x.useMemo(()=>L(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?x.createElement(an,{page:e,matches:a,...t}):x.createElement(on,{page:e,matches:a,...t})):null}function rn(e){let{manifest:t,routeModules:n}=$t(),[r,i]=x.useState([]);return x.useEffect(()=>{let r=!1;return Wt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function an({page:e,matches:t,...n}){let r=Ke(),{future:i}=$t(),{basename:a}=Xt(),o=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Bt(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return x.createElement(x.Fragment,null,o.map(e=>x.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function on({page:e,matches:t,...n}){let r=Ke(),{future:i,manifest:a,routeModules:o}=$t(),{basename:s}=Xt(),{loaderData:c,matches:l}=Zt(),u=x.useMemo(()=>Gt(e,t,l,a,r,`data`),[e,t,l,a,r]),d=x.useMemo(()=>Gt(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Bt(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=x.useMemo(()=>Kt(d,a),[d,a]),m=rn(d);return x.createElement(x.Fragment,null,f.map(e=>x.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>x.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>x.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function sn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}x.Component;var cn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{cn&&(window.__reactRouterVersion=`7.18.2`)}catch{}function ln({basename:e,children:t,useTransitions:n,window:r}){let i=x.useRef();i.current??=D({window:r,v5Compat:!0});let a=i.current,[o,s]=x.useState({action:a.action,location:a.location}),c=x.useCallback(e=>{n===!1?s(e):x.startTransition(()=>s(e))},[n]);return x.useLayoutEffect(()=>a.listen(c),[a,c]),x.createElement(xt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var un=x.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=x.useContext(Fe),v=typeof l==`string`&&S.test(l),y=Ce(l,h);l=y.to;let b=We(l,{relative:r}),C=Ke(),w=null;if(o){let e=fe(o,[],C.mask?C.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:me([h,e.pathname])),w=g.createHref(e)}let[T,E,D]=en(n,p),O=hn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(y.isExternal||i),j=x.createElement(`a`,{...p,...D,href:(A?w:void 0)||y.absoluteURL||b,onClick:A?k:e,ref:sn(m,E),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return T&&!v?x.createElement(x.Fragment,null,j,x.createElement(nn,{page:b})):j});un.displayName=`Link`;var dn=x.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Qe(a,{relative:c.relative}),d=Ke(),f=x.useContext(ke),{navigator:p,basename:m}=x.useContext(Fe),h=f!=null&&xn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=oe(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,S=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:S,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return x.createElement(un,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});dn.displayName=`NavLink`;var fn=x.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=wt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=x.useContext(Fe),g=yn(),_=bn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&S.test(s);return x.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?x.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});fn.displayName=`Form`;function pn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mn(e){let t=x.useContext(Oe);return O(t,pn(e)),t}function hn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Ye(),d=Ke(),f=Qe(e,{relative:o});return x.useCallback(p=>{if(jt(p,t)){p.preventDefault();let t=n===void 0?N(d)===N(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?x.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function gn(e){k(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=x.useRef(Mt(e)),n=x.useRef(!1),r=Ke(),i=x.useMemo(()=>Nt(r.search,n.current?null:t.current),[r.search]),a=Ye();return[i,x.useCallback((e,t)=>{let r=Mt(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var _n=0,vn=()=>`__${String(++_n)}__`;function yn(){let{router:e}=mn(`useSubmit`),{basename:t}=x.useContext(Fe),n=pt(),r=e.fetch,i=e.navigate;return x.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Rt(e,t);if(a.navigate===!1){let e=a.fetcherKey||vn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function bn(e,{relative:t}={}){let{basename:n}=x.useContext(Fe),r=x.useContext(Le);O(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Qe(e||`.`,{relative:t})},o=Ke();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:me([n,a.pathname])),N(a)}function xn(e,{relative:t}={}){let n=x.useContext(Me);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mn(`useViewTransitionState`),i=Qe(e,{relative:t});if(!n.isTransitioning)return!1;let a=oe(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=oe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return X(i.pathname,o)!=null||X(i.pathname,a)!=null}var Sn=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Z=o(((e,t)=>{t.exports=Sn()}))(),Cn=x.createContext(void 0),wn=e=>{let t=x.useContext(Cn);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Tn=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Z.jsx)(Cn.Provider,{value:e,children:t})),En={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Dn=new class{#e=En;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function On(e){setTimeout(e,0)}var kn=typeof window>`u`||`Deno`in globalThis;function An(){}function jn(e,t){return typeof e==`function`?e(t):e}function Mn(e){return typeof e==`number`&&e>=0&&e!==1/0}function Nn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pn(e,t){return typeof e==`function`?e(t):e}function Fn(e,t){return typeof e==`function`?e(t):e}function In(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Rn(o,t.options))return!1}else if(!Bn(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Ln(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(zn(t.options.mutationKey)!==zn(a))return!1}else if(!Bn(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Rn(e,t){return(t?.queryKeyHashFn||zn)(e)}function zn(e){return JSON.stringify(e,(e,t)=>Gn(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Bn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!Bn(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!Bn(e[r],t[r]))return!1;return!0}return!1}var Vn=Object.prototype.hasOwnProperty;function Hn(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Wn(e)&&Wn(t);if(!r&&!(Gn(e)&&Gn(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Vn.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Hn(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Un(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Wn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gn(e){if(!Kn(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Kn(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Kn(e){return Object.prototype.toString.call(e)===`[object Object]`}function qn(e){return new Promise(t=>{Dn.setTimeout(t,e)})}function Jn(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Hn(e,t)}function Yn(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Xn(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Zn=Symbol();function Qn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Zn?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $n(e,t){return typeof e==`function`?e(...t):!!e}function er(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var tr=(()=>{let e=()=>kn;return{isServer(){return e()},setIsServer(t){e=t}}})(),nr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rr=new class extends nr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},ir=On;function ar(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ir,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var or=ar(),sr=new class extends nr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function cr(e){return Math.min(1e3*2**e,3e4)}function lr(e){return(e??`online`)!==`online`||sr.isOnline()}var ur=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function dr(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(An);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new ur(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>rr.isFocused()&&(e.networkMode===`always`||sr.isOnline())&&e.canRun(),p=()=>lr(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(tr.isServer()?0:3),a=e.retryDelay??cr,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),qn(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var fr=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mn(this.gcTime)&&(this.#e=Dn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tr.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Dn.clearTimeout(this.#e),this.#e=void 0)}};function pr(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{er(e,()=>t.signal,()=>n=!0)},u=Qn(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Xn:Yn;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?hr:mr,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:mr(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function mr(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function hr(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gr=class extends fr{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=yr(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=yr(this.options);e.data!==void 0&&(this.setState(vr(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Jn(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(An).catch(An):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Fn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zn||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Pn(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Nn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Qn(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?pr(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=dr({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ur&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ur){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,..._r(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...vr(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),or.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function _r(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lr(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function vr(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function yr(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var br=class extends nr{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Sr(this.#t,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cr(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cr(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#b(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Fn(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#x(),this.#t.setOptions(this.options),t._defaulted&&!Un(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&wr(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||Fn(this.options.enabled,this.#t)!==Fn(t.enabled,this.#t)||Pn(this.options.staleTime,this.#t)!==Pn(t.staleTime,this.#t))&&this.#h();let i=this.#g();r&&(this.#t!==n||Fn(this.options.enabled,this.#t)!==Fn(t.enabled,this.#t)||i!==this.#f)&&this.#_(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Er(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#x();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(An)),t}#h(){this.#y();let e=Pn(this.options.staleTime,this.#t);if(tr.isServer()||this.#r.isStale||!Mn(e))return;let t=Nn(this.#r.dataUpdatedAt,e)+1;this.#u=Dn.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#g(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#_(e){this.#b(),this.#f=e,!(tr.isServer()||Fn(this.options.enabled,this.#t)===!1||!Mn(this.#f)||this.#f===0)&&(this.#d=Dn.setInterval(()=>{(this.options.refetchIntervalInBackground||rr.isFocused())&&this.#m()},this.#f))}#v(){this.#h(),this.#_(this.#g())}#y(){this.#u!==void 0&&(Dn.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#d!==void 0&&(Dn.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Sr(e,t),o=i&&wr(e,n,t,r);(a||o)&&(l={...l,..._r(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Jn(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Jn(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Tr(e,t),refetch:this.refetch,isEnabled:Fn(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),!Un(t,e)&&(this.#r=t,this.#S({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#x(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#S(e){or.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function xr(e,t){return Fn(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||Fn(t.retryOnMount,e)!==!1)}function Sr(e,t){return xr(e,t)||e.state.data!==void 0&&Cr(e,t,t.refetchOnMount)}function Cr(e,t,n){if(Fn(t.enabled,e)!==!1&&Pn(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Tr(e,t)}return!1}function wr(e,t,n,r){return(e!==t||Fn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Tr(e,n)}function Tr(e,t){return Fn(t.enabled,e)!==!1&&e.isStaleByTime(Pn(t.staleTime,e))}function Er(e,t){return!Un(e.getCurrentResult(),t)}var Dr=class extends fr{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Or(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=dr({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),or.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Or(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var kr=class extends nr{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Dr({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ar(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ar(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ar(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Ar(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){or.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ln(t,e))}findAll(e={}){return this.getAll().filter(t=>Ln(e,t))}notify(e){or.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return or.batch(()=>Promise.all(e.map(e=>e.continue().catch(An))))}};function Ar(e){return e.options.scope?.id}var jr=class extends nr{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Un(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&zn(t.mutationKey)!==zn(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Or();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){or.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Mr=class extends nr{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Rn(r,t),a=this.get(i);return a||(a=new gr({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){or.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>In(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>In(e,t)):t}notify(e){or.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){or.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){or.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Nr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Mr,this.#t=e.mutationCache||new kr,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=rr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=sr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=jn(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return or.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;or.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return or.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=or.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(An).catch(An)}invalidateQueries(e,t={}){return or.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=or.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(An)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(An)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(Pn(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Pn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(An).catch(An)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(An).catch(An)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return sr.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(zn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Bn(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(zn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Bn(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Rn(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Zn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Pr=x.createContext(!1),Fr=()=>x.useContext(Pr);Pr.Provider;function Ir(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Lr=x.createContext(Ir()),Rr=()=>x.useContext(Lr),zr=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?$n(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Br=e=>{x.useEffect(()=>{e.clearReset()},[e])},Vr=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||$n(n,[e.error,r])),Hr=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Ur=(e,t)=>e?.suspense&&t.isPending,Wr=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Gr(e,t,n){let r=Fr(),i=Rr(),a=wn(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Hr(o),zr(o,i,s),Br(i);let[l]=x.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(x.useSyncExternalStore(x.useCallback(e=>{let t=d?l.subscribe(or.batchCalls(e)):An;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),x.useEffect(()=>{l.setOptions(o)},[o,l]),Ur(o,u))throw Wr(o,l,i);if(Vr({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function Kr(e,t){return Gr(e,br,t)}function qr(e,t){let n=wn(t),[r]=x.useState(()=>new jr(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);let i=x.useSyncExternalStore(x.useCallback(e=>r.subscribe(or.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=x.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(An)},[r]);if(i.error&&$n(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Jr=g(),Yr=e=>{let t=x.useRef(e);return t.current=e,x.useCallback((...e)=>t.current?.(...e),[])};function Xr(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var Zr=Xr()?x.useLayoutEffect:x.useEffect,Qr=(e,t)=>{let n=x.useRef(!0);Zr(()=>e(n.current),t),Zr(()=>(n.current=!1,()=>{n.current=!0}),[])},$r=(e,t)=>{Qr(t=>{if(!t)return e()},t)},ei=e=>{let t=x.useRef(!1),[n,r]=x.useState(e);x.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function ti(e,t){let[n,r]=(0,x.useState)(e),i=t===void 0?n:t;return Qr(e=>{e||r(t)},[t]),[i,r]}var ni=e=>+setTimeout(e,16),ri=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(ni=e=>window.requestAnimationFrame(e),ri=e=>window.cancelAnimationFrame(e));var ii=0,ai=new Map;function oi(e){ai.delete(e)}var si=(e,t=1)=>{ii+=1;let n=ii;function r(t){if(t===0)oi(n),e();else{let e=ni(()=>{r(t-1)});ai.set(n,e)}}return r(t),n};si.cancel=e=>{let t=ai.get(e);return oi(e),ri(t)};function ci(e){let[t,n]=x.useState(e),r=x.useRef(null),i=Yr(()=>{if(r.current){let[e,t]=r.current;e?si.cancel(t):clearTimeout(t),r.current=null}});return[t,Yr((e,t)=>{let a=t||{frame:1};i(),a===!0?n(e):`ms`in a?r.current=[!1,setTimeout(()=>n(e),a.ms)]:r.current=[!0,si(()=>n(e),a.frame)]})]}function li(){return{...x}.useId}var ui=0;function di(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var fi=li(),pi=fi?function(e){let t=fi();return e||t}:function(e){let[t,n]=x.useState(`ssr-id`);return x.useEffect(()=>{let e=ui;ui+=1,n(`rc_unique_${e}`)},[]),e||t};function mi(e,t,n){let r=x.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function hi(e){let[,t]=x.useReducer(e=>e+1,0),n=x.useRef(e);return[Yr(()=>n.current),Yr(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var gi=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.ForwardRef=c,e.isMemo=function(e){return m(e)===d}})),_i=o(((e,t)=>{t.exports=gi()})),vi=Symbol.for(`react.element`),yi=Symbol.for(`react.transitional.element`),bi=Symbol.for(`react.fragment`);function xi(e){return e&&typeof e==`object`&&(e.$$typeof===vi||e.$$typeof===yi)&&e.type===bi}var Si=_i(),Ci=Number(x.version.split(`.`)[0]),wi=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},Ti=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{wi(e,t)})}},Ei=(...e)=>mi(()=>Ti(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),Di=e=>{if(!e)return!1;if(Oi(e)&&Ci>=19)return!0;let t=(0,Si.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==Si.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==Si.ForwardRef)};function Oi(e){return(0,x.isValidElement)(e)&&!xi(e)}var ki=e=>Oi(e)&&Di(e),Ai=e=>{if(e&&Oi(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function ji(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}var Mi=`data-rc-order`,Ni=`data-rc-priority`,Pi=`rc-util-key`,Fi=new Map;function Ii({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:Pi}function Li(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Ri(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function zi(e){return Array.from((Fi.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Bi(e,t={}){if(!Xr())return null;let{csp:n,prepend:r,priority:i=0}=t,a=Ri(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(Mi,a),o&&i&&s.setAttribute(Ni,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=Li(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||zi(c)).filter(e=>{if(![`prepend`,`prependQueue`].includes(e.getAttribute(Mi)))return!1;let t=Number(e.getAttribute(Ni)||0);return i>=t});if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function Vi(e,t={}){let{styles:n}=t;return n||=zi(Li(t)),n.find(n=>n.getAttribute(Ii(t))===e)}function Hi(e,t={}){let n=Vi(e,t);n&&Li(t).removeChild(n)}function Ui(e,t){let n=Fi.get(e);if(!n||!ji(document,n)){let n=Bi(``,t),{parentNode:r}=n;Fi.set(e,r),e.removeChild(n)}}function Wi(e,t,n={}){let r=Li(n),i=zi(r),a={...n,styles:i};Ui(r,a);let o=Vi(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=Bi(e,a);return s.setAttribute(Ii(a),t),s}function Gi(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ki(e){return e&&typeof e==`object`&&Gi(e.nativeElement)?e.nativeElement:Gi(e)?e:null}var qi=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function Ji(e,t=!1){if(qi(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Yi(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>Ji(e,t));return Ji(e,t)&&n.unshift(e),n}function Xi(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var Zi=null,Qi=[],$i=new Map,ea=new Map;function ta(){return Qi[Qi.length-1]}function na(e){let t=ta();if(e&&t){let n;for(let[e,r]of $i.entries())if(r===t){n=e;break}let r=ea.get(n);return!!r&&(r===e||r.contains(e))}return!1}function ra(e){let{activeElement:t}=document;return e===t||e.contains(t)}function ia(){let e=ta(),{activeElement:t}=document;if(!na(t)){if(e&&!ra(e)){let t=Yi(e);(t.includes(Zi)?Zi:t[0])?.focus({preventScroll:!0})}else Zi=t}}function aa(e){if(e.key===`Tab`){let{activeElement:t}=document,n=Yi(ta()),r=n[n.length-1];e.shiftKey&&t===n[0]?Zi=r:!e.shiftKey&&t===r&&(Zi=n[0])}}function oa(e,t){return e&&($i.set(t,e),Qi=Qi.filter(t=>t!==e),Qi.push(e),window.addEventListener(`focusin`,ia),window.addEventListener(`keydown`,aa,!0),ia()),()=>{Zi=null,Qi=Qi.filter(t=>t!==e),$i.delete(t),ea.delete(t),Qi.length===0&&(window.removeEventListener(`focusin`,ia),window.removeEventListener(`keydown`,aa,!0))}}function sa(e,t){let n=(0,x.useRef)(0),[r,i]=(0,x.useState)(0);(0,x.useEffect)(()=>{n.current=0},t),(0,x.useEffect)(()=>{let[t,r]=e(n.current);return r||(n.current+=1,i(e=>e+1)),t},[...t,r])}function ca(e,t){let n=pi(),r=(0,x.useRef)(t);return r.current=t,sa(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[oa(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&ea.set(n,e)}]}function la(e){return e?.getRootNode?.()}function ua(e){return la(e)instanceof ShadowRoot}function da(e){return ua(e)?la(e):null}var fa=e=>{if(Xr()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},pa=(e,t)=>{if(!fa(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function ma(e,t){return!Array.isArray(e)&&t!==void 0?pa(e,t):fa(e)}var ha={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ha.F1&&t<=ha.F12)return!1;switch(t){case ha.ALT:case ha.CAPS_LOCK:case ha.CONTEXT_MENU:case ha.CTRL:case ha.DOWN:case ha.END:case ha.ESC:case ha.HOME:case ha.INSERT:case ha.LEFT:case ha.MAC_FF_META:case ha.META:case ha.NUMLOCK:case ha.NUM_CENTER:case ha.PAGE_DOWN:case ha.PAGE_UP:case ha.PAUSE:case ha.PRINT_SCREEN:case ha.RIGHT:case ha.SHIFT:case ha.UP:case ha.WIN_KEY:case ha.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ha.ZERO&&e<=ha.NINE||e>=ha.NUM_ZERO&&e<=ha.NUM_MULTIPLY||e>=ha.A&&e<=ha.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case ha.SPACE:case ha.QUESTION_MARK:case ha.NUM_PLUS:case ha.NUM_MINUS:case ha.NUM_PERIOD:case ha.NUM_DIVISION:case ha.SEMICOLON:case ha.DASH:case ha.EQUALS:case ha.COMMA:case ha.PERIOD:case ha.SLASH:case ha.APOSTROPHE:case ha.SINGLE_QUOTE:case ha.OPEN_SQUARE_BRACKET:case ha.BACKSLASH:case ha.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let n=t.tagName;return!!(n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.isContentEditable)}},ga;function _a(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{Wi(`
|
|
12
|
+
#${t}::-webkit-scrollbar {
|
|
13
|
+
${s?`width: ${o.width};`:``}
|
|
14
|
+
${c?`height: ${o.height};`:``}
|
|
15
|
+
}`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Hi(t),{width:o,height:s}}function va(e){return typeof document>`u`?0:((e||ga===void 0)&&(ga=_a()),ga.width)}function ya(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:_a(e)}var ba={},xa=[],Sa=e=>{xa.push(e)};function Ca(e,t){}function wa(e,t){}function Ta(){ba={}}function Ea(e,t,n){!t&&!ba[n]&&(e(!1,n),ba[n]=!0)}function Da(e,t){Ea(Ca,e,t)}function Oa(e,t){Ea(wa,e,t)}Da.preMessage=Sa,Da.resetWarned=Ta,Da.noteOnce=Oa;function ka(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(Da(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&typeof e==`object`&&typeof t==`object`){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>i(e[n],t[n],s))}return!1}return i(e,t)}var Aa=c(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),ja,Ma=()=>(ja===void 0&&(ja=(0,Aa.default)()),ja);function Na(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}var Pa=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
16
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
17
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
18
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
19
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
20
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
21
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
22
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
23
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
24
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
25
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
26
|
+
summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
27
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
28
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
29
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
30
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
31
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
32
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
|
|
33
|
+
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
|
|
34
|
+
onAnimationStart onAnimationEnd onAnimationIteration
|
|
35
|
+
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
|
|
36
|
+
onBeforeInput onReset onInvalid
|
|
37
|
+
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`.split(/[\s\n]+/),Fa=`aria-`,Ia=`data-`;function La(e,t){return e.indexOf(t)===0}function Ra(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||La(t,Fa))||n.data&&La(t,Ia)||n.attr&&Pa.includes(t))&&(r[t]=e[t])}),r}function za(e,t){return typeof Proxy<`u`&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];let r=e[n];return typeof r==`function`?r.bind(e):r}}):e}function Ba(e,t={}){let n=[];return x.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(Ba(e)):xi(e)&&e.props?n=n.concat(Ba(e.props.children,t)):n.push(e))}),n}function Va(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);return t}function Ha(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(n==null)return;n=n[t[e]]}return n}function Ua(e,t,n,r){if(!t.length)return n;let[i,...a]=t,o;return o=!e&&typeof i==`number`?[]:Array.isArray(e)?[...e]:{...e},r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=Ua(o[i],a,n,r),o}function Wa(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Ha(e,t.slice(0,-1))?e:Ua(e,t,n,r)}function Ga(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function Ka(e){return Array.isArray(e)?[]:{}}var qa=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function Ja(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=Ka(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=Ha(e,n),c=Array.isArray(s);if(c||Ga(s)){if(!o.has(s)){o.add(s);let e=Ha(i,n);c?i=Wa(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=Wa(i,n,Ka(s))),qa(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=Wa(i,n,s)}t([])}),i}function Ya(...e){return Ja(e)}var Xa=`__rc_react_root__`;function Za(e,t){let n=t[Xa]||(0,Jr.createRoot)(t);n.render(e),t[Xa]=n}async function Qa(e){return Promise.resolve().then(()=>{e[Xa]?.unmount(),delete e[Xa]})}var $a=c(m());function eo(){}var{resetWarned:to}=Da,no=x.createContext({}),ro=()=>{let e=()=>{};return e.deprecated=eo,e},io=ro,ao=x.createContext(null);function oo({children:e,onBatchResize:t}){let n=x.useRef(0),r=x.useRef([]),i=x.useContext(ao),a=x.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return x.createElement(ao.Provider,{value:a},e)}var so=new Map;function co(e){e.forEach(e=>{let{target:t}=e;so.get(t)?.forEach(e=>e(t))})}var lo;function uo(){return lo||=new ResizeObserver(co),lo}function fo(e,t){so.has(e)||(so.set(e,new Set),uo().observe(e)),so.get(e).add(t)}function po(e,t){so.has(e)&&(so.get(e).delete(t),so.get(e).size||(uo().unobserve(e),so.delete(e)))}function mo(e,t,n,r){let i=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=Yr(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=x.useRef(0);x.useEffect(()=>{let n=o?t():t;return n&&e?fo(n,a):e&&o&&(s.current+=1),()=>{n&&po(n,a)}},[e,o?s.current:t])}function ho(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=x.useRef(null),s=x.useContext(ao),c=typeof n==`function`,l=c?n(o):n,u=!c&&x.isValidElement(l)&&Di(l),d=Ei(u?Ai(l):null,o),f=()=>Ki(o.current);return x.useImperativeHandle(t,()=>f()),mo(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?x.cloneElement(l,{ref:d}):l}var go=x.forwardRef(ho);function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(this,arguments)}var vo=`rc-observer-key`;function yo(e,t){let{children:n}=e;return(typeof n==`function`?[n]:Ba(n)).map((n,r)=>{let i=n?.key||`${vo}-${r}`;return x.createElement(go,_o({},e,{key:i,ref:r===0?t:void 0}),n)})}var bo=x.forwardRef(yo);bo.Collection=oo;function xo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Q(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xo(e))&&(r&&(r+=` `),r+=t);return r}function So(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 Co(e){if(Array.isArray(e))return So(e)}function wo(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function To(e,t){if(e){if(typeof e==`string`)return So(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)?So(e,t):void 0}}function Eo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
38
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Do(e){return Co(e)||wo(e)||To(e)||Eo()}var Oo=`anticon`,ko=[`outlined`,`borderless`,`filled`,`underlined`],Ao=x.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:Oo}),{Consumer:jo}=Ao,Mo={};function No(e){let t=x.useContext(Ao),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:Mo,styles:Mo,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function Po(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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)}var Fo=`%`;function Io(e){return e.join(Fo)}var Lo=0,Ro=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(Io(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Io(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,Lo),Lo+=1)}},zo=`data-token-hash`,Bo=`data-css-hash`,Vo=`__cssinjs_instance__`;function Ho(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Vo]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${Bo}]`)).forEach(t=>{let n=t.getAttribute(Bo);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new Ro(e)}var Uo=x.createContext({hashPriority:`low`,cache:Ho(),defaultCache:!0,autoPrefix:!1});function Wo(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Go=class e{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let r=this.cache;t.forEach((e,i)=>{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Wo(t,e)),this.deleteByPath(this.cache,e)}},Ko=0,qo=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Ko,e.length===0&&e.length,Ko+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},Jo=new Go;function Yo(e){let t=Array.isArray(e)?e:[e];return Jo.has(t)||Jo.set(t,new qo(t)),Jo.get(t)}var Xo=new WeakMap,Zo={};function Qo(e,t){let n=Xo;for(let e=0;e<t.length;e+=1){let r=t[e];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Zo)||n.set(Zo,e()),n.get(Zo)}var $o=new WeakMap;function es(e){let t=$o.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof qo?t+=r.id:t+=r&&typeof r==`object`?es(r):r}),t=Po(t),$o.set(e,t)),t}function ts(e,t){return Po(`${t}_${es(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var ns=Xr();function $(e){return typeof e==`number`?`${e}px`:e}function rs(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var is=e=>e!=null;function as(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var os=(e,t=``)=>`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase(),ss=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${rs({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},cs=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c?.[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!s?.[e]){let n=os(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,ss(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},ls=new Map;function us(e,t,n,r,i){let{cache:a}=x.useContext(Uo),o=Io([e,...t]),s=e=>{a.opUpdate(o,t=>{let[r=0,i]=t||[void 0,void 0],a=[r,i||n()];return e?e(a):a})};x.useMemo(()=>{s()},[o]);let c=a.opGet(o)[1];return(0,x.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),ls.has(o)||(i?.(c),ls.set(o,!0),Promise.resolve().then(()=>{ls.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),ls.delete(o),null):[t-1,n]})}),[o]),c}var ds={},fs=`css`,ps=new Map;function ms(e){ps.set(e,(ps.get(e)||0)+1)}function hs(e,t){typeof document<`u`&&document.querySelectorAll(`style[${zo}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var gs=-1;function _s(e,t){ps.set(e,(ps.get(e)||0)-1);let n=new Set;ps.forEach((e,t)=>{e<=0&&n.add(t)}),ps.size-n.size>gs&&n.forEach(e=>{hs(e,t),ps.delete(e)})}var vs=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},ys=`token`;function bs(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,x.useContext)(Uo),{salt:o=``,override:s=ds,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=Qo(()=>Object.assign({},...t),t),p=es(f),m=es(s),h=es(u);return us(ys,[o,e.id,p,m,h],()=>{let t=l?l(f,s,e):vs(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=Po(r),d=`${fs}-${i}`;n._tokenKey=ts(n,r);let[p,m]=cs(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,ms(u.key),[p,d,n,m,u.key]},([,,,,e])=>{_s(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:Bo,prepend:`queue`,attachTo:i,priority:-999};n=as(n,d);let a=Wi(e,Po(`css-var-${t}`),n);a[Vo]=r,a.setAttribute(zo,t)})}var xs={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},Ss=`-ms-`,Cs=`-moz-`,ws=`-webkit-`,Ts=`comm`,Es=`rule`,Ds=`decl`,Os=`@import`,ks=`@namespace`,As=`@keyframes`,js=`@layer`,Ms=Math.abs,Ns=String.fromCharCode,Ps=Object.assign;function Fs(e,t){return Bs(e,0)^45?(((t<<2^Bs(e,0))<<2^Bs(e,1))<<2^Bs(e,2))<<2^Bs(e,3):0}function Is(e){return e.trim()}function Ls(e,t){return(e=t.exec(e))?e[0]:e}function Rs(e,t,n){return e.replace(t,n)}function zs(e,t){return e.indexOf(t)}function Bs(e,t){return e.charCodeAt(t)|0}function Vs(e,t,n){return e.slice(t,n)}function Hs(e){return e.length}function Us(e){return e.length}function Ws(e,t){return t.push(e),e}function Gs(e,t){return e.map(t).join(``)}function Ks(e,t){return e.filter(function(e){return!Ls(e,t)})}var qs=1,Js=1,Ys=0,Xs=0,Zs=0,Qs=``;function $s(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:qs,column:Js,length:o,return:``,siblings:s}}function ec(e,t){return Ps($s(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function tc(e){for(;e.root;)e=ec(e.root,{children:[e]});Ws(e,e.siblings)}function nc(){return Zs}function rc(){return Zs=Xs>0?Bs(Qs,--Xs):0,Js--,Zs===10&&(Js=1,qs--),Zs}function ic(){return Zs=Xs<Ys?Bs(Qs,Xs++):0,Js++,Zs===10&&(Js=1,qs++),Zs}function ac(){return Bs(Qs,Xs)}function oc(){return Xs}function sc(e,t){return Vs(Qs,e,t)}function cc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lc(e){return qs=Js=1,Ys=Hs(Qs=e),Xs=0,[]}function uc(e){return Qs=``,e}function dc(e){return Is(sc(Xs-1,mc(e===91?e+2:e===40?e+1:e)))}function fc(e){for(;(Zs=ac())&&Zs<33;)ic();return cc(e)>2||cc(Zs)>3?``:` `}function pc(e,t){for(;--t&&ic()&&!(Zs<48||Zs>102||Zs>57&&Zs<65||Zs>70&&Zs<97););return sc(e,oc()+(t<6&&ac()==32&&ic()==32))}function mc(e){for(;ic();)switch(Zs){case e:return Xs;case 34:case 39:e!==34&&e!==39&&mc(Zs);break;case 40:e===41&&mc(e);break;case 92:ic();break}return Xs}function hc(e,t){for(;ic()&&e+Zs!==57&&(e+Zs!==84||ac()!==47););return`/*`+sc(t,Xs-1)+`*`+Ns(e===47?e:ic())}function gc(e){for(;!cc(ac());)ic();return sc(e,Xs)}function _c(e){return uc(vc(``,null,null,null,[``],e=lc(e),0,[0],e))}function vc(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=ic()){case 40:m!=108&&Bs(w,d-1)==58?(v++,w+=`(`):w+=dc(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=dc(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ns(y);break}w+=fc(m);break;case 92:w+=pc(oc()-1,7);continue;case 47:switch(ac()){case 42:case 47:Ws(bc(hc(ic(),oc()),t,n,c),c),(cc(m||1)==5||cc(ac()||1)==5)&&Hs(w)&&Vs(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Hs(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Ns(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Rs(w,/\f/g,``)),p>0&&(Hs(w)-d||h===0)&&Ws(p>32?xc(w+`;`,r,n,d-1,c):xc(Rs(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Ws(C=yc(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)vc(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Bs(w,3)===110)break;case 108:if(Bs(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vc(e,C,C,r&&Ws(yc(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):vc(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Hs(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&rc()==125)continue}switch(w+=Ns(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Hs(w)-1)*_,_=1;break;case 64:ac()===45&&(w+=dc(ic())),f=ac(),u=d=Hs(b=w+=gc(oc())),y++;break;case 45:m===45&&Hs(w)==2&&(h=0)}}return a}function yc(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Us(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Vs(e,f+1,f=Ms(g=o[h])),b=e;v<m;++v)(b=Is(g>0?p[v]+` `+y:Rs(y,/&\f/g,p[v])))&&(c[_++]=b);return $s(e,t,n,i===0?Es:s,c,l,u,d)}function bc(e,t,n,r){return $s(e,t,n,Ts,Ns(nc()),Vs(e,2,-2),0,r)}function xc(e,t,n,r,i){return $s(e,t,n,Ds,Vs(e,0,r),Vs(e,r+1,-1),r,i)}function Sc(e,t,n){switch(Fs(e,t)){case 5103:return ws+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ws+e+e;case 4855:return ws+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Cs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ws+e+Cs+e+Ss+e+e;case 5936:switch(Bs(e,t+11)){case 114:return ws+e+Ss+Rs(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ws+e+Ss+Rs(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ws+e+Ss+Rs(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return ws+e+Ss+e+e;case 6165:return ws+e+Ss+`flex-`+e+e;case 5187:return ws+e+Rs(e,/(\w+).+(:[^]+)/,ws+`box-$1$2`+Ss+`flex-$1$2`)+e;case 5443:return ws+e+Ss+`flex-item-`+Rs(e,/flex-|-self/g,``)+(Ls(e,/flex-|baseline/)?``:Ss+`grid-row-`+Rs(e,/flex-|-self/g,``))+e;case 4675:return ws+e+Ss+`flex-line-pack`+Rs(e,/align-content|flex-|-self/g,``)+e;case 5548:return ws+e+Ss+Rs(e,`shrink`,`negative`)+e;case 5292:return ws+e+Ss+Rs(e,`basis`,`preferred-size`)+e;case 6060:return ws+`box-`+Rs(e,`-grow`,``)+ws+e+Ss+Rs(e,`grow`,`positive`)+e;case 4554:return ws+Rs(e,/([^-])(transform)/g,`$1`+ws+`$2`)+e;case 6187:return Rs(Rs(Rs(e,/(zoom-|grab)/,ws+`$1`),/(image-set)/,ws+`$1`),e,``)+e;case 5495:case 3959:return Rs(e,/(image-set\([^]*)/,ws+"$1$`$1");case 4968:return Rs(Rs(e,/(.+:)(flex-)?(.*)/,ws+`box-pack:$3`+Ss+`flex-pack:$3`),/space-between/,`justify`)+ws+e+e;case 4200:if(!Ls(e,/flex-|baseline/))return Ss+`grid-column-align`+Vs(e,t)+e;break;case 2592:case 3360:return Ss+Rs(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Ls(e.props,/grid-\w+-end/)})?~zs(e+(n=n[t].value),`span`)?e:Ss+Rs(e,`-start`,``)+e+Ss+`grid-row-span:`+(~zs(n,`span`)?Ls(n,/\d+/):Ls(n,/\d+/)-+Ls(e,/\d+/))+`;`:Ss+Rs(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Ls(e.props,/grid-\w+-start/)})?e:Ss+Rs(Rs(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Rs(e,/(.+)-inline(.+)/,ws+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Hs(e)-1-t>6)switch(Bs(e,t+1)){case 109:if(Bs(e,t+4)!==45)break;case 102:return Rs(e,/(.+:)(.+)-([^]+)/,`$1`+ws+`$2-$3$1`+Cs+(Bs(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~zs(e,`stretch`)?Sc(Rs(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Rs(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return Ss+n+`:`+r+s+(i?Ss+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Bs(e,t+6)===121)return Rs(e,`:`,`:`+ws)+e;break;case 6444:switch(Bs(e,Bs(e,14)===45?18:11)){case 120:return Rs(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+ws+(Bs(e,14)===45?`inline-`:``)+`box$3$1`+ws+`$2$3$1`+Ss+`$2box$3`)+e;case 100:return Rs(e,`:`,`:`+Ss)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Rs(e,`scroll-`,`scroll-snap-`)+e}return e}function Cc(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function wc(e,t,n,r){switch(e.type){case js:if(e.children.length)break;case Os:case ks:case Ds:return e.return=e.return||e.value;case Ts:return``;case As:return e.return=e.value+`{`+Cc(e.children,r)+`}`;case Es:if(!Hs(e.value=e.props.join(`,`)))return``}return Hs(n=Cc(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Tc(e){var t=Us(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ec(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ds:e.return=Sc(e.value,e.length,n);return;case As:return Cc([ec(e,{value:Rs(e.value,`@`,`@`+ws)})],r);case Es:if(e.length)return Gs(n=e.props,function(t){switch(Ls(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:tc(ec(e,{props:[Rs(t,/:(read-\w+)/,`:`+Cs+`$1`)]})),tc(ec(e,{props:[t]})),Ps(e,{props:Ks(n,r)});break;case`::placeholder`:tc(ec(e,{props:[Rs(t,/:(plac\w+)/,`:`+ws+`input-$1`)]})),tc(ec(e,{props:[Rs(t,/:(plac\w+)/,`:`+Cs+`$1`)]})),tc(ec(e,{props:[Rs(t,/:(plac\w+)/,Ss+`input-$1`)]})),tc(ec(e,{props:[t]})),Ps(e,{props:Ks(n,r)})}return``})}}var Dc=`data-ant-cssinjs-cache-path`,Oc=`_FILE_STYLE__`,kc,Ac=!0;function jc(){if(!kc&&(kc={},Xr())){let e=document.createElement(`div`);e.className=Dc,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);kc[t]=n});let n=document.querySelector(`style[${Dc}]`);n&&(Ac=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function Mc(e){return jc(),!!kc[e]}function Nc(e){let t=kc[e],n=null;if(t&&Xr()){if(Ac)n=Oc;else{let t=document.querySelector(`style[${Bo}="${kc[e]}"]`);t?n=t.innerHTML:delete kc[e]}}return[n,t]}var Pc=`_skip_check_`,Fc=`_multi_value_`;function Ic(e,t){return(t?Cc(_c(e),Tc([Ec,wc])):Cc(_c(e),wc)).replace(/\{%%%\:[^;];}/g,`;`)}function Lc(e){return typeof e==`object`&&e&&(Pc in e||Fc in e)}function Rc(e,t,n=`high`){if(!t)return e;let r=rs({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,i=n.match(/^\w+/)?.[0]||``;return n=`${i}${r}${n.slice(i.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var zc=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=zc(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>t?.visit?.(e)||e,o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!Lc(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Rc(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=zc(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f={...f,...m},d+=`${l}${p}`}else{function e(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!xs[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let t=s?.value??s;typeof s==`object`&&s?.[Fc]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):is(t)&&e(o,t)}})}}),n?o&&(d&&=`@layer ${o.name} {${d}}`,o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(`
|
|
39
|
+
`))):d=`{${d}}`,[d,f]};function Bc(e,t){return Po(`${e.join(`%`)}${t}`)}var Vc=`style`;function Hc(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:h}=x.useContext(Uo),g=[r||``];m&&g.push(`layer`),g.push(...n);let _=ns;us(Vc,g,()=>{let e=g.join(`|`);if(Mc(e)){let[t,n]=Nc(e);if(t)return[t,n,{},o,s]}let[a,c]=zc(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=Ic(a,h||!1);return[u,Bc(g,u),c,o,s]},(e,t)=>{let[,n]=e;t&&ns&&Hi(n,{mark:Bo,attachTo:u})},e=>{let[t,n,r,,i]=e;if(_&&t!==`_FILE_STYLE__`){let e={mark:Bo,prepend:!m&&`queue`,attachTo:u,priority:i};e=as(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{Wi(Ic(r[t],h||!1),`_layer-${t}`,{...e,prepend:!0})});let c=Wi(t,n,e);c[Vo]=p.instanceId,s.forEach(t=>{Wi(Ic(r[t],h||!1),`_effect-${t}`,e)})}})}var Uc=`cssVar`,Wc=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,x.useContext)(Uo),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,h=[...e.path,n,m,p];return us(Uc,h,()=>{let[e,o]=cs(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Bc(h,o),n]},([,,e])=>{ns&&Hi(e,{mark:Bo,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:Bo,prepend:`queue`,attachTo:d,priority:-999};r=as(r,l);let i=Wi(e,t,r);i[Vo]=u,i.setAttribute(zo,n)})},Gc=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Kc(e){return e.notSplit=!0,e}Kc([`borderTop`,`borderBottom`]),Kc([`borderTop`]),Kc([`borderBottom`]),Kc([`borderLeft`,`borderRight`]),Kc([`borderLeft`]),Kc([`borderRight`]);function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qc(e)}function Jc(e){if(Array.isArray(e))return e}function Yc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Xc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zc(e,t){return Jc(e)||Yc(e,t)||To(e,t)||Xc()}function Qc(e,t){if(qc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $c(e){var t=Qc(e,`string`);return qc(t)==`symbol`?t:t+``}function el(e,t,n){return(t=$c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tl(Object(n),!0).forEach(function(t){el(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rl(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function il(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,$c(r.key),r)}}function al(e,t,n){return t&&il(e.prototype,t),n&&il(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ol(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sl(e,t)}function cl(e,t){if(typeof t!=`function`&&t!==null)throw 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&&sl(e,t)}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ll(e)}function ul(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ul=function(){return!!e})()}function dl(e,t){if(t&&(qc(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ol(e)}function fl(e){var t=ul();return function(){var n,r=ll(e);if(t){var i=ll(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dl(this,n)}}var pl=al(function e(){rl(this,e)}),ml=`CALC_UNIT`,hl=new RegExp(ml,`g`);function gl(e){return typeof e==`number`?`${e}${ml}`:e}var _l=function(e){cl(n,e);var t=fl(n);function n(e,r){var i;rl(this,n),i=t.call(this),el(ol(i),`result`,``),el(ol(i),`unitlessCssVar`,void 0),el(ol(i),`lowPriority`,void 0);var a=qc(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=gl(e):a===`string`&&(i.result=e),i}return al(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${gl(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${gl(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(hl,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(pl),vl=function(e){cl(n,e);var t=fl(n);function n(e){var r;return rl(this,n),r=t.call(this),el(ol(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return al(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(pl),yl=function(e,t){var n=e===`css`?_l:vl;return function(e){return new n(e,t)}},bl=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function xl(e,t,n,r){var i=nl({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=Zc(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=nl(nl({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Sl=typeof CSSINJS_STATISTIC<`u`,Cl=!0;function wl(){var e=[...arguments];if(!Sl)return Object.assign.apply(Object,[{}].concat(e));Cl=!1;var t={};return e.forEach(function(e){qc(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),Cl=!0,t}var Tl={};function El(){}var Dl=function(e){var t,n=e,r=El;return Sl&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(Cl){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){Tl[e]={global:Array.from(t),component:nl(nl({},Tl[e]?.component),n)}}),{token:n,keys:t,flush:r}};function Ol(e,t,n){return typeof n==`function`?n(wl(t,t[e]??{})):n??{}}function kl(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return $(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return $(e)}).join(`,`)})`}}}var Al=6e5,jl=new(function(){function e(){rl(this,e),el(this,`map`,new Map),el(this,`objectIDMap`,new WeakMap),el(this,`nextID`,0),el(this,`lastAccessBeat`,new Map),el(this,`accessBeat`,0)}return al(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&qc(e)===`object`?`obj_${t.getObjectID(e)}`:`${qc(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>Al&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function Ml(e,t){return x.useMemo(function(){var n=jl.get(t);if(n)return n;var r=e();return jl.set(t,r),r},t)}var Nl=function(){return{}};function Pl(e){var t=e.useCSP,n=t===void 0?Nl:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=nl(nl({},typeof s==`function`?s(e):{}),{},el({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=nl(nl({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(Do(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return Wc({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=Ol(e,d,t),r=xl(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Zc(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,v=u.cssVar,y=u.zeroRuntime;if((0,x.useMemo)(function(){return y},[]))return g;var b=i(),S=b.rootPrefixCls,C=b.iconPrefixCls,w=n(),T=`css`,E=Ml(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(os(t,v.prefix)),e.add(os(t,bl(d,v.prefix)))}),yl(T,e)},[T,d,v?.prefix]),D=kl(T),O=D.max,k=D.min,A={theme:m,token:_,hashId:g,nonce:function(){return w.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&Hc(nl(nl({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(_,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),Hc(nl(nl({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=Dl(_),r=n.token,i=n.flush,a=Ol(d,h,c),u=`.${e}`,f=xl(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&qc(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${os(e,bl(d,v.prefix))})`});var p=wl(r,{componentCls:u,prefixCls:e,iconCls:`.${C}`,antCls:`.${S}`,calc:E,max:O,min:k},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:S,iconPrefixCls:C});i(d,f);var y=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:y,m]}),g}}function d(e,t,n){var r=u(e,t,n,nl({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var Fl=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function Il(e){return(e+8)/e}function Ll(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:Il(e)}))}var Rl=`6.6.1`,zl={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`},Bl={...zl,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
41
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
42
|
+
'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,focusOutline:!0,motion:!0},Vl={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`},Hl=Math.round;function Ul(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return r[3]=n[3]?n[3].includes(`%`)?r[3]/100:r[3]:1,r}var Wl=(e,t,n)=>n===0?e:e/100;function Gl(e,t){let n=t||255;return e>n?n:e<0?0:e}var Kl=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t){if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=Vl[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=Gl(t.r),this.g=Gl(t.g),this.b=Gl(t.b),this.a=typeof t.a==`number`?Gl(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();this._h=e===0?0:Hl(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(this._hsv_s===void 0){let e=this.getMax()-this.getMin();this._hsv_s=e===0?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(this._hsl_s===void 0){let e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:Hl(i(`r`)),g:Hl(i(`g`)),b:Hl(i(`b`)),a:Hl(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Hl((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=Hl(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=Hl(this.getHSLSaturation()*100),n=Hl(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=Gl(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=Hl(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=Hl((a+d)*255),this.g=Hl((o+d)*255),this.b=Hl((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=Hl(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=Hl(n*(1-t)*255),u=Hl(n*(1-t*c)*255),d=Hl(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u}}fromHsvString(e){let t=Ul(e,Wl);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=Ul(e,Wl);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=Ul(e,(e,t)=>t.includes(`%`)?Hl(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},ql=2,Jl=.16,Yl=.05,Xl=.05,Zl=.15,Ql=5,$l=4,eu=[{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 tu(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ql*t:Math.round(e.h)+ql*t:n?Math.round(e.h)+ql*t:Math.round(e.h)-ql*t,r<0?r+=360:r>=360&&(r-=360),r}function nu(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-Jl*t:t===$l?e.s+Jl:e.s+Yl*t,r>1&&(r=1),n&&t===Ql&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ru(e,t,n){let r;return r=n?e.v+Xl*t:e.v-Zl*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function iu(e,t={}){let n=[],r=new Kl(e),i=r.toHsv();for(let e=Ql;e>0;--e){let t=new Kl({h:tu(i,e,!0),s:nu(i,e,!0),v:ru(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=$l;e+=1){let t=new Kl({h:tu(i,e),s:nu(i,e),v:ru(i,e)});n.push(t)}return t.theme===`dark`?eu.map(({index:e,amount:r})=>new Kl(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var au={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`},ou=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];ou.primary=ou[5];var su=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];su.primary=su[5];var cu=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];cu.primary=cu[5];var lu=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];lu.primary=lu[5];var uu=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];uu.primary=uu[5];var du=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];du.primary=du[5];var fu=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];fu.primary=fu[5];var pu=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];pu.primary=pu[5];var mu=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];mu.primary=mu[5];var hu=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];hu.primary=hu[5];var gu=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];gu.primary=gu[5];var _u=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];_u.primary=_u[5];var vu=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];vu.primary=vu[5];var yu={red:ou,volcano:su,orange:cu,gold:lu,yellow:uu,lime:du,green:fu,cyan:pu,blue:mu,geekblue:hu,purple:gu,magenta:_u,grey:vu},bu=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];bu.primary=bu[5];var xu=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];xu.primary=xu[5];var Su=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];Su.primary=Su[5];var Cu=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];Cu.primary=Cu[5];var wu=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];wu.primary=wu[5];var Tu=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];Tu.primary=Tu[5];var Eu=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];Eu.primary=Eu[5];var Du=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Du.primary=Du[5];var Ou=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];Ou.primary=Ou[5];var ku=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];ku.primary=ku[5];var Au=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Au.primary=Au[5];var ju=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];ju.primary=ju[5];var Mu=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];Mu.primary=Mu[5];function Nu(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new Kl(p[1]).mix(new Kl(p[3]),50).toHexString(),v={};return Fl.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new Kl(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var Pu=e=>{let t=e,n=e,r=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Fu(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...Pu(r)}}var Iu=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Lu=e=>{let t=Ll(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ru(e){let{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)}}var zu=(e,t)=>new Kl(e).setA(t).toRgbString(),Bu=(e,t)=>new Kl(e).darken(t).toHexString(),Vu=e=>{let t=iu(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]}},Hu=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:zu(i,.88),colorTextSecondary:zu(i,.65),colorTextTertiary:zu(i,.45),colorTextQuaternary:zu(i,.25),colorFill:zu(i,.15),colorFillSecondary:zu(i,.06),colorFillTertiary:zu(i,.04),colorFillQuaternary:zu(i,.02),colorBgSolid:zu(i,1),colorBgSolidHover:zu(i,.75),colorBgSolidActive:zu(i,.95),colorBgLayout:Bu(r,4),colorBgContainer:Bu(r,0),colorBgElevated:Bu(r,0),colorBgSpotlight:zu(i,.85),colorBgBlur:`transparent`,colorBorder:Bu(r,15),colorBorderDisabled:Bu(r,15),colorBorderSecondary:Bu(r,6)}};function Uu(e){au.pink=au.magenta,yu.pink=yu.magenta;let t=Object.keys(zl).map(t=>{let n=e[t]===au[t]?yu[t]:iu(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...Nu(e,{generateColorPalettes:Vu,generateNeutralColorPalettes:Hu}),...Lu(e.fontSize),...Ru(e),...Iu(e),...Fu(e)}}var Wu=Yo(Uu),Gu={token:Bl,override:{override:Bl},hashed:!0},Ku=x.createContext(Gu);function qu(e){return e>=0&&e<=255}function Ju(e,t){let{r:n,g:r,b:i,a}=new Kl(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new Kl(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(qu(t)&&qu(a)&&qu(l))return new Kl({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new Kl({r:n,g:r,b:i,a:1}).toRgbString()}function Yu(e){let{override:t,...n}=e,r={...t};Object.keys(Bl).forEach(e=>{delete r[e]});let i={...n,...r},a=new Kl(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ju(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ju(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ju(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.focusOutline===!1?0:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ju(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
43
|
+
0 6px 16px 0 ${s(.08)},
|
|
44
|
+
0 3px 6px -4px ${s(.12)},
|
|
45
|
+
0 9px 28px 8px ${s(.05)}
|
|
46
|
+
`,boxShadowSecondary:`
|
|
47
|
+
0 6px 16px 0 ${s(.08)},
|
|
48
|
+
0 3px 6px -4px ${s(.12)},
|
|
49
|
+
0 9px 28px 8px ${s(.05)}
|
|
50
|
+
`,boxShadowTertiary:`
|
|
51
|
+
0 1px 2px 0 ${s(.05)},
|
|
52
|
+
0 1px 6px -1px ${s(.03)},
|
|
53
|
+
0 2px 4px 0 ${s(.03)}
|
|
54
|
+
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:c,screenXLMin:c,screenXLMax:1599,screenXXL:l,screenXXLMin:l,screenXXLMax:1919,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:`
|
|
55
|
+
0 1px 2px -2px ${s(.16)},
|
|
56
|
+
0 3px 6px 0 ${s(.12)},
|
|
57
|
+
0 5px 12px 4px ${s(.09)}
|
|
58
|
+
`,boxShadowDrawerRight:`
|
|
59
|
+
-6px 0 16px 0 ${s(.08)},
|
|
60
|
+
-3px 0 6px -4px ${s(.12)},
|
|
61
|
+
-9px 0 28px 8px ${s(.05)}
|
|
62
|
+
`,boxShadowDrawerLeft:`
|
|
63
|
+
6px 0 16px 0 ${s(.08)},
|
|
64
|
+
3px 0 6px -4px ${s(.12)},
|
|
65
|
+
9px 0 28px 8px ${s(.05)}
|
|
66
|
+
`,boxShadowDrawerUp:`
|
|
67
|
+
0 6px 16px 0 ${s(.08)},
|
|
68
|
+
0 3px 6px -4px ${s(.12)},
|
|
69
|
+
0 9px 28px 8px ${s(.05)}
|
|
70
|
+
`,boxShadowDrawerDown:`
|
|
71
|
+
0 -6px 16px 0 ${s(.08)},
|
|
72
|
+
0 -3px 6px -4px ${s(.12)},
|
|
73
|
+
0 -9px 28px 8px ${s(.05)}
|
|
74
|
+
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var Xu={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},Zu={motionBase:!0,motionUnit:!0},Qu={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},$u=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=Yu(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=$u({...o,...r},{override:r},n)),o[e]=i}),o};function ed(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=x.useContext(Ku),{csp:o,getPrefixCls:s}=x.useContext(Ao),c={prefix:i?.prefix??s(),key:i?.key??`css-var-root`},l=`${Rl}-${t||``}`,u=n||Wu,[d,f,p]=bs(u,[Bl,e],{salt:l,override:r,getComputedToken:$u,cssVar:{...c,unitless:Xu,ignore:Zu,preserve:Qu},nonce:o?.nonce});return[u,p,t?f:``,d,c,!!a]}var td={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},nd=(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}),rd=()=>({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`,verticalAlign:`inherit`}}),id=new Gc(`loadingCircle`,{"100%":{transform:`rotate(360deg)`}}),ad=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),od=(e,t)=>({outline:`${$(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),sd=(e,t)=>({"&:focus-visible":od(e,t)}),cd=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},...sd(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),ld=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},ud=e=>({[`.${e}`]:{...rd(),"&::before":{display:`none`},"&[tabindex]":{cursor:`pointer`}},[`.${e} .${e}-icon`]:{display:`block`},[`.${e}-spin`]:{animationName:id,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}}),dd=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...sd(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:fd,genComponentStyleHook:pd,genSubStyleComponent:md}=Pl({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,x.useContext)(Ao);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=ed();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,x.useContext)(Ao);return e??{}},getResetStyles:(e,t)=>{let n=cd(e);return[n,{"&":n},ud(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:ld,getCompUnitless:()=>Xu}),hd=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function gd(e,t){return Fl.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var _d=(e,t)=>{let[n,r]=ed();return Hc({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>ud(e))},vd=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}})),yd=(0,x.createContext)({}),bd=`data-rc-order`,xd=`data-rc-priority`,Sd=`rc-util-key`,Cd=new Map;function wd(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Td(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function Ed({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:Sd}function Dd(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Od(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function kd(e){return Array.from((Cd.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Ad(e,t={}){if(!wd())return null;let{csp:n,prepend:r,priority:i=0}=t,a=Od(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(bd,a),o&&i&&s.setAttribute(xd,`${i}`),n?.nonce&&(s.nonce=n.nonce),s.innerHTML=e;let c=Dd(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||kd(c)).filter(e=>{if(![`prepend`,`prependQueue`].includes(e.getAttribute(bd)))return!1;let t=Number(e.getAttribute(xd)||0);return i>=t});if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function jd(e,t={}){let{styles:n}=t;return n||=kd(Dd(t)),n.find(n=>n.getAttribute(Ed(t))===e)}function Md(e,t){let n=Cd.get(e);if(!n||!Td(document,n)){let n=Ad(``,t);if(!n)return;let{parentNode:r}=n;Cd.set(e,r),e.removeChild(n)}}function Nd(e,t,n={}){if(!wd())return null;let r=Dd(n),i=kd(r),a={...n,styles:i};Md(r,a);let o=jd(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp.nonce&&(o.nonce=a.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=Ad(e,a);return s?.setAttribute(Ed(a),t),s}function Pd(e){return e?.getRootNode?.()}function Fd(e){let t=Pd(e);return typeof ShadowRoot<`u`&&t instanceof ShadowRoot?t:null}var Id={};function Ld(e,t){e||Id[t]||(Id[t]=!0)}function Rd(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function zd(e,t){Ld(e,`[@ant-design/icons] ${t}`)}function Bd(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function Vd(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[Rd(n)]=r}return t},{})}function Hd(e,t,n){return n?x.createElement(e.tag,{key:t,...Vd(e.attrs),...n},(e.children||[]).map((n,r)=>Hd(n,`${t}-${e.tag}-${r}`))):x.createElement(e.tag,{key:t,...Vd(e.attrs)},(e.children||[]).map((n,r)=>Hd(n,`${t}-${e.tag}-${r}`)))}var Ud=`
|
|
75
|
+
.anticon {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
color: inherit;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
line-height: 0;
|
|
81
|
+
text-align: center;
|
|
82
|
+
text-transform: none;
|
|
83
|
+
vertical-align: -0.125em;
|
|
84
|
+
text-rendering: optimizeLegibility;
|
|
85
|
+
-webkit-font-smoothing: antialiased;
|
|
86
|
+
-moz-osx-font-smoothing: grayscale;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.anticon > * {
|
|
90
|
+
line-height: 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.anticon svg {
|
|
94
|
+
display: inline-block;
|
|
95
|
+
vertical-align: inherit;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.anticon::before {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.anticon .anticon-icon {
|
|
103
|
+
display: block;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.anticon[tabindex] {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.anticon-spin {
|
|
111
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
112
|
+
animation: loadingCircle 1s infinite linear;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@-webkit-keyframes loadingCircle {
|
|
116
|
+
100% {
|
|
117
|
+
-webkit-transform: rotate(360deg);
|
|
118
|
+
transform: rotate(360deg);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes loadingCircle {
|
|
123
|
+
100% {
|
|
124
|
+
-webkit-transform: rotate(360deg);
|
|
125
|
+
transform: rotate(360deg);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
`,Wd=e=>{let{csp:t,prefixCls:n,layer:r,zeroRuntime:i}=(0,x.useContext)(yd),a=Ud;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {\n${a}\n}`),(0,x.useEffect)(()=>{if(i)return;let n=e.current,o=Fd(n);Nd(a,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:o})},[])},Gd=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o,...s}=e,c=x.useRef(null);if(Wd(c),zd(Bd(t),`icon should be icon definiton, but got ${t}`),!Bd(t))return null;let l=t;return Hd(l.icon,`svg-${l.name}`,{className:n,onClick:r,style:i,"data-icon":l.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,...s,ref:c})};Gd.displayName=`IconReact`;function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kd.apply(this,arguments)}var qd=x.forwardRef((e,t)=>{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c,...l}=e,{prefixCls:u=`anticon`,rootClassName:d}=x.useContext(yd),f=Q(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let m=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0;return x.createElement(`span`,Kd({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),x.createElement(Gd,{icon:r,style:m}))}),Jd=c(vd());function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yd.apply(this,arguments)}var Xd=x.forwardRef((e,t)=>x.createElement(qd,Yd({},e,{ref:t,icon:Jd.default}))),Zd=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qd.apply(this,arguments)}var $d=x.forwardRef((e,t)=>x.createElement(qd,Qd({},e,{ref:t,icon:Zd.default}))),ef=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(this,arguments)}var nf=x.forwardRef((e,t)=>x.createElement(qd,tf({},e,{ref:t,icon:ef.default}))),rf=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}var of=x.forwardRef((e,t)=>x.createElement(qd,af({},e,{ref:t,icon:rf.default}))),sf=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cf.apply(this,arguments)}var lf=x.forwardRef((e,t)=>x.createElement(qd,cf({},e,{ref:t,icon:sf.default}))),uf=x.createContext({}),df=e=>{let{children:t,...n}=e,r=x.useMemo(()=>({motion:n.motion}),[n.motion]);return x.createElement(uf.Provider,{value:r},t)},ff=`none`,pf=`appear`,mf=`enter`,hf=`leave`,gf=`none`,_f=`prepare`,vf=`start`,yf=`active`,bf=`prepared`;function xf(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Sf(e,t){let n={animationend:xf(`Animation`,`AnimationEnd`),transitionend:xf(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var Cf=Sf(Xr(),typeof window<`u`?window:{}),wf={};Xr()&&({style:wf}=document.createElement(`div`));var Tf={};function Ef(e){if(Tf[e])return Tf[e];let t=Cf[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){let r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in wf)return Tf[e]=t[r],Tf[e]}}return``}var Df=Ef(`animationend`),Of=Ef(`transitionend`),kf=!!(Df&&Of),Af=Df||`animationend`,jf=Of||`transitionend`;function Mf(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var Nf=(e=>{let t=(0,x.useRef)();function n(t){t&&(t.removeEventListener(jf,e),t.removeEventListener(Af,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(jf,e),r.addEventListener(Af,e),t.current=r)}return x.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Pf=Xr()?x.useLayoutEffect:x.useEffect,Ff=(()=>{let e=x.useRef(null);function t(){si.cancel(e.current)}function n(r,i=2){t();let a=si(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return x.useEffect(()=>()=>{t()},[]),[n,t]}),If=[_f,vf,yf,`end`],Lf=[_f,bf];function Rf(e){return e===`active`||e===`end`}var zf=((e,t,n)=>{let[r,i]=ei(gf),[a,o]=Ff();function s(){i(_f,!0)}let c=t?Lf:If;return Pf(()=>{if(r!==`none`&&r!==`end`){let e=c.indexOf(r),t=c[e+1],o=n(r);o===!1?i(t,!0):t&&a(e=>{function n(){e.isCanceled()||i(t,!0)}o===!0?n():Promise.resolve(o).then(n)})}},[e,r]),x.useEffect(()=>()=>{o()},[]),[s,r]});function Bf(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:v,onLeaveEnd:y,onVisibleChanged:b}){let[S,C]=x.useState(),[w,T]=hi(ff),[E,D]=x.useState([null,null]),O=w(),k=(0,x.useRef)(!1),A=(0,x.useRef)(null);function j(){return n()}let M=(0,x.useRef)(!1);function N(){T(ff),D([null,null])}let P=Yr(e=>{let t=w();if(t===`none`)return;let n=j();if(e&&!e.deadline&&e.target!==n)return;let r=M.current,i;t===`appear`&&r?i=_?.(n,e):t===`enter`&&r?i=v?.(n,e):t===`leave`&&r&&(i=y?.(n,e)),r&&i!==!1&&N()}),[F]=Nf(P),I=e=>{switch(e){case pf:return{[_f]:c,[vf]:d,[yf]:m};case mf:return{[_f]:l,[vf]:f,[yf]:h};case hf:return{[_f]:u,[vf]:p,[yf]:g};default:return{}}},L=x.useMemo(()=>I(O),[O]),[R,z]=zf(O,!e,e=>{if(e===`prepare`){let e=L[_f];return e?e(j()):!1}return e in L&&D([L[e]?.(j(),null)||null,e]),e===`active`&&O!==`none`&&(F(j()),o>0&&(clearTimeout(A.current),A.current=setTimeout(()=>{P({deadline:!0})},o))),e===`prepared`&&N(),!0});M.current=Rf(z);let B=(0,x.useRef)(null);Pf(()=>{if(k.current&&B.current===t)return;C(t);let n=k.current;k.current=!0;let o;!n&&t&&i&&(o=pf),n&&t&&r&&(o=mf),(n&&!t&&a||!n&&s&&!t&&a)&&(o=hf);let c=I(o);o&&(e||c.prepare)?(T(o),R()):T(ff),B.current=t},[t]),(0,x.useEffect)(()=>{(O===`appear`&&!i||O===`enter`&&!r||O===`leave`&&!a)&&T(ff)},[i,r,a]),(0,x.useEffect)(()=>()=>{k.current=!1,clearTimeout(A.current)},[]);let V=x.useRef(!1);(0,x.useEffect)(()=>{S&&(V.current=!0),S!==void 0&&O===`none`&&((V.current||S)&&b?.(S),V.current=!0)},[S,O]);let H=E[0];L.prepare&&z===`start`&&(H={transition:`none`,...H});let U=E[1];return[w,z,H,S??t,!k.current&&O===`none`&&e&&i?`NONE`:z===`start`||z===`active`?U===z:!0]}function Vf(e){return e?.length<2}function Hf(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=x.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=x.useContext(uf),d=n(e,u),f=(0,x.useRef)();function p(){return Ki(f.current)}let[m,h,g,_,v]=Bf(d,r,p,e),y=m(),b=x.useRef(_);_&&(b.current=!0);let S=x.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==ff},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);x.useImperativeHandle(t,()=>S,[]);let C=x.useRef(0);v&&(C.current+=1);let w=x.useMemo(()=>{if(v===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(y===`none`)e=_?o({...t},f):!i&&b.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;h===`prepare`?n=`prepare`:Rf(h)?n=`active`:h===`start`&&(n=`start`);let r=Mf(s,`${y}-${n}`);e=o({...t,className:Q(Mf(s,y),{[r]:r&&n,[s]:typeof s==`string`}),style:g},f)}return e},[C.current]);if(Vf(o)&&ki(w)){let e=Ai(w);if(e!==f)return x.cloneElement(w,{ref:Ti(e,f)})}return w});return r.displayName=`CSSMotion`,r}var Uf=Hf(kf),Wf=`keep`,Gf=`remove`,Kf=`removed`;function qf(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function Jf(e=[]){return e.map(qf)}function Yf(e=[],t=[]){let n=[],r=0,i=t.length,a=Jf(e),o=Jf(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:Wf}),r+=1,t=!0;break}}t||n.push({...e,status:Gf})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=Wf)})}),n}function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xf.apply(this,arguments)}var Zf=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function Qf(e,t=Uf){class n extends x.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:Yf(t,Jf(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:Kf}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||x.Fragment,c={};return Zf.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,x.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return x.createElement(t,Xf({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),Vf(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return n}var $f=Qf(kf),ep=Uf,tp=e=>e!=null,np=e=>tp(e)&&e!==!1&&e!==``,rp=e=>typeof e==`number`&&!Number.isNaN(e),ip=e=>typeof e==`string`,ap=e=>typeof e==`object`&&!!e,op=e=>typeof e==`function`,sp=e=>tp(e)&&op(e.then),cp=e=>typeof e!=`object`&&!op(e)||e===null,lp=e=>ap(e)&&`propertyName`in e&&ip(e.propertyName),up=e=>tp(e)?e===e.window:!1,dp=e=>tp(e)?e instanceof Document||e.constructor.name===`HTMLDocument`||e.nodeType===window.Node.DOCUMENT_NODE:!1,fp=e=>tp(e)?typeof HTMLElement<`u`&&e instanceof HTMLElement:!1,pp=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=pp(n[e],t[e])}),n},mp=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i){if(ap(a))t[r]=mp(i,t[r],a);else{let{_default:e}=i;e&&(t[r]=t[r]||{},t[r][e]=Q(t[r][e],a))}}else t[r]=Q(t[r],a)}),t),{}),hp=(e,...t)=>x.useMemo(()=>mp.apply(void 0,[e].concat(t)),[e].concat(t)),gp=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),_p=(...e)=>x.useMemo(()=>gp.apply(void 0,e),[].concat(e)),vp=(e,t=`root`)=>x.useMemo(()=>e?{[t]:e}:void 0,[e,t]),yp=(e,t)=>op(e)?e(t):e,bp=(e,t,n,r)=>{let i=e.map(e=>e?yp(e,n):void 0),a=t.map(e=>e?yp(e,n):void 0),o=hp.apply(void 0,[r].concat(Do(i))),s=_p.apply(void 0,Do(a));return x.useMemo(()=>r?[pp(o,r),pp(s,r)]:[o,s],[o,s,r])},xp=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),Sp=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,motionEaseInOutCirc:c,borderRadius:l,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m,lineWidth:h,lineType:g,colorSuccessBorder:_,colorWarningBorder:v,colorErrorBorder:y,colorInfoBorder:b}=e;return{[t]:{...nd(e),position:`relative`,display:`flex`,alignItems:`center`,padding:m,wordWrap:`break-word`,borderRadius:l,borderWidth:$(h),borderStyle:g,[`&${t}-success`]:{borderColor:_},[`&${t}-info`]:{borderColor:b},[`&${t}-warning`]:{borderColor:v},[`&${t}-error`]:{borderColor:y},[`&${t}-filled`]:{borderColor:`transparent`},[`&${t}-rtl`]:{direction:`rtl`},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-title":{color:f},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:[`max-height`,`opacity`,`padding-top`,`padding-bottom`,`margin-bottom`].map(e=>`${e} ${n} ${c}`).join(`, `)},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:`flex-start`,padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-title`]:{display:`block`,marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:`block`,color:d}},[`&${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}}},Cp=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:s,colorInfo:c,colorInfoBg:l}=e;return{[t]:{"&-success":xp(r,n,t),"&-info":xp(l,c,t),"&-warning":xp(a,i,t),"&-error":{...xp(s,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},wp=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:$(a),backgroundColor:`transparent`,border:`none`,cursor:`pointer`,...sd(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Tp=fd(`Alert`,e=>[Sp(e),Cp(e),wp(e)],e=>({borderRadius:e.borderRadiusLG,withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),Ep=e=>{let{icon:t,type:n,className:r,style:i,successIcon:a,infoIcon:o,warningIcon:s,errorIcon:c}=e,l={success:a??x.createElement(Xd,null),info:o??x.createElement(lf,null),error:c??x.createElement($d,null),warning:s??x.createElement(of,null)};return x.createElement(`span`,{className:r,style:i},t??l[n])},Dp=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a,className:o,style:s}=e,c=r===!0||r===void 0?x.createElement(nf,null):r;return t?x.createElement(`button`,{type:`button`,onClick:i,className:Q(`${n}-close-icon`,o),tabIndex:0,style:s,...a},c):null},Op=x.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:i,title:a,banner:o,className:s,rootClassName:c,style:l,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:m,closable:h,closeText:g,closeIcon:_,action:v,id:y,styles:b,classNames:S,...C}=e,w=a??i,[T,E]=x.useState(!1),D=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:D.current}));let{getPrefixCls:O,direction:k,variant:A,closable:j,closeIcon:M,className:N,style:P,classNames:F,styles:I,successIcon:L,infoIcon:R,warningIcon:z,errorIcon:B}=No(`alert`),V=O(`alert`,r),[H,U]=Tp(V),{onClose:W,afterClose:ee}=ap(h)?h:{},G=t=>{E(!0),(W??e.onClose)?.(t)},K=x.useMemo(()=>e.type===void 0?o?`warning`:`info`:e.type,[e.type,o]),q=e.variant??A??`outlined`,J=x.useMemo(()=>ap(h)||g?!0:typeof h==`boolean`?h:_!==!1&&tp(_)?!0:!!j,[g,_,h,j]),te=o&&m===void 0?!0:m,Y={...e,prefixCls:V,variant:q,type:K,showIcon:te,closable:J},ne=vp(P),X=vp(l),[re,ie]=bp([F,S],[I,ne,b,X],{props:Y}),ae=Q(V,`${V}-${K}`,`${V}-${q}`,{[`${V}-with-description`]:!!n,[`${V}-no-icon`]:!te,[`${V}-banner`]:!!o,[`${V}-rtl`]:k===`rtl`},N,s,c,re.root,U,H),oe=Ra(C,{aria:!0,data:!0}),se=x.useMemo(()=>ap(h)&&h.closeIcon?h.closeIcon:g||(_===void 0?ap(j)&&j.closeIcon?j.closeIcon:M:_),[_,h,j,g,M]),ce=x.useMemo(()=>{let e=h??j;return ap(e)?Ra(e,{data:!0,aria:!0}):{}},[h,j]);return x.createElement(ep,{visible:!T,motionName:`${V}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??p},({className:t,style:r},i)=>x.createElement(`div`,{id:y,ref:Ti(D,i),"data-show":!T,className:Q(ae,t),style:{...ie.root,...r},onMouseEnter:u,onMouseLeave:d,onClick:f,role:`alert`,...oe},te?x.createElement(Ep,{className:Q(`${V}-icon`,re.icon),style:ie.icon,description:n,icon:e.icon,prefixCls:V,type:K,successIcon:L,infoIcon:R,warningIcon:z,errorIcon:B}):null,x.createElement(`div`,{className:Q(`${V}-section`,re.section),style:ie.section},w?x.createElement(`div`,{className:Q(`${V}-title`,re.title),style:ie.title},w):null,n?x.createElement(`div`,{className:Q(`${V}-description`,re.description),style:ie.description},n):null),v?x.createElement(`div`,{className:Q(`${V}-actions`,re.actions),style:ie.actions},v):null,x.createElement(Dp,{className:re.close,style:ie.close,isClosable:J,prefixCls:V,closeIcon:se,handleClose:G,ariaProps:ce})))});function kp(e,t,n){return t=ll(t),dl(e,ul()?Reflect.construct(t,n||[],ll(e).constructor):t.apply(e,n))}var Ap=function(e){function t(){var e;return rl(this,t),e=kp(this,t,arguments),e.state={error:void 0,info:{}},e}return cl(t,e),al(t,[{key:`componentDidCatch`,value:function(e,t){this.setState({error:e,info:t})}},{key:`render`,value:function(){let{message:e,title:t,description:n,id:r,children:i}=this.props,{error:a,info:o}=this.state,s=t??e,c=o?.componentStack||null,l=tp(s)?s:a?.toString(),u=tp(n)?n:c;return a?x.createElement(Op,{id:r,type:`error`,title:l,description:x.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}(x.PureComponent),jp=Op;jp.ErrorBoundary=Ap;var Mp=e=>typeof e==`object`&&!!e&&e.nodeType===1,Np=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,Pp=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Np(n.overflowY,t)||Np(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Fp=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,Ip=e=>e.parentElement??(e.getRootNode().host||null),Lp=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Mp(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Mp(u)&&s(u);){if(u=Ip(u),u===c){l.push(u);break}u!=null&&u===document.body&&Pp(u)&&!Pp(document.documentElement)||u!=null&&Pp(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!Pp(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?Fp(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:Fp(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?Fp(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:Fp(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},Rp=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function zp(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(Lp(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of Lp(e,Rp(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Bp=e=>{if(typeof window>`u`)return 0;let t=0;return up(e)?t=e.pageYOffset:dp(e)?t=e.documentElement.scrollTop:(fp(e)||e)&&(t=e.scrollTop),e&&!up(e)&&!rp(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function Vp(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var Hp=(e,t={})=>{let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Bp(a),s=e=>{up(a)?a.scrollTo(window.pageXOffset,e):dp(a)?a.documentElement.scrollTop=e:a.scrollTop=e};if(i<=0)return s(e),op(r)&&r(),()=>{};let c=Date.now(),l,u=()=>{let t=Date.now()-c,n=Vp(t>i?i:t,o,e,i);s(n),t<i?l=si(u):op(r)&&r()};return l=si(u),()=>{si.cancel(l)}},Up=e=>`${e}-css-var`,Wp=(0,x.createContext)(void 0),Gp={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`},Kp={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0,locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,week:`Week`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,previousMonth:`Previous month`,nextMonth:`Next month`,previousYear:`Last year`,nextYear:`Next year`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`},qp={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Jp={lang:{placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`],...Kp},timePickerLocale:{...qp}},Yp=Jp,Xp="${label} is not a valid ${type}",Zp={locale:`en`,Pagination:Gp,DatePicker:Jp,TimePicker:qp,Calendar:Yp,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`,show:`Show`,hide:`Hide`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckAll:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,deselectAll:`Deselect all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`,collapse:`Collapse`},Carousel:{prevSlide:`Previous slide`,nextSlide:`Next slide`},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:Xp,method:Xp,array:Xp,object:Xp,number:Xp,date:Xp,boolean:Xp,integer:Xp,float:Xp,regexp:Xp,email:Xp,url:Xp,hex:Xp},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}},Qp={...Zp.Modal},$p=[],em=()=>$p.reduce((e,t)=>({...e,...t}),Zp.Modal);function tm(e){if(e){let t={...e};return $p.push(t),Qp=em(),()=>{$p=$p.filter(e=>e!==t),Qp=em()}}Qp={...Zp.Modal}}function nm(){return Qp}var rm=(0,x.createContext)(void 0),im=(e,t)=>{let n=x.useContext(rm);return[x.useMemo(()=>{let r=t||Zp[e],i=n?.[e]??{};return{...op(r)?r():r,...i||{}}},[e,t,n]),x.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?Zp.locale:e},[n])]},am=`internalMark`,om=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;x.useEffect(()=>tm(t?.Modal),[t]);let i=x.useMemo(()=>({...t,exist:!0}),[t]);return x.createElement(rm.Provider,{value:i},n)},sm=x.createContext(null),cm=!1;function lm(e){return typeof e==`boolean`&&(cm=e),cm}var um=[];function dm(e,t){let[n]=x.useState(()=>Xr()?document.createElement(`div`):null),r=x.useRef(!1),i=x.useContext(sm),[a,o]=x.useState(um),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return Qr(()=>(e?i?i(c):c():l(),l),[e]),Qr(()=>{a.length&&(a.forEach(e=>e()),o(um))},[a]),[n,s]}function fm(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pm=`rc-util-locker-${Date.now()}`,mm=0;function hm(e){let t=!!e,[n]=x.useState(()=>(mm+=1,`${pm}_${mm}`));Qr(()=>{if(t){let e=ya(document.body).width;Wi(`
|
|
129
|
+
html body {
|
|
130
|
+
overflow-y: hidden;
|
|
131
|
+
${fm()?`width: calc(100% - ${e}px);`:``}
|
|
132
|
+
}`,n)}else Hi(n);return()=>{Hi(n)}},[t,n])}var gm=[],_m=200,vm=0,ym=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-vm<_m)return;let t=gm.length;for(let n=t-1;n>=0;--n)gm[n].onEsc({top:n===t-1,event:e})}},bm=()=>{vm=Date.now()};function xm(){window.addEventListener(`keydown`,ym),window.addEventListener(`compositionend`,bm)}function Sm(){gm.length===0&&(window.removeEventListener(`keydown`,ym),window.removeEventListener(`compositionend`,bm))}function Cm(e,t){let n=pi(),r=Yr(t),i=()=>{gm.find(e=>e.id===n)||gm.push({id:n,onEsc:r})},a=()=>{gm=gm.filter(e=>e.id!==n)};(0,x.useMemo)(()=>{e?i():e||a()},[e]),(0,x.useEffect)(()=>{if(e)return i(),xm(),()=>{a(),Sm()}},[e])}var wm=e=>e===!1?!1:!Xr()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,Tm=x.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=x.useState(n),d=l||n;x.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=x.useState(()=>wm(i));x.useEffect(()=>{let e=wm(i);p(()=>e??null)});let[m,h]=dm(d&&!f,a),g=f??m;hm(r&&n&&Xr()&&(g===m||g===document.body)),Cm(n,c);let _=null;s&&Di(s)&&t&&(_=Ai(s));let v=Ei(_,t);if(!d||!Xr()||f===void 0)return null;let y=g===!1||lm(),b=s;return t&&(b=x.cloneElement(s,{ref:v})),x.createElement(sm.Provider,{value:h},y?b:(0,$a.createPortal)(b,g))});function Em(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=x.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return x.createElement(`div`,{ref:u,className:Q(`${t}-arrow`,a),style:{...d,...s}},o)}function Dm(){return Dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dm.apply(this,arguments)}function Om(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?x.createElement(ep,Dm({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>x.createElement(`div`,{style:{zIndex:r},className:Q(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var km=x.memo(({children:e})=>e,(e,t)=>t.cache);function Am(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(this,arguments)}var Mm=x.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:v,mobile:y,forceRender:b,getPopupContainer:S,autoDestroy:C,portal:w,children:T,zIndex:E,onMouseEnter:D,onMouseLeave:O,onPointerEnter:k,onPointerDownCapture:A,ready:j,offsetX:M,offsetY:N,offsetR:P,offsetB:F,onAlign:I,onPrepare:L,onResize:R,stretch:z,targetWidth:B,targetHeight:V}=e,H=typeof r==`function`?r():r,U=l||u,W=!!y,[ee,G,K]=x.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[p,v,_],[y,p,v,_]),q=S?.length>0,[J,te]=x.useState(!S||!q);Qr(()=>{!J&&q&&s&&te(!0)},[J,q,s]);let Y=Yr((e,t)=>{R?.(e,t),I()}),ne=Am(W,j,l,g,P,F,M,N);if(!J)return null;let X={};return z&&(z.includes(`height`)&&V?X.height=V:z.includes(`minHeight`)&&V&&(X.minHeight=V),z.includes(`width`)&&B?X.width=B:z.includes(`minWidth`)&&B&&(X.minWidth=B)),l||(X.pointerEvents=`none`),x.createElement(w,{open:b||U,getContainer:S&&(()=>S(s)),autoDestroy:C,onEsc:n},x.createElement(Om,{prefixCls:a,open:l,zIndex:E,mask:ee,motion:G,mobile:W}),x.createElement(bo,{onResize:Y,disabled:!l},e=>x.createElement(ep,jm({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:`${a}-hidden`},K,{onAppearPrepare:L,onEnterPrepare:L,visible:l,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=Q(a,n,i,{[`${a}-mobile`]:W});return x.createElement(`div`,{ref:Ti(e,t,s),className:c,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...ne,...X,...r,boxSizing:`border-box`,zIndex:E,...o},onMouseEnter:D,onMouseLeave:O,onPointerEnter:k,onClick:f,onPointerDownCapture:A},m&&x.createElement(Em,{prefixCls:a,arrow:m,arrowPos:h,align:g}),x.createElement(km,{cache:!l&&!d},H))})),T)}),Nm=x.createContext(null),Pm=x.createContext(null);function Fm(e){return e?Array.isArray(e)?e:[e]:[]}function Im(e,t,n){return x.useMemo(()=>{let r=Fm(t??e),i=Fm(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}function Lm(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function Rm(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let o=a[n];if(Lm(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function zm(e){return e.ownerDocument.defaultView}function Bm(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=zm(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function Vm(e,t=1){return Number.isNaN(e)?t:e}function Hm(e){return Vm(parseFloat(e),0)}function Um(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=zm(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Hm(i),m=Hm(a),h=Hm(o),g=Hm(s),_=Vm(Math.round(c.width/d*1e3)/1e3),v=Vm(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=Hm(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function Wm(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Gm(e,t){let[n,r]=t||[];return[Wm(e.width,n),Wm(e.height,r)]}function Km(e=``){return[e[0],e[1]]}function qm(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function Jm(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Ym(e){return e.join(``)}function Xm(e,t,n,r,i,a,o,s){let[c,l]=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=x.useRef(0),d=x.useMemo(()=>!t||s?[]:Bm(t),[t]),f=x.useRef({});e||(f.current={});let p=Yr(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=zm(e),{position:u}=c.getComputedStyle(e),p=e.style.left,m=e.style.top,h=e.style.right,g=e.style.bottom,_=e.style.overflow,v=e.style.overflowX,y=e.style.overflowY,b={...i[r],...a},x=s.createElement(`div`);e.parentElement?.appendChild(x),x.style.left=`${e.offsetLeft}px`,x.style.top=`${e.offsetTop}px`,x.style.position=u,x.style.height=`${e.offsetHeight}px`,x.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let S;if(Array.isArray(n))S={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,S={x:e.x,y:e.y,width:e.width,height:e.height}}let C=e.getBoundingClientRect(),{height:w,width:T}=c.getComputedStyle(e);C.x=C.x??C.left,C.y=C.y??C.top;let{clientWidth:E,clientHeight:D,scrollWidth:O,scrollHeight:k,scrollTop:A,scrollLeft:j}=s.documentElement,M=C.height,N=C.width,P=S.height,F=S.width,I={left:0,top:0,right:E,bottom:D},L={left:-j,top:-A,right:O-j,bottom:k-A},{htmlRegion:R}=b,z=`visible`,B=`visibleFirst`;R!==`scroll`&&R!==B&&(R=z);let V=R===B,H=Um(L,d),U=Um(I,d),W=R===z?U:H,ee=V?U:W;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let G=e.getBoundingClientRect();e.style.left=p,e.style.top=m,e.style.right=h,e.style.bottom=g,e.style.overflow=_,e.style.overflowX=v,e.style.overflowY=y,e.parentElement?.removeChild(x);let K=Vm(Math.round(N/parseFloat(T)*1e3)/1e3),q=Vm(Math.round(M/parseFloat(w)*1e3)/1e3);if(K===0||q===0||Gi(n)&&!qi(n))return;let{offset:J,targetOffset:te}=b,[Y,ne]=Gm(C,J),[X,re]=Gm(S,te);S.x-=X,S.y-=re;let[ie,ae]=b.points||[],oe=Km(ae),se=Km(ie),ce=qm(S,oe),le=qm(C,se),ue={...b},de=[se,oe],fe=ce.x-le.x+Y,pe=ce.y-le.y+ne;function me(e,t,n=W){let r=C.x+e,i=C.y+t,a=r+N,o=i+M,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let he=me(fe,pe),ge=me(fe,pe,U),_e=qm(S,[`t`,`l`]),ve=qm(C,[`t`,`l`]),ye=qm(S,[`b`,`r`]),be=qm(C,[`b`,`r`]),{adjustX:xe,adjustY:Se,shiftX:Ce,shiftY:we}=b.overflow||{},Te=e=>typeof e==`boolean`?e:e>=0,Ee,De,Oe,ke;function Ae(){Ee=C.y+pe,De=Ee+M,Oe=C.x+fe,ke=Oe+N}Ae();let je=Te(Se),Me=se[0]===oe[0];if(je&&se[0]===`t`&&(De>ee.bottom||f.current.bt)){let e=pe;Me?e-=M-P:e=_e.y-be.y-ne;let t=me(fe,e),n=me(fe,e,U);t>he||t===he&&(!V||n>=ge)?(f.current.bt=!0,pe=e,ne=-ne,de=[Jm(de[0],0),Jm(de[1],0)]):f.current.bt=!1}if(je&&se[0]===`b`&&(Ee<ee.top||f.current.tb)){let e=pe;Me?e+=M-P:e=ye.y-ve.y-ne;let t=me(fe,e),n=me(fe,e,U);t>he||t===he&&(!V||n>=ge)?(f.current.tb=!0,pe=e,ne=-ne,de=[Jm(de[0],0),Jm(de[1],0)]):f.current.tb=!1}let Ne=Te(xe),Pe=se[1]===oe[1];if(Ne&&se[1]===`l`&&(ke>ee.right||f.current.rl)){let e=fe;Pe?e-=N-F:e=_e.x-be.x-Y;let t=me(e,pe),n=me(e,pe,U);t>he||t===he&&(!V||n>=ge)?(f.current.rl=!0,fe=e,Y=-Y,de=[Jm(de[0],1),Jm(de[1],1)]):f.current.rl=!1}if(Ne&&se[1]===`r`&&(Oe<ee.left||f.current.lr)){let e=fe;Pe?e+=N-F:e=ye.x-ve.x-Y;let t=me(e,pe),n=me(e,pe,U);t>he||t===he&&(!V||n>=ge)?(f.current.lr=!0,fe=e,Y=-Y,de=[Jm(de[0],1),Jm(de[1],1)]):f.current.lr=!1}ue.points=[Ym(de[0]),Ym(de[1])],Ae();let Fe=Ce===!0?0:Ce;typeof Fe==`number`&&(Oe<U.left&&(fe-=Oe-U.left-Y,S.x+F<U.left+Fe&&(fe+=S.x-U.left+F-Fe)),ke>U.right&&(fe-=ke-U.right-Y,S.x>U.right-Fe&&(fe+=S.x-U.right+Fe)));let Ie=we===!0?0:we;typeof Ie==`number`&&(Ee<U.top&&(pe-=Ee-U.top-ne,S.y+P<U.top+Ie&&(pe+=S.y-U.top+P-Ie)),De>U.bottom&&(pe-=De-U.bottom-ne,S.y>U.bottom-Ie&&(pe+=S.y-U.bottom+Ie)));let Le=C.x+fe,Re=Le+N,ze=C.y+pe,Be=ze+M,Ve=S.x,He=Ve+F,Ue=S.y,We=Ue+P,Ge=(Math.max(Le,Ve)+Math.min(Re,He))/2-Le,Ke=(Math.max(ze,Ue)+Math.min(Be,We))/2-ze;o?.(t,ue);let qe=G.right-C.x-(fe+C.width),Je=G.bottom-C.y-(pe+C.height);K===1&&(fe=Math.floor(fe),qe=Math.floor(qe)),q===1&&(pe=Math.floor(pe),Je=Math.floor(Je));let Ye={ready:!0,offsetX:fe/K,offsetY:pe/q,offsetR:qe/K,offsetB:Je/q,arrowX:Ge/K,arrowY:Ke/q,scaleX:K,scaleY:q,align:ue};l(Ye)}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>({...e,ready:!1}))};return Qr(h,[r]),Qr(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function Zm(){let e=x.useRef(null),t=()=>{e.current&&=(clearTimeout(e.current),null)};return x.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Qm(e,t,n,r,i){Qr(()=>{if(e&&t&&n){let e=t,a=n,o=Bm(e),s=Bm(a),c=zm(a),l=new Set([c,...o,...s]);function u(){r(),i()}return l.forEach(e=>{e.addEventListener(`scroll`,u,{passive:!0})}),c.addEventListener(`resize`,u,{passive:!0}),r(),()=>{l.forEach(e=>{e.removeEventListener(`scroll`,u),c.removeEventListener(`resize`,u)})}}},[e,t,n])}function $m(e,t,n,r,i,a,o,s){let c=x.useRef(e);c.current=e;let l=x.useRef(!1);x.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=zm(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=da(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function eh(){let[e,t]=x.useState(null),[n,r]=x.useState(!1),[i,a]=x.useState(!1),o=x.useRef(null);return[Yr(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,Yr(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function th(){return th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},th.apply(this,arguments)}var nh=e=>{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=x.useState(!1),v=Am(n,r,i,a,o,s,c,l),y=x.useRef(v);r&&(y.current=v);let b={};return d&&(b.width=d.width,b.height=d.height),x.createElement(ep,th({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=Q(h,e,p,{[`${h}-visible`]:g});return x.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...y.current,...b,...t,...m}})})},rh=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=eh(),o=x.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=x.useState(null),[l,u]=x.useState(null),d=x.useRef(null),f=Yr(e=>{d.current=e,Gi(e)&&s!==e&&c(e)}),p=x.useRef(null),m=Zm(),h=Yr((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),g=e=>{m(()=>{p.current?.()||n(!1)},e)},_=Yr(e=>{a(e)}),[v,y,b,S,C,w,T,,,E,D]=Xm(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),O=x.useMemo(()=>o?Q(Rm(o.builtinPlacements||{},o.prefixCls||``,E,!1),o.getPopupClassNameFromAlign?.(E)):``,[E,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),k=x.useMemo(()=>({show:h,hide:g}),[]);x.useEffect(()=>{D()},[o?.target]);let A=Yr(()=>(D(),Promise.resolve())),j=x.useRef({}),M=x.useContext(Nm),N=x.useMemo(()=>({registerSubPopup:(e,t)=>{j.current[e]=t,M?.registerSubPopup(e,t)}}),[M]),P=o?.prefixCls;return x.createElement(Pm.Provider,{value:k},e,o&&x.createElement(Nm.Provider,{value:N},x.createElement(Mm,{ref:f,portal:Tm,onEsc:o.onEsc,prefixCls:P,popup:o.popup,className:Q(o.popupClassName,O,`${P}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:v,offsetX:y,offsetY:b,offsetR:S,offsetB:C,onAlign:D,onPrepare:A,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:w,y:T},align:E,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},x.createElement(nh,{prefixCls:P,isMobile:!1,ready:v,open:r,align:E,offsetR:S,offsetB:C,offsetX:y,offsetY:b,arrowPos:{x:w,y:T},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:Q(o.uniqueContainerClassName,O),uniqueContainerStyle:o.uniqueContainerStyle}))))};function ih(e=Tm){return x.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,disabled:c=!1,popupVisible:l,defaultPopupVisible:u,onOpenChange:d,afterOpenChange:f,onPopupVisibleChange:p,afterPopupVisibleChange:m,mouseEnterDelay:h,mouseLeaveDelay:g=.1,focusDelay:_,blurDelay:v,mask:y,maskClosable:b=!0,getPopupContainer:S,forceRender:C,autoDestroy:w,popup:T,popupClassName:E,uniqueContainerClassName:D,uniqueContainerStyle:O,popupStyle:k,popupPlacement:A,builtinPlacements:j={},popupAlign:M,zIndex:N,stretch:P,getPopupClassNameFromAlign:F,fresh:I,unique:L,alignPoint:R,onPopupClick:z,onPopupAlign:B,arrow:V,popupMotion:H,maskMotion:U,mobile:W,...ee}=t,G=w||!1,K=l===void 0,q=!!W,J=x.useRef({}),te=x.useContext(Nm),Y=x.useMemo(()=>({registerSubPopup:(e,t)=>{J.current[e]=t,te?.registerSubPopup(e,t)}}),[te]),ne=x.useContext(Pm),X=pi(),[re,ie]=x.useState(null),ae=x.useRef(null),oe=Yr(e=>{ae.current=e,Gi(e)&&re!==e&&ie(e),te?.registerSubPopup(X,e)}),[se,ce]=x.useState(null),le=x.useRef(null),ue=Yr(e=>{let t=Ki(e);Gi(t)&&se!==t&&(ce(t),le.current=t)}),de={},fe=Yr(e=>{let t=se;return t?.contains(e)||da(t)?.host===e||e===t||re?.contains(e)||da(re)?.host===e||e===re||Object.values(J.current).some(t=>t?.contains(e)||e===t)}),pe=V?{...V===!0?{}:V}:null,[me,he]=ti(u||!1,l),ge=me||!1,_e=ge&&!c,ve=x.useMemo(()=>{let e=typeof i==`function`?i({open:_e}):i;return x.Children.only(e)},[i,_e]),ye=ve?.props||{},be=Yr(()=>_e),xe=Yr((e=0)=>({popup:T,target:se,delay:e,prefixCls:r,popupClassName:E,uniqueContainerClassName:D,uniqueContainerStyle:O,popupStyle:k,popupPlacement:A,builtinPlacements:j,popupAlign:M,zIndex:N,mask:y,maskClosable:b,popupMotion:H,maskMotion:U,arrow:pe,getPopupContainer:S,getPopupClassNameFromAlign:F,id:X,onEsc:Ee}));Qr(()=>{ne&&L&&se&&!K&&!te&&(_e?ne.show(xe(h),be):ne.hide(g))},[_e,se]);let Se=x.useRef(_e);Se.current=_e;let Ce=Yr(e=>{(0,$a.flushSync)(()=>{ge!==e&&(he(e),d?.(e),p?.(e))})}),we=Zm(),Te=(e,t=0)=>{if(l!==void 0){we(()=>{Ce(e)},t);return}if(ne&&L&&K&&!te){e?ne.show(xe(t),be):ne.hide(t);return}we(()=>{Ce(e)},t)};function Ee({top:e}){e&&Te(!1)}let[De,Oe]=x.useState(!1);Qr(e=>{(!e||_e)&&Oe(!0)},[_e]);let[ke,Ae]=x.useState(null),[je,Me]=x.useState(null),Ne=e=>{Me([e.clientX,e.clientY])},[Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We]=Xm(_e,re,R&&je!==null?je:se,A,j,M,B,q),[Ge,Ke]=Im(a,o,s),qe=Ge.has(`click`),Je=Ke.has(`click`)||Ke.has(`contextMenu`),Ye=Yr(()=>{De||We()});Qm(_e,se,re,Ye,()=>{Se.current&&R&&Je&&Te(!1)}),Qr(()=>{Ye()},[je,A]),Qr(()=>{_e&&!j?.[A]&&Ye()},[JSON.stringify(M)]);let Xe=x.useMemo(()=>Q(Rm(j,r,Ue,R),F?.(Ue)),[Ue,F,j,r,R]);x.useImperativeHandle(n,()=>({nativeElement:le.current,popupElement:ae.current,forceAlign:Ye}));let[Ze,Qe]=x.useState(0),[$e,et]=x.useState(0),tt=()=>{if(P&&se){let e=se.getBoundingClientRect();Qe(e.width),et(e.height)}},nt=()=>{tt(),Ye()},rt=e=>{Oe(!1),We(),f?.(e),m?.(e)},it=()=>new Promise(e=>{tt(),Ae(()=>e)});Qr(()=>{ke&&(We(),ke(),Ae(null))},[ke]);function at(e,t,n,r,i){de[e]=(a,...o)=>{(!i||!i())&&(r?.(a),Te(t,n)),ye[e]?.(a,...o)}}let ot=Ge.has(`touch`),st=Ke.has(`touch`),ct=x.useRef(!1);(ot||st)&&(de.onTouchStart=(...e)=>{ct.current=!0,Se.current&&st?Te(!1):!Se.current&&ot&&Te(!0),ye.onTouchStart?.(...e)}),(qe||Je)&&(de.onClick=(e,...t)=>{Se.current&&Je?Te(!1):!Se.current&&qe&&(Ne(e),Te(!0)),ye.onClick?.(e,...t),ct.current=!1});let lt=$m(_e,Je||st,se,re,y,b,fe,Te),ut=Ge.has(`hover`),dt=Ke.has(`hover`),ft,pt,mt=()=>ct.current;if(ut){let e=e=>{Ne(e)};at(`onMouseEnter`,!0,h,e,mt),at(`onPointerEnter`,!0,h,e,mt),ft=e=>{(_e||De)&&re?.contains(e.target)&&Te(!0,h)},R&&(de.onMouseMove=e=>{ye.onMouseMove?.(e)})}dt&&(at(`onMouseLeave`,!1,g,void 0,mt),at(`onPointerLeave`,!1,g,void 0,mt),pt=()=>{Te(!1,g)}),Ge.has(`focus`)&&at(`onFocus`,!0,_),Ke.has(`focus`)&&at(`onBlur`,!1,v),Ge.has(`contextMenu`)&&(de.onContextMenu=(e,...t)=>{Se.current&&Ke.has(`contextMenu`)?Te(!1):(Ne(e),Te(!0)),e.preventDefault(),ye.onContextMenu?.(e,...t)});let ht=x.useRef(!1);ht.current||=C||_e||De;let gt={...ye,...de},_t={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{ee[e]&&(_t[e]=(...t)=>{gt[e]?.(...t),ee[e](...t)})});let vt={x:ze,y:Be};mo(_e,se,nt);let yt=Ei(ue,Ai(ve)),bt=x.cloneElement(ve,{...gt,..._t,ref:yt});return x.createElement(x.Fragment,null,bt,ht.current&&(!ne||!L)&&x.createElement(Nm.Provider,{value:Y},x.createElement(Mm,{portal:e,ref:oe,prefixCls:r,popup:T,className:Q(E,!q&&Xe),style:k,target:se,onMouseEnter:ft,onMouseLeave:pt,onPointerEnter:ft,zIndex:N,open:_e,keepDom:De,fresh:I,onClick:z,onPointerDownCapture:lt,mask:y,motion:H,maskMotion:U,onVisibleChanged:rt,onPrepare:it,forceRender:C,autoDestroy:G,getPopupContainer:S,onEsc:Ee,align:Ue,arrow:pe,arrowPos:vt,ready:Pe,offsetX:Fe,offsetY:Ie,offsetR:Le,offsetB:Re,onAlign:Ye,stretch:P,targetWidth:Ze/Ve,targetHeight:$e/He,mobile:W})))})}var ah=ih(Tm);function oh(e){return e&&x.isValidElement(e)&&e.type===x.Fragment}var sh=(e,t,n)=>x.isValidElement(e)?x.cloneElement(e,op(n)?n(e.props||{}):n):t;function ch(e,t){return sh(e,e,t)}var lh=({children:e})=>{let{getPrefixCls:t}=x.useContext(Ao),n=t();return x.isValidElement(e)?x.createElement(ep,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>ch(e,e=>({className:Q(e.className,n),style:{...e.style,...t}}))):e},uh=[null,null];function dh(e){if(uh[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),uh[0]=e,uh[1]=t}return uh[1]}var fh=({children:e})=>x.createElement(rh,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=op(r)?r():r,a=dh(n);return{...e,getPopupContainer:null,arrow:!1,popup:x.createElement(lh,{key:t},i),builtinPlacements:a}}},e),ph=x.createContext(!1),mh=({children:e,disabled:t})=>{let n=x.useContext(ph);return x.createElement(ph.Provider,{value:t??n},e)},hh=x.createContext(void 0),gh=({children:e,size:t})=>{let n=x.useContext(hh);return x.createElement(hh.Provider,{value:t||n},e)};function _h(){return{componentDisabled:(0,x.useContext)(ph),componentSize:(0,x.useContext)(hh)}}function vh(e,t,n){io(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...Gu,hashed:t?.hashed??Gu.hashed,cssVar:t?.cssVar}:t,a=(0,x.useId)();return mi(()=>{if(!e)return t;let o={...i.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});let s=`css-var-${a.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||s};return{...i,...r,token:{...i.token,...r.token},components:o,cssVar:c}},[r,i,n?.prefixCls,a],(e,t)=>e.some((e,n)=>{let r=t[n];return!ka(e,r,!0)}))}var yh=x.createContext(!0);function bh(e){let t=x.useContext(yh),{children:n}=e,[,r]=ed(),{motion:i}=r,a=x.useRef(!1);return a.current||=t!==i,a.current?x.createElement(yh.Provider,{value:i},x.createElement(df,{motion:i},n)):n}var xh=()=>null,Sh=({iconPrefixCls:e,csp:t})=>(_d(e,t),null),Ch=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],wh,Th,Eh,Dh;function Oh(){return wh||`ant`}function kh(){return Th||`anticon`}var Ah=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(wh=t),n!==void 0&&(Th=n),`holderRender`in e&&(Dh=i),r&&(Eh=r)},jh=()=>({getPrefixCls:(e,t)=>t||(e?`${Oh()}-${e}`:Oh()),getIconPrefixCls:kh,getRootPrefixCls:()=>wh||Oh(),getTheme:()=>Eh,holderRender:Dh}),Mh=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:S,componentDisabled:C,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:k,collapse:A,typography:j,checkbox:M,descriptions:N,divider:P,drawer:F,skeleton:I,steps:L,image:R,layout:z,list:B,listy:V,mentions:H,modal:U,progress:W,result:ee,slider:G,breadcrumb:K,masonry:q,menu:J,pagination:te,input:Y,inputPassword:ne,inputSearch:X,textArea:re,otp:ie,empty:ae,badge:oe,borderBeam:se,radio:ce,rate:le,ribbon:ue,switch:de,transfer:fe,avatar:pe,message:me,tag:he,table:ge,card:_e,cardMeta:ve,tabs:ye,timeline:be,timePicker:xe,upload:Se,notification:Ce,tree:we,colorPicker:Te,datePicker:Ee,rangePicker:De,flex:Oe,wave:ke,dropdown:Ae,warning:je,tour:Me,tooltip:Ne,popover:Pe,popconfirm:Fe,qrcode:Ie,floatButton:Le,floatButtonGroup:Re,variant:ze,inputNumber:Be,treeSelect:Ve,watermark:He}=e,Ue=x.useMemo(()=>ap(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),We=x.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||y.getPrefixCls(``);return t?`${i}-${t}`:i},[y.getPrefixCls,e.prefixCls]),Ge=b||y.iconPrefixCls||`anticon`,Ke=n||y.csp,qe=vh(S,y.theme,{prefixCls:We(``)}),Je={csp:Ke,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:Ue||v,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:_,getPrefixCls:We,iconPrefixCls:Ge,theme:qe,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:k,collapse:A,typography:j,checkbox:M,descriptions:N,divider:P,drawer:F,skeleton:I,steps:L,image:R,input:Y,inputPassword:ne,inputSearch:X,textArea:re,otp:ie,layout:z,list:B,listy:V,mentions:H,modal:U,progress:W,result:ee,slider:G,breadcrumb:K,masonry:q,menu:J,pagination:te,empty:ae,badge:oe,borderBeam:se,radio:ce,rate:le,ribbon:ue,switch:de,transfer:fe,avatar:pe,message:me,tag:he,table:ge,card:_e,cardMeta:ve,tabs:ye,timeline:be,timePicker:xe,upload:Se,notification:Ce,tree:we,colorPicker:Te,datePicker:Ee,rangePicker:De,flex:Oe,wave:ke,dropdown:Ae,warning:je,tour:Me,tooltip:Ne,popover:Pe,popconfirm:Fe,qrcode:Ie,floatButton:Le,floatButtonGroup:Re,variant:ze,inputNumber:Be,treeSelect:Ve,watermark:He},Ye={...y};Object.keys(Je).forEach(e=>{Je[e]!==void 0&&(Ye[e]=Je[e])}),Ch.forEach(t=>{let n=e[t];n&&(Ye[t]=n)}),r!==void 0&&(Ye.button={autoInsertSpace:r,...Ye.button});let Xe=mi(()=>Ye,Ye,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Ze}=x.useContext(Uo),Qe=x.useMemo(()=>({prefixCls:Ge,csp:Ke,layer:Ze?`antd`:void 0,zeroRuntime:!!Ze||qe?.zeroRuntime}),[Ge,Ke,Ze,qe?.zeroRuntime]),$e=x.createElement(x.Fragment,null,x.createElement(Sh,{iconPrefixCls:Ge,csp:Ke}),x.createElement(xh,{dropdownMatchSelectWidth:h}),t),et=x.useMemo(()=>Ya(Zp.Form?.defaultValidateMessages||{},Xe.locale?.Form?.defaultValidateMessages||{},Xe.form?.validateMessages||{},c?.validateMessages||{}),[Xe,c?.validateMessages]);Object.keys(et).length>0&&($e=x.createElement(Wp.Provider,{value:et},$e)),Ue&&($e=x.createElement(om,{locale:Ue,_ANT_MARK__:am},$e)),(Ge||Ke)&&($e=x.createElement(yd.Provider,{value:Qe},$e)),u&&($e=x.createElement(gh,{size:u},$e)),$e=x.createElement(bh,null,$e),Ne?.unique&&($e=x.createElement(fh,null,$e));let tt=x.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=qe||{},a=e&&(!Array.isArray(e)||e.length>0)?Yo(e):Wu,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||op(n.algorithm))&&(n.theme=Yo(n.algorithm)),delete n.algorithm),o[e]=n});let s={...Bl,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[qe]);return S&&($e=x.createElement(Ku.Provider,{value:tt},$e)),Xe.warning&&($e=x.createElement(no.Provider,{value:Xe.warning},$e)),C!==void 0&&($e=x.createElement(mh,{disabled:C},$e)),x.createElement(Ao.Provider,{value:Xe},$e)},Nh=e=>{let t=x.useContext(Ao),n=x.useContext(rm);return x.createElement(Mh,{parentContext:t,legacyLocale:n,...e})};Nh.ConfigContext=Ao,Nh.SizeContext=hh,Nh.config=Ah,Nh.useConfig=_h,Object.defineProperty(Nh,"SizeContext",{get:()=>hh});function Ph(){let[e,t]=x.useState({});return[e,x.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}function Fh(e,t,n=0){let[r,i]=Ph(),[a,o,s,c]=x.useMemo(()=>{let i=0,a=0,o=t?.threshold??0,s=new Map,c,l;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=r[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;s.set(d,p),u===0&&(c=f,l=r[d]?.width??0),(!t||u<o)&&(a=Math.max(a,p+f)),t?i=p+f:i+=f+n}),[s,a,c,l]},[e,n,r,t]);return[a,i,o,s,c]}var Ih=8,Lh=3,Rh=e=>{let t={offset:Ih,threshold:Lh};return e&&typeof e==`object`&&(t.offset=e.offset??Ih,t.threshold=e.threshold??Lh),[!!e,t]};function zh(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=Yr(t),a=Yr(n),[o,s]=x.useState(r>0),c=x.useRef(0),l=x.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=x.useCallback(()=>{u(),s(!1)},[]),f=x.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return x.useEffect(()=>{c.current=0,s(r>0)},[r]),x.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=si(t))}return t(),()=>{si.cancel(e)}},[r,o]),[f,d]}function Bh(e){let t=x.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=x.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=x.useMemo(()=>Ra(n,!0),[n]);return[!!e,n,r]}var Vh=({className:e,style:t,percent:n})=>x.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hh.apply(this,arguments)}var Uh=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,components:s,title:c,description:l,icon:u,actions:d,role:f,closable:p,offset:m,notificationIndex:h,stackInThreshold:g,props:_,duration:v=4.5,showProgress:y,hovering:b,pauseOnHover:S=!0,onClick:C,onMouseEnter:w,onMouseLeave:T,onClose:E}=e,[D,O]=x.useState(0),k=`${n}-notice`,[A,j,M]=Bh(p),N=Yr(()=>{j.onClose?.(),E?.()}),[P,F]=x.useState(!1),[I,L]=zh(v,N,O),R=100-Math.min(Math.max(D*100,0),100),z=s?.progress||Vh;x.useEffect(()=>{S&&(b?L():P||I())},[b,P,L,I,S]);function B(e){F(!0),S&&L(),w?.(e)}function V(e){F(!1),S&&!b&&I(),T?.(e)}function H(e){e.preventDefault(),e.stopPropagation(),N()}let U=x.useRef(m);m!==void 0&&(U.current=m);let W=x.useRef(h);h!==void 0&&(W.current=h);let ee=m??U.current,G=h??W.current??0,K=c==null?null:x.createElement(`div`,{className:Q(`${k}-title`,a?.title),style:o?.title},c),q=l==null?null:x.createElement(`div`,{className:Q(`${k}-description`,a?.description),style:o?.description},l),J=K!==null,te=q!==null,Y=null;Y=J&&te?x.createElement(`div`,{className:Q(`${k}-section`,a?.section),style:o?.section},K,q):K||q,u!=null&&(Y=x.createElement(`div`,{className:Q(`${k}-wrapper`,a?.wrapper),style:o?.wrapper},x.createElement(`div`,{className:Q(`${k}-icon`,a?.icon),style:o?.icon},u),Y));let ne=d?x.createElement(`div`,{className:Q(`${k}-actions`,a?.actions),style:o?.actions},d):null,X={"--notification-index":G,...o?.root,...i};ee!==void 0&&(X[`--notification-y`]=`${ee}px`);let re=f??_?.role??`alert`;return x.createElement(`div`,Hh({},_,{ref:t,role:re,"data-notification-index":G,className:Q(k,r,a?.root,{[`${k}-closable`]:A,[`${k}-stack-in-threshold`]:g}),style:X,onClick:C,onMouseEnter:B,onMouseLeave:V}),Y,ne,A&&x.createElement(`button`,Hh({className:Q(`${k}-close`,a?.close),"aria-label":`Close`},M,{style:o?.close,onClick:H}),j.closeIcon),y&&typeof v==`number`&&v>0&&x.createElement(z,{className:Q(`${k}-progress`,a?.progress),percent:R,style:o?.progress}))}),Wh=x.createContext({}),Gh=({children:e,classNames:t})=>{let n=x.useMemo(()=>({classNames:t}),[t]);return x.createElement(Wh.Provider,{value:n},e)};function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kh.apply(this,arguments)}var qh=x.forwardRef((e,t)=>{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s,...c}=e,l=`${n}-content`,u=x.useRef(r),d=r<u.current?`decrease`:`increase`;u.current=r;let f={...s,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${a}px`};return x.createElement(`div`,Kh({},c,{className:Q(l,`${l}-${d}`,o),style:f,ref:t}))});function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}var Yh=[`wrapper`,`root`,`icon`,`section`,`title`,`description`,`actions`,`close`,`progress`];function Xh(e){return Yh.reduce((t,n)=>(t[n]=Q(...e.map(e=>e?.[n])),t),{})}function Zh(e){return Yh.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function Qh(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var $h=e=>{let{config:t,components:n,contextClassNames:r,classNames:i,styles:a,className:o,style:s,nodeRef:c,listHovering:l,stackEnabled:u,pauseOnHover:d,setNodeSize:f,onNoticeClose:p,...m}=e,{key:h,placement:g,..._}=t,v=String(h),y=Ei(c,x.useCallback(e=>{f(v,e)},[f,v]));return x.createElement(Uh,Jh({},_,m,{ref:y,className:Q(r?.notice,t.className,o),style:{...s,...t.style},classNames:Xh([i,t.classNames]),styles:Zh([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(h)}}))},eg=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:m}=x.useContext(Wh),h=x.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),g=typeof c==`function`?c(l):c,[_,{offset:v,threshold:y}]=Rh(s),[b,S]=x.useState(!1),C=_&&(b||h.length<=y),w=x.useMemo(()=>{if(!(!_||C))return{offset:v,threshold:y}},[C,v,_,y]),[T,E]=x.useState(0),D=x.useRef(null),[O,k,A,j,M]=Fh(t,w,T),N=!!t.length;x.useEffect(()=>{let e=D.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;E(e=>e===r?e:r)},[N]);let P=`${n}-list`;return x.createElement(`div`,{className:Q(n,P,`${n}-${l}`,m?.list,u,i?.list,{[`${n}-stack`]:_,[`${n}-stack-expanded`]:C,[`${P}-hovered`]:b}),onMouseEnter:()=>{S(!0)},onMouseLeave:()=>{S(!1)},style:{...a?.list,...d}},x.createElement(qh,{listPrefixCls:P,height:A,topNoticeHeight:j,topNoticeWidth:M,className:i?.listContent,style:a?.listContent,ref:D},x.createElement($f,Jh({component:!1,keys:h,motionAppear:!0},g,{onAllRemoved:()=>{l&&p?.(l)}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=Qh(h,l),p=_&&d!==void 0&&d<y;return x.createElement($h,{key:l,config:e,components:o,contextClassNames:m,classNames:i,styles:a,className:t,style:s,nodeRef:c,prefixCls:n,offset:O.get(u),notificationIndex:d,stackInThreshold:p,listHovering:b,stackEnabled:_,pauseOnHover:r,setNodeSize:k,onNoticeClose:f})})))},tg=x.forwardRef((e,t)=>{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[h,g]=x.useState([]),[_,v]=x.useState({}),y=x.useRef(!1);x.useImperativeHandle(t,()=>({open:e=>{g(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times??0)+1,n[r]=i):(i.times=0,n.push(i)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{g(t=>t.filter(t=>t.key!==e))},destroy:()=>{g([])}})),x.useEffect(()=>{let e={};h.forEach(t=>{let n=t.placement??`topRight`;e[n]=e[n]||[],e[n].push(t)}),Object.keys(_).forEach(t=>{e[t]=e[t]||[]}),v(e)},[h]);let b=Yr(e=>{v(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if(x.useEffect(()=>{Object.keys(_).length>0?y.current=!0:y.current&&=(f?.(),!1)},[_,f]),!r)return null;let S=Object.keys(_);return(0,$a.createPortal)(x.createElement(x.Fragment,null,S.map(e=>{let t=x.createElement(eg,{key:e,configList:_[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u?.(e),style:d?.(e),motion:i,stack:p,onNoticeClose:e=>{g(t=>t.filter(t=>t.key!==e))},onAllRemoved:b});return m?x.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),ng=()=>document.body,rg=0;function ig(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function ag(e={}){let{getContainer:t=ng,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}=e,v={placement:i,closable:a,duration:o,showProgress:s},[y,b]=x.useState(),S=x.useRef(null),[C,w]=x.useState([]),T=x.createElement(tg,{container:y,ref:S,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:h,stack:g,renderNotifications:_}),E=Yr(e=>{let t=ig(v,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${rg}`,rg+=1),w(e=>[...e,{type:`open`,config:t}])}),D=x.useMemo(()=>({open:E,close:e=>{w(t=>[...t,{type:`close`,key:e}])},destroy:()=>{w(e=>[...e,{type:`destroy`}])}}),[]);return x.useEffect(()=>{b(t())}),x.useEffect(()=>{S.current&&C.length&&(C.forEach(e=>{switch(e.type){case`open`:S.current?.open(e.config);break;case`close`:S.current?.close(e.key);break;case`destroy`:S.current?.destroy()}}),w(e=>{let t=e.filter(e=>!C.includes(e));return t.length===e.length?e:t}))},[C]),[D,T]}var og=(e,t)=>x.useMemo(()=>{let n=e??t;return n?{...ap(t)?t:{},...ap(n)?n:{}}:!1},[e,t]);function sg(e,t){return{...tp(e)&&{"--notification-top":$(e)},...tp(t)&&{"--notification-bottom":$(t)}}}function cg(e){return{motionName:`${e}-fade`}}function lg(e,t,n){return e===void 0?t?.closeIcon===void 0?n?.closeIcon:t.closeIcon:e}var ug=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dg.apply(this,arguments)}var fg=x.forwardRef((e,t)=>x.createElement(qd,dg({},e,{ref:t,icon:ug.default})));function pg(...e){return e.find(e=>e!==void 0)}var mg=e=>{let{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:a,componentName:o}=e;return(0,x.useMemo)(()=>t??r??a?{clearIcon:pg(ap(t)?t?.clearIcon:n,ap(r)?r?.clearIcon:i,x.createElement($d,null)),disabled:(ap(t)?t?.disabled:void 0)??(ap(r)?r?.disabled:void 0)}:!1,[t,n,r,i,a])},hg=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},gg={},_g=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!tp(e)&&!tp(t))return null;let n={closeIcon:typeof t!=`boolean`&&tp(t)?t:void 0};return ap(e)&&(n={...n,...e}),n},vg=(e,t,n)=>e===!1?!1:e?Va(n,t,e):t===!1?!1:t?Va(n,t):n.closable?n:!1,yg=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=Ra(a,!0);return tp(o)&&(r&&(o=r(o)),o=x.isValidElement(o)?x.cloneElement(o,{"aria-label":n,...o.props,...s}):x.createElement(`span`,{"aria-label":n,...s},o)),[o,{"aria-label":n,...s}]},bg=(e,t,n=gg,r=`Close`)=>{let i=_g(e?.closable,e?.closeIcon),a=_g(t?.closable,t?.closeIcon),o={closeIcon:x.createElement(nf,null),...n},s=vg(i,a,o),c=typeof s!=`boolean`&&!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=yg(s,o,r);return[!0,l,c,u]},xg=(e,t,n=gg)=>{let[r]=im(`global`,Zp.global);return x.useMemo(()=>bg(e,t,{closeIcon:x.createElement(nf,null),...n},r.close),[e,t,n,r.close])},Sg=()=>x.useReducer(e=>e+1,0),Cg=(e,t)=>{let n={};return ap(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},wg=(e,t,n,r)=>(0,x.useMemo)(()=>{let i=Cg(e,r),a=Cg(t),o={blur:!1,...a,...i,closable:i.closable??r??a.closable??!0},s=o.blur?`${n}-mask-blur`:void 0;return[o.enabled!==!1,{mask:s},!!o.closable]},[e,t,n,r]),Tg=e=>{let[t,n]=(0,x.useState)(null);return[(0,x.useCallback)((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},Eg=e=>e===`horizontal`||e===`vertical`,Dg=(e,t,n)=>(0,x.useMemo)(()=>{let r=Eg(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:Eg(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),Og=()=>{let[e,t]=x.useState([]);return[e,x.useCallback(e=>(t(t=>[].concat(Do(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},kg=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),Ag=(e,t)=>(0,x.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):kg(n,e)}),jg=e=>{let t=x.useRef(e),[,n]=Sg();return[()=>t.current,e=>{t.current=e,n()}]},Mg=x.createContext(void 0),Ng=100,Pg=1e3,Fg={Modal:Ng,Drawer:Ng,Popover:Ng,Popconfirm:Ng,Tooltip:Ng,Tour:Ng,FloatButton:Ng},Ig={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Lg=e=>e in Fg,Rg=(e,t)=>{let[,n]=ed(),r=x.useContext(Mg),i=Lg(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;o+=i?(r?0:n.zIndexPopupBase)+Fg[e]:Ig[e],a=[r===void 0?t:o,o]}return a},zg=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},Bg=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=hd(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${$(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`,...zg(e),...t.noticeStyle,"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`},...t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}},[`${y}-wrapper`]:{display:`flex`,...t.contentStyle},[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},Vg=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return{...Bg(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0}),[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable`]:{[`${C}-title, ${C}-description`]:{paddingInlineEnd:m},[`${C}-title + ${C}-description`]:{paddingInlineEnd:0}},[`${C}-close`]:{position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S},...sd(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${$(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}}},Hg=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=Vg(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:`100%`,...a,[r]:{...a[r],position:`relative`,width:`100%`,maxWidth:`100%`},[i]:{...a[i],float:`none`,textAlign:`end`}}}},Ug=e=>{let{componentCls:t}=e;return{[t]:Vg(e)}},Wg=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],Gg=`--notification-margin-edge`,Kg=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),qg=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,Jg=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Kg(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},Yg=e=>e===`bottom`?`column-reverse`:`column`,Xg=e=>{let t=`var(${Gg}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},Zg=e=>e===`bottom`?`center top`:`center bottom`,Qg=e=>$(e.calc(e.marginXXL).mul(-1).equal()),$g=e=>{let t=Qg(e);return`inset(${t} ${t} ${t} ${t})`},e_=(e,t)=>{let n=Qg(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},t_=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=qg(t.motionOffset),f=qg(t.baseMotionOffset),p=Zg(i);return{[`&${n}-${r}`]:{[i]:Xg(i),[a]:`auto`,display:`flex`,flexDirection:Yg(i),...c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`},[l]:{[i]:`var(--notification-y, 0)`,...c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:e_(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:$g(e)}}}}},n_=(e,t=Wg)=>{let{notificationMotionOffset:n}=e,r=$(n);return{...t.reduce((t,n)=>({...t,...t_(e,Jg(n,r))}),{})}},r_=e=>{let{componentCls:t}=e;return{[t]:n_(e)}},i_=3,a_=e=>({zIndexPopup:e.zIndexPopupBase+Pg+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),o_=e=>{let t=e.paddingMD,n=e.paddingLG;return wl(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:`${$(e.paddingMD)} ${$(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},s_=e=>`inset(${e} ${e} ${e} ${e})`,c_=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},l_=(e,t)=>{let{componentCls:n,notificationMarginEdge:r}=e,i=`--notification-margin-edge`,a=`${n}-notice`,o=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():`100%`,c=`${a}:nth-last-child(n + ${(t.stackVisibleCount??i_)+1})`,l=s_($(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...nd(e),[i]:$(r),position:`fixed`,zIndex:e.zIndexPopup,width:s,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${n}-hook-holder`]:{position:`relative`},[`&${o}`]:{maxHeight:`100vh`,padding:`var(${i})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}},...c_(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}};md([`Notification`,`PurePanel`],e=>Hg(o_(e)),a_);var u_=(e,t)=>{let n=t.itemStyle??Ug;return[l_(e,t),n(e),r_(e)]},d_=fd(`Notification`,e=>u_(o_(e),{listWidthKey:`width`}),a_),f_=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return wl(o_(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},p_=e=>({zIndexPopup:e.zIndexPopupBase+Pg+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),m_=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return Bg(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},h_=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=m_(e)[n],o={...a,position:`absolute`,zIndex:-1,left:`50%`,height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:`none`,transform:`translateX(-50%) translateY(100%)`,transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(`, `),content:`""`};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:`isolate`,"&::before":{...o,top:`calc(var(--top-notificiation-height) - ${$(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${$(e.margin)})`},"&::after":{...o,zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${$(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},g_=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=m_(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}};md([`Message`,`PurePanel`],e=>g_(f_(e)),p_);var __=e=>({[e.componentCls]:m_(e)}),v_=fd(`Message`,e=>{let t=f_(e);return[u_(t,{stackVisibleCount:1,itemStyle:__}),h_(t)]},p_),y_={info:x.createElement(lf,null),success:x.createElement(Xd,null),error:x.createElement($d,null),warning:x.createElement(of,null),loading:x.createElement(fg,null)},b_=(e,t)=>t||e&&y_[e]||null;function x_(e,t){return{motionName:t??`${e}-fade`}}function S_(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var C_=8,w_=3,T_=!1,E_=({children:e,prefixCls:t})=>{let n=Up(t),[r,i]=v_(t,n);return x.createElement(Gh,{classNames:{list:Q(r,i,n)}},e)},D_=(e,{prefixCls:t,key:n})=>x.createElement(E_,{prefixCls:t,key:n},e),O_=x.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=w_,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:m,direction:h,getPopupContainer:g}=No(`message`),{message:_}=x.useContext(Ao),v=r||m(`message`),y=vp(_?.style),[b,S]=bp([_?.classNames,c],[_?.styles,y,l],{props:e}),[C,w]=ag({prefixCls:v,style:()=>sg(n??C_),className:()=>Q({[`${v}-rtl`]:s??h===`rtl`}),motion:()=>x_(v,u),closable:!1,duration:o,getContainer:()=>i?.()||g?.()||document.body,maxCount:a,onAllRemoved:p,classNames:b,styles:S,renderNotifications:D_,pauseOnHover:d,stack:og(f,T_)});return x.useImperativeHandle(t,()=>({...C,prefixCls:v,message:_})),w}),k_=0;function A_(e){let t=x.useRef(null);return io(`Message`),[x.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o}=t.current,s=o?.className||{},c=`${a}-notice`,{content:l,icon:u,type:d,key:f,className:p,style:m,onClose:h,classNames:g={},styles:_={},...v}=r,y=f;tp(y)||(k_+=1,y=`antd-message-${k_}`);let b={...e,...r},x=yp(g,{props:b}),S=yp(_,{props:b}),C=b_(d,u),w=d?`${c}-icon-${d}`:void 0;return S_(e=>(i({...v,key:y,icon:C,title:l,classNames:{...x,wrapper:Q(d&&`${a}-${d}`,x?.wrapper),icon:Q(w,x?.icon)},styles:S,placement:`top`,className:Q({[`${c}-${d}`]:d},p,s),style:m,onClose:()=>{h?.(),e()}}),()=>{n(y)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=ap(t)&&`content`in t?t:{content:t};let o,s;op(n)?s=n:(o=n,s=i);let c={onClose:s,duration:o,...a,type:e};return r(c)}}),i},[]),x.createElement(O_,{key:`message-holder`,...e,ref:t})]}function j_(e){return A_(e)}var M_=()=>({height:0,opacity:0}),N_=e=>({height:e?.scrollHeight??0,opacity:+!!e}),P_=e=>({height:e?.offsetHeight??0}),F_=(e,t)=>t?.deadline===!0||lp(t)&&t.propertyName===`height`,I_=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:M_,onEnterStart:M_,onAppearActive:N_,onEnterActive:N_,onLeaveStart:P_,onLeaveActive:M_,onAppearEnd:F_,onEnterEnd:F_,onLeaveEnd:F_,motionDeadline:500}),L_=(e,t,n)=>n===void 0?`${e}-${t}`:n,R_=pd(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=hd(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),z_=`ant-wave-target`,B_=e=>e?ip(e)&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!==`transparent`&&e!==`canvastext`:!1;function V_(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&B_(n[t])?n[t]:[r,i,a].find(B_)??null}function H_(e){return Number.isNaN(e)?0:e}var U_=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=x.useRef(null),{getPrefixCls:o}=x.useContext(Ao),[s]=hd(o(),`wave`),[c,l]=x.useState(null),[u,d]=x.useState([]),[f,p]=x.useState(0),[m,h]=x.useState(0),[g,_]=x.useState(0),[v,y]=x.useState(0),[b,S]=x.useState(!1),C={left:f,top:m,width:g,height:v,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(V_(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:H_(-Number.parseFloat(r))),h(t?n.offsetTop:H_(-Number.parseFloat(a))),_(n.offsetWidth),y(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>H_(Number.parseFloat(e))))}if(x.useEffect(()=>{if(n){let e=si(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{si.cancel(e),t?.disconnect()}}},[n]),!b)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(z_);return x.createElement(ep,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||lp(t)&&t.propertyName===`opacity`){let e=a.current?.parentElement;Qa(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>x.createElement(`div`,{ref:Ti(a,n),className:Q(t,e,{"wave-quick":T}),style:C}))},W_=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),Za(x.createElement(U_,{...t,target:e}),r)},G_=(e,t,n,r)=>{let{wave:i}=x.useContext(Ao),[,a,o]=ed(),s=Yr(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${z_}`)||c,{showEffect:u}=i||{};(u||W_)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=x.useRef(null);return x.useEffect(()=>()=>{si.cancel(c.current)},[]),e=>{si.cancel(c.current),c.current=si(()=>{s(e)})}},K_={click:`click`,mousedown:`mousedown`,mouseup:`mouseup`,pointerdown:`pointerdown`,pointerup:`pointerup`},q_=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a,wave:o}=(0,x.useContext)(Ao),s=(0,x.useRef)(null),c=a(`wave`),l=G_(s,Q(c,R_(c)),r,i);return x.useEffect(()=>{let e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!qi(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||l(t)},r=o?.triggerType,i=r&&r in K_?K_[r]:`click`;return e.addEventListener(i,t,!0),()=>{e.removeEventListener(i,t,!0)}},[n,o?.triggerType]),x.isValidElement(t)?ch(t,{ref:Di(t)?Ti(Ai(t),s):s}):t??null},J_=e=>{let t=x.useContext(hh);return x.useMemo(()=>e?ip(e)?e??t:op(e)?e(t):t:t,[e,t])},Y_=fd([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),X_=x.createContext(null),Z_=(e,t)=>{let n=x.useContext(X_),r=x.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return Q(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Q_=e=>{let{children:t}=e;return x.createElement(X_.Provider,{value:null},t)},$_=e=>{let{children:t,...n}=e;return x.createElement(X_.Provider,{value:x.useMemo(()=>n,[n])},t)},ev=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=x.useContext(Ao),{size:i,direction:a,orientation:o,block:s,prefixCls:c,className:l,rootClassName:u,children:d,vertical:f,...p}=e,[m,h]=Dg(o,f,a),g=J_(e=>i??e),_=n(`space-compact`,c),[v]=Y_(_),y=Q(_,v,{[`${_}-rtl`]:r===`rtl`,[`${_}-block`]:s,[`${_}-vertical`]:h},l,u),b=x.useContext(X_),S=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:S.current}));let C=Ba(d),w=x.useMemo(()=>C.map((e,t)=>{let n=e?.key||`${_}-item-${t}`;return x.createElement($_,{key:n,compactSize:g,compactDirection:m,isFirstItem:t===0&&(!b||b?.isFirstItem),isLastItem:t===C.length-1&&(!b||b?.isLastItem)},e)}),[C,b,m,g,_]);return C.length===0?null:x.createElement(`div`,{ref:S,className:y,...p},w)}),tv=x.createContext(void 0),nv=e=>{let{getPrefixCls:t,direction:n}=x.useContext(Ao),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=ed(),l=x.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=Q(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return x.createElement(tv.Provider,{value:i},x.createElement(`div`,{...o,className:u}))},rv=/^[\u4E00-\u9FA5]{2}$/,iv=rv.test.bind(rv);function av(e){return e===`danger`?{danger:!0}:{type:e}}function ov(e){return e===`text`||e===`link`}function sv(e,t,n,r){if(!np(e))return;let i=t?` `:``;return!ip(e)&&!rp(e)&&ip(e.type)&&iv(e.props.children)?ch(e,e=>{let t=Q(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):ip(e)?x.createElement(`span`,{className:r,style:n},iv(e)?e.split(``).join(i):e):oh(e)?x.createElement(`span`,{className:r,style:n},e):ch(e,e=>({...e,className:Q(e.className,r)||void 0,style:{...e.style,...n}}))}function cv(e,t,n,r){let i=!1,a=[];return x.Children.forEach(e,e=>{let t=ip(e)||rp(e);if(i&&t){let t=a.length-1,n=a[t];a[t]=`${n}${e}`}else a.push(e);i=t}),x.Children.map(a,e=>sv(e,t,n,r))}[`default`,`primary`,`danger`].concat(Do(Fl));var lv=(0,x.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=Q(`${a}-icon`,n);return x.createElement(`span`,{ref:t,className:o,style:r},i)}),uv=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Q(`${n}-loading-icon`,r);return x.createElement(lv,{prefixCls:n,className:o,style:i,ref:t},x.createElement(fg,{className:a}))}),dv=()=>({width:0,opacity:0,transform:`scale(0)`}),fv=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),pv=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?x.createElement(uv,{prefixCls:t,className:i,style:a}):x.createElement(ep,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:dv,onAppearActive:fv,onEnterStart:dv,onEnterActive:fv,onLeaveStart:fv,onLeaveActive:dv},({className:e,style:n},r)=>{let o={...a,...n};return x.createElement(uv,{prefixCls:t,className:Q(i,e),style:o,ref:r})})},mv=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},hv=e=>({animationDuration:e,animationFillMode:`both`}),gv=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
|
|
133
|
+
${a}${e}-enter,
|
|
134
|
+
${a}${e}-appear
|
|
135
|
+
`]:{...hv(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...hv(r),animationPlayState:`paused`},[`
|
|
136
|
+
${a}${e}-enter${e}-enter-active,
|
|
137
|
+
${a}${e}-appear${e}-appear-active
|
|
138
|
+
`]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},_v=new Gc(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),vv=new Gc(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),yv=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[gv(r,_v,vv,e.motionDurationMid,t),{[`
|
|
139
|
+
${i}${r}-enter,
|
|
140
|
+
${i}${r}-appear
|
|
141
|
+
`]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},bv=new Gc(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),xv=new Gc(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),Sv=new Gc(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Cv=new Gc(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),wv=new Gc(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Tv=new Gc(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Ev={"move-up":{inKeyframes:new Gc(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Gc(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:bv,outKeyframes:xv},"move-left":{inKeyframes:Sv,outKeyframes:Cv},"move-right":{inKeyframes:wv,outKeyframes:Tv}},Dv=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Ev[t];return[gv(r,i,a,e.motionDurationMid),{[`
|
|
142
|
+
${r}-enter,
|
|
143
|
+
${r}-appear
|
|
144
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ov=new Gc(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),kv=new Gc(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Av=new Gc(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),jv=new Gc(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),Mv=new Gc(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),Nv=new Gc(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Pv=new Gc(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),Fv=new Gc(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),Iv={"slide-up":{inKeyframes:Ov,outKeyframes:kv},"slide-down":{inKeyframes:Av,outKeyframes:jv},"slide-left":{inKeyframes:Mv,outKeyframes:Nv},"slide-right":{inKeyframes:Pv,outKeyframes:Fv}},Lv=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Iv[t];return[gv(r,i,a,e.motionDurationMid),{[`
|
|
145
|
+
${r}-enter,
|
|
146
|
+
${r}-appear
|
|
147
|
+
`]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Rv=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:`none`,animation:`none`}}}),zv=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Bv=new Gc(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Vv=new Gc(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Hv=new Gc(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Uv=new Gc(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Wv=new Gc(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Gv=new Gc(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),Kv=new Gc(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),qv=new Gc(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),Jv=new Gc(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Yv=new Gc(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Xv=new Gc(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Zv=new Gc(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Qv={zoom:{inKeyframes:Bv,outKeyframes:Vv},"zoom-big":{inKeyframes:Hv,outKeyframes:Uv},"zoom-big-fast":{inKeyframes:Hv,outKeyframes:Uv},"zoom-left":{inKeyframes:Kv,outKeyframes:qv},"zoom-right":{inKeyframes:Jv,outKeyframes:Yv},"zoom-up":{inKeyframes:Wv,outKeyframes:Gv},"zoom-down":{inKeyframes:Xv,outKeyframes:Zv}},$v=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Qv[t];return[gv(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
|
|
148
|
+
${r}-enter,
|
|
149
|
+
${r}-appear
|
|
150
|
+
`]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ey=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ty=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=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}},ey(`${t}-primary`,i),ey(`${t}-danger`,a)]}},ny=e=>Math.round(Number(e||0)),ry=e=>{if(e instanceof Kl)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},iy=class extends Kl{constructor(e){super(ry(e))}toHsbString(){let e=this.toHsb(),t=ny(e.s*100),n=ny(e.b*100),r=ny(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof iy?e:new iy(e))(`#1677ff`);var ay=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,oy=(e,t)=>e?ay(e,t):``,sy=function(){function e(t){if(rl(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new iy(this.colors[0].color.metaColor)):this.metaColor=new iy(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return al(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return oy(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(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),cy=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ly.apply(this,arguments)}var uy=x.forwardRef((e,t)=>x.createElement(qd,ly({},e,{ref:t,icon:cy.default})));function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(null,arguments)}var fy=e=>e instanceof sy?e:new sy(e),py=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new iy(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},my=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return wl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},hy=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??Il(t),a=e.contentLineHeightSM??Il(n),o=e.contentLineHeightLG??Il(r),s=py(new sy(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=Fl.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${$(e.controlOutlineWidth)} 0 ${Ju(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},gy=e=>{let{componentCls:t,antCls:n,lineWidth:r,lineType:i}=e,[a,o]=hd(n,`btn`);return{[t]:[{[a(`border-width`)]:r,[a(`border-color`)]:`#000`,[a(`border-color-hover`)]:o(`border-color`),[a(`border-color-active`)]:o(`border-color`),[a(`border-color-disabled`)]:o(`border-color`),[a(`border-style`)]:i,[a(`text-color`)]:`#000`,[a(`text-color-hover`)]:o(`text-color`),[a(`text-color-active`)]:o(`text-color`),[a(`text-color-disabled`)]:o(`text-color`),[a(`bg-color`)]:`#ddd`,[a(`bg-color-hover`)]:o(`bg-color`),[a(`bg-color-active`)]:o(`bg-color`),[a(`bg-color-disabled`)]:e.colorBgContainerDisabled,[a(`bg-color-container`)]:e.colorBgContainer,[a(`shadow`)]:`none`},{border:[o(`border-width`),o(`border-style`),o(`border-color`)].join(` `),color:o(`text-color`),backgroundColor:o(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[o(`border-width`),o(`border-style`),o(`border-color-hover`)].join(` `),color:o(`text-color-hover`),backgroundColor:o(`bg-color-hover`)},"&:active":{border:[o(`border-width`),o(`border-style`),o(`border-color-active`)].join(` `),color:o(`text-color-active`),backgroundColor:o(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[a(`solid-bg-color`)]:o(`color-base`),[a(`solid-bg-color-hover`)]:o(`color-hover`),[a(`solid-bg-color-active`)]:o(`color-active`),[a(`border-color`)]:`transparent`,[a(`text-color`)]:e.colorTextLightSolid,[a(`bg-color`)]:o(`solid-bg-color`),[a(`bg-color-hover`)]:o(`solid-bg-color-hover`),[a(`bg-color-active`)]:o(`solid-bg-color-active`),boxShadow:o(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a(`border-color`)]:o(`color-base`),[a(`border-color-hover`)]:o(`color-hover`),[a(`border-color-active`)]:o(`color-active`),[a(`bg-color`)]:o(`bg-color-container`),[a(`text-color`)]:o(`color-base`),[a(`text-color-hover`)]:o(`color-hover`),[a(`text-color-active`)]:o(`color-active`),boxShadow:o(`shadow`)},[`&${t}-variant-dashed`]:{[a(`border-style`)]:`dashed`,[a(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[a(`border-color`)]:`transparent`,[a(`text-color`)]:o(`color-base`),[a(`bg-color`)]:o(`color-light`),[a(`bg-color-hover`)]:o(`color-light-hover`),[a(`bg-color-active`)]:o(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[a(`border-color`)]:`transparent`,[a(`text-color`)]:o(`color-base`),[a(`text-color-hover`)]:o(`color-hover`),[a(`text-color-active`)]:o(`color-active`),[a(`bg-color`)]:`transparent`,[a(`bg-color-hover`)]:`transparent`,[a(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[a(`bg-color-hover`)]:o(`color-light`),[a(`bg-color-active`)]:o(`color-light-active`)}},{[`&${t}-variant-link`]:{[a(`color-base`)]:e.colorLink,[a(`color-hover`)]:e.colorLinkHover,[a(`color-active`)]:e.colorLinkActive,[a(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[a(`color-base`)]:e.colorPrimary,[a(`color-hover`)]:e.colorPrimaryHover,[a(`color-active`)]:e.colorPrimaryActive,[a(`color-light`)]:e.colorPrimaryBg,[a(`color-light-hover`)]:e.colorPrimaryBgHover,[a(`color-light-active`)]:e.colorPrimaryBorder,[a(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[a(`text-color`)]:e.primaryColor,[a(`text-color-hover`)]:o(`text-color`),[a(`text-color-active`)]:o(`text-color`)}},[`&${t}-color-dangerous`]:{[a(`color-base`)]:e.colorError,[a(`color-hover`)]:e.colorErrorHover,[a(`color-active`)]:e.colorErrorActive,[a(`color-light`)]:e.colorErrorBg,[a(`color-light-hover`)]:e.colorErrorBgFilledHover,[a(`color-light-active`)]:e.colorErrorBgActive,[a(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[a(`text-color`)]:e.dangerColor,[a(`text-color-hover`)]:o(`text-color`),[a(`text-color-active`)]:o(`text-color`)}},[`&${t}-color-default`]:{[a(`solid-bg-color`)]:e.colorBgSolid,[a(`solid-bg-color-hover`)]:e.colorBgSolidHover,[a(`solid-bg-color-active`)]:e.colorBgSolidActive,[a(`color-base`)]:e.defaultBorderColor,[a(`color-hover`)]:e.defaultHoverBorderColor,[a(`color-active`)]:e.defaultActiveBorderColor,[a(`color-light`)]:e.colorFillTertiary,[a(`color-light-hover`)]:e.colorFillSecondary,[a(`color-light-active`)]:e.colorFill,[a(`text-color`)]:e.defaultColor,[a(`text-color-hover`)]:e.defaultHoverColor,[a(`text-color-active`)]:e.defaultActiveColor,[a(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[a(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[a(`text-color`)]:e.solidTextColor,[a(`text-color-hover`)]:o(`text-color`),[a(`text-color-active`)]:o(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[a(`text-color-hover`)]:o(`text-color`),[a(`text-color-active`)]:o(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a(`text-color`)]:e.defaultColor,[a(`text-color-hover`)]:e.defaultHoverColor,[a(`text-color-active`)]:e.defaultActiveColor,[a(`bg-color-container`)]:e.defaultBg,[a(`bg-color-hover`)]:e.defaultHoverBg,[a(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[a(`text-color`)]:e.textTextColor,[a(`text-color-hover`)]:e.textTextHoverColor,[a(`text-color-active`)]:e.textTextActiveColor,[a(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a(`text-color`)]:e.defaultGhostColor,[a(`border-color`)]:e.defaultGhostBorderColor}}}},Fl.map(n=>{let r=e[`${n}6`],i=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[a(`color-base`)]:r,[a(`color-hover`)]:o,[a(`color-active`)]:l,[a(`color-light`)]:i,[a(`color-light-hover`)]:s,[a(`color-light-active`)]:c,[a(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:o(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[a(`bg-color`)]:e.ghostBg,[a(`bg-color-hover`)]:e.ghostBg,[a(`bg-color-active`)]:e.ghostBg,[a(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[a(`bg-color-hover`)]:e.ghostBg,[a(`bg-color-active`)]:e.ghostBg}}}]}},_y=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...Rv(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:rd(),[`${t}-icon`]:{display:`inline-flex`,alignItems:`center`,[n]:{verticalAlign:`middle`,"&:before":{content:`"\\a0"`,display:`inline-block`,width:0}}},"> a":{color:`currentColor`},"&:not(:disabled)":sd(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:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:c(s).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:c(s).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},vy=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),yy=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${$(c)} ${$(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:vy(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},by=e=>yy(wl(e,{fontSize:e.contentFontSize}),e.componentCls),xy=e=>yy(wl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),Sy=e=>yy(wl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),Cy=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},wy=fd(`Button`,e=>{let t=my(e);return[_y(t),by(t),xy(t),Sy(t),Cy(t),gy(t),ty(t)]},hy,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Ty(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=s?` ${s}`:``,l=e=>e.filter(Boolean).map(e=>`&:${e}${c}`).join(`,`),u=l([`hover`,i?`hover${i}`:null]),d=l([a?`focus`:null,`active`]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[d]:{zIndex:3},[u]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function Ey(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Dy(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...Ty(e,a,t,i),...Ey(i,a,t)}}}function Oy(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function ky(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 Ay(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...Oy(e,t,e.componentCls),...ky(e.componentCls,t)}}}var jy=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=hd(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},My=md([`Button`,`compact`],e=>{let t=my(e);return[Dy(t),Ay(t),jy(t)]},hy);function Ny(e){if(ap(e)){let t=e?.delay;return t=rp(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var Py={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},Fy=x.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,iconPosition:g,iconPlacement:_,ghost:v=!1,block:y=!1,htmlType:b=`button`,classNames:S,styles:C,style:w,autoInsertSpace:T,autoFocus:E,...D}=e,O=Ba(m),k=s||`default`,{getPrefixCls:A,direction:j,autoInsertSpace:M,className:N,style:P,classNames:F,styles:I,loadingIcon:L,shape:R,color:z,variant:B}=No(`button`),V=l||R||`default`,[H,U]=(0,x.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=Py[k]||[];return c?[`danger`,e[1]]:e}return o===`solid`?[`primary`,o]:z&&B?[z,B]:B===`solid`?[`primary`,B]:[`default`,`outlined`]},[a,o,s,c,z,B,k]),[W,ee]=(0,x.useMemo)(()=>v&&U===`solid`?[H,`outlined`]:[H,U],[H,U,v]),G=W===`danger`,K=G?`dangerous`:W,q=T??M??!0,J=A(`btn`,i),[te,Y]=wy(J),ne=(0,x.useContext)(ph),X=d??ne,re=(0,x.useContext)(tv),ie=(0,x.useMemo)(()=>Ny(r),[r]),[ae,oe]=ci(ie.loading),[se,ce]=(0,x.useState)(!1),le=(0,x.useRef)(null),ue=Ei(t,le),de=O.length===1&&!h&&!ov(ee),fe=(0,x.useRef)(!0);x.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),Qr(()=>{ie.delay>0?oe(!0,{ms:ie.delay}):oe(ie.loading,!0)},[ie.delay,ie.loading]),(0,x.useEffect)(()=>{if(!le.current||!q)return;let e=le.current.textContent||``;de&&iv(e)?se||ce(!0):se&&ce(!1)}),(0,x.useEffect)(()=>{E&&le.current?.focus()},[]);let pe=x.useCallback(t=>{if(ae||X){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,ae,X]),{compactSize:me,compactItemClassnames:he}=Z_(J,j),ge=J_(e=>u??me??re??e),_e=ae?`loading`:h,ve=_??g??`start`,ye=Na(D,[`navigate`]),be={...e,type:k,color:W,variant:ee,danger:G,shape:V,size:ge,disabled:X,loading:ae,iconPlacement:ve},xe=vp(P),Se=vp(w),[Ce,we]=bp([n?void 0:F,S],[n?void 0:I,xe,C,Se],{props:be}),Te=Q(J,te,Y,{[`${J}-${V}`]:V!=="default"&&V!==`square`&&V,[`${J}-${k}`]:k,[`${J}-dangerous`]:c,[`${J}-color-${K}`]:K,[`${J}-variant-${ee}`]:ee,[`${J}-lg`]:ge===`large`,[`${J}-sm`]:ge===`small`,[`${J}-icon-only`]:!m&&m!==0&&!!_e,[`${J}-background-ghost`]:v&&!ov(ee),[`${J}-loading`]:ae,[`${J}-two-chinese-chars`]:se&&q&&!ae,[`${J}-block`]:y,[`${J}-rtl`]:j===`rtl`,[`${J}-icon-end`]:ve===`end`},he,f,p,N,Ce.root),Ee={className:Ce.icon,style:we.icon},De=e=>x.createElement(lv,{prefixCls:J,...Ee},e),Oe=x.createElement(pv,{existIcon:!!h,prefixCls:J,loading:ae,mount:fe.current,...Ee}),ke=ap(r)&&r.icon||L,Ae;Ae=h&&!ae?De(h):r&&ke?De(ke):Oe;let je=np(m)?cv(m,de&&q,we.content,Ce.content):null;if(ye.href!==void 0)return x.createElement(`a`,{...ye,className:Q(Te,{[`${J}-disabled`]:X}),href:X?void 0:ye.href,style:we.root,onClick:pe,ref:ue,tabIndex:X?-1:0,"aria-disabled":X},Ae,je);let Me=x.createElement(`button`,{...D,type:b,className:Te,style:we.root,onClick:pe,disabled:X,ref:ue},Ae,je,he&&x.createElement(My,{prefixCls:J}));return ov(ee)||(Me=x.createElement(q_,{component:`Button`,disabled:ae},Me)),Me});Fy.Group=nv,Fy.__ANT_BUTTON=!0;var Iy=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=x.useRef(!1),f=x.useRef(null),[p,m]=ei(!1),h=(...e)=>{a?.(...e)};x.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let g=e=>{sp(e)&&(m(!0),e.then((...e)=>{m(!1,!0),h.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},_=e=>{if(d.current)return;if(d.current=!0,!u){h();return}let t;if(s){if(t=u(e),l&&!sp(t)){d.current=!1,h(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!sp(t)){h();return}g(t)};return x.createElement(Fy,{...av(t),onClick:_,loading:p,prefixCls:r,...i,ref:f},n)},Ly=x.createContext({}),{Provider:Ry}=Ly,zy=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,x.useContext)(Ly);return i?x.createElement(Iy,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},By=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,x.useContext)(Ly);return x.createElement(Iy,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},Vy=x.createContext({});function Hy(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function Uy(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function Wy(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Uy(i),n.top+=Uy(i,!0),n}var Gy=x.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ky.apply(this,arguments)}var qy=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:v,forceRender:y,width:b,height:S,classNames:C,styles:w,isFixedPos:T,focusTrap:E}=e,{panel:D}=x.useContext(Vy),O=(0,x.useRef)(null),k=Ei(_,D,O),[A]=ca(v&&T&&E!==!1,()=>O.current);x.useImperativeHandle(t,()=>({focus:()=>{O.current?.focus({preventScroll:!0})}}));let j={};b!==void 0&&(j.width=b),S!==void 0&&(j.height=S);let M=s?x.createElement(`div`,{className:Q(`${n}-footer`,C?.footer),style:{...w?.footer}},s):null,N=a?x.createElement(`div`,{className:Q(`${n}-header`,C?.header),style:{...w?.header}},x.createElement(`div`,{className:Q(`${n}-title`,C?.title),id:o,style:{...w?.title}},a)):null,P=(0,x.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??x.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),F=Ra(P,!0),I=typeof c==`object`&&c.disabled,L=c?x.createElement(`button`,Ky({type:`button`,onClick:u,"aria-label":`Close`},F,{className:Q(`${n}-close`,C?.close),disabled:I,style:w?.close}),P.closeIcon):null,R=x.createElement(`div`,{className:Q(`${n}-container`,C?.container),style:w?.container},L,N,x.createElement(`div`,Ky({className:Q(`${n}-body`,C?.body),style:{...f,...w?.body}},p),d),M);return x.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:k,style:{...i,...j},className:Q(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{A(e.target)}},x.createElement(Gy,{shouldUpdate:v||y},m?m(R):R))});function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jy.apply(this,arguments)}var Yy=x.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,x.useRef)(null),m=(0,x.useRef)(null);x.useImperativeHandle(t,()=>({...m.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=x.useState(),_={};h&&(_.transformOrigin=h);function v(){if(!p.current?.nativeElement)return;let e=Wy(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return x.createElement(ep,{visible:o,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>x.createElement(qy,Jy({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,..._},className:Q(a,t)})))});function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xy.apply(this,arguments)}var Zy=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return x.createElement(ep,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>x.createElement(`div`,Xy({ref:a,style:{...r,...n},className:Q(`${t}-mask`,e,o)},i)))};function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(this,arguments)}var $y=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:v,maskProps:y,rootClassName:b,rootStyle:S,classNames:C,styles:w}=e,T=(0,x.useRef)(null),E=(0,x.useRef)(null),D=(0,x.useRef)(null),[O,k]=x.useState(r),[A,j]=x.useState(!1),M=pi();function N(){ji(E.current,document.activeElement)||(T.current=document.activeElement)}function P(){ji(E.current,document.activeElement)||D.current?.focus()}function F(){if(k(!1),m&&T.current&&i){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}O&&u?.()}function I(e){e?P():F(),l?.(e)}function L(e){c?.(e)}let R=(0,x.useRef)(!1),z=null;_&&(z=e=>{E.current===e.target&&R.current&&L(e)});function B(e){R.current=e.target===E.current}(0,x.useEffect)(()=>{if(r){if(R.current=!1,k(!0),N(),E.current){let e=getComputedStyle(E.current);j(e.position===`fixed`)}}else O&&D.current.enableMotion()&&!D.current.inMotion()&&F()},[r]);let V={zIndex:n,...a,...w?.wrapper,display:O?null:`none`};return x.createElement(`div`,Qy({className:Q(`${t}-root`,b),style:S},Ra(e,{data:!0})),x.createElement(Zy,{prefixCls:t,visible:m&&r,motionName:Hy(t,h,g),style:{zIndex:n,...v,...w?.mask},maskProps:y,className:C?.mask}),x.createElement(`div`,Qy({className:Q(`${t}-wrap`,o,C?.wrapper),ref:E,onClick:z,onMouseDown:B,style:V},s),x.createElement(Yy,Qy({},e,{isFixedPos:A,ref:D,closable:p,ariaId:M,prefixCls:t,visible:r&&O,onClose:L,onVisibleChanged:I,motionName:Hy(t,d,f)}))))};function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}var tb=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,scrollLock:l=!0,onClose:u}=e,{scrollLock:d,...f}=e,[p,m]=x.useState(t),h=x.useMemo(()=>({panel:s}),[s]);return x.useEffect(()=>{t&&m(!0)},[t]),!r&&i&&!p?null:x.createElement(Vy.Provider,{value:h},x.createElement(Tm,{open:t||r||p,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),u?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:l&&(t||p)},x.createElement($y,eb({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},nb=`RC_FORM_INTERNAL_HOOKS`,rb=()=>{Da(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},ib=x.createContext({getFieldValue:rb,getFieldsValue:rb,getFieldError:rb,getFieldWarning:rb,getFieldsError:rb,isFieldsTouched:rb,isFieldTouched:rb,isFieldValidating:rb,isFieldsValidating:rb,resetFields:rb,setFields:rb,setFieldValue:rb,setFieldsValue:rb,validateFields:rb,submit:rb,getInternalHooks:()=>(rb(),{dispatch:rb,initEntityValue:rb,registerField:rb,useSubscribe:rb,setInitialValues:rb,destroyForm:rb,setCallbacks:rb,registerWatch:rb,getFields:rb,setValidateMessages:rb,setPreserve:rb,getInitialValue:rb})}),ab=x.createContext(null);function ob(e){return e==null?[]:Array.isArray(e)?e:[e]}function sb(e){return e&&!!e._init}function cb(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var lb=cb(),ub=/%[sdj%]/g,db=()=>{};function fb(e){if(!e||!e.length)return null;let t={};return e.forEach(e=>{let n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function pb(e,...t){let n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(ub,e=>{if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}default:return e}}):e}function mb(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function hb(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||mb(t)&&typeof e==`string`&&!e)}function gb(e,t,n){let r=[],i=0,a=e.length;function o(e){r.push(...e||[]),i++,i===a&&n(r)}e.forEach(e=>{t(e,o)})}function _b(e,t,n){let r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}let s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function vb(e){let t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}var yb=class extends Error{errors;fields;constructor(e,t){super(`Async Validation Error`),this.errors=e,this.fields=t}};function bb(e,t,n,r,i){if(t.first){let t=new Promise((t,a)=>{_b(vb(e),n,e=>(r(e),e.length?a(new yb(e,fb(e))):t(i)))});return t.catch(e=>e),t}let a=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),s=o.length,c=0,l=[],u=new Promise((t,u)=>{let d=e=>{if(l.push.apply(l,e),c++,c===s)return r(l),l.length?u(new yb(l,fb(l))):t(i)};o.length||(r(l),t(i)),o.forEach(t=>{let r=e[t];a.indexOf(t)===-1?gb(r,n,d):_b(r,n,d)})});return u.catch(e=>e),u}function xb(e){return!!(e&&e.message!==void 0)}function Sb(e,t){let n=e;for(let e=0;e<t.length;e++){if(n==null)return n;n=n[t[e]]}return n}function Cb(e,t){return n=>{let r;return r=e.fullFields?Sb(t,e.fullFields):t[n.field||e.fullField],xb(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 wb(e,t){if(t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e[n]=typeof r==`object`&&typeof e[n]==`object`?{...e[n],...r}:r}}return e}var Tb=`enum`,Eb=(e,t,n,r,i)=>{e[Tb]=Array.isArray(e[Tb])?e[Tb]:[],e[Tb].indexOf(t)===-1&&r.push(pb(i.messages[Tb],e.fullField,e[Tb].join(`, `)))},Db=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(pb(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(pb(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Ob=(e,t,n,r,i)=>{let a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(pb(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(pb(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(pb(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(pb(i.messages[u].range,e.fullField,e.min,e.max))},kb=(e,t,n,r,i,a)=>{e.required&&(!n.hasOwnProperty(e.field)||hb(t,a||e.type))&&r.push(pb(i.messages.required,e.fullField))},Ab,jb=(()=>{if(Ab)return Ab;let e=`[a-fA-F\\d:]`,t=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:``,n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}$)|(?:^${i}$)`),o=RegExp(`^${n}$`),s=RegExp(`^${i}$`),c=e=>e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`);c.v4=e=>e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`),c.v6=e=>e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`);let l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Ab=RegExp(`(?:^${l}$)`,`i`),Ab}),Mb={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Nb={integer(e){return Nb.number(e)&&parseInt(e,10)===e},float(e){return Nb.number(e)&&!Nb.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number(e){return!isNaN(e)&&typeof e==`number`},object(e){return typeof e==`object`&&!Nb.array(e)},method(e){return typeof e==`function`},email(e){return typeof e==`string`&&e.length<=320&&!!e.match(Mb.email)},tel(e){return typeof e==`string`&&e.length<=32&&!!e.match(Mb.tel)},url(e){return typeof e==`string`&&e.length<=2048&&!!e.match(jb())},hex(e){return typeof e==`string`&&!!e.match(Mb.hex)}},Pb={required:kb,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t===``)&&r.push(pb(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){kb(e,t,n,r,i);return}let a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Nb[o](t)||r.push(pb(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(pb(i.messages.types[o],e.fullField,e.type))},range:Ob,enum:Eb,pattern:Db},Fb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i)}n(a)},Ib=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Pb.required(e,t,r,a,i,`array`),t!=null&&(Pb.type(e,t,r,a,i),Pb.range(e,t,r,a,i))}n(a)},Lb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&Pb.type(e,t,r,a,i)}n(a)},Rb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t,`date`)&&!e.required)return n();if(Pb.required(e,t,r,a,i),!hb(t,`date`)){let n;n=t instanceof Date?t:new Date(t),Pb.type(e,n,r,a,i),n&&Pb.range(e,n.getTime(),r,a,i)}}n(a)},zb=`enum`,Bb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&Pb[zb](e,t,r,a,i)}n(a)},Vb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&(Pb.type(e,t,r,a,i),Pb.range(e,t,r,a,i))}n(a)},Hb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&(Pb.type(e,t,r,a,i),Pb.range(e,t,r,a,i))}n(a)},Ub=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&Pb.type(e,t,r,a,i)}n(a)},Wb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&(Pb.type(e,t,r,a,i),Pb.range(e,t,r,a,i))}n(a)},Gb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),t!==void 0&&Pb.type(e,t,r,a,i)}n(a)},Kb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t,`string`)&&!e.required)return n();Pb.required(e,t,r,a,i),hb(t,`string`)||Pb.pattern(e,t,r,a,i)}n(a)},qb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t)&&!e.required)return n();Pb.required(e,t,r,a,i),hb(t)||Pb.type(e,t,r,a,i)}n(a)},Jb=(e,t,n,r,i)=>{let a=[],o=Array.isArray(t)?`array`:typeof t;Pb.required(e,t,r,a,i,o),n(a)},Yb=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t,`string`)&&!e.required)return n();Pb.required(e,t,r,a,i,`string`),hb(t,`string`)||(Pb.type(e,t,r,a,i),Pb.range(e,t,r,a,i),Pb.pattern(e,t,r,a,i),e.whitespace===!0&&Pb.whitespace(e,t,r,a,i))}n(a)},Xb=(e,t,n,r,i)=>{let a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hb(t,a)&&!e.required)return n();Pb.required(e,t,r,o,i,a),hb(t,a)||Pb.type(e,t,r,o,i)}n(o)},Zb={string:Yb,method:Ub,number:Wb,boolean:Lb,regexp:qb,integer:Hb,float:Vb,array:Ib,object:Gb,enum:Bb,pattern:Kb,date:Rb,url:Xb,hex:Xb,email:Xb,tel:Xb,required:Jb,any:Fb},Qb=class e{static register=function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Zb[e]=t};static warning=db;static messages=lb;static validators=Zb;rules=null;_messages=lb;constructor(e){this.define(e)}define(e){if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(t=>{let n=e[t];this.rules[t]=Array.isArray(n)?n:[n]})}messages(e){return e&&(this._messages=wb(cb(),e)),this._messages}validate(t,n={},r=()=>{}){let i=t,a=n,o=r;if(typeof a==`function`&&(o=a,a={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(null,i),Promise.resolve(i);function s(e){let t=[],n={};function r(e){Array.isArray(e)?t=t.concat(...e):t.push(e)}for(let t=0;t<e.length;t++)r(e[t]);t.length?(n=fb(t),o(t,n)):o(null,i)}if(a.messages){let e=this.messages();e===lb&&(e=cb()),wb(e,a.messages),a.messages=e}else a.messages=this.messages();let c={};(a.keys||Object.keys(this.rules)).forEach(e=>{let n=this.rules[e],r=i[e];n.forEach(n=>{let a=n;typeof a.transform==`function`&&(i===t&&(i={...i}),r=i[e]=a.transform(r),r!=null&&(a.type=a.type||(Array.isArray(r)?`array`:typeof r))),a=typeof a==`function`?{validator:a}:{...a},a.validator=this.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=this.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))})});let l={};return bb(c,a,(t,n)=>{let r=t.rule,o=(r.type===`object`||r.type===`array`)&&(typeof r.fields==`object`||typeof r.defaultField==`object`);o&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return{...t,fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[...r.fullFields,e]:[e]}}function c(c=[]){let u=Array.isArray(c)?c:[c];!a.suppressWarning&&u.length&&e.warning(`async-validator:`,u),u.length&&r.message!==void 0&&r.message!==null&&(u=[].concat(r.message));let d=u.map(Cb(r,i));if(a.first&&d.length)return l[r.field]=1,n(d);if(!o)n(d);else{if(r.required&&!t.value)return r.message===void 0?a.error&&(d=[a.error(r,pb(a.messages.required,r.field))]):d=[].concat(r.message).map(Cb(r,i)),n(d);let o={};r.defaultField&&Object.keys(t.value).map(e=>{o[e]=r.defaultField}),o={...o,...t.rule.fields};let c={};Object.keys(o).forEach(e=>{let t=o[e];c[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});let l=new e(c);l.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),l.validate(t.value,t.rule.options||a,e=>{let t=[];d&&d.length&&t.push(...d),e&&e.length&&t.push(...e),n(t.length?t:null)})}}let u;if(r.asyncValidator)u=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{u=r.validator(r,t.value,c,t.source,a)}catch(e){console.error?.(e),a.suppressValidatorError||setTimeout(()=>{throw e},0),c(e.message)}u===!0?c():u===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):u instanceof Array?c(u):u instanceof Error&&c(u.message)}u&&u.then&&u.then(()=>c(),e=>c(e))},e=>{s(e)},i)}getType(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!Zb.hasOwnProperty(e.type))throw Error(pb(`Unknown rule type %s`,e.type));return e.type||`string`}getValidationMethod(e){if(typeof e.validator==`function`)return e.validator;let t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?Zb.required:Zb[this.getType(e)]||void 0}},$b="'${name}' is not a valid ${type}",ex={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:$b,method:$b,array:$b,object:$b,number:$b,date:$b,boolean:$b,integer:$b,float:$b,regexp:$b,email:$b,tel:$b,url:$b,hex:$b},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}"}},tx=Qb;function nx(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var rx=`CODE_LOGIC_ERROR`;async function ix(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,tx.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(rx)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new tx({[e]:[a]}),c=Ya(ex,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===rx?c.default:e;return x.isValidElement(n)?x.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>ix(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?nx(e,u):e)}function ax(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{Da(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,Da(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await ix(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>ix(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?sx(e):ox(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function ox(e){return Promise.all(e).then(e=>[].concat(...e))}async function sx(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function cx(e){return ob(e)}function lx(e,t){let n={};return t.forEach(t=>{let r=Ha(e,t);n=Wa(n,t,r)}),n}function ux(e,t,n=!1){return e&&e.some(e=>dx(t,e,n))}function dx(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function fx(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`||r===i})}function px(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function mx(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var hx=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},gx=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!dx(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;hx(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function _x(){return new Promise(e=>{hx(()=>{si(()=>{e()})})})}function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vx.apply(this,arguments)}var yx=[],bx=[];function xx(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var Sx=class extends x.PureComponent{static contextType=ib;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=yx;warnings=bx;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(nb);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(nb);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,cx(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};ka(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&ux(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!ka(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=yx,this.warnings=bx,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=yx,this.warnings=bx,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&xx(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||yx),`warnings`in i&&(this.warnings=i.warnings||bx),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}if(`value`in i&&ux(t,s,!0)){this.reRender();return}if(r&&!s.length&&xx(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(cx).some(e=>ux(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&xx(r,e,o,c,l,n)){this.reRender();return}}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await _x();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return!t||ob(t).includes(r)})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=ax(t,n,l,e,i,s);return u.catch(e=>e).then((e=yx)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=yx})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=yx,this.warnings=bx,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(nb);return t(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=Ba(e);return t.length!==1||!x.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return Ha(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(nb),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t=this.getValue(),n;n=i?i(...e):px(o,...e),a&&(n=a(n,t,f(!0))),n!==t&&p({type:`updateValue`,namePath:u,value:n}),g&&g(...e)},ob(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:x.isValidElement(n)?i=x.cloneElement(n,this.getControlled(n.props)):(Da(!n,"`children` of Field is not validate ReactElement."),i=n),x.createElement(x.Fragment,{key:e},i)}};function Cx({name:e,...t}){let n=x.useContext(ib),r=x.useContext(ab),i=e===void 0?void 0:cx(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),x.createElement(Sx,vx({key:o,name:i,isListField:a},t,{fieldContext:n}))}function wx({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=x.useContext(ib),s=x.useContext(ab),c=x.useRef({keys:[],id:0}).current,l=x.useMemo(()=>[...cx(o.prefixName)||[],...cx(e)],[o.prefixName,e]),u=x.useMemo(()=>({...o,prefixName:l}),[o,l]),d=x.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?x.createElement(ab.Provider,{value:d},x.createElement(ib.Provider,{value:u},x.createElement(Cx,{name:[],shouldUpdate:(e,t,{source:n})=>n!==`internal`&&e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=mx(c.keys,e,n),t(mx(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(Da(!1,`Form.List only accepts function as children.`),null)}function Tx(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Ex=`__@field_split__`;function Dx(e){return e.map(e=>`${typeof e}:${e}`).join(Ex)}var Ox=class{kvs=new Map;set(e,t){this.kvs.set(Dx(e),t)}get(e){return this.kvs.get(Dx(e))}getAsPrefix(e){let t=Dx(e),n=t+Ex,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Dx(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(Ex).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},kx=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new gx(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Da(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=Ya(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=Wa(t,n,Ha(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new Ox;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=Ha(this.initialValues,e);return e.length?Ya(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new Ox;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=cx(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=cx(e);return n.get(t)||{INVALIDATE_NAME_PATH:cx(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=lx(this.store,a.map(cx));return o.forEach(e=>{Ha(s,e)||(s=Wa(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=cx(e);return Ha(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:cx(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=cx(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=cx(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(cx),i=!1):(r=null,i=t):(r=t.map(cx),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new Ox;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(cx);return t.some(e=>{let t=e.getNamePath();return ux(n,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new Ox,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)Da(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)Da(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(Wa(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(Ya(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(cx);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(Wa(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=cx(r);n.push(a),`value`in i&&this.updateStore(Wa(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();Ha(this.store,n)===void 0&&this.updateStore(Wa(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!dx(e.getNamePath(),t))){let n=this.store;this.updateStore(Wa(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=cx(e),r=this.store;this.updateStore(Wa(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=lx(this.store,[n]);a(e,Wa(this.getFieldsValue(),n,Ha(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=Ya(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new Ox;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=cx(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new Ox;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>ux(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(cx):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>dx(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||ux(a,t,u))){let n=e.validateRules({validateMessages:{...ex,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Tx(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function Ax(e){let t=x.useRef(null),[,n]=x.useState({});return t.current||=e||new kx(()=>{n({})}).getForm(),[t.current]}var jx=x.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Mx=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=x.useContext(jx),a=x.useRef({});return x.createElement(jx.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nx.apply(this,arguments)}var Px=(e,t)=>{let{name:n,initialValues:r,fields:i,form:a,preserve:o,children:s,component:c=`form`,validateMessages:l,validateTrigger:u=`onChange`,onValuesChange:d,onFieldsChange:f,onFinish:p,onFinishFailed:m,clearOnDestroy:h,...g}=e,_=x.useRef(null),v=x.useContext(jx),[y]=Ax(a),{useSubscribe:b,setInitialValues:S,setCallbacks:C,setValidateMessages:w,setPreserve:T,destroyForm:E}=y.getInternalHooks(nb);x.useImperativeHandle(t,()=>({...y,nativeElement:_.current})),x.useEffect(()=>(v.registerForm(n,y),()=>{v.unregisterForm(n)}),[v,y,n]),w({...v.validateMessages,...l}),C({onValuesChange:d,onFieldsChange:(e,...t)=>{v.triggerFormChange(n,e),f&&f(e,...t)},onFinish:e=>{v.triggerFormFinish(n,e),p&&p(e)},onFinishFailed:m}),T(o);let D=x.useRef(null);S(r,!D.current),D.current||=!0,x.useEffect(()=>()=>E(h),[]);let O,k=typeof s==`function`;O=k?s(y.getFieldsValue(!0),y):s,b(!k);let A=x.useRef(null);x.useEffect(()=>{fx(A.current||[],i||[])||y.setFields(i||[]),A.current=i},[i,y]);let j=x.useMemo(()=>({...y,validateTrigger:u}),[y,u]),M=x.createElement(ab.Provider,{value:null},x.createElement(ib.Provider,{value:j},O));return c===!1?M:x.createElement(c,Nx({},g,{ref:_,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),g.onReset?.(e)}}),M)};function Fx(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Ix(...e){let[t,n={}]=e,r=sb(n)?{form:n}:n,i=r.form,[a,o]=(0,x.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,x.useMemo)(()=>Fx(a),[a]),c=(0,x.useRef)(s);c.current=s;let l=(0,x.useContext)(ib),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(nb),h=Yr((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):Ha(i,cx(t));Fx(a)!==Fx(s)&&o(s)}),g=typeof t==`function`?t:JSON.stringify(t);return(0,x.useEffect)(()=>{d&&h()},[d,g]),(0,x.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var Lx=x.forwardRef(Px);Lx.FormProvider=Mx,Lx.Field=Cx,Lx.List=wx,Lx.useForm=Ax,Lx.useWatch=Ix;var Rx=x.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),zx=x.createContext(null),Bx=e=>{let t=Na(e,[`prefixCls`]);return x.createElement(Mx,{...t})},Vx=x.createContext({prefixCls:``}),Hx=x.createContext({}),Ux=({children:e,status:t,override:n})=>{let r=x.useContext(Hx),i=x.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return x.createElement(Hx.Provider,{value:i},e)},Wx=x.createContext(void 0),Gx=e=>{let{space:t,form:n,children:r}=e;if(!np(r))return null;let i=r;return n&&(i=x.createElement(Ux,{override:!0,status:!0},i)),t&&(i=x.createElement(Q_,null,i)),i},Kx=()=>Xr()&&window.document.documentElement;function qx(e,t,n){return(0,x.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}var Jx=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Q({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=Q({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=x.useMemo(()=>rp(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return x.createElement(`span`,{className:Q(t,o,s,n),style:{...c,...r}})},Yx=new Gc(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),Xx=e=>({height:e,lineHeight:$(e)}),Zx=e=>({width:e,...Xx(e)}),Qx=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:Yx,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),$x=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Xx(e)}),eS=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Zx(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Zx(i)},[`${t}${t}-sm`]:{...Zx(a)}}},tS=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...$x(t,s)},[`${r}-lg`]:{...$x(i,s)},[`${r}-sm`]:{...$x(a,s)}}},nS=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...Zx(i(r).mul(2).equal())}},rS=e=>({[e.skeletonNodeCls]:{...nS(e)}}),iS=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...nS(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Zx(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},aS=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},oS=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Xx(e)}),sS=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...oS(r,s)},...aS(e,r,n),[`${n}-lg`]:{...oS(i,s)},...aS(e,i,`${n}-lg`),[`${n}-sm`]:{...oS(a,s)},...aS(e,a,`${n}-sm`)}},cS=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...Zx(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Zx(u)},[`${n}-sm`]:{...Zx(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...sS(e),...eS(e),...tS(e),...rS(e),...iS(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
|
|
151
|
+
${r},
|
|
152
|
+
${i} > li,
|
|
153
|
+
${n},
|
|
154
|
+
${a},
|
|
155
|
+
${o},
|
|
156
|
+
${s},
|
|
157
|
+
${c}
|
|
158
|
+
`]:{...Qx(e)}}}},lS=fd(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return cS(wl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),uS=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=x.useContext(Ao),f=d(`skeleton`,t),[p,m]=lS(f),h=J_(e=>l??e),g=Q(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return x.createElement(`div`,{className:g,style:s?.root},x.createElement(Jx,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},dS=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=x.useContext(Ao),f=d(`skeleton`,t),[p,m]=lS(f),h=J_(e=>l??e),g=Q(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return x.createElement(`div`,{className:g,style:s?.root},x.createElement(Jx,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},fS=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=x.useContext(Ao),d=u(`skeleton`,t),[f,p]=lS(d),m=Q(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return x.createElement(`div`,{className:m,style:s?.root},x.createElement(`div`,{className:Q(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},pS=e=>{let{getPrefixCls:t}=x.useContext(Ao),n=t(`skeleton`,e.prefixCls);return x.createElement(fS,{...e,internalClassName:`${n}-image`},x.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},x.createElement(`title`,null,`Image placeholder`),x.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},mS=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=x.useContext(Ao),f=d(`skeleton`,t),[p,m]=lS(f),h=J_(e=>l??e),g=Q(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return x.createElement(`div`,{className:g,style:c?.root},x.createElement(Jx,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},hS=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},gS=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>x.createElement(`li`,{key:n,style:{width:hS(n,e)}}));return x.createElement(`ul`,{className:Q(t,n),style:r},a)},_S=({prefixCls:e,className:t,width:n,style:r})=>x.createElement(`h3`,{className:Q(e,t),style:{width:n,...r}});function vS(e){return ap(e)?e:{}}function yS(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function bS(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function xS(e,t){let n={};return(!e||!t)&&(n.width=`61%`),n.rows=!e&&t?3:2,n}var SS=x.forwardRef((e,t)=>{let{prefixCls:n,loading:r,className:i,rootClassName:a,classNames:o,style:s,styles:c,children:l,avatar:u=!1,title:d=!0,paragraph:f=!0,active:p,round:m}=e,{getPrefixCls:h,direction:g,className:_,style:v,classNames:y,styles:b}=No(`skeleton`),S=h(`skeleton`,n),[C,w]=lS(S),T={...e,avatar:u,title:d,paragraph:f},E=vp(v),D=vp(s),[O,k]=bp([y,o],[b,E,c,D],{props:T}),A=x.useRef(null);if(x.useImperativeHandle(t,()=>({nativeElement:A.current})),r||!(`loading`in e)){let e=!!u,t=!!d,n=!!f,r;if(e){let e={className:O.avatar,prefixCls:`${S}-avatar`,...yS(t,n),...vS(u),style:k.avatar};r=x.createElement(`div`,{className:Q(O.header,`${S}-header`),style:k.header},x.createElement(Jx,{...e}))}let o;if(t||n){let r;if(t){let t={className:O.title,prefixCls:`${S}-title`,...bS(e,n),...vS(d),style:k.title};r=x.createElement(_S,{...t})}let i;if(n){let n={className:O.paragraph,prefixCls:`${S}-paragraph`,...xS(e,t),...vS(f),style:k.paragraph};i=x.createElement(gS,{...n})}o=x.createElement(`div`,{className:Q(O.section,`${S}-section`),style:k.section},r,i)}let s=Q(S,{[`${S}-with-avatar`]:e,[`${S}-active`]:p,[`${S}-rtl`]:g===`rtl`,[`${S}-round`]:m},O.root,_,i,a,C,w);return x.createElement(`div`,{ref:A,className:s,style:k.root},r,o)}return l??null});SS.Button=dS,SS.Avatar=uS,SS.Input=mS,SS.Image=pS,SS.Node=fS;var CS=SS;function wS(){}var TS=x.createContext({add:wS,remove:wS});function ES(e){let t=x.useContext(TS),n=x.useRef(null);return Yr(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var DS=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,x.useContext)(Ly);return x.createElement(Fy,{onClick:n,...e},t)},OS=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,x.useContext)(Ly);return x.createElement(Fy,{...av(n),loading:e,onClick:i,...t},r)};function kS(e,t){return x.createElement(`span`,{className:`${e}-close-x`},t||x.createElement(nf,{className:`${e}-close-icon`}))}var AS=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=im(`Modal`,nm()),d=t||u?.okText,f=r||u?.cancelText,p=x.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return op(l)||l===void 0?(m=x.createElement(x.Fragment,null,x.createElement(DS,null),x.createElement(OS,null)),op(l)&&(m=l(m,{OkBtn:OS,CancelBtn:DS})),m=x.createElement(Ry,{value:p},m)):m=l,x.createElement(mh,{disabled:!1},m)},jS=e=>{let{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`}}}},MS=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},NS=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=hd(i,`grid`),[,s]=hd(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},PS=(e,t)=>NS(e,t),FS=(e,t,n)=>({[`@media (min-width: ${$(t)})`]:{...PS(e,n)}}),IS=()=>({}),LS=()=>({}),RS=fd(`Grid`,jS,IS),zS=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),BS=fd(`Grid`,e=>{let t=wl(e,{gridColumns:24}),n=zS(t);return delete n.xs,[MS(t),PS(t,``),PS(t,`-xs`),Object.keys(n).map(e=>FS(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},LS);function VS(e){return{position:e,inset:0}}var HS=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...VS(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...VS(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:yv(e)}]},US=e=>{let{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${$(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...nd(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${$(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...od(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{position:`absolute`,top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:`pointer`,transition:[`color`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:$(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...sd(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${$(e.borderRadiusLG)} ${$(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:`${$(e.margin)} auto`}},[`${t}-footer`]:{textAlign:`end`,background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:`hidden`}}},{[`${t}-pure-panel`]:{top:`auto`,padding:0,display:`flex`,flexDirection:`column`,[`${t}-container,
|
|
159
|
+
${t}-body,
|
|
160
|
+
${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},WS=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},GS=e=>{let{componentCls:t}=e,n=zS(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${$(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Do(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],Do(a))}}},KS=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return wl(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()})},qS=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${$(e.paddingMD)} ${$(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${$(e.padding)} ${$(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${$(e.paddingXS)} ${$(e.padding)}`:0,footerBorderTop:e.wireframe?`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${$(e.padding*2)} ${$(e.padding*2)} ${$(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),JS=fd(`Modal`,e=>{let t=KS(e);return[US(t),WS(t),HS(t),$v(t,`zoom`),GS(t)]},qS,{unitless:{titleLineHeight:!0}}),YS;Kx()&&document.documentElement.addEventListener(`click`,e=>{YS={x:e.pageX,y:e.pageY},setTimeout(()=>{YS=null},100)},!0);var XS=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:v,onCancel:y,okButtonProps:b,cancelButtonProps:S,destroyOnHidden:C,destroyOnClose:w,panelRef:T=null,closable:E,mask:D,modalRender:O,maskClosable:k,_semanticOmit:A,scrollLock:j,focusTriggerAfterClose:M,focusable:N,_renderSemanticContent:P,...F}=e,{getPopupContainer:I,getPrefixCls:L,direction:R,className:z,style:B,classNames:V,styles:H,centered:U,cancelButtonProps:W,okButtonProps:ee,mask:G,focusable:K}=No(`modal`),{modal:q}=x.useContext(Ao),[J,te]=x.useMemo(()=>typeof E==`boolean`?[void 0,void 0]:[E?.afterClose,E?.onClose],[E]),Y=L(`modal`,t),ne=L(),[X,re,ie]=wg(D,G,Y,k),ae=qx({...K,...N},X,M),oe=e=>{h||(y?.(e),te?.())},se=e=>{v?.(e),te?.()},ce=Up(Y),[le,ue]=JS(Y,ce),de=Q(a,{[`${Y}-centered`]:o??U,[`${Y}-wrap-rtl`]:R===`rtl`}),fe=u!==null&&!m?x.createElement(AS,{...e,okButtonProps:{...ee,...b},onOk:se,cancelButtonProps:{...W,...S},onCancel:oe}):null,[pe,me,he,ge]=xg(hg(e),hg(q),{closable:!0,closeIcon:x.createElement(nf,{className:`${Y}-close-icon`}),closeIconRender:e=>kS(Y,e)}),_e=pe?{disabled:he,closeIcon:me,afterClose:J,...ge}:!1,ve=O?e=>x.createElement(`div`,{className:`${Y}-render`},O(e)):void 0,ye=Ti(T,ES(`.${Y}-${O?`render`:`container`}`)),[be,xe]=Rg(`Modal`,g),Se={...e,width:l,panelRef:T,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusable:ae,mask:X,maskClosable:ie,zIndex:be},[Ce,we]=bp([V,d,re],[H,f],{props:Se}),Te=A?Na(Ce,A):Ce,Ee=A?Na(we,A):we,De=P?P({classNames:Ce,styles:we}):p,[Oe,ke]=x.useMemo(()=>ap(l)?[void 0,l]:[l,void 0],[l]),Ae=x.useMemo(()=>{let e={};return ke&&Object.keys(ke).forEach(t=>{let n=ke[t];tp(n)&&(e[`--${Y}-${t}-width`]=rp(n)?`${n}px`:n)}),e},[Y,ke]);return x.createElement(Gx,{form:!0,space:!0},x.createElement(Mg.Provider,{value:xe},x.createElement(tb,{width:Oe,...F,zIndex:be,getContainer:s===void 0?I:s,prefixCls:Y,rootClassName:Q(le,r,ue,ce,Te.root),rootStyle:Ee.root,footer:fe,visible:i,mousePosition:_??YS,onClose:oe,closable:_e,closeIcon:me,transitionName:L_(ne,`zoom`,e.transitionName),maskTransitionName:L_(ne,`fade`,e.maskTransitionName),mask:X,maskClosable:ie,scrollLock:j,className:Q(le,n,z),style:{...B,...c,...Ae},classNames:{...Te,wrapper:Q(Te.wrapper,de)},styles:Ee,panelRef:ye,destroyOnHidden:C??w,modalRender:ve,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},m?x.createElement(CS,{active:!0,title:!1,paragraph:{rows:4},className:`${Y}-body-skeleton`}):De)))},ZS=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...ad()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${$(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${$(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
|
161
|
+
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},QS=md([`Modal`,`confirm`],e=>ZS(KS(e)),qS,{order:-1e3}),$S=[`body`],eC=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,contentClassName:f,contentStyle:p,...m}=e,{infoIcon:h,successIcon:g,errorIcon:_,warningIcon:v}=No(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=pg(h,x.createElement(lf,null));break;case`success`:y=pg(g,x.createElement(Xd,null));break;case`error`:y=pg(_,x.createElement($d,null));break;default:y=pg(v,x.createElement(of,null))}let b=s??o===`confirm`,S=x.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[C]=im(`Modal`),w=l||C,T=r||(b?w?.okText:w?.justOkText),E=i||w?.cancelText,{closable:D}=m,{onClose:O}=ap(D)?D:{},k=x.useMemo(()=>({autoFocusButton:S,cancelTextLocale:E,okTextLocale:T,mergedOkCancel:b,onClose:O,...m}),[S,E,T,b,O,m]),A=x.createElement(x.Fragment,null,x.createElement(zy,null),x.createElement(By,null)),j=np(e.title),M=np(y),N=`${a}-body`;return x.createElement(`div`,{className:`${a}-body-wrapper`},x.createElement(`div`,{className:Q(N,{[`${N}-has-title`]:j,[`${N}-no-icon`]:!M})},y,x.createElement(`div`,{className:`${a}-paragraph`},j&&x.createElement(`span`,{className:`${a}-title`},e.title),x.createElement(`div`,{className:Q(`${a}-content`,f),style:p},e.content))),c===void 0||op(c)?x.createElement(Ry,{value:k},x.createElement(`div`,{className:`${a}-btns`},op(c)?c(A,{OkBtn:By,CancelBtn:zy}):A)):c,x.createElement(QS,{prefixCls:t}))},tC=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:v}=No(`modal`),y=`${a}-confirm`,b=e.width||416,S=e.style||{},C=op(d)?e=>({body:c,mask:r,...d(e)}):{body:c,mask:r,...d},w=Na(e,[`bodyStyle`,`maskStyle`]),T=Q(y,`${y}-${e.type}`,{[`${y}-rtl`]:i===`rtl`},e.className),E=x.useMemo(()=>{let e=Cg(p,m);return e.closable??=!1,e},[p,m]),[,D]=ed(),O=x.useMemo(()=>n===void 0?D.zIndexPopupBase+Pg:n,[n,D]);return x.createElement(XS,{...w,className:T,wrapClassName:Q({[`${y}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:L_(s||``,`zoom`,e.transitionName),maskTransitionName:L_(s||``,`fade`,e.maskTransitionName),mask:E,style:S,styles:C,width:b,zIndex:O,closable:l,_semanticOmit:$S,_renderSemanticContent:({classNames:t,styles:n})=>x.createElement(eC,{...e,confirmPrefixCls:y,okButtonProps:{...v,...h},cancelButtonProps:{..._,...g},contentClassName:t.body,contentStyle:n.body})})},nC=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return x.createElement(Nh,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},x.createElement(tC,{...e}))},rC=[],iC=``;function aC(){return iC}var oC=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=nm(),a=(0,x.useContext)(Ao),o=aC()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),x.createElement(nC,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function sC(e){let t=jh(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<rC.length;e++)if(rC[e]===s){rC.splice(e,1);break}Qa(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,aC()),i=t.getIconPrefixCls(),a=t.getTheme(),o=x.createElement(oC,{...e});Za(x.createElement(Nh,{prefixCls:r,iconPrefixCls:i,theme:a},op(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{op(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=op(e)?e(r):{...r,...e},o(r)}return o(r),rC.push(s),{destroy:s,update:c}}function cC(e){return{...e,type:`warning`}}function lC(e){return{...e,type:`info`}}function uC(e){return{...e,type:`success`}}function dC(e){return{...e,type:`error`}}function fC(e){return{...e,type:`confirm`}}function pC({rootPrefixCls:e}){iC=e}var mC=x.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=x.useState(!0),[s,c]=x.useState(r),{direction:l,getPrefixCls:u}=x.useContext(Ao),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};x.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=op(e)?e(t):e;return{...t,...n}})}}));let h=s.okCancel??s.type===`confirm`,[g]=im(`Modal`,Zp.Modal);return x.createElement(nC,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(h?g?.okText:g?.justOkText),direction:s.direction||l,cancelText:s.cancelText||g?.cancelText,...i})}),hC=0,gC=x.memo(x.forwardRef((e,t)=>{let[n,r]=Og();return x.useImperativeHandle(t,()=>({patchElement:r}),[r]),x.createElement(x.Fragment,null,n)}));function _C(){let e=x.useRef(null),[t,n]=x.useState([]);x.useEffect(()=>{t.length&&(Do(t).forEach(e=>{e()}),n([]))},[t]);let r=x.useCallback(t=>function(r){hC+=1;let i=x.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=x.createElement(mC,{key:`modal-${hC}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&rC.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(Do(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(Do(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[x.useMemo(()=>({info:r(lC),success:r(uC),error:r(dC),warning:r(cC),confirm:r(fC)}),[r]),x.createElement(gC,{key:`modal-holder`,ref:e})]}var vC={info:x.createElement(lf,null),success:x.createElement(Xd,null),error:x.createElement($d,null),warning:x.createElement(of,null),loading:x.createElement(fg,null)};function yC(e,t){return t===null||t===!1?null:t||x.createElement(nf,{className:`${e}-close-icon`})}var bC=4.5,xC=`topRight`,SC={offset:8},CC=({children:e,prefixCls:t})=>{let n=Up(t),[r,i]=d_(t,n);return x.createElement(Gh,{classNames:{list:Q(r,i,n)}},e)},wC=(e,{prefixCls:t,key:n})=>x.createElement(CC,{prefixCls:t,key:n},e),TC=x.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:c,stack:l,duration:u=bC,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,direction:h}=No(`notification`),{notification:g}=(0,x.useContext)(Ao),[_]=im(`global`,Zp.global),v=i||p(`notification`),y=(0,x.useMemo)(()=>rp(u)&&u>0?u:!1,[u]),b=vp(g?.style),[S,C]=bp([g?.classNames,e?.classNames],[g?.styles,b,e?.styles],{props:e}),w=()=>sg(n,r),T=()=>Q({[`${v}-rtl`]:s??h===`rtl`}),E=()=>cg(v),D=og(l,SC),[O,k]=ag({prefixCls:v,style:w,className:T,motion:E,closable:{closeIcon:yC(v)},duration:y,getContainer:()=>a?.()||m?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,classNames:S,styles:C,onAllRemoved:c,renderNotifications:wC,stack:D});return x.useImperativeHandle(t,()=>({...O,prefixCls:v,notification:g,closeLabel:_.close??Zp.global?.close??`Close`})),k});function EC(e){let t=x.useRef(null);io(`Notification`);let{notification:n}=x.useContext(Ao);return[x.useMemo(()=>{let r=r=>{if(!t.current)return;let{open:i,prefixCls:a,notification:o,closeLabel:s}=t.current,c=o?.className||{},l=`${a}-notice`,{title:u,message:d,description:f,icon:p,type:m,btn:h,actions:g,className:_,style:v,role:y=`alert`,closeIcon:b,closable:x,classNames:S={},styles:C={},...w}=r,T=u??d,E=np(T),D=g??h,O=yC(l,lg(b,e,o)),[k,A,,j]=bg(hg({...e||{},...r}),hg(n),{closable:!0,closeIcon:O},s),M=k?{onClose:ap(x)?x.onClose:void 0,closeIcon:A,...j}:!1,N=yp(S,{props:r}),P=yp(C,{props:r}),F=p||(m?vC[m]:null),I=!p&&m?`${l}-icon-${m}`:void 0;return i({placement:e?.placement??xC,...w,title:E?T:null,description:f,icon:F,actions:D,role:y,classNames:{...N,icon:Q(I,N?.icon)},styles:P,className:Q({[`${l}-${m}`]:m},_,c),style:v,closable:M})},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r({...t,type:e})}),i},[e,n]),x.createElement(TC,{key:`notification-holder`,...e,ref:t})]}function DC(e){return EC(e)}var OC=x.createContext({}),kC=x.createContext({message:{},notification:{},modal:{}}),AC=fd(`App`,e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:`rtl`}}}},()=>({})),jC=x.forwardRef((e,t)=>{let{prefixCls:n,children:r,className:i,rootClassName:a,message:o,notification:s,style:c,component:l=`div`}=e,{direction:u,getPrefixCls:d,className:f,style:p}=No(`app`),m=d(`app`,n),[h,g]=AC(m),_=Q(h,m,i,a,g,{[`${m}-rtl`]:u===`rtl`}),v=(0,x.useContext)(OC),y=x.useMemo(()=>({message:{...v.message,...o},notification:{...v.notification,...s}}),[o,s,v.message,v.notification]),[b,S]=j_(y.message),[C,w]=DC(y.notification),[T,E]=_C(),D=x.useMemo(()=>({message:b,notification:C,modal:T}),[b,C,T]),O=ro(`App`);O(!(g&&l===!1&&(i||a||c||f||p)),`usage`,"When using cssVar, ensure `component` is assigned a valid React component string."),O(!t||l!==!1,`usage`,"`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let k=l===!1?x.Fragment:l,A={className:Q(f,_),style:{...p,...c}};return x.createElement(kC.Provider,{value:D},x.createElement(OC.Provider,{value:y},x.createElement(k,{...l===!1?void 0:{...A,ref:t}},E,S,w,r)))}),MC=()=>x.useContext(kC),NC=jC;NC.useApp=MC;function PC(e){return t=>x.createElement(Nh,{theme:{token:{motion:!1,zIndexPopupBase:0}}},x.createElement(e,{...t}))}var FC=(e,t,n,r,i)=>PC(a=>{let{prefixCls:o,style:s}=a,c=x.useRef(null),[l,u]=x.useState(0),[d,f]=x.useState(0),[p,m]=ti(!1,a.open),{getPrefixCls:h}=x.useContext(Ao),g=h(r||`select`,o);x.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let v={paddingBottom:l,position:`relative`,minWidth:d};return x.createElement(`div`,{ref:c,style:v},x.createElement(e,{..._}))}),IC=(e,t,n,r,i=!1,a,o)=>{let s=(0,x.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,x.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&(o!==`combobox`||a!==``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null,label:e?s.label??`Clear`:``}},[s,r,i,t.length,a,o])},LC=x.createContext(null);function RC(){return x.useContext(LC)}function zC(e=250){let t=x.useRef(null),n=x.useRef(null);x.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function BC(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function VC(e,t,n,r){let i=Yr(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!BC(e(),a)&&n(!1)});x.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HC.apply(this,arguments)}var UC=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},WC=x.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:v,onPopupVisibleChange:y,onPopupMouseEnter:b,onPopupMouseDown:S,onPopupBlur:C,...w}=e,T=`${n}-dropdown`,E=o;h&&(E=h(o));let D=x.useMemo(()=>p||UC(m),[p,m]),O=s?`${T}-${s}`:c,k=typeof m==`number`,A=x.useMemo(()=>m===!1||k?`minWidth`:`width`,[m,k]),j=l;k&&(j={...l,width:m});let M=x.useRef(null);return x.useImperativeHandle(t,()=>({getPopupElement:()=>M.current?.popupElement})),x.createElement(ah,HC({},w,{showAction:y?[`click`]:[],hideAction:y?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:T,popupMotion:{motionName:O},popup:x.createElement(`div`,{onMouseEnter:b,onMouseDown:S,onBlur:C},E),ref:M,stretch:A,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:Q(u,{[`${T}-empty`]:v}),popupStyle:j,onPopupVisibleChange:y}),a)});function GC(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function KC(e){return e!==void 0&&!Number.isNaN(e)}function qC(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function JC(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=qC(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:GC(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:GC(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function YC(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return Da(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var XC=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function ZC(e){let{visible:t,values:n}=e;return t?x.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var QC=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},$C=(e,t=1)=>{if(t<=0){e();return}QC(()=>{$C(e,t-1)})};function ew(e,t,n,r){let[i,a]=(0,x.useState)(!1);(0,x.useEffect)(()=>{a(!0)},[]);let[o,s]=ti(e,t),[c,l]=(0,x.useState)(!1),u=i?o:!1,d=r(u),f=(0,x.useRef)(0),p=Yr(e=>{n&&d!==e&&n(e),s(e)});return[u,d,Yr((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():$C(()=>{a()})}),c]}function tw(e){let{children:t,...n}=e;return t?x.createElement(`div`,n,t):null}var nw=x.createContext(null);function rw(){return x.useContext(nw)}var iw=x.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:v,components:{input:y=`input`}}=rw(),{id:b,classNames:S,styles:C,open:w,activeDescendantId:T,role:E,disabled:D}=RC()||{},O=Q(`${d}-input`,S?.input,c),k=x.useRef(!1),A=x.useRef(null),j=x.useRef(null);x.useImperativeHandle(t,()=>j.current);let M=e=>{let{value:t}=e.target;if(_&&A.current&&/[\r\n]/.test(A.current)){let e=A.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,A.current)}A.current=null,p&&p(t,!0,k.current),n?.(e)},N=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!w&&!k.current&&m&&m(n),r?.(e)},P=e=>{h?.(),i?.(e)},F=()=>{k.current=!0},I=e=>{if(k.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},L=e=>{let{clipboardData:t}=e,n=t?.getData(`text`);A.current=n||``},[R,z]=x.useState(void 0);Qr(()=>{let e=j.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;z(t),e.style.width=``}},[o,s]);let B={id:b,type:`text`,...u,ref:j,style:{...C?.input,...a,"--select-input-width":R},autoFocus:g,autoComplete:l||`new-password`,className:O,disabled:D,value:s||``,onChange:M,onKeyDown:N,onBlur:P,onPaste:L,onCompositionStart:F,onCompositionEnd:I,role:E||`combobox`,"aria-expanded":w||!1,"aria-haspopup":`listbox`,"aria-owns":w?`${b}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":w?`${b}_list`:void 0,"aria-activedescendant":w?T:void 0};if(x.isValidElement(y)){let t=y.props||{},n={placeholder:e.placeholder||v,...B,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),B[e]?.(...t)})}),n.ref=Ti(y.ref,B.ref),x.cloneElement(y,n)}let V=y;return x.createElement(V,B)});function aw(e){let{prefixCls:t,placeholder:n,displayValues:r}=rw(),{classNames:i,styles:a}=RC(),{show:o=!0}=e;return r.length?null:x.createElement(`div`,{className:Q(`${t}-placeholder`,i?.placeholder),style:{...o?{}:{visibility:`hidden`},...a?.placeholder}},n)}var ow=x.createContext(null);function sw(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function cw(e){return e!=null}function lw(e){return!e&&e!==0}function uw(e){return[`string`,`number`].includes(typeof e)}function dw(e){let t;return e&&(uw(e.title)?t=e.title.toString():uw(e.label)&&(t=e.label.toString())),t}function fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fw.apply(this,arguments)}var pw=x.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=rw(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=RC(),m=x.useContext(ow),[h,g]=x.useState(!1),_=s===`combobox`,v=a[0],y=x.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[b,S,C,w]=x.useMemo(()=>{let e,t,n;if(v&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===v.value);r?.data&&(e=r.data.className,t=r.data.style,n=dw(r.data))}return v&&!n&&(n=dw(v)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[v,m?.flattenOptions,u]);x.useEffect(()=>{_&&g(!1)},[_,i]);let T=v&&v.label!==null&&v.label!==void 0&&String(v.label).trim()!==``,E=_&&c?.input?null:v?w?x.createElement(`div`,{className:Q(`${n}-content-value`,b),style:{...y?{visibility:`hidden`}:{},...S},title:C},v.label):v.label:x.createElement(aw,{show:!y});return x.createElement(`div`,{className:Q(`${n}-content`,T&&`${n}-content-has-value`,y&&`${n}-content-has-search-value`,w&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:w?void 0:C},E,x.createElement(iw,fw({ref:t},e,{value:y,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),mw=void 0;function hw(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function v(e){c(l,e)}x.useEffect(()=>()=>{v(null)},[]);let y=a&&i!==mw?a(i,{index:m}):f,b;r||(b={opacity:+!_,height:_?0:mw,overflowY:_?`hidden`:mw,order:o?m:mw,pointerEvents:_?`none`:mw,position:_?`absolute`:mw});let S={};_&&(S[`aria-hidden`]=!0);let C=x.createElement(h,dy({className:Q(!r&&n,u),style:{...b,...d}},S,g,{ref:t}),y);return o&&(C=x.createElement(bo,{onResize:({offsetWidth:e})=>{v(e)},disabled:s},C)),C}var gw=x.forwardRef(hw);function _w(e){if(typeof MessageChannel>`u`)si(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function vw(){let e=x.useRef(null);return t=>{e.current||(e.current=[],_w(()=>{(0,$a.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function yw(e,t){let[n,r]=x.useState(t);return[n,Yr(t=>{e(()=>{r(t)})})]}var bw=x.createContext(null),xw=x.forwardRef((e,t)=>{let n=x.useContext(bw);if(!n){let{component:n=`div`,...r}=e;return x.createElement(n,dy({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return x.createElement(bw.Provider,{value:null},x.createElement(gw,dy({ref:t,className:Q(r,a)},i,o)))}),Sw=`responsive`,Cw=`invalidate`;function ww(e){return`+ ${e.length} ...`}function Tw(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:v,...y}=e,b=c===`full`,S=vw(),[C,w]=yw(S,null),T=C||0,[E,D]=yw(S,new Map),[O,k]=yw(S,0),[A,j]=yw(S,0),[M,N]=yw(S,0),[P,F]=yw(S,0),[I,L]=(0,x.useState)(null),[R,z]=(0,x.useState)(null),B=x.useMemo(()=>R===null&&b?2**53-1:R||0,[R,C]),[V,H]=(0,x.useState)(!1),U=`${n}-item`,W=Math.max(O,A),ee=d===Sw,G=r.length&&ee,K=d===Cw,q=G||typeof d==`number`&&r.length>d,J=(0,x.useMemo)(()=>{let e=r;return G?e=C===null&&b?r:r.slice(0,Math.min(r.length,T/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,C,d,G]),te=(0,x.useMemo)(()=>G?r.slice(B+1):r.slice(J.length),[r,J,G,B]),Y=(0,x.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ne=(0,x.useCallback)(i||(e=>e),[i]);function X(e,t,n){(R!==e||t!==void 0&&t!==I)&&(z(e),n||(H(e<r.length-1),v?.(e)),t!==void 0&&L(t))}function re(e,t){w(t.clientWidth)}function ie(e,t){D(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function ae(e,t){j(t),k(A)}function oe(e,t){N(t)}function se(e,t){F(t)}function ce(e){return E.get(Y(J[e],e))}Qr(()=>{if(T&&typeof W==`number`&&J){let e=M+P,t=J.length,n=t-1;if(!t){X(0,null);return}for(let r=0;r<t;r+=1){let t=ce(r);if(b&&(t||=0),t===void 0){X(r-1,void 0,!0);break}if(e+=t,n===0&&e<=T||r===n-1&&e+ce(n)<=T){X(n,null);break}if(e+W>T){X(r-1,e-t-P+A);break}}h&&ce(0)+P>T&&L(null)}},[T,E,A,M,P,Y,J]);let le=V&&!!te.length,ue={};I!==null&&G&&(ue={position:`absolute`,top:0,insetInlineStart:I});let de={prefixCls:U,responsive:G,component:_,invalidate:K},fe=a?(e,t)=>{let n=Y(e,t);return x.createElement(bw.Provider,{key:n,value:{...de,order:t,item:e,itemKey:n,registerSize:ie,display:t<=B}},a(e,t))}:(e,t)=>{let n=Y(e,t);return x.createElement(gw,dy({},de,{order:t,key:n,item:e,renderItem:ne,itemKey:n,registerSize:ie,display:t<=B}))},pe={order:le?B:2**53-1,className:`${U}-rest`,registerSize:ae,display:le},me=f||ww,he=p?x.createElement(bw.Provider,{value:{...de,...pe}},p(te)):x.createElement(gw,dy({},de,pe),typeof me==`function`?me(te):me),ge=x.createElement(g,dy({className:Q(!K&&n,u),style:l,ref:t},y),m&&x.createElement(gw,dy({},de,{responsive:ee,responsiveDisabled:!G,order:-1,className:`${U}-prefix`,registerSize:oe,display:!0}),m),J.map(fe),q?he:null,h&&x.createElement(gw,dy({},de,{responsive:ee,responsiveDisabled:!G,order:B,className:`${U}-suffix`,registerSize:se,display:!0,style:ue}),h));return ee?x.createElement(bo,{onResize:re,disabled:!G},ge):ge}var Ew=x.forwardRef(Tw);Ew.Item=xw,Ew.RESPONSIVE=Sw,Ew.INVALIDATE=Cw;var Dw=Ew,Ow=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return x.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?x.createElement(`span`,{className:Q(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(this,arguments)}function Aw(e){return e.key??e.value}var jw=e=>{e.preventDefault(),e.stopPropagation()},Mw=x.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=rw(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:v,styles:y}=RC(),b=`${n}-selection-item`,S=i;!d&&a===`multiple`&&p!==!1&&(S=``);let C=l&&S||``,w=l&&!c,T=s??`×`,E=h??(e=>`+ ${e.length} ...`),D=m,O=e=>{f(e)},k=e=>{o?.(e)},A=(e,t,n,r,i)=>x.createElement(`span`,{title:dw(e),className:Q(b,{[`${b}-disabled`]:n},v?.item),style:y?.item},x.createElement(`span`,{className:Q(`${b}-content`,v?.itemContent),style:y?.itemContent},t),r&&x.createElement(Ow,{className:Q(`${b}-remove`,v?.itemRemove),style:y?.itemRemove,onMouseDown:jw,onClick:i,customizeIcon:T},`×`)),j=(e,t,n,r,i,a,o)=>x.createElement(`span`,{onMouseDown:e=>{jw(e),O(!u)}},D({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return x.createElement(Dw,{prefixCls:`${n}-content`,className:v?.content,style:y?.content,prefix:!r.length&&!C&&x.createElement(aw,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),k(e)};return typeof D==`function`?j(i,o,n,a,s,void 0,t):A(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof E==`function`?E(e):E;return typeof D==`function`?j(void 0,t,!1,!1,void 0,!0):A({title:t},t,!1)},suffix:x.createElement(iw,kw({ref:t,disabled:c,readOnly:!w},e,{value:C||``,syncWidth:!0})),itemKey:Aw,maxCount:_})}),Nw=x.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=rw(),a=RC(),{showSearch:o}=a,s={...Ra(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?x.createElement(Mw,{ref:t,inputProps:s}):x.createElement(pw,{ref:t,inputProps:s})});function Pw(e){return e&&![ha.ESC,ha.SHIFT,ha.BACKSPACE,ha.TAB,ha.WIN_KEY,ha.ALT,ha.META,ha.WIN_KEY_RIGHT,ha.CTRL,ha.SEMICOLON,ha.EQUALS,ha.CAPS_LOCK,ha.CONTEXT_MENU,ha.UP,ha.LEFT,ha.RIGHT,ha.F1,ha.F2,ha.F3,ha.F4,ha.F5,ha.F6,ha.F7,ha.F8,ha.F9,ha.F10,ha.F11,ha.F12].includes(e)}function Fw(){return Fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fw.apply(this,arguments)}var Iw=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],Lw=x.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,clearLabel:c,children:l,multiple:u,displayValues:d,placeholder:f,mode:p,searchValue:m,onSearch:h,onSearchSubmit:g,onInputBlur:_,maxLength:v,autoFocus:y,onMouseDown:b,onClearMouseDown:S,onInputKeyDown:C,onSelectorRemove:w,tokenWithEnter:T,components:E,...D}=e,{triggerOpen:O,toggleOpen:k,showSearch:A,disabled:j,loading:M,classNames:N,styles:P}=RC(),F=x.useRef(null),I=x.useRef(null),L=Yr(e=>{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===ha.UP||t===ha.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[ha.UP,ha.DOWN,ha.LEFT,ha.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Pw(t)&&k(!0)});x.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:Ki(F.current)}));let R=Yr(e=>{if(!j){let t=Ki(I.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!u&&(p===`combobox`||A)||O&&u&&n;e.nativeEvent._select_lazy?O&&!u&&k(!1):(I.current?.focus(),r||k())}b?.(e)}),z=e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},{root:B}=E,V=Na(D,Iw),H=Ra(V,{aria:!0}),U=Object.keys(H),W={...e,onInputKeyDown:L};if(B){let e=B.props||{},t={...e,...V};return Object.keys(e).forEach(n=>{let r=e[n],i=V[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),x.isValidElement(B)?x.cloneElement(B,{...t,ref:Ti(B.ref,F)}):x.createElement(B,Fw({},t,{ref:F}))}return x.createElement(nw.Provider,{value:W},x.createElement(`div`,Fw({},Na(V,U),{ref:F,className:r,style:i,onMouseDown:R}),x.createElement(tw,{className:Q(`${n}-prefix`,N?.prefix),style:P?.prefix},a),x.createElement(Nw,{ref:I}),x.createElement(tw,{className:Q(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&x.createElement(`button`,{type:`button`,"aria-label":c,className:Q(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.preventDefault(),e.nativeEvent._select_lazy=!0},onKeyDown:z,onClick:S},s),l))});function Rw(e,t,n){return x.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}var Bw=e=>e===`tags`||e===`multiple`,Vw=x.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:v,mode:y,disabled:b,loading:S,getInputElement:C,getRawInputElement:w,open:T,defaultOpen:E,onPopupVisibleChange:D,activeValue:O,onActiveValueChange:k,activeDescendantId:A,searchValue:j,autoClearSearchValue:M,onSearch:N,onSearchSplit:P,tokenSeparators:F,allowClear:I,prefix:L,suffix:R,suffixIcon:z,clearIcon:B,OptionList:V,animation:H,transitionName:U,popupStyle:W,popupClassName:ee,popupMatchSelectWidth:G,popupRender:K,popupAlign:q,placement:J,builtinPlacements:te,getPopupContainer:Y,showAction:ne=[],onFocus:X,onBlur:re,onKeyUp:ie,onKeyDown:ae,onMouseDown:oe,components:se,...ce}=e,le=Bw(y),ue=x.useRef(null),de=x.useRef(null),fe=x.useRef(null),[pe,me]=x.useState(!1);x.useImperativeHandle(t,()=>({focus:ue.current?.focus,blur:ue.current?.blur,scrollTo:e=>fe.current?.scrollTo(e),nativeElement:Ki(ue.current)}));let he=Rw(se,C,w),ge=x.useMemo(()=>{if(y!==`combobox`)return j;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[j,y,f]),_e=y===`combobox`&&typeof C==`function`&&C()||null,ve=!h&&m,[ye,be,xe,Se]=ew(E||!1,T,D,e=>b||ve?!1:e),Ce=x.useMemo(()=>typeof F==`function`||(F||[]).some(e=>[`
|
|
162
|
+
`,`\r
|
|
163
|
+
`].includes(e)),[F]),we=x.useMemo(()=>typeof F==`function`?(e,t)=>{let n=F(e),r=Array.isArray(n)&&n.length===1&&n[0]===e;return!Array.isArray(n)||!n.length||r?null:t===void 0?n:n.slice(0,t)}:(e,t)=>XC(e,F,t),[F]),Te=(e,t,n)=>{if(le&&KC(_)&&f.length>=_)return;let r=!0,i=e;k?.(null);let a=KC(_)?_-f.length:void 0,o=n?null:we(e,a);return y!==`combobox`&&o&&(i=``,P?.(o),xe(!1),r=!1),N&&ge!==i&&N(i,{source:t?`typing`:`effect`}),e&&t&&r&&xe(!0),r},Ee=e=>{!e||!e.trim()||N(e,{source:`submit`})};x.useEffect(()=>{!ye&&!le&&y!==`combobox`&&Te(``,!1,!1)},[ye]),x.useEffect(()=>{b&&(xe(!1),me(!1))},[b,be]);let[De,Oe]=zC(),ke=x.useRef(!1),Ae=e=>{let t=De(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=y===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),be||xe(!0)}if(Oe(!!ge),n===`Backspace`&&!t&&le&&!ge&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}be&&(!r||!ke.current)&&!i&&(r&&(ke.current=!0),fe.current?.onKeyDown(e)),ae?.(e)},je=(e,...t)=>{be&&fe.current?.onKeyUp(e,...t),e.key===`Enter`&&(ke.current=!1),ie?.(e,...t)},Me=Yr(e=>{let t=f.filter(t=>t!==e);p(t,{type:`remove`,values:[e]})}),Ne=()=>{ke.current=!1},Pe=()=>[Ki(ue.current),de.current?.getPopupElement()];VC(Pe,be,xe,!!he.root);let Fe=x.useRef(!1),Ie=e=>{me(!0),b||(ne.includes(`focus`)&&xe(!0),X?.(e))},Le=()=>{be&&!Fe.current&&xe(!1,{cancelFun:()=>BC(Pe(),document.activeElement)})},Re=e=>{me(!1),ge&&(y===`tags`?N(ge,{source:`submit`}):y===`multiple`&&N(``,{source:`blur`})),Le(),b||re?.(e)},ze=(e,...t)=>{let{target:n}=e;(de.current?.getPopupElement())?.contains(n)&&xe&&xe(!0),oe?.(e,...t),Fe.current=!0,$C(()=>{Fe.current=!1})},[,Be]=x.useState({});function Ve(){Be({})}let He;he.root&&(He=e=>{xe(e)});let Ue=x.useMemo(()=>({...e,notFoundContent:h,open:be,triggerOpen:be,rawOpen:ye,id:n,showSearch:s,multiple:le,toggleOpen:xe,showScrollBar:l,styles:a,classNames:o,lockOptions:Se}),[e,h,xe,n,s,le,be,ye,l,a,o,Se]),We=x.useMemo(()=>{let e=R??z;return typeof e==`function`?e({searchValue:ge,open:be,focused:pe,showSearch:s,loading:S}):e},[R,z,ge,be,pe,s,S]),Ge=()=>{g?.(),ue.current?.focus(),p([],{type:`clear`,values:f}),Te(``,!1,!1)},{allowClear:Ke,clearIcon:qe,label:Je}=IC(r,f,I,B,b,ge,y),Ye=x.createElement(V,{ref:fe}),Xe=Q(r,i,{[`${r}-focused`]:pe,[`${r}-multiple`]:le,[`${r}-single`]:!le,[`${r}-allow-clear`]:Ke,[`${r}-show-arrow`]:We!=null,[`${r}-disabled`]:b,[`${r}-loading`]:S,[`${r}-open`]:be,[`${r}-customize-input`]:_e,[`${r}-show-search`]:s}),Ze=x.createElement(Lw,zw({},ce,{ref:ue,prefixCls:r,className:Xe,focused:pe,prefix:L,suffix:We,clearIcon:qe,clearLabel:Je,multiple:le,mode:y,displayValues:f,placeholder:v,searchValue:ge,activeValue:O,onSearch:Te,onSearchSubmit:Ee,onInputBlur:Ne,onFocus:Ie,onBlur:Re,onClearMouseDown:Ge,onKeyDown:Ae,onKeyUp:je,onSelectorRemove:Me,tokenWithEnter:Ce,onMouseDown:ze,components:he}));return Ze=x.createElement(WC,{ref:de,disabled:b,prefixCls:r,visible:be,popupElement:Ye,animation:H,transitionName:U,popupStyle:W,popupClassName:ee,direction:u,popupMatchSelectWidth:G,popupRender:K,popupAlign:q,placement:J,builtinPlacements:te,getPopupContainer:Y,empty:m,onPopupVisibleChange:He,onPopupMouseEnter:Ve,onPopupMouseDown:ze,onPopupBlur:Le},Ze),x.createElement(LC.Provider,{value:Ue},x.createElement(ZC,{visible:pe&&!be,values:f}),Ze)}),Hw=()=>null;Hw.isSelectOptGroup=!0;var Uw=()=>null;Uw.isSelectOption=!0;function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ww.apply(this,arguments)}var Gw=x.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),x.createElement(`div`,{style:u},x.createElement(bo,{onResize:({offsetHeight:e})=>{e&&a&&a()}},x.createElement(`div`,Ww({style:d,className:Q({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});Gw.displayName=`Filler`;function Kw({children:e,setRef:t}){let n=x.useCallback(e=>{t(e)},[t]);return x.cloneElement(e,{ref:n})}function qw(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return x.createElement(Kw,{key:l,setRef:t=>a(e,t)},c)})}function Jw(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u||=t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function Yw(e,t,n){let[r,i]=x.useState(e),[a,o]=x.useState(null);return x.useEffect(()=>{let a=Jw(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var Xw=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),Zw=((e,t,n,r)=>{let i=(0,x.useRef)(!1),a=(0,x.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,x.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function Qw(e,t,n,r,i,a,o){let s=(0,x.useRef)(0),c=(0,x.useRef)(null),l=(0,x.useRef)(null),u=(0,x.useRef)(!1),d=Zw(t,n,r,i);function f(e,t){if(si.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,Xw||n.preventDefault(),c.current=si(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),Xw||e.preventDefault()}let m=(0,x.useRef)(null),h=(0,x.useRef)(null);function g(t){if(!e)return;si.cancel(h.current),h.current=si(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function $w(e,t,n,r){let[i,a]=x.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var eT=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function tT(e){let t=parseFloat(e);return isNaN(t)?0:t}function nT(e,t,n){let[r,i]=x.useState(0),a=(0,x.useRef)(new Map),o=(0,x.useRef)(new eT),s=(0,x.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=tT(i),c=tT(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,x.useEffect)(()=>c,[]),[u,l,o.current,r]}var rT=14/15;function iT(e,t,n){let r=(0,x.useRef)(!1),i=(0,x.useRef)(0),a=(0,x.useRef)(0),o=(0,x.useRef)(null),s=(0,x.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=rT:c*=rT;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},Qr(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function aT(e){return Math.floor(e**.5)}function oT(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function sT(e,t,n){x.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{si.cancel(t)},o=()=>{a(),t=si(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=oT(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-aT(n-e),o()):e>=s?(i=aT(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var cT=10;function lT(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function uT(e,t,n,r,i,a,o,s,c){let l=x.useRef(void 0),[u,d]=x.useState(null);return Qr(()=>{if(u&&u.times<cT){if(!e.current){d(e=>({...e}));return}o();let{targetAlign:c,originAlign:l,offset:f}=u,p=u.index>=0?u.index:t.findIndex(e=>i(e)===u.key),m=c||l,h=lT(f,{getSize:a,align:m}),g=e.current.clientHeight,_=p<0,v=c,y=null;if(g&&p>=0){let a=0,o=0,c=0,l=Math.min(t.length-1,p);for(let e=0;e<=l;e+=1){let s=i(t[e]);o=a;let l=n.get(s);c=o+(l===void 0?r:l),a=c}let d=m===`top`?h:g-h;for(let e=l;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){_=!0;break}if(d-=a,d<=0)break}switch(m){case`top`:y=o-h;break;case`bottom`:y=c-g+h;break;default:{let{scrollTop:t}=e.current,n=t+g;o<t?v=`top`:c>n&&(v=`bottom`)}}y!==null&&s(y),y!==u.lastTop&&(_=!0)}_&&d(e=>({...e,times:e.times+1,index:p,targetAlign:v,lastTop:y}))}},[u,e.current]),e=>{if(e==null){c();return}if(si.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,r,{align:a}=e;`index`in e?{index:n}=e:(r=e.key,n=t.findIndex(e=>i(e)===r));let{offset:o=0}=e;d({times:0,index:n,key:r,offset:o,originAlign:a})}}}function dT(e,t,n){if(t<=0||n<=0)return 0;let r=Math.max(Math.min(e,n),0)/n,i=Math.ceil(r*t);return i=Math.max(i,0),i=Math.min(i,t),i}var fT=x.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=x.useState(!1),[_,v]=x.useState(null),[y,b]=x.useState(null),S=!r,C=x.useRef(null),w=x.useRef(null),[T,E]=x.useState(m),D=x.useRef(void 0),O=()=>{m!==!0&&m!==!1&&(clearTimeout(D.current),E(!0),D.current=setTimeout(()=>{E(!1)},3e3))},k=a-d||0,A=d-u||0,j=x.useMemo(()=>i===0||k===0?0:i/k*A,[i,k,A]),M=e=>!!e&&w.current?.contains(e),N=e=>{let t=C.current;if(!t)return;let n=t.getBoundingClientRect(),r=oT(e,l),i;if(Number.isFinite(r)){if(l){let e=S?n.left:n.right;if(!Number.isFinite(e))return;i=(S?r-e:e-r)-u/2}else{if(!Number.isFinite(n.top))return;i=r-n.top-u/2}c(dT(i,k,A),l)}},P=e=>{e.stopPropagation(),e.preventDefault(),!(e.button!==0||M(e.target))&&N(e)},F=x.useRef({top:j,dragging:h,pageY:_,startTop:y});F.current={top:j,dragging:h,pageY:_,startTop:y};let I=Yr(e=>{g(!0),v(oT(e,l)),b(F.current.top),o(),e.stopPropagation(),e.preventDefault()});x.useEffect(()=>{let e=e=>{e.preventDefault()},t=C.current,n=w.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,I,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,I)}},[I]);let L=x.useRef(void 0);L.current=k;let R=x.useRef(void 0);R.current=A,x.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=F.current;si.cancel(e);let a=C.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(oT(t,l)-r)*o,a=i;!S&&l?a-=n:a+=n;let s=L.current,u=R.current,d=dT(a,s,u);e=si(()=>{c(d,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),si.cancel(e)}}},[h]),x.useEffect(()=>(O(),()=>{clearTimeout(D.current)}),[i]),x.useImperativeHandle(t,()=>({delayHidden:O}));let z=`${n}-scrollbar`,B={position:`absolute`,visibility:T?null:`hidden`},V={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(B,{height:8,left:0,right:0,bottom:0}),Object.assign(V,{height:`100%`,width:u,[S?`left`:`right`]:j})):(Object.assign(B,{width:8,top:0,bottom:0,[S?`right`:`left`]:0}),Object.assign(V,{width:`100%`,height:u,top:j})),x.createElement(`div`,{ref:C,className:Q(z,{[`${z}-horizontal`]:l,[`${z}-vertical`]:!l,[`${z}-visible`]:T}),style:{...B,...f},onMouseDown:P,onMouseMove:O},x.createElement(`div`,{ref:w,className:Q(`${z}-thumb`,{[`${z}-thumb-moving`]:h}),style:{...V,...p},onMouseDown:I}))}),pT=20;function mT(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,pT),Math.floor(n)}function hT(){return hT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hT.apply(this,arguments)}var gT=[],_T={overflowY:`auto`,overflowAnchor:`none`};function vT(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:v,extraRender:y,styles:b,showScrollBar:S=`optional`,...C}=e,w=x.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[T,E,D,O]=nT(w,null,null),k=!!(d!==!1&&i&&a),A=x.useMemo(()=>Object.values(D.maps).reduce((e,t)=>e+t,0),[D.id,D.maps]),j=k&&c&&(Math.max(a*c.length,A)>i||!!p),M=f===`rtl`,N=Q(n,{[`${n}-rtl`]:M},r),P=c||gT,F=(0,x.useRef)(null),I=(0,x.useRef)(null),L=(0,x.useRef)(null),[R,z]=(0,x.useState)(0),[B,V]=(0,x.useState)(0),[H,U]=(0,x.useState)(!1),W=()=>{U(!0)},ee=()=>{U(!1)},G={getKey:w};function K(e){z(t=>{let n;n=typeof e==`function`?e(t):e;let r=pe(n);return F.current.scrollTop=r,r})}let q=(0,x.useRef)({start:0,end:P.length}),J=(0,x.useRef)(void 0),[te]=Yw(P,w);J.current=te;let{scrollHeight:Y,start:ne,end:X,offset:re}=x.useMemo(()=>{if(!k)return{scrollHeight:void 0,start:0,end:P.length-1,offset:void 0};if(!j)return{scrollHeight:I.current?.offsetHeight||0,start:0,end:P.length-1,offset:void 0};let e=0,t,n,r,o=P.length;for(let s=0;s<o;s+=1){let o=P[s],c=w(o),l=D.get(c),u=e+(l===void 0?a:l);u>=R&&t===void 0&&(t=s,n=e),u>R+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=P.length-1),r=Math.min(r+1,P.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[j,k,R,P,O,i]);q.current.start=ne,q.current.end=X,x.useLayoutEffect(()=>{let e=D.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=P[ne];if(r&&n===void 0&&w(r)===t){let e=D.get(t)-a;K(t=>t+e)}}D.resetRecord()},[Y]);let[ie,ae]=x.useState({width:0,height:i}),oe=e=>{ae({width:e.offsetWidth,height:e.offsetHeight})},se=(0,x.useRef)(null),ce=(0,x.useRef)(null),le=x.useMemo(()=>mT(ie.width,p),[ie.width,p]),ue=x.useMemo(()=>mT(ie.height,Y),[ie.height,Y]),de=Y-i,fe=(0,x.useRef)(de);fe.current=de;function pe(e){let t=e;return Number.isNaN(fe.current)||(t=Math.min(t,fe.current)),t=Math.max(t,0),t}let me=R<=0,he=R>=de,ge=B<=0,_e=B>=p,ve=Zw(me,he,ge,_e),ye=()=>({x:M?-B:B,y:R}),be=(0,x.useRef)(ye()),xe=Yr(e=>{if(g){let t={...ye(),...e};(be.current.x!==t.x||be.current.y!==t.y)&&(g(t),be.current=t)}});function Se(e,t){let n=e;t?((0,$a.flushSync)(()=>{V(n)}),xe()):K(n)}function Ce(e){let{scrollTop:t}=e.currentTarget;t!==R&&K(t),h?.(e),xe()}let we=e=>{let t=e,n=p?p-ie.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Te=Yr((e,t)=>{t?((0,$a.flushSync)(()=>{V(t=>{let n=t+(M?-e:e);return we(n)})}),xe()):K(t=>t+e)}),[Ee,De]=Qw(k,me,he,ge,_e,!!p,Te);iT(k,F,(e,t,n,r)=>{let i=r;return ve(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ee({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),sT(j,F,e=>{K(t=>t+e)}),Qr(()=>{function e(e){let t=me&&e.detail<0,n=he&&e.detail>0;k&&!t&&!n&&e.preventDefault()}let t=F.current;return t.addEventListener(`wheel`,Ee,{passive:!1}),t.addEventListener(`DOMMouseScroll`,De,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ee),t.removeEventListener(`DOMMouseScroll`,De),t.removeEventListener(`MozMousePixelScroll`,e)}},[k,me,he]),Qr(()=>{if(p){let e=we(B);V(e),xe({x:e})}},[ie.width,p]);let Oe=()=>{se.current?.delayHidden(),ce.current?.delayHidden()},ke=$w(P,w,D,a),Ae=uT(F,P,D,a,w,ke,()=>E(!0),K,Oe);x.useImperativeHandle(t,()=>({nativeElement:L.current,getScrollInfo:ye,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&V(we(e.left)),Ae(e.top)):Ae(e)}})),Qr(()=>{if(_){let e=P.slice(ne,X+1);_(e,P)}},[ne,X,P]);let je=y?.({start:ne,end:X,virtual:j,offsetX:B,scrollTop:R,offsetY:re,rtl:M,getSize:ke}),Me=qw(P,ne,X,p,B,T,l,G),Ne=null;i&&(Ne={[o?`height`:`maxHeight`]:i,..._T},k&&(Ne.overflowY=`hidden`,p&&(Ne.overflowX=`hidden`),H&&(Ne.pointerEvents=`none`)));let Pe={};return M&&(Pe.dir=`rtl`),x.createElement(`div`,hT({ref:L,style:{...s,position:`relative`},className:N},Pe,C),x.createElement(bo,{onResize:oe},x.createElement(m,{className:`${n}-holder`,style:Ne,ref:F,onScroll:Ce,onMouseEnter:Oe},x.createElement(Gw,{prefixCls:n,height:Y,offsetX:B,offsetY:re,scrollWidth:p,onInnerResize:E,ref:I,innerProps:v,rtl:M,extra:je},Me))),j&&Y>i&&x.createElement(fT,{ref:se,prefixCls:n,scrollOffset:R,scrollRange:Y,rtl:M,onScroll:Se,onStartMove:W,onStopMove:ee,spinSize:ue,containerSize:ie.height,style:b?.verticalScrollBar,thumbStyle:b?.verticalScrollBarThumb,showScrollBar:S}),j&&p>ie.width&&x.createElement(fT,{ref:ce,prefixCls:n,scrollOffset:B,scrollRange:p,rtl:M,onScroll:Se,onStartMove:W,onStopMove:ee,spinSize:le,containerSize:ie.width,horizontal:!0,style:b?.horizontalScrollBar,thumbStyle:b?.horizontalScrollBarThumb,showScrollBar:S}))}var yT=x.forwardRef(vT);yT.displayName=`List`;var bT=x.forwardRef((e,t)=>vT({...e,virtual:!1},t));bT.displayName=`List`;var xT=yT;function ST(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function CT(){return CT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CT.apply(this,arguments)}function wT(e){return typeof e==`string`||typeof e==`number`}var TT=x.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=RC(),{maxCount:p,flattenOptions:m,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:v,rawValues:y,fieldNames:b,virtual:S,direction:C,listHeight:w,listItemHeight:T,optionRender:E,classNames:D,styles:O}=x.useContext(ow),k=`${n}-item`,A=mi(()=>m,[i,f],(e,t)=>t[0]&&!t[1]),j=x.useRef(null),M=x.useMemo(()=>a&&KC(p)&&y?.size>=p,[a,p,y?.size]),N=e=>{e.preventDefault()},P=e=>{j.current?.scrollTo(typeof e==`number`?{index:e}:e)},F=x.useCallback(e=>o!==`combobox`&&y.has(e),[o,[...y].toString(),y.size]),I=(e,t=1)=>{let n=A.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=A[i]||{};if(!a&&!o?.disabled&&(F(o.value)||!M))return i}return-1},[L,R]=x.useState(()=>I(0)),z=(e,t=!1)=>{R(e);let n={source:t?`keyboard`:`mouse`},r=A[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,x.useEffect)(()=>{z(g===!1?-1:I(0))},[A.length,s]);let B=x.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():y.has(e),[o,s,[...y].toString(),y.size]);(0,x.useEffect)(()=>{let e;if(!a&&i&&y.size===1){let t=Array.from(y)[0],n=A.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(z(n),e=setTimeout(()=>{P(n)}))}return i&&j.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let V=e=>{e!==void 0&&_(e,{selected:!y.has(e)}),a||c(!1)};if(x.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case ha.N:case ha.P:case ha.UP:case ha.DOWN:{let e=0;if(t===ha.UP?e=-1:t===ha.DOWN?e=1:ST()&&n&&(t===ha.N?e=1:t===ha.P&&(e=-1)),e!==0){let t=I(L+e,e);P(t),z(t,!0)}break}case ha.TAB:case ha.ENTER:{let t=A[L];if(!t||t.data.disabled)return V(void 0);!M||y.has(t.value)?V(t.value):V(void 0),i&&e.preventDefault();break}case ha.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{P(e)}})),A.length===0)return x.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${k}-empty`,onMouseDown:N},l);let H=Object.keys(b).map(e=>b[e]),U=e=>e.label;function W(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let ee=e=>{let t=A[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Ra(n,!0),s=U(t);return t?x.createElement(`div`,CT({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},W(t,e),{"aria-selected":B(r),"aria-disabled":i}),r):null},G={role:`listbox`,id:`${r}_list`};return x.createElement(x.Fragment,null,S&&x.createElement(`div`,CT({},G,{style:{height:0,width:0,overflow:`hidden`}}),ee(L-1),ee(L),ee(L+1)),x.createElement(xT,{prefixCls:`${n}-dropdown-list`,itemKey:`key`,ref:j,data:A,height:w,itemHeight:T,fullHeight:!1,onMouseDown:N,onScroll:u,virtual:S,direction:C,innerProps:S?null:G,showScrollBar:d,className:D?.popup?.list,style:O?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(wT(a)?a.toString():void 0);return x.createElement(`div`,{className:Q(k,`${k}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,m=Na(p,H),h=F(o),g=c||!h&&M,_=`${k}-option`,y=Q(k,_,f,D?.popup?.listItem,{[`${_}-grouped`]:r,[`${_}-active`]:L===t&&!g,[`${_}-disabled`]:g,[`${_}-selected`]:h}),b=U(e),C=!v||typeof v==`function`||h,w=typeof b==`number`?b:b||o,T=wT(w)?w.toString():void 0;return l!==void 0&&(T=l),x.createElement(`div`,CT({},Ra(m),S?{}:W(e,t),{"aria-selected":S?void 0:B(o),"aria-disabled":g,className:y,title:T,onMouseMove:()=>{L===t||g||z(t)},onClick:()=>{g||V(o)},style:{...O?.popup?.listItem,...d}}),x.createElement(`div`,{className:`${_}-content`},typeof E==`function`?E(e,{index:t}):w),x.isValidElement(v)||h,C&&x.createElement(Ow,{className:`${k}-option-state`,customizeIcon:v,customizeIconProps:{value:o,disabled:g,isSelected:h}},h?`✓`:null))}))}),ET=((e,t)=>{let n=x.useRef({values:new Map,options:new Map});return[x.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),x.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function DT(e,t){return sw(e).join(``).toUpperCase().includes(t)}var OT=((e,t,n,r,i)=>x.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>DT(t[e],u)):t[a]?DT(t[o===`children`?`label`:o],u):DT(t[s],u),f=l?e=>YC(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function kT(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function AT(e,t=!1){return Ba(e).map((e,n)=>{if(!x.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?kT(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:AT(a)}}).filter(e=>e)}var jT=(e,t,n,r,i)=>x.useMemo(()=>{let a=e;e||(a=AT(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function MT(e){let t=x.useRef(e);return t.current=e,x.useCallback((...e)=>t.current(...e),[])}function NT(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return x.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function PT(){return PT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PT.apply(this,arguments)}var FT=[`inputValue`];function IT(e){return!e||typeof e!=`object`}var LT=x.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:v,options:y,optionRender:b,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:E,listHeight:D=200,listItemHeight:O=20,labelRender:k,value:A,defaultValue:j,labelInValue:M,onChange:N,maxCount:P,classNames:F,styles:I,...L}=e,[R,z]=NT(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:B,searchValue:V,optionFilterProp:H,filterSort:U,onSearch:W,autoClearSearchValue:ee=!0}=z,G=x.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),K=pi(n),q=Bw(r),J=!!(!y&&S),te=x.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),Y=x.useMemo(()=>qC(o,J),[JSON.stringify(o),J]),[ne,X]=ti(``,V),re=ne||``,ie=jT(y,S,Y,G,v),{valueOptions:ae,labelOptions:oe,options:se}=ie,ce=x.useCallback(e=>sw(e).map(e=>{let t,n,r,i;IT(e)?t=e:(n=e.label,t=e.value);let a=ae.get(t);return a&&(n===void 0&&(n=a?.[v||Y.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[Y,v,ae]),[le,ue]=ti(j,A),[de,fe]=ET(x.useMemo(()=>{let e=ce(q&&le===null?[]:le);return r===`combobox`&&lw(e[0]?.value)?[]:e},[le,ce,r,q]),ae),pe=x.useMemo(()=>{if(!r&&de.length===1){let e=de[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return de.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,de,k]),me=x.useMemo(()=>new Set(de.map(e=>e.value)),[de]);x.useEffect(()=>{if(r===`combobox`){let e=de[0]?.value;X(cw(e)?String(e):``)}},[de]);let he=MT((e,t)=>{let n=t??e;return{[Y.value]:e,[Y.label]:n}}),ge=OT(x.useMemo(()=>{if(r!==`tags`)return se;let e=[...se],t=e=>ae.has(e);return[...de].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(he(r,n.label))}),e},[he,se,ae,de,r]),Y,re,te,G),_e=x.useMemo(()=>{let e=e=>G.length?G.some(t=>e?.[t]===re):e?.value===re;return r!==`tags`||!re||ge.some(t=>e(t))||ge.some(e=>e[Y.value]===re)||ae.get(re)?.disabled?ge:[he(re),...ge]},[he,G,r,ge,re,Y,ae]),ve=e=>[...e].sort((e,t)=>U(e,t,{searchValue:re})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?ve(e.options):e.options}:e),ye=x.useMemo(()=>U?ve(_e):_e,[_e,U,re]),be=x.useMemo(()=>JC(ye,{fieldNames:Y,childrenAsData:J}),[ye,Y,J]),xe=e=>{let t=ce(e);if(ue(t),N&&(t.length!==de.length||t.some((e,t)=>de[t]?.value!==e?.value))){let e=M?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>YC(fe(e.value)));N(q?e:e[0],q?n:n[0])}},[Se,Ce]=x.useState(null),[we,Te]=x.useState(0),Ee=C===void 0?r!==`combobox`:C,De=x.useRef(void 0),Oe=x.useCallback((e,t,{source:n=`keyboard`}={})=>{Te(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Ce(String(e));let i=Promise.resolve().then(()=>{De.current===i&&g?.(e)});De.current=i},[a,r,g]),ke=(e,t,n)=>{let r=()=>{let t=fe(e);return[M?{label:t?.[Y.label],value:e}:e,YC(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Ae=MT((e,t)=>{let n,i=!q||t.selected;n=i?q?[...de,e]:[e]:de.filter(t=>t.value!==e),xe(n),ke(e,i),r===`combobox`?Ce(``):(!Bw||ee)&&(X(``),Ce(``))}),je=(e,t)=>{xe(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{ke(e.value,!1,n)})},Me=(e,t)=>{if(X(e),Ce(null),t.source===`submit`){let t=(e||``).trim();if(t){if(ae.get(t)?.disabled){X(``);return}let e=Array.from(new Set([...me,t]));xe(e),ke(t,!0),X(``)}return}t.source!==`blur`&&(r===`combobox`&&xe(e),W?.(e))},Ne=e=>{let t=e;r!==`tags`&&(t=e.map(e=>oe.get(e)?.value).filter(e=>e!==void 0)),r===`tags`&&(t=t.filter(e=>!ae.get(e)?.disabled));let n=Array.from(new Set([...me,...t]));xe(n),n.forEach(e=>{ke(e,!0)})},Pe=x.useMemo(()=>{let e=T!==!1&&_!==!1;return{...ie,flattenOptions:be,onActiveValue:Oe,defaultActiveFirstOption:Ee,onSelect:Ae,menuItemSelectedIcon:w,rawValues:me,fieldNames:Y,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:J,maxCount:P,optionRender:b,classNames:F,styles:I}},[P,ie,be,Oe,Ee,Ae,w,me,Y,T,_,E,D,O,J,b,F,I]);return x.createElement(ow.Provider,{value:Pe},x.createElement(Vw,PT({},L,{id:K,prefixCls:i,ref:t,omitDomProps:FT,mode:r,classNames:F,styles:I,displayValues:pe,onDisplayValuesChange:je,maxCount:P,direction:E,showSearch:R,searchValue:re,onSearch:Me,autoClearSearchValue:ee,onSearchSplit:Ne,popupMatchSelectWidth:_,OptionList:TT,emptyOptions:!be.length,activeValue:Se,activeDescendantId:`${K}_list_${we}`})))});LT.Option=Uw,LT.OptGroup=Hw;var RT=LT,zT=(e,t,n)=>e===!1?null:e===!0?n:e&&t&&e[t]!==void 0?e[t]:n,BT=(e,t,n)=>Q({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),VT=(e,t)=>t||e,HT=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new Kl(e).onBackground(t).toHexString(),UT=()=>{let[,e]=ed(),[t]=im(`Empty`),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:a,colorTextQuaternary:o}=e,{panelBgColor:s,borderColor:c,detailColor:l,shadowColor:u,iconColor:d}=(0,x.useMemo)(()=>({panelBgColor:HT(a,n),borderColor:HT(o,n),detailColor:HT(r,n),shadowColor:HT(i,n),iconColor:n}),[n,r,i,a,o]);return x.createElement(`svg`,{width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},x.createElement(`title`,null,t?.description||`Empty`),x.createElement(`g`,{fill:`none`,fillRule:`evenodd`},x.createElement(`g`,{transform:`translate(24 31.7)`},x.createElement(`ellipse`,{fillOpacity:`.8`,fill:u,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),x.createElement(`path`,{fill:c,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),x.createElement(`path`,{fill:s,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),x.createElement(`path`,{fill:l,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),x.createElement(`path`,{fill:l,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),x.createElement(`g`,{fill:d,transform:`translate(149.7 15.4)`},x.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),x.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},WT=()=>{let[,e]=ed(),[t]=im(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,x.useMemo)(()=>({borderColor:HT(n,a),shadowColor:HT(r,a),contentColor:HT(i,a)}),[n,r,i,a]);return x.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},x.createElement(`title`,null,t?.description||`Empty`),x.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},x.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),x.createElement(`g`,{fillRule:`nonzero`,stroke:o},x.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),x.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},GT=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},KT=fd(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return GT(wl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),qT=x.createElement(UT,null),JT=x.createElement(WT,null),YT=x.forwardRef((e,t)=>{let{className:n,rootClassName:r,prefixCls:i,image:a,description:o,children:s,imageStyle:c,style:l,classNames:u,styles:d,...f}=e,{getPrefixCls:p,direction:m,className:h,style:g,classNames:_,styles:v,image:y}=No(`empty`),b=p(`empty`,i),[S,C]=KT(b),w=vp(g),T=vp(l),[E,D]=bp([_,u],[v,w,d,T],{props:e}),[O]=im(`Empty`),k=o===void 0?O?.description:o,A=typeof k==`string`?k:`empty`,j=a??y??qT,M=null;M=typeof j==`string`?x.createElement(`img`,{draggable:!1,alt:A,src:j}):j;let N=x.useRef(null);return x.useImperativeHandle(t,()=>({nativeElement:N.current})),x.createElement(`div`,{ref:N,className:Q(S,C,b,h,{[`${b}-normal`]:j===JT,[`${b}-rtl`]:m===`rtl`},n,r,E.root),style:D.root,...f},x.createElement(`div`,{className:Q(`${b}-image`,E.image),style:{...c,...D.image}},M),k&&x.createElement(`div`,{className:Q(`${b}-description`,E.description),style:D.description},k),s&&x.createElement(`div`,{className:Q(`${b}-footer`,E.footer),style:D.footer},s))});YT.PRESENTED_IMAGE_DEFAULT=qT,YT.PRESENTED_IMAGE_SIMPLE=JT;var XT=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,x.useContext)(Ao),r=n(`empty`);switch(t){case`Table`:case`List`:return x.createElement(YT,{image:YT.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return x.createElement(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return x.createElement(YT,null)}},ZT=(e,t,n,r)=>{let i=x.useContext(Ao),{variant:a,[e]:o}=i,s=x.useContext(Wx),c=r?i[r]:void 0,l=o?.variant??c?.variant,u=t!==void 0||n===!1||s!==void 0||l!==void 0||a!==void 0,d;d=t===void 0?n===!1?`borderless`:s??l??a??`outlined`:t;let f=ko.includes(d);return[d,f,u]},QT=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function $T(e,t){return e||QT(t)}var eE=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},tE=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...nd(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,[`
|
|
164
|
+
${i}${s}bottomLeft,
|
|
165
|
+
${a}${s}bottomLeft
|
|
166
|
+
`]:{animationName:Ov},[`
|
|
167
|
+
${i}${s}topLeft,
|
|
168
|
+
${a}${s}topLeft,
|
|
169
|
+
${i}${s}topRight,
|
|
170
|
+
${a}${s}topRight
|
|
171
|
+
`]:{animationName:Av},[`${o}${s}bottomLeft`]:{animationName:kv},[`
|
|
172
|
+
${o}${s}topLeft,
|
|
173
|
+
${o}${s}topRight
|
|
174
|
+
`]:{animationName:jv},"&-hidden":{display:`none`},[`${n}-dropdown-list-scrollbar`]:{cursor:`pointer`,"&:hover":{backgroundColor:e.colorFillQuaternary}},[r]:{...eE(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...td},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...eE(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},Lv(e,`slide-up`),Lv(e,`slide-down`),Dv(e,`move-up`),Dv(e,`move-down`)]},nE=e=>{let{antCls:t,componentCls:n}=e,r={background:`transparent`},i=[`> input[disabled]`,`> textarea[disabled]`,`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(`, `);return{[`&${n}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${n}-placeholder`]:{display:`none`},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:`none`}},[`&${n}-filled ${n}-content`]:{[`${t}-input-filled`]:r},[`&${n}-disabled ${n}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},rE=4,iE=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,lineType:c,colorIcon:l,colorIconHover:u,inputPaddingHorizontalBase:d,antCls:f}=e,[p,m]=hd(f,`select`);return{"&-multiple":{[p(`multi-item-background`)]:e.multipleItemBg,[p(`multi-item-border-color`)]:`transparent`,[p(`multi-item-border-radius`)]:e.borderRadiusSM,[p(`multi-item-height`)]:e.multipleItemHeight,[p(`multi-padding-base`)]:`calc((${m(`height`)} - ${m(`multi-item-height`)}) / 2)`,[p(`multi-padding-vertical`)]:`calc(${m(`multi-padding-base`)} - ${o} - ${s})`,[p(`multi-item-padding-horizontal`)]:`calc(${d} - ${m(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:m(`multi-padding-vertical`),paddingInlineStart:`calc(${m(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:m(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:m(`line-height`),insetInlineStart:m(`multi-item-padding-horizontal`),width:`calc(100% - ${m(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:m(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${rE}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
175
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:m(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${m(`multi-item-height`)} - ${s} * 2)`,border:`${s} ${c} ${m(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:m(`multi-item-background`),borderRadius:m(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...td,marginInlineEnd:a},"&-remove":{...rd(),display:`inline-flex`,alignItems:`center`,color:l,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:u}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(m(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:rE,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[p(`multi-item-height`)]:e.multipleItemHeightSM,[p(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[p(`multi-item-height`)]:e.multipleItemHeightLG,[p(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[p(`multi-item-border-color`)]:e.colorSplit,[p(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[p(`multi-item-border-color`)]:`transparent`}}}}},aE=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=hd(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${$(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},oE=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[aE(e,n),{[`&${o}-status-error`]:aE(e,{...n,...r}),[`&${o}-status-warning`]:aE(e,{...n,...i})},a]}},sE=(e,t)=>({outline:`${$(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:$(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),cE=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=hd(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[{[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`,...nd(e),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:d(`border-radius`),borderWidth:d(`border-size`),borderStyle:e.lineType,borderColor:d(`border-color`),background:d(`background-color`),fontSize:d(`font-size`),lineHeight:d(`line-height`),color:d(`color`),paddingInline:d(`padding-horizontal`),paddingBlock:d(`padding-vertical`),[`${t}-prefix`]:{color:d(`affix-color`),flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...td,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:f,"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,transition:[`opacity`,`color`].map(t=>`${t} ${e.motionDurationMid} ease`).join(`, `),"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[o]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,[u(`color`)]:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[u(`height`)]:e.controlHeightSM,[u(`padding-horizontal`)]:l(e.paddingXS).sub(e.lineWidth).equal(),[u(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d(`padding-horizontal`)}},"&-lg":{[u(`height`)]:e.controlHeightLG,[u(`font-size`)]:e.fontSizeLG,[u(`line-height`)]:e.lineHeightLG,[u(`font-height`)]:e.fontHeightLG,[u(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:d(`color`),fontFamily:`inherit`,fontSize:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`inherit`},[`${t}-content`]:{...td,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},iE(e),oE(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),oE(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),oE(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:sE(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:sE(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:sE(e,e.colorWarning)}),oE(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),nE(e)]}},lE=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,lineWidthFocus:i,controlHeight:a,controlHeightSM:o,controlHeightLG:s,paddingXXS:c,controlPaddingHorizontal:l,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:_,colorTextDisabled:v,colorPrimaryHover:y,colorPrimary:b,controlOutline:x}=e,S=c*2,C=r*2,w=Math.min(a-S,a-C),T=Math.min(o-S,o-C),E=Math.min(s-S,s-C),D=Math.floor(c/2);return{lineWidthFocus:i===0?0:r,INTERNAL_FIXED_ITEM_MARGIN:D,zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(a-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:s,multipleItemBg:g,multipleItemBorderColor:`transparent`,multipleItemHeight:w,multipleItemHeightSM:T,multipleItemHeightLG:E,multipleSelectorBgDisabled:_,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:x,selectAffixPadding:c}},uE=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0,pointerEvents:`none`},[`&${n}-allow-clear:not(${n}-show-arrow):not(${n}-customize) ${n}-content`]:{marginInlineEnd:e.showArrowPaddingInlineEnd}};return{[n]:{...nd(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...td,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),padding:0,background:`transparent`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontFamily:`inherit`,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,appearance:`none`,border:0,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},dE=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},uE(e),tE(e),{[`${t}-rtl`]:{direction:`rtl`}},Dy(e,{focusElCls:`${t}-focused`})]},fE=fd(`Select`,(e,{rootPrefixCls:t})=>{let n=wl(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dE(n),cE(n)]},lE,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),pE=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function mE(){return mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mE.apply(this,arguments)}var hE=x.forwardRef((e,t)=>x.createElement(qd,mE({},e,{ref:t,icon:pE.default}))),gE=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_E.apply(this,arguments)}var vE=x.forwardRef((e,t)=>x.createElement(qd,_E({},e,{ref:t,icon:gE.default}))),yE=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function bE(){return bE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bE.apply(this,arguments)}var xE=x.forwardRef((e,t)=>x.createElement(qd,bE({},e,{ref:t,icon:yE.default})));function SE({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:a,removeIcon:o,contextRemoveIcon:s,loading:c,loadingIcon:l,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:f,multiple:p,hasFeedback:m,showSuffixIcon:h,feedbackIcon:g,showArrow:_,componentName:v}){return x.useMemo(()=>{let v=pg(n,r,x.createElement($d,null)),y=t=>e===null&&!m&&!_?null:x.createElement(x.Fragment,null,h!==!1&&t,m&&g),b=null;b=e===void 0?c?y(pg(l,u,x.createElement(fg,{spin:!0}))):({open:e,showSearch:n})=>y(e&&n?pg(d,f,x.createElement(xE,null)):pg(t,x.createElement(vE,null))):y(e);let S=pg(i,a,p?x.createElement(hE,null):null),C=pg(o,s,x.createElement(nf,null));return{clearIcon:v,suffixIcon:b,itemIcon:S,removeIcon:C}},[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_])}function CE(e){return x.useMemo(()=>{if(e)return(...t)=>x.createElement(Gx,{space:!0},e.apply(void 0,t))},[e])}function wE(e,t){return t===void 0?e!==null:t}var TE=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,EE=x.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:v,direction:y,style:b,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,clearIcon:I,showSearch:L,...R}=e,{getPopupContainer:z,getPrefixCls:B,renderEmpty:V,direction:H,virtual:U,popupMatchSelectWidth:W,popupOverflow:ee}=x.useContext(Ao),{showSearch:G,allowClear:K,style:q,styles:J,className:te,classNames:Y,clearIcon:ne,loadingIcon:X,menuItemSelectedIcon:re,removeIcon:ie,suffixIcon:ae}=No(`select`),[,oe]=ed(),se=d??oe?.controlHeight,ce=B(`select`,n),le=B(),ue=y??H,{compactSize:de,compactItemClassnames:fe}=Z_(ce,ue),[pe,me]=ZT(`select`,C,r),he=Up(ce),[ge,_e]=fE(ce,he),ve=x.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===TE?`combobox`:t},[e.mode]),ye=ve===`multiple`||ve===`tags`,be=wE(e.suffixIcon,e.showArrow),xe=v??_??W,Se=CE(j||A),Ce=N||M,{status:we,hasFeedback:Te,isFormItemInput:Ee,feedbackIcon:De}=x.useContext(Hx),Oe=VT(we,h),ke;ke=m===void 0?ve===`combobox`?null:V?.(`Select`)||x.createElement(XT,{componentName:`Select`}):m;let{suffixIcon:Ae,itemIcon:je,removeIcon:Me,clearIcon:Ne}=SE({...R,multiple:ye,hasFeedback:Te,feedbackIcon:De,showSuffixIcon:be,prefixCls:ce,componentName:`Select`,clearIcon:I,searchIcon:zT(L,`searchIcon`),contextClearIcon:ne,contextLoadingIcon:X,contextMenuItemSelectedIcon:re,contextRemoveIcon:ie,contextSearchIcon:zT(G,`searchIcon`),contextSuffixIcon:ae}),Pe=S??K,Fe=Pe===!0?{clearIcon:Ne}:Pe,Ie=L??G,Le=Na(R,[`suffixIcon`,`itemIcon`]),Re=J_(e=>f??de??e),ze=x.useContext(ph),Be=p??ze,Ve={...e,variant:pe,status:Oe,disabled:Be,size:Re},He=vp(q),Ue=vp(b),[We,Ge]=bp([Y,F],[J,He,P,Ue],{props:Ve},{popup:{_default:`root`}}),Ke=Q(We.popup.root,s,c,{[`${ce}-dropdown-${ue}`]:ue===`rtl`},a,_e,he,ge),qe={...Ge.popup?.root,...w??T},Je=Q({[`${ce}-lg`]:Re===`large`,[`${ce}-sm`]:Re===`small`,[`${ce}-rtl`]:ue===`rtl`,[`${ce}-${pe}`]:me,[`${ce}-in-form-item`]:Ee},BT(ce,Oe,Te),fe,te,i,We.root,a,_e,he,ge),Ye=x.useMemo(()=>u===void 0?ue===`rtl`?`bottomRight`:`bottomLeft`:u,[u,ue]),[Xe]=Rg(`SelectLike`,Ge.popup.root?.zIndex??qe.zIndex);return x.createElement(RT,{ref:t,virtual:U,classNames:We,styles:Ge,showSearch:Ie,...Le,style:Ge.root,popupMatchSelectWidth:xe,transitionName:L_(le,`slide-up`,E),builtinPlacements:$T(g,ee),listHeight:l,listItemHeight:se,mode:ve,prefixCls:ce,placement:Ye,direction:ue,prefix:k,suffixIcon:Ae,menuItemSelectedIcon:je,removeIcon:Me,allowClear:Fe,notFoundContent:ke,className:Je,getPopupContainer:o||z,popupClassName:Ke,disabled:Be,popupStyle:{...Ge.popup.root,...qe,zIndex:Xe},maxCount:ye?O:void 0,tagRender:ye?D:void 0,popupRender:Se,onPopupVisibleChange:Ce})}),DE=FC(EE,`popupAlign`);EE.SECRET_COMBOBOX_MODE_DO_NOT_USE=TE,EE.Option=Uw,EE.OptGroup=Hw,EE._InternalPanelDoNotUseOrYouWillBeFired=DE;var{Option:OE}=EE;function kE(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var AE=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,popupClassName:a,dropdownClassName:o,children:s,dataSource:c,rootClassName:l,dropdownStyle:u,dropdownRender:d,popupRender:f,onDropdownVisibleChange:p,onOpenChange:m,styles:h,classNames:g,popupMatchSelectWidth:_,dropdownMatchSelectWidth:v}=e,y=Ba(s),b=f||d,S=m||p,C=_??v,w;y.length===1&&x.isValidElement(y[0])&&!kE(y[0])&&([w]=y);let T=w?()=>w:void 0,E;E=y.length&&kE(y[0])?s:c?c.map(e=>{if(x.isValidElement(e))return e;switch(typeof e){case`string`:return x.createElement(OE,{key:e,value:e},e);case`object`:{let{value:t}=e;return x.createElement(OE,{key:t,value:t},e.text)}default:return}}):[];let{getPrefixCls:D}=x.useContext(Ao),O=D(`select`,n),k={...e,popupRender:b,onOpenChange:S,popupMatchSelectWidth:C},[A,j]=bp([g],[h],{props:k},{popup:{_default:`root`}}),M=x.useMemo(()=>({root:Q(`${O}-auto-complete`,r,l,A.root,{[`${O}-customize`]:w}),prefix:A.prefix,input:A.input,placeholder:A.placeholder,content:A.content,popup:{root:Q(a,o,A.popup.root),list:A.popup.list,listItem:A.popup.listItem}}),[O,r,l,A,a,o]),N=x.useMemo(()=>({root:{...j.root,...i},input:j.input,prefix:j.prefix,placeholder:j.placeholder,content:j.content,popup:{root:{...u,...j.popup.root},list:j.popup.list,listItem:j.popup.listItem}}),[j,i,u]);return x.createElement(EE,{ref:t,suffixIcon:null,...Na(e,[`dataSource`,`dropdownClassName`,`popupClassName`]),prefixCls:O,classNames:M,styles:N,mode:EE.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:b,onPopupVisibleChange:S,popupMatchSelectWidth:C,getInputElement:T},E)}),{Option:jE}=EE,ME=FC(AE,`popupAlign`,e=>Na(e,[`visible`])),NE=AE;NE.Option=jE,NE._InternalPanelDoNotUseOrYouWillBeFired=ME;var PE=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],FE=[].concat(PE).reverse(),IE=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),LE=e=>{let t=e,n=[].concat(PE).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},RE=(e,t)=>{if(t){for(let n of PE)if(e[n]&&t?.[n]!==void 0)return t[n]}},zE=()=>{let[,e]=ed(),t=IE(LE(e));return x.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);op(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];op(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function BE(e=!0,t={}){let n=(0,x.useRef)(t),[,r]=Sg(),i=zE();return Qr(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[e]),n.current}var VE=e=>np(e)?op(e)?e():e:null,HE=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return x.createElement(`div`,{id:r,className:Q(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},UE={shiftX:64,adjustY:1},WE={adjustX:1,shiftY:!0},GE=[0,0],KE={left:{points:[`cr`,`cl`],overflow:WE,offset:[-4,0],targetOffset:GE},right:{points:[`cl`,`cr`],overflow:WE,offset:[4,0],targetOffset:GE},top:{points:[`bc`,`tc`],overflow:UE,offset:[0,-4],targetOffset:GE},bottom:{points:[`tc`,`bc`],overflow:UE,offset:[0,4],targetOffset:GE},topLeft:{points:[`bl`,`tl`],overflow:UE,offset:[0,-4],targetOffset:GE},leftTop:{points:[`tr`,`tl`],overflow:WE,offset:[-4,0],targetOffset:GE},topRight:{points:[`br`,`tr`],overflow:UE,offset:[0,-4],targetOffset:GE},rightTop:{points:[`tl`,`tr`],overflow:WE,offset:[4,0],targetOffset:GE},bottomRight:{points:[`tr`,`br`],overflow:UE,offset:[0,4],targetOffset:GE},rightBottom:{points:[`bl`,`br`],overflow:WE,offset:[4,0],targetOffset:GE},bottomLeft:{points:[`tl`,`bl`],overflow:UE,offset:[0,4],targetOffset:GE},leftBottom:{points:[`br`,`bl`],overflow:WE,offset:[-4,0],targetOffset:GE}};function qE(){return qE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qE.apply(this,arguments)}var JE=x.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:v=!0,classNames:y,styles:b,...S}=e,C=pi(_),w=(0,x.useRef)(null);(0,x.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=x.useMemo(()=>{if(!v)return!1;let e=v===!0?{}:v;return{...e,className:Q(e.className,y?.arrow),style:{...e.style,...b?.arrow},content:e.content??h}},[v,y?.arrow,b?.arrow,h]);return x.createElement(ah,qE({popupClassName:y?.root,prefixCls:a,popup:x.createElement(HE,{key:`content`,prefixCls:a,id:C,classNames:y,styles:b},g),action:n,builtinPlacements:KE,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:b?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:y?.uniqueContainer,uniqueContainerStyle:b?.uniqueContainer},T),({open:e})=>{let t=x.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return x.cloneElement(t,n)})});function YE(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var XE=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e,l={content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${$(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,zIndex:0,background:`transparent`};return n&&(l.boxShadow=n),{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":l}};function ZE(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var QE=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=hd(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...XE(e,t,u?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${$(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${$(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}}};function $E(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=ap(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var eD={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`]}},tD={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`]}},nD=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function rD(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=ZE({contentRadius:a,limitVerticalRadius:!0});return Object.keys(eD).forEach(e=>{let a={...r&&tD[e]||eD[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,nD.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s}a.overflow=$E(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var iD=x.createContext(!1),aD=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return x.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},oD=`50%`,sD=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,dropShadowPopover:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=hd(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${$(e.calc(u).div(2).equal())} ${$(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,oD),`var(--arrow-y, ${oD})`].join(` `)};return[{[n]:{...nd(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,filter:l,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,yv(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...gd(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},QE(e,g(`arrow-background-color`),{arrowShadow:!1}),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),filter:l,"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},cD=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...ZE({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...YE(wl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),lD=(e,t,n=!0)=>fd(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[sD(wl(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),$v(e,`zoom-big-fast`)]},cD,{resetStyle:!1,injectStyle:n})(e,t),uD=Fl.map(e=>`${e}-inverse`),dD=[`success`,`processing`,`error`,`default`,`warning`];function fD(e,t=!0){return t?[].concat(Do(uD),Do(Fl)).includes(e):Fl.includes(e)}function pD(e){return dD.includes(e)}var mD=(e,t,n)=>{let r=fD(n),[i]=hd(e,`tooltip`),a=Q({[`${t}-${n}`]:n&&r}),o={},s={},c=fy(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},hD=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=x.useContext(Ao),u=l(`tooltip`,t),d=l(),f=Up(u),[p,m]=lD(u,f),h=mD(d,u,a),g=h.arrowStyle,_=x.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),v={...e,placement:r},[y,b]=bp([s],[_,c],{props:v}),S=Q(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return x.createElement(`div`,{className:S,style:g},x.createElement(`div`,{className:`${u}-arrow`}),x.createElement(HE,{...e,className:p,prefixCls:u,classNames:y,styles:b},i))},gD=x.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:v=`top`,mouseEnterDelay:y,mouseLeaveDelay:b,rootClassName:S,styles:C,classNames:w,onOpenChange:T,overlayInnerStyle:E,overlayStyle:D,overlayClassName:O,...k}=e,[,A]=ed(),j=e[`data-popover-inject`],{getPopupContainer:M,getPrefixCls:N,direction:P,...F}=No(`tooltip`),{className:I,style:L,classNames:R,styles:z,arrow:B,trigger:V,mouseEnterDelay:H,mouseLeaveDelay:U}=j?{}:F,W=y??H??.1,ee=b??U??.1,G=aD(c,B),K=G.show,q=p||V||`hover`,J=_||M,te=u??!!l,Y=x.useContext(iD);io(`Tooltip`);let ne=x.useRef(null),X=()=>{ne.current?.forceAlign()};x.useImperativeHandle(t,()=>({forceAlign:X,nativeElement:ne.current?.nativeElement,popupElement:ne.current?.popupElement}));let[re,ie]=ti(e.defaultOpen??!1,e.open),ae=!d&&!f&&d!==0,oe=e=>{ie(!ae&&e),!ae&&T&&T(e)},se=x.useMemo(()=>m||rD({arrowPointAtCenter:G?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:K?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0}),[G,m,A,K,h]),ce=x.useMemo(()=>d===0?d:f||d||``,[f,d]),le=x.createElement(Gx,{space:!0,form:!0},op(ce)?ce():ce),ue={...e,trigger:q,builtinPlacements:se,getPopupContainer:J,destroyOnHidden:te,mouseEnterDelay:W,mouseLeaveDelay:ee},de=vp(L),fe=vp(D),[pe,me]=bp([R,w],[z,de,C,fe],{props:ue}),he=N(`tooltip`,n),ge=N(),_e=re;(!(`open`in e)&&ae||Y)&&(_e=!1);let ve=x.isValidElement(o)&&!oh(o)?o:x.createElement(`span`,null,o),ye=ve.props,be=!ye.className||typeof ye.className==`string`?Q(ye.className,r||`${he}-open`):ye.className,xe=Up(he),[Se,Ce]=lD(he,xe,!j),we=mD(ge,he,a),Te=we.arrowStyle,Ee=Q(xe,Se,Ce),De=Q(O,{[`${he}-rtl`]:P===`rtl`},we.className,S,Ee,I,pe.root),[Oe,ke]=Rg(`Tooltip`,k.zIndex),Ae={...me.container,...E,...we.overlayStyle},je=x.createElement(JE,{unique:!0,...k,zIndex:Oe,showArrow:K,placement:v,mouseEnterDelay:W,mouseLeaveDelay:ee,prefixCls:he,classNames:{root:De,container:pe.container,arrow:pe.arrow,uniqueContainer:Q(Ee,pe.container)},styles:{root:{...Te,...me.root},container:Ae,uniqueContainer:Ae,arrow:me.arrow},ref:ne,overlay:le,visible:_e,onVisibleChange:oe,afterVisibleChange:s,arrowContent:x.createElement(`span`,{className:`${he}-arrow-content`}),motion:{motionName:L_(ge,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:q,builtinPlacements:se,getTooltipContainer:J,destroyOnHidden:te},_e&&!k.disabled?ch(ve,{className:be}):ve);return x.createElement(Mg.Provider,{value:ke},je)});gD._InternalPanelDoNotUseOrYouWillBeFired=hD,gD.UniqueProvider=fh;var _D=`50%`,vD=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,dropShadowPopover:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=hd(g,`tooltip`);return[{[t]:{...nd(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,filter:o,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,_D),`var(--arrow-y, ${_D})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},QE(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},yD=e=>{let{componentCls:t,antCls:n}=e,[r]=hd(n,`tooltip`);return{[t]:Fl.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},bD=fd(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=wl(e,{popoverBg:t,popoverColor:n});return[vD(r),yD(r),$v(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...YE(e),...ZE({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),xD=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!np(t)&&!np(n)?null:x.createElement(x.Fragment,null,np(t)&&x.createElement(`div`,{className:Q(`${r}-title`,i?.title),style:a?.title},t),np(n)&&x.createElement(`div`,{className:Q(`${r}-content`,i?.content),style:a?.content},n))},SD=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=VE(o),f=VE(s),p={...e,placement:a},[m,h]=bp([l],[u],{props:p}),g=Q(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return x.createElement(`div`,{className:g,style:i},x.createElement(`div`,{className:`${n}-arrow`}),x.createElement(HE,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||x.createElement(xD,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},CD=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=x.useContext(Ao),a=i(`popover`,t),[o,s]=bD(a);return x.createElement(SD,{...r,prefixCls:a,hashId:o,className:Q(n,s)})},wD=x.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l,mouseLeaveDelay:u,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:v,className:y,style:b,classNames:S,styles:C,arrow:w,trigger:T,mouseEnterDelay:E,mouseLeaveDelay:D}=No(`popover`),O=l??E??.1,k=u??D??.1,A=v(`popover`,n),[j,M]=bD(A),N=v(),P=aD(g,w),F=s||T||`hover`,I={...e,placement:o,trigger:F,mouseEnterDelay:O,mouseLeaveDelay:k,overlayStyle:f,styles:p,classNames:m},L=vp(b),R=vp(f),[z,B]=bp([S,m],[C,L,p,R],{props:I}),V=Q(a,j,M,y,z.root),[H,U]=ti(e.defaultOpen??!1,e.open),W=e=>{U(e),d?.(e)},ee=VE(r),G=VE(i);return x.createElement(gD,{unique:!1,arrow:P,placement:o,trigger:F,mouseEnterDelay:O,mouseLeaveDelay:k,..._,prefixCls:A,classNames:{root:V,container:z.container,arrow:z.arrow},styles:{root:B.root,container:B.container,arrow:B.arrow},ref:t,open:H,onOpenChange:W,overlay:np(ee)||np(G)?x.createElement(xD,{prefixCls:A,title:ee,content:G,classNames:z,styles:B}):null,motion:{motionName:L_(N,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});wD._InternalPanelDoNotUseOrYouWillBeFired=CD;var TD=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function ED(){return ED=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ED.apply(this,arguments)}var DD=x.forwardRef((e,t)=>x.createElement(qd,ED({},e,{ref:t,icon:TD.default}))),{ESC:OD,TAB:kD}=ha;function AD({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=x.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case OD:o();break;case kD:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};x.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&si(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var jD=(0,x.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,x.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=Ti(t,Ai(a));return x.createElement(x.Fragment,null,r&&x.createElement(`div`,{className:`${i}-arrow`}),x.cloneElement(a,{ref:Di(a)?o:void 0}))}),MD={adjustX:1,adjustY:1},ND=[0,0],PD={topLeft:{points:[`bl`,`tl`],overflow:MD,offset:[0,-4],targetOffset:ND},top:{points:[`bc`,`tc`],overflow:MD,offset:[0,-4],targetOffset:ND},topRight:{points:[`br`,`tr`],overflow:MD,offset:[0,-4],targetOffset:ND},bottomLeft:{points:[`tl`,`bl`],overflow:MD,offset:[0,4],targetOffset:ND},bottom:{points:[`tc`,`bc`],overflow:MD,offset:[0,4],targetOffset:ND},bottomRight:{points:[`tr`,`br`],overflow:MD,offset:[0,4],targetOffset:ND}};function FD(){return FD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FD.apply(this,arguments)}var ID=x.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=PD,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:v,onVisibleChange:y,disabled:b,...S}=e,[C,w]=x.useState(),T=`visible`in e?m:C,E=a?`${r}-${a}`:i,D=x.useRef(null),O=x.useRef(null),k=x.useRef(null);x.useImperativeHandle(t,()=>D.current);let A=e=>{w(e),y?.(e)};AD({visible:T,triggerRef:k,onVisibleChange:A,autoFocus:g,overlayRef:O});let j=t=>{let{onOverlayClick:n}=e;w(!1),n&&n(t)},M=()=>x.createElement(jD,{ref:O,overlay:_,prefixCls:r,arrow:n}),N=()=>typeof _==`function`?M:M(),P=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},F=()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t},I=v,L=Q(I.props?.className,T&&F()),R={className:L,ref:Ti(k,Ai(I))},z=Di(I)?x.cloneElement(I,R):x.createElement(`span`,{className:L,ref:k},x.cloneElement(I,{className:L})),B=d;return!B&&h.indexOf(`contextMenu`)!==-1&&(B=[`click`]),x.createElement(ah,FD({builtinPlacements:c},S,{prefixCls:r,ref:D,popupClassName:Q(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:B,popupPlacement:s,popupAlign:o,popupMotion:{motionName:E},popupVisible:T,stretch:P()?`minWidth`:``,popup:N(),onOpenChange:A,onPopupClick:j,getPopupContainer:l}),z)}),LD=x.createContext(null);function RD(e,t){return`${e}-${t}`}function zD(e){return RD(x.useContext(LD),e)}var BD=x.createContext(null);function VD(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function HD({children:e,locked:t,...n}){let r=x.useContext(BD),i=mi(()=>VD(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!ka(e[1],n[1],!0)));return x.createElement(BD.Provider,{value:i},e)}var UD=[],WD=x.createContext(null);function GD(){return x.useContext(WD)}var KD=x.createContext(UD);function qD(e){let t=x.useContext(KD);return x.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var JD=x.createContext(null),YD=x.createContext({}),{LEFT:XD,RIGHT:ZD,UP:QD,DOWN:$D,ENTER:eO,ESC:tO,HOME:nO,END:rO}=ha,iO=[QD,$D,XD,ZD];function aO(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===eO)return{inlineTrigger:!0};let c={[QD]:i,[$D]:a},l={[XD]:n?a:i,[ZD]:n?i:a,[$D]:o,[eO]:o},u={[QD]:i,[$D]:a,[eO]:o,[tO]:s,[XD]:n?o:s,[ZD]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function oO(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function sO(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function cO(e,t){return Yi(e,!0).filter(e=>t.has(e))}function lO(e,t,n,r=1){if(!e)return null;let i=cO(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var uO=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${RD(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function dO(e,t,n,r,i,a,o,s,c,l){let u=x.useRef(),d=x.useRef();d.current=t;let f=()=>{si.cancel(u.current)};return x.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...iO,eO,tO,nO,rO].includes(m)){let l=a(),h=uO(l,r),{elements:g,key2element:_,element2key:v}=h,y=sO(_.get(t),g),b=v.get(y),x=aO(e,o(b,!0).length===1,n,m);if(!x&&m!==nO&&m!==rO)return;(iO.includes(m)||[nO,rO].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=si(()=>{d.current===r&&t.focus()})}};if([nO,rO].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:oO(y);let n,r=cO(t,g);n=m===nO?r[0]:m===rO?r[r.length-1]:lO(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=si(()=>{h=uO(l,r);let e=y.getAttribute(`aria-controls`),t=lO(document.getElementById(e),h.elements);S(t)},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function fO(e){Promise.resolve().then(e)}var pO=`__RC_UTIL_PATH_SPLIT__`,mO=e=>e.join(pO),hO=e=>e.split(pO),gO=`rc-menu-more`;function _O(){let[,e]=x.useState({}),t=(0,x.useRef)(new Map),n=(0,x.useRef)(new Map),[r,i]=x.useState([]),a=(0,x.useRef)(0),o=(0,x.useRef)(!1),s=()=>{o.current||e({})},c=(0,x.useCallback)((e,r)=>{let i=mO(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;fO(()=>{o===a.current&&s()})},[]),l=(0,x.useCallback)((e,r)=>{let i=mO(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,x.useCallback)(e=>{i(e)},[]),d=(0,x.useCallback)((e,n)=>{let i=hO(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(gO),i},[r]),f=(0,x.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(gO),e},m=(0,x.useCallback)(e=>{let r=`${t.current.get(e)}${pO}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return x.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function vO(e){let t=x.useRef(e);t.current=e;let n=x.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function yO(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=x.useContext(BD),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function bO(e){let{mode:t,rtl:n,inlineIndent:r}=x.useContext(BD);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function xO({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=x.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function SO({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Da(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function CO(){return CO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CO.apply(this,arguments)}var wO=class extends x.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=Na(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return Da(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),x.createElement(Dw.Item,CO({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},TO=x.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,itemData:l,role:u,onMouseEnter:d,onMouseLeave:f,onClick:p,onKeyDown:m,onFocus:h,...g}=e,_=zD(i),{prefixCls:v,onItemClick:y,disabled:b,overflowDisabled:S,itemIcon:C,selectedKeys:w,onActive:T}=x.useContext(BD),{_internalRenderMenuItem:E}=x.useContext(YD),D=`${v}-item`,O=x.useRef(),k=x.useRef(),A=b||o,j=Ei(t,k),M=qD(i),N=t=>{let n=l||{key:i||``,label:c,itemIcon:s,extra:e.extra,title:e.title};return{key:i,keyPath:[...M].reverse(),item:O.current,domEvent:t,itemData:l||n}},P=s||C,{active:F,...I}=yO(i,A,d,f),L=w.includes(i),R=bO(M.length),z=e=>{if(A)return;let t=N(e);p?.(SO(t)),y(t)},B=e=>{if(m?.(e),e.which===ha.ENTER){let t=N(e);p?.(SO(t)),y(t)}},V=e=>{T(i),h?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=L);let U=x.createElement(wO,CO({ref:O,elementRef:j,role:u===null?`none`:u||`menuitem`,tabIndex:o?null:-1,"data-menu-id":S&&_?null:_},Na(g,[`extra`]),I,H,{component:`li`,"aria-disabled":o,style:{...R,...n},className:Q(D,{[`${D}-active`]:F,[`${D}-selected`]:L,[`${D}-disabled`]:A},r),onClick:z,onKeyDown:B,onFocus:V}),c,x.createElement(xO,{props:{...e,isSelected:L},icon:P}));return E&&(U=E(U,e,{selected:L})),U});function EO(e,t){let{eventKey:n}=e,r=GD(),i=qD(n);return x.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:x.createElement(TO,CO({},e,{ref:t}))}var DO=x.forwardRef(EO);function OO(){return OO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OO.apply(this,arguments)}var kO=x.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=x.useContext(BD);return x.createElement(`ul`,OO({className:Q(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function AO(e,t){return Ba(e).map((e,n)=>{if(x.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return x.cloneElement(e,a)}return e})}var jO={adjustX:1,adjustY:1},MO={topLeft:{points:[`bl`,`tl`],overflow:jO},topRight:{points:[`br`,`tr`],overflow:jO},bottomLeft:{points:[`tl`,`bl`],overflow:jO},bottomRight:{points:[`tr`,`br`],overflow:jO},leftTop:{points:[`tr`,`tl`],overflow:jO},leftBottom:{points:[`br`,`bl`],overflow:jO},rightTop:{points:[`tl`,`tr`],overflow:jO},rightBottom:{points:[`bl`,`br`],overflow:jO}},NO={topLeft:{points:[`bl`,`tl`],overflow:jO},topRight:{points:[`br`,`tr`],overflow:jO},bottomLeft:{points:[`tl`,`bl`],overflow:jO},bottomRight:{points:[`tr`,`br`],overflow:jO},rightTop:{points:[`tr`,`tl`],overflow:jO},rightBottom:{points:[`br`,`bl`],overflow:jO},leftTop:{points:[`tl`,`tr`],overflow:jO},leftBottom:{points:[`bl`,`br`],overflow:jO}};function PO(e,t,n){if(t)return t;if(n)return n[e]||n.other}var FO={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function IO({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:v,defaultMotions:y}=x.useContext(BD),[b,S]=x.useState(!1),C=d?{...NO,...m}:{...MO,...m},w=FO[c],T=PO(c,v,y),E=x.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=x.useRef();return x.useEffect(()=>(O.current=si(()=>{S(t)}),()=>{si.cancel(O.current)}),[t]),x.createElement(ah,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:b,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function LO(){return LO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LO.apply(this,arguments)}function RO({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=x.useContext(BD),u=x.useRef(!1);u.current=l===i;let[d,f]=x.useState(!u.current),p=u.current?t:!1;x.useEffect(()=>{u.current&&f(!1)},[l]);let m={...PO(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:x.createElement(HD,{mode:i,locked:!u.current},x.createElement(ep,LO({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>x.createElement(kO,{id:e,className:t,style:n},r)))}function zO(){return zO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zO.apply(this,arguments)}var BO=x.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:v,onMouseLeave:y,onTitleClick:b,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=zD(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=x.useContext(BD),{_internalRenderSubMenuItem:B}=x.useContext(YD),{isSubPathKey:V}=x.useContext(JD),H=qD(),U=`${D}-submenu`,W=A||l,ee=x.useRef(),G=x.useRef(),K=f??P,q=p??F,J=k.includes(s),te=!j&&J,Y=V(N,s),{active:ne,...X}=yO(s,W,S,C),[re,ie]=x.useState(!1),ae=e=>{W||ie(e)},oe=e=>{ae(!0),v?.({key:s,domEvent:e})},se=e=>{ae(!1),y?.({key:s,domEvent:e})},ce=x.useMemo(()=>ne||(O===`inline`?!1:re||V([M],s)),[O,ne,M,re,s,V]),le=bO(H.length),ue=e=>{W||(b?.({key:s,domEvent:e}),O===`inline`&&L(s,!J))},de=vO(e=>{_?.(SO(e)),I(e)}),fe=e=>{O!==`inline`&&L(s,e)},pe=()=>{R(s)},me=E&&`${E}-popup`,he=x.useMemo(()=>x.createElement(xO,{icon:O===`horizontal`?void 0:q,props:{...e,isOpen:te,isSubMenu:!0}},x.createElement(`i`,{className:`${U}-arrow`})),[O,q,e,te,U]),ge=x.createElement(`div`,zO({role:`menuitem`,style:le,className:`${U}-title`,tabIndex:W?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":te,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":W,onClick:ue,onFocus:pe},X),o,he),_e=x.useRef(O);_e.current=O!==`inline`&&H.length>1?`vertical`:O;let ve=_e.current,ye=x.useMemo(()=>{let t=x.createElement(HD,{classNames:a,styles:i,mode:ve===`horizontal`?`vertical`:ve},x.createElement(kO,{id:me,ref:G},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,me,d,e,ve]);if(!j){let e=_e.current;ge=x.createElement(IO,{mode:e,prefixCls:U,visible:!u&&te&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:ye,disabled:W,onVisibleChange:fe},ge)}let be=x.createElement(Dw.Item,zO({ref:t,role:`none`},T,{component:`li`,style:n,className:Q(U,`${U}-${O}`,r,{[`${U}-open`]:te,[`${U}-active`]:ce,[`${U}-selected`]:Y,[`${U}-disabled`]:W}),onMouseEnter:oe,onMouseLeave:se}),ge,!j&&x.createElement(RO,{id:me,open:te,keyPath:H},d));return B&&(be=B(be,e,{selected:Y,active:ce,open:te,disabled:W})),x.createElement(HD,{classNames:a,styles:i,onItemClick:de,mode:O===`horizontal`?`vertical`:O,itemIcon:K,expandIcon:q},be)}),VO=x.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=qD(n),a=AO(r,i),o=GD();x.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:x.createElement(BO,zO({ref:t},e),a),x.createElement(KD.Provider,{value:i},s)});function HO({className:e,style:t}){let{prefixCls:n}=x.useContext(BD);return GD()?null:x.createElement(`li`,{role:`separator`,className:Q(`${n}-item-divider`,e),style:t})}function UO(){return UO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UO.apply(this,arguments)}var WO=x.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=x.useContext(BD),u=`${s}-item-group`;return x.createElement(`li`,UO({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:Q(u,n)}),x.createElement(`div`,{role:`presentation`,className:Q(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),x.createElement(`ul`,{role:`group`,className:Q(`${u}-list`,c?.list),style:l?.list},a))}),GO=x.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=AO(r,qD(n));return GD()?i:x.createElement(WO,UO({ref:t},Na(e,[`warnKey`])),i)});function KO(){return KO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KO.apply(this,arguments)}function qO(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;if(l||d===`group`)return d===`group`?x.createElement(i,KO({key:m},p,{title:c}),qO(l,t,n)):x.createElement(a,KO({key:m},p,{title:c}),qO(l,t,n));if(d===`divider`)return x.createElement(o,KO({key:m},p));let h=!!f||f===0;return x.createElement(r,KO({key:m},p,{extra:f,itemData:{...e,key:m}}),h?x.createElement(x.Fragment,null,x.createElement(`span`,{className:`${n}-item-label`},c),x.createElement(`span`,{className:`${n}-item-extra`},f)):c)}return null}).filter(e=>e)}function JO(e,t,n,r,i){let a=e,o={divider:HO,item:DO,group:GO,submenu:VO,...r};return t&&(a=qO(t,o,i)),AO(a,n)}function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YO.apply(this,arguments)}var XO=[],ZO=x.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:v=.1,forceSubMenuRender:y,defaultOpenKeys:b,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:T=!0,multiple:E=!1,defaultSelectedKeys:D,selectedKeys:O,onSelect:k,onDeselect:A,inlineIndent:j=24,motion:M,defaultMotions:N,triggerSubMenuAction:P=`hover`,builtinPlacements:F,itemIcon:I,expandIcon:L,overflowedIndicator:R=`...`,overflowedIndicatorPopupClassName:z,getPopupContainer:B,onClick:V,onOpenChange:H,onKeyDown:U,openAnimation:W,openTransitionName:ee,_internalRenderMenuItem:G,_internalRenderSubMenuItem:K,_internalComponents:q,popupRender:J,...te}=e,[Y,ne]=x.useMemo(()=>[JO(u,l,XO,q,n),JO(u,l,XO,{},n)],[u,l,q]),[X,re]=x.useState(!1),ie=x.useRef(),ae=pi(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),oe=d===`rtl`,[se,ce]=ti(b,S),le=se||XO,ue=(e,t=!1)=>{function n(){ce(e),H?.(e)}t?(0,$a.flushSync)(n):n()},[de,fe]=x.useState(le),pe=x.useRef(!1),[me,he]=x.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),ge=me===`inline`,[_e,ve]=x.useState(me),[ye,be]=x.useState(he);x.useEffect(()=>{ve(me),be(he),pe.current&&(ge?ce(de):ue(XO))},[me,he]);let[xe,Se]=x.useState(0),Ce=xe>=Y.length-1||_e!==`horizontal`||g;x.useEffect(()=>{ge&&fe(le)},[le]),x.useEffect(()=>(pe.current=!0,()=>{pe.current=!1}),[]);let{registerPath:we,unregisterPath:Te,refreshOverflowKeys:Ee,isSubPathKey:De,getKeyPath:Oe,getKeys:ke,getSubPathKeys:Ae}=_O(),je=x.useMemo(()=>({registerPath:we,unregisterPath:Te}),[we,Te]),Me=x.useMemo(()=>({isSubPathKey:De}),[De]);x.useEffect(()=>{Ee(Ce?XO:Y.slice(xe+1).map(e=>e.key))},[xe,Ce]);let[Ne,Pe]=ti(C||w&&Y[0]?.key,C),Fe=vO(e=>{Pe(e)}),Ie=vO(()=>{Pe(void 0)});(0,x.useImperativeHandle)(t,()=>({list:ie.current,focus:e=>{let t=ke(),{elements:n,key2element:r,element2key:i}=uO(t,ae),a=cO(ie.current,n),o;o=Ne&&t.includes(Ne)?Ne:a[0]?i.get(a[0]):Y.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=uO(ke(),ae);return t.get(e)||null}}));let[Le,Re]=ti(D||[],O),ze=x.useMemo(()=>Array.isArray(Le)?Le:Le==null?XO:[Le],[Le]),Be=e=>{if(T){let{key:t}=e,n=ze.includes(t),r;r=E?n?ze.filter(e=>e!==t):[...ze,t]:[t],Re(r);let i={...e,selectedKeys:r};n?A?.(i):k?.(i)}!E&&le.length&&_e!==`inline`&&ue(XO)},Ve=vO(e=>{V?.(SO(e)),Be(e)}),He=vO((e,t)=>{let n=le.filter(t=>t!==e);if(t)n.push(e);else if(_e!==`inline`){let t=Ae(e);n=n.filter(e=>!t.has(e))}ka(le,n,!0)||ue(n,!0)}),Ue=dO(_e,Ne,oe,ae,ie,ke,Oe,Pe,(e,t)=>{let n=t??!le.includes(e);He(e,n)},U);x.useEffect(()=>{re(!0)},[]);let We=x.useMemo(()=>({_internalRenderMenuItem:G,_internalRenderSubMenuItem:K}),[G,K]),Ge=_e!==`horizontal`||g?Y:Y.map((e,t)=>x.createElement(HD,{key:e.key,overflowDisabled:t>xe,classNames:s,styles:o},e)),Ke=x.createElement(Dw,YO({id:f,ref:ie,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:DO,className:Q(n,`${n}-root`,`${n}-${_e}`,a,{[`${n}-inline-collapsed`]:ye,[`${n}-rtl`]:oe},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Ge,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?Y.slice(-t):null;return x.createElement(VO,{eventKey:gO,title:R,disabled:Ce,internalPopupClose:t===0,popupClassName:z},n)},maxCount:_e!==`horizontal`||g?Dw.INVALIDATE:Dw.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Se(e)},onKeyDown:Ue},te));return x.createElement(YD.Provider,{value:We},x.createElement(LD.Provider,{value:ae},x.createElement(HD,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:_e,openKeys:le,rtl:oe,disabled:h,motion:X?M:null,defaultMotions:X?N:null,activeKey:Ne,onActive:Fe,onInactive:Ie,selectedKeys:ze,inlineIndent:j,subMenuOpenDelay:_,subMenuCloseDelay:v,forceSubMenuRender:y,builtinPlacements:F,triggerSubMenuAction:P,getPopupContainer:B,itemIcon:I,expandIcon:L,onItemClick:Ve,onOpenChange:He,popupRender:J},x.createElement(JD.Provider,{value:Me},Ke),x.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},x.createElement(WD.Provider,{value:je},ne)))))});ZO.Item=DO,ZO.SubMenu=VO,ZO.ItemGroup=GO,ZO.Divider=HO;var QO=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function $O(){return $O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$O.apply(this,arguments)}var ek=x.forwardRef((e,t)=>x.createElement(qd,$O({},e,{ref:t,icon:QO.default}))),tk=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),nk=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{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:a,padding:o,color:s,lineHeight:$(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},rk=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},ik=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],ak=fd(`Layout`,nk,rk,{deprecatedTokens:ik}),ok=fd([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:$(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${$(f)} ${$(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${$(f)} 0 0 ${$(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`${$(e.lineWidth)} ${e.lineType} ${g}`,borderInlineStart:0}}}}},rk,{deprecatedTokens:ik}),sk={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},ck=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),lk=x.createContext({}),uk=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),dk=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,classNames:_,styles:v,...y}=e,{siderHook:b}=(0,x.useContext)(tk),[S,C]=(0,x.useState)(`collapsed`in e?e.collapsed:o),[w,T]=(0,x.useState)(!1);(0,x.useEffect)(()=>{`collapsed`in e&&C(e.collapsed)},[e.collapsed]);let E=(t,n)=>{`collapsed`in e||C(t),h?.(t,n)},D={...e,collapsed:S,defaultCollapsed:o,theme:s,style:c,collapsible:l,reverseArrow:u,width:d,collapsedWidth:f,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g},[O,k]=bp([_],[v],{props:D}),{getPrefixCls:A,direction:j}=(0,x.useContext)(Ao),M=A(`layout-sider`,n),[N,P]=ok(M),F=(0,x.useRef)(null);F.current=e=>{T(e.matches),g?.(e.matches),S!==e.matches&&E(e.matches,`responsive`)},(0,x.useEffect)(()=>{function e(e){return F.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in sk&&(t=window.matchMedia(`screen and (max-width: ${sk[m]})`),op(t?.addEventListener)&&t.addEventListener(`change`,e),e(t)),()=>{op(t?.removeEventListener)&&t.removeEventListener(`change`,e)}},[m]),(0,x.useEffect)(()=>{let e=uk(`ant-sider-`);return b.addSider(e),()=>b.removeSider(e)},[]);let I=()=>{E(!S,`clickTrigger`)},L=Na(y,[`collapsed`]),R=S?f:d,z=ck(R)?`${R}px`:String(R),B=Number.parseFloat(String(f||0))===0?x.createElement(`span`,{onClick:I,className:Q(`${M}-zero-width-trigger`,`${M}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||x.createElement(ek,null)):null,V=j===`rtl`==!u,H={expanded:V?x.createElement(uy,null):x.createElement(DD,null),collapsed:V?x.createElement(DD,null):x.createElement(uy,null)}[S?`collapsed`:`expanded`],U=i===null?null:B||x.createElement(`div`,{className:`${M}-trigger`,onClick:I,style:{width:z}},i||H),W={...c,flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z},ee=Q(M,`${M}-${s}`,{[`${M}-collapsed`]:!!S,[`${M}-has-trigger`]:l&&i!==null&&!B,[`${M}-below`]:!!w,[`${M}-zero-width`]:Number.parseFloat(z)===0},r,O.root,N,P),G=x.useMemo(()=>({siderCollapsed:S}),[S]);return x.createElement(lk.Provider,{value:G},x.createElement(`aside`,{className:ee,...L,style:{...k.root,...W},ref:t},x.createElement(`div`,{className:Q(`${M}-children`,O.body),style:k.body},a),l||w&&B?U:null))}),fk=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pk.apply(this,arguments)}var mk=x.forwardRef((e,t)=>x.createElement(qd,pk({},e,{ref:t,icon:fk.default}))),hk=(0,x.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),gk=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=x.useContext(Ao),o=Q({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return x.createElement(HO,{className:o,...i})},_k=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=x.useContext(hk),{siderCollapsed:h}=x.useContext(lk),g=!!(h||f),[_,v]=x.useState(!1);x.useEffect(()=>{v(!1)},[g]);let y=e=>{let t=n?.[0],i=x.createElement(`span`,{className:Q(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||x.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?x.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},b=i;i===void 0?b=c?n:``:i===!1&&(b=``);let S=d===!1?void 0:d,C=S&&S.title!==void 0?S.title:b,w={...S??null,title:C};g?(w.open=S?.open??_,w.onOpenChange=e=>{v(e),S?.onOpenChange?.(e)}):(w.title=null,w.open=!1);let T=Ba(n).length,E=x.createElement(DO,{...Na(e,[`title`,`icon`,`danger`]),className:Q(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?T+1:T)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},ch(r,e=>({className:Q(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),y(f));if(!u&&d!==!1){let e=S&&S.placement?S.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:Q(t,e?.root)}),r=op(S?.classNames)?e=>{let t=S.classNames(e);return n(t)}:n(S?.classNames);E=x.createElement(gD,{...w,placement:e,classNames:r},E)}return E},vk=x.createContext(null),yk=x.forwardRef((e,t)=>{let{children:n,...r}=e,i=x.useContext(vk),a=x.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=ki(n),s=Ei(t,o?Ai(n):null);return x.createElement(vk.Provider,{value:a},x.createElement(Gx,{space:!0},o?x.cloneElement(n,{ref:s}):n))}),bk=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${$(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
|
176
|
+
> ${t}-item-active,
|
|
177
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},xk=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
|
|
178
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${$(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${$(t)})`}}}}),Sk=e=>od(e),Ck=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...Sk(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...Sk(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${$(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${$(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},wk=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:$(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
|
179
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:$(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
180
|
+
${t}-submenu-title`]:{paddingInlineEnd:u}}},Tk=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,padding:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:h}=e,g={height:r,lineHeight:$(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...wk(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...wk(e),boxShadow:p}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${$(e.calc(o).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 ${d}`,`background-color ${d}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`,width:`100%`}}},[`> ${t}-item,
|
|
181
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
182
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
183
|
+
> ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,insetInlineStart:0,paddingInline:`calc(50% - ${$(e.calc(h).div(2).equal())} - ${$(l)})`,textOverflow:`clip`,[`
|
|
184
|
+
${t}-submenu-arrow,
|
|
185
|
+
${t}-submenu-expand-icon
|
|
186
|
+
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:$(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:s},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...td,paddingInline:f}}}]},Ek=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...rd()},[`&${t}-item-only-child`]:{[`> ${o}, > ${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`}}}},Dk=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${$(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${$(o)})`}}}}},Ok=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:{...ad(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...nd(e),...ad(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} 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:`${$(s)} ${$(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:{flex:`auto`,minWidth:0,...td},[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${$(e.calc(y).add(b??0).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...Ek(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${$(e.calc(r).mul(2).equal())} ${$(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...Ek(e),...Dk(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...Dk(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
|
187
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${$(h)})`},"&::after":{transform:`rotate(45deg) translateX(${$(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${$(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${$(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${$(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},kk=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new Kl(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new Kl(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},Ak=(e,t=e,n=!0)=>fd(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=wl(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=wl(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[Ok(x),bk(x),Tk(x),Ck(x,`light`),Ck(S,`dark`),xk(x),mv(x),Lv(x,`slide-up`),Lv(x,`slide-down`),$v(x,`zoom-big`)]},kk,{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),jk=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=x.useContext(hk),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=qD(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?x.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):x.createElement(`span`,{className:`${o}-title-content`},r);else{let e=x.isValidElement(r)&&r.type===`span`;f=x.createElement(x.Fragment,null,ch(n,e=>({className:Q(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:x.createElement(`span`,{className:`${o}-title-content`},r))}let p=x.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Rg(`Menu`);return x.createElement(hk.Provider,{value:p},x.createElement(VO,{...Na(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:Q(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function Mk(e){return e===null||e===!1}var Nk={item:_k,submenu:jk,divider:gk},Pk=(0,x.forwardRef)((e,t)=>{let n=x.useContext(vk),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:v,styles:y,...b}=e,{menu:S}=x.useContext(Ao),{getPrefixCls:C,getPopupContainer:w,direction:T,className:E,style:D,classNames:O,styles:k}=No(`menu`),A=C(),j=Na(b,[`collapsedWidth`]);r.validator?.({mode:m});let M=Yr((...e)=>{g?.(...e),r.onClick?.()}),N=r.mode||m,P=h??r.selectable,F=d??f,I={...e,mode:N,inlineCollapsed:F,selectable:P,theme:s},L=vp(D),R=vp(o),[z,B]=bp([O,v],[k,L,y,R],{props:I},{popup:{_default:`root`},subMenu:{_default:`item`}}),V={horizontal:{motionName:`${A}-slide-up`},inline:I_(A),other:{motionName:`${A}-zoom-big`}},H=C(`menu`,i||r.prefixCls),U=Up(H),[W,ee]=Ak(H,U,!n),G=Q(`${H}-${s}`,E,a),K=x.useMemo(()=>{if(op(c)||Mk(c))return c||null;if(op(r.expandIcon)||Mk(r.expandIcon))return r.expandIcon||null;if(op(S?.expandIcon)||Mk(S?.expandIcon))return S?.expandIcon||null;let e=c??r?.expandIcon??S?.expandIcon;return ch(e,{className:Q(`${H}-submenu-expand-icon`,x.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,S?.expandIcon,H]),q=x.useMemo(()=>({prefixCls:H,inlineCollapsed:F||!1,direction:T,firstLevel:!0,theme:s,mode:N,disableMenuItemTitleTooltip:l,tooltip:u,classNames:z,styles:B}),[H,F,T,l,s,N,z,B,u]);return x.createElement(vk.Provider,{value:null},x.createElement(hk.Provider,{value:q},x.createElement(ZO,{getPopupContainer:w,overflowedIndicator:x.createElement(mk,null),overflowedIndicatorPopupClassName:Q(H,`${H}-${s}`,_),classNames:{list:z.list,listTitle:z.itemTitle},styles:{list:B.list,listTitle:B.itemTitle},mode:N,selectable:P,onClick:M,...j,inlineCollapsed:F,style:B.root,className:G,prefixCls:H,direction:T,defaultMotions:V,expandIcon:K,ref:t,rootClassName:Q(p,W,r.rootClassName,ee,U,z.root),_internalComponents:Nk})))}),Fk=(0,x.forwardRef)((e,t)=>{let n=(0,x.useRef)(null),r=x.useContext(lk);return(0,x.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),x.createElement(Pk,{ref:n,...e,...r})});Fk.Item=_k,Fk.SubMenu=jk,Fk.Divider=gk,Fk.ItemGroup=GO;var Ik=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},Lk=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h,controlHeightLG:g}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`calc(100vh - ${$(e.calc(g).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
188
|
+
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
189
|
+
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
|
|
190
|
+
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
|
|
191
|
+
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
|
|
192
|
+
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ov},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
|
|
193
|
+
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
|
|
194
|
+
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
|
|
195
|
+
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
|
|
196
|
+
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
|
|
197
|
+
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Av},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
198
|
+
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
|
|
199
|
+
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:kv},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
|
|
200
|
+
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
|
|
201
|
+
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:jv},[`&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-right,
|
|
202
|
+
&${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-right,
|
|
203
|
+
&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightTop,
|
|
204
|
+
&${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightTop,
|
|
205
|
+
&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightBottom,
|
|
206
|
+
&${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:Mv},[`&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-left,
|
|
207
|
+
&${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-left,
|
|
208
|
+
&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftTop,
|
|
209
|
+
&${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftTop,
|
|
210
|
+
&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftBottom,
|
|
211
|
+
&${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:Pv},[`&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-right,
|
|
212
|
+
&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightTop,
|
|
213
|
+
&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:Nv},[`&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-left,
|
|
214
|
+
&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftTop,
|
|
215
|
+
&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:Fv}}},QE(e,h),{[`${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`]:{...nd(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...sd(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${$(l)} ${$(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${$(l)} ${$(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...sd(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${$(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${$(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Lv(e,`slide-up`),Lv(e,`slide-down`),Lv(e,`slide-left`),Lv(e,`slide-right`),Dv(e,`move-up`),Dv(e,`move-down`),$v(e,`zoom-big`)]]},Rk=fd(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=wl(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Lk(a),Ik(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...ZE({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...YE(e)}),{resetStyle:!1}),zk=x.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:v=!0,placement:y=``,transitionName:b,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:T}=e,{getPrefixCls:E,direction:D,getPopupContainer:O,className:k,style:A,classNames:j,styles:M}=No(`dropdown`),N={...e,mouseEnterDelay:g,mouseLeaveDelay:_,autoAdjustOverflow:v},P=vp(A),F=vp(p),[I,L]=bp([j,S],[M,P,C,F],{props:N}),R={...L.root},z=l||c;io(`Dropdown`);let B=x.useMemo(()=>{let e=E();return b===void 0?y.startsWith(`top`)?`${e}-slide-down`:y.startsWith(`left`)?`${e}-slide-right`:y.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:b},[E,y,b]),V=x.useMemo(()=>y?y.includes(`Center`)?y.slice(0,y.indexOf(`Center`)):y:D===`rtl`?`bottomRight`:`bottomLeft`,[y,D]),H=E(`dropdown`,i),U=Up(H),[W,ee]=Rk(H,U),[,G]=ed(),K=x.Children.only(cp(a)?x.createElement(`span`,null,a):a),q=Ei(t,Ai(K)),J=ch(K,{className:Q(`${H}-trigger`,{[`${H}-rtl`]:D===`rtl`},K.props.className),disabled:K.props.disabled??s,ref:q}),te=s?[]:o,Y=!!te?.includes(`contextMenu`),[ne,X]=ti(!1,m),re=Yr(e=>{h?.(e,{source:`trigger`}),X(e)}),ie=Q(d,f,W,ee,U,k,I.root,{[`${H}-rtl`]:D===`rtl`}),ae=rD({arrowPointAtCenter:ap(r)&&r.pointAtCenter,autoAdjustOverflow:v,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),oe=Yr(()=>{n?.selectable&&n?.multiple||(h?.(!1,{source:`menu`}),X(!1))}),se=()=>{let e=Na(I,[`root`]),t=Na(L,[`root`]),r;return n?.items&&(r=x.createElement(Fk,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),z&&(r=z(r)),r=x.Children.only(typeof r==`string`?x.createElement(`span`,null,r):r),x.createElement(yk,{prefixCls:`${H}-menu`,rootClassName:Q(ee,U),expandIcon:x.createElement(`span`,{className:`${H}-menu-submenu-arrow`},D===`rtl`?x.createElement(DD,{className:`${H}-menu-submenu-arrow-icon`}):x.createElement(uy,{className:`${H}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:oe,validator:({mode:e})=>{}},r)},[ce,le]=Rg(`Dropdown`,R.zIndex),ue=x.createElement(ID,{alignPoint:Y,...Na(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:g,mouseLeaveDelay:_,visible:ne,builtinPlacements:ae,arrow:!!r,overlayClassName:ie,prefixCls:H,getPopupContainer:u||O,transitionName:B,trigger:te,overlay:se,placement:V,onVisibleChange:re,overlayStyle:{...R,zIndex:ce},autoDestroy:T??w},J);return ce&&(ue=x.createElement(Mg.Provider,{value:le},ue)),ue}),Bk=FC(zk,`align`,void 0,`dropdown`,e=>e);zk._InternalPanelDoNotUseOrYouWillBeFired=e=>x.createElement(Bk,{...e},x.createElement(`span`,null));var Vk=Fy,Hk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Uk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),Wk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Gk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Kk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),qk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Jk=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Yk=c(Hk()),Xk=c(Uk()),Zk=c(Wk()),Qk=c(Gk()),$k=c(Kk()),eA=c(qk()),tA=c(Jk());Yk.default.extend(tA.default),Yk.default.extend(eA.default),Yk.default.extend(Xk.default),Yk.default.extend(Zk.default),Yk.default.extend(Qk.default),Yk.default.extend($k.default),Yk.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var nA={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},rA=e=>nA[e]||e.split(`_`)[0],iA=e=>!Yk.default.isDayjs(e)||e instanceof Yk.default?e:(0,Yk.default)(e.valueOf()),aA={getNow:()=>{let e=(0,Yk.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Yk.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>iA(e).endOf(`month`),getWeekDay:e=>{let t=iA(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>iA(e).year(),getMonth:e=>iA(e).month(),getDate:e=>iA(e).date(),getHour:e=>iA(e).hour(),getMinute:e=>iA(e).minute(),getSecond:e=>iA(e).second(),getMillisecond:e=>iA(e).millisecond(),addYear:(e,t)=>iA(e).add(t,`year`),addMonth:(e,t)=>iA(e).add(t,`month`),addDate:(e,t)=>iA(e).add(t,`day`),setYear:(e,t)=>iA(e).year(t),setMonth:(e,t)=>iA(e).month(t),setDate:(e,t)=>iA(e).date(t),setHour:(e,t)=>iA(e).hour(t),setMinute:(e,t)=>iA(e).minute(t),setSecond:(e,t)=>iA(e).second(t),setMillisecond:(e,t)=>iA(e).millisecond(t),isAfter:(e,t)=>iA(e).isAfter(iA(t)),isValidate:e=>iA(e).isValid(),locale:{getWeekFirstDay:e=>(0,Yk.default)().locale(rA(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>iA(t).locale(rA(e)).weekday(0),getWeek:(e,t)=>iA(t).locale(rA(e)).week(),getShortWeekDays:e=>(0,Yk.default)().locale(rA(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Yk.default)().locale(rA(e)).localeData().monthsShort(),format:(e,t,n)=>iA(t).locale(rA(e)).format(n),parse:(e,t,n)=>{let r=rA(e);for(let e=0;e<n.length;e+=1){let i=n[e],a=t;if(i.includes(`wo`)||i.includes(`Wo`)){let e=a.split(`-`)[0],t=a.split(`-`)[1],n=(0,Yk.default)(e,`YYYY`).startOf(`year`).locale(r);for(let e=0;e<=52;e+=1){let r=n.add(e,`week`);if(r.format(`Wo`)===t)return r}return null}let o=(0,Yk.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function oA(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var sA=x.createContext(null),cA={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function lA({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=cA,direction:u,visible:d,onClose:f}){let{prefixCls:p}=x.useContext(sA),m=`${p}-dropdown`,h=oA(c,u===`rtl`);return x.createElement(ah,{showAction:[],hideAction:[`click`],popupPlacement:h,builtinPlacements:l,prefixCls:m,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:Q(n,{[`${m}-range`]:s,[`${m}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function uA(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function dA(e){return e==null?[]:Array.isArray(e)?e:[e]}function fA(e,t,n){let r=[...e];return r[t]=n,r}function pA(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function mA(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function hA(e,t,n){let r=t.find(t=>e[t]);return n===r?void 0:e[r]}function gA(e){return pA(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function _A(e,t,n,r){let i=x.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return x.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function vA(e,t,n=[]){let[r,i]=x.useState([!1,!1]);return[x.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>fA(n,t,e))}]}function yA(e,t,n,r,i){let a=[];e&&a.push(i?`hh`:`HH`),t&&a.push(`mm`),n&&a.push(`ss`);let o=a.join(`:`);return r&&(o+=`.SSS`),i&&(o+=` A`),o}function bA(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=yA(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function xA(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return x.useMemo(()=>bA(e,n,r,i,a,o),[e,n,r,i,a,o])}function SA(e,t,n){return n??t.some(t=>e.includes(t))}var CA=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function wA(e){let t=pA(e,CA),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function TA(e){return e&&typeof e==`string`}function EA(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function DA(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function OA(e){let{showTime:t}=e,[n,r]=wA(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=EA(s,c,l,o);return[s,c,l]=DA(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function kA(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=mA(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=dA(s[e])[0];if(TA(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=SA(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=EA(c,l,u,d);m||(c=SA(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=SA(o,[`m`,`LT`,`LLL`]),u=SA(o,[`s`,`LTS`]),d=SA(o,[`SSS`])),[c,l,u]=DA(m,c,l,u,d);let h=t||yA(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function AA(e,t,n){return t===!1?null:(t&&typeof t==`object`?t:{}).clearIcon||n||x.createElement(`span`,{className:`${e}-clear-btn`})}function jA(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function MA(e,t,n){return jA(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function NA(e,t,n){return jA(t,n,()=>e.getYear(t)===e.getYear(n))}function PA(e,t){return Math.floor(e.getMonth(t)/3)+1}function FA(e,t,n){return jA(t,n,()=>NA(e,t,n)&&PA(e,t)===PA(e,n))}function IA(e,t,n){return jA(t,n,()=>NA(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function LA(e,t,n){return jA(t,n,()=>NA(e,t,n)&&IA(e,t,n)&&e.getDate(t)===e.getDate(n))}function RA(e,t,n){return jA(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function zA(e,t,n){return jA(t,n,()=>LA(e,t,n)&&RA(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function BA(e,t,n,r){return jA(n,r,()=>NA(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function VA(e,t,n,r,i){switch(i){case`date`:return LA(e,n,r);case`week`:return BA(e,t.locale,n,r);case`month`:return IA(e,n,r);case`quarter`:return FA(e,n,r);case`year`:return NA(e,n,r);case`decade`:return MA(e,n,r);case`time`:return RA(e,n,r);default:return zA(e,n,r)}}function HA(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function UA(e,t,n,r,i){return VA(e,t,n,r,i)?!0:e.isAfter(n,r)}function WA(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function GA(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function KA(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function qA(e,t,n,r,i){return Yr((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!VA(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!VA(e,t,i,a,o.type)))}function JA(e,t,n){return x.useMemo(()=>{let r=dA(mA(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function YA(e,t,n){return typeof e[0]==`function`||n?!0:t}function XA(e,t,n,r){return Yr((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function ZA(e,t=!1){return x.useMemo(()=>{let n=e&&dA(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function QA(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:h,format:g,inputReadOnly:_,disabledDate:v,minDate:y,maxDate:b,showTime:S,value:C,defaultValue:w,pickerValue:T,defaultPickerValue:E}=e,D=ZA(C),O=ZA(w),k=ZA(T),A=ZA(E),j=i===`date`&&S?`datetime`:i,M=j===`time`||j===`datetime`,N=M||h,P=m??M,[F,I,L,R]=OA(e),z=xA(r,I),B=x.useMemo(()=>kA(j,L,R,F,z),[j,L,R,F,z]),V=x.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:z,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:AA(a,f,p),showTime:B,value:D,defaultValue:O,pickerValue:k,defaultPickerValue:A,...t?.()}),[e]),[H,U]=JA(j,z,g),W=YA(H,_,h),ee=qA(n,r,v,y,b),G=XA(n,i,ee,B);return[x.useMemo(()=>({...V,needConfirm:P,inputReadOnly:W,disabledDate:ee}),[V,P,W,ee]),j,N,H,U,G]}function $A(e,t){return t.some(t=>!!t&&(t===e||t.contains(e)))}function ej(e,t,n,r){let[i,a]=x.useState(null),o=Yr((e,n,r)=>{a(e),t?.(e,r)}),s=Yr((t,i,o)=>{e(o.relatedTarget)||(a(null),r?.(t,o)),n?.(t,o)});return[i!==null,o,s]}function tj(e,t,n,r,i){let a=Yr(()=>{i(!0)});x.useEffect(()=>{e!==null&&t&&(a(),n.current?.focus(e))},[e,t,a]),Qr(()=>{if(e===null)return;let t=[n.current?.startInput,n.current?.endInput],i=t[e]?.getRootNode()?.activeElement??document.activeElement;$A(i,[r.current])||t.some((t,n)=>n!==e&&$A(i,[t]))&&t[e]?.focus()})}function nj(e,t,n){let[r,i]=ti(t,e),[,a]=x.useState({}),o=Yr(e=>{i(e),a({})}),s=x.useRef(e),c=x.useRef(void 0),l=()=>{si.cancel(c.current)},u=Yr(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=Yr((e,t)=>{l(),s.current=e,e||t?u():c.current=si(u)});return x.useEffect(()=>l,[]),[r,d]}function rj(e,t,n=[],r){let[i,a]=nj(!n.every(e=>e)&&e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function ij(e){let t=x.useRef(null);return x.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function aj(e,t){return x.useMemo(()=>e||(t?(Da(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function oj(e,t,n,r,i,a,o){return(s,c)=>{let[l,u]=e,d={...c,from:hA(e,r,n)};return n===1&&t[0]&&l&&!VA(i,a,l,s,d.type)&&i.isAfter(l,s)||n===0&&t[1]&&u&&!VA(i,a,u,s,d.type)&&i.isAfter(s,u)?!0:o?.(s,d)}}function sj(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var cj=[];function lj(e,t,n,r,i,a,o,s,c,l=cj,u=cj,d=cj,f,p,m){let h=s===`time`,g=o||0,[_,v]=n,y=g===0?_:v,b=g===0?v:_,S=t=>{let n=e.getNow();h&&(n=KA(e,n));let r=t===0?_:v;return l[t]||r||n},[C,w]=u,[T,E]=ti(()=>S(0),C),[D,O]=ti(()=>S(1),w),k=x.useMemo(()=>{let t=[T,D][g];return h?t:KA(e,t,d[g])},[h,T,D,g,e,d]),A=(n,i=`panel`)=>{let a=[E,O][g];a(n);let o=[T,D];o[g]=n,f&&(!VA(e,t,T,o[0],s)||!VA(e,t,D,o[1],s))&&f(o,{source:i,range:g===1?`end`:`start`,mode:r})},j=(n,r)=>s===`year`?Math.floor(e.getYear(n)/10)===Math.floor(e.getYear(r)/10):VA(e,t,n,r,s===`month`||s===`quarter`?`year`:`month`),M=(t,n)=>{if(!c||!t)return n;let r=sj(e,s,t,1);return j(t,n)||j(r,n)?t:sj(e,s,n,-1)},N=x.useRef(null);return Qr(()=>{if(i&&!l[g]){let t=h?null:e.getNow();if(a&&N.current!==null&&N.current!==g?t=[T,D][g^1]:y?t=g===0?_:M(_,v):b&&(t=b),t){p&&e.isAfter(p,t)&&(t=p);let n=c?sj(e,s,t,1):t;m&&e.isAfter(n,m)&&(t=c?sj(e,s,m,-1):m),A(t,`reset`)}}},[i,a,g,n[g]]),x.useEffect(()=>{i&&a?N.current=g:N.current=null},[i,a,g]),Qr(()=>{i&&l&&l[g]&&A(l[g],`reset`)},[i,g]),[k,A]}function uj(e,t){let n=x.useRef(e),[,r]=x.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var dj=[];function fj(e,t,n){return[r=>r.map(r=>GA(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;a<r;a+=1){let r=t[a]||null,o=n[a]||null;if(r!==o&&!zA(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function pj(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function mj(e){let[t,n]=uj(e),r=Yr(()=>{n(e)});return x.useEffect(()=>{r()},[e]),[t,n]}function hj(e,t,n,r,i,a,o,s,c){let[l,u]=ti(a,o),d=l||dj,[f,p]=mj(d),[m,h]=fj(e,t,n);return[d,u,f,Yr(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=pj(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function gj(e,t,n,r,i,a,o,s){let{generateConfig:c,locale:l,picker:u,onChange:d,allowEmpty:f,order:p}=e,m=!a.some(e=>e)&&p,[h,g]=fj(c,l,o),[_,v]=uj(t),y=Yr(()=>{v(t)});x.useEffect(()=>{y()},[t]);let b=Yr(e=>{let r=e===null,o=[...e||_()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t<e;t+=1)a[t]||(o[t]=null)}m&&o[0]&&o[1]&&(o=pj(o,c)),i(o);let[v,y]=o,b=!v,x=!y,S=!f||(!b||f[0])&&(!x||f[1]),C=!p||b||x||VA(c,l,v,y,u)||c.isAfter(y,v),w=(a[0]||!v||!s(v,{activeIndex:0}))&&(a[1]||!y||!s(y,{from:v,activeIndex:1})),T=r||S&&C&&w;if(T){n(o);let[e]=g(o,t);if(d&&!e){let e=o.every(e=>!e);d(r&&e?null:o,e?null:h(o))}}return T});return[Yr((e,t)=>{let n=fA(_(),e,r()[e]);v(n),t&&b()}),b,Yr(e=>{if(e===void 0){i(t),y();return}i(fA(r(),e,t[e])),v(fA(_(),e,t[e]))})]}function _j(e,t,n,r,i,a,o){let s=x.useRef([]),c=x.useRef(null),l=x.useRef(!1),[u,d]=hi(null),[f,p]=hi(!1),m=x.useRef(void 0),h=Yr(()=>{s.current=[],c.current=null,l.current=!1,d(null),p(!1)}),g=(e,t)=>{let n=s.current.find(t=>t.index===e);n?t!==void 0&&(n.modified=t):s.current=[...s.current,{index:e,modified:t??!1}]},_=t=>{g(t);let n=s.current.length>=e;return a(t,n),n&&h(),n},v=(i,a,o,l)=>{if(o===`esc`)return`resetAll`;if(i===null)return o===`popupClose`?`resetAll`:`abort`;let u=(l===void 0?r()[i]:l)!=null||n[i],d=o===`remove`||u;if(o===`field-switch`){if(a===i)return`abort`;let r=(i+1)%e;if(a!==r)return`abort`;let o=s.current.some(e=>e.index===r);return t?c.current===i?`switchNext`:n[i]?`resetCurrentAndSwitchNext`:`abort`:u?`switchNext`:o?`resetCurrentAndSwitchNext`:`resetCurrent`}if(a!==i)return`abort`;if(o===`popupClose`){if(!s.current.some(e=>e.modified))return`finish`;if(t){let t=s.current.some(e=>e.index===i&&e.modified);return!(s.current.length>=e)||!u?`resetAll`:t?n[i]?`resetCurrentAndSwitchNext`:`resetAll`:`switchNext`}return d?`switchNext`:`resetAll`}return o===`input`||o===`panel-intermediate`?`modify`:o===`panel-final`?t?`modify`:`switchNext`:o===`keyboard-submit-weak`?d?`submitCurrent`:`abort`:(o===`keyboard-submit`||o===`confirm`||o===`remove`)&&d?`switchNext`:`abort`},y=Yr((n,r,a)=>{let f=u();r!==`popupClose`&&(l.current=r===`input`),f===null&&r!==`popupClose`&&r!==`esc`&&(f=n,d(n),p(!1),g(n,!1));let m=v(f,n,r,a),y=f??n;switch(m){case`modify`:g(y,!0),c.current===y&&(c.current=null),a!==void 0&&i(y,a);break;case`submitCurrent`:t&&(c.current=y),_(y);break;case`switchNext`:{(r===`panel-final`||a!==void 0)&&g(y,!0),a!==void 0&&i(y,a),t&&(r===`keyboard-submit`||r===`confirm`)&&(c.current=y);let o=r===`confirm`||r===`keyboard-submit`||r===`panel-final`||r===`popupClose`&&!l.current,s=_(y);if(s&&r===`field-switch`)d(n),p(!1);else if(!s){let t=(y+1)%e;d(t),p(o)}r===`field-switch`&&g(n,!1);break}case`finish`:h();break;case`resetCurrent`:o(y),c.current===y&&(c.current=null),s.current=s.current.filter(e=>e.index!==y);break;case`resetCurrentAndSwitchNext`:o(y),c.current===y&&(c.current=null),r===`field-switch`?(s.current.some(e=>e.index===n)&&(s.current=[]),d(n),p(!1),g(n,!1)):h();break;case`resetAll`:o(),h();break;case`abort`:r===`field-switch`&&n===y&&g(n)}}),b=u();m.current=b??m.current??0;let S=s.current.map(e=>e.index);return[b,m.current,f(),S,y,h]}function vj(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function yj(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function bj(){return[]}function xj(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:uA(n,a),value:n,disabled:e})}return o}function Sj(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=x.useMemo(()=>n||e.getNow(),[n,e]),m=x.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||bj,t.disabledMinutes||d||bj,t.disabledSeconds||f||bj,t.disabledMilliseconds||bj]},[l,u,d,f]),[h,g,_,v]=x.useMemo(()=>m(p),[p,m]),y=x.useCallback((e,t,n,l)=>{let u=xj(0,23,i,c,e());return[r?u.map(e=>({...e,label:uA(e.value%12||12,2)})):u,e=>xj(0,59,a,c,t(e)),(e,t)=>xj(0,59,o,c,n(e,t)),(e,t,n)=>xj(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[b,S,C,w]=x.useMemo(()=>y(h,g,_,v),[y,h,g,_,v]);return[(t,n)=>{let r=()=>b,i=S,a=C,o=w;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=y(e,t,s,c);r=()=>l,i=u,a=d,o=f}return yj(t,r,i,a,o,e)},b,S,C,w]}function Cj(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:m=`button`,classNames:h,styles:g}=x.useContext(sA),_=u.getNow(),[v]=Sj(u,a,_),y=r?.(t),b=d(_,{type:t}),S=()=>{if(!b){let e=v(_);s(e)}},C=`${f}-now`,w=`${C}-btn`,T=i&&x.createElement(`li`,{className:C},x.createElement(`a`,{className:Q(w,b&&`${w}-disabled`),"aria-disabled":b,onClick:S},n===`date`?p.today:p.now)),E=l&&x.createElement(`li`,{className:`${f}-ok`},x.createElement(m,{disabled:c,onClick:o},p.ok)),D=(T||E)&&x.createElement(`ul`,{className:`${f}-ranges`},T,E);return!y&&!D?null:x.createElement(`div`,{className:Q(`${f}-footer`,h.popup.footer),style:g.popup.footer},y&&x.createElement(`div`,{className:`${f}-footer-extra`},y),D)}function wj(e,t,n){function r(r,i){let a=r.findIndex(r=>VA(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var Tj=x.createContext(null),Ej=x.createContext(null);function Dj(){return x.useContext(Ej)}function Oj(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v}=e,{classNames:y,styles:b}=x.useContext(Tj),S=r.getNow();return[{now:S,values:f,pickerValue:p,prefixCls:n,classNames:y,styles:b,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},S]}var kj=x.createContext({});function Aj(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:m,styles:h,panelType:g,now:_,disabledDate:v,cellRender:y,onHover:b,hoverValue:S,hoverRangeValue:C,generateConfig:w,values:T,locale:E,onSelect:D}=Dj(),O=f||v,k=`${p}-cell`,{onCellDblClick:A}=x.useContext(kj),j=e=>T.some(t=>t&&VA(w,E,e,t,g)),M=[];for(let e=0;e<t;e+=1){let t=[],u;for(let o=0;o<n;o+=1){let f=i(r,e*n+o),v=O?.(f,{type:g});o===0&&(u=f,a&&t.push(a(u)));let T=!1,M=!1,N=!1;if(d&&C){let[e,t]=C;T=HA(w,e,t,f),M=VA(w,E,f,e,g),N=VA(w,E,f,t,g)}let P=s?GA(f,{locale:E,format:s,generateConfig:w}):void 0,F=x.createElement(`div`,{className:`${k}-inner`},c(f));t.push(x.createElement(`td`,{key:o,title:P,className:Q(k,m.item,{[`${k}-disabled`]:v,[`${k}-hover`]:(S||[]).some(e=>VA(w,E,f,e,g)),[`${k}-in-range`]:T&&!M&&!N,[`${k}-range-start`]:M,[`${k}-range-end`]:N,[`${p}-cell-selected`]:!C&&g!==`week`&&j(f),...l(f)}),style:h.item,onClick:()=>{v||D(f)},onDoubleClick:()=>{!v&&A&&A()},onMouseEnter:()=>{v||b?.(f)},onMouseLeave:()=>{v||b?.(null)}},y?y(f,{prefixCls:p,originNode:F,today:_,type:g,locale:E}):F))}M.push(x.createElement(`tr`,{key:e,className:o?.(u)},t))}return x.createElement(`div`,{className:Q(`${p}-body`,m.body),style:h.body},x.createElement(`table`,{className:Q(`${p}-content`,m.content),style:h.content},u&&x.createElement(`thead`,null,x.createElement(`tr`,null,u)),x.createElement(`tbody`,null,M)))}var jj={visibility:`hidden`};function Mj(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=`‹`,nextIcon:d=`›`,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:m,maxDate:h,generateConfig:g,locale:_,pickerValue:v,panelType:y}=Dj(),b=`${s}-header`,{hidePrev:S,hideNext:C,hideHeader:w}=x.useContext(kj),T=x.useMemo(()=>{if(!m||!t||!a)return!1;let e=a(t(-1,v));return!UA(g,_,e,m,y)},[m,t,v,a,g,_,y]),E=x.useMemo(()=>{if(!m||!n||!a)return!1;let e=a(n(-1,v));return!UA(g,_,e,m,y)},[m,n,v,a,g,_,y]),D=x.useMemo(()=>{if(!h||!t||!i)return!1;let e=i(t(1,v));return!UA(g,_,h,e,y)},[h,t,v,i,g,_,y]),O=x.useMemo(()=>{if(!h||!n||!i)return!1;let e=i(n(1,v));return!UA(g,_,h,e,y)},[h,n,v,i,g,_,y]),k=e=>{t&&r(t(e,v))},A=e=>{n&&r(n(e,v))};if(w)return null;let j=`${b}-prev-btn`,M=`${b}-next-btn`,N=`${b}-super-prev-btn`,P=`${b}-super-next-btn`;return x.createElement(`div`,{className:Q(b,c.header),style:l.header},n&&x.createElement(`button`,{type:`button`,"aria-label":_.previousYear,onClick:()=>A(-1),tabIndex:-1,className:Q(N,E&&`${N}-disabled`),disabled:E,style:S?jj:{}},f),t&&x.createElement(`button`,{type:`button`,"aria-label":_.previousMonth,onClick:()=>k(-1),tabIndex:-1,className:Q(j,T&&`${j}-disabled`),disabled:T,style:S?jj:{}},u),x.createElement(`div`,{className:`${b}-view`},o),t&&x.createElement(`button`,{type:`button`,"aria-label":_.nextMonth,onClick:()=>k(1),tabIndex:-1,className:Q(M,D&&`${M}-disabled`),disabled:D,style:C?jj:{}},d),n&&x.createElement(`button`,{type:`button`,"aria-label":_.nextYear,onClick:()=>A(1),tabIndex:-1,className:Q(P,O&&`${P}-disabled`),disabled:O,style:C?jj:{}},p))}function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nj.apply(this,arguments)}function Pj(e){let{prefixCls:t,panelName:n=`date`,locale:r,generateConfig:i,pickerValue:a,onPickerValueChange:o,onModeChange:s,mode:c=`date`,disabledDate:l,onSelect:u,onHover:d,showWeek:f}=e,p=`${t}-${n}-panel`,m=`${t}-cell`,h=c===`week`,[g,_]=Oj(e,c),v=i.locale.getWeekFirstDay(r.locale),y=i.setDate(a,1),b=WA(r.locale,i,y),S=i.getMonth(a),C=(f===void 0?h:f)?e=>{let t=l?.(e,{type:`week`});return x.createElement(`td`,{key:`week`,className:Q(m,`${m}-week`,{[`${m}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},x.createElement(`div`,{className:`${m}-inner`},i.locale.getWeek(r.locale,e)))}:null,w=[],T=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);C&&w.push(x.createElement(`th`,{key:`empty`},x.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)w.push(x.createElement(`th`,{key:e},T[(e+v)%7]));let E=(e,t)=>i.addDate(e,t),D=e=>GA(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),O=e=>({[`${t}-cell-in-view`]:IA(i,e,a),[`${t}-cell-today`]:LA(i,e,_)}),k=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),A=x.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},GA(a,{locale:r,format:r.yearFormat,generateConfig:i})),j=x.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?GA(a,{locale:r,format:r.monthFormat,generateConfig:i}):k[S]),M=r.monthBeforeYear?[j,A]:[A,j];return x.createElement(Ej.Provider,{value:g},x.createElement(`div`,{className:Q(p,f&&`${p}-show-week`)},x.createElement(Mj,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},M),x.createElement(Aj,Nj({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:b,headerCells:w,getCellDate:E,getCellText:D,getCellClassName:O,prefixColumn:C,cellSelection:!h}))))}var Fj=1/3;function Ij(e,t){let n=x.useRef(!1),r=x.useRef(null),i=x.useRef(null),a=()=>n.current,o=()=>{si.cancel(r.current),n.current=!1},s=x.useRef(void 0);return[Yr(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!qi(a)){s.current<=5&&(r.current=si(l));return}let p=t+(f-t)*Fj,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=si(l)};e&&c&&l()}}),o,a]}var Lj=300;function Rj(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function zj(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:m}=Dj(),h=`${l}-time-panel`,g=`${l}-time-panel-cell`,_=x.useRef(null),v=x.useRef(void 0),y=()=>{clearTimeout(v.current)},[b,S,C]=Ij(_,n??r);Qr(()=>(b(),y(),()=>{S(),y()}),[n,r,Rj(t)]);let w=e=>{y();let n=e.target;!C()&&c&&(v.current=setTimeout(()=>{let e=_.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=i.findIndex(e=>e===o),c=t[s];c&&!c.disabled&&a(c.value)},Lj))},T=`${h}-column`;return x.createElement(`ul`,{className:T,ref:_,"data-type":i,onScroll:w},t.map(({label:e,value:t,disabled:r})=>{let c=x.createElement(`div`,{className:`${g}-inner`},e);return x.createElement(`li`,{key:t,style:m.item,className:Q(g,p.item,{[`${g}-selected`]:n===t,[`${g}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function Bj(){return Bj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bj.apply(this,arguments)}function Vj(e){return e<12}function Hj(e){let{showHour:t,showMinute:n,showSecond:r,showMillisecond:i,use12Hours:a,changeOnScroll:o}=e,{prefixCls:s,classNames:c,styles:l,values:u,generateConfig:d,locale:f,onSelect:p,onHover:m=()=>{},pickerValue:h}=Dj(),g=u?.[0]||null,{onCellDblClick:_}=x.useContext(kj),[v,y,b,S,C]=Sj(d,e,g),w=e=>[g&&d[e](g),h&&d[e](h)],[T,E]=w(`getHour`),[D,O]=w(`getMinute`),[k,A]=w(`getSecond`),[j,M]=w(`getMillisecond`),N=T===null?null:Vj(T)?`am`:`pm`,P=x.useMemo(()=>a?Vj(T)?y.filter(e=>Vj(e.value)):y.filter(e=>!Vj(e.value)):y,[T,y,a]),F=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},I=F(y,T),L=x.useMemo(()=>b(I),[b,I]),R=F(L,D),z=x.useMemo(()=>S(I,R),[S,I,R]),B=F(z,k),V=x.useMemo(()=>C(I,R,B),[C,I,R,B]),H=F(V,j),U=x.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?GA(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:y.every(e=>e.disabled||!Vj(e.value))},{label:r(n,`PM`),value:`pm`,disabled:y.every(e=>e.disabled||Vj(e.value))}]},[y,a,d,f]),W=e=>{let t=v(e);p(t)},ee=x.useMemo(()=>{let e=g||h||d.getNow(),t=e=>e!=null;return t(T)?(e=d.setHour(e,T),e=d.setMinute(e,D),e=d.setSecond(e,k),e=d.setMillisecond(e,j)):t(E)?(e=d.setHour(e,E),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):t(I)&&(e=d.setHour(e,I),e=d.setMinute(e,R),e=d.setSecond(e,B),e=d.setMillisecond(e,H)),e},[g,h,T,D,k,j,I,R,B,H,E,O,A,M,d]),G=(e,t)=>e===null?null:d[t](ee,e),K=e=>G(e,`setHour`),q=e=>G(e,`setMinute`),J=e=>G(e,`setSecond`),te=e=>G(e,`setMillisecond`),Y=e=>e===null?null:e===`am`&&!Vj(T)?d.setHour(ee,T-12):e===`pm`&&Vj(T)?d.setHour(ee,T+12):ee,ne=e=>{W(K(e))},X=e=>{W(q(e))},re=e=>{W(J(e))},ie=e=>{W(te(e))},ae=e=>{W(Y(e))},oe=e=>{m(K(e))},se=e=>{m(q(e))},ce=e=>{m(J(e))},le=e=>{m(te(e))},ue=e=>{m(Y(e))},de={onDblClick:_,changeOnScroll:o};return x.createElement(`div`,{className:Q(`${s}-content`,c.content),style:l.content},t&&x.createElement(zj,Bj({units:P,value:T,optionalValue:E,type:`hour`,onChange:ne,onHover:oe},de)),n&&x.createElement(zj,Bj({units:L,value:D,optionalValue:O,type:`minute`,onChange:X,onHover:se},de)),r&&x.createElement(zj,Bj({units:z,value:k,optionalValue:A,type:`second`,onChange:re,onHover:ce},de)),i&&x.createElement(zj,Bj({units:V,value:j,optionalValue:M,type:`millisecond`,onChange:ie,onHover:le},de)),a&&x.createElement(zj,Bj({units:U,value:N,type:`meridiem`,onChange:ae,onHover:ue},de)))}function Uj(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=Oj(e,`time`);return x.createElement(Ej.Provider,{value:c},x.createElement(`div`,{className:Q(s)},x.createElement(Mj,null,n?GA(n,{locale:r,format:o,generateConfig:i}):`\xA0`),x.createElement(Hj,a)))}function Wj(){return Wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function Gj(e){let{prefixCls:t,generateConfig:n,showTime:r,onSelect:i,value:a,pickerValue:o,onHover:s}=e,c=`${t}-datetime-panel`,[l]=Sj(n,r),u=e=>a?KA(n,e,a):KA(n,e,o);return x.createElement(`div`,{className:c},x.createElement(Pj,Wj({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),x.createElement(Uj,e))}function Kj(){return Kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kj.apply(this,arguments)}function qj(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o}=e,s=`${t}-decade-panel`,[c]=Oj(e,`decade`),l=e=>{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),h=e=>{let t=n.cellYearFormat;return`${GA(e,{locale:n,format:t,generateConfig:r})}-${GA(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=e=>({[`${t}-cell-in-view`]:MA(r,e,d)||MA(r,e,f)||HA(r,d,f,e)}),_=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${GA(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${GA(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return x.createElement(Ej.Provider,{value:c},x.createElement(`div`,{className:s},x.createElement(Mj,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},v),x.createElement(Aj,Kj({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function Jj(){return Jj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jj.apply(this,arguments)}function Yj(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-month-panel`,[l]=Oj(e,`month`),u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=(e,t)=>r.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?GA(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),h=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=x.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},GA(i,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(Ej.Provider,{value:l},x.createElement(`div`,{className:c},x.createElement(Mj,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},g),x.createElement(Aj,Jj({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function Xj(){return Xj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xj.apply(this,arguments)}function Zj(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,onPickerValueChange:a,onModeChange:o}=e,s=`${t}-quarter-panel`,[c]=Oj(e,`quarter`),l=r.setMonth(i,0),u=(e,t)=>r.addMonth(e,t*3),d=e=>GA(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=x.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},GA(i,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(Ej.Provider,{value:c},x.createElement(`div`,{className:s},x.createElement(Mj,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),x.createElement(Aj,Xj({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function Qj(){return Qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}function $j(e){let{prefixCls:t,generateConfig:n,locale:r,value:i,hoverValue:a,hoverRangeValue:o}=e,s=r.locale,c=`${t}-week-panel-row`;return x.createElement(Pj,Qj({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=BA(n,s,r,e),l=BA(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&HA(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>BA(n,s,e,t))),Q(c,{[`${c}-selected`]:!o&&BA(n,s,i,e)},t)}}))}function eM(){return eM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eM.apply(this,arguments)}function tM(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-year-panel`,[l]=Oj(e,`year`),u=e=>{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=(e,t)=>r.addYear(e,t),g=e=>GA(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),_=e=>({[`${t}-cell-in-view`]:NA(r,e,f)||NA(r,e,p)||HA(r,f,p,e)}),v=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=x.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},GA(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,GA(p,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(Ej.Provider,{value:l},x.createElement(`div`,{className:c},x.createElement(Mj,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},y),x.createElement(Aj,eM({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}function nM(){return nM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nM.apply(this,arguments)}var rM={date:Pj,datetime:Gj,week:$j,month:Yj,quarter:Zj,year:tM,decade:qj,time:Uj};function iM(e,t){let{classNames:n,styles:r,locale:i,generateConfig:a,direction:o,prefixCls:s,tabIndex:c=0,multiple:l,defaultValue:u,value:d,onChange:f,onSelect:p,defaultPickerValue:m,pickerValue:h,onPickerValueChange:g,mode:_,onPanelChange:v,picker:y=`date`,showTime:b,hoverValue:S,hoverRangeValue:C,cellRender:w,dateRender:T,monthCellRender:E,components:D={},hideHeader:O}=e,{prefixCls:k,classNames:A,styles:j}=x.useContext(sA)||{},M=k||s||`rc-picker`,N=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:N.current}));let[P,F,I,L]=OA(e),R=xA(i,F),z=y===`date`&&b?`datetime`:y,B=x.useMemo(()=>kA(z,I,L,P,R),[z,I,L,P,R]),V=a.getNow(),[H,U]=ti(y||`date`,_),W=H===`date`&&B?`datetime`:H,ee=wj(a,i,z),[G,K]=ti(u,d),q=x.useMemo(()=>{let e=dA(G).filter(e=>e);return l?e:e.slice(0,1)},[G,l]),J=Yr(e=>{K(e),f&&(e===null||q.length!==e.length||q.some((t,n)=>!VA(a,i,t,e[n],z)))&&f?.(l?e:e[0])}),te=Yr(e=>{if(p?.(e),H===y){let t=l?ee(q,e):[e];J(t)}}),[Y,ne]=ti(m||q[0]||V,h);x.useEffect(()=>{q[0]&&!h&&ne(q[0])},[q[0]]);let X=(e,t)=>{v?.(e||h,t||H)},re=(e,t=!1)=>{ne(e),g?.(e),t&&X(e)},ie=(e,t)=>{U(e),t&&re(t),X(t,e)},ae=e=>{if(te(e),re(e),H!==y){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[y]||n,i=r[r.indexOf(H)+1];i&&ie(i,e)}},oe=x.useMemo(()=>{let e,t;return Array.isArray(C)?[e,t]=C:e=C,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[C,a]),se=_A(w,T,E),ce=D[W]||rM[W]||Pj,le=x.useMemo(()=>({classNames:A?.popup??n??{},styles:j?.popup??r??{}}),[A,n,j,r]),ue=x.useContext(kj),de=x.useMemo(()=>({...ue,hideHeader:O}),[ue,O]),fe=`${M}-panel`,pe=pA(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return x.createElement(Tj.Provider,{value:le},x.createElement(kj.Provider,{value:de},x.createElement(`div`,{ref:N,tabIndex:c,className:Q(fe,{[`${fe}-rtl`]:o===`rtl`})},x.createElement(ce,nM({},pe,{showTime:B,prefixCls:M,locale:R,generateConfig:a,onModeChange:ie,pickerValue:Y,onPickerValueChange:e=>{re(e,!0)},value:q[0],onSelect:ae,values:q,cellRender:se,hoverRangeValue:oe,hoverValue:S})))))}var aM=x.memo(x.forwardRef(iM));function oM(){return oM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oM.apply(this,arguments)}function sM(e){let{picker:t,multiplePanel:n,pickerValue:r,onPickerValueChange:i,needConfirm:a,onSubmit:o,range:s,hoverValue:c}=e,{prefixCls:l,generateConfig:u}=x.useContext(sA),d=x.useCallback((e,n)=>sj(u,t,e,n),[u,t]),f=x.useMemo(()=>d(r,1),[r,d]),p=e=>{i(d(e,-1))},m={onCellDblClick:()=>{a&&o()}},h=t===`time`,g={...e,hoverValue:null,hoverRangeValue:null,hideHeader:h};return s?g.hoverRangeValue=c:g.hoverValue=c,n?x.createElement(`div`,{className:`${l}-panels`},x.createElement(kj.Provider,{value:{...m,hideNext:!0}},x.createElement(aM,g)),x.createElement(kj.Provider,{value:{...m,hidePrev:!0}},x.createElement(aM,oM({},g,{pickerValue:f,onPickerValueChange:p})))):x.createElement(kj.Provider,{value:{...m}},x.createElement(aM,g))}function cM(e){return typeof e==`function`?e():e}function lM(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?x.createElement(`div`,{className:`${t}-presets`},x.createElement(`ul`,null,n.map(({label:e,value:t},n)=>x.createElement(`li`,{key:n,onClick:()=>{r(cM(t))},onMouseEnter:()=>{i(cM(t))},onMouseLeave:()=>{i(null)}},e)))):null}function uM(){return uM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uM.apply(this,arguments)}function dM(e){let{containerRef:t,panelRender:n,internalMode:r,picker:i,showNow:a,range:o,multiple:s,activeInfo:c=[0,0,0],presets:l,onPresetHover:u,onPresetSubmit:d,onFocus:f,onBlur:p,onPanelMouseDown:m,direction:h,value:g,onSelect:_,isInvalid:v,defaultOpenValue:y,onOk:b,onSubmit:S,classNames:C,styles:w}=e,{prefixCls:T}=x.useContext(sA),E=`${T}-panel`,D=h===`rtl`,O=x.useRef(null),k=x.useRef(null),[A,j]=x.useState(0),[M,N]=x.useState(0),[P,F]=x.useState(0),I=e=>{e.width&&j(e.width)},[L,R,z]=c,[B,V]=x.useState(0);x.useEffect(()=>{V(10)},[L]),x.useEffect(()=>{if(o&&k.current){let e=O.current?.offsetWidth||0,t=k.current.getBoundingClientRect();if(!t.height||t.right<0){V(e=>Math.max(0,e-1));return}let n=(D?R-e:L)-t.left;if(F(n),A&&A<z){let n=D?t.right-(R-e+A):L+e-t.left-A;N(Math.max(0,n))}else N(0)}},[B,D,A,L,R,z,o]);function H(e){return e.filter(e=>e)}let U=x.useMemo(()=>H(dA(g)),[g]),W=i===`time`&&!U.length,ee=x.useMemo(()=>W?H([y]):U,[W,U,y]),G=W?y:U,K=x.useMemo(()=>!ee.length||ee.some(e=>v(e)),[ee,v]),q=x.createElement(`div`,{className:`${T}-panel-layout`},x.createElement(lM,{prefixCls:T,presets:l,onClick:d,onHover:u}),x.createElement(`div`,null,x.createElement(sM,uM({},e,{value:G})),x.createElement(Cj,uM({},e,{showNow:!s&&a,invalid:K,onSubmit:()=>{W&&_(y),b(),S()}}))));n&&(q=n(q));let J=`${E}-container`,te=`marginLeft`,Y=`marginRight`,ne=x.createElement(`div`,{ref:t,onMouseDown:m,tabIndex:-1,className:Q(J,`${T}-${r}-panel-container`,C?.popup?.container),style:{[D?Y:te]:M,[D?te:Y]:`auto`,...w?.popup?.container},onFocus:f,onBlur:p},q);return o&&(ne=x.createElement(`div`,{onMouseDown:m,ref:k,className:Q(`${T}-range-wrapper`,`${T}-${i}-range-wrapper`)},x.createElement(`div`,{ref:O,className:`${T}-range-arrow`,style:{left:P}}),x.createElement(bo,{onResize:I},ne))),ne}function fM(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:h,onOpenChange:g,onKeyDown:_,onChange:v,activeHelp:y,name:b,autoComplete:S,id:C,value:w,invalid:T,placeholder:E,disabled:D,activeIndex:O,allHelp:k,picker:A}=e,j=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=x.useCallback(e=>GA(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=x.useMemo(()=>w.map(N),[w,N]),F=x.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=e=>{for(let t=0;t<n.length;t+=1){let r=n[t];if(typeof r==`string`){let t=j(e,r);if(t)return t}}return!1};return[n=>{function i(e){return n===void 0?e:e[n]}let a={...Ra(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:S,size:F,id:i(C),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||y&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(e);if(t){m(!1,n),v(t,n);return}m(!!e,n)},onHelp:()=>{g(!0,{index:n})},onKeyDown:e=>{let t=!1;if(_?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0)}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var pM=[`onMouseEnter`,`onMouseLeave`];function mM(e){return x.useMemo(()=>pA(e,pM),[e])}function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=x.useContext(sA);return e?x.createElement(`span`,hM({className:Q(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}function _M(){return _M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_M.apply(this,arguments)}function vM({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=x.useContext(sA);return x.createElement(`button`,_M({},n,{type:`button`,"aria-label":o.clear,className:Q(`${r}-clear`,i.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}function yM(e,t,n=1){let r=x.useRef(t);r.current=t,$r(()=>{if(e)r.current(e);else{let t=si(()=>{r.current(e)},n);return()=>{si.cancel(t)}}},[e])}var bM=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],xM=`顧`,SM=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=bM.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>xM.repeat(e.length));let r=RegExp(`(${bM.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=bM.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t<this.maskFormat.length;t+=1){let n=this.maskFormat[t],r=e[t];if(!r||n!==xM&&n!==r)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(e){let t=2**53-1,n=0;for(let r=0;r<this.maskCells.length;r+=1){let{start:i,end:a}=this.maskCells[r];if(e>=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o<t&&(t=o,n=r)}return n}};function CM(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wM.apply(this,arguments)}var TM=x.forwardRef((e,t)=>{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:m=!1,invalid:h,clearIcon:g,..._}=e,{value:v,onFocus:y,onBlur:b,onMouseUp:S}=e,{prefixCls:C,input:w=`input`,classNames:T,styles:E}=x.useContext(sA),D=`${C}-input`,[O,k]=x.useState(!1),[A,j]=x.useState(v),[M,N]=x.useState(``),[P,F]=x.useState(null),[I,L]=x.useState(null),R=A||``;x.useEffect(()=>{j(v)},[v]);let z=x.useRef(null),B=x.useRef(null),V=x.useRef(!1);x.useImperativeHandle(t,()=>({nativeElement:z.current,inputElement:B.current,focus:e=>{B.current.focus(e)},blur:()=>{B.current.blur()}}));let H=x.useMemo(()=>new SM(o||``),[o]),[U,W]=x.useMemo(()=>u?[0,0]:H.getSelection(P),[H,P,u]),ee=e=>{e&&e!==o&&e!==v&&d()},G=Yr(e=>{s(e)&&c(e),j(e),ee(e)}),K=e=>{if(!o){let t=e.target.value;ee(t),j(t),c(t)}},q=e=>{if(V.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&G(t)},J=()=>{V.current=!0},te=e=>{let{selectionStart:t}=e.target,n=H.getMaskCellIndex(t);F(n),L({}),S?.(e),V.current=!1},Y=e=>{k(!0),F(0),N(``),y(e)},ne=e=>{b(e)},X=e=>{k(!1),ne(e)};yM(r,()=>{!r&&!m&&j(v)});let re=e=>{e.key===`Enter`&&s(R)&&f(),p?.(e)},ie=e=>{if(V.current){e.preventDefault();return}re(e);let{key:t}=e,n=null,r=null,i=W-U,a=o.slice(U,W),s=e=>{F(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,H.size()-1),n})},c=e=>{let[t,n,r]=CM(a),i=R.slice(U,W),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=M+t,r=n)}if(n!==null&&(N(n),n.length>=i&&(s(1),N(``))),r!==null){let e=R.slice(0,U)+uA(r,i)+R.slice(W);G(e.slice(0,o.length))}L({})},ae=x.useRef(void 0);Qr(()=>{if(!(!O||!o||V.current)){if(!H.match(R)){G(o);return}return B.current.setSelectionRange(U,W),ae.current=si(()=>{B.current.setSelectionRange(U,W)}),()=>{si.cancel(ae.current)}}},[H,o,O,R,P,U,W,I,G]);let oe=o?{onFocus:Y,onBlur:X,onKeyDown:ie,onMouseDown:J,onMouseUp:te,onPaste:q}:{};return x.createElement(`div`,{ref:z,className:Q(D,{[`${D}-active`]:r&&i,[`${D}-placeholder`]:u},n)},x.createElement(w,wM({ref:B,"aria-invalid":h,autoComplete:`off`},_,{onKeyDown:re,onBlur:ne},oe,{value:R,onChange:K,className:T.input,style:E.input})),x.createElement(gM,{icon:a}),g)});function EM(){return EM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EM.apply(this,arguments)}function DM(e,t){let{id:n,prefix:r,clearIcon:i,suffixIcon:a,separator:o=`~`,activeIndex:s,activeHelp:c,allHelp:l,focused:u,onFocus:d,onBlur:f,onKeyDown:p,locale:m,generateConfig:h,placeholder:g,className:_,style:v,onClick:y,onClear:b,value:S,onChange:C,onSubmit:w,onInputChange:T,format:E,maskFormat:D,preserveInvalidOnBlur:O,onInvalid:k,disabled:A,invalid:j,inputReadOnly:M,direction:N,onOpenChange:P,onActiveInfo:F,placement:I,onMouseDown:L,required:R,"aria-required":z,autoFocus:B,tabIndex:V,...H}=e,U=N===`rtl`,{prefixCls:W,classNames:ee,styles:G}=x.useContext(sA),K=x.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),q=x.useRef(null),J=x.useRef(null),te=x.useRef(null),Y=e=>[J,te][e]?.current;x.useImperativeHandle(t,()=>({nativeElement:q.current,startInput:J.current.inputElement,endInput:te.current.inputElement,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};Y(t)?.focus(n)}else Y(e??0)?.focus()},blur:()=>{Y(0)?.blur(),Y(1)?.blur()}}));let ne=mM(H),X=x.useMemo(()=>Array.isArray(g)?g:[g,g],[g]),[re]=fM({...e,id:K,placeholder:X}),[ie,ae]=x.useState({position:`absolute`,width:0}),oe=Yr(()=>{let e=Y(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=q.current.getBoundingClientRect(),r=t.left-n.left;ae(e=>({...e,width:t.width,left:r})),F([t.left,t.right,n.width])}});x.useEffect(()=>{oe()},[s]);let se=i&&(S[0]&&!A[0]||S[1]&&!A[1]),ce=B&&!A[0],le=B&&!ce&&!A[1];return x.createElement(bo,{onResize:oe},x.createElement(`div`,EM({},ne,{className:Q(W,`${W}-range`,{[`${W}-focused`]:u,[`${W}-disabled`]:A.every(e=>e),[`${W}-invalid`]:j.some(e=>e),[`${W}-rtl`]:U},_),style:v,ref:q,onClick:y,onMouseDown:e=>{let{target:t}=e;t!==J.current.inputElement&&t!==te.current.inputElement&&e.preventDefault(),L?.(e)}}),r&&x.createElement(`div`,{className:Q(`${W}-prefix`,ee.prefix),style:G.prefix},r),x.createElement(TM,EM({ref:J},re(0),{className:`${W}-input-start`,autoFocus:ce,tabIndex:V,"date-range":`start`})),x.createElement(`div`,{className:`${W}-range-separator`},o),x.createElement(TM,EM({ref:te},re(1),{className:`${W}-input-end`,autoFocus:le,tabIndex:V,"date-range":`end`})),x.createElement(`div`,{className:`${W}-active-bar`,style:ie}),x.createElement(gM,{icon:a}),se&&x.createElement(vM,{icon:i,onClear:b})))}var OM=x.forwardRef(DM);function kM(e,t){return(0,x.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function AM(){return AM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AM.apply(this,arguments)}function jM(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function MM(e){return e===1?`end`:`start`}function NM(e,t){let[n,r,i,a,o,s]=QA(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:jM(t,!1),allowEmpty:jM(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:m,needConfirm:h,onClear:g,onKeyDown:_,disabled:v,allowEmpty:y,disabledDate:b,minDate:S,maxDate:C,defaultOpen:w,open:T,onOpenChange:E,locale:D,generateConfig:O,picker:k,showNow:A,showToday:j,showTime:M,mode:N,onPanelChange:P,onCalendarChange:F,onOk:I,defaultPickerValue:L,pickerValue:R,onPickerValueChange:z,inputReadOnly:B,suffixIcon:V,onFocus:H,onBlur:U,presets:W,ranges:ee,components:G,cellRender:K,dateRender:q,monthCellRender:J,onClick:te}=n,Y=ij(t),ne=x.useRef(null),[X,re]=kM(d,u),[ie,ae]=rj(T,w,v,E),oe=(e,t)=>{(v.some(e=>!e)||!e)&&ae(e,t)},[se,ce,le,ue,de]=hj(O,D,a,!0,!1,p,m,F,I),fe=le(),[pe,me,he]=ej(Yr(e=>$A(e,[Y.current.nativeElement,ne.current])),(e,t)=>{H?.(t,{range:MM(e)})},(e,t)=>{U?.(t,{range:MM(e)})},()=>{oe(!1)}),[ge,_e,ve]=gj(n,se,ce,le,ue,v,a,s),ye=Yr((e,t)=>{ue(fA(le(),e,t))}),be=Yr((e,t)=>{ge(e,t),t&&oe(!1,{force:!0})}),xe=v.filter(e=>!e).length,[Se,Ce,we,Te,Ee,De]=_j(xe,h,y,le,ye,be,ve);tj(Se,we,Y,ne,oe),Qr(e=>{!e&&!ie&&Ee(Se??Ce,`popupClose`)},[ie]);let Oe=x.useMemo(()=>{if(!M)return null;let{disabledTime:e}=M,t=e?t=>{let n=MM(Ce),r=hA(fe,Te,Ce);return e(t,n,{from:r})}:void 0;return{...M,disabledTime:t}},[M,Ce,fe,Te]),[ke,Ae]=ti([k,k],N),je=ke[Ce]||k,Me=je===`date`&&Oe?`datetime`:je,Ne=Me===k&&Me!==`time`,Pe=vj(k,je,A,j,!0),Fe=oj(fe,v,Ce,Te,O,D,b),[Ie,Le]=vA(fe,s,y),[Re,ze]=lj(O,D,fe,ke,ie,pe,Ce,r,Ne,L,R,Oe?.defaultOpenValue,z,S,C),Be=Yr((e,t,n)=>{let r=fA(ke,Ce,t);if((r[0]!==ke[0]||r[1]!==ke[1])&&Ae(r),P&&n!==!1){let t=[...fe];e&&(t[Ce]=e),P(t,r)}}),Ve=(e,t)=>fA(fe,t,e),He=(e,t=`confirm`)=>{Ee(Ce,t,e??void 0)},Ue=e=>{let t=e.target.getRootNode();if(!Y.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=v.findIndex(e=>!e);e>=0&&Y.current.focus({index:e})}oe(!0),te?.(e)},We=()=>{De(),_e(null),oe(!1,{force:!0}),g?.()},[Ge,Ke]=x.useState(null),[qe,Je]=x.useState(null),Ye=x.useMemo(()=>qe||fe,[fe,qe]);x.useEffect(()=>{ie||Je(null)},[ie]);let[Xe,Ze]=x.useState([0,0,0]),Qe=(e,t)=>{f===`hover`&&(Je(e),Ke(t))},$e=aj(W,ee),et=e=>{Qe(e,`preset`)},tt=e=>{_e(e)&&oe(!1,{force:!0})},nt=e=>{He(e)},rt=e=>{Qe(e?Ve(e,Ce):null,`cell`)},it=e=>{oe(!0),me(Ce,`panel`,e)},at=e=>{Ee(Ce,!i&&r===Me?`panel-final`:`panel-intermediate`,e)},ot=()=>{oe(!1)},st=_A(K,q,J,MM(Ce)),ct=fe[Ce]||null,lt=Yr(e=>s(e,{activeIndex:Ce})),ut=x.useMemo(()=>{let e=Ra(n,!1);return Na(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),dt=x.createElement(dM,AM({containerRef:ne},ut,{showNow:Pe,showTime:Oe,range:!0,multiplePanel:Ne,activeInfo:Xe,disabledDate:Fe,onFocus:it,onBlur:e=>he(Ce,`panel`,e),picker:k,mode:je,internalMode:Me,onPanelChange:Be,format:o,value:ct,isInvalid:lt,onChange:null,onSelect:at,pickerValue:Re,defaultOpenValue:dA(M?.defaultOpenValue)[Ce],onPickerValueChange:ze,hoverValue:Ye,onHover:rt,needConfirm:h,onSubmit:e=>He(e,`confirm`),onOk:de,presets:$e,onPresetHover:et,onPresetSubmit:tt,onNow:nt,cellRender:st,classNames:X,styles:re})),ft=(e,t)=>{Ee(t,`input`,e)},pt=()=>{Ee(Ce,`input`)},mt=(e,t)=>{Ee(t,`field-switch`),oe(!0,{inherit:!0}),me(t,`input`,e)},ht=(e,t)=>{he(t,`input`,e)},gt=(e,t)=>{e.key===`Tab`?He(null,`keyboard-submit-weak`):e.key===`Escape`&&(Ee(Ce,`esc`),oe(!1)),_?.(e,t)},_t=x.useMemo(()=>({prefixCls:c,locale:D,generateConfig:O,button:G.button,input:G.input,classNames:X,styles:re}),[c,D,O,G.button,G.input,X,re]);return Qr(()=>{ie&&Ce!==void 0&&Be(null,k,!1)},[ie,Ce,k]),x.createElement(sA.Provider,{value:_t},x.createElement(lA,AM({},gA(n),{popupElement:dt,popupStyle:re.popup.root,popupClassName:Q(l,X.popup.root),visible:ie,onClose:ot,range:!0}),x.createElement(OM,AM({},n,{ref:Y,className:Q(n.className,l,X.root),style:{...re.root,...n.style},suffixIcon:V,activeIndex:pe||ie?Ce:null,activeHelp:!!qe,allHelp:!!qe&&Ge===`preset`,focused:pe,onFocus:mt,onBlur:ht,onKeyDown:gt,onSubmit:()=>He(null,`keyboard-submit`),value:Ye,maskFormat:o,onChange:ft,onInputChange:pt,format:a,inputReadOnly:B,disabled:v,open:ie,onOpenChange:oe,onClick:Ue,onClear:We,invalid:Ie,onInvalid:Le,onActiveInfo:Ze}))))}var PM=x.forwardRef(NM);function FM(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return x.createElement(`span`,{className:Q(`${d}-item`),title:typeof e==`string`?e:null},x.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&x.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function m(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function h(e){return p(`+ ${e.length} ...`)}return x.createElement(`div`,{className:u},x.createElement(Dw,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:e=>a(e),maxCount:s}),!n.length&&x.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function IM(){return IM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IM.apply(this,arguments)}function LM(e,t){let{id:n,open:r,prefix:i,clearIcon:a,suffixIcon:o,activeHelp:s,allHelp:c,focused:l,onFocus:u,onBlur:d,onKeyDown:f,locale:p,generateConfig:m,placeholder:h,className:g,style:_,onClick:v,onClear:y,internalPicker:b,value:S,onChange:C,onSubmit:w,onInputChange:T,multiple:E,maxTagCount:D,tagRender:O,format:k,maskFormat:A,preserveInvalidOnBlur:j,onInvalid:M,disabled:N,invalid:P,inputReadOnly:F,direction:I,onOpenChange:L,onMouseDown:R,required:z,"aria-required":B,autoFocus:V,tabIndex:H,removeIcon:U,...W}=e,ee=I===`rtl`,{prefixCls:G,classNames:K,styles:q}=x.useContext(sA),J=x.useRef(null),te=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:J.current,focus:e=>{te.current?.focus(e)},blur:()=>{te.current?.blur()}}));let Y=mM(W),ne=e=>{C([e],`input`)},X=e=>{let t=S.filter(t=>t&&!VA(m,p,t,e,b));C(t,r?`input`:`remove`)},[re,ie]=fM({...e,onChange:ne},({valueTexts:e})=>({value:e[0]||``,active:l})),ae=!!(a&&S.length&&!N),oe=E?x.createElement(x.Fragment,null,x.createElement(FM,{prefixCls:G,value:S,onRemove:X,formatDate:ie,maxTagCount:D,tagRender:O,disabled:N,removeIcon:U,placeholder:h}),x.createElement(`input`,{className:`${G}-multiple-input`,value:S.map(ie).join(`,`),ref:te,readOnly:!0,autoFocus:V,tabIndex:H}),x.createElement(gM,{icon:o}),ae&&x.createElement(vM,{icon:a,onClear:y})):x.createElement(TM,IM({ref:te},re(),{autoFocus:V,tabIndex:H,suffixIcon:o,clearIcon:ae&&x.createElement(vM,{icon:a,onClear:y}),showActiveCls:!1}));return x.createElement(`div`,IM({},Y,{className:Q(G,{[`${G}-multiple`]:E,[`${G}-focused`]:l,[`${G}-disabled`]:N,[`${G}-invalid`]:P,[`${G}-rtl`]:ee},g),style:_,ref:J,onClick:v,onMouseDown:e=>{let{target:t}=e;t!==te.current?.inputElement&&e.preventDefault(),R?.(e)}}),i&&x.createElement(`div`,{className:Q(`${G}-prefix`,K.prefix),style:q.prefix},i),oe)}var RM=x.forwardRef(LM);function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zM.apply(this,arguments)}function BM(e,t){let[n,r,i,a,o,s]=QA(e),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,order:p,defaultValue:m,value:h,needConfirm:g,onChange:_,onClear:v,onKeyDown:y,disabled:b,disabledDate:S,minDate:C,maxDate:w,defaultOpen:T,open:E,onOpenChange:D,locale:O,generateConfig:k,picker:A,showNow:j,showToday:M,showTime:N,mode:P,onPanelChange:F,onCalendarChange:I,onOk:L,multiple:R,defaultPickerValue:z,pickerValue:B,onPickerValueChange:V,inputReadOnly:H,suffixIcon:U,removeIcon:W,tagRender:ee,onFocus:G,onBlur:K,presets:q,components:J,cellRender:te,dateRender:Y,monthCellRender:ne,onClick:X}=n,re=ij(t),ie=x.useRef(null);function ae(e){return e===null?null:R?e:e[0]}let oe=wj(k,O,r),[se,ce]=kM(d,u),[le,ue]=rj(E,T,[b],D),[de,fe,pe,me,he]=hj(k,O,a,!1,p,m,h,(e,t,n)=>{if(I){let r={...n};delete r.range,I(ae(e),ae(t),r)}},e=>{L?.(ae(e))}),ge=pe(),[_e,ve,ye]=ej(Yr(e=>$A(e,[re.current.nativeElement,ie.current])),(e,t)=>{G?.(t,{})},(e,t)=>{K?.(t,{})},()=>{ue(!1)}),[be,xe]=ti(A,P),Se=be===`date`&&N?`datetime`:be,Ce=vj(A,be,j,M),we=_&&((e,t)=>{_(ae(e),ae(t))}),[,Te,Ee]=gj({...n,onChange:we},de,fe,pe,me,[],a,s),[,De,,,Oe,ke]=_j(1,g,[!1],Yr(()=>{let e=pe();return[e.length?e:null]}),Yr((e,t)=>{me(t)}),Yr((e,t)=>{t&&(Te(pe()),ue(!1,{force:!0}))}),Yr(()=>{Ee()}));Qr(e=>{!e&&!le&&Oe(0,`popupClose`)},[le]);let[Ae,je]=vA(ge,s),Me=x.useMemo(()=>Ae.some(e=>e),[Ae]),[Ne,Pe]=lj(k,O,ge,[be],le,!1,De,r,!1,z,B,dA(N?.defaultOpenValue),(e,t)=>{if(V){let n={...t,mode:t.mode[0]};delete n.range,V(e[0],n)}},C,w),Fe=Yr((e,t,n)=>{if(xe(t),F&&n!==!1){let n=e||ge[ge.length-1];F(n,t)}}),Ie=(e=`confirm`)=>{Oe(0,e)},Le=e=>{!b&&!re.current.nativeElement.contains(document.activeElement)&&re.current.focus(),ue(!0),X?.(e)},Re=()=>{ke(),Te(null),ue(!1,{force:!0}),re.current.focus(),v?.()},[ze,Be]=x.useState(null),[Ve,He]=x.useState(null),Ue=x.useMemo(()=>{let e=[Ve,...ge].filter(e=>e);return R?e:e.slice(0,1)},[ge,Ve,R]),We=x.useMemo(()=>!R&&Ve?[Ve]:ge.filter(e=>e),[ge,Ve,R]);x.useEffect(()=>{le||He(null)},[le]);let Ge=(e,t)=>{f===`hover`&&(He(e),Be(t))},Ke=aj(q),qe=e=>{Ge(e,`preset`)},Je=e=>{let t=R?oe(pe(),e):[e];Te(t)&&!R&&ue(!1,{force:!0})},Ye=e=>{Je(e)},Xe=e=>{Ge(e,`cell`)},Ze=e=>{ue(!0),ve(0,`panel`,e)},Qe=e=>{if(R&&Se!==A)return;let t=R?oe(pe(),e):[e];Oe(0,!i&&r===Se?`panel-final`:`panel-intermediate`,t)},$e=()=>{ue(!1)},et=_A(te,Y,ne),tt=x.useMemo(()=>{let e=Ra(n,!1);return{...Na(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),nt=x.createElement(dM,zM({containerRef:ie},tt,{showNow:Ce,showTime:N,disabledDate:S,onFocus:Ze,onBlur:e=>ye(0,`panel`,e),picker:A,mode:be,internalMode:Se,onPanelChange:Fe,format:o,value:ge,isInvalid:s,onChange:null,onSelect:Qe,pickerValue:Ne,defaultOpenValue:N?.defaultOpenValue,onPickerValueChange:Pe,hoverValue:Ue,onHover:Xe,needConfirm:g,onSubmit:()=>Ie(`confirm`),onOk:he,presets:Ke,onPresetHover:qe,onPresetSubmit:Je,onNow:Ye,cellRender:et,classNames:se,styles:ce})),rt=(e,t=`input`)=>{Oe(0,t,e)},it=()=>{Oe(0,`input`)},at=e=>{Oe(0,`field-switch`),ue(!0,{inherit:!0}),ve(0,`input`,e)},ot=e=>{ye(0,`input`,e)},st=(e,t)=>{e.key===`Tab`?Ie(`keyboard-submit-weak`):e.key===`Escape`&&(Oe(0,`esc`),ue(!1)),y?.(e,t)},ct=x.useMemo(()=>({prefixCls:c,locale:O,generateConfig:k,button:J.button,input:J.input,classNames:se,styles:ce}),[c,O,k,J.button,J.input,se,ce]);return Qr(()=>{le&&De!==void 0&&Fe(null,A,!1)},[le,De,A]),x.createElement(sA.Provider,{value:ct},x.createElement(lA,zM({},gA(n),{popupElement:nt,popupStyle:ce.popup.root,popupClassName:Q(l,se.popup.root),visible:le,onClose:$e}),x.createElement(RM,zM({},n,{ref:re,className:Q(n.className,l,se.root),style:{...ce.root,...n.style},suffixIcon:U,removeIcon:W,tagRender:ee,activeHelp:!!Ve,allHelp:!!Ve&&ze===`preset`,focused:_e,onFocus:at,onBlur:ot,onKeyDown:st,onSubmit:()=>Ie(`keyboard-submit`),value:We,maskFormat:o,onChange:rt,onInputChange:it,internalPicker:r,format:a,inputReadOnly:H,disabled:b,open:le,onOpenChange:ue,onClick:Le,onClear:Re,invalid:Me,onInvalid:e=>{je(e,0)}}))))}var VM=x.forwardRef(BM),HM=[`parentNode`],UM=`form_item`;function WM(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function GM(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:HM.includes(n)?`${UM}_${n}`:n}function KM(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function qM(e){return WM(e).join(`_`)}function JM(e,t){let n=Ki(t.getFieldInstance(e));if(n)return n;let r=GM(WM(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function YM(e){let[t]=Ax(),n=x.useRef({}),r=x.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=qM(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=JM(e,r);a&&(zp(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);op(t?.focus)?t.focus():JM(e,r)?.focus?.()},getFieldInstance:e=>{let t=qM(e);return n.current[t]}},[e,t]);return[r]}var XM=x.createContext(void 0),ZM=XM.Provider,QM=x.createContext(void 0),$M=QM.Provider;function eN(){return eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eN.apply(this,arguments)}var tN=(0,x.forwardRef)((e,t)=>{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,x.useRef)(null),p=(0,x.useRef)(null),[m,h]=ti(s,a);(0,x.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let g=Q(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return x.createElement(`span`,{className:g,title:l,style:i,ref:p},x.createElement(`input`,eN({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))});function nN(e){let t=x.useRef(null),n=()=>{si.cancel(t.current),t.current=null};return[()=>{n(),t.current=si(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var rN=e=>{let{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:a,borderRadiusSM:o,calc:s}=e,c=`${t}-group`,l=`${t}-button-wrapper`,u=`${n}-badge`,d=e=>({[`> ${u}`]:{width:`auto`},[`> ${u} > ${l}`]:{width:`100%`},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${l}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${l}`]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${u}:not(:first-child):not(:last-child) > ${l}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${l}`]:{borderRadius:e}});return{[c]:{...nd(e),display:`inline-block`,fontSize:0,[`&${c}-rtl`]:{direction:`rtl`},[`&${c}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`&:has(> ${l}, > ${u} > ${l})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...d(i),[`&${c}-large`]:{...d(a)},[`&${c}-small`]:{...d(o)}}}}},iN=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...nd(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]:{...nd(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${$(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:od(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},aN=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:$(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${$(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${$(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:$(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:$(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:A(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:_,borderStartEndRadius:_},"&:last-child":{borderEndStartRadius:_,borderEndEndRadius:_},"&:first-child:last-child":{borderRadius:_}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":od(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},oN=fd(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${$(n)} ${t}`,i=wl(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[rN(i),iN(i),aN(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),sN=x.forwardRef((e,t)=>{let n=x.useContext(XM),r=x.useContext(QM),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=No(`radio`),u=Ti(t,x.useRef(null)),{isFormItemInput:d}=x.useContext(Hx),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:m,rootClassName:h,children:g,style:_,title:v,classNames:y,styles:b,checked:S,...C}=e,w=i(`radio`,p),T=(n?.optionType||r)===`button`,E=T?`${w}-button`:w,D=Up(w),[O,k]=oN(w,D),A={...C},j=x.useContext(ph),M=`checked`in e,N=S;n&&(A.name=n.name,A.onChange=f,N=e.value===n.value,A.disabled=A.disabled??n.disabled),(M||n)&&(A.checked=N),A.disabled=A.disabled??j;let P={...e,...A,checked:N},F=vp(s),I=vp(_),[L,R]=bp([c,y],[l,F,b,I],{props:P}),z=Q(`${E}-wrapper`,{[`${E}-wrapper-checked`]:N,[`${E}-wrapper-disabled`]:A.disabled,[`${E}-wrapper-rtl`]:a===`rtl`,[`${E}-wrapper-in-form-item`]:d,[`${E}-wrapper-block`]:!!n?.block},o,m,h,L.root,O,k,D),[B,V]=nN(A.onClick);return x.createElement(q_,{component:`Radio`,disabled:A.disabled},x.createElement(`label`,{className:z,style:R.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v,onClick:B},x.createElement(tN,{...A,className:Q(L.icon,{[z_]:!T}),style:R.icon,type:`radio`,prefixCls:E,ref:u,onClick:V}),np(g)?x.createElement(`span`,{className:Q(`${E}-label`,L.label),style:R.label},g):null))}),cN=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=x.useContext(Ao),{name:i}=x.useContext(Hx),a=pi(qM(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:v,value:y,block:b=!1,onChange:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,orientation:D,vertical:O,role:k=`radiogroup`}=e,[A,j]=ti(v,y),M=x.useCallback(t=>{let n=A,r=t.target.value;`value`in e||j(r),r!==n&&S?.(t)},[A,j,S]),N=n(`radio`,o),P=`${N}-group`,F=Up(N),[I,L]=oN(N,F),R=f;l&&l.length>0&&(R=l.map(e=>typeof e==`string`||rp(e)?x.createElement(sN,{key:e.toString(),prefixCls:N,disabled:d,value:e,checked:A===e},e):x.createElement(sN,{key:`radio-group-value-options-${e.value}`,prefixCls:N,disabled:e.disabled||d,value:e.value,checked:A===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required,onChange:e.onChange},e.label)));let z=J_(p),[,B]=Dg(D,O),V=Q(P,`${P}-${u}`,{[`${P}-large`]:z===`large`,[`${P}-small`]:z===`small`,[`${P}-rtl`]:r===`rtl`,[`${P}-block`]:b},s,c,I,L,F),H=x.useMemo(()=>({onChange:M,value:A,disabled:d,name:_,optionType:g,block:b}),[M,A,d,_,g,b]);return x.createElement(`div`,{...Ra(e,{aria:!0,data:!0}),role:k,className:Q(V,{[`${N}-group-vertical`]:B}),style:m,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,id:h,ref:t},x.createElement(ZM,{value:H},R))}),lN=x.memo(cN),uN=x.forwardRef((e,t)=>{let{getPrefixCls:n}=x.useContext(Ao),{prefixCls:r,...i}=e,a=n(`radio`,r);return x.createElement($M,{value:`button`},x.createElement(sN,{prefixCls:a,...i,type:`radio`,ref:t}))}),dN=sN;dN.Button=uN,dN.Group=lN,dN.__ANT_RADIO=!0;function fN(e){return wl(e,{inputAffixPadding:e.paddingXXS})}var pN=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,lineWidthFocus:a,controlHeightSM:o,controlHeightLG:s,fontSizeLG:c,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:g,controlOutline:_,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b,inputFontSize:x,inputFontSizeLG:S,inputFontSizeSM:C}=e,w=x||n,T=C||w,E=S||c,D=Math.round((t-w*r)/2*10)/10-i,O=Math.round((o-T*r)/2*10)/10-i,k=Math.ceil((s-E*l)/2*10)/10-i;return{lineWidthFocus:a===0?0:i,paddingBlock:Math.max(D,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(k,0),paddingInline:u-i,paddingInlineSM:d-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${g}px ${_}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:w,inputFontSizeLG:E,inputFontSizeSM:T}},mN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),hN=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...mN(wl(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),gN=(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}}),_N=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...gN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),vN=(e,t)=>({"&-outlined":{...gN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...hN(e)},..._N(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),..._N(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),yN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),bN=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...yN(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...yN(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...hN(e)}}}}),xN=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,SN=(e,t)=>({outline:`${$(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:$(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),CN=(e,t)=>({"&, & input, & textarea":{color:t.color},[xN]:SN(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),wN=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[xN]:SN(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:CN(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:CN(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},TN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),EN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...TN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),DN=(e,t)=>({"&-filled":{...TN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...hN(e)},...EN(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...EN(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),ON=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),kN=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...ON(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...ON(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:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),AN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${$(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}}),jN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...AN(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`}}),MN=(e,t)=>({"&-underlined":{...AN(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`},...jN(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...jN(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),NN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),PN=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${$(t)} ${$(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},FN=e=>({padding:`${$(e.paddingBlockSM)} ${$(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),IN=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${$(e.paddingBlock)} ${$(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...NN(e.colorTextPlaceholder),"&-lg":{...PN(e),...t.largeStyle},"&-sm":{...FN(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),LN=e=>{let{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`]:{...PN(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...FN(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${$(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${$(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${$(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${$(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${$(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...ad(),[`${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},[`
|
|
216
|
+
& > ${t}-affix-wrapper,
|
|
217
|
+
& > ${t}-number-affix-wrapper,
|
|
218
|
+
& > ${n}-picker-range
|
|
219
|
+
`]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select,
|
|
220
|
+
& > ${n}-select-auto-complete ${t},
|
|
221
|
+
& > ${n}-cascader-picker ${t},
|
|
222
|
+
& > ${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,
|
|
223
|
+
& > ${n}-select:first-child,
|
|
224
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
225
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
226
|
+
& > ${n}-select:last-child,
|
|
227
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
228
|
+
& > ${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`]:{}}}}},RN=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...nd(e),...IN(e),...vN(e),...DN(e),...wN(e),...MN(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},zN=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...od(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${$(e.inputAffixPadding)}`}}}},BN=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...IN(e),display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:`inline-flex`,color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},...zN(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},VN=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...nd(e),...LN(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...bN(e),...kN(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}}}}}},HN=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},UN=fd([`Input`,`Shared`],e=>{let t=wl(e,fN(e));return[RN(t),BN(t)]},pN,{resetFont:!1}),WN=fd([`Input`,`Component`],e=>{let t=wl(e,fN(e));return[VN(t),HN(t),Dy(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},pN,{resetFont:!1}),GN=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:$(t),itemLineHeight:$(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},KN=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...rd(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},qN=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=GN(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:$(a.itemLineHeight)}}}]},JN=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=wl(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=wl(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[qN(i,`small`),qN(e),qN(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...td}},...KN(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},YN=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:$(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
229
|
+
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${$(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
|
|
230
|
+
&-in-view${t}-range-start,
|
|
231
|
+
&-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
|
232
|
+
&-in-view${t}-range-start,
|
|
233
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},XN=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
|
|
234
|
+
${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
|
|
235
|
+
${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${$(c)}`,color:h,borderBottom:`${$(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:$(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:$(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${$(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...YN(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${$(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${$(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${$(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${$(c)} ${$(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Kl(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${$(c)} ${$(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${$(d)} ${f} ${g}`},[`${t}-date-panel,
|
|
236
|
+
${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,
|
|
237
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${$(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${$(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${$(d)} ${f} ${g}`},"&-active":{background:new Kl(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:$(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},ZN=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${$(r)} ${l} ${u}`,"&-extra":{padding:`0 ${$(i)}`,lineHeight:$(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${$(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:$(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:$(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},QN=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},$N=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Kl(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Kl(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},eP=e=>({...pN(e),...$N(e),...YE(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),tP=e=>{let{componentCls:t}=e;return{[t]:[{...vN(e),...MN(e),...DN(e),...wN(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},nP=(e,t)=>({padding:`${$(e)} ${$(t)}`}),rP=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=hd(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},iP=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=hd(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...nd(e),...nP(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{color:z(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...NN(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...nP(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...nP(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:b},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...od(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:f,color:d,fontSize:f,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${$(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...nd(e),...XN(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft,
|
|
238
|
+
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
|
|
239
|
+
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
|
240
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
|
241
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
|
242
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Av},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
|
243
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
|
244
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
|
245
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ov},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
|
246
|
+
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:jv},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
|
247
|
+
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:kv},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...XE(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${$(i)} ${a} ${j}`,li:{...td,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:M}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:o}}}},"&-dropdown-range":{padding:`${$(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},Lv(e,`slide-up`),Lv(e,`slide-down`),Dv(e,`move-up`),Dv(e,`move-down`)]},aP=fd(`DatePicker`,e=>{let t=wl(fN(e),QN(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ZN(t),iP(t),tP(t),rP(t),JN(t),Dy(e,{focusElCls:`${e.componentCls}-focused`})]},eP),oP=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function sP(){return sP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sP.apply(this,arguments)}var cP=x.forwardRef((e,t)=>x.createElement(qd,sP({},e,{ref:t,icon:oP.default}))),lP=(0,x.createContext)(null),uP=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,x.useState)(),l=(0,x.useRef)(void 0),u=x.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){si.cancel(l.current)}return(0,x.useEffect)(()=>{let e={};if(t){if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`)}return d(),l.current=si(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},dP={width:0,height:0,left:0,top:0};function fP(e,t,n){return(0,x.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||dP,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||dP;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function pP(e,t){let n=x.useRef(e),[,r]=x.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var mP=.1,hP=.01,gP=20,_P=.995**gP;function vP(e,t){let[n,r]=(0,x.useState)(),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(0),[c,l]=(0,x.useState)(),u=(0,x.useRef)(void 0);function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<mP)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<hP&&Math.abs(i)<hP){window.clearInterval(u.current);return}r*=_P,i*=_P,t(r*gP,i*gP)},gP)}}let m=(0,x.useRef)(void 0);function h(e){let{deltaX:n,deltaY:r}=e,i,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,x.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},x.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function yP(e){let[t,n]=(0,x.useState)(0),r=(0,x.useRef)(0),i=(0,x.useRef)(void 0);return i.current=e,$r(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function bP(e){let t=(0,x.useRef)([]),[,n]=(0,x.useState)({}),r=(0,x.useRef)(typeof e==`function`?e():e),i=yP(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var xP={width:0,height:0,left:0,top:0,right:0};function SP(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,x.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||xP;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||xP)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function CP(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var wP=`TABS_DQ`;function TP(e){return String(e).replace(/"/g,wP)}function EP(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var DP=x.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:x.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),OP=x.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!x.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?x.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function kP(){return kP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kP.apply(this,arguments)}var AP=x.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_,classNames:v,styles:y}=e,[b,S]=(0,x.useState)(!1),[C,w]=(0,x.useState)(null),{icon:T=`More`,popupRender:E}=s,D=`${r}-more-popup`,O=`${n}-dropdown`,k=C===null?null:`${D}-${C}`,A=a?.dropdownAriaLabel;function j(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let M=x.createElement(ZO,{onClick:({key:e,domEvent:t})=>{m(e,t),S(!1)},prefixCls:`${O}-menu`,id:D,tabIndex:-1,role:`listbox`,"aria-activedescendant":k,selectedKeys:[C],"aria-label":A===void 0?`expanded dropdown`:A},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=EP(t,i,u,n);return x.createElement(DO,{key:a,id:`${D}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},x.createElement(`span`,null,o),s&&x.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:Q(`${O}-menu-item-remove`,v?.remove),style:y?.remove,onClick:e=>{e.stopPropagation(),j(e,a)}},i||u.removeIcon||`×`))})),N=E?E(M,{restTabs:i,onClose:()=>S(!1)}):M;function P(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===C)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){w(i.key);return}}}function F(e){let{which:t}=e;if(!b){[ha.DOWN,ha.SPACE,ha.ENTER].includes(t)&&(S(!0),e.preventDefault());return}switch(t){case ha.UP:P(-1),e.preventDefault();break;case ha.DOWN:P(1),e.preventDefault();break;case ha.ESC:S(!1);break;case ha.SPACE:case ha.ENTER:C!==null&&m(C,e)}}(0,x.useEffect)(()=>{let e=document.getElementById(k);e?.scrollIntoView&&e.scrollIntoView(!1)},[k,C]),(0,x.useEffect)(()=>{b||w(null)},[b]);let I={marginInlineStart:d};i.length||(I.visibility=`hidden`,I.order=1);let L=Q(g,{[`${O}-rtl`]:f}),R=o?null:x.createElement(ID,kP({prefixCls:O,overlay:N,visible:i.length?b:!1,onVisibleChange:S,overlayClassName:L,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),x.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:I,"aria-haspopup":`listbox`,"aria-controls":D,id:`${r}-more`,"aria-expanded":b,onKeyDown:F},T));return x.createElement(`div`,{className:Q(`${n}-nav-operations`,l),style:c,ref:t},R,x.createElement(DP,{prefixCls:n,locale:a,editable:u}))}),jP=x.memo(AP,(e,t)=>t.tabMoving),MP=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:v,onMouseUp:y,styles:b,classNames:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=EP(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=x.useMemo(()=>l&&typeof o==`string`?x.createElement(`span`,null,o):o,[o,l]),A=x.useRef(null);x.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=x.createElement(`div`,{key:a,"data-node-key":TP(a),className:Q(T,S?.item,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:b?.item,onClick:D},x.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:v,onMouseUp:y,onFocus:h,onBlur:g},i&&x.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&x.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&x.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:Q(`${T}-remove`,S?.remove),style:b?.remove,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function NP(){return NP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NP.apply(this,arguments)}var PP=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},FP=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},IP=(e,t)=>e[+!t],LP=x.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:v}=e,{prefixCls:y,tabs:b}=x.useContext(lP),S=(0,x.useRef)(null),C=(0,x.useRef)(null),w=(0,x.useRef)(null),T=(0,x.useRef)(null),E=(0,x.useRef)(null),D=(0,x.useRef)(null),O=(0,x.useRef)(null),k=d===`top`||d===`bottom`,[A,j]=pP(0,(e,t)=>{k&&h&&h({direction:e>t?`left`:`right`})}),[M,N]=pP(0,(e,t)=>{!k&&h&&h({direction:e>t?`top`:`bottom`})}),[P,F]=(0,x.useState)([0,0]),[I,L]=(0,x.useState)([0,0]),[R,z]=(0,x.useState)([0,0]),[B,V]=(0,x.useState)([0,0]),[H,U]=bP(new Map),W=fP(b,H,I[0]),ee=IP(P,k),G=IP(I,k),K=IP(R,k),q=IP(B,k),J=Math.floor(ee)<Math.floor(G+K),te=J?ee-q:ee-K,Y=`${y}-nav-operations-hidden`,ne=0,X=0;k&&s?(ne=0,X=Math.max(0,G-te)):(ne=Math.min(0,te-G),X=0);function re(e){return e<ne?ne:e>X?X:e}let ie=(0,x.useRef)(null),[ae,oe]=(0,x.useState)();function se(){oe(Date.now())}function ce(){ie.current&&clearTimeout(ie.current)}vP(T,(e,t)=>{function n(e,t){e(e=>re(e+t))}return J?(k?n(j,e):n(N,t),ce(),se(),!0):!1}),(0,x.useEffect)(()=>(ce(),ae&&(ie.current=setTimeout(()=>{oe(0)},100)),ce),[ae]);let[le,ue]=SP(W,te,k?A:M,G,K,q,{...e,tabs:b}),de=Yr((e=o)=>{let t=W.get(e)||{width:0,height:0,left:0,right:0,top:0};if(k){let e=A;s?t.right<A?e=t.right:t.right+t.width>A+te&&(e=t.right+t.width-te):t.left<-A?e=-t.left:t.left+t.width>-A+te&&(e=-(t.left+t.width-te)),N(0),j(re(e))}else{let e=M;t.top<-M?e=-t.top:t.top+t.height>-M+te&&(e=-(t.top+t.height-te)),j(0),N(re(e))}}),[fe,pe]=(0,x.useState)(),[me,he]=(0,x.useState)(!1),ge=b.filter(e=>!e.disabled).map(e=>e.key),_e=e=>{let t=ge.indexOf(fe||o),n=ge.length,r=(t+e+n)%n,i=ge[r];pe(i)},ve=(e,t)=>{let n=ge.indexOf(e),r=b.find(t=>t.key===e);EP(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===ge.length-1?_e(-1):_e(1))},ye=(e,t)=>{he(!0),t.button===1&&ve(e,t)},be=e=>{let{code:t}=e,n=s&&k,r=ge[0],i=ge[ge.length-1];switch(t){case`ArrowLeft`:k&&_e(n?1:-1);break;case`ArrowRight`:k&&_e(n?-1:1);break;case`ArrowUp`:e.preventDefault(),k||_e(-1);break;case`ArrowDown`:e.preventDefault(),k||_e(1);break;case`Home`:e.preventDefault(),pe(r);break;case`End`:e.preventDefault(),pe(i);break;case`Enter`:case`Space`:e.preventDefault(),m(fe??o,e);break;case`Backspace`:case`Delete`:ve(fe,e)}},xe={};k?xe.marginInlineStart=f:xe.marginTop=f;let Se=b.map((e,t)=>{let{key:n}=e;return x.createElement(MP,{id:i,prefixCls:y,key:n,tab:e,classNames:{item:_?.item,remove:_?.remove},styles:{item:t===0?v?.item:{...xe,...v?.item},remove:v?.remove},closable:e.closable,editable:l,active:n===o,focus:n===fe,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:ge.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:be,onFocus:()=>{me||pe(n),de(n),se(),T.current&&(s||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:()=>{pe(void 0)},onMouseDown:e=>ye(n,e),onMouseUp:()=>{he(!1)}})}),Ce=()=>U(()=>{let e=new Map,t=E.current?.getBoundingClientRect();return b.forEach(({key:n})=>{let r=E.current?.querySelector(`[data-node-key="${TP(n)}"]`);if(r){let[i,a,o,s]=PP(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,x.useEffect)(()=>{Ce()},[b.map(e=>e.key).join(`_`)]);let we=yP(()=>{let e=FP(S),t=FP(C),n=FP(w);F([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=FP(O);z(r);let i=FP(D);V(i);let a=FP(E);L([a[0]-r[0],a[1]-r[1]]),Ce()}),Te=b.slice(0,le),Ee=b.slice(ue+1),De=[...Te,...Ee],Oe=W.get(o),{style:ke}=uP({activeTabOffset:Oe,horizontal:k,indicator:g,rtl:s});(0,x.useEffect)(()=>{de()},[o,ne,X,CP(Oe),CP(W),k]),(0,x.useEffect)(()=>{we()},[s]);let Ae=!!De.length,je=`${y}-nav-wrap`,Me,Ne,Pe,Fe;return k?s?(Ne=A>0,Me=A!==X):(Me=A<0,Ne=A!==ne):(Pe=M<0,Fe=M!==ne),x.createElement(bo,{onResize:we},x.createElement(`div`,{ref:Ei(t,S),role:`tablist`,"aria-orientation":k?`horizontal`:`vertical`,className:Q(`${y}-nav`,n,_?.header),style:{...v?.header,...r},onKeyDown:()=>{se()}},x.createElement(OP,{ref:C,position:`left`,extra:c,prefixCls:y}),x.createElement(bo,{onResize:we},x.createElement(`div`,{className:Q(je,{[`${je}-ping-left`]:Me,[`${je}-ping-right`]:Ne,[`${je}-ping-top`]:Pe,[`${je}-ping-bottom`]:Fe}),ref:T},x.createElement(bo,{onResize:we},x.createElement(`div`,{ref:E,className:`${y}-nav-list`,style:{transform:`translate(${A}px, ${M}px)`,transition:ae?`none`:void 0}},Se,x.createElement(DP,{ref:O,prefixCls:y,locale:u,editable:l,style:{...Se.length===0?void 0:xe,visibility:Ae?`hidden`:null}}),x.createElement(`div`,{className:Q(`${y}-ink-bar`,_?.indicator,{[`${y}-ink-bar-animated`]:a.inkBar}),style:{...ke,...v?.indicator}}))))),x.createElement(jP,NP({},e,{removeAriaLabel:u?.removeAriaLabel,ref:D,prefixCls:y,tabs:De,className:!Ae&&Y,popupStyle:v?.popup,tabMoving:!!ae})),x.createElement(OP,{ref:w,position:`right`,extra:c,prefixCls:y})))}),RP=({renderTabBar:e,...t})=>e?e(t,LP):x.createElement(LP,t),zP=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=x.Children.count(c)>0;return x.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:Q(n,o&&`${n}-active`,r),ref:t},c)});function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BP.apply(this,arguments)}var VP=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,bodyStyle:o,bodyClassName:s,contentStyle:c,contentClassName:l}=e,{prefixCls:u,tabs:d}=x.useContext(lP),f=r.tabPane,p=`${u}-body`,m=`${u}-content`;return x.createElement(`div`,{className:Q(`${p}-holder`)},x.createElement(`div`,{className:Q(p,`${p}-${i}`,{[`${p}-animated`]:f},s),style:o},d.map(e=>{let{key:i,forceRender:o,style:s,className:u,destroyOnHidden:d,...p}=e,h=i===n;return x.createElement(ep,BP({key:i,visible:h,forceRender:o,removeOnLeave:!!(a??d),leavedClassName:`${m}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>x.createElement(zP,BP({},p,{prefixCls:m,id:t,tabKey:i,animated:f,active:h,style:{...c,...s,...e},className:Q(l,u,n),ref:r})))})))};function HP(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function UP(){return UP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UP.apply(this,arguments)}var WP=0,GP=x.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:v,onChange:y,onTabClick:b,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:T,classNames:E,styles:D,...O}=e,k=x.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),A=o===`rtl`,j=HP(u),[M,N]=(0,x.useState)(!1);(0,x.useEffect)(()=>{N(Ma())},[]);let[P,F]=ti(c??k[0]?.key,s),[I,L]=(0,x.useState)(()=>k.findIndex(e=>e.key===P));(0,x.useEffect)(()=>{let e=k.findIndex(e=>e.key===P);e===-1&&(e=Math.max(0,Math.min(I,k.length-1)),F(k[e]?.key)),L(e)},[k.map(e=>e.key).join(`_`),P,I]);let[R,z]=ti(null,n);(0,x.useEffect)(()=>{n||(z(`rc-tabs-${WP}`),WP+=1)},[]);function B(e,t){b?.(e,t);let n=e!==P;F(e),n&&y?.(e)}let V={id:R,activeKey:P,animated:j,tabPosition:d,rtl:A,mobile:M},H={...V,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:B,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:Q(w,E?.popup),indicator:T,styles:D,classNames:E},U=x.useMemo(()=>({tabs:k,prefixCls:r}),[k,r]);return x.createElement(lP.Provider,{value:U},x.createElement(`div`,UP({ref:t,id:n,className:Q(r,`${r}-${d}`,{[`${r}-mobile`]:M,[`${r}-editable`]:l,[`${r}-rtl`]:A},i)},O),x.createElement(RP,UP({},H,{renderTabBar:v})),x.createElement(VP,UP({destroyOnHidden:_},V,{bodyStyle:D?.body,bodyClassName:E?.body,contentStyle:D?.content,contentClassName:E?.content,animated:j}))))}),KP={motionAppear:!1,motionEnter:!0,motionLeave:!0};function qP(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...ap(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...KP,motionName:L_(e,`switch`)}),n}function JP(e){return e.filter(e=>e)}function YP(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):JP(Ba(t).map(e=>{if(x.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var XP=e=>{let{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}`}}}}},[Lv(e,`slide-up`),Lv(e,`slide-down`)]]},ZP=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${$(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:od(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:$(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:$(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$(e.borderRadiusLG)} 0 0 ${$(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 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},QP=e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:{...nd(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
|
|
248
|
+
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
|
|
249
|
+
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
|
|
250
|
+
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
|
|
251
|
+
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
|
|
252
|
+
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Ov},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
253
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
254
|
+
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
|
|
255
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
|
|
256
|
+
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
257
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Av},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
|
|
258
|
+
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
|
|
259
|
+
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:kv},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
260
|
+
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
|
|
261
|
+
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:jv},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${$(i)} 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":{...td,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${$(e.paddingXXS)} ${$(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},$P=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${$(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
262
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:$(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},eF=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${$(e.borderRadius)} ${$(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${$(e.borderRadius)} ${$(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${$(e.borderRadius)} ${$(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$(e.borderRadius)} 0 0 ${$(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},tF=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM},[`${l}-icon > svg`]:{display:`inline-block`,verticalAlign:`middle`,marginBlockEnd:`0.2em`}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...sd(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:od(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},nF=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},rF=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...nd(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${$(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...sd(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...tF(e),[`${t}-body`]:{position:`relative`,width:`100%`},[`${t}-body-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-content`]:{...sd(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`}}}}}},iF=fd(`Tabs`,e=>{let t=wl(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${$(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${$(e.horizontalItemGutter)}`});return[eF(t),nF(t),$P(t),QP(t),ZP(t),rF(t),XP(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),aF=()=>null,oF=x.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:v,indicator:y,classNames:b,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=No(`tabs`),{tabs:I}=x.useContext(Ao),L=k(`tabs`,O),R=Up(L),[z,B]=iF(L,R),V=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??x.createElement(nf,null),addIcon:(l??I?.addIcon)||x.createElement(cP,null),showAdd:s!==!0});let U=k(),W=J_(a),ee=YP(h,m),G=qP(L,g),K={align:y?.align??I?.indicator?.align,size:y?.size??v??I?.indicator?.size??I?.indicatorSize},q=x.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),J={...e,size:W,tabPlacement:q,items:ee},te=vp(N),Y=vp(_),[ne,X]=bp([P,b],[F,te,S,Y],{props:J},{popup:{_default:`root`}});return x.createElement(GP,{ref:V,direction:A,getPopupContainer:j,...D,items:ee,className:Q({[`${L}-large`]:W===`large`,[`${L}-small`]:W===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ne.root,z,B,R),classNames:{...ne,popup:Q(p,z,B,R,ne.popup?.root)},styles:X,style:X.root,editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??x.createElement(mk,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:G,indicator:K,destroyOnHidden:w??C,tabPosition:q})});oF.TabPane=aF;var sF=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,hoverable:i=!0,...a}=e,{getPrefixCls:o}=x.useContext(Ao),s=o(`card`,n),c=Q(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i}),l=x.useRef(null);return x.useImperativeHandle(t,()=>({nativeElement:l.current})),x.createElement(`div`,{ref:l,...a,className:c})}),cF=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${$(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0`,...ad(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...td,[`
|
|
263
|
+
> ${n}-typography,
|
|
264
|
+
> ${n}-typography-edit-content
|
|
265
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},lF=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
|
266
|
+
${$(i)} 0 0 0 ${n},
|
|
267
|
+
0 ${$(i)} 0 0 ${n},
|
|
268
|
+
${$(i)} ${$(i)} 0 0 ${n},
|
|
269
|
+
${$(i)} 0 0 0 ${n} inset,
|
|
270
|
+
0 ${$(i)} 0 0 ${n} inset;
|
|
271
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},uF=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${$(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)}`,...ad(),"& > 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:$(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:$(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${$(e.lineWidth)} ${e.lineType} ${a}`}}}},dF=e=>({margin:`${$(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...ad(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...td},"&-description":{color:e.colorTextDescription}}),fF=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${$(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${$(e.padding)} ${$(i)}`}}},pF=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},mF=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...nd(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:cF(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:lF(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:uF(e),[`${t}-meta`]:dF(e)},[`${t}-bordered`]:{border:`${$(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:fF(e),[`${t}-loading`]:pF(e),[`${t}-rtl`]:{direction:`rtl`}}},hF=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${$(r)}`,fontSize:a,[`> ${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`}}}}},gF=fd(`Card`,e=>{let t=wl(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[mF(t),hF(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),_F=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return x.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return x.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},x.createElement(`span`,null,e))}))},vF=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:v,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=No(`card`),[P]=ZT(`card`,f,d),F=J_(p),I={...e,size:F,variant:P},L=vp(j),R=vp(a),[z,B]=bp([M,T],[N,L,E,R],{props:I}),V=t=>{e.onTabChange?.(t)},H=x.useMemo(()=>Ba(v),[v]),U=x.useMemo(()=>H.some(e=>x.isValidElement(e)&&e.type===sF),[H]),W=O(`card`,n),[ee,G]=gF(W),K=x.createElement(CS,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),q=y!==void 0,J={...w,[q?`activeKey`:`defaultActiveKey`]:q?y:b,tabBarExtraContent:S},te,Y=F===`small`?F:`large`,ne=_?x.createElement(oF,{size:Y,...J,className:`${W}-head-tabs`,onChange:V,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ne){let e=Q(`${W}-head`,z.header),t=Q(`${W}-head-title`,z.title),n=Q(`${W}-extra`,z.extra),r={...s,...B.header};te=x.createElement(`div`,{className:e,style:r},x.createElement(`div`,{className:`${W}-head-wrapper`},l&&x.createElement(`div`,{className:t,style:B.title},l),o&&x.createElement(`div`,{className:n,style:B.extra},o)),ne)}let X=Q(`${W}-cover`,z.cover),re=h?x.createElement(`div`,{className:X,style:B.cover},h):null,ie=Q(`${W}-body`,z.body),ae={...c,...B.body},oe=u||H.length?x.createElement(`div`,{className:ie,style:ae},u?K:v):null,se=Q(`${W}-actions`,z.actions),ce=g?.length?x.createElement(_F,{actionClasses:se,actionStyle:B.actions,actions:g}):null,le=Na(D,[`onTabChange`]),ue=Q(W,A,{[`${W}-loading`]:u,[`${W}-bordered`]:P!==`borderless`,[`${W}-hoverable`]:C,[`${W}-contain-grid`]:U,[`${W}-contain-tabs`]:_?.length,[`${W}-small`]:F===`small`,[`${W}-type-${m}`]:!!m,[`${W}-rtl`]:k===`rtl`},r,i,ee,G,z.root),de={...B.root};return x.createElement(`div`,{ref:t,...le,className:ue,style:de},te,re,oe,ce)}),yF=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,avatar:i,title:a,description:o,style:s,classNames:c,styles:l,...u}=e,{getPrefixCls:d,className:f,style:p,classNames:m,styles:h}=No(`cardMeta`),g=`${d(`card`,n)}-meta`,_=vp(p),v=vp(s),[y,b]=bp([m,c],[h,_,l,v],{props:e}),S=Q(g,r,f,y.root),C={...b.root},w=Q(`${g}-avatar`,y.avatar),T=Q(`${g}-title`,y.title),E=Q(`${g}-description`,y.description),D=Q(`${g}-section`,y.section),O=i?x.createElement(`div`,{className:w,style:b.avatar},i):null,k=a?x.createElement(`div`,{className:T,style:b.title},a):null,A=o?x.createElement(`div`,{className:E,style:b.description},o):null,j=k||A?x.createElement(`div`,{className:D,style:b.section},k,A):null,M=x.useRef(null);return x.useImperativeHandle(t,()=>({nativeElement:M.current})),x.createElement(`div`,{ref:M,...u,className:S,style:C},O,j)}),bF=vF;bF.Grid=sF,bF.Meta=yF;function xF(e,t,n){var r=n||{},i=r.noTrailing,a=i!==void 0&&i,o=r.noLeading,s=o!==void 0&&o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t!==void 0&&t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function SF(e,t,n){var r=(n||{}).atBegin;return xF(e,t,{debounceMode:(r!==void 0&&r)!==!1})}var CF=x.createContext(null),wF=x.createContext({}),TF=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return x.createElement(`div`,{style:i})},EF=x.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(x.createElement(`span`,{key:e,className:Q(i,{[`${i}-start`]:n[e],[`${i}-end`]:r[e]})}));return x.createElement(`span`,{"aria-hidden":`true`,className:`${e}-indent`},a)});function DF(e,t){return e[t]}function OF(e,t){return`${e}-${t}`}function kF(e){return e&&e.type&&e.type.isTreeNode}function AF(e,t){return e??t}function jF(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function MF(e){function t(e){return Ba(e).map(e=>{if(!kF(e))return Da(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function NF(e,t,n){let{_title:r,key:i,children:a}=jF(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=OF(n?n.pos:`0`,u),f=AF(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=Object.assign(Na(l,[...r,i,a]),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),m.children=t===!0||o.has(f)?c(l[a]||[],m):[],m})}return c(e),s}function PF(e,t,n){let{childrenPropName:r,externalGetKey:i,fieldNames:a}=typeof n==`object`?n||{}:{externalGetKey:n},{key:o,children:s}=jF(a),c=r||s,l;i?typeof i==`string`?l=e=>e[i]:typeof i==`function`&&(l=e=>i(e)):l=(e,t)=>AF(e[o],t);function u(n,r,i,a){let o=n?n[c]:e,s=n?OF(i.pos,r):`0`,d=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:l(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:d}),o&&o.forEach((e,t)=>{u(e,t,{node:n,pos:s,level:i?i.level+1:-1},d)})}u(null)}function FF(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),PF(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=AF(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function IF(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function LF(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=DF(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function RF(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return Da(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function zF(){return zF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zF.apply(this,arguments)}var BF=`open`,VF=`close`,HF=`---`,UF=e=>{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:v,selectable:y,treeId:b,...S}=e,C=di(b,t),w=x.useContext(CF),{classNames:T,styles:E}=w||{},D=x.useContext(wF),O=x.useRef(null),[k,A]=x.useState(!1),j=!!(w.disabled||e.disabled||D.nodeDisabled?.(_)),M=x.useMemo(()=>!w.checkable||e.checkable===!1?!1:w.checkable,[w.checkable,e.checkable]),N=t=>{j||w.onNodeSelect(t,RF(e))},P=t=>{j||!M||e.disableCheckbox||w.onNodeCheck(t,RF(e),!f)},F=x.useMemo(()=>typeof y==`boolean`?y:w.selectable,[y,w.selectable]),I=t=>{w.onNodeClick(t,RF(e)),F?N(t):P(t)},L=t=>{w.onNodeDoubleClick(t,RF(e))},R=t=>{w.onNodeMouseEnter(t,RF(e))},z=t=>{w.onNodeMouseLeave(t,RF(e))},B=t=>{w.onNodeContextMenu(t,RF(e))},V=x.useMemo(()=>!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(_))),[w.draggable,_]),H=t=>{t.stopPropagation(),A(!0),w.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragEnter(t,e)},W=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragOver(t,e)},ee=t=>{t.stopPropagation(),w.onNodeDragLeave(t,e)},G=t=>{t.stopPropagation(),A(!1),w.onNodeDragEnd(t,e)},K=t=>{t.preventDefault(),t.stopPropagation(),A(!1),w.onNodeDrop(t,e)},q=t=>{m||w.onNodeExpand(t,RF(e))},J=x.useMemo(()=>{let{children:e}=DF(w.keyEntities,t)||{};return!!(e||[]).length},[w.keyEntities,t]),te=x.useMemo(()=>IF(s,w.loadData,J,e.loaded),[s,w.loadData,J,e.loaded]);x.useEffect(()=>{m||typeof w.loadData==`function`&&u&&!te&&!e.loaded&&w.onNodeLoad(RF(e))},[m,w.loadData,w.onNodeLoad,u,te,e]);let Y=x.useMemo(()=>w.draggable?.icon?x.createElement(`span`,{className:`${w.prefixCls}-draggable-icon`},w.draggable.icon):null,[w.draggable]),ne=t=>{let n=e.switcherIcon||w.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},X=()=>{if(te){let e=ne(!0);return e===!1?null:x.createElement(`span`,{className:Q(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher-noop`,T?.itemSwitcher),style:E?.itemSwitcher},e)}let e=ne(!1);return e===!1?null:x.createElement(`span`,{onClick:q,className:Q(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher_${u?BF:VF}`,T?.itemSwitcher),style:E?.itemSwitcher},e)},re=x.useMemo(()=>{if(!M)return null;let t=typeof M==`boolean`?null:M;return x.createElement(`span`,{className:Q(`${w.prefixCls}-checkbox`,{[`${w.prefixCls}-checkbox-checked`]:f,[`${w.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${w.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:P,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":C},t)},[M,f,p,j,e.disableCheckbox,C]),ie=x.useMemo(()=>te?null:u?BF:VF,[te,u]),ae=x.useMemo(()=>x.createElement(`span`,{className:Q(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__${ie||`docu`}`,{[`${w.prefixCls}-icon_loading`]:m}),style:E?.itemIcon}),[w.prefixCls,ie,m]),oe=x.useMemo(()=>{let n=!!w.draggable;return!e.disabled&&n&&w.dragOverNodeKey===t?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),se=x.useMemo(()=>{let{title:t=HF}=e,n=`${w.prefixCls}-node-content-wrapper`,r;if(w.showIcon){let t=e.icon||w.icon;r=t?x.createElement(`span`,{className:Q(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__customize`),style:E?.itemIcon},typeof t==`function`?t(e):t):ae}else w.loadData&&m&&(r=ae);let i;return i=typeof t==`function`?t(_):w.titleRender?w.titleRender(_):t,x.createElement(`span`,{ref:O,title:typeof t==`string`?t:``,className:Q(n,`${n}-${ie||`normal`}`,{[`${w.prefixCls}-node-selected`]:!j&&(d||k)}),onMouseEnter:R,onMouseLeave:z,onContextMenu:B,onClick:I,onDoubleClick:L},r,x.createElement(`span`,{className:Q(`${w.prefixCls}-title`,T?.itemTitle),style:E?.itemTitle},i),oe)},[w.prefixCls,w.showIcon,e,w.icon,ae,w.titleRender,_,ie,R,z,B,I,L]),ce=Ra(S,{aria:!0,data:!0}),{level:le}=DF(w.keyEntities,t)||{},ue=l[l.length-1],de=!j&&V,fe=w.draggingNodeKey===t;return x.createElement(`div`,zF({ref:h,role:`treeitem`,id:C,"aria-expanded":te?void 0:u,"aria-selected":F&&!j?d:void 0,"aria-checked":M&&!j?p?`mixed`:f:void 0,"aria-disabled":j,className:Q(n,`${w.prefixCls}-treenode`,T?.item,{[`${w.prefixCls}-treenode-disabled`]:j,[`${w.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${w.prefixCls}-treenode-checkbox-checked`]:f,[`${w.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${w.prefixCls}-treenode-selected`]:d,[`${w.prefixCls}-treenode-loading`]:m,[`${w.prefixCls}-treenode-active`]:g,[`${w.prefixCls}-treenode-leaf-last`]:ue,[`${w.prefixCls}-treenode-draggable`]:V,dragging:fe,"drop-target":w.dropTargetKey===t,"drop-container":w.dropContainerKey===t,"drag-over":!j&&i,"drag-over-gap-top":!j&&a,"drag-over-gap-bottom":!j&&o,"filter-node":w.filterTreeNode?.(RF(e)),[`${w.prefixCls}-treenode-leaf`]:te}),style:{...r,...E?.item},draggable:de,onDragStart:de?H:void 0,onDragEnter:V?U:void 0,onDragOver:V?W:void 0,onDragLeave:V?ee:void 0,onDrop:V?K:void 0,onDragEnd:V?G:void 0,onMouseMove:v},ce),x.createElement(EF,{prefixCls:w.prefixCls,level:le,isStart:c,isEnd:l}),Y,X(),re,se)};UF.isTreeNode=1;function WF(e,t){let[n,r]=x.useState(!1);Qr(()=>{if(n)return e(),()=>{t()}},[n]),Qr(()=>(r(!0),()=>{r(!1)}),[])}function GF(){return GF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GF.apply(this,arguments)}var KF=x.forwardRef((e,t)=>{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=x.useState(!0),{prefixCls:m}=x.useContext(CF),h=a&&o!==`hide`;Qr(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=x.useRef(!1),v=()=>{a&&!_.current&&(_.current=!0,c())};return WF(g,v),a?x.createElement(ep,GF({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&v()}}),({className:e,style:t},n)=>x.createElement(`div`,{ref:n,className:Q(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=LF(r,u);return x.createElement(UF,GF({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):x.createElement(UF,GF({domRef:t,className:n,style:r},d,{active:l}))});function qF(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function JF(e,t,n){let r=e[e.findIndex(e=>e.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function YF(){return YF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YF.apply(this,arguments)}var XF=`RC_TREE_MOTION_${Math.random()}`,ZF={key:XF},QF={key:XF,level:0,index:0,pos:`0`,node:ZF,nodes:[ZF]},$F={parent:null,children:[],pos:QF.pos,data:ZF,title:null,key:XF,isStart:[],isEnd:[]};function eI(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function tI(e){let{key:t,pos:n}=e;return AF(t,n)}var nI=x.forwardRef((e,t)=>{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:v,itemHeight:y,virtual:b,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onActiveChange:A,onListChangeStart:j,onListChangeEnd:M,...N}=e,P=pi(),F=x.useRef(null),I=x.useRef(null);x.useImperativeHandle(t,()=>({scrollTo:e=>{F.current.scrollTo(e)},getIndentWidth:()=>I.current.offsetWidth}));let[L,R]=x.useState(o),[z,B]=x.useState(r),[V,H]=x.useState(r),[U,W]=x.useState([]),[ee,G]=x.useState(null),K=x.useRef(r);K.current=r;function q(){let e=K.current;B(e),H(e),W([]),G(null),M()}Qr(()=>{R(o);let e=qF(L,o);if(e.key!==null){if(e.add){let t=z.findIndex(({key:t})=>t===e.key),n=eI(JF(z,r,e.key),b,v,y),i=z.slice();i.splice(t+1,0,$F),H(i),W(n),G(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=eI(JF(r,z,e.key),b,v,y),i=r.slice();i.splice(t+1,0,$F),H(i),W(n),G(`hide`)}}else z!==r&&(B(r),H(r))},[o,r]),x.useEffect(()=>{m||q()},[m]);let J=_?V:r,te={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return x.createElement(x.Fragment,null,x.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},x.createElement(`div`,{className:`${n}-indent`},x.createElement(`div`,{ref:I,className:`${n}-indent-unit`}))),x.createElement(xT,YF({},N,{data:J,itemKey:tI,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:S,prefixCls:`${n}-list`,ref:F,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?di(P,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onVisibleChange:e=>{e.every(e=>tI(e)!==XF)&&q()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=AF(i,t);delete n.key,delete n.children;let c=LF(s,te);return x.createElement(KF,YF({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===XF?U:null,motionType:ee,onMotionStart:j,onMotionEnd:q,treeNodeRequiredProps:te,treeId:P,onMouseMove:()=>{A(null)}}))}))});function rI(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function iI(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function aI(e){return e.split(`-`)}function oI(e,t){let n=[],r=DF(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function sI(e){if(e.parent){let t=aI(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function cI(e){let t=aI(e.pos);return Number(t[t.length-1])===0}function lI(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=DF(s,n.eventKey);if(d<f+p/2){let e=o.findIndex(e=>e.key===g.key),t=o[e<=0?0:e-1].key;g=DF(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&sI(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return cI(g)&&g.level===0&&d<f+p/2&&a({dragNode:S,dropNode:C,dropPosition:-1})&&g.key===n.eventKey?b=-1:(v.children||[]).length&&h.includes(y)?a({dragNode:S,dropNode:C,dropPosition:0})?b=0:w=!1:x===0?m>-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function uI(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function dI(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Da(!1,"`checkedKeys` is not an array or an object"),null;return t}function fI(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=DF(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function pI(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function mI(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function hI(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(pI(a,i))}}function gI(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(pI(o,a))}}function _I(e,t,n,r){let i=[],a;a=r||mI;let o=new Set(e.filter(e=>{let t=!!DF(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),Da(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?hI(o,s,c,a):gI(o,t.halfCheckedKeys,s,c,a),l}function vI(){return vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vI.apply(this,arguments)}var yI=10,bI=class extends x.Component{static 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:TF,allowDrop:()=>!0,expandAction:!1};static TreeNode=UF;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:jF()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=x.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=jF(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(Da(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=MF(e.children)),a){r.treeData=a;let e=FF(a,{fieldNames:o});r.keyEntities={[XF]:QF,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?fI(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[XF];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?fI(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=NF(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=uI(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=uI(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=dI(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=dI(e.defaultCheckedKeys)||{}:a&&(o=dI(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=_I(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=rI(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:oI(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:RF(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=lI(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=DF(r,t.eventKey);a&&(a.children||[]).length&&(i=iI(n,t.eventKey)),this.setExpandedKeys(i),c?.(i,{node:RF(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:RF(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=lI(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?(this.state.dropPosition!==null||this.state.dropLevelOffset!==null||this.state.dropTargetKey!==null||this.state.dropContainerKey!==null||this.state.dropTargetPos!==null||this.state.dropAllowed!==!1||this.state.dragOverNodeKey!==null)&&this.resetDragState():(u!==this.state.dropPosition||d!==this.state.dropLevelOffset||f!==this.state.dropTargetKey||p!==this.state.dropContainerKey||m!==this.state.dropTargetPos||h!==this.state.dropAllowed||g!==this.state.dragOverNodeKey)&&this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:RF(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:RF(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:RF(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...LF(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:DF(this.state.keyEntities,a).node};Da(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=aI(o),d={event:e,node:RF(l),dragNode:this.dragNodeProps?RF(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=RF({...LF(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?rI(n,a):iI(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?iI(n,c):[c]:rI(n,c);let u=n.map(e=>{let t=DF(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?iI(i,c):rI(i,c);l={checked:e,halfChecked:rI(a,c)},u.checkedNodes=e.map(e=>DF(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=_I([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=_I(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=DF(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(DF(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=iI(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:rI(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:rI(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=yI){let{loadedKeys:e}=this.state;Da(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:iI(e,t)}),n()}r(e)}),{loadingKeys:iI(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{if(this.props.hasOwnProperty(`expandedKeys`))return;let{treeData:t,fieldNames:n}=this.state,r=NF(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(Da(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?iI(n,c):rI(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=NF(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=rI(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault()}let d=this.getActiveItem();if(d&&d.data){let i=RF({...LF(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!DF(a,t)?.children?.length,l=!IF(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i))}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{e&&typeof e==`object`&&e.autoExpand&&this.setExpandedKeys(iI(this.state.expandedKeys,e.key)),this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:S,checkable:C,checkStrictly:w,disabled:T,motion:E,loadData:D,filterTreeNode:O,height:k,itemHeight:A,scrollWidth:j,virtual:M,titleRender:N,dropIndicatorRender:P,onContextMenu:F,onScroll:I,direction:L,rootClassName:R,rootStyle:z}=this.props,B=Ra(this.props,{aria:!0,data:!0}),V;S&&(V=typeof S==`object`?S:typeof S==`function`?{nodeDraggable:S}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:v,icon:y,switcherIcon:b,draggable:V,draggingNodeKey:n,checkable:C,checkStrictly:w,disabled:T,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:L,dropIndicatorRender:P,loadData:D,filterTreeNode:O,titleRender:N,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 x.createElement(CF.Provider,{value:H},x.createElement(`div`,{className:Q(l,u,R,{[`${l}-show-line`]:m}),style:z},x.createElement(nI,vI({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:T,selectable:_,checkable:!!C,motion:E,dragging:n!==null,height:k,itemHeight:A,virtual:M,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:I,scrollWidth:j},this.getTreeNodeRequiredProps(),B))))}};function xI(e,t){let{fieldNames:n}=t,r=x.useMemo(()=>{let{keyEntities:t}=FF(e,{fieldNames:n});return t},[e,n]);return{getPath:Yr(e=>{let t=[],n=DF(r,e);for(;n;)t.unshift(n),n=n.parent;return t})}}var SI=bI,CI=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...nd(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...nd(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...nd(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${$(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...Rv(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${$(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}`,...zv()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:od(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[a]:{[`
|
|
272
|
+
${i}:not(${i}-disabled),
|
|
273
|
+
${t}:not(${t}-disabled)
|
|
274
|
+
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...zv()},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function wI(e,t){return CI(wl(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var TI=fd(`Checkbox`,(e,{prefixCls:t})=>[wI(t,e)]),EI=x.createContext(null),DI=x.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:m,value:h,checked:g,defaultChecked:_,onChange:v,...y}=e,{getPrefixCls:b,direction:S,className:C,style:w,classNames:T,styles:E}=No(`checkbox`),D=x.useContext(EI),{isFormItemInput:O}=x.useContext(Hx),k=x.useContext(ph),A=(D?.disabled||c)??k,[j,M]=ti(_,g),N=j,P=Yr(e=>{M(e.target.checked),v?.(e),!s&&D?.toggleOption&&D.toggleOption({label:r,value:h})});D&&!s&&(N=D.value.includes(h));let F=x.useRef(null),I=Ei(t,F);x.useEffect(()=>{if(!(s||!D))return D.registerValue(h),()=>{D.cancelValue(h)}},[h,s]),x.useEffect(()=>{F.current?.input&&(F.current.input.indeterminate=i)},[i]);let L=b(`checkbox`,n),R=Up(L),[z,B]=TI(L,R),V={...y},H={...e,indeterminate:i,disabled:A,checked:N},U=vp(w),W=vp(d),[ee,G]=bp([T,f],[E,U,p,W],{props:H}),K=Q(`${L}-wrapper`,{[`${L}-rtl`]:S===`rtl`,[`${L}-wrapper-checked`]:N,[`${L}-wrapper-disabled`]:A,[`${L}-wrapper-in-form-item`]:O},C,u,ee.root,l,B,R,z),q=Q(ee.icon,{[`${L}-indeterminate`]:i},z_,z),[J,te]=nN(V.onClick);return x.createElement(q_,{component:`Checkbox`,disabled:A},x.createElement(`label`,{className:K,style:G.root,onMouseEnter:a,onMouseLeave:o,onClick:J},x.createElement(tN,{...V,name:!s&&D?D.name:m,checked:N,onClick:te,onChange:P,prefixCls:L,className:q,style:G.icon,disabled:A,ref:I,value:h}),np(r)&&x.createElement(`span`,{className:Q(`${L}-label`,ee.label),style:G.label},r)))}),OI=x.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=x.useContext(Ao),[m,h]=x.useState(d.value||n||[]),[g,_]=x.useState([]);x.useEffect(()=>{`value`in d&&h(d.value||[])},[d.value]);let v=x.useMemo(()=>i.map(e=>ip(e)||rp(e)?{label:e,value:e}:e).filter(e=>tp(e)&&tp(e.value)),[i]),y=e=>{_(t=>t.filter(t=>t!==e))},b=e=>{_(t=>[].concat(Do(t),[e]))},S=e=>{let t=m.indexOf(e.value),n=Do(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||h(n),l?.(n.filter(e=>g.includes(e)).sort((e,t)=>v.findIndex(t=>t.value===e)-v.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=Up(C),[E,D]=TI(C,T),O=Na(d,[`value`,`disabled`]),k=Array.isArray(v)&&v.length>0?v.map(e=>x.createElement(DI,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:Q(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,A=x.useMemo(()=>({toggleOption:S,value:m,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:y}),[S,m,d.disabled,d.name,b,y]),j=Q(w,{[`${w}-rtl`]:p===`rtl`},o,s,D,T,E);return x.createElement(`div`,{className:j,style:c,role:u,...O,ref:t},x.createElement(EI.Provider,{value:A},k))}),kI=DI;kI.Group=OI,kI.__ANT_CHECKBOX=!0;var AI=(0,x.createContext)({});function jI(e){return e===`auto`?`1 1 auto`:rp(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var MI=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=x.useContext(Ao),{gutter:i,wrap:a}=x.useContext(AI),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),v=n(),[y,b]=BS(_),[S]=hd(v,`col`),C={},w={};FE.forEach(t=>{let n={},i=e[t];rp(i)?n.span=i:ap(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:tp(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},(n.flex||n.flex===0)&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=jI(n.flex))});let T=Q(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,y,b),E={};return i?.[0]&&(E.paddingInline=rp(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),(m||m===0)&&(E.flex=jI(m),a===!1&&!E.minWidth&&(E.minWidth=0)),x.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function NI(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(ap(e))for(let r=0;r<PE.length;r++){let a=PE[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var PI=(e,t)=>{let[n,r]=x.useState(()=>ip(e)?e:``),i=()=>{if(ip(e)&&r(e),ap(e))for(let n=0;n<PE.length;n++){let i=PE[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return x.useEffect(()=>{i()},[JSON.stringify(e),t]),n},FI=x.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=x.useContext(Ao),p=BE(!0,null),m=PI(i,p),h=PI(r,p),g=d(`row`,n),[_,v]=RS(g),y=NI(c,p),b=Q(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,v),S={};y?.[0]&&(S.marginInline=rp(y[0])?`${y[0]/-2}px`:`calc(${y[0]} / -2)`);let[C,w]=y;S.rowGap=w;let T=x.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return x.createElement(AI.Provider,{value:T},x.createElement(`div`,{...u,className:b,style:{...S,...o},ref:t},s))}),II=MI,LI=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},RI=e=>e===void 0?void 0:`${e}px`;function zI(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=x.useRef(null),[d,f]=x.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=x.useState(null),[g,_]=x.useState(null);Qr(()=>{if(d!==r){let e=p(d),t=p(r),n=LI(e,l),i=LI(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let v=x.useMemo(()=>RI(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),y=x.useMemo(()=>RI(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:x.createElement(ep,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":v,"--thumb-start-width":RI(m?.width),"--thumb-active-left":y,"--thumb-active-width":RI(g?.width),"--thumb-start-top":v,"--thumb-start-height":RI(m?.height),"--thumb-active-top":y,"--thumb-active-height":RI(g?.height)},a={ref:Ti(u,r),style:i,className:Q(`${t}-thumb`,e)};return x.createElement(`div`,a)})}function BI(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function VI(e){return e.map(e=>{if(typeof e==`object`&&e){let t=BI(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var HI=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:v=e=>e})=>{let y=e=>{o||f(e,u)};return v(x.createElement(`label`,{className:Q(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},x.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:y,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),x.createElement(`div`,{className:Q(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},UI=x.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,v=x.useRef(null),y=x.useMemo(()=>Ti(v,t),[v,t]),b=x.useMemo(()=>VI(a),[a]),[S,C]=ti(s??b[0]?.value,c),[w,T]=x.useState(!1),E=(e,t)=>{C(t),u?.(t)},D=Na(_,[`children`]),[O,k]=x.useState(!1),[A,j]=x.useState(!1),M=()=>{j(!0)},N=()=>{j(!1)},P=()=>{k(!1)},F=e=>{e.key===`Tab`&&k(!0)},I=e=>{let t=b.findIndex(e=>e.value===S),n=b.length,r=(t+e+n)%n,i=b[r];i&&(C(i.value),u?.(i.value))},L=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:I(-1);break;case`ArrowRight`:case`ArrowDown`:I(1)}},R=e=>{let{value:t,disabled:r}=e;return x.createElement(HI,dy({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:Q(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:A&&O&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:E,onFocus:M,onBlur:N,onKeyDown:L,onKeyUp:F,onMouseDown:P,disabled:!!o||!!r}))};return x.createElement(`div`,dy({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},D,{className:Q(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:y}),x.createElement(`div`,{className:`${n}-group`},x.createElement(zI,{vertical:i,prefixCls:n,value:S,containerRef:v,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>b.findIndex(t=>t.value===e),onMotionStart:()=>{T(!0)},onMotionEnd:()=>{T(!1)}}),b.map(R)))});function WI(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var GI=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),KI={overflow:`hidden`,...td},qI=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...nd(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...sd(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${$(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...GI(e),color:e.itemSelectedColor},"&-focused":od(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:$(a),padding:`0 ${$(e.segmentedPaddingHorizontal)}`,...KI},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-icon > svg":{display:`inline-block`,verticalAlign:`middle`,marginBlockEnd:`0.2em`},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...GI(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${$(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:$(o),padding:`0 ${$(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:$(s),padding:`0 ${$(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...WI(`&-disabled ${t}-item`,e),...WI(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},JI=fd(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return qI(wl(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function YI(e){return ap(e)&&!!e?.icon}var XI=x.forwardRef((e,t)=>{let n=pi(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:v,className:y,style:b,classNames:S,styles:C}=No(`segmented`),w={...e,options:s,size:c,shape:f},T=vp(b),E=vp(l),[D,O]=bp([S,h],[C,T,m,E],{props:w}),k=_(`segmented`,r),[A,j]=JI(k),M=J_(c),N=x.useMemo(()=>s.map(e=>{if(YI(e)){let{icon:t,label:n,...r}=e;return{...r,label:x.createElement(x.Fragment,null,x.createElement(`span`,{className:Q(`${k}-item-icon`,D.icon),style:O.icon},t),n&&x.createElement(`span`,null,n))}}return e}),[s,k,D.icon,O.icon]),[,P]=Dg(d,u),F=Q(i,a,y,D.root,{[`${k}-block`]:o,[`${k}-sm`]:M===`small`,[`${k}-lg`]:M===`large`,[`${k}-vertical`]:P,[`${k}-shape-${f}`]:f===`round`},A,j),I=(e,{item:t})=>{if(!t.tooltip)return e;let n=ap(t.tooltip)?t.tooltip:{title:t.tooltip};return x.createElement(gD,{...n},e)};return x.createElement(UI,{...g,name:p,className:F,style:O.root,classNames:D,styles:O,itemRender:I,options:N,ref:t,prefixCls:k,direction:v,vertical:P})}),ZI=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`minus`,theme:`outlined`}}))());function QI(){return QI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QI.apply(this,arguments)}var $I=x.forwardRef((e,t)=>x.createElement(qd,QI({},e,{ref:t,icon:ZI.default}))),eL=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function tL(){return tL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tL.apply(this,arguments)}var nL=x.forwardRef((e,t)=>x.createElement(qd,tL({},e,{ref:t,icon:eL.default})));function rL(){return typeof BigInt==`function`}function iL(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function aL(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${t}`);var r=t||`0`,i=r.split(`.`),a=i[0]||`0`,o=i[1]||`0`;a===`0`&&o===`0`&&(n=!1);var s=n?`-`:``;return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function oL(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function sL(e){var t=Zc(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=Zc((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function cL(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if(n===`0`)return`0`;var o=i.replace(/^0+/,``).length,s=(t.match(/^0*/)||[``])[0].length,c=(o||-s)+r,l=``;return l=c<=0?`0.${`0`.repeat(-c)}${n}`:c>=n.length?`${n}${`0`.repeat(c-n.length)}`:`${n.slice(0,c)}.${n.slice(c)}`,`${a?`-`:``}${l}`}function lL(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function uL(e){var t=String(e);return oL(e)?lL(sL(t)):t.includes(`.`)&&fL(t)?t.length-t.indexOf(`.`)-1:0}function dL(e){var t=String(e);if(oL(e)){if(e>2**53-1)return String(rL()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(rL()?BigInt(e).toString():-(2**53-1));var n=sL(t),r=lL(n);t=r>100?cL(n):e.toFixed(r)}return aL(t).fullStr}function fL(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 pL=function(){function e(t){if(rl(this,e),el(this,`origin`,``),el(this,`negative`,void 0),el(this,`integer`,void 0),el(this,`decimal`,void 0),el(this,`decimalLen`,void 0),el(this,`empty`,void 0),el(this,`nan`,void 0),iL(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(oL(n)&&(n=Number(n)),n=typeof n==`string`?n:dL(n),fL(n)){var r=aL(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return al(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(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=aL(a),c=`${s.negativeStr}${s.trimStr.padStart(o+1,`0`)}`;return new e(`${c.slice(0,-o)}.${c.slice(-o)}`)}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:`multi`,value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return e*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(e){return this.toString()===e?.toString()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:aL(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),mL=function(){function e(t){if(rl(this,e),el(this,`origin`,``),el(this,`number`,void 0),el(this,`empty`,void 0),iL(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return al(e,[{key:`negate`,value:function(){return new e(-this.toNumber())}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(uL(this.number),uL(n));return new e(r.toFixed(i))}},{key:`multi`,value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(uL(this.number),uL(n));return new e(r.toFixed(i))}},{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(e){return this.toNumber()===e?.toNumber()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.number}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:oL(this.number)&&uL(this.number)>100?String(this.number):dL(this.number):this.origin}}]),e}();function hL(e){return rL()?new pL(e):new mL(e)}function gL(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===``)return``;var i=aL(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,c=`${t}${s}`,l=`${a}${o}`;if(n>=0){var u=Number(s[n]);return u>=5&&!r?gL(hL(e).add(`${a}0.${`0`.repeat(n)}${10-u}`).toString(),t,n,r):n===0?l:`${l}${t}${s.padEnd(n,`0`).slice(0,n)}`}return c===`.0`?l:`${l}${c}`}var _L=hL;function vL(e,t){let n=(0,x.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e,a=i.substring(0,t),o=i.substring(r);n.current={start:t,end:r,value:i,beforeTxt:a,afterTxt:o}}catch{}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){Da(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var yL=200,bL=600;function xL({prefixCls:e,action:t,children:n,disabled:r,className:i,style:a,onStep:o}){let s=t===`up`,c=x.useRef(),l=x.useRef([]),u=()=>{clearTimeout(c.current)},d=e=>{e.preventDefault(),u(),o(s,`handler`);function t(){o(s,`handler`),c.current=setTimeout(t,yL)}c.current=setTimeout(t,bL)};x.useEffect(()=>()=>{u(),l.current.forEach(e=>{si.cancel(e)})},[]);let f=`${e}-action`,p=Q(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),m=()=>l.current.push(si(u));return x.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:m,onMouseLeave:m,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||x.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function SL(e){let t=typeof e==`number`?dL(e):aL(e).fullStr;return t.includes(`.`)?aL(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var CL=(()=>{let e=(0,x.useRef)(0),t=()=>{si.cancel(e.current)};return(0,x.useEffect)(()=>t,[]),n=>{t(),e.current=si(()=>{n()})}});function wL(){return wL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wL.apply(this,arguments)}var TL=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),EL=e=>{let t=_L(e);return t.isInvalidate()?null:t},DL=x.forwardRef((e,t)=>{let{mode:n=`input`,prefixCls:r=`rc-input-number`,className:i,style:a,classNames:o,styles:s,min:c,max:l,step:u=1,defaultValue:d,value:f,disabled:p,readOnly:m,upHandler:h,downHandler:g,keyboard:_,changeOnWheel:v=!1,controls:y=!0,prefix:b,suffix:S,stringMode:C,parser:w,formatter:T,precision:E,decimalSeparator:D,onChange:O,onInput:k,onPressEnter:A,onStep:j,onMouseDown:M,onClick:N,onMouseUp:P,onMouseLeave:F,onMouseMove:I,onMouseEnter:L,onMouseOut:R,changeOnBlur:z=!0,...B}=e,[V,H]=x.useState(!1),U=x.useRef(!1),W=x.useRef(!1),ee=x.useRef(!1),G=x.useRef(null),K=x.useRef(null);x.useImperativeHandle(t,()=>za(K.current,{focus:e=>{Xi(K.current,e)},blur:()=>{K.current?.blur()},nativeElement:G.current}));let[q,J]=x.useState(()=>_L(f??d));function te(e){f===void 0&&J(e)}let Y=x.useCallback((e,t)=>{if(!t)return E>=0?E:Math.max(uL(e),uL(u))},[E,u]),ne=x.useCallback(e=>{let t=String(e);if(w)return w(t);let n=t;return D&&(n=n.replace(D,`.`)),n.replace(/[^\w.-]+/g,``)},[w,D]),X=x.useRef(``),re=x.useCallback((e,t)=>{if(T)return T(e,{userTyping:t,input:String(X.current)});let n=typeof e==`number`?dL(e):e;if(!t){let e=Y(n,t);fL(n)&&(D||e>=0)&&(n=gL(n,D||`.`,e))}return n},[T,Y,D]),[ie,ae]=x.useState(()=>{let e=d??f;return q.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:re(q.toString(),!1)});X.current=ie;function oe(e,t){ae(re(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let se=x.useMemo(()=>EL(l),[l,E]),ce=x.useMemo(()=>EL(c),[c,E]),le=x.useMemo(()=>!se||!q||q.isInvalidate()?!1:se.lessEquals(q),[se,q]),ue=x.useMemo(()=>!ce||!q||q.isInvalidate()?!1:q.lessEquals(ce),[ce,q]),[de,fe]=vL(K.current,V),pe=e=>se&&!e.lessEquals(se)?se:ce&&!ce.lessEquals(e)?ce:null,me=e=>!pe(e),he=(e,t)=>{let n=e,r=me(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=pe(n)||n,r=!0),!m&&!p&&r){let e=n.toString(),r=Y(e,t);return r>=0&&(n=_L(gL(e,`.`,r)),me(n)||(n=_L(gL(e,`.`,r,!0)))),n.equals(q)||(te(n),O?.(n.isEmpty()?null:TL(C,n)),f===void 0&&oe(n,t)),n}return q},ge=CL(),_e=e=>{if(de(),X.current=e,ae(e),!W.current){let t=_L(ne(e));t.isNaN()||he(t,!0)}k?.(e),ge(()=>{let t=e;w||(t=e.replace(/。/g,`.`)),t!==e&&_e(t)})},ve=()=>{W.current=!0},ye=()=>{W.current=!1,_e(K.current.value)},be=e=>{_e(e.target.value)},xe=Yr((e,t)=>{if(e&&le||!e&&ue)return;U.current=!1;let n=_L(ee.current?SL(u):u);e||(n=n.negate());let r=(q||_L(0)).add(n.toString()),i=he(r,!1);j?.(TL(C,i),{offset:ee.current?SL(u):u,type:e?`up`:`down`,emitter:t}),K.current?.focus()}),Se=e=>{let t=_L(ne(ie)),n;n=t.isNaN()?he(q,e):he(t,e),f===void 0?n.isNaN()||oe(n,!1):oe(q,!1)},Ce=()=>{U.current=!0},we=e=>{let{key:t,shiftKey:n}=e;U.current=!0,ee.current=n,t===`Enter`&&(W.current||(U.current=!1),Se(!1),A?.(e)),_!==!1&&!W.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(xe(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},Te=()=>{U.current=!1,ee.current=!1};x.useEffect(()=>{if(v&&V){let e=e=>{xe(e.deltaY<0,`wheel`),e.preventDefault()},t=K.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let Ee=()=>{z&&Se(!1),H(!1),U.current=!1},De=e=>{K.current&&e.target!==K.current&&(K.current.focus(),e.preventDefault()),M?.(e)};$r(()=>{q.isInvalidate()||oe(q,!1)},[E,T]),$r(()=>{let e=_L(f);J(e);let t=_L(ne(ie));(!e.equals(t)||!U.current||T)&&oe(e,U.current)},[f]),$r(()=>{T&&fe()},[ie]);let Oe={prefixCls:r,onStep:xe,className:o?.action,style:s?.action},ke=x.createElement(xL,wL({},Oe,{action:`up`,disabled:le}),h),Ae=x.createElement(xL,wL({},Oe,{action:`down`,disabled:ue}),g);return x.createElement(`div`,{ref:G,className:Q(r,`${r}-mode-${n}`,i,o?.root,{[`${r}-focused`]:V,[`${r}-disabled`]:p,[`${r}-readonly`]:m,[`${r}-not-a-number`]:q.isNaN(),[`${r}-out-of-range`]:!q.isInvalidate()&&!me(q)}),style:{...s?.root,...a},onMouseDown:De,onMouseUp:P,onMouseLeave:F,onMouseMove:I,onMouseEnter:L,onMouseOut:R,onClick:N,onFocus:()=>{H(!0)},onBlur:Ee,onKeyDown:we,onKeyUp:Te,onCompositionStart:ve,onCompositionEnd:ye,onBeforeInput:Ce},n===`spinner`&&y&&Ae,b!==void 0&&x.createElement(`div`,{className:Q(`${r}-prefix`,o?.prefix),style:s?.prefix},b),x.createElement(`input`,wL({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u,ref:K,className:Q(`${r}-input`,o?.input),style:s?.input,value:ie,onChange:be,disabled:p,readOnly:m},B)),S!==void 0&&x.createElement(`div`,{className:Q(`${r}-suffix`,o?.suffix),style:s?.suffix},S),n===`spinner`&&y&&ke,n===`input`&&y&&x.createElement(`div`,{className:Q(`${r}-actions`,o?.actions),style:s?.actions},ke,Ae))}),OL=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,lineType:f,antCls:p}=e,[m,h]=hd(p,`space-addon`);return{[t]:[{...nd(e),display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:f,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[m(`addon-border-color`)]:i,[m(`addon-background`)]:u,[m(`addon-border-color-outlined`)]:i,[m(`addon-background-filled`)]:u,borderColor:h(`addon-border-color`),background:h(`addon-background`),"&-variant-outlined":{[m(`addon-border-color`)]:h(`addon-border-color-outlined`)},"&-variant-filled":{[m(`addon-border-color`)]:`transparent`,[m(`addon-background`)]:h(`addon-background-filled`),[`&${t}-disabled`]:{[m(`addon-border-color`)]:i,[m(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[m(`addon-border-color-outlined`)]:e.colorError,[m(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[m(`addon-border-color-outlined`)]:e.colorWarning,[m(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},kL=fd(`Addon`,e=>[OL(e),Dy(e,{focus:!1})]),AL=x.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=x.useContext(Ao),f=u(`space-addon`,a),[p,m]=kL(f),{compactItemClassnames:h,compactSize:g}=Z_(f,d),_=BT(f,c),v=Q(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return x.createElement(`div`,{ref:t,className:v,style:i,...l},r)}),jL=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...pN(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Kl(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},ML=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:s,paddingInlineSM:c,paddingBlockSM:l,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:_,paddingBlock:v,handleBg:y,handleActiveBg:b,inputAffixPadding:x,borderRadiusSM:S,controlWidth:C,handleBorderColor:w,filledHandleBg:T,lineHeightLG:E,antCls:D}=e,O=`${$(n)} ${r} ${w}`,[k,A]=hd(D,`input-number`);return[{[t]:{...nd(e),...IN(e),[k(`input-padding-block`)]:$(v),[k(`input-padding-inline`)]:$(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...vN(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...DN(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...MN(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...wN(e),[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:$(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:$(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:$(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...nd(e),width:`100%`,paddingBlock:A(`input-padding-block`),textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:`textfield`,fontSize:`inherit`,lineHeight:`inherit`,...NN(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:`none`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:`not-allowed`,color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...rd(),userSelect:`none`,overflow:`hidden`,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:b},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:`not-allowed`,color:p}},"&-mode-input":{overflow:`hidden`,[`${t}-actions`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:`100%`,borderRadius:0,display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`all ${m}`,overflow:`hidden`,[`${t}-action`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`auto`,height:`40%`,marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:f,height:`50%`,borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:`60%`}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:`none`}}},[`&${t}-mode-spinner`]:{padding:0,width:`auto`,[`${t}-action`]:{flex:`none`,paddingInline:A(`input-padding-inline`),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:`center`,paddingInline:A(`input-padding-inline`)}}}},{[t]:{"&-lg":{[k(`input-padding-block`)]:$(u),[k(`input-padding-inline`)]:$(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:$(l),[k(`input-padding-inline`)]:$(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:`flex`,flex:`none`,alignItems:`center`,alignSelf:`center`,pointerEvents:`none`},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:`100%`,marginInlineStart:x,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},NL=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},PL=fd(`InputNumber`,e=>{let t=wl(e,fN(e));return[ML(t),NL(t),Dy(t)]},jL,{unitless:{handleOpacity:!0},resetFont:!1}),FL=x.forwardRef((e,t)=>{let n=x.useRef(null);x.useImperativeHandle(t,()=>n.current);let{rootClassName:r,size:i,disabled:a,prefixCls:o,addonBefore:s,addonAfter:c,prefix:l,suffix:u,bordered:d,readOnly:f,status:p,controls:m=!0,variant:h,className:g,style:_,classNames:v,styles:y,mode:b,...S}=e,{direction:C,className:w,style:T,styles:E,classNames:D}=No(`inputNumber`),O=x.useContext(ph),k=a??O,A=x.useMemo(()=>!m||k||f?!1:m,[m,k,f]),{compactSize:j,compactItemClassnames:M}=Z_(o,C),N=b===`spinner`?x.createElement(cP,null):x.createElement(nL,null),P=b===`spinner`?x.createElement($I,null):x.createElement(vE,null),F=typeof A==`boolean`?A:void 0;ap(A)&&(N=A.upIcon||N,P=A.downIcon||P);let{hasFeedback:I,isFormItemInput:L,feedbackIcon:R}=x.useContext(Hx),z=J_(e=>i??j??e),[B,V]=ZT(`inputNumber`,h,d),H=(I||u)&&x.createElement(x.Fragment,null,u,I&&R),U={...e,size:z,disabled:k,controls:A},W=vp(T),ee=vp(_),[G,K]=bp([D,v],[E,W,y,ee],{props:U});return x.createElement(DL,{ref:n,mode:b,disabled:k,className:Q(g,r,G.root,w,M,BT(o,p,I),{[`${o}-${B}`]:V,[`${o}-lg`]:z===`large`,[`${o}-sm`]:z===`small`,[`${o}-rtl`]:C===`rtl`,[`${o}-in-form-item`]:L,[`${o}-without-controls`]:!A}),style:K.root,upHandler:N,downHandler:P,prefixCls:o,readOnly:f,controls:F,prefix:l,suffix:H,classNames:G,styles:K,...S})}),IL=x.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=No(`inputNumber`),u=l(`input-number`,i),{status:d}=x.useContext(Hx),f=VT(d,o),p=Up(u),[m,h]=PL(u,p),g=n||r,_=x.createElement(FL,{ref:t,...c,prefixCls:u,status:f,className:Q(h,p,m,a),rootClassName:g?void 0:s});if(g){let t=t=>t?x.createElement(AL,{className:Q(`${u}-addon`,h,m),variant:e.variant,disabled:e.disabled,status:f},x.createElement(Gx,{form:!0},t)):null,i=t(n),a=t(r);return x.createElement(ev,{rootClassName:s},i,_,a)}return _}),LL=IL;LL._InternalPanelDoNotUseOrYouWillBeFired=e=>x.createElement(Nh,{theme:{components:{InputNumber:{handleVisible:!0}}}},x.createElement(IL,{...e}));function RL(e){return!!(e.addonBefore||e.addonAfter)}function zL(e){return!!(e.prefix||e.suffix||e.allowClear)}function BL(e,t,n){let r=t.cloneNode(!0),i=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=(...e)=>{t.setSelectionRange(...e)},i}function VL(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=BL(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=BL(t,e,r),n(i);return}n(i)}function HL(){return HL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HL.apply(this,arguments)}var UL=x.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:v,classes:y,classNames:b,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,x.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=zL(e),P=(0,x.cloneElement)(E,{value:g,className:Q(E.props?.className,!N&&b?.variant)||null}),F=(0,x.useRef)(null);if(x.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g&&!(typeof h==`object`&&h.disabled),n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=x.createElement(`button`,{type:`button`,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:Q(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o},b?.clear),style:C?.clear},r)}let t=`${i}-affix-wrapper`,n=Q(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},y?.affixWrapper,b?.affixWrapper,b?.variant),r=(o||h)&&x.createElement(`span`,{className:Q(`${i}-suffix`,b?.suffix),style:C?.suffix},e,o);P=x.createElement(D,HL({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&x.createElement(`span`,{className:Q(`${i}-prefix`,b?.prefix),style:C?.prefix},a),P,r)}if(RL(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=Q(`${i}-wrapper`,e,y?.wrapper,b?.wrapper),a=Q(n,{[`${n}-disabled`]:d},y?.group,b?.groupWrapper);P=x.createElement(O,{className:a,ref:F},x.createElement(k,{className:r},s&&x.createElement(A,{className:t},s),P,c&&x.createElement(A,{className:t},c)))}return x.cloneElement(P,{className:Q(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:v})});function WL(e,t){return x.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function GL({countConfig:e,value:t,maxLength:n}){return x.useMemo(()=>{let r=e.max??n,i=e.strategy(t),a=!!r&&i>r,o=Number(r)>0;return{mergedMax:r,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${o?` / ${r}`:``}`:void 0}},[e,n,t])}function KL({countConfig:e,getTarget:t}){let[n,r]=x.useState(null),i=x.useRef(t);return x.useEffect(()=>{i.current=t},[t]),x.useEffect(()=>{n&&(i.current()?.setSelectionRange(...n),r(null))},[n]),x.useCallback((t,n)=>{let a=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),a},[e])}function qL(e,t){let[n,r]=ti(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}function JL(){return JL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JL.apply(this,arguments)}var YL=(0,x.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:v,classNames:y,styles:b,onCompositionStart:S,onCompositionEnd:C,...w}=e,[T,E]=(0,x.useState)(!1),D=(0,x.useRef)(!1),O=(0,x.useRef)(!1),k=(0,x.useRef)(null),A=(0,x.useRef)(null),j=e=>{k.current&&Xi(k.current,e)},{setValue:M,formatValue:N}=qL(e.defaultValue,e.value),P=WL(g,h),{isOutOfRange:F,dataCount:I}=GL({countConfig:P,value:N,maxLength:p}),L=KL({countConfig:P,getTarget:()=>k.current});(0,x.useImperativeHandle)(t,()=>({focus:j,blur:()=>{k.current?.blur()},setSelectionRange:(e,t,n)=>{k.current?.setSelectionRange(e,t,n)},select:()=>{k.current?.select()},input:k.current,nativeElement:A.current?.nativeElement||k.current})),(0,x.useEffect)(()=>{O.current&&=!1,E(e=>e&&u?!1:e)},[u]);let R=(e,t,n)=>{let i=L(t,D.current);(n.source!==`compositionEnd`||t!==i)&&(M(i),k.current&&VL(k.current,e,r,i))},z=e=>{R(e,e.target.value,{source:`change`})},B=e=>{D.current=!1,R(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},V=e=>{o&&e.key===`Enter`&&!O.current&&!e.nativeEvent.isComposing&&(O.current=!0,o(e)),s?.(e)},H=e=>{e.key===`Enter`&&(O.current=!1),c?.(e)},U=e=>{E(!0),i?.(e)},W=e=>{O.current&&=!1,E(!1),a?.(e)},ee=e=>{M(``),j(),k.current&&VL(k.current,e,r)},G=F&&`${l}-out-of-range`;return x.createElement(UL,JL({},w,{prefixCls:l,className:Q(f,G),handleReset:ee,value:N,focused:T,triggerFocus:j,suffix:m||P.show?x.createElement(x.Fragment,null,P.show&&x.createElement(`span`,{className:Q(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},y?.count),style:{...b?.count}},I),m):null,disabled:u,classes:v,classNames:y,styles:b,ref:A}),(()=>{let t=Na(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return x.createElement(`input`,JL({autoComplete:n},t,{onChange:z,onFocus:U,onBlur:W,onKeyDown:V,onKeyUp:H,className:Q(l,{[`${l}-disabled`]:u},y?.input),style:b?.input,ref:k,size:d,type:_,onCompositionStart:e=>{D.current=!0,S?.(e)},onCompositionEnd:B}))})())}),XL=`
|
|
275
|
+
min-height:0 !important;
|
|
276
|
+
max-height:none !important;
|
|
277
|
+
height:0 !important;
|
|
278
|
+
visibility:hidden !important;
|
|
279
|
+
overflow:hidden !important;
|
|
280
|
+
position:absolute !important;
|
|
281
|
+
z-index:-1000 !important;
|
|
282
|
+
top:0 !important;
|
|
283
|
+
right:0 !important;
|
|
284
|
+
pointer-events: none !important;
|
|
285
|
+
`,ZL=[`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`],QL={},$L;function eR(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&QL[n])return QL[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:ZL.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(QL[n]=s),s}function tR(e,t=!1,n=null,r=null){$L||($L=document.createElement(`textarea`),$L.setAttribute(`tab-index`,`-1`),$L.setAttribute(`aria-hidden`,`true`),$L.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild($L)),e.getAttribute(`wrap`)?$L.setAttribute(`wrap`,e.getAttribute(`wrap`)):$L.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=eR(e,t);$L.setAttribute(`style`,`${s};${XL}`),$L.value=e.value||e.placeholder||``;let c,l,u,d=$L.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){$L.value=` `;let e=$L.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?void 0:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function nR(){return nR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nR.apply(this,arguments)}var rR=0,iR=1,aR=2,oR=x.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=ti(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=x.useRef(null);x.useImperativeHandle(t,()=>({textArea:_.current}));let[v,y]=x.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),b=!!a,[S,C]=x.useState(aR),[w,T]=x.useState(),E=()=>{C(rR)};Qr(()=>{b&&E()},[i,v,y,b]),Qr(()=>{if(S===rR)C(iR);else if(S===iR){let e=tR(_.current,!1,v,y);C(aR),T(e)}},[S]);let D=x.useRef(void 0),O=()=>{D.current!==void 0&&si.cancel(D.current)},k=e=>{S===aR&&(o?.(e),a&&(O(),D.current=si(()=>{E()})))};x.useEffect(()=>O,[]);let A=b?w:null,j={...c,...A};return(S===rR||S===iR)&&(j.overflowY=`hidden`,j.overflowX=`hidden`),x.createElement(bo,{onResize:k,disabled:!(a||o)},x.createElement(`textarea`,nR({},f,{ref:_,style:j,className:Q(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function sR(){return sR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sR.apply(this,arguments)}var cR=x.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:v,onResize:y,onClear:b,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:T,...E},D)=>{let[O,k]=x.useState(!1),A=x.useRef(!1),[j,M]=x.useState(null),N=(0,x.useRef)(null),P=(0,x.useRef)(null),F=()=>P.current?.textArea||null,{setValue:I,formatValue:L}=qL(e,t),R=WL(f,d),{isOutOfRange:z,dataCount:B}=GL({countConfig:R,value:L,maxLength:o}),V=KL({countConfig:R,getTarget:()=>P.current?.textArea||null}),H=()=>{F()?.focus()};(0,x.useImperativeHandle)(D,()=>({resizableTextArea:P.current,focus:H,blur:()=>{F()?.blur()},nativeElement:N.current?.nativeElement||F()})),(0,x.useEffect)(()=>{k(e=>!h&&e)},[h]);let U=(e,t)=>{let n=V(t,A.current);I(n),VL(e.currentTarget,e,i,n)},W=e=>{A.current=!0,s?.(e)},ee=e=>{A.current=!1,U(e,e.currentTarget.value),c?.(e)},G=e=>{U(e,e.target.value)},K=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),T?.(e)},q=e=>{k(!0),n?.(e)},J=e=>{k(!1),r?.(e)},te=e=>{I(``),H();let t=F();t&&VL(t,e,i)},Y=l;R.show&&(Y=x.createElement(x.Fragment,null,Y,x.createElement(`span`,{className:Q(`${u}-data-count`,_?.count),style:v?.count},B)));let ne=e=>{y?.(e),F()?.style.height&&M(!0)},X=!w&&!d&&!a;return x.createElement(UL,{ref:N,value:L,allowClear:a,handleReset:te,suffix:Y,prefixCls:u,classNames:{..._,affixWrapper:Q(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:O,className:Q(p,z&&`${u}-out-of-range`),style:{...m,...j&&!X?{height:`auto`}:{}},dataAttrs:typeof B==`string`?{affixWrapper:{"data-count":B}}:void 0,styles:v,hidden:g,readOnly:C,onClear:b},x.createElement(oR,sR({},E,{autoSize:w,maxLength:o,onKeyDown:K,onChange:G,onFocus:q,onBlur:J,onCompositionStart:W,onCompositionEnd:ee,className:Q(_?.textarea),style:{resize:m?.resize,...v?.textarea},disabled:h,prefixCls:u,onResize:ne,ref:P,readOnly:C})))}),lR=YL;function uR(e,t){let n=(0,x.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,x.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[t]),r}function dR(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var fR=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:v,variant:y,...b}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=No(`input`),A=S(`input`,n),j=(0,x.useRef)(null),M=Up(A),[N,P]=UN(A,g);WN(A,M);let{compactSize:F,compactItemClassnames:I}=Z_(A,C),L=J_(e=>a??F??e),R=x.useContext(ph),z=o??R,B={...e,size:L,disabled:z},V=vp(D),H=vp(m),[U,W]=bp([O,v],[k,V,h,H],{props:B}),{status:ee,hasFeedback:G,feedbackIcon:K}=(0,x.useContext)(Hx),q=VT(ee,i),J=dR(e)||!!G;(0,x.useRef)(J);let te=uR(j,!0),Y=e=>{te(),s?.(e)},ne=e=>{te(),c?.(e)},X=e=>{te(),_?.(e)},re=(G||l)&&x.createElement(x.Fragment,null,l,G&&K),ie=mg({allowClear:u,contextAllowClear:w,componentName:`Input`}),[ae,oe]=ZT(`input`,y,r);return x.createElement(lR,{ref:Ti(t,j),prefixCls:A,autoComplete:T,...b,disabled:z,onBlur:Y,onFocus:ne,style:W.root,styles:W,suffix:re,allowClear:ie,className:Q(p,g,P,M,I,E,U.root),onChange:X,addonBefore:f&&x.createElement(Gx,{form:!0,space:!0},f),addonAfter:d&&x.createElement(Gx,{form:!0,space:!0},d),classNames:{...U,input:Q({[`${A}-sm`]:L===`small`,[`${A}-lg`]:L===`large`,[`${A}-rtl`]:C===`rtl`},U.input,N),variant:Q({[`${A}-${ae}`]:oe},BT(A,q)),affixWrapper:Q({[`${A}-affix-wrapper-sm`]:L===`small`,[`${A}-affix-wrapper-lg`]:L===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:Q({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:Q({[`${A}-group-wrapper-sm`]:L===`small`,[`${A}-group-wrapper-lg`]:L===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${ae}`]:oe},BT(`${A}-group-wrapper`,q,G),N)}})}),pR=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`}}))());function mR(){return mR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mR.apply(this,arguments)}var hR=x.forwardRef((e,t)=>x.createElement(qd,mR({},e,{ref:t,icon:pR.default}))),gR=(e,t,n,r,i,a,o)=>{let{classNames:s,style:c,styles:l}=No(e),u=vp(o===null?void 0:o??c),[d,f]=bp([s,t],[l,u,n],{props:a},{popup:{_default:`root`}});return x.useMemo(()=>[{...d,popup:{...d.popup,root:Q(d.popup?.root,r)}},{...f,popup:{...f.popup,root:{...f.popup?.root,...i}}}],[d,f,r,i])},_R=(e,t,n)=>tp(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,vR=(e,t,n)=>tp(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,yR=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=SE({...e,prefixCls:t,componentName:`DatePicker`});return[x.useMemo(()=>n!==!1&&{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[bR,xR]=[`week`,`WeekPicker`],[SR,CR]=[`month`,`MonthPicker`],[wR,TR]=[`year`,`YearPicker`],[ER,DR]=[`quarter`,`QuarterPicker`],[OR,kR]=[`time`,`TimePicker`],AR=e=>x.createElement(Fy,{size:`small`,type:`primary`,...e});function jR(e){return(0,x.useMemo)(()=>({button:AR,...e}),[e])}var MR=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`}}))());function NR(){return NR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NR.apply(this,arguments)}var PR=x.forwardRef((e,t)=>x.createElement(qd,NR({},e,{ref:t,icon:MR.default}))),FR=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`}}))());function IR(){return IR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IR.apply(this,arguments)}var LR=x.forwardRef((e,t)=>x.createElement(qd,IR({},e,{ref:t,icon:FR.default}))),RR=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?x.createElement(x.Fragment,null,e===OR?x.createElement(LR,{"aria-hidden":`true`}):x.createElement(PR,{"aria-hidden":`true`}),t&&n):r,zR=e=>(0,x.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:m,status:h,variant:g,picker:_,dropdownClassName:v,popupClassName:y,popupStyle:b,rootClassName:S,suffixIcon:C,separator:w,allowClear:T,clearIcon:E,...D}=t,O=_===OR?`timePicker`:`datePicker`,{suffixIcon:k,clearIcon:A,allowClear:j}=No(O),{getPrefixCls:M,direction:N,getPopupContainer:P,rangePicker:F}=(0,x.useContext)(Ao),I=x.useRef(null),L=M(`picker`,r),{compactSize:R,compactItemClassnames:z}=Z_(L,N),B=M(),V=w??F?.separator,H=tp(V),[U,W]=ZT(`rangePicker`,g,p),ee=Up(L),[G,K]=aP(L,ee),q=Q(G,K,ee,S),J=mg({componentName:`RangePicker`,allowClear:T,clearIcon:E,contextAllowClear:j,contextClearIcon:A,defaultAllowClear:!0}),te=jR(a),Y=J_(e=>d??R??e),ne=x.useContext(ph),X=f??ne,re={...t,size:Y,disabled:X,status:h,variant:g},[ie,ae]=gR(O,c,l,y||v,b,re,F?.style??null),{hasFeedback:oe,status:se,feedbackIcon:ce}=(0,x.useContext)(Hx),le=RR({picker:_,hasFeedback:oe,feedbackIcon:ce,suffixIcon:C===void 0?k:C});(0,x.useImperativeHandle)(n,()=>I.current);let[ue]=im(`Calendar`,Jp),de=Ya(ue,t.locale||{}),[fe]=Rg(`DatePicker`,ae?.popup?.root?.zIndex);return x.createElement(Gx,{space:!0},x.createElement(PM,{separator:x.createElement(`span`,{"aria-hidden":!H||void 0,className:`${L}-separator`},H?V:x.createElement(hR,null)),disabled:X,ref:I,placement:u,placeholder:vR(de,_,m),suffixIcon:le,prevIcon:x.createElement(`span`,{className:`${L}-prev-icon`}),nextIcon:x.createElement(`span`,{className:`${L}-next-icon`}),superPrevIcon:x.createElement(`span`,{className:`${L}-super-prev-icon`}),superNextIcon:x.createElement(`span`,{className:`${L}-super-next-icon`}),transitionName:`${B}-slide-up`,picker:_,...D,locale:de.lang,getPopupContainer:i||P,generateConfig:e,components:te,direction:N,prefixCls:L,rootClassName:q,className:Q({[`${L}-large`]:Y===`large`,[`${L}-small`]:Y===`small`,[`${L}-${U}`]:W},BT(L,VT(se,h),oe),z,o,F?.className),style:s,classNames:ie,styles:{...ae,popup:{...ae.popup,root:{...ae.popup.root,zIndex:fe}}},allowClear:J}))}),BR=e=>{let t=(t,n=`DatePicker`)=>{let r=n===kR?`timePicker`:`datePicker`;return(0,x.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:m,disabled:h,status:g,variant:_,onCalendarChange:v,classNames:y,styles:b,dropdownClassName:S,popupClassName:C,popupStyle:w,rootClassName:T,suffixIcon:E,allowClear:D,clearIcon:O,...k}=i,{suffixIcon:A,clearIcon:j,allowClear:M}=No(n===kR?`timePicker`:`datePicker`),{getPrefixCls:N,direction:P,getPopupContainer:F,[r]:I}=(0,x.useContext)(Ao),L=N(`picker`,o),{compactSize:R,compactItemClassnames:z}=Z_(L,P),B=J_(e=>d??R??e),V=x.useContext(ph),H=h??V,U={...i,size:B,disabled:H,status:g,variant:_},[W,ee]=gR(r,y,b,C||S,w,U,I?.style),G=x.useRef(null),[K,q]=ZT(`datePicker`,_,f),J=Up(L),[te,Y]=aP(L,J),ne=Q(te,Y,J,T);(0,x.useImperativeHandle)(a,()=>G.current);let X={showToday:!0},re=t||i.picker,ie=N(),{onSelect:ae,multiple:oe}=k,se=ae&&t===`time`&&!oe,ce=(e,t,n)=>{v?.(e,t,n),se&&ae(e)},[,le]=yR(i,L),ue=mg({componentName:n,allowClear:D,clearIcon:O,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),de=jR(c),{hasFeedback:fe,status:pe,feedbackIcon:me}=(0,x.useContext)(Hx),he=RR({picker:re,hasFeedback:fe,feedbackIcon:me,suffixIcon:E===void 0?A:E}),[ge]=im(`DatePicker`,Jp),_e=Ya(ge,i.locale||{}),[ve]=Rg(`DatePicker`,ee?.popup?.root?.zIndex);return x.createElement(Gx,{space:!0},x.createElement(VM,{ref:G,placeholder:_R(_e,re,m),suffixIcon:he,placement:p,prevIcon:x.createElement(`span`,{className:`${L}-prev-icon`}),nextIcon:x.createElement(`span`,{className:`${L}-next-icon`}),superPrevIcon:x.createElement(`span`,{className:`${L}-super-prev-icon`}),superNextIcon:x.createElement(`span`,{className:`${L}-super-next-icon`}),transitionName:`${ie}-slide-up`,picker:t,onCalendarChange:ce,...X,...k,locale:_e.lang,getPopupContainer:s||F,generateConfig:e,components:de,direction:P,disabled:H,prefixCls:L,rootClassName:ne,className:Q({[`${L}-large`]:B===`large`,[`${L}-small`]:B===`small`,[`${L}-${K}`]:q},BT(L,VT(pe,g),fe),z,I?.className,u),style:l,classNames:W,styles:{...ee,popup:{...ee.popup,root:{...ee.popup.root,zIndex:ve}}},allowClear:ue,removeIcon:le}))})},n=t(),r=t(bR,xR),i=t(SR,CR),a=t(wR,TR),o=t(ER,DR);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(OR,kR),QuarterPicker:o}},VR=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=BR(e),s=zR(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},HR=VR(aA);HR._InternalPanelDoNotUseOrYouWillBeFired=FC(HR,`popupAlign`,void 0,`picker`),HR._InternalRangePanelDoNotUseOrYouWillBeFired=FC(HR.RangePicker,`popupAlign`,void 0,`picker`),HR.generatePicker=VR;var UR={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},WR=x.createContext(null),GR=e=>Ba(e).map(e=>({...e?.props,key:e.key}));function KR(e,t,n){let r=x.useMemo(()=>t||GR(n),[t,n]);return x.useMemo(()=>r.map(({span:t,...n})=>t===`filled`?{...n,filled:!0}:{...n,span:rp(t)?t:RE(e,t)}),[r,e])}function qR(e,t){let n=[],r=[],i=!1,a=0;return e.filter(e=>e).forEach(e=>{let{filled:o,...s}=e;if(o){r.push(s),n.push(r),r=[],a=0;return}let c=t-a;a+=e.span||1,a>=t?(a>t?(i=!0,r.push({...s,span:c})):r.push(s),n.push(r),r=[],a=0):r.push(s)}),r.length>0&&n.push(r),n=n.map(e=>{let n=e.reduce((e,t)=>e+(t.span||1),0);if(n<t){let r=e[e.length-1];return r.span=t-(n-(r.span||1)),e}return e}),[n,i]}var JR=(e,t)=>{let[n,r]=(0,x.useMemo)(()=>qR(t,e),[t,e]);return n},YR=e=>e.children,XR=e=>{let{itemPrefixCls:t,component:n,span:r,className:i,style:a,labelStyle:o,contentStyle:s,bordered:c,label:l,content:u,colon:d,type:f,styles:p,classNames:m}=e,h=n,{classNames:g,styles:_}=x.useContext(WR),[v,y]=bp([g,m],[_,p],{props:e}),b={...o,...y.label},S={...s,...y.content};if(c){let e;f===`label`&&(e=b),f===`content`&&(e=S);let n=e?{...a,...e}:a;return x.createElement(h,{colSpan:r,style:n,className:Q(i,{[`${t}-item-${f}`]:f===`label`||f===`content`,[v.label]:v.label&&f===`label`,[v.content]:v.content&&f===`content`})},np(l)&&x.createElement(`span`,null,l),np(u)&&x.createElement(`span`,null,u))}return x.createElement(h,{className:Q(`${t}-item`,i),style:a,colSpan:r},x.createElement(`div`,{className:`${t}-item-container`},np(l)&&x.createElement(`span`,{style:b,className:Q(`${t}-item-label`,v.label,{[`${t}-item-no-colon`]:!d})},l),np(u)&&x.createElement(`span`,{style:S,className:Q(`${t}-item-content`,v.content)},u)))};function ZR(e,{colon:t,prefixCls:n,bordered:r},{component:i,type:a,showLabel:o,showContent:s,labelStyle:c,contentStyle:l,styles:u}){return e.map(({label:e,children:d,prefixCls:f=n,className:p,style:m,labelStyle:h,contentStyle:g,span:_=1,key:v,styles:y,classNames:b},S)=>{if(typeof i==`string`)return x.createElement(XR,{key:`${a}-${v||S}`,className:p,style:m,classNames:b,styles:{label:{...c,...u?.label,...h,...y?.label},content:{...l,...u?.content,...g,...y?.content}},span:_,colon:t,component:i,itemPrefixCls:f,bordered:r,label:o?e:null,content:s?d:null,type:a});let C={label:{...c,...u?.label,...h,...y?.label},content:{...l,...u?.content,...g,...y?.content}};return[x.createElement(XR,{key:`label-${v||S}`,className:p,style:m,classNames:b,styles:C,span:1,colon:t,component:i[0],itemPrefixCls:f,bordered:r,label:e,type:`label`}),x.createElement(XR,{key:`content-${v||S}`,className:p,style:m,classNames:b,styles:C,span:_*2-1,component:i[1],itemPrefixCls:f,bordered:r,content:d,type:`content`})]})}var QR=e=>{let t=x.useContext(WR),{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e;return r?x.createElement(x.Fragment,null,x.createElement(`tr`,{key:`label-${a}`,className:`${n}-row`},ZR(i,e,{component:`th`,type:`label`,showLabel:!0,...t})),x.createElement(`tr`,{key:`content-${a}`,className:`${n}-row`},ZR(i,e,{component:`td`,type:`content`,showContent:!0,...t}))):x.createElement(`tr`,{key:a,className:`${n}-row`},ZR(i,e,{component:o?[`th`,`td`]:`td`,type:`item`,showLabel:!0,showContent:!0,...t}))},$R=e=>{let{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:`auto`},[`${t}-row`]:{borderBottom:`${$(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:`${$(e.padding)} ${$(e.paddingLG)}`,borderInlineEnd:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:`none`}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:`none`}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${$(e.paddingSM)} ${$(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${$(e.paddingXS)} ${$(e.padding)}`}}}}}},ez=e=>{let{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:{...nd(e),...$R(e),"&-rtl":{direction:`rtl`},[`${t}-header`]:{display:`flex`,alignItems:`center`,marginBottom:s},[`${t}-title`]:{...td,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:{minWidth:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> 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:`${$(o)} ${$(a)}`},[`&${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`}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},tz=fd(`Descriptions`,e=>ez(wl(e,{})),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})),nz=x.forwardRef((e,t)=>{let{prefixCls:n,title:r,extra:i,column:a,colon:o=!0,bordered:s,layout:c,children:l,className:u,rootClassName:d,style:f,size:p,labelStyle:m,contentStyle:h,styles:g,items:_,classNames:v,...y}=e,{getPrefixCls:b,direction:S,className:C,style:w,classNames:T,styles:E}=No(`descriptions`),D=b(`descriptions`,n),O=BE(),k=x.useMemo(()=>rp(a)?a:RE(O,a)??RE(O,UR)??3,[O,a]),A=KR(O,_,l),j=J_(p),M=JR(k,A),[N,P]=tz(D),F={...e,column:k,items:A,size:j},I=vp(w),L=vp(f),[R,z]=bp([T,v],[E,I,g,L],{props:F}),B=x.useMemo(()=>({labelStyle:m,contentStyle:h,styles:{label:z.label,content:z.content},classNames:{label:R.label,content:R.content}}),[m,h,z.label,z.content,R.label,R.content]),V=x.useRef(null);return x.useImperativeHandle(t,()=>({nativeElement:V.current})),x.createElement(WR.Provider,{value:B},x.createElement(`div`,{ref:V,className:Q(D,C,R.root,{[`${D}-medium`]:j===`medium`||j===`middle`,[`${D}-small`]:j===`small`,[`${D}-bordered`]:!!s,[`${D}-rtl`]:S===`rtl`},u,d,N,P),style:z.root,...y},(r||i)&&x.createElement(`div`,{className:Q(`${D}-header`,R.header),style:z.header},r&&x.createElement(`div`,{className:Q(`${D}-title`,R.title),style:z.title},r),i&&x.createElement(`div`,{className:Q(`${D}-extra`,R.extra),style:z.extra},i)),x.createElement(`div`,{className:`${D}-view`},x.createElement(`table`,null,x.createElement(`tbody`,null,M.map((e,t)=>x.createElement(QR,{key:t,index:t,colon:o,prefixCls:D,vertical:c===`vertical`,bordered:s,row:e})))))))});nz.Item=YR;var rz=x.createContext(null),iz=x.createContext({});function az(){return az=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},az.apply(this,arguments)}var oz=e=>{let{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:a}=x.useContext(iz),o=Ei(a,r);return x.createElement(`div`,az({className:Q(`${t}-section`,n),role:`dialog`,ref:o},Ra(e,{aria:!0}),{"aria-modal":`true`},i))};function sz(e){let{prefixCls:t,direction:n,className:r,style:i,maxSize:a,containerRef:o,currentSize:s,onResize:c,onResizeEnd:l,onResizeStart:u}=e,[d,f]=x.useState(!1),[p,m]=x.useState(0),[h,g]=x.useState(0),_=n===`left`||n===`right`,v=Yr(e=>{e.preventDefault(),e.stopPropagation(),f(!0),m(_?e.clientX:e.clientY);let t;if(typeof s==`number`)t=s;else if(o?.current){let e=o.current.getBoundingClientRect();t=_?e.width:e.height}g(t),u?.(t)}),y=Yr(e=>{if(!d)return;let t=(_?e.clientX:e.clientY)-p;(n===`right`||n===`bottom`)&&(t=-t);let r=h+t;r<0&&(r=0),a&&r>a&&(r=a),c?.(r)}),b=x.useCallback(()=>{if(d&&(f(!1),o?.current)){let e=o.current.getBoundingClientRect(),t=_?e.width:e.height;l?.(t)}},[d,o,l,_]);return x.useEffect(()=>{if(d)return document.addEventListener(`mousemove`,y),document.addEventListener(`mouseup`,b),()=>{document.removeEventListener(`mousemove`,y),document.removeEventListener(`mouseup`,b)}},[d,y,b]),{dragElementProps:{className:Q(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:d,[`${t}-dragger-horizontal`]:_,[`${t}-dragger-vertical`]:!_},r),style:i,onMouseDown:v},isDragging:d}}function cz(e){if(typeof e==`string`){let t=Number(e.replace(/px$/i,``));if(parseFloat(e)===t&&Da(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function lz(e,t,n,r,i){let[a]=ca(t&&(r??i!==!1),e);return x.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t]),a}function uz(){return uz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uz.apply(this,arguments)}var dz=x.forwardRef((e,t)=>{let{prefixCls:n,open:r,placement:i,inline:a,push:o,forceRender:s,autoFocus:c,focusTrap:l,classNames:u,rootClassName:d,rootStyle:f,zIndex:p,className:m,id:h,style:g,motion:_,width:v,height:y,size:b,maxSize:S,children:C,mask:w,maskClosable:T,maskMotion:E,maskClassName:D,maskStyle:O,afterOpenChange:k,onClose:A,onMouseEnter:j,onMouseOver:M,onMouseLeave:N,onClick:P,onKeyDown:F,onKeyUp:I,styles:L,drawerRender:R,resizable:z,defaultSize:B}=e,V=x.useRef(null);x.useImperativeHandle(t,()=>V.current);let H=lz(()=>V.current,r,c,l,w),[U,W]=x.useState(!1),ee=x.useContext(rz),G;G=typeof o==`boolean`?o?{}:{distance:0}:o||{};let K=G?.distance??ee?.pushDistance??180,q=x.useMemo(()=>({pushDistance:K,push:()=>{W(!0)},pull:()=>{W(!1)}}),[K]);x.useEffect(()=>{r?ee?.push?.():ee?.pull?.()},[r]),x.useEffect(()=>()=>{ee?.pull?.()},[]);let J=x.createElement(ep,uz({key:`mask`},E,{visible:w&&r}),({className:e,style:t},i)=>x.createElement(`div`,{className:Q(`${n}-mask`,e,u?.mask,D),style:{...t,...O,...L?.mask},onClick:T&&r?A:void 0,ref:i})),te=typeof _==`function`?_(i):_,[Y,ne]=x.useState(),X=i===`left`||i===`right`,re=x.useMemo(()=>cz(b??(X?v:y)??Y??B??(X?378:void 0)),[b,v,y,B,X,Y]),ie=x.useMemo(()=>{let e={};if(U&&K)switch(i){case`top`:e.transform=`translateY(${K}px)`;break;case`bottom`:e.transform=`translateY(${-K}px)`;break;case`left`:e.transform=`translateX(${K}px)`;break;default:e.transform=`translateX(${-K}px)`}return X?e.width=cz(re):e.height=cz(re),e},[U,K,i,X,re]),ae=x.useRef(null),oe=!!z,se=typeof z==`object`&&z||{},ce=Yr(e=>{ne(e),se.onResize?.(e)}),{dragElementProps:le,isDragging:ue}=sz({prefixCls:`${n}-resizable`,direction:i,className:u?.dragger,style:L?.dragger,maxSize:S,containerRef:ae,currentSize:re,onResize:ce,onResizeStart:se.onResizeStart,onResizeEnd:se.onResizeEnd}),de={onMouseEnter:j,onMouseOver:M,onMouseLeave:N,onClick:P,onKeyDown:F,onKeyUp:I,onFocus:e=>{H(e.target)}},fe=x.createElement(ep,uz({key:`panel`},te,{visible:r,forceRender:s,onVisibleChanged:k,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:t,style:r},i)=>{let a=x.createElement(oz,uz({id:h,containerRef:i,prefixCls:n,className:Q(m,u?.section),style:{...g,...L?.section}},Ra(e,{aria:!0}),de),C);return x.createElement(`div`,uz({ref:ae,className:Q(`${n}-content-wrapper`,ue&&`${n}-content-wrapper-dragging`,u?.wrapper,!ue&&t),style:{...r,...ie,...L?.wrapper}},Ra(e,{data:!0})),oe&&x.createElement(`div`,le),R?R(a):a)}),pe={...f};return p&&(pe.zIndex=p),x.createElement(rz.Provider,{value:q},x.createElement(`div`,{className:Q(n,`${n}-${i}`,d,{[`${n}-open`]:r,[`${n}-inline`]:a}),style:pe,tabIndex:-1,ref:V},J,fe))}),fz=e=>{let{open:t=!1,prefixCls:n=`rc-drawer`,placement:r=`right`,autoFocus:i=!0,keyboard:a=!0,width:o,height:s,size:c,maxSize:l,mask:u=!0,maskClosable:d=!0,getContainer:f,forceRender:p,afterOpenChange:m,destroyOnHidden:h,onMouseEnter:g,onMouseOver:_,onMouseLeave:v,onClick:y,onKeyDown:b,onKeyUp:S,onClose:C,resizable:w,defaultSize:T,focusTriggerAfterClose:E,panelRef:D}=e,[O,k]=x.useState(!1),[A,j]=x.useState(!1);Qr(()=>{j(!0)},[]);let M=A?t:!1,N=x.useRef(null),P=x.useRef(null);Qr(()=>{M&&(P.current=document.activeElement)},[M]);let F=e=>{k(e),m?.(e),!e&&E!==!1&&P.current&&!N.current?.contains(P.current)&&P.current?.focus({preventScroll:!0})},I=x.useMemo(()=>({panel:D}),[D]);if(!p&&!O&&!M&&h)return null;let L={onMouseEnter:g,onMouseOver:_,onMouseLeave:v,onClick:y,onKeyDown:b,onKeyUp:S},R={...e,open:M,prefixCls:n,placement:r,autoFocus:i,keyboard:a,width:o,height:s,size:c,maxSize:l,defaultSize:T,mask:u,maskClosable:d,inline:f===!1,afterOpenChange:F,ref:N,resizable:w,...L};return x.createElement(iz.Provider,{value:I},x.createElement(Tm,{open:M||p||O,autoDestroy:!1,getContainer:f,autoLock:u&&(M||O),onEsc:({top:e,event:t})=>{e&&a&&(t.stopPropagation(),C?.(t))}},x.createElement(dz,R)))},pz=e=>{let{prefixCls:t,ariaId:n,title:r,footer:i,extra:a,closable:o,loading:s,onClose:c,headerStyle:l,bodyStyle:u,footerStyle:d,children:f,classNames:p,styles:m}=e,h=No(`drawer`),{classNames:g,styles:_,closable:v}=h,[y,b]=bp([g,p],[_,m],{props:{...e,closable:o??v}}),S=x.useMemo(()=>{let e=o??v;if(e!==!1)return ap(e)&&e?.placement===`end`?`end`:`start`},[o,v]),C=x.useCallback(e=>x.createElement(`button`,{type:`button`,onClick:c,className:Q(`${t}-close`,{[`${t}-close-${S}`]:S===`end`},y.close),style:b.close},e),[c,t,S,y.close,b.close]),[w,T,E]=xg(hg(e),hg(h),{closable:!0,closeIconRender:C}),D=ch(T,{disabled:E}),O=()=>!r&&!w?null:x.createElement(`div`,{style:{...b.header,...l},className:Q(`${t}-header`,y.header,{[`${t}-header-close-only`]:w&&!r&&!a})},x.createElement(`div`,{className:`${t}-header-title`},S===`start`&&D,r&&x.createElement(`div`,{className:Q(`${t}-title`,y.title),style:b.title,id:n},r)),a&&x.createElement(`div`,{className:Q(`${t}-extra`,y.extra),style:b.extra},a),S===`end`&&D),k=()=>i?x.createElement(`div`,{className:Q(`${t}-footer`,y.footer),style:{...b.footer,...d}},i):null;return x.createElement(x.Fragment,null,O(),x.createElement(`div`,{className:Q(`${t}-body`,y.body),style:{...b.body,...u}},s?x.createElement(CS,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):f),k())},mz=e=>{let t=`100%`;return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},hz=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),gz=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:`none`},"&-active":{transition:`all ${t}`}},...hz({opacity:e},{opacity:1})}),_z=(e,t)=>[gz(.7,t),hz({transform:mz(e)},{transform:`none`})],vz=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:gz(0,n),[`${t}-panel-motion`]:[`left`,`right`,`top`,`bottom`].reduce((e,t)=>({...e,[`&-${t}`]:_z(t,n)}),{})}}},yz=e=>{let{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:c,padding:l,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:h,marginXS:g,colorIcon:_,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:b,colorText:x,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:w,draggerSize:T,calc:E}=e,D=`${n}-content-wrapper`,O=`${n}-resizable-dragger`;return{[n]:{position:`fixed`,inset:0,zIndex:r,pointerEvents:`none`,color:x,"&-pure":{position:`relative`,background:a,display:`flex`,flexDirection:`column`,pointerEvents:`auto`,[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:`absolute`},[`${n}-mask`]:{position:`absolute`,inset:0,zIndex:r,background:i,pointerEvents:`auto`,[`&${n}-mask-blur`]:{backdropFilter:`blur(4px)`}},[D]:{position:`absolute`,zIndex:r,maxWidth:`100vw`,transition:`all ${o}`,"&-hidden":{display:`none`}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${D}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,overflow:`auto`,background:a,pointerEvents:`auto`},[`${n}-header`]:{display:`flex`,flex:0,alignItems:`center`,padding:`${$(l)} ${$(u)}`,fontSize:d,lineHeight:f,borderBottom:`${$(p)} ${m} ${h}`,"&-title":{display:`flex`,flex:1,alignItems:`center`,minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:`none`},[`${n}-close`]:{display:`inline-flex`,width:E(d).add(c).equal(),height:E(d).add(c).equal(),borderRadius:t,justifyContent:`center`,alignItems:`center`,color:_,fontWeight:S,fontSize:d,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,textDecoration:`none`,background:`transparent`,border:0,cursor:`pointer`,transition:`all ${s}`,textRendering:`auto`,[`&${n}-close-end`]:{marginInlineStart:g},[`&:not(${n}-close-end)`]:{marginInlineEnd:g},"&:disabled":{pointerEvents:`none`},"&:hover":{color:v,backgroundColor:y,textDecoration:`none`},"&:active":{backgroundColor:b},...sd(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:`auto`,[`${n}-body-skeleton`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`}},[`${n}-footer`]:{flexShrink:0,padding:`${$(C)} ${$(w)}`,borderTop:`${$(p)} ${m} ${h}`},[O]:{position:`absolute`,zIndex:1,backgroundColor:`transparent`,userSelect:`none`,pointerEvents:`auto`,"&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${O}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:T,cursor:`col-resize`},[`${O}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:T,cursor:`col-resize`},[`${O}-top`]:{insetInline:0,bottom:0,height:T,cursor:`row-resize`},[`${O}-bottom`]:{insetInline:0,top:0,height:T,cursor:`row-resize`},[`${D}-dragging`]:{userSelect:`none`,transition:`none`,willChange:`width, height`,[`${n}-content`]:{pointerEvents:`none`},[`${n}-section`]:{pointerEvents:`none`}},"&-rtl":{direction:`rtl`}}}},bz=fd(`Drawer`,e=>{let t=wl(e,{});return[yz(t),vz(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4})),xz={distance:180},Sz=378,Cz={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},wz=e=>{let{rootClassName:t,size:n,defaultSize:r=Sz,height:i,width:a,mask:o,push:s=xz,open:c,afterOpenChange:l,onClose:u,prefixCls:d,getContainer:f,panelRef:p=null,style:m,className:h,resizable:g,"aria-labelledby":_,focusable:v,maskClosable:y,maskStyle:b,drawerStyle:S,contentWrapperStyle:C,destroyOnClose:w,destroyOnHidden:T,...E}=e,{placement:D}=E,O=pi(),k=E.title?O:void 0,{getPopupContainer:A,getPrefixCls:j,direction:M,className:N,style:P,classNames:F,styles:I,mask:L,focusable:R}=No(`drawer`),z=j(`drawer`,d),[B,V]=bz(z),H=f===void 0&&A?()=>A(document.body):f,U=x.useMemo(()=>rp(n)?n:n===`large`?736:n==="default"?Sz:typeof n==`string`?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!D||D===`left`||D===`right`?a:i,[n,D,a,i]),W={motionName:L_(z,`mask-motion`),...Cz},ee=e=>({motionName:L_(z,`panel-motion-${e}`),...Cz}),G=Ti(p,ES()),[K,q]=Rg(`Drawer`,E.zIndex),[J,te,Y]=wg(o,L,z,y),ne=qx({...R,...v},H!==!1&&J),{classNames:X,styles:re,rootStyle:ie}=E,ae={...e,zIndex:K,panelRef:p,mask:J,maskClosable:Y,defaultSize:r,push:s,focusable:ne},oe=vp(P,`section`),se=vp(S,`section`),ce=vp(m,`section`),[le,ue]=bp([F,X],[I,oe,re,se,ce],{props:ae}),de=Q({"no-mask":!J,[`${z}-rtl`]:M===`rtl`},t,B,V,le.root);return x.createElement(Gx,{form:!0,space:!0},x.createElement(Mg.Provider,{value:q},x.createElement(fz,{prefixCls:z,onClose:u,maskMotion:W,motion:ee,...E,classNames:{mask:Q(le.mask,te.mask),section:le.section,wrapper:le.wrapper,dragger:le.dragger},styles:{mask:{...ue.mask,...b},section:ue.section,wrapper:{...ue.wrapper,...C},dragger:ue.dragger},open:c,mask:J,maskClosable:Y,push:s,size:U,defaultSize:r,rootStyle:{...ue.root,...ie},className:Q(N,h),rootClassName:de,getContainer:H,afterOpenChange:l,panelRef:G,zIndex:K,...g?{resizable:g}:{},"aria-labelledby":_??k,destroyOnHidden:T??w,focusTriggerAfterClose:ne.focusTriggerAfterClose,focusTrap:ne.trap},x.createElement(pz,{prefixCls:z,size:n,...E,ariaId:k,onClose:u}))))};wz._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:r,placement:i=`right`,...a}=e,{getPrefixCls:o}=x.useContext(Ao),s=o(`drawer`,t),[c,l]=bz(s),u=Q(s,`${s}-pure`,`${s}-${i}`,c,l,r);return x.createElement(`div`,{className:u,style:n},x.createElement(pz,{prefixCls:s,...a}))};var Tz=wz;function Ez(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function Dz(e){return e?rp(e):!1}var Oz=x.createContext({latestIndex:0}),kz=Oz.Provider,Az=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=x.useContext(Oz);return np(i)?x.createElement(x.Fragment,null,x.createElement(`div`,{className:t,style:o},i),r<l&&a&&x.createElement(`span`,{className:Q(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},jz=e=>{let{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`}}}},Mz=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Nz=fd(`Space`,e=>{let t=wl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[jz(t),Mz(t)]},()=>({}),{resetStyle:!1}),Pz=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=No(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:v,style:y,vertical:b,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=Ez(D),k=Ez(E),A=Dz(D),j=Dz(E),M=Ba(p,{keepEmpty:!0}),[N,P]=Dg(h,b,m),F=u===void 0&&!P?`center`:u,I=v??_,L=n(`space`,g),[R,z]=Nz(L),B={...e,size:l,orientation:N,align:F},V=vp(o),H=vp(y),[U,W]=bp([s,C],[c,V,w,H],{props:B}),ee=Q(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,U.root),G=Q(`${L}-item`,U.item),K=M.map((e,t)=>{let n=e?.key||`${G}-${t}`;return x.createElement(Az,{prefix:L,classNames:U,styles:W,className:G,key:n,index:t,separator:I,style:W.item},e)}),q=x.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>np(t)?n:e,0)}),[M]);if(M.length===0)return null;let J={};return S&&(J.flexWrap=`wrap`),!k&&j&&(J.columnGap=E),!O&&A&&(J.rowGap=D),x.createElement(`div`,{ref:t,className:ee,style:{...J,...W.root},...T},x.createElement(kz,{value:q},K))});Pz.Compact=ev,Pz.Addon=AL;var Fz=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=x.useContext(Ao),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:v,onOpenChange:y,placement:b,getPopupContainer:S,href:C,icon:w=x.createElement(mk,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:y,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Z_(I,r),V=Q(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=v),R.placement=`placement`in e?b:r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([x.createElement(Vk,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),x.createElement(Vk,{type:a,danger:o,icon:w})]);return x.createElement(Pz.Compact,{className:V,size:z,block:!0,...F},H,x.createElement(zk,{...R},U))};Fz.__ANT_BUTTON=!0;var Iz=zk;Iz.Button=Fz;var Lz=[`wrap`,`nowrap`,`wrap-reverse`],Rz=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],zz=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],Bz=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&Lz.includes(n)}},Vz=(e,t)=>{let n={};return zz.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Hz=(e,t)=>{let n={};return Rz.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},Uz=(e,t)=>Q({...Bz(e,t),...Vz(e,t),...Hz(e,t)}),Wz=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},Gz=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Kz=e=>{let{componentCls:t}=e,n={};return Lz.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},qz=e=>{let{componentCls:t}=e,n={};return zz.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},Jz=e=>{let{componentCls:t}=e,n={};return Rz.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},Yz=fd(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=wl(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[Wz(i),Gz(i),Kz(i),qz(i),Jz(i)]},()=>({}),{resetStyle:!1}),Xz=x.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:u=`div`,children:d,...f}=e,{flex:p,direction:m,getPrefixCls:h}=x.useContext(Ao),g=h(`flex`,n),[_,v]=Yz(g),[,y]=Dg(l,c??p?.vertical),b=Q(i,r,p?.className,g,_,v,Uz(g,{...e,vertical:y}),{[`${g}-rtl`]:m===`rtl`,[`${g}-gap-${s}`]:Ez(s),[`${g}-vertical`]:y}),S={...p?.style,...a};return tp(o)&&(S.flex=o),tp(s)&&!Ez(s)&&(S.gap=s),x.createElement(u,{ref:t,className:b,style:S,...Na(f,[`justify`,`wrap`,`align`])},d)}),Zz=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z`}}]},name:`file-text`,theme:`outlined`}}))());function Qz(){return Qz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qz.apply(this,arguments)}var $z=x.forwardRef((e,t)=>x.createElement(qd,Qz({},e,{ref:t,icon:Zz.default}))),eB=(e,t)=>np(e)?ap(e)&&!(0,x.isValidElement)(e)?{...t,...e}:{...t,title:e}:null;function tB(e){let[t,n]=ci(e);return x.useEffect(()=>{n(e,{ms:e.length?0:10})},[e]),t}var nB=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},rB=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${$(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),iB=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},aB=e=>{let{componentCls:t}=e;return{[t]:{...nd(e),...rB(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...iB(e,e.controlHeightSM)},"&-large":{...iB(e,e.controlHeightLG)}}}},oB=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=hd(i,`grid`);return{[t]:{...nd(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
|
|
286
|
+
&-hidden${i}-row`]:{display:`none`},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-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:Bv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},sB=e=>({padding:e.verticalLabelPadding,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),cB=e=>({...sB(e),margin:e.verticalLabelMargin}),lB=e=>{let[t]=hd(e.antCls,`form`);return{...sB(e),[t(`item-label-margin`)]:e.verticalLabelMargin}},uB=e=>{let{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`}},[`> ${n}-row > ${t}-col-24${n}-label,
|
|
287
|
+
> ${n}-row > ${t}-col-xl-24${n}-label`]:cB(e)}}},dB=e=>{let{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,
|
|
288
|
+
> ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},fB=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n}:not(${n}-vertical) > ${n}-row > ${n}-label`]:cB(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},pB=e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e,[a,o]=hd(r,`form`);return{[n]:{[a(`item-label-margin`)]:`initial`},[`${n}-label`]:{margin:o(`item-label-margin`)},[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:`100%`},[`> ${n}-row > ${n}-label,
|
|
289
|
+
> ${n}-row > ${r}-col-24${n}-label,
|
|
290
|
+
> ${n}-row > ${r}-col-xl-24${n}-label`]:lB(e)},[`@media (max-width: ${$(e.screenXSMax)})`]:[fB(e),{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-xs-24${n}-label`]:cB(e)}}}],[`@media (max-width: ${$(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-sm-24${n}-label`]:cB(e)}}},[`@media (max-width: ${$(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-md-24${n}-label`]:cB(e)}}},[`@media (max-width: ${$(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-lg-24${n}-label`]:cB(e)}}}}},mB=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??`auto`,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),hB=(e,t)=>wl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),gB=fd(`Form`,(e,{rootPrefixCls:t})=>{let n=hB(e,t);return[aB(n),oB(n),nB(n),uB(n),dB(n),pB(n),mv(n),Bv]},mB,{order:-1e3}),_B=[];function vB(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var yB=({help:e,helpStatus:t,errors:n=_B,warnings:r=_B,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=x.useContext(Vx),{classNames:c,styles:l}=x.useContext(Rx),u=`${s}-item-explain`,d=Up(s),[f,p]=gB(s,d),m=x.useMemo(()=>I_(s),[s]),h=tB(n),g=tB(r),_=tp(e),v=x.useMemo(()=>_?[vB(e,`help`,t)]:[].concat(Do(h.map((e,t)=>vB(e,`error`,`error`,t))),Do(g.map((e,t)=>vB(e,`warning`,`warning`,t)))),[e,t,_,h,g]),y=x.useMemo(()=>{let e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),b={};return a&&(b.id=`${a}_help`),x.createElement(ep,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return x.createElement(`div`,{...b,className:Q(u,t,c?.help,p,d,i,f),style:{...l?.help,...n}},x.createElement($f,{keys:y,...I_(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return x.createElement(`div`,{key:t,className:Q(i,c?.helpItem,{[`${u}-${r}`]:r}),style:{...l?.helpItem,...a}},n)}))})},bB=x.forwardRef((e,t)=>{let n=x.useContext(ph),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:m}=No(`form`),{prefixCls:h,className:g,rootClassName:_,size:v,disabled:y=n,form:b,colon:S,labelAlign:C,labelWrap:w,labelCol:T,wrapperCol:E,layout:D=`horizontal`,scrollToFirstError:O,requiredMark:k,onFinishFailed:A,name:j,style:M,feedbackIcons:N,variant:P,classNames:F,styles:I,tooltip:L,...R}=e,z=J_(v),B=x.useContext(Wp),V=x.useMemo(()=>k===void 0?a===void 0||a:k,[k,a]),H=S??o,U=C??p,W=w??m,ee={...f,...L},G=r(`form`,h),K=Up(G),[q,J]=gB(G,K),te={...e,size:z,disabled:y,layout:D,colon:H,requiredMark:V,labelAlign:U,labelWrap:W},Y=vp(l),ne=vp(M),[X,re]=bp([d,F],[u,Y,I,ne],{props:te}),ie=Q(G,`${G}-${D}`,{[`${G}-hide-required-mark`]:V===!1,[`${G}-rtl`]:i===`rtl`,[`${G}-large`]:z===`large`,[`${G}-small`]:z===`small`},J,K,q,c,g,_,X.root),[ae]=YM(b),{__INTERNAL__:oe}=ae;oe.name=j;let se=x.useMemo(()=>({name:j,labelAlign:U,labelCol:T,labelWrap:W,wrapperCol:E,layout:D,colon:H,requiredMark:V,itemRef:oe.itemRef,form:ae,feedbackIcons:N,tooltip:ee,classNames:X,styles:re}),[j,U,W,T,E,D,H,V,ae,N,X,re,ee]),ce=x.useRef(null);x.useImperativeHandle(t,()=>({...ae,nativeElement:ce.current?.nativeElement}));let le=(e,t)=>{if(e){let n={block:`nearest`};ap(e)&&(n={...n,...e}),ae.scrollToField(t,n)}},ue=e=>{if(A?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(O!==void 0){le(O,t);return}s!==void 0&&le(s,t)}};return x.createElement(Wx.Provider,{value:P},x.createElement(mh,{disabled:y},x.createElement(hh.Provider,{value:z},x.createElement(Bx,{validateMessages:B},x.createElement(Rx.Provider,{value:se},x.createElement(Ux,{status:!0},x.createElement(Lx,{id:j,...R,name:j,onFinishFailed:ue,form:ae,ref:ce,style:re?.root,className:ie})))))))}),xB=e=>{if(op(e))return e;let t=Ba(e);return t.length<=1?t[0]:t},SB=()=>{let{status:e,errors:t=[],warnings:n=[]}=x.useContext(Hx);return{status:e,errors:t,warnings:n}};SB.Context=Hx;function CB(e){let[t,n]=x.useState(e),r=x.useRef(null),i=x.useRef([]),a=x.useRef(!1);x.useEffect(()=>(a.current=!1,()=>{a.current=!0,si.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=si(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var wB=()=>{let{itemRef:e}=x.useContext(Rx),t=x.useRef({});return(n,r)=>{let i=r&&ap(r)&&Ai(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Ti(e(n),i)),t.current.ref}},TB=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},EB=md([`Form`,`item-item`],(e,{rootPrefixCls:t})=>TB(hB(e,t))),DB=24,OB=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,h=`${t}-item`,g=x.useContext(Rx),{classNames:_,styles:v}=g,y=x.useMemo(()=>{let e={...i||g.wrapperCol||{}};return m===null&&!r&&!i&&g.labelCol&&[void 0].concat(Do(FE)).forEach(t=>{let n=t?[t]:[],r=Ha(g.labelCol,n),i=ap(r)?r:{},a=Ha(e,n),o=ap(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<DB&&(e=Wa(e,[].concat(n,[`offset`]),i.span))}),e},[i,g.wrapperCol,g.labelCol,m,r]),b=Q(`${h}-control`,y.className),S=x.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=g;return n},[g]),C=x.useRef(null),[w,T]=x.useState(0);Qr(()=>{l&&C.current?T(C.current.clientHeight):T(0)},[l]);let E=x.createElement(`div`,{className:`${h}-control-input`},x.createElement(`div`,{className:Q(`${h}-control-input-content`,_?.content),style:v?.content},a)),D=x.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=f!==null||o.length||s.length?x.createElement(Vx.Provider,{value:D},x.createElement(yB,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:p})):null,k={};d&&(k.id=`${d}_extra`);let A=l?x.createElement(`div`,{...k,className:Q(`${h}-extra`,_?.extra),style:v?.extra,ref:C},l):null,j=O||A?x.createElement(`div`,{className:`${h}-additional`,style:f?{minHeight:f+w}:{}},O,A):null,M=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:E,errorList:O,extra:A}):x.createElement(x.Fragment,null,E,j);return x.createElement(Rx.Provider,{value:S},x.createElement(MI,{...y,className:b},M),x.createElement(EB,{prefixCls:t}))},kB=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function AB(){return AB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AB.apply(this,arguments)}var jB=x.forwardRef((e,t)=>x.createElement(qd,AB({},e,{ref:t,icon:kB.default}))),MB=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=im(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:m,classNames:h,styles:g,tooltip:_}=x.useContext(Rx);if(!t)return null;let v=r||f||{},y=i||d,b=`${e}-item-label`,S=Q(b,y===`left`&&`${b}-left`,v.className,{[`${b}-wrap`]:!!p}),C=t,w=a===!0||m!==!1&&a!==!1;w&&!l&&typeof t==`string`&&t.trim()&&(C=t.replace(/[:|:]\s*$/,``));let T=eB(c,_);if(T){let t=x.createElement(gD,{...T},x.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},T.icon||T.children||x.createElement(jB,null)));C=x.createElement(x.Fragment,null,C,t)}let E=s===`optional`,D=op(s),O=s===!1;D?C=s(C,{required:!!o}):E&&!o&&(C=x.createElement(x.Fragment,null,C,x.createElement(`span`,{className:`${e}-item-optional`},u?.optional||Zp.Form?.optional)));let k;O?k=`hidden`:(E||D)&&(k=`optional`);let A=Q(h?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!w});return x.createElement(MI,{...v,className:S},x.createElement(`label`,{htmlFor:n,className:A,style:g?.label,title:typeof t==`string`?t:void 0},C))},NB={success:Xd,warning:of,error:$d,validating:fg};function PB({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=x.useContext(Rx),d=KM(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h,name:g}=x.useContext(Hx),_=x.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?NB[d]:null;e=a!==!1&&o?x.createElement(`span`,{className:Q(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||x.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??m),i.feedbackIcon=r===void 0?h:i.feedbackIcon,i.name=c??g),i},[d,t,n,r,u,s,c,f,p,l,m,h,g]);return x.createElement(Hx.Provider,{value:_},e)}function FB(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g,layout:_,name:v,...y}=e,b=`${t}-item`,{requiredMark:S,layout:C}=x.useContext(Rx),w=_||C,T=w===`vertical`,E=x.useRef(null),D=tB(o),O=tB(s),k=tp(a),A=!!(k||D.length||O.length),j=!!E.current&&qi(E.current),[M,N]=x.useState(null);Qr(()=>{if(A&&E.current){let e=getComputedStyle(E.current);N(Number.parseInt(e.marginBottom,10))}},[A,j]);let P=e=>{!e&&!A&&N(null)},F=((e=!1)=>KM(e?D:l.errors,e?O:l.warnings,l,``,!!u,c))(),I=Q(b,n,r,{[`${b}-with-help`]:k||D.length||O.length,[`${b}-has-feedback`]:F&&u,[`${b}-has-success`]:F===`success`,[`${b}-has-warning`]:F===`warning`,[`${b}-has-error`]:F===`error`,[`${b}-is-validating`]:F===`validating`,[`${b}-hidden`]:d,[`${b}-${w}`]:w});return x.createElement(`div`,{className:I,style:i,ref:E},x.createElement(FI,{className:`${b}-row`,...Na(y,`_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`.split(`.`))},x.createElement(MB,{htmlFor:p,...e,requiredMark:S,required:m??h,prefixCls:t,vertical:T}),x.createElement(OB,{...e,...l,errors:D,warnings:O,prefixCls:t,status:F,help:a,marginBottom:M,onErrorVisibleChanged:P},x.createElement(zx.Provider,{value:g},x.createElement(PB,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:F,name:v},f)))),!!M&&x.createElement(`div`,{className:`${b}-margin-offset`,style:{marginBottom:-M}}))}var IB=`__SPLIT__`;function LB(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||op(r)||op(i)})}var RB=x.memo(e=>e.children,(e,t)=>LB(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function zB(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function BB(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:m,help:h,layout:g}=e,{getPrefixCls:_}=x.useContext(Ao),{name:v}=x.useContext(Rx),y=xB(c),b=op(y),S=x.useContext(zx),{validateTrigger:C}=x.useContext(ib),w=tp(p)?p:C,T=tp(t),E=_(`form`,a),D=Up(E),[O,k]=gB(E,D);ro(`Form.Item`);let A=x.useContext(ab),j=x.useRef(null),[M,N]=CB({}),[P,F]=ei(()=>zB()),I=e=>{let t=A?.getKey(e.name);if(F(e.destroy?zB():e,!0),n&&h!==!1&&S){let n=e.name;if(e.destroy)n=j.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(Do(r)),j.current=n}S(e,n)}},L=(e,t)=>{N(n=>{let r={...n},i=[].concat(Do(e.name.slice(0,-1)),Do(t)).join(IB);return e.destroy?delete r[i]:r[i]=e,r})},[R,z]=x.useMemo(()=>{let e=Do(P.errors),t=Do(P.warnings);return Object.values(M).forEach(n=>{e.push.apply(e,Do(n.errors||[])),t.push.apply(t,Do(n.warnings||[]))}),[e,t]},[M,P.errors,P.warnings]),B=wB();function V(i,a,o){return n&&!m?x.createElement(PB,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:R,warnings:z,noStyle:!0,name:t},i):x.createElement(FB,{key:`row`,...e,className:Q(r,k,D,O),prefixCls:E,fieldId:a,isRequired:o,errors:R,warnings:z,meta:P,onSubItemMetaChange:L,layout:g,name:t},i)}if(!T&&!b&&!i)return V(y);let H={};return typeof u==`string`?H.label=u:t&&(H.label=String(t)),d&&(H={...H,...d}),x.createElement(Cx,{...e,messageVariables:H,trigger:f,validateTrigger:w,onMetaChange:I},(n,r,a)=>{let c=WM(t).length&&r?r.name:[],u=GM(c,v),d=l===void 0?s?.some(e=>{if(ap(e)&&e.required&&!e.warningOnly)return!0;if(op(e)){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(y)&&T)m=y;else if(!(b&&(!(o||i)||T))&&!(i&&!b&&!T)){if(x.isValidElement(y)){let t={...y.props,...p};if(t.id||=u,h||R.length>0||z.length>0||e.extra){let n=[];(h||R.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}R.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),Di(y)&&(t.ref=B(c,y)),new Set([].concat(Do(WM(f)),Do(WM(w)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),y.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=x.createElement(RB,{control:p,update:y,childProps:n},ch(y,t))}else m=b&&(o||i)&&!T?y(a):y}return V(m,u,d)})}var VB=BB;VB.useStatus=SB;var HB=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=x.useContext(Ao),i=r(`form`,e),a=x.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return x.createElement(wx,{...n},(e,n,r)=>x.createElement(Vx.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function UB(){let{form:e}=x.useContext(Rx);return e}var WB=bB;WB.Item=VB,WB.List=HB,WB.ErrorList=yB,WB.useForm=YM,WB.useFormInstance=UB,WB.useWatch=Ix,WB.Provider=Bx;var GB=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function KB(){return KB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KB.apply(this,arguments)}var qB=x.forwardRef((e,t)=>x.createElement(qd,KB({},e,{ref:t,icon:GB.default}))),JB=e=>{let{getPrefixCls:t,direction:n}=(0,x.useContext)(Ao),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=WN(t(`input`)),c=Q(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,x.useContext)(Hx),u=(0,x.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return x.createElement(Hx.Provider,{value:u},x.createElement(Pz.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},YB=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},XB=fd([`Input`,`OTP`],e=>YB(wl(e,fN(e))),pN),ZB=`•`,QB=x.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,type:l,...u}=e,{getPrefixCls:d}=x.useContext(Ao),f=d(`otp`),p=typeof s==`string`?s:ZB,m=x.useRef(null);x.useImperativeHandle(t,()=>m.current);let h=e=>{i(o,e.target.value)},g=()=>{si(()=>{let e=m.current?.input;document.activeElement===e&&e&&e.select()})},_=e=>{c?.(e),g()},v=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),g()};return x.createElement(`span`,{className:`${f}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&x.createElement(`span`,{className:`${f}-mask-icon`,"aria-hidden":`true`},p),x.createElement(fR,{"aria-label":`OTP Input ${o+1}`,...u,type:l??(s?`password`:`text`),ref:m,value:r,onInput:h,onFocus:_,onKeyDown:v,onMouseDown:g,onMouseUp:g,className:Q(n,{[`${f}-mask-input`]:s})}))});function $B(e){return(e||``).split(``)}var eV=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=op(r)?r(t):r;return o?x.createElement(`span`,{className:Q(`${n}-separator`,i),style:a},o):null},tV=x.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:v,inputMode:y,classNames:b,styles:S,className:C,style:w,...T}=e,{classNames:E,styles:D,getPrefixCls:O,direction:k,style:A,className:j}=No(`otp`),M=O(`otp`,n),[N]=ZT(`otp`,u,void 0,`input`),P={...e,length:r,variant:N},F=vp(A),I=vp(w),[L,R]=bp([E,b],[D,F,S,I],{props:P}),z=Ra(T,{aria:!0,data:!0,attr:!0}),[B,V]=XB(M),H=J_(e=>i??e),U=x.useContext(Hx),W=VT(U.status,f),ee=x.useMemo(()=>({...U,status:W,hasFeedback:!1,feedbackIcon:null}),[U,W]),G=x.useRef(null),K=x.useRef({});x.useImperativeHandle(t,()=>({focus:()=>{K.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)K.current[e]?.blur()},nativeElement:G.current}));let q=e=>c?c(e):e,[J,te]=x.useState(()=>$B(q(a||``)));x.useEffect(()=>{o!==void 0&&te($B(o))},[o]);let Y=Yr(e=>{te(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>J[t]!==e)&&s(e.join(``))}),ne=Yr((e,t)=>{let n=Do(J);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat($B(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=$B(q(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),X=(e,t)=>{let n=ne(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&K.current[i]?.focus(),Y(n)},re=e=>{K.current[e]?.focus()},ie=(e,t)=>{for(let e=0;e<t;e+=1)if(!K.current[e]?.input?.value){K.current[e]?.focus();break}v?.(e)},ae={variant:N,disabled:d,status:W,mask:m,type:h,inputMode:y,autoComplete:g};return x.createElement(`div`,{...z,ref:G,className:Q(C,M,{[`${M}-sm`]:H===`small`,[`${M}-lg`]:H===`large`,[`${M}-rtl`]:k===`rtl`},V,B,j,L.root),style:R.root,role:`group`},x.createElement(Hx.Provider,{value:ee},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=J[t]||``;return x.createElement(x.Fragment,{key:n},x.createElement(QB,{ref:e=>{K.current[t]=e},index:t,size:H,htmlSize:1,className:Q(L.input,`${M}-input`),style:R.input,onChange:X,value:i,onActiveChange:re,autoFocus:t===0&&p,onFocus:e=>ie(e,t),...ae}),t<r-1&&x.createElement(eV,{separator:l,index:t,prefixCls:M,className:Q(L.separator),style:R.separator}))})))}),nV=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function rV(){return rV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rV.apply(this,arguments)}var iV=x.forwardRef((e,t)=>x.createElement(qd,rV({},e,{ref:t,icon:nV.default}))),aV=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function oV(){return oV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oV.apply(this,arguments)}var sV=x.forwardRef((e,t)=>x.createElement(qd,oV({},e,{ref:t,icon:aV.default}))),cV=e=>e?x.createElement(sV,null):x.createElement(iV,null),lV={click:`onClick`,hover:`onMouseOver`},uV=x.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a,prefixCls:o,inputPrefixCls:s,suffix:c,className:l,style:u,classNames:d,styles:f,variant:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:v,styles:y,iconRender:b}=No(`inputPassword`),[S]=ZT(`inputPassword`,p,e.bordered,`input`),[C]=im(`global`),w=x.useContext(ph),T=n??w,E={...e,disabled:T,variant:S},D=vp(_),O=vp(u),[k,A]=bp([v,d],[y,D,f,O],{props:E}),j=ap(i)&&i.visible!==void 0,[M,N]=(0,x.useState)(()=>j?i.visible:!1),P=(0,x.useRef)(null);x.useEffect(()=>{j&&N(i.visible)},[j,i]);let F=uR(P),I=()=>{if(T)return;M&&F();let e=!M;N(e),ap(i)&&i.onVisibleChange?.(e)},L=e=>{let t=lV[r]||``,n=(a||b||cV)(M),o=ap(i)?i.tabIndex:void 0;return x.createElement(`span`,{key:`passwordIcon`,role:`button`,tabIndex:T?-1:o??0,className:`${e}-icon`,"aria-disabled":T,"aria-pressed":M,"aria-label":M?C.hide:C.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),I())},[t]:I},n)},R=h(`input`,s),z=h(`input-password`,o),B=i&&L(z),V=Q(z,g,l,{[`${z}-${e.size}`]:!!e.size}),H={...m,type:M?`text`:`password`,prefixCls:R,suffix:x.createElement(x.Fragment,null,B,c),disabled:T,className:V,classNames:k,styles:A,variant:S};return x.createElement(fR,{ref:Ti(t,P),...H})}),dV=e=>{let{componentCls:t,antCls:n,calc:r,max:i}=e,a=`${t}-btn`,[o,s]=hd(n,`input-search`),c=e.inputFontSizeSM??e.fontSize,l=i(e.controlHeightSM,r(c).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[o(`btn-height`)]:$(e.controlHeight),width:`100%`,[a]:{height:s(`btn-height`),"&:focus-visible":{zIndex:5},[`&${n}-btn-icon-only`]:{width:s(`btn-height`)},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[o(`btn-height`)]:$(e.controlHeightLG)},[`&${t}-small`]:{[o(`btn-height`)]:$(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},fV=fd([`Input`,`Search`],e=>dV(wl(e,fN(e))),pN),pV=x.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,searchIcon:c,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:h,variant:g,onPressEnter:_,classNames:v,styles:y,hidden:b,...S}=e,{direction:C,getPrefixCls:w,className:T,style:E,classNames:D,styles:O,searchIcon:k}=No(`inputSearch`),A=x.useContext(ph),j=d??A,[M,,N]=ZT(`inputSearch`,g,e.bordered),P=N?M:void 0,[F]=ZT(`inputSearch`,g,e.bordered,`input`),I={...e,enterButton:s,variant:P},L=vp(E),R=vp(o),[z,B]=bp([D,v],[O,L,y,R],{props:I},{button:{_default:`root`}}),V=x.useRef(!1),H=w(`input-search`,n),U=w(`input`,r),[W,ee]=fV(H),{compactSize:G}=Z_(H,C),K=J_(e=>a??G??e),q=x.useRef(null),J=e=>{e?.target&&e.type===`click`&&f&&f(e.target.value,e,{source:`clear`}),p?.(e)},te=e=>{document.activeElement===q.current?.input&&e.preventDefault()},Y=e=>{f&&f(q.current?.input?.value,e,{source:`input`})},ne=e=>{V.current||u||(_?.(e),Y(e))},X=typeof s==`boolean`?pg(c,k,x.createElement(xE,null)):null,re=`${H}-btn`,ie=Q(re,{[`${re}-${P}`]:P}),ae,oe=s||{},se=oe.type&&oe.type.__ANT_BUTTON===!0;if(se||oe.type===`button`){let e=oe.props;ae=ch(oe,{disabled:j||e.disabled||!se&&u,onMouseDown:te,onClick:e=>{oe?.props?.onClick?.(e),Y(e)},key:`enterButton`,...se?{className:Q(ie,e.className),loading:u||e.loading,size:K}:{}})}else ae=x.createElement(Fy,{classNames:z.button,styles:B.button,className:ie,color:s?`primary`:`default`,size:K,disabled:d,key:`enterButton`,onMouseDown:te,onClick:Y,loading:u,icon:X,variant:P===`borderless`||P===`filled`||P===`underlined`?`text`:s?`solid`:void 0},s);l&&(ae=[ae,ch(l,{key:`addonAfter`})]);let ce=Q(H,ee,{[`${H}-rtl`]:C===`rtl`,[`${H}-${K}`]:!!K,[`${H}-with-button`]:!!s},i,T,W,z.root),le=e=>{V.current=!0,m?.(e)},ue=e=>{V.current=!1,h?.(e)},de=Ra(S,{data:!0}),fe=Na({...S,classNames:Na(z,[`button`,`root`]),styles:Na(B,[`button`,`root`]),prefixCls:U,type:`search`,size:K,variant:F,onPressEnter:ne,onCompositionStart:le,onCompositionEnd:ue,onChange:J,disabled:d},Object.keys(de));return x.createElement(ev,{className:ce,style:B.root,...de,hidden:b},x.createElement(fR,{ref:Ti(q,t),...fe}),ae)}),mV=e=>{let{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`,"@media (hover: none) and (pointer: coarse)":{resize:`none`},[`&${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`}},[`
|
|
291
|
+
&-allow-clear > ${t},
|
|
292
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
293
|
+
`]:{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}}}}}},hV=fd([`Input`,`TextArea`],e=>mV(wl(e,fN(e))),pN,{resetFont:!1}),gV=(0,x.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:v,direction:y,allowClear:b,autoComplete:S,className:C,style:w,classNames:T,styles:E}=No(`textArea`),D=x.useContext(ph),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=x.useContext(Hx),M=VT(k,o),N=vp(w),P=vp(d),[F,I]=bp([T,c],[E,N,f,P],{props:e}),L=x.useRef(null);x.useImperativeHandle(t,()=>({resizableTextArea:L.current?.resizableTextArea,focus:e=>{Xi(L.current?.resizableTextArea?.textArea,e)},blur:()=>L.current?.blur(),nativeElement:L.current?.nativeElement||null}));let R=v(`input`,n),z=Up(R),[B,V]=UN(R,l);hV(R,z);let{compactSize:H,compactItemClassnames:U}=Z_(R,y),W=J_(e=>i??H??e),[ee,G]=ZT(`textArea`,p,r),K=mg({allowClear:s,contextAllowClear:b,componentName:`TextArea`}),[q,J]=x.useState(!1),[te,Y]=x.useState(!1),ne=e=>{J(!0),h?.(e);let t=()=>{J(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},X=e=>{if(g?.(e),q&&op(getComputedStyle)){let e=L.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&Y(!0)}};return x.createElement(cR,{autoComplete:S,..._,style:I.root,styles:I,disabled:O,allowClear:K,className:Q(V,z,u,l,U,C,F.root,{[`${R}-textarea-affix-wrapper-resize-dirty`]:te}),classNames:{...F,textarea:Q({[`${R}-sm`]:W===`small`,[`${R}-lg`]:W===`large`},B,F.textarea,q&&`${R}-mouse-active`),variant:Q({[`${R}-${ee}`]:G},BT(R,M)),affixWrapper:Q(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:y===`rtl`,[`${R}-affix-wrapper-sm`]:W===`small`,[`${R}-affix-wrapper-lg`]:W===`large`,[`${R}-textarea-show-count`]:m||e.count?.show},B)},prefixCls:R,suffix:A&&x.createElement(`span`,{className:`${R}-textarea-suffix`},j),showCount:m,ref:L,onResize:X,onMouseDown:ne})}),_V=fR;_V.Group=JB,_V.Search=pV,_V.TextArea=gV,_V.Password=uV,_V.OTP=tV;function vV(e,t,n){return typeof n==`boolean`?n:e.length?!0:Ba(t).some(e=>e.type===dk)}var yV=({suffixCls:e,tagName:t,displayName:n})=>n=>x.forwardRef((r,i)=>x.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),bV=x.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=x.useContext(Ao),c=s(`layout`,n),[l,u]=ak(c),d=r?`${c}-${r}`:c;return x.createElement(a,{className:Q(n||d,i,l,u),ref:t,...o})}),xV=x.forwardRef((e,t)=>{let{direction:n}=x.useContext(Ao),[r,i]=x.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=Na(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=No(`layout`),_=m(`layout`,a),v=vV(r,c,l),[y,b]=ak(_),S=Q(_,{[`${_}-has-sider`]:v,[`${_}-rtl`]:n===`rtl`},h,o,s,y,b),C=x.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Do(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return x.createElement(tk.Provider,{value:C},x.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),SV=yV({tagName:`div`,displayName:`Layout`})(xV),CV=yV({suffixCls:`header`,tagName:`header`,displayName:`Header`})(bV),wV=yV({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(bV),TV=yV({suffixCls:`content`,tagName:`main`,displayName:`Content`})(bV),EV=SV;EV.Header=CV,EV.Footer=wV,EV.Content=TV,EV.Sider=dk,EV._InternalSiderContext=lk;var DV=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function OV(){return OV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OV.apply(this,arguments)}var kV=x.forwardRef((e,t)=>x.createElement(qd,OV({},e,{ref:t,icon:DV.default}))),AV=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function jV(){return jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jV.apply(this,arguments)}var MV=x.forwardRef((e,t)=>x.createElement(qd,jV({},e,{ref:t,icon:AV.default}))),NV={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:`页码`},PV=[10,20,50,100],FV=e=>{let{pageSizeOptions:t=PV,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=x.useState(``),m=x.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},v=e=>{f!==``&&(e.keyCode===ha.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?x.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):x.createElement(`span`,{onClick:v,onKeyUp:v},a)),C=x.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,x.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:v,onBlur:_,"aria-label":n.page}),n.page,w)),x.createElement(`li`,{className:b},S,C)},IV=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=Q(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,x.createElement(`a`,{rel:`nofollow`},n));return m?x.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function LV(){return LV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LV.apply(this,arguments)}var RV=(e,t,n)=>n;function zV(){}function BV(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function VV(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var HV=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=zV,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:v=zV,locale:y=NV,style:b,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:T,showSizeChanger:E=c>S,sizeChangerRender:D,pageSizeOptions:O,itemRender:k=RV,jumpPrevIcon:A,jumpNextIcon:j,prevIcon:M,nextIcon:N}=e,P=x.useRef(null),[F,I]=ti(u,l),[L,R]=ti(s,o),z=Math.max(1,Math.min(L,VV(void 0,F,c))),[B,V]=x.useState(z);(0,x.useEffect)(()=>{V(z)},[z]),`current`in e;let H=Math.max(1,z-(g?3:5)),U=Math.min(VV(void 0,F,c),z+(g?3:5));function W(n,r){let i=n||x.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=x.createElement(n,e)),i}function ee(e){let t=e.target.value,n=VV(void 0,F,c),r;return r=t===``?t:Number.isNaN(Number(t))?B:t>=n?n:Number(t),r}function G(e){return BV(e)&&e!==z&&BV(c)&&c>0}let K=c>F&&h;function q(e){(e.keyCode===ha.UP||e.keyCode===ha.DOWN)&&e.preventDefault()}function J(e){let t=ee(e);switch(t!==B&&V(t),e.keyCode){case ha.ENTER:ne(t);break;case ha.UP:ne(t-1);break;case ha.DOWN:ne(t+1)}}function te(e){ne(ee(e))}function Y(e){let t=VV(e,F,c),n=z>t&&t!==0?t:z;I(e),V(n),v?.(z,e),R(n),d?.(n,e)}function ne(e){if(G(e)&&!C){let t=VV(void 0,F,c),n=e;return e>t?n=t:e<1&&(n=1),n!==B&&V(n),R(n),d?.(n,F),n}return z}let X=z>1,re=z<VV(void 0,F,c);function ie(){X&&ne(z-1)}function ae(){re&&ne(z+1)}function oe(){ne(H)}function se(){ne(U)}function ce(e,t,...n){(e.key===`Enter`||e.charCode===ha.ENTER||e.keyCode===ha.ENTER)&&t(...n)}function le(e){ce(e,ie)}function ue(e){ce(e,ae)}function de(e){ce(e,oe)}function fe(e){ce(e,se)}function pe(e){let t=k(e,`prev`,W(M,`prev page`));return x.isValidElement(t)?x.cloneElement(t,{disabled:!X}):t}function me(e){let t=k(e,`next`,W(N,`next page`));return x.isValidElement(t)?x.cloneElement(t,{disabled:!re}):t}function he(e){(e.type===`click`||e.keyCode===ha.ENTER)&&ne(B)}let ge=null,_e=Ra(e,{aria:!0,data:!0}),ve=T&&x.createElement(`li`,{className:`${t}-total-text`},T(c,[c===0?0:(z-1)*F+1,z*F>c?c:z*F])),ye=null,be=VV(void 0,F,c);if(f&&c<=F)return null;let xe=[],Se={rootPrefixCls:t,onClick:ne,onKeyPress:ce,showTitle:_,itemRender:k,page:-1,className:i?.item,style:a?.item},Ce=z-1>0?z-1:0,we=z+1<be?z+1:be,Te=h&&h.goButton,Ee=typeof w==`object`?w.readOnly:!w,De=Te,Oe=null;w&&(Te&&(De=typeof Te==`boolean`?x.createElement(`button`,{type:`button`,onClick:he,onKeyUp:he},y.jump_to_confirm):x.createElement(`span`,{onClick:he,onKeyUp:he},Te),De=x.createElement(`li`,{title:_?`${y.jump_to}${z}/${be}`:null,className:`${t}-simple-pager`},De)),Oe=x.createElement(`li`,{title:_?`${z}/${be}`:null,className:Q(`${t}-simple-pager`,i?.item),style:a?.item},Ee?B:x.createElement(`input`,{type:`text`,"aria-label":y.jump_to,value:B,disabled:C,onKeyDown:q,onKeyUp:J,onChange:J,onBlur:te,size:3}),x.createElement(`span`,{className:`${t}-slash`},`/`),be));let ke=g?1:2;if(be<=3+ke*2){be||xe.push(x.createElement(IV,LV({},Se,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=be;e+=1)xe.push(x.createElement(IV,LV({},Se,{key:e,page:e,active:z===e})))}else{let e=g?y.prev_3:y.prev_5,n=g?y.next_3:y.next_5,r=k(H,`jump-prev`,W(A,`prev page`)),i=k(U,`jump-next`,W(j,`next page`));m&&(ge=r?x.createElement(`li`,{title:_?e:null,key:`prev`,onClick:oe,tabIndex:0,onKeyDown:de,className:Q(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!A})},r):null,ye=i?x.createElement(`li`,{title:_?n:null,key:`next`,onClick:se,tabIndex:0,onKeyDown:fe,className:Q(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!j})},i):null);let a=Math.max(1,z-ke),o=Math.min(z+ke,be);z-1<=ke&&(o=1+ke*2),be-z<=ke&&(a=be-ke*2);let s=!!ge&&z-1>=ke*2&&z!==3,c=!!ye&&be-z>=ke*2&&z!==be-2;!g&&s&&o!==be&&(a+=1),!g&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)xe.push(x.createElement(IV,LV({},Se,{key:e,page:e,active:z===e})));if(s&&(xe[0]=x.cloneElement(xe[0],{className:Q(`${t}-item-after-jump-prev`,xe[0].props.className)}),xe.unshift(ge)),c){let e=xe[xe.length-1];xe[xe.length-1]=x.cloneElement(e,{className:Q(`${t}-item-before-jump-next`,e.props.className)}),xe.push(ye)}a!==1&&xe.unshift(x.createElement(IV,LV({},Se,{key:1,page:1}))),o!==be&&xe.push(x.createElement(IV,LV({},Se,{key:be,page:be})))}let Ae=pe(Ce);if(Ae){let e=!X||!be;Ae=x.createElement(`li`,{title:_?y.prev_page:null,onClick:ie,tabIndex:e?null:0,onKeyDown:le,className:Q(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ae)}let je=me(we);if(je){let e,n;w?(e=!re,n=X?0:null):(e=!re||!be,n=e?null:0),je=x.createElement(`li`,{title:_?y.next_page:null,onClick:ae,tabIndex:n,onKeyDown:ue,className:Q(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},je)}let Me=Q(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return x.createElement(`ul`,LV({className:Me,style:b,ref:P},_e),ve,Ae,w?Oe:xe,je,x.createElement(FV,{locale:y,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:Y,pageSize:F,pageSizeOptions:O,quickGo:K?ne:null,goButton:De,showSizeChanger:E,sizeChangerRender:D}))},UV=e=>{let{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}}}}},WV=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...FN(e),width:e.paginationMiniQuickJumperInputWidth}}}}},GV=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...PN(e)}}}}},KV=e=>{let{componentCls:t,antCls:n}=e,[,r]=hd(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${$(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${$(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:`${$(e.inputOutlineOffset)} 0 ${$(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},qV=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...hN(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${$(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},JV=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=hd(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
294
|
+
${t}-prev,
|
|
295
|
+
${t}-jump-prev,
|
|
296
|
+
${t}-jump-next
|
|
297
|
+
`]:{marginInlineEnd:a(`item-spacing-actual`)},[`
|
|
298
|
+
${t}-prev,
|
|
299
|
+
${t}-next,
|
|
300
|
+
${t}-jump-prev,
|
|
301
|
+
${t}-jump-next
|
|
302
|
+
`]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${$(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...IN(e),...gN(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...hN(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},YV=e=>{let{componentCls:t,antCls:n}=e,[,r]=hd(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:$(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${$(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${$(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}}}}},XV=e=>{let{componentCls:t,antCls:n}=e,[r,i]=hd(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:$(e.itemSize),[r(`item-spacing-actual`)]:$(e.marginXS),"&-small":{[r(`item-size-actual`)]:$(e.itemSizeSM),[r(`item-spacing-actual`)]:$(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:$(e.itemSizeLG),[r(`item-spacing-actual`)]:$(e.marginSM)},...nd(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:$(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...YV(e),...JV(e),...KV(e),...qV(e),...WV(e),...GV(e),...UV(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`}}},ZV=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...sd(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...od(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:od(e)}}}},QV=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...pN(e)}),$V=e=>wl(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`},fN(e)),eH=fd(`Pagination`,e=>{let t=$V(e);return[XV(t),ZV(t)]},QV),tH=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${$(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}}}}},nH=md([`Pagination`,`bordered`],e=>tH($V(e)),QV);function rH(e){return(0,x.useMemo)(()=>typeof e==`boolean`?[e,{}]:ap(e)?[!0,e]:[void 0,void 0],[e])}var iH=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,components:d,selectComponentClass:f,pageSizeOptions:p,styles:m,classNames:h,...g}=e,{xs:_}=BE(l),[,v]=ed(),{getPrefixCls:y,direction:b,showSizeChanger:S,className:C,style:w,classNames:T,styles:E,totalBoundaryShowSizeChanger:D}=No(`pagination`),O=y(`pagination`,n),[k,A]=eH(O),j=J_(s),M=j===`small`||!!(_&&!j&&l),[N,P]=ZT(`input`),F={...e,size:j},I=vp(w),L=vp(o),[R,z]=bp([T,h],[E,I,m,L],{props:F}),[B]=im(`Pagination`,Gp),V={...B,...c},[H,U]=rH(u),[W,ee]=rH(S),G=H??W,K=U??ee,q=f||EE,J=x.useMemo(()=>p?p.map(Number):void 0,[p]),te=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,s=d?.sizeChanger;if(s)return x.createElement(s,{value:n,onChange:r,disabled:!!t,className:a});let{className:c,onChange:l}=K||{},u=o.find(e=>String(e.value)===String(n))?.value;return x.createElement(q,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...K,value:u,onChange:(e,t)=>{r?.(e),l?.(e,t)},size:j,className:Q(`${O}-options-size-changer-select`,a,c)})},Y=x.useMemo(()=>{let e=x.createElement(`span`,{className:`${O}-item-ellipsis`},x.createElement(mk,null));return{prevIcon:x.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?x.createElement(uy,null):x.createElement(DD,null)),nextIcon:x.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?x.createElement(DD,null):x.createElement(uy,null)),jumpPrevIcon:x.createElement(`a`,{className:`${O}-item-link`},x.createElement(`div`,{className:`${O}-item-container`},b===`rtl`?x.createElement(MV,{className:`${O}-item-link-icon`}):x.createElement(kV,{className:`${O}-item-link-icon`}),e)),jumpNextIcon:x.createElement(`a`,{className:`${O}-item-link`},x.createElement(`div`,{className:`${O}-item-container`},b===`rtl`?x.createElement(kV,{className:`${O}-item-link-icon`}):x.createElement(MV,{className:`${O}-item-link-icon`}),e))}},[b,O]),ne=y(`select`,r),X=Q({[`${O}-${t}`]:!!t,[`${O}-${j}`]:j,[`${O}-${N}`]:P&&N!==`outlined`,[`${O}-mini`]:M,[`${O}-rtl`]:b===`rtl`,[`${O}-bordered`]:v.wireframe},C,i,a,R.root,k,A),re={...z.root};return x.createElement(x.Fragment,null,v.wireframe&&x.createElement(nH,{prefixCls:O}),x.createElement(HV,{...Y,...g,styles:z,classNames:R,style:re,prefixCls:O,selectPrefixCls:ne,className:X,locale:V,pageSizeOptions:J,showSizeChanger:G,totalBoundaryShowSizeChanger:g.totalBoundaryShowSizeChanger??D,sizeChangerRender:te}))},aH=100,oH=aH/5,sH=aH/2-oH/2,cH=80*Math.PI,lH=50,uH=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return x.createElement(`circle`,{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:sH,cx:lH,cy:lH,strokeWidth:oH,style:n})},dH=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=x.useState(!1);Qr(()=>{e!==0&&o(!0)},[e]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${cH/4}`,strokeDasharray:`${cH*s/100} ${cH*(100-s)/100}`};return x.createElement(`span`,{className:Q(r,`${n}-progress`,{[i]:s<=0})},x.createElement(`svg`,{viewBox:`0 0 ${aH} ${aH}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},x.createElement(uH,{dotClassName:n,hasCircleCls:!0}),x.createElement(uH,{dotClassName:n,style:c})))};function fH(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return x.createElement(x.Fragment,null,x.createElement(`span`,{className:Q(o,r,n>0&&s),style:i},x.createElement(`span`,{className:Q(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>x.createElement(`i`,{className:`${t}-dot-item`,key:e})))),x.createElement(dH,{prefixCls:t,percent:n}))}function pH(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&x.isValidElement(n)?ch(n,e=>({className:Q(e.className,o,i),style:{...e.style,...a},percent:r})):x.createElement(fH,{prefixCls:t,percent:r,className:i,style:a})}var mH=new Gc(`antSpinMove`,{to:{opacity:1}}),hH=new Gc(`antRotate`,{to:{transform:`rotate(405deg)`}}),gH=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...nd(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, > ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[`> ${n}`]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[`> ${n}`]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},_H=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=hd(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:hH,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:mH,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},vH=e=>{let{componentCls:t}=e,[n]=hd(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},yH=fd(`Spin`,e=>{let t=wl(e,{spinDotDefault:e.colorTextDescription});return[gH(t),_H(t),vH(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),bH=200,xH=[[30,.05],[70,.03],[96,.01]];function SH(e,t){let[n,r]=x.useState(0),i=x.useRef(null),a=t===`auto`;return x.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<xH.length;n+=1){let[r,i]=xH[n];if(e<=r)return e+t*i}return e})},bH)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var CH;function wH(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var TH=x.forwardRef((e,t)=>{let{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:o,size:s,tip:c,description:l,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:m,percent:h,classNames:g,styles:_,...v}=e,{getPrefixCls:y,direction:b,indicator:S,className:C,style:w,classNames:T,styles:E}=No(`spin`),D=y(`spin`,n),[O,k]=yH(D),[A,j]=x.useState(()=>r&&!wH(r,i)),M=SH(A,h);x.useEffect(()=>{if(r){let e=SF(i,()=>{j(!0)});return e(),()=>{e?.cancel?.()}}j(!1)},[i,r]);let N=J_(e=>s??e),P=l??c,F={...e,size:N,spinning:A,tip:P,description:P,fullscreen:p,children:f,percent:M},I=vp(w),[L,R]=bp([T,g],[E,I,_],{props:F}),z=m??S??CH,B=f!==void 0,V=B||p,H=x.createElement(x.Fragment,null,x.createElement(pH,{className:Q(L.indicator),style:R.indicator,prefixCls:D,indicator:z,percent:M}),P&&x.createElement(`div`,{className:Q(`${D}-description`,L.tip,L.description),style:{...R.tip,...R.description}},P)),U=x.useRef(null);return x.useImperativeHandle(t,()=>({nativeElement:U.current})),x.createElement(`div`,{ref:U,className:Q(D,{[`${D}-sm`]:N===`small`,[`${D}-lg`]:N===`large`,[`${D}-spinning`]:A,[`${D}-rtl`]:b===`rtl`,[`${D}-fullscreen`]:p},o,L.root,p&&L.mask,V?u:[`${D}-section`,L.section],C,a,O,k),style:{...R.root,...V?{}:R.section,...p?R.mask:{},...d},"aria-live":`polite`,"aria-busy":A,...v},A&&(V?x.createElement(`div`,{className:Q(`${D}-section`,L.section),style:R.section},H):H),B&&x.createElement(`div`,{className:Q(`${D}-container`,L.container),style:R.container},f))});TH.setDefaultIndicator=e=>{CH=e};var EH=x.createContext({});EH.Consumer;var DH=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,avatar:i,title:a,description:o,...s}=e,{getPrefixCls:c}=(0,x.useContext)(Ao),l=c(`list`,n),u=Q(`${l}-item-meta`,r),d=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:d.current}));let f=x.createElement(`div`,{className:`${l}-item-meta-content`},a&&x.createElement(`h4`,{className:`${l}-item-meta-title`},a),o&&x.createElement(`div`,{className:`${l}-item-meta-description`},o));return x.createElement(`div`,{ref:d,...s,className:u},i&&x.createElement(`div`,{className:`${l}-item-meta-avatar`},i),(a||o)&&f)}),OH=x.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,x.useContext)(EH),{getPrefixCls:p,list:m}=(0,x.useContext)(Ao),h=e=>Q(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=Ba(r);return e.some(ip)&&e.length>1},v=()=>f===`vertical`?!!a:!_(),y=p(`list`,n),b=i&&i.length>0&&x.createElement(`ul`,{className:Q(`${y}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>x.createElement(`li`,{key:`${y}-item-action-${t}`},e,t!==i.length-1&&x.createElement(`em`,{className:`${y}-item-action-split`})))),S=d?`div`:`li`,C=x.createElement(S,{...u,...d?{}:{ref:t},className:Q(`${y}-item`,{[`${y}-item-no-flex`]:!v()},s)},f===`vertical`&&a?[x.createElement(`div`,{className:`${y}-item-main`,key:`content`},r,b),x.createElement(`div`,{className:Q(`${y}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,b,ch(a,{key:`extra`})]);return d?x.createElement(MI,{ref:t,flex:1,style:l},C):C});OH.Meta=DH;var kH=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=$(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${$(i)} ${$(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},AH=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${$(o)}`}}}}}},jH=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...nd(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${$(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${$(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${$(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${$(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},MH=fd(`List`,e=>{let t=wl(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[jH(t),kH(t),AH(t)]},e=>({contentWidth:220,itemPadding:`${$(e.paddingContentVertical)} 0`,itemPaddingSM:`${$(e.paddingContentVerticalSM)} ${$(e.paddingContentHorizontal)}`,itemPaddingLG:`${$(e.paddingContentVerticalLG)} ${$(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),NH=x.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:v,renderItem:y,locale:b,...S}=e,C=ap(n)?n:{},[w,T]=x.useState(C.defaultCurrent||1),[E,D]=x.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=No(`list`),{renderEmpty:M}=x.useContext(Ao),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!y)return null;let n;return n=op(v)?v(e):v?e[v]:e.key,n||=`list-item-${t}`,x.createElement(x.Fragment,{key:n},y(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=MH(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=J_(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`}let G=Q(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),K=`${z}-container`,q=Va(N,{total:p.length,current:w,pageSize:E},n||{}),J=Math.ceil(q.total/q.pageSize);q.current=Math.min(q.current,J);let te=n&&x.createElement(`div`,{className:Q(`${z}-pagination`)},x.createElement(iH,{align:`end`,...q,onChange:F,onShowSizeChange:I})),Y=Do(p);n&&p.length>(q.current-1)*q.pageSize&&(Y=Do(p).splice((q.current-1)*q.pageSize,q.pageSize));let ne=BE(Object.keys(f||{}).some(e=>PE.includes(e))),X=x.useMemo(()=>{for(let e=0;e<PE.length;e+=1){let t=PE[e];if(ne[t])return t}},[ne]),re=x.useMemo(()=>{if(!f)return;let e=X&&f[X]?f[X]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),X]),ie=U&&x.createElement(`div`,{style:{minHeight:53}});if(Y.length>0){let e=Y.map(L);ie=f?x.createElement(FI,{className:Q(K,V),gutter:f.gutter},x.Children.map(e,e=>x.createElement(`div`,{key:e?.key,style:re},e))):x.createElement(`ul`,{className:Q(`${z}-items`,K,V)},e)}else!l&&!U&&(ie=x.createElement(`div`,{className:`${z}-empty-text`},b?.emptyText||M?.(`List`)||x.createElement(XT,{componentName:`List`})));let ae=q.position,oe=x.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return x.createElement(EH.Provider,{value:oe},x.createElement(`div`,{ref:t,style:{...j,...c},className:G,...S},(ae===`top`||ae===`both`)&&te,h&&x.createElement(`div`,{className:`${z}-header`},h),x.createElement(TH,{...H},ie,l),g&&x.createElement(`div`,{className:`${z}-footer`},g),d||(ae===`bottom`||ae===`both`)&&te))});NH.Item=OH;var PH=(e,t={})=>!tp(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],FH=PC(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,style:l,classNames:u,styles:d,...f}=e,{getPrefixCls:p}=x.useContext(Ao),{className:m,style:h,classNames:g,styles:_}=No(`modal`),v=p(),y=t||p(`modal`),b=Up(v),[S,C]=JS(y,b),w=vp(h),T=vp(l),[E,D]=bp([g,u],[_,w,d,T],{props:e}),O=`${y}-confirm`,k={};return k=a?{closable:i??!1,title:``,footer:``,children:x.createElement(eC,{...e,prefixCls:y,confirmPrefixCls:O,rootPrefixCls:v,content:s})}:{closable:i??!0,title:o,footer:c!==null&&x.createElement(AS,{...e}),children:s},x.createElement(qy,{prefixCls:y,className:Q(S,`${y}-pure-panel`,a&&O,a&&`${O}-${a}`,n,m,C,b,E.root),style:D.root,...f,closeIcon:kS(y,r),closable:i,classNames:E,styles:D,...k})});function IH(e){return sC(cC(e))}var LH=XS;LH.useModal=_C,LH.info=function(e){return sC(lC(e))},LH.success=function(e){return sC(uC(e))},LH.error=function(e){return sC(dC(e))},LH.warning=IH,LH.warn=IH,LH.confirm=function(e){return sC(fC(e))},LH.destroyAll=function(){for(;rC.length;){let e=rC.pop();e&&e()}},LH.config=pC,LH._InternalPanelDoNotUseOrYouWillBeFired=FH;var RH=fd(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),zH=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=x.createElement(of,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=x.useContext(Ao),[v]=im(`Popconfirm`,Zp.Popconfirm),y=VE(i),b=VE(a);return x.createElement(`div`,{className:`${t}-inner-content`,onClick:m},x.createElement(`div`,{className:`${t}-message`},l&&x.createElement(`span`,{className:Q(`${t}-message-icon`,h?.icon),style:g?.icon},l),x.createElement(`div`,{className:`${t}-message-text`},np(y)&&x.createElement(`div`,{className:Q(`${t}-title`,h?.title),style:g?.title},y),np(b)&&x.createElement(`div`,{className:Q(`${t}-description`,h?.content),style:g?.content},b))),x.createElement(`div`,{className:`${t}-buttons`},u&&x.createElement(Fy,{onClick:p,size:`small`,...r},o||v?.cancelText),x.createElement(Iy,{buttonProps:{size:`small`,...av(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||v?.okText)))},BH=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=x.useContext(Ao),s=o(`popconfirm`,t);return RH(s),x.createElement(CD,{placement:n,className:Q(s,r),style:i,content:x.createElement(zH,{prefixCls:s,...a})})},VH=x.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=x.createElement(of,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,disabled:m=!1,mouseEnterDelay:h,mouseLeaveDelay:g,..._}=e,{getPrefixCls:v,className:y,style:b,classNames:S,styles:C,arrow:w,trigger:T,mouseEnterDelay:E,mouseLeaveDelay:D}=No(`popconfirm`),[O,k]=ti(e.defaultOpen??!1,e.open),A=aD(f,w),j=i||T||`click`,M=h??E??.1,N=g??D??.1,P=e=>{k(e),l?.(e)},F=()=>{P(!1)},I=t=>e.onConfirm?.call(void 0,t),L=t=>{P(!1),e.onCancel?.call(void 0,t)},R=e=>{m||P(e)},z=v(`popconfirm`,n),B={...e,placement:r,trigger:j,okType:a,overlayStyle:u,styles:d,classNames:p,mouseEnterDelay:M,mouseLeaveDelay:N},V=vp(b),H=vp(u),[U,W]=bp([S,p],[C,V,d,H],{props:B}),ee=Q(z,y,c,U.root);return RH(z),x.createElement(wD,{arrow:A,...Na(_,[`title`]),trigger:j,placement:r,onOpenChange:R,open:O,ref:t,mouseEnterDelay:M,mouseLeaveDelay:N,classNames:{root:ee,container:U.container,arrow:U.arrow},styles:{root:W.root,container:W.container,arrow:W.arrow},content:x.createElement(zH,{okType:a,icon:o,...e,prefixCls:z,close:F,onConfirm:I,onCancel:L,classNames:U,styles:W}),"data-popover-inject":!0},s)});VH._InternalPanelDoNotUseOrYouWillBeFired=BH;var HH={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},UH=()=>{let e=(0,x.useRef)([]),t=(0,x.useRef)(null);return(0,x.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},WH=({bg:e,children:t})=>x.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function GH(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var KH=x.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,m=p?`#FFF`:void 0,h=d/2,g=x.createElement(`circle`,{className:Q(`${n}-circle-path`,o),r:a,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return g;let _=`${i}-conic`,v=f?`${180+f/2}deg`:`0deg`,y=GH(r,(360-f)/360),b=GH(r,1),S=`conic-gradient(from ${v}, ${y.join(`, `)})`,C=`linear-gradient(to ${f?`bottom`:`top`}, ${b.join(`, `)})`;return x.createElement(x.Fragment,null,x.createElement(`mask`,{id:_},g),x.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${_})`},x.createElement(WH,{bg:C},x.createElement(WH,{bg:S}))))}),qH=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},JH=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:x.createElement(`style`,null,`@keyframes ${n} {
|
|
303
|
+
0% { transform: rotate(0deg); }
|
|
304
|
+
100% { transform: rotate(360deg); }
|
|
305
|
+
}`)}});function YH(){return YH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YH.apply(this,arguments)}function XH(e){let t=e??[];return Array.isArray(t)?t:[t]}var ZH=e=>{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:m,percent:h,loading:g,..._}={...HH,...e},v=pi(t),y=`${v}-gradient`,b=50-o/2,S=Math.PI*2*b,C=c>0?90+c/2:-90,w=S*((360-c)/360),{count:T,gap:E}=typeof a==`object`?a:{count:a,gap:2},D=XH(h),O=XH(m),k=O.find(e=>e&&typeof e==`object`),A=k&&typeof k==`object`?`butt`:d,{indeterminateStyleProps:j,indeterminateStyleAnimation:M}=JH({id:v,loading:g}),N=qH(S,w,0,100,C,c,l,u,A,o),P=UH(),F=()=>{let e=0;return D.map((t,a)=>{let s=O[a]||O[O.length-1],u=qH(S,w,e,t,C,c,l,s,A,o);return e+=t,x.createElement(KH,{key:a,color:s,ptg:t,radius:b,prefixCls:n,gradientId:y,className:r.track,style:{...u,...j,...i.track},strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:e=>{P[a]=e},size:100})}).reverse()},I=()=>{let e=Math.round(T*(D[0]/100)),t=100/T,a=0;return Array(T).fill(null).map((s,d)=>{let f=d<=e-1?O[0]:u,p=f&&typeof f==`object`?`url(#${y})`:void 0,m=qH(S,w,a,t,C,c,l,f,`butt`,o,E);return a+=(w-m.strokeDashoffset+E)*100/w,x.createElement(`circle`,{key:d,className:Q(`${n}-circle-path`,r.track),r:b,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...m,...i.track},ref:e=>{P[d]=e}})})};return x.createElement(`svg`,YH({className:Q(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},_),!T&&x.createElement(`circle`,{className:Q(`${n}-circle-rail`,r.rail),r:b,cx:50,cy:50,stroke:u,strokeLinecap:A,strokeWidth:s||o,style:{...N,...i.rail}}),T?I():F(),M)};function QH(e){return!e||e<0?0:e>100?100:e}function $H({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var eU=({percent:e,success:t})=>{let n=QH($H({success:t}));return[n,QH(QH(e)-n)]},tU=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||au.green,t||null]},nU=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):rp(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):rp(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:rp(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},rU=3,iU=e=>rU/e*100,aU=[`root`,`body`,`indicator`],oU=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:m=u,steps:h}=e,{direction:g}=No(`progress`),_=i??a,[v,y]=nU(m,`circle`),{strokeWidth:b}=e;b===void 0&&(b=Math.max(iU(v),6));let S={width:v,height:y,fontSize:v*.15+6},C=x.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),w=eU(e),T=x.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=g===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[g,c,s,d]),E=ap(e.strokeColor),D=tU({success:p,strokeColor:e.strokeColor}),O=Q(`${t}-body`,{[`${t}-circle-gradient`]:E},n.body),k=x.createElement(ZH,{steps:h,percent:h?w[1]:w,strokeWidth:b,railWidth:b,strokeColor:h?D[1]:D,strokeLinecap:o,railColor:_,prefixCls:t,gapDegree:C,gapPosition:T,classNames:Na(n,aU),styles:Na(r,aU)}),A=v<=20,j=x.createElement(`div`,{className:O,style:{...S,...r.body}},k,!A&&f);return A?x.createElement(gD,{title:f},j):j},sU=`--progress-line-stroke-color`,cU=e=>{let t=e?`100%`:`-100%`;return new Gc(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},lU=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...nd(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},uU=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:cU(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},dU=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},fU=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},pU=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},mU=fd(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=wl(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[lU(n),uU(n),dU(n),fU(n),pU(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),hU=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},gU=(e,t)=>{let{from:n=au.blue,to:r=au.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${hU(a)})`;return{background:e,[sU]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[sU]:o}},_U=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:m}=e,{align:h,type:g}=p,_=d??f,v=l===`square`||l===`butt`?0:void 0,[y,b]=nU(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),S={backgroundColor:_||void 0,borderRadius:v,height:b},C=`${t}-track`,w=c&&typeof c!=`string`?gU(c,i):{[sU]:c,background:c},T={width:`${QH(a)}%`,height:b,borderRadius:v,...w},E=$H(e),D={width:`${QH(E)}%`,height:b,borderRadius:v,backgroundColor:m?.strokeColor};return x.createElement(`div`,{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:h===`center`&&g===`outer`}),style:{width:y>0?y:`100%`,...r.body}},x.createElement(`div`,{className:Q(`${t}-rail`,n.rail),style:{...S,...r.rail}},x.createElement(`div`,{className:Q(C,n.track),style:{...T,...r.track}},g===`inner`&&u),E!==void 0&&x.createElement(`div`,{className:Q(C,`${C}-success`,n.track),style:{...D,...r.track}})),g===`outer`&&u)},vU=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[m,h]=nU(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),g=m/i,_=Array.from({length:i}),v=l??u;for(let e=0;e<i;e++){let r=Array.isArray(c)?c[e]:c;_[e]=x.createElement(`div`,{key:e,className:Q(`${d}-steps-item`,{[`${d}-steps-item-active`]:e<=p-1},t.track),style:{backgroundColor:e<=p-1?r:v,width:g,height:h,...n.track}})}return x.createElement(`div`,{className:Q(`${d}-steps-body`,t.body),style:n.body},_,f)},yU=[`normal`,`exception`,`active`,`success`],bU=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:m,style:h,percentPosition:g={},..._}=e,{align:v=`end`,type:y=`outer`}=g,b=Array.isArray(c)?c[0]:c,S=typeof c==`string`||Array.isArray(c)?c:void 0,C=x.useMemo(()=>b?new Kl(typeof b==`string`?b:Object.values(b)[0]).isLight():!1,[c]),w=x.useMemo(()=>{let t=$H(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),T=x.useMemo(()=>!yU.includes(p)&&w>=100?`success`:p||`normal`,[p,w]),{getPrefixCls:E,direction:D,className:O,style:k,classNames:A,styles:j}=No(`progress`),M=E(`progress`,n),[N,P]=mU(M),F={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:g},I=vp(k),L=vp(h),[R,z]=bp([A,a],[j,I,o,L],{props:F}),B=f===`line`,V=B&&!s,H=x.useMemo(()=>{if(!d)return null;let t=$H(e),n,r=m||(e=>`${e}%`),i=B&&C&&y===`inner`;return y===`inner`||m||T!==`exception`&&T!==`success`?n=r(QH(l),QH(t)):T===`exception`?n=B?x.createElement($d,null):x.createElement(nf,null):T===`success`&&(n=B?x.createElement(Xd,null):x.createElement(hE,null)),x.createElement(`span`,{className:Q(`${M}-indicator`,{[`${M}-indicator-bright`]:i,[`${M}-indicator-${v}`]:V,[`${M}-indicator-${y}`]:V},R.indicator),style:z.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,w,T,f,M,m,B,C,y,v,V,R.indicator,z.indicator]),U={...e,classNames:R,styles:z},W;f===`line`?W=s?x.createElement(vU,{...U,strokeColor:S,prefixCls:M,steps:ap(s)?s.count:s},H):x.createElement(_U,{...U,strokeColor:b,prefixCls:M,direction:D,percentPosition:{align:v,type:y}},H):(f===`circle`||f===`dashboard`)&&(W=x.createElement(oU,{...U,strokeColor:b,prefixCls:M,progressStatus:T},H));let ee=Q(M,`${M}-status-${T}`,{[`${M}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${M}-inline-circle`]:f===`circle`&&nU(u,`circle`)[0]<=20,[`${M}-line`]:V,[`${M}-line-align-${v}`]:V,[`${M}-line-position-${y}`]:V,[`${M}-steps`]:s,[`${M}-show-info`]:d,[`${M}-small`]:u===`small`,[`${M}-rtl`]:D===`rtl`},O,r,i,R.root,N,P);return x.createElement(`div`,{ref:t,style:z.root,className:ee,role:`progressbar`,"aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100,...Na(_,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},W)}),xU=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`}}))());function SU(){return SU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SU.apply(this,arguments)}var CU=x.forwardRef((e,t)=>x.createElement(qd,SU({},e,{ref:t,icon:xU.default}))),wU=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`}}))());function TU(){return TU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TU.apply(this,arguments)}var EU=x.forwardRef((e,t)=>x.createElement(qd,TU({},e,{ref:t,icon:wU.default}))),DU=()=>x.createElement(`svg`,{width:`252`,height:`294`},x.createElement(`title`,null,`No Found`),x.createElement(`g`,{fill:`none`,fillRule:`evenodd`},x.createElement(`circle`,{cx:`126.75`,cy:`128.1`,r:`126`,fill:`#E4EBF7`}),x.createElement(`circle`,{cx:`31.55`,cy:`130.8`,r:`8.3`,fill:`#FFF`}),x.createElement(`path`,{stroke:`#FFF`,d:`m37 134.3 10.5 6m.9 6.2-12.7 10.8`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#FFF`,d:`M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2`}),x.createElement(`path`,{fill:`#FFF`,d:`M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),x.createElement(`path`,{stroke:`#FFF`,d:`m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#FFF`,d:`M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4`}),x.createElement(`path`,{stroke:`#FFF`,d:`M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z`,strokeWidth:`2`}),x.createElement(`path`,{stroke:`#FFF`,d:`m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#FFF`,d:`M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7`}),x.createElement(`circle`,{cx:`204.3`,cy:`30`,r:`29.5`,fill:`#1677ff`}),x.createElement(`path`,{fill:`#FFF`,d:`M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2`}),x.createElement(`path`,{fill:`#FFB594`,d:`M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6`}),x.createElement(`path`,{fill:`#FFF`,d:`M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6`}),x.createElement(`path`,{fill:`#CBD1D1`,d:`M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6`}),x.createElement(`path`,{fill:`#2B0849`,d:`M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z`}),x.createElement(`path`,{fill:`#A4AABA`,d:`M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),x.createElement(`path`,{fill:`#CBD1D1`,d:`M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z`}),x.createElement(`path`,{fill:`#2B0849`,d:`M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1`}),x.createElement(`path`,{fill:`#A4AABA`,d:`M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1`}),x.createElement(`path`,{fill:`#7BB2F9`,d:`m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M107.3 222.1s2.7-1.1 6-3.9`,strokeLinecap:`round`,strokeLinejoin:`round`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#192064`,d:`M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4`}),x.createElement(`path`,{fill:`#FFF`,d:`M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8`}),x.createElement(`path`,{fill:`#192064`,d:`M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5`}),x.createElement(`path`,{fill:`#520038`,d:`M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z`}),x.createElement(`path`,{fill:`#552950`,d:`M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3`}),x.createElement(`path`,{stroke:`#DB836E`,d:`m110.1 74.8-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#5C2552`,d:`M110.8 74.5s1.8-.7 2.6.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#5C2552`,d:`M103.3 73s1.8 1 4.1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#F2D7AD`,d:`M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1`}),x.createElement(`path`,{fill:`#F4D19D`,d:`M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1`}),x.createElement(`path`,{fill:`#F2D7AD`,d:`M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z`}),x.createElement(`path`,{fill:`#CC9B6E`,d:`M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z`}),x.createElement(`path`,{fill:`#F4D19D`,d:`M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8`}),x.createElement(`path`,{fill:`#CC9B6E`,d:`M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#5BA02E`,d:`M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6`}),x.createElement(`path`,{fill:`#92C110`,d:`M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7`}),x.createElement(`path`,{fill:`#F2D7AD`,d:`M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M89 89.5s7.8 5.4 16.6 2.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),OU=()=>x.createElement(`svg`,{width:`254`,height:`294`},x.createElement(`title`,null,`Server Error`),x.createElement(`g`,{fill:`none`,fillRule:`evenodd`},x.createElement(`path`,{fill:`#E4EBF7`,d:`M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1`}),x.createElement(`path`,{fill:`#FFF`,d:`M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7`}),x.createElement(`path`,{stroke:`#FFF`,d:`m37.2 135.6 10.5 6m1 6.3-12.8 10.8`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#FFF`,d:`M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8`}),x.createElement(`circle`,{cx:`201.35`,cy:`30.2`,r:`29.7`,fill:`#FF603B`}),x.createElement(`path`,{fill:`#FFF`,d:`m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7`}),x.createElement(`path`,{fill:`#FFB594`,d:`M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5`}),x.createElement(`path`,{fill:`#FFF`,d:`M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2`}),x.createElement(`path`,{fill:`#FFB594`,d:`m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6`}),x.createElement(`path`,{fill:`#520038`,d:`M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z`}),x.createElement(`path`,{fill:`#552950`,d:`M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3`}),x.createElement(`path`,{stroke:`#DB836E`,d:`m99.2 73.6-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#5C2552`,d:`M100 73.3s1.7-.7 2.4.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#5C2552`,d:`M92.3 71.7s1.9 1.1 4.2 1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#FFF`,d:`M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1`}),x.createElement(`path`,{fill:`#FFF`,d:`M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5`}),x.createElement(`path`,{fill:`#CBD1D1`,d:`M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5`}),x.createElement(`path`,{fill:`#2B0849`,d:`M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z`}),x.createElement(`path`,{fill:`#A4AABA`,d:`M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6`}),x.createElement(`path`,{fill:`#CBD1D1`,d:`M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z`}),x.createElement(`path`,{fill:`#2B0849`,d:`M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1`}),x.createElement(`path`,{fill:`#A4AABA`,d:`M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1`}),x.createElement(`path`,{fill:`#7BB2F9`,d:`M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M97 219.4s2.9-1.2 6.3-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#192064`,d:`M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7`}),x.createElement(`path`,{fill:`#FFF`,d:`M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8`}),x.createElement(`path`,{fill:`#192064`,d:`M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),x.createElement(`path`,{stroke:`#E59788`,d:`M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6`}),x.createElement(`path`,{stroke:`#E59788`,d:`M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M109.3 112.5s3.4-3.6 7.6-4.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#E59788`,d:`M107.4 123s9.7-2.7 11.4-.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),x.createElement(`path`,{stroke:`#BFCDDD`,d:`m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#A3B4C6`,d:`M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4`}),x.createElement(`path`,{fill:`#A3B4C6`,d:`M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8`}),x.createElement(`path`,{fill:`#A3B4C6`,d:`M154.1 190.1h70.5v-84.6h-70.5z`}),x.createElement(`path`,{fill:`#BFCDDD`,d:`M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1`}),x.createElement(`path`,{fill:`#FFF`,d:`M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8`}),x.createElement(`path`,{fill:`#BFCDDD`,d:`M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2`}),x.createElement(`path`,{stroke:`#7C90A5`,d:`M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#FFF`,d:`M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8`}),x.createElement(`path`,{fill:`#BFCDDD`,d:`M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4`}),x.createElement(`path`,{stroke:`#A3B4C6`,d:`M177.3 207.2v11.5m23.8-11.5v11.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#5BA02E`,d:`M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4`}),x.createElement(`path`,{fill:`#92C110`,d:`M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4`}),x.createElement(`path`,{fill:`#F2D7AD`,d:`M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2`}))),kU=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${$(e.calc(s).mul(2).equal())} ${$(a)}`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-body`]:{marginTop:s,padding:`${$(s)} ${$(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},AU=e=>{let{componentCls:t}=e;return{[`${t}-success ${t}-icon`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon`]:{color:e.resultWarningIconColor}}},jU=e=>[kU(e),AU(e)],MU=fd(`Result`,e=>{let t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning;return jU(wl(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295}))},e=>{let{fontSizeHeading3:t,fontSize:n,paddingLG:r}=e;return{titleFontSize:t,subtitleFontSize:n,iconFontSize:rp(t)?t*3:`calc(${t} * 3)`,extraMargin:`${r}px 0 0 0`}}),NU=()=>x.createElement(`svg`,{width:`251`,height:`294`},x.createElement(`title`,null,`Unauthorized`),x.createElement(`g`,{fill:`none`,fillRule:`evenodd`},x.createElement(`path`,{fill:`#E4EBF7`,d:`M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129`}),x.createElement(`path`,{fill:`#FFF`,d:`M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6`}),x.createElement(`path`,{stroke:`#FFF`,d:`m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#FFF`,d:`M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2`}),x.createElement(`path`,{fill:`#FFF`,d:`M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),x.createElement(`path`,{stroke:`#FFF`,d:`m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#FFF`,d:`M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4`}),x.createElement(`path`,{stroke:`#FFF`,d:`M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z`,strokeWidth:`2`}),x.createElement(`path`,{stroke:`#FFF`,d:`m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7`,strokeWidth:`2`}),x.createElement(`path`,{fill:`#A26EF4`,d:`M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0`}),x.createElement(`path`,{fill:`#FFF`,d:`m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7`}),x.createElement(`path`,{fill:`#FFF`,d:`M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7`}),x.createElement(`path`,{fill:`#5BA02E`,d:`M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6`}),x.createElement(`path`,{fill:`#92C110`,d:`M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6`}),x.createElement(`path`,{fill:`#F2D7AD`,d:`M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3`}),x.createElement(`path`,{fill:`#FFF`,d:`M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2`}),x.createElement(`path`,{fill:`#FFB594`,d:`M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26`}),x.createElement(`path`,{fill:`#FFF`,d:`M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M78.2 94.7s.9 7.4-5 13`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.9`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z`}),x.createElement(`path`,{fill:`#FFB594`,d:`m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9`}),x.createElement(`path`,{fill:`#5C2552`,d:`M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`m100.8 77.1 1.7-1-1-4.3.7-1.4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#552950`,d:`M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M91.1 86.8s5.3 5 12.7 2.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#DB836E`,d:`M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2`}),x.createElement(`path`,{stroke:`#5C2552`,d:`M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M64 84.8s-6 10-13.5 10`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),x.createElement(`path`,{fill:`#FFC6A0`,d:`m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7`}),x.createElement(`path`,{stroke:`#DB836E`,d:`M130.5 85.5s4.6 5.7 11.7 6.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),x.createElement(`path`,{stroke:`#E4EBF7`,d:`M121.7 105.7s-.4 8.6-1.3 13.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M115.8 161.5s-3.6-1.5-2.7-7.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#CBD1D1`,d:`M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6`}),x.createElement(`path`,{fill:`#2B0849`,d:`M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z`}),x.createElement(`path`,{fill:`#A4AABA`,d:`M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),x.createElement(`path`,{fill:`#CBD1D1`,d:`M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z`}),x.createElement(`path`,{fill:`#2B0849`,d:`M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2`}),x.createElement(`path`,{fill:`#A4AABA`,d:`M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1`}),x.createElement(`path`,{fill:`#7BB2F9`,d:`m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M108.5 221s2.7-1.2 6-4`,strokeLinecap:`round`,strokeLinejoin:`round`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),x.createElement(`path`,{fill:`#192064`,d:`M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4`}),x.createElement(`path`,{fill:`#FFF`,d:`M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7`}),x.createElement(`path`,{fill:`#192064`,d:`M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7`}),x.createElement(`path`,{stroke:`#648BD8`,d:`M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),PU={success:Xd,error:$d,info:of,warning:EU},FU={404:DU,500:OU,403:NU},IU=Object.keys(FU),LU=({icon:e,status:t,className:n,style:r})=>{if(IU.includes(`${t}`)){let e=FU[t];return x.createElement(`div`,{className:n,style:r},x.createElement(e,null))}let i=x.createElement(PU[t]);return e===null||e===!1?null:x.createElement(`div`,{className:n,style:r},e||i)},RU=({className:e,extra:t,style:n})=>np(t)?x.createElement(`div`,{className:e,style:n},t):null,zU=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,subTitle:a,title:o,style:s,children:c,status:l=`info`,icon:u,extra:d,styles:f,classNames:p,...m}=e,{getPrefixCls:h,direction:g,className:_,style:v,classNames:y,styles:b}=No(`result`),S={...e,status:l},C=vp(v),w=vp(s),[T,E]=bp([y,p],[b,C,f,w],{props:S}),D=h(`result`,n),[O,k]=MU(D),A=Q(D,`${D}-${l}`,r,_,i,{[`${D}-rtl`]:g===`rtl`},O,k,T.root),j=Q(`${D}-title`,T.title),M=Q(`${D}-subtitle`,T.subTitle),N=Q(`${D}-extra`,T.extra),P=Q(`${D}-body`,T.body),F=Q(`${D}-icon`,{[`${D}-image`]:IU.includes(`${l}`)},T.icon),I={...E.root},L=Ra(m,{aria:!0,data:!0}),R=x.useRef(null);return x.useImperativeHandle(t,()=>({nativeElement:R.current})),x.createElement(`div`,{ref:R,...L,className:A,style:I},x.createElement(LU,{className:F,style:E.icon,status:l,icon:u}),np(o)&&x.createElement(`div`,{className:j,style:E.title},o),np(a)&&x.createElement(`div`,{className:M,style:E.subTitle},a),x.createElement(RU,{className:N,extra:d,style:E.extra}),np(c)&&x.createElement(`div`,{className:P,style:E.body},c))});zU.PRESENTED_IMAGE_403=FU[403],zU.PRESENTED_IMAGE_404=FU[404],zU.PRESENTED_IMAGE_500=FU[500];var BU=FI,VU=e=>{let{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a=``,prefixCls:o,className:s,style:c}=e,l;if(op(n))l=n(t);else{let e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!n||e===`-`)l=e;else{let e=n[1],t=n[2]||`0`,s=n[4]||``;t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),rp(r)&&(s=s.padEnd(r,`0`).slice(0,r>0?r:0)),s&&=`${i}${s}`,l=[x.createElement(`span`,{key:`int`,className:`${o}-content-value-int`},e,t),s&&x.createElement(`span`,{key:`decimal`,className:`${o}-content-value-decimal`},s)]}}return x.createElement(`span`,{className:s,style:c},l)},HU=e=>{let{componentCls:t,marginXXS:n,padding:r,colorTextDescription:i,titleFontSize:a,colorTextHeading:o,contentFontSize:s,fontFamily:c}=e;return{[t]:{...nd(e),[`${t}-header`]:{paddingBottom:n,[`${t}-title`]:{color:i,fontSize:a}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:o,fontSize:s,fontFamily:c,[`${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}}}}},UU=fd(`Statistic`,e=>HU(wl(e,{})),e=>{let{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}),WU=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,valueStyle:o,value:s=0,title:c,valueRender:l,prefix:u,suffix:d,loading:f=!1,formatter:p,precision:m,decimalSeparator:h=`.`,groupSeparator:g=`,`,onMouseEnter:_,onMouseLeave:v,styles:y,classNames:b,...S}=e,{getPrefixCls:C,direction:w,className:T,style:E,classNames:D,styles:O}=No(`statistic`),k=C(`statistic`,n),[A,j]=UU(k),M={...e,decimalSeparator:h,groupSeparator:g,loading:f,value:s},N=vp(E),P=vp(a),[F,I]=bp([D,b],[O,N,y,P],{props:M}),L=Q(k,{[`${k}-rtl`]:w===`rtl`},T,r,i,F.root,A,j),R=Q(`${k}-header`,F.header),z=Q(`${k}-title`,F.title),B=Q(`${k}-content`,F.content),V=Q(`${k}-content-value`,F.value),H=Q(`${k}-content-prefix`,F.prefix),U=Q(`${k}-content-suffix`,F.suffix),W=x.createElement(VU,{decimalSeparator:h,groupSeparator:g,prefixCls:k,formatter:p,precision:m,value:s,className:V,style:I.value}),ee=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:ee.current}));let G=Ra(S,{aria:!0,data:!0});return x.createElement(`div`,{...G,className:L,style:I.root,ref:ee,onMouseEnter:_,onMouseLeave:v},c&&x.createElement(`div`,{className:R,style:I.header},x.createElement(`div`,{className:z,style:I.title},c)),x.createElement(CS,{paragraph:!1,loading:f,className:`${k}-skeleton`,active:!0},x.createElement(`div`,{className:B,style:{...o,...I.content}},u&&x.createElement(`span`,{className:H,style:I.prefix},u),op(l)?l(W):W,d&&x.createElement(`span`,{className:U,style:I.suffix},d))))}),GU=[[`Y`,31536e6],[`M`,2592e6],[`D`,864e5],[`H`,36e5],[`m`,6e4],[`s`,1e3],[`S`,1]];function KU(e,t){let n=e,r=/\[[^\]]*]/g,i=(t.match(r)||[]).map(e=>e.slice(1,-1)),a=t.replace(r,`[]`),o=GU.reduce((e,[t,r])=>{if(e.includes(t)){let i=Math.floor(n/r);return n-=i*r,e.replace(RegExp(`${t}+`,`g`),e=>{let t=e.length;return i.toString().padStart(t,`0`)})}return e},a),s=0;return o.replace(r,()=>{let e=i[s];return s+=1,e})}function qU(e,t,n){let{format:r=``}=t,i=new Date(e).getTime(),a=Date.now();return KU(Math.max(n?i-a:a-i,0),r)}var JU=1e3/60;function YU(e){return new Date(e).getTime()}var XU=e=>{let{value:t,format:n=`HH:mm:ss`,onChange:r,onFinish:i,type:a,...o}=e,s=a===`countdown`,[c,l]=x.useState(null),u=Yr(()=>{let e=Date.now(),n=YU(t);l({});let a=s?n-e:e-n;return r?.(a),s&&n<e?(i?.(),!1):!0});x.useEffect(()=>{let e,t=()=>{u()||window.clearInterval(e)},n=()=>{e=window.setInterval(t,JU)},r=()=>{window.clearInterval(e)};return n(),()=>{r()}},[t,s]),x.useEffect(()=>{l({})},[]);let d=(e,t)=>c?qU(e,{...t,format:n},s):`-`,f=e=>ch(e,{title:void 0});return x.createElement(WU,{...o,value:t,valueRender:f,formatter:d})},ZU=x.memo(e=>x.createElement(XU,{...e,type:`countdown`}));WU.Timer=XU,WU.Countdown=ZU;var QU=WU;function $U(e){let{prefixCls:t,className:n,style:r,status:i}=e,a=`${t}-rail`;return x.createElement(`div`,{className:Q(a,`${a}-${i}`,n),style:r})}var eW=x.createContext({}),tW=x.createContext(null);function nW(){return nW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nW.apply(this,arguments)}var rW=x.createContext({}),iW=x.forwardRef((e,t)=>{let{className:n,style:r,children:i,...a}=e,{prefixCls:o,classNames:s,styles:c}=x.useContext(tW),{className:l,style:u}=x.useContext(rW),d=`${o}-item`;return x.createElement(`div`,nW({},Ra(a,!1),{ref:t,className:Q(`${d}-icon`,s.itemIcon,l,n),style:{...c.itemIcon,...u,...r}}),i)});function aW(){return aW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aW.apply(this,arguments)}function oW(e){return e!=null}function sW(e){let{prefixCls:t,classNames:n,styles:r,data:i,last:a,nextStatus:o,active:s,index:c,itemRender:l,iconRender:u,itemWrapperRender:d,onClick:f}=e,p=`${t}-item`,{railFollowPrevStatus:m}=x.useContext(eW),{ItemComponent:h}=x.useContext(tW),{onClick:g,title:_,subTitle:v,content:y,description:b,disabled:S,icon:C,status:w,className:T,style:E,classNames:D={},styles:O={},...k}=i,A=y??b,j={item:{...i,content:A},index:c,active:s},M=!!(f||g)&&!S,N={};M&&(N.role=`button`,N.tabIndex=0,N.onClick=e=>{g?.(e),f(c)},N.onKeyDown=e=>{let{which:t}=e;(t===ha.ENTER||t===ha.SPACE)&&f(c)});let P=w||`wait`,F=oW(_),I=oW(v),L=Q(p,`${p}-${P}`,{[`${p}-custom`]:C,[`${p}-active`]:s,[`${p}-disabled`]:S===!0,[`${p}-empty-header`]:!F&&!I},T,n.item,D.root),R=x.createElement(iW,null);u&&(R=u(R,{...j,components:{Icon:iW}}));let z=x.createElement(`div`,{className:Q(`${p}-wrapper`,n.itemWrapper,D.wrapper),style:{...r.itemWrapper,...O.wrapper}},x.createElement(rW.Provider,{value:{className:D.icon,style:O.icon}},R),x.createElement(`div`,{className:Q(`${p}-section`,n.itemSection,D.section),style:{...r.itemSection,...O.section}},x.createElement(`div`,{className:Q(`${p}-header`,n.itemHeader,D.header),style:{...r.itemHeader,...O.header}},F&&x.createElement(`div`,{className:Q(`${p}-title`,n.itemTitle,D.title),style:{...r.itemTitle,...O.title}},_),I&&x.createElement(`div`,{title:typeof v==`string`?v:void 0,className:Q(`${p}-subtitle`,n.itemSubtitle,D.subtitle),style:{...r.itemSubtitle,...O.subtitle}},v),!a&&x.createElement($U,{prefixCls:p,className:Q(n.itemRail,D.rail),style:{...r.itemRail,...O.rail},status:m?w:o})),oW(A)&&x.createElement(`div`,{className:Q(`${p}-content`,n.itemContent,D.content),style:{...r.itemContent,...O.content}},A))),B=x.createElement(h,aW({},k,N,{className:L,style:{...r.item,...O.root,...E}}),d?d(z):z);return l&&(B=l(B,j)||null),B}function cW(){return cW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cW.apply(this,arguments)}var lW={};function uW(e){let{prefixCls:t=`rc-steps`,style:n,className:r,classNames:i=lW,styles:a=lW,rootClassName:o,orientation:s,titlePlacement:c,components:l,status:u=`process`,current:d=0,initial:f=0,onChange:p,items:m,iconRender:h,itemRender:g,itemWrapperRender:_,...v}=e,y=s===`vertical`,b=y?`vertical`:`horizontal`,S=!y&&c===`vertical`?`vertical`:`horizontal`,C=Q(t,`${t}-${b}`,`${t}-title-${S}`,o,r,i.root),w=x.useMemo(()=>(m||[]).filter(Boolean),[m]),T=x.useMemo(()=>w.map(({status:e},t)=>{let n=f+t;return e||(n===d?u:n<d?`finish`:`wait`)}),[w,u,d,f]),E=e=>{p&&d!==e&&p(e)},{root:D=`div`,item:O=`div`}=l||{},k=x.useMemo(()=>({prefixCls:t,classNames:i,styles:a,ItemComponent:O}),[t,i,a,O]),A=(e,n)=>{let r=f+n,o=T[n],s=T[n+1],c={...e,status:o};return x.createElement(sW,{key:r,prefixCls:t,classNames:i,styles:a,data:c,nextStatus:s,active:r===d,index:r,last:w.length-1===n,iconRender:h,itemRender:g,itemWrapperRender:_,onClick:p&&E})};return x.createElement(D,cW({className:C,style:{...n,...a?.root}},v),x.createElement(tW.Provider,{value:k},w.map(A)))}var dW=uW,fW=x.createContext(null),pW=e=>{let{prefixCls:t}=e;return x.createElement(`svg`,{className:`${t}-panel-arrow`,viewBox:`0 0 100 100`,xmlns:`http://www.w3.org/2000/svg`,preserveAspectRatio:`none`},x.createElement(`title`,null,`Arrow`),x.createElement(`path`,{d:`M 0 0 L 100 50 L 0 100`}))},mW=e=>{let{prefixCls:t,rootPrefixCls:n,children:r,percent:i}=e,a=`${t}-item-progress-icon`,o=`${a}-circle`,[,s]=hd(n,`cmp-steps`),c=`calc(${s(`progress-radius`)} * 2 * ${Math.PI*i/100}) 9999`;return x.createElement(x.Fragment,null,x.createElement(`svg`,{className:`${a}-svg`,viewBox:`0 0 100 100`,width:`100%`,height:`100%`,xmlns:`http://www.w3.org/2000/svg`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i},x.createElement(`title`,null,`Progress`),x.createElement(`circle`,{className:Q(o,`${o}-rail`)}),x.createElement(`circle`,{className:Q(o,`${o}-ptg`),strokeDasharray:c,transform:`rotate(-90 50 50)`})),r)},hW=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-item`,[i,a]=hd(n,`cmp-steps`);return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:`1 1 auto`,minWidth:e.iconSize,[`${r}-rail`]:{[i(`horizontal-rail-margin`)]:`calc(${a(`icon-size-max`)} / 2 - ${a(`rail-size`)} / 2 + ${a(`item-wrapper-padding-top`)})`,position:`static`,marginTop:a(`horizontal-rail-margin`),width:`auto`,borderBlockStartWidth:a(`rail-size`),flex:1,minWidth:0,alignSelf:`flex-start`}}}}},gW=e=>{let{componentCls:t,customIconFontSize:n,motionDurationSlow:r,iconSize:i,lineWidth:a,lineType:o,antCls:s}=e,c=`${t}-item`,[l,u]=hd(s,`cmp-steps`);return{[t]:{[l(`icon-size`)]:i,[l(`icon-border-width`)]:a,[`${c}-icon`]:{width:u(`icon-size`),height:u(`icon-size`),margin:0,flex:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:u(`icon-size`),textAlign:`center`,borderRadius:u(`icon-size`),border:`${u(`icon-border-width`)} ${o} transparent`,transition:[`background-color`,`border`,`color`,`inset`,`transform`].map(e=>`${e} ${r}`).join(`, `),zIndex:1},[`${c}-custom ${c}-icon`]:{background:`none`,border:0,fontSize:n}}}},_W=e=>{let{componentCls:t,inlineDotSize:n,paddingXS:r,lineWidth:i,antCls:a,calc:o}=e,s=o(r).add(i).equal(),c=`${t}-item`,[l,u]=hd(a,`cmp-steps`);return{[`${t}-inline`]:{[l(`items-offset`)]:`0`,[l(`item-wrapper-padding-top`)]:s,display:`inline-flex`,"&:before":{content:`""`,flex:u(`items-offset`)},[c]:{[l(`title-vertical-row-gap`)]:r,[l(`icon-size`)]:n,[l(`icon-size-active`)]:n,[l(`title-font-size`)]:e.fontSizeSM,[l(`title-line-height`)]:e.lineHeightSM,[l(`item-title-color`)]:e.colorTextSecondary,[l(`subtitle-font-size`)]:e.fontSizeSM,[l(`subtitle-line-height`)]:e.lineHeightSM,[l(`item-subtitle-color`)]:e.colorTextQuaternary,[l(`rail-size`)]:e.lineWidth,[l(`title-horizontal-rail-gap`)]:`0px`,flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:`pointer`,transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${c}-icon-dot`]:{"&:after":{display:`none`}}},"&-title":{fontWeight:`normal`,whiteSpace:`nowrap`},"&-content":{display:`none`}}}}};function vW(e){return(e||`--ant-not-exist`).replace(/var\((.*)\)/,`$1`)}var yW=(e,t,n)=>{let{calc:r,componentCls:i,descriptionMaxWidth:a,antCls:o}=e,s=`${i}-item`,[,c]=hd(o,`cmp-steps`);return{[`@container style(${vW(a)})`]:[{[`${s}-icon`]:{marginInlineStart:r(a).sub(c(`icon-size`)).div(2).equal()},[`${s}-rail`]:{width:`auto`,insetInlineStart:r(a).add(c(`icon-size`)).div(2).add(t).equal(),insetInlineEnd:r(a).sub(c(`icon-size`)).div(2).sub(t).mul(-1).equal()}},n]}},bW=e=>{let{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,margin:a,paddingSM:o,marginXXS:s,antCls:c,calc:l}=e,u=`${t}-item`,[d,f]=hd(c,`cmp-steps`);return{[t]:{[d(`icon-size-max`)]:`max(${f(`icon-size`)}, ${f(`icon-size-active`,f(`icon-size`))})`,[`${u}-icon`]:{marginBlockStart:`calc((${f(`heading-height`)} - ${f(`icon-size`)}) / 2)`}},[`${t}-title-horizontal`]:{[d(`title-horizontal-item-margin`)]:a,[d(`title-horizontal-rail-margin`)]:a,[d(`title-horizontal-title-height`)]:i,[d(`heading-height`)]:`max(${f(`icon-size`)}, ${f(`title-horizontal-title-height`)})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${u}:not(:first-child)`]:{marginInlineStart:f(`title-horizontal-item-margin`)},[`${u}:last-child`]:{flex:`0 1 auto`},[`${u}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${u}-wrapper`]:{columnGap:e.margin},[`${u}-empty-header`]:{[`${u}-header`]:{minHeight:`auto`},[`${u}-content`]:{marginTop:l(f(`heading-height`)).sub(e.fontHeight).div(2).equal()}}},[`${u}-section`]:{flex:1,minWidth:0},[`${u}-header`]:{minHeight:f(`heading-height`)},[`${u}-title`]:{flex:`0 1 auto`},[`${u}-content`]:{maxWidth:n},[`${u}-subtitle`]:{flex:`0 9999 auto`},[`&${t}-horizontal ${u}-rail`]:{[d(`item-wrapper-padding-top`)]:`0px`,flex:`1 1 0%`,marginInlineStart:f(`title-horizontal-rail-margin`)}},[`${t}-title-vertical`]:{[d(`title-vertical-row-gap`)]:o,[d(`title-horizontal-rail-gap`)]:s,[d(`heading-height`)]:f(`icon-size-max`),[`> ${u}`]:{flex:`1 1 0%`,[`${u}-wrapper`]:{flexDirection:`column`,rowGap:f(`title-vertical-row-gap`),alignItems:`center`},[`${u}-section`]:{alignSelf:`stretch`},[`${u}-header`]:{flexDirection:`column`,alignItems:`center`},[`${u}-title, ${u}-subtitle, ${u}-content`]:{textAlign:`center`,maxWidth:`100%`},[`${u}-subtitle`]:{margin:0},[`${u}-rail`]:{position:`absolute`,top:0,width:`calc(100% - ${f(`icon-size`)} - ${f(`title-horizontal-rail-gap`)} * 2)`,insetInlineStart:`calc(50% + ${f(`icon-size`)} / 2 + ${f(`title-horizontal-rail-gap`)})`}},...yW(e,r,{[`${u}:last-child`]:{flex:`none`},[`${u}-icon`]:{alignSelf:`flex-start`},[`${u}-section`]:{width:n}})}}},xW=e=>{let{componentCls:t}=e,n=`${t}-item`;return{[`${t}-max-count`]:{[`${n}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:{color:e.colorTextDescription}}}}},SW=e=>{let{componentCls:t,fontSizeIcon:n,navContentMaxWidth:r,navArrowColor:i,colorPrimary:a,motionDurationSlow:o,antCls:s,calc:c}=e,l=`${t}-item`,u=a,[d,f]=hd(s,`cmp-steps`);return{[`${t}${t}-navigation`]:{[l.repeat(4)]:{display:`flex`,justifyContent:`center`,position:`relative`,flex:1,marginInlineStart:0,[`${l}-wrapper`]:{paddingBlock:e.paddingSM},[`${l}-section`]:{maxWidth:r},[`${l}-rail`]:{display:`none`},"&:before":{position:`absolute`,display:`block`,backgroundColor:u,transition:`all ${o}`,transitionTimingFunction:`ease-out`,content:`""`},"&:not(:last-child):after":{position:`absolute`,display:`block`,borderTop:`${$(e.lineWidth)} ${e.lineType} ${i}`,borderBottom:`none`,borderInlineStart:`none`,borderInlineEnd:`${$(e.lineWidth)} ${e.lineType} ${i}`,content:`""`},[`&${l}-active`]:{[d(`item-content-active-color`)]:f(`item-content-color`),[d(`item-icon-active-bg-color`)]:f(`item-icon-bg-color`),[d(`item-icon-active-border-color`)]:f(`item-icon-border-color`),[d(`item-icon-active-text-color`)]:f(`item-icon-text-color`)}},[`&${t}-horizontal`]:{[l]:{"&:before":{bottom:0,insetInlineStart:`50%`,width:0,height:e.lineWidthBold},[`&${l}-active:before`]:{insetInlineStart:0,width:`100%`},"&:not(:last-child):after":{top:`50%`,insetInlineStart:c(n).div(2).mul(-1).add(`100%`).equal(),width:n,height:n,transform:`translateY(-50%) rotate(45deg)`}}},[`&${t}-vertical`]:{[l.repeat(4)]:{[`${l}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:`50%`,width:e.lineWidthBold,height:0},[`&${l}-active::before`]:{top:0,height:`100%`},"&:not(:last-child):after":{left:{_skip_check_:!0,value:`50%`},top:`100%`,width:c(n).div(3).mul(2).equal(),height:c(n).div(3).mul(2).equal(),transform:`translateY(-50%) translateX(-50%) rotate(135deg)`}}}}}},CW=e=>{let{componentCls:t,lineWidthBold:n,borderRadius:r,borderRadiusSM:i,motionDurationMid:a,paddingXS:o,lineType:s,paddingSM:c,antCls:l,calc:u}=e,d=`${t}-item`,[f,p]=hd(l,`cmp-steps`),m=`${$(n)} ${s} ${p(`panel-border-color`)}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:`none`},[`&${t}-horizontal`]:{alignItems:`stretch`,[d]:{flex:1,margin:0}}},{"&":{[f(`panel-padding`)]:c,[f(`item-border-radius`)]:r,[d]:{[f(`panel-bg-color`)]:p(`item-icon-bg-color`),[f(`panel-border-color`)]:p(`item-icon-border-color`),[f(`panel-active-bg-color`)]:p(`item-icon-active-bg-color`),[f(`panel-active-border-color`)]:p(`item-icon-active-border-color`),[f(`panel-title-height`)]:`calc(${p(`title-font-size`)} * ${p(`title-line-height`)})`,[f(`item-base-height`)]:u(p(`panel-padding`)).mul(2).add(p(`icon-size`)).add(p(`panel-title-height`)).equal(),[f(`item-base-width`)]:`calc(${p(`item-base-height`)} * 0.7071)`,transition:`background-color ${a}`}},[`${d}-icon`]:{display:`none`},[`${d}-header`]:{minHeight:`auto`},[`${t}-panel-arrow`]:{position:`absolute`,top:u(n).mul(-1).equal(),insetInlineStart:`100%`,zIndex:1,height:u(n).mul(2).add(`100%`).equal(),width:p(`item-base-width`),overflow:`visible`,strokeLinecap:`round`,path:{fill:p(`panel-bg-color`),stroke:p(`panel-border-color`),strokeWidth:n,vectorEffect:`non-scaling-stroke`,transition:`fill ${a}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:`none`},[d]:{padding:p(`panel-padding`),background:p(`panel-bg-color`),position:`relative`,borderBlock:m,"&:not(:first-child)":{paddingInlineStart:`calc(${p(`panel-padding`)} + ${p(`item-base-width`)})`},"&:first-child":{borderInlineStart:m,borderStartStartRadius:p(`item-border-radius`),borderEndStartRadius:p(`item-border-radius`)},"&:last-child":{borderInlineEnd:m,borderStartEndRadius:p(`item-border-radius`),borderEndEndRadius:p(`item-border-radius`)},"&-active":{background:p(`panel-active-bg-color`),borderColor:p(`panel-active-border-color`),[`${t}-panel-arrow`]:{path:{fill:p(`panel-active-bg-color`),stroke:p(`panel-active-border-color`)}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:p(`item-icon-active-text-color`)}}}},{[`&${t}-small`]:{[f(`panel-padding`)]:o,[f(`item-border-radius`)]:i}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${$(n)} 0`,`calc(100% + ${p(`item-base-width`)}) 0`,`calc(100% + ${p(`item-base-width`)}) 100%`,`${$(n)} 100%`,`calc(${p(`item-base-width`)} + ${$(n)}) 50%`].join(`,`)})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:u(n).div(2).mul(-1).equal(),height:u(n).add(`100%`).equal()}}}]}},wW=e=>{let{calc:t,antCls:n,componentCls:r,lineWidthBold:i,motionDurationSlow:a}=e,o=`${r}-item`,[s,c]=hd(n,`cmp-steps`),l=t(i).add(i).equal();return{[`${r}${r}-with-progress`]:{[s(`item-wrapper-padding-top`)]:l,[`${o}${o}-process`]:{[`${o}-icon`]:{position:`relative`}},[`${o}-progress-icon`]:{"&-svg":{[s(`svg-size`)]:t(l).mul(2).add(c(`icon-size`)).equal(),[s(`icon-size-ptg-unitless`)]:`calc(100 / tan(atan2(${c(`svg-size`)}, 1px)))`,fontSize:c(`svg-size`),lineHeight:c(`icon-size-ptg-unitless`),position:`absolute`,inset:t(l).mul(-1).equal(),width:`auto`,height:`auto`},"&-circle":{lineHeight:c(`icon-size-ptg-unitless`),strokeWidth:t(c(`icon-size-ptg-unitless`)).mul(i).equal(),[s(`progress-radius`)]:t(c(`svg-size`)).sub(i).mul(c(`icon-size-ptg-unitless`)).div(2).equal(),r:c(`progress-radius`),fill:`none`,cx:50,cy:50,transition:`all ${a} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},TW=e=>{let{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:a,lineWidthBold:o,fontSizeSM:s,antCls:c}=e,l=`${t}-item`,[u,d]=hd(c,`cmp-steps`);return{[`${t}${t}-dot`]:{[u(`icon-size-active`)]:i,[u(`icon-size`)]:r,[u(`dot-icon-size`)]:r,[u(`dot-icon-border-width`)]:o,[u(`rail-size`)]:o,[u(`icon-border-width`)]:o,[`${l}-custom ${l}-icon`]:{fontSize:s},[`${l}-icon`]:{position:`relative`,"&:after":{content:`""`,width:n,height:n,display:`block`,position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`}},[`${l}-active ${l}-icon`]:{[u(`icon-size`)]:d(`icon-size-active`)},[`&${t}-horizontal`]:{[`&, &${t}-small`]:yW(e,a)}}}},EW=e=>{let{componentCls:t,lineWidthBold:n,antCls:r}=e,i=`${t}-item`,[,a]=hd(r,`cmp-steps`);return{[`${t}${t}-rtl`]:{direction:`rtl`,[`&${t}-navigation${t}-horizontal`]:{[`${i}:after`]:{transform:`translateY(-50%) rotate(-45deg)`}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:`scaleX(-1)`},[`&${t}-filled`]:{[i]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${a(`item-base-width`)}) 0px`,`calc(100% - ${$(n)}) 0px`,`calc(100% - ${a(`item-base-width`)} - ${$(n)}) 50%`,`calc(100% - ${$(n)}) 100%`,`calc(0px - ${a(`item-base-width`)}) 100%`].join(`,`)})`}}}}}}},DW=e=>{let{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:a,fontHeight:o,marginSM:s,paddingXS:c,antCls:l}=e,[u]=hd(l,`cmp-steps`);return{[`${t}${t}-small`]:{[u(`icon-size`)]:n,[u(`title-horizontal-item-margin`)]:s,[u(`title-vertical-row-gap`)]:c,[u(`title-font-size`)]:r,[u(`title-line-height`)]:i,[u(`title-horizontal-rail-margin`)]:a,[u(`title-horizontal-title-height`)]:o,[`&${t}-horizontal${t}-title-vertical`]:yW(e,a)}}},OW=`wait`,kW=`process`,AW=`finish`,jW=`error`,MW=e=>{let{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:a,colorError:o,colorErrorHover:s,colorErrorBgFilledHover:c,colorFillTertiary:l,colorErrorBg:u,colorPrimaryBgHover:d,colorPrimaryBg:f,colorText:p,colorTextDescription:m,colorBgContainer:h,colorPrimaryHover:g,lineType:_,antCls:v}=e,y=`${t}-item`,[b,x]=hd(v,`cmp-steps`);return{[t]:[{[y]:{[b(`item-solid-line-color`)]:`#000`,[b(`item-title-color`)]:`#000`,[b(`item-content-color`)]:`#000`,[b(`item-subtitle-color`)]:x(`item-content-color`),[b(`item-icon-custom-color`)]:`#000`,[b(`item-icon-bg-color`)]:`#000`,[b(`item-icon-border-color`)]:`#000`,[b(`item-icon-text-color`)]:`#fff`,[b(`item-icon-dot-color`)]:`#000`,[b(`item-icon-dot-bg-color`)]:x(`item-icon-dot-color`),[b(`item-icon-dot-border-color`)]:x(`item-icon-dot-color`),[b(`item-text-hover-color`)]:`#000`,[b(`item-icon-bg-hover-color`)]:x(`item-icon-bg-color`),[b(`item-icon-border-hover-color`)]:x(`item-icon-border-color`),[b(`item-icon-text-hover-color`)]:x(`item-icon-text-color`),[b(`item-content-active-color`)]:x(`item-content-color`),[b(`item-icon-active-bg-color`)]:x(`item-icon-bg-color`),[b(`item-icon-active-border-color`)]:x(`item-icon-border-color`),[b(`item-icon-active-text-color`)]:x(`item-icon-text-color`),[b(`item-process-rail-line-style`)]:_},[`${y}-rail`]:{borderColor:x(`item-solid-line-color`)},[`${y}-custom ${y}-icon`]:{color:x(`item-icon-custom-color`)},[`${y}-title`]:{color:x(`item-title-color`)},[`${y}-subtitle`]:{color:x(`item-subtitle-color`)},[`${y}-content`]:{color:x(`item-content-color`)},[`${y}-active ${y}-icon`]:{},[`${y}-active ${y}-content`]:{color:x(`item-content-active-color`)},[`${y}[role='button']:not(${y}-active):hover`]:{[`${y}-title, ${y}-content`]:{color:x(`item-text-hover-color`)}},[`&:not(${t}-dot)`]:{[`${y}:not(${y}-custom)`]:{[`${y}-icon`]:{background:x(`item-icon-bg-color`),borderColor:x(`item-icon-border-color`),color:x(`item-icon-text-color`)},[`&[role='button']:not(${y}-active):hover`]:{[`${y}-icon`]:{background:x(`item-icon-bg-hover-color`),borderColor:x(`item-icon-border-hover-color`),color:x(`item-icon-text-hover-color`)}},[`&${y}-active`]:{[`${y}-icon`]:{background:x(`item-icon-active-bg-color`),borderColor:x(`item-icon-active-border-color`),color:x(`item-icon-active-text-color`)}}}},[`&${t}-dot`]:{[`${y}-icon`]:{background:x(`item-icon-dot-bg-color`),borderColor:x(`item-icon-dot-border-color`),color:x(`item-icon-dot-color`),[`&${y}-icon-dot-custom`]:{background:`transparent`,border:`none`}}}},{[`${y}-${OW}`]:{[b(`item-icon-custom-color`)]:n,[b(`item-title-color`)]:m,[b(`item-content-color`)]:m,[b(`item-content-active-color`)]:p,[b(`item-text-hover-color`)]:g},[`${y}-rail-${OW}`]:{[b(`item-solid-line-color`)]:n},[`${y}-${kW}`]:{[b(`item-icon-custom-color`)]:i,[b(`item-title-color`)]:p,[b(`item-content-color`)]:m,[b(`item-content-active-color`)]:p,[b(`item-text-hover-color`)]:g},[`${y}-rail-${kW}`]:{[b(`item-solid-line-color`)]:i,[b(`rail-line-style`)]:x(`item-process-rail-line-style`)},[`${y}-${AW}`]:{[b(`item-icon-custom-color`)]:i,[b(`item-title-color`)]:p,[b(`item-content-color`)]:m,[b(`item-content-active-color`)]:p,[b(`item-text-hover-color`)]:g},[`${y}-rail-${AW}`]:{[b(`item-solid-line-color`)]:i},[`${y}-${jW}`]:{[b(`item-icon-custom-color`)]:o,[b(`item-title-color`)]:o,[b(`item-content-color`)]:o,[b(`item-content-active-color`)]:o,[b(`item-text-hover-color`)]:s},[`${y}-rail-${jW}`]:{[b(`item-solid-line-color`)]:o}},{[`&${t}-filled`]:{[y]:{[b(`item-icon-dot-border-color`)]:`transparent`},[`${y}-${OW}`]:{[b(`item-icon-bg-color`)]:l,[b(`item-icon-border-color`)]:`transparent`,[b(`item-icon-text-color`)]:a,[b(`item-icon-dot-bg-color`)]:n,[b(`item-icon-bg-hover-color`)]:d,[b(`item-icon-border-hover-color`)]:`transparent`,[b(`item-icon-text-hover-color`)]:i,[b(`item-icon-active-bg-color`)]:i,[b(`item-icon-active-border-color`)]:`transparent`,[b(`item-icon-active-text-color`)]:r},[`${y}-${kW}, ${y}-${AW}`]:{[b(`item-icon-bg-color`)]:f,[b(`item-icon-border-color`)]:`transparent`,[b(`item-icon-text-color`)]:i,[b(`item-icon-dot-bg-color`)]:i,[b(`item-icon-bg-hover-color`)]:d,[b(`item-icon-border-hover-color`)]:`transparent`,[b(`item-icon-text-hover-color`)]:i,[b(`item-icon-active-bg-color`)]:i,[b(`item-icon-active-border-color`)]:`transparent`,[b(`item-icon-active-text-color`)]:r},[`${y}-${jW}`]:{[b(`item-icon-bg-color`)]:u,[b(`item-icon-border-color`)]:`transparent`,[b(`item-icon-text-color`)]:o,[b(`item-icon-dot-bg-color`)]:o,[b(`item-icon-bg-hover-color`)]:c,[b(`item-icon-border-hover-color`)]:`transparent`,[b(`item-icon-text-hover-color`)]:o,[b(`item-icon-active-bg-color`)]:o,[b(`item-icon-active-border-color`)]:`transparent`,[b(`item-icon-active-text-color`)]:r}}},{[`&${t}-outlined`]:{[y]:{[b(`item-icon-dot-bg-color`)]:`transparent`},[`${y}-${OW}`]:{[b(`item-icon-bg-color`)]:h,[b(`item-icon-border-color`)]:n,[b(`item-icon-text-color`)]:n,[b(`item-icon-dot-color`)]:n,[b(`item-icon-bg-hover-color`)]:`transparent`,[b(`item-icon-border-hover-color`)]:g,[b(`item-icon-text-hover-color`)]:g,[b(`item-icon-active-bg-color`)]:l},[`${y}-${kW}, ${y}-${AW}`]:{[b(`item-icon-bg-color`)]:h,[b(`item-icon-border-color`)]:i,[b(`item-icon-text-color`)]:i,[b(`item-icon-dot-color`)]:i,[b(`item-icon-bg-hover-color`)]:`transparent`,[b(`item-icon-border-hover-color`)]:g,[b(`item-icon-text-hover-color`)]:g,[b(`item-icon-active-bg-color`)]:f},[`${y}-${jW}`]:{[b(`item-icon-bg-color`)]:h,[b(`item-icon-border-color`)]:o,[b(`item-icon-text-color`)]:o,[b(`item-icon-dot-color`)]:o,[b(`item-icon-bg-hover-color`)]:`transparent`,[b(`item-icon-border-hover-color`)]:s,[b(`item-icon-text-hover-color`)]:s,[b(`item-icon-active-bg-color`)]:u}}}]}},NW=e=>{let{componentCls:t,marginXXS:n,paddingSM:r,controlHeight:i,antCls:a,calc:o}=e,s=`${t}-item`,[c,l]=hd(a,`cmp-steps`);return{[`${t}-vertical`]:{[c(`vertical-rail-margin`)]:o(n).mul(1.5).equal(),flexDirection:`column`,alignItems:`stretch`,[`> ${s}`]:{minHeight:o(i).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${s}-icon`]:{marginInlineStart:`calc((${l(`icon-size-max`)} - ${l(`icon-size`)}) / 2)`},[`${s}-rail`]:{[c(`rail-offset`)]:o(l(`heading-height`)).sub(l(`icon-size`)).div(2).equal(),borderInlineStartWidth:l(`rail-size`),position:`absolute`,top:o(l(`icon-size`)).add(l(`item-wrapper-padding-top`)).add(l(`rail-offset`)).add(l(`vertical-rail-margin`)).equal(),insetInlineStart:o(l(`icon-size-max`)).div(2).equal(),bottom:o(l(`vertical-rail-margin`)).sub(l(`rail-offset`)).equal(),marginInlineStart:`calc(${l(`rail-size`)} / -2)`}}}}},PW=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-item`,[i,a]=hd(n,`cmp-steps`);return{[t]:{[i(`title-font-size`)]:e.fontSizeLG,[i(`title-line-height`)]:e.lineHeightLG,[i(`subtitle-font-size`)]:e.fontSize,[i(`subtitle-line-height`)]:e.lineHeight,[i(`item-wrapper-padding-top`)]:`0px`,[i(`rail-size`)]:e.lineWidth,[i(`rail-line-style`)]:e.lineType,...nd(e),display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[r]:{flex:`none`,position:`relative`},[`${r}-wrapper`]:{display:`flex`,flexWrap:`nowrap`,paddingTop:a(`item-wrapper-padding-top`)},[`${r}-header`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`center`},[`${r}-title`]:{color:e.colorText,fontSize:a(`title-font-size`),lineHeight:a(`title-line-height`),wordBreak:`break-word`},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:`normal`,fontSize:a(`subtitle-font-size`),lineHeight:a(`subtitle-line-height`),marginInlineStart:e.marginXS,wordBreak:`break-word`},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:`break-word`},[`${r}-rail`]:{borderStyle:a(`rail-line-style`),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:td},[`${r}[role='button']:focus-visible`]:od(e),[`${r}[role='button']:not(${r}-active):hover`]:{cursor:`pointer`}}}},FW=fd(`Steps`,e=>{let t=wl(e,{inlineDotSize:6});return[PW(t),gW(t),NW(t),hW(t),bW(t),DW(t),TW(t),MW(t),SW(t),CW(t),_W(t),xW(t),wW(t),EW(t)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:`unset`,descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:`transparent`,finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));function IW(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function LW(e,t,n,r,i){let a=e[n].key??n,o=e[r].key??r,s=e.slice(n+1,r).some(e=>e.status===`error`)?`error`:r-1<t?`finish`:`wait`;return{item:{key:`ellipsis-${a}-${o}`,title:``,icon:x.createElement(mk),status:s,disabled:!0,className:`${i}-item-ellipsis`},originIndex:-1}}function RW(e,t,n){let r=Math.min(Math.max(t,0),e-1),i=Math.min(n,e),a=new Set([0,r,e-1]);for(let t=1;a.size<i&&t<e;t+=1){let n=[r-t,r+t,t,e-1-t];for(let t of n){if(a.size>=i)break;t>=0&&t<e&&a.add(t)}}return Array.from(a).sort((e,t)=>e-t).flatMap((e,t,n)=>t>0&&e-n[t-1]>1?[null,e]:[e])}function zW(e,t,n,r,i){let a=r!==void 0&&r>=3&&e.length>r,o=t-n,s=x.useMemo(()=>{if(!a)return e.map((e,t)=>({item:e,originIndex:t}));let t=RW(e.length,o,r);return t.map((n,r)=>n===null?LW(e,o,t[r-1],t[r+1],i):IW(e[n],n))},[a,o,e,r,i]),c=s.findIndex(e=>e.originIndex===o);return{canApplyMaxCount:a,displaySteps:s,mappedDisplayCurrent:c>=0?c:o,displayItems:s.map(e=>e.item)}}var BW={itemIcon:z_},VW=e=>{let{size:t,className:n,rootClassName:r,style:i,variant:a=`filled`,type:o,classNames:s,styles:c,direction:l,orientation:u,responsive:d=!0,progressDot:f,labelPlacement:p,titlePlacement:m,ellipsis:h,maxCount:g,offset:_=0,items:v,percent:y,current:b=0,initial:S=0,onChange:C,iconRender:w,...T}=e,E=x.useContext(fW),D=No(`steps`),{getPrefixCls:O,direction:k,className:A,style:j}=D,M,N,P={};E?P={root:E.rootComponent,item:E.itemComponent}:{classNames:M,styles:N}=D;let F=O(),I=O(`steps`,e.prefixCls),L=`${I}-item-icon`,[R,z]=FW(I),[B]=hd(F,`cmp-steps`),V=J_(t),H=x.useMemo(()=>(v||[]).filter(Boolean),[v]),{xs:U}=BE(d),W=x.useMemo(()=>o&&o!=="default"?o:f?`dot`:o,[f,o]),ee=W===`inline`,G=W===`dot`||W===`inline`,K=x.useMemo(()=>W===`dot`&&op(f)?f:void 0,[W,f]),q=x.useMemo(()=>W===`panel`?`horizontal`:d&&U||(u||l)===`vertical`?`vertical`:`horizontal`,[u,l,W,d,U]),J=x.useMemo(()=>G||q===`vertical`?q===`vertical`?`horizontal`:`vertical`:o===`navigation`?`horizontal`:m||p||`horizontal`,[G,p,q,m,o]),te=ee?void 0:y,{canApplyMaxCount:Y,displaySteps:ne,mappedDisplayCurrent:X,displayItems:re}=zW(H,b,S,g,I),ie={...e,variant:a,size:V,type:W,orientation:q,titlePlacement:J,current:b,initial:S,percent:te,responsive:d,offset:_,ellipsis:h,maxCount:g},ae=vp(j),oe=vp(i),[se,ce]=bp([BW,M,s],[N,ae,c,oe],{props:ie}),le=(e,t)=>{let{item:n,index:r,active:i,components:{Icon:a}}=t,o=ne[r]?.originIndex,s=o!==void 0&&o>=0?S+o:r,{status:c,icon:l}=n,u=null;if(G||l)u=l;else switch(c){case`finish`:u=x.createElement(hE,{className:`${L}-finish`});break;case`error`:u=x.createElement(nf,{className:`${L}-error`});break;default:{let e=x.createElement(`span`,{className:`${L}-number`},s+1);c===`process`&&te!==void 0&&(e=x.createElement(mW,{prefixCls:I,rootPrefixCls:F,percent:te},e)),u=e}}let d=x.createElement(a,null,u);return w?d=w(d,{index:s,active:i,item:n,components:{Icon:a}}):op(K)&&(d=K(d,{index:s,...n})),d},ue=(e,t)=>{let n=e;return ee&&t.item.content&&(n=x.createElement(gD,{destroyOnHidden:!0,title:t.item.content},e)),x.createElement(q_,{component:`Steps`,disabled:t.item.disabled||!C,colorSource:a===`filled`?`color`:null},n)},de=W===`panel`?e=>x.createElement(x.Fragment,null,e,x.createElement(pW,{prefixCls:I})):void 0,fe={[B(`items-offset`)]:`${_}`},pe=Q(A,`${I}-${a}`,{[`${I}-${W}`]:W!==`dot`&&W,[`${I}-rtl`]:k===`rtl`,[`${I}-dot`]:G,[`${I}-ellipsis`]:h,[`${I}-max-count`]:Y,[`${I}-with-progress`]:te!==void 0,[`${I}-small`]:V===`small`},n,r,R,z),me=e=>{let t=ne[e];C&&t&&t.originIndex>=0&&C(S+t.originIndex)};return x.createElement(dW,{...T,prefixCls:I,className:pe,style:fe,classNames:se,styles:ce,orientation:q,titlePlacement:J,components:P,initial:0,current:X,items:re,onChange:C?me:void 0,iconRender:le,itemRender:ue,itemWrapperRender:de})};function HW(){return HW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HW.apply(this,arguments)}var UW=x.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},m)=>{let[h,g]=ti(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function v(e){e.which===ha.LEFT?_(!1,e):e.which===ha.RIGHT&&_(!0,e),u?.(e)}function y(e){let t=_(!h,e);c?.(t,e)}let b=Q(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return x.createElement(`button`,HW({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:b,ref:m,onKeyDown:v,onClick:y}),a,x.createElement(`span`,{className:`${e}-inner`},x.createElement(`span`,{className:Q(`${e}-inner-checked`,f?.content),style:d?.content},o),x.createElement(`span`,{className:Q(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});UW.displayName=`Switch`;var WW=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=$(c(s).add(c(r).mul(2)).equal()),d=$(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:$(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${$(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},GW=e=>{let{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}}}},KW=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...Rv(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...zv()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${$(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},qW=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=$(c(o).add(c(r).mul(2)).equal()),d=$(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Rv(),[`${l}-checked, ${l}-unchecked`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Rv()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},JW=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...nd(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:$(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Rv(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...sd(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`}}}},YW=fd(`Switch`,e=>{let t=wl(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[JW(t),qW(t),KW(t),GW(t),WW(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Kl(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),XW=x.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,v]=ti(d??f??!1,l??u),{getPrefixCls:y,direction:b,className:S,style:C,classNames:w,styles:T}=No(`switch`),E=x.useContext(ph),D=(i??E)||a,O=y(`switch`,n),[k,A]=YW(O),j=J_(r),M={...e,size:j,disabled:D},N=vp(C),P=vp(c),[F,I]=bp([w,h],[T,N,m,P],{props:M}),L=x.createElement(`div`,{className:Q(`${O}-handle`,F.indicator),style:I.indicator},a&&x.createElement(fg,{className:`${O}-loading-icon`})),R=Q(S,{[`${O}-small`]:j===`small`,[`${O}-loading`]:a,[`${O}-rtl`]:b===`rtl`},o,s,F.root,k,A),z=(...e)=>{v(e[0]),p?.(...e)};return x.createElement(q_,{component:`Switch`,disabled:D},x.createElement(UW,{...g,classNames:F,styles:I,checked:_,onChange:z,prefixCls:O,className:R,style:I.root,disabled:D,ref:t,loadingIcon:L}))});XW.__ANT_SWITCH=!0;var ZW={},QW=`rc-table-internal-hook`;function $W(e){let t=x.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=x.useRef(e);r.current=e;let[i]=x.useState(()=>({getValue:()=>r.current,listeners:new Set}));return Qr(()=>{(0,$a.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),x.createElement(t.Provider,{value:i},n)},defaultValue:e}}function eG(e,t){let n=Yr(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=x.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=x.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=x.useState({});return Qr(()=>{if(!r)return;function e(e){let t=n(e);ka(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function tG(){return tG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tG.apply(this,arguments)}function nG(){let e=x.createContext(null);function t(){return x.useContext(e)}function n(n,r){let i=Di(n),a=(a,o)=>{let s=i?{ref:o}:{},c=x.useRef(0),l=x.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,x.createElement(e.Provider,{value:c.current},x.createElement(n,tG({},a,s)))):x.createElement(n,tG({},a,s))};return i?x.forwardRef(a):a}function r(e,n){let r=Di(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),x.createElement(e,tG({},n,a))};return x.memo(r?x.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:rG,responseImmutable:iG,useImmutableMark:aG}=nG(),{makeImmutable:oG,responseImmutable:sG,useImmutableMark:cG}=nG(),lG=$W(),uG=x.createContext({renderWithProps:!1}),dG=`RC_TABLE_KEY`;function fG(e){return e==null?[]:Array.isArray(e)?e:[e]}function pG(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||fG(i).join(`-`)||dG;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function mG(e){return e!=null}function hG(e){return typeof e==`number`&&!Number.isNaN(e)}function gG(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!x.isValidElement(e)}function _G(e,t,n,r,i,a){let o=x.useContext(uG);return mi(()=>{if(mG(r))return[r];let a=Ha(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);gG(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[cG(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!ka(e,t,!0)})}function vG(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function yG(e,t){return eG(lG,n=>[vG(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function bG(){return bG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bG.apply(this,arguments)}var xG=({ellipsis:e,rowType:t,children:n})=>{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():x.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},SG=x.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:v,fixEnd:y,fixedStartShadow:b,fixedEndShadow:S,offsetFixedStartShadow:C,offsetFixedEndShadow:w,zIndex:T,zIndexReverse:E,appendNode:D,additionalProps:O={},originRowSpan:k,isSticky:A}=e,j=`${a}-cell`,{allColumnsFixedLeft:M,rowHoverable:N}=eG(lG,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=_G(l,d,f,n,u,p),I={},L=typeof v==`number`&&!M,R=typeof y==`number`&&!M,[z,B]=eG(lG,({scrollInfo:e})=>{if(!L&&!R)return[!1,!1];let[t,n]=e;return[(L&&b&&t)-C>=1,(R&&S&&n-t)-w>1]});L&&(I.insetInlineStart=v,I[`--z-offset`]=T,I[`--z-offset-reverse`]=E),R&&(I.insetInlineEnd=y,I[`--z-offset`]=T,I[`--z-offset-reverse`]=E);let V=F?.colSpan??O.colSpan??g??1,H=F?.rowSpan??O.rowSpan??_??1,U=F?.rowSpan??k??H,[W,ee]=yG(m,U),G=Yr(e=>{l&&ee(m,m+U-1),O?.onMouseEnter?.(e)}),K=Yr(e=>{l&&ee(-1,-1),O?.onMouseLeave?.(e)});if(V===0||H===0)return null;let q=O.title??xG({rowType:h,ellipsis:r,children:P}),J=Q(j,o,{[`${j}-fix`]:L||R,[`${j}-fix-start`]:L,[`${j}-fix-end`]:R,[`${j}-fix-start-shadow`]:b,[`${j}-fix-start-shadow-show`]:b&&z,[`${j}-fix-end-shadow`]:S,[`${j}-fix-end-shadow-show`]:S&&B,[`${j}-ellipsis`]:r,[`${j}-with-append`]:D,[`${j}-fix-sticky`]:(L||R)&&A,[`${j}-row-hover`]:!F&&W},O.className,F?.className),te={};c&&(te.textAlign=c);let Y={...F?.style,...I,...te,...O.style,...s},ne=P;return typeof ne==`object`&&!Array.isArray(ne)&&!x.isValidElement(ne)&&(ne=null),r&&(b||S)&&(ne=x.createElement(`span`,{className:`${j}-content`},ne)),x.createElement(t,bG({},F,O,{className:J,style:Y,title:q,scope:i,onMouseEnter:N?G:void 0,onMouseLeave:N?K:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),D,ne)});function CG(e){return e.fixed===`start`}function wG(e){return e.fixed===`end`}function TG(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;CG(i)&&CG(a)?o=r.start[e]:wG(a)&&wG(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!CG(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!wG(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)CG(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)wG(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var EG=x.createContext({});function DG(){return DG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DG.apply(this,arguments)}var OG=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=eG(lG,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=x.useContext(EG),d=n+i-1+1===c?i+1:i,f=x.useMemo(()=>TG(n,n+d-1,u,l),[n,d,u,l]);return x.createElement(SG,DG({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},kG=e=>{let{children:t,...n}=e;return x.createElement(`tr`,n,t)},AG=e=>{let{children:t}=e;return t};AG.Row=kG,AG.Cell=OG;var jG=sG(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=eG(lG,`prefixCls`),a=r.length-1,o=r[a],s=x.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return x.createElement(EG.Provider,{value:s},x.createElement(`tfoot`,{className:`${i}-summary`},t))}),MG=AG;function NG(e){return null}function PG(e){return null}function FG(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o<t[r].length;o+=1)FG(e,t[r][o],n+1,r,i,a,o)}function IG(e,t,n,r){return x.useMemo(()=>{if(n?.size){let i=[];for(let a=0;a<e?.length;a+=1){let o=e[a];FG(i,o,0,t,n,r,a)}return i}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function LG(e,t,n,r){let i=eG(lG,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`forceRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=Yr(l),b=d?.(e,n),x=b?.onClick,S=(t,...n)=>{f&&g&&l(e,t),x?.(t,...n)},C;typeof p==`string`?C=p:typeof p==`function`&&(C=p(e,n,r));let w=pG(a);return{...i,columnsKey:w,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...b,className:Q(C,b?.className),onClick:S}}}var RG=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=eG(lG,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=x.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),x.createElement(r,{className:a,style:{display:o?null:`none`}},x.createElement(SG,{component:i,prefixCls:t,colSpan:s},h))};function zG({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return x.createElement(`span`,{className:Q(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return x.createElement(`span`,{className:Q(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function BG(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function VG(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function HG(){return HG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HG.apply(this,arguments)}function UG(e,t,n,r,i,a=[],o=0){let{record:s,prefixCls:c,columnsKey:l,fixedInfoList:u,expandIconColumnIndex:d,nestExpandable:f,indentSize:p,expandIcon:m,expanded:h,hasNestChildren:g,onTriggerExpand:_,expandable:v,expandedKeys:y}=e,b=l[n],S=u[n],C;n===(d||0)&&f&&(C=x.createElement(x.Fragment,null,x.createElement(`span`,{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:h,expandable:g,record:s,onExpand:_})));let w={...t.onCell?.(s,i)},T;if(o){let{rowSpan:e=1}=w;if(v&&e&&n<o){T=e;let t=e;for(let n=i;n<i+e;n+=1){let e=a[n];y.has(e)&&(t+=1)}w.rowSpan=t}}return{key:b,fixedInfo:S,appendCellNode:C,additionalCellProps:w,originRowSpan:T}}var WG=sG(e=>{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=LG(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:v,expandedRowRender:y,forceRender:b,rowProps:S,expanded:C,rowSupportExpand:w}=h,T=x.useRef(!1);T.current||=C;let E=VG(v,a,o,u),D=x.createElement(d,HG({},S,{"data-row-key":c,className:Q(t,`${g}-row`,`${g}-row-level-${u}`,S?.className,r.row,{[E]:u>=1}),style:{...n,...S?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:v,appendCellNode:y,additionalCellProps:b,originRowSpan:S}=UG(h,e,t,u,o,l,m?.offset);return x.createElement(SG,HG({className:Q(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:b,originRowSpan:S}))})),O;if(w&&(b||T.current||C)){let e=y(a,o,u+1,C);O=x.createElement(RG,{expanded:C,className:Q(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,E),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return x.createElement(x.Fragment,null,D,O)}),GG=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=x.useRef(null);return Qr(()=>{i.current&&n(t,i.current.offsetWidth)},[]),x.createElement(bo,{data:t},x.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},x.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},KG=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=x.useRef(null),{measureRowRender:a}=eG(lG,[`measureRowRender`]),o=x.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},x.createElement(bo.Collection,{onBatchResize:e=>{qi(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=x.isValidElement(t)?x.cloneElement(t,{ref:null}):t;return x.createElement(GG,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},qG=sG(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=eG(lG,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=IG(t,l,c,s),v=x.useMemo(()=>_.map(e=>e.rowKey),[_]),y=x.useRef({renderWithProps:!1}),b=x.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e<p;e+=1)t+=m[e]||0;return{offset:p,colSpan:e,sticky:t}},[o.length,p,m]),S=i([`body`,`wrapper`],`tbody`),C=i([`body`,`row`],`tr`),w=i([`body`,`cell`],`td`),T=i([`body`,`cell`],`th`),E;E=t.length?_.map((e,t)=>{let{record:n,indent:r,index:i,rowKey:a}=e;return x.createElement(WG,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:v,record:n,index:t,renderIndex:i,rowComponent:C,cellComponent:w,scopeCellComponent:T,indent:r,expandedRowInfo:b})}):x.createElement(RG,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:C,cellComponent:w,colSpan:o.length,isEmpty:!0},u);let D=pG(o);return x.createElement(uG.Provider,{value:y.current},x.createElement(S,{style:g.wrapper,className:Q(`${r}-tbody`,h.wrapper)},n&&x.createElement(KG,{prefixCls:r,columnsKey:D,onColumnResize:a,columns:o}),E))}),JG=`RC_TABLE_INTERNAL_COL_DEFINE`;function YG(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function XG(){return XG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XG.apply(this,arguments)}var ZG=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=eG(lG,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[JG],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(x.createElement(`col`,XG({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?x.createElement(`colgroup`,null,a):null};function QG(e,t){return(0,x.useMemo)(()=>{let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(t!==void 0)n[r]=t;else return null}return n},[e.join(`_`),t])}var $G=x.forwardRef((e,t)=>{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:v,maxContentScroll:y,children:b,...S}=e,{prefixCls:C,scrollbarSize:w,isSticky:T,getComponent:E}=eG(lG,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),D=E([`header`,`table`],`table`),O=T&&!f?0:w,k=x.useRef(null),A=x.useCallback(e=>{wi(t,e),wi(k,e)},[]);x.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),v({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${C}-cell-scrollbar`})},N=(0,x.useMemo)(()=>O?[...a,M]:a,[O,a]),P=(0,x.useMemo)(()=>O?[...o,M]:o,[O,o]),F=(0,x.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+O),0],isSticky:T}},[O,u,T]),I=QG(s,l),L=(0,x.useMemo)(()=>{let e=!I||!I.length||I.every(e=>!e);return i||e},[i,I]);return x.createElement(`div`,{style:{overflow:`hidden`,...T?{top:p,bottom:m}:{},...r},ref:A,className:Q(n,{[h]:!!h})},x.createElement(D,{style:{tableLayout:_,minWidth:`100%`,width:g}},L?c:x.createElement(ZG,{colWidths:[...I,O],columCount:l+1,columns:P}),b({...S,stickyOffsets:F,columns:N,flattenColumns:P})))}),eK=x.memo($G);function tK(){return tK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tK.apply(this,arguments)}var nK=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=eG(lG,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=pG(t.map(e=>e.column));return x.createElement(i,tK({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=TG(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return x.createElement(SG,tK({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function rK(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:Q(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e<a;e+=1)r[e].forEach(t=>{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var iK=sG(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=eG(lG,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=x.useMemo(()=>rK(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return x.createElement(f,{className:Q(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>x.createElement(nK,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function aK(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function oK(e,t,n){return x.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=aK(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=aK(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l<a){let e=a/l;o=a,u.forEach((t,n)=>{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function sK(e){return Ba(e).filter(e=>x.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=sK(r)),a})}function cK(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:cK(t)}:e})}function lK(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...lK(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function uK({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},v){let y=x.useMemo(()=>cK((t||sK(n)||[]).slice()),[t,n]),b=x.useMemo(()=>{if(r){let t=y.slice();if(!t.includes(ZW)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?y.length:e;n>=0&&t.splice(n,0,ZW)}let n=t.indexOf(ZW);t=t.filter((e,t)=>e!==ZW||t===n);let r=y[n],f;f=h||(r?r.fixed:null);let g={[JG]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:!l||l(n),record:n,onExpand:s});return p?x.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===ZW?g:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return y.filter(e=>e!==ZW)},[r,y,o,i,c,f,d]),S=x.useMemo(()=>{let e=b;return v&&(e=v(e)),e.length||(e=[{render:()=>null}]),e},[v,b,f]),[C,w]=oK(x.useMemo(()=>lK(S),[S,f,g]),g,_);return[S,C,w]}function dK(e,t,n){let r=YG(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||zG,p=d||`children`,m=x.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=x.useState(()=>o||(s?BG(t,n,p):[])),_=x.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,x.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function fK(e,t){let n=x.useMemo(()=>e.map((n,r)=>TG(r,r,e,t)),[e,t]);return mi(()=>n,[n],(e,t)=>!ka(e,t))}function pK(e){let t=(0,x.useRef)(e),[,n]=(0,x.useState)({}),r=(0,x.useRef)(null),i=(0,x.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,x.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function mK(e){let t=(0,x.useRef)(e||null),n=(0,x.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,x.useEffect)(()=>r,[]),[i,a]}function hK(){let[e,t]=x.useState(-1),[n,r]=x.useState(-1);return[e,n,x.useCallback((e,n)=>{t(e),r(n)},[])]}var gK=Xr()?window:null;function _K(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>gK}=typeof e==`object`?e:{},o=a()||gK,s=!!e;return x.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function vK(e,t){return(0,x.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var yK=e=>{let{children:t,className:n,style:r}=e;return x.createElement(`div`,{className:n,style:r},t)};function bK(e){let t=Ki(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var xK=`mouseup`,SK=`mousemove`,CK=`scroll`,wK=`resize`,TK=x.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=eG(lG,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=x.useRef(null),[f,p]=pK({scrollLeft:0,isHiddenScrollBar:!0}),m=x.useRef({delta:0,x:0}),[h,g]=x.useState(!1),_=x.useRef(null);x.useEffect(()=>()=>{si.cancel(_.current)},[]);let v=()=>{g(!1)},y=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},b=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),m.current.x=e.pageX)},S=()=>{si.cancel(_.current),_.current=si(()=>{if(!n.current)return;let e=bK(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:bK(a).top+a.clientHeight;t-va()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},C=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return x.useImperativeHandle(t,()=>({setScrollLeft:C,checkScrollBarVisible:S})),x.useEffect(()=>(document.body.addEventListener(xK,v,!1),document.body.addEventListener(SK,b,!1),S(),()=>{document.body.removeEventListener(xK,v),document.body.removeEventListener(SK,b)}),[u,h]),x.useEffect(()=>{if(n.current){let e=[],t=Ki(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(CK,S,!1)}),window.addEventListener(wK,S,!1),window.addEventListener(CK,S,!1),a.addEventListener(CK,S,!1),()=>{e.forEach(e=>{e.removeEventListener(CK,S)}),window.removeEventListener(wK,S),window.removeEventListener(CK,S),a.removeEventListener(CK,S)}}},[a]),x.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:x.createElement(`div`,{style:{height:va(),width:l,bottom:i},className:`${s}-sticky-scroll`},x.createElement(`div`,{onMouseDown:y,ref:d,className:Q(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function EK(){return EK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EK.apply(this,arguments)}var DK=`rc-table`,OK=[],kK={};function AK(){return`No Data`}var jK=x.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:DK,emptyText:AK,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:v,showHeader:y,components:b,emptyText:S,onRow:C,onHeaderRow:w,measureRowRender:T,onScroll:E,internalHooks:D,transformColumns:O,internalRefs:k,tailor:A,getContainerWidth:j,sticky:M,rowHoverable:N=!0}=n,P=l||OK,F=!!P.length,I=D===QW,L=x.useCallback((e,t)=>Ha(b,e)||t,[b]),R=x.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),z=L([`body`]),[B,V,H]=hK(),[U,W,ee,G,K,q]=dK(n,P,R),J=d?.x,[te,Y]=x.useState(0),[ne,X,re]=uK({...n,...U,expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:ee,getRowKey:R,onTriggerExpand:q,expandIcon:G,expandIconColumnIndex:U.expandIconColumnIndex,direction:p,scrollWidth:I&&A&&typeof J==`number`?J:null,clientWidth:te},I?O:null),ie=re??J,ae=x.useMemo(()=>({columns:ne,flattenColumns:X}),[ne,X]),oe=x.useRef(null),se=x.useRef(null),ce=x.useRef(null),le=x.useRef(null);x.useImperativeHandle(t,()=>({nativeElement:oe.current,scrollTo:e=>{if(ce.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if(hG(n))ce.current?.scrollTo({top:n});else{let e=r??R(P[t]),n=ce.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=ce.current;e.scrollTo({top:e.scrollTop+i})}}}else ce.current?.scrollTo&&ce.current.scrollTo(e)}}));let ue=x.useRef(null),[de,fe]=x.useState(!1),[pe,me]=x.useState(!1),[he,ge]=x.useState(new Map),_e=pG(X).map(e=>he.get(e)),ve=x.useMemo(()=>_e,[_e.join(`_`)]),ye=vK(ve,X),be=d&&mG(d.y),xe=d&&mG(ie)||!!U.fixed,Se=xe&&X.some(({fixed:e})=>e),Ce=x.useRef(null),{isSticky:we,offsetHeader:Te,offsetSummary:Ee,offsetScroll:De,stickyClassName:Oe,container:ke}=_K(M,r),Ae=x.useMemo(()=>g?.(P),[g,P]),je=(be||we)&&x.isValidElement(Ae)&&Ae.type===AG&&Ae.props.fixed,Me,Ne,Pe;be&&(Ne={overflowY:F?`scroll`:`auto`,maxHeight:d.y}),xe&&(Me={overflowX:`auto`},be||(Ne={overflowY:`hidden`}),Pe={width:ie===!0?`auto`:ie,minWidth:`100%`});let Fe=x.useCallback((e,t)=>{ge(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Ie,Le]=mK(null),[Re]=x.useState(()=>new WeakMap);function ze(e,t){if(!t)return;if(typeof t==`function`){t(e);return}let n=Re.get(t);if(n&&clearTimeout(n),t.scrollLeft!==e){t.scrollLeft=e;let n=setTimeout(()=>{t.scrollLeft!==e&&(t.scrollLeft=e)},0);Re.set(t,n)}}let[Be,Ve]=x.useState([0,0]),He=Yr(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||kK;(!Le()||Le()===r)&&(Ie(r),ze(n,se.current),ze(n,ce.current),ze(n,ue.current),ze(n,Ce.current?.setScrollLeft));let i=e||se.current;if(i){let e=I&&A&&typeof ie==`number`?ie:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(Ve(n=>{let i=[r,e-t];return ka(n,i)?n:i}),e===t){fe(!1),me(!1);return}fe(r>0),me(r<e-t-1)}}),Ue=Yr(e=>{He(e),E?.(e)}),We=()=>{xe&&ce.current?He({currentTarget:Ki(ce.current),scrollLeft:ce.current?.scrollLeft}):(fe(!1),me(!1))},Ge=e=>{Ce.current?.checkScrollBarVisible();let t=e??oe.current?.offsetWidth??0;I&&j&&oe.current&&(t=j(oe.current,t)||t),t!==te&&(We(),Y(t))};Qr(()=>{xe&&Ge()},[xe]);let Ke=x.useRef(!1);x.useEffect(()=>{Ke.current&&We()},[xe,l,ne.length]),x.useEffect(()=>{Ke.current=!0},[]);let[qe,Je]=x.useState(0);Qr(()=>{(!A||!I)&&(ce.current instanceof Element?Je(ya(ce.current).width):Je(ya(le.current).width))},[]),x.useEffect(()=>{I&&k&&(k.body.current=ce.current)});let Ye=x.useCallback(e=>x.createElement(x.Fragment,null,x.createElement(iK,e),je===`top`&&x.createElement(jG,e,Ae)),[je,Ae]),Xe=x.useCallback(e=>x.createElement(jG,e,Ae),[Ae]),Ze=L([`table`],`table`),Qe=x.useMemo(()=>f||(Se?ie===`max-content`?`auto`:`fixed`:be||we||X.some(({ellipsis:e})=>e)?`fixed`:`auto`),[be,Se,X,f,we]),$e,et={colWidths:ve,columCount:X.length,stickyOffsets:ye,onHeaderRow:w,fixHeader:be,scroll:d},tt=x.useMemo(()=>F?null:typeof S==`function`?S():S,[F,S]),nt=x.createElement(qG,{data:P,measureColumnWidth:be||xe||we}),rt=x.createElement(ZG,{colWidths:X.map(({width:e})=>e),columns:X}),it=_==null?void 0:x.createElement(`caption`,{className:`${r}-caption`},_),at=Ra(n,{data:!0}),ot=Ra(n,{aria:!0});if(be||we){let e;typeof z==`function`?(e=z(P,{scrollbarSize:qe,ref:ce,onScroll:He}),et.colWidths=X.map(({width:e},t)=>{let n=t===X.length-1?e-qe:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=x.createElement(`div`,{style:{...Me,...Ne},onScroll:Ue,ref:ce,className:`${r}-body`},x.createElement(Ze,EK({style:{...Pe,tableLayout:Qe}},ot),it,rt,nt,!je&&Ae&&x.createElement(jG,{stickyOffsets:ye,flattenColumns:X},Ae)));let t={noData:!P.length,maxContentScroll:xe&&ie===`max-content`,...et,...ae,direction:p,stickyClassName:Oe,scrollX:ie,tableLayout:Qe,onScroll:He};$e=x.createElement(x.Fragment,null,y!==!1&&x.createElement(eK,EK({},t,{stickyTopOffset:Te,className:`${r}-header`,ref:se,colGroup:rt}),Ye),e,je&&je!==`top`&&x.createElement(eK,EK({},t,{stickyBottomOffset:Ee,className:`${r}-summary`,ref:ue,colGroup:rt}),Xe),we&&ce.current&&ce.current instanceof Element&&x.createElement(TK,{ref:Ce,offsetScroll:De,scrollBodyRef:ce,onScroll:He,container:ke,direction:p}))}else $e=x.createElement(`div`,{style:{...Me,...Ne,...c?.content},className:Q(`${r}-content`,s?.content),onScroll:He,ref:ce},x.createElement(Ze,EK({style:{...Pe,tableLayout:Qe}},ot),it,rt,y!==!1&&x.createElement(iK,EK({},et,ae)),nt,Ae&&x.createElement(jG,{stickyOffsets:ye,flattenColumns:X},Ae)));let st={...o};we&&(st[`--columns-count`]=X.length);let ct=x.createElement(`div`,EK({className:Q(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:xe,[`${r}-fix-end-shadow`]:xe,[`${r}-fix-start-shadow-show`]:xe&&de,[`${r}-fix-end-shadow-show`]:xe&&pe,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:be,[`${r}-fixed-column`]:Se,[`${r}-scroll-horizontal`]:xe,[`${r}-has-fix-start`]:X[0]?.fixed,[`${r}-has-fix-end`]:X[X.length-1]?.fixed===`end`}),style:st,id:v,ref:oe},at),m&&x.createElement(yK,{className:Q(`${r}-title`,s?.title),style:c?.title},m(P)),x.createElement(`div`,{ref:le,className:Q(`${r}-container`,s?.section),style:c?.section},$e),h&&x.createElement(yK,{className:Q(`${r}-footer`,s?.footer),style:c?.footer},h(P)));xe&&(ct=x.createElement(bo,{onResize:({offsetWidth:e})=>Ge(e)},ct));let lt=fK(X,ye),ut=x.useMemo(()=>({scrollX:ie,scrollInfo:Be,classNames:s,styles:c,prefixCls:r,getComponent:L,scrollbarSize:qe,direction:p,fixedInfoList:lt,isSticky:we,componentWidth:te,fixHeader:be,fixColumn:Se,horizonScroll:xe,tableLayout:Qe,rowClassName:a,expandedRowClassName:U.expandedRowClassName,expandIcon:G,expandableType:W,expandRowByClick:U.expandRowByClick,expandedRowRender:U.expandedRowRender,forceRender:U.forceRender??!1,expandedRowOffset:U.expandedRowOffset,onTriggerExpand:q,expandIconColumnIndex:U.expandIconColumnIndex,indentSize:U.indentSize,allColumnsFixedLeft:X.every(e=>e.fixed===`start`),emptyNode:tt,columns:ne,flattenColumns:X,onColumnResize:Fe,colWidths:ve,hoverStartRow:B,hoverEndRow:V,onHover:H,rowExpandable:U.rowExpandable,onRow:C,getRowKey:R,expandedKeys:ee,childrenColumnName:K,rowHoverable:N,measureRowRender:T}),[ie,Be,s,c,r,L,qe,p,lt,we,te,be,Se,xe,Qe,a,U.expandedRowClassName,G,W,U.expandRowByClick,U.expandedRowRender,U.forceRender,U.expandedRowOffset,q,U.expandIconColumnIndex,U.indentSize,tt,ne,X,Fe,ve,B,V,H,U.rowExpandable,C,R,ee,K,N,T]);return x.createElement(lG.Provider,{value:ut},ct)}),MK=e=>oG(jK,e),NK=MK();NK.EXPAND_COLUMN=ZW,NK.INTERNAL_HOOKS=QW,NK.Column=NG,NK.ColumnGroup=PG,NK.Summary=MG;var PK=$W(null),FK=$W(null);function IK(){return IK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IK.apply(this,arguments)}function LK(e,t,n){return n[e+(t||1)]-(n[e]||0)}var RK=e=>{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=eG(FK,[`columnsOffset`]),{key:v,fixedInfo:y,appendCellNode:b,additionalCellProps:S,originRowSpan:C}=UG(t,n,r,i,a),{style:w,colSpan:T=1,rowSpan:E=1}=S,D=LK(r-1,T,_),O=T>1?g-D:0,k={...w,...l,flex:`0 0 ${D}px`,width:`${D}px`,marginRight:O,pointerEvents:`auto`},A=x.useMemo(()=>d?E<=1:T===0||E===0||E>1,[E,T,d]);A?k.visibility=`hidden`:d&&(k.height=f?.(E));let j=A?()=>null:p,M={};return(E===0||T===0)&&(M.rowSpan=1,M.colSpan=1),x.createElement(SG,IK({className:Q(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:v,record:c,index:a,renderIndex:s,dataIndex:m,render:j,shouldCellUpdate:n.shouldCellUpdate},y,{appendNode:b,originRowSpan:C,additionalProps:{...S,style:k,...M}}))};function zK(){return zK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zK.apply(this,arguments)}var BK=sG(x.forwardRef((e,t)=>{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_,classNames:v,styles:y}=eG(lG,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:b}=eG(PK,[`getComponent`]),S=LG(u,a,r,d),C=b([`body`,`row`],`div`),w=b([`body`,`cell`],`div`),{rowSupportExpand:T,expanded:E,rowProps:D,expandedRowRender:O,expandedRowClassName:k,forceRender:A}=S,j=VG(k,u,r,d),M;if(!s&&T&&(A||E)){let e=O(u,r,d+1,E),t={};g&&(t={style:{"--virtual-width":`${_}px`}});let n=`${h}-expanded-row-cell`;M=x.createElement(C,{className:Q(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,j),style:{display:E?void 0:`none`}},x.createElement(SG,{component:w,prefixCls:h,className:Q(n,{[`${n}-fixed`]:g}),additionalProps:t},e))}let N={...o,width:p};s&&(N.position=`absolute`,N.pointerEvents=`none`);let P=x.createElement(C,zK({},D,l,{"data-row-key":a,ref:T?null:t,className:Q(i,`${h}-row`,D?.className,v?.body?.row,{[j]:d>=1,[`${h}-row-extra`]:s}),style:{...N,...D?.style,...y?.body?.row}}),m.map((e,t)=>x.createElement(RK,{key:t,className:v?.body?.cell,style:y?.body?.cell,component:w,rowInfo:S,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return T?x.createElement(`div`,{ref:t},P,M):P})),VK={start:`top`,end:`bottom`,nearest:`auto`},HK=sG(x.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=eG(lG,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=eG(PK),_=x.useRef(null),v=IG(n,l,s,o),y=x.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),b=x.useMemo(()=>y.map(e=>e[2]),[y]);x.useEffect(()=>{y.forEach(([e,t])=>{a(e,t)})},[y]),x.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{align:t,offset:n,...r}=e,i=VK[t]??(n?`top`:`auto`);_.current?.scrollTo({...r,offset:n,align:i})},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=v[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;e<v.length;e+=1)if(l=l.filter(t=>S(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)v[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=v[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=v[i];if(!a||!a.record){let e=Math.min(i,v.length-1),t=v[e],a=o(t.record,e),s=r(n,a);return s.bottom-s.top}let s=o(a.record,i),c=r(n,s);return c.bottom-c.top},s=r(n);return x.createElement(BK,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=x.useMemo(()=>({columnsOffset:b}),[b]),T=`${c}-tbody`,E=h([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),x.createElement(FK.Provider,{value:w},x.createElement(xT,{fullHeight:!1,ref:_,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:v,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return x.createElement(BK,{data:e,rowKey:r,index:t,style:n.style})}))}));function UK(){return UK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UK.apply(this,arguments)}var WK=(e,t)=>{let{ref:n,onScroll:r}=t;return x.createElement(HK,{ref:n,data:e,onScroll:r})},GK=x.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=DK,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=Yr((e,t)=>Ha(l,e)||t),m=Yr(u),h=x.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return x.createElement(PK.Provider,{value:h},x.createElement(NK,UK({},e,{className:Q(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?WK:void 0},columns:r,internalHooks:QW,tailor:!0,ref:t})))}),KK=e=>oG(GK,e);KK();var qK=e=>null,JK=e=>null,YK={},XK=`SELECT_ALL`,ZK=`SELECT_INVERT`,QK=`SELECT_NONE`,$K=[],eq=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),ap(t)&&e in t&&eq(e,t[e],n)}),n),tq=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:b,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:E,childrenColumnName:D,locale:O,getPopupContainer:k}=e,A=io(`Table`),[j,M]=Tg(e=>e),[N,P]=ti(i||$K,r),F=N??$K,I=x.useRef(new Map),L=(0,x.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&I.current.has(e)&&(n=I.current.get(e)),t.set(e,n)}),I.current=t}},[w,n]);x.useEffect(()=>{L(F)},[F,L]);let R=(0,x.useMemo)(()=>eq(D,C),[D,C]),{keyEntities:z}=(0,x.useMemo)(()=>{if(y)return{keyEntities:null};let e=S;if(n){let t=new Set(R.map(T)),n=Array.from(I.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(Do(e),Do(n))}return FF(e,{externalGetKey:T,childrenPropName:D})},[S,T,y,D,n,R]),B=(0,x.useMemo)(()=>{let e=new Map;return R.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[R,T,a]),V=(0,x.useCallback)(e=>{let t=T(e),n;return n=B.has(t)?B.get(T(e)):a?a(e):void 0,!!n?.disabled},[B,T]),[H,U]=(0,x.useMemo)(()=>{if(y)return[F,[]];let{checkedKeys:e,halfCheckedKeys:t}=_I(F,!0,z,V);return[e||[],t]},[F,y,z,V]),W=(0,x.useMemo)(()=>{let e=m===`radio`?H.slice(0,1):H;return new Set(e)},[H,m]),ee=(0,x.useMemo)(()=>m===`radio`?new Set:new Set(U),[U,m]);x.useEffect(()=>{t||P($K)},[!!t]);let G=(0,x.useCallback)((e,t)=>{let r,i;L(e),n?(r=e,i=e.map(e=>I.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),P(r),s?.(r,i,{type:t})},[P,w,s,n]),K=(0,x.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}G(n,`single`)},[c,w,G]),q=(0,x.useMemo)(()=>!h||v?null:(h===!0?[XK,ZK,QK]:h).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:O.selectionAll,onSelect(){G(S.reduce((e,t,n)=>{let r=T(t,n);return(!V(t)||W.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:O.selectInvert,onSelect(){let e=new Set(W);C.forEach((t,n)=>{let r=T(t,n);B.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(A.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),G(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:O.selectNone,onSelect(){d?.(),G(Array.from(W).filter(e=>B.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),M(null)}}}),[h,v,O.selectionAll,O.selectInvert,O.selectNone,B,V,W,S,C,T,u,G]);return[(0,x.useCallback)(e=>{if(!t)return e.filter(e=>e!==YK);let n=Do(e),r=new Set(W),i=R.reduce((e,t,n)=>{let r=T(t,n);return B.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),G(t,`all`),M(null)},u,d;if(m!==`radio`){let e;if(q){let t={getPopupContainer:k,items:q.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=x.createElement(`div`,{className:`${b}-selection-extra`},x.createElement(Iz,{menu:t,getPopupContainer:k},x.createElement(`span`,null,x.createElement(vE,null))))}let t=R.reduce((e,t,n)=>{let i=T(t,n),a=B.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===R.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=x.createElement(kI,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!R.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(R.length===0||n),skipGroup:!0}),u=!v&&x.createElement(`div`,{className:`${b}-selection`},d,e)}let S;S=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=B.get(i),s=`Select row ${n+1}`;return{node:x.createElement(dN,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||K(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=ee.has(a),c=B.get(a),l;l=E===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:x.createElement(kI,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=W.size>0&&i.some(e=>W.has(e));if(n&&y&&l){let e=j(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),G(t,`multiple`)}else{let e=H;if(y){let n=o?rI(e,a):iI(e,a);K(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=_I([].concat(Do(e),[a]),!0,z,V),i=n;if(o){let e=new Set(n);e.delete(a),i=_I(Array.from(e),{checked:!1,halfCheckedKeys:r},z,V).checkedKeys}K(a,!o,i,t)}}M(o?null:s),c?.onChange?.(e)}}),checked:o}};let C=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(YK)){if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,YK].concat(Do(t))}else n=[YK].concat(Do(n))}let D=n.indexOf(YK);n=n.filter((e,t)=>e!==YK||t===D);let O=n[D-1],A=n[D+1],N=g;N===void 0&&(A?.fixed===void 0?O?.fixed!==void 0&&(N=O.fixed):N=A.fixed),N&&O&&O.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&O.fixed===void 0&&(O.fixed=N);let P=Q(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:N,width:p,className:`${b}-selection-column`,title:t?.columnTitle?op(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:C,onCell:t.onCell,align:t.align,[JG]:{className:P}};return n.map(e=>e===YK?F:e)},[T,R,t,H,W,ee,p,q,E,B,f,K,V]),W]};function nq(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return x.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:Q(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}var rq=e=>{let t={};for(let[n,r]of Object.entries(e))tp(r)&&(t[n]=r);return t},iq=(e,t)=>x.useMemo(()=>({...e,filters:rq(t)}),[e,t]);function aq(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var oq=(e,t)=>x.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===YK||e===ZW?e:`children`in e&&Array.isArray(e.children)?{...Va(t,e),children:n(e.children)}:Va(Na(t,[`children`]),e));return n(e)},[e,t]),sq=(e,t)=>`key`in e&&tp(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function cq(e,t){return t?`${t}-${e}`:`${e}`}var lq=(e,t)=>op(e)?e(t):e,uq=(e,t)=>{let n=lq(e,t);return ap(n)||Array.isArray(n)?``:n},dq=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`},fq=(e,t)=>{if(e)return e;if(t===`small`||t===`medium`)return`small`},pq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function mq(){return mq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mq.apply(this,arguments)}var hq=x.forwardRef((e,t)=>x.createElement(qd,mq({},e,{ref:t,icon:pq.default}))),gq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function _q(){return _q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_q.apply(this,arguments)}var vq=x.forwardRef((e,t)=>x.createElement(qd,_q({},e,{ref:t,icon:gq.default}))),yq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function bq(){return bq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bq.apply(this,arguments)}var xq=x.forwardRef((e,t)=>x.createElement(qd,bq({},e,{ref:t,icon:yq.default}))),Sq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function Cq(){return Cq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cq.apply(this,arguments)}var wq=x.forwardRef((e,t)=>x.createElement(qd,Cq({},e,{ref:t,icon:Sq.default}))),Tq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function Eq(){return Eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eq.apply(this,arguments)}var Dq=x.forwardRef((e,t)=>x.createElement(qd,Eq({},e,{ref:t,icon:Tq.default}))),Oq=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${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 ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),kq=new Gc(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),Aq=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),jq=(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:`${$(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),Mq=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...nd(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...od(t)}}},[`${n}-list-scrollbar`]:{cursor:`pointer`,"&:hover":{backgroundColor:t.colorFillQuaternary}},[`${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:`${$(t.lineWidth)} ${t.lineType} ${t.colorPrimary}`,opacity:0,animationName:kq,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:$(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...Aq(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,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(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEnd:`${$(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`${$(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...jq(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,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(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`${$(t.lineWidth)} ${t.lineType} ${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:`${$(t.calc(a).div(2).equal())} !important`}}}},Nq=(e,t,n=!0)=>{let r=`.${e}`,i=wl(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[Mq(e,i),n&&Oq(i)].filter(Boolean)},Pq=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Fq=fd(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:wI(`${t}-checkbox`,e)},Nq(t,e),mv(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...Pq(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),Iq=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4}return x.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},Lq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function Rq(){return Rq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rq.apply(this,arguments)}var zq=x.forwardRef((e,t)=>x.createElement(qd,Rq({},e,{ref:t,icon:Lq.default}))),Bq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function Vq(){return Vq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vq.apply(this,arguments)}var Hq=x.forwardRef((e,t)=>x.createElement(qd,Vq({},e,{ref:t,icon:Bq.default}))),Uq=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function Wq(){return Wq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wq.apply(this,arguments)}var Gq=x.forwardRef((e,t)=>x.createElement(qd,Wq({},e,{ref:t,icon:Uq.default}))),Kq=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return x.isValidElement(a)?a:x.createElement(fg,{className:`${t}-switcher-loading-icon`});let l;if(ap(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=op(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return x.isValidElement(e)?ch(e,{className:Q(e.props?.className,n)}):e}return l?x.createElement(vq,{className:`${t}-switcher-line-icon`}):x.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=op(n)?n(r):n;return x.isValidElement(d)?ch(d,{className:Q(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?x.createElement(Hq,{className:`${t}-switcher-line-icon`}):x.createElement(Gq,{className:`${t}-switcher-line-icon`}):x.createElement(zq,{className:u}):d},qq=x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=No(`tree`),{virtual:c}=x.useContext(Ao),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:v=!0,draggable:y,disabled:b,motion:S,style:C,rootClassName:w,rootStyle:T,classNames:E,styles:D,icon:O}=e,k=x.useContext(ph),A=b??k,j=n(`tree`,l),M=n(),N=S??{...I_(M),motionAppear:!1},P={...e,showIcon:d,blockNode:h,checkable:_,selectable:v,disabled:A,motion:N},F=vp(T),[I,L]=bp([o,E],[s,F,D],{props:P}),R={...P,showLine:!!f,icon:O,dropIndicatorRender:Iq},[z,B]=Fq(j),[,V]=ed(),H=V.paddingXS/2+(V.Tree?.titleHeight||V.controlHeightSM),U=x.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case`function`:e.nodeDraggable=y;break;case`object`:e={...y}}return e.icon!==!1&&(e.icon=e.icon||x.createElement(Dq,null)),e},[y]),W=e=>x.createElement(Kq,{prefixCls:j,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return x.createElement(SI,{itemHeight:H,ref:t,virtual:c,...R,prefixCls:j,className:Q({[`${j}-icon-hide`]:!d,[`${j}-block-node`]:h,[`${j}-unselectable`]:!v,[`${j}-rtl`]:r===`rtl`,[`${j}-disabled`]:A},i,u,z,B),style:{...a,...C},rootClassName:Q(I.root,w),rootStyle:L.root,classNames:I,styles:L,direction:r,checkable:_&&x.createElement(`span`,{className:`${j}-checkbox-inner`}),selectable:v,switcherIcon:W,draggable:U},g)}),Jq=0,Yq=1,Xq=2;function Zq(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&Zq(o||[],t,n)}e.forEach(a)}function Qq({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=Jq;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return Zq(e,e=>{if(o===Xq)return!1;if(s(e)){if(a.push(e),o===Jq)o=Yq;else if(o===Yq)return o=Xq,!1}else o===Yq&&a.push(e);return t.includes(e)},jF(i)),a}function $q(e,t,n){let r=Do(t),i=[];return Zq(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},jF(n)),i}function eJ(e){let{isLeaf:t,expanded:n}=e;return t?x.createElement(vq,null):n?x.createElement(xq,null):x.createElement(wq,null)}function tJ({treeData:e,children:t}){return e||MF(t)}var nJ=x.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i,...a}=e,o=x.useRef(null),s=x.useRef(null),c=()=>{let{keyEntities:e}=FF(tJ(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?fI(o,e):o,t},[l,u]=x.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=x.useState(()=>c());x.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),x.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=tJ(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=$q(f,g,r)):n&&h?(g=Array.from(new Set([].concat(Do(s.current||[]),Do(Qq({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=$q(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=$q(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=x.useContext(Ao),{prefixCls:_,className:v,showIcon:y=!0,expandAction:b=`click`,...S}=a,C=h(`tree`,_),w=Q(`${C}-directory`,{[`${C}-directory-rtl`]:g===`rtl`},v);return x.createElement(qq,{icon:eJ,ref:t,blockNode:!0,...S,showIcon:y,expandAction:b,prefixCls:C,className:w,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),rJ=qq;rJ.DirectoryTree=nJ,rJ.TreeNode=UF,rJ.useTree=xI;var iJ=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?x.createElement(`div`,{className:`${r}-filter-dropdown-search`},x.createElement(fR,{prefix:x.createElement(xE,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},aJ=e=>{let{keyCode:t}=e;t===ha.ENTER&&e.stopPropagation()},oJ=x.forwardRef((e,t)=>x.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:aJ,ref:t,role:`presentation`},e.children));function sJ(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Do(t),Do(sJ(n))))}),t}function cJ(e){return e.some(({children:e})=>e)}var lJ=(e,t)=>typeof t==`string`||rp(t)?t.toString().toLowerCase().includes(e):!1,uJ=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:uJ({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?kI:dN,u={key:e.value===void 0?t:c,label:x.createElement(x.Fragment,null,x.createElement(l,{checked:r.includes(c)}),x.createElement(`span`,null,e.text))};return o?op(s)?s(o,e)?u:null:lJ(o,e.text)?u:null:u})};function dJ(e){return e||[]}var fJ=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:v={},filterDropdownOpen:y,onFilterDropdownOpenChange:b}=r,[S,C]=x.useState(!1),w=x.useContext(iD),T=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),E=e=>{C(e),v.onOpenChange?.(e),b?.(e)},D=v.open??y??S,O=u?.filteredKeys,[k,A]=jg(dJ(O)),j=({selectedKeys:e})=>{A(e)},M=(e,{node:t,checked:n})=>{j(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};x.useEffect(()=>{D&&j({selectedKeys:dJ(O)})},[O,D]);let[N,P]=x.useState([]),F=e=>{P(e)},[I,L]=x.useState(``),R=x.useMemo(()=>I.trim().toLowerCase(),[I]),z=e=>{let{value:t}=e.target;L(t)};x.useEffect(()=>{D||L(``)},[D]);let B=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||ka(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},V=()=>{E(!1),B(k())},H=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&B([]),t&&E(!1),L(``),A(g?(_||[]).map(String):[])},U=({closeDropdown:e}={closeDropdown:!0})=>{e&&E(!1),B(k())},W=(e,t)=>{t.source===`trigger`&&(e&&O!==void 0&&A(dJ(O)),E(e),!e&&!r.filterDropdown&&o&&V())},ee=Q({[`${i}-menu-without-submenu`]:!cJ(r.filters||[])}),G=e=>{if(e.target.checked){let e=sJ(r?.filters).map(String);A(e)}else A([])},K=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=K({filters:e.children})),r}),q=e=>({...e,text:e.title,value:e.key,children:e.children?.map(q)||[]}),J,{direction:te,renderEmpty:Y}=x.useContext(Ao);if(op(r.filterDropdown))J=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:k(),confirm:U,clearFilters:H,filters:r.filters,visible:D,close:()=>{E(!1)}});else if(r.filterDropdown)J=r.filterDropdown;else{let e=k()||[];J=x.createElement(x.Fragment,null,(()=>{let a=Y?.(`Table.filter`)??x.createElement(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return x.createElement(x.Fragment,null,x.createElement(iJ,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),x.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?x.createElement(kI,{checked:e.length===sJ(r.filters).length,indeterminate:e.length>0&&e.length<sJ(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:G},f?.filterCheckall??f?.filterCheckAll):null,x.createElement(rJ,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:M,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:R?e=>op(l)?l(I,q(e)):lJ(R,e.title):void 0})));let o=uJ({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:I,normalizedSearchValue:R}),u=o.every(e=>e===null);return x.createElement(x.Fragment,null,x.createElement(iJ,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),u?a:x.createElement(Fk,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ee,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:m,openKeys:N,onOpenChange:F,items:o}))})(),x.createElement(`div`,{className:`${n}-dropdown-btns`},x.createElement(Fy,{type:`link`,size:`small`,disabled:g?ka((_||[]).map(String),e,!0):e.length===0,onClick:()=>H()},f.filterReset),x.createElement(Fy,{type:`primary`,size:`small`,onClick:V},f.filterConfirm)))}r.filterDropdown&&(J=x.createElement(yk,{selectable:void 0},J)),J=x.createElement(oJ,{className:`${n}-dropdown`},J);let ne=(()=>{let e;return e=op(r.filterIcon)?r.filterIcon(T):r.filterIcon?r.filterIcon:x.createElement(hq,null),x.createElement(`span`,{role:`button`,tabIndex:-1,className:Q(`${n}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})();if(w)return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),ne);let X=Va({trigger:[`click`],placement:te===`rtl`?`bottomLeft`:`bottomRight`,children:ne,getPopupContainer:m},{...v,rootClassName:Q(h,v.rootClassName),open:D,onOpenChange:W,popupRender:()=>op(v?.dropdownRender)?v.dropdownRender(J):J});return x.createElement(`div`,{className:`${n}-column`},x.createElement(`span`,{className:`${t}-column-title`},p),x.createElement(Iz,{...X}))},pJ=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=cq(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e){if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:sq(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:sq(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}`children`in e&&(r=[].concat(Do(r),Do(pJ(e.children,t,a))))}),r};function mJ(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=cq(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=sq(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>x.createElement(fJ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},lq(n.title,r))}}return`children`in h&&(h={...h,children:mJ(e,t,h.children,r,i,a,o,u,c)}),h})}var hJ=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;if(o)t[i]=n||null;else if(Array.isArray(n)){let e=sJ(a);t[i]=e.filter(e=>n.includes(String(e)))}else t[i]=null}),t},gJ=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=sJ(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=gJ(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),_J=e=>e.flatMap(e=>`children`in e?[e].concat(Do(_J(e.children||[]))):[e]),vJ=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;io(`Table`);let c=x.useMemo(()=>_J(r||[]),[r]),[l,u]=x.useState(()=>pJ(c,!0)),d=x.useMemo(()=>{let e=pJ(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>sq(e,cq(t)));return l.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=c[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[c,l]),f=x.useMemo(()=>hJ(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(hJ(t),t)};return[e=>mJ(t,n,e,d,o,p,a,void 0,s),d,f]},yJ=(e,t,n)=>{let r=x.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),ap(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function bJ(e,t){let n={current:e.current,pageSize:e.pageSize},r=ap(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];op(r)||(n[t]=r)}),n}function xJ(e,t,n){let{total:r=0,...i}=ap(n)?n:{},[a,o]=(0,x.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=Va(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var SJ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function CJ(){return CJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CJ.apply(this,arguments)}var wJ=x.forwardRef((e,t)=>x.createElement(qd,CJ({},e,{ref:t,icon:SJ.default}))),TJ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function EJ(){return EJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EJ.apply(this,arguments)}var DJ=x.forwardRef((e,t)=>x.createElement(qd,EJ({},e,{ref:t,icon:TJ.default}))),OJ=`ascend`,kJ=`descend`,AJ=e=>ap(e.sorter)&&rp(e.sorter.multiple)?e.sorter.multiple:!1,jJ=e=>op(e)?e:ap(e)&&e.compare?e.compare:!1,MJ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],NJ=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:sq(e,t),multiplePriority:AJ(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=cq(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(Do(r),Do(NJ(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:sq(e,o),multiplePriority:AJ(e),sortOrder:e.defaultSortOrder}))}),r},PJ=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=cq(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=sq(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=MJ(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(OJ)&&x.createElement(DJ,{className:Q(`${e}-column-sorter-up`,{active:m===OJ})}),n=s.includes(kJ)&&x.createElement(wJ,{className:Q(`${e}-column-sorter-down`,{active:m===kJ})});g=x.createElement(`span`,{className:Q(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},x.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:v,triggerDesc:y}=a||{},b=_;h===kJ?b=y:h===OJ&&(b=v);let S=ap(l)?{title:b,...l}:{title:b};d={...d,className:Q(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=x.createElement(`span`,{className:`${e}-column-title`},lq(t.title,n)),a=x.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?x.createElement(`div`,{className:Q(r,`${r}-tooltip-target-sorter`)},i,x.createElement(gD,{...S},g)):x.createElement(gD,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:AJ(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===ha.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:AJ(t)}),o?.(e))};let s=uq(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=Q(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:PJ(e,d.children,n,r,i,a,o,u,c)}),d}),FJ=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},IJ=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(FJ(t)),e),[]);return t.length===0&&e.length?{...FJ(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},LJ=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>jJ(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let{column:{sorter:r},sortOrder:i}=a[n],o=jJ(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===OJ?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:LJ(r,t,n)}:e}):i},RJ=e=>{let{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:a,showSorterTooltip:o,onSorterChange:s,globalLocale:c}=e,l=r??n,[u,d]=x.useState(()=>NJ(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=cq(r,t);if(n.push(sq(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,Do(t))}}),n},p=x.useMemo(()=>{let e=!0,t=NJ(l,!1);if(!t.length){let e=f(l);return u.filter(({key:t})=>e.includes(t))}let n=[];function r(t){e?n.push(t):n.push({...t,sortOrder:null})}let i=null;return t.forEach(t=>{i===null?(r(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:i=!0)):(i&&t.multiplePriority!==!1||(e=!1),r(t))}),n},[l,u]),m=x.useMemo(()=>{let e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),h=e=>{let t;t=e.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?[e]:[].concat(Do(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(IJ(t),t)};return[e=>PJ(t,e,p,h,i,a,o,void 0,c),p,m,()=>IJ(p)]},zJ=e=>x.useMemo(()=>typeof e==`boolean`?{spinning:e}:ap(e)?{spinning:!0,...e}:{},[e]),BJ=(e,t)=>e.map(e=>{let n={...e};return n.title=lq(e.title,t),`children`in n&&(n.children=BJ(n.children,t)),n}),VJ=e=>[x.useCallback(t=>BJ(t,e),[e])],HJ=MK((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),UJ=KK((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),WJ=e=>{let{antCls:t,componentCls:n,lineWidth:r,lineType:i,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:s,tablePaddingHorizontal:c,calc:l}=e,u=`${$(r)} ${i} ${a}`,[d,f]=hd(t,`table`),p=(e,t,i)=>({[`&${n}-${e}`]:{[`> ${n}-container`]:{[`> ${n}-content, > ${n}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:`${$(l(t).mul(-1).equal())}
|
|
306
|
+
${$(l(l(i).add(r)).mul(-1).equal())}`}}}}}});return{[`${n}-wrapper`]:{[d(`nested-border-top`)]:u,[`${n}${n}-bordered`]:{[`> ${n}-title`]:{border:u,borderBottom:0},[`> ${n}-container`]:{borderInlineStart:u,borderTop:u,"&:first-child":{borderTop:f(`nested-border-top`,u)},[`> ${n}-header${n}-sticky-holder`]:{marginTop:l(r).mul(-1).equal(),borderTop:u},[`> ${n}-content, > ${n}-header, > ${n}-body, > ${n}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${n}-cell-fix-right-first:not(${n}-cell-fix-right-last)::after`]:{borderInlineEnd:u}},"> tbody > tr > th, > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:`${$(l(s).mul(-1).equal())} ${$(l(l(c).add(r)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:u,content:`""`}}}}}},[`&${n}-scroll-horizontal`]:{[`> ${n}-container > ${n}-body`]:{"> table > tbody":{[`
|
|
307
|
+
> tr${n}-expanded-row,
|
|
308
|
+
> tr${n}-placeholder
|
|
309
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}},...p(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...p(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${n}-footer`]:{border:u,borderTop:0}},[`${n}-cell`]:{[`
|
|
310
|
+
> ${n}-wrapper:only-child,
|
|
311
|
+
> ${n}-expanded-row-fixed > ${n}-wrapper:only-child
|
|
312
|
+
`]:{[d(`nested-border-top`)]:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${$(r)} 0 ${$(r)} ${o}`}},[`${n}-bordered ${n}-cell-scrollbar`]:{borderInlineEnd:u}}}},GJ=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...td,wordBreak:`keep-all`,[`
|
|
313
|
+
&${t}-cell-fix-start-shadow,
|
|
314
|
+
&${t}-cell-fix-end-shadow
|
|
315
|
+
`]:{overflow:`visible`,[`${t}-cell-content`]:{...td,display:`block`}},[`${t}-column-title`]:{...td,wordBreak:`keep-all`}}}}},KJ=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},qJ=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${$(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${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`]:{...dd(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:$(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,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:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${$(y(d).mul(-1).equal())} ${$(y(f).mul(-1).equal())}`,padding:`${$(d)} ${$(f)}`}}}},JJ=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${$(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${$(o)} ${$(D(m).div(2).mul(-1).equal())}`,padding:`0 ${$(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...nd(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${$(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${$(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${$(D(s).sub(l).equal())} ${$(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function YJ({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var XJ=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=YJ(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},ZJ=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${$(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},QJ=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${$(n)} ${$(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}}},[`&${t}-bordered${t}-no-header`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${$(n)} ${$(n)}`}}}}},$J=e=>{let{componentCls:t}=e,[n,r]=YJ(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},eY=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[`
|
|
316
|
+
table tr th${t}-selection-column,
|
|
317
|
+
table tr td${t}-selection-column,
|
|
318
|
+
${t}-selection-column
|
|
319
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(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:$(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},tY=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[`
|
|
320
|
+
${t}-title,
|
|
321
|
+
${t}-footer,
|
|
322
|
+
${t}-cell,
|
|
323
|
+
${t}-thead > tr > th,
|
|
324
|
+
${t}-tbody > tr > th,
|
|
325
|
+
${t}-tbody > tr > td,
|
|
326
|
+
tfoot > tr > th,
|
|
327
|
+
tfoot > tr > td
|
|
328
|
+
`]:{padding:`${$(i)} ${$(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:$(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${$(r(i).mul(-1).equal())} ${$(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:$(r(i).mul(-1).equal()),marginInline:`${$(r(n).sub(a).equal())} ${$(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:$(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},nY=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=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},[`
|
|
329
|
+
&${t}-cell-fix-left:hover,
|
|
330
|
+
&${t}-cell-fix-right:hover
|
|
331
|
+
`]:{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:i,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:a}}}},rY=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${$(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${$(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},iY=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${$(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${$(i(n).mul(-1).equal())} 0 ${r}`}}}},aY=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${$(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-scrollbar`]:{cursor:`pointer`,"&:hover":{backgroundColor:e.colorFillQuaternary}},[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
332
|
+
& > ${t}-row,
|
|
333
|
+
& > div:not(${t}-row) > ${t}-row
|
|
334
|
+
`]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${$(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},oY=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${$(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...ad(),[t]:{...nd(e),fontSize:l,background:u,borderRadius:`${$(d)} ${$(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${$(d)} ${$(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
|
|
335
|
+
${t}-cell,
|
|
336
|
+
${t}-thead > tr > th,
|
|
337
|
+
${t}-tbody > tr > th,
|
|
338
|
+
${t}-tbody > tr > td,
|
|
339
|
+
tfoot > tr > th,
|
|
340
|
+
tfoot > tr > td
|
|
341
|
+
`]:{position:`relative`,padding:`${$(r)} ${$(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${$(r)} ${$(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[`
|
|
342
|
+
> ${t}-wrapper:only-child,
|
|
343
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
344
|
+
`]:{[t]:{marginBlock:$(v(r).mul(-1).equal()),marginInline:`${$(v(a).sub(i).equal())}
|
|
345
|
+
${$(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${$(r)} ${$(i)}`,color:g,background:_}}}},sY=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new Kl(i).onBackground(n).toHexString(),w=new Kl(a).onBackground(n).toHexString(),T=new Kl(t).onBackground(n).toHexString(),E=new Kl(y),D=new Kl(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},cY=2,lY=fd(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=wl(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:cY,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[oY(F),ZJ(F),iY(F),nY(F),JJ(F),WJ(F),QJ(F),qJ(F),iY(F),KJ(F),eY(F),XJ(F),rY(F),GJ(F),tY(F),$J(F),aY(F)]},sY,{resetFont:!1,unitless:{expandIconScale:!0}}),uY=[],dY=x.createContext({}),fY=e=>{let{ariaProps:t,component:n=`table`}=x.useContext(dY);return x.createElement(n,{...t,...e})},pY=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,column:g,columns:_,children:v,childrenColumnName:y,onChange:b,getPopupContainer:S,loading:C,expandIcon:w,expandable:T,expandedRowRender:E,expandIconColumnIndex:D,indentSize:O,scroll:k,sortDirections:A,locale:j,showSorterTooltip:M={target:`full-header`},virtual:N,title:P,showHeader:F}=e;io(`Table`);let I=oq(x.useMemo(()=>_||sK(v),[_,v]),g),L=BE(x.useMemo(()=>I.some(e=>e.responsive),[I])),R=x.useMemo(()=>{let e=new Set(Object.keys(L).filter(e=>L[e]));return I.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[I,L]),z=Na(e,[`className`,`style`,`column`,`columns`]),B=z.components,V=Ra(z,{aria:!0}),H=Object.keys(V).length>0,U=x.useMemo(()=>({ariaProps:V,component:B?.header?.table}),[V,B?.header?.table]),W=x.useMemo(()=>H?{...B,header:{...B?.header,table:fY}}:B,[B,H]),{locale:ee=Zp,table:G}=x.useContext(Ao),{getPrefixCls:K,direction:q,renderEmpty:J,getPopupContainer:te,className:Y,style:ne,classNames:X,styles:re}=No(`table`),ie=J_(e=>c===`middle`?`medium`:c??e),ae={...e,size:ie,bordered:l},oe=vp(ne),se=vp(a),[ce,le]=bp([X,o],[re,oe,s,se],{props:ae},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),ue={...ee.Table,...j},[de]=im(`global`,Zp.global),fe=d||uY,pe=K(`table`,n),me=K(`dropdown`,u),[,he]=ed(),ge=x.useMemo(()=>ap(p)?{columnWidth:he.Table?.selectionColumnWidth,...p}:p,[p,he.Table?.selectionColumnWidth]),_e=Up(pe),[ve,ye]=lY(pe,_e),be={childrenColumnName:y,expandIconColumnIndex:D,...T,expandIcon:T?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:xe=`children`}=be,Se=x.useMemo(()=>fe.some(e=>e?.[xe])?`nest`:E||T?.expandedRowRender?`row`:null,[xe,fe]),Ce={body:x.useRef(null)},we=aq(pe),Te=x.useRef(null),Ee=x.useRef(null);Ag(t,()=>({...Ee.current,nativeElement:Te.current}));let De=m||G?.rowKey||`key`,Oe=k??G?.scroll,ke=x.useMemo(()=>op(De)?De:e=>e?.[De],[De]),[Ae]=yJ(fe,xe,ke),je={},Me=(e,t,n=!1)=>{let r={...je,...e};n&&(je.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),k&&k.scrollToFirstRowOnChange!==!1&&Ce.body.current&&Hp(0,{getContainer:()=>Ce.body.current}),b?.(r.pagination,r.filters,r.sorter,{currentDataSource:gJ(LJ(fe,r.sorterStates,xe),r.filterStates,xe),action:t})},[Ne,Pe,Fe,Ie]=RJ({prefixCls:pe,mergedColumns:R,baseColumns:I,onSorterChange:(e,t)=>{Me({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:A||[`ascend`,`descend`],tableLocale:ue,showSorterTooltip:M,globalLocale:de}),Le=x.useMemo(()=>LJ(fe,Pe,xe),[xe,fe,Pe]);je.sorter=Ie(),je.sorterStates=Pe;let[Re,ze,Be]=vJ({prefixCls:pe,locale:ue,dropdownPrefixCls:me,mergedColumns:R,onFilterChange:(e,t)=>{Me({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:S||te,rootClassName:Q(i,_e)}),Ve=gJ(Le,ze,xe);je.filters=Be,je.filterStates=ze;let[He]=VJ(iq(Fe,Be)),[Ue,We]=xJ(Ve.length,(e,t)=>{Me({pagination:{...je.pagination,current:e,pageSize:t}},`paginate`)},f);je.pagination=f===!1?{}:bJ(Ue,f),je.resetPagination=We;let Ge=x.useMemo(()=>{if(f===!1||!Ue.pageSize)return Ve;let{current:e=1,total:t,pageSize:n=10}=Ue;return Ve.length<t?Ve.length>n?Ve.slice((e-1)*n,e*n):Ve:Ve.slice((e-1)*n,e*n)},[!!f,Ve,Ue?.current,Ue?.pageSize,Ue?.total]),[Ke,qe]=tq({prefixCls:pe,data:Ve,pageData:Ge,getRowKey:ke,getRecordByKey:Ae,expandType:Se,childrenColumnName:xe,locale:ue,getPopupContainer:S||te},ge),Je=(e,t,n)=>Q({[`${pe}-row-selected`]:qe.has(ke(e,t))},op(h)?h(e,t,n):h);be.__PARENT_RENDER_ICON__=be.expandIcon,be.expandIcon=be.expandIcon||w||nq(ue),Se===`nest`&&be.expandIconColumnIndex===void 0?be.expandIconColumnIndex=+!!ge:be.expandIconColumnIndex>0&&ge&&--be.expandIconColumnIndex,rp(be.indentSize)||(be.indentSize=rp(O)?O:15);let Ye=x.useCallback(e=>He(Ke(Re(Ne(e)))),[Ne,Re,Ke]),Xe,Ze;if(f!==!1&&Ue?.total){let e=fq(Ue.size,ie),t=(t=`end`)=>x.createElement(iH,{...Ue,classNames:ce.pagination,styles:le.pagination,className:Q(`${pe}-pagination`,`${pe}-pagination-${t}`,Ue.className),size:e}),{placement:n,position:r}=Ue,i=n??r;if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ze=t()),e&&(Xe=t(dq(e))),n&&(Ze=t(dq(n)))}else Ze=t()}let Qe=zJ(C),$e=Q(ye,_e,`${pe}-wrapper`,Y,{[`${pe}-wrapper-rtl`]:q===`rtl`},r,i,ce.root,ve),et=x.useMemo(()=>Qe?.spinning&&fe===uY?null:j?.emptyText===void 0?J?.(`Table`)||x.createElement(XT,{componentName:`Table`}):j.emptyText,[Qe?.spinning,fe,j?.emptyText,J]),tt=N?UJ:HJ,nt={},rt=x.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=he,o=Math.floor(e*t);switch(ie){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[he,ie]);return N&&(nt.listItemHeight=rt),x.createElement(`div`,{ref:Te,className:$e,style:le.root},x.createElement(TH,{spinning:!1,...Qe},Xe,x.createElement(dY.Provider,{value:U},x.createElement(tt,{...nt,...z,components:W,scroll:Oe,classNames:ce,styles:le,ref:Ee,columns:R,direction:q,expandable:be,prefixCls:pe,className:Q({[`${pe}-medium`]:ie===`medium`,[`${pe}-small`]:ie===`small`,[`${pe}-bordered`]:l,[`${pe}-empty`]:fe.length===0,[`${pe}-no-header`]:!P&&F===!1},ye,_e,ve),data:Ge,rowKey:ke,rowClassName:Je,emptyText:et,internalHooks:QW,internalRefs:Ce,transformColumns:Ye,getContainerWidth:we,measureRowRender:e=>x.createElement(iD.Provider,{value:!0},x.createElement(Nh,{getPopupContainer:e=>e},e))})),Ze))}),mY=x.forwardRef((e,t)=>{let n=x.useRef(0);return n.current+=1,x.createElement(pY,{...e,ref:t,_renderTimes:n.current})});mY.SELECTION_COLUMN=YK,mY.EXPAND_COLUMN=ZW,mY.SELECTION_ALL=XK,mY.SELECTION_INVERT=ZK,mY.SELECTION_NONE=QK,mY.Column=qK,mY.ColumnGroup=JK,mY.Summary=MG;var hY=mY,gY=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...nd(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},"> svg":{display:`inline-block`,verticalAlign:`middle`,marginBlockEnd:`0.2em`},[`> ${e.iconCls} + span, > span + ${e.iconCls}, > svg + span, > span + svg`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},_Y=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return wl(e,{tagFontSize:i,tagLineHeight:$(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},vY=e=>{let t=py(new sy(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Kl(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},yY=fd(`Tag`,e=>gY(_Y(e)),vY),bY=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d,...f}=e,{getPrefixCls:p,tag:m}=x.useContext(Ao),h=x.useContext(ph),g=d??h,_=e=>{g||(c?.(!a),l?.(e))},v=e=>{u?.(e),!(e.defaultPrevented||g)&&e.key===` `&&(e.preventDefault(),c?.(!a))},y=p(`tag`,n),[b,S]=yY(y),C=Q(y,`${y}-checkable`,{[`${y}-checkable-checked`]:a,[`${y}-checkable-disabled`]:g},m?.className,i,b,S);return x.createElement(`span`,{...f,ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":g||void 0,tabIndex:g?-1:0,style:{...r,...m?.style},className:C,onClick:_,onKeyDown:v},s,x.createElement(`span`,null,o))}),xY=x.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:S}=No(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,E]=yY(C,Up(C)),D=vp(y),O=vp(o),[k,A]=bp([b,s],[S,D,c,O],{props:e}),j=(0,x.useMemo)(()=>Array.isArray(u)?u.map(e=>ap(e)?e:{value:e,label:e}):[],[u]),[M,N]=ti(f,d),P=(e,t)=>{let n=null;if(m){let r=M||[];n=e?[].concat(Do(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;N(n),p?.(n)},F=x.useRef(null);(0,x.useImperativeHandle)(t,()=>({nativeElement:F.current}));let I=Ra(h,{aria:!0,data:!0});return x.createElement(`div`,{...I,className:Q(w,v,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,E,a,k.root),style:A.root,id:n,ref:F},j.map(e=>x.createElement(bY,{key:e.value,className:Q(`${w}-item`,k.item,e.className),style:{...A.item,...e.style},checked:m?(M||[]).includes(e.value):M===e.value,onChange:t=>P(t,e),disabled:l},e.label)))});function SY(e,t){let{color:n,variant:r,bordered:i}=e;return x.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=fD(o),c=pD(o),l={};if(!s&&!c&&o){if(a===`solid`)l.backgroundColor=n;else{let e=new Kl(o).toHsl();e.l=.95,l.backgroundColor=new Kl(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}}return[a,o,s,c,l]},[n,r,i,t])}var CY=e=>gd(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),wY=md([`Tag`,`preset`],e=>CY(_Y(e)),vY);function TY(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var EY=(e,t,n)=>{let r=TY(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},DY=md([`Tag`,`status`],e=>{let t=_Y(e);return[EY(t,`success`,`Success`),EY(t,`processing`,`Info`),EY(t,`error`,`Error`),EY(t,`warning`,`Warning`)]},vY),OY=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:v,direction:y,className:b,variant:S,style:C,classNames:w,styles:T}=No(`tag`),[E,D,O,k,A]=SY(e,S),j=O||k,M=x.useContext(ph),N=f??M,{tag:P}=x.useContext(Ao),[F,I]=x.useState(!0),L=Na(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},z=vp(C),B=vp(a),[V,H]=bp([w,g],[T,z,h,B],{props:R}),U=x.useMemo(()=>{let e=H.root;return N||(e={...A,...e}),e},[H.root,A,N]),W=v(`tag`,n),[ee,G]=yY(W),K=Q(W,b,V.root,`${W}-${E}`,{[`${W}-${D}`]:j,[`${W}-hidden`]:!F,[`${W}-rtl`]:y===`rtl`,[`${W}-disabled`]:N},r,i,ee,G),q=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&(p&&e.preventDefault(),I(!1)))},J=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,te]=xg(hg(e),hg(P),{closable:!1,closeIconRender:e=>sh(e,x.createElement(`span`,{role:`button`,tabIndex:N?-1:0,"aria-disabled":N||void 0,className:Q(`${W}-close-icon`,V.close),onClick:q,onKeyDown:J,style:H.close},e),e=>({onClick:t=>{e?.onClick?.(t),q(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||J(t)},role:`button`,tabIndex:N?-1:0,"aria-disabled":N||void 0,className:Q(e?.className,`${W}-close-icon`,V.close),style:{...H.close,...e?.style}}))}),Y=op(_.onClick)||o&&o.type===`a`,ne=ch(s,{className:Q(x.isValidElement(s)?s.props?.className:void 0,V.icon),style:H.icon}),X=ne?x.createElement(x.Fragment,null,ne,o&&x.createElement(`span`,{className:V.content,style:H.content},o)):o,re=p?`a`:`span`,ie=x.createElement(re,{...L,ref:t,className:K,style:U,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},X,te,O&&x.createElement(wY,{key:`preset`,prefixCls:W}),k&&x.createElement(DY,{key:`status`,prefixCls:W}));return Y?x.createElement(q_,{component:`Tag`},ie):ie});OY.CheckableTag=bY,OY.CheckableTagGroup=xY;var kY=e=>{let t=e?.algorithm?Yo(e.algorithm):Wu;return vs({...Bl,...e?.token},{override:e?.token},t,Yu)};function AY(e){let{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)}}var jY=(e,t)=>{let n=t??Uu(e),r=n.fontSizeSM,i=n.controlHeight-4;return{...n,...AY(t??e),...Lu(r),controlHeight:i,...Iu({...n,controlHeight:i})}},MY=(e,t)=>new Kl(e).setA(t).toRgbString(),NY=(e,t)=>new Kl(e).lighten(t).toHexString(),PY=e=>{let t=iu(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]}},FY=(e,t,n)=>{let r=e||`#000`,i=t||`#fff`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`rgba(255, 255, 255, 0.2)`,colorText:MY(i,.85),colorTextSecondary:MY(i,.65),colorTextTertiary:MY(i,.45),colorTextQuaternary:MY(i,.25),colorFill:MY(i,.18),colorFillSecondary:MY(i,.12),colorFillTertiary:MY(i,.08),colorFillQuaternary:MY(i,.04),colorBgSolid:MY(i,.95),colorBgSolidHover:MY(i,1),colorBgSolidActive:MY(i,.9),colorBgElevated:NY(r,12),colorBgContainer:NY(r,8),colorBgLayout:NY(r,0),colorBgSpotlight:NY(r,26),colorBgBlur:MY(i,.04),colorBorder:NY(r,26),colorBorderDisabled:NY(r,26),colorBorderSecondary:NY(r,19)}},IY=(e,t)=>{let n=Object.keys(zl).map(t=>{let n=iu(e[t],{theme:`dark`});return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{}),r=t??Uu(e),i=Nu(e,{generateColorPalettes:PY,generateNeutralColorPalettes:FY}),a=Fl.reduce((t,n)=>{let r=e[n];if(r){let e=PY(r);t[`${n}Hover`]=e[7],t[`${n}Active`]=e[5]}return t},{});return{...r,...n,...i,...a,colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover}};function LY(){let[e,t,n,r]=ed();return{theme:e,token:t,hashId:n,cssVar:r}}var RY={defaultSeed:Gu.token,useToken:LY,defaultAlgorithm:Uu,darkAlgorithm:IY,compactAlgorithm:jY,getDesignToken:kY,defaultConfig:Gu,_internalContext:Ku},zY=e=>{let{componentCls:t,fontHeight:n,antCls:r,paddingXS:i}=e,[a,o]=hd(r,`cmp-steps`),[s,c]=hd(r,`timeline`),l=`${t}-item`;return{[`${t}-horizontal`]:{[a(`title-vertical-row-gap`)]:i,[s(`content-height`)]:$(n),alignItems:`stretch`,[`&${t}-layout-alternate`]:{[l]:{[`${l}-wrapper`]:{[s(`alternate-content-offset`)]:`calc(${c(`content-height`)} + ${o(`title-vertical-row-gap`)} * 2 + ${o(`icon-size-max`)})`,height:`calc(${c(`content-height`)} * 2 + ${o(`title-vertical-row-gap`)} * 2 + ${o(`icon-size-max`)})`},[`${l}-icon`]:{position:`absolute`},[`${l}-icon, ${l}-rail`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,margin:0},[`${l}-title, ${l}-subtitle, ${l}-content`]:{whiteSpace:`nowrap`,maxWidth:`unset`},[`${l}-title`]:{position:`absolute`,left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%)`},[`${l}-content`]:{position:`absolute`,left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%)`},"&-placement-start":{[`${l}-title`]:{bottom:c(`alternate-content-offset`)},[`${l}-content`]:{top:c(`alternate-content-offset`)}},"&-placement-end":{[`${l}-title`]:{top:c(`alternate-content-offset`)},[`${l}-content`]:{bottom:c(`alternate-content-offset`)}}}},[`&:not(${t}-layout-alternate)`]:{[`${l}-placement-end`]:{display:`flex`,alignItems:`flex-end`,[`${l}-wrapper`]:{flex:`auto`,flexDirection:`column-reverse`},[`${l}-rail`]:{top:`auto`,bottom:o(`horizontal-rail-margin`),transform:`translateY(50%)`}}}}}},BY=e=>{let{componentCls:t,tailColor:n,fontHeight:r,dotSize:i,dotBg:a,dotBorderWidth:o,fontSize:s,lineHeight:c,colorText:l,tailWidth:u,colorPrimary:d,colorError:f,colorSuccess:p,colorTextDisabled:m,antCls:h}=e,g=`${t}-item`,[_,v]=hd(h,`cmp-steps`);return{[t]:[{...nd(e),[g]:{[_(`title-horizontal-title-height`)]:r,[_(`vertical-rail-margin`)]:`0px`,[_(`title-horizontal-rail-gap`)]:`0px`,[_(`icon-dot-size-origin`)]:v(`icon-size-active`),[_(`icon-dot-size-custom`)]:i,[_(`item-icon-dot-bg-color-origin`)]:v(`item-icon-dot-bg-color`),[_(`item-icon-dot-bg-color-custom`)]:a,[_(`icon-size`)]:v(`icon-dot-size-custom`,v(`icon-dot-size-origin`)),[`${g}-icon`]:{[_(`dot-icon-border-width`)]:o,[_(`dot-icon-size`)]:v(`icon-size`),[_(`item-icon-dot-bg-color`)]:v(`item-icon-dot-bg-color-custom`,v(`item-icon-dot-bg-color-origin`))},[`${g}-title`]:{fontSize:s,lineHeight:c},[`${g}-content`]:{color:l},[`${g}-rail`]:{[_(`item-solid-line-color`)]:n,[_(`rail-size`)]:u}}},{[g]:{[_(`item-process-rail-line-style`)]:`dotted`},[`${g}${g}${g}-color`]:{"&-blue":{[_(`item-icon-dot-color`)]:d},"&-red":{[_(`item-icon-dot-color`)]:f},"&-green":{[_(`item-icon-dot-color`)]:p},"&-gray":{[_(`item-icon-dot-color`)]:m}}}]}},VY=e=>{let{calc:t,componentCls:n,itemPaddingBottom:r,margin:i,antCls:a}=e,o=`${n}-item`,[,s]=hd(a,`cmp-steps`),[c,l]=hd(a,`timeline`);return{[`${n}:not(${n}-horizontal)`]:{[c(`head-span`)]:`12`,[c(`head-span-ptg`)]:`calc(${l(`head-span`)} / 24 * 100%)`,[`&${n}-layout-alternate`]:{[o]:{[c(`alternate-gap`)]:t(i).mul(2).add(s(`dot-icon-size`)).equal(),minHeight:`auto`,paddingBottom:r,[`${o}-icon, ${o}-rail`]:{position:`absolute`,insetInlineStart:l(`head-span-ptg`)},[`${o}-icon`]:{marginInlineStart:`calc(${s(`icon-size`)} / -2)`},[`${o}-section`]:{display:`flex`,flexWrap:`nowrap`,gap:l(`alternate-gap`)},[`${o}-header`]:{textAlign:`end`,flexDirection:`column`,alignItems:`stretch`,flex:`1 1 calc(${l(`head-span-ptg`)} - ${l(`alternate-gap`)} / 2)`},[`${o}-content`]:{textAlign:`start`,flex:`1 1 calc(100% - ${l(`head-span-ptg`)} - ${l(`alternate-gap`)} / 2)`},"&-placement-end":{[`${o}-header`]:{textAlign:`start`,order:1},[`${o}-content`]:{textAlign:`end`},[`${o}-icon, ${o}-rail`]:{insetInlineStart:`calc(100% - ${l(`head-span-ptg`)})`}}}},[`&:not(${n}-layout-alternate)`]:{[`${o}-placement-end`]:{textAlign:`end`,[`${o}-icon`]:{order:1},[`${o}-rail`]:{insetInlineStart:`auto`,insetInlineEnd:`calc(${s(`icon-size`)} / 2)`,marginInlineEnd:`calc(${s(`rail-size`)} / -2)`}}}}}},HY=fd(`Timeline`,e=>{let t=wl(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[BY(t),VY(t),zY(t)]},e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.lineWidthBold,dotBg:void 0,dotSize:void 0,itemPaddingBottom:e.padding*1.25})),UY=(e,t,n,r,i,a,o)=>{let s=`${t}-item`,[c]=hd(e,`cmp-steps`),l=x.useMemo(()=>Array.isArray(r)?r:Ba(i).map(e=>({...e.props})),[r,i]);return x.useMemo(()=>{let e=l.map((e,t)=>{let{label:r,children:i,title:a,content:o,color:l,className:u,style:d,icon:f,dot:p,placement:m,position:h,loading:g,..._}=e,v=d,y=u;l&&([`blue`,`red`,`green`,`gray`].includes(l)?y=Q(u,`${s}-color-${l}`):v={[c(`item-icon-dot-color`)]:l,...d});let b=m??h??(n===`alternate`?t%2==0?`start`:`end`:n);y=Q(y,`${s}-placement-${b}`);let S=f??p;return!S&&g&&(S=x.createElement(fg,null)),{..._,title:a??r,content:o??i,style:v,className:y,icon:S,status:g?`process`:`finish`}});return a&&e.push({icon:o??x.createElement(fg,null),content:a,status:`process`}),e},[l,a,n,s,c,o])},WY={rootComponent:`ol`,itemComponent:`li`},GY=e=>{let{getPrefixCls:t,direction:n,className:r,style:i,classNames:a,styles:o}=No(`timeline`),{prefixCls:s,className:c,style:l,classNames:u,styles:d,variant:f=`outlined`,mode:p,orientation:m=`vertical`,titleSpan:h,items:g,children:_,reverse:v,pending:y,pendingDot:b,...S}=e,C=t(),w=t(`timeline`,s),[T,E]=HY(w),[D]=hd(C,`timeline`),O=x.useMemo(()=>({item:`${w}-item`,itemTitle:`${w}-item-title`,itemIcon:`${w}-item-icon`,itemContent:`${w}-item-content`,itemRail:`${w}-item-rail`,itemWrapper:`${w}-item-wrapper`,itemSection:`${w}-item-section`,itemHeader:`${w}-item-header`}),[w]),k=x.useMemo(()=>p===`left`?`start`:p===`right`?`end`:[`alternate`,`start`,`end`].includes(p)?p:`start`,[p]),A=UY(C,w,k,g,_,y,b),j=x.useMemo(()=>v?Do(A).reverse():A,[v,A]),M={...e,variant:f,mode:k,orientation:m,items:j},N=vp(i),P=vp(l),[F,I]=bp([O,a,u],[o,N,d,P],{props:M}),L=x.useMemo(()=>({railFollowPrevStatus:v}),[v]),R=x.useMemo(()=>k===`alternate`||m===`vertical`&&j.some(e=>e.title),[j,k,m]),z={};return tp(h)&&k!==`alternate`&&(rp(h)?z[D(`head-span`)]=h:z[D(`head-span-ptg`)]=h),x.createElement(fW.Provider,{value:WY},x.createElement(eW.Provider,{value:L},x.createElement(VW,{...S,className:Q(w,r,c,T,E,{[`${w}-${m}`]:m===`horizontal`,[`${w}-layout-alternate`]:R,[`${w}-rtl`]:n===`rtl`}),style:z,classNames:F,styles:I,variant:f,orientation:m,type:`dot`,items:j,current:j.length-1})))};GY.Item=()=>{};var KY=GY,qY=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function JY(){return JY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JY.apply(this,arguments)}var YY=x.forwardRef((e,t)=>x.createElement(qd,JY({},e,{ref:t,icon:qY.default}))),XY=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function ZY(){return ZY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZY.apply(this,arguments)}var QY=x.forwardRef((e,t)=>x.createElement(qd,ZY({},e,{ref:t,icon:XY.default}))),$Y=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function eX(){return eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eX.apply(this,arguments)}var tX=x.forwardRef((e,t)=>x.createElement(qd,eX({},e,{ref:t,icon:$Y.default}))),nX=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},rX=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
|
|
346
|
+
h${t}&,
|
|
347
|
+
div&-h${t},
|
|
348
|
+
div&-h${t} > textarea,
|
|
349
|
+
h${t}
|
|
350
|
+
`]=nX(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},iX=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...dd(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},aX=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:`${$(e.lineWidth)} ${e.lineType} 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:`${$(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:lu[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:`${$(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:$(e.padding),overflowWrap:`break-word`,borderBottom:`${$(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),oX=e=>{let{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`},[`&${t}-edit-content textarea`]:{margin:`0!important`,fontSize:`inherit`,lineHeight:`inherit`,fontFamily:`inherit`,fontWeight:`inherit`,MozTransition:`none`,height:`1em`}}}},sX=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),cX=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...td,"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`}}),lX=fd(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...rX(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...aX(e),...iX(e),[`${t}-actions`]:{display:`inline`},[`
|
|
351
|
+
${t}-expand,
|
|
352
|
+
${t}-collapse,
|
|
353
|
+
${t}-edit,
|
|
354
|
+
${t}-copy
|
|
355
|
+
`]:{...dd(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
|
|
356
|
+
${t}-expand,
|
|
357
|
+
${t}-collapse,
|
|
358
|
+
${t}-edit,
|
|
359
|
+
${t}-copy:not(${t}-copy-icon-only)
|
|
360
|
+
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...oX(e),...sX(e),...cX(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),uX=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:m,enterIcon:h=x.createElement(tX,null)}=e,g=x.useRef(null),_=x.useRef(!1),v=x.useRef(null),[y,b]=x.useState(u);x.useEffect(()=>{b(u)},[u]),x.useEffect(()=>{if(g.current?.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let S=({target:e})=>{b(e.value.replace(/[\n\r]/g,``))},C=()=>{_.current=!0},w=()=>{_.current=!1},T=({keyCode:e})=>{_.current||(v.current=e)},E=()=>{d(y.trim())},D=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{v.current!==e||_.current||t||n||r||i||(e===ha.ENTER?(E(),p?.()):e===ha.ESC&&f())},O=()=>{E()},[k,A]=lX(t),j=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${m}`]:!!m},r,a.root,k,A);return x.createElement(`div`,{className:j,style:{...o.root,...i}},x.createElement(gV,{ref:g,maxLength:c,value:y,onChange:S,onKeyDown:T,onKeyUp:D,onCompositionStart:C,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),h===null?null:ch(h,{className:`${t}-edit-content-confirm`}))},dX=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},fX=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function pX(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await fX(e,n)||dX(e,n))}var mX=({copyConfig:e,children:t})=>{let[n,r]=ci(!1),[i,a]=x.useState(!1),o={};return e.format&&(o.format=e.format),{copied:n,copyLoading:i,onClick:Yr(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await pX((op(e.text)?await e.text():e.text)||PH(t,{skipEmpty:!0}).join(``)||``,o),a(!1),r(!0,!0),r(!1,{ms:3e3}),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},hX=(e,t)=>{let n=!!e;return x.useMemo(()=>{let r={...t,...n&&ap(e)?e:null};return[n,r]},[n,e,t])},gX=e=>{let t=(0,x.useRef)(void 0);return(0,x.useEffect)(()=>{t.current=e}),t.current},_X=(e,t,n)=>(0,x.useMemo)(()=>e===!0?{title:t??n}:(0,x.isValidElement)(e)?{title:e}:ap(e)?{title:t??n,...e}:{title:e},[e,t,n]),vX=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=No(`typography`),d=r??o,f=a(`typography`,e),p={...i,prefixCls:f,direction:d},m=(0,x.useMemo)(()=>({root:s}),[s]),h=vp(c),[g,_]=bp([m,l,t],[u,h,n],{props:p});return[g,_,f,d]},yX=x.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...d}=e,[f,p]=lX(u),m=Q(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,p,c?.root),h={...l?.root,...s};return x.createElement(n,{...d,className:m,style:h,ref:t},a)}),bX=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=vX(n,o,s,a,e);return x.createElement(yX,{ref:t,className:Q(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),xX=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function SX(){return SX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SX.apply(this,arguments)}var CX=x.forwardRef((e,t)=>x.createElement(qd,SX({},e,{ref:t,icon:xX.default}))),wX=e=>e===!1?[!1,!1]:PH(e);function TX(e,t,n){return e===!0||e===void 0?t:e||n&&t}function EX(e){let t=document.createElement(`em`);e.appendChild(t);let 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}var DX=e=>[`string`,`number`].includes(typeof e),OX=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=wX(a),p=wX(o),{copied:m,copy:h}=r??{},g=n?m:h,_=TX(f[+!!n],g),v=typeof _==`string`?_:g;return x.createElement(gD,{title:_},x.createElement(`button`,{type:`button`,className:Q(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":v,tabIndex:s},n?TX(p[1],x.createElement(hE,null),!0):TX(p[0],l?x.createElement(fg,null):x.createElement(CX,null),!0)))},kX=x.forwardRef(({style:e,children:t},n)=>{let r=x.useRef(null);return x.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),x.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),AX=e=>e.reduce((e,t)=>e+(DX(t)?String(t).length:1),0);function jX(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=DX(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var MX=0,NX=1,PX=2,FX=3,IX=4,LX={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function RX(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=x.useMemo(()=>Ba(r),[r]),d=x.useMemo(()=>AX(u),[r]),f=x.useMemo(()=>i(u,!1),[r].concat(Do(s))),[p,m]=x.useState(null),h=x.useRef(null),g=x.useRef(null),_=x.useRef(null),v=x.useRef(null),y=x.useRef(null),[b,S]=x.useState(!1),[C,w]=x.useState(MX),[T,E]=x.useState(0),[D,O]=x.useState(null);Qr(()=>{w(t&&n&&d?NX:MX)},[n,r,a,t,u].concat(Do(s))),Qr(()=>{if(C===NX){w(PX);let e=g.current&&getComputedStyle(g.current).whiteSpace;O(e)}else if(C===PX){let e=!!_.current?.isExceed();w(e?FX:IX),m(e?[0,d]:null),S(e);let t=_.current?.getHeight()||0,n=a===1?0:v.current?.getHeight()||0,r=y.current?.getHeight()||0,i=Math.max(t,n+r);E(i+1),l(e)}},[C]);let k=p?Math.ceil((p[0]+p[1])/2):0;Qr(()=>{let[e,t]=p||[0,0];if(e!==t){let n=(h.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),m(n?[e,r]:[r,t])}},[p,k]);let A=x.useMemo(()=>{if(!t)return i(u,!1);if(C!==FX||!p||p[0]!==p[1]){let e=i(u,!1);return[IX,MX].includes(C)?e:x.createElement(`span`,{style:{...LX,WebkitLineClamp:a}},e)}return i(o?u:jX(u,p[0]),b)},[o,C,p,u].concat(Do(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return x.createElement(x.Fragment,null,A,C===PX&&x.createElement(x.Fragment,null,x.createElement(kX,{style:{...j,...LX,WebkitLineClamp:a},ref:_},f),x.createElement(kX,{style:{...j,...LX,WebkitLineClamp:a-1},ref:v},f),x.createElement(kX,{style:{...j,...LX,WebkitLineClamp:1},ref:y},i([],!0))),C===FX&&p&&p[0]!==p[1]&&x.createElement(kX,{style:{...j,top:400},ref:h},i(jX(u,k),!0)),C===NX&&x.createElement(`span`,{style:{whiteSpace:`inherit`},ref:g}))}var zX=({enableEllipsis:e,isEllipsis:t,disabled:n,children:r,tooltipProps:i})=>!i?.title||!e?r:x.createElement(gD,{...i,disabled:!t||n},r);function BX({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=x.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var VX=`...`,HX=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],UX=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,direction:s,type:c,disabled:l,children:u,ellipsis:d,editable:f,copyable:p,actions:m,component:h,title:g,onMouseEnter:_,onMouseLeave:v,...y}=e,[b]=im(`Text`),S=x.useRef(null),C=x.useRef(null),[w,T,E,D]=vX(n,a,o,s,e),O=Na(y,HX),[k,A]=hX(f),[j,M]=ti(!1,A.editing),{triggerType:N=[`icon`]}=A,P=e=>{e&&A.onStart?.(),M(e)},F=gX(j);Qr(()=>{!j&&F&&C.current?.focus()},[j]);let I=e=>{e?.preventDefault(),P(!0)},L=e=>{A.onChange?.(e),P(!1)},R=()=>{A.onCancel?.(),P(!1)},[z,B]=hX(p),{placement:V=`end`}=m??{},{copied:H,copyLoading:U,onClick:W}=mX({copyConfig:B,children:u}),[ee,G]=x.useState(!1),[K,q]=x.useState(!1),[J,te]=x.useState(!1),[Y,ne]=x.useState(!1),[X,re]=x.useState(!0),[ie,ae]=hX(d,{expandable:!1,symbol:e=>e?b?.collapse:b?.expand}),[oe,se]=ti(ae.defaultExpanded||!1,ae.expanded),ce=ie&&(!oe||ae.expandable===`collapsible`),{rows:le=1}=ae,ue=x.useMemo(()=>ce&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||k||z),[ce,ae,k,z]);Qr(()=>{ie&&!ue&&(G(ma(`webkitLineClamp`)),q(ma(`textOverflow`)))},[ue,ie]);let[de,fe]=x.useState(ce),pe=x.useMemo(()=>ue?!1:le===1?K:ee,[ue,le,ee,K]);Qr(()=>{fe(pe&&ce)},[pe,ce]);let me=_X(ae.tooltip,A.text,u),he=de&&!!me.title,ge=ce&&(de?he&&Y:J),_e=ce&&le===1&&de,ve=ce&&le>1&&de,ye=(e,t)=>{se(t.expanded),ae.onExpand?.(e,t)},[be,xe]=x.useState(0),[Se,Ce]=ci(!1),we=x.useRef(!1),Te=({offsetWidth:e})=>{xe(e)},Ee=e=>{te(e),J!==e&&ae.onEllipsis?.(e)},De=x.useCallback(()=>{let e=S.current;if(ie&&he&&e){let t=EX(e);ne(e=>e===t?e:t)}},[ie,he]);x.useEffect(()=>{we.current&&De()},[De,u,ve,X,be]),x.useEffect(()=>{let e=S.current;if(typeof IntersectionObserver>`u`||!e||!he||!ce)return;let t=new IntersectionObserver(()=>{re(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[he,ce]);let Oe=x.useMemo(()=>{if(!(!ie||de))return[A.text,u,g,me.title].find(DX)},[ie,de,g,me.title,ge,A.text]);if(j)return x.createElement(uX,{value:A.text??(typeof u==`string`?u:``),onSave:L,onCancel:R,onEnd:A.onEnd,prefixCls:E,className:r,style:i,direction:D,component:h,maxLength:A.maxLength,autoSize:A.autoSize,enterIcon:A.enterIcon,classNames:w,styles:T});let ke=()=>{let{expandable:e,symbol:t}=ae;return e?x.createElement(`button`,{type:`button`,key:`expand`,className:Q(`${E}-${oe?`collapse`:`expand`}`,w.action),style:T.action,onClick:e=>ye(e,{expanded:!oe}),"aria-label":oe?b.collapse:b?.expand},op(t)?t(oe):t):null},Ae=()=>{if(!k)return;let{icon:e,tooltip:t,tabIndex:n}=A,r=Ba(t)[0]||b?.edit,i=typeof r==`string`?r:``;return N.includes(`icon`)?x.createElement(gD,{key:`edit`,title:t===!1?``:r},x.createElement(`button`,{type:`button`,ref:C,className:Q(`${E}-edit`,w.action),style:T.action,onClick:I,"aria-label":i,tabIndex:n},e||x.createElement(QY,{role:`button`}))):null},je=()=>z?x.createElement(OX,{key:`copy`,...B,prefixCls:E,copied:H,locale:b,onCopy:W,loading:U,iconOnly:!np(u),className:w.action,style:T.action}):null,Me=e=>{let t=e&&ke(),n=Ae(),r=je();return!t&&!n&&!r?null:x.createElement(`span`,{key:`operations`,className:Q(`${E}-actions`,w.actions,{[`${E}-actions-start`]:V===`start`}),style:T.actions,onMouseEnter:()=>Ce(!0,!0),onMouseLeave:()=>Ce(!1,{ms:500})},t,n,r)},Ne=e=>[e&&!oe&&x.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},VX),ae.suffix];return x.createElement(bo,{onResize:Te,disabled:!ce},n=>x.createElement(zX,{tooltipProps:me,enableEllipsis:ce,isEllipsis:ge,disabled:Se},x.createElement(yX,{onMouseEnter:e=>{we.current=!0,De(),_?.(e)},onMouseLeave:e=>{we.current=!1,v?.(e)},className:Q({[`${E}-${c}`]:c,[`${E}-disabled`]:l,[`${E}-ellipsis`]:ie,[`${E}-ellipsis-single-line`]:_e,[`${E}-ellipsis-multiple-line`]:ve,[`${E}-link`]:h===`a`},r),classNames:w,styles:T,prefixCls:E,style:{...i,WebkitLineClamp:ve?le:void 0},component:h,ref:Ti(n,S,t),direction:D,onClick:N.includes(`text`)?I:void 0,"aria-label":Oe?.toString(),title:g,...O},x.createElement(RX,{enableMeasure:ce&&!de,text:u,rows:le,width:be,onEllipsis:Ee,expanded:oe,measureDeps:[V],miscDeps:[H,oe,U,k,z,V,b].concat(Do(HX.map(t=>e[t])))},(t,n)=>BX(e,x.createElement(x.Fragment,null,V===`start`?Me(n):null,t.length>0&&n&&!oe&&Oe?x.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ne(n),V===`start`?null:Me(n)))))))}),WX=x.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return x.createElement(UX,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),GX=x.forwardRef((e,t)=>{let{children:n,...r}=e;return x.createElement(UX,{ref:t,...r,component:`div`},n)}),KX=x.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=x.useMemo(()=>ap(n)?Na(n,[`expandable`,`rows`]):n,[n]);return x.createElement(UX,{ref:t,...i,ellipsis:a,component:`span`},r)}),qX=[1,2,3,4,5],JX=x.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=qX.includes(n)?`h${n}`:`h1`;return x.createElement(UX,{ref:t,...i,component:a},r)}),YX=bX;YX.Text=KX,YX.Link=WX,YX.Title=JX,YX.Paragraph=GX;var XX=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(Da(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function ZX(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function QX(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function $X(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(ZX(e,t),QX(t)):e.onSuccess(QX(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var eZ=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t<r;t++)n.push(e[t])}return n}async function a(e){return new Promise(n=>{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s<r.length;)await o(r[s]),s++;return n},tZ=+new Date,nZ=0;function rZ(){return`rc-upload-${tZ}-${++nZ}`}function iZ(){return iZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iZ.apply(this,arguments)}var aZ=class extends x.Component{state={uid:rZ()};reqs={};fileInput;_isMounted;filterFile=(e,t=!1)=>{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>XX(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await eZ(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=rZ(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||$X,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:$X})}reset(){this.setState({uid:rZ()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:m,onMouseEnter:h,onMouseLeave:g,hasControlInside:_,...v}=this.props,y=typeof u==`string`?u:u?.format,b=Q(t,{[`${t}-disabled`]:i,[n]:n}),S=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},C=i?{}:{onClick:m?this.onClick:()=>{},onKeyDown:m?this.onKeyDown:()=>{},onMouseEnter:h,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:`0`};return x.createElement(e,iZ({},C,{className:b,role:_?void 0:`button`,style:s}),x.createElement(`input`,iZ({},Ra(v,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:y},S,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function oZ(){return oZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oZ.apply(this,arguments)}function sZ(){}var cZ=class extends x.Component{static defaultProps={component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:sZ,onError:sZ,onSuccess:sZ,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1};uploader;abort(e){this.uploader.abort(e)}saveUploader=e=>{this.uploader=e};render(){return x.createElement(aZ,oZ({},this.props,{ref:this.saveUploader}))}},lZ=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${$(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${$(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[`
|
|
361
|
+
&:not(${t}-disabled):hover,
|
|
362
|
+
&-hover:not(${t}-disabled)
|
|
363
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${$(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
364
|
+
p${t}-text,
|
|
365
|
+
p${t}-hint
|
|
366
|
+
`]:{color:e.colorTextDisabled}}}}}},uZ=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...ad(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...td,padding:`0 ${$(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[`
|
|
367
|
+
${l}:focus-visible,
|
|
368
|
+
&.picture ${l}
|
|
369
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},dZ=e=>{let{componentCls:t}=e,n=new Gc(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Gc(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:yv(e)},n,r]},fZ=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[`
|
|
370
|
+
${o}${o}-picture,
|
|
371
|
+
${o}${o}-picture-card,
|
|
372
|
+
${o}${o}-picture-circle
|
|
373
|
+
`]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...td,width:r,height:r,lineHeight:$(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${$(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail${s}-file ${n}`]:{color:e.colorError}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},pZ=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[`
|
|
374
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
375
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
376
|
+
`]:{...ad(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${$(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${$(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${$(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
377
|
+
${n}-eye,
|
|
378
|
+
${n}-download,
|
|
379
|
+
${n}-delete
|
|
380
|
+
`]:{zIndex:10,width:r,margin:`0 ${$(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${$(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${$(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},mZ=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},hZ=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...nd(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},gZ=fd(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=wl(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[hZ(o),lZ(o),fZ(o),pZ(o),uZ(o),dZ(o),mZ(o),mv(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),_Z=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`}}))());function vZ(){return vZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vZ.apply(this,arguments)}var yZ=x.forwardRef((e,t)=>x.createElement(qd,vZ({},e,{ref:t,icon:_Z.default}))),bZ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`}}))());function xZ(){return xZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xZ.apply(this,arguments)}var SZ=x.forwardRef((e,t)=>x.createElement(qd,xZ({},e,{ref:t,icon:bZ.default})));function CZ(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function wZ(e,t){let n=Do(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function TZ(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function EZ(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var DZ=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},OZ=e=>e.indexOf(`image/`)===0,kZ=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],AZ=e=>{if(e.type&&!e.thumbUrl)return OZ(e.type);let t=e.thumbUrl||e.url||``,n=DZ(t||e.name);return/^data:image\//.test(t)||kZ.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},jZ=200;function MZ(e){return new Promise(t=>{if(!e.type||!OZ(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=jZ,n.height=jZ,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${jZ}px; height: ${jZ}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=jZ,s=jZ,c=0,l=0;e>a?(s=jZ/e*a,l=-(s-o)/2):(o=jZ/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var NZ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`}}))());function PZ(){return PZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PZ.apply(this,arguments)}var FZ=x.forwardRef((e,t)=>x.createElement(qd,PZ({},e,{ref:t,icon:NZ.default}))),IZ=x.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:_,removeIcon:v,downloadIcon:y,extra:b,onPreview:S,onDownload:C,onClose:w},T)=>{let{status:E}=s,[D,O]=x.useState(E);x.useEffect(()=>{E!==`removed`&&O(E)},[E]);let[k,A]=ci(!1);x.useEffect(()=>{A(!0,{ms:300})},[]);let j=u(s),M=x.createElement(`div`,{className:`${e}-icon`},j);if(o===`picture`||o===`picture-card`||o===`picture-circle`){if(D===`uploading`||!s.thumbUrl&&!s.url){let t=Q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:D!==`uploading`});M=x.createElement(`div`,{className:t},j)}else{let t=p?.(s)?x.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):j,n=Q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});M=x.createElement(`a`,{className:n,onClick:e=>S(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}}let N=Q(`${e}-list-item`,`${e}-list-item-${D}`,r?.item),P=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,F=(op(h)?h(s):h)?d((op(v)?v(s):v)||x.createElement(YY,null),()=>w(s),e,a.removeFile,!0):null,I=(op(g)?g(s):g)&&D===`done`?d((op(y)?y(s):y)||x.createElement(FZ,null),()=>C(s),e,a.downloadFile):null,L=o!==`picture-card`&&o!==`picture-circle`&&x.createElement(`span`,{key:`download-delete`,className:Q(`${e}-list-item-actions`,{picture:o===`picture`})},I,F),R=op(b)?b(s):b,z=R&&x.createElement(`span`,{className:`${e}-list-item-extra`},R),B=Q(`${e}-list-item-name`),V=s.url?x.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:B,title:s.name,...P,href:s.url,onClick:e=>S(s,e)},s.name,z):x.createElement(`span`,{key:`view`,role:`button`,tabIndex:0,className:B,onClick:e=>S(s,e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),S(s,e))},title:s.name},s.name,z),H=(op(m)?m(s):m)&&(s.url||s.thumbUrl)?x.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>S(s,e),title:a.previewFile,"aria-label":a.previewFile||void 0},op(_)?_(s):_||x.createElement(sV,null)):null,U=(o===`picture-card`||o===`picture-circle`)&&D!==`uploading`&&x.createElement(`span`,{className:`${e}-list-item-actions`},H,D===`done`&&I,F),{getPrefixCls:W}=x.useContext(Ao),ee=W(),G=x.createElement(`div`,{className:N,style:i?.item},M,V,L,U,k&&x.createElement(ep,{motionName:`${ee}-fade`,visible:D===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?x.createElement(bU,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return x.createElement(`div`,{className:Q(`${e}-list-item-progress`,t)},n)})),K=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,q=D===`error`?x.createElement(gD,{title:K,getPopupContainer:e=>e.parentNode},G):G;return x.createElement(`div`,{className:Q(`${e}-list-item-container`,t),style:n,ref:T},f?f(q,s,c,{download:C.bind(null,s),preview:S.bind(null,s),remove:w.bind(null,s)}):q)}),LZ=x.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=MZ,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=AZ,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:C,disabled:w,classNames:T,styles:E}=e,[,D]=Sg(),[O,k]=x.useState(!1),A=[`picture-card`,`picture-circle`].includes(n);x.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,D()}))})},[n,d,r]),x.useEffect(()=>{k(!0)},[]);let j=(e,t)=>{if(i)return t?.preventDefault(),i(e)},M=e=>{op(a)?a(e):e.url&&window.open(e.url,`_blank`,`noopener`)},N=e=>{o?.(e)},P=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?x.createElement(fg,null):s.uploading,i=l?.(e)?x.createElement(SZ,null):x.createElement(vq,null);return t?r:i}return t?x.createElement(fg,null):x.createElement(yZ,null)},F=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,"aria-label":r||void 0,onClick:n=>{t(),x.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?w:!1};return x.isValidElement(e)?x.createElement(Fy,{...a,icon:ch(e,{...e.props,onClick:()=>{}})}):x.createElement(Fy,{...a},x.createElement(`span`,null,e))};x.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:M}));let{getPrefixCls:I}=x.useContext(Ao),L=I(`upload`,u),R=I(),z=Q(`${L}-list`,`${L}-list-${n}`,T?.list),B=x.useMemo(()=>Na(I_(R),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[R]),V={...A?{}:B,motionDeadline:2e3,motionName:`${L}-${A?`animate-inline`:`animate`}`,keys:Do(d.map(e=>({key:e.uid,file:e}))),motionAppear:O};return x.createElement(`div`,{className:z,style:E?.list},x.createElement($f,{...V,component:!1},({key:e,file:t,className:r,style:i})=>x.createElement(IZ,{key:e,locale:s,prefixCls:L,className:r,style:i,classNames:T,styles:E,file:t,items:d,progress:y,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:h,previewIcon:g,downloadIcon:_,extra:v,iconRender:P,actionIconRender:F,itemRender:C,onPreview:j,onDownload:M,onClose:N})),b&&x.createElement(ep,{...V,visible:S,forceRender:!0},({className:e,style:t})=>ch(b,n=>({className:Q(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),RZ=`__LIST_IGNORE_${Date.now()}__`,zZ=x.forwardRef((e,t)=>{let n=No(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:h,isImageUrl:g,progress:_,prefixCls:v,className:y,type:b=`select`,children:S,style:C,itemRender:w,maxCount:T,data:E={},multiple:D=!1,hasControlInside:O=!0,action:k=``,accept:A,supportServerRender:j=!0,rootClassName:M,styles:N,classNames:P}=e,F=x.useContext(ph),I=p??F,L=e.customRequest||n.customRequest,R=n.progress||_?{...n.progress,..._}:void 0,z=pg(A,n.accept,``),[B,V]=ti(i,r),H=B||[],U=Yr(()=>H),[W,ee]=x.useState(`drop`),G=x.useRef(null),K=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let q=(e,t,n)=>{let r=Do(t),i=!1;T===1?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,$a.flushSync)(()=>{V(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,$a.flushSync)(()=>{u?.(a)})},J=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[RZ],e===RZ)return Object.defineProperty(t,RZ,{value:!0,configurable:!0}),!1;ap(e)&&(i=e)}return i},te=e=>{let t=e.filter(e=>!e.file[RZ]);if(!t.length)return;let n=t.map(e=>CZ(e.file)),r=Do(H);n.forEach(e=>{r=wZ(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}q(i,r)})},Y=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!TZ(t,H))return;let r=CZ(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n;let i=wZ(r,H);q(r,i)},ne=(e,t)=>{if(!TZ(t,H))return;let n=CZ(t);n.status=`uploading`,n.percent=e.percent;let r=wZ(n,H);q(n,r,e)},X=(e,t,n)=>{if(!TZ(n,H))return;let r=CZ(n);r.error=e,r.response=t,r.status=`error`;let i=wZ(r,H);q(r,i)},re=e=>{let t;Promise.resolve(op(a)?a(e):a).then(n=>{if(n===!1)return;let r=U(),i=EZ(e,r);i&&(t={...e,status:`removed`},r.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),G.current?.abort(t),q(t,i))})},ie=e=>{ee(e.type),e.type===`drop`&&d?.(e)};x.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:Y,onProgress:ne,onError:X,fileList:H,upload:G.current,nativeElement:K.current}));let{getPrefixCls:ae,direction:oe,className:se,style:ce,classNames:le,styles:ue}=No(`upload`),de=ae(`upload`,v),fe={...e,listType:s,showUploadList:o,type:b,multiple:D,hasControlInside:O,supportServerRender:j,disabled:I},pe=vp(ce,`trigger`),me=vp(C,`trigger`),[he,ge]=bp([le,P],[ue,pe,N,me],{props:fe}),_e={onBatchStart:te,onError:X,onProgress:ne,onSuccess:Y,...e,customRequest:L,data:E,multiple:D,action:k,accept:z,supportServerRender:j,prefixCls:de,disabled:I,beforeUpload:J,onChange:void 0,hasControlInside:O};delete _e.className,delete _e.style,(!S||I)&&delete _e.id;let ve=`${de}-wrapper`,[ye,be]=gZ(de,ve),[xe]=im(`Upload`,Zp.Upload),{showRemoveIcon:Se,showPreviewIcon:Ce,showDownloadIcon:we,removeIcon:Te,previewIcon:Ee,downloadIcon:De,extra:Oe}=typeof o==`boolean`?{}:o,ke=Se===void 0?!I:Se,Ae=(e,t)=>o?x.createElement(LZ,{classNames:he,styles:ge,prefixCls:de,listType:s,items:H,previewFile:f,onPreview:c,onDownload:l,onRemove:re,showRemoveIcon:ke,showPreviewIcon:Ce,showDownloadIcon:we,removeIcon:Te,previewIcon:Ee,downloadIcon:De,iconRender:h,extra:Oe,locale:{...xe,...m},isImageUrl:g,progress:R,appendAction:e,appendActionVisible:t,itemRender:w,disabled:I}):e,je=Q(ve,y,M,ye,be,se,he.root,{[`${de}-rtl`]:oe===`rtl`,[`${de}-picture-card-wrapper`]:s===`picture-card`,[`${de}-picture-circle-wrapper`]:s===`picture-circle`}),Me={...ge.root};if(b===`drag`){let e=Q(ye,de,`${de}-drag`,{[`${de}-drag-uploading`]:H.some(e=>e.status===`uploading`),[`${de}-drag-hover`]:W===`dragover`,[`${de}-disabled`]:I,[`${de}-rtl`]:oe===`rtl`},he.trigger);return x.createElement(`span`,{className:je,ref:K,style:Me},x.createElement(`div`,{className:e,style:ge.trigger,onDrop:ie,onDragOver:ie,onDragLeave:ie},x.createElement(cZ,{..._e,ref:G,className:`${de}-btn`},x.createElement(`div`,{className:`${de}-drag-container`},S))),Ae())}let Ne=Q(de,`${de}-select`,{[`${de}-disabled`]:I,[`${de}-hidden`]:!S},he.trigger),Pe=x.createElement(`div`,{className:Ne,style:ge.trigger},x.createElement(cZ,{..._e,ref:G}));return s===`picture-card`||s===`picture-circle`?x.createElement(`span`,{className:je,ref:K,style:Me},Ae(Pe,!!S)):x.createElement(`span`,{className:je,ref:K,style:Me},Pe,Ae())}),BZ=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return x.createElement(zZ,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),VZ=zZ;VZ.Dragger=BZ,VZ.LIST_IGNORE=RZ;var HZ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function UZ(){return UZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UZ.apply(this,arguments)}var WZ=x.forwardRef((e,t)=>x.createElement(qd,UZ({},e,{ref:t,icon:HZ.default}))),GZ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z`}}]},name:`bulb`,theme:`outlined`}}))());function KZ(){return KZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KZ.apply(this,arguments)}var qZ=x.forwardRef((e,t)=>x.createElement(qd,KZ({},e,{ref:t,icon:GZ.default}))),JZ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z`}}]},name:`dashboard`,theme:`outlined`}}))());function YZ(){return YZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YZ.apply(this,arguments)}var XZ=x.forwardRef((e,t)=>x.createElement(qd,YZ({},e,{ref:t,icon:JZ.default}))),ZZ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`database`,theme:`outlined`}}))());function QZ(){return QZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QZ.apply(this,arguments)}var $Z=x.forwardRef((e,t)=>x.createElement(qd,QZ({},e,{ref:t,icon:ZZ.default}))),eQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z`}}]},name:`experiment`,theme:`outlined`}}))());function tQ(){return tQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tQ.apply(this,arguments)}var nQ=x.forwardRef((e,t)=>x.createElement(qd,tQ({},e,{ref:t,icon:eQ.default}))),rQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z`}}]},name:`filter`,theme:`outlined`}}))());function iQ(){return iQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iQ.apply(this,arguments)}var aQ=x.forwardRef((e,t)=>x.createElement(qd,iQ({},e,{ref:t,icon:rQ.default}))),oQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z`}}]},name:`inbox`,theme:`outlined`}}))());function sQ(){return sQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sQ.apply(this,arguments)}var cQ=x.forwardRef((e,t)=>x.createElement(qd,sQ({},e,{ref:t,icon:oQ.default}))),lQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z`}}]},name:`link`,theme:`outlined`}}))());function uQ(){return uQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uQ.apply(this,arguments)}var dQ=x.forwardRef((e,t)=>x.createElement(qd,uQ({},e,{ref:t,icon:lQ.default}))),fQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z`}}]},name:`moon`,theme:`outlined`}}))());function pQ(){return pQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pQ.apply(this,arguments)}var mQ=x.forwardRef((e,t)=>x.createElement(qd,pQ({},e,{ref:t,icon:fQ.default}))),hQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{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 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`profile`,theme:`outlined`}}))());function gQ(){return gQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gQ.apply(this,arguments)}var _Q=x.forwardRef((e,t)=>x.createElement(qd,gQ({},e,{ref:t,icon:hQ.default}))),vQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z`}}]},name:`pushpin`,theme:`filled`}}))());function yQ(){return yQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yQ.apply(this,arguments)}var bQ=x.forwardRef((e,t)=>x.createElement(qd,yQ({},e,{ref:t,icon:vQ.default}))),xQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z`}}]},name:`safety-certificate`,theme:`outlined`}}))());function SQ(){return SQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SQ.apply(this,arguments)}var CQ=x.forwardRef((e,t)=>x.createElement(qd,SQ({},e,{ref:t,icon:xQ.default}))),wQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}}))());function TQ(){return TQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TQ.apply(this,arguments)}var EQ=x.forwardRef((e,t)=>x.createElement(qd,TQ({},e,{ref:t,icon:wQ.default}))),DQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0014.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0015.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 01512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 01-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z`}}]},name:`shop`,theme:`outlined`}}))());function OQ(){return OQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OQ.apply(this,arguments)}var kQ=x.forwardRef((e,t)=>x.createElement(qd,OQ({},e,{ref:t,icon:DQ.default}))),AQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z`}}]},name:`sun`,theme:`outlined`}}))());function jQ(){return jQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jQ.apply(this,arguments)}var MQ=x.forwardRef((e,t)=>x.createElement(qd,jQ({},e,{ref:t,icon:AQ.default}))),NQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z`}}]},name:`thunderbolt`,theme:`outlined`}}))());function PQ(){return PQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PQ.apply(this,arguments)}var FQ=x.forwardRef((e,t)=>x.createElement(qd,PQ({},e,{ref:t,icon:NQ.default}))),IQ=c(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`upload`,theme:`outlined`}}))());function LQ(){return LQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LQ.apply(this,arguments)}var RQ=x.forwardRef((e,t)=>x.createElement(qd,LQ({},e,{ref:t,icon:IQ.default}))),zQ=[`applied`,`screening`,`interview`,`offer`,`rejected`,`withdrawn`,`ghosted`],BQ=[`applied`,`screening`,`interview`,`offer`];function VQ(e){let t=BQ.indexOf(e);return t===-1||t===BQ.length-1?null:BQ[t+1]??null}var HQ={applied:`blue`,screening:`cyan`,interview:`gold`,offer:`green`,rejected:`red`,withdrawn:`default`,ghosted:`purple`},UQ={applied:`Applied`,screening:`Screening`,interview:`Interview`,offer:`Offer`,rejected:`Rejected`,withdrawn:`Withdrawn`,ghosted:`Ghosted`},WQ=[`remote`,`hybrid`,`onsite`,`unspecified`],GQ={remote:`Remote`,hybrid:`Hybrid`,onsite:`On-site`,unspecified:`Unspecified`},KQ=[`company`,`application`],qQ=[`company`,`application`,`standalone`],JQ=[`company`,`application`,`both`],YQ=/^(\d{4})-(\d{2})-(\d{2})$/;function XQ(e){let t=YQ.exec(e);if(!t)throw Error(`Not a YYYY-MM-DD date: ${JSON.stringify(e)}`);let n=Number(t[1]),r=Number(t[2]),i=Number(t[3]),a=new Date(Date.UTC(n,r-1,i));if(a.getUTCFullYear()!==n||a.getUTCMonth()!==r-1||a.getUTCDate()!==i)throw Error(`Not a real calendar date: ${e}`);return a}function ZQ(e){let t=typeof e==`string`?XQ(e):e;return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1}}function QQ(e=new Date){return`${String(e.getFullYear()).padStart(4,`0`)}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}var $Q=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];function e$(e){return $Q[e-1]??`Month ${e}`}var t$;function n$(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var r$=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},i$=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(t$=globalThis).__zod_globalConfig??(t$.__zod_globalConfig={});var a$=globalThis.__zod_globalConfig;function o$(e){return e&&Object.assign(a$,e),a$}function s$(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function c$(e,t){return typeof t==`bigint`?t.toString():t}function l$(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function u$(e){return e==null}function d$(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function f$(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var p$=Symbol(`evaluating`);function m$(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==p$)return r===void 0&&(r=p$,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function h$(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function g$(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function _$(e){return JSON.stringify(e)}function v$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var y$=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function b$(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var x$=l$(()=>{if(a$.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function S$(e){if(b$(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return b$(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function C$(e){return S$(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var w$=new Set([`string`,`number`,`symbol`]);function T$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function E$(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function D$(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function O$(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var k$={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function A$(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return E$(e,g$(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return h$(this,`shape`,e),e},checks:[]}))}function j$(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return E$(e,g$(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return h$(this,`shape`,r),r},checks:[]}))}function M$(e,t){if(!S$(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return E$(e,g$(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return h$(this,`shape`,n),n}}))}function N$(e,t){if(!S$(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return E$(e,g$(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return h$(this,`shape`,n),n}}))}function P$(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return E$(e,g$(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return h$(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function F$(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return E$(t,g$(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return h$(this,`shape`,i),i},checks:[]}))}function I$(e,t,n){return E$(t,g$(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return h$(this,`shape`,i),i}}))}function L$(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function R$(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function z$(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function B$(e){return typeof e==`string`?e:e?.message}function V$(e,t,n){let r=e.message?e.message:B$(e.inst?._zod.def?.error?.(e))??B$(t?.error?.(e))??B$(n.customError?.(e))??B$(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function H$(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function U$(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var W$=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,c$,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},G$=n$(`$ZodError`,W$),K$=n$(`$ZodError`,W$,{Parent:Error});function q$(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function J$(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var Y$=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new r$;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>V$(e,a,o$())));throw y$(t,i?.callee),t}return o.value},X$=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>V$(e,a,o$())));throw y$(t,i?.callee),t}return o.value},Z$=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new r$;return a.issues.length?{success:!1,error:new(e??G$)(a.issues.map(e=>V$(e,i,o$())))}:{success:!0,data:a.value}},Q$=Z$(K$),$$=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>V$(e,i,o$())))}:{success:!0,data:a.value}},e1=$$(K$),t1=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Y$(e)(t,n,i)},n1=e=>(t,n,r)=>Y$(e)(t,n,r),r1=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return X$(e)(t,n,i)},i1=e=>async(t,n,r)=>X$(e)(t,n,r),a1=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Z$(e)(t,n,i)},o1=e=>(t,n,r)=>Z$(e)(t,n,r),s1=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $$(e)(t,n,i)},c1=e=>async(t,n,r)=>$$(e)(t,n,r),l1=/^[cC][0-9a-z]{6,}$/,u1=/^[0-9a-z]+$/,d1=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,f1=/^[0-9a-vA-V]{20}$/,p1=/^[A-Za-z0-9]{27}$/,m1=/^[a-zA-Z0-9_-]{21}$/,h1=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,g1=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,_1=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,v1=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,y1=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function b1(){return new RegExp(y1,`u`)}var x1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,S1=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,C1=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,w1=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,T1=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,E1=/^[A-Za-z0-9_-]*$/,D1=/^https?$/,O1=/^\+[1-9]\d{6,14}$/,k1=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,A1=RegExp(`^${k1}$`);function j1(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M1(e){return RegExp(`^${j1(e)}$`)}function N1(e){let t=j1({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${k1}T(?:${r})$`)}var P1=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},F1=/^-?\d+$/,I1=/^-?\d+(?:\.\d+)?$/,L1=/^(?:true|false)$/i,R1=/^[^A-Z]*$/,z1=/^[^a-z]*$/,B1=n$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),V1={number:`number`,bigint:`bigint`,object:`date`},H1=n$(`$ZodCheckLessThan`,(e,t)=>{B1.init(e,t);let n=V1[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),U1=n$(`$ZodCheckGreaterThan`,(e,t)=>{B1.init(e,t);let n=V1[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),W1=n$(`$ZodCheckMultipleOf`,(e,t)=>{B1.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):f$(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),G1=n$(`$ZodCheckNumberFormat`,(e,t)=>{B1.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=k$[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=F1)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),K1=n$(`$ZodCheckMaxLength`,(e,t)=>{var n;B1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u$(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=H$(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),q1=n$(`$ZodCheckMinLength`,(e,t)=>{var n;B1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u$(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=H$(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),J1=n$(`$ZodCheckLengthEquals`,(e,t)=>{var n;B1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!u$(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=H$(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Y1=n$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;B1.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),X1=n$(`$ZodCheckRegex`,(e,t)=>{Y1.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Z1=n$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=R1,Y1.init(e,t)}),Q1=n$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=z1,Y1.init(e,t)}),$1=n$(`$ZodCheckIncludes`,(e,t)=>{B1.init(e,t);let n=T$(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),e0=n$(`$ZodCheckStartsWith`,(e,t)=>{B1.init(e,t);let n=RegExp(`^${T$(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),t0=n$(`$ZodCheckEndsWith`,(e,t)=>{B1.init(e,t);let n=RegExp(`.*${T$(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),n0=n$(`$ZodCheckOverwrite`,(e,t)=>{B1.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),r0=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
381
|
+
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
382
|
+
`))}},i0={major:4,minor:4,patch:3},a0=n$(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=i0;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=L$(e),i;for(let a of t){if(a._zod.def.when){if(R$(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new r$;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=L$(e,t))});else{if(e.issues.length===t)continue;r||=L$(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(L$(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new r$;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new r$;return o.then(e=>t(e,r,a))}return t(o,r,a)}}m$(e,`~standard`,()=>({validate:t=>{try{let n=Q$(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return e1(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),o0=n$(`$ZodString`,(e,t)=>{a0.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??P1(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),s0=n$(`$ZodStringFormat`,(e,t)=>{Y1.init(e,t),o0.init(e,t)}),c0=n$(`$ZodGUID`,(e,t)=>{t.pattern??=g1,s0.init(e,t)}),l0=n$(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=_1(e)}else t.pattern??=_1();s0.init(e,t)}),u0=n$(`$ZodEmail`,(e,t)=>{t.pattern??=v1,s0.init(e,t)}),d0=n$(`$ZodURL`,(e,t)=>{s0.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===D1.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),f0=n$(`$ZodEmoji`,(e,t)=>{t.pattern??=b1(),s0.init(e,t)}),p0=n$(`$ZodNanoID`,(e,t)=>{t.pattern??=m1,s0.init(e,t)}),m0=n$(`$ZodCUID`,(e,t)=>{t.pattern??=l1,s0.init(e,t)}),h0=n$(`$ZodCUID2`,(e,t)=>{t.pattern??=u1,s0.init(e,t)}),g0=n$(`$ZodULID`,(e,t)=>{t.pattern??=d1,s0.init(e,t)}),_0=n$(`$ZodXID`,(e,t)=>{t.pattern??=f1,s0.init(e,t)}),v0=n$(`$ZodKSUID`,(e,t)=>{t.pattern??=p1,s0.init(e,t)}),y0=n$(`$ZodISODateTime`,(e,t)=>{t.pattern??=N1(t),s0.init(e,t)}),b0=n$(`$ZodISODate`,(e,t)=>{t.pattern??=A1,s0.init(e,t)}),x0=n$(`$ZodISOTime`,(e,t)=>{t.pattern??=M1(t),s0.init(e,t)}),S0=n$(`$ZodISODuration`,(e,t)=>{t.pattern??=h1,s0.init(e,t)}),C0=n$(`$ZodIPv4`,(e,t)=>{t.pattern??=x1,s0.init(e,t),e._zod.bag.format=`ipv4`}),w0=n$(`$ZodIPv6`,(e,t)=>{t.pattern??=S1,s0.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),T0=n$(`$ZodCIDRv4`,(e,t)=>{t.pattern??=C1,s0.init(e,t)}),E0=n$(`$ZodCIDRv6`,(e,t)=>{t.pattern??=w1,s0.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function D0(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var O0=n$(`$ZodBase64`,(e,t)=>{t.pattern??=T1,s0.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{D0(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function k0(e){if(!E1.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return D0(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var A0=n$(`$ZodBase64URL`,(e,t)=>{t.pattern??=E1,s0.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{k0(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),j0=n$(`$ZodE164`,(e,t)=>{t.pattern??=O1,s0.init(e,t)});function M0(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var N0=n$(`$ZodJWT`,(e,t)=>{s0.init(e,t),e._zod.check=n=>{M0(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),P0=n$(`$ZodNumber`,(e,t)=>{a0.init(e,t),e._zod.pattern=e._zod.bag.pattern??I1,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),F0=n$(`$ZodNumberFormat`,(e,t)=>{G1.init(e,t),P0.init(e,t)}),I0=n$(`$ZodBoolean`,(e,t)=>{a0.init(e,t),e._zod.pattern=L1,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),L0=n$(`$ZodUnknown`,(e,t)=>{a0.init(e,t),e._zod.parse=e=>e}),R0=n$(`$ZodNever`,(e,t)=>{a0.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function z0(e,t,n){e.issues.length&&t.issues.push(...z$(n,e.issues)),t.value[n]=e.value}var B0=n$(`$ZodArray`,(e,t)=>{a0.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>z0(t,n,e))):z0(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function V0(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...z$(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function H0(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=O$(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function U0(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>V0(e,n,i,t,u,d))):V0(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var W0=n$(`$ZodObject`,(e,t)=>{if(a0.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=l$(()=>H0(t));m$(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=b$,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>V0(n,t,e,s,r,i))):V0(a,t,e,s,r,i)}return i?U0(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),G0=n$(`$ZodObjectJIT`,(e,t)=>{W0.init(e,t);let n=e._zod.parse,r=l$(()=>H0(t)),i=e=>{let t=new r0([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=_$(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=_$(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
383
|
+
if (${n}.issues.length) {
|
|
384
|
+
if (${o} in input) {
|
|
385
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
386
|
+
...iss,
|
|
387
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
388
|
+
})));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (${n}.value === undefined) {
|
|
393
|
+
if (${o} in input) {
|
|
394
|
+
newResult[${o}] = undefined;
|
|
395
|
+
}
|
|
396
|
+
} else {
|
|
397
|
+
newResult[${o}] = ${n}.value;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
`):c?t.write(`
|
|
401
|
+
if (${n}.issues.length) {
|
|
402
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
403
|
+
...iss,
|
|
404
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
405
|
+
})));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (${n}.value === undefined) {
|
|
409
|
+
if (${o} in input) {
|
|
410
|
+
newResult[${o}] = undefined;
|
|
411
|
+
}
|
|
412
|
+
} else {
|
|
413
|
+
newResult[${o}] = ${n}.value;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
`):t.write(`
|
|
417
|
+
const ${n}_present = ${o} in input;
|
|
418
|
+
if (${n}.issues.length) {
|
|
419
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
420
|
+
...iss,
|
|
421
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
422
|
+
})));
|
|
423
|
+
}
|
|
424
|
+
if (!${n}_present && !${n}.issues.length) {
|
|
425
|
+
payload.issues.push({
|
|
426
|
+
code: "invalid_type",
|
|
427
|
+
expected: "nonoptional",
|
|
428
|
+
input: undefined,
|
|
429
|
+
path: [${o}]
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (${n}_present) {
|
|
434
|
+
if (${n}.value === undefined) {
|
|
435
|
+
newResult[${o}] = undefined;
|
|
436
|
+
} else {
|
|
437
|
+
newResult[${o}] = ${n}.value;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=b$,s=!a$.jitless,c=s&&x$.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?U0([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function K0(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!L$(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V$(e,r,o$())))}),t)}var q0=n$(`$ZodUnion`,(e,t)=>{a0.init(e,t),m$(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),m$(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),m$(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),m$(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>d$(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>K0(t,r,e,i)):K0(o,r,e,i)}}),J0=n$(`$ZodIntersection`,(e,t)=>{a0.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>X0(e,t,n)):X0(e,i,a)}});function Y0(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(S$(e)&&S$(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Y0(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Y0(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function X0(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),L$(e))return e;let o=Y0(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Z0=n$(`$ZodEnum`,(e,t)=>{a0.init(e,t);let n=s$(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>w$.has(typeof e)).map(e=>typeof e==`string`?T$(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Q0=n$(`$ZodTransform`,(e,t)=>{a0.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new i$(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new r$;return n.value=i,n.fallback=!0,n}});function $0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var e2=n$(`$ZodOptional`,(e,t)=>{a0.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,m$(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),m$(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${d$(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>$0(e,r)):$0(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),t2=n$(`$ZodExactOptional`,(e,t)=>{e2.init(e,t),m$(e._zod,`values`,()=>t.innerType._zod.values),m$(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),n2=n$(`$ZodNullable`,(e,t)=>{a0.init(e,t),m$(e._zod,`optin`,()=>t.innerType._zod.optin),m$(e._zod,`optout`,()=>t.innerType._zod.optout),m$(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${d$(e.source)}|null)$`):void 0}),m$(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),r2=n$(`$ZodDefault`,(e,t)=>{a0.init(e,t),e._zod.optin=`optional`,m$(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>i2(e,t)):i2(r,t)}});function i2(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var a2=n$(`$ZodPrefault`,(e,t)=>{a0.init(e,t),e._zod.optin=`optional`,m$(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),o2=n$(`$ZodNonOptional`,(e,t)=>{a0.init(e,t),m$(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>s2(t,e)):s2(i,e)}});function s2(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var c2=n$(`$ZodCatch`,(e,t)=>{a0.init(e,t),e._zod.optin=`optional`,m$(e._zod,`optout`,()=>t.innerType._zod.optout),m$(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V$(e,n,o$()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>V$(e,n,o$()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),l2=n$(`$ZodPipe`,(e,t)=>{a0.init(e,t),m$(e._zod,`values`,()=>t.in._zod.values),m$(e._zod,`optin`,()=>t.in._zod.optin),m$(e._zod,`optout`,()=>t.out._zod.optout),m$(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>u2(e,t.in,n)):u2(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>u2(e,t.out,n)):u2(r,t.out,n)}});function u2(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var d2=n$(`$ZodPreprocess`,(e,t)=>{l2.init(e,t)}),f2=n$(`$ZodReadonly`,(e,t)=>{a0.init(e,t),m$(e._zod,`propValues`,()=>t.innerType._zod.propValues),m$(e._zod,`values`,()=>t.innerType._zod.values),m$(e._zod,`optin`,()=>t.innerType?._zod?.optin),m$(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(p2):p2(r)}});function p2(e){return e.value=Object.freeze(e.value),e}var m2=n$(`$ZodCustom`,(e,t)=>{B1.init(e,t),a0.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>h2(t,n,r,e));h2(i,n,r,e)}});function h2(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(U$(e))}}var g2,_2=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function v2(){return new _2}(g2=globalThis).__zod_globalRegistry??(g2.__zod_globalRegistry=v2());var y2=globalThis.__zod_globalRegistry;function b2(e,t){return new e({type:`string`,...D$(t)})}function x2(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...D$(t)})}function S2(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...D$(t)})}function C2(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...D$(t)})}function w2(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...D$(t)})}function T2(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...D$(t)})}function E2(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...D$(t)})}function D2(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...D$(t)})}function O2(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...D$(t)})}function k2(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...D$(t)})}function A2(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...D$(t)})}function j2(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...D$(t)})}function M2(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...D$(t)})}function N2(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...D$(t)})}function P2(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...D$(t)})}function F2(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...D$(t)})}function I2(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...D$(t)})}function L2(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...D$(t)})}function R2(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...D$(t)})}function z2(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...D$(t)})}function B2(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...D$(t)})}function V2(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...D$(t)})}function H2(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...D$(t)})}function U2(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...D$(t)})}function W2(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...D$(t)})}function G2(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...D$(t)})}function K2(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...D$(t)})}function q2(e,t){return new e({type:`number`,checks:[],...D$(t)})}function J2(e,t){return new e({type:`number`,coerce:!0,checks:[],...D$(t)})}function Y2(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...D$(t)})}function X2(e,t){return new e({type:`boolean`,...D$(t)})}function Z2(e){return new e({type:`unknown`})}function Q2(e,t){return new e({type:`never`,...D$(t)})}function $2(e,t){return new H1({check:`less_than`,...D$(t),value:e,inclusive:!1})}function e4(e,t){return new H1({check:`less_than`,...D$(t),value:e,inclusive:!0})}function t4(e,t){return new U1({check:`greater_than`,...D$(t),value:e,inclusive:!1})}function n4(e,t){return new U1({check:`greater_than`,...D$(t),value:e,inclusive:!0})}function r4(e,t){return new W1({check:`multiple_of`,...D$(t),value:e})}function i4(e,t){return new K1({check:`max_length`,...D$(t),maximum:e})}function a4(e,t){return new q1({check:`min_length`,...D$(t),minimum:e})}function o4(e,t){return new J1({check:`length_equals`,...D$(t),length:e})}function s4(e,t){return new X1({check:`string_format`,format:`regex`,...D$(t),pattern:e})}function c4(e){return new Z1({check:`string_format`,format:`lowercase`,...D$(e)})}function l4(e){return new Q1({check:`string_format`,format:`uppercase`,...D$(e)})}function u4(e,t){return new $1({check:`string_format`,format:`includes`,...D$(t),includes:e})}function d4(e,t){return new e0({check:`string_format`,format:`starts_with`,...D$(t),prefix:e})}function f4(e,t){return new t0({check:`string_format`,format:`ends_with`,...D$(t),suffix:e})}function p4(e){return new n0({check:`overwrite`,tx:e})}function m4(e){return p4(t=>t.normalize(e))}function h4(){return p4(e=>e.trim())}function g4(){return p4(e=>e.toLowerCase())}function _4(){return p4(e=>e.toUpperCase())}function v4(){return p4(e=>v$(e))}function y4(e,t,n){return new e({type:`array`,element:t,...D$(n)})}function b4(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...D$(n)})}function x4(e,t){let n=S4(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(U$(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(U$(r))}},e(t.value,t)),t);return n}function S4(e,t){let n=new B1({check:`custom`,...D$(t)});return n._zod.check=e,n}function C4(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??y2,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function w4(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,w4(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&D4(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function T4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
442
|
+
|
|
443
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function E4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:k4(t,`input`,e.processors),output:k4(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function D4(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return D4(r.element,n);if(r.type===`set`)return D4(r.valueType,n);if(r.type===`lazy`)return D4(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return D4(r.innerType,n);if(r.type===`intersection`)return D4(r.left,n)||D4(r.right,n);if(r.type===`record`||r.type===`map`)return D4(r.keyType,n)||D4(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:D4(r.in,n)||D4(r.out,n);if(r.type===`object`){for(let e in r.shape)if(D4(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(D4(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(D4(e,n))return!0;return!!(r.rest&&D4(r.rest,n))}return!1}var O4=(e,t={})=>n=>{let r=C4({...n,processors:t});return w4(e,r),T4(r,e),E4(r,e)},k4=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=C4({...i??{},target:a,io:t,processors:n});return w4(e,o),T4(o,e),E4(o,e)},A4={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},j4=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=A4[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},M4=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},N4=(e,t,n,r)=>{n.type=`boolean`},P4=(e,t,n,r)=>{n.not={}},F4=(e,t,n,r)=>{let i=e._zod.def,a=s$(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},I4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},L4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},R4=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=w4(a.element,t,{...r,path:[...r.path,`items`]})},z4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=w4(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=w4(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},B4=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>w4(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},V4=(e,t,n,r)=>{let i=e._zod.def,a=w4(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=w4(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},H4=(e,t,n,r)=>{let i=e._zod.def,a=w4(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},U4=(e,t,n,r)=>{let i=e._zod.def;w4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},W4=(e,t,n,r)=>{let i=e._zod.def;w4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},G4=(e,t,n,r)=>{let i=e._zod.def;w4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},K4=(e,t,n,r)=>{let i=e._zod.def;w4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},q4=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;w4(o,t,r);let s=t.seen.get(e);s.ref=o},J4=(e,t,n,r)=>{let i=e._zod.def;w4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Y4=(e,t,n,r)=>{let i=e._zod.def;w4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},X4=n$(`ZodISODateTime`,(e,t)=>{y0.init(e,t),C3.init(e,t)});function Z4(e){return U2(X4,e)}var Q4=n$(`ZodISODate`,(e,t)=>{b0.init(e,t),C3.init(e,t)});function $4(e){return W2(Q4,e)}var e3=n$(`ZodISOTime`,(e,t)=>{x0.init(e,t),C3.init(e,t)});function t3(e){return G2(e3,e)}var n3=n$(`ZodISODuration`,(e,t)=>{S0.init(e,t),C3.init(e,t)});function r3(e){return K2(n3,e)}var i3=n$(`ZodError`,(e,t)=>{G$.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>J$(e,t)},flatten:{value:t=>q$(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,c$,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,c$,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),a3=Y$(i3),o3=X$(i3),s3=Z$(i3),c3=$$(i3),l3=t1(i3),u3=n1(i3),d3=r1(i3),f3=i1(i3),p3=a1(i3),m3=o1(i3),h3=s1(i3),g3=c1(i3),_3=new WeakMap;function v3(e,t,n){let r=Object.getPrototypeOf(e),i=_3.get(r);if(i||(i=new Set,_3.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var y3=n$(`ZodType`,(e,t)=>(a0.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:k4(e,`input`),output:k4(e,`output`)}}),e.toJSONSchema=O4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>a3(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>s3(e,t,n),e.parseAsync=async(t,n)=>o3(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>c3(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>l3(e,t,n),e.decode=(t,n)=>u3(e,t,n),e.encodeAsync=async(t,n)=>d3(e,t,n),e.decodeAsync=async(t,n)=>f3(e,t,n),e.safeEncode=(t,n)=>p3(e,t,n),e.safeDecode=(t,n)=>m3(e,t,n),e.safeEncodeAsync=async(t,n)=>h3(e,t,n),e.safeDecodeAsync=async(t,n)=>g3(e,t,n),v3(e,`ZodType`,{check(...e){let t=this.def;return this.clone(g$(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return E$(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(M6(e,t))},superRefine(e,t){return this.check(N6(e,t))},overwrite(e){return this.check(p4(e))},optional(){return p6(this)},exactOptional(){return h6(this)},nullable(){return _6(this)},nullish(){return p6(_6(this))},nonoptional(e){return C6(this,e)},array(){return t6(this)},or(e){return a6([this,e])},and(e){return s6(this,e)},transform(e){return D6(this,d6(e))},default(e){return y6(this,e)},prefault(e){return x6(this,e)},catch(e){return T6(this,e)},pipe(e){return D6(this,e)},readonly(){return A6(this)},describe(e){let t=this.clone();return y2.add(t,{description:e}),t},meta(...e){if(e.length===0)return y2.get(this);let t=this.clone();return y2.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return y2.get(e)?.description},configurable:!0}),e)),b3=n$(`_ZodString`,(e,t)=>{o0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j4(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,v3(e,`_ZodString`,{regex(...e){return this.check(s4(...e))},includes(...e){return this.check(u4(...e))},startsWith(...e){return this.check(d4(...e))},endsWith(...e){return this.check(f4(...e))},min(...e){return this.check(a4(...e))},max(...e){return this.check(i4(...e))},length(...e){return this.check(o4(...e))},nonempty(...e){return this.check(a4(1,...e))},lowercase(e){return this.check(c4(e))},uppercase(e){return this.check(l4(e))},trim(){return this.check(h4())},normalize(...e){return this.check(m4(...e))},toLowerCase(){return this.check(g4())},toUpperCase(){return this.check(_4())},slugify(){return this.check(v4())}})}),x3=n$(`ZodString`,(e,t)=>{o0.init(e,t),b3.init(e,t),e.email=t=>e.check(x2(w3,t)),e.url=t=>e.check(D2(O3,t)),e.jwt=t=>e.check(H2(U3,t)),e.emoji=t=>e.check(O2(k3,t)),e.guid=t=>e.check(S2(T3,t)),e.uuid=t=>e.check(C2(E3,t)),e.uuidv4=t=>e.check(w2(E3,t)),e.uuidv6=t=>e.check(T2(E3,t)),e.uuidv7=t=>e.check(E2(E3,t)),e.nanoid=t=>e.check(k2(A3,t)),e.guid=t=>e.check(S2(T3,t)),e.cuid=t=>e.check(A2(j3,t)),e.cuid2=t=>e.check(j2(M3,t)),e.ulid=t=>e.check(M2(N3,t)),e.base64=t=>e.check(z2(B3,t)),e.base64url=t=>e.check(B2(V3,t)),e.xid=t=>e.check(N2(P3,t)),e.ksuid=t=>e.check(P2(F3,t)),e.ipv4=t=>e.check(F2(I3,t)),e.ipv6=t=>e.check(I2(L3,t)),e.cidrv4=t=>e.check(L2(R3,t)),e.cidrv6=t=>e.check(R2(z3,t)),e.e164=t=>e.check(V2(H3,t)),e.datetime=t=>e.check(Z4(t)),e.date=t=>e.check($4(t)),e.time=t=>e.check(t3(t)),e.duration=t=>e.check(r3(t))});function S3(e){return b2(x3,e)}var C3=n$(`ZodStringFormat`,(e,t)=>{s0.init(e,t),b3.init(e,t)}),w3=n$(`ZodEmail`,(e,t)=>{u0.init(e,t),C3.init(e,t)}),T3=n$(`ZodGUID`,(e,t)=>{c0.init(e,t),C3.init(e,t)}),E3=n$(`ZodUUID`,(e,t)=>{l0.init(e,t),C3.init(e,t)});function D3(e){return C2(E3,e)}var O3=n$(`ZodURL`,(e,t)=>{d0.init(e,t),C3.init(e,t)}),k3=n$(`ZodEmoji`,(e,t)=>{f0.init(e,t),C3.init(e,t)}),A3=n$(`ZodNanoID`,(e,t)=>{p0.init(e,t),C3.init(e,t)}),j3=n$(`ZodCUID`,(e,t)=>{m0.init(e,t),C3.init(e,t)}),M3=n$(`ZodCUID2`,(e,t)=>{h0.init(e,t),C3.init(e,t)}),N3=n$(`ZodULID`,(e,t)=>{g0.init(e,t),C3.init(e,t)}),P3=n$(`ZodXID`,(e,t)=>{_0.init(e,t),C3.init(e,t)}),F3=n$(`ZodKSUID`,(e,t)=>{v0.init(e,t),C3.init(e,t)}),I3=n$(`ZodIPv4`,(e,t)=>{C0.init(e,t),C3.init(e,t)}),L3=n$(`ZodIPv6`,(e,t)=>{w0.init(e,t),C3.init(e,t)}),R3=n$(`ZodCIDRv4`,(e,t)=>{T0.init(e,t),C3.init(e,t)}),z3=n$(`ZodCIDRv6`,(e,t)=>{E0.init(e,t),C3.init(e,t)}),B3=n$(`ZodBase64`,(e,t)=>{O0.init(e,t),C3.init(e,t)}),V3=n$(`ZodBase64URL`,(e,t)=>{A0.init(e,t),C3.init(e,t)}),H3=n$(`ZodE164`,(e,t)=>{j0.init(e,t),C3.init(e,t)}),U3=n$(`ZodJWT`,(e,t)=>{N0.init(e,t),C3.init(e,t)}),W3=n$(`ZodNumber`,(e,t)=>{P0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M4(e,t,n,r),v3(e,`ZodNumber`,{gt(e,t){return this.check(t4(e,t))},gte(e,t){return this.check(n4(e,t))},min(e,t){return this.check(n4(e,t))},lt(e,t){return this.check($2(e,t))},lte(e,t){return this.check(e4(e,t))},max(e,t){return this.check(e4(e,t))},int(e){return this.check(q3(e))},safe(e){return this.check(q3(e))},positive(e){return this.check(t4(0,e))},nonnegative(e){return this.check(n4(0,e))},negative(e){return this.check($2(0,e))},nonpositive(e){return this.check(e4(0,e))},multipleOf(e,t){return this.check(r4(e,t))},step(e,t){return this.check(r4(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function G3(e){return q2(W3,e)}var K3=n$(`ZodNumberFormat`,(e,t)=>{F0.init(e,t),W3.init(e,t)});function q3(e){return Y2(K3,e)}var J3=n$(`ZodBoolean`,(e,t)=>{I0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N4(e,t,n,r)});function Y3(e){return X2(J3,e)}var X3=n$(`ZodUnknown`,(e,t)=>{L0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Z3(){return Z2(X3)}var Q3=n$(`ZodNever`,(e,t)=>{R0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P4(e,t,n,r)});function $3(e){return Q2(Q3,e)}var e6=n$(`ZodArray`,(e,t)=>{B0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R4(e,t,n,r),e.element=t.element,v3(e,`ZodArray`,{min(e,t){return this.check(a4(e,t))},nonempty(e){return this.check(a4(1,e))},max(e,t){return this.check(i4(e,t))},length(e,t){return this.check(o4(e,t))},unwrap(){return this.element}})});function t6(e,t){return y4(e6,e,t)}var n6=n$(`ZodObject`,(e,t)=>{G0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z4(e,t,n,r),m$(e,`shape`,()=>t.shape),v3(e,`ZodObject`,{keyof(){return l6(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Z3()})},loose(){return this.clone({...this._zod.def,catchall:Z3()})},strict(){return this.clone({...this._zod.def,catchall:$3()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return M$(this,e)},safeExtend(e){return N$(this,e)},merge(e){return P$(this,e)},pick(e){return A$(this,e)},omit(e){return j$(this,e)},partial(...e){return F$(f6,this,e[0])},required(...e){return I$(S6,this,e[0])}})});function r6(e,t){return new n6({type:`object`,shape:e??{},...D$(t)})}var i6=n$(`ZodUnion`,(e,t)=>{q0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B4(e,t,n,r),e.options=t.options});function a6(e,t){return new i6({type:`union`,options:e,...D$(t)})}var o6=n$(`ZodIntersection`,(e,t)=>{J0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V4(e,t,n,r)});function s6(e,t){return new o6({type:`intersection`,left:e,right:t})}var c6=n$(`ZodEnum`,(e,t)=>{Z0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new c6({...t,checks:[],...D$(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new c6({...t,checks:[],...D$(r),entries:i})}});function l6(e,t){return new c6({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...D$(t)})}var u6=n$(`ZodTransform`,(e,t)=>{Q0.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L4(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new i$(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(U$(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(U$(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function d6(e){return new u6({type:`transform`,transform:e})}var f6=n$(`ZodOptional`,(e,t)=>{e2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function p6(e){return new f6({type:`optional`,innerType:e})}var m6=n$(`ZodExactOptional`,(e,t)=>{t2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function h6(e){return new m6({type:`optional`,innerType:e})}var g6=n$(`ZodNullable`,(e,t)=>{n2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _6(e){return new g6({type:`nullable`,innerType:e})}var v6=n$(`ZodDefault`,(e,t)=>{r2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function y6(e,t){return new v6({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():C$(t)}})}var b6=n$(`ZodPrefault`,(e,t)=>{a2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function x6(e,t){return new b6({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():C$(t)}})}var S6=n$(`ZodNonOptional`,(e,t)=>{o2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function C6(e,t){return new S6({type:`nonoptional`,innerType:e,...D$(t)})}var w6=n$(`ZodCatch`,(e,t)=>{c2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function T6(e,t){return new w6({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var E6=n$(`ZodPipe`,(e,t)=>{l2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q4(e,t,n,r),e.in=t.in,e.out=t.out});function D6(e,t){return new E6({type:`pipe`,in:e,out:t})}var O6=n$(`ZodPreprocess`,(e,t)=>{E6.init(e,t),d2.init(e,t)}),k6=n$(`ZodReadonly`,(e,t)=>{f2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function A6(e){return new k6({type:`readonly`,innerType:e})}var j6=n$(`ZodCustom`,(e,t)=>{m2.init(e,t),y3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I4(e,t,n,r)});function M6(e,t={}){return b4(j6,e,t)}function N6(e,t){return x4(e,t)}function P6(e,t){return new O6({type:`pipe`,in:d6(e),out:t})}function F6(e){return J2(W3,e)}var I6=S3().regex(/^\d{4}-\d{2}-\d{2}$/,`Expected a YYYY-MM-DD date`),L6=e=>S3().trim().max(e).nullish().transform(e=>e==null||e===``?null:e),R6=l6(zQ),z6=l6(WQ),B6=l6(qQ),V6=l6(JQ);l6(KQ);var H6=t6(S3().trim().min(1).max(60)).max(30);r6({companyName:S3().trim().min(1,`Company is required`).max(200),jobTitle:S3().trim().min(1,`Job title is required`).max(200),appliedOn:I6,status:R6.default(`applied`),jobUrl:L6(2e3),location:L6(200),workMode:z6.default(`unspecified`),sourceName:L6(120),salaryMin:G3().int().nonnegative().nullish().transform(e=>e??null),salaryMax:G3().int().nonnegative().nullish().transform(e=>e??null),salaryCurrency:L6(8),followUpOn:I6.nullish().transform(e=>e??null),tags:H6.default([]),notes:L6(2e4)}).refine(e=>e.salaryMin===null||e.salaryMax===null||e.salaryMin<=e.salaryMax,{message:`Minimum salary cannot exceed the maximum`,path:[`salaryMin`]}),r6({companyName:S3().trim().min(1).max(200).optional(),jobTitle:S3().trim().min(1).max(200).optional(),appliedOn:I6.optional(),status:R6.optional(),statusComment:S3().trim().max(2e3).nullish(),jobUrl:L6(2e3).optional(),location:L6(200).optional(),workMode:z6.optional(),sourceName:L6(120).optional(),salaryMin:G3().int().nonnegative().nullish(),salaryMax:G3().int().nonnegative().nullish(),salaryCurrency:L6(8).optional(),followUpOn:I6.nullish(),archived:Y3().optional(),tags:H6.optional()}).refine(e=>Object.keys(e).length>0,{message:`Nothing to update`}),r6({status:R6,occurredOn:I6.optional(),comment:S3().trim().max(2e3).nullish().transform(e=>e??null)});var U6=e=>P6(e=>{if(e==null)return;let t=(Array.isArray(e)?e.map(String):String(e).split(`,`)).map(e=>e.trim()).filter(Boolean);return t.length>0?t:void 0},t6(e).optional()),W6=r6({q:S3().trim().max(300).optional(),year:F6().int().min(1970).max(2200).optional(),month:F6().int().min(1).max(12).optional(),status:U6(R6),workMode:U6(z6),tags:U6(S3()),companyId:D3().optional(),source:S3().trim().max(120).optional(),from:I6.optional(),to:I6.optional(),archived:l6([`true`,`false`,`all`]).default(`false`).transform(e=>e===`all`?`all`:e===`true`),followUpDue:l6([`true`,`false`]).optional().transform(e=>e===`true`),sort:l6([`appliedOn`,`company`,`jobTitle`,`status`,`createdAt`]).default(`appliedOn`),direction:l6([`asc`,`desc`]).default(`desc`),limit:F6().int().min(1).max(200).default(50),cursor:S3().optional()});r6({company:S3().trim().min(1).max(200),title:S3().trim().max(200).optional().default(``),excludeId:D3().optional()}),r6({q:S3().trim().min(1).max(300),limit:F6().int().min(1).max(100).default(25),types:U6(l6([`application`,`company`,`note`]))}),W6.extend({format:l6([`csv`,`xlsx`]).default(`csv`)}),r6({name:S3().trim().min(1).max(200),website:L6(2e3),location:L6(200),tags:H6.default([])}),r6({name:S3().trim().min(1).max(200).optional(),website:L6(2e3).optional(),location:L6(200).optional(),archived:Y3().optional(),tags:H6.optional()}).refine(e=>Object.keys(e).length>0,{message:`Nothing to update`}),r6({title:S3().trim().min(1).max(200),body:S3().max(5e4).default(``),targetType:B6.default(`standalone`),targetId:D3().nullish().transform(e=>e??null),pinned:Y3().default(!1)}),r6({title:S3().trim().min(1).max(200).optional(),body:S3().max(5e4).optional(),targetType:B6.optional(),targetId:D3().nullish(),pinned:Y3().optional()}).refine(e=>Object.keys(e).length>0,{message:`Nothing to update`}),r6({name:S3().trim().min(1).max(60),color:L6(30),scope:V6.default(`both`)}),r6({companyName:S3().trim().min(1,`Company is required`).max(200),jobTitle:S3().trim().min(1,`Job title is required`).max(200),jobUrl:L6(2e3),location:L6(200),workMode:z6.default(`unspecified`),sourceName:L6(120),salaryMin:G3().int().nonnegative().nullish().transform(e=>e??null),salaryMax:G3().int().nonnegative().nullish().transform(e=>e??null),salaryCurrency:L6(8),notes:L6(2e4),savedOn:I6.optional()}).refine(e=>e.salaryMin===null||e.salaryMax===null||e.salaryMin<=e.salaryMax,{message:`Minimum salary cannot exceed the maximum`,path:[`salaryMin`]}),r6({companyName:S3().trim().min(1).max(200).optional(),jobTitle:S3().trim().min(1).max(200).optional(),jobUrl:L6(2e3).optional(),location:L6(200).optional(),workMode:z6.optional(),sourceName:L6(120).optional(),salaryMin:G3().int().nonnegative().nullish(),salaryMax:G3().int().nonnegative().nullish(),salaryCurrency:L6(8).optional(),notes:L6(2e4).optional(),savedOn:I6.optional(),archived:Y3().optional()}).refine(e=>Object.keys(e).length>0,{message:`Nothing to update`}),r6({appliedOn:I6.optional(),status:R6.optional(),tags:H6.optional()}),r6({target:S3().min(1)});function G6(e){return e===`exact`}var K6=class extends Error{status;code;details;constructor(e,t,n,r){super(n),this.name=`ApiError`,this.status=e,this.code=t,this.details=r}get fieldErrors(){return Array.isArray(this.details)?this.details:[]}};async function q6(e,t){let n=await fetch(e,{...t,headers:{...t?.body?{"Content-Type":`application/json`}:{},...t?.headers}});if(n.status===204)return;let r=await n.text(),i=r?JSON.parse(r):null;if(!n.ok)throw new K6(n.status,i?.error??`unknown`,i?.message??n.statusText,i?.details);return i}function J6(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!=null&&r!==``){if(Array.isArray(r)){if(r.length===0)continue;t.set(n,r.join(`,`))}else t.set(n,String(r))}let n=t.toString();return n?`?${n}`:``}var Y6={csv:`text/csv`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`};async function X6(e,t,n){let r=await fetch(`/api/import${J6({format:t,mode:n})}`,{method:`POST`,headers:{"Content-Type":Y6[t]},body:e}),i=await r.text(),a=i?JSON.parse(i):null;if(!r.ok)throw new K6(r.status,a?.error??`unknown`,a?.message??r.statusText,a?.details);return a}async function Z6(e,t){let n=await fetch(`/api/backup/import${J6({mode:t})}`,{method:`POST`,headers:{"Content-Type":`application/octet-stream`},body:e}),r=await n.text(),i=r?JSON.parse(r):null;if(!n.ok)throw new K6(n.status,i?.error??`unknown`,i?.message??n.statusText,i?.details);return i}var Q6={listApplications:e=>q6(`/api/applications${J6(e)}`),getApplication:e=>q6(`/api/applications/${e}`),periods:()=>q6(`/api/applications/periods`),checkDuplicates:e=>q6(`/api/applications/check${J6(e)}`),createApplication:e=>q6(`/api/applications`,{method:`POST`,body:JSON.stringify(e)}),updateApplication:(e,t)=>q6(`/api/applications/${e}`,{method:`PATCH`,body:JSON.stringify(t)}),changeStatus:(e,t)=>q6(`/api/applications/${e}/status`,{method:`POST`,body:JSON.stringify(t)}),deleteApplication:e=>q6(`/api/applications/${e}`,{method:`DELETE`}),listCompanies:(e={})=>q6(`/api/companies${J6(e)}`),suggestCompanies:e=>q6(`/api/companies/suggest${J6({q:e})}`),getCompany:e=>q6(`/api/companies/${e}`),updateCompany:(e,t)=>q6(`/api/companies/${e}`,{method:`PATCH`,body:JSON.stringify(t)}),listTags:()=>q6(`/api/tags`),listNotes:(e={})=>q6(`/api/notes${J6(e)}`),createNote:e=>q6(`/api/notes`,{method:`POST`,body:JSON.stringify(e)}),updateNote:(e,t)=>q6(`/api/notes/${e}`,{method:`PATCH`,body:JSON.stringify(t)}),deleteNote:e=>q6(`/api/notes/${e}`,{method:`DELETE`}),dashboard:()=>q6(`/api/dashboard`),search:(e,t)=>q6(`/api/search${J6({q:e,types:t,limit:25})}`),exportUrl:(e,t)=>`/api/export${J6({...e,format:t})}`,previewImport:(e,t)=>X6(e,t,`preview`),commitImport:(e,t)=>X6(e,t,`commit`),listOpenings:(e={})=>q6(`/api/openings${J6(e)}`),getOpening:e=>q6(`/api/openings/${e}`),createOpening:e=>q6(`/api/openings`,{method:`POST`,body:JSON.stringify(e)}),updateOpening:(e,t)=>q6(`/api/openings/${e}`,{method:`PATCH`,body:JSON.stringify(t)}),deleteOpening:e=>q6(`/api/openings/${e}`,{method:`DELETE`}),convertOpening:(e,t)=>q6(`/api/openings/${e}/convert`,{method:`POST`,body:JSON.stringify(t)}),getDbTargets:()=>q6(`/api/db/targets`),switchDb:e=>q6(`/api/db/switch`,{method:`POST`,body:JSON.stringify({target:e})}),backupExportUrl:`/api/backup/export`,previewBackup:e=>Z6(e,`preview`),commitBackup:e=>Z6(e,`commit`),getDataStatus:()=>q6(`/api/backup/status`),clearDatabase:()=>q6(`/api/backup/clear`,{method:`POST`}),seedDatabase:()=>q6(`/api/backup/seed`,{method:`POST`})},$6={applications:e=>[`applications`,e],application:e=>[`application`,e],periods:()=>[`periods`],companies:e=>[`companies`,e],company:e=>[`company`,e],companySuggest:e=>[`company-suggest`,e],tags:()=>[`tags`],notes:e=>[`notes`,e],dashboard:()=>[`dashboard`],duplicates:e=>[`duplicates`,e],search:e=>[`search`,e],openings:e=>[`openings`,e],opening:e=>[`opening`,e],dbTargets:()=>[`db-targets`],dataStatus:()=>[`data-status`]};function e8(e){e.invalidateQueries({queryKey:[`applications`]}),e.invalidateQueries({queryKey:[`application`]}),e.invalidateQueries({queryKey:[`periods`]}),e.invalidateQueries({queryKey:[`dashboard`]}),e.invalidateQueries({queryKey:[`companies`]}),e.invalidateQueries({queryKey:[`company`]}),e.invalidateQueries({queryKey:[`tags`]}),e.invalidateQueries({queryKey:[`duplicates`]}),e.invalidateQueries({queryKey:[`search`]})}function t8(e){return Kr({queryKey:$6.applications(e),queryFn:()=>Q6.listApplications(e),placeholderData:e=>e})}function n8(e){return Kr({queryKey:$6.application(e??``),queryFn:()=>Q6.getApplication(e),enabled:!!e})}function r8(){return Kr({queryKey:$6.periods(),queryFn:()=>Q6.periods()})}function i8(){return Kr({queryKey:$6.dashboard(),queryFn:()=>Q6.dashboard()})}function a8(){return Kr({queryKey:$6.tags(),queryFn:()=>Q6.listTags()})}function o8(e={}){return Kr({queryKey:$6.companies(e),queryFn:()=>Q6.listCompanies(e)})}function s8(e){return Kr({queryKey:$6.company(e??``),queryFn:()=>Q6.getCompany(e),enabled:!!e})}function c8(e={}){return Kr({queryKey:$6.notes(e),queryFn:()=>Q6.listNotes(e)})}function l8(e){let{enabled:t=!0,...n}=e;return Kr({queryKey:$6.duplicates(n),queryFn:()=>Q6.checkDuplicates(n),enabled:t&&n.company.trim().length>1,staleTime:5e3})}function u8(e){return Kr({queryKey:$6.companySuggest(e),queryFn:()=>Q6.suggestCompanies(e),enabled:e.trim().length>0,staleTime:3e4})}function d8(){let e=wn();return qr({mutationFn:e=>Q6.createApplication(e),onSuccess:()=>e8(e)})}function f8(){let e=wn();return qr({mutationFn:({id:e,body:t})=>Q6.updateApplication(e,t),onSuccess:()=>e8(e)})}function p8(){let e=wn();return qr({mutationFn:({id:e,body:t})=>Q6.changeStatus(e,t),onSuccess:()=>e8(e)})}function m8(){let e=wn();return qr({mutationFn:e=>Q6.deleteApplication(e),onSuccess:()=>e8(e)})}function h8(){let e=wn();return qr({mutationFn:({id:e,body:t})=>Q6.updateCompany(e,t),onSuccess:()=>e8(e)})}function g8(){let e=wn();return qr({mutationFn:({id:e,body:t})=>e?Q6.updateNote(e,t):Q6.createNote(t),onSuccess:()=>{e.invalidateQueries({queryKey:[`notes`]}),e.invalidateQueries({queryKey:[`application`]}),e.invalidateQueries({queryKey:[`search`]})}})}function _8(){let e=wn();return qr({mutationFn:e=>Q6.deleteNote(e),onSuccess:()=>{e.invalidateQueries({queryKey:[`notes`]}),e.invalidateQueries({queryKey:[`application`]})}})}function v8(e={}){return Kr({queryKey:$6.openings(e),queryFn:()=>Q6.listOpenings(e)})}function y8(e){e.invalidateQueries({queryKey:[`openings`]}),e.invalidateQueries({queryKey:[`opening`]})}function b8(){let e=wn();return qr({mutationFn:e=>Q6.createOpening(e),onSuccess:()=>y8(e)})}function x8(){let e=wn();return qr({mutationFn:({id:e,body:t})=>Q6.updateOpening(e,t),onSuccess:()=>y8(e)})}function S8(){let e=wn();return qr({mutationFn:e=>Q6.deleteOpening(e),onSuccess:()=>y8(e)})}function C8(){let e=wn();return qr({mutationFn:({id:e,body:t})=>Q6.convertOpening(e,t),onSuccess:()=>{y8(e),e.invalidateQueries({queryKey:[`applications`]}),e.invalidateQueries({queryKey:[`application`]}),e.invalidateQueries({queryKey:[`periods`]}),e.invalidateQueries({queryKey:[`dashboard`]}),e.invalidateQueries({queryKey:[`companies`]}),e.invalidateQueries({queryKey:[`search`]})}})}function w8(){return Kr({queryKey:$6.dbTargets(),queryFn:()=>Q6.getDbTargets()})}function T8(){return qr({mutationFn:e=>Q6.switchDb(e)})}function E8(){return Kr({queryKey:$6.dataStatus(),queryFn:()=>Q6.getDataStatus()})}function D8(){let e=wn();return qr({mutationFn:()=>Q6.clearDatabase(),onSuccess:()=>void e.invalidateQueries()})}function O8(){let e=wn();return qr({mutationFn:()=>Q6.seedDatabase(),onSuccess:()=>void e.invalidateQueries()})}function k8({status:e}){return(0,Z.jsx)(OY,{color:HQ[e],children:UQ[e]})}function A8(e,t=300){let[n,r]=(0,x.useState)(e);return(0,x.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}var j8={exact:`error`,similar:`warning`,company:`info`,none:`success`};function M8({check:e,loading:t}){if(t&&!e)return(0,Z.jsx)(jp,{type:`info`,showIcon:!0,message:`Checking your history…`,style:{marginBottom:16}});if(!e)return null;if(e.verdict===`none`)return(0,Z.jsx)(jp,{type:`success`,showIcon:!0,message:`No history with this company`,description:`This looks like a company you haven't applied to before.`,style:{marginBottom:16}});let n=e.company?.name??`this company`;return(0,Z.jsx)(jp,{type:j8[e.verdict],showIcon:!0,style:{marginBottom:16},message:N8(e.verdict,n,e.priorCount),description:(0,Z.jsxs)(Pz,{direction:`vertical`,size:6,style:{width:`100%`},children:[e.matches.length>0?e.matches.slice(0,5).map(e=>(0,Z.jsx)(P8,{match:e},e.id)):(0,Z.jsx)(YX.Text,{type:`secondary`,children:`None of them were for this role, but it is worth a look before you apply again.`}),!e.semanticUsed&&e.matches.length>0&&(0,Z.jsx)(YX.Text,{type:`secondary`,style:{fontSize:12},children:`Matched on wording only — semantic matching is still warming up.`})]})})}function N8(e,t,n){let r=n===1?`once`:`${n} times`;switch(e){case`exact`:return`You have already applied for this exact role at ${t}`;case`similar`:return`You have applied for a very similar role at ${t}`;default:return`You have applied to ${t} ${r} before`}}function P8({match:e}){let t=Math.round(Math.max(e.titleSimilarity,e.semanticSimilarity??0)*100);return(0,Z.jsxs)(Pz,{size:8,wrap:!0,children:[(0,Z.jsx)(un,{to:`/applications/${e.id}`,children:e.jobTitle}),(0,Z.jsx)(YX.Text,{type:`secondary`,children:e.appliedOn}),(0,Z.jsx)(OY,{color:HQ[e.status],children:UQ[e.status]}),e.matchKind===`exact`?(0,Z.jsx)(OY,{color:`red`,children:`exact title`}):(0,Z.jsxs)(OY,{children:[t,`% similar`]})]})}function F8({onStartApplication:e}){let[t,n]=(0,x.useState)(``),[r,i]=(0,x.useState)(``),a=A8(t,350),{data:o,isFetching:s}=l8({company:a,title:A8(r,350)}),c=a.trim().length>1;return(0,Z.jsx)(bF,{title:(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(CQ,{}),(0,Z.jsx)(`span`,{children:`Check before you apply`})]}),extra:e&&(0,Z.jsx)(Vk,{type:`link`,onClick:e,children:`New application`}),children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:12,style:{width:`100%`},children:[(0,Z.jsxs)(BU,{gutter:12,children:[(0,Z.jsx)(II,{xs:24,sm:12,children:(0,Z.jsx)(_V,{placeholder:`Company`,value:t,onChange:e=>n(e.target.value),allowClear:!0})}),(0,Z.jsx)(II,{xs:24,sm:12,children:(0,Z.jsx)(_V,{placeholder:`Job title (optional)`,value:r,onChange:e=>i(e.target.value),allowClear:!0})})]}),c?(0,Z.jsx)(M8,{check:o,loading:s}):(0,Z.jsx)(YX.Text,{type:`secondary`,children:`Type a company name to see whether you have been here before.`})]})})}function I8({open:e,onClose:t,application:n}){let[r]=WB.useForm(),{message:i,modal:a}=NC.useApp(),o=!!n,s=d8(),c=f8(),{data:l}=a8(),u=WB.useWatch(`companyName`,r)??``,d=WB.useWatch(`jobTitle`,r)??``,f=A8(u,300),p=A8(d,300),{data:m}=u8(f),{data:h,isFetching:g}=l8({company:f,title:p,...n?{excludeId:n.id}:{},enabled:e});(0,x.useEffect)(()=>{e&&(n?r.setFieldsValue({companyName:n.company.name,jobTitle:n.jobTitle,appliedOn:(0,Yk.default)(n.appliedOn),status:n.status,jobUrl:n.jobUrl??void 0,location:n.location??void 0,workMode:n.workMode,sourceName:n.sourceName??void 0,salaryMin:n.salaryMin,salaryMax:n.salaryMax,salaryCurrency:n.salaryCurrency??void 0,followUpOn:n.followUpOn?(0,Yk.default)(n.followUpOn):null,tags:n.tags.map(e=>e.name)}):(r.resetFields(),r.setFieldsValue({appliedOn:(0,Yk.default)(),status:`applied`,workMode:`unspecified`,tags:[]})))},[e,n,r]);let _=(0,x.useMemo)(()=>(m?.companies??[]).map(e=>({value:e.name,label:(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(`span`,{children:e.name}),e.applicationCount>0&&(0,Z.jsxs)(YX.Text,{type:`secondary`,style:{fontSize:12},children:[e.applicationCount,` application`,e.applicationCount===1?``:`s`]})]})})),[m]),v=(0,x.useMemo)(()=>(l?.tags??[]).map(e=>({value:e.name,label:e.name})),[l]),[y,b]=(0,x.useState)(!1);async function S(e){if(h&&G6(h.verdict)&&!o&&!await new Promise(e=>{a.confirm({title:`You have applied for this exact role before`,content:(0,Z.jsxs)(Pz,{direction:`vertical`,children:[(0,Z.jsxs)(YX.Text,{children:[h.matches[0]?.jobTitle,` at `,h.company?.name,` on`,` `,h.matches[0]?.appliedOn,`.`]}),(0,Z.jsx)(YX.Text,{type:`secondary`,children:`Save this as a new application anyway?`})]}),okText:`Save anyway`,cancelText:`Go back`,onOk:()=>e(!0),onCancel:()=>e(!1)})}))return;let l={companyName:e.companyName,jobTitle:e.jobTitle,appliedOn:e.appliedOn.format(`YYYY-MM-DD`),status:e.status,jobUrl:e.jobUrl??null,location:e.location??null,workMode:e.workMode,sourceName:e.sourceName??null,salaryMin:e.salaryMin??null,salaryMax:e.salaryMax??null,salaryCurrency:e.salaryCurrency??null,followUpOn:e.followUpOn?e.followUpOn.format(`YYYY-MM-DD`):null,tags:e.tags??[],...o?{}:{notes:e.notes??null}};b(!0);try{n?(await c.mutateAsync({id:n.id,body:l}),i.success(`Application updated`)):(await s.mutateAsync(l),i.success(`Application saved`)),t()}catch(e){e instanceof K6&&e.fieldErrors.length>0?(r.setFields(e.fieldErrors.map(e=>({name:e.path.split(`.`),errors:[e.message]}))),i.error(`Please check the highlighted fields`)):i.error(e instanceof Error?e.message:`Could not save`)}finally{b(!1)}}return(0,Z.jsxs)(Tz,{title:o?`Edit application`:`New application`,open:e,onClose:t,width:640,destroyOnHidden:!0,extra:(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(Vk,{onClick:t,children:`Cancel`}),(0,Z.jsx)(Vk,{type:`primary`,loading:y,onClick:()=>r.submit(),children:o?`Save changes`:`Save application`})]}),children:[(0,Z.jsx)(M8,{check:h,loading:g}),(0,Z.jsxs)(WB,{form:r,layout:`vertical`,onFinish:S,requiredMark:`optional`,children:[(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:12,children:(0,Z.jsx)(WB.Item,{name:`companyName`,label:`Company`,rules:[{required:!0,message:`Company is required`}],children:(0,Z.jsx)(NE,{options:_,placeholder:`Start typing — existing companies appear`,filterOption:!1,allowClear:!0})})}),(0,Z.jsx)(II,{span:12,children:(0,Z.jsx)(WB.Item,{name:`jobTitle`,label:`Job title`,rules:[{required:!0,message:`Job title is required`}],children:(0,Z.jsx)(_V,{placeholder:`Backend Engineer`})})})]}),(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`appliedOn`,label:`Applied on`,rules:[{required:!0,message:`Date is required`}],children:(0,Z.jsx)(HR,{style:{width:`100%`},format:`YYYY-MM-DD`})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`status`,label:`Status`,children:(0,Z.jsx)(EE,{options:zQ.map(e=>({value:e,label:UQ[e]}))})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`followUpOn`,label:`Follow up on`,children:(0,Z.jsx)(HR,{style:{width:`100%`},format:`YYYY-MM-DD`,allowClear:!0})})})]}),(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`workMode`,label:`Work mode`,children:(0,Z.jsx)(EE,{options:WQ.map(e=>({value:e,label:GQ[e]}))})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`location`,label:`Location`,children:(0,Z.jsx)(_V,{placeholder:`Stockholm`})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`sourceName`,label:`Source`,children:(0,Z.jsx)(_V,{placeholder:`LinkedIn, referral…`})})})]}),(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`salaryMin`,label:`Salary from`,children:(0,Z.jsx)(LL,{style:{width:`100%`},min:0,step:1e4})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`salaryMax`,label:`Salary to`,children:(0,Z.jsx)(LL,{style:{width:`100%`},min:0,step:1e4})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`salaryCurrency`,label:`Currency`,children:(0,Z.jsx)(_V,{placeholder:`SEK`,maxLength:8})})})]}),(0,Z.jsx)(WB.Item,{name:`jobUrl`,label:`Job posting URL`,children:(0,Z.jsx)(_V,{placeholder:`https://…`})}),(0,Z.jsx)(WB.Item,{name:`tags`,label:`Tags`,children:(0,Z.jsx)(EE,{mode:`tags`,options:v,placeholder:`fintech, remote-ok, dream-job…`,tokenSeparators:[`,`]})}),!o&&(0,Z.jsx)(WB.Item,{name:`notes`,label:`Notes`,help:`Saved as a note linked to this application. Searchable.`,children:(0,Z.jsx)(_V.TextArea,{rows:4,placeholder:`Anything worth remembering…`})})]})]})}var L8={dark:{bgBase:`#0d1117`,bgRaised:`#161b22`,bgSunken:`#010409`,border:`#30363d`,borderStrong:`#444c56`,textPrimary:`#e6edf3`,textMuted:`#8b949e`,textFaint:`#6e7681`,accent:`#58a6ff`,success:`#3fb950`,danger:`#f85149`,warning:`#d29922`},light:{bgBase:`#ffffff`,bgRaised:`#ffffff`,bgSunken:`#f6f8fa`,border:`#d0d7de`,borderStrong:`#afb8c1`,textPrimary:`#1f2328`,textMuted:`#656d76`,textFaint:`#8c959f`,accent:`#0969da`,success:`#1a7f37`,danger:`#d1242f`,warning:`#9a6700`}},R8={bgBase:`var(--jt-bg-base)`,bgRaised:`var(--jt-bg-raised)`,bgSunken:`var(--jt-bg-sunken)`,border:`var(--jt-border)`,borderStrong:`var(--jt-border-strong)`,textPrimary:`var(--jt-text-primary)`,textMuted:`var(--jt-text-muted)`,textFaint:`var(--jt-text-faint)`,accent:`var(--jt-accent)`,success:`var(--jt-success)`,danger:`var(--jt-danger)`,warning:`var(--jt-warning)`};function z8(e){let t=L8[e];return{algorithm:e===`dark`?RY.darkAlgorithm:RY.defaultAlgorithm,token:{colorBgBase:t.bgBase,colorBgContainer:t.bgRaised,colorBgElevated:t.bgRaised,colorBgLayout:t.bgBase,colorBorder:t.border,colorBorderSecondary:t.border,colorText:t.textPrimary,colorTextSecondary:t.textMuted,colorTextTertiary:t.textFaint,colorPrimary:t.accent,colorLink:t.accent,colorSuccess:t.success,colorError:t.danger,colorWarning:t.warning,borderRadius:8,fontSize:14},components:{Layout:{siderBg:t.bgSunken,headerBg:t.bgSunken,bodyBg:t.bgBase}}}}function B8(){let{data:e,isLoading:t}=i8(),[n,r]=(0,x.useState)(!1),i=ZQ(QQ());if(t||!e)return(0,Z.jsx)(CS,{active:!0,paragraph:{rows:8}});let{stats:a,followUps:o,recentActivity:s}=e;return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(BU,{gutter:[16,16],children:[(0,Z.jsx)(II,{xs:12,sm:12,md:6,children:(0,Z.jsx)(bF,{children:(0,Z.jsx)(QU,{title:`Total applications`,value:a.total})})}),(0,Z.jsx)(II,{xs:12,sm:12,md:6,children:(0,Z.jsx)(bF,{children:(0,Z.jsx)(QU,{title:`Still active`,value:a.active,valueStyle:{color:R8.accent}})})}),(0,Z.jsx)(II,{xs:12,sm:12,md:6,children:(0,Z.jsx)(bF,{children:(0,Z.jsx)(QU,{title:`${e$(i.month)} ${i.year}`,value:a.thisMonth,suffix:a.thisMonth===1?`application`:`applications`})})}),(0,Z.jsx)(II,{xs:12,sm:12,md:6,children:(0,Z.jsx)(bF,{children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:4,style:{width:`100%`},children:[(0,Z.jsx)(YX.Text,{type:`secondary`,children:`Response rate`}),(0,Z.jsx)(bU,{percent:Math.round(a.responseRate*100),size:`small`,strokeColor:R8.accent}),(0,Z.jsx)(YX.Text,{type:`secondary`,style:{fontSize:12},children:`Anything past “applied” counts as a reply`})]})})})]}),(0,Z.jsxs)(BU,{gutter:[16,16],children:[(0,Z.jsx)(II,{xs:24,lg:14,children:(0,Z.jsx)(F8,{onStartApplication:()=>r(!0)})}),(0,Z.jsx)(II,{xs:24,lg:10,children:(0,Z.jsx)(bF,{title:(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(LR,{}),(0,Z.jsx)(`span`,{children:`Needs a follow-up`})]}),styles:{body:{maxHeight:320,overflowY:`auto`}},children:o.length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`Nothing due — all caught up`}):(0,Z.jsx)(NH,{size:`small`,dataSource:o,renderItem:e=>(0,Z.jsxs)(NH.Item,{children:[(0,Z.jsx)(NH.Item.Meta,{title:(0,Z.jsx)(un,{to:`/applications/${e.id}`,children:e.jobTitle}),description:(0,Z.jsxs)(Xz,{justify:`space-between`,wrap:!0,gap:8,children:[(0,Z.jsx)(`span`,{children:e.company.name}),(0,Z.jsxs)(YX.Text,{type:`danger`,children:[`due `,e.followUpOn]})]})}),(0,Z.jsx)(k8,{status:e.status})]})})})})]}),(0,Z.jsxs)(BU,{gutter:[16,16],children:[(0,Z.jsx)(II,{xs:24,lg:12,children:(0,Z.jsx)(bF,{title:`Pipeline`,children:(0,Z.jsx)(Pz,{direction:`vertical`,size:10,style:{width:`100%`},children:Object.entries(a.byStatus).sort((e,t)=>t[1]-e[1]).map(([e,t])=>(0,Z.jsxs)(Xz,{align:`center`,gap:12,children:[(0,Z.jsx)(`div`,{style:{width:100},children:(0,Z.jsx)(k8,{status:e})}),(0,Z.jsx)(bU,{percent:a.total>0?Math.round(t/a.total*100):0,format:()=>t,size:`small`,style:{flex:1,marginBottom:0}})]},e))})})}),(0,Z.jsx)(II,{xs:24,lg:12,children:(0,Z.jsx)(bF,{title:`Recent activity`,styles:{body:{maxHeight:360,overflowY:`auto`}},children:s.length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`No status changes yet`}):(0,Z.jsx)(KY,{items:s.map(e=>({color:e.toStatus===`offer`?`green`:e.toStatus===`rejected`?`red`:`blue`,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsxs)(YX.Text,{children:[(0,Z.jsx)(un,{to:`/applications/${e.applicationId}`,children:e.jobTitle}),` at `,e.companyName]}),(0,Z.jsxs)(YX.Text,{type:`secondary`,style:{fontSize:12},children:[e.fromStatus?`${UQ[e.fromStatus]} → ${UQ[e.toStatus]}`:`Applied (${UQ[e.toStatus]})`,` `,`· `,e.occurredOn]})]})}))})})})]}),(0,Z.jsx)(I8,{open:n,onClose:()=>r(!1)})]})}function V8({periods:e,year:t,month:n,onSelect:r}){let i=(0,x.useMemo)(()=>e.map(e=>({key:`y:${e.year}`,title:(0,Z.jsx)(H8,{label:String(e.year),count:e.count,strong:!0}),children:(e.months??[]).map(e=>({key:`m:${e.year}:${e.month}`,title:(0,Z.jsx)(H8,{label:e$(e.month),count:e.count})}))})),[e]),a=(0,x.useMemo)(()=>t&&n?[`m:${t}:${n}`]:t?[`y:${t}`]:[],[t,n]),o=(0,x.useMemo)(()=>{let n=e[0],r=n?[`y:${n.year}`]:[];return t&&!r.includes(`y:${t}`)&&r.push(`y:${t}`),r},[e,t]);return e.length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`No applications yet`}):(0,Z.jsx)(rJ,{treeData:i,selectedKeys:a,defaultExpandedKeys:o,blockNode:!0,onSelect:e=>{let t=String(e[0]??``);if(t.startsWith(`m:`)){let[,e,n]=t.split(`:`);r({year:Number(e),month:Number(n)})}else t.startsWith(`y:`)?r({year:Number(t.slice(2))}):r({})}})}function H8({label:e,count:t,strong:n}){return(0,Z.jsxs)(`span`,{style:{display:`flex`,justifyContent:`space-between`,gap:12},children:[(0,Z.jsx)(YX.Text,{strong:n,children:e}),(0,Z.jsx)(YX.Text,{type:`secondary`,children:t})]})}var U8={new:`green`,duplicate:`default`,error:`red`},W8={new:`New`,duplicate:`Duplicate — skipped`,error:`Error`};function G8({open:e,onClose:t}){let n=wn(),[r,i]=(0,x.useState)(null),[a,o]=(0,x.useState)(`csv`),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(null);function h(){i(null),c(null),u(null),m(null)}function g(){h(),t()}let _=e=>{let t=e.name.toLowerCase().endsWith(`.xlsx`)?`xlsx`:`csv`;return i(e),o(t),m(null),f(!0),Q6.previewImport(e,t).then(c).catch(e=>m(e instanceof Error?e.message:`Could not read that file`)).finally(()=>f(!1)),!1};async function v(){if(r){f(!0),m(null);try{let e=await Q6.commitImport(r,a);if(u(e),e.created>0)for(let e of[`applications`,`application`,`periods`,`dashboard`,`companies`,`company`,`search`])n.invalidateQueries({queryKey:[e]})}catch(e){m(e instanceof Error?e.message:`Import failed`)}finally{f(!1)}}}return(0,Z.jsx)(LH,{title:`Import applications`,open:e,onCancel:g,width:800,footer:null,destroyOnHidden:!0,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[!s&&!l&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(YX.Paragraph,{type:`secondary`,children:`CSV or .xlsx with the same columns Export produces: Position, Company, Date, Status, Notes. Rows that exactly match an application you have already logged are skipped automatically.`}),(0,Z.jsxs)(VZ.Dragger,{accept:`.csv,.xlsx`,maxCount:1,showUploadList:!1,beforeUpload:_,disabled:d,children:[(0,Z.jsx)(`p`,{className:`ant-upload-drag-icon`,children:(0,Z.jsx)(cQ,{})}),(0,Z.jsx)(`p`,{className:`ant-upload-text`,children:`Click or drag a CSV or Excel file here`})]})]}),p&&(0,Z.jsx)(jp,{type:`error`,showIcon:!0,message:p}),s&&!l&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(Pz,{wrap:!0,children:[(0,Z.jsxs)(OY,{color:`green`,children:[s.totals.new,` new`]}),(0,Z.jsxs)(OY,{children:[s.totals.duplicate,` duplicate — will be skipped`]}),s.totals.error>0&&(0,Z.jsxs)(OY,{color:`red`,children:[s.totals.error,` error`]})]}),s.fileErrors.map(e=>(0,Z.jsx)(jp,{type:`warning`,showIcon:!0,message:e},e)),(0,Z.jsx)(hY,{size:`small`,rowKey:`rowNumber`,columns:[{title:`Row`,dataIndex:`rowNumber`,width:60},{title:`Position`,dataIndex:`jobTitle`,ellipsis:!0},{title:`Company`,dataIndex:`companyName`,ellipsis:!0},{title:`Date`,dataIndex:`appliedOn`,width:110},{title:`Status`,dataIndex:`status`,width:110,render:e=>e?UQ[e]:`—`},{title:`Result`,dataIndex:`verdict`,width:200,render:(e,t)=>(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsx)(OY,{color:U8[e],children:W8[e]}),t.errors.length>0&&(0,Z.jsx)(YX.Text,{type:`danger`,style:{fontSize:12},children:t.errors.join(`; `)})]})}],dataSource:s.rows,pagination:{pageSize:10},scroll:{y:320}}),(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(Vk,{onClick:h,children:`Choose a different file`}),(0,Z.jsxs)(Vk,{type:`primary`,loading:d,disabled:s.totals.new===0,onClick:v,children:[`Import `,s.totals.new,` application`,s.totals.new===1?``:`s`]})]})]}),l&&(0,Z.jsx)(zU,{status:l.failed>0?`warning`:`success`,title:`Imported ${l.created} application${l.created===1?``:`s`}`,subTitle:`${l.skipped} duplicate row${l.skipped===1?``:`s`} skipped`+(l.failed>0?`, ${l.failed} row${l.failed===1?``:`s`} failed`:``),extra:(0,Z.jsx)(Vk,{type:`primary`,onClick:g,children:`Done`})})]})})}function K8(){let e=Ye(),[t,n]=gn(),[r,i]=(0,x.useState)(!1),[a,o]=(0,x.useState)(!1),s=(0,x.useMemo)(()=>{let e={};for(let n of[`q`,`source`,`sort`,`direction`,`cursor`]){let r=t.get(n);r&&(e[n]=r)}for(let n of[`year`,`month`]){let r=t.get(n);r&&(e[n]=Number(r))}for(let n of[`status`,`workMode`,`tags`]){let r=t.get(n);r&&(e[n]=r.split(`,`))}return e},[t]),{data:c,isLoading:l,isFetching:u}=t8(s),{data:d}=r8(),{data:f}=a8();function p(e){let r=new URLSearchParams(t);for(let[t,n]of Object.entries(e))n==null||n===``||Array.isArray(n)&&n.length===0?r.delete(t):r.set(t,Array.isArray(n)?n.join(`,`):String(n));r.delete(`cursor`),n(r,{replace:!0})}let m=[{title:`Applied`,dataIndex:`appliedOn`,width:118,sorter:!1,render:e=>(0,Z.jsx)(YX.Text,{children:e})},{title:`Company`,key:`company`,width:190,render:(t,n)=>(0,Z.jsx)(Vk,{type:`link`,style:{padding:0,height:`auto`},onClick:t=>{t.stopPropagation(),e(`/companies/${n.company.id}`)},children:n.company.name})},{title:`Job title`,dataIndex:`jobTitle`,render:(e,t)=>(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsx)(YX.Text,{strong:!0,children:e}),t.location&&(0,Z.jsxs)(YX.Text,{type:`secondary`,style:{fontSize:12},children:[t.location,` · `,GQ[t.workMode]]})]})},{title:`Status`,dataIndex:`status`,width:116,render:(e,t)=>(0,Z.jsx)(k8,{status:t.status})},{title:`Tags`,key:`tags`,width:210,render:(e,t)=>(0,Z.jsx)(Pz,{size:4,wrap:!0,children:t.tags.map(e=>(0,Z.jsx)(OY,{color:e.color??void 0,style:{marginInlineEnd:0},children:e.name},e.id))})},{title:`Source`,dataIndex:`sourceName`,width:120,render:e=>e??(0,Z.jsx)(YX.Text,{type:`secondary`,children:`—`})}],h=t.get(`year`)?Number(t.get(`year`)):void 0,g=t.get(`month`)?Number(t.get(`month`)):void 0,_=h&&g?`${e$(g)} ${h}`:h?String(h):`All applications`;return(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{xs:24,md:6,lg:5,children:(0,Z.jsx)(bF,{size:`small`,title:`By period`,extra:(h||g)&&(0,Z.jsx)(Vk,{size:`small`,type:`link`,onClick:()=>p({year:``,month:``}),children:`Clear`}),styles:{body:{maxHeight:`calc(100vh - 220px)`,overflowY:`auto`}},children:(0,Z.jsx)(V8,{periods:d?.periods??[],year:h,month:g,onSelect:e=>p({year:e.year??``,month:e.month??``})})})}),(0,Z.jsx)(II,{xs:24,md:18,lg:19,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(Xz,{justify:`space-between`,align:`center`,wrap:!0,gap:12,children:[(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsx)(YX.Title,{level:4,style:{margin:0},children:_}),(0,Z.jsx)(YX.Text,{type:`secondary`,children:c?`${c.total} application${c.total===1?``:`s`}`:`Loading…`})]}),(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(Iz,{menu:{items:[{key:`csv`,label:`Export as CSV`},{key:`xlsx`,label:`Export as Excel (.xlsx)`}],onClick:({key:e})=>{window.location.href=Q6.exportUrl(s,e)}},children:(0,Z.jsx)(Vk,{icon:(0,Z.jsx)(FZ,{}),children:`Export`})}),(0,Z.jsx)(Vk,{icon:(0,Z.jsx)(RQ,{}),onClick:()=>o(!0),children:`Import`}),(0,Z.jsx)(Vk,{type:`primary`,icon:(0,Z.jsx)(cP,{}),onClick:()=>i(!0),children:`New application`})]})]}),(0,Z.jsx)(bF,{size:`small`,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:12,style:{width:`100%`},children:[(0,Z.jsx)(_V,{allowClear:!0,size:`large`,prefix:(0,Z.jsx)(xE,{}),placeholder:`Search by meaning — try “server-side developer” or “remote fintech”`,defaultValue:t.get(`q`)??``,onChange:e=>{e.target.value===``&&p({q:``})},onPressEnter:e=>p({q:e.target.value})}),(0,Z.jsxs)(Xz,{gap:8,wrap:!0,children:[(0,Z.jsx)(EE,{mode:`multiple`,allowClear:!0,placeholder:`Status`,style:{minWidth:180},suffixIcon:(0,Z.jsx)(aQ,{}),value:t.get(`status`)?.split(`,`)??[],onChange:e=>p({status:e}),options:zQ.map(e=>({value:e,label:UQ[e]}))}),(0,Z.jsx)(EE,{mode:`multiple`,allowClear:!0,placeholder:`Work mode`,style:{minWidth:160},value:t.get(`workMode`)?.split(`,`)??[],onChange:e=>p({workMode:e}),options:WQ.map(e=>({value:e,label:GQ[e]}))}),(0,Z.jsx)(EE,{mode:`multiple`,allowClear:!0,placeholder:`Tags`,style:{minWidth:200},value:t.get(`tags`)?.split(`,`)??[],onChange:e=>p({tags:e}),options:(f?.tags??[]).map(e=>({value:e.name,label:e.name}))}),(0,Z.jsx)(EE,{style:{minWidth:170},value:t.get(`sort`)??`appliedOn`,onChange:e=>p({sort:e}),options:[{value:`appliedOn`,label:`Sort: date applied`},{value:`company`,label:`Sort: company`},{value:`jobTitle`,label:`Sort: job title`},{value:`status`,label:`Sort: status`}]}),(0,Z.jsx)(EE,{style:{width:130},value:t.get(`direction`)??`desc`,onChange:e=>p({direction:e}),options:[{value:`desc`,label:`Newest first`},{value:`asc`,label:`Oldest first`}]})]}),c?.searched&&!c.semanticReady&&(0,Z.jsx)(jp,{type:`info`,showIcon:!0,icon:(0,Z.jsx)(FQ,{}),message:`Results will improve shortly — the semantic model is still loading.`})]})}),(0,Z.jsx)(hY,{rowKey:`id`,columns:m,dataSource:c?.items??[],loading:l||u,pagination:!1,onRow:t=>({onClick:()=>e(`/applications/${t.id}`),style:{cursor:`pointer`}}),locale:{emptyText:(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:t.get(`q`)?`Nothing matched “${t.get(`q`)}”`:`No applications for this filter`})},footer:c?.hasMore?()=>(0,Z.jsx)(Xz,{justify:`center`,children:(0,Z.jsx)(gD,{title:`Loads the next page`,children:(0,Z.jsx)(Vk,{onClick:()=>q8(t,n,c.cursor),children:`Load more`})})}):void 0})]})}),(0,Z.jsx)(I8,{open:r,onClose:()=>i(!1)}),(0,Z.jsx)(G8,{open:a,onClose:()=>o(!1)})]})}function q8(e,t,n){if(!n)return;let r=new URLSearchParams(e);r.set(`cursor`,n),t(r)}function J8(){let{id:e}=Ze(),t=Ye(),{message:n}=NC.useApp(),{data:r,isLoading:i}=n8(e),a=p8(),o=m8(),[s,c]=(0,x.useState)(!1);if(i||!r)return(0,Z.jsx)(CS,{active:!0,paragraph:{rows:10}});let l=VQ(r.status);async function u(t){e&&(await a.mutateAsync({id:e,body:{status:t,comment:null}}),n.success(`Moved to ${UQ[t]}`))}return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(Xz,{justify:`space-between`,align:`flex-start`,wrap:!0,gap:12,children:[(0,Z.jsxs)(Pz,{direction:`vertical`,size:4,children:[(0,Z.jsx)(Vk,{type:`link`,icon:(0,Z.jsx)(WZ,{}),style:{padding:0},onClick:()=>t(`/applications`),children:`Back to applications`}),(0,Z.jsx)(YX.Title,{level:3,style:{margin:0},children:r.jobTitle}),(0,Z.jsxs)(Pz,{size:8,wrap:!0,children:[(0,Z.jsx)(un,{to:`/companies/${r.company.id}`,children:r.company.name}),(0,Z.jsxs)(YX.Text,{type:`secondary`,children:[`applied `,r.appliedOn]}),(0,Z.jsx)(k8,{status:r.status})]})]}),(0,Z.jsxs)(Pz,{wrap:!0,children:[l&&(0,Z.jsxs)(Vk,{type:`primary`,onClick:()=>void u(l),children:[`Move to `,UQ[l]]}),(0,Z.jsx)(EE,{style:{width:150},value:r.status,onChange:e=>void u(e),options:zQ.map(e=>({value:e,label:UQ[e]}))}),(0,Z.jsx)(Vk,{icon:(0,Z.jsx)(QY,{}),onClick:()=>c(!0),children:`Edit`}),(0,Z.jsx)(VH,{title:`Delete this application?`,description:`Its notes and status history go too. This cannot be undone.`,okText:`Delete`,okButtonProps:{danger:!0},onConfirm:async()=>{e&&(await o.mutateAsync(e),n.success(`Application deleted`),t(`/applications`))},children:(0,Z.jsx)(Vk,{danger:!0,icon:(0,Z.jsx)(YY,{})})})]})]}),(0,Z.jsxs)(BU,{gutter:[16,16],children:[(0,Z.jsx)(II,{xs:24,lg:14,children:(0,Z.jsx)(bF,{title:`Details`,children:(0,Z.jsxs)(nz,{column:{xs:1,sm:2},size:`small`,bordered:!0,children:[(0,Z.jsx)(nz.Item,{label:`Company`,children:r.company.name}),(0,Z.jsx)(nz.Item,{label:`Applied on`,children:r.appliedOn}),(0,Z.jsx)(nz.Item,{label:`Location`,children:r.location??`—`}),(0,Z.jsx)(nz.Item,{label:`Work mode`,children:GQ[r.workMode]}),(0,Z.jsx)(nz.Item,{label:`Source`,children:r.sourceName??`—`}),(0,Z.jsx)(nz.Item,{label:`Follow up`,children:r.followUpOn??`—`}),(0,Z.jsx)(nz.Item,{label:`Salary`,span:2,children:r.salaryMin||r.salaryMax?`${r.salaryMin?.toLocaleString()??`?`} – ${r.salaryMax?.toLocaleString()??`?`} ${r.salaryCurrency??``}`:`—`}),(0,Z.jsx)(nz.Item,{label:`Posting`,span:2,children:r.jobUrl?(0,Z.jsx)(`a`,{href:r.jobUrl,target:`_blank`,rel:`noreferrer`,children:(0,Z.jsxs)(Pz,{size:4,children:[(0,Z.jsx)(dQ,{}),r.jobUrl]})}):`—`}),(0,Z.jsx)(nz.Item,{label:`Tags`,span:2,children:r.tags.length>0?(0,Z.jsx)(Pz,{size:4,wrap:!0,children:r.tags.map(e=>(0,Z.jsx)(OY,{children:e.name},e.id))}):`—`})]})})}),(0,Z.jsx)(II,{xs:24,lg:10,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsx)(bF,{title:`Status history`,children:r.statusEvents.length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`No changes recorded`}):(0,Z.jsx)(KY,{items:r.statusEvents.map(e=>({color:e.toStatus===`offer`?`green`:e.toStatus===`rejected`?`red`:`blue`,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsx)(YX.Text,{strong:!0,children:e.fromStatus?`${UQ[e.fromStatus]} → ${UQ[e.toStatus]}`:`Applied`}),(0,Z.jsx)(YX.Text,{type:`secondary`,style:{fontSize:12},children:e.occurredOn}),e.comment&&(0,Z.jsx)(YX.Text,{children:e.comment})]})}))})}),(0,Z.jsx)(bF,{title:`Notes (${r.notes.length})`,children:r.notes.length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`No notes yet`}):(0,Z.jsx)(NH,{size:`small`,dataSource:r.notes,renderItem:e=>(0,Z.jsx)(NH.Item,{children:(0,Z.jsx)(NH.Item.Meta,{title:e.title,description:(0,Z.jsx)(YX.Paragraph,{style:{marginBottom:0,whiteSpace:`pre-wrap`},ellipsis:{rows:4,expandable:!0,symbol:`more`},children:e.body})})})})})]})})]}),(0,Z.jsx)(I8,{open:s,onClose:()=>c(!1),application:r})]})}function Y8(){let e=Ye(),[t,n]=(0,x.useState)(``),r=A8(t,300),{data:i,isLoading:a}=o8(r?{q:r}:{});return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(Xz,{justify:`space-between`,align:`center`,wrap:!0,gap:12,children:[(0,Z.jsx)(YX.Title,{level:4,style:{margin:0},children:`Companies`}),(0,Z.jsx)(_V,{allowClear:!0,prefix:(0,Z.jsx)(xE,{}),placeholder:`Find a company`,style:{maxWidth:320},value:t,onChange:e=>n(e.target.value)})]}),(0,Z.jsx)(bF,{size:`small`,children:(0,Z.jsx)(hY,{rowKey:`id`,size:`middle`,loading:a,columns:[{title:`Company`,dataIndex:`name`,render:(e,t)=>(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsx)(YX.Text,{strong:!0,children:e}),t.website&&(0,Z.jsx)(YX.Link,{href:t.website,target:`_blank`,style:{fontSize:12},children:t.website.replace(/^https?:\/\//,``)})]}),sorter:(e,t)=>e.name.localeCompare(t.name)},{title:`Applications`,dataIndex:`applicationCount`,width:140,align:`right`,sorter:(e,t)=>e.applicationCount-t.applicationCount,defaultSortOrder:`descend`,render:e=>(0,Z.jsx)(YX.Text,{strong:e>2,type:e>2?`warning`:void 0,children:e})},{title:`Active`,dataIndex:`activeCount`,width:90,align:`right`},{title:`Last applied`,dataIndex:`lastAppliedOn`,width:130,sorter:(e,t)=>(e.lastAppliedOn??``).localeCompare(t.lastAppliedOn??``),render:e=>e??(0,Z.jsx)(YX.Text,{type:`secondary`,children:`—`})},{title:`Tags`,key:`tags`,width:260,render:(e,t)=>(0,Z.jsx)(Pz,{size:4,wrap:!0,children:t.tags.map(e=>(0,Z.jsx)(OY,{style:{marginInlineEnd:0},children:e.name},e.id))})}],dataSource:i?.companies??[],pagination:{pageSize:25,hideOnSinglePage:!0},onRow:t=>({onClick:()=>e(`/companies/${t.id}`),style:{cursor:`pointer`}})})})]})}function X8(){let{id:e}=Ze(),t=Ye(),{data:n,isLoading:r}=s8(e),{data:i}=c8(e?{targetType:`company`,targetId:e}:{}),{data:a}=a8(),o=h8();if(r||!n)return(0,Z.jsx)(CS,{active:!0,paragraph:{rows:8}});let{company:s,applications:c}=n,l=c.filter(e=>[`applied`,`screening`,`interview`].includes(e.status)).length;return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(Pz,{direction:`vertical`,size:4,children:[(0,Z.jsx)(Vk,{type:`link`,icon:(0,Z.jsx)(WZ,{}),style:{padding:0},onClick:()=>t(`/companies`),children:`Back to companies`}),(0,Z.jsx)(YX.Title,{level:3,style:{margin:0},children:s.name}),s.website&&(0,Z.jsx)(YX.Link,{href:s.website,target:`_blank`,children:s.website})]}),(0,Z.jsxs)(BU,{gutter:[16,16],children:[(0,Z.jsx)(II,{xs:12,md:6,children:(0,Z.jsx)(bF,{children:(0,Z.jsx)(QU,{title:`Applications`,value:c.length})})}),(0,Z.jsx)(II,{xs:12,md:6,children:(0,Z.jsx)(bF,{children:(0,Z.jsx)(QU,{title:`Still active`,value:l,valueStyle:{color:R8.accent}})})}),(0,Z.jsx)(II,{xs:24,md:12,children:(0,Z.jsx)(bF,{children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:4,style:{width:`100%`},children:[(0,Z.jsx)(YX.Text,{type:`secondary`,children:`Company tags`}),(0,Z.jsx)(EE,{mode:`tags`,style:{width:`100%`},placeholder:`fintech, remote-first…`,value:s.tags.map(e=>e.name),options:(a?.tags??[]).map(e=>({value:e.name,label:e.name})),onChange:t=>{e&&o.mutate({id:e,body:{tags:t}})}})]})})})]}),(0,Z.jsx)(bF,{title:`Application history`,children:(0,Z.jsx)(hY,{rowKey:`id`,size:`middle`,columns:[{title:`Applied`,dataIndex:`appliedOn`,width:120},{title:`Job title`,dataIndex:`jobTitle`,render:e=>(0,Z.jsx)(YX.Text,{strong:!0,children:e})},{title:`Status`,dataIndex:`status`,width:120,render:(e,t)=>(0,Z.jsx)(k8,{status:t.status})},{title:`Source`,dataIndex:`sourceName`,width:130}],dataSource:c,pagination:!1,onRow:e=>({onClick:()=>t(`/applications/${e.id}`),style:{cursor:`pointer`}})})}),(0,Z.jsx)(bF,{title:`Notes about ${s.name}`,children:(i?.notes??[]).length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`No notes about this company`}):(0,Z.jsx)(NH,{dataSource:i?.notes??[],renderItem:e=>(0,Z.jsx)(NH.Item,{children:(0,Z.jsx)(NH.Item.Meta,{title:e.title,description:(0,Z.jsx)(YX.Paragraph,{style:{marginBottom:0,whiteSpace:`pre-wrap`},children:e.body})})})})})]})}function Z8(){let{message:e}=NC.useApp(),[t,n]=(0,x.useState)(`all`),[r,i]=(0,x.useState)(null),[a,o]=(0,x.useState)(!1),{data:s,isLoading:c}=c8(t===`all`?{}:{targetType:t}),l=_8(),u=s?.notes??[];return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(Xz,{justify:`space-between`,align:`center`,wrap:!0,gap:12,children:[(0,Z.jsx)(YX.Title,{level:4,style:{margin:0},children:`Notes`}),(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(XI,{value:t,onChange:e=>n(e),options:[{label:`All`,value:`all`},{label:`Standalone`,value:`standalone`},{label:`Companies`,value:`company`},{label:`Applications`,value:`application`}]}),(0,Z.jsx)(Vk,{type:`primary`,icon:(0,Z.jsx)(cP,{}),onClick:()=>o(!0),children:`New note`})]})]}),(0,Z.jsx)(bF,{size:`small`,loading:c,children:u.length===0?(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`No notes here yet`}):(0,Z.jsx)(NH,{dataSource:u,renderItem:t=>(0,Z.jsx)(NH.Item,{actions:[(0,Z.jsx)(Vk,{type:`text`,icon:(0,Z.jsx)(QY,{}),onClick:()=>i(t)},`edit`),(0,Z.jsx)(VH,{title:`Delete this note?`,okText:`Delete`,okButtonProps:{danger:!0},onConfirm:async()=>{await l.mutateAsync(t.id),e.success(`Note deleted`)},children:(0,Z.jsx)(Vk,{type:`text`,danger:!0,icon:(0,Z.jsx)(YY,{})})},`delete`)],children:(0,Z.jsx)(NH.Item.Meta,{title:(0,Z.jsxs)(Pz,{size:8,wrap:!0,children:[t.pinned&&(0,Z.jsx)(bQ,{style:{color:`#faad14`}}),(0,Z.jsx)(YX.Text,{strong:!0,children:t.title}),(0,Z.jsx)(Q8,{note:t})]}),description:(0,Z.jsx)(YX.Paragraph,{style:{marginBottom:0,whiteSpace:`pre-wrap`},ellipsis:{rows:3,expandable:!0,symbol:`more`},children:t.body})})})})}),(0,Z.jsx)($8,{open:a||r!==null,note:r,onClose:()=>{o(!1),i(null)}})]})}function Q8({note:e}){if(e.targetType===`standalone`)return(0,Z.jsx)(OY,{children:`general`});if(!e.targetId)return(0,Z.jsx)(OY,{children:`unlinked`});let t=e.targetType===`company`?`/companies/${e.targetId}`:`/applications/${e.targetId}`;return(0,Z.jsx)(un,{to:t,children:(0,Z.jsxs)(OY,{color:`blue`,children:[e.targetType,`: `,e.targetLabel??`view`]})})}function $8({open:e,note:t,onClose:n}){let[r]=WB.useForm(),{message:i}=NC.useApp(),a=g8(),o=WB.useWatch(`targetType`,r)??`standalone`,{data:s}=o8(),{data:c}=t8({limit:200}),l=(0,x.useMemo)(()=>o===`company`?(s?.companies??[]).map(e=>({value:e.id,label:e.name})):o===`application`?(c?.items??[]).map(e=>({value:e.id,label:`${e.jobTitle} — ${e.company.name}`})):[],[o,s,c]);return(0,Z.jsx)(LH,{open:e,title:t?`Edit note`:`New note`,okText:`Save`,destroyOnHidden:!0,onCancel:n,afterOpenChange:e=>{e&&(t?r.setFieldsValue({title:t.title,body:t.body,targetType:t.targetType,targetId:t.targetId,pinned:t.pinned}):(r.resetFields(),r.setFieldsValue({targetType:`standalone`,pinned:!1,body:``})))},onOk:async()=>{let e=await r.validateFields();await a.mutateAsync({...t?{id:t.id}:{},body:{title:e.title,body:e.body??``,targetType:e.targetType,targetId:e.targetType===`standalone`?null:e.targetId??null,pinned:e.pinned??!1}}),i.success(t?`Note updated`:`Note saved`),n()},children:(0,Z.jsxs)(WB,{form:r,layout:`vertical`,children:[(0,Z.jsx)(WB.Item,{name:`title`,label:`Title`,rules:[{required:!0,message:`Title is required`}],children:(0,Z.jsx)(_V,{placeholder:`Interview prep, salary research…`})}),(0,Z.jsx)(WB.Item,{name:`body`,label:`Note`,children:(0,Z.jsx)(_V.TextArea,{rows:8,placeholder:`Anything worth keeping`})}),(0,Z.jsxs)(Xz,{gap:12,children:[(0,Z.jsx)(WB.Item,{name:`targetType`,label:`Attach to`,style:{flex:1},children:(0,Z.jsx)(EE,{options:[{value:`standalone`,label:`Nothing in particular`},{value:`company`,label:`A company`},{value:`application`,label:`An application`}],onChange:()=>r.setFieldValue(`targetId`,null)})}),o!==`standalone`&&(0,Z.jsx)(WB.Item,{name:`targetId`,label:o===`company`?`Company`:`Application`,style:{flex:2},rules:[{required:!0,message:`Pick what this note is about`}],children:(0,Z.jsx)(EE,{showSearch:!0,optionFilterProp:`label`,options:l})})]}),(0,Z.jsx)(WB.Item,{name:`pinned`,label:`Pinned`,valuePropName:`checked`,children:(0,Z.jsx)(XW,{})})]})})}function e5({open:e,onClose:t,opening:n}){let[r]=WB.useForm(),{message:i}=NC.useApp(),a=!!n,o=b8(),s=x8(),{data:c}=u8(WB.useWatch(`companyName`,r)??``);(0,x.useEffect)(()=>{e&&(n?r.setFieldsValue({companyName:n.company.name,jobTitle:n.jobTitle,savedOn:(0,Yk.default)(n.savedOn),jobUrl:n.jobUrl??void 0,location:n.location??void 0,workMode:n.workMode,sourceName:n.sourceName??void 0,salaryMin:n.salaryMin,salaryMax:n.salaryMax,salaryCurrency:n.salaryCurrency??void 0,notes:n.notes??void 0}):(r.resetFields(),r.setFieldsValue({savedOn:(0,Yk.default)(),workMode:`unspecified`})))},[e,n,r]);let l=(0,x.useMemo)(()=>(c?.companies??[]).map(e=>({value:e.name})),[c]);async function u(e){let c={companyName:e.companyName,jobTitle:e.jobTitle,jobUrl:e.jobUrl??null,location:e.location??null,workMode:e.workMode,sourceName:e.sourceName??null,salaryMin:e.salaryMin??null,salaryMax:e.salaryMax??null,salaryCurrency:e.salaryCurrency??null,notes:e.notes??null,...a?{}:{savedOn:e.savedOn.format(`YYYY-MM-DD`)}};try{n?(await s.mutateAsync({id:n.id,body:c}),i.success(`Opening updated`)):(await o.mutateAsync(c),i.success(`Opening saved`)),t()}catch(e){e instanceof K6&&e.fieldErrors.length>0?(r.setFields(e.fieldErrors.map(e=>({name:e.path.split(`.`),errors:[e.message]}))),i.error(`Please check the highlighted fields`)):i.error(e instanceof Error?e.message:`Could not save`)}}return(0,Z.jsxs)(Tz,{title:a?`Edit opening`:`Save opening for later`,open:e,onClose:t,width:560,destroyOnHidden:!0,extra:(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(Vk,{onClick:t,children:`Cancel`}),(0,Z.jsx)(Vk,{type:`primary`,loading:o.isPending||s.isPending,onClick:()=>r.submit(),children:a?`Save changes`:`Save opening`})]}),children:[(0,Z.jsx)(YX.Paragraph,{type:`secondary`,children:`For a role you found but are not ready to apply to yet — no status, no tags, just enough to find it again. Convert it into a real application when you are ready.`}),(0,Z.jsxs)(WB,{form:r,layout:`vertical`,onFinish:u,requiredMark:`optional`,children:[(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:12,children:(0,Z.jsx)(WB.Item,{name:`companyName`,label:`Company`,rules:[{required:!0,message:`Company is required`}],children:(0,Z.jsx)(NE,{options:l,placeholder:`Start typing — existing companies appear`,filterOption:!1,allowClear:!0})})}),(0,Z.jsx)(II,{span:12,children:(0,Z.jsx)(WB.Item,{name:`jobTitle`,label:`Job title`,rules:[{required:!0,message:`Job title is required`}],children:(0,Z.jsx)(_V,{placeholder:`Backend Engineer`})})})]}),(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`savedOn`,label:`Found on`,rules:[{required:!0,message:`Date is required`}],children:(0,Z.jsx)(HR,{style:{width:`100%`},format:`YYYY-MM-DD`,disabled:a})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`workMode`,label:`Work mode`,children:(0,Z.jsx)(EE,{options:WQ.map(e=>({value:e,label:GQ[e]}))})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`location`,label:`Location`,children:(0,Z.jsx)(_V,{placeholder:`Stockholm`})})})]}),(0,Z.jsxs)(BU,{gutter:16,children:[(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`salaryMin`,label:`Salary from`,children:(0,Z.jsx)(LL,{style:{width:`100%`},min:0,step:1e4})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`salaryMax`,label:`Salary to`,children:(0,Z.jsx)(LL,{style:{width:`100%`},min:0,step:1e4})})}),(0,Z.jsx)(II,{span:8,children:(0,Z.jsx)(WB.Item,{name:`salaryCurrency`,label:`Currency`,children:(0,Z.jsx)(_V,{placeholder:`SEK`,maxLength:8})})})]}),(0,Z.jsx)(WB.Item,{name:`sourceName`,label:`Source`,children:(0,Z.jsx)(_V,{placeholder:`LinkedIn, referral…`})}),(0,Z.jsx)(WB.Item,{name:`jobUrl`,label:`Job posting URL`,children:(0,Z.jsx)(_V,{placeholder:`https://…`})}),(0,Z.jsx)(WB.Item,{name:`notes`,label:`Notes`,children:(0,Z.jsx)(_V.TextArea,{rows:4,placeholder:`Why this looked interesting, what you're missing to apply…`})})]})]})}function t5(){let e=Ye(),{message:t}=NC.useApp(),{data:n,isLoading:r}=v8(),{data:i}=a8(),a=S8(),o=C8(),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(void 0),[d,f]=(0,x.useState)(null),[p]=WB.useForm();function m(e){f(e),p.setFieldsValue({appliedOn:(0,Yk.default)(),status:`applied`,tags:[]})}async function h(n){if(d)try{let r=await o.mutateAsync({id:d.id,body:{appliedOn:n.appliedOn.format(`YYYY-MM-DD`),status:n.status,tags:n.tags??[]}});t.success(`Converted to an application`),f(null),e(`/applications/${r.id}`)}catch(e){t.error(e instanceof Error?e.message:`Could not convert`)}}return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsxs)(Xz,{justify:`space-between`,align:`center`,children:[(0,Z.jsxs)(Pz,{direction:`vertical`,size:0,children:[(0,Z.jsx)(YX.Title,{level:4,style:{margin:0},children:`Job openings`}),(0,Z.jsx)(YX.Text,{type:`secondary`,children:`Saved for later — convert one to a real application when you're ready to apply.`})]}),(0,Z.jsx)(Vk,{type:`primary`,icon:(0,Z.jsx)(cP,{}),onClick:()=>{u(void 0),c(!0)},children:`Save opening for later`})]}),(0,Z.jsx)(bF,{size:`small`,children:(0,Z.jsx)(hY,{rowKey:`id`,columns:[{title:`Company`,dataIndex:[`company`,`name`]},{title:`Job title`,dataIndex:`jobTitle`},{title:`Found on`,dataIndex:`savedOn`,width:120},{title:`Location`,key:`location`,render:(e,t)=>[t.location,GQ[t.workMode]].filter(Boolean).join(` · `)||(0,Z.jsx)(YX.Text,{type:`secondary`,children:`—`})},{title:`Source`,dataIndex:`sourceName`,render:e=>e??`—`},{title:``,key:`actions`,width:220,render:(e,t)=>(0,Z.jsxs)(Pz,{onClick:e=>e.stopPropagation(),children:[(0,Z.jsx)(Vk,{size:`small`,icon:(0,Z.jsx)(qB,{}),onClick:()=>m(t),children:`Convert`}),(0,Z.jsx)(Vk,{size:`small`,onClick:()=>{u(t),c(!0)},children:`Edit`}),(0,Z.jsx)(VH,{title:`Delete this opening?`,onConfirm:()=>a.mutate(t.id),okText:`Delete`,okButtonProps:{danger:!0},children:(0,Z.jsx)(Vk,{size:`small`,danger:!0,children:`Delete`})})]})}],dataSource:n?.openings??[],loading:r,pagination:!1,locale:{emptyText:(0,Z.jsx)(YT,{image:YT.PRESENTED_IMAGE_SIMPLE,description:`Nothing saved yet — use “Save opening for later” for a role you're not ready to apply to.`})}})}),(0,Z.jsx)(e5,{open:s,onClose:()=>c(!1),opening:l}),(0,Z.jsx)(LH,{title:d?`Convert "${d.jobTitle}" at ${d.company.name}`:``,open:!!d,onCancel:()=>f(null),onOk:()=>p.submit(),okText:`Create application`,confirmLoading:o.isPending,children:(0,Z.jsxs)(WB,{form:p,layout:`vertical`,onFinish:h,children:[(0,Z.jsx)(WB.Item,{name:`appliedOn`,label:`Applied on`,rules:[{required:!0}],children:(0,Z.jsx)(HR,{style:{width:`100%`},format:`YYYY-MM-DD`})}),(0,Z.jsx)(WB.Item,{name:`status`,label:`Status`,children:(0,Z.jsx)(EE,{options:zQ.map(e=>({value:e,label:UQ[e]}))})}),(0,Z.jsx)(WB.Item,{name:`tags`,label:`Tags`,children:(0,Z.jsx)(EE,{mode:`tags`,options:(i?.tags??[]).map(e=>({value:e.name,label:e.name})),placeholder:`fintech, remote-ok…`,tokenSeparators:[`,`]})})]})})]})}var n5={companies:`Companies`,applications:`Applications`,tags:`Tags`,tagLinks:`Tag links`,notes:`Notes`,statusEvents:`Status events`,jobOpenings:`Job openings`};function r5({counts:e}){return(0,Z.jsx)(nz,{size:`small`,column:2,bordered:!0,children:Object.entries(e).map(([e,t])=>(0,Z.jsx)(nz.Item,{label:n5[e]??e,children:t},e))})}function i5(){let{message:e}=NC.useApp(),{data:t,isLoading:n}=w8(),r=T8(),[i,a]=(0,x.useState)(null),[o,s]=(0,x.useState)(!1),c=(0,x.useRef)(null);(0,x.useEffect)(()=>()=>{c.current&&clearInterval(c.current)},[]);function l(t){LH.confirm({title:`Switch to "${t}"?`,content:"The server restarts to connect to the new target. This page will reconnect and reload automatically once it is back — under `npm run dev`, that may require restarting it by hand.",okText:`Switch and restart`,onOk:async()=>{try{await r.mutateAsync(t)}catch(t){e.error(t instanceof Error?t.message:`Could not switch database`);return}s(!0),c.current=setInterval(()=>{Q6.getDbTargets().then(()=>{c.current&&clearInterval(c.current),window.location.reload()}).catch(()=>{})},500)}})}if(o)return(0,Z.jsx)(bF,{title:`Database`,children:(0,Z.jsx)(zU,{icon:(0,Z.jsx)(CU,{spin:!0}),title:`Reconnecting…`,subTitle:`Waiting for the server to come back up.`})});let u=t?.targets??[];return(0,Z.jsx)(bF,{title:`Database`,loading:n,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:12,style:{width:`100%`},children:[(0,Z.jsxs)(YX.Paragraph,{type:`secondary`,style:{marginBottom:0},children:[`Connection settings live in `,(0,Z.jsx)(`code`,{children:`.env`}),` and are never shown or editable here.`,u.length<=1&&` Only one target is configured, so there is nothing to switch between.`]}),(0,Z.jsx)(nz,{size:`small`,column:1,bordered:!0,children:(0,Z.jsx)(nz.Item,{label:`Active target`,children:(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)($Z,{}),t?.active,` (`,u.find(e=>e.name===t?.active)?.driver,`)`]})})}),u.length>1&&(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(EE,{style:{width:220},value:i??t?.active,options:u.map(e=>({value:e.name,label:`${e.name} (${e.driver})`})),onChange:a}),(0,Z.jsx)(Vk,{type:`primary`,disabled:!i||i===t?.active,loading:r.isPending,onClick:()=>i&&l(i),children:`Switch`})]})]})})}function a5(){let{message:e}=NC.useApp(),[t,n]=(0,x.useState)(null),[r,i]=(0,x.useState)(null),[a,o]=(0,x.useState)(null),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(null),[d,f]=(0,x.useState)(!1);function p(){n(null),i(null),o(null),u(null)}function m(){p(),f(!1)}let h=e=>(n(e),u(null),c(!0),Q6.previewBackup(e).then(i).catch(e=>u(e instanceof Error?e.message:`Could not read that file`)).finally(()=>c(!1)),!1);function g(){t&&LH.confirm({title:`Replace all data in the active database?`,content:`Every table is wiped and recreated from this backup. This cannot be undone.`,okText:`Restore`,okButtonProps:{danger:!0},onOk:async()=>{c(!0),u(null);try{let e=await Q6.commitBackup(t);o(e)}catch(t){e.error(t instanceof Error?t.message:`Restore failed`)}finally{c(!1)}}})}return(0,Z.jsxs)(bF,{title:`Backup & restore`,children:[(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsx)(YX.Paragraph,{type:`secondary`,style:{marginBottom:0},children:`A full-fidelity snapshot of every table — every field, every relation, driver-agnostic. Not the same as the CSV/Excel export elsewhere in the app, which is a lossy report meant for people to read. This file is scrambled (gzip + obfuscation) so it isn't plain, readable JSON at rest — that's an obfuscation step, not encryption, and does not protect the personal data inside from anyone who actually wants it.`}),(0,Z.jsx)(Vk,{icon:(0,Z.jsx)($Z,{}),onClick:()=>{window.location.href=Q6.backupExportUrl},children:`Export backup`}),(0,Z.jsx)(Vk,{onClick:()=>f(!0),children:`Restore from backup…`})]}),(0,Z.jsx)(LH,{title:`Restore from backup`,open:d,onCancel:m,width:600,footer:null,destroyOnHidden:!0,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[!r&&!a&&(0,Z.jsxs)(VZ.Dragger,{accept:`.jtbak`,maxCount:1,showUploadList:!1,beforeUpload:h,disabled:s,children:[(0,Z.jsx)(`p`,{className:`ant-upload-drag-icon`,children:(0,Z.jsx)(cQ,{})}),(0,Z.jsx)(`p`,{className:`ant-upload-text`,children:`Click or drag a JobTrack backup file (.jtbak) here`})]}),l&&(0,Z.jsx)(jp,{type:`error`,showIcon:!0,message:l}),r&&!a&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(YX.Text,{type:`secondary`,children:[`Backup taken `,new Date(r.exportedAt).toLocaleString(),`. Restoring will replace everything currently in the active database with:`]}),(0,Z.jsx)(r5,{counts:r.counts}),(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(Vk,{onClick:p,children:`Choose a different file`}),(0,Z.jsx)(Vk,{type:`primary`,danger:!0,loading:s,onClick:g,children:`Restore`})]})]}),a&&(0,Z.jsx)(zU,{status:`success`,title:`Restore complete`,extra:(0,Z.jsxs)(Pz,{direction:`vertical`,style:{width:`100%`},children:[(0,Z.jsx)(r5,{counts:a.counts}),(0,Z.jsx)(Vk,{type:`primary`,onClick:()=>window.location.reload(),children:`Reload`})]})})]})})]})}var o5=`CLEAR`;function s5(){let{message:e}=NC.useApp(),{data:t,isLoading:n}=E8(),r=D8(),i=O8(),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(``);function l(){o(!1),c(``)}function u(){r.mutate(void 0,{onSuccess:()=>{e.success(`Database cleared`),l()},onError:t=>e.error(t instanceof Error?t.message:`Could not clear the database`)})}function d(){i.mutate(void 0,{onSuccess:t=>e.success(`Seeded ${t.applications} applications and ${t.companies} companies`),onError:t=>e.error(t instanceof Error?t.message:`Could not seed the database`)})}let f=t?.counts??{};return(0,Z.jsxs)(bF,{title:`Reset & demo data`,loading:n,children:[(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsx)(YX.Paragraph,{type:`secondary`,style:{marginBottom:0},children:`Wipe everything in the active database, or — only while it's empty — fill it with a realistic multi-year demo dataset to explore the app with.`}),!t?.empty&&(0,Z.jsx)(r5,{counts:f}),(0,Z.jsxs)(Pz,{wrap:!0,children:[t?.empty&&(0,Z.jsx)(Vk,{type:`primary`,icon:(0,Z.jsx)(nQ,{}),loading:i.isPending,onClick:d,children:`Seed with demo data`}),(0,Z.jsx)(Vk,{danger:!0,disabled:t?.empty,onClick:()=>o(!0),children:`Clear database…`})]})]}),(0,Z.jsx)(LH,{title:`Clear the active database?`,open:a,onCancel:l,footer:null,destroyOnHidden:!0,children:(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsx)(jp,{type:`warning`,showIcon:!0,message:`This permanently deletes every row below. There is no undo — export a backup first if you might want this data again.`}),(0,Z.jsx)(r5,{counts:f}),(0,Z.jsxs)(YX.Text,{children:[`Type `,(0,Z.jsx)(YX.Text,{code:!0,children:o5}),` to confirm.`]}),(0,Z.jsx)(_V,{value:s,onChange:e=>c(e.target.value),placeholder:o5,onPressEnter:()=>s===o5&&u()}),(0,Z.jsxs)(Pz,{children:[(0,Z.jsx)(Vk,{onClick:l,children:`Cancel`}),(0,Z.jsx)(Vk,{danger:!0,type:`primary`,disabled:s!==o5,loading:r.isPending,onClick:u,children:`Clear database`})]})]})})]})}function c5(){return(0,Z.jsxs)(Pz,{direction:`vertical`,size:16,style:{width:`100%`},children:[(0,Z.jsx)(YX.Title,{level:4,style:{margin:0},children:`Settings`}),(0,Z.jsx)(i5,{}),(0,Z.jsx)(a5,{}),(0,Z.jsx)(s5,{})]})}var l5=`jobtrack.theme`,u5=[{key:`/dashboard`,icon:(0,Z.jsx)(XZ,{}),label:(0,Z.jsx)(un,{to:`/dashboard`,children:`Dashboard`})},{key:`/applications`,icon:(0,Z.jsx)(_Q,{}),label:(0,Z.jsx)(un,{to:`/applications`,children:`Applications`})},{key:`/openings`,icon:(0,Z.jsx)(qZ,{}),label:(0,Z.jsx)(un,{to:`/openings`,children:`Openings`})},{key:`/companies`,icon:(0,Z.jsx)(kQ,{}),label:(0,Z.jsx)(un,{to:`/companies`,children:`Companies`})},{key:`/notes`,icon:(0,Z.jsx)($z,{}),label:(0,Z.jsx)(un,{to:`/notes`,children:`Notes`})},{key:`/settings`,icon:(0,Z.jsx)(EQ,{}),label:(0,Z.jsx)(un,{to:`/settings`,children:`Settings`})}],d5=[{key:`light`,icon:(0,Z.jsx)(MQ,{}),label:`Light`},{key:`dark`,icon:(0,Z.jsx)(mQ,{}),label:`Dark`}];function f5(){let[e,t]=(0,x.useState)(()=>{try{let e=localStorage.getItem(l5);if(e)return e===`dark`}catch{}return window.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!1});(0,x.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,e?`dark`:`light`);try{localStorage.setItem(l5,e?`dark`:`light`)}catch{}},[e]);let n=Ke(),r=(0,x.useMemo)(()=>{let e=u5.find(e=>n.pathname.startsWith(e.key));return e?[e.key]:[`/dashboard`]},[n.pathname]);return(0,Z.jsx)(Nh,{theme:z8(e?`dark`:`light`),children:(0,Z.jsx)(NC,{children:(0,Z.jsxs)(EV,{style:{minHeight:`100vh`},children:[(0,Z.jsxs)(EV.Header,{style:{display:`flex`,alignItems:`center`,gap:24,paddingInline:24,borderBottom:`1px solid ${R8.border}`,position:`sticky`,top:0,zIndex:10},children:[(0,Z.jsxs)(YX.Title,{level:4,style:{margin:0,whiteSpace:`nowrap`},children:[`Job`,(0,Z.jsx)(`span`,{style:{color:R8.accent},children:`Track`})]}),(0,Z.jsx)(Fk,{mode:`horizontal`,selectedKeys:r,items:u5,style:{flex:1,minWidth:0,borderBottom:`none`}}),(0,Z.jsx)(Iz,{trigger:[`click`],menu:{items:d5,selectable:!0,selectedKeys:[e?`dark`:`light`],onClick:({key:e})=>t(e===`dark`)},children:(0,Z.jsx)(Vk,{icon:e?(0,Z.jsx)(mQ,{}):(0,Z.jsx)(MQ,{}),"aria-label":`Theme settings`,children:`Theme`})})]}),(0,Z.jsx)(EV.Content,{style:{padding:24},children:(0,Z.jsxs)(St,{children:[(0,Z.jsx)(bt,{path:`/`,element:(0,Z.jsx)(yt,{to:`/dashboard`,replace:!0})}),(0,Z.jsx)(bt,{path:`/dashboard`,element:(0,Z.jsx)(B8,{})}),(0,Z.jsx)(bt,{path:`/applications`,element:(0,Z.jsx)(K8,{})}),(0,Z.jsx)(bt,{path:`/applications/:id`,element:(0,Z.jsx)(J8,{})}),(0,Z.jsx)(bt,{path:`/openings`,element:(0,Z.jsx)(t5,{})}),(0,Z.jsx)(bt,{path:`/companies`,element:(0,Z.jsx)(Y8,{})}),(0,Z.jsx)(bt,{path:`/companies/:id`,element:(0,Z.jsx)(X8,{})}),(0,Z.jsx)(bt,{path:`/notes`,element:(0,Z.jsx)(Z8,{})}),(0,Z.jsx)(bt,{path:`/settings`,element:(0,Z.jsx)(c5,{})}),(0,Z.jsx)(bt,{path:`*`,element:(0,Z.jsx)(yt,{to:`/dashboard`,replace:!0})})]})})]})})})}var p5=new Nr({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1,retry:1}}});(0,Jr.createRoot)(document.getElementById(`root`)).render((0,Z.jsx)(x.StrictMode,{children:(0,Z.jsx)(Tn,{client:p5,children:(0,Z.jsx)(ln,{children:(0,Z.jsx)(f5,{})})})}));
|
|
444
|
+
//# sourceMappingURL=index-BwFWDywX.js.map
|