Files
AdsPreview/backend/public/static/js/main.f30d7548.js
Johannes b4758b4f26 security: clean repository without media files and sensitive data
- Removed area/ directory with 816MB of media files
- Removed sensitive FTP credentials from Git history
- Implemented .env.upload system for secure deployments
- Added comprehensive .gitignore for future protection

This commit represents a clean slate with all sensitive data removed.
2025-09-07 11:05:29 +02:00

3 lines
825 KiB
JavaScript

/*! For license information please see main.f30d7548.js.LICENSE.txt */
(()=>{var e={43:(e,t,n)=>{"use strict";e.exports=n(202)},82:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function h(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return h(e)===m}},86:(e,t,n)=>{"use strict";e.exports=n(82)},139:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},153:(e,t,n)=>{"use strict";var r=n(43),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function h(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=h.prototype;var w=y.prototype=new b;w.constructor=y,g(w,h.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,S={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!$.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:S.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function j(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+j(s,0):i,x(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),I(a,t,o,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+j(l=e[c],c);s+=I(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=I(l=l.value,t,o,u=i+j(l,c++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function P(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",function(e){return t.call(n,e,o++)}),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},R={transition:null},T={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};function z(){throw Error("act(...) is not supported in production builds of React.")}t.Children={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(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=h,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.act=z,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)C.call(t,c)&&!$.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=z,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<o&&0>i(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,m=!1,g=!1,v=!1,h="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(v=!1,w(e),!g)if(null!==r(c))g=!0,R(C);else{var t=r(u);null!==t&&T(x,t.startTime-e)}}function C(e,n){g=!1,v&&(v=!1,b(k),k=-1),m=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!I());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&T(x,d.startTime-n),s=!1}return s}finally{f=null,p=i,m=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,$=!1,E=null,k=-1,O=5,j=-1;function I(){return!(t.unstable_now()-j<O)}function P(){if(null!==E){var e=t.unstable_now();j=e;var n=!0;try{n=E(!0,e)}finally{n?S():($=!1,E=null)}}else $=!1}if("function"===typeof y)S=function(){y(P)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,M=N.port2;N.port1.onmessage=P,S=function(){M.postMessage(null)}}else S=function(){h(P,0)};function R(e){E=e,$||($=!0,S())}function T(e,n){k=h(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,R(C))},t.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"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(v?(b(k),k=-1):v=!0,T(x,i-a))):(e.sortIndex=l,n(c,e),g||m||(g=!0,R(C))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},270:(e,t,n)=>{"use strict";var r=n(520),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},391:(e,t,n)=>{"use strict";var r=n(950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},520:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},579:(e,t,n)=>{"use strict";e.exports=n(153)},730:(e,t,n)=>{"use strict";var r=n(43),o=n(853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new g(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new g(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,b);v[t]=new g(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(h,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var T=Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=T&&e[T]||e["@@iterator"])?e:null}var _,L=Object.assign;function A(e){if(void 0===_)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return"\n"+_+e}var B=!1;function D(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function F(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case C:return"Portal";case E:return"Profiler";case $:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ie(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var he=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Se=null,$e=null;function Ee(e){if(e=wo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function ke(e){Se?$e?$e.push(e):$e=[e]:Se=e}function Oe(){if(Se){var e=Se,t=$e;if($e=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function je(e,t){return e(t)}function Ie(){}var Pe=!1;function Ne(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return je(e,t,n)}finally{Pe=!1,(null!==Se||null!==$e)&&(Ie(),Oe())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Re=!1;if(u)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(ue){Re=!1}function ze(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var _e=!1,Le=null,Ae=!1,Be=null,De={onError:function(e){_e=!0,Le=e}};function Fe(e,t,n,r,o,i,a,l,s){_e=!1,Le=null,ze.apply(De,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(i(188))}function Xe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ve(o),e;if(a===r)return Ve(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ue=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,St,$t,Et,kt=!1,Ot=[],jt=null,It=null,Pt=null,Nt=new Map,Mt=new Map,Rt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function _t(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=yo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){At(e)&&n.delete(t)}function Dt(){kt=!1,null!==jt&&At(jt)&&(jt=null),null!==It&&At(It)&&(It=null),null!==Pt&&At(Pt)&&(Pt=null),Nt.forEach(Bt),Mt.forEach(Bt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function Ht(e){function t(t){return Ft(t,e)}if(0<Ot.length){Ft(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Ft(jt,e),null!==It&&Ft(It,e),null!==Pt&&Ft(Pt,e),Nt.forEach(t),Mt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.shift()}var Wt=w.ReactCurrentBatchConfig,Vt=!0;function Xt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Ut(e,t,n,r)}finally{yt=o,Wt.transition=i}}function qt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Ut(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Ut(e,t,n,r){if(Vt){var o=Kt(e,t,n,r);if(null===o)Vr(e,t,r,Gt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return jt=_t(jt,e,t,n,r,o),!0;case"dragenter":return It=_t(It,e,t,n,r,o),!0;case"mouseover":return Pt=_t(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,_t(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,_t(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Kt(e,t,n,r))&&Vr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=yo(e=xe(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(pn),gn=on(L({},pn,{dataTransfer:0})),vn=on(L({},dn,{relatedTarget:0})),hn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return $n}var kn=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(kn),jn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Pn=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=L({},pn,{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}),Mn=on(Nn),Rn=[9,13,27,32],Tn=u&&"CompositionEvent"in window,zn=null;u&&"documentMode"in document&&(zn=document.documentMode);var _n=u&&"TextEvent"in window&&!zn,Ln=u&&(!Tn||zn&&8<zn&&11>=zn),An=String.fromCharCode(32),Bn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Xn(e,t,n,r){ke(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Un=null;function Gn(e){Ar(e,0)}function Kn(e){if(U(xo(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Un=qn=null)}function nr(e){if("value"===e.propertyName&&Kn(Un)){var t=[];Xn(t,Un,e,xe(e)),Ne(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Un=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Un)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===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 o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,vr=null,hr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==vr||vr!==G(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=qr(hr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},$r={};function Er(e){if(Sr[e])return Sr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in $r)return Sr[e]=n[t];return e}u&&($r=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);var kr=Er("animationend"),Or=Er("animationiteration"),jr=Er("animationstart"),Ir=Er("transitionend"),Pr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Pr.set(e,t),s(t,[e])}for(var Rr=0;Rr<Nr.length;Rr++){var Tr=Nr[Rr];Mr(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Mr(kr,"onAnimationEnd"),Mr(Or,"onAnimationIteration"),Mr(jr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Ir,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,c){if(Fe.apply(this,arguments),_e){if(!_e)throw Error(i(198));var u=Le;_e=!1,Le=null,Ae||(Ae=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Lr(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Lr(o,l,c),i=s}}}if(Ae)throw e=Be,Ae=!1,Be=null,e}function Br(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Fr]){e[Fr]=!0,a.forEach(function(t){"selectionchange"!==t&&(_r.has(t)||Dr(t,!1,e),Dr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Dr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var o=Xt;break;case 4:o=qt;break;default:o=Ut}n=o.bind(null,t,n,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Ne(function(){var r=i,o=xe(n),a=[];e:{var l=Pr.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":c="focus",s=vn;break;case"focusout":c="blur",s=vn;break;case"beforeblur":case"afterblur":s=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=In;break;case kr:case Or:case jr:s=hn;break;case Ir:s=Pn;break;case"scroll":s=fn;break;case"wheel":s=Mn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=jn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,m=r;null!==m;){var g=(p=m).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Me(m,f))&&u.push(Xr(m,g,p)))),d)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=jn,g="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:xo(s),p=null==c?l:xo(c),(l=new u(g,m+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,yo(o)===r&&((u=new u(f,m+"enter",c,n,o)).target=p,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(f=c,m=0,p=u=s;p;p=Ur(p))m++;for(p=0,g=f;g;g=Ur(g))p++;for(;0<m-p;)u=Ur(u),m--;for(;0<p-m;)f=Ur(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=Ur(u),f=Ur(f)}u=null}else u=null;null!==s&&Gr(a,l,s,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(s=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(Vn(l))if(Qn)v=ar;else{v=or;var h=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Xn(a,v,n,o):(h&&h(e,l,r),"focusout"===e&&(h=l._wrapperState)&&h.controlled&&"number"===l.type&&ee(l,"number",l.value)),h=r?xo(r):window,e){case"focusin":(Vn(h)||"true"===h.contentEditable)&&(vr=h,hr=r,br=null);break;case"focusout":br=hr=vr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(Tn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Dn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(h=qr(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:h}),b?y.data=b:null!==(b=Fn(n))&&(y.data=b))),(b=_n?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Bn=!0,An);case"textInput":return(e=t.data)===An&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Tn&&Dn(e,t)?(e=en(),Jt=Zt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default: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 Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Ar(a,t)})}function Xr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Xr(e,i,o)),null!=(i=Me(e,t))&&r.push(Xr(e,i,o))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Me(n,i))&&a.unshift(Xr(n,s,l)):o||null!=(s=Me(n,i))&&a.push(Xr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout(function(){throw e})}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,go="__reactContainer$"+fo,vo="__reactEvents$"+fo,ho="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[mo]||null}var So=[],$o=-1;function Eo(e){return{current:e}}function ko(e){0>$o||(e.current=So[$o],So[$o]=null,$o--)}function Oo(e,t){$o++,So[$o]=e.current,e.current=t}var jo={},Io=Eo(jo),Po=Eo(!1),No=jo;function Mo(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ro(e){return null!==(e=e.childContextTypes)&&void 0!==e}function To(){ko(Po),ko(Io)}function zo(e,t,n){if(Io.current!==jo)throw Error(i(168));Oo(Io,t),Oo(Po,n)}function _o(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,No=Io.current,Oo(Io,e),Oo(Po,Po.current),!0}function Ao(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=_o(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,ko(Po),ko(Io),Oo(Io,e)):ko(Po),Oo(Po,n)}var Bo=null,Do=!1,Fo=!1;function Ho(e){null===Bo?Bo=[e]:Bo.push(e)}function Wo(){if(!Fo&&null!==Bo){Fo=!0;var e=0,t=yt;try{var n=Bo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Do=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ue(Je,Wo),o}finally{yt=t,Fo=!1}}return null}var Vo=[],Xo=0,qo=null,Uo=0,Go=[],Ko=0,Yo=null,Qo=1,Zo="";function Jo(e,t){Vo[Xo++]=Uo,Vo[Xo++]=qo,qo=e,Uo=t}function ei(e,t,n){Go[Ko++]=Qo,Go[Ko++]=Zo,Go[Ko++]=Yo,Yo=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===qo;)qo=Vo[--Xo],Vo[Xo]=null,Uo=Vo[--Xo],Vo[Xo]=null;for(;e===Yo;)Yo=Go[--Ko],Go[Ko]=null,Zo=Go[--Ko],Go[Ko]=null,Qo=Go[--Ko],Go[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Nc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&si(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function mi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var vi=w.ReactCurrentBatchConfig;function hi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===M&&yi(i)===t.type)?((r=o(t,n.props)).ref=hi(e,t,n),r.return=e,r):((r=Tc(n.type,n.key,n.props,null,e.mode,r)).ref=hi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ac(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=zc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Tc(t.type,t.key,t.props,null,e.mode,n)).ref=hi(e,null,t),n.return=e,n;case C:return(t=Ac(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(te(t)||z(t))return(t=zc(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case C:return n.key===o?u(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||z(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function m(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function g(o,i,l,s){for(var c=null,u=null,d=i,g=i=0,v=null;null!==d&&g<l.length;g++){d.index>g?(v=d,d=null):v=d.sibling;var h=p(o,d,l[g],s);if(null===h){null===d&&(d=v);break}e&&d&&null===h.alternate&&t(o,d),i=a(h,i,g),null===u?c=h:u.sibling=h,u=h,d=v}if(g===l.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],s))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<l.length;g++)null!==(v=m(d,o,g,l[g],s))&&(e&&null!==v.alternate&&d.delete(null===v.key?g:v.key),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach(function(e){return t(o,e)}),ii&&Jo(o,g),c}function v(o,l,s,c){var u=z(s);if("function"!==typeof u)throw Error(i(150));if(null==(s=u.call(s)))throw Error(i(151));for(var d=u=null,g=l,v=l=0,h=null,b=s.next();null!==g&&!b.done;v++,b=s.next()){g.index>v?(h=g,g=null):h=g.sibling;var y=p(o,g,b.value,c);if(null===y){null===g&&(g=h);break}e&&g&&null===y.alternate&&t(o,g),l=a(y,l,v),null===d?u=y:d.sibling=y,d=y,g=h}if(b.done)return n(o,g),ii&&Jo(o,v),u;if(null===g){for(;!b.done;v++,b=s.next())null!==(b=f(o,b.value,c))&&(l=a(b,l,v),null===d?u=b:d.sibling=b,d=b);return ii&&Jo(o,v),u}for(g=r(o,g);!b.done;v++,b=s.next())null!==(b=m(g,o,v,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?v:b.key),l=a(b,l,v),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(o,e)}),ii&&Jo(o,v),u}return function e(r,i,a,s){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===M&&yi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=hi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((i=zc(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Tc(a.type,a.key,a.props,null,r.mode,s)).ref=hi(r,i,a),s.return=r,r=s)}return l(r);case C:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ac(a,r.mode,s)).return=r,r=i}return l(r);case M:return e(r,i,(u=a._init)(a._payload),s)}if(te(a))return g(r,i,a,s);if(z(a))return v(r,i,a,s);bi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),Ci=wi(!1),Si=Eo(null),$i=null,Ei=null,ki=null;function Oi(){ki=Ei=$i=null}function ji(e){var t=Si.current;ko(Si),e._currentValue=t}function Ii(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pi(e,t){$i=e,ki=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===$i)throw Error(i(308));Ei=e,$i.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Mi=null;function Ri(e){null===Mi?Mi=[e]:Mi.push(e)}function Ti(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ri(t)):(n.next=o.next,o.next=n),t.interleaved=n,zi(e,r)}function zi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var _i=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&js)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ri(r)):(t.next=o.next,o.next=t),r.interleaved=t,zi(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;_i=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(f=t,p=n,g.tag){case 1:if("function"===typeof(m=g.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(f="function"===typeof(m=g.payload)?m.call(p,d,f):m)||void 0===f)break e;d=L({},d,f);break e;case 2:_i=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);_s|=a,e.lanes=a,e.memoizedState=d}}function Vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Xi={},qi=Eo(Xi),Ui=Eo(Xi),Gi=Eo(Xi);function Ki(e){if(e===Xi)throw Error(i(174));return e}function Yi(e,t){switch(Oo(Gi,t),Oo(Ui,e),Oo(qi,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(qi),Oo(qi,t)}function Qi(){ko(qi),ko(Ui),ko(Gi)}function Zi(e){Ki(Gi.current);var t=Ki(qi.current),n=se(t,e.type);t!==n&&(Oo(Ui,e),Oo(qi,n))}function Ji(e){Ui.current===e&&(ko(qi),ko(Ui))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,sa=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ma(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=sa=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==sa&&null!==sa.next,aa=0,ca=sa=la=null,ua=!1,t)throw Error(i(300));return e}function ha(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function ya(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=r):c=c.next=f,la.lanes|=d,_s|=d}u=u.next}while(null!==u&&u!==a);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,_s|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function $a(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!0),r=r.queue,_a(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Na(9,ka.bind(null,n,r,o,t),void 0,null),null===Is)throw Error(i(349));0!==(30&aa)||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&Ia(e)}function Oa(e,t,n){return n(function(){ja(t)&&Ia(e)})}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Ia(e){var t=zi(e,1);null!==t&&nc(t,e,1,-1)}function Pa(e){var t=ba();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,la,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ya().memoizedState}function Ra(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Ta(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}la.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function za(e,t){return Ra(8390656,8,e,t)}function _a(e,t){return Ta(2048,8,e,t)}function La(e,t){return Ta(4,2,e,t)}function Aa(e,t){return Ta(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Da(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ta(4,4,Ba.bind(null,t,e),n)}function Fa(){}function Ha(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=gt(),la.lanes|=n,_s|=n,e.baseState=!0),t)}function Xa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function qa(){return ya().memoizedState}function Ua(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Ya(t,n);else if(null!==(n=Ti(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ri(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ti(e,t,o,r))&&(nc(n,e,r,o=ec()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ya(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:Ni,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},Ja={readContext:Ni,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ua.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Pa,useDebugValue:Fa,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Xa.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Is)throw Error(i(349));0!==(30&aa)||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,za(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Is.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ni,useCallback:Ha,useContext:Ni,useEffect:_a,useImperativeHandle:Da,useInsertionEffect:La,useLayoutEffect:Aa,useMemo:Wa,useReducer:xa,useRef:Ma,useState:function(){return xa(wa)},useDebugValue:Fa,useDeferredValue:function(e){return Va(ya(),sa.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:$a,useId:qa,unstable_isNewReconciler:!1},tl={readContext:Ni,useCallback:Ha,useContext:Ni,useEffect:_a,useImperativeHandle:Da,useInsertionEffect:La,useLayoutEffect:Aa,useMemo:Wa,useReducer:Ca,useRef:Ma,useState:function(){return Ca(wa)},useDebugValue:Fa,useDeferredValue:function(e){var t=ya();return null===sa?t.memoizedState=e:Va(t,sa.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ya().memoizedState]},useMutableSource:Sa,useSyncExternalStore:$a,useId:qa,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Bi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Di(e,i,o))&&(nc(t,e,o,r),Fi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Bi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Di(e,i,o))&&(nc(t,e,o,r),Fi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Bi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Di(e,o,r))&&(nc(t,e,r,n),Fi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function al(e,t,n){var r=!1,o=jo,i=t.contextType;return"object"===typeof i&&null!==i?i=Ni(i):(o=Ro(t)?No:Io.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Mo(e,o):jo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ni(i):(i=Ro(t)?No:Io.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,Xs=r),dl(0,t)},n}function ml(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,Di(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=w.ReactCurrentOwner,yl=!1;function wl(e,t,n,r){t.child=null===e?Ci(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Pi(t,o),r=va(e,t,n,r,i,o),n=ha(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Mc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Rc(i,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!==(131072&e.flags)&&(yl=!0)}}return kl(e,t,n,r,o)}function $l(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Rs,Ms),Ms|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Rs,Ms),Ms|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Rs,Ms),Ms|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Rs,Ms),Ms|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kl(e,t,n,r,o){var i=Ro(n)?No:Io.current;return i=Mo(t,i),Pi(t,o),n=va(e,t,n,r,i,o),r=ha(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Ol(e,t,n,r,o){if(Ro(n)){var i=!0;Lo(t)}else i=!1;if(Pi(t,o),null===t.stateNode)Wl(e,t),al(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ni(c):c=Mo(t,c=Ro(n)?No:Io.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==c)&&ll(t,a,r,c),_i=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Po.current||_i?("function"===typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=_i||il(t,n,l,r,f,s,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ai(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=Ni(s):s=Mo(t,s=Ro(n)?No:Io.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,a,r,s),_i=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var m=t.memoizedState;l!==d||f!==m||Po.current||_i?("function"===typeof p&&(rl(t,n,p,r),m=t.memoizedState),(c=_i||il(t,n,c,r,f,m,s)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=c):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,i,o)}function jl(e,t,n,r,o,i){El(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Ao(t,n,!1),Vl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Ao(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Yi(e,t.containerInfo)}function Pl(e,t,n,r,o){return mi(),gi(o),t.flags|=256,wl(e,t,n,r),t.child}var Nl,Ml,Rl,Tl,zl={dehydrated:null,treeContext:null,retryLane:0};function _l(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ll(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=_c(s,o,0,null),e=zc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=_l(n),t.memoizedState=zl,e):Al(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=_c({mode:"visible",children:r.children},o,0,null),(a=zc(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,l),t.child.memoizedState=_l(l),t.memoizedState=zl,a);if(0===(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(s=0!==(l&e.childLanes),yl||s){if(null!==(r=Is)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,zi(e,o),nc(r,e,o,-1))}return gc(),Bl(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Ko++]=Qo,Go[Ko++]=Zo,Go[Ko++]=Yo,Qo=e.id,Zo=e.overflow,Yo=t),t=Al(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Rc(r,l):(l=zc(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?_l(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=zl,o}return e=(l=e.child).sibling,o=Rc(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Al(e,t){return(t=_c({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&gi(r),xi(t,e.child,null,n),(e=Al(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Dl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ii(e.return,t,n)}function Fl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Dl(e,n,t);else if(19===e.tag)Dl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Fl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Fl(t,!0,n,null,i);break;case"together":Fl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_s|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ul(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Ro(t.type)&&To(),ql(t),null;case 3:return r=t.stateNode,Qi(),ko(Po),ko(Io),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ml(e,t),ql(t),null;case 5:Ji(t);var o=Ki(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Rl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ql(t),null}if(e=Ki(qi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[mo]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<zr.length;o++)Br(zr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var s in be(n,a),o=null,a)if(a.hasOwnProperty(s)){var c=a[s];"children"===s?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":q(r),J(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[mo]=r,Nl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<zr.length;o++)Br(zr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Y(e,r),o=K(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in be(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ve(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&y(e,a,u,s))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Tl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(Gi.current),Ki(qi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),mi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else mi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Ts&&(Ts=3):gc())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return Qi(),Ml(e,t),null===e&&Hr(t.stateNode.containerInfo),ql(t),null;case 10:return ji(t.type._context),ql(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return ql(t),null;if(r=0!==(128&t.flags),null===(s=a.rendering))if(r)Xl(a,!1);else{if(0!==Ts||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Xl(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hs&&(t.flags|=128,r=!0,Xl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Xl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return ql(t),null}else 2*Qe()-a.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Xl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ms)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gl(e,t){switch(ni(t),t.tag){case 1:return Ro(t.type)&&To(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),ko(Po),ko(Io),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Qi(),null;case 10:return ji(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Nl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ml=function(){},Rl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(qi.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Tl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Yl=!1,Ql="function"===typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){$c(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){$c(e,t,r)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[vo],delete t[ho],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:Yl||Jl(n,t);case 6:var r=us,o=ds;us=null,fs(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ht(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,fs(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&es(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Yl&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){$c(n,t,l)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,fs(e,t,n),Yl=r):fs(e,t,n);break;default:fs(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach(function(t){var r=jc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(i(160));ps(a,l,o),us=null,ds=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){$c(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),hs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(v){$c(e,e.return,v)}try{ns(5,e,e.return)}catch(v){$c(e,e.return,v)}}break;case 1:gs(t,e),hs(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(gs(t,e),hs(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(v){$c(e,e.return,v)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(s,l);var u=ye(s,a);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,u)}switch(s){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ne(o,!!a.multiple,m,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[mo]=a}catch(v){$c(e,e.return,v)}}break;case 6:if(gs(t,e),hs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(v){$c(e,e.return,v)}}break;case 3:if(gs(t,e),hs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(v){$c(e,e.return,v)}break;case 4:default:gs(t,e),hs(e);break;case 13:gs(t,e),hs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Fs=Qe())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Yl=(u=Yl)||d,gs(t,e),Yl=u):gs(t,e),hs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(m=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Jl(p,p.return);var g=p.stateNode;if("function"===typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){$c(r,n,v)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xs(f);continue}}null!==m?(m.return=p,Zl=m):xs(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,s.style.display=ge("display",l))}catch(v){$c(e,e.return,v)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){$c(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),hs(e),4&r&&ms(e);case 21:}}function hs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cs(e,ls(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(i(161))}}catch(l){$c(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,ys(e,t,n)}function ys(e,t,n){for(var r=0!==(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Yl;l=Kl;var c=Yl;if(Kl=a,(Yl=s)&&!c)for(Zl=o;null!==Zl;)s=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Cs(o):null!==s?(s.return=a,Zl=s):Cs(o);for(;null!==i;)Zl=i,ys(i,t,n),i=i.sibling;Zl=o,Kl=l,Yl=c}ws(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zl=i):ws(e)}}function ws(e){for(;null!==Zl;){var t=Zl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Yl||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(i(163))}Yl||512&t.flags&&os(t)}catch(p){$c(t,t.return,p)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xs(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Cs(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(s){$c(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){$c(t,o,s)}}var i=t.return;try{os(t)}catch(s){$c(t,i,s)}break;case 5:var a=t.return;try{os(t)}catch(s){$c(t,a,s)}}}catch(s){$c(t,t.return,s)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Ss,$s=Math.ceil,Es=w.ReactCurrentDispatcher,ks=w.ReactCurrentOwner,Os=w.ReactCurrentBatchConfig,js=0,Is=null,Ps=null,Ns=0,Ms=0,Rs=Eo(0),Ts=0,zs=null,_s=0,Ls=0,As=0,Bs=null,Ds=null,Fs=0,Hs=1/0,Ws=null,Vs=!1,Xs=null,qs=null,Us=!1,Gs=null,Ks=0,Ys=0,Qs=null,Zs=-1,Js=0;function ec(){return 0!==(6&js)?Qe():-1!==Zs?Zs:Zs=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&js)&&0!==Ns?Ns&-Ns:null!==vi.transition?(0===Js&&(Js=gt()),Js):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nc(e,t,n,r){if(50<Ys)throw Ys=0,Qs=null,Error(i(185));ht(e,n,r),0!==(2&js)&&e===Is||(e===Is&&(0===(2&js)&&(Ls|=n),4===Ts&&lc(e,Ns)),rc(e,r),1===n&&0===js&&0===(1&t.mode)&&(Hs=Qe()+500,Do&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Is?Ns:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Do=!0,Ho(e)}(sc.bind(null,e)):Ho(sc.bind(null,e)),ao(function(){0===(6&js)&&Wo()}),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Zs=-1,Js=0,0!==(6&js))throw Error(i(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=ft(e,e===Is?Ns:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vc(e,r);else{t=r;var o=js;js|=2;var a=mc();for(Is===e&&Ns===t||(Ws=null,Hs=Qe()+500,fc(e,t));;)try{bc();break}catch(s){pc(e,s)}Oi(),Es.current=a,js=o,null!==Ps?t=0:(Is=null,Ns=0,t=Ts)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(r=o,t=ic(e,o))),1===t)throw n=zs,fc(e,0),lc(e,r),rc(e,Qe()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vc(e,r))&&(0!==(a=mt(e))&&(r=a,t=ic(e,a))),1===t))throw n=zs,fc(e,0),lc(e,r),rc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Ds,Ws);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Fs+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Ds,Ws),t);break}xc(e,Ds,Ws);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$s(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Ds,Ws),r);break}xc(e,Ds,Ws);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Ds,Ds=n,null!==t&&ac(t)),e}function ac(e){null===Ds?Ds=e:Ds.push.apply(Ds,e)}function lc(e,t){for(t&=~As,t&=~Ls,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!==(6&js))throw Error(i(327));Cc();var t=ft(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=zs,fc(e,0),lc(e,t),rc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Ds,Ws),rc(e,Qe()),null}function cc(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(Hs=Qe()+500,Do&&Wo())}}function uc(e){null!==Gs&&0===Gs.tag&&0===(6&js)&&Cc();var t=js;js|=1;var n=Os.transition,r=yt;try{if(Os.transition=null,yt=1,e)return e()}finally{yt=r,Os.transition=n,0===(6&(js=t))&&Wo()}}function dc(){Ms=Rs.current,ko(Rs)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&To();break;case 3:Qi(),ko(Po),ko(Io),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:ko(ea);break;case 10:ji(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Is=e,Ps=e=Rc(e.current,null),Ns=Ms=t,Ts=0,zs=null,As=Ls=_s=0,Ds=Bs=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pc(e,t){for(;;){var n=Ps;try{if(Oi(),oa.current=Za,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=sa=la=null,da=!1,fa=0,ks.current=null,null===n||null===n.return){Ts=1,zs=t,Ps=null;break}e:{var a=e,l=n.return,s=n,c=t;if(t=Ns,s.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=s,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=vl(l);if(null!==m){m.flags&=-257,hl(m,l,s,0,t),1&m.mode&&gl(a,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var v=new Set;v.add(c),t.updateQueue=v}else g.add(c);break e}if(0===(1&t)){gl(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&s.mode){var h=vl(l);if(null!==h){0===(65536&h.flags)&&(h.flags|=256),hl(h,l,s,0,t),gi(cl(c,s));break e}}a=c=cl(c,s),4!==Ts&&(Ts=2),null===Bs?Bs=[a]:Bs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,pl(0,c,t));break e;case 1:s=c;var b=a.type,y=a.stateNode;if(0===(128&a.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===qs||!qs.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function mc(){var e=Es.current;return Es.current=Za,null===e?Za:e}function gc(){0!==Ts&&3!==Ts&&2!==Ts||(Ts=4),null===Is||0===(268435455&_s)&&0===(268435455&Ls)||lc(Is,Ns)}function vc(e,t){var n=js;js|=2;var r=mc();for(Is===e&&Ns===t||(Ws=null,fc(e,t));;)try{hc();break}catch(o){pc(e,o)}if(Oi(),js=n,Es.current=r,null!==Ps)throw Error(i(261));return Is=null,Ns=0,Ts}function hc(){for(;null!==Ps;)yc(Ps)}function bc(){for(;null!==Ps&&!Ke();)yc(Ps)}function yc(e){var t=Ss(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?wc(e):Ps=t,ks.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ul(n,t,Ms)))return void(Ps=n)}else{if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Ps=n);if(null===e)return Ts=6,void(Ps=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===Ts&&(Ts=5)}function xc(e,t,n){var r=yt,o=Os.transition;try{Os.transition=null,yt=1,function(e,t,n,r){do{Cc()}while(null!==Gs);if(0!==(6&js))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Is&&(Ps=Is=null,Ns=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Us||(Us=!0,Ic(tt,function(){return Cc(),null})),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Os.transition,Os.transition=null;var l=yt;yt=1;var s=js;js|=4,ks.current=null,function(e,t){if(eo=Vt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==a||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=l),p===a&&++d===r&&(c=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Vt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var v=g.memoizedProps,h=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:nl(t.type,v),h);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){$c(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}g=ts,ts=!1}(e,n),vs(n,e),mr(to),Vt=!!eo,to=eo=null,e.current=n,bs(n,e,o),Ye(),js=s,yt=l,Os.transition=a}else e.current=n;if(Us&&(Us=!1,Gs=e,Ks=o),a=e.pendingLanes,0===a&&(qs=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Vs)throw Vs=!1,e=Xs,Xs=null,e;0!==(1&Ks)&&0!==e.tag&&Cc(),a=e.pendingLanes,0!==(1&a)?e===Qs?Ys++:(Ys=0,Qs=e):Ys=0,Wo()}(e,t,n,r)}finally{Os.transition=o,yt=r}return null}function Cc(){if(null!==Gs){var e=wt(Ks),t=Os.transition,n=yt;try{if(Os.transition=null,yt=16>e?16:e,null===Gs)var r=!1;else{if(e=Gs,Gs=null,Ks=0,0!==(6&js))throw Error(i(331));var o=js;for(js|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!==(16&Zl.flags)){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,m=d.return;if(is(d),d===u){Zl=null;break}if(null!==p){p.return=m,Zl=p;break}Zl=m}}}var g=a.alternate;if(null!==g){var v=g.child;if(null!==v){g.child=null;do{var h=v.sibling;v.sibling=null,v=h}while(null!==v)}}Zl=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!==(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(0!==(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(0!==(2048&(s=Zl).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(C){$c(s,s.return,C)}if(s===l){Zl=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Zl=x;break e}Zl=s.return}}if(js=o,Wo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{yt=n,Os.transition=t}}return!1}function Sc(e,t,n){e=Di(e,t=pl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(ht(e,1,t),rc(e,t))}function $c(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Di(t,e=ml(t,e=cl(n,e),1),1),e=ec(),null!==t&&(ht(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ns&n)===n&&(4===Ts||3===Ts&&(130023424&Ns)===Ns&&500>Qe()-Fs?fc(e,0):As|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=zi(e,t))&&(ht(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function jc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kc(e,n)}function Ic(e,t){return Ue(e,t)}function Pc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,n,r){return new Pc(e,t,n,r)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Nc(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,o,a){var l=2;if(r=e,"function"===typeof e)Mc(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return zc(n.children,o,a,t);case $:l=8,o|=8;break;case E:return(e=Nc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case I:return(e=Nc(13,n,t,o)).elementType=I,e.lanes=a,e;case P:return(e=Nc(19,n,t,o)).elementType=P,e.lanes=a,e;case R:return _c(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:l=10;break e;case O:l=9;break e;case j:l=11;break e;case N:l=14;break e;case M:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nc(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function zc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function _c(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function Ac(e,t,n){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,o,i,a,l,s){return e=new Bc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Fc(e){if(!e)return jo;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ro(n))return _o(e,n,t)}return t}function Hc(e,t,n,r,o,i,a,l,s){return(e=Dc(n,r,!0,e,0,i,0,l,s)).context=Fc(null),n=e.current,(i=Bi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Di(n,i,o),e.current.lanes=o,ht(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Fc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Di(o,t,a))&&(nc(e,o,a,i),Fi(e,o,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Xc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Xc(e,t),(e=e.alternate)&&Xc(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)yl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),mi();break;case 5:Zi(t);break;case 1:Ro(t.type)&&Lo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Si,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ll(e,t,n):(Oo(ea,1&ea.current),null!==(e=Vl(e,t,n))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,$l(e,t,n)}return Vl(e,t,n)}(e,t,n);yl=0!==(131072&e.flags)}else yl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Mo(t,Io.current);Pi(t,n),o=va(null,t,r,e,o,n);var a=ha();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=jl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Mc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===N)return 14}return 2}(r),e=nl(r,e),o){case 0:t=kl(null,t,r,e,n);break e;case 1:t=Ol(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Cl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,kl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Il(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ai(e,t),Wi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Pl(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Pl(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),r===o){t=Vl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),El(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ll(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Oo(Si,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Po.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ii(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ii(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pi(t,n),r=r(o=Ni(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Cl(e,t,r,o=nl(r.type,o),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Wl(e,t),t.tag=1,Ro(r)?(e=!0,Lo(t)):e=!1,Pi(t,n),al(t,r,o),sl(t,r,o,n),jl(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return $l(e,t,n)}throw Error(i(156,t.tag))};var Uc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Vc(a);l.call(e)}}Wc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Vc(a);i.call(e)}}var a=Hc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[go]=a.current,Hr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Vc(s);l.call(e)}}var s=Dc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[go]=s.current,Hr(8===e.nodeType?e.parentNode:e),uc(function(){Wc(t,s,n,r)}),s}(n,t,e,o,r);return Vc(a)}Kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wc(e,t,null,null)},Kc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){Wc(null,e,null,null)}),t[go]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=$t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Qe()),0===(6&js)&&(Hs=Qe()+500,Wo()))}break;case 13:uc(function(){var t=zi(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),qc(e,1)}},Ct=function(e){if(13===e.tag){var t=zi(e,134217728);if(null!==t)nc(t,e,134217728,ec());qc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),n=zi(e,t);if(null!==n)nc(n,e,t,ec());qc(e,t)}},$t=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ce=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));U(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=cc,Ie=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,Co,ke,Oe,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(i(299));var n=!1,r="",o=Uc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Dc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Xe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Uc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,o,0,a,l),e[go]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Kc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc(function(){Jc(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},853:(e,t,n)=>{"use strict";e.exports=n(234)},950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(730)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(43),t=n.t(e,2),r=n(391);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function l(e){return function(e){if(Array.isArray(e))return o(e)}(e)||i(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(){return s=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},s.apply(null,arguments)}const c={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 u(e){if(Array.isArray(e))return e}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){return u(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||a(e,t)||d()}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}function g(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h=n(139),b=n.n(h);const y=Math.round;function w(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const x=(e,t,n)=>0===n?e:e/100;function C(e,t){const n=t||255;return e>n?n:e<0?0:e}class S{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(g(this,"isValid",!0),g(this,"r",0),g(this,"g",0),g(this,"b",0),g(this,"a",1),g(this,"_h",void 0),g(this,"_s",void 0),g(this,"_l",void 0),g(this,"_v",void 0),g(this,"_max",void 0),g(this,"_min",void 0),g(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof S)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=C(e.r),this.g=C(e.g),this.b=C(e.b),this.a="number"===typeof e.a?C(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}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){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:y(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(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:y(o("r")),g:y(o("g")),b:y(o("b")),a:y(100*o("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>y((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="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=y(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=y(100*this.getSaturation()),n=y(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=C(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const 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(e){let{h:t,s:n,l:r,a:o}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"===typeof o?o:1,n<=0){const e=y(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,l=0;const s=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=u):s>=1&&s<2?(i=u,a=c):s>=2&&s<3?(a=c,l=u):s>=3&&s<4?(a=u,l=c):s>=4&&s<5?(i=u,l=c):s>=5&&s<6&&(i=c,l=u);const d=r-c/2;this.r=y(255*(i+d)),this.g=y(255*(a+d)),this.b=y(255*(l+d))}fromHsv(e){let{h:t,s:n,v:r,a:o}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"===typeof o?o:1;const i=y(255*r);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),s=a-l,c=y(r*(1-n)*255),u=y(r*(1-n*s)*255),d=y(r*(1-n*(1-s))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=w(e,x);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=w(e,x);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=w(e,(e,t)=>t.includes("%")?y(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var $=[{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 E(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function k(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function O(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function j(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new S(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new S({h:E(o,i,!0),s:k(o,i,!0),v:O(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=4;l+=1){var s=new S({h:E(o,l),s:k(o,l),v:O(o,l)});n.push(s)}return"dark"===t.theme?$.map(function(e){var r=e.index,o=e.amount;return new S(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var I={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"},P=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];P.primary=P[5];var N=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];N.primary=N[5];var M=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];M.primary=M[5];var R=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];R.primary=R[5];var T=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];T.primary=T[5];var z=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];z.primary=z[5];var _=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_.primary=_[5];var L=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];L.primary=L[5];var A=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];A.primary=A[5];var B=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];B.primary=B[5];var D=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];D.primary=D[5];var F=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];F.primary=F[5];var H=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];H.primary=H[5];var W={red:P,volcano:N,orange:M,gold:R,yellow:T,lime:z,green:_,cyan:L,blue:A,geekblue:B,purple:D,magenta:F,grey:H},V=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];V.primary=V[5];var X=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];X.primary=X[5];var q=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];q.primary=q[5];var U=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];U.primary=U[5];var G=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];G.primary=G[5];var K=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];K.primary=K[5];var Y=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Y.primary=Y[5];var Q=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Q.primary=Q[5];var Z=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Z.primary=Z[5];var J=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];J.primary=J[5];var ee=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];ee.primary=ee[5];var te=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];te.primary=te[5];var ne=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ne.primary=ne[5];const re=(0,e.createContext)({});function oe(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 ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ae(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function le(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var se="data-rc-order",ce="data-rc-priority",ue=new Map;function de(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function fe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function pe(e){return Array.from((ue.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ae())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(se,a),l&&i&&s.setAttribute(ce,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(s.nonce=null===n||void 0===n?void 0:n.nonce),s.innerHTML=e;var c=fe(t),u=c.firstChild;if(r){if(l){var d=(t.styles||pe(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(se)))return!1;var t=Number(e.getAttribute(ce)||0);return i>=t});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=fe(t);return(t.styles||pe(n)).find(function(n){return n.getAttribute(de(t))===e})}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ge(e,t);n&&fe(t).removeChild(n)}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=fe(n),o=pe(r),i=ie(ie({},n),{},{styles:o});!function(e,t){var n=ue.get(e);if(!n||!le(document,n)){var r=me("",t),o=r.parentNode;ue.set(e,o),e.removeChild(r)}}(r,i);var a=ge(t,i);if(a){var l,s,c;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=me(e,i);return u.setAttribute(de(i),t),u}function be(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ye(e){return function(e){return be(e)instanceof ShadowRoot}(e)?be(e):null}var we={},xe=[];function Ce(e,t){}function Se(e,t){}function $e(e,t,n){t||we[n]||(e(!1,n),we[n]=!0)}function Ee(e,t){$e(Ce,e,t)}Ee.preMessage=function(e){xe.push(e)},Ee.resetWarned=function(){we={}},Ee.noteOnce=function(e,t){$e(Se,e,t)};const ke=Ee;function Oe(e){return"object"===p(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===p(e.icon)||"function"===typeof e.icon)}function je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}(n)]=r;return t},{})}function Ie(t,n,r){return r?e.createElement(t.tag,ie(ie({key:n},je(t.attrs)),r),(t.children||[]).map(function(e,r){return Ie(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})):e.createElement(t.tag,ie({key:n},je(t.attrs)),(t.children||[]).map(function(e,r){return Ie(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))}function Pe(e){return j(e)[0]}function Ne(e){return e?Array.isArray(e)?e:[e]:[]}var Me=["icon","className","onClick","style","primaryColor","secondaryColor"],Re={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Te=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=v(t,Me),c=e.useRef(),u=Re;if(a&&(u={primaryColor:a,secondaryColor:l||Pe(a)}),function(t){var n=(0,e.useContext)(re),r=n.csp,o=n.prefixCls,i=n.layer,a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i," {\n").concat(a,"\n}")),(0,e.useEffect)(function(){var e=ye(t.current);he(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:e})},[])}(c),function(e,t){ke(e,"[@ant-design/icons] ".concat(t))}(Oe(n),"icon should be icon definiton, but got ".concat(n)),!Oe(n))return null;var d=n;return d&&"function"===typeof d.icon&&(d=ie(ie({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Ie(d.icon,"svg-".concat(d.name),ie(ie({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Te.displayName="IconReact",Te.getTwoToneColors=function(){return ie({},Re)},Te.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Re.primaryColor=t,Re.secondaryColor=n||Pe(t),Re.calculated=!!n};const ze=Te;function _e(e){var t=f(Ne(e),2),n=t[0],r=t[1];return ze.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Le=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];_e(A.primary);var Ae=e.forwardRef(function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,c=t.onClick,u=t.twoToneColor,d=v(t,Le),p=e.useContext(re),m=p.prefixCls,h=void 0===m?"anticon":m,y=p.rootClassName,w=b()(y,h,g(g({},"".concat(h,"-").concat(o.name),!!o.name),"".concat(h,"-spin"),!!i||"loading"===o.name),r),x=l;void 0===x&&c&&(x=-1);var C=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=f(Ne(u),2),$=S[0],E=S[1];return e.createElement("span",s({role:"img","aria-label":o.name},d,{ref:n,tabIndex:x,onClick:c,className:w}),e.createElement(ze,{icon:o,primaryColor:$,secondaryColor:E,style:C}))});Ae.displayName="AntdIcon",Ae.getTwoToneColor=function(){var e=ze.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ae.setTwoToneColor=_e;const Be=Ae;var De=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:c}))};const Fe=e.forwardRef(De);var He=Symbol.for("react.element"),We=Symbol.for("react.transitional.element"),Ve=Symbol.for("react.fragment");function Xe(e){return e&&"object"===p(e)&&(e.$$typeof===He||e.$$typeof===We)&&e.type===Ve}function qe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,function(e){(void 0!==e&&null!==e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(qe(e)):Xe(e)&&e.props?r=r.concat(qe(e.props.children,n)):r.push(e))}),r}var Ue=n(950),Ge=n.t(Ue,2);function Ke(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ye(e){return e&&"object"===p(e)&&Ke(e.nativeElement)?e.nativeElement:Ke(e)?e:null}function Qe(t){var n,r=Ye(t);return r||(t instanceof e.Component?null===(n=Ue.findDOMNode)||void 0===n?void 0:n.call(Ue,t):null)}var Ze=n(86);function Je(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}var et=Number(e.version.split(".")[0]),tt=function(e,t){"function"===typeof e?e(t):"object"===p(e)&&e&&"current"in e&&(e.current=t)},nt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){tt(t,e)})}},rt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Je(function(){return nt.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},ot=function(e){var t,n;if(!e)return!1;if(it(e)&&et>=19)return!0;var r=(0,Ze.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===Ze.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===Ze.ForwardRef)};function it(t){return(0,e.isValidElement)(t)&&!Xe(t)}var at=function(e){if(e&&it(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},lt=e.createContext(null);var st=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ct="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,ut="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),dt="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(ut):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var ft=["top","right","bottom","left","width","height","size","weight"],pt="undefined"!==typeof MutationObserver,mt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){dt(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){ct&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ct&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ft.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),gt=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},vt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ut},ht=St(0,0,0,0);function bt(e){return parseFloat(e)||0}function yt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+bt(e["border-"+n+"-width"])},0)}function wt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ht;var r=vt(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=bt(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=bt(r.width),s=bt(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=yt(r,"left","right")+i),Math.round(s+a)!==n&&(s-=yt(r,"top","bottom")+a)),!function(e){return e===vt(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return St(o.left,o.top,l,s)}var xt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof vt(e).SVGGraphicsElement}:function(e){return e instanceof vt(e).SVGElement&&"function"===typeof e.getBBox};function Ct(e){return ct?xt(e)?function(e){var t=e.getBBox();return St(0,0,t.width,t.height)}(e):wt(e):ht}function St(e,t,n,r){return{x:e,y:t,width:n,height:r}}var $t=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=St(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ct(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Et=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return gt(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);gt(this,{target:e,contentRect:n})},kt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new st,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof vt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new $t(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof vt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Et(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ot="undefined"!==typeof WeakMap?new WeakMap:new st,jt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=mt.getInstance(),r=new kt(t,n,this);Ot.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){jt.prototype[e]=function(){var t;return(t=Ot.get(this))[e].apply(t,arguments)}});const It="undefined"!==typeof ut.ResizeObserver?ut.ResizeObserver:jt;var Pt=new Map;var Nt=new It(function(e){e.forEach(function(e){var t,n=e.target;null===(t=Pt.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rt(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,m(r.key),r)}}function Tt(e,t,n){return t&&Rt(e.prototype,t),n&&Rt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zt(e,t){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zt(e,t)}function _t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zt(e,t)}function Lt(e){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(e)}function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(At=function(){return!!e})()}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dt(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bt(e)}function Ft(e){var t=At();return function(){var n,r=Lt(e);if(t){var o=Lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dt(this,n)}}var Ht=function(e){_t(n,e);var t=Ft(n);function n(){return Mt(this,n),t.apply(this,arguments)}return Tt(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);function Wt(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),l=e.useContext(lt),s="function"===typeof r,c=s?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&e.isValidElement(c)&&ot(c),f=d?at(c):null,m=rt(f,i),g=function(){var e;return Qe(i.current)||(i.current&&"object"===p(i.current)?Qe(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Qe(a.current)};e.useImperativeHandle(n,function(){return g()});var v=e.useRef(t);v.current=t;var h=e.useCallback(function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:s,offsetHeight:c};u.current=p;var m=s===Math.round(i)?i:s,g=c===Math.round(a)?a:c,h=ie(ie({},p),{},{offsetWidth:m,offsetHeight:g});null===l||void 0===l||l(h,e,r),n&&Promise.resolve().then(function(){n(h,e)})}},[]);return e.useEffect(function(){var e,t,n=g();return n&&!o&&(e=n,t=h,Pt.has(e)||(Pt.set(e,new Set),Nt.observe(e)),Pt.get(e).add(t)),function(){return function(e,t){Pt.has(e)&&(Pt.get(e).delete(t),Pt.get(e).size||(Nt.unobserve(e),Pt.delete(e)))}(n,h)}},[i.current,o]),e.createElement(Ht,{ref:a},d?e.cloneElement(c,{ref:m}):c)}const Vt=e.forwardRef(Wt);function Xt(t,n){var r=t.children;return("function"===typeof r?[r]:qe(r)).map(function(r,o){var i=(null===r||void 0===r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(Vt,s({},t,{key:i,ref:0===o?n:void 0}),r)})}var qt=e.forwardRef(Xt);qt.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(lt),l=e.useCallback(function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then(function(){l===o.current&&(null===r||void 0===r||r(i.current),i.current=[])}),null===a||void 0===a||a(e,t,n)},[r,a]);return e.createElement(lt.Provider,{value:l},n)};const Ut=qt;var Gt=ae()?e.useLayoutEffect:e.useEffect,Kt=function(t,n){var r=e.useRef(!0);Gt(function(){return t(r.current)},n),Gt(function(){return r.current=!1,function(){r.current=!0}},[])},Yt=function(e,t){Kt(function(t){if(!t)return e()},t)};const Qt=Kt;function Zt(t){var n=e.useRef();n.current=t;var r=e.useCallback(function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))},[]);return r}function Jt(t){var n=e.useRef(!1),r=f(e.useState(t),2),o=r[0],i=r[1];return e.useEffect(function(){return n.current=!1,function(){n.current=!0}},[]),[o,function(e,t){t&&n.current||i(e)}]}function en(e){return void 0!==e}function tn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=f(Jt(function(){return en(o)?o:en(r)?"function"===typeof r?r():r:"function"===typeof e?e():e}),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,p=Zt(i),m=f(Jt([u]),2),g=m[0],v=m[1];return Yt(function(){var e=g[0];s!==e&&p(s,e)},[g]),Yt(function(){en(o)||c(o)},[o]),[d,Zt(function(e,t){c(e,t),v([u],t)})]}function nn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}var rn=function(e){if(ae()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function on(e,t){return Array.isArray(e)||void 0===t?rn(e):function(e,t){if(!rn(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const an="ant",ln="anticon",sn=["outlined","borderless","filled","underlined"],cn=e.createContext({getPrefixCls:(e,t)=>t||(e?`${an}-${e}`:an),iconPrefixCls:ln}),{Consumer:un}=cn,dn={};function fn(t){const n=e.useContext(cn),{getPrefixCls:r,direction:o,getPopupContainer:i}=n,a=n[t];return Object.assign(Object.assign({classNames:dn,styles:dn},a),{getPrefixCls:r,direction:o,getPopupContainer:i})}const pn=(0,e.createContext)(void 0);const mn={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"};const gn=ie(ie({},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),vn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},hn={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},gn),timePickerLocale:Object.assign({},vn)},bn="${label} is not a valid ${type}",yn={locale:"en",Pagination:mn,DatePicker:hn,TimePicker:vn,Calendar:hn,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:bn,method:bn,array:bn,object:bn,number:bn,date:bn,boolean:bn,integer:bn,float:bn,regexp:bn,email:bn,url:bn,hex:bn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},wn=(t,n)=>{const r=e.useContext(pn),o=e.useMemo(()=>{var e;const o=n||yn[t],i=null!==(e=null===r||void 0===r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),i||{})},[t,n,r]);return[o,e.useMemo(()=>{const e=null===r||void 0===r?void 0:r.locale;return(null===r||void 0===r?void 0:r.exist)&&!e?yn.locale:e},[r])]};function xn(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,l=t.className,s=t.style;return e.createElement("div",{className:b()("".concat(r,"-content"),l),style:s},e.createElement("div",{className:b()("".concat(r,"-inner"),a),id:o,role:"tooltip",style:i},"function"===typeof n?n():n))}const Cn=e.createContext(null);var Sn=[];function $n(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";he("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(Ym){console.error(Ym),r=s,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ve(t),{width:f,height:p}}var En="rc-util-locker-".concat(Date.now()),kn=0;function On(t){var n=!!t,r=f(e.useState(function(){return kn+=1,"".concat(En,"_").concat(kn)}),1)[0];Qt(function(){if(n){var e=(o=document.body,"undefined"!==typeof document&&o&&o instanceof Element?$n(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;he("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else ve(r);var o;return function(){ve(r)}},[n,r])}var jn=!1;var In=function(e){return!1!==e&&(ae()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},Pn=e.forwardRef(function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=(t.debug,t.autoDestroy),s=void 0===a||a,c=t.children,u=f(e.useState(r),2),d=u[0],p=u[1],m=d||r;e.useEffect(function(){(s||r)&&p(r)},[r,s]);var g=f(e.useState(function(){return In(i)}),2),v=g[0],h=g[1];e.useEffect(function(){var e=In(i);h(null!==e&&void 0!==e?e:null)});var b=function(t){var n=f(e.useState(function(){return ae()?document.createElement("div"):null}),1)[0],r=e.useRef(!1),o=e.useContext(Cn),i=f(e.useState(Sn),2),a=i[0],s=i[1],c=o||(r.current?void 0:function(e){s(function(t){return[e].concat(l(t))})});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Qt(function(){return t?o?o(u):u():d(),d},[t]),Qt(function(){a.length&&(a.forEach(function(e){return e()}),s(Sn))},[a]),[n,c]}(m&&!v),y=f(b,2),w=y[0],x=y[1],C=null!==v&&void 0!==v?v:w;On(o&&r&&ae()&&(C===w||C===document.body));var S=null;c&&ot(c)&&n&&(S=c.ref);var $=rt(S,n);if(!m||!ae()||void 0===v)return null;var E,k=!1===C||("boolean"===typeof E&&(jn=E),jn),O=c;return n&&(O=e.cloneElement(c,{ref:$})),e.createElement(Cn.Provider,{value:x},k?O:(0,Ue.createPortal)(O,C))});const Nn=Pn;var Mn=0;var Rn=ie({},t).useId;const Tn=Rn?function(e){var t=Rn();return e||t}:function(t){var n=f(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect(function(){var e=Mn;Mn+=1,o("rc_unique_".concat(e))},[]),t||r},zn=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};var _n=["children"],Ln=e.createContext({});function An(t){var n=t.children,r=v(t,_n);return e.createElement(Ln.Provider,{value:r},n)}var Bn=function(e){_t(n,e);var t=Ft(n);function n(){return Mt(this,n),t.apply(this,arguments)}return Tt(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);const Dn=Bn;function Fn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function Hn(e,t,n,r){if(!t.length)return n;var o,s,c=u(o=t)||i(o)||a(o)||d(),f=c[0],p=c.slice(1);return s=e||"number"!==typeof f?Array.isArray(e)?l(e):ie({},e):[],r&&void 0===n&&1===p.length?delete s[f][p[0]]:s[f]=Hn(s[f],p,n,r),s}function Wn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Fn(e,t.slice(0,-1))?e:Hn(e,t,n,r)}function Vn(e){return Array.isArray(e)?[]:{}}var Xn="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function qn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Vn(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),s=Fn(e,n),c=Array.isArray(s);if(c||"object"===p(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var u=Fn(r,n);c?r=Wn(r,n,[]):u&&"object"===p(u)||(r=Wn(r,n,Vn(s))),Xn(s).forEach(function(e){t([].concat(l(n),[e]),a)})}}else r=Wn(r,n,s)}([])}),r}var Un="none",Gn="appear",Kn="enter",Yn="leave",Qn="none",Zn="prepare",Jn="start",er="active",tr="end",nr="prepared";function rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var or=function(e,t){var n={animationend:rr("Animation","AnimationEnd"),transitionend:rr("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(ae(),"undefined"!==typeof window?window:{}),ir={};if(ae()){var ar=document.createElement("div");ir=ar.style}var lr={};function sr(e){if(lr[e])return lr[e];var t=or[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ir)return lr[e]=t[i],lr[e]}return""}var cr=sr("animationend"),ur=sr("transitionend"),dr=!(!cr||!ur),fr=cr||"animationend",pr=ur||"transitionend";function mr(e,t){if(!e)return null;if("object"===p(e)){var n=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const gr=ae()?e.useLayoutEffect:e.useEffect;var vr=function(e){return+setTimeout(e,16)},hr=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(vr=function(e){return window.requestAnimationFrame(e)},hr=function(e){return window.cancelAnimationFrame(e)});var br=0,yr=new Map;function wr(e){yr.delete(e)}var xr=function(e){var t=br+=1;return function n(r){if(0===r)wr(t),e();else{var o=vr(function(){n(r-1)});yr.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};xr.cancel=function(e){var t=yr.get(e);return wr(e),hr(t)};const Cr=xr;var Sr=[Zn,Jn,er,tr],$r=[Zn,nr],Er=!1;function kr(e){return e===er||e===tr}const Or=function(t,n,r){var o=f(Jt(Qn),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){Cr.cancel(t.current)}return e.useEffect(function(){return function(){n()}},[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Cr(function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)});t.current=i},n]}(),s=f(l,2),c=s[0],u=s[1];var d=n?$r:Sr;return gr(function(){if(i!==Qn&&i!==tr){var e=d.indexOf(i),t=d[e+1],n=r(i);n===Er?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[t,i]),e.useEffect(function(){return function(){u()}},[]),[function(){a(Zn,!0)},i]};function jr(t,n,r,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,s=void 0===l||l,c=o.motionLeave,u=void 0===c||c,d=o.motionDeadline,p=o.motionLeaveImmediately,m=o.onAppearPrepare,v=o.onEnterPrepare,h=o.onLeavePrepare,b=o.onAppearStart,y=o.onEnterStart,w=o.onLeaveStart,x=o.onAppearActive,C=o.onEnterActive,S=o.onLeaveActive,$=o.onAppearEnd,E=o.onEnterEnd,k=o.onLeaveEnd,O=o.onVisibleChanged,j=f(Jt(),2),I=j[0],P=j[1],N=function(t){var n=f(e.useReducer(function(e){return e+1},0),2)[1],r=e.useRef(t);return[Zt(function(){return r.current}),Zt(function(e){r.current="function"===typeof e?e(r.current):e,n()})]}(Un),M=f(N,2),R=M[0],T=M[1],z=f(Jt(null),2),_=z[0],L=z[1],A=R(),B=(0,e.useRef)(!1),D=(0,e.useRef)(null);function F(){return r()}var H=(0,e.useRef)(!1);function W(){T(Un),L(null,!0)}var V=Zt(function(e){var t=R();if(t!==Un){var n=F();if(!e||e.deadline||e.target===n){var r,o=H.current;t===Gn&&o?r=null===$||void 0===$?void 0:$(n,e):t===Kn&&o?r=null===E||void 0===E?void 0:E(n,e):t===Yn&&o&&(r=null===k||void 0===k?void 0:k(n,e)),o&&!1!==r&&W()}}}),X=function(t){var n=(0,e.useRef)();function r(e){e&&(e.removeEventListener(pr,t),e.removeEventListener(fr,t))}return e.useEffect(function(){return function(){r(n.current)}},[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(pr,t),e.addEventListener(fr,t),n.current=e)},r]}(V),q=f(X,1)[0],U=function(e){switch(e){case Gn:return g(g(g({},Zn,m),Jn,b),er,x);case Kn:return g(g(g({},Zn,v),Jn,y),er,C);case Yn:return g(g(g({},Zn,h),Jn,w),er,S);default:return{}}},G=e.useMemo(function(){return U(A)},[A]),K=f(Or(A,!t,function(e){if(e===Zn){var t=G[Zn];return t?t(F()):Er}var n;Q in G&&L((null===(n=G[Q])||void 0===n?void 0:n.call(G,F(),null))||null);return Q===er&&A!==Un&&(q(F()),d>0&&(clearTimeout(D.current),D.current=setTimeout(function(){V({deadline:!0})},d))),Q===nr&&W(),true}),2),Y=K[0],Q=K[1],Z=kr(Q);H.current=Z;var J=(0,e.useRef)(null);gr(function(){if(!B.current||J.current!==n){P(n);var e,r=B.current;B.current=!0,!r&&n&&s&&(e=Gn),r&&n&&a&&(e=Kn),(r&&!n&&u||!r&&p&&!n&&u)&&(e=Yn);var o=U(e);e&&(t||o[Zn])?(T(e),Y()):T(Un),J.current=n}},[n]),(0,e.useEffect)(function(){(A===Gn&&!s||A===Kn&&!a||A===Yn&&!u)&&T(Un)},[s,a,u]),(0,e.useEffect)(function(){return function(){B.current=!1,clearTimeout(D.current)}},[]);var ee=e.useRef(!1);(0,e.useEffect)(function(){I&&(ee.current=!0),void 0!==I&&A===Un&&((ee.current||I)&&(null===O||void 0===O||O(I)),ee.current=!0)},[I,A]);var te=_;return G[Zn]&&Q===Jn&&(te=ie({transition:"none"},te)),[A,Q,te,null!==I&&void 0!==I?I:n]}const Ir=function(t){var n=t;"object"===p(t)&&(n=t.transitionSupport);var r=e.forwardRef(function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,l=void 0===a||a,s=t.forceRender,c=t.children,u=t.motionName,d=t.leavedClassName,p=t.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Ln).motion),v=(0,e.useRef)(),h=(0,e.useRef)();var y=f(jr(m,i,function(){try{return v.current instanceof HTMLElement?v.current:Qe(h.current)}catch(Ym){return null}},t),4),w=y[0],x=y[1],C=y[2],S=y[3],$=e.useRef(S);S&&($.current=!0);var E,k=e.useCallback(function(e){v.current=e,tt(r,e)},[r]),O=ie(ie({},p),{},{visible:i});if(c)if(w===Un)E=S?c(ie({},O),k):!l&&$.current&&d?c(ie(ie({},O),{},{className:d}),k):s||!l&&!d?c(ie(ie({},O),{},{style:{display:"none"}}),k):null;else{var j;x===Zn?j="prepare":kr(x)?j="active":x===Jn&&(j="start");var I=mr(u,"".concat(w,"-").concat(j));E=c(ie(ie({},O),{},{className:b()(mr(u,w),g(g({},I,I&&j),u,"string"===typeof u)),style:C}),k)}else E=null;e.isValidElement(E)&&ot(E)&&(at(E)||(E=e.cloneElement(E,{ref:k})));return e.createElement(Dn,{ref:h},E)});return r.displayName="CSSMotion",r}(dr);var Pr="add",Nr="keep",Mr="remove",Rr="removed";function Tr(e){var t;return ie(ie({},t=e&&"object"===p(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function zr(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Tr)}var _r=["component","children","onVisibleChanged","onAllRemoved"],Lr=["status"],Ar=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Br=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ir,n=function(n){_t(o,n);var r=Ft(o);function o(){var e;Mt(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return g(Bt(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),g(Bt(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:ie(ie({},e),{},{status:Rr})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==Rr}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Tt(o,[{key:"render",value:function(){var n=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=(o.onAllRemoved,v(o,_r)),u=i||e.Fragment,d={};return Ar.forEach(function(e){d[e]=c[e],delete c[e]}),delete c.keys,e.createElement(u,c,r.map(function(r,o){var i=r.status,c=v(r,Lr),u=i===Pr||i===Nr;return e.createElement(t,s({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){null===l||void 0===l||l(e,{key:c.key}),e||n.removeKey(c.key)}}),function(e,t){return a(ie(ie({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=zr(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=zr(e),a=zr(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return ie(ie({},e),{},{status:Pr})})),r=i),n.push(ie(ie({},l),{},{status:Nr})),r+=1,t=!0;break}}t||n.push(ie(ie({},e),{},{status:Mr}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return ie(ie({},e),{},{status:Pr})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==Mr})).forEach(function(t){t.key===e&&(t.status=Nr)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==Rr||e.status!==Mr})}}}]),o}(e.Component);return g(n,"defaultProps",{component:"div"}),n}(dr),Dr=Ir;function Fr(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,s=a.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],v=r.points[1],h=g[0],y=g[1],w=v[0],x=v[1];h!==w&&["t","b"].includes(h)?"t"===h?m.top=0:m.bottom=0:m.top=f,y!==x&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:b()("".concat(n,"-arrow"),l),style:m},s)}function Hr(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Dr,s({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:b()("".concat(n,"-mask"),r)})}):null}var Wr=e.memo(function(e){return e.children},function(e,t){return t.cache});const Vr=Wr;var Xr=e.forwardRef(function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,c=t.onVisibleChanged,u=t.open,d=t.keepDom,p=t.fresh,m=t.onClick,g=t.mask,v=t.arrow,h=t.arrowPos,y=t.align,w=t.motion,x=t.maskMotion,C=t.forceRender,S=t.getPopupContainer,$=t.autoDestroy,E=t.portal,k=t.zIndex,O=t.onMouseEnter,j=t.onMouseLeave,I=t.onPointerEnter,P=t.onPointerDownCapture,N=t.ready,M=t.offsetX,R=t.offsetY,T=t.offsetR,z=t.offsetB,_=t.onAlign,L=t.onPrepare,A=t.stretch,B=t.targetWidth,D=t.targetHeight,F="function"===typeof r?r():r,H=u||d,W=(null===S||void 0===S?void 0:S.length)>0,V=f(e.useState(!S||!W),2),X=V[0],q=V[1];if(Qt(function(){!X&&W&&l&&q(!0)},[X,W,l]),!X)return null;var U="auto",G={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(N||!u){var K,Y=y.points,Q=y.dynamicInset||(null===(K=y._experimental)||void 0===K?void 0:K.dynamicInset),Z=Q&&"r"===Y[0][1],J=Q&&"b"===Y[0][0];Z?(G.right=T,G.left=U):(G.left=M,G.right=U),J?(G.bottom=z,G.top=U):(G.top=R,G.bottom=U)}var ee={};return A&&(A.includes("height")&&D?ee.height=D:A.includes("minHeight")&&D&&(ee.minHeight=D),A.includes("width")&&B?ee.width=B:A.includes("minWidth")&&B&&(ee.minWidth=B)),u||(ee.pointerEvents="none"),e.createElement(E,{open:C||H,getContainer:S&&function(){return S(l)},autoDestroy:$},e.createElement(Hr,{prefixCls:i,open:u,zIndex:k,mask:g,motion:x}),e.createElement(Ut,{onResize:_,disabled:!u},function(t){return e.createElement(Dr,s({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},w,{onAppearPrepare:L,onEnterPrepare:L,visible:u,onVisibleChanged:function(e){var t;null===w||void 0===w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),c(e)}}),function(r,l){var s=r.className,c=r.style,d=b()(i,s,o);return e.createElement("div",{ref:nt(t,n,l),className:d,style:ie(ie(ie(ie({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),ee),c),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:O,onMouseLeave:j,onPointerEnter:I,onClick:m,onPointerDownCapture:P},v&&e.createElement(Fr,{prefixCls:i,arrow:v,arrowPos:h,align:y}),e.createElement(Vr,{cache:!u&&!p},F))})}))});const qr=Xr;var Ur=e.forwardRef(function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=ot(r),a=e.useCallback(function(e){tt(n,o?o(e):e)},[o]),l=rt(a,at(r));return i?e.cloneElement(r,{ref:l}):r});const Gr=Ur;const Kr=e.createContext(null);function Yr(e){return e?Array.isArray(e)?e:[e]:[]}const Qr=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Zr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Jr(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function eo(e){return e.ownerDocument.defaultView}function to(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=eo(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function no(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ro(e){return no(parseFloat(e),0)}function oo(e,t){var n=ie({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=eo(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ro(i),g=ro(a),v=ro(l),h=ro(s),b=no(Math.round(c.width/f*1e3)/1e3),y=no(Math.round(c.height/u*1e3)/1e3),w=(f-p-v-h)*b,x=(u-d-m-g)*y,C=m*y,S=g*y,$=v*b,E=h*b,k=0,O=0;if("clip"===r){var j=ro(o);k=j*b,O=j*y}var I=c.x+$-k,P=c.y+C-O,N=I+c.width+2*k-$-E-w,M=P+c.height+2*O-C-S-x;n.left=Math.max(n.left,I),n.top=Math.max(n.top,P),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,M)}}),n}function io(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ao(e,t){var n=f(t||[],2),r=n[0],o=n[1];return[io(e.width,r),io(e.height,o)]}function lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function so(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function co(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var uo=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const fo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nn,n=e.forwardRef(function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,s=n.action,c=void 0===s?"hover":s,u=n.showAction,d=n.hideAction,p=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,y=n.mouseEnterDelay,w=n.mouseLeaveDelay,x=void 0===w?.1:w,C=n.focusDelay,S=n.blurDelay,$=n.mask,E=n.maskClosable,k=void 0===E||E,O=n.getPopupContainer,j=n.forceRender,I=n.autoDestroy,P=n.destroyPopupOnHide,N=n.popup,M=n.popupClassName,R=n.popupStyle,T=n.popupPlacement,z=n.builtinPlacements,_=void 0===z?{}:z,L=n.popupAlign,A=n.zIndex,B=n.stretch,D=n.getPopupClassNameFromAlign,F=n.fresh,H=n.alignPoint,W=n.onPopupClick,V=n.onPopupAlign,X=n.arrow,q=n.popupMotion,U=n.maskMotion,G=n.popupTransitionName,K=n.popupAnimation,Y=n.maskTransitionName,Q=n.maskAnimation,Z=n.className,J=n.getTriggerDOMNode,ee=v(n,uo),te=I||P||!1,ne=f(e.useState(!1),2),re=ne[0],oe=ne[1];Qt(function(){oe(zn())},[]);var ae=e.useRef({}),le=e.useContext(Kr),se=e.useMemo(function(){return{registerSubPopup:function(e,t){ae.current[e]=t,null===le||void 0===le||le.registerSubPopup(e,t)}}},[le]),ce=Tn(),ue=f(e.useState(null),2),de=ue[0],fe=ue[1],pe=e.useRef(null),me=Zt(function(e){pe.current=e,Ke(e)&&de!==e&&fe(e),null===le||void 0===le||le.registerSubPopup(ce,e)}),ge=f(e.useState(null),2),ve=ge[0],he=ge[1],be=e.useRef(null),we=Zt(function(e){Ke(e)&&ve!==e&&(he(e),be.current=e)}),xe=e.Children.only(a),Ce=(null===xe||void 0===xe?void 0:xe.props)||{},Se={},$e=Zt(function(e){var t,n,r=ve;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=ye(r))||void 0===t?void 0:t.host)===e||e===r||(null===de||void 0===de?void 0:de.contains(e))||(null===(n=ye(de))||void 0===n?void 0:n.host)===e||e===de||Object.values(ae.current).some(function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t})}),Ee=Jr(i,q,K,G),ke=Jr(i,U,Q,Y),Oe=f(e.useState(m||!1),2),je=Oe[0],Ie=Oe[1],Pe=null!==p&&void 0!==p?p:je,Ne=Zt(function(e){void 0===p&&Ie(e)});Qt(function(){Ie(p||!1)},[p]);var Me=e.useRef(Pe);Me.current=Pe;var Re=e.useRef([]);Re.current=[];var Te=Zt(function(e){var t;Ne(e),(null!==(t=Re.current[Re.current.length-1])&&void 0!==t?t:Pe)!==e&&(Re.current.push(e),null===g||void 0===g||g(e))}),ze=e.useRef(),_e=function(){clearTimeout(ze.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_e(),0===t?Te(e):ze.current=setTimeout(function(){Te(e)},1e3*t)};e.useEffect(function(){return _e},[]);var Ae=f(e.useState(!1),2),Be=Ae[0],De=Ae[1];Qt(function(e){e&&!Pe||De(!0)},[Pe]);var Fe=f(e.useState(null),2),He=Fe[0],We=Fe[1],Ve=f(e.useState(null),2),Xe=Ve[0],qe=Ve[1],Ue=function(e){qe([e.clientX,e.clientY])},Ge=function(t,n,r,o,i,a,l){var s=f(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=s[0],u=s[1],d=e.useRef(0),p=e.useMemo(function(){return n?to(n):[]},[n]),m=e.useRef({});t||(m.current={});var g=Zt(function(){if(n&&r&&t){var e,s,c,d,g,v=n,h=v.ownerDocument,b=eo(v),y=b.getComputedStyle(v).position,w=v.style.left,x=v.style.top,C=v.style.right,S=v.style.bottom,$=v.style.overflow,E=ie(ie({},i[o]),a),k=h.createElement("div");if(null===(e=v.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(v.offsetLeft,"px"),k.style.top="".concat(v.offsetTop,"px"),k.style.position=y,k.style.height="".concat(v.offsetHeight,"px"),k.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(r))g={x:r[0],y:r[1],width:0,height:0};else{var O,j,I=r.getBoundingClientRect();I.x=null!==(O=I.x)&&void 0!==O?O:I.left,I.y=null!==(j=I.y)&&void 0!==j?j:I.top,g={x:I.x,y:I.y,width:I.width,height:I.height}}var P=v.getBoundingClientRect(),N=b.getComputedStyle(v),M=N.height,R=N.width;P.x=null!==(s=P.x)&&void 0!==s?s:P.left,P.y=null!==(c=P.y)&&void 0!==c?c:P.top;var T=h.documentElement,z=T.clientWidth,_=T.clientHeight,L=T.scrollWidth,A=T.scrollHeight,B=T.scrollTop,D=T.scrollLeft,F=P.height,H=P.width,W=g.height,V=g.width,X={left:0,top:0,right:z,bottom:_},q={left:-D,top:-B,right:L-D,bottom:A-B},U=E.htmlRegion,G="visible",K="visibleFirst";"scroll"!==U&&U!==K&&(U=G);var Y=U===K,Q=oo(q,p),Z=oo(X,p),J=U===G?Z:Q,ee=Y?Z:J;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var te=v.getBoundingClientRect();v.style.left=w,v.style.top=x,v.style.right=C,v.style.bottom=S,v.style.overflow=$,null===(d=v.parentElement)||void 0===d||d.removeChild(k);var ne=no(Math.round(H/parseFloat(R)*1e3)/1e3),re=no(Math.round(F/parseFloat(M)*1e3)/1e3);if(0===ne||0===re||Ke(r)&&!Qr(r))return;var oe=E.offset,ae=E.targetOffset,le=f(ao(P,oe),2),se=le[0],ce=le[1],ue=f(ao(g,ae),2),de=ue[0],fe=ue[1];g.x-=de,g.y-=fe;var pe=f(E.points||[],2),me=pe[0],ge=lo(pe[1]),ve=lo(me),he=so(g,ge),be=so(P,ve),ye=ie({},E),we=he.x-be.x+se,xe=he.y-be.y+ce;function gt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=P.x+e,o=P.y+t,i=r+H,a=o+F,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}var Ce,Se,$e,Ee,ke=gt(we,xe),Oe=gt(we,xe,Z),je=so(g,["t","l"]),Ie=so(P,["t","l"]),Pe=so(g,["b","r"]),Ne=so(P,["b","r"]),Me=E.overflow||{},Re=Me.adjustX,Te=Me.adjustY,ze=Me.shiftX,_e=Me.shiftY,Le=function(e){return"boolean"===typeof e?e:e>=0};function vt(){Ce=P.y+xe,Se=Ce+F,$e=P.x+we,Ee=$e+H}vt();var Ae=Le(Te),Be=ve[0]===ge[0];if(Ae&&"t"===ve[0]&&(Se>ee.bottom||m.current.bt)){var De=xe;Be?De-=F-W:De=je.y-Ne.y-ce;var Fe=gt(we,De),He=gt(we,De,Z);Fe>ke||Fe===ke&&(!Y||He>=Oe)?(m.current.bt=!0,xe=De,ce=-ce,ye.points=[co(ve,0),co(ge,0)]):m.current.bt=!1}if(Ae&&"b"===ve[0]&&(Ce<ee.top||m.current.tb)){var We=xe;Be?We+=F-W:We=Pe.y-Ie.y-ce;var Ve=gt(we,We),Xe=gt(we,We,Z);Ve>ke||Ve===ke&&(!Y||Xe>=Oe)?(m.current.tb=!0,xe=We,ce=-ce,ye.points=[co(ve,0),co(ge,0)]):m.current.tb=!1}var qe=Le(Re),Ue=ve[1]===ge[1];if(qe&&"l"===ve[1]&&(Ee>ee.right||m.current.rl)){var Ge=we;Ue?Ge-=H-V:Ge=je.x-Ne.x-se;var Ye=gt(Ge,xe),Qe=gt(Ge,xe,Z);Ye>ke||Ye===ke&&(!Y||Qe>=Oe)?(m.current.rl=!0,we=Ge,se=-se,ye.points=[co(ve,1),co(ge,1)]):m.current.rl=!1}if(qe&&"r"===ve[1]&&($e<ee.left||m.current.lr)){var Ze=we;Ue?Ze+=H-V:Ze=Pe.x-Ie.x-se;var Je=gt(Ze,xe),et=gt(Ze,xe,Z);Je>ke||Je===ke&&(!Y||et>=Oe)?(m.current.lr=!0,we=Ze,se=-se,ye.points=[co(ve,1),co(ge,1)]):m.current.lr=!1}vt();var tt=!0===ze?0:ze;"number"===typeof tt&&($e<Z.left&&(we-=$e-Z.left-se,g.x+V<Z.left+tt&&(we+=g.x-Z.left+V-tt)),Ee>Z.right&&(we-=Ee-Z.right-se,g.x>Z.right-tt&&(we+=g.x-Z.right+tt)));var nt=!0===_e?0:_e;"number"===typeof nt&&(Ce<Z.top&&(xe-=Ce-Z.top-ce,g.y+W<Z.top+nt&&(xe+=g.y-Z.top+W-nt)),Se>Z.bottom&&(xe-=Se-Z.bottom-ce,g.y>Z.bottom-nt&&(xe+=g.y-Z.bottom+nt)));var rt=P.x+we,ot=rt+H,it=P.y+xe,at=it+F,lt=g.x,st=lt+V,ct=g.y,ut=ct+W,dt=(Math.max(rt,lt)+Math.min(ot,st))/2-rt,ft=(Math.max(it,ct)+Math.min(at,ut))/2-it;null===l||void 0===l||l(n,ye);var pt=te.right-P.x-(we+P.width),mt=te.bottom-P.y-(xe+P.height);1===ne&&(we=Math.round(we),pt=Math.round(pt)),1===re&&(xe=Math.round(xe),mt=Math.round(mt)),u({ready:!0,offsetX:we/ne,offsetY:xe/re,offsetR:pt/ne,offsetB:mt/re,arrowX:dt/ne,arrowY:ft/re,scaleX:ne,scaleY:re,align:ye})}}),v=function(){u(function(e){return ie(ie({},e),{},{ready:!1})})};return Qt(v,[o]),Qt(function(){t||v()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&g()})}]}(Pe,de,H&&null!==Xe?Xe:ve,T,_,L,V),Ye=f(Ge,11),Qe=Ye[0],Ze=Ye[1],Je=Ye[2],et=Ye[3],tt=Ye[4],nt=Ye[5],rt=Ye[6],ot=Ye[7],it=Ye[8],at=Ye[9],lt=Ye[10],st=function(t,n,r,o){return e.useMemo(function(){var e=Yr(null!==r&&void 0!==r?r:n),i=Yr(null!==o&&void 0!==o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[t,n,r,o])}(re,c,u,d),ct=f(st,2),ut=ct[0],dt=ct[1],ft=ut.has("click"),pt=dt.has("click")||dt.has("contextMenu"),mt=Zt(function(){Be||lt()});!function(e,t,n,r,o){Qt(function(){if(e&&t&&n){var i=n,a=to(t),s=to(i),c=eo(i),u=new Set([c].concat(l(a),l(s)));function d(){r(),o()}return u.forEach(function(e){e.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(e){e.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}(Pe,ve,de,mt,function(){Me.current&&H&&pt&&Le(!1)}),Qt(function(){mt()},[Xe,T]),Qt(function(){!Pe||null!==_&&void 0!==_&&_[T]||mt()},[JSON.stringify(L)]);var gt=e.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(Zr(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(_,i,at,H);return b()(e,null===D||void 0===D?void 0:D(at))},[at,D,_,i,H]);e.useImperativeHandle(r,function(){return{nativeElement:be.current,popupElement:pe.current,forceAlign:mt}});var vt=f(e.useState(0),2),ht=vt[0],bt=vt[1],yt=f(e.useState(0),2),wt=yt[0],xt=yt[1],Ct=function(){if(B&&ve){var e=ve.getBoundingClientRect();bt(e.width),xt(e.height)}};function St(e,t,n,r){Se[e]=function(o){var i;null===r||void 0===r||r(o),Le(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=Ce[e])||void 0===i||i.call.apply(i,[Ce,o].concat(l))}}Qt(function(){He&&(lt(),He(),We(null))},[He]),(ft||pt)&&(Se.onClick=function(e){var t;Me.current&&pt?Le(!1):!Me.current&&ft&&(Ue(e),Le(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onClick)||void 0===t||t.call.apply(t,[Ce,e].concat(r))});var $t,Et,kt=function(t,n,r,o,i,a,l,s){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect(function(){if(n&&o&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!c.current||l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||s(!1)},d=eo(o);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",t,!0),d.addEventListener("contextmenu",t,!0);var f=ye(r);return f&&(f.addEventListener("mousedown",t,!0),f.addEventListener("contextmenu",t,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",t,!0),d.removeEventListener("contextmenu",t,!0),f&&(f.removeEventListener("mousedown",t,!0),f.removeEventListener("contextmenu",t,!0))}}},[n,r,o,i,a]),function(){u.current=!0}}(Pe,pt,ve,de,$,k,$e,Le),Ot=ut.has("hover"),jt=dt.has("hover");Ot&&(St("onMouseEnter",!0,y,function(e){Ue(e)}),St("onPointerEnter",!0,y,function(e){Ue(e)}),$t=function(e){(Pe||Be)&&null!==de&&void 0!==de&&de.contains(e.target)&&Le(!0,y)},H&&(Se.onMouseMove=function(e){var t;null===(t=Ce.onMouseMove)||void 0===t||t.call(Ce,e)})),jt&&(St("onMouseLeave",!1,x),St("onPointerLeave",!1,x),Et=function(){Le(!1,x)}),ut.has("focus")&&St("onFocus",!0,C),dt.has("focus")&&St("onBlur",!1,S),ut.has("contextMenu")&&(Se.onContextMenu=function(e){var t;Me.current&&dt.has("contextMenu")?Le(!1):(Ue(e),Le(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onContextMenu)||void 0===t||t.call.apply(t,[Ce,e].concat(r))}),Z&&(Se.className=b()(Ce.className,Z));var It=e.useRef(!1);It.current||(It.current=j||Pe||Be);var Pt=ie(ie({},Ce),Se),Nt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ee[e]&&(Nt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(r)),ee[e].apply(ee,r)})});var Mt=e.cloneElement(xe,ie(ie({},Pt),Nt)),Rt={x:nt,y:rt},Tt=X?ie({},!0!==X?X:{}):null;return e.createElement(e.Fragment,null,e.createElement(Ut,{disabled:!Pe,ref:we,onResize:function(){Ct(),mt()}},e.createElement(Gr,{getTriggerDOMNode:J},Mt)),It.current&&e.createElement(Kr.Provider,{value:se},e.createElement(qr,{portal:t,ref:me,prefixCls:i,popup:N,className:b()(M,gt),style:R,target:ve,onMouseEnter:$t,onMouseLeave:Et,onPointerEnter:$t,zIndex:A,open:Pe,keepDom:Be,fresh:F,onClick:W,onPointerDownCapture:kt,mask:$,motion:Ee,maskMotion:ke,onVisibleChanged:function(e){De(!1),lt(),null===h||void 0===h||h(e)},onPrepare:function(){return new Promise(function(e){Ct(),We(function(){return e})})},forceRender:j,autoDestroy:te,getPopupContainer:O,align:at,arrow:Tt,arrowPos:Rt,ready:Qe,offsetX:Ze,offsetY:Je,offsetR:et,offsetB:tt,onAlign:mt,stretch:B,targetWidth:ht/ot,targetHeight:wt/it})))});return n}(Nn);var po={shiftX:64,adjustY:1},mo={adjustX:1,shiftY:!0},go=[0,0],vo={left:{points:["cr","cl"],overflow:mo,offset:[-4,0],targetOffset:go},right:{points:["cl","cr"],overflow:mo,offset:[4,0],targetOffset:go},top:{points:["bc","tc"],overflow:po,offset:[0,-4],targetOffset:go},bottom:{points:["tc","bc"],overflow:po,offset:[0,4],targetOffset:go},topLeft:{points:["bl","tl"],overflow:po,offset:[0,-4],targetOffset:go},leftTop:{points:["tr","tl"],overflow:mo,offset:[-4,0],targetOffset:go},topRight:{points:["br","tr"],overflow:po,offset:[0,-4],targetOffset:go},rightTop:{points:["tl","tr"],overflow:mo,offset:[4,0],targetOffset:go},bottomRight:{points:["tr","br"],overflow:po,offset:[0,4],targetOffset:go},rightBottom:{points:["bl","br"],overflow:mo,offset:[4,0],targetOffset:go},bottomLeft:{points:["tl","bl"],overflow:po,offset:[0,4],targetOffset:go},leftBottom:{points:["br","bl"],overflow:mo,offset:[-4,0],targetOffset:go}};var ho=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],bo=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,l=void 0===a?0:a,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,m=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,y=t.transitionName,w=t.animation,x=t.motion,C=t.placement,S=void 0===C?"right":C,$=t.align,E=void 0===$?{}:$,k=t.destroyTooltipOnHide,O=void 0!==k&&k,j=t.defaultVisible,I=t.getTooltipContainer,P=t.overlayInnerStyle,N=(t.arrowContent,t.overlay),M=t.id,R=t.showArrow,T=void 0===R||R,z=t.classNames,_=t.styles,L=v(t,ho),A=Tn(M),B=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,function(){return B.current});var D=ie({},L);"visible"in t&&(D.popupVisible=t.visible);return e.createElement(fo,s({popupClassName:b()(r,null===z||void 0===z?void 0:z.root),prefixCls:p,popup:function(){return e.createElement(xn,{key:"content",prefixCls:p,id:A,bodyClassName:null===z||void 0===z?void 0:z.body,overlayInnerStyle:ie(ie({},P),null===_||void 0===_?void 0:_.body)},N)},action:i,builtinPlacements:vo,popupPlacement:S,ref:B,popupAlign:E,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:y,popupAnimation:w,popupMotion:x,defaultPopupVisible:j,autoDestroy:O,mouseLeaveDelay:u,popupStyle:ie(ie({},d),null===_||void 0===_?void 0:_.root),mouseEnterDelay:l,arrow:T},D),function(){var t=e.Children.only(m),n=ie(ie({},(null===t||void 0===t?void 0:t.props)||{}),{},{"aria-describedby":N?A:null});return e.cloneElement(m,n)}())};const yo=(0,e.forwardRef)(bo);function wo(e,t){this.v=e,this.k=t}function xo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xo=function(e,t,n,r){function i(t,n){xo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xo(e,t,n,r)}function Co(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return xo(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,m=i[2];n>3?(o=m===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xo(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xo(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,xo(d,"constructor",c),xo(c,"constructor",s),s.displayName="GeneratorFunction",xo(c,o,"GeneratorFunction"),xo(d),xo(d,o,"Generator"),xo(d,r,function(){return this}),xo(d,"toString",function(){return"[object Generator]"}),(Co=function(){return{w:i,m:f}})()}function So(e,t){function n(r,o,i,a){try{var l=e[r](o),s=l.value;return s instanceof wo?t.resolve(s.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(xo(So.prototype),xo(So.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),xo(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function $o(e,t,n,r,o){return new So(Co().w(e,t,n,r),o||Promise)}function Eo(e,t,n,r,o){var i=$o(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function ko(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Oo(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(p(e)+" is not iterable")}function jo(){var e=Co(),t=e.m(jo),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,Oo(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(jo=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new wo(e,t)},AsyncIterator:So,async:function(e,t,n,o,a){return(r(t)?$o:Eo)(i(e),t,n,o,a)},keys:ko,values:Oo}})()}function Io(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Po(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Io(i,r,o,a,l,"next",e)}function l(e){Io(i,r,o,a,l,"throw",e)}a(void 0)})}}const No=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(ke(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===p(t)&&"object"===p(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};var Mo="RC_FORM_INTERNAL_HOOKS",Ro=function(){ke(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const To=e.createContext({getFieldValue:Ro,getFieldsValue:Ro,getFieldError:Ro,getFieldWarning:Ro,getFieldsError:Ro,isFieldsTouched:Ro,isFieldTouched:Ro,isFieldValidating:Ro,isFieldsValidating:Ro,resetFields:Ro,setFields:Ro,setFieldValue:Ro,setFieldsValue:Ro,validateFields:Ro,submit:Ro,getInternalHooks:function(){return Ro(),{dispatch:Ro,initEntityValue:Ro,registerField:Ro,useSubscribe:Ro,setInitialValues:Ro,destroyForm:Ro,setCallbacks:Ro,registerWatch:Ro,getFields:Ro,setValidateMessages:Ro,setPreserve:Ro,getInitialValue:Ro}}});const zo=e.createContext(null);function _o(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function Lo(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ao=Lo();function Bo(e){var t="function"==typeof Map?new Map:void 0;return Bo=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(Qm){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(At())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&zt(o,n.prototype),o}(e,arguments,Lt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zt(n,e)},Bo(e)}var Do=/%[sdj%]/g;function Fo(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Ho(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(Do,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}default:return e}}):e}function Wo(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function Vo(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}var Xo=function(e){_t(n,e);var t=Ft(n);function n(e,r){var o;return Mt(this,n),g(Bt(o=t.call(this,"Async Validation Error")),"errors",void 0),g(Bt(o),"fields",void 0),o.errors=e,o.fields=r,o}return Tt(n)}(Bo(Error));function qo(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,l(e[n]||[]))}),t}(e);Vo(a,n,function(e){return r(e),e.length?i(new Xo(e,Fo(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(t,i){var f=function(e){if(d.push.apply(d,e),++u===c)return r(d),d.length?i(new Xo(d,Fo(d))):t(o)};s.length||(r(d),t(o)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?Vo(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,l(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,f)})});return f.catch(function(e){return e}),f}function Uo(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Go(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===p(r)&&"object"===p(e[n])?e[n]=ie(ie({},e[n]),r):e[n]=r}return e}var Ko="enum";const Yo=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Wo(t,i||e.type)||r.push(Ho(o.messages.required,e.fullField))};var Qo;var Zo=/^(([^<>()\[\]\\.,;:\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,}))$/,Jo=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,ei={integer:function(e){return ei.number(e)&&parseInt(e,10)===e},float:function(e){return ei.number(e)&&!ei.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Ym){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===p(e)&&!ei.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Zo)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(Qo)return Qo;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Qo=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(Jo)}};const ti=function(e,t,n,r,o){if(e.required&&void 0===t)Yo(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?ei[i](t)||r.push(Ho(o.messages.types[i],e.fullField,e.type)):i&&p(t)!==e.type&&r.push(Ho(o.messages.types[i],e.fullField,e.type))}};const ni={required:Yo,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Ho(o.messages.whitespace,e.fullField))},type:ti,range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,s=t,c=null,u="number"===typeof t,d="string"===typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(Ho(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(Ho(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(Ho(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(Ho(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Ko]=Array.isArray(e[Ko])?e[Ko]:[],-1===e[Ko].indexOf(t)&&r.push(Ho(o.messages[Ko],e.fullField,e[Ko].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ho(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Ho(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const ri=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":p(t);ni.required(e,t,r,i,o,a),n(i)};const oi=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t,i)&&!e.required)return n();ni.required(e,t,r,a,o,i),Wo(t,i)||ni.type(e,t,r,a,o)}n(a)},ii={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t,"string")&&!e.required)return n();ni.required(e,t,r,i,o,"string"),Wo(t,"string")||(ni.type(e,t,r,i,o),ni.range(e,t,r,i,o),ni.pattern(e,t,r,i,o),!0===e.whitespace&&ni.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&ni.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&(ni.type(e,t,r,i,o),ni.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&ni.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),Wo(t)||ni.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&(ni.type(e,t,r,i,o),ni.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&(ni.type(e,t,r,i,o),ni.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();ni.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(ni.type(e,t,r,i,o),ni.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&ni.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o),void 0!==t&&ni.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t,"string")&&!e.required)return n();ni.required(e,t,r,i,o),Wo(t,"string")||ni.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t,"date")&&!e.required)return n();var a;if(ni.required(e,t,r,i,o),!Wo(t,"date"))a=t instanceof Date?t:new Date(t),ni.type(e,a,r,i,o),a&&ni.range(e,a.getTime(),r,i,o)}n(i)},url:oi,hex:oi,email:oi,required:ri,any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wo(t)&&!e.required)return n();ni.required(e,t,r,i,o)}n(i)}};var ai=function(){function e(t){Mt(this,e),g(this,"rules",null),g(this,"_messages",Ao),this.define(t)}return Tt(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==p(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=Go(Lo(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"===typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Ao&&(a=Lo()),Go(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"===typeof a.transform&&(r===t&&(r=ie({},r)),void 0!==(i=r[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":p(i)))),(a="function"===typeof a?{validator:a}:ie({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:r,field:e}))})});var c={};return qo(s,o,function(t,n){var i,a=t.rule,s=("object"===a.type||"array"===a.type)&&("object"===p(a.fields)||"object"===p(a.defaultField));function u(e,t){return ie(ie({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(l(a.fullFields),[e]):[e]})}function d(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(i)?i:[i];!o.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==a.message&&(d=[].concat(a.message));var f=d.map(Uo(a,r));if(o.first&&f.length)return c[a.field]=1,n(f);if(s){if(a.required&&!t.value)return void 0!==a.message?f=[].concat(a.message).map(Uo(a,r)):o.error&&(f=[o.error(a,Ho(o.messages.required,a.field))]),n(f);var p={};a.defaultField&&Object.keys(t.value).map(function(e){p[e]=a.defaultField}),p=ie(ie({},p),t.rule.fields);var m={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];m[e]=n.map(u.bind(null,e))});var g=new e(m);g.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),g.validate(t.value,t.rule.options||o,function(e){var t=[];f&&f.length&&t.push.apply(t,l(f)),e&&e.length&&t.push.apply(t,l(e)),n(t.length?t:null)})}else n(f)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,d,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,d,t.source,o)}catch(g){var f,m;null===(f=(m=console).error)||void 0===f||f.call(m,g),o.suppressValidatorError||setTimeout(function(){throw g},0),d(g.message)}!0===i?d():!1===i?d("function"===typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?d(i):i instanceof Error&&d(i.message)}i&&i.then&&i.then(function(){return d()},function(e){return d(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,l(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=Fo(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ii.hasOwnProperty(e.type))throw new Error(Ho("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ii.required:ii[this.getType(e)]||void 0}}]),e}();g(ai,"register",function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ii[e]=t}),g(ai,"warning",function(){}),g(ai,"messages",Ao),g(ai,"validators",ii);var li="'${name}' is not a valid ${type}",si={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:li,method:li,array:li,object:li,number:li,date:li,boolean:li,integer:li,float:li,regexp:li,email:li,url:li,hex:li},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}"}},ci=ai;function ui(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var di="CODE_LOGIC_ERROR";function fi(e,t,n,r,o){return pi.apply(this,arguments)}function pi(){return pi=Po(jo().mark(function t(n,r,o,i,a){var s,c,u,d,f,p,m,v,h;return jo().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return delete(s=ie({},o)).ruleIndex,ci.warning=function(){},s.validator&&(c=s.validator,s.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(di)}}),u=null,s&&"array"===s.type&&s.defaultField&&(u=s.defaultField,delete s.defaultField),d=new ci(g({},n,[s])),f=qn(si,i.validateMessages),d.messages(f),p=[],t.prev=10,t.next=13,Promise.resolve(d.validate(g({},n,r),ie({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(p=t.t0.errors.map(function(t,n){var r=t.message,o=r===di?f.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o}));case 18:if(p.length||!u){t.next=23;break}return t.next=21,Promise.all(r.map(function(e,t){return fi("".concat(n,".").concat(t),e,u,i,a)}));case 21:return m=t.sent,t.abrupt("return",m.reduce(function(e,t){return[].concat(l(e),l(t))},[]));case 23:return v=ie(ie({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),h=p.map(function(e){return"string"===typeof e?ui(e,v):e}),t.abrupt("return",h);case 26:case"end":return t.stop()}},t,null,[[10,15]])})),pi.apply(this,arguments)}function mi(e,t,n,r,o,i){var a,l=e.join("."),s=n.map(function(e,t){var n=e.validator,r=ie(ie({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){ke(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});o=i&&"function"===typeof i.then&&"function"===typeof i.catch,ke(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n===!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=Po(jo().mark(function e(n,o){var a,c,u;return jo().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,fi(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map(function(e){return fi(l,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return vi.apply(this,arguments)}(c):function(e){return gi.apply(this,arguments)}(c)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function gi(){return(gi=Po(jo().mark(function e(t){return jo().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,l(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function vi(){return(vi=Po(jo().mark(function e(t){var n;return jo().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function hi(e){return _o(e)}function bi(e,t){var n={};return t.forEach(function(t){var r=Fn(e,t);n=Wn(n,t,r)}),n}function yi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return wi(t,e,n)})}function wi(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function xi(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===p(t.target)&&e in t.target?t.target[e]:t}function Ci(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(l(e.slice(0,n)),[o],l(e.slice(n,t)),l(e.slice(t+1,r))):i<0?[].concat(l(e.slice(0,t)),l(e.slice(t+1,n+1)),[o],l(e.slice(n+1,r))):e}var Si=["name"],$i=[];function Ei(e,t,n,r,o,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ki=function(t){_t(r,t);var n=Ft(r);function r(t){var o;(Mt(this,r),g(Bt(o=n.call(this,t)),"state",{resetCount:0}),g(Bt(o),"cancelRegisterFunc",null),g(Bt(o),"mounted",!1),g(Bt(o),"touched",!1),g(Bt(o),"dirty",!1),g(Bt(o),"validatePromise",void 0),g(Bt(o),"prevValidating",void 0),g(Bt(o),"errors",$i),g(Bt(o),"warnings",$i),g(Bt(o),"cancelRegister",function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,hi(r)),o.cancelRegisterFunc=null}),g(Bt(o),"getNamePath",function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(l(void 0===n?[]:n),l(t)):[]}),g(Bt(o),"getRules",function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map(function(e){return"function"===typeof e?e(r):e})}),g(Bt(o),"refresh",function(){o.mounted&&o.setState(function(e){return{resetCount:e.resetCount+1}})}),g(Bt(o),"metaCache",null),g(Bt(o),"triggerMetaEvent",function(e){var t=o.props.onMetaChange;if(t){var n=ie(ie({},o.getMeta()),{},{destroy:e});No(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null}),g(Bt(o),"onStoreChange",function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,s=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&yi(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||No(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$i,o.warnings=$i,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$i,o.warnings=$i,o.triggerMetaEvent(),null===s||void 0===s||s(),void o.refresh();break;case"remove":if(i&&Ei(i,e,c,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||$i),"warnings"in m&&(o.warnings=m.warnings||$i),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&yi(t,u,!0))return void o.reRender();if(i&&!u.length&&Ei(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(hi).some(function(e){return yi(n.relatedFields,e)}))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Ei(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()}),g(Bt(o),"validateRules",function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,c=Promise.resolve().then(Po(jo().mark(function r(){var a,s,u,d,f,p,m;return jo().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,s=a.validateFirst,u=void 0!==s&&s,d=a.messageVariables,f=a.validateDebounce,p=o.getRules(),i&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||_o(t).includes(i)})),!f||!i){r.next=10;break}return r.next=8,new Promise(function(e){setTimeout(e,f)});case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(m=mi(t,n,p,e,u,d)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$i;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?$i:o;t?r.push.apply(r,l(i)):n.push.apply(n,l(i))}),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}}),r.abrupt("return",m);case 13:case"end":return r.stop()}},r)})));return s||(o.validatePromise=c,o.dirty=!0,o.errors=$i,o.warnings=$i,o.triggerMetaEvent(),o.reRender()),c}),g(Bt(o),"isFieldValidating",function(){return!!o.validatePromise}),g(Bt(o),"isFieldTouched",function(){return o.touched}),g(Bt(o),"isFieldDirty",function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Mo).getInitialValue)(o.getNamePath())}),g(Bt(o),"getErrors",function(){return o.errors}),g(Bt(o),"getWarnings",function(){return o.warnings}),g(Bt(o),"isListField",function(){return o.props.isListField}),g(Bt(o),"isList",function(){return o.props.isList}),g(Bt(o),"isPreserve",function(){return o.props.preserve}),g(Bt(o),"getMeta",function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}}),g(Bt(o),"getOnlyChild",function(t){if("function"===typeof t){var n=o.getMeta();return ie(ie({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=qe(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}}),g(Bt(o),"getValue",function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Fn(e||t(!0),n)}),g(Bt(o),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,v=p(Mo).dispatch,h=o.getValue(),b=c||function(e){return g({},s,e)},y=e[r],w=void 0!==n?b(h):{};var x=ie(ie({},e),w);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):xi.apply(void 0,[s].concat(n)),l&&(e=l(e,h,m(!0))),e!==h&&v({type:"updateValue",namePath:f,value:e}),y&&y.apply(void 0,n)},_o(d||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}}),x}),t.fieldContext)&&(0,(0,t.fieldContext.getInternalHooks)(Mo).initEntityValue)(Bt(o));return o}return Tt(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Mo).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(ke(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),r}(e.Component);g(ki,"contextType",To),g(ki,"defaultProps",{trigger:"onChange",valuePropName:"value"});const Oi=function(t){var n,r=t.name,o=v(t,Si),i=e.useContext(To),a=e.useContext(zo),l=void 0!==r?hi(r):void 0,c=null!==(n=o.isListField)&&void 0!==n?n:!!a,u="keep";return c||(u="_".concat((l||[]).join("_"))),e.createElement(ki,s({key:u,name:l,isListField:c},o,{fieldContext:i}))};const ji=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,c=e.useContext(To),u=e.useContext(zo),d=e.useRef({keys:[],id:0}).current,f=e.useMemo(function(){var e=hi(c.prefixName)||[];return[].concat(l(e),l(hi(n)))},[c.prefixName,n]),p=e.useMemo(function(){return ie(ie({},c),{},{prefixName:f})},[c,f]),m=e.useMemo(function(){return{getKey:function(e){var t=f.length,n=e[t];return[d.keys[n],e.slice(t+1)]}}},[f]);return"function"!==typeof o?(ke(!1,"Form.List only accepts function as children."),null):e.createElement(zo.Provider,{value:m},e.createElement(To.Provider,{value:p},e.createElement(Oi,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!==s&&void 0!==s?s:!!u},function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,s=function(){return a(f||[])||[]},u={add:function(e,t){var n=s();t>=0&&t<=n.length?(d.keys=[].concat(l(d.keys.slice(0,t)),[d.id],l(d.keys.slice(t))),i([].concat(l(n.slice(0,t)),[e],l(n.slice(t))))):(d.keys=[].concat(l(d.keys),[d.id]),i([].concat(l(n),[e]))),d.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(d.keys=Ci(d.keys,e,t),i(Ci(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),o(p.map(function(e,t){var n=d.keys[t];return void 0===n&&(d.keys[t]=d.id,n=d.keys[t],d.id+=1),{name:t,key:n,isListField:!0}}),u,t)})))};var Ii="__@field_split__";function Pi(e){return e.map(function(e){return"".concat(p(e),":").concat(e)}).join(Ii)}var Ni=function(){function e(){Mt(this,e),g(this,"kvs",new Map)}return Tt(e,[{key:"set",value:function(e,t){this.kvs.set(Pi(e),t)}},{key:"get",value:function(e){return this.kvs.get(Pi(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Pi(e))}},{key:"map",value:function(e){return l(this.kvs.entries()).map(function(t){var n=f(t,2),r=n[0],o=n[1],i=r.split(Ii);return e({key:i.map(function(e){var t=f(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}();const Mi=Ni;var Ri=["name"],Ti=Tt(function e(t){var n=this;Mt(this,e),g(this,"formHooked",!1),g(this,"forceRootUpdate",void 0),g(this,"subscribable",!0),g(this,"store",{}),g(this,"fieldEntities",[]),g(this,"initialValues",{}),g(this,"callbacks",{}),g(this,"validateMessages",null),g(this,"preserve",null),g(this,"lastValidatePromise",null),g(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),g(this,"getInternalHooks",function(e){return e===Mo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(ke(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),g(this,"useSubscribe",function(e){n.subscribable=e}),g(this,"prevWithoutPreserves",null),g(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=qn(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=Wn(o,n,Fn(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),g(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new Mi;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),g(this,"getInitialValue",function(e){var t=Fn(n.initialValues,e);return e.length?qn(t):t}),g(this,"setCallbacks",function(e){n.callbacks=e}),g(this,"setValidateMessages",function(e){n.validateMessages=e}),g(this,"setPreserve",function(e){n.preserve=e}),g(this,"watchList",[]),g(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),g(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),g(this,"timeoutId",null),g(this,"warningUnhooked",function(){0}),g(this,"updateStore",function(e){n.store=e}),g(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),g(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Mi;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),g(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=hi(e);return t.get(n)||{INVALIDATE_NAME_PATH:hi(e)}})}),g(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===p(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)}),bi(n.store,l.map(hi))}),g(this,"getFieldValue",function(e){n.warningUnhooked();var t=hi(e);return Fn(n.store,t)}),g(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:hi(e[n]),errors:[],warnings:[]}})}),g(this,"getFieldError",function(e){n.warningUnhooked();var t=hi(e);return n.getFieldsError([t])[0].errors}),g(this,"getFieldWarning",function(e){n.warningUnhooked();var t=hi(e);return n.getFieldsError([t])[0].warnings}),g(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(hi),s=!1):(o=null,s=i):(o=i.map(hi),s=a);var c=n.getFieldEntities(!0),u=function(e){return e.isFieldTouched()};if(!o)return s?c.every(function(e){return u(e)||e.isList()}):c.some(u);var d=new Mi;o.forEach(function(e){d.set(e,[])}),c.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&d.update(n,function(t){return[].concat(l(t),[e])})})});var f=function(e){return e.some(u)},p=d.map(function(e){return e.value});return s?p.every(f):p.some(f)}),g(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),g(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(hi);return t.some(function(e){var t=e.getNamePath();return yi(r,t)&&e.isFieldValidating()})}),g(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),g(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Mi,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,l(l(r).map(function(e){return e.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))ke(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)ke(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(Wn(n.store,o,l(i)[0].value))}}}})}),g(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(qn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(hi);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Wn(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),g(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=v(e,Ri),a=hi(o);r.push(a),"value"in i&&n.updateStore(Wn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),g(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=ie(ie({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),g(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Fn(n.store,r)&&n.updateStore(Wn(n.store,r,t))}}),g(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t}),g(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!wi(e.getNamePath(),t)})){var l=n.store;n.updateStore(Wn(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),g(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),g(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=ie(ie({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),g(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(l(r))}),r}),g(this,"updateValue",function(e,t){var r=hi(e),o=n.store;n.updateStore(Wn(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(bi(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(l(i)))}),g(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=qn(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),g(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),g(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new Mi;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=hi(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),g(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Mi;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return yi(e,n)});a.length&&r(a,o)}}),g(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(hi):[],s=[],c=String(Date.now()),u=new Set,d=o||{},f=d.recursive,p=d.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(u.add(t.join(c)),!i||yi(a,t,f)){var r=e.validateRules(ie({validateMessages:ie(ie({},si),n.validateMessages)},o));s.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,l(n)):r.push.apply(r,l(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var m=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(s);n.lastValidatePromise=m,m.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==m})});g.catch(function(e){return e});var v=a.filter(function(e){return u.has(e.join(c))});return n.triggerOnFieldsChange(v),g}),g(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const zi=function(t){var n=e.useRef(),r=f(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new Ti(function(){r({})});n.current=o.getForm()}return[n.current]};var _i=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Li=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(_i),l=e.useRef({});return e.createElement(_i.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=ie(ie({},l.current),{},g({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=ie({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const Ai=_i;var Bi=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Di=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,c=t.preserve,u=t.children,d=t.component,m=void 0===d?"form":d,g=t.validateMessages,h=t.validateTrigger,b=void 0===h?"onChange":h,y=t.onValuesChange,w=t.onFieldsChange,x=t.onFinish,C=t.onFinishFailed,S=t.clearOnDestroy,$=v(t,Bi),E=e.useRef(null),k=e.useContext(Ai),O=f(zi(a),1)[0],j=O.getInternalHooks(Mo),I=j.useSubscribe,P=j.setInitialValues,N=j.setCallbacks,M=j.setValidateMessages,R=j.setPreserve,T=j.destroyForm;e.useImperativeHandle(n,function(){return ie(ie({},O),{},{nativeElement:E.current})}),e.useEffect(function(){return k.registerForm(r,O),function(){k.unregisterForm(r)}},[k,O,r]),M(ie(ie({},k.validateMessages),g)),N({onValuesChange:y,onFieldsChange:function(e){if(k.triggerFormChange(r,e),w){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];w.apply(void 0,[e].concat(n))}},onFinish:function(e){k.triggerFormFinish(r,e),x&&x(e)},onFinishFailed:C}),R(c);var z,_=e.useRef(null);P(o,!_.current),_.current||(_.current=!0),e.useEffect(function(){return function(){return T(S)}},[]);var L="function"===typeof u;L?z=u(O.getFieldsValue(!0),O):z=u;I(!L);var A=e.useRef();e.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==p(e)||"object"!==p(t))return!1;var n=Object.keys(e),r=Object.keys(t);return l(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o})})(A.current||[],i||[])||O.setFields(i||[]),A.current=i},[i,O]);var B=e.useMemo(function(){return ie(ie({},O),{},{validateTrigger:b})},[O,b]),D=e.createElement(zo.Provider,{value:null},e.createElement(To.Provider,{value:B},z));return!1===m?D:e.createElement(m,s({},$,{ref:E,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),O.submit()},onReset:function(e){var t;e.preventDefault(),O.resetFields(),null===(t=$.onReset)||void 0===t||t.call($,e)}}),D)};function Fi(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var Hi=function(){};const Wi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,s=l.form,c=f((0,e.useState)(),2),u=c[0],d=c[1],p=(0,e.useMemo)(function(){return Fi(u)},[u]),m=(0,e.useRef)(p);m.current=p;var g=(0,e.useContext)(To),v=s||g,h=v&&v._init,b=hi(o),y=(0,e.useRef)(b);return y.current=b,Hi(b),(0,e.useEffect)(function(){if(h){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Mo).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"===typeof o?o(n):Fn(n,y.current)},r=t(function(e,t){var r=n(e,t),o=Fi(r);m.current!==o&&(m.current=o,d(r))}),i=n(e(),e(!0));return u!==i&&d(i),r}},[h]),u};var Vi=e.forwardRef(Di);Vi.FormProvider=Li,Vi.Field=Oi,Vi.List=ji,Vi.useForm=zi,Vi.useWatch=Wi;const Xi=Vi,qi=e.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Ui=e.createContext(null),Gi=t=>{const n=nn(t,["prefixCls"]);return e.createElement(Li,Object.assign({},n))},Ki=e.createContext({prefixCls:""}),Yi=e.createContext({});const Qi=t=>{let{children:n,status:r,override:o}=t;const i=e.useContext(Yi),a=e.useMemo(()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[r,o,i]);return e.createElement(Yi.Provider,{value:a},n)},Zi=e.createContext(void 0),Ji=e.createContext(void 0),ea=t=>{let{children:n,size:r}=t;const o=e.useContext(Ji);return e.createElement(Ji.Provider,{value:r||o},n)},ta=Ji,na=t=>{const n=e.useContext(ta);return e.useMemo(()=>t?"string"===typeof t?null!==t&&void 0!==t?t:n:"function"===typeof t?t(n):n:n,[t,n])};const ra=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function oa(e){return e.join("%")}var ia=function(){function e(t){Mt(this,e),g(this,"instanceId",void 0),g(this,"cache",new Map),g(this,"extracted",new Set),this.instanceId=t}return Tt(e,[{key:"get",value:function(e){return this.opGet(oa(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(oa(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const aa=ia;var la="data-token-hash",sa="data-css-hash",ca="__cssinjs_instance__";function ua(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(sa,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[ca]=t[ca]||e,t[ca]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(sa,"]"))).forEach(function(t){var n,o=t.getAttribute(sa);r[o]?t[ca]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new aa(e)}var da=e.createContext({hashPriority:"low",cache:ua(),defaultCache:!0});const fa=da;var pa="CALC_UNIT";new RegExp(pa,"g");var ma=function(){function e(){Mt(this,e),g(this,"cache",void 0),g(this,"keys",void 0),g(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Tt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=f(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=f(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();g(ma,"MAX_CACHE_SIZE",20),g(ma,"MAX_CACHE_OFFSET",5);var ga=0,va=function(){function e(t){Mt(this,e),g(this,"derivatives",void 0),g(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ga,0===t.length&&t.length,ga+=1}return Tt(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),ha=new ma;function ba(e){var t=Array.isArray(e)?e:[e];return ha.has(t)||ha.set(t,new va(t)),ha.get(t)}var ya=new WeakMap,wa={};var xa=new WeakMap;function Ca(e){var t=xa.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof va?t+=r.id:r&&"object"===p(r)?t+=Ca(r):t+=r}),t=ra(t),xa.set(e,t)),t}function Sa(e,t){return ra("".concat(t,"_").concat(Ca(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var $a=ae();function Ea(e){return"number"===typeof e?"".concat(e,"px"):e}function ka(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=ie(ie({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},g(g({},la,t),sa,n)),o=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Oa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(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()},ja=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=f(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Ia=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=f(e,2),l=a[0],s=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=s;else if(("string"===typeof s||"number"===typeof s)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var c,u=Oa(l,null===n||void 0===n?void 0:n.prefix);r[u]="number"!==typeof s||null!==n&&void 0!==n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),o[l]="var(".concat(u,")")}}),[o,ja(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},Pa=ie({},t).useInsertionEffect;const Na=Pa?function(e,t,n){return Pa(function(){return e(),t()},n)}:function(t,n,r){e.useMemo(t,r),Qt(function(){return n(!0)},r)};const Ma="undefined"!==typeof ie({},t).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(e){return e()})}},t),function(e){r||n.push(e)}}:function(){return function(e){e()}};const Ra=function(){return!1};function Ta(t,n,r,o,i){var a=e.useContext(fa).cache,s=oa([t].concat(l(n))),c=Ma([s]),u=(Ra(),function(e){a.opUpdate(s,function(t){var n=f(t||[void 0,void 0],2),o=n[0];var i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})});e.useMemo(function(){u()},[s]);var d=a.opGet(s)[1];return Na(function(){null===i||void 0===i||i(d)},function(e){return u(function(t){var n=f(t,2),r=n[0],o=n[1];return e&&0===r&&(null===i||void 0===i||i(d)),[r+1,o]}),function(){a.opUpdate(s,function(t){var n=f(t||[],2),r=n[0],i=void 0===r?0:r,l=n[1];return 0===i-1?(c(function(){!e&&a.opGet(s)||null===o||void 0===o||o(l,!1)}),null):[i-1,l]})}},[s]),d}var za={},_a=new Map;function La(e,t){_a.set(e,(_a.get(e)||0)-1);var n=new Set;_a.forEach(function(e,t){e<=0&&n.add(t)}),_a.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(la,'="').concat(e,'"]')).forEach(function(e){var n;e[ca]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),_a.delete(e)})}var Aa=function(e,t,n,r){var o=ie(ie({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},Ba="token";function Da(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(fa),i=o.cache.instanceId,a=o.container,s=r.salt,c=void 0===s?"":s,u=r.override,d=void 0===u?za:u,p=r.formatToken,m=r.getComputedToken,g=r.cssVar,v=function(e,t){for(var n=ya,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(wa)||n.set(wa,e()),n.get(wa)}(function(){return Object.assign.apply(Object,[{}].concat(l(n)))},n),h=Ca(v),b=Ca(d),y=g?Ca(g):"",w=Ta(Ba,[c,t.id,h,b,y],function(){var e,n=m?m(v,d,t):Aa(v,d,t,p),r=ie({},n),o="";if(g){var i=f(Ia(n,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),2);n=i[0],o=i[1]}var a=Sa(n,c);n._tokenKey=a,r._tokenKey=Sa(r,c);var l=null!==(e=null===g||void 0===g?void 0:g.key)&&void 0!==e?e:a;n._themeKey=l,function(e){_a.set(e,(_a.get(e)||0)+1)}(l);var s="".concat("css","-").concat(ra(a));return n._hashId=s,[n,s,r,o,(null===g||void 0===g?void 0:g.key)||""]},function(e){La(e[0]._themeKey,i)},function(e){var t=f(e,4),n=t[0],r=t[3];if(g&&r){var o=he(r,ra("css-variables-".concat(n._themeKey)),{mark:sa,prepend:"queue",attachTo:a,priority:-999});o[ca]=i,o.setAttribute(la,n._themeKey)}});return w}const Fa={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};var Ha="comm",Wa="rule",Va="decl",Xa=Math.abs,qa=String.fromCharCode;Object.assign;function Ua(e){return e.trim()}function Ga(e,t,n){return e.replace(t,n)}function Ka(e,t,n){return e.indexOf(t,n)}function Ya(e,t){return 0|e.charCodeAt(t)}function Qa(e,t,n){return e.slice(t,n)}function Za(e){return e.length}function Ja(e,t){return t.push(e),e}function el(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tl(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Va:return e.return=e.return||e.value;case Ha:return"";case"@keyframes":return e.return=e.value+"{"+el(e.children,r)+"}";case Wa:if(!Za(e.value=e.props.join(",")))return""}return Za(n=el(e.children,r))?e.return=e.value+"{"+n+"}":""}var nl=1,rl=1,ol=0,il=0,al=0,ll="";function sl(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:nl,column:rl,length:a,return:"",siblings:l}}function cl(){return al=il>0?Ya(ll,--il):0,rl--,10===al&&(rl=1,nl--),al}function ul(){return al=il<ol?Ya(ll,il++):0,rl++,10===al&&(rl=1,nl++),al}function dl(){return Ya(ll,il)}function fl(){return il}function pl(e,t){return Qa(ll,e,t)}function ml(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 gl(e){return nl=rl=1,ol=Za(ll=e),il=0,[]}function vl(e){return ll="",e}function hl(e){return Ua(pl(il-1,wl(91===e?e+2:40===e?e+1:e)))}function bl(e){for(;(al=dl())&&al<33;)ul();return ml(e)>2||ml(al)>3?"":" "}function yl(e,t){for(;--t&&ul()&&!(al<48||al>102||al>57&&al<65||al>70&&al<97););return pl(e,fl()+(t<6&&32==dl()&&32==ul()))}function wl(e){for(;ul();)switch(al){case e:return il;case 34:case 39:34!==e&&39!==e&&wl(al);break;case 40:41===e&&wl(e);break;case 92:ul()}return il}function xl(e,t){for(;ul()&&e+al!==57&&(e+al!==84||47!==dl()););return"/*"+pl(t,il-1)+"*"+qa(47===e?e:ul())}function Cl(e){for(;!ml(dl());)ul();return pl(e,il)}function Sl(e){return vl($l("",null,null,null,[""],e=gl(e),0,[0],e))}function $l(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,h=1,b=0,y="",w=o,x=i,C=r,S=y;v;)switch(m=b,b=ul()){case 40:if(108!=m&&58==Ya(S,d-1)){-1!=Ka(S+=Ga(hl(b),"&","&\f"),"&\f",Xa(c?l[c-1]:0))&&(h=-1);break}case 34:case 39:case 91:S+=hl(b);break;case 9:case 10:case 13:case 32:S+=bl(m);break;case 92:S+=yl(fl()-1,7);continue;case 47:switch(dl()){case 42:case 47:Ja(kl(xl(ul(),fl()),t,n,s),s),5!=ml(m||1)&&5!=ml(dl()||1)||!Za(S)||" "===Qa(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=Za(S)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(S=Ga(S,/\f/g,"")),p>0&&(Za(S)-d||0===g&&47===m)&&Ja(p>32?Ol(S+";",r,n,d-1,s):Ol(Ga(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(Ja(C=El(S,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)$l(S,t,C,C,w,i,d,l,x);else{switch(f){case 99:if(110===Ya(S,3))break;case 108:if(97===Ya(S,2))break;default:u=0;case 100:case 109:case 115:}u?$l(e,C,C,r&&Ja(El(e,C,C,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x):$l(S,C,C,C,[""],x,0,l,x)}}c=u=p=0,g=h=1,y=S="",d=a;break;case 58:d=1+Za(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==cl())continue;switch(S+=qa(b),b*g){case 38:h=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(Za(S)-1)*h,h=1;break;case 64:45===dl()&&(S+=hl(ul())),f=dl(),u=d=Za(y=S+=Cl(fl())),b++;break;case 45:45===m&&2==Za(S)&&(g=0)}}return i}function El(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,v=0,h=0;g<r;++g)for(var b=0,y=Qa(e,f+1,f=Xa(v=a[g])),w=e;b<m;++b)(w=Ua(v>0?p[b]+" "+y:Ga(y,/&\f/g,p[b])))&&(s[h++]=w);return sl(e,t,n,0===o?Wa:l,s,c,u,d)}function kl(e,t,n,r){return sl(e,t,n,Ha,qa(al),Qa(e,2,-2),0,r)}function Ol(e,t,n,r,o){return sl(e,t,n,Va,Qa(e,0,r),Qa(e,r+1,-1),r,o)}var jl,Il="data-ant-cssinjs-cache-path",Pl="_FILE_STYLE__";var Nl=!0;function Ml(e){return function(){if(!jl&&(jl={},ae())){var e=document.createElement("div");e.className=Il,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=f(e.split(":"),2),n=t[0],r=t[1];jl[n]=r});var n,r=document.querySelector("style[".concat(Il,"]"));r&&(Nl=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!jl[e]}var Rl="_multi_value_";function Tl(e){return el(Sl(e),tl).replace(/\{%%%\:[^;];}/g,";")}function zl(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(l(n.slice(1))).join(" ")}).join(",")}var _l=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer,u=(n.path,n.hashPriority),d=n.transformers,m=void 0===d?[]:d,g=(n.linters,""),v={};function h(t){var r=t.getName(s);if(!v[r]){var o=f(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];v[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return b.forEach(function(t){var r="string"!==typeof t||o?t:{};if("string"===typeof r)g+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=m.reduce(function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(c).forEach(function(t){var r=c[t];if("object"!==p(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===p(e)&&e&&("_skip_check_"in e||Rl in e)}(r)){var d;function $(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Fa[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(h(t),r=t.getName(s)),g+="".concat(n,":").concat(r,";")}var m=null!==(d=null===r||void 0===r?void 0:r.value)&&void 0!==d?d:r;"object"===p(r)&&null!==r&&void 0!==r&&r[Rl]&&Array.isArray(m)?m.forEach(function(e){$(t,e)}):$(t,m)}else{var b=!1,y=t.trim(),w=!1;(o||i)&&s?y.startsWith("@")?b=!0:y=zl("&"===y?"":t,s,u):!o||s||"&"!==y&&""!==y||(y="",w=!0);var x=f(e(r,n,{root:w,injectHash:b,parentSelectors:[].concat(l(a),[y])}),2),C=x[0],S=x[1];v=ie(ie({},v),S),g+="".concat(y).concat(C)}})}}),o?c&&(g&&(g="@layer ".concat(c.name," {").concat(g,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):g="{".concat(g,"}"),[g,v]};function Ll(e,t){return ra("".concat(e.join("%")).concat(t))}function Al(){return null}var Bl="style";function Dl(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,c=t.nonce,u=t.clientOnly,d=t.order,p=void 0===d?0:d,m=e.useContext(fa),v=m.autoClear,h=(m.mock,m.defaultCache),b=m.hashPriority,y=m.container,w=m.ssrInline,x=m.transformers,C=m.linters,S=m.cache,$=m.layer,E=r._tokenKey,k=[E];$&&k.push("layer"),k.push.apply(k,l(o));var O=$a;var j=Ta(Bl,k,function(){var e=k.join("|");if(Ml(e)){var t=function(e){var t=jl[e],n=null;if(t&&ae())if(Nl)n=Pl;else{var r=document.querySelector("style[".concat(sa,'="').concat(jl[e],'"]'));r?n=r.innerHTML:delete jl[e]}return[n,t]}(e),r=f(t,2),l=r[0],s=r[1];if(l)return[l,E,s,{},u,p]}var c=n(),d=f(_l(c,{hashId:i,hashPriority:b,layer:$?a:void 0,path:o.join("-"),transformers:x,linters:C}),2),m=d[0],g=d[1],v=Tl(m),h=Ll(k,v);return[v,E,h,g,u,p]},function(e,t){var n=f(e,3)[2];(t||v)&&$a&&ve(n,{mark:sa,attachTo:y})},function(e){var t=f(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(O&&n!==Pl){var i={mark:sa,prepend:!$&&"queue",attachTo:y,priority:p},a="function"===typeof c?c():c;a&&(i.csp={nonce:a});var l=[],s=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?l.push(e):s.push(e)}),l.forEach(function(e){he(Tl(o[e]),"_layer-".concat(e),ie(ie({},i),{},{prepend:!0}))});var u=he(n,r,i);u[ca]=S.instanceId,u.setAttribute(la,E),s.forEach(function(e){he(Tl(o[e]),"_effect-".concat(e),i)})}}),I=f(j,3),P=I[0],N=I[1],M=I[2];return function(t){var n;return n=w&&!O&&h?e.createElement("style",s({},g(g({},la,N),sa,M),{dangerouslySetInnerHTML:{__html:P}})):e.createElement(Al,null),e.createElement(e.Fragment,null,n,t)}}var Fl="cssVar";const Hl=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,c=t.scope,u=void 0===c?"":c,d=(0,e.useContext)(fa),p=d.cache.instanceId,m=d.container,g=s._tokenKey,v=[].concat(l(t.path),[r,u,g]),h=Ta(Fl,v,function(){var e=n(),t=f(Ia(e,r,{prefix:o,unitless:i,ignore:a,scope:u}),2),l=t[0],s=t[1];return[l,s,Ll(v,s),r]},function(e){var t=f(e,3)[2];$a&&ve(t,{mark:sa,attachTo:m})},function(e){var t=f(e,3),n=t[1],o=t[2];if(n){var i=he(n,o,{mark:sa,prepend:"queue",attachTo:m,priority:-999});i[ca]=p,i.setAttribute(la,r)}});return h};g(g(g({},Bl,function(e,t,n){var r=f(e,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=(n||{}).plain;if(s)return null;var d=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=ka(o,i,a,p,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=ka(Tl(l[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}}),[c,a,d]}),Ba,function(e,t,n){var r=f(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,ka(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),Fl,function(e,t,n){var r=f(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,ka(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]});var Wl=function(){function e(t,n){Mt(this,e),g(this,"name",void 0),g(this,"style",void 0),g(this,"_keyframe",!0),this.name=t,this.style=n}return Tt(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const Vl=Wl;function Xl(e){return e.notSplit=!0,e}Xl(["borderTop","borderBottom"]),Xl(["borderTop"]),Xl(["borderBottom"]),Xl(["borderLeft","borderRight"]),Xl(["borderLeft"]),Xl(["borderRight"]);const ql=Tt(function e(){Mt(this,e)});var Ul="CALC_UNIT",Gl=new RegExp(Ul,"g");function Kl(e){return"number"===typeof e?"".concat(e).concat(Ul):e}var Yl=function(e){_t(n,e);var t=Ft(n);function n(e,r){var o;Mt(this,n),g(Bt(o=t.call(this)),"result",""),g(Bt(o),"unitlessCssVar",void 0),g(Bt(o),"lowPriority",void 0);var i=p(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Kl(e):"string"===i&&(o.result=e),o}return Tt(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(Kl(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(Kl(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"===typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Gl,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(ql);const Ql=function(e){_t(n,e);var t=Ft(n);function n(e){var r;return Mt(this,n),g(Bt(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return Tt(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(ql);const Zl=function(e,t){var n="css"===e?Yl:Ql;return function(e){return new n(e,t)}};const Jl=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};const es=function(e,t,n,r){var o=ie({},t[e]);null!==r&&void 0!==r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=f(e,2),r=n[0],i=n[1];(null!==o&&void 0!==o&&o[r]||null!==o&&void 0!==o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null===o||void 0===o?void 0:o[r]))});var i=ie(ie({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var ts="undefined"!==typeof CSSINJS_STATISTIC,ns=!0;function rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ts)return Object.assign.apply(Object,[{}].concat(t));ns=!1;var r={};return t.forEach(function(e){"object"===p(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),ns=!0,r}var os={};function is(){}const as=function(e){var t,n=e,r=is;return ts&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;ns&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;os[e]={global:Array.from(t),component:ie(ie({},null===(r=os[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};const ls=function(e,t,n){var r;return"function"===typeof n?n(rs(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}};const ss=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return Ea(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return Ea(e)}).join(","),")")}}};var cs=function(){function e(){Mt(this,e),g(this,"map",new Map),g(this,"objectIDMap",new WeakMap),g(this,"nextID",0),g(this,"lastAccessBeat",new Map),g(this,"accessBeat",0)}return Tt(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&&"object"===p(e)?"obj_".concat(t.getObjectID(e)):"".concat(p(e),"_").concat(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>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),us=new cs;const ds=function(t,n){return e.useMemo(function(){var e=us.get(n);if(e)return e;var r=t();return us.set(n,r),r},n)};const fs=function(){return{}};const ps=function(t){var n=t.useCSP,r=void 0===n?fs:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,s=t.getCompUnitless;function c(e,n,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=f(u,1)[0],m=u.join("-"),g=t.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=o(),f=u.theme,v=u.realToken,h=u.hashId,b=u.token,y=u.cssVar,w=i(),x=w.rootPrefixCls,C=w.iconPrefixCls,S=r(),$=y?"css":"js",E=ds(function(){var e=new Set;return y&&Object.keys(c.unitless||{}).forEach(function(t){e.add(Oa(t,y.prefix)),e.add(Oa(t,Jl(d,y.prefix)))}),Zl($,e)},[$,d,null===y||void 0===y?void 0:y.prefix]),k=ss($),O=k.max,j=k.min,I={theme:f,token:b,hashId:h,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:g,order:c.order||-999};return"function"===typeof a&&Dl(ie(ie({},I),{},{clientOnly:!1,path:["Shared",x]}),function(){return a(b,{prefix:{rootPrefixCls:x,iconPrefixCls:C},csp:S})}),[Dl(ie(ie({},I),{},{path:[m,e,C]}),function(){if(!1===c.injectStyle)return[];var r=as(b),o=r.token,i=r.flush,a=ls(d,v,s),u=".".concat(e),f=es(d,v,a,{deprecatedTokens:c.deprecatedTokens});y&&a&&"object"===p(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(Oa(e,Jl(d,y.prefix)),")")});var m=rs(o,{componentCls:u,prefixCls:e,iconCls:".".concat(C),antCls:".".concat(x),calc:E,max:O,min:j},y?a:f),g=n(m,{hashId:h,prefixCls:e,rootPrefixCls:x,iconPrefixCls:C});i(d,f);var w="function"===typeof l?l(m,e,t,c.resetFont):null;return[!1===c.resetStyle?null:w,g]}),h]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null===i||void 0===i?void 0:i.unitless)||{},d=ie(ie({},"function"===typeof s?s(t):{}),{},g({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){d[l(e)]=u[e]});var p=ie(ie({},i),{},{unitless:d,prefixToken:l}),m=c(t,n,r,p),v=function(t,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,s=r.prefixToken,c=r.ignore,u=function(e){var a=e.rootCls,l=e.cssVar,u=void 0===l?{}:l,d=o().realToken;return Hl({path:[t],prefix:u.prefix,key:u.key,unitless:i,ignore:c,token:d,scope:a},function(){var e=ls(t,d,n),o=es(t,d,e,{deprecatedTokens:null===r||void 0===r?void 0:r.deprecatedTokens});return Object.keys(e).forEach(function(e){o[s(e)]=o[e],delete o[e]}),o}),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:r,component:t}),o):o},null===r||void 0===r?void 0:r.key]};return d}(a,r,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=f(m(e,t),2)[1],r=f(v(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=c(e,t,n,ie({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:c}},ms={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},gs=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},vs=(e,t)=>({outline:`${Ea(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!==t&&void 0!==t?t:1,transition:"outline-offset 0s, outline 0s"}),hs=(e,t)=>({"&:focus-visible":Object.assign({},vs(e,t))}),bs=e=>({[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),ys=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},hs(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ws={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"},xs=Object.assign(Object.assign({},ws),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Cs={token:xs,override:{override:xs},hashed:!0},Ss=e.createContext(Cs);function $s(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),p=n(i),m=n(a),g=n(l),v=r(c,u),h=n(e.colorLink||e.colorInfo),b=new S(m[1]).mix(new S(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new S("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Es=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const ks=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function Os(e){return(e+8)/e}const js=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:Os(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Is=(e,t)=>new S(e).setA(t).toRgbString(),Ps=(e,t)=>new S(e).darken(t).toHexString(),Ns=e=>{const t=j(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]}},Ms=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Is(r,.88),colorTextSecondary:Is(r,.65),colorTextTertiary:Is(r,.45),colorTextQuaternary:Is(r,.25),colorFill:Is(r,.15),colorFillSecondary:Is(r,.06),colorFillTertiary:Is(r,.04),colorFillQuaternary:Is(r,.02),colorBgSolid:Is(r,1),colorBgSolidHover:Is(r,.75),colorBgSolidActive:Is(r,.95),colorBgLayout:Ps(n,4),colorBgContainer:Ps(n,0),colorBgElevated:Ps(n,0),colorBgSpotlight:Is(r,.85),colorBgBlur:"transparent",colorBorder:Ps(n,15),colorBorderSecondary:Ps(n,6)}};function Rs(e){I.pink=I.magenta,W.pink=W.magenta;const t=Object.keys(ws).map(t=>{const n=e[t]===I[t]?W[t]:j(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$s(e,{generateColorPalettes:Ns,generateNeutralColorPalettes:Ms})),js(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),ks(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},Es(r))}(e))}const Ts=ba(Rs);function zs(e){return e>=0&&e<=255}const _s=function(e,t){const{r:n,g:r,b:o,a:i}=new S(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new S(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-l*(1-c))/c),i=Math.round((o-s*(1-c))/c);if(zs(e)&&zs(t)&&zs(i))return new S({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new S({r:n,g:r,b:o,a:1}).toRgbString()};var Ls=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function As(e){const{override:t}=e,n=Ls(e,["override"]),r=Object.assign({},t);Object.keys(xs).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_s(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:_s(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_s(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_s(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new S("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new S("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new S("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Bs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ds={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},Fs={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Hs={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},Ws=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Bs(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=As(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e;const{theme:r}=n,o=Bs(n,["theme"]);let i=o;r&&(i=Ws(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i}),a};function Vs(){const{token:t,hashed:n,theme:r,override:o,cssVar:i}=e.useContext(Ss),a=`5.26.6-${n||""}`,l=r||Ts,[s,c,u]=Da(l,[xs,t],{salt:a,override:o,getComputedToken:Ws,formatToken:As,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ds,ignore:Fs,preserve:Hs}});return[l,u,n?c:"",s,i]}const{genStyleHooks:Xs,genComponentStyleHook:qs,genSubStyleComponent:Us}=ps({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=(0,e.useContext)(cn);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=Vs();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t}=(0,e.useContext)(cn);return null!==t&&void 0!==t?t:{}},getResetStyles:(e,t)=>{var n;const r=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[r,{"&":r},bs(null!==(n=null===t||void 0===t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:ln)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>Ds}),Gs=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ks=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Ys=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Qs=Xs("Space",e=>{const t=rs(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ks(t),Ys(t),Gs(t)]},()=>({}),{resetStyle:!1});var Zs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Js=e.createContext(null),ec=(t,n)=>{const r=e.useContext(Js),o=e.useMemo(()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return b()(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})},[t,n,r]);return{compactSize:null===r||void 0===r?void 0:r.compactSize,compactDirection:null===r||void 0===r?void 0:r.compactDirection,compactItemClassnames:o}},tc=t=>{const{children:n}=t;return e.createElement(Js.Provider,{value:null},n)},nc=t=>{const{children:n}=t,r=Zs(t,["children"]);return e.createElement(Js.Provider,{value:e.useMemo(()=>r,[r])},n)},rc=t=>{const{getPrefixCls:n,direction:r}=e.useContext(cn),{size:o,direction:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=t,d=Zs(t,["size","direction","block","prefixCls","className","rootClassName","children"]),f=na(e=>null!==o&&void 0!==o?o:e),p=n("space-compact",l),[m,g]=Qs(p),v=b()(p,g,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},s,c),h=e.useContext(Js),y=qe(u),w=e.useMemo(()=>y.map((t,n)=>{const r=(null===t||void 0===t?void 0:t.key)||`${p}-item-${n}`;return e.createElement(nc,{key:r,compactSize:f,compactDirection:i,isFirstItem:0===n&&(!h||(null===h||void 0===h?void 0:h.isFirstItem)),isLastItem:n===y.length-1&&(!h||(null===h||void 0===h?void 0:h.isLastItem))},t)}),[o,y,h]);return 0===y.length?null:m(e.createElement("div",Object.assign({className:v},d),w))},oc=t=>{const{space:n,form:r,children:o}=t;if(void 0===o||null===o)return null;let i=o;return r&&(i=e.createElement(Qi,{override:!0,status:!0},i)),n&&(i=e.createElement(tc,null,i)),i};const ic=e.createContext(void 0),ac=100,lc=1e3,sc={Modal:ac,Drawer:ac,Popover:ac,Popconfirm:ac,Tooltip:ac,Tour:ac,FloatButton:ac},cc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const uc=(t,n)=>{const[,r]=Vs(),o=e.useContext(ic),i=function(e){return e in sc}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!==o&&void 0!==o?o:0;e+=i?(o?0:r.zIndexPopupBase)+sc[t]:cc[t],a=[void 0===o?n:e,e]}return a},dc=()=>({height:0,opacity:0}),fc=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},pc=e=>({height:e?e.offsetHeight:0}),mc=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,gc=(e,t,n)=>void 0!==n?n:`${e}-${t}`,vc=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:an}-motion-collapse`,onAppearStart:dc,onEnterStart:dc,onAppearActive:fc,onEnterActive:fc,onLeaveStart:pc,onLeaveActive:dc,onAppearEnd:mc,onEnterEnd:mc,onLeaveEnd:mc,motionDeadline:500}};function hc(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,f=2*o-a,p=l,m=2*o-0,g=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}const bc=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ea(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function yc(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function wc(e,t){return e?t:{}}function xc(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},bc(e,t,o)),{"&:before":{background:t}})]},wc(!!s.top,{[[`&-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":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ea(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),wc(!!s.bottom,{[[`&-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":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ea(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),wc(!!s.left,{[[`&-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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),wc(!!s.right,{[[`&-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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Cc={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"]}},Sc={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"]}},$c=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ec(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Cc).forEach(e=>{const c=r&&Sc[e]||Cc[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,$c.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=yc({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"===typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")}),s}function kc(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const Oc=(t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"===typeof r?r(t.props||{}):r):n;function jc(e,t){return Oc(e,e,t)}function Ic(){}const Pc=e.createContext({}),Nc=()=>{const e=()=>{};return e.deprecated=Ic,e},Mc=e=>({animationDuration:e,animationFillMode:"both"}),Rc=e=>({animationDuration:e,animationFillMode:"both"}),Tc=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},Mc(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Rc(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},zc=new Vl("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_c=new Vl("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Lc=new Vl("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ac=new Vl("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Bc=new Vl("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Dc=new Vl("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Fc=new Vl("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Hc=new Vl("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Wc=new Vl("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Vc=new Vl("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Xc=new Vl("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),qc=new Vl("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Uc={zoom:{inKeyframes:zc,outKeyframes:_c},"zoom-big":{inKeyframes:Lc,outKeyframes:Ac},"zoom-big-fast":{inKeyframes:Lc,outKeyframes:Ac},"zoom-left":{inKeyframes:Fc,outKeyframes:Hc},"zoom-right":{inKeyframes:Wc,outKeyframes:Vc},"zoom-up":{inKeyframes:Bc,outKeyframes:Dc},"zoom-down":{inKeyframes:Xc,outKeyframes:qc}},Gc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Uc[t];return[Tc(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Kc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Yc(e,t){return Kc.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const Qc=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},gs(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:s,padding:`${Ea(e.calc(u).div(2).equal())} ${Ea(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),Yc(e,(e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},xc(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Zc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},yc({contentRadius:e.borderRadius,limitVerticalRadius:!0})),hc(rs(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Jc=function(e){const t=Xs("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=rs(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Qc(o),Gc(e,"zoom-big-fast")]},Zc,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},eu=Kc.map(e=>`${e}-inverse`);function tu(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Kc.includes(e):[].concat(l(eu),l(Kc)).includes(e)}(t),r=b()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const nu=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:s}=e.useContext(cn),c=s("tooltip",n),[u,d,f]=Jc(c),p=tu(c,a),m=p.arrowStyle,g=Object.assign(Object.assign({},l),p.overlayStyle),v=b()(d,f,c,`${c}-pure`,`${c}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:v,style:m},e.createElement("div",{className:`${c}-arrow`}),e.createElement(xn,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};var ru=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ou=e.forwardRef((t,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:g=!0,title:v,overlay:h,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:x=!0,motion:C,getPopupContainer:S,placement:$="top",mouseEnterDelay:E=.1,mouseLeaveDelay:k=.1,overlayStyle:O,rootClassName:j,overlayClassName:I,styles:P,classNames:N}=t,M=ru(t,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!g,[,T]=Vs(),{getPopupContainer:z,getPrefixCls:_,direction:L,className:A,style:B,classNames:D,styles:F}=fn("tooltip"),H=Nc("Tooltip"),W=e.useRef(null),V=()=>{var e;null===(e=W.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,()=>{var e,t;return{forceAlign:V,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null===(e=W.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=W.current)||void 0===t?void 0:t.popupElement}});const[X,q]=tn(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),U=!v&&!h&&0!==v,G=e.useMemo(()=>{var e,t;let n=w;return"object"===typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:w),y||Ec({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:R?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[w,g,y,T]),K=e.useMemo(()=>0===v?v:h||v||"",[h,v]),Y=e.createElement(oc,{space:!0},"function"===typeof K?K():K),Q=_("tooltip",i),Z=_(),J=t["data-popover-inject"];let ee=X;"open"in t||"visible"in t||!U||(ee=!1);const te=e.isValidElement(u)&&!kc(u)?u:e.createElement("span",null,u),ne=te.props,re=ne.className&&"string"!==typeof ne.className?ne.className:b()(ne.className,a||`${Q}-open`),[oe,ie,ae]=Jc(Q,!J),le=tu(Q,s),se=le.arrowStyle,ce=b()(I,{[`${Q}-rtl`]:"rtl"===L},le.className,j,ie,ae,A,D.root,null===N||void 0===N?void 0:N.root),ue=b()(D.body,null===N||void 0===N?void 0:N.body),[de,fe]=uc("Tooltip",M.zIndex),pe=e.createElement(yo,Object.assign({},M,{zIndex:de,showArrow:R,placement:$,mouseEnterDelay:E,mouseLeaveDelay:k,prefixCls:Q,classNames:{root:ce,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),F.root),B),O),null===P||void 0===P?void 0:P.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},F.body),c),null===P||void 0===P?void 0:P.body),le.overlayStyle)},getTooltipContainer:S||l||z,ref:W,builtinPlacements:G,overlay:Y,visible:ee,onVisibleChange:e=>{var n,r;q(!U&&e),U||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!==d&&void 0!==d?d:f,arrowContent:e.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:gc(Z,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!==m&&void 0!==m?m:!!p}),ee?jc(te,{className:re}):te);return oe(e.createElement(ic.Provider,{value:fe},pe))}),iu=ou;iu._InternalPanelDoNotUseOrYouWillBeFired=nu;const au=iu;const lu={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"};var su=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:lu}))};const cu=e.forwardRef(su);var uu={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){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=uu.F1&&t<=uu.F12)return!1;switch(t){case uu.ALT:case uu.CAPS_LOCK:case uu.CONTEXT_MENU:case uu.CTRL:case uu.DOWN:case uu.END:case uu.ESC:case uu.HOME:case uu.INSERT:case uu.LEFT:case uu.MAC_FF_META:case uu.META:case uu.NUMLOCK:case uu.NUM_CENTER:case uu.PAGE_DOWN:case uu.PAGE_UP:case uu.PAUSE:case uu.PRINT_SCREEN:case uu.RIGHT:case uu.SHIFT:case uu.UP:case uu.WIN_KEY:case uu.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=uu.ZERO&&e<=uu.NINE)return!0;if(e>=uu.NUM_ZERO&&e<=uu.NUM_MULTIPLY)return!0;if(e>=uu.A&&e<=uu.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case uu.SPACE:case uu.QUESTION_MARK:case uu.NUM_PLUS:case uu.NUM_MINUS:case uu.NUM_PERIOD:case uu.NUM_DIVISION:case uu.SEMICOLON:case uu.DASH:case uu.EQUALS:case uu.COMMA:case uu.PERIOD:case uu.SLASH:case uu.APOSTROPHE:case uu.SINGLE_QUOTE:case uu.OPEN_SQUARE_BRACKET:case uu.BACKSLASH:case uu.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const du=uu;function fu(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function pu(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=fu(t,e,r)):n(o=fu(t,e,""))}}function mu(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var gu=e.forwardRef(function(t,n){var r,o,i,a=t.inputElement,l=t.children,c=t.prefixCls,u=t.prefix,d=t.suffix,f=t.addonBefore,m=t.addonAfter,v=t.className,h=t.style,y=t.disabled,w=t.readOnly,x=t.focused,C=t.triggerFocus,S=t.allowClear,$=t.value,E=t.handleReset,k=t.hidden,O=t.classes,j=t.classNames,I=t.dataAttrs,P=t.styles,N=t.components,M=t.onClear,R=null!==l&&void 0!==l?l:a,T=(null===N||void 0===N?void 0:N.affixWrapper)||"span",z=(null===N||void 0===N?void 0:N.groupWrapper)||"span",_=(null===N||void 0===N?void 0:N.wrapper)||"span",L=(null===N||void 0===N?void 0:N.groupAddon)||"span",A=(0,e.useRef)(null),B=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),D=(0,e.cloneElement)(R,{value:$,className:b()(null===(r=R.props)||void 0===r?void 0:r.className,!B&&(null===j||void 0===j?void 0:j.variant))||null}),F=(0,e.useRef)(null);if(e.useImperativeHandle(n,function(){return{nativeElement:F.current||A.current}}),B){var H=null;if(S){var W=!y&&!w&&$,V="".concat(c,"-clear-icon"),X="object"===p(S)&&null!==S&&void 0!==S&&S.clearIcon?S.clearIcon:"\u2716";H=e.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null===E||void 0===E||E(e),null===M||void 0===M||M()},onMouseDown:function(e){return e.preventDefault()},className:b()(V,g(g({},"".concat(V,"-hidden"),!W),"".concat(V,"-has-suffix"),!!d))},X)}var q="".concat(c,"-affix-wrapper"),U=b()(q,g(g(g(g(g({},"".concat(c,"-disabled"),y),"".concat(q,"-disabled"),y),"".concat(q,"-focused"),x),"".concat(q,"-readonly"),w),"".concat(q,"-input-with-clear-btn"),d&&S&&$),null===O||void 0===O?void 0:O.affixWrapper,null===j||void 0===j?void 0:j.affixWrapper,null===j||void 0===j?void 0:j.variant),G=(d||S)&&e.createElement("span",{className:b()("".concat(c,"-suffix"),null===j||void 0===j?void 0:j.suffix),style:null===P||void 0===P?void 0:P.suffix},H,d);D=e.createElement(T,s({className:U,style:null===P||void 0===P?void 0:P.affixWrapper,onClick:function(e){var t;null!==(t=A.current)&&void 0!==t&&t.contains(e.target)&&(null===C||void 0===C||C())}},null===I||void 0===I?void 0:I.affixWrapper,{ref:A}),u&&e.createElement("span",{className:b()("".concat(c,"-prefix"),null===j||void 0===j?void 0:j.prefix),style:null===P||void 0===P?void 0:P.prefix},u),D,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var K="".concat(c,"-group"),Y="".concat(K,"-addon"),Q="".concat(K,"-wrapper"),Z=b()("".concat(c,"-wrapper"),K,null===O||void 0===O?void 0:O.wrapper,null===j||void 0===j?void 0:j.wrapper),J=b()(Q,g({},"".concat(Q,"-disabled"),y),null===O||void 0===O?void 0:O.group,null===j||void 0===j?void 0:j.groupWrapper);D=e.createElement(z,{className:J,ref:F},e.createElement(_,{className:Z},f&&e.createElement(L,{className:Y},f),D,m&&e.createElement(L,{className:Y},m)))}return e.cloneElement(D,{className:b()(null===(o=D.props)||void 0===o?void 0:o.className,v)||null,style:ie(ie({},null===(i=D.props)||void 0===i?void 0:i.style),h),hidden:k})});const vu=gu;var hu=["show"];function bu(t,n){return e.useMemo(function(){var e={};n&&(e.show="object"===p(n)&&n.formatter?n.formatter:!!n);var r=e=ie(ie({},e),t),o=r.show,i=v(r,hu);return ie(ie({},i),{},{show:!!o,showFormatter:"function"===typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})},[t,n])}var yu=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],wu=(0,e.forwardRef)(function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,c=t.onPressEnter,u=t.onKeyDown,d=t.onKeyUp,p=t.prefixCls,m=void 0===p?"rc-input":p,h=t.disabled,y=t.htmlSize,w=t.className,x=t.maxLength,C=t.suffix,S=t.showCount,$=t.count,E=t.type,k=void 0===E?"text":E,O=t.classes,j=t.classNames,I=t.styles,P=t.onCompositionStart,N=t.onCompositionEnd,M=v(t,yu),R=f((0,e.useState)(!1),2),T=R[0],z=R[1],_=(0,e.useRef)(!1),L=(0,e.useRef)(!1),A=(0,e.useRef)(null),B=(0,e.useRef)(null),D=function(e){A.current&&mu(A.current,e)},F=f(tn(t.defaultValue,{value:t.value}),2),H=F[0],W=F[1],V=void 0===H||null===H?"":String(H),X=f((0,e.useState)(null),2),q=X[0],U=X[1],G=bu($,S),K=G.max||x,Y=G.strategy(V),Q=!!K&&Y>K;(0,e.useImperativeHandle)(n,function(){var e;return{focus:D,blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=A.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=A.current)||void 0===e||e.select()},input:A.current,nativeElement:(null===(e=B.current)||void 0===e?void 0:e.nativeElement)||A.current}}),(0,e.useEffect)(function(){L.current&&(L.current=!1),z(function(e){return(!e||!h)&&e})},[h]);var Z=function(e,t,n){var r,i,a=t;if(!_.current&&G.exceedFormatter&&G.max&&G.strategy(t)>G.max)t!==(a=G.exceedFormatter(t,{max:G.max}))&&U([(null===(r=A.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=A.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;W(a),A.current&&pu(A.current,e,o,a)};(0,e.useEffect)(function(){var e;q&&(null===(e=A.current)||void 0===e||e.setSelectionRange.apply(e,l(q)))},[q]);var J=function(e){Z(e,e.target.value,{source:"change"})},ee=function(e){_.current=!1,Z(e,e.currentTarget.value,{source:"compositionEnd"}),null===N||void 0===N||N(e)},te=function(e){c&&"Enter"===e.key&&!L.current&&(L.current=!0,c(e)),null===u||void 0===u||u(e)},ne=function(e){"Enter"===e.key&&(L.current=!1),null===d||void 0===d||d(e)},re=function(e){z(!0),null===i||void 0===i||i(e)},oe=function(e){L.current&&(L.current=!1),z(!1),null===a||void 0===a||a(e)},ae=Q&&"".concat(m,"-out-of-range");return e.createElement(vu,s({},M,{prefixCls:m,className:b()(w,ae),handleReset:function(e){W(""),D(),A.current&&pu(A.current,e,o)},value:V,focused:T,triggerFocus:D,suffix:function(){var t=Number(K)>0;if(C||G.show){var n=G.showFormatter?G.showFormatter({value:V,count:Y,maxLength:K}):"".concat(Y).concat(t?" / ".concat(K):"");return e.createElement(e.Fragment,null,G.show&&e.createElement("span",{className:b()("".concat(m,"-show-count-suffix"),g({},"".concat(m,"-show-count-has-suffix"),!!C),null===j||void 0===j?void 0:j.count),style:ie({},null===I||void 0===I?void 0:I.count)},n),C)}return null}(),disabled:h,classes:O,classNames:j,styles:I,ref:B}),function(){var n=nn(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return e.createElement("input",s({autoComplete:r},n,{onChange:J,onFocus:re,onBlur:oe,onKeyDown:te,onKeyUp:ne,className:b()(m,g({},"".concat(m,"-disabled"),h),null===j||void 0===j?void 0:j.input),style:null===I||void 0===I?void 0:I.input,ref:A,size:y,type:k,onCompositionStart:function(e){_.current=!0,null===P||void 0===P||P(e)},onCompositionEnd:ee}))}())});const xu=wu;var Cu,Su=["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"],$u={};function Eu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Cu||((Cu=document.createElement("textarea")).setAttribute("tab-index","-1"),Cu.setAttribute("aria-hidden","true"),Cu.setAttribute("name","hiddenTextarea"),document.body.appendChild(Cu)),e.getAttribute("wrap")?Cu.setAttribute("wrap",e.getAttribute("wrap")):Cu.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&$u[n])return $u[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Su.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&($u[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Cu.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),Cu.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=Cu.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){Cu.value=" ";var p=Cu.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:c,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var ku=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ou=e.forwardRef(function(t,n){var r=t,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,u=r.className,d=r.style,m=r.disabled,h=r.onChange,y=(r.onInternalAutoSize,v(r,ku)),w=f(tn(i,{value:a,postState:function(e){return null!==e&&void 0!==e?e:""}}),2),x=w[0],C=w[1],S=e.useRef();e.useImperativeHandle(n,function(){return{textArea:S.current}});var $=f(e.useMemo(function(){return l&&"object"===p(l)?[l.minRows,l.maxRows]:[]},[l]),2),E=$[0],k=$[1],O=!!l,j=f(e.useState(2),2),I=j[0],P=j[1],N=f(e.useState(),2),M=N[0],R=N[1],T=function(){P(0)};Qt(function(){O&&T()},[a,E,k,O]),Qt(function(){if(0===I)P(1);else if(1===I){var e=Eu(S.current,!1,E,k);P(2),R(e)}else!function(){try{if(document.activeElement===S.current){var e=S.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;S.current.setSelectionRange(t,n),S.current.scrollTop=r}}catch(Ym){}}()},[I]);var z=e.useRef(),_=function(){Cr.cancel(z.current)};e.useEffect(function(){return _},[]);var L=O?M:null,A=ie(ie({},d),L);return 0!==I&&1!==I||(A.overflowY="hidden",A.overflowX="hidden"),e.createElement(Ut,{onResize:function(e){2===I&&(null===c||void 0===c||c(e),l&&(_(),z.current=Cr(function(){T()})))},disabled:!(l||c)},e.createElement("textarea",s({},y,{ref:S,style:A,className:b()(o,u,g({},"".concat(o,"-disabled"),m)),disabled:m,value:x,onChange:function(e){C(e.target.value),null===h||void 0===h||h(e)}})))});const ju=Ou;var Iu=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Pu=e.forwardRef(function(t,n){var r,o=t.defaultValue,i=t.value,a=t.onFocus,c=t.onBlur,u=t.onChange,d=t.allowClear,p=t.maxLength,m=t.onCompositionStart,h=t.onCompositionEnd,y=t.suffix,w=t.prefixCls,x=void 0===w?"rc-textarea":w,C=t.showCount,S=t.count,$=t.className,E=t.style,k=t.disabled,O=t.hidden,j=t.classNames,I=t.styles,P=t.onResize,N=t.onClear,M=t.onPressEnter,R=t.readOnly,T=t.autoSize,z=t.onKeyDown,_=v(t,Iu),L=f(tn(o,{value:i,defaultValue:o}),2),A=L[0],B=L[1],D=void 0===A||null===A?"":String(A),F=f(e.useState(!1),2),H=F[0],W=F[1],V=e.useRef(!1),X=f(e.useState(null),2),q=X[0],U=X[1],G=(0,e.useRef)(null),K=(0,e.useRef)(null),Y=function(){var e;return null===(e=K.current)||void 0===e?void 0:e.textArea},Q=function(){Y().focus()};(0,e.useImperativeHandle)(n,function(){var e;return{resizableTextArea:K.current,focus:Q,blur:function(){Y().blur()},nativeElement:(null===(e=G.current)||void 0===e?void 0:e.nativeElement)||Y()}}),(0,e.useEffect)(function(){W(function(e){return!k&&e})},[k]);var Z=f(e.useState(null),2),J=Z[0],ee=Z[1];e.useEffect(function(){var e;J&&(e=Y()).setSelectionRange.apply(e,l(J))},[J]);var te,ne=bu(S,C),re=null!==(r=ne.max)&&void 0!==r?r:p,oe=Number(re)>0,ae=ne.strategy(D),le=!!re&&ae>re,se=function(e,t){var n=t;!V.current&&ne.exceedFormatter&&ne.max&&ne.strategy(t)>ne.max&&t!==(n=ne.exceedFormatter(t,{max:ne.max}))&&ee([Y().selectionStart||0,Y().selectionEnd||0]),B(n),pu(e.currentTarget,e,u,n)},ce=y;ne.show&&(te=ne.showFormatter?ne.showFormatter({value:D,count:ae,maxLength:re}):"".concat(ae).concat(oe?" / ".concat(re):""),ce=e.createElement(e.Fragment,null,ce,e.createElement("span",{className:b()("".concat(x,"-data-count"),null===j||void 0===j?void 0:j.count),style:null===I||void 0===I?void 0:I.count},te)));var ue=!T&&!C&&!d;return e.createElement(vu,{ref:G,value:D,allowClear:d,handleReset:function(e){B(""),Q(),pu(Y(),e,u)},suffix:ce,prefixCls:x,classNames:ie(ie({},j),{},{affixWrapper:b()(null===j||void 0===j?void 0:j.affixWrapper,g(g({},"".concat(x,"-show-count"),C),"".concat(x,"-textarea-allow-clear"),d))}),disabled:k,focused:H,className:b()($,le&&"".concat(x,"-out-of-range")),style:ie(ie({},E),q&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof te?te:void 0}},hidden:O,readOnly:R,onClear:N},e.createElement(ju,s({},_,{autoSize:T,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null===z||void 0===z||z(e)},onChange:function(e){se(e,e.target.value)},onFocus:function(e){W(!0),null===a||void 0===a||a(e)},onBlur:function(e){W(!1),null===c||void 0===c||c(e)},onCompositionStart:function(e){V.current=!0,null===m||void 0===m||m(e)},onCompositionEnd:function(e){V.current=!1,se(e,e.currentTarget.value),null===h||void 0===h||h(e)},className:b()(null===j||void 0===j?void 0:j.textarea),style:ie(ie({},null===I||void 0===I?void 0:I.textarea),{},{resize:null===E||void 0===E?void 0:E.resize}),disabled:k,prefixCls:x,onResize:function(e){var t;null===P||void 0===P||P(e),null!==(t=Y())&&void 0!==t&&t.style.height&&U(!0)},ref:K,readOnly:R})))});const Nu=Pu;const Mu={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"};var Ru=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Mu}))};const Tu=e.forwardRef(Ru),zu=t=>{let n;return"object"===typeof t&&(null===t||void 0===t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Tu,null)}),n};function _u(e,t,n){return b()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Lu=(e,t)=>t||e,Au=e.createContext(!1),Bu=t=>{let{children:n,disabled:r}=t;const o=e.useContext(Au);return e.createElement(Au.Provider,{value:null!==r&&void 0!==r?r:o},n)},Du=Au,Fu=e=>{const[,,,,t]=Vs();return t?`${e}-css-var`:""},Hu=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:l}=e.useContext(cn),s=e.useContext(Zi),c=null===l||void 0===l?void 0:l.variant;let u;u="undefined"!==typeof n?n:!1===r?"borderless":null!==(i=null!==(o=null!==s&&void 0!==s?s:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,sn.includes(u)]};function Wu(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Vu(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Wu(e,r,t)),Vu(n,r,t))}}function qu(e){return rs(e,{inputAffixPadding:e.paddingXXS})}const Uu=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:x,inputFontSizeSM:C}=e,S=w||n,$=C||S,E=x||l,k=Math.round((t-S*r)/2*10)/10-o,O=Math.round((i-$*r)/2*10)/10-o,j=Math.ceil((a-E*s)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(j,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:E,inputFontSizeSM:$}},Gu=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ku=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Gu(rs(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Yu=(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}}),Qu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Zu=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yu(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ku(e))}),Qu(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Qu(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Ju=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ed=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Ju(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Ju(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ku(e))}})}),td=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},nd=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null===t||void 0===t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},rd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},nd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),od=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ku(e))}),rd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),id=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ad=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},id(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),id(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:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ld=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Ea(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),sd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ld(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`}}),cd=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ld(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"}}),sd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),sd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ud=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Ea(t)} ${Ea(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},dd=e=>({padding:`${Ea(e.paddingBlockSM)} ${Ea(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),fd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ea(e.paddingBlock)} ${Ea(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"&-lg":Object.assign({},ud(e)),"&-sm":Object.assign({},dd(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),pd=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},ud(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},dd(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ea(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ea(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ea(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ea(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ea(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${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},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},md=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gs(e)),fd(e)),Zu(e)),od(e)),td(e)),cd(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},gd=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ea(e.inputAffixPadding)}`}}}},vd=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},fd(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),gd(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},hd=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},gs(e)),pd(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},ed(e)),ad(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}}})})}},bd=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},yd=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},wd=Xs(["Input","Shared"],e=>{const t=rs(e,qu(e));return[md(t),vd(t)]},Uu,{resetFont:!1}),xd=Xs(["Input","Component"],e=>{const t=rs(e,qu(e));return[hd(t),bd(t),yd(t),Xu(t)]},Uu,{resetFont:!1}),Cd=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{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}}}}}},Sd=Xs(["Input","TextArea"],e=>{const t=rs(e,qu(e));return[Cd(t)]},Uu,{resetFont:!1});var $d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ed=(0,e.forwardRef)((t,n)=>{var r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:m,variant:g,showCount:v,onMouseDown:h,onResize:y}=t,w=$d(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:x,direction:C,allowClear:S,autoComplete:$,className:E,style:k,classNames:O,styles:j}=fn("textArea"),I=e.useContext(Du),P=null!==l&&void 0!==l?l:I,{status:N,hasFeedback:M,feedbackIcon:R}=e.useContext(Yi),T=Lu(N,s),z=e.useRef(null);e.useImperativeHandle(n,()=>{var e;return{resizableTextArea:null===(e=z.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;mu(null===(n=null===(t=z.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=z.current)||void 0===e?void 0:e.blur()}}});const _=x("input",o),L=Fu(_),[A,B,D]=wd(_,d),[F]=Sd(_,L),{compactSize:H,compactItemClassnames:W}=ec(_,C),V=na(e=>{var t;return null!==(t=null!==a&&void 0!==a?a:H)&&void 0!==t?t:e}),[X,q]=Hu("textArea",g,i),U=zu(null!==c&&void 0!==c?c:S),[G,K]=e.useState(!1),[Y,Q]=e.useState(!1);return A(F(e.createElement(Nu,Object.assign({autoComplete:$},w,{style:Object.assign(Object.assign({},k),p),styles:Object.assign(Object.assign({},j),m),disabled:P,allowClear:U,className:b()(D,L,f,d,W,E,Y&&`${_}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:b()({[`${_}-sm`]:"small"===V,[`${_}-lg`]:"large"===V},B,null===u||void 0===u?void 0:u.textarea,O.textarea,G&&`${_}-mouse-active`),variant:b()({[`${_}-${X}`]:q},_u(_,T)),affixWrapper:b()(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:"rtl"===C,[`${_}-affix-wrapper-sm`]:"small"===V,[`${_}-affix-wrapper-lg`]:"large"===V,[`${_}-textarea-show-count`]:v||(null===(r=t.count)||void 0===r?void 0:r.show)},B)}),prefixCls:_,suffix:M&&e.createElement("span",{className:`${_}-textarea-suffix`},R),showCount:v,ref:z,onResize:e=>{var t,n;if(null===y||void 0===y||y(e),G&&"function"===typeof getComputedStyle){const e=null===(n=null===(t=z.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Q(!0)}},onMouseDown:e=>{K(!0),null===h||void 0===h||h(e);const t=()=>{K(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),kd=Ed,Od=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},jd=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},ys(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Id=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:R[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Pd=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Ea(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Nd=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Md=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Od(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Id(e)),jd(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},ys(e)),{marginInlineStart:e.marginXXS})}),Pd(e)),Nd(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},Rd=Xs("Typography",e=>[Md(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Td=t=>{const{prefixCls:n,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=e.createElement(cu,null)}=t,g=e.useRef(null),v=e.useRef(!1),h=e.useRef(null),[y,w]=e.useState(c);e.useEffect(()=>{w(c)},[c]),e.useEffect(()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const x=()=>{u(y.trim())},[C,S,$]=Rd(n),E=b()(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${p}`]:!!p},o,S,$);return C(e.createElement("div",{className:E,style:i},e.createElement(kd,{ref:g,maxLength:l,value:y,onChange:e=>{let{target:t}=e;w(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(h.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;h.current!==t||v.current||n||r||o||i||(t===du.ENTER?(x(),null===f||void 0===f||f()):t===du.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{x()},"aria-label":r,rows:1,autoSize:s}),null!==m?jc(m,{className:`${n}-edit-content-confirm`}):null))};var zd=n(270),_d=n.n(zd);const Ld=function(e){return!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||void 0!==e&&null!==e?Array.isArray(e)?e:[e]:[]};var Ad=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(Ym){i(Ym)}}function l(e){try{s(r.throw(e))}catch(Ym){i(Ym)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};const Bd=t=>{let{copyConfig:n,children:r}=t;const[o,i]=e.useState(!1),[a,l]=e.useState(!1),s=e.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};n.format&&(u.format=n.format),e.useEffect(()=>c,[]);const d=Zt(e=>Ad(void 0,void 0,void 0,function*(){var t;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),l(!0);try{const o="function"===typeof n.text?yield n.text():n.text;_d()(o||Ld(r,!0).join("")||"",u),l(!1),i(!0),c(),s.current=setTimeout(()=>{i(!1)},3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(o){throw l(!1),o}}));return{copied:o,copyLoading:a,onClick:d}};function Dd(t,n){return e.useMemo(()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"===typeof t?t:null)]},[t])}const Fd=t=>{const n=(0,e.useRef)(void 0);return(0,e.useEffect)(()=>{n.current=t}),n.current},Hd=(t,n,r)=>(0,e.useMemo)(()=>!0===t?{title:null!==n&&void 0!==n?n:r}:(0,e.isValidElement)(t)?{title:t}:"object"===typeof t?Object.assign({title:null!==n&&void 0!==n?n:r},t):{title:t},[t,n,r]);var Wd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vd=e.forwardRef((t,n)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:s,direction:c,style:u}=t,d=Wd(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,className:m,style:g}=fn("typography"),v=null!==c&&void 0!==c?c:p,h=l?nt(n,l):n,y=f("typography",r);const[w,x,C]=Rd(y),S=b()(y,m,{[`${y}-rtl`]:"rtl"===v},i,a,x,C),$=Object.assign(Object.assign({},g),u);return w(e.createElement(o,Object.assign({className:S,style:$,ref:h},d),s))});const Xd=Vd;const qd={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"};var Ud=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:qd}))};const Gd=e.forwardRef(Ud);const Kd={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"};var Yd=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Kd}))};const Qd=e.forwardRef(Yd);const Zd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var Jd=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Zd}))};const ef=e.forwardRef(Jd);function tf(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function nf(e,t,n){return!0===e||void 0===e?t:e||n&&t}const rf=e=>["string","number"].includes(typeof e),of=t=>{let{prefixCls:n,copied:r,locale:o,iconOnly:i,tooltips:a,icon:l,tabIndex:s,onCopy:c,loading:u}=t;const d=tf(a),f=tf(l),{copied:p,copy:m}=null!==o&&void 0!==o?o:{},g=r?p:m,v=nf(d[r?1:0],g),h="string"===typeof v?v:g;return e.createElement(au,{title:v},e.createElement("button",{type:"button",className:b()(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:i}),onClick:c,"aria-label":h,tabIndex:s},r?nf(f[1],e.createElement(Gd,null),!0):nf(f[0],u?e.createElement(ef,null):e.createElement(Qd,null),!0)))},af=e.forwardRef((t,n)=>{let{style:r,children:o}=t;const i=e.useRef(null);return e.useImperativeHandle(n,()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight})),e.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},o)});function lf(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(rf(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const sf=0,cf=4,uf={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function df(t){const{enableMeasure:n,width:r,text:o,children:i,rows:a,expanded:s,miscDeps:c,onEllipsis:u}=t,d=e.useMemo(()=>qe(o),[o]),f=e.useMemo(()=>(e=>e.reduce((e,t)=>e+(rf(t)?String(t).length:1),0))(d),[o]),p=e.useMemo(()=>i(d,!1),[o]),[m,g]=e.useState(null),v=e.useRef(null),h=e.useRef(null),b=e.useRef(null),y=e.useRef(null),w=e.useRef(null),[x,C]=e.useState(!1),[S,$]=e.useState(sf),[E,k]=e.useState(0),[O,j]=e.useState(null);Qt(()=>{$(n&&r&&f?1:sf)},[r,o,a,n,d]),Qt(()=>{var e,t,n,r;if(1===S){$(2);const e=h.current&&getComputedStyle(h.current).whiteSpace;j(e)}else if(2===S){const o=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());$(o?3:cf),g(o?[0,f]:null),C(o);const i=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,s=(null===(r=w.current)||void 0===r?void 0:r.getHeight())||0,c=Math.max(i,l+s);k(c+1),u(o)}},[S]);const I=m?Math.ceil((m[0]+m[1])/2):0;Qt(()=>{var e;const[t,n]=m||[0,0];if(t!==n){const r=((null===(e=v.current)||void 0===e?void 0:e.getHeight())||0)>E;let o=I;n-t===1&&(o=r?t:n),g(r?[t,o]:[o,n])}},[m,I]);const P=e.useMemo(()=>{if(!n)return i(d,!1);if(3!==S||!m||m[0]!==m[1]){const t=i(d,!1);return[cf,sf].includes(S)?t:e.createElement("span",{style:Object.assign(Object.assign({},uf),{WebkitLineClamp:a})},t)}return i(s?d:lf(d,m[0]),x)},[s,S,m,d].concat(l(c))),N={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,P,2===S&&e.createElement(e.Fragment,null,e.createElement(af,{style:Object.assign(Object.assign(Object.assign({},N),uf),{WebkitLineClamp:a}),ref:b},p),e.createElement(af,{style:Object.assign(Object.assign(Object.assign({},N),uf),{WebkitLineClamp:a-1}),ref:y},p),e.createElement(af,{style:Object.assign(Object.assign(Object.assign({},N),uf),{WebkitLineClamp:1}),ref:w},i([],!0))),3===S&&m&&m[0]!==m[1]&&e.createElement(af,{style:Object.assign(Object.assign({},N),{top:400}),ref:v},i(lf(d,I),!0)),1===S&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const ff=t=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:i}=t;return(null===i||void 0===i?void 0:i.title)&&n?e.createElement(au,Object.assign({open:!!r&&void 0},i),o):o};var pf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mf=["delete","mark","code","underline","strong","keyboard","italic"],gf=e.forwardRef((t,n)=>{var r;const{prefixCls:o,className:i,style:a,type:s,disabled:c,children:u,ellipsis:d,editable:f,copyable:p,component:m,title:g}=t,v=pf(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:h,direction:y}=e.useContext(cn),[w]=wn("Text"),x=e.useRef(null),C=e.useRef(null),S=h("typography",o),$=nn(v,mf),[E,k]=Dd(f),[O,j]=tn(!1,{value:k.editing}),{triggerType:I=["icon"]}=k,P=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),j(e)},N=Fd(O);Qt(()=>{var e;!O&&N&&(null===(e=C.current)||void 0===e||e.focus())},[O]);const M=e=>{null===e||void 0===e||e.preventDefault(),P(!0)},R=e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),P(!1)},T=()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),P(!1)},[z,_]=Dd(p),{copied:L,copyLoading:A,onClick:B}=Bd({copyConfig:_,children:u}),[D,F]=e.useState(!1),[H,W]=e.useState(!1),[V,X]=e.useState(!1),[q,U]=e.useState(!1),[G,K]=e.useState(!0),[Y,Q]=Dd(d,{expandable:!1,symbol:e=>e?null===w||void 0===w?void 0:w.collapse:null===w||void 0===w?void 0:w.expand}),[Z,J]=tn(Q.defaultExpanded||!1,{value:Q.expanded}),ee=Y&&(!Z||"collapsible"===Q.expandable),{rows:te=1}=Q,ne=e.useMemo(()=>ee&&(void 0!==Q.suffix||Q.onEllipsis||Q.expandable||E||z),[ee,Q,E,z]);Qt(()=>{Y&&!ne&&(F(on("webkitLineClamp")),W(on("textOverflow")))},[ne,Y]);const[re,oe]=e.useState(ee),ie=e.useMemo(()=>!ne&&(1===te?H:D),[ne,H,D]);Qt(()=>{oe(ie&&ee)},[ie,ee]);const ae=ee&&(re?q:V),le=ee&&1===te&&re,se=ee&&te>1&&re,[ce,ue]=e.useState(0),de=e=>{var t;X(e),V!==e&&(null===(t=Q.onEllipsis)||void 0===t||t.call(Q,e))};e.useEffect(()=>{const e=x.current;if(Y&&re&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);q!==t&&U(t)}},[Y,re,u,se,G,ce]),e.useEffect(()=>{const e=x.current;if("undefined"===typeof IntersectionObserver||!e||!re||!ee)return;const t=new IntersectionObserver(()=>{K(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[re,ee]);const fe=Hd(Q.tooltip,k.text,u),pe=e.useMemo(()=>{if(Y&&!re)return[k.text,u,g,fe.title].find(rf)},[Y,re,g,fe.title,ae]);if(O)return e.createElement(Td,{value:null!==(r=k.text)&&void 0!==r?r:"string"===typeof u?u:"",onSave:R,onCancel:T,onEnd:k.onEnd,prefixCls:S,className:i,style:a,direction:y,component:m,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const me=()=>{const{expandable:t,symbol:n}=Q;return t?e.createElement("button",{type:"button",key:"expand",className:`${S}-${Z?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;J(t.expanded),null===(n=Q.onExpand)||void 0===n||n.call(Q,e,t)})(e,{expanded:!Z}),"aria-label":Z?w.collapse:null===w||void 0===w?void 0:w.expand},"function"===typeof n?n(Z):n):null},ge=()=>{if(!E)return;const{icon:t,tooltip:n,tabIndex:r}=k,o=qe(n)[0]||(null===w||void 0===w?void 0:w.edit),i="string"===typeof o?o:"";return I.includes("icon")?e.createElement(au,{key:"edit",title:!1===n?"":o},e.createElement("button",{type:"button",ref:C,className:`${S}-edit`,onClick:M,"aria-label":i,tabIndex:r},t||e.createElement(Fe,{role:"button"}))):null},ve=t=>[t&&me(),ge(),z?e.createElement(of,Object.assign({key:"copy"},_,{prefixCls:S,copied:L,locale:w,onCopy:B,loading:A,iconOnly:null===u||void 0===u})):null];return e.createElement(Ut,{onResize:e=>{let{offsetWidth:t}=e;ue(t)},disabled:!ee},r=>e.createElement(ff,{tooltipProps:fe,enableEllipsis:ee,isEllipsis:ae},e.createElement(Xd,Object.assign({className:b()({[`${S}-${s}`]:s,[`${S}-disabled`]:c,[`${S}-ellipsis`]:Y,[`${S}-ellipsis-single-line`]:le,[`${S}-ellipsis-multiple-line`]:se},i),prefixCls:o,style:Object.assign(Object.assign({},a),{WebkitLineClamp:se?te:void 0}),component:m,ref:nt(r,x,n),direction:y,onClick:I.includes("text")?M:void 0,"aria-label":null===pe||void 0===pe?void 0:pe.toString(),title:g},$),e.createElement(df,{enableMeasure:ee&&!re,text:u,rows:te,width:ce,onEllipsis:de,expanded:Z,miscDeps:[L,Z,A,E,z,w].concat(l(mf.map(e=>t[e])))},(n,r)=>function(t,n){let{mark:r,code:o,underline:i,delete:a,strong:l,keyboard:s,italic:c}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",r),d("kbd",s),d("i",c),u}(t,e.createElement(e.Fragment,null,n.length>0&&r&&!Z&&pe?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!Z&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Q.suffix,ve(t)])(r)))))))}),vf=gf;var hf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bf=e.forwardRef((t,n)=>{var{ellipsis:r,rel:o}=t,i=hf(t,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,e.createElement(vf,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))}),yf=e.forwardRef((t,n)=>e.createElement(vf,Object.assign({ref:n},t,{component:"div"})));var wf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xf=(t,n)=>{var{ellipsis:r}=t,o=wf(t,["ellipsis"]);const i=e.useMemo(()=>r&&"object"===typeof r?nn(r,["expandable","rows"]):r,[r]);return e.createElement(vf,Object.assign({ref:n},o,{ellipsis:i,component:"span"}))},Cf=e.forwardRef(xf);var Sf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $f=[1,2,3,4,5],Ef=e.forwardRef((t,n)=>{const{level:r=1}=t,o=Sf(t,["level"]);const i=$f.includes(r)?`h${r}`:"h1";return e.createElement(vf,Object.assign({ref:n},o,{component:i}))}),kf=Xd;kf.Text=Cf,kf.Link=bf,kf.Title=Ef,kf.Paragraph=yf;const Of=kf,jf=e.createContext({}),If=e.createContext({message:{},notification:{},modal:{}}),Pf=(0,e.createContext)(void 0);let Nf=Object.assign({},yn.Modal),Mf=[];const Rf=()=>Mf.reduce((e,t)=>Object.assign(Object.assign({},e),t),yn.Modal);const Tf=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;e.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return Mf.push(t),Nf=Rf(),()=>{Mf=Mf.filter(e=>e!==t),Nf=Rf()}}Nf=Object.assign({},yn.Modal)}(null===n||void 0===n?void 0:n.Modal);return e},[n]);const i=e.useMemo(()=>Object.assign(Object.assign({},n),{exist:!0}),[n]);return e.createElement(pn.Provider,{value:i},r)},zf=`-ant-${Date.now()}-${Math.random()}`;function _f(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new S(e),i=j(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new S(t.primaryColor),i=j(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new S(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);ae()&&he(n,`${zf}-dynamic-theme`)}const Lf=function(){return{componentDisabled:(0,e.useContext)(Du),componentSize:(0,e.useContext)(ta)}},Af=Object.assign({},t),{useId:Bf}=Af,Df="undefined"===typeof Bf?()=>"":Bf;const Ff=e.createContext(!0);function Hf(t){const n=e.useContext(Ff),{children:r}=t,[,o]=Vs(),{motion:i}=o,a=e.useRef(!1);return a.current||(a.current=n!==i),a.current?e.createElement(Ff.Provider,{value:i},e.createElement(An,{motion:i},r)):r}const Wf=()=>null,Vf=(e,t)=>{const[n,r]=Vs();return Dl({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},()=>[bs(e)])};var Xf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qf=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Uf,Gf,Kf,Yf;function Qf(){return Uf||an}function Zf(){return Gf||ln}const Jf=()=>({getPrefixCls:(e,t)=>t||(e?`${Qf()}-${e}`:Qf()),getIconPrefixCls:Zf,getRootPrefixCls:()=>Uf||Qf(),getTheme:()=>Kf,holderRender:Yf}),ep=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:h,parentContext:b,iconPrefixCls:y,theme:w,componentDisabled:x,segmented:C,statistic:S,spin:$,calendar:E,carousel:k,cascader:O,collapse:j,typography:I,checkbox:P,descriptions:N,divider:M,drawer:R,skeleton:T,steps:z,image:_,layout:L,list:A,mentions:B,modal:D,progress:F,result:H,slider:W,breadcrumb:V,menu:X,pagination:q,input:U,textArea:G,empty:K,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:ie,card:ae,tabs:le,timeline:se,timePicker:ce,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:ve,wave:he,dropdown:be,warning:ye,tour:we,tooltip:xe,popover:Ce,popconfirm:Se,floatButtonGroup:$e,variant:Ee,inputNumber:ke,treeSelect:Oe}=t,je=e.useCallback((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||b.getPrefixCls("");return e?`${o}-${e}`:o},[b.getPrefixCls,t.prefixCls]),Ie=y||b.iconPrefixCls||ln,Pe=r||b.csp;Vf(Ie,Pe);const Ne=function(e,t,n){var r;Nc("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Cs),{hashed:null!==(r=null===t||void 0===t?void 0:t.hashed)&&void 0!==r?r:Cs.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),a=Df();return Je(()=>{var r,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])});const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof i.cssVar?i.cssVar:{}),"object"===typeof o.cssVar?o.cssVar:{}),{key:"object"===typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>{const r=t[n];return!No(e,r,!0)}))}(w,b.theme,{prefixCls:je("")});const Me={csp:Pe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:s||h,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!==g&&void 0!==g?g:m,popupOverflow:v,getPrefixCls:je,iconPrefixCls:Ie,theme:Ne,segmented:C,statistic:S,spin:$,calendar:E,carousel:k,cascader:O,collapse:j,typography:I,checkbox:P,descriptions:N,divider:M,drawer:R,skeleton:T,steps:z,image:_,input:U,textArea:G,layout:L,list:A,mentions:B,modal:D,progress:F,result:H,slider:W,breadcrumb:V,menu:X,pagination:q,empty:K,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:ie,card:ae,tabs:le,timeline:se,timePicker:ce,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:ve,wave:he,dropdown:be,warning:ye,tour:we,tooltip:xe,popover:Ce,popconfirm:Se,floatButtonGroup:$e,variant:Ee,inputNumber:ke,treeSelect:Oe};const Re=Object.assign({},b);Object.keys(Me).forEach(e=>{void 0!==Me[e]&&(Re[e]=Me[e])}),qf.forEach(e=>{const n=t[e];n&&(Re[e]=n)}),"undefined"!==typeof o&&(Re.button=Object.assign({autoInsertSpace:o},Re.button));const Te=Je(()=>Re,Re,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:ze}=e.useContext(fa),_e=e.useMemo(()=>({prefixCls:Ie,csp:Pe,layer:ze?"antd":void 0}),[Ie,Pe,ze]);let Le=e.createElement(e.Fragment,null,e.createElement(Wf,{dropdownMatchSelectWidth:m}),n);const Ae=e.useMemo(()=>{var e,t,n,r;return qn((null===(e=yn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Te.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Te.form)||void 0===r?void 0:r.validateMessages)||{},(null===l||void 0===l?void 0:l.validateMessages)||{})},[Te,null===l||void 0===l?void 0:l.validateMessages]);Object.keys(Ae).length>0&&(Le=e.createElement(Pf.Provider,{value:Ae},Le)),s&&(Le=e.createElement(Tf,{locale:s,_ANT_MARK__:"internalMark"},Le)),(Ie||Pe)&&(Le=e.createElement(re.Provider,{value:_e},Le)),c&&(Le=e.createElement(ea,{size:c},Le)),Le=e.createElement(Hf,null,Le);const Be=e.useMemo(()=>{const e=Ne||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Xf(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?ba(t):Ts,l={};Object.entries(r||{}).forEach(e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=ba(r.algorithm)),delete r.algorithm),l[t]=r});const s=Object.assign(Object.assign({},xs),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[Ne]);return w&&(Le=e.createElement(Ss.Provider,{value:Be},Le)),Te.warning&&(Le=e.createElement(Pc.Provider,{value:Te.warning},Le)),void 0!==x&&(Le=e.createElement(Bu,{disabled:x},Le)),e.createElement(cn.Provider,{value:Te},Le)},tp=t=>{const n=e.useContext(cn),r=e.useContext(pn);return e.createElement(ep,Object.assign({parentContext:n,legacyLocale:r},t))};tp.ConfigContext=cn,tp.SizeContext=ta,tp.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Uf=t),void 0!==n&&(Gf=n),"holderRender"in e&&(Yf=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?Kf=r:_f(Qf(),r))},tp.useConfig=Lf,Object.defineProperty(tp,"SizeContext",{get:()=>ta});const np=tp;var rp,op=ie({},Ge),ip=op.version,ap=op.render,lp=op.unmountComponentAtNode;try{Number((ip||"").split(".")[0])>=18&&(rp=op.createRoot)}catch(Ym){}function sp(e){var t=op.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===p(t)&&(t.usingClientEntryPoint=e)}var cp="__rc_react_root__";function up(e,t){rp?function(e,t){sp(!0);var n=t[cp]||rp(t);sp(!1),n.render(e),t[cp]=n}(e,t):function(e,t){null===ap||void 0===ap||ap(e,t)}(e,t)}function dp(e){return fp.apply(this,arguments)}function fp(){return(fp=Po(jo().mark(function e(t){return jo().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[cp])||void 0===e||e.unmount(),delete t[cp]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function pp(e){lp(e)}function mp(){return(mp=Po(jo().mark(function e(t){return jo().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===rp){e.next=2;break}return e.abrupt("return",dp(t));case 2:pp(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let gp=(e,t)=>(up(e,t),()=>function(e){return mp.apply(this,arguments)}(t));function vp(e){return e&&(gp=e),gp}const hp={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"};var bp=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:hp}))};const yp=e.forwardRef(bp);const wp={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"};var xp=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:wp}))};const Cp=e.forwardRef(xp);const Sp={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"};var $p=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Sp}))};const Ep=e.forwardRef($p);var kp="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Op(e,t){return 0===e.indexOf(t)}function jp(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:ie({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||Op(n,"aria-"))||t.data&&Op(n,"data-")||t.attr&&kp.includes(n))&&(r[n]=e[n])}),r}var Ip=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.style,i=t.className,a=t.duration,l=void 0===a?4.5:a,c=t.showProgress,u=t.pauseOnHover,d=void 0===u||u,m=t.eventKey,v=t.content,h=t.closable,y=t.closeIcon,w=void 0===y?"x":y,x=t.props,C=t.onClick,S=t.onNoticeClose,$=t.times,E=t.hovering,k=f(e.useState(!1),2),O=k[0],j=k[1],I=f(e.useState(0),2),P=I[0],N=I[1],M=f(e.useState(0),2),R=M[0],T=M[1],z=E||O,_=l>0&&c,L=function(){S(m)};e.useEffect(function(){if(!z&&l>0){var e=Date.now()-R,t=setTimeout(function(){L()},1e3*l-R);return function(){d&&clearTimeout(t),T(Date.now()-e)}}},[l,z,$]),e.useEffect(function(){if(!z&&_&&(d||0===R)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+R-t,o=Math.min(r/(1e3*l),1);N(100*o),o<1&&n()})}(),function(){d&&cancelAnimationFrame(e)}}},[l,R,z,_,$]);var A=e.useMemo(function(){return"object"===p(h)&&null!==h?h:h?{closeIcon:w}:{}},[h,w]),B=jp(A,!0),D=100-(!P||P<0?0:P>100?100:P),F="".concat(r,"-notice");return e.createElement("div",s({},x,{ref:n,className:b()(F,i,g({},"".concat(F,"-closable"),h)),style:o,onMouseEnter:function(e){var t;j(!0),null===x||void 0===x||null===(t=x.onMouseEnter)||void 0===t||t.call(x,e)},onMouseLeave:function(e){var t;j(!1),null===x||void 0===x||null===(t=x.onMouseLeave)||void 0===t||t.call(x,e)},onClick:C}),e.createElement("div",{className:"".concat(F,"-content")},v),h&&e.createElement("a",s({tabIndex:0,className:"".concat(F,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==du.ENTER||L()},"aria-label":"Close"},B,{onClick:function(e){e.preventDefault(),e.stopPropagation(),L()}}),A.closeIcon),_&&e.createElement("progress",{className:"".concat(F,"-progress"),max:"100",value:D},D+"%"))});const Pp=Ip;var Np=e.createContext({});const Mp=function(t){var n=t.children,r=t.classNames;return e.createElement(Np.Provider,{value:{classNames:r}},n)};const Rp=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===p(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]};var Tp=["className","style","classNames","styles"];const zp=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,c=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,p=t.stack,m=(0,e.useContext)(Np).classNames,h=(0,e.useRef)({}),y=f((0,e.useState)(null),2),w=y[0],x=y[1],C=f((0,e.useState)([]),2),S=C[0],$=C[1],E=n.map(function(e){return{config:e,key:String(e.key)}}),k=f(Rp(p),2),O=k[0],j=k[1],I=j.offset,P=j.threshold,N=j.gap,M=O&&(S.length>0||E.length<=P),R="function"===typeof c?c(r):c;return(0,e.useEffect)(function(){O&&S.length>1&&$(function(e){return e.filter(function(e){return E.some(function(t){var n=t.key;return e===n})})})},[S,E,O]),(0,e.useEffect)(function(){var e,t;O&&h.current[null===(e=E[E.length-1])||void 0===e?void 0:e.key]&&x(h.current[null===(t=E[E.length-1])||void 0===t?void 0:t.key])},[E,O]),e.createElement(Br,s({key:r,className:b()(o,"".concat(o,"-").concat(r),null===m||void 0===m?void 0:m.list,i,g(g({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),M)),style:a,keys:E,motionAppear:!0},R,{onAllRemoved:function(){u(r)}}),function(t,n){var i=t.config,a=t.className,c=t.style,u=t.index,f=i,p=f.key,g=f.times,y=String(p),x=i,C=x.className,k=x.style,j=x.classNames,P=x.styles,R=v(x,Tp),T=E.findIndex(function(e){return e.key===y}),z={};if(O){var _=E.length-1-(T>-1?T:u-1),L="top"===r||"bottom"===r?"-50%":"0";if(_>0){var A,B,D;z.height=M?null===(A=h.current[y])||void 0===A?void 0:A.offsetHeight:null===w||void 0===w?void 0:w.offsetHeight;for(var F=0,H=0;H<_;H++){var W;F+=(null===(W=h.current[E[E.length-1-H].key])||void 0===W?void 0:W.offsetHeight)+N}var V=(M?F:_*I)*(r.startsWith("top")?1:-1),X=!M&&null!==w&&void 0!==w&&w.offsetWidth&&null!==(B=h.current[y])&&void 0!==B&&B.offsetWidth?((null===w||void 0===w?void 0:w.offsetWidth)-2*I*(_<3?_:3))/(null===(D=h.current[y])||void 0===D?void 0:D.offsetWidth):1;z.transform="translate3d(".concat(L,", ").concat(V,"px, 0) scaleX(").concat(X,")")}else z.transform="translate3d(".concat(L,", 0, 0)")}return e.createElement("div",{ref:n,className:b()("".concat(o,"-notice-wrapper"),a,null===j||void 0===j?void 0:j.wrapper),style:ie(ie(ie({},c),z),null===P||void 0===P?void 0:P.wrapper),onMouseEnter:function(){return $(function(e){return e.includes(y)?e:[].concat(l(e),[y])})},onMouseLeave:function(){return $(function(e){return e.filter(function(e){return e!==y})})}},e.createElement(Pp,s({},R,{ref:function(e){T>-1?h.current[y]=e:delete h.current[y]},prefixCls:o,classNames:j,styles:P,className:b()(C,null===m||void 0===m?void 0:m.notice),style:k,times:g,key:p,eventKey:p,onNoticeClose:d,hovering:O&&S.length>0})))})};var _p=e.forwardRef(function(t,n){var r=t.prefixCls,o=void 0===r?"rc-notification":r,i=t.container,a=t.motion,s=t.maxCount,c=t.className,u=t.style,d=t.onAllRemoved,p=t.stack,m=t.renderNotifications,g=f(e.useState([]),2),v=g[0],h=g[1],b=function(e){var t,n=v.find(function(t){return t.key===e});null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),h(function(t){return t.filter(function(t){return t.key!==e})})};e.useImperativeHandle(n,function(){return{open:function(e){h(function(t){var n,r=l(t),o=r.findIndex(function(t){return t.key===e.key}),i=ie({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return s>0&&r.length>s&&(r=r.slice(-s)),r})},close:function(e){b(e)},destroy:function(){h([])}}});var y=f(e.useState({}),2),w=y[0],x=y[1];e.useEffect(function(){var e={};v.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(w).forEach(function(t){e[t]=e[t]||[]}),x(e)},[v]);var C=function(e){x(function(t){var n=ie({},t);return(n[e]||[]).length||delete n[e],n})},S=e.useRef(!1);if(e.useEffect(function(){Object.keys(w).length>0?S.current=!0:S.current&&(null===d||void 0===d||d(),S.current=!1)},[w]),!i)return null;var $=Object.keys(w);return(0,Ue.createPortal)(e.createElement(e.Fragment,null,$.map(function(t){var n=w[t],r=e.createElement(zp,{key:t,configList:n,placement:t,prefixCls:o,className:null===c||void 0===c?void 0:c(t),style:null===u||void 0===u?void 0:u(t),motion:a,onNoticeClose:b,onAllNoticeRemoved:C,stack:p});return m?m(r,{prefixCls:o,key:t}):r})),i)});const Lp=_p;var Ap=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Bp=function(){return document.body},Dp=0;function Fp(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getContainer,r=void 0===n?Bp:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,c=t.style,u=t.onAllRemoved,d=t.stack,p=t.renderNotifications,m=v(t,Ap),g=f(e.useState(),2),h=g[0],b=g[1],y=e.useRef(),w=e.createElement(Lp,{container:h,ref:y,prefixCls:i,motion:o,maxCount:a,className:s,style:c,onAllRemoved:u,stack:d,renderNotifications:p}),x=f(e.useState([]),2),C=x[0],S=x[1],$=Zt(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(m,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Dp),Dp+=1),S(function(e){return[].concat(l(e),[{type:"open",config:t}])})}),E=e.useMemo(function(){return{open:$,close:function(e){S(function(t){return[].concat(l(t),[{type:"close",key:e}])})},destroy:function(){S(function(e){return[].concat(l(e),[{type:"destroy"}])})}}},[]);return e.useEffect(function(){b(r())}),e.useEffect(function(){var e,t;y.current&&C.length&&(C.forEach(function(e){switch(e.type){case"open":y.current.open(e.config);break;case"close":y.current.close(e.key);break;case"destroy":y.current.destroy()}}),S(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!C.includes(e)})),t}))},[C]),[E,w]}const Hp=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:h}=e,b=`${t}-notice`,y=new Vl("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Vl("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:v,background:h,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},gs(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Wp=Xs("Message",e=>{const t=rs(e,{height:150});return[Hp(t)]},e=>({zIndexPopup:e.zIndexPopupBase+lc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var Vp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xp={info:e.createElement(Ep,null),success:e.createElement(yp,null),error:e.createElement(Tu,null),warning:e.createElement(Cp,null),loading:e.createElement(ef,null)},qp=t=>{let{prefixCls:n,type:r,icon:o,children:i}=t;return e.createElement("div",{className:b()(`${n}-custom-content`,`${n}-${r}`)},o||Xp[r],e.createElement("span",null,i))},Up=t=>{const{prefixCls:n,className:r,type:o,icon:i,content:a}=t,l=Vp(t,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=e.useContext(cn),c=n||s("message"),u=Fu(c),[d,f,p]=Wp(c,u);return d(e.createElement(Pp,Object.assign({},l,{prefixCls:c,className:b()(r,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:e.createElement(qp,{prefixCls:c,type:o,icon:i},a)})))};const Gp={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"};var Kp=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Gp}))};const Yp=e.forwardRef(Kp);function Qp(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null===t||void 0===t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Zp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jp=3,em=t=>{let{children:n,prefixCls:r}=t;const o=Fu(r),[i,a,l]=Wp(r,o);return i(e.createElement(Mp,{classNames:{list:b()(a,l,o)}},n))},tm=(t,n)=>{let{prefixCls:r,key:o}=n;return e.createElement(em,{prefixCls:r,key:o},t)},nm=e.forwardRef((t,n)=>{const{top:r,prefixCls:o,getContainer:i,maxCount:a,duration:l=Jp,rtl:s,transitionName:c,onAllRemoved:u}=t,{getPrefixCls:d,getPopupContainer:f,message:p,direction:m}=e.useContext(cn),g=o||d("message"),v=e.createElement("span",{className:`${g}-close-x`},e.createElement(Yp,{className:`${g}-close-icon`})),[h,y]=Fp({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!==r&&void 0!==r?r:8}),className:()=>b()({[`${g}-rtl`]:null!==s&&void 0!==s?s:"rtl"===m}),motion:()=>function(e,t){return{motionName:null!==t&&void 0!==t?t:`${e}-move-up`}}(g,c),closable:!1,closeIcon:v,duration:l,getContainer:()=>(null===i||void 0===i?void 0:i())||(null===f||void 0===f?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:tm});return e.useImperativeHandle(n,()=>Object.assign(Object.assign({},h),{prefixCls:g,message:p})),y});let rm=0;function om(t){const n=e.useRef(null),r=(Nc("Message"),e.useMemo(()=>{const t=e=>{var t;null===(t=n.current)||void 0===t||t.close(e)},r=r=>{if(!n.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=n.current,l=`${i}-notice`,{content:s,icon:c,type:u,key:d,className:f,style:p,onClose:m}=r,g=Zp(r,["content","icon","type","key","className","style","onClose"]);let v=d;return void 0!==v&&null!==v||(rm+=1,v=`antd-message-${rm}`),Qp(n=>(o(Object.assign(Object.assign({},g),{key:v,content:e.createElement(qp,{prefixCls:i,type:u,icon:c},s),placement:"top",className:b()(u&&`${l}-${u}`,f,null===a||void 0===a?void 0:a.className),style:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.style),p),onClose:()=>{null===m||void 0===m||m(),n()}})),()=>{t(v)}))},o={open:r,destroy:e=>{var r;void 0!==e?t(e):null===(r=n.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,n,o)=>{let i,a,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof n?l=n:(a=n,l=o);const s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(s)}}),o},[]));return[r,e.createElement(nm,Object.assign({key:"message-holder"},t,{ref:n}))]}function im(e){return om(e)}let am=null,lm=e=>e(),sm=[],cm={};function um(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=cm,i=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const dm=e.forwardRef((t,n)=>{const{messageConfig:r,sync:o}=t,{getPrefixCls:i}=(0,e.useContext)(cn),a=cm.prefixCls||i("message"),l=(0,e.useContext)(jf),[s,c]=om(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return e.useImperativeHandle(n,()=>{const e=Object.assign({},s);return Object.keys(e).forEach(t=>{e[t]=function(){o();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return s[t].apply(s,n)}}),{instance:e,sync:o}}),c}),fm=e.forwardRef((t,n)=>{const[r,o]=e.useState(um),i=()=>{o(um)};e.useEffect(i,[]);const a=Jf(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=e.createElement(dm,{ref:n,sync:i,messageConfig:r});return e.createElement(np,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)});function pm(){if(!am){const t=document.createDocumentFragment(),n={fragment:t};return am=n,void lm(()=>{vp()(e.createElement(fm,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then(()=>{!n.instance&&t&&(n.instance=t,n.sync=r,pm())})}}),t)})}am.instance&&(sm.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":lm(()=>{const t=am.instance.open(Object.assign(Object.assign({},cm),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":lm(()=>{null===am||void 0===am||am.instance.destroy(e.key)});break;default:lm(()=>{var n;const r=(n=am.instance)[t].apply(n,l(e.args));null===r||void 0===r||r.then(e.resolve),e.setCloseFn(r)})}}),sm=[])}const mm={open:function(e){const t=Qp(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return sm.push(r),()=>{n?lm(()=>{n()}):r.skipped=!0}});return pm(),t},destroy:e=>{sm.push({type:"destroy",key:e}),pm()},config:function(e){cm=Object.assign(Object.assign({},cm),e),lm(()=>{var e;null===(e=null===am||void 0===am?void 0:am.sync)||void 0===e||e.call(am)})},useMessage:im,_InternalPanelDoNotUseOrYouWillBeFired:Up};["success","info","warning","error","loading"].forEach(e=>{mm[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){Jf();const n=Qp(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return sm.push(o),()=>{r?lm(()=>{r()}):o.skipped=!0}});return pm(),n}(e,n)}});const gm=mm,vm=(e,t,n,r,o)=>({background:e,border:`${Ea(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),hm=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},gs(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},bm=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":vm(o,r,n,e,t),"&-info":vm(p,f,d,e,t),"&-warning":vm(l,a,i,e,t),"&-error":Object.assign(Object.assign({},vm(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},ym=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:Ea(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},wm=Xs("Alert",e=>[hm(e),bm(e),ym(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var xm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cm={success:yp,info:Ep,error:Tu,warning:Cp},Sm=t=>{const{icon:n,prefixCls:r,type:o}=t,i=Cm[o]||null;return n?Oc(n,e.createElement("span",{className:`${r}-icon`},n),()=>({className:b()(`${r}-icon`,n.props.className)})):e.createElement(i,{className:`${r}-icon`})},$m=t=>{const{isClosable:n,prefixCls:r,closeIcon:o,handleClose:i,ariaProps:a}=t,l=!0===o||void 0===o?e.createElement(Yp,null):o;return n?e.createElement("button",Object.assign({type:"button",onClick:i,className:`${r}-close-icon`,tabIndex:0},a),l):null},Em=e.forwardRef((t,n)=>{const{description:r,prefixCls:o,message:i,banner:a,className:l,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:m,closable:g,closeText:v,closeIcon:h,action:y,id:w}=t,x=xm(t,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,S]=e.useState(!1);const $=e.useRef(null);e.useImperativeHandle(n,()=>({nativeElement:$.current}));const{getPrefixCls:E,direction:k,closable:O,closeIcon:j,className:I,style:P}=fn("alert"),N=E("alert",o),[M,R,T]=wm(N),z=e=>{var n;S(!0),null===(n=t.onClose)||void 0===n||n.call(t,e)},_=e.useMemo(()=>void 0!==t.type?t.type:a?"warning":"info",[t.type,a]),L=e.useMemo(()=>!("object"!==typeof g||!g.closeIcon)||(!!v||("boolean"===typeof g?g:!1!==h&&null!==h&&void 0!==h||!!O)),[v,h,g,O]),A=!(!a||void 0!==m)||m,B=b()(N,`${N}-${_}`,{[`${N}-with-description`]:!!r,[`${N}-no-icon`]:!A,[`${N}-banner`]:!!a,[`${N}-rtl`]:"rtl"===k},I,l,s,T,R),D=jp(x,{aria:!0,data:!0}),F=e.useMemo(()=>"object"===typeof g&&g.closeIcon?g.closeIcon:v||(void 0!==h?h:"object"===typeof O&&O.closeIcon?O.closeIcon:j),[h,g,v,j]),H=e.useMemo(()=>{const e=null!==g&&void 0!==g?g:O;if("object"===typeof e){const{closeIcon:t}=e;return xm(e,["closeIcon"])}return{}},[g,O]);return M(e.createElement(Dr,{visible:!C,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:p},(n,o)=>{let{className:a,style:l}=n;return e.createElement("div",Object.assign({id:w,ref:nt($,o),"data-show":!C,className:b()(B,a),style:Object.assign(Object.assign(Object.assign({},P),c),l),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},D),A?e.createElement(Sm,{description:r,icon:t.icon,prefixCls:N,type:_}):null,e.createElement("div",{className:`${N}-content`},i?e.createElement("div",{className:`${N}-message`},i):null,r?e.createElement("div",{className:`${N}-description`},r):null),y?e.createElement("div",{className:`${N}-action`},y):null,e.createElement($m,{isClosable:L,prefixCls:N,closeIcon:F,handleClose:z,ariaProps:H}))}))});const km=Em;let Om=function(t){function n(){var e;return Mt(this,n),e=function(e,t,n){return t=Lt(t),Dt(e,At()?Reflect.construct(t,n||[],Lt(e).constructor):t.apply(e,n))}(this,n,arguments),e.state={error:void 0,info:{componentStack:""}},e}return _t(n,t),Tt(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:t,description:n,id:r,children:o}=this.props,{error:i,info:a}=this.state,l=(null===a||void 0===a?void 0:a.componentStack)||null,s="undefined"===typeof t?(i||"").toString():t,c="undefined"===typeof n?l:n;return i?e.createElement(km,{id:r,type:"error",message:s,description:e.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):o}}])}(e.Component);const jm=Om,Im=km;Im.ErrorBoundary=jm;const Pm=Im;function Nm(t){const[n,r]=e.useState(t);return e.useEffect(()=>{const e=setTimeout(()=>{r(t)},t.length?0:10);return()=>{clearTimeout(e)}},[t]),n}const Mm=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Rm=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Tm=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ea(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zm=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},_m=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},gs(e)),Tm(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zm(e,e.controlHeightSM)),"&-large":Object.assign({},zm(e,e.controlHeightLG))})}},Lm=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},gs(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:zc,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Am=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-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"}}}}},Bm=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Dm=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Fm=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Dm(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Hm=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:Dm(e)}},[`@media (max-width: ${Ea(e.screenXSMax)})`]:[Fm(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Dm(e)}}}],[`@media (max-width: ${Ea(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Dm(e)}}},[`@media (max-width: ${Ea(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Dm(e)}}},[`@media (max-width: ${Ea(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Dm(e)}}}}},Wm=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:Dm(e),[`@media (max-width: ${Ea(e.screenXSMax)})`]:[Fm(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Dm(e)}}],[`@media (max-width: ${Ea(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Dm(e)}},[`@media (max-width: ${Ea(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Dm(e)}},[`@media (max-width: ${Ea(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Dm(e)}}}},Vm=(e,t)=>rs(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Xm=Xs("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Vm(e,n);return[_m(r),Lm(r),Rm(r),Am(r,r.componentCls),Am(r,r.formItemCls),Bm(r),Hm(r),Wm(r),Mm(r),zc]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),qm=[];function Um(e,t,n){return{key:"string"===typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const Gm=t=>{let{help:n,helpStatus:r,errors:o=qm,warnings:i=qm,className:a,fieldId:s,onVisibleChanged:c}=t;const{prefixCls:u}=e.useContext(Ki),d=`${u}-item-explain`,f=Fu(u),[p,m,g]=Xm(u,f),v=e.useMemo(()=>vc(u),[u]),h=Nm(o),y=Nm(i),w=e.useMemo(()=>void 0!==n&&null!==n?[Um(n,"help",r)]:[].concat(l(h.map((e,t)=>Um(e,"error","error",t))),l(y.map((e,t)=>Um(e,"warning","warning",t)))),[n,r,h,y]),x=e.useMemo(()=>{const e={};return w.forEach(t=>{let{key:n}=t;e[n]=(e[n]||0)+1}),w.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[w]),C={};return s&&(C.id=`${s}_help`),p(e.createElement(Dr,{motionDeadline:v.motionDeadline,motionName:`${u}-show-help`,visible:!!x.length,onVisibleChanged:c},t=>{const{className:n,style:r}=t;return e.createElement("div",Object.assign({},C,{className:b()(d,n,g,f,a,m),style:r}),e.createElement(Br,Object.assign({keys:x},vc(u),{motionName:`${u}-show-help-item`,component:!1}),t=>{const{key:n,error:r,errorStatus:o,className:i,style:a}=t;return e.createElement("div",{key:n,className:b()(i,{[`${d}-${o}`]:o}),style:a},r)}))}))},Km=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Ym=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Qm=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ym(n.overflowY,t)||Ym(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Zm=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,Jm=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},eg=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Km(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;Km(m)&&d(m);){if(m=Jm(m),m===f){p.push(m);break}null!=m&&m===document.body&&Qm(m)&&!Qm(document.documentElement)||null!=m&&Qm(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,v=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:h,scrollY:b}=window,{height:y,width:w,top:x,right:C,bottom:S,left:$}=e.getBoundingClientRect(),{top:E,right:k,bottom:O,left:j}=(e=>{const 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);let I="start"===l||"nearest"===l?x-E:"end"===l?S+O:x+y/2-E+O,P="center"===s?$+w/2-j+k:"end"===s?C+k:$-j;const N=[];for(let M=0;M<p.length;M++){const e=p[M],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&$>=0&&S<=v&&C<=g&&(e===f&&!Qm(e)||x>=r&&S<=i&&$>=c&&C<=o))return N;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),k=parseInt(u.borderBottomWidth,10);let O=0,j=0;const R="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-k:0,z="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,_="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)O="start"===l?I:"end"===l?I-v:"nearest"===l?Zm(b,b+v,v,m,k,b+I,b+I+y,y):I-v/2,j="start"===s?P:"center"===s?P-g/2:"end"===s?P-g:Zm(h,h+g,g,d,E,h+P,h+P+w,w),O=Math.max(0,O+b),j=Math.max(0,j+h);else{O="start"===l?I-r-m:"end"===l?I-i+k+T:"nearest"===l?Zm(r,i,t,m,k+T,I,I+y,y):I-(r+t/2)+T/2,j="start"===s?P-c-d:"center"===s?P-(c+n/2)+R/2:"end"===s?P-o+E+R:Zm(c,o,n,d,E+R,P,P+w,w);const{scrollLeft:a,scrollTop:u}=e;O=0===_?0:Math.max(0,Math.min(u+O/_,e.scrollHeight-t/_+T)),j=0===z?0:Math.max(0,Math.min(a+j/z,e.scrollWidth-n/z+R)),I+=u-O,P+=a-j}N.push({el:e,top:O,left:j})}return N};function tg(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;const n=(e=>{const 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=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(eg(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of eg(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}const ng=["parentNode"];function rg(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function og(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return ng.includes(n)?`form_item_${n}`:n}function ig(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var ag=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function lg(e){return rg(e).join("_")}function sg(e,t){const n=Ye(t.getFieldInstance(e));if(n)return n;const r=og(rg(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function cg(t){const[n]=zi(),r=e.useRef({}),o=e.useMemo(()=>null!==t&&void 0!==t?t:Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:e=>t=>{const n=lg(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,r=ag(t,["focus"]),i=sg(e,o);i&&(tg(i,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&o.focusField(e))},focusField:e=>{var t,n;const r=o.getFieldInstance(e);"function"===typeof(null===r||void 0===r?void 0:r.focus)?r.focus():null===(n=null===(t=sg(e,o))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=lg(e);return r.current[t]}}),[t,n]);return[o]}var ug=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dg=(t,n)=>{const r=e.useContext(Du),{getPrefixCls:o,direction:i,requiredMark:a,colon:l,scrollToFirstError:s,className:c,style:u}=fn("form"),{prefixCls:d,className:f,rootClassName:p,size:m,disabled:g=r,form:v,colon:h,labelAlign:y,labelWrap:w,labelCol:x,wrapperCol:C,hideRequiredMark:S,layout:$="horizontal",scrollToFirstError:E,requiredMark:k,onFinishFailed:O,name:j,style:I,feedbackIcons:P,variant:N}=t,M=ug(t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=na(m),T=e.useContext(Pf);const z=e.useMemo(()=>void 0!==k?k:!S&&(void 0===a||a),[S,k,a]),_=null!==h&&void 0!==h?h:l,L=o("form",d),A=Fu(L),[B,D,F]=Xm(L,A),H=b()(L,`${L}-${$}`,{[`${L}-hide-required-mark`]:!1===z,[`${L}-rtl`]:"rtl"===i,[`${L}-${R}`]:R},F,A,D,c,f,p),[W]=cg(v),{__INTERNAL__:V}=W;V.name=j;const X=e.useMemo(()=>({name:j,labelAlign:y,labelCol:x,labelWrap:w,wrapperCol:C,vertical:"vertical"===$,colon:_,requiredMark:z,itemRef:V.itemRef,form:W,feedbackIcons:P}),[j,y,x,C,$,_,z,W,P]),q=e.useRef(null);e.useImperativeHandle(n,()=>{var e;return Object.assign(Object.assign({},W),{nativeElement:null===(e=q.current)||void 0===e?void 0:e.nativeElement})});const U=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n=Object.assign(Object.assign({},n),e)),W.scrollToField(t,n)}};return B(e.createElement(Zi.Provider,{value:N},e.createElement(Bu,{disabled:g},e.createElement(ta.Provider,{value:R},e.createElement(Gi,{validateMessages:T},e.createElement(qi.Provider,{value:X},e.createElement(Xi,Object.assign({id:j},M,{name:j,onFinishFailed:e=>{if(null===O||void 0===O||O(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==E)return void U(E,t);void 0!==s&&U(s,t)}},form:W,ref:q,style:Object.assign(Object.assign({},u),I),className:H}))))))))};const fg=e.forwardRef(dg);const pg=()=>{const{status:t,errors:n=[],warnings:r=[]}=e.useContext(Yi);return{status:t,errors:n,warnings:r}};pg.Context=Yi;const mg=pg;const gg=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.addEventListener)?e.addEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.addListener)&&e.addListener(t)},vg=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.removeEventListener)?e.removeEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.removeListener)&&e.removeListener(t)},hg=["xxl","xl","lg","md","sm","xs"],bg=()=>{const[,t]=Vs(),n=(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)`}))((e=>{const t=e,n=[].concat(hg).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(t));return e.useMemo(()=>{const e=new Map;let t=-1,r={};return{responsiveMap:n,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(n).forEach(e=>{let[t,n]=e;const o=e=>{let{matches:n}=e;this.dispatch(Object.assign(Object.assign({},r),{[t]:n}))},i=window.matchMedia(n);gg(i,o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},unregister(){Object.values(n).forEach(e=>{const t=this.matchHandlers[e];vg(null===t||void 0===t?void 0:t.mql,null===t||void 0===t?void 0:t.listener)}),e.clear()}}},[t])};const yg=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,e.useRef)(n),o=function(){const[,t]=e.useReducer(e=>e+1,0);return t}(),i=bg();return Qt(()=>{const e=i.subscribe(e=>{r.current=e,t&&o()});return()=>i.unsubscribe(e)},[]),r.current};const wg=(0,e.createContext)({}),xg=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Cg=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Sg=Xs("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),$g=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Eg=Xs("Grid",e=>{const t=rs(e,{gridColumns:24}),n=$g(t);return delete n.xs,[xg(t),Cg(t,""),Cg(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${Ea(t)})`]:Object.assign({},Cg(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));var kg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Og(t,n){const[r,o]=e.useState("string"===typeof t?t:"");return e.useEffect(()=>{(()=>{if("string"===typeof t&&o(t),"object"===typeof t)for(let e=0;e<hg.length;e++){const r=hg[e];if(!n||!n[r])continue;const i=t[r];if(void 0!==i)return void o(i)}})()},[JSON.stringify(t),n]),r}const jg=e.forwardRef((t,n)=>{const{prefixCls:r,justify:o,align:i,className:a,style:l,children:s,gutter:c=0,wrap:u}=t,d=kg(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=e.useContext(cn),m=yg(!0,null),g=Og(i,m),v=Og(o,m),h=f("row",r),[y,w,x]=Sg(h),C=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if("object"===typeof e&&null!==e)for(let r=0;r<hg.length;r++){const i=hg[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(c,m),S=b()(h,{[`${h}-no-wrap`]:!1===u,[`${h}-${v}`]:v,[`${h}-${g}`]:g,[`${h}-rtl`]:"rtl"===p},a,w,x),$={},E=null!=C[0]&&C[0]>0?C[0]/-2:void 0;E&&($.marginLeft=E,$.marginRight=E);const[k,O]=C;$.rowGap=O;const j=e.useMemo(()=>({gutter:[k,O],wrap:u}),[k,O,u]);return y(e.createElement(wg.Provider,{value:j},e.createElement("div",Object.assign({},d,{className:S,style:Object.assign(Object.assign({},$),l),ref:n}),s)))});const Ig=jg;var Pg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ng(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Mg=["xs","sm","md","lg","xl","xxl"],Rg=e.forwardRef((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(cn),{gutter:i,wrap:a}=e.useContext(wg),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:p,children:m,flex:g,style:v}=t,h=Pg(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=r("col",l),[w,x,C]=Eg(y),S={};let $={};Mg.forEach(e=>{let n={};const r=t[e];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),delete h[e],$=Object.assign(Object.assign({},$),{[`${y}-${e}-${n.span}`]:void 0!==n.span,[`${y}-${e}-order-${n.order}`]:n.order||0===n.order,[`${y}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${e}-push-${n.push}`]:n.push||0===n.push,[`${y}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===o}),n.flex&&($[`${y}-${e}-flex`]=!0,S[`--${y}-${e}-flex`]=Ng(n.flex))});const E=b()(y,{[`${y}-${s}`]:void 0!==s,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},p,$,x,C),k={};if(i&&i[0]>0){const e=i[0]/2;k.paddingLeft=e,k.paddingRight=e}return g&&(k.flex=Ng(g),!1!==a||k.minWidth||(k.minWidth=0)),w(e.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},k),v),S),className:E,ref:n}),m))});const Tg=Rg,zg=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},_g=Us(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Vm(e,n);return[zg(r)]});var Lg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ag=t=>{const{prefixCls:n,status:r,labelCol:o,wrapperCol:i,children:a,errors:l,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:m,label:g}=t,v=`${n}-item`,h=e.useContext(qi),y=e.useMemo(()=>{let e=Object.assign({},i||h.wrapperCol||{});if(null===g&&!o&&!i&&h.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{const n=t?[t]:[],r=Fn(h.labelCol,n),o="object"===typeof r?r:{},i=Fn(e,n);"span"in o&&!("offset"in("object"===typeof i?i:{}))&&o.span<24&&(e=Wn(e,[].concat(n,["offset"]),o.span))})}return e},[i,h]),w=b()(`${v}-control`,y.className),x=e.useMemo(()=>{const{labelCol:e,wrapperCol:t}=h;return Lg(h,["labelCol","wrapperCol"])},[h]),C=e.useRef(null),[S,$]=e.useState(0);Qt(()=>{u&&C.current?$(C.current.clientHeight):$(0)},[u]);const E=e.createElement("div",{className:`${v}-control-input`},e.createElement("div",{className:`${v}-control-input-content`},a)),k=e.useMemo(()=>({prefixCls:n,status:r}),[n,r]),O=null!==p||l.length||s.length?e.createElement(Ki.Provider,{value:k},e.createElement(Gm,{fieldId:f,errors:l,warnings:s,help:d,helpStatus:r,className:`${v}-explain-connected`,onVisibleChanged:m})):null,j={};f&&(j.id=`${f}_extra`);const I=u?e.createElement("div",Object.assign({},j,{className:`${v}-extra`,ref:C}),u):null,P=O||I?e.createElement("div",{className:`${v}-additional`,style:p?{minHeight:p+S}:{}},O,I):null,N=c&&"pro_table_render"===c.mark&&c.render?c.render(t,{input:E,errorList:O,extra:I}):e.createElement(e.Fragment,null,E,P);return e.createElement(qi.Provider,{value:x},e.createElement(Tg,Object.assign({},y,{className:w}),N),e.createElement(_g,{prefixCls:n}))};const Bg={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"};var Dg=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Bg}))};const Fg=e.forwardRef(Dg);const Hg=function(t){return void 0===t||null===t?null:"object"!==typeof t||(0,e.isValidElement)(t)?{title:t}:t};var Wg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vg=t=>{let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:a,colon:l,required:s,requiredMark:c,tooltip:u,vertical:d}=t;var f;const[p]=wn("Form"),{labelAlign:m,labelCol:g,labelWrap:v,colon:h}=e.useContext(qi);if(!r)return null;const y=i||g||{},w=a||m,x=`${n}-item-label`,C=b()(x,"left"===w&&`${x}-left`,y.className,{[`${x}-wrap`]:!!v});let S=r;const $=!0===l||!1!==h&&!1!==l;$&&!d&&"string"===typeof r&&r.trim()&&(S=r.replace(/[:|\uff1a]\s*$/,""));const E=Hg(u);if(E){const{icon:t=e.createElement(Fg,null)}=E,r=Wg(E,["icon"]),o=e.createElement(au,Object.assign({},r),e.cloneElement(t,{className:`${n}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));S=e.createElement(e.Fragment,null,S,o)}const k="optional"===c,O="function"===typeof c,j=!1===c;let I;O?S=c(S,{required:!!s}):k&&!s&&(S=e.createElement(e.Fragment,null,S,e.createElement("span",{className:`${n}-item-optional`,title:""},(null===p||void 0===p?void 0:p.optional)||(null===(f=yn.Form)||void 0===f?void 0:f.optional)))),j?I="hidden":(k||O)&&(I="optional");const P=b()({[`${n}-item-required`]:s,[`${n}-item-required-mark-${I}`]:I,[`${n}-item-no-colon`]:!$});return e.createElement(Tg,Object.assign({},y,{className:C}),e.createElement("label",{htmlFor:o,className:P,title:"string"===typeof r?r:""},S))},Xg={success:yp,warning:Cp,error:Tu,validating:ef};function qg(t){let{children:n,errors:r,warnings:o,hasFeedback:i,validateStatus:a,prefixCls:l,meta:s,noStyle:c,name:u}=t;const d=`${l}-item`,{feedbackIcons:f}=e.useContext(qi),p=ig(r,o,s,null,!!i,a),{isFormItemInput:m,status:g,hasFeedback:v,feedbackIcon:h,name:y}=e.useContext(Yi),w=e.useMemo(()=>{var t;let n;if(i){const a=!0!==i&&i.icons||f,l=p&&(null===(t=null===a||void 0===a?void 0:a({status:p,errors:r,warnings:o}))||void 0===t?void 0:t[p]),s=p&&Xg[p];n=!1!==l&&s?e.createElement("span",{className:b()(`${d}-feedback-icon`,`${d}-feedback-icon-${p}`)},l||e.createElement(s,null)):null}const a={status:p||"",errors:r,warnings:o,hasFeedback:!!i,feedbackIcon:n,isFormItemInput:!0,name:u};return c&&(a.status=(null!==p&&void 0!==p?p:g)||"",a.isFormItemInput=m,a.hasFeedback=!!(null!==i&&void 0!==i?i:v),a.feedbackIcon=void 0!==i?a.feedbackIcon:h,a.name=null!==u&&void 0!==u?u:y),a},[p,i,c,m,g]);return e.createElement(Yi.Provider,{value:w},n)}var Ug=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Gg(t){const{prefixCls:n,className:r,rootClassName:o,style:i,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:m,required:g,isRequired:v,onSubItemMetaChange:h,layout:y,name:w}=t,x=Ug(t,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${n}-item`,{requiredMark:S,vertical:$}=e.useContext(qi),E=$||"vertical"===y,k=e.useRef(null),O=Nm(l),j=Nm(s),I=void 0!==a&&null!==a,P=!!(I||l.length||s.length),N=!!k.current&&Qr(k.current),[M,R]=e.useState(null);Qt(()=>{if(P&&k.current){const e=getComputedStyle(k.current);R(parseInt(e.marginBottom,10))}},[P,N]);const T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ig(e?O:u.errors,e?j:u.warnings,u,"",!!d,c)}(),z=b()(C,r,o,{[`${C}-with-help`]:I||O.length||j.length,[`${C}-has-feedback`]:T&&d,[`${C}-has-success`]:"success"===T,[`${C}-has-warning`]:"warning"===T,[`${C}-has-error`]:"error"===T,[`${C}-is-validating`]:"validating"===T,[`${C}-hidden`]:f,[`${C}-${y}`]:y});return e.createElement("div",{className:z,style:i,ref:k},e.createElement(Ig,Object.assign({className:`${C}-row`},nn(x,["_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"])),e.createElement(Vg,Object.assign({htmlFor:m},t,{requiredMark:S,required:null!==g&&void 0!==g?g:v,prefixCls:n,vertical:E})),e.createElement(Ag,Object.assign({},t,u,{errors:O,warnings:j,prefixCls:n,status:T,help:a,marginBottom:M,onErrorVisibleChanged:e=>{e||R(null)}}),e.createElement(Ui.Provider,{value:h},e.createElement(qg,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:T,name:w},p)))),!!M&&e.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-M}}))}const Kg=e.memo(e=>{let{children:t}=e;return t},(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||"function"===typeof r||"function"===typeof o})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const Yg=function(t){const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:c,children:u,required:d,label:f,messageVariables:p,trigger:m="onChange",validateTrigger:g,hidden:v,help:h,layout:y}=t,{getPrefixCls:w}=e.useContext(cn),{name:x}=e.useContext(qi),C=function(e){if("function"===typeof e)return e;const t=qe(e);return t.length<=1?t[0]:t}(u),S="function"===typeof C,$=e.useContext(Ui),{validateTrigger:E}=e.useContext(To),k=void 0!==g?g:E,O=!(void 0===n||null===n),j=w("form",a),I=Fu(j),[P,N,M]=Xm(j,I);Nc("Form.Item");const R=e.useContext(zo),T=e.useRef(null),[z,_]=function(t){const[n,r]=e.useState(t),o=e.useRef(null),i=e.useRef([]),a=e.useRef(!1);return e.useEffect(()=>(a.current=!1,()=>{a.current=!0,Cr.cancel(o.current),o.current=null}),[]),[n,function(e){a.current||(null===o.current&&(i.current=[],o.current=Cr(()=>{o.current=null,r(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}]}({}),[L,A]=Jt(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),B=(e,t)=>{_(n=>{const r=Object.assign({},n),o=[].concat(l(e.name.slice(0,-1)),l(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[D,F]=e.useMemo(()=>{const e=l(L.errors),t=l(L.warnings);return Object.values(z).forEach(n=>{e.push.apply(e,l(n.errors||[])),t.push.apply(t,l(n.warnings||[]))}),[e,t]},[z,L.errors,L.warnings]),H=function(){const{itemRef:t}=e.useContext(qi),n=e.useRef({});return function(e,r){const o=r&&"object"===typeof r&&at(r),i=e.join("_");return n.current.name===i&&n.current.originRef===o||(n.current.name=i,n.current.originRef=o,n.current.ref=nt(t(e),o)),n.current.ref}}();function W(i,a,l){return r&&!v?e.createElement(qg,{prefixCls:j,hasFeedback:t.hasFeedback,validateStatus:t.validateStatus,meta:L,errors:D,warnings:F,noStyle:!0,name:n},i):e.createElement(Gg,Object.assign({key:"row"},t,{className:b()(o,M,I,N),prefixCls:j,fieldId:a,isRequired:l,errors:D,warnings:F,meta:L,onSubItemMetaChange:B,layout:y,name:n}),i)}if(!O&&!S&&!i)return P(W(C));let V={};return"string"===typeof f?V.label=f:n&&(V.label=String(n)),p&&(V=Object.assign(Object.assign({},V),p)),P(e.createElement(Oi,Object.assign({},t,{messageVariables:V,trigger:m,validateTrigger:k,onMetaChange:e=>{const t=null===R||void 0===R?void 0:R.getKey(e.name);if(A(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&$){let n=e.name;if(e.destroy)n=T.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(l(r)),T.current=n}$(e,n)}}}),(r,o,a)=>{const u=rg(n).length&&o?o.name:[],f=og(u,x),p=void 0!==d?d:!!(null===c||void 0===c?void 0:c.some(e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(a);return(null===t||void 0===t?void 0:t.required)&&!(null===t||void 0===t?void 0:t.warningOnly)}return!1})),g=Object.assign({},r);let v=null;if(Array.isArray(C)&&O)v=C;else if(S&&(!s&&!i||O));else if(!i||S||O)if(e.isValidElement(C)){const n=Object.assign(Object.assign({},C.props),g);if(n.id||(n.id=f),h||D.length>0||F.length>0||t.extra){const e=[];(h||D.length>0)&&e.push(`${f}_help`),t.extra&&e.push(`${f}_extra`),n["aria-describedby"]=e.join(" ")}D.length>0&&(n["aria-invalid"]="true"),p&&(n["aria-required"]="true"),ot(C)&&(n.ref=H(u,C));new Set([].concat(l(rg(m)),l(rg(k)))).forEach(e=>{n[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];null===(r=g[e])||void 0===r||(t=r).call.apply(t,[g].concat(l)),null===(i=(o=C.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}});const r=[n["aria-required"],n["aria-invalid"],n["aria-describedby"]];v=e.createElement(Kg,{control:g,update:C,childProps:r},jc(C,n))}else v=S&&(s||i)&&!O?C(a):C;else;return W(v,f,p)}))};Yg.useStatus=mg;const Qg=Yg;var Zg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Jg=t=>{var{prefixCls:n,children:r}=t,o=Zg(t,["prefixCls","children"]);const{getPrefixCls:i}=e.useContext(cn),a=i("form",n),l=e.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return e.createElement(ji,Object.assign({},o),(t,n,o)=>e.createElement(Ki.Provider,{value:l},r(t.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),n,{errors:o.errors,warnings:o.warnings})))};const ev=fg;ev.Item=Qg,ev.List=Jg,ev.ErrorList=Gm,ev.useForm=cg,ev.useFormInstance=function(){const{form:t}=e.useContext(qi);return t},ev.useWatch=Wi,ev.Provider=Gi,ev.create=()=>{};const tv=ev,nv=t=>{const{getPrefixCls:n,direction:r}=(0,e.useContext)(cn),{prefixCls:o,className:i}=t,a=n("input-group",o),l=n("input"),[s,c,u]=xd(l),d=b()(a,u,{[`${a}-lg`]:"large"===t.size,[`${a}-sm`]:"small"===t.size,[`${a}-compact`]:t.compact,[`${a}-rtl`]:"rtl"===r},c,i),f=(0,e.useContext)(Yi),p=(0,e.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(e.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Yi.Provider,{value:p},t.children)))};function rv(t,n){const r=(0,e.useRef)([]),o=()=>{r.current.push(setTimeout(()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,e.useEffect)(()=>(n&&o(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}var ov=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const iv=(0,e.forwardRef)((t,n)=>{const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:m,style:g,styles:v,rootClassName:h,onChange:y,classNames:w,variant:x}=t,C=ov(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:S,direction:$,allowClear:E,autoComplete:k,className:O,style:j,classNames:I,styles:P}=fn("input"),N=S("input",r),M=(0,e.useRef)(null),R=Fu(N),[T,z,_]=wd(N,h),[L]=xd(N,R),{compactSize:A,compactItemClassnames:B}=ec(N,$),D=na(e=>{var t;return null!==(t=null!==a&&void 0!==a?a:A)&&void 0!==t?t:e}),F=e.useContext(Du),H=null!==l&&void 0!==l?l:F,{status:W,hasFeedback:V,feedbackIcon:X}=(0,e.useContext)(Yi),q=Lu(W,i),U=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!V;(0,e.useRef)(U);const G=rv(M,!0),K=(V||u)&&e.createElement(e.Fragment,null,u,V&&X),Y=zu(null!==d&&void 0!==d?d:E),[Q,Z]=Hu("input",x,o);return T(L(e.createElement(xu,Object.assign({ref:nt(n,M),prefixCls:N,autoComplete:k},C,{disabled:H,onBlur:e=>{G(),null===s||void 0===s||s(e)},onFocus:e=>{G(),null===c||void 0===c||c(e)},style:Object.assign(Object.assign({},j),g),styles:Object.assign(Object.assign({},P),v),suffix:K,allowClear:Y,className:b()(m,h,_,R,B,O),onChange:e=>{G(),null===y||void 0===y||y(e)},addonBefore:p&&e.createElement(oc,{form:!0,space:!0},p),addonAfter:f&&e.createElement(oc,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},w),I),{input:b()({[`${N}-sm`]:"small"===D,[`${N}-lg`]:"large"===D,[`${N}-rtl`]:"rtl"===$},null===w||void 0===w?void 0:w.input,I.input,z),variant:b()({[`${N}-${Q}`]:Z},_u(N,q)),affixWrapper:b()({[`${N}-affix-wrapper-sm`]:"small"===D,[`${N}-affix-wrapper-lg`]:"large"===D,[`${N}-affix-wrapper-rtl`]:"rtl"===$},z),wrapper:b()({[`${N}-group-rtl`]:"rtl"===$},z),groupWrapper:b()({[`${N}-group-wrapper-sm`]:"small"===D,[`${N}-group-wrapper-lg`]:"large"===D,[`${N}-group-wrapper-rtl`]:"rtl"===$,[`${N}-group-wrapper-${Q}`]:Z},_u(`${N}-group-wrapper`,q,V),z)})}))))});const av=iv,lv=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${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}}}},sv=Xs(["Input","OTP"],e=>{const t=rs(e,qu(e));return[lv(t)]},Uu);var cv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uv=e.forwardRef((t,n)=>{const{className:r,value:o,onChange:i,onActiveChange:a,index:l,mask:s}=t,c=cv(t,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=e.useContext(cn),d=u("otp"),f="string"===typeof s?s:o,p=e.useRef(null);e.useImperativeHandle(n,()=>p.current);const m=()=>{Cr(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return e.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&""!==o&&void 0!==o&&e.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),e.createElement(av,Object.assign({"aria-label":`OTP Input ${l+1}`,type:!0===s?"password":"text"},c,{ref:p,value:o,onInput:e=>{i(l,e.target.value)},onFocus:m,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?a(l-1):"ArrowRight"===t?a(l+1):"z"===t&&(n||r)&&e.preventDefault(),m()},onKeyUp:e=>{"Backspace"!==e.key||o||a(l-1),m()},onMouseDown:m,onMouseUp:m,className:b()(r,{[`${d}-mask-input`]:s})})))}),dv=uv;var fv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function pv(e){return(e||"").split("")}const mv=t=>{const{index:n,prefixCls:r,separator:o}=t,i="function"===typeof o?o(n):o;return i?e.createElement("span",{className:`${r}-separator`},i):null},gv=e.forwardRef((t,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:s,onChange:c,formatter:u,separator:d,variant:f,disabled:p,status:m,autoFocus:g,mask:v,type:h,onInput:y,inputMode:w}=t,x=fv(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:C,direction:S}=e.useContext(cn),$=C("otp",r),E=jp(x,{aria:!0,data:!0,attr:!0}),[k,O,j]=sv($),I=na(e=>null!==i&&void 0!==i?i:e),P=e.useContext(Yi),N=Lu(P.status,m),M=e.useMemo(()=>Object.assign(Object.assign({},P),{status:N,hasFeedback:!1,feedbackIcon:null}),[P,N]),R=e.useRef(null),T=e.useRef({});e.useImperativeHandle(n,()=>({focus:()=>{var e;null===(e=T.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=T.current[t])||void 0===e||e.blur()},nativeElement:R.current}));const z=e=>u?u(e):e,[_,L]=e.useState(()=>pv(z(a||"")));e.useEffect(()=>{void 0!==s&&L(pv(s))},[s]);const A=Zt(e=>{L(e),y&&y(e),c&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>_[t]!==e)&&c(e.join(""))}),B=Zt((e,t)=>{let n=l(_);for(let o=0;o<e;o+=1)n[o]||(n[o]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(pv(t)),n=n.slice(0,o);for(let o=n.length-1;o>=0&&!n[o];o-=1)n.pop();const r=z(n.map(e=>e||" ").join(""));return n=pv(r).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),D=(e,t)=>{var n;const r=B(e,t),i=Math.min(e+t.length,o-1);i!==e&&void 0!==r[e]&&(null===(n=T.current[i])||void 0===n||n.focus()),A(r)},F=e=>{var t;null===(t=T.current[e])||void 0===t||t.focus()},H={variant:f,disabled:p,status:N,mask:v,type:h,inputMode:w};return k(e.createElement("div",Object.assign({},E,{ref:R,className:b()($,{[`${$}-sm`]:"small"===I,[`${$}-lg`]:"large"===I,[`${$}-rtl`]:"rtl"===S},j,O),role:"group"}),e.createElement(Yi.Provider,{value:M},Array.from({length:o}).map((t,n)=>{const r=`otp-${n}`,i=_[n]||"";return e.createElement(e.Fragment,{key:r},e.createElement(dv,Object.assign({ref:e=>{T.current[n]=e},index:n,size:I,htmlSize:1,className:`${$}-input`,onChange:D,value:i,onActiveChange:F,autoFocus:0===n&&g},H)),n<o-1&&e.createElement(mv,{separator:d,index:n,prefixCls:$}))}))))}),vv=gv;const hv={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"};var bv=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:hv}))};const yv=e.forwardRef(bv);const wv={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"};var xv=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:wv}))};const Cv=e.forwardRef(xv);var Sv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $v=t=>t?e.createElement(Cv,null):e.createElement(yv,null),Ev={click:"onClick",hover:"onMouseOver"},kv=e.forwardRef((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=$v}=t,l=e.useContext(Du),s=null!==r&&void 0!==r?r:l,c="object"===typeof i&&void 0!==i.visible,[u,d]=(0,e.useState)(()=>!!c&&i.visible),f=(0,e.useRef)(null);e.useEffect(()=>{c&&d(i.visible)},[c,i]);const p=rv(f),m=()=>{var e;if(s)return;u&&p();const t=!u;d(t),"object"===typeof i&&(null===(e=i.onVisibleChange)||void 0===e||e.call(i,t))},{className:g,prefixCls:v,inputPrefixCls:h,size:y}=t,w=Sv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=e.useContext(cn),C=x("input",h),S=x("input-password",v),$=i&&(t=>{const n=Ev[o]||"",r=a(u),i={[n]:m,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),i)})(S),E=b()(S,g,{[`${S}-${y}`]:!!y}),k=Object.assign(Object.assign({},nn(w,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:E,prefixCls:C,suffix:$});return y&&(k.size=y),e.createElement(av,Object.assign({ref:nt(n,f)},k))});const Ov=kv;const jv={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"};var Iv=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:jv}))};const Pv=e.forwardRef(Iv),Nv=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Mv=qs("Wave",e=>[Nv(e)]),Rv=`${an}-wave-target`;function Tv(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function zv(e){return Number.isNaN(e)?0:e}const _v=t=>{const{className:n,target:r,component:o,registerUnmount:i}=t,a=e.useRef(null),l=e.useRef(null);e.useEffect(()=>{l.current=i()},[]);const[s,c]=e.useState(null),[u,d]=e.useState([]),[f,p]=e.useState(0),[m,g]=e.useState(0),[v,h]=e.useState(0),[y,w]=e.useState(0),[x,C]=e.useState(!1),S={left:f,top:m,width:v,height:y,borderRadius:u.map(e=>`${e}px`).join(" ")};function $(){const e=getComputedStyle(r);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Tv(t)?t:Tv(n)?n:Tv(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;p(t?r.offsetLeft:zv(-parseFloat(n))),g(t?r.offsetTop:zv(-parseFloat(o))),h(r.offsetWidth),w(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;d([i,a,s,l].map(e=>zv(parseFloat(e))))}if(s&&(S["--wave-color"]=s),e.useEffect(()=>{if(r){const e=Cr(()=>{$(),C(!0)});let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver($),t.observe(r)),()=>{Cr.cancel(e),null===t||void 0===t||t.disconnect()}}},[]),!x)return null;const E=("Checkbox"===o||"Radio"===o)&&(null===r||void 0===r?void 0:r.classList.contains(Rv));return e.createElement(Dr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=l.current)||void 0===r||r.call(l).then(()=>{null===e||void 0===e||e.remove()})}return!1}},(t,r)=>{let{className:o}=t;return e.createElement("div",{ref:nt(a,r),className:b()(n,o,{"wave-quick":E}),style:S})})},Lv=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null===t||void 0===t||t.insertBefore(i,null===t||void 0===t?void 0:t.firstChild);const a=vp();let l=null;l=a(e.createElement(_v,Object.assign({},n,{target:t,registerUnmount:function(){return l}})),i)},Av=(t,n,r)=>{const{wave:o}=e.useContext(cn),[,i,a]=Vs(),l=Zt(e=>{const l=t.current;if((null===o||void 0===o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${Rv}`)||l,{showEffect:c}=o||{};(c||Lv)(s,{className:n,token:i,component:r,event:e,hashId:a})}),s=e.useRef(null);return e=>{Cr.cancel(s.current),s.current=Cr(()=>{l(e)})}};const Bv=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:i}=(0,e.useContext)(cn),a=(0,e.useRef)(null),l=i("wave"),[,s]=Mv(l),c=Av(a,b()(l,s),o);if(e.useEffect(()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Qr(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!e.isValidElement(n))return null!==n&&void 0!==n?n:null;return jc(n,{ref:ot(n)?nt(at(n),a):a})};var Dv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Fv=e.createContext(void 0),Hv=t=>{const{getPrefixCls:n,direction:r}=e.useContext(cn),{prefixCls:o,size:i,className:a}=t,l=Dv(t,["prefixCls","size","className"]),s=n("btn-group",o),[,,c]=Vs(),u=e.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]);const d=b()(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===r},a,c);return e.createElement(Fv.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},Wv=/^[\u4E00-\u9FA5]{2}$/,Vv=Wv.test.bind(Wv);function Xv(e){return"danger"===e?{danger:!0}:{type:e}}function qv(e){return"string"===typeof e}function Uv(e){return"text"===e||"link"===e}function Gv(t,n){let r=!1;const o=[];return e.Children.forEach(t,e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n}),e.Children.map(o,t=>function(t,n){if(null===t||void 0===t)return;const r=n?" ":"";return"string"!==typeof t&&"number"!==typeof t&&qv(t.type)&&Vv(t.props.children)?jc(t,{children:t.props.children.split("").join(r)}):qv(t)?Vv(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):kc(t)?e.createElement("span",null,t):t}(t,n))}["default","primary","danger"].concat(l(Kc));const Kv=(0,e.forwardRef)((t,n)=>{const{className:r,style:o,children:i,prefixCls:a}=t,l=b()(`${a}-icon`,r);return e.createElement("span",{ref:n,className:l,style:o},i)}),Yv=Kv,Qv=(0,e.forwardRef)((t,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=t,l=b()(`${r}-loading-icon`,o);return e.createElement(Yv,{prefixCls:r,className:l,style:i,ref:n},e.createElement(ef,{className:a}))}),Zv=()=>({width:0,opacity:0,transform:"scale(0)"}),Jv=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),eh=t=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,mount:l}=t,s=!!r;return o?e.createElement(Qv,{prefixCls:n,className:i,style:a}):e.createElement(Dr,{visible:s,motionName:`${n}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Zv,onAppearActive:Jv,onEnterStart:Zv,onEnterActive:Jv,onLeaveStart:Jv,onLeaveActive:Zv},(t,r)=>{let{className:o,style:l}=t;const s=Object.assign(Object.assign({},a),l);return e.createElement(Qv,{prefixCls:n,className:b()(i,o),style:s,ref:r})})},th=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),nh=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},th(`${t}-primary`,o),th(`${t}-danger`,i)]}};var rh=["b"],oh=["v"],ih=function(e){return Math.round(Number(e||0))},ah=function(e){_t(n,e);var t=Ft(n);function n(e){return Mt(this,n),t.call(this,function(e){if(e instanceof S)return e;if(e&&"object"===p(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return ie(ie({},v(t,rh)),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Tt(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=ih(100*e.s),n=ih(100*e.b),r=ih(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return ie(ie({},v(e,oh)),{},{b:t,a:this.a})}}]),n}(S),lh=function(e){return e instanceof ah?e:new ah(e)};lh("#1677ff");let sh=function(){return Tt(function e(t){var n;if(Mt(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}}),this.metaColor=new ah(this.colors[0].color.metaColor)):this.metaColor=new ah(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();const ch=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ah(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},uh=e=>{const{paddingInline:t,onlyIconSize:n}=e;return rs(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},dh=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Os(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Os(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Os(c),p=ch(new sh(e.colorBgSolid),"#fff")?"#000":"#fff",m=Kc.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Ea(e.controlOutlineWidth)} 0 ${_s(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},fh=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ea(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":hs(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},ph=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),mh=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),gh=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),vh=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),hh=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ph(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),bh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},vh(e))}),yh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),wh=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?yh:bh;return Object.assign(Object.assign({},o(e)),ph(e.componentCls,t,n))},xh=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},wh(e,r,o))}),Ch=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},wh(e,r,o))}),Sh=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),$h=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},wh(e,n,r))}),Eh=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},wh(e,r,o,n))}),kh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},xh(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Sh(e)),$h(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),hh(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Eh(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Oh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Ch(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Sh(e)),$h(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Eh(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Eh(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),hh(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),jh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},xh(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ch(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Sh(e)),$h(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Eh(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Eh(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),hh(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ih=e=>Object.assign(Object.assign({},Eh(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),hh(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Ph=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:kh(e),[`${t}-color-primary`]:Oh(e),[`${t}-color-dangerous`]:jh(e),[`${t}-color-link`]:Ih(e)},(e=>{const{componentCls:t}=e;return Kc.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},xh(e,e.colorTextLightSolid,o,{background:a},{background:c})),Ch(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Sh(e)),$h(e,i,{background:l},{background:s})),Eh(e,o,"link",{color:a},{color:c})),Eh(e,o,"text",{color:a,background:i},{color:c,background:s}))})},{})})(e))},Nh=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ch(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Eh(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),xh(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Eh(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Mh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${Ea(s)} ${Ea(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:mh(e)},{[`${n}${n}-round${t}`]:gh(e)}]},Rh=e=>{const t=rs(e,{fontSize:e.contentFontSize});return Mh(t,e.componentCls)},Th=e=>{const t=rs(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Mh(t,`${e.componentCls}-sm`)},zh=e=>{const t=rs(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Mh(t,`${e.componentCls}-lg`)},_h=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Lh=Xs("Button",e=>{const t=uh(e);return[fh(t),Rh(t),Th(t),zh(t),_h(t),Ph(t),Nh(t),nh(t)]},dh,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Ah(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Bh(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ah(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Dh=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Fh=Us(["Button","compact"],e=>{const t=uh(e);return[Xu(t),Bh(t),Dh(t)]},dh);var Hh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wh={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Vh=e.forwardRef((t,n)=>{var r,o;const{loading:i=!1,prefixCls:a,color:l,variant:s,type:c,danger:u=!1,shape:d="default",size:f,styles:p,disabled:m,className:g,rootClassName:v,children:h,icon:y,iconPosition:w="start",ghost:x=!1,block:C=!1,htmlType:S="button",classNames:$,style:E={},autoInsertSpace:k,autoFocus:O}=t,j=Hh(t,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=c||"default",{button:P}=e.useContext(cn),[N,M]=(0,e.useMemo)(()=>{if(l&&s)return[l,s];if(c||u){const e=Wh[I]||[];return u?["danger",e[1]]:e}return(null===P||void 0===P?void 0:P.color)&&(null===P||void 0===P?void 0:P.variant)?[P.color,P.variant]:["default","outlined"]},[c,l,s,u,null===P||void 0===P?void 0:P.variant,null===P||void 0===P?void 0:P.color]),R="danger"===N?"dangerous":N,{getPrefixCls:T,direction:z,autoInsertSpace:_,className:L,style:A,classNames:B,styles:D}=fn("button"),F=null===(r=null!==k&&void 0!==k?k:_)||void 0===r||r,H=T("btn",a),[W,V,X]=Lh(H),q=(0,e.useContext)(Du),U=null!==m&&void 0!==m?m:q,G=(0,e.useContext)(Fv),K=(0,e.useMemo)(()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i),[i]),[Y,Q]=(0,e.useState)(K.loading),[Z,J]=(0,e.useState)(!1),ee=(0,e.useRef)(null),te=rt(n,ee),ne=1===e.Children.count(h)&&!y&&!Uv(M),re=(0,e.useRef)(!0);e.useEffect(()=>(re.current=!1,()=>{re.current=!0}),[]),(0,e.useLayoutEffect)(()=>{let e=null;return K.delay>0?e=setTimeout(()=>{e=null,Q(!0)},K.delay):Q(K.loading),function(){e&&(clearTimeout(e),e=null)}},[K.delay,K.loading]),(0,e.useEffect)(()=>{if(!ee.current||!F)return;const e=ee.current.textContent||"";ne&&Vv(e)?Z||J(!0):Z&&J(!1)}),(0,e.useEffect)(()=>{O&&ee.current&&ee.current.focus()},[]);const oe=e.useCallback(e=>{var n;Y||U?e.preventDefault():null===(n=t.onClick)||void 0===n||n.call(t,e)},[t.onClick,Y,U]);const{compactSize:ie,compactItemClassnames:ae}=ec(H,z),le={large:"lg",small:"sm",middle:void 0},se=na(e=>{var t,n;return null!==(n=null!==(t=null!==f&&void 0!==f?f:ie)&&void 0!==t?t:G)&&void 0!==n?n:e}),ce=se&&null!==(o=le[se])&&void 0!==o?o:"",ue=Y?"loading":y,de=nn(j,["navigate"]),fe=b()(H,V,X,{[`${H}-${d}`]:"default"!==d&&d,[`${H}-${I}`]:I,[`${H}-dangerous`]:u,[`${H}-color-${R}`]:R,[`${H}-variant-${M}`]:M,[`${H}-${ce}`]:ce,[`${H}-icon-only`]:!h&&0!==h&&!!ue,[`${H}-background-ghost`]:x&&!Uv(M),[`${H}-loading`]:Y,[`${H}-two-chinese-chars`]:Z&&F&&!Y,[`${H}-block`]:C,[`${H}-rtl`]:"rtl"===z,[`${H}-icon-end`]:"end"===w},ae,g,v,L),pe=Object.assign(Object.assign({},A),E),me=b()(null===$||void 0===$?void 0:$.icon,B.icon),ge=Object.assign(Object.assign({},(null===p||void 0===p?void 0:p.icon)||{}),D.icon||{}),ve=y&&!Y?e.createElement(Yv,{prefixCls:H,className:me,style:ge},y):i&&"object"===typeof i&&i.icon?e.createElement(Yv,{prefixCls:H,className:me,style:ge},i.icon):e.createElement(eh,{existIcon:!!y,prefixCls:H,loading:Y,mount:re.current}),he=h||0===h?Gv(h,ne&&F):null;if(void 0!==de.href)return W(e.createElement("a",Object.assign({},de,{className:b()(fe,{[`${H}-disabled`]:U}),href:U?void 0:de.href,style:pe,onClick:oe,ref:te,tabIndex:U?-1:0}),ve,he));let be=e.createElement("button",Object.assign({},j,{type:S,className:fe,style:pe,onClick:oe,disabled:U,ref:te}),ve,he,ae&&e.createElement(Fh,{prefixCls:H}));return Uv(M)||(be=e.createElement(Bv,{component:"Button",disabled:Y},be)),W(be)}),Xh=Vh;Xh.Group=Hv,Xh.__ANT_BUTTON=!0;const qh=Xh;var Uh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Gh=e.forwardRef((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g,variant:v,onPressEnter:h}=t,y=Uh(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:w,direction:x}=e.useContext(cn),C=e.useRef(!1),S=w("input-search",r),$=w("input",o),{compactSize:E}=ec(S,x),k=na(e=>{var t;return null!==(t=null!==a&&void 0!==a?a:E)&&void 0!==t?t:e}),O=e.useRef(null),j=e=>{var t;document.activeElement===(null===(t=O.current)||void 0===t?void 0:t.input)&&e.preventDefault()},I=e=>{var t,n;f&&f(null===(n=null===(t=O.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},P="boolean"===typeof s?e.createElement(Pv,null):null,N=`${S}-button`;let M;const R=s||{},T=R.type&&!0===R.type.__ANT_BUTTON;M=T||"button"===R.type?jc(R,Object.assign({onMouseDown:j,onClick:e=>{var t,n;null===(n=null===(t=null===R||void 0===R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),I(e)},key:"enterButton"},T?{className:N,size:k}:{})):e.createElement(qh,{className:N,color:s?"primary":"default",size:k,disabled:d,key:"enterButton",onMouseDown:j,onClick:I,loading:u,icon:P,variant:"borderless"===v||"filled"===v||"underlined"===v?"text":s?"solid":void 0},s),c&&(M=[M,jc(c,{key:"addonAfter"})]);const z=b()(S,{[`${S}-rtl`]:"rtl"===x,[`${S}-${k}`]:!!k,[`${S}-with-button`]:!!s},i),_=Object.assign(Object.assign({},y),{className:z,prefixCls:$,type:"search",size:k,variant:v,onPressEnter:e=>{C.current||u||(null===h||void 0===h||h(e),I(e))},onCompositionStart:e=>{C.current=!0,null===m||void 0===m||m(e)},onCompositionEnd:e=>{C.current=!1,null===g||void 0===g||g(e)},addonAfter:M,suffix:l,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null===p||void 0===p||p(e)},disabled:d});return e.createElement(av,Object.assign({ref:nt(O,n)},_))});const Kh=Gh,Yh=av;Yh.Group=nv,Yh.Search=Kh,Yh.TextArea=kd,Yh.Password=Ov,Yh.OTP=vv;const Qh=Yh;const Zh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};var Jh=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Zh}))};const eb=e.forwardRef(Jh);const tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};var nb=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:tb}))};const rb=e.forwardRef(nb);var ob=n(579);const{Title:ib}=Of;function ab(t){let{onLogin:n}=t;const[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(null),l="undefined"!==typeof window&&"true"===localStorage.getItem("darkMode");return(0,ob.jsx)("div",{style:{minHeight:"100vh",width:"100vw",background:l?"#181818":"#f5f5f5",transition:"background 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,ob.jsxs)("div",{style:{width:350,padding:24,background:l?"#1f1f1f":"#fff",borderRadius:8,boxShadow:l?"0 2px 8px #222":"0 2px 8px #eee",color:l?"#fff":void 0},children:[(0,ob.jsx)(ib,{level:3,style:{textAlign:"center",color:l?"#fff":void 0},children:"Anmeldung"}),i&&(0,ob.jsx)(Pm,{type:"error",message:i,showIcon:!0,style:{marginBottom:16}}),(0,ob.jsxs)(tv,{name:"login",onFinish:async e=>{o(!0),a(null);try{const r=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await r.json();var t;if(o.success)localStorage.setItem("jwt",o.token),gm.success("Login erfolgreich!"),setTimeout(()=>{window.location.href=window.location.pathname+window.location.search||"/"},600),n&&n(o);else a((null===(t=o.error)||void 0===t?void 0:t.message)||"Login fehlgeschlagen")}catch(Ym){a("Serverfehler")}finally{o(!1)}},layout:"vertical",children:[(0,ob.jsx)(tv.Item,{name:"username",label:(0,ob.jsx)("span",{style:{color:l?"#fff":void 0},children:"Benutzername (nur Admin)"}),children:(0,ob.jsx)(Qh,{prefix:(0,ob.jsx)(eb,{}),placeholder:"Benutzername",autoComplete:"username",style:l?{background:"#222",color:"#fff"}:{}})}),(0,ob.jsx)(tv.Item,{name:"password",label:(0,ob.jsx)("span",{style:{color:l?"#fff":void 0},children:"Passwort"}),rules:[{required:!0,message:"Bitte Passwort eingeben!"}],children:(0,ob.jsx)(Qh.Password,{prefix:(0,ob.jsx)(rb,{}),placeholder:"Passwort",autoComplete:"current-password",style:l?{background:"#222",color:"#fff"}:{}})}),(0,ob.jsx)(qh,{type:"primary",htmlType:"submit",block:!0,loading:r,children:"Einloggen"})]})]})})}const lb=e=>{const t=(null===e||void 0===e?void 0:e.algorithm)?ba(e.algorithm):Ts,n=Object.assign(Object.assign({},xs),null===e||void 0===e?void 0:e.token);return Aa(n,{override:null===e||void 0===e?void 0:e.token},t,As)};const sb=(e,t)=>{const n=null!==t&&void 0!==t?t:Rs(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!==t&&void 0!==t?t:e)),js(r)),{controlHeight:o}),ks(Object.assign(Object.assign({},n),{controlHeight:o})))},cb=(e,t)=>new S(e).setA(t).toRgbString(),ub=(e,t)=>new S(e).lighten(t).toHexString(),db=e=>{const t=j(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]}},fb=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:cb(r,.85),colorTextSecondary:cb(r,.65),colorTextTertiary:cb(r,.45),colorTextQuaternary:cb(r,.25),colorFill:cb(r,.18),colorFillSecondary:cb(r,.12),colorFillTertiary:cb(r,.08),colorFillQuaternary:cb(r,.04),colorBgSolid:cb(r,.95),colorBgSolidHover:cb(r,1),colorBgSolidActive:cb(r,.9),colorBgElevated:ub(n,12),colorBgContainer:ub(n,8),colorBgLayout:ub(n,0),colorBgSpotlight:ub(n,26),colorBgBlur:cb(r,.04),colorBorder:ub(n,26),colorBorderSecondary:ub(n,19)}},pb=(e,t)=>{const n=Object.keys(ws).map(t=>{const n=j(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!==t&&void 0!==t?t:Rs(e),o=$s(e,{generateColorPalettes:db,generateNeutralColorPalettes:fb});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};const mb={defaultSeed:Cs.token,useToken:function(){const[e,t,n]=Vs();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Rs,darkAlgorithm:pb,compactAlgorithm:sb,getDesignToken:lb,defaultConfig:Cs,_internalContext:Ss};function gb(e){return Object.assign(Object.assign({},e),{type:"warning"})}function vb(e){return Object.assign(Object.assign({},e),{type:"info"})}function hb(e){return Object.assign(Object.assign({},e),{type:"success"})}function bb(e){return Object.assign(Object.assign({},e),{type:"error"})}function yb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const wb=[];function xb(e){return!!(null===e||void 0===e?void 0:e.then)}const Cb=t=>{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,f=e.useRef(!1),p=e.useRef(null),[m,g]=Jt(!1),v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===a||void 0===a||a.apply(void 0,t)};e.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[]);return e.createElement(qh,Object.assign({},Xv(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void v();let t;if(s){if(t=d(e),u&&!xb(t))return f.current=!1,void v(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!xb(t))return void v();(e=>{xb(e)&&(g(!0),e.then(function(){g(!1,!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];v.apply(void 0,t),f.current=!1},e=>{if(g(!1,!0),f.current=!1,!(null===c||void 0===c?void 0:c()))return Promise.reject(e)}))})(t)},loading:m,prefixCls:o},i,{ref:p}),r)},Sb=e.createContext({}),{Provider:$b}=Sb,Eb=()=>{const{autoFocusButton:t,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:s,onConfirm:c}=(0,e.useContext)(Sb);return i?e.createElement(Cb,{isSilent:o,actionFn:s,close:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===l||void 0===l||l.apply(void 0,t),null===c||void 0===c||c(!1)},autoFocus:"cancel"===t,buttonProps:n,prefixCls:`${a}-btn`},r):null},kb=()=>{const{autoFocusButton:t,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:s,onOk:c}=(0,e.useContext)(Sb);return e.createElement(Cb,{isSilent:r,type:l||"primary",actionFn:c,close:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null===n||void 0===n||n.apply(void 0,t),null===s||void 0===s||s(!0)},autoFocus:"ok"===t,buttonProps:o,prefixCls:`${i}-btn`},a)};var Ob=e.createContext({});function jb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Ib(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const Pb=e.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var Nb={width:0,height:0,overflow:"hidden",outline:"none"},Mb={outline:"none"},Rb=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.title,l=t.ariaId,c=t.footer,u=t.closable,d=t.closeIcon,f=t.onClose,m=t.children,g=t.bodyStyle,v=t.bodyProps,h=t.modalRender,y=t.onMouseDown,w=t.onMouseUp,x=t.holderRef,C=t.visible,S=t.forceRender,$=t.width,E=t.height,k=t.classNames,O=t.styles,j=e.useContext(Ob).panel,I=rt(x,j),P=(0,e.useRef)(),N=(0,e.useRef)();e.useImperativeHandle(n,function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===N.current?P.current.focus({preventScroll:!0}):e||t!==P.current||N.current.focus({preventScroll:!0})}}});var M={};void 0!==$&&(M.width=$),void 0!==E&&(M.height=E);var R=c?e.createElement("div",{className:b()("".concat(r,"-footer"),null===k||void 0===k?void 0:k.footer),style:ie({},null===O||void 0===O?void 0:O.footer)},c):null,T=a?e.createElement("div",{className:b()("".concat(r,"-header"),null===k||void 0===k?void 0:k.header),style:ie({},null===O||void 0===O?void 0:O.header)},e.createElement("div",{className:"".concat(r,"-title"),id:l},a)):null,z=(0,e.useMemo)(function(){return"object"===p(u)&&null!==u?u:u?{closeIcon:null!==d&&void 0!==d?d:e.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[u,d,r]),_=jp(z,!0),L="object"===p(u)&&u.disabled,A=u?e.createElement("button",s({type:"button",onClick:f,"aria-label":"Close"},_,{className:"".concat(r,"-close"),disabled:L}),z.closeIcon):null,B=e.createElement("div",{className:b()("".concat(r,"-content"),null===k||void 0===k?void 0:k.content),style:null===O||void 0===O?void 0:O.content},A,T,e.createElement("div",s({className:b()("".concat(r,"-body"),null===k||void 0===k?void 0:k.body),style:ie(ie({},g),null===O||void 0===O?void 0:O.body)},v),m),R);return e.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:I,style:ie(ie({},i),M),className:b()(r,o),onMouseDown:y,onMouseUp:w},e.createElement("div",{ref:P,tabIndex:0,style:Mb},e.createElement(Pb,{shouldUpdate:C||S},h?h(B):B)),e.createElement("div",{tabIndex:0,ref:N,style:Nb}))});const Tb=Rb;var zb=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.title,i=t.style,a=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,p=t.ariaId,m=t.onVisibleChanged,g=t.mousePosition,v=(0,e.useRef)(),h=f(e.useState(),2),y=h[0],w=h[1],x={};function C(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Ib(o),n.top+=Ib(o,!0),n}(v.current);w(g&&(g.x||g.y)?"".concat(g.x-e.left,"px ").concat(g.y-e.top,"px"):"")}return y&&(x.transformOrigin=y),e.createElement(Dr,{visible:l,onVisibleChanged:m,onAppearPrepare:C,onEnterPrepare:C,forceRender:c,motionName:d,removeOnLeave:u,ref:v},function(l,c){var u=l.className,d=l.style;return e.createElement(Tb,s({},t,{ref:n,title:o,ariaId:p,prefixCls:r,holderRef:c,style:ie(ie(ie({},d),i),x),className:b()(a,u)}))})});zb.displayName="Content";const _b=zb;const Lb=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return e.createElement(Dr,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(t,o){var a=t.className,c=t.style;return e.createElement("div",s({ref:o,style:ie(ie({},c),r),className:b()("".concat(n,"-mask"),a,l)},i))})};const Ab=function(t){var n=t.prefixCls,r=void 0===n?"rc-dialog":n,o=t.zIndex,i=t.visible,a=void 0!==i&&i,l=t.keyboard,c=void 0===l||l,u=t.focusTriggerAfterClose,d=void 0===u||u,p=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,v=t.onClose,h=t.afterOpenChange,y=t.afterClose,w=t.transitionName,x=t.animation,C=t.closable,S=void 0===C||C,$=t.mask,E=void 0===$||$,k=t.maskTransitionName,O=t.maskAnimation,j=t.maskClosable,I=void 0===j||j,P=t.maskStyle,N=t.maskProps,M=t.rootClassName,R=t.classNames,T=t.styles;var z=(0,e.useRef)(),_=(0,e.useRef)(),L=(0,e.useRef)(),A=f(e.useState(a),2),B=A[0],D=A[1],F=Tn();function H(e){null===v||void 0===v||v(e)}var W=(0,e.useRef)(!1),V=(0,e.useRef)(),X=null;I&&(X=function(e){W.current?W.current=!1:_.current===e.target&&H(e)}),(0,e.useEffect)(function(){a&&(D(!0),le(_.current,document.activeElement)||(z.current=document.activeElement))},[a]),(0,e.useEffect)(function(){return function(){clearTimeout(V.current)}},[]);var q=ie(ie(ie({zIndex:o},p),null===T||void 0===T?void 0:T.wrapper),{},{display:B?null:"none"});return e.createElement("div",s({className:b()("".concat(r,"-root"),M)},jp(t,{data:!0})),e.createElement(Lb,{prefixCls:r,visible:E&&a,motionName:jb(r,k,O),style:ie(ie({zIndex:o},P),null===T||void 0===T?void 0:T.mask),maskProps:N,className:null===R||void 0===R?void 0:R.mask}),e.createElement("div",s({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===du.ESC)return e.stopPropagation(),void H(e);a&&e.keyCode===du.TAB&&L.current.changeActive(!e.shiftKey)},className:b()("".concat(r,"-wrap"),m,null===R||void 0===R?void 0:R.wrapper),ref:_,onClick:X,style:q},g),e.createElement(_b,s({},t,{onMouseDown:function(){clearTimeout(V.current),W.current=!0},onMouseUp:function(){V.current=setTimeout(function(){W.current=!1})},ref:L,closable:S,ariaId:F,prefixCls:r,visible:a&&B,onClose:H,onVisibleChanged:function(e){if(e)!function(){var e;le(_.current,document.activeElement)||null===(e=L.current)||void 0===e||e.focus()}();else{if(D(!1),E&&z.current&&d){try{z.current.focus({preventScroll:!0})}catch(Ym){}z.current=null}B&&(null===y||void 0===y||y())}null===h||void 0===h||h(e)},motionName:jb(r,w,x)}))))};var Bb=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=void 0!==i&&i,l=t.afterClose,c=t.panelRef,u=f(e.useState(n),2),d=u[0],p=u[1],m=e.useMemo(function(){return{panel:c}},[c]);return e.useEffect(function(){n&&p(!0)},[n]),o||!a||d?e.createElement(Ob.Provider,{value:m},e.createElement(Nn,{open:n||o||d,autoDestroy:!1,getContainer:r,autoLock:n||d},e.createElement(Ab,s({},t,{destroyOnClose:a,afterClose:function(){null===l||void 0===l||l(),p(!1)}})))):null};Bb.displayName="Dialog";const Db=Bb;const Fb=function(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(t=>{t&&Object.keys(t).forEach(n=>{void 0!==t[n]&&(e[n]=t[n])})}),e};function Hb(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Wb(t){const{closable:n,closeIcon:r}=t||{};return e.useMemo(()=>{if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;let e={closeIcon:"boolean"!==typeof r&&null!==r?r:void 0};return n&&"object"===typeof n&&(e=Object.assign(Object.assign({},e),n)),e},[n,r])}const Vb={};const Xb=t=>{const{prefixCls:n,className:r,style:o,size:i,shape:a}=t,l=b()({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),s=b()({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),c=e.useMemo(()=>"number"===typeof i?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return e.createElement("span",{className:b()(n,l,s,r),style:Object.assign(Object.assign({},c),o)})},qb=new Vl("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ub=e=>({height:e,lineHeight:Ea(e)}),Gb=e=>Object.assign({width:e},Ub(e)),Kb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:qb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Yb=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ub(e)),Qb=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Gb(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Gb(o)),[`${t}${t}-sm`]:Object.assign({},Gb(i))}},Zb=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Yb(t,l)),[`${r}-lg`]:Object.assign({},Yb(o,l)),[`${r}-sm`]:Object.assign({},Yb(i,l))}},Jb=e=>Object.assign({width:e},Ub(e)),ey=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Jb(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Jb(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ty=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ny=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ub(e)),ry=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},ny(r,l))},ty(e,r,n)),{[`${n}-lg`]:Object.assign({},ny(o,l))}),ty(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ny(i,l))}),ty(e,i,`${n}-sm`))},oy=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:h,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Gb(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Gb(c)),[`${n}-sm`]:Object.assign({},Gb(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:v,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ry(e)),Qb(e)),Zb(e)),ey(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Kb(e))}}},iy=Xs("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=rs(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[oy(r)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ay=t=>{const{prefixCls:n,className:r,rootClassName:o,active:i,shape:a="circle",size:l="default"}=t,{getPrefixCls:s}=e.useContext(cn),c=s("skeleton",n),[u,d,f]=iy(c),p=nn(t,["prefixCls","className"]),m=b()(c,`${c}-element`,{[`${c}-active`]:i},r,o,d,f);return u(e.createElement("div",{className:m},e.createElement(Xb,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:l},p))))},ly=t=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a}=t,{getPrefixCls:l}=e.useContext(cn),s=l("skeleton",n),[c,u,d]=iy(s),f=b()(s,`${s}-element`,{[`${s}-active`]:a},r,o,u,d);return c(e.createElement("div",{className:f},e.createElement("div",{className:b()(`${s}-image`,r),style:i},e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},e.createElement("title",null,"Image placeholder"),e.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},sy=t=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a,size:l="default"}=t,{getPrefixCls:s}=e.useContext(cn),c=s("skeleton",n),[u,d,f]=iy(c),p=nn(t,["prefixCls"]),m=b()(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},r,o,d,f);return u(e.createElement("div",{className:m},e.createElement(Xb,Object.assign({prefixCls:`${c}-input`,size:l},p))))},cy=t=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a,children:l}=t,{getPrefixCls:s}=e.useContext(cn),c=s("skeleton",n),[u,d,f]=iy(c),p=b()(c,`${c}-element`,{[`${c}-active`]:a},d,r,o,f);return u(e.createElement("div",{className:p},e.createElement("div",{className:b()(`${c}-image`,r),style:i},l)))},uy=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},dy=t=>{const{prefixCls:n,className:r,style:o,rows:i=0}=t,a=Array.from({length:i}).map((n,r)=>e.createElement("li",{key:r,style:{width:uy(r,t)}}));return e.createElement("ul",{className:b()(n,r),style:o},a)},fy=t=>{let{prefixCls:n,className:r,width:o,style:i}=t;return e.createElement("h3",{className:b()(n,r),style:Object.assign({width:o},i)})};function py(e){return e&&"object"===typeof e?e:{}}const my=t=>{const{prefixCls:n,loading:r,className:o,rootClassName:i,style:a,children:l,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=t,{getPrefixCls:p,direction:m,className:g,style:v}=fn("skeleton"),h=p("skeleton",n),[y,w,x]=iy(h);if(r||!("loading"in t)){const t=!!s,n=!!c,r=!!u;let l,p;if(t){const t=Object.assign(Object.assign({prefixCls:`${h}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,r)),py(s));l=e.createElement("div",{className:`${h}-header`},e.createElement(Xb,Object.assign({},t)))}if(n||r){let o,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${h}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(t,r)),py(c));o=e.createElement(fy,Object.assign({},n))}if(r){const r=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(t,n)),py(u));i=e.createElement(dy,Object.assign({},r))}p=e.createElement("div",{className:`${h}-content`},o,i)}const C=b()(h,{[`${h}-with-avatar`]:t,[`${h}-active`]:d,[`${h}-rtl`]:"rtl"===m,[`${h}-round`]:f},g,o,i,w,x);return y(e.createElement("div",{className:C,style:Object.assign(Object.assign({},v),a)},l,p))}return null!==l&&void 0!==l?l:null};my.Button=t=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a=!1,size:l="default"}=t,{getPrefixCls:s}=e.useContext(cn),c=s("skeleton",n),[u,d,f]=iy(c),p=nn(t,["prefixCls"]),m=b()(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},r,o,d,f);return u(e.createElement("div",{className:m},e.createElement(Xb,Object.assign({prefixCls:`${c}-button`,size:l},p))))},my.Avatar=ay,my.Input=sy,my.Image=ly,my.Node=cy;const gy=my;function vy(){}const hy=e.createContext({add:vy,remove:vy});const by=()=>{const{cancelButtonProps:t,cancelTextLocale:n,onCancel:r}=(0,e.useContext)(Sb);return e.createElement(qh,Object.assign({onClick:r},t),n)},yy=()=>{const{confirmLoading:t,okButtonProps:n,okType:r,okTextLocale:o,onOk:i}=(0,e.useContext)(Sb);return e.createElement(qh,Object.assign({},Xv(r),{loading:t,onClick:i},n),o)};const wy=t=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:c,cancelButtonProps:u,footer:d}=t,[f]=wn("Modal",Nf),p={confirmLoading:i,okButtonProps:c,cancelButtonProps:u,okTextLocale:n||(null===f||void 0===f?void 0:f.okText),cancelTextLocale:o||(null===f||void 0===f?void 0:f.cancelText),okType:r,onOk:a,onCancel:s},m=e.useMemo(()=>p,l(Object.values(p)));let g;return"function"===typeof d||"undefined"===typeof d?(g=e.createElement(e.Fragment,null,e.createElement(by,null),e.createElement(yy,null)),"function"===typeof d&&(g=d(g,{OkBtn:yy,CancelBtn:by})),g=e.createElement($b,{value:m},g)):g=d,e.createElement(Bu,{disabled:!1},g)},xy=new Vl("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Cy=new Vl("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Sy=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Tc(r,xy,Cy,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};function $y(e){return{position:e,inset:0}}const Ey=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},$y("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},$y("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Sy(e)}]},ky=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ea(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},gs(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ea(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Ea(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},hs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ea(e.borderRadiusLG)} ${Ea(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:`${Ea(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Oy=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},jy=e=>{const{componentCls:t}=e,n=$g(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${Ea(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(l(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],l(i))}}},Iy=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return rs(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()})},Py=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ea(e.paddingMD)} ${Ea(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ea(e.padding)} ${Ea(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ea(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ea(e.paddingXS)} ${Ea(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ea(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ea(2*e.padding)} ${Ea(2*e.padding)} ${Ea(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Ny=Xs("Modal",e=>{const t=Iy(e);return[ky(t),Oy(t),Ey(t),Gc(t,"zoom"),jy(t)]},Py,{unitless:{titleLineHeight:!0}});var My=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let Ry;const Ty=e=>{Ry={x:e.pageX,y:e.pageY},setTimeout(()=>{Ry=null},100)};ae()&&window.document.documentElement&&document.documentElement.addEventListener("click",Ty,!0);const zy=t=>{const{prefixCls:n,className:r,rootClassName:o,open:i,wrapClassName:a,centered:l,getContainer:s,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:p,classNames:m,styles:g,children:v,loading:h,confirmLoading:y,zIndex:w,mousePosition:x,onOk:C,onCancel:S,destroyOnHidden:$,destroyOnClose:E}=t,k=My(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:O,getPrefixCls:j,direction:I,modal:P}=e.useContext(cn),N=e=>{y||null===S||void 0===S||S(e)};const M=j("modal",n),R=j(),T=Fu(M),[z,_,L]=Ny(M,T),A=b()(a,{[`${M}-centered`]:null!==l&&void 0!==l?l:null===P||void 0===P?void 0:P.centered,[`${M}-wrap-rtl`]:"rtl"===I}),B=null===p||h?null:e.createElement(wy,Object.assign({},t,{onOk:e=>{null===C||void 0===C||C(e)},onCancel:N})),[D,F,H,W]=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vb;const o=Wb(t),i=Wb(n),[a]=wn("global",yn.global),l="boolean"!==typeof o&&!!(null===o||void 0===o?void 0:o.disabled),s=e.useMemo(()=>Object.assign({closeIcon:e.createElement(Yp,null)},r),[r]),c=e.useMemo(()=>!1!==o&&(o?Fb(s,i,o):!1!==i&&(i?Fb(s,i):!!s.closable&&s)),[o,i,s]);return e.useMemo(()=>{var t,n;if(!1===c)return[!1,null,l,{}];const{closeIconRender:r}=s,{closeIcon:o}=c;let i=o;const u=jp(c,!0);return null!==i&&void 0!==i&&(r&&(i=r(o)),i=e.isValidElement(i)?e.cloneElement(i,Object.assign(Object.assign(Object.assign({},i.props),{"aria-label":null!==(n=null===(t=i.props)||void 0===t?void 0:t["aria-label"])&&void 0!==n?n:a.close}),u)):e.createElement("span",Object.assign({"aria-label":a.close},u),i)),[!0,i,l,u]},[c,s])}(Hb(t),Hb(P),{closable:!0,closeIcon:e.createElement(Yp,{className:`${M}-close-icon`}),closeIconRender:t=>function(t,n){return e.createElement("span",{className:`${t}-close-x`},n||e.createElement(Yp,{className:`${t}-close-icon`}))}(M,t)}),V=function(t){const n=e.useContext(hy),r=e.useRef(null);return Zt(e=>{if(e){const o=t?e.querySelector(t):e;n.add(o),r.current=o}else n.remove(r.current)})}(`.${M}-content`),[X,q]=uc("Modal",w),[U,G]=e.useMemo(()=>f&&"object"===typeof f?[void 0,f]:[f,void 0],[f]),K=e.useMemo(()=>{const e={};return G&&Object.keys(G).forEach(t=>{const n=G[t];void 0!==n&&(e[`--${M}-${t}-width`]="number"===typeof n?`${n}px`:n)}),e},[G]);return z(e.createElement(oc,{form:!0,space:!0},e.createElement(ic.Provider,{value:q},e.createElement(Db,Object.assign({width:U},k,{zIndex:X,getContainer:void 0===s?O:s,prefixCls:M,rootClassName:b()(_,o,L,T),footer:B,visible:null!==i&&void 0!==i?i:d,mousePosition:null!==x&&void 0!==x?x:Ry,onClose:N,closable:D?Object.assign({disabled:H,closeIcon:F},W):D,closeIcon:F,focusTriggerAfterClose:c,transitionName:gc(R,"zoom",t.transitionName),maskTransitionName:gc(R,"fade",t.maskTransitionName),className:b()(_,r,null===P||void 0===P?void 0:P.className),style:Object.assign(Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),u),K),classNames:Object.assign(Object.assign(Object.assign({},null===P||void 0===P?void 0:P.classNames),m),{wrapper:b()(A,null===m||void 0===m?void 0:m.wrapper)}),styles:Object.assign(Object.assign({},null===P||void 0===P?void 0:P.styles),g),panelRef:V,destroyOnClose:null!==$&&void 0!==$?$:E}),h?e.createElement(gy,{active:!0,title:!1,paragraph:{rows:4},className:`${M}-body-skeleton`}):v))))},_y=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Ea(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ea(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${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},\n ${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}}},Ly=Us(["Modal","confirm"],e=>{const t=Iy(e);return[_y(t)]},Py,{order:-1e3});var Ay=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function By(t){const{prefixCls:n,icon:r,okText:o,cancelText:i,confirmPrefixCls:a,type:s,okCancel:c,footer:u,locale:d}=t,f=Ay(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let p=r;if(!r&&null!==r)switch(s){case"info":p=e.createElement(Ep,null);break;case"success":p=e.createElement(yp,null);break;case"error":p=e.createElement(Tu,null);break;default:p=e.createElement(Cp,null)}const m=null!==c&&void 0!==c?c:"confirm"===s,g=null!==t.autoFocusButton&&(t.autoFocusButton||"ok"),[v]=wn("Modal"),h=d||v,y=o||(m?null===h||void 0===h?void 0:h.okText:null===h||void 0===h?void 0:h.justOkText),w=i||(null===h||void 0===h?void 0:h.cancelText),x=Object.assign({autoFocusButton:g,cancelTextLocale:w,okTextLocale:y,mergedOkCancel:m},f),C=e.useMemo(()=>x,l(Object.values(x))),S=e.createElement(e.Fragment,null,e.createElement(Eb,null),e.createElement(kb,null)),$=void 0!==t.title&&null!==t.title,E=`${a}-body`;return e.createElement("div",{className:`${a}-body-wrapper`},e.createElement("div",{className:b()(E,{[`${E}-has-title`]:$})},p,e.createElement("div",{className:`${a}-paragraph`},$&&e.createElement("span",{className:`${a}-title`},t.title),e.createElement("div",{className:`${a}-content`},t.content))),void 0===u||"function"===typeof u?e.createElement($b,{value:C},e.createElement("div",{className:`${a}-btns`},"function"===typeof u?u(S,{OkBtn:kb,CancelBtn:Eb}):S)):u,e.createElement(Ly,{prefixCls:n}))}const Dy=t=>{const{close:n,zIndex:r,maskStyle:o,direction:i,prefixCls:a,wrapClassName:l,rootPrefixCls:s,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f}=t;const p=`${a}-confirm`,m=t.width||416,g=t.style||{},v=void 0===t.mask||t.mask,h=void 0!==t.maskClosable&&t.maskClosable,y=b()(p,`${p}-${t.type}`,{[`${p}-rtl`]:"rtl"===i},t.className),[,w]=Vs(),x=e.useMemo(()=>void 0!==r?r:w.zIndexPopupBase+lc,[r,w]);return e.createElement(zy,Object.assign({},t,{className:y,wrapClassName:b()({[`${p}-centered`]:!!t.centered},l),onCancel:()=>{null===n||void 0===n||n({triggerCancel:!0}),null===d||void 0===d||d(!1)},title:"",footer:null,transitionName:gc(s||"","zoom",t.transitionName),maskTransitionName:gc(s||"","fade",t.maskTransitionName),mask:v,maskClosable:h,style:g,styles:Object.assign({body:c,mask:o},f),width:m,zIndex:x,closable:u}),e.createElement(By,Object.assign({},t,{confirmPrefixCls:p})))};const Fy=t=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:o,theme:i}=t;return e.createElement(np,{prefixCls:n,iconPrefixCls:r,direction:o,theme:i},e.createElement(Dy,Object.assign({},t)))};var Hy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wy=(t,n)=>{var r,{afterClose:o,config:i}=t,a=Hy(t,["afterClose","config"]);const[s,c]=e.useState(!0),[u,d]=e.useState(i),{direction:f,getPrefixCls:p}=e.useContext(cn),m=p("modal"),g=p(),v=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some(e=>null===e||void 0===e?void 0:e.triggerCancel)&&(null===(e=u.onCancel)||void 0===e||(o=e).call.apply(o,[u,()=>{}].concat(l(n.slice(1)))))};e.useImperativeHandle(n,()=>({destroy:v,update:e=>{d(t=>{const n="function"===typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const h=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[b]=wn("Modal",yn.Modal);return e.createElement(Fy,Object.assign({prefixCls:m,rootPrefixCls:g},u,{close:v,open:s,afterClose:()=>{var e;o(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(h?null===b||void 0===b?void 0:b.okText:null===b||void 0===b?void 0:b.justOkText),direction:u.direction||f,cancelText:u.cancelText||(null===b||void 0===b?void 0:b.cancelText)},a))},Vy=e.forwardRef(Wy);let Xy=0;const qy=e.memo(e.forwardRef((t,n)=>{const[r,o]=function(){const[t,n]=e.useState([]);return[t,e.useCallback(e=>(n(t=>[].concat(l(t),[e])),()=>{n(t=>t.filter(t=>t!==e))}),[])]}();return e.useImperativeHandle(n,()=>({patchElement:o}),[]),e.createElement(e.Fragment,null,r)}));const Uy=function(){const t=e.useRef(null),[n,r]=e.useState([]);e.useEffect(()=>{if(n.length){l(n).forEach(e=>{e()}),r([])}},[n]);const o=e.useCallback(n=>function(o){var i;Xy+=1;const a=e.createRef();let s;const c=new Promise(e=>{s=e});let u,d=!1;const f=e.createElement(Vy,{key:`modal-${Xy}`,config:n(o),ref:a,afterClose:()=>{null===u||void 0===u||u()},isSilent:()=>d,onConfirm:e=>{s(e)}});u=null===(i=t.current)||void 0===i?void 0:i.patchElement(f),u&&wb.push(u);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r(t=>[].concat(l(t),[e]))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r(e=>[].concat(l(e),[t]))},then:e=>(d=!0,c.then(e))};return p},[]);return[e.useMemo(()=>({info:o(vb),success:o(hb),error:o(bb),warning:o(gb),confirm:o(yb)}),[]),e.createElement(qy,{key:"modal-holder",ref:t})]};function Gy(t,n){return null===n||!1===n?null:n||e.createElement(Yp,{className:`${t}-close-icon`})}const Ky={success:yp,info:Ep,error:Tu,warning:Cp},Yy=t=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,actions:l,role:s="alert"}=t;let c=null;return r?c=e.createElement("span",{className:`${n}-icon`},r):o&&(c=e.createElement(Ky[o]||null,{className:b()(`${n}-icon`,`${n}-icon-${o}`)})),e.createElement("div",{className:b()({[`${n}-with-icon`]:c}),role:s},c,e.createElement("div",{className:`${n}-message`},i),a&&e.createElement("div",{className:`${n}-description`},a),l&&e.createElement("div",{className:`${n}-actions`},l))},Qy=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Vl("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Vl("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Vl("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Vl("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},Zy=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Jy={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ew=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},tw=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},nw=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},ew(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},tw(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Zy.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Jy[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))},rw=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:h,lineHeight:b,width:y,notificationIconSize:w,colorText:x}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[C]:{padding:p,width:y,maxWidth:`calc(100vw - ${Ea(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${C}-message`]:{color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:h,color:x,marginTop:e.marginXS},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:h},[`${C}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},hs(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${Ea(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${C}-actions`]:{float:"right",marginTop:e.marginSM}}},ow=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Vl("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},gs(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},rw(e))}}]},iw=Xs("Notification",e=>{const t=(e=>{const t=e.paddingMD,n=e.paddingLG;return rs(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:`${Ea(e.paddingMD)} ${Ea(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})})(e);return[ow(t),Qy(t),nw(t)]},e=>({zIndexPopup:e.zIndexPopupBase+lc+50,width:384}));var aw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lw=t=>{let{children:n,prefixCls:r}=t;const o=Fu(r),[i,a,l]=iw(r,o);return i(e.createElement(Mp,{classNames:{list:b()(a,l,o)}},n))},sw=(t,n)=>{let{prefixCls:r,key:o}=n;return e.createElement(lw,{prefixCls:r,key:o},t)},cw=e.forwardRef((t,n)=>{const{top:r,bottom:o,prefixCls:i,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:p}=t,{getPrefixCls:m,getPopupContainer:g,notification:v,direction:h}=(0,e.useContext)(cn),[,y]=Vs(),w=i||m("notification"),[x,C]=Fp({prefixCls:w,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!==r&&void 0!==r?r:24,null!==o&&void 0!==o?o:24),className:()=>b()({[`${w}-rtl`]:null!==s&&void 0!==s?s:"rtl"===h}),motion:()=>function(e){return{motionName:`${e}-fade`}}(w),closable:!0,closeIcon:Gy(w),duration:null!==d&&void 0!==d?d:4.5,getContainer:()=>(null===a||void 0===a?void 0:a())||(null===g||void 0===g?void 0:g())||document.body,maxCount:l,pauseOnHover:f,showProgress:p,onAllRemoved:c,renderNotifications:sw,stack:!1!==u&&{threshold:"object"===typeof u?null===u||void 0===u?void 0:u.threshold:void 0,offset:8,gap:y.margin}});return e.useImperativeHandle(n,()=>Object.assign(Object.assign({},x),{prefixCls:w,notification:v})),C});function uw(t){return function(t){const n=e.useRef(null),r=(Nc("Notification"),e.useMemo(()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,s=`${a}-notice`,{message:c,description:u,icon:d,type:f,btn:p,actions:m,className:g,style:v,role:h="alert",closeIcon:y,closable:w}=r,x=aw(r,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),C=null!==m&&void 0!==m?m:p,S=Gy(s,function(e,t,n){return"undefined"!==typeof e?e:"undefined"!==typeof(null===t||void 0===t?void 0:t.closeIcon)?t.closeIcon:null===n||void 0===n?void 0:n.closeIcon}(y,t,l));return i(Object.assign(Object.assign({placement:null!==(o=null===t||void 0===t?void 0:t.placement)&&void 0!==o?o:"topRight"},x),{content:e.createElement(Yy,{prefixCls:s,icon:d,type:f,message:c,description:u,actions:C,role:h}),className:b()(f&&`${s}-${f}`,g,null===l||void 0===l?void 0:l.className),style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),v),closeIcon:S,closable:null!==w&&void 0!==w?w:!!S}))},o={open:r,destroy:e=>{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))}),o},[]));return[r,e.createElement(cw,Object.assign({key:"notification-holder"},t,{ref:n}))]}(t)}const dw=Xs("App",e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({}));const fw=t=>{const{prefixCls:n,children:r,className:o,rootClassName:i,message:a,notification:l,style:s,component:c="div"}=t,{direction:u,getPrefixCls:d}=(0,e.useContext)(cn),f=d("app",n),[p,m,g]=dw(f),v=b()(m,f,o,i,g,{[`${f}-rtl`]:"rtl"===u}),h=(0,e.useContext)(jf),y=e.useMemo(()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),l)}),[a,l,h.message,h.notification]),[w,x]=im(y.message),[C,S]=uw(y.notification),[$,E]=Uy(),k=e.useMemo(()=>({message:w,notification:C,modal:$}),[w,C,$]);Nc("App")(!(g&&!1===c),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=!1===c?e.Fragment:c,j={className:v,style:s};return p(e.createElement(If.Provider,{value:k},e.createElement(jf.Provider,{value:y},e.createElement(O,Object.assign({},!1===c?void 0:j),E,x,S,r))))},pw=()=>e.useContext(If),mw=fw;mw.useApp=pw;const gw=mw;function vw(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,f=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,c=Date.now()-f;function m(){f=Date.now(),t.apply(l,o)}function g(){r=void 0}d||(s||!u||r||m(),p(),void 0===u&&c>e?s?(f=Date.now(),a||(r=setTimeout(u?g:m,e))):m():!0!==a&&(r=setTimeout(u?g:m,void 0===u?e-c:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const hw=80*Math.PI,bw=t=>{const{dotClassName:n,style:r,hasCircleCls:o}=t;return e.createElement("circle",{className:b()(`${n}-circle`,{[`${n}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:r})},yw=t=>{let{percent:n,prefixCls:r}=t;const o=`${r}-dot`,i=`${o}-holder`,a=`${i}-hidden`,[l,s]=e.useState(!1);Qt(()=>{0!==n&&s(!0)},[0!==n]);const c=Math.max(Math.min(n,100),0);if(!l)return null;const u={strokeDashoffset:""+hw/4,strokeDasharray:`${hw*c/100} ${hw*(100-c)/100}`};return e.createElement("span",{className:b()(i,`${o}-progress`,c<=0&&a)},e.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},e.createElement(bw,{dotClassName:o,hasCircleCls:!0}),e.createElement(bw,{dotClassName:o,style:u})))};function ww(t){const{prefixCls:n,percent:r=0}=t,o=`${n}-dot`,i=`${o}-holder`,a=`${i}-hidden`;return e.createElement(e.Fragment,null,e.createElement("span",{className:b()(i,r>0&&a)},e.createElement("span",{className:b()(o,`${n}-dot-spin`)},[1,2,3,4].map(t=>e.createElement("i",{className:`${n}-dot-item`,key:t})))),e.createElement(yw,{prefixCls:n,percent:r}))}function xw(t){var n;const{prefixCls:r,indicator:o,percent:i}=t,a=`${r}-dot`;return o&&e.isValidElement(o)?jc(o,{className:b()(null===(n=o.props)||void 0===n?void 0:n.className,a),percent:i}):e.createElement(ww,{prefixCls:r,percent:i})}const Cw=new Vl("antSpinMove",{to:{opacity:1}}),Sw=new Vl("antRotate",{to:{transform:"rotate(405deg)"}}),$w=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},gs(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Cw,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Sw,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Ew=Xs("Spin",e=>{const t=rs(e,{spinDotDefault:e.colorTextDescription});return[$w(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),kw=[[30,.05],[70,.03],[96,.01]];var Ow=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let jw;const Iw=t=>{var n;const{prefixCls:r,spinning:o=!0,delay:i=0,className:a,rootClassName:l,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:m,percent:g}=t,v=Ow(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:h,direction:y,className:w,style:x,indicator:C}=fn("spin"),S=h("spin",r),[$,E,k]=Ew(S),[O,j]=e.useState(()=>o&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(o,i)),I=function(t,n){const[r,o]=e.useState(0),i=e.useRef(null),a="auto"===n;return e.useEffect(()=>(a&&t&&(o(0),i.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n<kw.length;n+=1){const[r,o]=kw[n];if(e<=r)return e+t*o}return e})},200)),()=>{clearInterval(i.current)}),[a,t]),a?r:n}(O,g);e.useEffect(()=>{if(o){const e=vw(i,()=>{j(!0)});return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}j(!1)},[i,o]);const P=e.useMemo(()=>"undefined"!==typeof f&&!p,[f,p]);const N=b()(S,w,{[`${S}-sm`]:"small"===s,[`${S}-lg`]:"large"===s,[`${S}-spinning`]:O,[`${S}-show-text`]:!!c,[`${S}-rtl`]:"rtl"===y},a,!p&&l,E,k),M=b()(`${S}-container`,{[`${S}-blur`]:O}),R=null!==(n=null!==m&&void 0!==m?m:C)&&void 0!==n?n:jw,T=Object.assign(Object.assign({},x),d),z=e.createElement("div",Object.assign({},v,{style:T,className:N,"aria-live":"polite","aria-busy":O}),e.createElement(xw,{prefixCls:S,indicator:R,percent:I}),c&&(P||p)?e.createElement("div",{className:`${S}-text`},c):null);return $(P?e.createElement("div",Object.assign({},v,{className:b()(`${S}-nested-loading`,u,E,k)}),O&&e.createElement("div",{key:"loading"},z),e.createElement("div",{className:M,key:"container"},f)):p?e.createElement("div",{className:b()(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:O},l,E,k)},z):z)};Iw.setDefaultIndicator=e=>{jw=e};const Pw=Iw,Nw=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});const Mw={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"};var Rw=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Mw}))};const Tw=e.forwardRef(Rw);const zw={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"};var _w=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:zw}))};const Lw=e.forwardRef(_w);const Aw={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"};var Bw=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Aw}))};const Dw=e.forwardRef(Bw),Fw=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,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:i,padding:a,color:l,lineHeight:Ea(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Hw=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},Ww=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Vw=Xs("Layout",e=>[Fw(e)],Hw,{deprecatedTokens:Ww}),Xw=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:Ea(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Ea(f)} ${Ea(f)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Ea(f)} 0 0 ${Ea(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},qw=Xs(["Layout","Sider"],e=>[Xw(e)],Hw,{deprecatedTokens:Ww});var Uw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Gw={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Kw=e.createContext({}),Yw=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Qw=e.forwardRef((t,n)=>{const{prefixCls:r,className:o,trigger:i,children:a,defaultCollapsed:l=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:m,breakpoint:g,onCollapse:v,onBreakpoint:h}=t,y=Uw(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=(0,e.useContext)(Nw),[x,C]=(0,e.useState)("collapsed"in t?t.collapsed:l),[S,$]=(0,e.useState)(!1);(0,e.useEffect)(()=>{"collapsed"in t&&C(t.collapsed)},[t.collapsed]);const E=(e,n)=>{"collapsed"in t||C(e),null===v||void 0===v||v(e,n)},{getPrefixCls:k,direction:O}=(0,e.useContext)(cn),j=k("layout-sider",r),[I,P,N]=qw(j),M=(0,e.useRef)(null);M.current=e=>{$(e.matches),null===h||void 0===h||h(e.matches),x!==e.matches&&E(e.matches,"responsive")},(0,e.useEffect)(()=>{function e(e){var t;return null===(t=M.current)||void 0===t?void 0:t.call(M,e)}let t;return"undefined"!==typeof(null===window||void 0===window?void 0:window.matchMedia)&&g&&g in Gw&&(t=window.matchMedia(`screen and (max-width: ${Gw[g]})`),gg(t,e),e(t)),()=>{vg(t,e)}},[g]),(0,e.useEffect)(()=>{const e=Yw("ant-sider-");return w.addSider(e),()=>w.removeSider(e)},[]);const R=()=>{E(!x,"clickTrigger")},T=nn(y,["collapsed"]),z=x?p:f,_=(L=z,!Number.isNaN(Number.parseFloat(L))&&isFinite(L)?`${z}px`:String(z));var L;const A=0===parseFloat(String(p||0))?e.createElement("span",{onClick:R,className:b()(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${d?"right":"left"}`),style:m},i||e.createElement(Tw,null)):null,B="rtl"===O===!d,D={expanded:B?e.createElement(Dw,null):e.createElement(Lw,null),collapsed:B?e.createElement(Lw,null):e.createElement(Dw,null)}[x?"collapsed":"expanded"],F=null!==i?A||e.createElement("div",{className:`${j}-trigger`,onClick:R,style:{width:_}},i||D):null,H=Object.assign(Object.assign({},c),{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}),W=b()(j,`${j}-${s}`,{[`${j}-collapsed`]:!!x,[`${j}-has-trigger`]:u&&null!==i&&!A,[`${j}-below`]:!!S,[`${j}-zero-width`]:0===parseFloat(_)},o,P,N),V=e.useMemo(()=>({siderCollapsed:x}),[x]);return I(e.createElement(Kw.Provider,{value:V},e.createElement("aside",Object.assign({className:W},T,{style:H,ref:n}),e.createElement("div",{className:`${j}-children`},a),u||S&&A?F:null)))});const Zw=Qw;var Jw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ex(t){let{suffixCls:n,tagName:r,displayName:o}=t;return t=>e.forwardRef((o,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:r},o)))}const tx=e.forwardRef((t,n)=>{const{prefixCls:r,suffixCls:o,className:i,tagName:a}=t,l=Jw(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=e.useContext(cn),c=s("layout",r),[u,d,f]=Vw(c),p=o?`${c}-${o}`:c;return u(e.createElement(a,Object.assign({className:b()(r||p,i,d,f),ref:n},l)))}),nx=e.forwardRef((t,n)=>{const{direction:r}=e.useContext(cn),[o,i]=e.useState([]),{prefixCls:a,className:s,rootClassName:c,children:u,hasSider:d,tagName:f,style:p}=t,m=nn(Jw(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:g,className:v,style:h}=fn("layout"),y=g("layout",a),w=function(e,t,n){return"boolean"===typeof n?n:!!e.length||qe(t).some(e=>e.type===Zw)}(o,u,d),[x,C,S]=Vw(y),$=b()(y,{[`${y}-has-sider`]:w,[`${y}-rtl`]:"rtl"===r},v,s,c,C,S),E=e.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(l(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return x(e.createElement(Nw.Provider,{value:E},e.createElement(f,Object.assign({ref:n,className:$,style:Object.assign(Object.assign({},h),p)},m),u)))}),rx=ex({tagName:"div",displayName:"Layout"})(nx),ox=ex({suffixCls:"header",tagName:"header",displayName:"Header"})(tx),ix=ex({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(tx),ax=ex({suffixCls:"content",tagName:"main",displayName:"Content"})(tx),lx=rx;lx.Header=ox,lx.Footer=ix,lx.Content=ax,lx.Sider=Zw,lx._InternalSiderContext=Kw;const sx=lx;var cx=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ux=e.forwardRef(function(t,n){var r,o=t.prefixCls,i=void 0===o?"rc-switch":o,a=t.className,l=t.checked,c=t.defaultChecked,u=t.disabled,d=t.loadingIcon,p=t.checkedChildren,m=t.unCheckedChildren,h=t.onClick,y=t.onChange,w=t.onKeyDown,x=v(t,cx),C=f(tn(!1,{value:l,defaultValue:c}),2),S=C[0],$=C[1];function E(e,t){var n=S;return u||($(n=e),null===y||void 0===y||y(n,t)),n}var k=b()(i,a,(g(r={},"".concat(i,"-checked"),S),g(r,"".concat(i,"-disabled"),u),r));return e.createElement("button",s({},x,{type:"button",role:"switch","aria-checked":S,disabled:u,className:k,ref:n,onKeyDown:function(e){e.which===du.LEFT?E(!1,e):e.which===du.RIGHT&&E(!0,e),null===w||void 0===w||w(e)},onClick:function(e){var t=E(!S,e);null===h||void 0===h||h(t,e)}}),d,e.createElement("span",{className:"".concat(i,"-inner")},e.createElement("span",{className:"".concat(i,"-inner-checked")},p),e.createElement("span",{className:"".concat(i,"-inner-unchecked")},m)))});ux.displayName="Switch";const dx=ux,fx=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=Ea(s(l).add(s(r).mul(2)).equal()),d=Ea(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Ea(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ea(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},px=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},mx=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Ea(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},gx=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=Ea(l(a).add(l(r).mul(2)).equal()),u=Ea(l(i).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},vx=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gs(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Ea(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),hs(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"}})}},hx=Xs("Switch",e=>{const t=rs(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[vx(t),gx(t),mx(t),px(t),fx(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new S("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}});var bx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yx=e.forwardRef((t,n)=>{const{prefixCls:r,size:o,disabled:i,loading:a,className:l,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:m}=t,g=bx(t,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,h]=tn(!1,{value:null!==u&&void 0!==u?u:d,defaultValue:null!==f&&void 0!==f?f:p}),{getPrefixCls:y,direction:w,switch:x}=e.useContext(cn),C=e.useContext(Du),S=(null!==i&&void 0!==i?i:C)||a,$=y("switch",r),E=e.createElement("div",{className:`${$}-handle`},a&&e.createElement(ef,{className:`${$}-loading-icon`})),[k,O,j]=hx($),I=na(o),P=b()(null===x||void 0===x?void 0:x.className,{[`${$}-small`]:"small"===I,[`${$}-loading`]:a,[`${$}-rtl`]:"rtl"===w},l,s,O,j),N=Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),c);return k(e.createElement(Bv,{component:"Switch"},e.createElement(dx,Object.assign({},g,{checked:v,onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];h(t[0]),null===m||void 0===m||m.apply(void 0,t)},prefixCls:$,className:P,style:N,disabled:S,ref:n,loadingIcon:E}))))}),wx=yx;wx.__ANT_SWITCH=!0;const xx=wx;var Cx=du.ESC,Sx=du.TAB;const $x=(0,e.forwardRef)(function(t,n){var r=t.overlay,o=t.arrow,i=t.prefixCls,a=(0,e.useMemo)(function(){return"function"===typeof r?r():r},[r]),l=nt(n,at(a));return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:ot(a)?l:void 0}))});var Ex={adjustX:1,adjustY:1},kx=[0,0];const Ox={topLeft:{points:["bl","tl"],overflow:Ex,offset:[0,-4],targetOffset:kx},top:{points:["bc","tc"],overflow:Ex,offset:[0,-4],targetOffset:kx},topRight:{points:["br","tr"],overflow:Ex,offset:[0,-4],targetOffset:kx},bottomLeft:{points:["tl","bl"],overflow:Ex,offset:[0,4],targetOffset:kx},bottom:{points:["tc","bc"],overflow:Ex,offset:[0,4],targetOffset:kx},bottomRight:{points:["tr","br"],overflow:Ex,offset:[0,4],targetOffset:kx}};var jx=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ix(t,n){var r,o=t.arrow,i=void 0!==o&&o,a=t.prefixCls,l=void 0===a?"rc-dropdown":a,c=t.transitionName,u=t.animation,d=t.align,p=t.placement,m=void 0===p?"bottomLeft":p,h=t.placements,y=void 0===h?Ox:h,w=t.getPopupContainer,x=t.showAction,C=t.hideAction,S=t.overlayClassName,$=t.overlayStyle,E=t.visible,k=t.trigger,O=void 0===k?["hover"]:k,j=t.autoFocus,I=t.overlay,P=t.children,N=t.onVisibleChange,M=v(t,jx),R=f(e.useState(),2),T=R[0],z=R[1],_="visible"in t?E:T,L=e.useRef(null),A=e.useRef(null),B=e.useRef(null);e.useImperativeHandle(n,function(){return L.current});var D=function(e){z(e),null===N||void 0===N||N(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,l=e.useRef(!1),s=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null===o||void 0===o||o(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus)&&(a.current.focus(),l.current=!0,!0)},u=function(e){switch(e.keyCode){case Cx:s();break;case Sx:var t=!1;l.current||(t=c()),t?e.preventDefault():s()}};e.useEffect(function(){return n?(window.addEventListener("keydown",u),i&&Cr(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[n])}({visible:_,triggerRef:B,onVisibleChange:D,autoFocus:j,overlayRef:A});var F=function(){return e.createElement($x,{ref:A,overlay:I,prefixCls:l,arrow:i})},H=e.cloneElement(P,{className:b()(null===(r=P.props)||void 0===r?void 0:r.className,_&&function(){var e=t.openClassName;return void 0!==e?e:"".concat(l,"-open")}()),ref:ot(P)?nt(B,at(P)):void 0}),W=C;return W||-1===O.indexOf("contextMenu")||(W=["click"]),e.createElement(fo,s({builtinPlacements:y},M,{prefixCls:l,ref:L,popupClassName:b()(S,g({},"".concat(l,"-show-arrow"),i)),popupStyle:$,action:O,showAction:x,hideAction:W,popupPlacement:m,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:_,stretch:function(){var e=t.minOverlayWidthMatchTrigger,n=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?e:!n}()?"minWidth":"",popup:"function"===typeof I?F:F(),onPopupVisibleChange:D,onPopupClick:function(e){var n=t.onOverlayClick;z(!1),n&&n(e)},getPopupContainer:w}),H)}const Px=e.forwardRef(Ix),Nx=e=>"object"!==typeof e&&"function"!==typeof e||null===e;const Mx=(t,n,r,o,i)=>function(t){return n=>e.createElement(np,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}(a=>{const{prefixCls:l,style:s}=a,c=e.useRef(null),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,g]=tn(!1,{value:a.open}),{getPrefixCls:v}=e.useContext(cn),h=v(o||"select",l);e.useEffect(()=>{if(g(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;const r=i?`.${i(h)}`:`.${h}-dropdown`,o=null===(n=c.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(b=r(b)),n&&Object.assign(b,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:f};return e.createElement("div",{ref:c,style:y},e.createElement(t,Object.assign({},b)))});var Rx=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Tx=void 0;function zx(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,c=t.responsiveDisabled,u=t.registerSize,d=t.itemKey,f=t.className,p=t.style,m=t.children,g=t.display,h=t.order,y=t.component,w=void 0===y?"div":y,x=v(t,Rx),C=l&&!g;function S(e){u(d,e)}e.useEffect(function(){return function(){S(null)}},[]);var $,E=a&&i!==Tx?a(i,{index:h}):m;o||($={opacity:C?0:1,height:C?0:Tx,overflowY:C?"hidden":Tx,order:l?h:Tx,pointerEvents:C?"none":Tx,position:C?"absolute":Tx});var k={};C&&(k["aria-hidden"]=!0);var O=e.createElement(w,s({className:b()(!o&&r,f),style:ie(ie({},$),p)},k,x,{ref:n}),E);return l&&(O=e.createElement(Ut,{onResize:function(e){S(e.offsetWidth)},disabled:c},O)),O}var _x=e.forwardRef(zx);_x.displayName="Item";const Lx=_x;function Ax(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"===typeof MessageChannel)Cr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,Ue.unstable_batchedUpdates)(function(){t.current.forEach(function(e){e()}),t.current=null})})),t.current.push(e)}}function Bx(t,n){var r=f(e.useState(n),2),o=r[0],i=r[1];return[o,Zt(function(e){t(function(){i(e)})})]}var Dx=e.createContext(null),Fx=["component"],Hx=["className"],Wx=["className"],Vx=function(t,n){var r=e.useContext(Dx);if(!r){var o=t.component,i=void 0===o?"div":o,a=v(t,Fx);return e.createElement(i,s({},a,{ref:n}))}var l=r.className,c=v(r,Hx),u=t.className,d=v(t,Wx);return e.createElement(Dx.Provider,{value:null},e.createElement(Lx,s({ref:n,className:b()(l,u)},c,d)))},Xx=e.forwardRef(Vx);Xx.displayName="RawItem";const qx=Xx;var Ux=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Gx="responsive",Kx="invalidate";function Yx(e){return"+ ".concat(e.length," ...")}function Qx(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,i=t.data,a=void 0===i?[]:i,l=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,p=void 0===d?10:d,m=t.ssr,g=t.style,h=t.className,y=t.maxCount,w=t.renderRest,x=t.renderRawRest,C=t.suffix,S=t.component,$=void 0===S?"div":S,E=t.itemComponent,k=t.onVisibleChange,O=v(t,Ux),j="full"===m,I=Ax(),P=f(Bx(I,null),2),N=P[0],M=P[1],R=N||0,T=f(Bx(I,new Map),2),z=T[0],_=T[1],L=f(Bx(I,0),2),A=L[0],B=L[1],D=f(Bx(I,0),2),F=D[0],H=D[1],W=f(Bx(I,0),2),V=W[0],X=W[1],q=f((0,e.useState)(null),2),U=q[0],G=q[1],K=f((0,e.useState)(null),2),Y=K[0],Q=K[1],Z=e.useMemo(function(){return null===Y&&j?Number.MAX_SAFE_INTEGER:Y||0},[Y,N]),J=f((0,e.useState)(!1),2),ee=J[0],te=J[1],ne="".concat(o,"-item"),re=Math.max(A,F),oe=y===Gx,ae=a.length&&oe,le=y===Kx,se=ae||"number"===typeof y&&a.length>y,ce=(0,e.useMemo)(function(){var e=a;return ae?e=null===N&&j?a:a.slice(0,Math.min(a.length,R/p)):"number"===typeof y&&(e=a.slice(0,y)),e},[a,p,N,y,ae]),ue=(0,e.useMemo)(function(){return ae?a.slice(Z+1):a.slice(ce.length)},[a,ce,ae,Z]),de=(0,e.useCallback)(function(e,t){var n;return"function"===typeof u?u(e):null!==(n=u&&(null===e||void 0===e?void 0:e[u]))&&void 0!==n?n:t},[u]),fe=(0,e.useCallback)(l||function(e){return e},[l]);function pe(e,t,n){(Y!==e||void 0!==t&&t!==U)&&(Q(e),n||(te(e<a.length-1),null===k||void 0===k||k(e)),void 0!==t&&G(t))}function me(e,t){_(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function ge(e){return z.get(de(ce[e],e))}Qt(function(){if(R&&"number"===typeof re&&ce){var e=V,t=ce.length,n=t-1;if(!t)return void pe(0,null);for(var r=0;r<t;r+=1){var o=ge(r);if(j&&(o=o||0),void 0===o){pe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=R||r===n-1&&e+ge(n)<=R){pe(n,null);break}if(e+re>R){pe(r-1,e-o-V+F);break}}C&&ge(0)+V>R&&G(null)}},[R,z,F,V,de,ce]);var ve=ee&&!!ue.length,he={};null!==U&&ae&&(he={position:"absolute",left:U,top:0});var be={prefixCls:ne,responsive:ae,component:E,invalidate:le},ye=c?function(t,n){var r=de(t,n);return e.createElement(Dx.Provider,{key:r,value:ie(ie({},be),{},{order:n,item:t,itemKey:r,registerSize:me,display:n<=Z})},c(t,n))}:function(t,n){var r=de(t,n);return e.createElement(Lx,s({},be,{order:n,key:r,item:t,renderItem:fe,itemKey:r,registerSize:me,display:n<=Z}))},we={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),B(F)},display:ve},xe=w||Yx,Ce=x?e.createElement(Dx.Provider,{value:ie(ie({},be),we)},x(ue)):e.createElement(Lx,s({},be,we),"function"===typeof xe?xe(ue):xe),Se=e.createElement($,s({className:b()(!le&&o,h),style:g,ref:n},O),ce.map(ye),se?Ce:null,C&&e.createElement(Lx,s({},be,{responsive:oe,responsiveDisabled:!ae,order:Z,className:"".concat(ne,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:he}),C));return oe?e.createElement(Ut,{onResize:function(e,t){M(t.clientWidth)},disabled:!ae},Se):Se}var Zx=e.forwardRef(Qx);Zx.displayName="Overflow",Zx.Item=qx,Zx.RESPONSIVE=Gx,Zx.INVALIDATE=Kx;const Jx=Zx;var eC=e.createContext(null);function tC(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function nC(t){return tC(e.useContext(eC),t)}var rC=["children","locked"],oC=e.createContext(null);function iC(t){var n=t.children,r=t.locked,o=v(t,rC),i=e.useContext(oC),a=Je(function(){return function(e,t){var n=ie({},e);return Object.keys(t).forEach(function(e){var r=t[e];void 0!==r&&(n[e]=r)}),n}(i,o)},[i,o],function(e,t){return!r&&(e[0]!==t[0]||!No(e[1],t[1],!0))});return e.createElement(oC.Provider,{value:a},n)}var aC=[],lC=e.createContext(null);function sC(){return e.useContext(lC)}var cC=e.createContext(aC);function uC(t){var n=e.useContext(cC);return e.useMemo(function(){return void 0!==t?[].concat(l(n),[t]):n},[n,t])}var dC=e.createContext(null);const fC=e.createContext({});function pC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Qr(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function mC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=l(e.querySelectorAll("*")).filter(function(e){return pC(e,t)});return pC(e,t)&&n.unshift(e),n}var gC=du.LEFT,vC=du.RIGHT,hC=du.UP,bC=du.DOWN,yC=du.ENTER,wC=du.ESC,xC=du.HOME,CC=du.END,SC=[hC,bC,gC,vC];function $C(e,t){return mC(e,!0).filter(function(e){return t.has(e)})}function EC(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=$C(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var kC=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(tC(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};function OC(t,n,r,o,i,a,l,s,c,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){Cr.cancel(d.current)};return e.useEffect(function(){return function(){p()}},[]),function(e){var m=e.which;if([].concat(SC,[yC,wC,xC,CC]).includes(m)){var v=a(),h=kC(v,o),b=h,y=b.elements,w=b.key2element,x=b.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(w.get(n),y),S=x.get(C),$=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===yC)return{inlineTrigger:!0};var c=g(g({},hC,i),bC,a),u=g(g(g(g({},gC,n?a:i),vC,n?i:a),bC,l),yC,l),d=g(g(g(g(g(g({},hC,i),bC,a),yC,l),wC,s),gC,n?l:s),vC,n?s:l);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(t,1===l(S,!0).length,r,m);if(!$&&m!==xC&&m!==CC)return;(SC.includes(m)||[xC,CC].includes(m))&&e.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var r=x.get(e);s(r),p(),d.current=Cr(function(){f.current===r&&t.focus()})}};if([xC,CC].includes(m)||$.sibling||!C){var k,O,j=$C(k=C&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,y);O=m===xC?j[0]:m===CC?j[j.length-1]:EC(k,y,C,$.offset),E(O)}else if($.inlineTrigger)c(S);else if($.offset>0)c(S,!0),p(),d.current=Cr(function(){h=kC(v,o);var e=C.getAttribute("aria-controls"),t=EC(document.getElementById(e),h.elements);E(t)},5);else if($.offset<0){var I=l(S,!0),P=I[I.length-2],N=w.get(P);c(P,!1),E(N)}}null===u||void 0===u||u(e)}}var jC="__RC_UTIL_PATH_SPLIT__",IC=function(e){return e.join(jC)},PC="rc-menu-more";function NC(){var t=f(e.useState({}),2)[1],n=(0,e.useRef)(new Map),r=(0,e.useRef)(new Map),o=f(e.useState([]),2),i=o[0],a=o[1],s=(0,e.useRef)(0),c=(0,e.useRef)(!1),u=(0,e.useCallback)(function(e,o){var i=IC(o);r.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(c.current||t({}))},Promise.resolve().then(a)},[]),d=(0,e.useCallback)(function(e,t){var o=IC(t);r.current.delete(o),n.current.delete(e)},[]),p=(0,e.useCallback)(function(e){a(e)},[]),m=(0,e.useCallback)(function(e,t){var r=n.current.get(e)||"",o=r.split(jC);return t&&i.includes(o[0])&&o.unshift(PC),o},[i]),g=(0,e.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return m(e,!0).includes(t)})},[m]),v=(0,e.useCallback)(function(e){var t="".concat(n.current.get(e)).concat(jC),o=new Set;return l(r.current.keys()).forEach(function(e){e.startsWith(t)&&o.add(r.current.get(e))}),o},[]);return e.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=l(n.current.keys());return i.length&&e.push(PC),e},getSubPathKeys:v}}function MC(t){var n=e.useRef(t);n.current=t;var r=e.useCallback(function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))},[]);return t?r:void 0}var RC=Math.random().toFixed(5).toString().slice(2),TC=0;function zC(t,n,r,o){var i=e.useContext(oC),a=i.activeKey,l=i.onActive,s=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null===r||void 0===r||r({key:t,domEvent:e}),l(t)},c.onMouseLeave=function(e){null===o||void 0===o||o({key:t,domEvent:e}),s(t)}),c}function _C(t){var n=e.useContext(oC),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:t*i}:{paddingLeft:t*i}}function LC(t){var n,r=t.icon,o=t.props,i=t.children;return null===r||!1===r?null:("function"===typeof r?n=e.createElement(r,ie({},o)):"boolean"!==typeof r&&(n=r),n||i||null)}var AC=["item"];function BC(e){var t=e.item,n=v(e,AC);return Object.defineProperty(n,"item",{get:function(){return ke(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var DC=["title","attribute","elementRef"],FC=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],HC=["active"],WC=function(t){_t(r,t);var n=Ft(r);function r(){return Mt(this,r),n.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,i=nn(v(t,DC),["eventKey","popupClassName","popupOffset","onTitleClick"]);return ke(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(Jx.Item,s({},r,{title:"string"===typeof n?n:void 0},i,{ref:o}))}}]),r}(e.Component),VC=e.forwardRef(function(t,n){var r=t.style,o=t.className,i=t.eventKey,a=(t.warnKey,t.disabled),c=t.itemIcon,u=t.children,d=t.role,f=t.onMouseEnter,p=t.onMouseLeave,m=t.onClick,h=t.onKeyDown,y=t.onFocus,w=v(t,FC),x=nC(i),C=e.useContext(oC),S=C.prefixCls,$=C.onItemClick,E=C.disabled,k=C.overflowDisabled,O=C.itemIcon,j=C.selectedKeys,I=C.onActive,P=e.useContext(fC)._internalRenderMenuItem,N="".concat(S,"-item"),M=e.useRef(),R=e.useRef(),T=E||a,z=rt(n,R),_=uC(i);var L=function(e){return{key:i,keyPath:l(_).reverse(),item:M.current,domEvent:e}},A=c||O,B=zC(i,T,f,p),D=B.active,F=v(B,HC),H=j.includes(i),W=_C(_.length),V={};"option"===t.role&&(V["aria-selected"]=H);var X=e.createElement(WC,s({ref:M,elementRef:z,role:null===d?"none":d||"menuitem",tabIndex:a?null:-1,"data-menu-id":k&&x?null:x},nn(w,["extra"]),F,V,{component:"li","aria-disabled":a,style:ie(ie({},W),r),className:b()(N,g(g(g({},"".concat(N,"-active"),D),"".concat(N,"-selected"),H),"".concat(N,"-disabled"),T),o),onClick:function(e){if(!T){var t=L(e);null===m||void 0===m||m(BC(t)),$(t)}},onKeyDown:function(e){if(null===h||void 0===h||h(e),e.which===du.ENTER){var t=L(e);null===m||void 0===m||m(BC(t)),$(t)}},onFocus:function(e){I(i),null===y||void 0===y||y(e)}}),u,e.createElement(LC,{props:ie(ie({},t),{},{isSelected:H}),icon:A}));return P&&(X=P(X,t,{selected:H})),X});function XC(t,n){var r=t.eventKey,o=sC(),i=uC(r);return e.useEffect(function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}},[i]),o?null:e.createElement(VC,s({},t,{ref:n}))}const qC=e.forwardRef(XC);var UC=["className","children"],GC=function(t,n){var r=t.className,o=t.children,i=v(t,UC),a=e.useContext(oC),l=a.prefixCls,c=a.mode,u=a.rtl;return e.createElement("ul",s({className:b()(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},KC=e.forwardRef(GC);KC.displayName="SubMenuList";const YC=KC;function QC(t,n){return qe(t).map(function(t,r){if(e.isValidElement(t)){var o,i,a=t.key,s=null!==(o=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;(null===s||void 0===s)&&(s="tmp_key-".concat([].concat(l(n),[r]).join("-")));var c={key:s,eventKey:s};return e.cloneElement(t,c)}return t})}var ZC={adjustX:1,adjustY:1},JC={topLeft:{points:["bl","tl"],overflow:ZC},topRight:{points:["br","tr"],overflow:ZC},bottomLeft:{points:["tl","bl"],overflow:ZC},bottomRight:{points:["tr","br"],overflow:ZC},leftTop:{points:["tr","tl"],overflow:ZC},leftBottom:{points:["br","bl"],overflow:ZC},rightTop:{points:["tl","tr"],overflow:ZC},rightBottom:{points:["bl","br"],overflow:ZC}},eS={topLeft:{points:["bl","tl"],overflow:ZC},topRight:{points:["br","tr"],overflow:ZC},bottomLeft:{points:["tl","bl"],overflow:ZC},bottomRight:{points:["tr","br"],overflow:ZC},rightTop:{points:["tr","tl"],overflow:ZC},rightBottom:{points:["br","bl"],overflow:ZC},leftTop:{points:["tl","tr"],overflow:ZC},leftBottom:{points:["bl","br"],overflow:ZC}};function tS(e,t,n){return t||(n?n[e]||n.other:void 0)}var nS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function rS(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,a=t.popupStyle,l=t.popupClassName,s=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,p=e.useContext(oC),m=p.getPopupContainer,v=p.rtl,h=p.subMenuOpenDelay,y=p.subMenuCloseDelay,w=p.builtinPlacements,x=p.triggerSubMenuAction,C=p.forceSubMenuRender,S=p.rootClassName,$=p.motion,E=p.defaultMotions,k=f(e.useState(!1),2),O=k[0],j=k[1],I=ie(ie({},v?eS:JC),w),P=nS[u],N=tS(u,$,E),M=e.useRef(N);"inline"!==u&&(M.current=N);var R=ie(ie({},M.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=e.useRef();return e.useEffect(function(){return T.current=Cr(function(){j(r)}),function(){Cr.cancel(T.current)}},[r]),e.createElement(fo,{prefixCls:n,popupClassName:b()("".concat(n,"-popup"),g({},"".concat(n,"-rtl"),v),l,S),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:P,popupVisible:O,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[x],mouseEnterDelay:h,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:C,popupMotion:R,fresh:!0},o)}function oS(t){var n=t.id,r=t.open,o=t.keyPath,i=t.children,a="inline",l=e.useContext(oC),c=l.prefixCls,u=l.forceSubMenuRender,d=l.motion,p=l.defaultMotions,m=l.mode,g=e.useRef(!1);g.current=m===a;var v=f(e.useState(!g.current),2),h=v[0],b=v[1],y=!!g.current&&r;e.useEffect(function(){g.current&&b(!1)},[m]);var w=ie({},tS(a,d,p));o.length>1&&(w.motionAppear=!1);var x=w.onVisibleChanged;return w.onVisibleChanged=function(e){return g.current||e||b(!0),null===x||void 0===x?void 0:x(e)},h?null:e.createElement(iC,{mode:a,locked:!g.current},e.createElement(Dr,s({visible:y},w,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(t){var r=t.className,o=t.style;return e.createElement(YC,{id:n,className:r,style:o},i)}))}var iS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],aS=["active"],lS=e.forwardRef(function(t,n){var r=t.style,o=t.className,i=t.title,a=t.eventKey,l=(t.warnKey,t.disabled),c=t.internalPopupClose,u=t.children,d=t.itemIcon,p=t.expandIcon,m=t.popupClassName,h=t.popupOffset,y=t.popupStyle,w=t.onClick,x=t.onMouseEnter,C=t.onMouseLeave,S=t.onTitleClick,$=t.onTitleMouseEnter,E=t.onTitleMouseLeave,k=v(t,iS),O=nC(a),j=e.useContext(oC),I=j.prefixCls,P=j.mode,N=j.openKeys,M=j.disabled,R=j.overflowDisabled,T=j.activeKey,z=j.selectedKeys,_=j.itemIcon,L=j.expandIcon,A=j.onItemClick,B=j.onOpenChange,D=j.onActive,F=e.useContext(fC)._internalRenderSubMenuItem,H=e.useContext(dC).isSubPathKey,W=uC(),V="".concat(I,"-submenu"),X=M||l,q=e.useRef(),U=e.useRef();var G=null!==d&&void 0!==d?d:_,K=null!==p&&void 0!==p?p:L,Y=N.includes(a),Q=!R&&Y,Z=H(z,a),J=zC(a,X,$,E),ee=J.active,te=v(J,aS),ne=f(e.useState(!1),2),re=ne[0],oe=ne[1],ae=function(e){X||oe(e)},le=e.useMemo(function(){return ee||"inline"!==P&&(re||H([T],a))},[P,ee,T,re,a,H]),se=_C(W.length),ce=MC(function(e){null===w||void 0===w||w(BC(e)),A(e)}),ue=O&&"".concat(O,"-popup"),de=e.useMemo(function(){return e.createElement(LC,{icon:"horizontal"!==P?K:void 0,props:ie(ie({},t),{},{isOpen:Q,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))},[P,K,t,Q,V]),fe=e.createElement("div",s({role:"menuitem",style:se,className:"".concat(V,"-title"),tabIndex:X?null:-1,ref:q,title:"string"===typeof i?i:null,"data-menu-id":R&&O?null:O,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":X,onClick:function(e){X||(null===S||void 0===S||S({key:a,domEvent:e}),"inline"===P&&B(a,!Y))},onFocus:function(){D(a)}},te),i,de),pe=e.useRef(P);if("inline"!==P&&W.length>1?pe.current="vertical":pe.current=P,!R){var me=pe.current;fe=e.createElement(rS,{mode:me,prefixCls:V,visible:!c&&Q&&"inline"!==P,popupClassName:m,popupOffset:h,popupStyle:y,popup:e.createElement(iC,{mode:"horizontal"===me?"vertical":me},e.createElement(YC,{id:ue,ref:U},u)),disabled:X,onVisibleChange:function(e){"inline"!==P&&B(a,e)}},fe)}var ge=e.createElement(Jx.Item,s({ref:n,role:"none"},k,{component:"li",style:r,className:b()(V,"".concat(V,"-").concat(P),o,g(g(g(g({},"".concat(V,"-open"),Q),"".concat(V,"-active"),le),"".concat(V,"-selected"),Z),"".concat(V,"-disabled"),X)),onMouseEnter:function(e){ae(!0),null===x||void 0===x||x({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null===C||void 0===C||C({key:a,domEvent:e})}}),fe,!R&&e.createElement(oS,{id:ue,open:Q,keyPath:W},u));return F&&(ge=F(ge,t,{selected:Z,active:le,open:Q,disabled:X})),e.createElement(iC,{onItemClick:ce,mode:"horizontal"===P?"vertical":P,itemIcon:G,expandIcon:K},ge)});const sS=e.forwardRef(function(t,n){var r,o=t.eventKey,i=t.children,a=uC(o),l=QC(i,a),c=sC();return e.useEffect(function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}},[a]),r=c?l:e.createElement(lS,s({ref:n},t),l),e.createElement(cC.Provider,{value:a},r)});function cS(t){var n=t.className,r=t.style,o=e.useContext(oC).prefixCls;return sC()?null:e.createElement("li",{role:"separator",className:b()("".concat(o,"-item-divider"),n),style:r})}var uS=["className","title","eventKey","children"],dS=e.forwardRef(function(t,n){var r=t.className,o=t.title,i=(t.eventKey,t.children),a=v(t,uS),l=e.useContext(oC).prefixCls,c="".concat(l,"-item-group");return e.createElement("li",s({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:b()(c,r)}),e.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"===typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))});const fS=e.forwardRef(function(t,n){var r=t.eventKey,o=QC(t.children,uC(r));return sC()?o:e.createElement(dS,s({ref:n},nn(t,["warnKey"])),o)});var pS=["label","children","key","type","extra"];function mS(t,n,r){var o=n.item,i=n.group,a=n.submenu,l=n.divider;return(t||[]).map(function(t,c){if(t&&"object"===p(t)){var u=t,d=u.label,f=u.children,m=u.key,g=u.type,h=u.extra,b=v(u,pS),y=null!==m&&void 0!==m?m:"tmp-".concat(c);return f||"group"===g?"group"===g?e.createElement(i,s({key:y},b,{title:d}),mS(f,n,r)):e.createElement(a,s({key:y},b,{title:d}),mS(f,n,r)):"divider"===g?e.createElement(l,s({key:y},b)):e.createElement(o,s({key:y},b,{extra:h}),d,(!!h||0===h)&&e.createElement("span",{className:"".concat(r,"-item-extra")},h))}return null}).filter(function(e){return e})}function gS(e,t,n,r,o){var i=e,a=ie({divider:cS,item:qC,group:fS,submenu:sS},r);return t&&(i=mS(t,a,o)),QC(i,n)}var vS=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],hS=[],bS=e.forwardRef(function(t,n){var r,o=t,i=o.prefixCls,a=void 0===i?"rc-menu":i,c=o.rootClassName,u=o.style,d=o.className,p=o.tabIndex,m=void 0===p?0:p,h=o.items,y=o.children,w=o.direction,x=o.id,C=o.mode,S=void 0===C?"vertical":C,$=o.inlineCollapsed,E=o.disabled,k=o.disabledOverflow,O=o.subMenuOpenDelay,j=void 0===O?.1:O,I=o.subMenuCloseDelay,P=void 0===I?.1:I,N=o.forceSubMenuRender,M=o.defaultOpenKeys,R=o.openKeys,T=o.activeKey,z=o.defaultActiveFirst,_=o.selectable,L=void 0===_||_,A=o.multiple,B=void 0!==A&&A,D=o.defaultSelectedKeys,F=o.selectedKeys,H=o.onSelect,W=o.onDeselect,V=o.inlineIndent,X=void 0===V?24:V,q=o.motion,U=o.defaultMotions,G=o.triggerSubMenuAction,K=void 0===G?"hover":G,Y=o.builtinPlacements,Q=o.itemIcon,Z=o.expandIcon,J=o.overflowedIndicator,ee=void 0===J?"...":J,te=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,re=o.onClick,oe=o.onOpenChange,ae=o.onKeyDown,le=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ce=o._internalComponents,ue=v(o,vS),de=f(e.useMemo(function(){return[gS(y,h,hS,ce,a),gS(y,h,hS,{},a)]},[y,h,ce]),2),fe=de[0],pe=de[1],me=f(e.useState(!1),2),ge=me[0],ve=me[1],he=e.useRef(),be=function(t){var n=f(tn(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect(function(){TC+=1;var e="".concat(RC,"-").concat(TC);o("rc-menu-uuid-".concat(e))},[]),r}(x),ye="rtl"===w;var we=tn(M,{value:R,postState:function(e){return e||hS}}),xe=f(we,2),Ce=xe[0],Se=xe[1],$e=function(e){function t(){Se(e),null===oe||void 0===oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ue.flushSync)(t):t()},Ee=f(e.useState(Ce),2),ke=Ee[0],Oe=Ee[1],je=e.useRef(!1),Ie=f(e.useMemo(function(){return"inline"!==S&&"vertical"!==S||!$?[S,!1]:["vertical",$]},[S,$]),2),Pe=Ie[0],Ne=Ie[1],Me="inline"===Pe,Re=f(e.useState(Pe),2),Te=Re[0],ze=Re[1],_e=f(e.useState(Ne),2),Le=_e[0],Ae=_e[1];e.useEffect(function(){ze(Pe),Ae(Ne),je.current&&(Me?Se(ke):$e(hS))},[Pe,Ne]);var Be=f(e.useState(0),2),De=Be[0],Fe=Be[1],He=De>=fe.length-1||"horizontal"!==Te||k;e.useEffect(function(){Me&&Oe(Ce)},[Ce]),e.useEffect(function(){return je.current=!0,function(){je.current=!1}},[]);var We=NC(),Ve=We.registerPath,Xe=We.unregisterPath,qe=We.refreshOverflowKeys,Ge=We.isSubPathKey,Ke=We.getKeyPath,Ye=We.getKeys,Qe=We.getSubPathKeys,Ze=e.useMemo(function(){return{registerPath:Ve,unregisterPath:Xe}},[Ve,Xe]),Je=e.useMemo(function(){return{isSubPathKey:Ge}},[Ge]);e.useEffect(function(){qe(He?hS:fe.slice(De+1).map(function(e){return e.key}))},[De,He]);var et=f(tn(T||z&&(null===(r=fe[0])||void 0===r?void 0:r.key),{value:T}),2),tt=et[0],nt=et[1],rt=MC(function(e){nt(e)}),ot=MC(function(){nt(void 0)});(0,e.useImperativeHandle)(n,function(){return{list:he.current,focus:function(e){var t,n,r=Ye(),o=kC(r,be),i=o.elements,a=o.key2element,l=o.element2key,s=$C(he.current,i),c=null!==tt&&void 0!==tt?tt:s[0]?l.get(s[0]):null===(t=fe.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var it=tn(D||[],{value:F,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?hS:[e]}}),at=f(it,2),lt=at[0],st=at[1],ct=MC(function(e){null===re||void 0===re||re(BC(e)),function(e){if(L){var t,n=e.key,r=lt.includes(n);t=B?r?lt.filter(function(e){return e!==n}):[].concat(l(lt),[n]):[n],st(t);var o=ie(ie({},e),{},{selectedKeys:t});r?null===W||void 0===W||W(o):null===H||void 0===H||H(o)}!B&&Ce.length&&"inline"!==Te&&$e(hS)}(e)}),ut=MC(function(e,t){var n=Ce.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==Te){var r=Qe(e);n=n.filter(function(e){return!r.has(e)})}No(Ce,n,!0)||$e(n,!0)}),dt=OC(Te,tt,ye,be,he,Ye,Ke,nt,function(e,t){var n=null!==t&&void 0!==t?t:!Ce.includes(e);ut(e,n)},ae);e.useEffect(function(){ve(!0)},[]);var ft=e.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:se}},[le,se]),pt="horizontal"!==Te||k?fe:fe.map(function(t,n){return e.createElement(iC,{key:t.key,overflowDisabled:n>De},t)}),mt=e.createElement(Jx,s({id:x,ref:he,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:qC,className:b()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Te),d,g(g({},"".concat(a,"-inline-collapsed"),Le),"".concat(a,"-rtl"),ye),c),dir:w,style:u,role:"menu",tabIndex:m,data:pt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?fe.slice(-n):null;return e.createElement(sS,{eventKey:PC,title:ee,disabled:He,internalPopupClose:0===n,popupClassName:te},r)},maxCount:"horizontal"!==Te||k?Jx.INVALIDATE:Jx.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Fe(e)},onKeyDown:dt},ue));return e.createElement(fC.Provider,{value:ft},e.createElement(eC.Provider,{value:be},e.createElement(iC,{prefixCls:a,rootClassName:c,mode:Te,openKeys:Ce,rtl:ye,disabled:E,motion:ge?q:null,defaultMotions:ge?U:null,activeKey:tt,onActive:rt,onInactive:ot,selectedKeys:lt,inlineIndent:X,subMenuOpenDelay:j,subMenuCloseDelay:P,forceSubMenuRender:N,builtinPlacements:Y,triggerSubMenuAction:K,getPopupContainer:ne,itemIcon:Q,expandIcon:Z,onItemClick:ct,onOpenChange:ut},e.createElement(dC.Provider,{value:Je},mt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(lC.Provider,{value:Ze},pe)))))});var yS=bS;yS.Item=qC,yS.SubMenu=sS,yS.ItemGroup=fS,yS.Divider=cS;const wS=yS;const xS={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"};var CS=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:xS}))};const SS=e.forwardRef(CS),$S=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ES=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kS=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=ES(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(cn),l=a("menu",n),s=b()({[`${l}-item-divider-dashed`]:!!o},r);return e.createElement(cS,Object.assign({className:s},i))},OS=t=>{var n;const{className:r,children:o,icon:i,title:a,danger:l,extra:s}=t,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=e.useContext($S),{siderCollapsed:m}=e.useContext(Kw);let g=a;"undefined"===typeof a?g=u?o:"":!1===a&&(g="");const v={title:g};m||p||(v.title=null,v.open=!1);const h=qe(o).length;let y=e.createElement(qC,Object.assign({},nn(t,["title","icon","danger"]),{className:b()({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?h+1:h)},r),title:"string"===typeof a?a:void 0}),jc(i,{className:b()(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:void 0,`${c}-item-icon`)}),(t=>{const n=null===o||void 0===o?void 0:o[0],r=e.createElement("span",{className:b()(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||0===s})},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&u&&"string"===typeof n?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},n.charAt(0)):r})(p));return f||(y=e.createElement(au,Object.assign({},v,{placement:"rtl"===d?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),y)),y};var jS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const IS=e.createContext(null),PS=e.forwardRef((t,n)=>{const{children:r}=t,o=jS(t,["children"]),i=e.useContext(IS),a=e.useMemo(()=>Object.assign(Object.assign({},i),o),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(e){return it(e)&&ot(e)}(r),s=rt(n,l?at(r):null);return e.createElement(IS.Provider,{value:a},e.createElement(oc,{space:!0},l?e.cloneElement(r,{ref:s}):r))}),NS=IS,MS=new Vl("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),RS=new Vl("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),TS=new Vl("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),zS=new Vl("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_S=new Vl("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),LS=new Vl("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),AS=new Vl("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),BS=new Vl("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),DS={"slide-up":{inKeyframes:MS,outKeyframes:RS},"slide-down":{inKeyframes:TS,outKeyframes:zS},"slide-left":{inKeyframes:_S,outKeyframes:LS},"slide-right":{inKeyframes:AS,outKeyframes:BS}},FS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=DS[t];return[Tc(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},HS=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Ea(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},WS=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ea(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ea(n)})`}}}}},VS=e=>Object.assign({},vs(e)),XS=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:w,itemDisabledColor:x,dangerItemColor:C,dangerItemHoverColor:S,dangerItemSelectedColor:$,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:j,itemActiveBg:I,menuSubMenuBg:P,horizontalItemSelectedColor:N,horizontalItemSelectedBg:M,horizontalItemBorderRadius:R,horizontalItemHoverBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},VS(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},VS(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:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Ea(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:u,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ea(f)} ${y} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ea(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(",")}}}}}},qS=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ea(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ea(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},US=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,h={height:r,lineHeight:Ea(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},qS(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},qS(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Ea(e.calc(a).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 ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ea(e.calc(v).div(2).equal())} - ${Ea(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Ea(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ms),{paddingInline:p})}}]},GS=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},KS=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ea(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ea(a)})`}}}}},YS=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gs(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ea(l)} ${Ea(s)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),GS(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ea(e.calc(r).mul(2).equal())} ${Ea(s)}`}}},"&-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}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},GS(e)),KS(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),KS(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ea(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ea(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ea(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ea(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ea(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},QS=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:C,controlHeightSM:$,fontSizeLG:E,colorTextLightSolid:k,colorErrorHover:O}=e,j=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,N=new S(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:j,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:C,iconMarginInlineEnd:$-C,collapsedIconSize:E,groupTitleFontSize:C,darkItemDisabledColor:new S(k).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:j?`calc(100% + ${I}px)`:`calc(100% - ${2*P}px)`}},ZS=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext($S),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=uC();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,jc(o,{className:b()(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:void 0,`${s}-item-icon`)}),t?i:e.createElement("span",{className:`${s}-title-content`},i))}else f=c&&!d.length&&i&&"string"===typeof i?e.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${s}-title-content`},i);const p=e.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[m]=uc("Menu");return e.createElement($S.Provider,{value:p},e.createElement(sS,Object.assign({},nn(t,["icon"]),{title:f,popupClassName:b()(s,r,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:m},t.popupStyle)})))};var JS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function e$(e){return null===e||!1===e}const t$={item:OS,submenu:ZS,divider:kS},n$=(0,e.forwardRef)((t,n)=>{var r;const o=e.useContext(NS),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=e.useContext(cn),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:h,siderCollapsed:y,rootClassName:w,mode:x,selectable:C,onClick:S,overflowedIndicatorPopupClassName:$}=t,E=nn(JS(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(r=i.validator)||void 0===r||r.call(i,{mode:x});const k=Zt(function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null===S||void 0===S||S.apply(void 0,n),null===(e=i.onClick)||void 0===e||e.call(i)}),O=i.mode||x,j=null!==C&&void 0!==C?C:i.selectable,I=null!==h&&void 0!==h?h:y,P={horizontal:{motionName:`${u}-slide-up`},inline:vc(u),other:{motionName:`${u}-zoom-big`}},N=a("menu",d||i.prefixCls),M=Fu(N),[R,T,z]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Xs("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=rs(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=rs(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[YS(x),HS(x),US(x),XS(x,"light"),XS(C,"dark"),WS(x),Mm(x),FS(x,"slide-up"),FS(x,"slide-down"),Gc(x,"zoom-big")]},QS,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(N,M,!o),_=b()(`${N}-${m}`,null===c||void 0===c?void 0:c.className,f),L=e.useMemo(()=>{var t,n;if("function"===typeof g||e$(g))return g||null;if("function"===typeof i.expandIcon||e$(i.expandIcon))return i.expandIcon||null;if("function"===typeof(null===c||void 0===c?void 0:c.expandIcon)||e$(null===c||void 0===c?void 0:c.expandIcon))return(null===c||void 0===c?void 0:c.expandIcon)||null;const r=null!==(t=null!==g&&void 0!==g?g:null===i||void 0===i?void 0:i.expandIcon)&&void 0!==t?t:null===c||void 0===c?void 0:c.expandIcon;return jc(r,{className:b()(`${N}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})},[g,null===i||void 0===i?void 0:i.expandIcon,null===c||void 0===c?void 0:c.expandIcon,N]),A=e.useMemo(()=>({prefixCls:N,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:m,mode:O,disableMenuItemTitleTooltip:v}),[N,I,s,v,m]);return R(e.createElement(NS.Provider,{value:null},e.createElement($S.Provider,{value:A},e.createElement(wS,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(SS,null),overflowedIndicatorPopupClassName:b()(N,`${N}-${m}`,$),mode:O,selectable:j,onClick:k},E,{inlineCollapsed:I,style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),p),className:_,prefixCls:N,direction:s,defaultMotions:P,expandIcon:L,ref:n,rootClassName:b()(w,T,i.rootClassName,z,M),_internalComponents:t$})))))}),r$=n$,o$=(0,e.forwardRef)((t,n)=>{const r=(0,e.useRef)(null),o=e.useContext(Kw);return(0,e.useImperativeHandle)(n,()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}})),e.createElement(r$,Object.assign({ref:r},t,o))});o$.Item=OS,o$.SubMenu=ZS,o$.Divider=kS,o$.ItemGroup=fS;const i$=o$,a$=new Vl("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l$=new Vl("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s$=new Vl("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c$=new Vl("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u$=new Vl("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d$=new Vl("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),f$={"move-up":{inKeyframes:new Vl("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 Vl("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:a$,outKeyframes:l$},"move-left":{inKeyframes:s$,outKeyframes:c$},"move-right":{inKeyframes:u$,outKeyframes:d$}},p$=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=f$[t];return[Tc(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},m$=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},g$=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:MS},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:TS},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:RS},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:zS}}},xc(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},gs(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},hs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ea(c)} ${Ea(m)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${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":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Ea(c)} ${Ea(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},hs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ea(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 ${Ea(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:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[FS(e,"slide-up"),FS(e,"slide-down"),p$(e,"move-up"),p$(e,"move-down"),Gc(e,"zoom-big")]]},v$=Xs("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=rs(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[g$(i),m$(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},yc({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),hc(e)),{resetStyle:!1}),h$=t=>{var n;const{menu:r,arrow:o,prefixCls:i,children:a,trigger:l,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:v,visible:h,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:C=!0,placement:S="",overlay:$,transitionName:E,destroyOnHidden:k,destroyPopupOnHide:O}=t,{getPopupContainer:j,getPrefixCls:I,direction:P,dropdown:N}=e.useContext(cn),M=u||c;Nc("Dropdown");const R=e.useMemo(()=>{const e=I();return void 0!==E?E:S.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[I,S,E]),T=e.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:"rtl"===P?"bottomRight":"bottomLeft",[S,P]),z=I("dropdown",i),_=Fu(z),[L,A,B]=v$(z,_),[,D]=Vs(),F=e.Children.only(Nx(a)?e.createElement("span",null,a):a),H=jc(F,{className:b()(`${z}-trigger`,{[`${z}-rtl`]:"rtl"===P},F.props.className),disabled:null!==(n=F.props.disabled)&&void 0!==n?n:s}),W=s?[]:l,V=!!(null===W||void 0===W?void 0:W.includes("contextMenu")),[X,q]=tn(!1,{value:null!==g&&void 0!==g?g:h}),U=Zt(e=>{null===v||void 0===v||v(e,{source:"trigger"}),null===y||void 0===y||y(e),q(e)}),G=b()(f,p,A,B,_,null===N||void 0===N?void 0:N.className,{[`${z}-rtl`]:"rtl"===P}),K=Ec({arrowPointAtCenter:"object"===typeof o&&o.pointAtCenter,autoAdjustOverflow:C,offset:D.marginXXS,arrowWidth:o?D.sizePopupArrow:0,borderRadius:D.borderRadius}),Y=e.useCallback(()=>{(null===r||void 0===r?void 0:r.selectable)&&(null===r||void 0===r?void 0:r.multiple)||(null===v||void 0===v||v(!1,{source:"menu"}),q(!1))},[null===r||void 0===r?void 0:r.selectable,null===r||void 0===r?void 0:r.multiple]),[Q,Z]=uc("Dropdown",null===m||void 0===m?void 0:m.zIndex);let J=e.createElement(Px,Object.assign({alignPoint:V},nn(t,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:x,visible:X,builtinPlacements:K,arrow:!!o,overlayClassName:G,prefixCls:z,getPopupContainer:d||j,transitionName:R,trigger:W,overlay:()=>{let t;return t=(null===r||void 0===r?void 0:r.items)?e.createElement(i$,Object.assign({},r)):"function"===typeof $?$():$,M&&(t=M(t)),t=e.Children.only("string"===typeof t?e.createElement("span",null,t):t),e.createElement(PS,{prefixCls:`${z}-menu`,rootClassName:b()(B,_),expandIcon:e.createElement("span",{className:`${z}-menu-submenu-arrow`},"rtl"===P?e.createElement(Lw,{className:`${z}-menu-submenu-arrow-icon`}):e.createElement(Dw,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:e=>{let{mode:t}=e}},t)},placement:T,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},null===N||void 0===N?void 0:N.style),m),{zIndex:Q}),autoDestroy:null!==k&&void 0!==k?k:O}),H);return Q&&(J=e.createElement(ic.Provider,{value:Z},J)),L(J)},b$=Mx(h$,"align",void 0,"dropdown",e=>e);h$._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(b$,Object.assign({},t),e.createElement("span",null));const y$=h$;function w$(e){return["small","middle","large"].includes(e)}function x$(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const C$=e.createContext({latestIndex:0}),S$=C$.Provider,$$=t=>{let{className:n,index:r,children:o,split:i,style:a}=t;const{latestIndex:l}=e.useContext(C$);return null===o||void 0===o?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:a},o),r<l&&i&&e.createElement("span",{className:`${n}-split`},i))};var E$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const k$=e.forwardRef((t,n)=>{var r;const{getPrefixCls:o,direction:i,size:a,className:l,style:s,classNames:c,styles:u}=fn("space"),{size:d=(null!==a&&void 0!==a?a:"small"),align:f,className:p,rootClassName:m,children:g,direction:v="horizontal",prefixCls:h,split:y,style:w,wrap:x=!1,classNames:C,styles:S}=t,$=E$(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,k]=Array.isArray(d)?d:[d,d],O=w$(k),j=w$(E),I=x$(k),P=x$(E),N=qe(g,{keepEmpty:!0}),M=void 0===f&&"horizontal"===v?"center":f,R=o("space",h),[T,z,_]=Qs(R),L=b()(R,l,z,`${R}-${v}`,{[`${R}-rtl`]:"rtl"===i,[`${R}-align-${M}`]:M,[`${R}-gap-row-${k}`]:O,[`${R}-gap-col-${E}`]:j},p,m,_),A=b()(`${R}-item`,null!==(r=null===C||void 0===C?void 0:C.item)&&void 0!==r?r:c.item);let B=0;const D=N.map((t,n)=>{var r;null!==t&&void 0!==t&&(B=n);const o=(null===t||void 0===t?void 0:t.key)||`${A}-${n}`;return e.createElement($$,{className:A,key:o,index:n,split:y,style:null!==(r=null===S||void 0===S?void 0:S.item)&&void 0!==r?r:u.item},t)}),F=e.useMemo(()=>({latestIndex:B}),[B]);if(0===N.length)return null;const H={};return x&&(H.flexWrap="wrap"),!j&&P&&(H.columnGap=E),!O&&I&&(H.rowGap=k),T(e.createElement("div",Object.assign({ref:n,className:L,style:Object.assign(Object.assign(Object.assign({},H),s),w)},$),e.createElement(S$,{value:F},D)))}),O$=k$;O$.Compact=rc;const j$=O$;var I$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const P$=t=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=e.useContext(cn),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:g,autoFocus:v,overlay:h,trigger:y,align:w,open:x,onOpenChange:C,placement:S,getPopupContainer:$,href:E,icon:k=e.createElement(SS,null),title:O,buttonsRender:j=e=>e,mouseEnterDelay:I,mouseLeaveDelay:P,overlayClassName:N,overlayStyle:M,destroyOnHidden:R,destroyPopupOnHide:T,dropdownRender:z,popupRender:_}=t,L=I$(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),A=r("dropdown",i),B=`${A}-button`,D={menu:m,arrow:g,autoFocus:v,align:w,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:$||n,mouseEnterDelay:I,mouseLeaveDelay:P,overlayClassName:N,overlayStyle:M,destroyOnHidden:R,popupRender:_||z},{compactSize:F,compactItemClassnames:H}=ec(A,o),W=b()(B,H,p);"destroyPopupOnHide"in t&&(D.destroyPopupOnHide=T),"overlay"in t&&(D.overlay=h),"open"in t&&(D.open=x),D.placement="placement"in t?S:"rtl"===o?"bottomLeft":"bottomRight";const V=e.createElement(qh,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:E,title:O},f),X=e.createElement(qh,{type:a,danger:l,icon:k}),[q,U]=j([V,X]);return e.createElement(j$.Compact,Object.assign({className:W,size:F,block:!0},L),q,e.createElement(y$,Object.assign({},D),U))};P$.__ANT_BUTTON=!0;const N$=P$,M$=y$;M$.Button=N$;const R$=M$,T$=e.createContext({}),z$=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:v}=e,h=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},gs(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Ea(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),h(a,c,f)),{"&-lg":Object.assign({},h(l,u,p)),"&-sm":Object.assign({},h(s,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},_$=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},L$=Xs("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=rs(e,{avatarBg:n,avatarColor:t});return[z$(r),_$(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}});var A$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const B$=e.forwardRef((t,n)=>{const{prefixCls:r,shape:o,size:i,src:a,srcSet:l,icon:s,className:c,rootClassName:u,style:d,alt:f,draggable:p,children:m,crossOrigin:g,gap:v=4,onError:h}=t,y=A$(t,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[w,x]=e.useState(1),[C,S]=e.useState(!1),[$,E]=e.useState(!0),k=e.useRef(null),O=e.useRef(null),j=nt(n,k),{getPrefixCls:I,avatar:P}=e.useContext(cn),N=e.useContext(T$),M=()=>{if(!O.current||!k.current)return;const e=O.current.offsetWidth,t=k.current.offsetWidth;0!==e&&0!==t&&2*v<t&&x(t-2*v<e?(t-2*v)/e:1)};e.useEffect(()=>{S(!0)},[]),e.useEffect(()=>{E(!0),x(1)},[a]),e.useEffect(M,[v]);const R=()=>{!1!==(null===h||void 0===h?void 0:h())&&E(!1)},T=na(e=>{var t,n;return null!==(n=null!==(t=null!==i&&void 0!==i?i:null===N||void 0===N?void 0:N.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"}),z=Object.keys("object"===typeof T&&T||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),_=yg(z),L=e.useMemo(()=>{if("object"!==typeof T)return{};const e=hg.find(e=>_[e]),t=T[e];return t?{width:t,height:t,fontSize:t&&(s||m)?t/2:18}:{}},[_,T]);const A=I("avatar",r),B=Fu(A),[D,F,H]=L$(A,B),W=b()({[`${A}-lg`]:"large"===T,[`${A}-sm`]:"small"===T}),V=e.isValidElement(a),X=o||(null===N||void 0===N?void 0:N.shape)||"circle",q=b()(A,W,null===P||void 0===P?void 0:P.className,`${A}-${X}`,{[`${A}-image`]:V||a&&$,[`${A}-icon`]:!!s},H,B,c,u,F),U="number"===typeof T?{width:T,height:T,fontSize:s?T/2:18}:{};let G;if("string"===typeof a&&$)G=e.createElement("img",{src:a,draggable:p,srcSet:l,onError:R,alt:f,crossOrigin:g});else if(V)G=a;else if(s)G=s;else if(C||1!==w){const t=`scale(${w})`,n={msTransform:t,WebkitTransform:t,transform:t};G=e.createElement(Ut,{onResize:M},e.createElement("span",{className:`${A}-string`,ref:O,style:Object.assign({},n)},m))}else G=e.createElement("span",{className:`${A}-string`,style:{opacity:0},ref:O},m);return D(e.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},U),L),null===P||void 0===P?void 0:P.style),d),className:q,ref:j}),G))});const D$=B$,F$=e=>e?"function"===typeof e?e():e:null,H$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},gs(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},xc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},W$=e=>{const{componentCls:t}=e;return{[t]:Kc.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},V$=Xs("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=rs(e,{popoverBg:t,popoverColor:n});return[H$(r),W$(r),Gc(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},hc(e)),yc({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var X$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const q$=t=>{let{title:n,content:r,prefixCls:o}=t;return n||r?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},n),r&&e.createElement("div",{className:`${o}-inner-content`},r)):null},U$=t=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:s,children:c}=t,u=F$(l),d=F$(s),f=b()(n,r,`${r}-pure`,`${r}-placement-${a}`,o);return e.createElement("div",{className:f,style:i},e.createElement("div",{className:`${r}-arrow`}),e.createElement(xn,Object.assign({},t,{className:n,prefixCls:r}),c||e.createElement(q$,{prefixCls:r,title:u,content:d})))},G$=t=>{const{prefixCls:n,className:r}=t,o=X$(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(cn),a=i("popover",n),[l,s,c]=V$(a);return l(e.createElement(U$,Object.assign({},o,{prefixCls:a,hashId:s,className:b()(r,c)})))};var K$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Y$=e.forwardRef((t,n)=>{var r,o;const{prefixCls:i,title:a,content:l,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:m,overlayStyle:g={},styles:v,classNames:h}=t,y=K$(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:x,style:C,classNames:S,styles:$}=fn("popover"),E=w("popover",i),[k,O,j]=V$(E),I=w(),P=b()(s,O,j,x,S.root,null===h||void 0===h?void 0:h.root),N=b()(S.body,null===h||void 0===h?void 0:h.body),[M,R]=tn(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),T=(e,t)=>{R(e,!0),null===m||void 0===m||m(e,t)},z=F$(a),_=F$(l);return k(e.createElement(au,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p},y,{prefixCls:E,classNames:{root:P,body:N},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),C),g),null===v||void 0===v?void 0:v.root),body:Object.assign(Object.assign({},$.body),null===v||void 0===v?void 0:v.body)},ref:n,open:M,onOpenChange:e=>{T(e)},overlay:z||_?e.createElement(q$,{prefixCls:E,title:z,content:_}):null,transitionName:gc(I,"zoom-big",y.transitionName),"data-popover-inject":!0}),jc(d,{onKeyDown:t=>{var n,r;(0,e.isValidElement)(d)&&(null===(r=null===d||void 0===d?void 0:(n=d.props).onKeyDown)||void 0===r||r.call(n,t)),(e=>{e.keyCode===du.ESC&&T(!1,e)})(t)}})))}),Q$=Y$;Q$._InternalPanelDoNotUseOrYouWillBeFired=G$;const Z$=Q$,J$=t=>{const{size:n,shape:r}=e.useContext(T$),o=e.useMemo(()=>({size:t.size||n,shape:t.shape||r}),[t.size,t.shape,n,r]);return e.createElement(T$.Provider,{value:o},t.children)},eE=t=>{var n,r,o,i;const{getPrefixCls:a,direction:l}=e.useContext(cn),{prefixCls:s,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:p,size:m,shape:g,maxPopoverPlacement:v,maxPopoverTrigger:h,children:y,max:w}=t;const x=a("avatar",s),C=`${x}-group`,S=Fu(x),[$,E,k]=L$(x,S),O=b()(C,{[`${C}-rtl`]:"rtl"===l},k,S,c,u,E),j=qe(y).map((e,t)=>jc(e,{key:`avatar-key-${t}`})),I=(null===w||void 0===w?void 0:w.count)||f,P=j.length;if(I&&I<P){const t=j.slice(0,I),a=j.slice(I,P),l=(null===w||void 0===w?void 0:w.style)||p,s=(null===(n=null===w||void 0===w?void 0:w.popover)||void 0===n?void 0:n.trigger)||h||"hover",c=(null===(r=null===w||void 0===w?void 0:w.popover)||void 0===r?void 0:r.placement)||v||"top",u=Object.assign(Object.assign({content:a},null===w||void 0===w?void 0:w.popover),{classNames:{root:b()(`${C}-popover`,null===(i=null===(o=null===w||void 0===w?void 0:w.popover)||void 0===o?void 0:o.classNames)||void 0===i?void 0:i.root)},placement:c,trigger:s});return t.push(e.createElement(Z$,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},u),e.createElement(D$,{style:l},"+"+(P-I)))),$(e.createElement(J$,{shape:g,size:m},e.createElement("div",{className:O,style:d},t)))}return $(e.createElement(J$,{shape:g,size:m},e.createElement("div",{className:O,style:d},j)))},tE=D$;tE.Group=eE;const nE=tE;const rE={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"};var oE=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:rE}))};const iE=e.forwardRef(oE);const aE={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"};var lE=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:aE}))};const sE=e.forwardRef(lE);const cE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var uE=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:cE}))};const dE=e.forwardRef(uE);function fE(e){let{user:t,onLogout:n,darkMode:r,onToggleDarkMode:o}=e;const[i,a]=gm.useMessage();const l={items:[{key:"darkmode",icon:(0,ob.jsx)(iE,{}),label:(0,ob.jsxs)("span",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,ob.jsx)("span",{children:"Darkmode"}),(0,ob.jsx)(xx,{checked:r,onChange:o,size:"small"})]})},{type:"divider"},{key:"clearcache",icon:(0,ob.jsx)(sE,{}),label:"Cache leeren",onClick:function(){let e=0;Object.keys(localStorage).forEach(t=>{t.startsWith("ads-overview-")&&(localStorage.removeItem(t),e++)}),e>0?i.success({content:"Cache erfolgreich geleert!",duration:2}):i.info({content:"Kein Cache gefunden.",duration:2})}},{type:"divider"},{key:"settings",icon:(0,ob.jsx)(iE,{}),label:"Einstellungen (bald)",disabled:!0},{type:"divider"},{key:"logout",icon:(0,ob.jsx)(dE,{}),label:"Ausloggen",onClick:n}]};return(0,ob.jsxs)(ob.Fragment,{children:[a,(0,ob.jsx)(R$,{menu:l,placement:"bottomRight",children:(0,ob.jsx)(qh,{type:"text",style:{padding:0,height:40},children:(0,ob.jsx)(nE,{icon:(0,ob.jsx)(eb,{}),style:{marginRight:8}})})})]})}const pE=Ig,mE=Tg;const gE={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"};var vE=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:gE}))};const hE=e.forwardRef(vE),bE=(0,e.createContext)(null);const yE=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=void 0===i?{}:i,l=a.size,s=a.align,c=void 0===s?"center":s,u=f((0,e.useState)(),2),d=u[0],p=u[1],m=(0,e.useRef)(),g=e.useCallback(function(e){return"function"===typeof l?l(e):"number"===typeof l?l:e},[l]);function v(){Cr.cancel(m.current)}return(0,e.useEffect)(function(){var e={};if(n)if(r){e.width=g(n.width);var t=o?"right":"left";"start"===c&&(e[t]=n[t]),"center"===c&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=g(n.height),"start"===c&&(e.top=n.top),"center"===c&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),m.current=Cr(function(){var t=d&&e&&Object.keys(e).every(function(t){var n=e[t],r=d[t];return"number"===typeof n&&"number"===typeof r?Math.round(n)===Math.round(r):n===r});t||p(e)}),v},[JSON.stringify(n),r,o,c,g]),{style:d}};var wE={width:0,height:0,left:0,top:0};function xE(t,n){var r=e.useRef(t),o=f(e.useState({}),2)[1];return[r.current,function(e){var t="function"===typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var CE=Math.pow(.995,20);function SE(t){var n=f((0,e.useState)(0),2),r=n[0],o=n[1],i=(0,e.useRef)(0),a=(0,e.useRef)();return a.current=t,Yt(function(){var e;null===(e=a.current)||void 0===e||e.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var $E={width:0,height:0,left:0,top:0,right:0};function EE(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function kE(e){return String(e).replace(/"/g,"TABS_DQ")}function OE(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var jE=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.editable,i=t.locale,a=t.style;return o&&!1!==o.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null});const IE=jE;var PE=e.forwardRef(function(t,n){var r,o=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var l={};return"object"!==p(a)||e.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null});const NE=PE;var ME=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.id,i=t.tabs,a=t.locale,l=t.mobile,c=t.more,u=void 0===c?{}:c,d=t.style,p=t.className,m=t.editable,v=t.tabBarGutter,h=t.rtl,y=t.removeAriaLabel,w=t.onTabClick,x=t.getPopupContainer,C=t.popupClassName,S=f((0,e.useState)(!1),2),$=S[0],E=S[1],k=f((0,e.useState)(null),2),O=k[0],j=k[1],I=u.icon,P=void 0===I?"More":I,N="".concat(o,"-more-popup"),M="".concat(r,"-dropdown"),R=null!==O?"".concat(N,"-").concat(O):null,T=null===a||void 0===a?void 0:a.dropdownAriaLabel;var z=e.createElement(wS,{onClick:function(e){var t=e.key,n=e.domEvent;w(t,n),E(!1)},prefixCls:"".concat(M,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":void 0!==T?T:"expanded dropdown"},i.map(function(t){var n=t.closable,r=t.disabled,i=t.closeIcon,a=t.key,l=t.label,s=OE(n,i,m,r);return e.createElement(qC,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},e.createElement("span",null,l),s&&e.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"\xd7"))}));function _(e){for(var t=i.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===O})||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void j(a.key)}}(0,e.useEffect)(function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[O]),(0,e.useEffect)(function(){$||j(null)},[$]);var L=g({},h?"marginRight":"marginLeft",v);i.length||(L.visibility="hidden",L.order=1);var A=b()(g({},"".concat(M,"-rtl"),h)),B=l?null:e.createElement(Px,s({prefixCls:M,overlay:z,visible:!!i.length&&$,onVisibleChange:E,overlayClassName:b()(A,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),e.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:L,"aria-haspopup":"listbox","aria-controls":N,id:"".concat(o,"-more"),"aria-expanded":$,onKeyDown:function(e){var t=e.which;if($)switch(t){case du.UP:_(-1),e.preventDefault();break;case du.DOWN:_(1),e.preventDefault();break;case du.ESC:E(!1);break;case du.SPACE:case du.ENTER:null!==O&&w(O,e)}else[du.DOWN,du.SPACE,du.ENTER].includes(t)&&(E(!0),e.preventDefault())}},P));return e.createElement("div",{className:b()("".concat(r,"-nav-operations"),p),style:d,ref:n},B,e.createElement(IE,{prefixCls:r,locale:a,editable:m}))});const RE=e.memo(ME,function(e,t){return t.tabMoving});const TE=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.focus,a=t.tab,l=a.key,s=a.label,c=a.disabled,u=a.closeIcon,d=a.icon,f=t.closable,p=t.renderWrapper,m=t.removeAriaLabel,v=t.editable,h=t.onClick,y=t.onFocus,w=t.onBlur,x=t.onKeyDown,C=t.onMouseDown,S=t.onMouseUp,$=t.style,E=t.tabCount,k=t.currentPosition,O="".concat(n,"-tab"),j=OE(f,u,v,c);function I(e){c||h(e)}var P=e.useMemo(function(){return d&&"string"===typeof s?e.createElement("span",null,s):s},[s,d]),N=e.useRef(null);e.useEffect(function(){i&&N.current&&N.current.focus()},[i]);var M=e.createElement("div",{key:l,"data-node-key":kE(l),className:b()(O,g(g(g(g({},"".concat(O,"-with-remove"),j),"".concat(O,"-active"),o),"".concat(O,"-disabled"),c),"".concat(O,"-focus"),i)),style:$,onClick:I},e.createElement("div",{ref:N,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(O,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":c,tabIndex:c?null:o?0:-1,onClick:function(e){e.stopPropagation(),I(e)},onKeyDown:x,onMouseDown:C,onMouseUp:S,onFocus:y,onBlur:w},i&&e.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(k," of ").concat(E)),d&&e.createElement("span",{className:"".concat(O,"-icon")},d),s&&P),j&&e.createElement("button",{type:"button",role:"tab","aria-label":m||"remove",tabIndex:o?0:-1,className:"".concat(O,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),v.onEdit("remove",{key:l,event:t})}},u||v.removeIcon||"\xd7"));return p?p(M):M};var zE=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,s=a.height;if(Math.abs(l-r)<1)return[l,s]}return[r,i]},_E=function(e,t){return e[t?0:1]},LE=e.forwardRef(function(t,n){var r=t.className,o=t.style,i=t.id,a=t.animated,c=t.activeKey,u=t.rtl,d=t.extra,p=t.editable,m=t.locale,v=t.tabPosition,h=t.tabBarGutter,y=t.children,w=t.onTabClick,x=t.onTabScroll,C=t.indicator,S=e.useContext(bE),$=S.prefixCls,E=S.tabs,k=(0,e.useRef)(null),O=(0,e.useRef)(null),j=(0,e.useRef)(null),I=(0,e.useRef)(null),P=(0,e.useRef)(null),N=(0,e.useRef)(null),M=(0,e.useRef)(null),R="top"===v||"bottom"===v,T=xE(0,function(e,t){R&&x&&x({direction:e>t?"left":"right"})}),z=f(T,2),_=z[0],L=z[1],A=xE(0,function(e,t){!R&&x&&x({direction:e>t?"top":"bottom"})}),B=f(A,2),D=B[0],F=B[1],H=f((0,e.useState)([0,0]),2),W=H[0],V=H[1],X=f((0,e.useState)([0,0]),2),q=X[0],U=X[1],G=f((0,e.useState)([0,0]),2),K=G[0],Y=G[1],Q=f((0,e.useState)([0,0]),2),Z=Q[0],J=Q[1],ee=function(t){var n=(0,e.useRef)([]),r=f((0,e.useState)({}),2)[1],o=(0,e.useRef)("function"===typeof t?t():t),i=SE(function(){var e=o.current;n.current.forEach(function(t){e=t(e)}),n.current=[],o.current=e,r({})});return[o.current,function(e){n.current.push(e),i()}]}(new Map),te=f(ee,2),ne=te[0],re=te[1],oe=function(t,n,r){return(0,e.useMemo)(function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||wE,i=o.left+o.width,a=0;a<t.length;a+=1){var l,s=t[a].key,c=n.get(s);c||(c=n.get(null===(l=t[a-1])||void 0===l?void 0:l.key)||wE);var u=r.get(s)||ie({},c);u.right=i-u.left-u.width,r.set(s,u)}return r},[t.map(function(e){return e.key}).join("_"),n,r])}(E,ne,q[0]),ae=_E(W,R),le=_E(q,R),se=_E(K,R),ce=_E(Z,R),ue=Math.floor(ae)<Math.floor(le+se),de=ue?ae-ce:ae-se,fe="".concat($,"-nav-operations-hidden"),pe=0,me=0;function ge(e){return e<pe?pe:e>me?me:e}R&&u?(pe=0,me=Math.max(0,le-de)):(pe=Math.min(0,de-le),me=0);var ve=(0,e.useRef)(null),he=f((0,e.useState)(),2),be=he[0],ye=he[1];function we(){ye(Date.now())}function xe(){ve.current&&clearTimeout(ve.current)}!function(t,n){var r=f((0,e.useState)(),2),o=r[0],i=r[1],a=f((0,e.useState)(0),2),l=a[0],s=a[1],c=f((0,e.useState)(0),2),u=c[0],d=c[1],p=f((0,e.useState)(),2),m=p[0],g=p[1],v=(0,e.useRef)(),h=(0,e.useRef)(),b=(0,e.useRef)(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(o){var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var c=r-o.x,u=a-o.y;n(c,u);var f=Date.now();s(f),d(f-l),g({x:c,y:u})}},onTouchEnd:function(){if(o&&(i(null),g(null),m)){var e=m.x/u,t=m.y/u,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,s=t;v.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(s)<.01?window.clearInterval(v.current):n(20*(l*=CE),20*(s*=CE))},20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===h.current?t:r:i>a?(o=t,h.current="x"):(o=r,h.current="y"),n(-o,-o)&&e.preventDefault()}},e.useEffect(function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",function(e){b.current.onTouchStart(e)},{passive:!0}),t.current.addEventListener("wheel",function(e){b.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}},[])}(I,function(e,t){function n(e,t){e(function(e){return ge(e+t)})}return!!ue&&(R?n(L,e):n(F,t),xe(),we(),!0)}),(0,e.useEffect)(function(){return xe(),be&&(ve.current=setTimeout(function(){ye(0)},100)),xe},[be]);var Ce=function(t,n,r,o,i,a,l){var s,c,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(s="width",c=p?"right":"left",u=Math.abs(r)):(s="height",c="top",u=-r),(0,e.useMemo)(function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var i=t.get(d[o].key)||$E;if(Math.floor(i[c]+i[s])>Math.floor(u+n)){r=o-1;break}}for(var a=0,l=e-1;l>=0;l-=1)if((t.get(d[l].key)||$E)[c]<u){a=l+1;break}return a>=r?[0,0]:[a,r]},[t,n,o,i,a,u,f,d.map(function(e){return e.key}).join("_"),p])}(oe,de,R?_:D,le,se,ce,ie(ie({},t),{},{tabs:E})),Se=f(Ce,2),$e=Se[0],Ee=Se[1],ke=Zt(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(R){var n=_;u?t.right<_?n=t.right:t.right+t.width>_+de&&(n=t.right+t.width-de):t.left<-_?n=-t.left:t.left+t.width>-_+de&&(n=-(t.left+t.width-de)),F(0),L(ge(n))}else{var r=D;t.top<-D?r=-t.top:t.top+t.height>-D+de&&(r=-(t.top+t.height-de)),L(0),F(ge(r))}}),Oe=f((0,e.useState)(),2),je=Oe[0],Ie=Oe[1],Pe=f((0,e.useState)(!1),2),Ne=Pe[0],Me=Pe[1],Re=E.filter(function(e){return!e.disabled}).map(function(e){return e.key}),Te=function(e){var t=Re.indexOf(je||c),n=Re.length,r=Re[(t+e+n)%n];Ie(r)},ze=function(e){var t=e.code,n=u&&R,r=Re[0],o=Re[Re.length-1];switch(t){case"ArrowLeft":R&&Te(n?1:-1);break;case"ArrowRight":R&&Te(n?-1:1);break;case"ArrowUp":e.preventDefault(),R||Te(-1);break;case"ArrowDown":e.preventDefault(),R||Te(1);break;case"Home":e.preventDefault(),Ie(r);break;case"End":e.preventDefault(),Ie(o);break;case"Enter":case"Space":e.preventDefault(),w(null!==je&&void 0!==je?je:c,e);break;case"Backspace":case"Delete":var i=Re.indexOf(je),a=E.find(function(e){return e.key===je});OE(null===a||void 0===a?void 0:a.closable,null===a||void 0===a?void 0:a.closeIcon,p,null===a||void 0===a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:je,event:e}),i===Re.length-1?Te(-1):Te(1))}},_e={};R?_e[u?"marginRight":"marginLeft"]=h:_e.marginTop=h;var Le=E.map(function(t,n){var r=t.key;return e.createElement(TE,{id:i,prefixCls:$,key:r,tab:t,style:0===n?void 0:_e,closable:t.closable,editable:p,active:r===c,focus:r===je,renderWrapper:y,removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,tabCount:Re.length,currentPosition:n+1,onClick:function(e){w(r,e)},onKeyDown:ze,onFocus:function(){Ne||Ie(r),ke(r),we(),I.current&&(u||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:function(){Ie(void 0)},onMouseDown:function(){Me(!0)},onMouseUp:function(){Me(!1)}})}),Ae=function(){return re(function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return E.forEach(function(e){var r,o=e.key,i=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(kE(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,s=a.height,c=a.left,u=a.top;return Math.abs(l-n)<1?[l,s,c-t.left,u-t.top]:[n,r,i,o]}(i,n),l=f(a,4),s=l[0],c=l[1],u=l[2],d=l[3];t.set(o,{width:s,height:c,left:u,top:d})}}),t})};(0,e.useEffect)(function(){Ae()},[E.map(function(e){return e.key}).join("_")]);var Be=SE(function(){var e=zE(k),t=zE(O),n=zE(j);V([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=zE(M);Y(r);var o=zE(N);J(o);var i=zE(P);U([i[0]-r[0],i[1]-r[1]]),Ae()}),De=E.slice(0,$e),Fe=E.slice(Ee+1),He=[].concat(l(De),l(Fe)),We=oe.get(c),Ve=yE({activeTabOffset:We,horizontal:R,indicator:C,rtl:u}).style;(0,e.useEffect)(function(){ke()},[c,pe,me,EE(We),EE(oe),R]),(0,e.useEffect)(function(){Be()},[u]);var Xe,qe,Ue,Ge,Ke=!!He.length,Ye="".concat($,"-nav-wrap");return R?u?(qe=_>0,Xe=_!==me):(Xe=_<0,qe=_!==pe):(Ue=D<0,Ge=D!==pe),e.createElement(Ut,{onResize:Be},e.createElement("div",{ref:rt(n,k),role:"tablist","aria-orientation":R?"horizontal":"vertical",className:b()("".concat($,"-nav"),r),style:o,onKeyDown:function(){we()}},e.createElement(NE,{ref:O,position:"left",extra:d,prefixCls:$}),e.createElement(Ut,{onResize:Be},e.createElement("div",{className:b()(Ye,g(g(g(g({},"".concat(Ye,"-ping-left"),Xe),"".concat(Ye,"-ping-right"),qe),"".concat(Ye,"-ping-top"),Ue),"".concat(Ye,"-ping-bottom"),Ge)),ref:I},e.createElement(Ut,{onResize:Be},e.createElement("div",{ref:P,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(D,"px)"),transition:be?"none":void 0}},Le,e.createElement(IE,{ref:M,prefixCls:$,locale:m,editable:p,style:ie(ie({},0===Le.length?void 0:_e),{},{visibility:Ke?"hidden":null})}),e.createElement("div",{className:b()("".concat($,"-ink-bar"),g({},"".concat($,"-ink-bar-animated"),a.inkBar)),style:Ve}))))),e.createElement(RE,s({},t,{removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,ref:N,prefixCls:$,tabs:He,className:!Ke&&fe,tabMoving:!!be})),e.createElement(NE,{ref:j,position:"right",extra:d,prefixCls:$})))});const AE=LE;var BE=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.id,l=t.active,s=t.tabKey,c=t.children;return e.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!l,style:i,className:b()(r,l&&"".concat(r,"-active"),o),ref:n},c)});const DE=BE;var FE=["renderTabBar"],HE=["label","key"];const WE=function(t){var n=t.renderTabBar,r=v(t,FE),o=e.useContext(bE).tabs;return n?n(ie(ie({},r),{},{panes:o.map(function(t){var n=t.label,r=t.key,o=v(t,HE);return e.createElement(DE,s({tab:n,key:r,tabKey:r},o))})}),AE):e.createElement(AE,r)};var VE=["key","forceRender","style","className","destroyInactiveTabPane"];const XE=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=e.useContext(bE),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return e.createElement("div",{className:b()("".concat(c,"-content-holder"))},e.createElement("div",{className:b()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),g({},"".concat(c,"-content-animated"),d))},u.map(function(t){var i=t.key,l=t.forceRender,c=t.style,u=t.className,p=t.destroyInactiveTabPane,m=v(t,VE),g=i===r;return e.createElement(Dr,s({key:i,visible:g,forceRender:l,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(t,r){var o=t.style,a=t.className;return e.createElement(DE,s({},m,{prefixCls:f,id:n,tabKey:i,animated:d,active:g,style:ie(ie({},c),o),className:b()(u,a),ref:r}))})})))};var qE=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],UE=0,GE=e.forwardRef(function(t,n){var r=t.id,o=t.prefixCls,i=void 0===o?"rc-tabs":o,a=t.className,l=t.items,c=t.direction,u=t.activeKey,d=t.defaultActiveKey,m=t.editable,h=t.animated,y=t.tabPosition,w=void 0===y?"top":y,x=t.tabBarGutter,C=t.tabBarStyle,S=t.tabBarExtraContent,$=t.locale,E=t.more,k=t.destroyInactiveTabPane,O=t.renderTabBar,j=t.onChange,I=t.onTabClick,P=t.onTabScroll,N=t.getPopupContainer,M=t.popupClassName,R=t.indicator,T=v(t,qE),z=e.useMemo(function(){return(l||[]).filter(function(e){return e&&"object"===p(e)&&"key"in e})},[l]),_="rtl"===c,L=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:ie({inkBar:!0},"object"===p(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(h),A=f((0,e.useState)(!1),2),B=A[0],D=A[1];(0,e.useEffect)(function(){D(zn())},[]);var F=f(tn(function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key},{value:u,defaultValue:d}),2),H=F[0],W=F[1],V=f((0,e.useState)(function(){return z.findIndex(function(e){return e.key===H})}),2),X=V[0],q=V[1];(0,e.useEffect)(function(){var e,t=z.findIndex(function(e){return e.key===H});-1===t&&(t=Math.max(0,Math.min(X,z.length-1)),W(null===(e=z[t])||void 0===e?void 0:e.key));q(t)},[z.map(function(e){return e.key}).join("_"),H,X]);var U=f(tn(null,{value:r}),2),G=U[0],K=U[1];(0,e.useEffect)(function(){r||(K("rc-tabs-".concat(UE)),UE+=1)},[]);var Y={id:G,activeKey:H,animated:L,tabPosition:w,rtl:_,mobile:B},Q=ie(ie({},Y),{},{editable:m,locale:$,more:E,tabBarGutter:x,onTabClick:function(e,t){null===I||void 0===I||I(e,t);var n=e!==H;W(e),n&&(null===j||void 0===j||j(e))},onTabScroll:P,extra:S,style:C,panes:null,getPopupContainer:N,popupClassName:M,indicator:R});return e.createElement(bE.Provider,{value:{tabs:z,prefixCls:i}},e.createElement("div",s({ref:n,id:r,className:b()(i,"".concat(i,"-").concat(w),g(g(g({},"".concat(i,"-mobile"),B),"".concat(i,"-editable"),m),"".concat(i,"-rtl"),_),a)},T),e.createElement(WE,s({},Q,{renderTabBar:O})),e.createElement(XE,s({destroyInactiveTabPane:k},Y,{animated:L}))))});const KE=GE,YE={motionAppear:!1,motionEnter:!0,motionLeave:!0};var QE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZE=function(t,n){if(t)return t.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const r=qe(n).map(t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,r=n||{},{tab:o}=r,i=QE(r,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:o})}return null});return function(e){return e.filter(e=>e)}(r)},JE=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[FS(e,"slide-up"),FS(e,"slide-down")]]},ek=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Ea(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:vs(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:Ea(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ea(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ea(e.borderRadiusLG)} 0 0 ${Ea(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 ${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tk=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},gs(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ea(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ms),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ea(e.paddingXXS)} ${Ea(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},nk=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ea(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ea(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},rk=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Ea(e.borderRadius)} ${Ea(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ea(e.borderRadius)} ${Ea(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ea(e.borderRadius)} ${Ea(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ea(e.borderRadius)} 0 0 ${Ea(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},ok=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",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}},hs(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:vs(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},ik=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{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:Ea(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ea(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ea(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ak=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gs(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${Ea(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},hs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ok(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},hs(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"}}}}}},lk=Xs("Tabs",e=>{const t=rs(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ea(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ea(e.horizontalItemGutter)}`});return[rk(t),ik(t),nk(t),tk(t),ek(t),ak(t),JE(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,s=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-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}});var sk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ck=t=>{var n,r,o,i,a,l,s,c,u,d,f;const{type:p,className:m,rootClassName:g,size:v,onEdit:h,hideAdd:y,centered:w,addIcon:x,removeIcon:C,moreIcon:S,more:$,popupClassName:E,children:k,items:O,animated:j,style:I,indicatorSize:P,indicator:N,destroyInactiveTabPane:M,destroyOnHidden:R}=t,T=sk(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:z}=T,{direction:_,tabs:L,getPrefixCls:A,getPopupContainer:B}=e.useContext(cn),D=A("tabs",z),F=Fu(D),[H,W,V]=lk(D,F);let X;"editable-card"===p&&(X={onEdit:(e,t)=>{let{key:n,event:r}=t;null===h||void 0===h||h("add"===e?r:n,e)},removeIcon:null!==(n=null!==C&&void 0!==C?C:null===L||void 0===L?void 0:L.removeIcon)&&void 0!==n?n:e.createElement(Yp,null),addIcon:(null!==x&&void 0!==x?x:null===L||void 0===L?void 0:L.addIcon)||e.createElement(hE,null),showAdd:!0!==y});const q=A();const U=na(v),G=ZE(O,k),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},YE),{motionName:gc(e,"switch")})),t}(D,j),Y=Object.assign(Object.assign({},null===L||void 0===L?void 0:L.style),I),Q={align:null!==(r=null===N||void 0===N?void 0:N.align)&&void 0!==r?r:null===(o=null===L||void 0===L?void 0:L.indicator)||void 0===o?void 0:o.align,size:null!==(s=null!==(a=null!==(i=null===N||void 0===N?void 0:N.size)&&void 0!==i?i:P)&&void 0!==a?a:null===(l=null===L||void 0===L?void 0:L.indicator)||void 0===l?void 0:l.size)&&void 0!==s?s:null===L||void 0===L?void 0:L.indicatorSize};return H(e.createElement(KE,Object.assign({direction:_,getPopupContainer:B},T,{items:G,className:b()({[`${D}-${U}`]:U,[`${D}-card`]:["card","editable-card"].includes(p),[`${D}-editable-card`]:"editable-card"===p,[`${D}-centered`]:w},null===L||void 0===L?void 0:L.className,m,g,W,V,F),popupClassName:b()(E,W,V,F),style:Y,editable:X,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(c=null===L||void 0===L?void 0:L.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null===L||void 0===L?void 0:L.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:e.createElement(SS,null),transitionName:`${q}-slide-up`},$),prefixCls:D,animated:K,indicator:Q,destroyInactiveTabPane:null!==R&&void 0!==R?R:M})))};ck.TabPane=()=>null;const uk=ck;var dk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fk=t=>{var{prefixCls:n,className:r,hoverable:o=!0}=t,i=dk(t,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=e.useContext(cn),l=a("card",n),s=b()(`${l}-grid`,r,{[`${l}-grid-hoverable`]:o});return e.createElement("div",Object.assign({},i,{className:s}))},pk=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Ea(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ms),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Ea(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},mk=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Ea(o)} 0 0 0 ${n},\n 0 ${Ea(o)} 0 0 ${n},\n ${Ea(o)} ${Ea(o)} 0 0 ${n},\n ${Ea(o)} 0 0 0 ${n} inset,\n 0 ${Ea(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},gk=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Ea(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > 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:Ea(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Ea(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ea(e.lineWidth)} ${e.lineType} ${i}`}}})},vk=e=>Object.assign(Object.assign({margin:`${Ea(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ms),"&-description":{color:e.colorTextDescription}}),hk=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${Ea(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Ea(e.padding)} ${Ea(o)}`}}},bk=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},yk=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},gs(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:pk(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:mk(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:gk(e),[`${t}-meta`]:vk(e)}),[`${t}-bordered`]:{border:`${Ea(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Ea(e.borderRadiusLG)} ${Ea(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:hk(e),[`${t}-loading`]:bk(e),[`${t}-rtl`]:{direction:"rtl"}}},wk=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Ea(r)}`,fontSize:i,[`> ${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"}}}}},xk=Xs("Card",e=>{const t=rs(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[yk(t),wk(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}});var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Sk=t=>{const{actionClasses:n,actions:r=[],actionStyle:o}=t;return e.createElement("ul",{className:n,style:o},r.map((t,n)=>{const o=`action-${n}`;return e.createElement("li",{style:{width:100/r.length+"%"},key:o},e.createElement("span",null,t))}))},$k=e.forwardRef((t,n)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,extra:l,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:p,size:m,type:g,cover:v,actions:h,tabList:y,children:w,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:$,tabProps:E={},classNames:k,styles:O}=t,j=Ck(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:P,card:N}=e.useContext(cn),[M]=Hu("card",p,f);const R=e=>{var t;return b()(null===(t=null===N||void 0===N?void 0:N.classNames)||void 0===t?void 0:t[e],null===k||void 0===k?void 0:k[e])},T=e=>{var t;return Object.assign(Object.assign({},null===(t=null===N||void 0===N?void 0:N.styles)||void 0===t?void 0:t[e]),null===O||void 0===O?void 0:O[e])},z=e.useMemo(()=>{let t=!1;return e.Children.forEach(w,e=>{(null===e||void 0===e?void 0:e.type)===fk&&(t=!0)}),t},[w]),_=I("card",r),[L,A,B]=xk(_),D=e.createElement(gy,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),F=void 0!==x,H=Object.assign(Object.assign({},E),{[F?"activeKey":"defaultActiveKey"]:F?x:C,tabBarExtraContent:S});let W;const V=na(m),X=V&&"default"!==V?V:"large",q=y?e.createElement(uk,Object.assign({size:X},H,{className:`${_}-head-tabs`,onChange:e=>{var n;null===(n=t.onTabChange)||void 0===n||n.call(t,e)},items:y.map(e=>{var{tab:t}=e,n=Ck(e,["tab"]);return Object.assign({label:t},n)})})):null;if(u||l||q){const t=b()(`${_}-head`,R("header")),n=b()(`${_}-head-title`,R("title")),r=b()(`${_}-extra`,R("extra")),o=Object.assign(Object.assign({},s),T("header"));W=e.createElement("div",{className:t,style:o},e.createElement("div",{className:`${_}-head-wrapper`},u&&e.createElement("div",{className:n,style:T("title")},u),l&&e.createElement("div",{className:r,style:T("extra")},l)),q)}const U=b()(`${_}-cover`,R("cover")),G=v?e.createElement("div",{className:U,style:T("cover")},v):null,K=b()(`${_}-body`,R("body")),Y=Object.assign(Object.assign({},c),T("body")),Q=e.createElement("div",{className:K,style:Y},d?D:w),Z=b()(`${_}-actions`,R("actions")),J=(null===h||void 0===h?void 0:h.length)?e.createElement(Sk,{actionClasses:Z,actionStyle:T("actions"),actions:h}):null,ee=nn(j,["onTabChange"]),te=b()(_,null===N||void 0===N?void 0:N.className,{[`${_}-loading`]:d,[`${_}-bordered`]:"borderless"!==M,[`${_}-hoverable`]:$,[`${_}-contain-grid`]:z,[`${_}-contain-tabs`]:null===y||void 0===y?void 0:y.length,[`${_}-${V}`]:V,[`${_}-type-${g}`]:!!g,[`${_}-rtl`]:"rtl"===P},o,i,A,B),ne=Object.assign(Object.assign({},null===N||void 0===N?void 0:N.style),a);return L(e.createElement("div",Object.assign({ref:n},ee,{className:te,style:ne}),W,G,Q,J))});var Ek=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kk=t=>{const{prefixCls:n,className:r,avatar:o,title:i,description:a}=t,l=Ek(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=e.useContext(cn),c=s("card",n),u=b()(`${c}-meta`,r),d=o?e.createElement("div",{className:`${c}-meta-avatar`},o):null,f=i?e.createElement("div",{className:`${c}-meta-title`},i):null,p=a?e.createElement("div",{className:`${c}-meta-description`},a):null,m=f||p?e.createElement("div",{className:`${c}-meta-detail`},f,p):null;return e.createElement("div",Object.assign({},l,{className:u}),d,m)},Ok=$k;Ok.Grid=fk,Ok.Meta=kk;const jk=Ok;function Ik(e){let{user:t,darkMode:n,onLogout:r,onToggleDarkMode:o}=e;return(0,ob.jsxs)(sx,{children:[(0,ob.jsxs)(sx.Header,{style:{position:"sticky",top:0,zIndex:100,display:"flex",justifyContent:"space-between",alignItems:"center",background:n?"#1f1f1f":"#fff",padding:"0 32px"},children:[(0,ob.jsx)("div",{style:{fontWeight:700,fontSize:20,color:n?"#fff":void 0},children:"Admin Dashboard"}),(0,ob.jsx)(fE,{user:t,onLogout:r,darkMode:n,onToggleDarkMode:o})]}),(0,ob.jsx)(sx.Content,{style:{padding:32},children:(0,ob.jsxs)(pE,{gutter:16,children:[(0,ob.jsx)(mE,{span:8,children:(0,ob.jsx)(jk,{title:"Benutzerverwaltung",variant:"outlined",disabled:!0,children:"Kommt bald\u2026"})}),(0,ob.jsx)(mE,{span:8,children:(0,ob.jsx)(jk,{title:"Systeminfos",variant:"outlined",disabled:!0,children:"Kommt bald\u2026"})}),(0,ob.jsx)(mE,{span:8,children:(0,ob.jsx)(jk,{title:"Einstellungen",variant:"outlined",disabled:!0,children:"Kommt bald\u2026"})})]})})]})}function Pk(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function Nk(e,t,n,r){var o=Ue.unstable_batchedUpdates?function(e){Ue.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var Mk=e.createContext(null);const Rk=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,i=t.prefixCls,a=t.rootClassName,l=t.icons,s=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,f=t.transform,p=t.count,m=t.scale,v=t.minScale,h=t.maxScale,y=t.closeIcon,w=t.onActive,x=t.onClose,C=t.onZoomIn,S=t.onZoomOut,$=t.onRotateRight,E=t.onRotateLeft,k=t.onFlipX,O=t.onFlipY,j=t.onReset,I=t.toolbarRender,P=t.zIndex,N=t.image,M=(0,e.useContext)(Mk),R=l.rotateLeft,T=l.rotateRight,z=l.zoomIn,_=l.zoomOut,L=l.close,A=l.left,B=l.right,D=l.flipX,F=l.flipY,H="".concat(i,"-operations-operation");e.useEffect(function(){var e=function(e){e.keyCode===du.ESC&&x()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[n]);var W=function(e,t){e.preventDefault(),e.stopPropagation(),w(t)},V=e.useCallback(function(t){var n=t.type,r=t.disabled,o=t.onClick,a=t.icon;return e.createElement("div",{key:n,className:b()(H,"".concat(i,"-operations-operation-").concat(n),g({},"".concat(i,"-operations-operation-disabled"),!!r)),onClick:o},a)},[H,i]),X=c?V({icon:A,onClick:function(e){return W(e,-1)},type:"prev",disabled:0===d}):void 0,q=c?V({icon:B,onClick:function(e){return W(e,1)},type:"next",disabled:d===p-1}):void 0,U=V({icon:F,onClick:O,type:"flipY"}),G=V({icon:D,onClick:k,type:"flipX"}),K=V({icon:R,onClick:E,type:"rotateLeft"}),Y=V({icon:T,onClick:$,type:"rotateRight"}),Q=V({icon:_,onClick:S,type:"zoomOut",disabled:m<=v}),Z=V({icon:z,onClick:C,type:"zoomIn",disabled:m===h}),J=e.createElement("div",{className:"".concat(i,"-operations")},U,G,K,Y,Q,Z);return e.createElement(Dr,{visible:n,motionName:r},function(t){var n=t.className,r=t.style;return e.createElement(Nn,{open:!0,getContainer:null!==o&&void 0!==o?o:document.body},e.createElement("div",{className:b()("".concat(i,"-operations-wrapper"),n,a),style:ie(ie({},r),{},{zIndex:P})},null===y?null:e.createElement("button",{className:"".concat(i,"-close"),onClick:x},y||L),c&&e.createElement(e.Fragment,null,e.createElement("div",{className:b()("".concat(i,"-switch-left"),g({},"".concat(i,"-switch-left-disabled"),0===d)),onClick:function(e){return W(e,-1)}},A),e.createElement("div",{className:b()("".concat(i,"-switch-right"),g({},"".concat(i,"-switch-right-disabled"),d===p-1)),onClick:function(e){return W(e,1)}},B)),e.createElement("div",{className:"".concat(i,"-footer")},u&&e.createElement("div",{className:"".concat(i,"-progress")},s?s(d+1,p):e.createElement("bdi",null,"".concat(d+1," / ").concat(p))),I?I(J,ie(ie({icons:{prevIcon:X,nextIcon:q,flipYIcon:U,flipXIcon:G,rotateLeftIcon:K,rotateRightIcon:Y,zoomOutIcon:Q,zoomInIcon:Z},actions:{onActive:w,onFlipY:O,onFlipX:k,onRotateLeft:E,onRotateRight:$,onZoomOut:S,onZoomIn:C,onReset:j,onClose:x},transform:f},M?{current:d,total:p}:{}),{},{image:N})):J)))})};var Tk={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function zk(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return g({},e,i);if(t<0&&o<r)return g({},e,-i)}else if(t<0||o>r)return g({},e,t<0?i:-i);return{}}function _k(e,t,n,r){var o=Pk(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=ie(ie({},zk("x",n,e,i)),zk("y",r,t,a))),l}function Lk(t){var n=t.src,r=t.isCustomPlaceholder,o=t.fallback,i=f((0,e.useState)(r?"loading":"normal"),2),a=i[0],l=i[1],s=(0,e.useRef)(!1),c="error"===a;(0,e.useEffect)(function(){var e=!0;return function(e){return new Promise(function(t){if(e){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}else t(!1)})}(n).then(function(t){!t&&e&&l("error")}),function(){e=!1}},[n]),(0,e.useEffect)(function(){r&&!s.current?l("loading"):c&&l("normal")},[n]);var u=function(){l("normal")};return[function(e){s.current=!1,"loading"===a&&null!==e&&void 0!==e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,u())},c&&o?{src:o}:{onLoad:u,src:n},a]}function Ak(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Bk(t,n,r,o,i,a,l){var s=i.rotate,c=i.scale,u=i.x,d=i.y,p=f((0,e.useState)(!1),2),m=p[0],g=p[1],v=(0,e.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=function(e){v.current=ie(ie({},v.current),e)};return(0,e.useEffect)(function(){var e;return r&&n&&(e=Nk(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}},[r,n]),{isTouching:m,onTouchStart:function(e){if(n){e.stopPropagation(),g(!0);var t=e.touches,r=void 0===t?[]:t;r.length>1?h({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):h({point1:{x:r[0].clientX-u,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=v.current,o=r.point1,i=r.point2,s=r.eventType;if(n.length>1&&"touchZoom"===s){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=Ak(e,n),i=Ak(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,c,u),p=f(d,2),m=p[0],g=p[1],b=Ak(c,u)/Ak(o,i);l(b,"touchZoom",m,g,!0),h({point1:c,point2:u,eventType:"touchZoom"})}else"move"===s&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),h({eventType:"move"}))},onTouchEnd:function(){if(r){if(m&&g(!1),h({eventType:"none"}),o>c)return a({x:0,y:0,scale:o},"touchZoom");var e=t.current.offsetWidth*c,n=t.current.offsetHeight*c,i=t.current.getBoundingClientRect(),l=i.left,u=i.top,d=s%180!==0,f=_k(d?n:e,d?e:n,l,u);f&&a(ie({},f),"dragRebound")}}}}var Dk=["fallback","src","imgRef"],Fk=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Hk=function(t){var n=t.fallback,r=t.src,o=t.imgRef,i=v(t,Dk),a=f(Lk({src:r,fallback:n}),2),l=a[0],c=a[1];return e.createElement("img",s({ref:function(e){o.current=e,l(e)}},i,c))};const Wk=function(t){var n=t.prefixCls,r=t.src,o=t.alt,i=t.imageInfo,a=t.fallback,l=t.movable,c=void 0===l||l,u=t.onClose,d=t.visible,p=t.icons,m=void 0===p?{}:p,h=t.rootClassName,y=t.closeIcon,w=t.getContainer,x=t.current,C=void 0===x?0:x,S=t.count,$=void 0===S?1:S,E=t.countRender,k=t.scaleStep,O=void 0===k?.5:k,j=t.minScale,I=void 0===j?1:j,P=t.maxScale,N=void 0===P?50:P,M=t.transitionName,R=void 0===M?"zoom":M,T=t.maskTransitionName,z=void 0===T?"fade":T,_=t.imageRender,L=t.imgCommonProps,A=t.toolbarRender,B=t.onTransform,D=t.onChange,F=v(t,Fk),H=(0,e.useRef)(),W=(0,e.useContext)(Mk),V=W&&$>1,X=W&&$>=1,q=f((0,e.useState)(!0),2),U=q[0],G=q[1],K=function(t,n,r,o){var i=(0,e.useRef)(null),a=(0,e.useRef)([]),l=f((0,e.useState)(Tk),2),s=l[0],c=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=Cr(function(){c(function(e){var n=e;return a.current.forEach(function(e){n=ie(ie({},n),e)}),i.current=null,null===o||void 0===o||o({transform:n,action:t}),n})})),a.current.push(ie(ie({},s),e))};return{transform:s,resetTransform:function(e){c(Tk),No(Tk,s)||null===o||void 0===o||o({transform:Tk,action:e})},updateTransform:u,dispatchZoomChange:function(e,o,i,a,l){var c=t.current,d=c.width,f=c.height,p=c.offsetWidth,m=c.offsetHeight,g=c.offsetLeft,v=c.offsetTop,h=e,b=s.scale*e;b>r?(b=r,h=r/s.scale):b<n&&(h=(b=l?b:n)/s.scale);var y=null!==i&&void 0!==i?i:innerWidth/2,w=null!==a&&void 0!==a?a:innerHeight/2,x=h-1,C=x*d*.5,S=x*f*.5,$=x*(y-s.x-g),E=x*(w-s.y-v),k=s.x-($-C),O=s.y-(E-S);if(e<1&&1===b){var j=p*b,I=m*b,P=Pk(),N=P.width,M=P.height;j<=N&&I<=M&&(k=0,O=0)}u({x:k,y:O,scale:b},o)}}}(H,I,N,B),Y=K.transform,Q=K.resetTransform,Z=K.updateTransform,J=K.dispatchZoomChange,ee=function(t,n,r,o,i,a,l){var s=i.rotate,c=i.scale,u=i.x,d=i.y,p=f((0,e.useState)(!1),2),m=p[0],g=p[1],v=(0,e.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),h=function(e){r&&m&&a({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},b=function(){if(r&&m){g(!1);var e=v.current,n=e.transformX,o=e.transformY;if(u===n||d===o)return;var i=t.current.offsetWidth*c,l=t.current.offsetHeight*c,f=t.current.getBoundingClientRect(),p=f.left,h=f.top,b=s%180!==0,y=_k(b?l:i,b?i:l,p,h);y&&a(ie({},y),"dragRebound")}};return(0,e.useEffect)(function(){var e,t,r,o;if(n){r=Nk(window,"mouseup",b,!1),o=Nk(window,"mousemove",h,!1);try{window.top!==window.self&&(e=Nk(window.top,"mouseup",b,!1),t=Nk(window.top,"mousemove",h,!1))}catch(i){"[rc-image] ".concat(i)}}return function(){var n,i,a,l;null===(n=r)||void 0===n||n.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=t)||void 0===l||l.remove()}},[r,m,u,d,s,n]),{isMoving:m,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},g(!0))},onMouseMove:h,onMouseUp:b,onWheel:function(e){if(r&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*o;e.deltaY>0&&(n=1/n),l(n,"wheel",e.clientX,e.clientY)}}}}(H,c,d,O,Y,Z,J),te=ee.isMoving,ne=ee.onMouseDown,re=ee.onWheel,oe=Bk(H,c,d,I,Y,Z,J),ae=oe.isTouching,le=oe.onTouchStart,se=oe.onTouchMove,ce=oe.onTouchEnd,ue=Y.rotate,de=Y.scale,fe=b()(g({},"".concat(n,"-moving"),te));(0,e.useEffect)(function(){U||G(!0)},[U]);var pe=function(e){var t=C+e;!Number.isInteger(t)||t<0||t>$-1||(G(!1),Q(e<0?"prev":"next"),null===D||void 0===D||D(t,C))},me=function(e){d&&V&&(e.keyCode===du.LEFT?pe(-1):e.keyCode===du.RIGHT&&pe(1))};(0,e.useEffect)(function(){var e=Nk(window,"keydown",me,!1);return function(){e.remove()}},[d,V,C]);var ge=e.createElement(Hk,s({},L,{width:t.width,height:t.height,imgRef:H,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(Y.x,"px, ").concat(Y.y,"px, 0) scale3d(").concat(Y.flipX?"-":"").concat(de,", ").concat(Y.flipY?"-":"").concat(de,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!U||ae)&&"0s"},fallback:a,src:r,onWheel:re,onMouseDown:ne,onDoubleClick:function(e){d&&(1!==de?Z({x:0,y:0,scale:1},"doubleClick"):J(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:le,onTouchMove:se,onTouchEnd:ce,onTouchCancel:ce})),ve=ie({url:r,alt:o},i);return e.createElement(e.Fragment,null,e.createElement(Db,s({transitionName:R,maskTransitionName:z,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:fe},rootClassName:h,getContainer:w},F,{afterClose:function(){Q("close")}}),e.createElement("div",{className:"".concat(n,"-img-wrapper")},_?_(ge,ie({transform:Y,image:ve},W?{current:C}:{})):ge)),e.createElement(Rk,{visible:d,transform:Y,maskTransitionName:z,closeIcon:y,getContainer:w,prefixCls:n,rootClassName:h,icons:m,countRender:E,showSwitch:V,showProgress:X,current:C,count:$,scale:de,minScale:I,maxScale:N,toolbarRender:A,onActive:pe,onZoomIn:function(){J(1+O,"zoomIn")},onZoomOut:function(){J(1/(1+O),"zoomOut")},onRotateRight:function(){Z({rotate:ue+90},"rotateRight")},onRotateLeft:function(){Z({rotate:ue-90},"rotateLeft")},onFlipX:function(){Z({flipX:!Y.flipX},"flipX")},onFlipY:function(){Z({flipY:!Y.flipY},"flipY")},onClose:u,onReset:function(){Q("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:ve}))};var Vk=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var Xk=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],qk=["src"];const Uk=function(t){var n,r=t.previewPrefixCls,o=void 0===r?"rc-image-preview":r,i=t.children,a=t.icons,c=void 0===a?{}:a,u=t.items,d=t.preview,m=t.fallback,h="object"===p(d)?d:{},b=h.visible,y=h.onVisibleChange,w=h.getContainer,x=h.current,C=h.movable,S=h.minScale,$=h.maxScale,E=h.countRender,k=h.closeIcon,O=h.onChange,j=h.onTransform,I=h.toolbarRender,P=h.imageRender,N=v(h,Xk),M=function(t){var n=f(e.useState({}),2),r=n[0],o=n[1],i=e.useCallback(function(e,t){return o(function(n){return ie(ie({},n),{},g({},e,t))}),function(){o(function(t){var n=ie({},t);return delete n[e],n})}},[]),a=e.useMemo(function(){return t?t.map(function(e){if("string"===typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat(l(Vk)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(r).reduce(function(e,t){var n=r[t],o=n.canPreview,i=n.data;return o&&e.push({data:i,id:t}),e},[])},[t,r]);return[a,i,!!t]}(u),R=f(M,3),T=R[0],z=R[1],_=R[2],L=f(tn(0,{value:x}),2),A=L[0],B=L[1],D=f((0,e.useState)(!1),2),F=D[0],H=D[1],W=(null===(n=T[A])||void 0===n?void 0:n.data)||{},V=W.src,X=v(W,qk),q=f(tn(!!b,{value:b,onChange:function(e,t){null===y||void 0===y||y(e,t,A)}}),2),U=q[0],G=q[1],K=f((0,e.useState)(null),2),Y=K[0],Q=K[1],Z=e.useCallback(function(e,t,n,r){var o=_?T.findIndex(function(e){return e.data.src===t}):T.findIndex(function(t){return t.id===e});B(o<0?0:o),G(!0),Q({x:n,y:r}),H(!0)},[T,_]);e.useEffect(function(){U?F||B(0):H(!1)},[U]);var J=e.useMemo(function(){return{register:z,onPreview:Z}},[z,Z]);return e.createElement(Mk.Provider,{value:J},i,e.createElement(Wk,s({"aria-hidden":!U,movable:C,visible:U,prefixCls:o,closeIcon:k,onClose:function(){G(!1),Q(null)},mousePosition:Y,imgCommonProps:X,src:V,fallback:m,icons:c,minScale:S,maxScale:$,getContainer:w,current:A,count:T.length,countRender:E,onTransform:j,toolbarRender:I,imageRender:P,onChange:function(e,t){B(e),null===O||void 0===O||O(e,t)}},N)))};var Gk=0;var Kk=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Yk=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qk=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,i=t.prefixCls,a=void 0===i?"rc-image":i,l=t.previewPrefixCls,c=void 0===l?"".concat(a,"-preview"):l,u=t.placeholder,d=t.fallback,m=t.width,h=t.height,y=t.style,w=t.preview,x=void 0===w||w,C=t.className,S=t.onClick,$=t.onError,E=t.wrapperClassName,k=t.wrapperStyle,O=t.rootClassName,j=v(t,Kk),I=u&&!0!==u,P="object"===p(x)?x:{},N=P.src,M=P.visible,R=void 0===M?void 0:M,T=P.onVisibleChange,z=void 0===T?o:T,_=P.getContainer,L=void 0===_?void 0:_,A=P.mask,B=P.maskClassName,D=P.movable,F=P.icons,H=P.scaleStep,W=P.minScale,V=P.maxScale,X=P.imageRender,q=P.toolbarRender,U=v(P,Yk),G=null!==N&&void 0!==N?N:n,K=f(tn(!!R,{value:R,onChange:z}),2),Y=K[0],Q=K[1],Z=f(Lk({src:n,isCustomPlaceholder:I,fallback:d}),3),J=Z[0],ee=Z[1],te=Z[2],ne=f((0,e.useState)(null),2),re=ne[0],oe=ne[1],ae=(0,e.useContext)(Mk),le=!!x,se=b()(a,E,O,g({},"".concat(a,"-error"),"error"===te)),ce=(0,e.useMemo)(function(){var e={};return Vk.forEach(function(n){void 0!==t[n]&&(e[n]=t[n])}),e},Vk.map(function(e){return t[e]})),ue=function(t,n){var r=f(e.useState(function(){return String(Gk+=1)}),1)[0],o=e.useContext(Mk),i={data:n,canPreview:t};return e.useEffect(function(){if(o)return o.register(r,i)},[]),e.useEffect(function(){o&&o.register(r,i)},[t,n]),r}(le,(0,e.useMemo)(function(){return ie(ie({},ce),{},{src:G})},[G,ce]));return e.createElement(e.Fragment,null,e.createElement("div",s({},j,{className:se,onClick:le?function(e){var t=function(e){var t=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)}}(e.target),n=t.left,r=t.top;ae?ae.onPreview(ue,G,n,r):(oe({x:n,y:r}),Q(!0)),null===S||void 0===S||S(e)}:S,style:ie({width:m,height:h},k)}),e.createElement("img",s({},ce,{className:b()("".concat(a,"-img"),g({},"".concat(a,"-img-placeholder"),!0===u),C),style:ie({height:h},y),ref:J},ee,{width:m,height:h,onError:$})),"loading"===te&&e.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},u),A&&le&&e.createElement("div",{className:b()("".concat(a,"-mask"),B),style:{display:"none"===(null===y||void 0===y?void 0:y.display)?"none":void 0}},A)),!ae&&le&&e.createElement(Wk,s({"aria-hidden":!Y,visible:Y,prefixCls:c,onClose:function(){Q(!1),oe(null)},mousePosition:re,src:G,alt:r,imageInfo:{width:m,height:h},fallback:d,getContainer:L,icons:F,movable:D,scaleStep:H,minScale:W,maxScale:V,rootClassName:O,imageRender:X,imgCommonProps:ce,toolbarRender:q},U)))};Qk.PreviewGroup=Uk;const Zk=Qk;const Jk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var eO=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:Jk}))};const tO=e.forwardRef(eO);const nO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var rO=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:nO}))};const oO=e.forwardRef(rO);const iO={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"};var aO=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:iO}))};const lO=e.forwardRef(aO);const sO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var cO=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:sO}))};const uO=e.forwardRef(cO);const dO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var fO=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:dO}))};const pO=e.forwardRef(fO),mO=e=>({position:e||"absolute",inset:0}),gO=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new S("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ms),{padding:`0 ${Ea(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},vO=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new S(n).setA(.1),p=f.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ea(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},hO=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new S(t).setA(.1),s=l.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},bO=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},mO()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},mO()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[vO(e),hO(e)]}]},yO=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},gO(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},mO())}}},wO=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Gc(e,"zoom"),"&":Sy(e,!0)}},xO=Xs("Image",e=>{const t=`${e.componentCls}-preview`,n=rs(e,{previewCls:t,modalMaskBg:new S("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[yO(n),bO(n),Ey(rs(n,{componentCls:t})),wO(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new S(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new S(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new S(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));var CO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const SO={rotateLeft:e.createElement(tO,null),rotateRight:e.createElement(oO,null),zoomIn:e.createElement(uO,null),zoomOut:e.createElement(pO,null),close:e.createElement(Yp,null),left:e.createElement(Lw,null),right:e.createElement(Dw,null),flipX:e.createElement(lO,null),flipY:e.createElement(lO,{rotate:90})};var $O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const EO=t=>{const{prefixCls:n,preview:r,className:o,rootClassName:i,style:a}=t,l=$O(t,["prefixCls","preview","className","rootClassName","style"]);const{getPrefixCls:s,getPopupContainer:c,className:u,style:d,preview:f}=fn("image"),[p]=wn("Image"),m=s("image",n),g=s(),v=Fu(m),[h,y,w]=xO(m,v),x=b()(i,y,w,v),C=b()(o,y,u),[S]=uc("ImagePreview","object"===typeof r?r.zIndex:void 0),$=e.useMemo(()=>{if(!1===r)return r;const t="object"===typeof r?r:{},{getContainer:n,closeIcon:o,rootClassName:i,destroyOnClose:a,destroyOnHidden:l}=t,s=$O(t,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:e.createElement("div",{className:`${m}-mask-info`},e.createElement(Cv,null),null===p||void 0===p?void 0:p.preview),icons:SO},s),{destroyOnClose:null!==l&&void 0!==l?l:a,rootClassName:b()(x,i),getContainer:null!==n&&void 0!==n?n:c,transitionName:gc(g,"zoom",t.transitionName),maskTransitionName:gc(g,"fade",t.maskTransitionName),zIndex:S,closeIcon:null!==o&&void 0!==o?o:null===f||void 0===f?void 0:f.closeIcon})},[r,p,null===f||void 0===f?void 0:f.closeIcon]),E=Object.assign(Object.assign({},d),a);return h(e.createElement(Zk,Object.assign({prefixCls:m,preview:$,rootClassName:x,className:C,style:E},l)))};EO.PreviewGroup=t=>{var{previewPrefixCls:n,preview:r}=t,o=CO(t,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:a}=e.useContext(cn),l=i("image",n),s=`${l}-preview`,c=i(),u=Fu(l),[d,f,p]=xO(l,u),[m]=uc("ImagePreview","object"===typeof r?r.zIndex:void 0),g=e.useMemo(()=>Object.assign(Object.assign({},SO),{left:"rtl"===a?e.createElement(Dw,null):e.createElement(Lw,null),right:"rtl"===a?e.createElement(Lw,null):e.createElement(Dw,null)}),[a]),v=e.useMemo(()=>{var e;if(!1===r)return r;const t="object"===typeof r?r:{},n=b()(f,p,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:gc(c,"zoom",t.transitionName),maskTransitionName:gc(c,"fade",t.maskTransitionName),rootClassName:n,zIndex:m})},[r]);return d(e.createElement(Zk.PreviewGroup,Object.assign({preview:v,previewPrefixCls:s,icons:g},o)))};const kO=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 jO;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(jO||(jO={}));const IO="popstate";function PO(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function NO(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(Ym){}}}function MO(e,t){return{usr:e.state,key:e.key,idx:t}}function RO(e,t,n,r){return void 0===n&&(n=null),OO({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?zO(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function TO(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function zO(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _O(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=jO.Pop,s=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){l=jO.Pop;let e=u(),t=null==e?null:e-c;c=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"===typeof e?e:TO(e);return n=n.replace(/ $/,"%20"),PO(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,a.replaceState(OO({},a.state,{idx:c}),""));let p={get action(){return l},get location(){return e(o,a)},listen(e){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(IO,d),s=e,()=>{o.removeEventListener(IO,d),s=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=jO.Push;let r=RO(p.location,e,t);n&&n(r,e),c=u()+1;let d=MO(r,c),f=p.createHref(r);try{a.pushState(d,"",f)}catch(m){if(m instanceof DOMException&&"DataCloneError"===m.name)throw m;o.location.assign(f)}i&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=jO.Replace;let r=RO(p.location,e,t);n&&n(r,e),c=u();let o=MO(r,c),d=p.createHref(r);a.replaceState(o,"",d),i&&s&&s({action:l,location:p.location,delta:0})},go:e=>a.go(e)};return p}var LO;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(LO||(LO={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function AO(e,t,n){return void 0===n&&(n="/"),BO(e,t,n,!1)}function BO(e,t,n,r){let o=JO(("string"===typeof t?zO(t):t).pathname||"/",n);if(null==o)return null;let i=DO(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let l=0;null==a&&l<i.length;++l){let e=ZO(o);a=YO(i[l],e,r)}return a}function DO(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(PO(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=oj([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(PO(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),DO(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:KO(l,e.index),routesMeta:s})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of FO(e.path))o(e,t,r);else o(e,t)}),t}function FO(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=FO(r.join("/")),l=[];return l.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...a),l.map(t=>e.startsWith("/")&&""===t?"/":t)}const HO=/^:[\w-]+$/,WO=3,VO=2,XO=1,qO=10,UO=-2,GO=e=>"*"===e;function KO(e,t){let n=e.split("/"),r=n.length;return n.some(GO)&&(r+=UO),t&&(r+=VO),n.filter(e=>!GO(e)).reduce((e,t)=>e+(HO.test(t)?WO:""===t?XO:qO),r)}function YO(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let e=r[l],s=l===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=QO({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},c),d=e.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=QO({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:oj([i,u.pathname]),pathnameBase:ij(oj([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=oj([i,u.pathnameBase]))}return a}function QO(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);NO("*"===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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1),s=r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=o&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{});return{params:s,pathname:i,pathnameBase:a,pattern:e}}function ZO(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return NO(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function JO(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 ej(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 tj(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function nj(e,t){let n=tj(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function rj(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=zO(e):(o=OO({},e),PO(!o.pathname||!o.pathname.includes("?"),ej("?","pathname","search",o)),PO(!o.pathname||!o.pathname.includes("#"),ej("#","pathname","hash",o)),PO(!o.search||!o.search.includes("#"),ej("#","search","hash",o)));let i,a=""===e||""===o.pathname,l=a?"/":o.pathname;if(null==l)i=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?zO(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:aj(r),hash:lj(o)}}(o,i),c=l&&"/"!==l&&l.endsWith("/"),u=(a||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!c&&!u||(s.pathname+="/"),s}const oj=e=>e.join("/").replace(/\/\/+/g,"/"),ij=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aj=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",lj=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function sj(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const cj=["post","put","patch","delete"],uj=(new Set(cj),["get",...cj]);new Set(uj),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function dj(){return dj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dj.apply(this,arguments)}const fj=e.createContext(null);const pj=e.createContext(null);const mj=e.createContext(null);const gj=e.createContext(null);const vj=e.createContext({outlet:null,matches:[],isDataRoute:!1});const hj=e.createContext(null);function bj(){return null!=e.useContext(gj)}function yj(){return bj()||PO(!1),e.useContext(gj).location}function wj(t){e.useContext(mj).static||e.useLayoutEffect(t)}function xj(){let{isDataRoute:t}=e.useContext(vj);return t?function(){let{router:t}=Nj(Ij.UseNavigateStable),n=Rj(Pj.UseNavigateStable),r=e.useRef(!1);return wj(()=>{r.current=!0}),e.useCallback(function(e,o){void 0===o&&(o={}),r.current&&("number"===typeof e?t.navigate(e):t.navigate(e,dj({fromRouteId:n},o)))},[t,n])}():function(){bj()||PO(!1);let t=e.useContext(fj),{basename:n,future:r,navigator:o}=e.useContext(mj),{matches:i}=e.useContext(vj),{pathname:a}=yj(),l=JSON.stringify(nj(i,r.v7_relativeSplatPath)),s=e.useRef(!1);wj(()=>{s.current=!0});let c=e.useCallback(function(e,r){if(void 0===r&&(r={}),!s.current)return;if("number"===typeof e)return void o.go(e);let i=rj(e,JSON.parse(l),a,"path"===r.relative);null==t&&"/"!==n&&(i.pathname="/"===i.pathname?n:oj([n,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)},[n,o,l,a,t]);return c}()}function Cj(t,n){let{relative:r}=void 0===n?{}:n,{future:o}=e.useContext(mj),{matches:i}=e.useContext(vj),{pathname:a}=yj(),l=JSON.stringify(nj(i,o.v7_relativeSplatPath));return e.useMemo(()=>rj(t,JSON.parse(l),a,"path"===r),[t,l,a,r])}function Sj(t,n,r,o){bj()||PO(!1);let{navigator:i}=e.useContext(mj),{matches:a}=e.useContext(vj),l=a[a.length-1],s=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let u,d=yj();if(n){var f;let e="string"===typeof n?zO(n):n;"/"===c||(null==(f=e.pathname)?void 0:f.startsWith(c))||PO(!1),u=e}else u=d;let p=u.pathname||"/",m=p;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=AO(t,{pathname:m});let v=jj(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:oj([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:oj([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,r,o);return n&&v?e.createElement(gj.Provider,{value:{location:dj({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:jO.Pop}},v):v}function $j(){let t=function(){var t;let n=e.useContext(hj),r=Mj(Pj.UseRouteError),o=Rj(Pj.UseRouteError);if(void 0!==n)return n;return null==(t=r.errors)?void 0:t[o]}(),n=sj(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:i},r):null,null)}const Ej=e.createElement($j,null);class kj extends e.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?e.createElement(vj.Provider,{value:this.props.routeContext},e.createElement(hj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Oj(t){let{routeContext:n,match:r,children:o}=t,i=e.useContext(fj);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(vj.Provider,{value:n},o)}function jj(t,n,r,o){var i;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==t){var a;if(!r)return null;if(r.errors)t=r.matches;else{if(!(null!=(a=o)&&a.v7_partialHydration&&0===n.length&&!r.initialized&&r.matches.length>0))return null;t=r.matches}}let l=t,s=null==(i=r)?void 0:i.errors;if(null!=s){let e=l.findIndex(e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id]));e>=0||PO(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){c=!0,l=u>=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight((t,o,i)=>{let a,d=!1,f=null,p=null;var m;r&&(a=s&&o.route.id?s[o.route.id]:void 0,f=o.route.errorElement||Ej,c&&(u<0&&0===i?(m="route-fallback",!1||Tj[m]||(Tj[m]=!0),d=!0,p=null):u===i&&(d=!0,p=o.route.hydrateFallbackElement||null)));let g=n.concat(l.slice(0,i+1)),v=()=>{let n;return n=a?f:d?p:o.route.Component?e.createElement(o.route.Component,null):o.route.element?o.route.element:t,e.createElement(Oj,{match:o,routeContext:{outlet:t,matches:g,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?e.createElement(kj,{location:r.location,revalidation:r.revalidation,component:f,error:a,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()},null)}var Ij=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ij||{}),Pj=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pj||{});function Nj(t){let n=e.useContext(fj);return n||PO(!1),n}function Mj(t){let n=e.useContext(pj);return n||PO(!1),n}function Rj(t){let n=function(){let t=e.useContext(vj);return t||PO(!1),t}(),r=n.matches[n.matches.length-1];return r.route.id||PO(!1),r.route.id}const Tj={};t.startTransition;function zj(t){let{to:n,replace:r,state:o,relative:i}=t;bj()||PO(!1);let{future:a,static:l}=e.useContext(mj),{matches:s}=e.useContext(vj),{pathname:c}=yj(),u=xj(),d=rj(n,nj(s,a.v7_relativeSplatPath),c,"path"===i),f=JSON.stringify(d);return e.useEffect(()=>u(JSON.parse(f),{replace:r,state:o,relative:i}),[u,f,i,r,o]),null}function _j(e){PO(!1)}function Lj(t){let{basename:n="/",children:r=null,location:o,navigationType:i=jO.Pop,navigator:a,static:l=!1,future:s}=t;bj()&&PO(!1);let c=n.replace(/^\/*/,"/"),u=e.useMemo(()=>({basename:c,navigator:a,static:l,future:dj({v7_relativeSplatPath:!1},s)}),[c,s,a,l]);"string"===typeof o&&(o=zO(o));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:g="default"}=o,v=e.useMemo(()=>{let e=JO(d,c);return null==e?null:{location:{pathname:e,search:f,hash:p,state:m,key:g},navigationType:i}},[c,d,f,p,m,g,i]);return null==v?null:e.createElement(mj.Provider,{value:u},e.createElement(gj.Provider,{children:r,value:v}))}function Aj(e){let{children:t,location:n}=e;return Sj(Bj(t),n)}new Promise(()=>{});e.Component;function Bj(t,n){void 0===n&&(n=[]);let r=[];return e.Children.forEach(t,(t,o)=>{if(!e.isValidElement(t))return;let i=[...n,o];if(t.type===e.Fragment)return void r.push.apply(r,Bj(t.props.children,i));t.type!==_j&&PO(!1),t.props.index&&t.props.children&&PO(!1);let a={id:t.props.id||i.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Bj(t.props.children,i)),r.push(a)}),r}function Dj(){return Dj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dj.apply(this,arguments)}function Fj(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Hj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(Ym){}new Map;const Wj=t.startTransition;Ge.flushSync,t.useId;function Vj(t){let{basename:n,children:r,future:o,window:i}=t,a=e.useRef();var l;null==a.current&&(a.current=(void 0===(l={window:i,v5Compat:!0})&&(l={}),_O(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return RO("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:TO(t)},null,l)));let s=a.current,[c,u]=e.useState({action:s.action,location:s.location}),{v7_startTransition:d}=o||{},f=e.useCallback(e=>{d&&Wj?Wj(()=>u(e)):u(e)},[u,d]);return e.useLayoutEffect(()=>s.listen(f),[s,f]),e.createElement(Lj,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:s,future:o})}const Xj="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,qj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Uj=e.forwardRef(function(t,n){let r,{onClick:o,relative:i,reloadDocument:a,replace:l,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:f}=t,p=Fj(t,Hj),{basename:m}=e.useContext(mj),g=!1;if("string"===typeof u&&qj.test(u)&&(r=u,Xj))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=JO(t.pathname,m);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:g=!0}catch(Ym){}let v=function(t,n){let{relative:r}=void 0===n?{}:n;bj()||PO(!1);let{basename:o,navigator:i}=e.useContext(mj),{hash:a,pathname:l,search:s}=Cj(t,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:oj([o,l])),i.createHref({pathname:c,search:s,hash:a})}(u,{relative:i}),h=function(t,n){let{target:r,replace:o,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s}=void 0===n?{}:n,c=xj(),u=yj(),d=Cj(t,{relative:l});return e.useCallback(e=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(e,r)){e.preventDefault();let n=void 0!==o?o:TO(u)===TO(d);c(t,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:s})}},[u,c,d,o,i,r,t,a,l,s])}(u,{replace:l,state:s,target:c,preventScrollReset:d,relative:i,unstable_viewTransition:f});return e.createElement("a",Dj({},p,{href:r||v,onClick:g||a?o:function(e){o&&o(e),e.defaultPrevented||h(e)},ref:n,target:c}))});var Gj,Kj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gj||(Gj={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Kj||(Kj={}));async function Yj(e){return(await fetch("/api/projects",{headers:{Authorization:`Bearer ${e}`}})).json()}function Qj(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 Zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qj(Object(n),!0).forEach(function(t){eI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jj(e){return Jj="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jj(e)}function eI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tI(){return tI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tI.apply(this,arguments)}function nI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rI(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var oI=rI(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),iI=rI(/Edge/i),aI=rI(/firefox/i),lI=rI(/safari/i)&&!rI(/chrome/i)&&!rI(/android/i),sI=rI(/iP(ad|od|hone)/i),cI=rI(/chrome/i)&&rI(/android/i),uI={capture:!1,passive:!1};function dI(e,t,n){e.addEventListener(t,n,!oI&&uI)}function fI(e,t,n){e.removeEventListener(t,n,!oI&&uI)}function pI(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function mI(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function gI(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&pI(e,t):pI(e,t))||r&&e===n)return e;if(e===n)break}while(e=mI(e))}return null}var vI,hI=/\s+/g;function bI(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(hI," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(hI," ")}}function yI(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function wI(e,t){var n="";if("string"===typeof e)n=e;else do{var r=yI(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function xI(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function CI(){var e=document.scrollingElement;return e||document.documentElement}function SI(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==CI()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!oI))do{if(o&&o.getBoundingClientRect&&("none"!==yI(o,"transform")||n&&"static"!==yI(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(yI(o,"border-top-width")),l-=f.left+parseInt(yI(o,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var p=wI(o||e),m=p&&p.a,g=p&&p.d;p&&(s=(a/=g)+(u/=g),c=(l/=m)+(d/=m))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function $I(e,t,n){for(var r=II(e,!0),o=SI(e)[t];r;){var i=SI(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===CI())break;r=II(r,!1)}return!1}function EI(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==TP.ghost&&(r||a[i]!==TP.dragged)&&gI(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function kI(e,t){for(var n=e.lastElementChild;n&&(n===TP.ghost||"none"===yI(n,"display")||t&&!pI(n,t));)n=n.previousElementSibling;return n||null}function OI(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===TP.clone||t&&!pI(e,t)||n++;return n}function jI(e){var t=0,n=0,r=CI();if(e)do{var o=wI(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function II(e,t){if(!e||!e.getBoundingClientRect)return CI();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=yI(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return CI();if(r||t)return n;r=!0}}}while(n=n.parentNode);return CI()}function PI(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function NI(e,t){return function(){if(!vI){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),vI=setTimeout(function(){vI=void 0},t)}}}function MI(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function RI(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function TI(e,t,n){var r={};return Array.from(e.children).forEach(function(o){var i,a,l,s;if(gI(o,t.draggable,e,!1)&&!o.animated&&o!==n){var c=SI(o);r.left=Math.min(null!==(i=r.left)&&void 0!==i?i:1/0,c.left),r.top=Math.min(null!==(a=r.top)&&void 0!==a?a:1/0,c.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,c.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var zI="Sortable"+(new Date).getTime();function _I(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(e){if("none"!==yI(e,"display")&&e!==TP.ghost){t.push({target:e,rect:SI(e)});var n=Zj({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=wI(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var o=!1,i=0;t.forEach(function(e){var t=0,n=e.target,a=n.fromRect,l=SI(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=wI(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&PI(s,l)&&!PI(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,s,c,r.options)),PI(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(e),o?e=setTimeout(function(){"function"===typeof n&&n()},i):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){yI(e,"transition",""),yI(e,"transform","");var o=wI(this.el),i=o&&o.a,a=o&&o.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,yI(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),yI(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),yI(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){yI(e,"transition",""),yI(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}var LI=[],AI={initializeByDefault:!0},BI={mount:function(e){for(var t in AI)AI.hasOwnProperty(t)&&!(t in e)&&(e[t]=AI[t]);LI.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),LI.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";LI.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](Zj({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Zj({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var o in LI.forEach(function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,tI(n,i.defaults)}}),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);"undefined"!==typeof i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return LI.forEach(function(r){"function"===typeof r.eventProperties&&tI(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return LI.forEach(function(o){e[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))}),r}};function DI(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[zI]){var g,v=t.options,h="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||oI||iI?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=p?p.lastPutMode:void 0;var b=Zj(Zj({},m),BI.getEventProperties(r,t));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),v[h]&&v[h].call(t,g)}}var FI=["evt"],HI=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=nI(n,FI);BI.pluginEvent.bind(TP)(e,t,Zj({dragEl:VI,parentEl:XI,ghostEl:qI,rootEl:UI,nextEl:GI,lastDownEl:KI,cloneEl:YI,cloneHidden:QI,dragStarted:uP,putSortable:rP,activeSortable:TP.active,originalEvent:r,oldIndex:ZI,oldDraggableIndex:eP,newIndex:JI,newDraggableIndex:tP,hideGhostForTarget:PP,unhideGhostForTarget:NP,cloneNowHidden:function(){QI=!0},cloneNowShown:function(){QI=!1},dispatchSortableEvent:function(e){WI({sortable:t,name:e,originalEvent:r})}},o))};function WI(e){DI(Zj({putSortable:rP,cloneEl:YI,targetEl:VI,rootEl:UI,oldIndex:ZI,oldDraggableIndex:eP,newIndex:JI,newDraggableIndex:tP},e))}var VI,XI,qI,UI,GI,KI,YI,QI,ZI,JI,eP,tP,nP,rP,oP,iP,aP,lP,sP,cP,uP,dP,fP,pP,mP,gP=!1,vP=!1,hP=[],bP=!1,yP=!1,wP=[],xP=!1,CP=[],SP="undefined"!==typeof document,$P=sI,EP=iI||oI?"cssFloat":"float",kP=SP&&!cI&&!sI&&"draggable"in document.createElement("div"),OP=function(){if(SP){if(oI)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),jP=function(e,t){var n=yI(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=EI(e,0,t),i=EI(e,1,t),a=o&&yI(o),l=i&&yI(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+SI(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+SI(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[EP]||i&&"none"===n[EP]&&s+c>r)?"vertical":"horizontal"},IP=function(e){function t(e,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===e||"string"===typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==Jj(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},PP=function(){!OP&&qI&&yI(qI,"display","none")},NP=function(){!OP&&qI&&yI(qI,"display","")};SP&&!cI&&document.addEventListener("click",function(e){if(vP)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),vP=!1,!1},!0);var MP=function(e){if(VI){var t=function(e,t){var n;return hP.some(function(r){var o=r[zI].options.emptyInsertThreshold;if(o&&!kI(r)){var i=SI(r),a=e>=i.left-o&&e<=i.right+o,l=t>=i.top-o&&t<=i.bottom+o;return a&&l?n=r:void 0}}),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[zI]._onDragOver(n)}}},RP=function(e){VI&&VI.parentNode[zI]._isOutsideThisEl(e.target)};function TP(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=tI({},t),e[zI]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return jP(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==TP.supportPointer&&"PointerEvent"in window&&(!lI||sI),emptyInsertThreshold:5};for(var r in BI.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in IP(t),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&kP,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?dI(e,"pointerdown",this._onTapStart):(dI(e,"mousedown",this._onTapStart),dI(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(dI(e,"dragover",this),dI(e,"dragenter",this)),hP.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),tI(this,_I())}function zP(e,t,n,r,o,i,a,l){var s,c,u=e[zI],d=u.options.onMove;return!window.CustomEvent||oI||iI?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||SI(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function _P(e){e.draggable=!1}function LP(){xP=!1}function AP(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function BP(e){return setTimeout(e,0)}function DP(e){return clearTimeout(e)}TP.prototype={constructor:TP,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(dP=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,VI):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){CP.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&CP.push(r)}}(n),!VI&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!lI||!l||"SELECT"!==l.tagName.toUpperCase())&&(!(l=gI(l,r.draggable,n,!1))||!l.animated)&&KI!==l){if(ZI=OI(l),eP=OI(l,r.draggable),"function"===typeof c){if(c.call(this,e,l,this))return WI({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),HI("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(r){if(r=gI(s,r.trim(),n,!1))return WI({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),HI("filter",t,{evt:e}),!0})))return void(o&&e.preventDefault());r.handle&&!gI(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!VI&&n.parentNode===i){var s=SI(n);if(UI=i,XI=(VI=n).parentNode,GI=VI.nextSibling,KI=n,nP=a.group,TP.dragged=VI,oP={target:VI,clientX:(t||e).clientX,clientY:(t||e).clientY},sP=oP.clientX-s.left,cP=oP.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,VI.style["will-change"]="all",r=function(){HI("delayEnded",o,{evt:e}),TP.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!aI&&o.nativeDraggable&&(VI.draggable=!0),o._triggerDragStart(e,t),WI({sortable:o,name:"choose",originalEvent:e}),bI(VI,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){xI(VI,e.trim(),_P)}),dI(l,"dragover",MP),dI(l,"mousemove",MP),dI(l,"touchmove",MP),a.supportPointer?(dI(l,"pointerup",o._onDrop),!this.nativeDraggable&&dI(l,"pointercancel",o._onDrop)):(dI(l,"mouseup",o._onDrop),dI(l,"touchend",o._onDrop),dI(l,"touchcancel",o._onDrop)),aI&&this.nativeDraggable&&(this.options.touchStartThreshold=4,VI.draggable=!0),HI("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(iI||oI))r();else{if(TP.eventCanceled)return void this._onDrop();a.supportPointer?(dI(l,"pointerup",o._disableDelayedDrag),dI(l,"pointercancel",o._disableDelayedDrag)):(dI(l,"mouseup",o._disableDelayedDrag),dI(l,"touchend",o._disableDelayedDrag),dI(l,"touchcancel",o._disableDelayedDrag)),dI(l,"mousemove",o._delayedDragTouchMoveHandler),dI(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&dI(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){VI&&_P(VI),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;fI(e,"mouseup",this._disableDelayedDrag),fI(e,"touchend",this._disableDelayedDrag),fI(e,"touchcancel",this._disableDelayedDrag),fI(e,"pointerup",this._disableDelayedDrag),fI(e,"pointercancel",this._disableDelayedDrag),fI(e,"mousemove",this._delayedDragTouchMoveHandler),fI(e,"touchmove",this._delayedDragTouchMoveHandler),fI(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?dI(document,"pointermove",this._onTouchMove):dI(document,t?"touchmove":"mousemove",this._onTouchMove):(dI(VI,"dragend",this),dI(UI,"dragstart",this._onDragStart));try{document.selection?BP(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(gP=!1,UI&&VI){HI("dragStarted",this,{evt:t}),this.nativeDraggable&&dI(document,"dragover",RP);var n=this.options;!e&&bI(VI,n.dragClass,!1),bI(VI,n.ghostClass,!0),TP.active=this,e&&this._appendGhost(),WI({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(iP){this._lastX=iP.clientX,this._lastY=iP.clientY,PP();for(var e=document.elementFromPoint(iP.clientX,iP.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(iP.clientX,iP.clientY))!==t;)t=e;if(VI.parentNode[zI]._isOutsideThisEl(e),t)do{if(t[zI]){if(t[zI]._onDragOver({clientX:iP.clientX,clientY:iP.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=mI(t));NP()}},_onTouchMove:function(e){if(oP){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=qI&&wI(qI,!0),a=qI&&i&&i.a,l=qI&&i&&i.d,s=$P&&mP&&jI(mP),c=(o.clientX-oP.clientX+r.x)/(a||1)+(s?s[0]-wP[0]:0)/(a||1),u=(o.clientY-oP.clientY+r.y)/(l||1)+(s?s[1]-wP[1]:0)/(l||1);if(!TP.active&&!gP){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(qI){i?(i.e+=c-(aP||0),i.f+=u-(lP||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");yI(qI,"webkitTransform",d),yI(qI,"mozTransform",d),yI(qI,"msTransform",d),yI(qI,"transform",d),aP=c,lP=u,iP=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!qI){var e=this.options.fallbackOnBody?document.body:UI,t=SI(VI,!0,$P,!0,e),n=this.options;if($P){for(mP=e;"static"===yI(mP,"position")&&"none"===yI(mP,"transform")&&mP!==document;)mP=mP.parentNode;mP!==document.body&&mP!==document.documentElement?(mP===document&&(mP=CI()),t.top+=mP.scrollTop,t.left+=mP.scrollLeft):mP=CI(),wP=jI(mP)}bI(qI=VI.cloneNode(!0),n.ghostClass,!1),bI(qI,n.fallbackClass,!0),bI(qI,n.dragClass,!0),yI(qI,"transition",""),yI(qI,"transform",""),yI(qI,"box-sizing","border-box"),yI(qI,"margin",0),yI(qI,"top",t.top),yI(qI,"left",t.left),yI(qI,"width",t.width),yI(qI,"height",t.height),yI(qI,"opacity","0.8"),yI(qI,"position",$P?"absolute":"fixed"),yI(qI,"zIndex","100000"),yI(qI,"pointerEvents","none"),TP.ghost=qI,e.appendChild(qI),yI(qI,"transform-origin",sP/parseInt(qI.style.width)*100+"% "+cP/parseInt(qI.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;HI("dragStart",this,{evt:e}),TP.eventCanceled?this._onDrop():(HI("setupClone",this),TP.eventCanceled||((YI=RI(VI)).removeAttribute("id"),YI.draggable=!1,YI.style["will-change"]="",this._hideClone(),bI(YI,this.options.chosenClass,!1),TP.clone=YI),n.cloneId=BP(function(){HI("clone",n),TP.eventCanceled||(n.options.removeCloneOnHide||UI.insertBefore(YI,VI),n._hideClone(),WI({sortable:n,name:"clone"}))}),!t&&bI(VI,o.dragClass,!0),t?(vP=!0,n._loopId=setInterval(n._emulateDragOver,50)):(fI(document,"mouseup",n._onDrop),fI(document,"touchend",n._onDrop),fI(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,VI)),dI(document,"drop",n),yI(VI,"transform","translateZ(0)")),gP=!0,n._dragStartId=BP(n._dragStarted.bind(n,t,e)),dI(document,"selectstart",n),uP=!0,window.getSelection().removeAllRanges(),lI&&yI(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,l=this.options,s=l.group,c=TP.active,u=nP===s,d=l.sort,f=rP||c,p=this,m=!1;if(!xP){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=gI(a,l.draggable,i,!0),I("dragOver"),TP.eventCanceled)return m;if(VI.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return N(!1);if(vP=!1,c&&!l.disabled&&(u?d||(r=XI!==UI):rP===this||(this.lastPutMode=nP.checkPull(this,c,VI,e))&&s.checkPut(this,c,VI,e))){if(o="vertical"===this._getDirection(e,a),t=SI(VI),I("dragOverValid"),TP.eventCanceled)return m;if(r)return XI=UI,P(),this._hideClone(),I("revert"),TP.eventCanceled||(GI?UI.insertBefore(VI,GI):UI.appendChild(VI)),N(!0);var g=kI(i,l.draggable);if(!g||function(e,t,n){var r=SI(kI(n.el,n.options.draggable)),o=TI(n.el,n.options,qI),i=10;return t?e.clientX>o.right+i||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+i||e.clientX>r.right&&e.clientY>r.top}(e,o,this)&&!g.animated){if(g===VI)return N(!1);if(g&&i===e.target&&(a=g),a&&(n=SI(a)),!1!==zP(UI,i,VI,t,a,n,e,!!a))return P(),g&&g.nextSibling?i.insertBefore(VI,g.nextSibling):i.appendChild(VI),XI=i,M(),N(!0)}else if(g&&function(e,t,n){var r=SI(EI(n.el,0,n.options,!0)),o=TI(n.el,n.options,qI),i=10;return t?e.clientX<o.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-i||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var v=EI(i,0,l,!0);if(v===VI)return N(!1);if(n=SI(a=v),!1!==zP(UI,i,VI,t,a,n,e,!1))return P(),i.insertBefore(VI,v),XI=i,M(),N(!0)}else if(a.parentNode===i){n=SI(a);var h,b,y,w=VI.parentNode!==i,x=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||o===l||r+i/2===a+s/2}(VI.animated&&VI.toRect||t,a.animated&&a.toRect||n,o),C=o?"top":"left",S=$I(a,"top","top")||$I(VI,"top","top"),$=S?S.scrollTop:void 0;if(dP!==a&&(b=n[C],bP=!1,yP=!x&&l.invertSwap||w),h=function(e,t,n,r,o,i,a,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(l&&pP<c*o){if(!bP&&(1===fP?s>u+c*i/2:s<d-c*i/2)&&(bP=!0),bP)f=!0;else if(1===fP?s<u+pP:s>d-pP)return-fP}else if(s>u+c*(1-o)/2&&s<d-c*(1-o)/2)return function(e){return OI(VI)<OI(e)?1:-1}(t);if((f=f||a)&&(s<u+c*i/2||s>d-c*i/2))return s>u+c/2?1:-1;return 0}(e,a,n,o,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,yP,dP===a),0!==h){var E=OI(VI);do{E-=h,y=XI.children[E]}while(y&&("none"===yI(y,"display")||y===qI))}if(0===h||y===a)return N(!1);dP=a,fP=h;var k=a.nextElementSibling,O=!1,j=zP(UI,i,VI,t,a,n,e,O=1===h);if(!1!==j)return 1!==j&&-1!==j||(O=1===j),xP=!0,setTimeout(LP,30),P(),O&&!k?i.appendChild(VI):a.parentNode.insertBefore(VI,O?k:a),S&&MI(S,0,$-S.scrollTop),XI=VI.parentNode,void 0===b||yP||(pP=Math.abs(b-SI(a)[C])),M(),N(!0)}if(i.contains(VI))return N(!1)}return!1}function I(l,s){HI(l,p,Zj({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:N,onMove:function(n,r){return zP(UI,i,VI,t,n,SI(n),e,r)},changed:M},s))}function P(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function N(t){return I("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==f&&(bI(VI,rP?rP.options.ghostClass:c.options.ghostClass,!1),bI(VI,l.ghostClass,!0)),rP!==p&&p!==TP.active?rP=p:p===TP.active&&rP&&(rP=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===VI&&!VI.animated||a===i&&!a.animated)&&(dP=null),l.dragoverBubble||e.rootEl||a===document||(VI.parentNode[zI]._isOutsideThisEl(e.target),!t&&MP(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function M(){JI=OI(VI),tP=OI(VI,l.draggable),WI({sortable:p,name:"change",toEl:i,newIndex:JI,newDraggableIndex:tP,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){fI(document,"mousemove",this._onTouchMove),fI(document,"touchmove",this._onTouchMove),fI(document,"pointermove",this._onTouchMove),fI(document,"dragover",MP),fI(document,"mousemove",MP),fI(document,"touchmove",MP)},_offUpEvents:function(){var e=this.el.ownerDocument;fI(e,"mouseup",this._onDrop),fI(e,"touchend",this._onDrop),fI(e,"pointerup",this._onDrop),fI(e,"pointercancel",this._onDrop),fI(e,"touchcancel",this._onDrop),fI(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;JI=OI(VI),tP=OI(VI,n.draggable),HI("drop",this,{evt:e}),XI=VI&&VI.parentNode,JI=OI(VI),tP=OI(VI,n.draggable),TP.eventCanceled||(gP=!1,yP=!1,bP=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),DP(this.cloneId),DP(this._dragStartId),this.nativeDraggable&&(fI(document,"drop",this),fI(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),lI&&yI(document.body,"user-select",""),yI(VI,"transform",""),e&&(uP&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),qI&&qI.parentNode&&qI.parentNode.removeChild(qI),(UI===XI||rP&&"clone"!==rP.lastPutMode)&&YI&&YI.parentNode&&YI.parentNode.removeChild(YI),VI&&(this.nativeDraggable&&fI(VI,"dragend",this),_P(VI),VI.style["will-change"]="",uP&&!gP&&bI(VI,rP?rP.options.ghostClass:this.options.ghostClass,!1),bI(VI,this.options.chosenClass,!1),WI({sortable:this,name:"unchoose",toEl:XI,newIndex:null,newDraggableIndex:null,originalEvent:e}),UI!==XI?(JI>=0&&(WI({rootEl:XI,name:"add",toEl:XI,fromEl:UI,originalEvent:e}),WI({sortable:this,name:"remove",toEl:XI,originalEvent:e}),WI({rootEl:XI,name:"sort",toEl:XI,fromEl:UI,originalEvent:e}),WI({sortable:this,name:"sort",toEl:XI,originalEvent:e})),rP&&rP.save()):JI!==ZI&&JI>=0&&(WI({sortable:this,name:"update",toEl:XI,originalEvent:e}),WI({sortable:this,name:"sort",toEl:XI,originalEvent:e})),TP.active&&(null!=JI&&-1!==JI||(JI=ZI,tP=eP),WI({sortable:this,name:"end",toEl:XI,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){HI("nulling",this),UI=VI=XI=qI=GI=YI=KI=QI=oP=iP=uP=JI=tP=ZI=eP=dP=fP=rP=nP=TP.dragged=TP.ghost=TP.clone=TP.active=null,CP.forEach(function(e){e.checked=!0}),CP.length=aP=lP=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":VI&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)gI(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||AP(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var o=r.children[t];gI(o,this.options.draggable,r,!1)&&(n[e]=o)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return gI(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=BI.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&IP(n)},destroy:function(){HI("destroy",this);var e=this.el;e[zI]=null,fI(e,"mousedown",this._onTapStart),fI(e,"touchstart",this._onTapStart),fI(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(fI(e,"dragover",this),fI(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),hP.splice(hP.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!QI){if(HI("hideClone",this),TP.eventCanceled)return;yI(YI,"display","none"),this.options.removeCloneOnHide&&YI.parentNode&&YI.parentNode.removeChild(YI),QI=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(QI){if(HI("showClone",this),TP.eventCanceled)return;VI.parentNode!=UI||this.options.group.revertClone?GI?UI.insertBefore(YI,GI):UI.appendChild(YI):UI.insertBefore(YI,VI),this.options.group.revertClone&&this.animate(VI,YI),yI(YI,"display",""),QI=!1}}else this._hideClone()}},SP&&dI(document,"touchmove",function(e){(TP.active||gP)&&e.cancelable&&e.preventDefault()}),TP.utils={on:dI,off:fI,css:yI,find:xI,is:function(e,t){return!!gI(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:NI,closest:gI,toggleClass:bI,clone:RI,index:OI,nextTick:BP,cancelNextTick:DP,detectDirection:jP,getChild:EI,expando:zI},TP.get=function(e){return e[zI]},TP.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(TP.utils=Zj(Zj({},TP.utils),e.utils)),BI.mount(e)})},TP.create=function(e,t){return new TP(e,t)},TP.version="1.15.6";var FP,HP,WP,VP,XP,qP,UP=[],GP=!1;function KP(){UP.forEach(function(e){clearInterval(e.pid)}),UP=[]}function YP(){clearInterval(qP)}var QP=NI(function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=CI(),u=!1;HP!==n&&(HP=n,KP(),FP=t.scroll,o=t.scrollFn,!0===FP&&(FP=II(n,!0)));var d=0,f=FP;do{var p=f,m=SI(p),g=m.top,v=m.bottom,h=m.left,b=m.right,y=m.width,w=m.height,x=void 0,C=void 0,S=p.scrollWidth,$=p.scrollHeight,E=yI(p),k=p.scrollLeft,O=p.scrollTop;p===c?(x=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),C=w<$&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(x=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX),C=w<$&&("auto"===E.overflowY||"scroll"===E.overflowY));var j=x&&(Math.abs(b-i)<=l&&k+y<S)-(Math.abs(h-i)<=l&&!!k),I=C&&(Math.abs(v-a)<=l&&O+w<$)-(Math.abs(g-a)<=l&&!!O);if(!UP[d])for(var P=0;P<=d;P++)UP[P]||(UP[P]={});UP[d].vx==j&&UP[d].vy==I&&UP[d].el===p||(UP[d].el=p,UP[d].vx=j,UP[d].vy=I,clearInterval(UP[d].pid),0==j&&0==I||(u=!0,UP[d].pid=setInterval(function(){r&&0===this.layer&&TP.active._onTouchMove(XP);var t=UP[this.layer].vy?UP[this.layer].vy*s:0,n=UP[this.layer].vx?UP[this.layer].vx*s:0;"function"===typeof o&&"continue"!==o.call(TP.dragged.parentNode[zI],n,t,e,XP,UP[this.layer].el)||MI(UP[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=II(f,!1)));GP=u}},30),ZP=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function JP(){}function eN(){}JP.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=EI(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ZP},tI(JP,{pluginName:"revertOnSpill"}),eN.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ZP},tI(eN,{pluginName:"removeOnSpill"});TP.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?dI(document,"dragover",this._handleAutoScroll):this.options.supportPointer?dI(document,"pointermove",this._handleFallbackAutoScroll):t.touches?dI(document,"touchmove",this._handleFallbackAutoScroll):dI(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?fI(document,"dragover",this._handleAutoScroll):(fI(document,"pointermove",this._handleFallbackAutoScroll),fI(document,"touchmove",this._handleFallbackAutoScroll),fI(document,"mousemove",this._handleFallbackAutoScroll)),YP(),KP(),clearTimeout(vI),vI=void 0},nulling:function(){XP=HP=FP=GP=qP=WP=VP=null,UP.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(XP=e,t||this.options.forceAutoScrollFallback||iI||oI||lI){QP(e,this.options,i,t);var a=II(i,!0);!GP||qP&&r===WP&&o===VP||(qP&&YP(),qP=setInterval(function(){var i=II(document.elementFromPoint(r,o),!0);i!==a&&(a=i,KP()),QP(e,n.options,i,t)},10),WP=r,VP=o)}else{if(!this.options.bubbleScroll||II(i,!0)===CI())return void KP();QP(e,this.options,II(i,!1),!1)}}},tI(e,{pluginName:"scroll",initializeByDefault:!0})}),TP.mount(eN,JP);const tN=TP,nN={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_BACKEND||"";function rN(t){let{user:n,darkMode:r,onLogout:o,onToggleDarkMode:i}=t;const{message:a}=gw.useApp(),[l,s]=(0,e.useState)([]),[c,u]=(0,e.useState)(!0),[d,f]=(0,e.useState)(null),[p,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),h=(0,e.useRef)(null),b=(0,e.useRef)(null),y=(0,e.useRef)(null),w=(0,e.useRef)(null);(0,e.useEffect)(()=>{Yj(localStorage.getItem("jwt")).then(e=>{var t;e.success?s(e.projects):f((null===(t=e.error)||void 0===t?void 0:t.message)||"Fehler beim Laden der Projekte")}).catch(()=>f("Serverfehler")).finally(()=>u(!1))},[]),(0,e.useEffect)(()=>{if(p&&h.current&&b.current){if(y.current){try{y.current.destroy()}catch(Ym){}y.current=null}if(w.current){try{w.current.destroy()}catch(Ym){}w.current=null}y.current=tN.create(h.current,{animation:150,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",onEnd:x}),w.current=tN.create(b.current,{animation:150,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",onEnd:x})}else{if(y.current){try{y.current.destroy()}catch(Ym){}y.current=null}if(w.current){try{w.current.destroy()}catch(Ym){}w.current=null}}return()=>{if(y.current){try{y.current.destroy()}catch(Ym){}y.current=null}if(w.current){try{w.current.destroy()}catch(Ym){}w.current=null}}},[p]);const x=async e=>{const t=[];if(h.current){const e=h.current.children;for(let n of e){const e=n.getAttribute("data-project-name");e&&t.push(e)}}if(b.current){const e=b.current.children;for(let n of e){const e=n.getAttribute("data-project-name");e&&t.push(e)}}await C(t)},C=async e=>{v(!0);try{const r=localStorage.getItem("jwt"),o=await fetch(`${nN}/api/projects/${encodeURIComponent(null===n||void 0===n?void 0:n.dir)}/project-order`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({order:e})}),i=await o.json();if(i.success){a.success("Reihenfolge gespeichert");const e=localStorage.getItem("jwt"),t=await Yj(e);t.success&&s(t.projects)}else{var t;a.error("Fehler beim Speichern: "+((null===(t=i.error)||void 0===t?void 0:t.message)||"Unbekannter Fehler"))}}catch(r){a.error("Netzwerkfehler beim Speichern")}finally{v(!1)}};if(c)return(0,ob.jsxs)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:r?"#141414":"#f5f5f5",zIndex:9999},children:[(0,ob.jsx)(Pw,{size:"large"}),(0,ob.jsx)("div",{style:{marginTop:16,color:r?"#f5f5f5":"#141414",fontSize:16},children:"Lade Projekte..."})]});if(d)return(0,ob.jsx)(Pm,{type:"error",message:d,showIcon:!0});const S=l.filter(e=>!e.isHE),$=l.filter(e=>e.isHE);return(0,ob.jsxs)(sx,{children:[(0,ob.jsx)("style",{children:`\n .sortable-ghost {\n opacity: 0.4;\n }\n .sortable-chosen {\n transform: scale(1.05);\n }\n .sortable-drag {\n transform: rotate(5deg);\n }\n .sortable-container .ant-col {\n cursor: ${p?"grab":"default"};\n }\n .sortable-container .ant-col:active {\n cursor: ${p?"grabbing":"default"};\n }\n `}),(0,ob.jsxs)(sx.Header,{style:{position:"sticky",top:0,zIndex:100,display:"flex",justifyContent:"space-between",alignItems:"center",background:r?"#1f1f1f":"#fff",padding:"0 32px"},children:[(0,ob.jsx)("div",{style:{fontWeight:700,fontSize:20,color:r?"#fff":void 0},children:"\xdcbersicht"}),(0,ob.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:16},children:[(0,ob.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ob.jsx)("span",{style:{color:r?"#fff":void 0,fontSize:14},children:"Sortieren"}),(0,ob.jsx)(xx,{checked:p,onChange:m,loading:g,size:"small"})]}),(0,ob.jsx)(fE,{user:n,onLogout:o,darkMode:r,onToggleDarkMode:i})]})]}),(0,ob.jsx)(sx.Content,{style:{padding:32},children:(0,ob.jsxs)(pE,{gutter:32,children:[(0,ob.jsxs)(mE,{xs:24,md:12,style:{marginBottom:32},children:[(0,ob.jsx)("h3",{children:"Cinema"}),(0,ob.jsxs)(pE,{ref:h,gutter:[16,4],style:{columnGap:8,marginLeft:0},className:p?"sortable-container":"",children:[0===S.length&&(0,ob.jsx)(mE,{children:(0,ob.jsx)(Pm,{type:"info",message:"Keine Cinema Projekte gefunden.",showIcon:!0})}),S.map((e,t)=>(0,ob.jsx)(mE,{"data-project-name":e.name,style:{padding:0,margin:0,width:120,maxWidth:120},children:e.poster&&(0,ob.jsx)(Uj,{to:`/${encodeURIComponent(e.name)}`,style:{display:"block",pointerEvents:p?"none":"auto"},children:(0,ob.jsx)(kO,{src:nN+e.poster,alt:"Poster",width:120,height:178,style:{objectFit:"cover",display:"block",width:120,height:178,borderRadius:4,cursor:p?"grab":"pointer"},preview:!1})})},e.name))]})]}),(0,ob.jsxs)(mE,{xs:24,md:12,style:{marginBottom:32},children:[(0,ob.jsx)("h3",{children:"Home Entertainment"}),(0,ob.jsxs)(pE,{ref:b,gutter:[16,4],style:{columnGap:8,marginLeft:0},className:p?"sortable-container":"",children:[0===$.length&&(0,ob.jsx)(mE,{children:(0,ob.jsx)(Pm,{type:"info",message:"Keine Home Entertainment Projekte gefunden.",showIcon:!0})}),$.map((e,t)=>(0,ob.jsx)(mE,{"data-project-name":e.name,style:{padding:0,margin:0,width:120,maxWidth:120},children:e.poster&&(0,ob.jsx)(Uj,{to:`/${encodeURIComponent(e.name)}`,style:{display:"block",pointerEvents:p?"none":"auto"},children:(0,ob.jsx)(kO,{src:nN+e.poster,alt:"Poster",width:120,height:178,style:{objectFit:"cover",display:"block",width:120,height:178,borderRadius:4,cursor:p?"grab":"pointer"},preview:!1})})},e.name))]})]})]})})]})}const oN={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"};var iN=function(t,n){return e.createElement(Be,s({},t,{ref:n,icon:oN}))};const aN=e.forwardRef(iN),lN={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_BACKEND||"";const sN=function(t){let{user:n,darkMode:r,onLogout:o,onToggleDarkMode:i,...a}=t;const{project:l,tab:s}=function(){let{matches:t}=e.useContext(vj),n=t[t.length-1];return n?n.params:{}}(),c=null===n||void 0===n?void 0:n.client,u=xj(),[d,f]=(0,e.useState)(null),p=[.15,.25,.5,.75,1],[m,g]=(0,e.useState)(()=>{const e=parseFloat(localStorage.getItem("adsZoom")||"1");return p.includes(e)?e:1});function v(e){g(t=>{const n=p.indexOf(t);let r=t;return"in"===e&&(r=p[Math.min(p.length-1,n+1)]),"out"===e&&(r=p[Math.max(0,n-1)]),localStorage.setItem("adsZoom",r),r})}(0,e.useEffect)(()=>{!async function(){if(c&&l)try{const e=localStorage.getItem("jwt"),t=await fetch(`${lN}/api/projects/${encodeURIComponent(c)}/${encodeURIComponent(l)}`,{headers:{Authorization:"Bearer "+e}}),n=await t.json();if(n&&n.success){const{logo:e}=n.data;e&&f(e)}}catch(Ym){f(null)}else f(null)}()},[c,l]);const[h,b]=(0,e.useState)(null),[y,w]=(0,e.useState)(s),[x,C]=(0,e.useState)(!0),S=e.useMemo(()=>h?$(h):[],[h,m]);function $(e){let t=[];return Array.isArray(e)?t=e.filter(e=>"category"===e.type):e&&Array.isArray(e.children)&&(t=e.children.filter(e=>"category"===e.type)),t.map(e=>({key:e.title,label:e.title,children:(0,ob.jsx)("div",{children:Array.isArray(e.children)&&e.children.filter(e=>"subcategory"===e.type).length>0?e.children.filter(e=>"subcategory"===e.type).map(e=>(0,ob.jsxs)("div",{style:{marginTop:24},children:[(0,ob.jsx)("h2",{style:{marginBottom:4},children:e.name}),Array.isArray(e.children)&&e.children.filter(e=>"ad"===e.type).length>0?e.children.filter(e=>"ad"===e.type).map(e=>(0,ob.jsxs)("div",{style:{marginLeft:0,marginBottom:16},children:[(0,ob.jsx)("div",{style:{color:"#555",fontSize:15,display:"flex",alignItems:"center",gap:8},children:e.name}),Array.isArray(e.files)&&e.files.length>0?(0,ob.jsx)("div",{style:{marginLeft:0,display:"flex",flexWrap:"wrap",gap:32},children:e.files.map(e=>(0,ob.jsx)(uN,{file:e,zoom:m,darkMode:r},e.name+"__"+m))}):(0,ob.jsx)("div",{style:{color:"#bbb",marginLeft:16,fontSize:13},children:"Keine Dateien vorhanden."})]},e.name)):(0,ob.jsx)("div",{style:{color:"#aaa",marginLeft:16,fontSize:14},children:"Keine Ads vorhanden."})]},e.name)):(0,ob.jsx)("div",{style:{color:"#888",marginTop:16},children:"Keine Subkategorien vorhanden."})})}))}return(0,e.useEffect)(()=>{if(!c||!l)return b(null),w(void 0),void C(!1);const e=`ads-overview-${c}-${l}`;!async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(C(!0),!t){const t=localStorage.getItem(e);if(t)try{const e=JSON.parse(t);if(e&&e.data&&e.timestamp&&Date.now()-e.timestamp<6e5){const t=e.data;b(t);const n=$(t);return n.length>0&&(s&&n.some(e=>e.key===s)?w(s):(w(n[0].key),s&&n.some(e=>e.key===s)||u(`/${encodeURIComponent(l)}/${encodeURIComponent(n[0].key)}`,{replace:!0}))),void C(!1)}}catch(Ym){}}try{const t=localStorage.getItem("jwt"),n=await fetch(`${lN}/api/projects/${encodeURIComponent(c)}/${encodeURIComponent(l)}/ads-overview`,{headers:{Authorization:"Bearer "+t}}),r=await n.json();localStorage.setItem(e,JSON.stringify({data:r,timestamp:Date.now()})),b(r);const o=$(r);o.length>0&&(s&&o.some(e=>e.key===s)?w(s):(w(o[0].key),s&&o.some(e=>e.key===s)||u(`/${encodeURIComponent(l)}/${encodeURIComponent(o[0].key)}`,{replace:!0})))}catch(Ym){b(null)}C(!1)}()},[n,c,l,s]),(0,ob.jsxs)("div",{children:[(0,ob.jsx)("style",{children:`\n .ads-details-tabs .ant-tabs-nav {\n background: ${r?"#1f1f1f":"#fff"};\n transition: background 0.2s;\n }\n `}),(0,ob.jsx)(Pw,{spinning:x,tip:"Lade Inhalte...",children:S.length>0?(0,ob.jsx)(uk,{className:"ads-details-tabs",items:S,activeKey:y,onChange:e=>{w(e),u(`/${encodeURIComponent(l)}/${encodeURIComponent(e)}`)},tabBarExtraContent:{left:(0,ob.jsxs)("span",{style:{display:"flex",alignItems:"center"},children:[(0,ob.jsx)(qh,{icon:(0,ob.jsx)(aN,{}),onClick:()=>u("/"),style:{marginRight:d?12:0}}),d&&(0,ob.jsx)("img",{src:d,alt:"Logo",style:{height:38,marginRight:32,objectFit:"contain"}})]}),right:(0,ob.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,ob.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ob.jsx)(qh,{size:"small",onClick:()=>v("out"),disabled:m<=p[0],children:"-"}),(0,ob.jsxs)("span",{style:{minWidth:48,textAlign:"center"},children:[Math.round(100*m),"%"]}),(0,ob.jsx)(qh,{size:"small",onClick:()=>v("in"),disabled:m>=p[p.length-1],children:"+"})]}),(0,ob.jsx)(fE,{user:n,onLogout:o,darkMode:r,onToggleDarkMode:i})]})}}):!x&&(0,ob.jsxs)("div",{style:{padding:32,textAlign:"center",color:"#888"},children:[(0,ob.jsx)("div",{children:"Keine Daten gefunden."}),(0,ob.jsx)(qh,{type:"primary",style:{marginTop:24},onClick:()=>u("/"),children:"Zur\xfcck zur \xdcbersicht"})]})})]})};function cN(e){if("number"!==typeof e||isNaN(e))return"";return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function uN(t){let{file:n,zoom:r=1,darkMode:o=!1}=t;const[i,a]=e.useState(!1),l=n.width||300,s=n.height||200,c={display:"inline-block",width:l*r,height:s*r,overflow:"hidden",margin:0,padding:0,position:"relative"},u={width:l,height:s,transform:`scale(${r})`,transformOrigin:"top left",display:"block"};return(0,ob.jsxs)("div",{style:{marginBottom:16,marginTop:16,position:"relative"},children:["html"===n.type?(0,ob.jsx)("div",{style:c,children:(0,ob.jsxs)("div",{style:u,children:[!i&&(0,ob.jsx)("div",{style:{position:"absolute",top:0,left:0,width:l,height:s,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:o?"#2c2c2c":"#ffffff",border:"1px solid "+(o?"#404040":"#d9d9d9"),borderRadius:4},children:(0,ob.jsx)(Pw,{size:"large"})}),(0,ob.jsx)("iframe",{src:n.url,title:n.name,width:l,height:s,style:{border:"none",opacity:i?1:0},onLoad:()=>a(!0)})]})}):"image"===n.type?(0,ob.jsx)("div",{style:c,children:(0,ob.jsxs)("div",{style:u,children:[!i&&(0,ob.jsx)("div",{style:{position:"absolute",top:0,left:0,width:l,height:s,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:o?"#2c2c2c":"#ffffff",border:"1px solid "+(o?"#404040":"#d9d9d9"),borderRadius:6},children:(0,ob.jsx)(Pw,{size:"large"})}),(0,ob.jsx)("img",{src:n.url,alt:n.name,width:l,height:s,style:{border:"none",opacity:i?1:0},onLoad:()=>a(!0),onError:()=>a(!0)})]})}):"video"===n.type?(0,ob.jsx)("div",{style:c,children:(0,ob.jsxs)("div",{style:u,children:[!i&&(0,ob.jsx)("div",{style:{position:"absolute",top:0,left:0,width:l,height:s,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:o?"#2c2c2c":"#ffffff",border:"1px solid "+(o?"#404040":"#d9d9d9"),borderRadius:6},children:(0,ob.jsx)(Pw,{size:"large"})}),(0,ob.jsx)("video",{src:n.url,width:l,height:s,controls:!0,style:{border:"none",opacity:i?1:0},onLoadedData:()=>a(!0),onError:()=>a(!0)})]})}):(0,ob.jsx)("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:n.name}),(n.width||n.height||n.size||n.duration)&&(0,ob.jsxs)("div",{style:{position:"absolute",bottom:-13,left:0,background:"rgba(31, 31, 31, 0.95)",color:"#f9f9f9",borderBottomLeftRadius:4,borderBottomRightRadius:4,fontSize:11,padding:"2px 6px",display:"inline-block",lineHeight:1.4,pointerEvents:"none",zIndex:10},children:[n.width&&n.height?`${n.width}\xd7${n.height}px`:"",n.width&&n.height&&(n.size||n.duration)?" \xb7 ":"",n.size?(d=n.size,"number"!==typeof d||isNaN(d)?"":d<1024?d+" B":d<1048576?(d/1024).toFixed(1)+" KB":d<1073741824?(d/1048576).toFixed(1)+" MB":(d/1073741824).toFixed(2)+" GB"):"",n.size&&n.duration?" \xb7 ":"","video"===n.type&&n.duration?`${cN(n.duration)} s`:""]})]});var d}const dN=function(){const[t,n]=(0,e.useState)(null),[r,o]=(0,e.useState)(!0),[i,a]=(0,e.useState)(null),[l,s]=(0,e.useState)(()=>"true"===localStorage.getItem("darkMode"));if((0,e.useEffect)(()=>{localStorage.getItem("jwt")&&!t?async function(){const e=localStorage.getItem("jwt");return(await fetch("/api/auth/user",{headers:{Authorization:`Bearer ${e}`}})).json()}().then(e=>{var t;e.success?n(e.user):(a((null===(t=e.error)||void 0===t?void 0:t.message)||"Fehler beim Laden der Userdaten"),localStorage.removeItem("jwt"))}).catch(()=>a("Serverfehler")).finally(()=>o(!1)):o(!1)},[t]),!t)return(0,ob.jsx)(np,{theme:{algorithm:l?mb.darkAlgorithm:mb.defaultAlgorithm},children:(0,ob.jsx)(gw,{children:r?(0,ob.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,ob.jsx)(Pw,{size:"large"})}):(0,ob.jsxs)(ob.Fragment,{children:[i&&(0,ob.jsx)(Pm,{type:"error",message:i,showIcon:!0,style:{margin:16}}),(0,ob.jsx)(ab,{onLogin:()=>n(null)})]})})});const c=()=>{Object.keys(localStorage).forEach(e=>{e.startsWith("ads-overview-")&&localStorage.removeItem(e)}),localStorage.removeItem("jwt"),n(null)},u=()=>{s(e=>(localStorage.setItem("darkMode",!e),!e))};return(0,ob.jsx)(np,{theme:{algorithm:l?mb.darkAlgorithm:mb.defaultAlgorithm},children:(0,ob.jsx)(gw,{children:(0,ob.jsx)(Vj,{children:(0,ob.jsx)(sx,{style:{minHeight:"100vh"},children:(0,ob.jsx)(sx.Content,{style:{padding:0},children:(0,ob.jsx)(Aj,{children:"admin"===t.role?(0,ob.jsx)(_j,{path:"/*",element:(0,ob.jsx)(Ik,{user:t,darkMode:l,onLogout:c,onToggleDarkMode:u})}):(0,ob.jsxs)(ob.Fragment,{children:[(0,ob.jsx)(_j,{path:"/",element:(0,ob.jsx)(rN,{user:t,darkMode:l,onLogout:c,onToggleDarkMode:u})}),(0,ob.jsx)(_j,{path:"/login",element:(0,ob.jsx)(ab,{onLogin:()=>n(null)})}),(0,ob.jsx)(_j,{path:":project/:tab?",element:(0,ob.jsx)(sN,{user:t,darkMode:l,onLogout:c,onToggleDarkMode:u})}),(0,ob.jsx)(_j,{path:"*",element:(0,ob.jsx)(zj,{to:"/",replace:!0})})]})})})})})})})};r.createRoot(document.getElementById("root")).render((0,ob.jsx)(e.StrictMode,{children:(0,ob.jsx)(dN,{})}))})()})();
//# sourceMappingURL=main.f30d7548.js.map