| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- import{a as e,n as t,r as n,t as r}from"./react-dom-stZKkA6x.js";var i=n(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),a=e(t());function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}var c=Symbol.for(`react.element`),l=Symbol.for(`react.transitional.element`),u=Symbol.for(`react.fragment`);function d(e){return e&&s(e)===`object`&&(e.$$typeof===c||e.$$typeof===l)&&e.type===u}var f=e(r()),p=e(i());function m(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return a.Children.forEach(e,function(e){e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(m(e)):d(e)&&e.props?n=n.concat(m(e.props.children,t)):n.push(e))}),n}var h={},g=[],_=function(e){g.push(e)};function v(e,t){}function y(e,t){}function b(){h={}}function x(e,t,n){!t&&!h[n]&&(e(!1,n),h[n]=!0)}function S(e,t){x(v,e,t)}function C(e,t){x(y,e,t)}S.preMessage=_,S.resetWarned=b,S.noteOnce=C;function w(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function T(e){var t=w(e,`string`);return s(t)==`symbol`?t:t+``}function E(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(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 O(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?D(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e){return e instanceof HTMLElement||e instanceof SVGElement}function A(e){return e&&s(e)===`object`&&k(e.nativeElement)?e.nativeElement:k(e)?e:null}function j(e){return A(e)||(e instanceof a.Component?f.default.findDOMNode?.call(f.default,e):null)}var M=n((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),N=n(((e,t)=>{t.exports=M()}));function P(e,t,n){var r=a.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var F=N(),I=Number(a.version.split(`.`)[0]),ee=function(e,t){typeof e==`function`?e(t):s(e)===`object`&&e&&`current`in e&&(e.current=t)},L=function(){var e=[...arguments],t=e.filter(Boolean);return t.length<=1?t[0]:function(t){e.forEach(function(e){ee(e,t)})}},te=function(){var e=[...arguments];return P(function(){return L.apply(void 0,e)},e,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},R=function(e){var t,n;if(!e)return!1;if(z(e)&&I>=19)return!0;var r=(0,F.isMemo)(e)?e.type.type:e.type;return!(typeof r==`function`&&!((t=r.prototype)!=null&&t.render)&&r.$$typeof!==F.ForwardRef||typeof e==`function`&&!((n=e.prototype)!=null&&n.render)&&e.$$typeof!==F.ForwardRef)};function z(e){return(0,a.isValidElement)(e)&&!d(e)}var B=function(e){return z(e)&&R(e)},V=function(e){if(e&&z(e)){var t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null},H=a.createContext(null);function U(e){var t=e.children,n=e.onBatchResize,r=a.useRef(0),i=a.useRef([]),o=a.useContext(H),s=a.useCallback(function(e,t,a){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){s===r.current&&(n?.(i.current),i.current=[])}),o?.(e,t,a)},[n,o]);return a.createElement(H.Provider,{value:s},t)}var W=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),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){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()})(),G=typeof window<`u`&&typeof document<`u`&&window.document===document,ne=(function(){return typeof global<`u`&&global.Math===Math?global:typeof self<`u`&&self.Math===Math?self:typeof window<`u`&&window.Math===Math?window:Function(`return this`)()})(),K=(function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(ne):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),q=2;function J(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){K(a)}function s(){var e=Date.now();if(n){if(e-i<q)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}var re=20,ie=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],ae=typeof MutationObserver<`u`,oe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=J(this.refresh.bind(this),re)}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(){!G||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),ae?(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(){!G||!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=t===void 0?``:t;ie.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),se=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),ce=(function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ne}),le=ye(0,0,0,0);function ue(e){return parseFloat(e)||0}function de(e){return[...arguments].slice(1).reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+ue(r)},0)}function fe(e){for(var t=[`top`,`right`,`bottom`,`left`],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e[`padding-`+a];n[a]=ue(o)}return n}function pe(e){var t=e.getBBox();return ye(0,0,t.width,t.height)}function me(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return le;var r=ce(e).getComputedStyle(e),i=fe(r),a=i.left+i.right,o=i.top+i.bottom,s=ue(r.width),c=ue(r.height);if(r.boxSizing===`border-box`&&(Math.round(s+a)!==t&&(s-=de(r,`left`,`right`)+a),Math.round(c+o)!==n&&(c-=de(r,`top`,`bottom`)+o)),!ge(e)){var l=Math.round(s+a)-t,u=Math.round(c+o)-n;Math.abs(l)!==1&&(s-=l),Math.abs(u)!==1&&(c-=u)}return ye(i.left,i.top,s,c)}var he=(function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof ce(e).SVGGraphicsElement}:function(e){return e instanceof ce(e).SVGElement&&typeof e.getBBox==`function`}})();function ge(e){return e===ce(e).document.documentElement}function _e(e){return G?he(e)?pe(e):me(e):le}function ve(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=Object.create((typeof DOMRectReadOnly<`u`?DOMRectReadOnly:Object).prototype);return se(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function ye(e,t,n,r){return{x:e,y:t,width:n,height:r}}var be=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ye(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_e(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}(),xe=function(){function e(e,t){var n=ve(t);se(this,{target:e,contentRect:n})}return e}(),Se=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new W,typeof e!=`function`)throw 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 TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof ce(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new be(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof ce(e).Element))throw 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 xe(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}(),Ce=typeof WeakMap<`u`?new WeakMap:new W,we=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new Se(t,oe.getInstance(),this);Ce.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){we.prototype[e]=function(){var t;return(t=Ce.get(this))[e].apply(t,arguments)}});var Te=(function(){return ne.ResizeObserver===void 0?we:ne.ResizeObserver})(),Ee=new Map;function De(e){e.forEach(function(e){var t,n=e.target;(t=Ee.get(n))==null||t.forEach(function(e){return e(n)})})}var Oe=new Te(De);function ke(e,t){Ee.has(e)||(Ee.set(e,new Set),Oe.observe(e)),Ee.get(e).add(t)}function Ae(e,t){Ee.has(e)&&(Ee.get(e).delete(t),Ee.get(e).size||(Oe.unobserve(e),Ee.delete(e)))}function je(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Me(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,T(r.key),r)}}function Ne(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}function Fe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}function Ie(e){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ie(e)}function Le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Le=function(){return!!e})()}function Y(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Re(e,t){if(t&&(s(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Y(e)}function ze(e){var t=Le();return function(){var n,r=Ie(e);if(t){var i=Ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Re(this,n)}}var Be=function(e){Fe(n,e);var t=ze(n);function n(){return je(this,n),t.apply(this,arguments)}return Ne(n,[{key:`render`,value:function(){return this.props.children}}]),n}(a.Component);function Ve(e,t){var n=e.children,r=e.disabled,i=a.useRef(null),o=a.useRef(null),c=a.useContext(H),l=typeof n==`function`,u=l?n(i):n,d=a.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&a.isValidElement(u)&&R(u),p=te(f?V(u):null,i),m=function(){return j(i.current)||(i.current&&s(i.current)===`object`?j(i.current?.nativeElement):null)||j(o.current)};a.useImperativeHandle(t,function(){return m()});var h=a.useRef(e);h.current=e;var g=a.useCallback(function(e){var t=h.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,o=i.height,s=e.offsetWidth,l=e.offsetHeight,u=Math.floor(a),f=Math.floor(o);if(d.current.width!==u||d.current.height!==f||d.current.offsetWidth!==s||d.current.offsetHeight!==l){var p={width:u,height:f,offsetWidth:s,offsetHeight:l};d.current=p;var m=s===Math.round(a)?a:s,g=l===Math.round(o)?o:l,_=O(O({},p),{},{offsetWidth:m,offsetHeight:g});c?.(_,e,r),n&&Promise.resolve().then(function(){n(_,e)})}},[]);return a.useEffect(function(){var e=m();return e&&!r&&ke(e,g),function(){return Ae(e,g)}},[i.current,r]),a.createElement(Be,{ref:o},f?a.cloneElement(u,{ref:p}):u)}var He=a.forwardRef(Ve),Ue=`rc-observer-key`;function We(e,t){var n=e.children;return(typeof n==`function`?[n]:m(n)).map(function(n,r){var i=n?.key||`${Ue}-${r}`;return a.createElement(He,o({},e,{key:i,ref:r===0?t:void 0}),n)})}var Ge=a.forwardRef(We);Ge.Collection=U;function Ke(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qe(e){if(Array.isArray(e))return Ke(e)}function Je(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ye(e,t){if(e){if(typeof e==`string`)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}function Xe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(e){return qe(e)||Je(e)||Ye(e)||Xe()}var Ze=function(e){return+setTimeout(e,16)},Qe=function(e){return clearTimeout(e)};typeof window<`u`&&`requestAnimationFrame`in window&&(Ze=function(e){return window.requestAnimationFrame(e)},Qe=function(e){return window.cancelAnimationFrame(e)});var $e=0,et=new Map;function tt(e){et.delete(e)}var nt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$e+=1;var n=$e;function r(t){if(t===0)tt(n),e();else{var i=Ze(function(){r(t-1)});et.set(n,i)}}return r(t),n};nt.cancel=function(e){var t=et.get(e);return tt(e),Qe(t)};function rt(e){if(Array.isArray(e))return e}function it(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function at(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z(e,t){return rt(e)||it(e,t)||Ye(e,t)||at()}function ot(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function st(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function ct(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 lt=`data-rc-order`,ut=`data-rc-priority`,dt=`rc-util-key`,ft=new Map;function pt(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mark;return e?e.startsWith(`data-`)?e:`data-${e}`:dt}function mt(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function ht(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function gt(e){return Array.from((ft.get(e)||e).children).filter(function(e){return e.tagName===`STYLE`})}function _t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!st())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=ht(r),s=o===`prependQueue`,c=document.createElement(`style`);c.setAttribute(lt,o),s&&a&&c.setAttribute(ut,`${a}`),n!=null&&n.nonce&&(c.nonce=n?.nonce),c.innerHTML=e;var l=mt(t),u=l.firstChild;if(r){if(s){var d=(t.styles||gt(l)).filter(function(e){return[`prepend`,`prependQueue`].includes(e.getAttribute(lt))?a>=Number(e.getAttribute(ut)||0):!1});if(d.length)return l.insertBefore(c,d[d.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function vt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mt(t);return(t.styles||gt(n)).find(function(n){return n.getAttribute(pt(t))===e})}function yt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vt(e,t);n&&mt(t).removeChild(n)}function bt(e,t){var n=ft.get(e);if(!n||!ct(document,n)){var r=_t(``,t),i=r.parentNode;ft.set(e,i),e.removeChild(r)}}function xt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=mt(n),i=gt(r),a=O(O({},n),{},{styles:i});bt(r,a);var o=vt(t,a);if(o){var s;return(s=a.csp)!=null&&s.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o}var c=_t(e,a);return c.setAttribute(pt(a),t),c}function St(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ct(e,t){if(e==null)return{};var n,r,i=St(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=r.has(e);if(S(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);var c=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var l=0;l<e.length;l++)if(!i(e[l],t[l],c))return!1;return!0}if(e&&t&&s(e)===`object`&&s(t)===`object`){var u=Object.keys(e);return u.length===Object.keys(t).length?u.every(function(n){return i(e[n],t[n],c)}):!1}return!1}return i(e,t)}var Tt=`%`;function Et(e){return e.join(Tt)}var Dt=function(){function e(t){je(this,e),E(this,`instanceId`,void 0),E(this,`cache`,new Map),E(this,`extracted`,new Set),this.instanceId=t}return Ne(e,[{key:`get`,value:function(e){return this.opGet(Et(e))}},{key:`opGet`,value:function(e){return this.cache.get(e)||null}},{key:`update`,value:function(e,t){return this.opUpdate(Et(e),t)}},{key:`opUpdate`,value:function(e,t){var n=t(this.cache.get(e));n===null?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Ot=`data-token-hash`,kt=`data-css-hash`,At=`__cssinjs_instance__`;function jt(){var e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){var t=document.body.querySelectorAll(`style[data-css-hash]`)||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[At]=t.__cssinjs_instance__||e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll(`style[${kt}]`)).forEach(function(t){var n=t.getAttribute(kt);if(r[n]){if(t.__cssinjs_instance__===e){var i;(i=t.parentNode)==null||i.removeChild(t)}}else r[n]=!0})}return new Dt(e)}var Mt=a.createContext({hashPriority:`low`,cache:jt(),defaultCache:!0});function Nt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Pt=function(){function e(){je(this,e),E(this,`cache`,void 0),E(this,`keys`,void 0),E(this,`cacheCallTimes`,void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ne(e,[{key:`size`,value:function(){return this.keys.length}},{key:`internalGet`,value:function(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return e.forEach(function(e){if(!r)r=void 0;else{var t;r=(t=r)==null||(t=t.map)==null?void 0:t.get(e)}}),(t=r)!=null&&t.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}},{key:`get`,value:function(e){return this.internalGet(e,!0)?.[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 i=Z(this.keys.reduce(function(e,t){var n=Z(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,i){if(i===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var o=a.get(e);o?o.map||=new Map:a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:`deleteByPath`,value:function(e,t){var n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];var r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}},{key:`delete`,value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!Nt(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();E(Pt,`MAX_CACHE_SIZE`,20),E(Pt,`MAX_CACHE_OFFSET`,5);var Ft=0,It=function(){function e(t){je(this,e),E(this,`derivatives`,void 0),E(this,`id`,void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ft,t.length===0&&t.length,Ft+=1}return Ne(e,[{key:`getDerivativeToken`,value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),Lt=new Pt;function Rt(e){var t=Array.isArray(e)?e:[e];return Lt.has(t)||Lt.set(t,new It(t)),Lt.get(t)}var zt=new WeakMap,Bt={};function Vt(e,t){for(var n=zt,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Bt)||n.set(Bt,e()),n.get(Bt)}var Ht=new WeakMap;function Ut(e){var t=Ht.get(e)||``;return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof It?t+=r.id:r&&s(r)===`object`?t+=Ut(r):t+=r}),t=ot(t),Ht.set(e,t)),t}function Wt(e,t){return ot(`${t}_${Ut(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var Gt=st();function Q(e){return typeof e==`number`?`${e}px`:e}function Kt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(arguments.length>4&&arguments[4]!==void 0&&arguments[4])return e;var i=O(O({},r),{},E(E({},Ot,t),kt,n));return`<style ${Object.keys(i).map(function(e){var t=i[e];return t?`${e}="${t}"`:null}).filter(function(e){return e}).join(` `)}>${e}</style>`}var qt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;return`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase()},Jt=function(e,t,n){return Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:``}{${Object.entries(e).map(function(e){var t=Z(e,2);return`${t[0]}:${t[1]};`}).join(``)}}`:``},Yt=function(e,t,n){var r={},i={};return Object.entries(e).forEach(function(e){var t,a,o=Z(e,2),s=o[0],c=o[1];if(n!=null&&(t=n.preserve)!=null&&t[s])i[s]=c;else if((typeof c==`string`||typeof c==`number`)&&!(n!=null&&(a=n.ignore)!=null&&a[s])){var l,u=qt(s,n?.prefix);r[u]=typeof c==`number`&&!(n!=null&&(l=n.unitless)!=null&&l[s])?`${c}px`:String(c),i[s]=`var(${u})`}}),[i,Jt(r,t,{scope:n?.scope})]},Xt=st()?a.useLayoutEffect:a.useEffect,Zt=function(e,t){var n=a.useRef(!0);Xt(function(){return e(n.current)},t),Xt(function(){return n.current=!1,function(){n.current=!0}},[])},Qt=function(e,t){Zt(function(t){if(!t)return e()},t)},$t=O({},a).useInsertionEffect,en=$t?function(e,t,n){return $t(function(){return e(),t()},n)}:function(e,t,n){a.useMemo(e,n),Zt(function(){return t(!0)},n)},tn=O({},a).useInsertionEffect===void 0?function(){return function(e){e()}}:function(e){var t=[],n=!1;function r(e){n||t.push(e)}return a.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),r};function nn(e,t,n,r,i){var o=a.useContext(Mt).cache,s=Et([e].concat(X(t))),c=tn([s]),l=function(e){o.opUpdate(s,function(t){var r=Z(t||[void 0,void 0],2),i=r[0],a=[i===void 0?0:i,r[1]||n()];return e?e(a):a})};a.useMemo(function(){l()},[s]);var u=o.opGet(s)[1];return en(function(){i?.(u)},function(e){return l(function(t){var n=Z(t,2),r=n[0],a=n[1];return e&&r===0&&i?.(u),[r+1,a]}),function(){o.opUpdate(s,function(t){var n=Z(t||[],2),i=n[0],a=i===void 0?0:i,l=n[1];return a-1==0?(c(function(){(e||!o.opGet(s))&&r?.(l,!1)}),null):[a-1,l]})}},[s]),u}var rn={},an=`css`,on=new Map;function sn(e){on.set(e,(on.get(e)||0)+1)}function cn(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Ot}="${e}"]`).forEach(function(e){if(e.__cssinjs_instance__===t){var n;(n=e.parentNode)==null||n.removeChild(e)}})}var ln=0;function un(e,t){on.set(e,(on.get(e)||0)-1);var n=new Set;on.forEach(function(e,t){e<=0&&n.add(t)}),on.size-n.size>ln&&n.forEach(function(e){cn(e,t),on.delete(e)})}var dn=function(e,t,n,r){var i=O(O({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i},fn=`token`;function pn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=(0,a.useContext)(Mt),i=r.cache.instanceId,o=r.container,s=n.salt,c=s===void 0?``:s,l=n.override,u=l===void 0?rn:l,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=Vt(function(){return Object.assign.apply(Object,[{}].concat(X(t)))},t),h=Ut(m),g=Ut(u),_=p?Ut(p):``;return nn(fn,[c,e.id,h,g,_],function(){var t=f?f(m,u,e):dn(m,u,e,d),n=O({},t),r=``;if(p){var i=Z(Yt(t,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);t=i[0],r=i[1]}var a=Wt(t,c);t._tokenKey=a,n._tokenKey=Wt(n,c);var o=p?.key??a;t._themeKey=o,sn(o);var s=`${an}-${ot(a)}`;return t._hashId=s,[t,s,n,r,p?.key||``]},function(e){un(e[0]._themeKey,i)},function(e){var t=Z(e,4),n=t[0],r=t[3];if(p&&r){var a=xt(r,ot(`css-variables-${n._themeKey}`),{mark:kt,prepend:`queue`,attachTo:o,priority:-999});a[At]=i,a.setAttribute(Ot,n._themeKey)}})}var mn=function(e,t,n){var r=Z(e,5),i=r[2],a=r[3],o=r[4],s=(n||{}).plain;if(!a)return null;var c=i._tokenKey,l=-999;return[l,c,Kt(a,o,c,{"data-rc-order":`prependQueue`,"data-rc-priority":`${l}`},s)]},hn={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},gn=`comm`,_n=`rule`,vn=`decl`,yn=`@import`,bn=`@namespace`,xn=`@keyframes`,Sn=`@layer`,Cn=Math.abs,wn=String.fromCharCode;function Tn(e){return e.trim()}function En(e,t,n){return e.replace(t,n)}function Dn(e,t){return e.charCodeAt(t)|0}function On(e,t,n){return e.slice(t,n)}function kn(e){return e.length}function An(e){return e.length}function jn(e,t){return t.push(e),e}var Mn=1,Nn=1,Pn=0,Fn=0,In=0,Ln=``;function Rn(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Mn,column:Nn,length:o,return:``,siblings:s}}function zn(){return In}function Bn(){return In=Fn>0?Dn(Ln,--Fn):0,Nn--,In===10&&(Nn=1,Mn--),In}function Vn(){return In=Fn<Pn?Dn(Ln,Fn++):0,Nn++,In===10&&(Nn=1,Mn++),In}function Hn(){return Dn(Ln,Fn)}function Un(){return Fn}function Wn(e,t){return On(Ln,e,t)}function Gn(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 Kn(e){return Mn=Nn=1,Pn=kn(Ln=e),Fn=0,[]}function qn(e){return Ln=``,e}function Jn(e){return Tn(Wn(Fn-1,Zn(e===91?e+2:e===40?e+1:e)))}function Yn(e){for(;(In=Hn())&&In<33;)Vn();return Gn(e)>2||Gn(In)>3?``:` `}function Xn(e,t){for(;--t&&Vn()&&!(In<48||In>102||In>57&&In<65||In>70&&In<97););return Wn(e,Un()+(t<6&&Hn()==32&&Vn()==32))}function Zn(e){for(;Vn();)switch(In){case e:return Fn;case 34:case 39:e!==34&&e!==39&&Zn(In);break;case 40:e===41&&Zn(e);break;case 92:Vn();break}return Fn}function Qn(e,t){for(;Vn()&&e+In!==57&&!(e+In===84&&Hn()===47););return`/*`+Wn(t,Fn-1)+`*`+wn(e===47?e:Vn())}function $n(e){for(;!Gn(Hn());)Vn();return Wn(e,Fn)}function er(e){return qn(tr(``,null,null,null,[``],e=Kn(e),0,[0],e))}function tr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Vn()){case 40:m!=108&&Dn(w,d-1)==58?(v++,w+=`(`):w+=Jn(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Jn(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=wn(y);break}w+=Yn(m);break;case 92:w+=Xn(Un()-1,7);continue;case 47:switch(Hn()){case 42:case 47:jn(rr(Qn(Vn(),Un()),t,n,c),c),(Gn(m||1)==5||Gn(Hn()||1)==5)&&kn(w)&&On(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=kn(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=wn(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=En(w,/\f/g,``)),p>0&&(kn(w)-d||h===0)&&jn(p>32?ir(w+`;`,r,n,d-1,c):ir(En(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(jn(C=nr(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)tr(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Dn(w,3)===110)break;case 108:if(Dn(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?tr(e,C,C,r&&jn(nr(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):tr(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+kn(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Bn()==125)continue}switch(w+=wn(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(kn(w)-1)*_,_=1;break;case 64:Hn()===45&&(w+=Jn(Vn())),f=Hn(),u=d=kn(b=w+=$n(Un())),y++;break;case 45:m===45&&kn(w)==2&&(h=0)}}return a}function nr(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=An(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=On(e,f+1,f=Cn(g=o[h])),b=e;v<m;++v)(b=Tn(g>0?p[v]+` `+y:En(y,/&\f/g,p[v])))&&(c[_++]=b);return Rn(e,t,n,i===0?_n:s,c,l,u,d)}function rr(e,t,n,r){return Rn(e,t,n,gn,wn(zn()),On(e,2,-2),0,r)}function ir(e,t,n,r,i){return Rn(e,t,n,vn,On(e,0,r),On(e,r+1,-1),r,i)}function ar(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function or(e,t,n,r){switch(e.type){case Sn:if(e.children.length)break;case yn:case bn:case vn:return e.return=e.return||e.value;case gn:return``;case xn:return e.return=e.value+`{`+ar(e.children,r)+`}`;case _n:if(!kn(e.value=e.props.join(`,`)))return``}return kn(n=ar(e.children,r))?e.return=e.value+`{`+n+`}`:``}var sr=`data-ant-cssinjs-cache-path`,cr=`_FILE_STYLE__`,lr,ur=!0;function dr(){if(!lr&&(lr={},st())){var e=document.createElement(`div`);e.className=sr,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);var t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(function(e){var t=Z(e.split(`:`),2),n=t[0],r=t[1];lr[n]=r});var n=document.querySelector(`style[${sr}]`);if(n){var r;ur=!1,(r=n.parentNode)==null||r.removeChild(n)}document.body.removeChild(e)}}function fr(e){return dr(),!!lr[e]}function pr(e){var t=lr[e],n=null;if(t&&st())if(ur)n=cr;else{var r=document.querySelector(`style[${kt}="${lr[e]}"]`);r?n=r.innerHTML:delete lr[e]}return[n,t]}var mr=`_skip_check_`,hr=`_multi_value_`;function gr(e){return ar(er(e),or).replace(/\{%%%\:[^;];}/g,`;`)}function _r(e){return s(e)===`object`&&e&&(mr in e||hr in e)}function vr(e,t,n){if(!t)return e;var r=`.${t}`,i=n===`low`?`:where(${r})`:r;return e.split(`,`).map(function(e){var t=e.trim().split(/\s+/),n=t[0]||``,r=n.match(/^\w+/)?.[0]||``;return n=`${r}${i}${n.slice(r.length)}`,[n].concat(X(t.slice(1))).join(` `)}).join(`,`)}var yr=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,c=n.hashId,l=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p=``,m={};function h(t){var r=t.getName(c);if(!m[r]){var i=Z(e(t.style,n,{root:!1,parentSelectors:o}),1)[0];m[r]=`@keyframes ${t.getName(c)}${i}`}}function g(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?g(e,t):e&&t.push(e)}),t}return g(Array.isArray(t)?t:[t]).forEach(function(t){var r=typeof t==`string`&&!i?{}:t;if(typeof r==`string`)p+=`${r}
- `;else if(r._keyframe)h(r);else{var l=f.reduce(function(e,t){var n;return(t==null||(n=t.visit)==null?void 0:n.call(t,e))||e},r);Object.keys(l).forEach(function(t){var r=l[t];if(s(r)===`object`&&r&&(t!==`animationName`||!r._keyframe)&&!_r(r)){var d=!1,f=t.trim(),g=!1;(i||a)&&c?f.startsWith(`@`)?d=!0:f=vr(f===`&`?``:t,c,u):i&&!c&&(f===`&`||f===``)&&(f=``,g=!0);var _=Z(e(r,n,{root:g,injectHash:d,parentSelectors:[].concat(X(o),[f])}),2),v=_[0],y=_[1];m=O(O({},m),y),p+=`${f}${v}`}else{function e(e,t){var n=e.replace(/[A-Z]/g,function(e){return`-${e.toLowerCase()}`}),r=t;!hn[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t!=null&&t._keyframe&&(h(t),r=t.getName(c)),p+=`${n}:${r};`}var b=r?.value??r;s(r)===`object`&&r!=null&&r[hr]&&Array.isArray(b)?b.forEach(function(n){e(t,n)}):e(t,b)}})}}),i?l&&(p&&=`@layer ${l.name} {${p}}`,l.dependencies&&(m[`@layer ${l.name}`]=l.dependencies.map(function(e){return`@layer ${e}, ${l.name};`}).join(`
- `))):p=`{${p}}`,[p,m]};function br(e,t){return ot(`${e.join(`%`)}${t}`)}function xr(){return null}var Sr=`style`;function Cr(e,t){var n=e.token,r=e.path,i=e.hashId,s=e.layer,c=e.nonce,l=e.clientOnly,u=e.order,d=u===void 0?0:u,f=a.useContext(Mt),p=f.autoClear;f.mock;var m=f.defaultCache,h=f.hashPriority,g=f.container,_=f.ssrInline,v=f.transformers,y=f.linters,b=f.cache,x=f.layer,S=n._tokenKey,C=[S];x&&C.push(`layer`),C.push.apply(C,X(r));var w=Gt,T=Z(nn(Sr,C,function(){var e=C.join(`|`);if(fr(e)){var n=Z(pr(e),2),a=n[0],o=n[1];if(a)return[a,S,o,{},l,d]}var c=Z(yr(t(),{hashId:i,hashPriority:h,layer:x?s:void 0,path:r.join(`-`),transformers:v,linters:y}),2),u=c[0],f=c[1],p=gr(u);return[p,S,br(C,p),f,l,d]},function(e,t){var n=Z(e,3)[2];(t||p)&&Gt&&yt(n,{mark:kt,attachTo:g})},function(e){var t=Z(e,4),n=t[0];t[1];var r=t[2],i=t[3];if(w&&n!==`_FILE_STYLE__`){var a={mark:kt,prepend:x?!1:`queue`,attachTo:g,priority:d},o=typeof c==`function`?c():c;o&&(a.csp={nonce:o});var s=[],l=[];Object.keys(i).forEach(function(e){e.startsWith(`@layer`)?s.push(e):l.push(e)}),s.forEach(function(e){xt(gr(i[e]),`_layer-${e}`,O(O({},a),{},{prepend:!0}))});var u=xt(n,r,a);u[At]=b.instanceId,u.setAttribute(Ot,S),l.forEach(function(e){xt(gr(i[e]),`_effect-${e}`,a)})}}),3),D=T[0],k=T[1],A=T[2];return function(e){var t=!_||w||!m?a.createElement(xr,null):a.createElement(`style`,o({},E(E({},Ot,k),kt,A),{dangerouslySetInnerHTML:{__html:D}}));return a.createElement(a.Fragment,null,t,e)}}var wr=function(e,t,n){var r=Z(e,6),i=r[0],a=r[1],o=r[2],s=r[3],c=r[4],l=r[5],u=(n||{}).plain;if(c)return null;var d=i,f={"data-rc-order":`prependQueue`,"data-rc-priority":`${l}`};return d=Kt(i,a,o,f,u),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=Kt(gr(s[e]),a,`_effect-${e}`,f,u);e.startsWith(`@layer`)?d=n+d:d+=n}}),[l,o,d]},Tr=`cssVar`,Er=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,o=e.ignore,s=e.token,c=e.scope,l=c===void 0?``:c,u=(0,a.useContext)(Mt),d=u.cache.instanceId,f=u.container,p=s._tokenKey,m=[].concat(X(e.path),[n,l,p]);return nn(Tr,m,function(){var e=Z(Yt(t(),n,{prefix:r,unitless:i,ignore:o,scope:l}),2),a=e[0],s=e[1];return[a,s,br(m,s),n]},function(e){var t=Z(e,3)[2];Gt&&yt(t,{mark:kt,attachTo:f})},function(e){var t=Z(e,3),r=t[1],i=t[2];if(r){var a=xt(r,i,{mark:kt,prepend:`queue`,attachTo:f,priority:-999});a[At]=d,a.setAttribute(Ot,n)}})};E(E(E({},Sr,wr),fn,mn),Tr,function(e,t,n){var r=Z(e,4),i=r[1],a=r[2],o=r[3],s=(n||{}).plain;if(!i)return null;var c=-999;return[c,a,Kt(i,o,a,{"data-rc-order":`prependQueue`,"data-rc-priority":`${c}`},s)]});var Dr=function(){function e(t,n){je(this,e),E(this,`name`,void 0),E(this,`style`,void 0),E(this,`_keyframe`,!0),this.name=t,this.style=n}return Ne(e,[{key:`getName`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return e?`${e}-${this.name}`:this.name}}]),e}();function Or(e){return e.notSplit=!0,e}Or([`borderTop`,`borderBottom`]),Or([`borderTop`]),Or([`borderBottom`]),Or([`borderLeft`,`borderRight`]),Or([`borderLeft`]),Or([`borderRight`]);var kr=(0,a.createContext)({});function Ar(e){return rt(e)||Je(e)||Ye(e)||at()}function jr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Mr(e,t,n,r){if(!t.length)return n;var i=Ar(t),a=i[0],o=i.slice(1),s=!e&&typeof a==`number`?[]:Array.isArray(e)?X(e):O({},e);return r&&n===void 0&&o.length===1?delete s[a][o[0]]:s[a]=Mr(s[a],o,n,r),s}function Nr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!jr(e,t.slice(0,-1))?e:Mr(e,t,n,r)}function Pr(e){return s(e)===`object`&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Fr(e){return Array.isArray(e)?[]:{}}var Ir=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function Lr(){var e=[...arguments],t=Fr(e[0]);return e.forEach(function(e){function n(r,i){var a=new Set(i),o=jr(e,r),c=Array.isArray(o);if(c||Pr(o)){if(!a.has(o)){a.add(o);var l=jr(t,r);c?t=Nr(t,r,[]):(!l||s(l)!==`object`)&&(t=Nr(t,r,Fr(o))),Ir(o).forEach(function(e){n([].concat(X(r),[e]),a)})}}else t=Nr(t,r,o)}n([])}),t}function Rr(){}var zr=a.createContext({}),Br=()=>{let e=()=>{};return e.deprecated=Rr,e},Vr=(0,a.createContext)(void 0),Hr={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`},Ur=O(O({},{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`}),Wr={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Gr={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`]},Ur),timePickerLocale:Object.assign({},Wr)},Kr=Gr,qr="${label} is not a valid ${type}",Jr={locale:`en`,Pagination:Hr,DatePicker:Gr,TimePicker:Wr,Calendar:Kr,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:qr,method:qr,array:qr,object:qr,number:qr,date:qr,boolean:qr,integer:qr,float:qr,regexp:qr,email:qr,url:qr,hex:qr},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`}},Yr=Object.assign({},Jr.Modal),Xr=[],Zr=()=>Xr.reduce((e,t)=>Object.assign(Object.assign({},e),t),Jr.Modal);function Qr(e){if(e){let t=Object.assign({},e);return Xr.push(t),Yr=Zr(),()=>{Xr=Xr.filter(e=>e!==t),Yr=Zr()}}Yr=Object.assign({},Jr.Modal)}function $r(){return Yr}var ei=(0,a.createContext)(void 0),ti=(e,t)=>{let n=a.useContext(ei);return[a.useMemo(()=>{let r=t||Jr[e],i=n?.[e]??{};return Object.assign(Object.assign({},typeof r==`function`?r():r),i||{})},[e,t,n]),a.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?Jr.locale:e},[n])]},ni=`internalMark`,ri=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;a.useEffect(()=>Qr(t?.Modal),[t]);let i=a.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return a.createElement(ei.Provider,{value:i},n)},ii={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`},ai=Object.assign(Object.assign({},ii),{colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
- 'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),oi=Math.round;function si(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var ci=(e,t,n)=>n===0?e:e/100;function li(e,t){let n=t||255;return e>n?n:e<0?0:e}var ui=class e{constructor(t){E(this,`isValid`,!0),E(this,`r`,0),E(this,`g`,0),E(this,`b`,0),E(this,`a`,1),E(this,`_h`,void 0),E(this,`_s`,void 0),E(this,`_l`,void 0),E(this,`_v`,void 0),E(this,`_max`,void 0),E(this,`_min`,void 0),E(this,`_brightness`,void 0);function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}/^#?[A-F\d]{3,8}$/i.test(e)?this.fromHexString(e):n(`rgb`)?this.fromRgbString(e):n(`hsl`)?this.fromHslString(e):(n(`hsv`)||n(`hsb`))&&this.fromHsvString(e)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=li(t.r),this.g=li(t.g),this.b=li(t.b),this.a=typeof t.a==`number`?li(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=oi(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(this._s===void 0){let e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:oi(i(`r`)),g:oi(i(`g`)),b:oi(i(`b`)),a:oi(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>oi((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=oi(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=oi(this.getSaturation()*100),n=oi(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=li(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=oi(n*255);this.r=e,this.g=e,this.b=e}let i=0,a=0,o=0,s=e/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=l):s>=1&&s<2?(i=l,a=c):s>=2&&s<3?(a=c,o=l):s>=3&&s<4?(a=l,o=c):s>=4&&s<5?(i=l,o=c):s>=5&&s<6&&(i=c,o=l);let u=n-c/2;this.r=oi((i+u)*255),this.g=oi((a+u)*255),this.b=oi((o+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a=typeof r==`number`?r:1;let i=oi(n*255);if(this.r=i,this.g=i,this.b=i,t<=0)return;let a=e/60,o=Math.floor(a),s=a-o,c=oi(n*(1-t)*255),l=oi(n*(1-t*s)*255),u=oi(n*(1-t*(1-s))*255);switch(o){case 0:this.g=u,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=l;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=l;break}}fromHsvString(e){let t=si(e,ci);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=si(e,ci);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=si(e,(e,t)=>t.includes(`%`)?oi(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},di=2,fi=.16,pi=.05,mi=.05,hi=.15,gi=5,_i=4,vi=[{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 yi(e,t,n){var r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-di*t:Math.round(e.h)+di*t:n?Math.round(e.h)+di*t:Math.round(e.h)-di*t;return r<0?r+=360:r>=360&&(r-=360),r}function bi(e,t,n){if(e.h===0&&e.s===0)return e.s;var r=n?e.s-fi*t:t===_i?e.s+fi:e.s+pi*t;return r>1&&(r=1),n&&t===gi&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function xi(e,t,n){var r=n?e.v+mi*t:e.v-hi*t;return r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Si(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new ui(e),i=r.toHsv(),a=gi;a>0;--a){var o=new ui({h:yi(i,a,!0),s:bi(i,a,!0),v:xi(i,a,!0)});n.push(o)}n.push(r);for(var s=1;s<=_i;s+=1){var c=new ui({h:yi(i,s),s:bi(i,s),v:xi(i,s)});n.push(c)}return t.theme===`dark`?vi.map(function(e){var r=e.index,i=e.amount;return new ui(t.backgroundColor||`#141414`).mix(n[r],i).toHexString()}):n.map(function(e){return e.toHexString()})}var Ci={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`},wi=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];wi.primary=wi[5];var Ti=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Ti.primary=Ti[5];var Ei=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];Ei.primary=Ei[5];var Di=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];Di.primary=Di[5];var Oi=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Oi.primary=Oi[5];var ki=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];ki.primary=ki[5];var Ai=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Ai.primary=Ai[5];var ji=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];ji.primary=ji[5];var Mi=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];Mi.primary=Mi[5];var Ni=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];Ni.primary=Ni[5];var Pi=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];Pi.primary=Pi[5];var Fi=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];Fi.primary=Fi[5];var Ii=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];Ii.primary=Ii[5];var Li={red:wi,volcano:Ti,orange:Ei,gold:Di,yellow:Oi,lime:ki,green:Ai,cyan:ji,blue:Mi,geekblue:Ni,purple:Pi,magenta:Fi,grey:Ii},Ri=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];Ri.primary=Ri[5];var zi=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];zi.primary=zi[5];var Bi=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];Bi.primary=Bi[5];var Vi=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];Vi.primary=Vi[5];var Hi=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];Hi.primary=Hi[5];var Ui=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];Ui.primary=Ui[5];var Wi=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];Wi.primary=Wi[5];var Gi=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Gi.primary=Gi[5];var Ki=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];Ki.primary=Ki[5];var qi=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];qi.primary=qi[5];var Ji=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Ji.primary=Ji[5];var Yi=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];Yi.primary=Yi[5];var Xi=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];Xi.primary=Xi[5];function Zi(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new ui(p[1]).mix(new ui(p[3]),50).toHexString();return Object.assign(Object.assign({},h),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new ui(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`})}var Qi=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function $i(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Qi(r))}var ea=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ta(e){return(e+8)/e}function na(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:ta(e)}))}var ra=e=>{let t=na(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function ia(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var aa=(e,t)=>new ui(e).setA(t).toRgbString(),oa=(e,t)=>new ui(e).darken(t).toHexString(),sa=e=>{let t=Si(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]}},ca=(e,t)=>{let n=e||`#fff`,r=t||`#000`;return{colorBgBase:n,colorTextBase:r,colorText:aa(r,.88),colorTextSecondary:aa(r,.65),colorTextTertiary:aa(r,.45),colorTextQuaternary:aa(r,.25),colorFill:aa(r,.15),colorFillSecondary:aa(r,.06),colorFillTertiary:aa(r,.04),colorFillQuaternary:aa(r,.02),colorBgSolid:aa(r,1),colorBgSolidHover:aa(r,.75),colorBgSolidActive:aa(r,.95),colorBgLayout:oa(n,4),colorBgContainer:oa(n,0),colorBgElevated:oa(n,0),colorBgSpotlight:aa(r,.85),colorBgBlur:`transparent`,colorBorder:oa(n,15),colorBorderSecondary:oa(n,6)}};function la(e){Ci.pink=Ci.magenta,Li.pink=Li.magenta;let t=Object.keys(ii).map(t=>{let n=e[t]===Ci[t]?Li[t]:Si(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e=Object.assign(Object.assign({},e),t),e),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Zi(e,{generateColorPalettes:sa,generateNeutralColorPalettes:ca})),ra(e.fontSize)),ia(e)),ea(e)),$i(e))}var ua=Rt(la),da={token:ai,override:{override:ai},hashed:!0},fa=a.createContext(da),pa=`anticon`,ma=[`outlined`,`borderless`,`filled`,`underlined`],ha=a.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:pa}),{Consumer:ga}=ha,_a={};function va(e){let t=a.useContext(ha),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:_a,styles:_a},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}var ya=`-ant-${Date.now()}-${Math.random()}`;function ba(e,t){let n={},r=(e,t)=>{let n=e.clone();return n=t?.(n)||n,n.toRgbString()},i=(e,t)=>{let i=new ui(e),a=Si(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=i.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){i(t.primaryColor,`primary`);let e=new ui(t.primaryColor),a=Si(e.toRgbString());a.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(e.a*.12));let o=new ui(a[0]);n[`primary-color-active-deprecated-f-30`]=r(o,e=>e.setA(e.a*.3)),n[`primary-color-active-deprecated-d-02`]=r(o,e=>e.darken(2))}return t.successColor&&i(t.successColor,`success`),t.warningColor&&i(t.warningColor,`warning`),t.errorColor&&i(t.errorColor,`error`),t.infoColor&&i(t.infoColor,`info`),`
- :root {
- ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join(`
- `)}
- }
- `.trim()}function xa(e,t){let n=ba(e,t);st()&&xt(n,`${ya}-dynamic-theme`)}var Sa=a.createContext(!1),Ca=({children:e,disabled:t})=>{let n=a.useContext(Sa);return a.createElement(Sa.Provider,{value:t??n},e)},wa=a.createContext(void 0),Ta=({children:e,size:t})=>{let n=a.useContext(wa);return a.createElement(wa.Provider,{value:t||n},e)};function Ea(){return{componentDisabled:(0,a.useContext)(Sa),componentSize:(0,a.useContext)(wa)}}var Da=Ne(function e(){je(this,e)}),Oa=`CALC_UNIT`,ka=new RegExp(Oa,`g`);function Aa(e){return typeof e==`number`?`${e}${Oa}`:e}var ja=function(e){Fe(n,e);var t=ze(n);function n(e,r){var i;je(this,n),i=t.call(this),E(Y(i),`result`,``),E(Y(i),`unitlessCssVar`,void 0),E(Y(i),`lowPriority`,void 0);var a=s(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=Aa(e):a===`string`&&(i.result=e),i}return Ne(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${Aa(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${Aa(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(ka,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Da),Ma=function(e){Fe(n,e);var t=ze(n);function n(e){var r;return je(this,n),r=t.call(this),E(Y(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return Ne(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(Da),Na=function(e,t){var n=e===`css`?ja:Ma;return function(e){return new n(e,t)}},Pa=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function Fa(e){var t=a.useRef();return t.current=e,a.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[])}function Ia(e){var t=a.useRef(!1),n=Z(a.useState(e),2),r=n[0],i=n[1];a.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(e,n){n&&t.current||i(e)}return[r,o]}function La(e){return e!==void 0}function Ra(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=Z(Ia(function(){return La(i)?i:La(r)?typeof r==`function`?r():r:typeof e==`function`?e():e}),2),c=s[0],l=s[1],u=i===void 0?c:i,d=o?o(u):u,f=Fa(a),p=Z(Ia([u]),2),m=p[0],h=p[1];return Qt(function(){var e=m[0];c!==e&&f(c,e)},[m]),Qt(function(){La(i)||l(i)},[i]),[d,Fa(function(e,t){l(e,t),h([u],t)})]}function za(e,t,n,r){var i=O({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=Z(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=O(O({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Ba=typeof CSSINJS_STATISTIC<`u`,Va=!0;function Ha(){var e=[...arguments];if(!Ba)return Object.assign.apply(Object,[{}].concat(e));Va=!1;var t={};return e.forEach(function(e){s(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),Va=!0,t}var Ua={};function Wa(){}var Ga=function(e){var t,n=e,r=Wa;return Ba&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(Va){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){Ua[e]={global:Array.from(t),component:O(O({},Ua[e]?.component),n)}}),{token:n,keys:t,flush:r}};function Ka(e,t,n){return typeof n==`function`?n(Ha(t,t[e]??{})):n??{}}function qa(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return Q(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return Q(e)}).join(`,`)})`}}}var Ja=1e3*60*10,Ya=new(function(){function e(){je(this,e),E(this,`map`,new Map),E(this,`objectIDMap`,new WeakMap),E(this,`nextID`,0),E(this,`lastAccessBeat`,new Map),E(this,`accessBeat`,0)}return Ne(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&&s(e)===`object`?`obj_${t.getObjectID(e)}`:`${s(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>Ja&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function Xa(e,t){return a.useMemo(function(){var n=Ya.get(t);if(n)return n;var r=e();return Ya.set(t,r),r},t)}var Za=function(){return{}};function Qa(e){var t=e.useCSP,n=t===void 0?Za:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,c=e.getCommonStyle,l=e.getCompUnitless;function u(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},s=O(O({},typeof l==`function`?l(e):{}),{},E({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){s[a(e)]=o[e]});var c=O(O({},r),{},{unitless:s,prefixToken:a}),u=f(e,t,n,c),p=d(i,n,c);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=Z(u(e,t),2)[1],r=Z(p(t),2);return[r[0],n,r[1]]}}function d(e,t,n){var i=n.unitless,o=n.injectStyle,s=o===void 0?!0:o,c=n.prefixToken,l=n.ignore,u=function(a){var o=a.rootCls,s=a.cssVar,u=s===void 0?{}:s,d=r().realToken;return Er({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:l,token:d,scope:o},function(){var r=Ka(e,d,t),i=za(e,d,r,{deprecatedTokens:n?.deprecatedTokens});return Object.keys(r).forEach(function(e){i[c(e)]=i[e],delete i[e]}),i}),null};return function(t){var n=r().cssVar;return[function(r){return s&&n?a.createElement(a.Fragment,null,a.createElement(u,{rootCls:t,cssVar:n,component:e}),r):r},n?.key]}}function f(t,a,l){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},d=Array.isArray(t)?t:[t,t],f=Z(d,1)[0],p=d.join(`-`),m=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,d=r(),h=d.theme,g=d.realToken,_=d.hashId,v=d.token,y=d.cssVar,b=i(),x=b.rootPrefixCls,S=b.iconPrefixCls,C=n(),w=y?`css`:`js`,T=Xa(function(){var e=new Set;return y&&Object.keys(u.unitless||{}).forEach(function(t){e.add(qt(t,y.prefix)),e.add(qt(t,Pa(f,y.prefix)))}),Na(w,e)},[w,f,y?.prefix]),E=qa(w),D=E.max,k=E.min,A={theme:h,token:v,hashId:_,nonce:function(){return C.nonce},clientOnly:u.clientOnly,layer:m,order:u.order||-999};return typeof o==`function`&&Cr(O(O({},A),{},{clientOnly:!1,path:[`Shared`,x]}),function(){return o(v,{prefix:{rootPrefixCls:x,iconPrefixCls:S},csp:C})}),[Cr(O(O({},A),{},{path:[p,e,S]}),function(){if(u.injectStyle===!1)return[];var n=Ga(v),r=n.token,i=n.flush,o=Ka(f,g,l),d=`.${e}`,p=za(f,g,o,{deprecatedTokens:u.deprecatedTokens});y&&o&&s(o)===`object`&&Object.keys(o).forEach(function(e){o[e]=`var(${qt(e,Pa(f,y.prefix))})`});var m=Ha(r,{componentCls:d,prefixCls:e,iconCls:`.${S}`,antCls:`.${x}`,calc:T,max:D,min:k},y?o:p),h=a(m,{hashId:_,prefixCls:e,rootPrefixCls:x,iconPrefixCls:S});i(f,p);var b=typeof c==`function`?c(m,e,t,u.resetFont):null;return[u.resetStyle===!1?null:b,h]}),_]}}function p(e,t,n){var r=f(e,t,n,O({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:f}}var $a=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`],eo=`5.29.3`;function to(e){return e>=0&&e<=255}function no(e,t){let{r:n,g:r,b:i,a}=new ui(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new ui(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(to(t)&&to(a)&&to(l))return new ui({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new ui({r:n,g:r,b:i,a:1}).toRgbString()}var ro=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function io(e){let{override:t}=e,n=ro(e,[`override`]),r=Object.assign({},t);Object.keys(ai).forEach(e=>{delete r[e]});let i=Object.assign(Object.assign({},n),r),a=1200,o=1600;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:no(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:no(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:no(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:no(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowSecondary:`
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowTertiary:`
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
- `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:a-1,screenXL:a,screenXLMin:a,screenXLMax:o-1,screenXXL:o,screenXXLMin:o,boxShadowPopoverArrow:`2px 2px 5px rgba(0, 0, 0, 0.05)`,boxShadowCard:`
- 0 1px 2px -2px ${new ui(`rgba(0, 0, 0, 0.16)`).toRgbString()},
- 0 3px 6px 0 ${new ui(`rgba(0, 0, 0, 0.12)`).toRgbString()},
- 0 5px 12px 4px ${new ui(`rgba(0, 0, 0, 0.09)`).toRgbString()}
- `,boxShadowDrawerRight:`
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowDrawerLeft:`
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowDrawerUp:`
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
- `,boxShadowDrawerDown:`
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
- `,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 ao=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},oo={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},so={motionBase:!0,motionUnit:!0},co={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},lo=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i}=t,a=ao(t,[`override`]),o=Object.assign(Object.assign({},r),{override:i});return o=io(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n}=t,r=ao(t,[`theme`]),i=r;n&&(i=lo(Object.assign(Object.assign({},o),r),{override:r},n)),o[e]=i}),o};function uo(){let{token:e,hashed:t,theme:n,override:r,cssVar:i}=a.useContext(fa),o=`${eo}-${t||``}`,s=n||ua,[c,l,u]=pn(s,[ai,e],{salt:o,override:r,getComputedToken:lo,formatToken:io,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:oo,ignore:so,preserve:co}});return[s,u,t?l:``,c,i]}var fo={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},po=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),mo=()=>({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`}}),ho=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),go=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`}}}),_o=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},vo=(e,t)=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:`outline-offset 0s, outline 0s`}),yo=(e,t)=>({"&:focus-visible":vo(e,t)}),bo=e=>({[`.${e}`]:Object.assign(Object.assign({},mo()),{[`.${e} .${e}-icon`]:{display:`block`}})}),xo=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`},yo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:So,genComponentStyleHook:Co,genSubStyleComponent:wo}=Qa({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,a.useContext)(ha);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i]=uo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{let{csp:e}=(0,a.useContext)(ha);return e??{}},getResetStyles:(e,t)=>{let n=go(e);return[n,{"&":n},bo(t?.prefix.iconPrefixCls??pa)]},getCommonStyle:_o,getCompUnitless:()=>oo});function To(e,t){return $a.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var Eo=(e,t)=>{let[n,r]=uo();return Cr({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>bo(e))},{useId:Do}=Object.assign({},a),Oo=Do===void 0?()=>``:Do;function ko(e,t,n){Br(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?Object.assign(Object.assign({},da),{hashed:t?.hashed??da.hashed,cssVar:t?.cssVar}):t,a=Oo();return P(()=>{if(!e)return t;let o=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])});let s=`css-var-${a.replace(/:/g,``)}`,c=(r.cssVar??i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n?.prefixCls},typeof i.cssVar==`object`?i.cssVar:{}),typeof r.cssVar==`object`?r.cssVar:{}),{key:typeof r.cssVar==`object`&&r.cssVar?.key||s});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:o,cssVar:c})},[r,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!wt(e,r,!0)}))}var Ao=[`children`],jo=a.createContext({});function Mo(e){var t=e.children,n=Ct(e,Ao);return a.createElement(jo.Provider,{value:n},t)}var No=function(e){Fe(n,e);var t=ze(n);function n(){return je(this,n),t.apply(this,arguments)}return Ne(n,[{key:`render`,value:function(){return this.props.children}}]),n}(a.Component);function Po(e){var t=Z(a.useReducer(function(e){return e+1},0),2)[1],n=a.useRef(e);return[Fa(function(){return n.current}),Fa(function(e){n.current=typeof e==`function`?e(n.current):e,t()})]}var Fo=`none`,Io=`appear`,Lo=`enter`,Ro=`leave`,zo=`none`,Bo=`prepare`,Vo=`start`,Ho=`active`,Uo=`prepared`;function Wo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Go(e,t){var n={animationend:Wo(`Animation`,`AnimationEnd`),transitionend:Wo(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var Ko=Go(st(),typeof window<`u`?window:{}),qo={};st()&&(qo=document.createElement(`div`).style);var Jo={};function Yo(e){if(Jo[e])return Jo[e];var t=Ko[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in qo)return Jo[e]=t[a],Jo[e]}return``}var Xo=Yo(`animationend`),Zo=Yo(`transitionend`),Qo=!!(Xo&&Zo),$o=Xo||`animationend`,es=Zo||`transitionend`;function ts(e,t){return e?s(e)===`object`?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:`${e}-${t}`:null}var ns=(function(e){var t=(0,a.useRef)();function n(t){t&&(t.removeEventListener(es,e),t.removeEventListener($o,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(es,e),r.addEventListener($o,e),t.current=r)}return a.useEffect(function(){return function(){n(t.current)}},[]),[r,n]}),rs=st()?a.useLayoutEffect:a.useEffect,is=(function(){var e=a.useRef(null);function t(){nt.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=nt(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return a.useEffect(function(){return function(){t()}},[]),[n,t]}),as=[Bo,Vo,Ho,`end`],os=[Bo,Uo];function ss(e){return e===`active`||e===`end`}var cs=(function(e,t,n){var r=Z(Ia(zo),2),i=r[0],o=r[1],s=Z(is(),2),c=s[0],l=s[1];function u(){o(Bo,!0)}var d=t?os:as;return rs(function(){if(i!==`none`&&i!==`end`){var e=d[d.indexOf(i)+1],t=n(i);t===!1?o(e,!0):e&&c(function(n){function r(){n.isCanceled()||o(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,i]),a.useEffect(function(){return function(){l()}},[]),[u,i]});function ls(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,s=r.motionAppear,c=s===void 0?!0:s,l=r.motionLeave,u=l===void 0?!0:l,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,_=r.onEnterStart,v=r.onLeaveStart,y=r.onAppearActive,b=r.onEnterActive,x=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,w=r.onLeaveEnd,T=r.onVisibleChanged,D=Z(Ia(),2),k=D[0],A=D[1],j=Z(Po(Fo),2),M=j[0],N=j[1],P=Z(Ia(null),2),F=P[0],I=P[1],ee=M(),L=(0,a.useRef)(!1),te=(0,a.useRef)(null);function R(){return n()}var z=(0,a.useRef)(!1);function B(){N(Fo),I(null,!0)}var V=Fa(function(e){var t=M();if(t!==`none`){var n=R();if(!(e&&!e.deadline&&e.target!==n)){var r=z.current,i;t===`appear`&&r?i=S?.(n,e):t===`enter`&&r?i=C?.(n,e):t===`leave`&&r&&(i=w?.(n,e)),r&&i!==!1&&B()}}}),H=Z(ns(V),1)[0],U=function(e){switch(e){case Io:return E(E(E({},Bo,p),Vo,g),Ho,y);case Lo:return E(E(E({},Bo,m),Vo,_),Ho,b);case Ro:return E(E(E({},Bo,h),Vo,v),Ho,x);default:return{}}},W=a.useMemo(function(){return U(ee)},[ee]),G=Z(cs(ee,!e,function(e){if(e===`prepare`){var t=W[Bo];return t?t(R()):!1}return K in W&&I(W[K]?.call(W,R(),null)||null),K===`active`&&ee!==`none`&&(H(R()),d>0&&(clearTimeout(te.current),te.current=setTimeout(function(){V({deadline:!0})},d))),K===`prepared`&&B(),!0}),2),ne=G[0],K=G[1];z.current=ss(K);var q=(0,a.useRef)(null);rs(function(){if(!(L.current&&q.current===t)){A(t);var n=L.current;L.current=!0;var r;!n&&t&&c&&(r=Io),n&&t&&o&&(r=Lo),(n&&!t&&u||!n&&f&&!t&&u)&&(r=Ro);var i=U(r);r&&(e||i.prepare)?(N(r),ne()):N(Fo),q.current=t}},[t]),(0,a.useEffect)(function(){(ee===`appear`&&!c||ee===`enter`&&!o||ee===`leave`&&!u)&&N(Fo)},[c,o,u]),(0,a.useEffect)(function(){return function(){L.current=!1,clearTimeout(te.current)}},[]);var J=a.useRef(!1);(0,a.useEffect)(function(){k&&(J.current=!0),k!==void 0&&ee===`none`&&((J.current||k)&&T?.(k),J.current=!0)},[k,ee]);var re=F;return W.prepare&&K===`start`&&(re=O({transition:`none`},re)),[ee,K,re,k??t]}function us(e){var t=e;s(e)===`object`&&(t=e.transitionSupport);function n(e,n){return!!(e.motionName&&t&&n!==!1)}var r=a.forwardRef(function(e,t){var r=e.visible,i=r===void 0?!0:r,o=e.removeOnLeave,s=o===void 0?!0:o,c=e.forceRender,l=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,m=a.useContext(jo).motion,h=n(e,m),g=(0,a.useRef)(),_=(0,a.useRef)();function v(){try{return g.current instanceof HTMLElement?g.current:j(_.current)}catch{return null}}var y=Z(ls(h,i,v,e),4),b=y[0],x=y[1],S=y[2],C=y[3],w=a.useRef(C);C&&(w.current=!0);var T=a.useCallback(function(e){g.current=e,ee(t,e)},[t]),D,k=O(O({},f),{},{visible:i});if(!l)D=null;else if(b===`none`)D=C?l(O({},k),T):!s&&w.current&&d?l(O(O({},k),{},{className:d}),T):c||!s&&!d?l(O(O({},k),{},{style:{display:`none`}}),T):null;else{var A;x===`prepare`?A=`prepare`:ss(x)?A=`active`:x===`start`&&(A=`start`);var M=ts(u,`${b}-${A}`);D=l(O(O({},k),{},{className:(0,p.default)(ts(u,b),E(E({},M,M&&A),u,typeof u==`string`)),style:S}),T)}return a.isValidElement(D)&&R(D)&&(V(D)||(D=a.cloneElement(D,{ref:T}))),a.createElement(No,{ref:_},D)});return r.displayName=`CSSMotion`,r}var ds=us(Qo),fs=`keep`,ps=`remove`,ms=`removed`;function hs(e){var t=e&&s(e)===`object`&&`key`in e?e:{key:e};return O(O({},t),{},{key:String(t.key)})}function gs(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(hs)}function _s(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=gs(e),o=gs(t);a.forEach(function(e){for(var t=!1,a=r;a<i;a+=1){var s=o[a];if(s.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(function(e){return O(O({},e),{},{status:`add`})})),r=a),n.push(O(O({},s),{},{status:fs})),r+=1,t=!0;break}}t||n.push(O(O({},e),{},{status:ps}))}),r<i&&(n=n.concat(o.slice(r).map(function(e){return O(O({},e),{},{status:`add`})})));var s={};return n.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==`remove`}),n.forEach(function(t){t.key===e&&(t.status=fs)})}),n}var vs=[`component`,`children`,`onVisibleChanged`,`onAllRemoved`],ys=[`status`],bs=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function xs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ds,n=function(e){Fe(r,e);var n=ze(r);function r(){var e;je(this,r);var t=[...arguments];return e=n.call.apply(n,[this].concat(t)),E(Y(e),`state`,{keyEntities:[]}),E(Y(e),`removeKey`,function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key===t?O(O({},e),{},{status:ms}):e})}},function(){e.state.keyEntities.filter(function(e){return e.status!==`removed`}).length===0&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Ne(r,[{key:`render`,value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,s=r.children,c=r.onVisibleChanged;r.onAllRemoved;var l=Ct(r,vs),u=i||a.Fragment,d={};return bs.forEach(function(e){d[e]=l[e],delete l[e]}),delete l.keys,a.createElement(u,l,n.map(function(n,r){var i=n.status,l=Ct(n,ys),u=i===`add`||i===`keep`;return a.createElement(t,o({},d,{key:l.key,visible:u,eventProps:l,onVisibleChanged:function(t){c?.(t,{key:l.key}),t||e.removeKey(l.key)}}),function(e,t){return s(O(O({},e),{},{index:r}),t)})}))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.keys,r=t.keyEntities;return{keyEntities:_s(r,gs(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!(t&&t.status===`removed`&&e.status===`remove`)})}}}]),r}(a.Component);return E(n,`defaultProps`,{component:`div`}),n}var Ss=xs(Qo),Cs=ds,ws=a.createContext(!0);function Ts(e){let t=a.useContext(ws),{children:n}=e,[,r]=uo(),{motion:i}=r,o=a.useRef(!1);return o.current||=t!==i,o.current?a.createElement(ws.Provider,{value:i},a.createElement(Mo,{motion:i},n)):n}var Es=()=>null,Ds=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Os=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],ks,As,js,Ms;function Ns(){return ks||`ant`}function Ps(){return As||`anticon`}function Fs(e){return Object.keys(e).some(e=>e.endsWith(`Color`))}var Is=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(ks=t),n!==void 0&&(As=n),`holderRender`in e&&(Ms=i),r&&(Fs(r)?xa(Ns(),r):js=r)},Ls=()=>({getPrefixCls:(e,t)=>t||(e?`${Ns()}-${e}`:Ns()),getIconPrefixCls:Ps,getRootPrefixCls:()=>ks||Ns(),getTheme:()=>js,holderRender:Ms}),Rs=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:s,locale:c,componentSize:l,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:_,parentContext:v,iconPrefixCls:y,theme:b,componentDisabled:x,segmented:S,statistic:C,spin:w,calendar:T,carousel:E,cascader:D,collapse:O,typography:k,checkbox:A,descriptions:j,divider:M,drawer:N,skeleton:F,steps:I,image:ee,layout:L,list:te,mentions:R,modal:z,progress:B,result:V,slider:H,breadcrumb:U,menu:W,pagination:G,input:ne,textArea:K,empty:q,badge:J,radio:re,rate:ie,switch:ae,transfer:oe,avatar:se,message:ce,tag:le,table:ue,card:de,tabs:fe,timeline:pe,timePicker:me,upload:he,notification:ge,tree:_e,colorPicker:ve,datePicker:ye,rangePicker:be,flex:xe,wave:Se,dropdown:Ce,warning:we,tour:Te,tooltip:Ee,popover:De,popconfirm:Oe,floatButton:ke,floatButtonGroup:Ae,variant:je,inputNumber:Me,treeSelect:Ne}=e,Pe=a.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||v.getPrefixCls(``);return t?`${i}-${t}`:i},[v.getPrefixCls,e.prefixCls]),Fe=y||v.iconPrefixCls||`anticon`,Ie=n||v.csp;Eo(Fe,Ie);let Le=ko(b,v.theme,{prefixCls:Pe(``)}),Y={csp:Ie,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:c||_,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Pe,iconPrefixCls:Fe,theme:Le,segmented:S,statistic:C,spin:w,calendar:T,carousel:E,cascader:D,collapse:O,typography:k,checkbox:A,descriptions:j,divider:M,drawer:N,skeleton:F,steps:I,image:ee,input:ne,textArea:K,layout:L,list:te,mentions:R,modal:z,progress:B,result:V,slider:H,breadcrumb:U,menu:W,pagination:G,empty:q,badge:J,radio:re,rate:ie,switch:ae,transfer:oe,avatar:se,message:ce,tag:le,table:ue,card:de,tabs:fe,timeline:pe,timePicker:me,upload:he,notification:ge,tree:_e,colorPicker:ve,datePicker:ye,rangePicker:be,flex:xe,wave:Se,dropdown:Ce,warning:we,tour:Te,tooltip:Ee,popover:De,popconfirm:Oe,floatButton:ke,floatButtonGroup:Ae,variant:je,inputNumber:Me,treeSelect:Ne},Re=Object.assign({},v);Object.keys(Y).forEach(e=>{Y[e]!==void 0&&(Re[e]=Y[e])}),Os.forEach(t=>{let n=e[t];n&&(Re[t]=n)}),r!==void 0&&(Re.button=Object.assign({autoInsertSpace:r},Re.button));let ze=P(()=>Re,Re,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Be}=a.useContext(Mt),Ve=a.useMemo(()=>({prefixCls:Fe,csp:Ie,layer:Be?`antd`:void 0}),[Fe,Ie,Be]),He=a.createElement(a.Fragment,null,a.createElement(Es,{dropdownMatchSelectWidth:m}),t),Ue=a.useMemo(()=>Lr(Jr.Form?.defaultValidateMessages||{},ze.locale?.Form?.defaultValidateMessages||{},ze.form?.validateMessages||{},s?.validateMessages||{}),[ze,s?.validateMessages]);Object.keys(Ue).length>0&&(He=a.createElement(Vr.Provider,{value:Ue},He)),c&&(He=a.createElement(ri,{locale:c,_ANT_MARK__:ni},He)),(Fe||Ie)&&(He=a.createElement(kr.Provider,{value:Ve},He)),l&&(He=a.createElement(Ta,{size:l},He)),He=a.createElement(Ts,null,He);let We=a.useMemo(()=>{let e=Le||{},{algorithm:t,token:n,components:r,cssVar:i}=e,a=Ds(e,[`algorithm`,`token`,`components`,`cssVar`]),o=t&&(!Array.isArray(t)||t.length>0)?Rt(t):ua,s={};Object.entries(r||{}).forEach(([e,t])=>{let n=Object.assign({},t);`algorithm`in n&&(n.algorithm===!0?n.theme=o:(Array.isArray(n.algorithm)||typeof n.algorithm==`function`)&&(n.theme=Rt(n.algorithm)),delete n.algorithm),s[e]=n});let c=Object.assign(Object.assign({},ai),n);return Object.assign(Object.assign({},a),{theme:o,token:c,components:s,override:Object.assign({override:c},s),cssVar:i})},[Le]);return b&&(He=a.createElement(fa.Provider,{value:We},He)),ze.warning&&(He=a.createElement(zr.Provider,{value:ze.warning},He)),x!==void 0&&(He=a.createElement(Ca,{disabled:x},He)),a.createElement(ha.Provider,{value:ze},He)},zs=e=>{let t=a.useContext(ha),n=a.useContext(ei);return a.createElement(Rs,Object.assign({parentContext:t,legacyLocale:n},e))};zs.ConfigContext=ha,zs.SizeContext=wa,zs.config=Is,zs.useConfig=Ea,Object.defineProperty(zs,"SizeContext",{get:()=>wa});function Bs(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}function Vs(e){return Bs(e)instanceof ShadowRoot}function Hs(e){return Vs(e)?Bs(e):null}function Us(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function Ws(e,t){S(e,`[@ant-design/icons] ${t}`)}function Gs(e){return s(e)===`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(s(e.icon)===`object`||typeof e.icon==`function`)}function Ks(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[Us(n)]=r}return t},{})}function qs(e,t,n){return n?a.createElement(e.tag,O(O({key:t},Ks(e.attrs)),n),(e.children||[]).map(function(n,r){return qs(n,`${t}-${e.tag}-${r}`)})):a.createElement(e.tag,O({key:t},Ks(e.attrs)),(e.children||[]).map(function(n,r){return qs(n,`${t}-${e.tag}-${r}`)}))}function Js(e){return Si(e)[0]}function Ys(e){return e?Array.isArray(e)?e:[e]:[]}var Xs=`
- .anticon {
- display: inline-flex;
- align-items: center;
- color: inherit;
- font-style: normal;
- line-height: 0;
- text-align: center;
- text-transform: none;
- vertical-align: -0.125em;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- .anticon > * {
- line-height: 1;
- }
- .anticon svg {
- display: inline-block;
- }
- .anticon::before {
- display: none;
- }
- .anticon .anticon-icon {
- display: block;
- }
- .anticon[tabindex] {
- cursor: pointer;
- }
- .anticon-spin::before,
- .anticon-spin {
- display: inline-block;
- -webkit-animation: loadingCircle 1s infinite linear;
- animation: loadingCircle 1s infinite linear;
- }
- @-webkit-keyframes loadingCircle {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes loadingCircle {
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- `,Zs=function(e){var t=(0,a.useContext)(kr),n=t.csp,r=t.prefixCls,i=t.layer,o=Xs;r&&(o=o.replace(/anticon/g,r)),i&&(o=`@layer ${i} {
- ${o}
- }`),(0,a.useEffect)(function(){var t=e.current,r=Hs(t);xt(o,`@ant-design-icons`,{prepend:!i,csp:n,attachTo:r})},[])},Qs=[`icon`,`className`,`onClick`,`style`,`primaryColor`,`secondaryColor`],$s={primaryColor:`#333`,secondaryColor:`#E6E6E6`,calculated:!1};function ec(e){var t=e.primaryColor,n=e.secondaryColor;$s.primaryColor=t,$s.secondaryColor=n||Js(t),$s.calculated=!!n}function tc(){return O({},$s)}var nc=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,o=e.primaryColor,s=e.secondaryColor,c=Ct(e,Qs),l=a.useRef(),u=$s;if(o&&(u={primaryColor:o,secondaryColor:s||Js(o)}),Zs(l),Ws(Gs(t),`icon should be icon definiton, but got ${t}`),!Gs(t))return null;var d=t;return d&&typeof d.icon==`function`&&(d=O(O({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),qs(d.icon,`svg-${d.name}`,O(O({className:n,onClick:r,style:i,"data-icon":d.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`},c),{},{ref:l}))};nc.displayName=`IconReact`,nc.getTwoToneColors=tc,nc.setTwoToneColors=ec;function rc(e){var t=Z(Ys(e),2),n=t[0],r=t[1];return nc.setTwoToneColors({primaryColor:n,secondaryColor:r})}function ic(){var e=nc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ac=[`className`,`icon`,`spin`,`rotate`,`tabIndex`,`onClick`,`twoToneColor`];rc(Mi.primary);var oc=a.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,s=e.rotate,c=e.tabIndex,l=e.onClick,u=e.twoToneColor,d=Ct(e,ac),f=a.useContext(kr),m=f.prefixCls,h=m===void 0?`anticon`:m,g=f.rootClassName,_=(0,p.default)(g,h,E(E({},`${h}-${r.name}`,!!r.name),`${h}-spin`,!!i||r.name===`loading`),n),v=c;v===void 0&&l&&(v=-1);var y=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,b=Z(Ys(u),2),x=b[0],S=b[1];return a.createElement(`span`,o({role:`img`,"aria-label":r.name},d,{ref:t,tabIndex:v,onClick:l,className:_}),a.createElement(nc,{icon:r,primaryColor:x,secondaryColor:S,style:y}))});oc.displayName=`AntdIcon`,oc.getTwoToneColor=ic,oc.setTwoToneColor=rc;var sc={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`},cc=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:sc}))}),lc={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`},uc=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:lc}))}),dc=`accept acceptCharset accessKey action allowFullScreen allowTransparency
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
- charSet checked classID className colSpan cols content contentEditable contextMenu
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
- mediaGroup method min minLength multiple muted name noValidate nonce open
- optimum pattern placeholder poster preload radioGroup readOnly rel required
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
- summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),fc=`aria-`,pc=`data-`;function mc(e,t){return e.indexOf(t)===0}function hc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:O({},t),r={};return Object.keys(e).forEach(function(t){(n.aria&&(t===`role`||mc(t,fc))||n.data&&mc(t,pc)||n.attr&&dc.includes(t))&&(r[t]=e[t])}),r}function gc(e){return e&&a.isValidElement(e)&&e.type===a.Fragment}var _c=(e,t,n)=>a.isValidElement(e)?a.cloneElement(e,typeof n==`function`?n(e.props||{}):n):t;function vc(e,t){return _c(e,e,t)}var yc=e=>{let[,,,,t]=uo();return t?`${e}-css-var`:``},$={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>=$.F1&&t<=$.F12)return!1;switch(t){case $.ALT:case $.CAPS_LOCK:case $.CONTEXT_MENU:case $.CTRL:case $.DOWN:case $.END:case $.ESC:case $.HOME:case $.INSERT:case $.LEFT:case $.MAC_FF_META:case $.META:case $.NUMLOCK:case $.NUM_CENTER:case $.PAGE_DOWN:case $.PAGE_UP:case $.PAUSE:case $.PRINT_SCREEN:case $.RIGHT:case $.SHIFT:case $.UP:case $.WIN_KEY:case $.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=$.ZERO&&e<=$.NINE||e>=$.NUM_ZERO&&e<=$.NUM_MULTIPLY||e>=$.A&&e<=$.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case $.SPACE:case $.QUESTION_MARK:case $.NUM_PLUS:case $.NUM_MINUS:case $.NUM_PERIOD:case $.NUM_DIVISION:case $.SEMICOLON:case $.DASH:case $.EQUALS:case $.COMMA:case $.PERIOD:case $.SLASH:case $.APOSTROPHE:case $.SINGLE_QUOTE:case $.OPEN_SQUARE_BRACKET:case $.BACKSLASH:case $.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},bc={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`},xc=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:bc}))});function Sc(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])})}),t}var Cc=()=>a.useReducer(e=>e+1,0),wc=a.createContext(void 0),Tc=100,Ec=Tc*10,Dc={Modal:Tc,Drawer:Tc,Popover:Tc,Popconfirm:Tc,Tooltip:Tc,Tour:Tc,FloatButton:Tc},Oc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function kc(e){return e in Dc}var Ac=(e,t)=>{let[,n]=uo(),r=a.useContext(wc),i=kc(e),o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+Dc[e]:a+=Oc[e],o=[r===void 0?t:a,a]}return o};function jc(e,t){this.v=e,this.k=t}function Mc(e,t,n,r){var i=Object.defineProperty;try{i({},``,{})}catch{i=0}Mc=function(e,t,n,r){function a(t,n){Mc(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a(`next`,0),a(`throw`,1),a(`return`,2))},Mc(e,t,n,r)}function Nc(){var e,t,n=typeof Symbol==`function`?Symbol:{},r=n.iterator||`@@iterator`,i=n.toStringTag||`@@toStringTag`;function a(n,r,i,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Mc(l,`_invoke`,function(n,r,i){var a,s,c,l=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!i&&t<u.length;t++){var i,a=u[t],p=f.p,m=a[2];n>3?(i=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(s=0,f.v=r,f.n=a[1]):p<m&&(i=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,s=0))}if(i||n>1)return o;throw d=!0,r}return function(i,u,m){if(l>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),s=u,c=m;(t=s<2?e:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(i=`next`),t=a[i]){if(!(t=t.call(a,c)))throw TypeError(`iterator result is not an object`);if(!t.done)return t;c=t.value,s<2&&(s=0)}else s===1&&(t=a.return)&&t.call(a),s<2&&(c=TypeError(`The iterator does not provide a '`+i+`' method`),s=1);a=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,i,a),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mc(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Mc(e,i,`GeneratorFunction`)),e.prototype=Object.create(d),e}return c.prototype=l,Mc(d,`constructor`,l),Mc(l,`constructor`,c),c.displayName=`GeneratorFunction`,Mc(l,i,`GeneratorFunction`),Mc(d),Mc(d,i,`Generator`),Mc(d,r,function(){return this}),Mc(d,`toString`,function(){return`[object Generator]`}),(Nc=function(){return{w:a,m:f}})()}function Pc(e,t){function n(r,i,a,o){try{var s=e[r](i),c=s.value;return c instanceof jc?t.resolve(c.v).then(function(e){n(`next`,e,a,o)},function(e){n(`throw`,e,a,o)}):t.resolve(c).then(function(e){s.value=e,a(s)},function(e){return n(`throw`,e,a,o)})}catch(e){o(e)}}var r;this.next||(Mc(Pc.prototype),Mc(Pc.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),Mc(this,`_invoke`,function(e,i,a){function o(){return new t(function(t,r){n(e,a,t,r)})}return r=r?r.then(o,o):o()},!0)}function Fc(e,t,n,r,i){return new Pc(Nc().w(e,t,n,r),i||Promise)}function Ic(e,t,n,r,i){var a=Fc(e,t,n,r,i);return a.next().then(function(e){return e.done?e.value:a.next()})}function Lc(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 Rc(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],n=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError(s(e)+` is not iterable`)}function zc(){var e=Nc(),t=e.m(zc),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===n||(t.displayName||t.name)===`GeneratorFunction`)}var i={throw:1,return:2,break:3,continue:3};function a(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,i[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,Rc(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}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(zc=function(){return{wrap:function(t,n,r,i){return e.w(a(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new jc(e,t)},AsyncIterator:Pc,async:function(e,t,n,i,o){return(r(t)?Fc:Ic)(a(e),t,n,i,o)},keys:Lc,values:Rc}})()}function Bc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Vc(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Bc(a,r,i,o,s,`next`,e)}function s(e){Bc(a,r,i,o,s,`throw`,e)}o(void 0)})}}var Hc=O({},f),Uc=Hc.version,Wc=Hc.render,Gc=Hc.unmountComponentAtNode,Kc;try{Number((Uc||``).split(`.`)[0])>=18&&(Kc=Hc.createRoot)}catch{}function qc(e){var t=Hc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&s(t)===`object`&&(t.usingClientEntryPoint=e)}var Jc=`__rc_react_root__`;function Yc(e,t){qc(!0);var n=t[Jc]||Kc(t);qc(!1),n.render(e),t[Jc]=n}function Xc(e,t){Wc?.(e,t)}function Zc(e,t){if(Kc){Yc(e,t);return}Xc(e,t)}function Qc(e){return $c.apply(this,arguments)}function $c(){return $c=Vc(zc().mark(function e(t){return zc().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(`return`,Promise.resolve().then(function(){var e;(e=t[Jc])==null||e.unmount(),delete t[Jc]}));case 1:case`end`:return e.stop()}},e)})),$c.apply(this,arguments)}function el(e){Gc(e)}function tl(e){return nl.apply(this,arguments)}function nl(){return nl=Vc(zc().mark(function e(t){return zc().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Kc===void 0){e.next=2;break}return e.abrupt(`return`,Qc(t));case 2:el(t);case 3:case`end`:return e.stop()}},e)})),nl.apply(this,arguments)}var rl=(e,t)=>(Zc(e,t),()=>tl(t));function il(e){return e&&(rl=e),rl}var al=()=>({height:0,opacity:0}),ol=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},sl=e=>({height:e?e.offsetHeight:0}),cl=(e,t)=>t?.deadline===!0||t.propertyName===`height`,ll=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:al,onEnterStart:al,onAppearActive:ol,onEnterActive:ol,onLeaveStart:sl,onLeaveActive:al,onAppearEnd:cl,onEnterEnd:cl,onLeaveEnd:cl,motionDeadline:500}),ul=(e,t,n)=>n===void 0?`${e}-${t}`:n;function dl(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}var fl=(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 i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1}),pl=Co(`Wave`,e=>{let{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(`,`)}}}}}),ml=`ant-wave-target`;function hl(e){return e&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!==`transparent`&&e!==`canvastext`}function gl(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return[t,n,r].find(hl)??null}function _l(e){return Number.isNaN(e)?0:e}var vl=e=>{let{className:t,target:n,component:r,registerUnmount:i}=e,o=a.useRef(null),s=a.useRef(null);a.useEffect(()=>{s.current=i()},[]);let[c,l]=a.useState(null),[u,d]=a.useState([]),[f,m]=a.useState(0),[h,g]=a.useState(0),[_,v]=a.useState(0),[y,b]=a.useState(0),[x,S]=a.useState(!1),C={left:f,top:h,width:_,height:y,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[`--wave-color`]=c);function w(){let e=getComputedStyle(n);l(gl(n));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:i}=e;m(t?n.offsetLeft:_l(-Number.parseFloat(r))),g(t?n.offsetTop:_l(-Number.parseFloat(i))),v(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:a,borderTopRightRadius:o,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;d([a,o,c,s].map(e=>_l(Number.parseFloat(e))))}if(a.useEffect(()=>{if(n){let e=nt(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{nt.cancel(e),t?.disconnect()}}},[n]),!x)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(ml);return a.createElement(Cs,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||t.propertyName===`opacity`){let e=o.current?.parentElement;(n=s.current)==null||n.call(s).then(()=>{e?.remove()})}return!1}},({className:e},n)=>a.createElement(`div`,{ref:L(o,n),className:(0,p.default)(t,e,{"wave-quick":T}),style:C}))},yl=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild);let i=il(),o=null;function s(){return o}o=i(a.createElement(vl,Object.assign({},t,{target:e,registerUnmount:s})),r)},bl=(e,t,n)=>{let{wave:r}=a.useContext(ha),[,i,o]=uo(),s=Fa(a=>{let s=e.current;if(r?.disabled||!s)return;let c=s.querySelector(`.${ml}`)||s,{showEffect:l}=r||{};(l||yl)(c,{className:t,token:i,component:n,event:a,hashId:o})}),c=a.useRef(null);return e=>{nt.cancel(c.current),c.current=nt(()=>{s(e)})}},xl=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,a.useContext)(ha),o=(0,a.useRef)(null),s=i(`wave`),[,c]=pl(s),l=bl(o,(0,p.default)(s,c),r);return a.useEffect(()=>{let e=o.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!fl(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||l(t)};return e.addEventListener(`click`,t,!0),()=>{e.removeEventListener(`click`,t,!0)}},[n]),a.isValidElement(t)?vc(t,{ref:R(t)?L(V(t),o):o}):t??null},Sl=e=>{let t=a.useContext(wa);return a.useMemo(()=>e?typeof e==`string`?e??t:typeof e==`function`?e(t):t:t,[e,t])},Cl=e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},wl=So([`Space`,`Compact`],e=>[Cl(e)],()=>({}),{resetStyle:!1}),Tl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},El=a.createContext(null),Dl=(e,t)=>{let n=a.useContext(El),r=a.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return(0,p.default)(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Ol=e=>{let{children:t}=e;return a.createElement(El.Provider,{value:null},t)},kl=e=>{let{children:t}=e,n=Tl(e,[`children`]);return a.createElement(El.Provider,{value:a.useMemo(()=>n,[n])},t)},Al=e=>{let{getPrefixCls:t,direction:n}=a.useContext(ha),{size:r,direction:i,block:o,prefixCls:s,className:c,rootClassName:l,children:u}=e,d=Tl(e,[`size`,`direction`,`block`,`prefixCls`,`className`,`rootClassName`,`children`]),f=Sl(e=>r??e),h=t(`space-compact`,s),[g,_]=wl(h),v=(0,p.default)(h,_,{[`${h}-rtl`]:n===`rtl`,[`${h}-block`]:o,[`${h}-vertical`]:i===`vertical`},c,l),y=a.useContext(El),b=m(u),x=a.useMemo(()=>b.map((e,t)=>{let n=e?.key||`${h}-item-${t}`;return a.createElement(kl,{key:n,compactSize:f,compactDirection:i,isFirstItem:t===0&&(!y||y?.isFirstItem),isLastItem:t===b.length-1&&(!y||y?.isLastItem)},e)}),[b,y,i,f,h]);return b.length===0?null:g(a.createElement(`div`,Object.assign({className:v},d),x))},jl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Ml=a.createContext(void 0),Nl=e=>{let{getPrefixCls:t,direction:n}=a.useContext(ha),{prefixCls:r,size:i,className:o}=e,s=jl(e,[`prefixCls`,`size`,`className`]),c=t(`btn-group`,r),[,,l]=uo(),u=a.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),d=(0,p.default)(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:n===`rtl`},o,l);return a.createElement(Ml.Provider,{value:i},a.createElement(`div`,Object.assign({},s,{className:d})))},Pl=/^[\u4E00-\u9FA5]{2}$/,Fl=Pl.test.bind(Pl);function Il(e){return e===`danger`?{danger:!0}:{type:e}}function Ll(e){return typeof e==`string`}function Rl(e){return e===`text`||e===`link`}function zl(e,t){if(e==null)return;let n=t?` `:``;return typeof e!=`string`&&typeof e!=`number`&&Ll(e.type)&&Fl(e.props.children)?vc(e,{children:e.props.children.split(``).join(n)}):Ll(e)?Fl(e)?a.createElement(`span`,null,e.split(``).join(n)):a.createElement(`span`,null,e):gc(e)?a.createElement(`span`,null,e):e}function Bl(e,t){let n=!1,r=[];return a.Children.forEach(e,e=>{let t=typeof e,i=t===`string`||t===`number`;if(n&&i){let t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i}),a.Children.map(r,e=>zl(e,t))}[`default`,`primary`,`danger`].concat(X($a));var Vl=(0,a.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:o}=e,s=(0,p.default)(`${o}-icon`,n);return a.createElement(`span`,{ref:t,className:s,style:r},i)}),Hl=(0,a.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:o}=e,s=(0,p.default)(`${n}-loading-icon`,r);return a.createElement(Vl,{prefixCls:n,className:s,style:i,ref:t},a.createElement(xc,{className:o}))}),Ul=()=>({width:0,opacity:0,transform:`scale(0)`}),Wl=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Gl=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:s}=e,c=!!n;return r?a.createElement(Hl,{prefixCls:t,className:i,style:o}):a.createElement(Cs,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Ul,onAppearActive:Wl,onEnterStart:Ul,onEnterActive:Wl,onLeaveStart:Wl,onLeaveActive:Ul},({className:e,style:n},r)=>{let s=Object.assign(Object.assign({},o),n);return a.createElement(Hl,{prefixCls:t,className:(0,p.default)(i,e),style:s,ref:r})})},Kl=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ql=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Kl(`${t}-primary`,i),Kl(`${t}-danger`,a)]}},Jl=Math.round;function Yl(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var Xl=(e,t,n)=>n===0?e:e/100;function Zl(e,t){let n=t||255;return e>n?n:e<0?0:e}var Ql=class e{constructor(t){E(this,`isValid`,!0),E(this,`r`,0),E(this,`g`,0),E(this,`b`,0),E(this,`a`,1),E(this,`_h`,void 0),E(this,`_s`,void 0),E(this,`_l`,void 0),E(this,`_v`,void 0),E(this,`_max`,void 0),E(this,`_min`,void 0),E(this,`_brightness`,void 0);function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}/^#?[A-F\d]{3,8}$/i.test(e)?this.fromHexString(e):n(`rgb`)?this.fromRgbString(e):n(`hsl`)?this.fromHslString(e):(n(`hsv`)||n(`hsb`))&&this.fromHsvString(e)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=Zl(t.r),this.g=Zl(t.g),this.b=Zl(t.b),this.a=typeof t.a==`number`?Zl(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Jl(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(this._s===void 0){let e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:Jl(i(`r`)),g:Jl(i(`g`)),b:Jl(i(`b`)),a:Jl(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Jl((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=Jl(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=Jl(this.getSaturation()*100),n=Jl(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=Zl(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=Jl(n*255);this.r=e,this.g=e,this.b=e}let i=0,a=0,o=0,s=e/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=l):s>=1&&s<2?(i=l,a=c):s>=2&&s<3?(a=c,o=l):s>=3&&s<4?(a=l,o=c):s>=4&&s<5?(i=l,o=c):s>=5&&s<6&&(i=c,o=l);let u=n-c/2;this.r=Jl((i+u)*255),this.g=Jl((a+u)*255),this.b=Jl((o+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a=typeof r==`number`?r:1;let i=Jl(n*255);if(this.r=i,this.g=i,this.b=i,t<=0)return;let a=e/60,o=Math.floor(a),s=a-o,c=Jl(n*(1-t)*255),l=Jl(n*(1-t*s)*255),u=Jl(n*(1-t*(1-s))*255);switch(o){case 0:this.g=u,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=l;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=l;break}}fromHsvString(e){let t=Yl(e,Xl);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=Yl(e,Xl);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=Yl(e,(e,t)=>t.includes(`%`)?Jl(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},$l=[`b`],eu=[`v`],tu=function(e){return Math.round(Number(e||0))},nu=function(e){if(e instanceof Ql)return e;if(e&&s(e)===`object`&&`h`in e&&`b`in e){var t=e,n=t.b;return O(O({},Ct(t,$l)),{},{v:n})}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},ru=function(e){Fe(n,e);var t=ze(n);function n(e){return je(this,n),t.call(this,nu(e))}return Ne(n,[{key:`toHsbString`,value:function(){var e=this.toHsb(),t=tu(e.s*100),n=tu(e.b*100),r=tu(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}},{key:`toHsb`,value:function(){var e=this.toHsv(),t=e.v;return O(O({},Ct(e,eu)),{},{b:t,a:this.a})}}]),n}(Ql);(function(e){return e instanceof ru?e:new ru(e)})(`#1677ff`);var iu=(e,t)=>e?.replace(/[^\w/]/g,``).slice(0,t?8:6)||``,au=(e,t)=>e?iu(e,t):``,ou=function(){function e(t){if(je(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new ru(this.colors[0].color.metaColor)):this.metaColor=new ru(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Ne(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return au(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),su={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`},cu=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:su}))}),lu=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,o=e.style,s=e.children,c=e.isActive,l=e.role,u=e.classNames,d=e.styles,f=Z(a.useState(c||r),2),m=f[0],h=f[1];return a.useEffect(function(){(r||c)&&h(!0)},[r,c]),m?a.createElement(`div`,{ref:t,className:(0,p.default)(`${n}-content`,E(E({},`${n}-content-active`,c),`${n}-content-inactive`,!c),i),style:o,role:l},a.createElement(`div`,{className:(0,p.default)(`${n}-content-box`,u?.body),style:d?.body},s)):null});lu.displayName=`PanelContent`;var uu=[`showArrow`,`headerClass`,`isActive`,`onItemClick`,`forceRender`,`className`,`classNames`,`styles`,`prefixCls`,`collapsible`,`accordion`,`panelKey`,`extra`,`header`,`expandIcon`,`openMotion`,`destroyInactivePanel`,`children`],du=a.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,s=e.isActive,c=e.onItemClick,l=e.forceRender,u=e.className,d=e.classNames,f=d===void 0?{}:d,m=e.styles,h=m===void 0?{}:m,g=e.prefixCls,_=e.collapsible,v=e.accordion,y=e.panelKey,b=e.extra,x=e.header,S=e.expandIcon,C=e.openMotion,w=e.destroyInactivePanel,T=e.children,D=Ct(e,uu),k=_===`disabled`,A=b!=null&&typeof b!=`boolean`,j=E(E(E({onClick:function(){c?.(y)},onKeyDown:function(e){(e.key===`Enter`||e.keyCode===$.ENTER||e.which===$.ENTER)&&c?.(y)},role:v?`tab`:`button`},`aria-expanded`,s),`aria-disabled`,k),`tabIndex`,k?-1:0),M=typeof S==`function`?S(e):a.createElement(`i`,{className:`arrow`}),N=M&&a.createElement(`div`,o({className:`${g}-expand-icon`},[`header`,`icon`].includes(_)?j:{}),M),P=(0,p.default)(`${g}-item`,E(E({},`${g}-item-active`,s),`${g}-item-disabled`,k),u),F=O({className:(0,p.default)(i,`${g}-header`,E({},`${g}-collapsible-${_}`,!!_),f.header),style:h.header},[`header`,`icon`].includes(_)?{}:j);return a.createElement(`div`,o({},D,{ref:t,className:P}),a.createElement(`div`,F,r&&N,a.createElement(`span`,o({className:`${g}-header-text`},_===`header`?j:{}),x),A&&a.createElement(`div`,{className:`${g}-extra`},b)),a.createElement(Cs,o({visible:s,leavedClassName:`${g}-content-hidden`},C,{forceRender:l,removeOnLeave:w}),function(e,t){var n=e.className,r=e.style;return a.createElement(lu,{ref:t,prefixCls:g,className:n,classNames:f,style:r,styles:h,isActive:s,forceRender:l,role:v?`tabpanel`:void 0},T)}))}),fu=[`children`,`label`,`key`,`collapsible`,`onItemClick`,`destroyInactivePanel`],pu=function(e,t){var n=t.prefixCls,r=t.accordion,i=t.collapsible,s=t.destroyInactivePanel,c=t.onItemClick,l=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map(function(e,t){var f=e.children,p=e.label,m=e.key,h=e.collapsible,g=e.onItemClick,_=e.destroyInactivePanel,v=Ct(e,fu),y=String(m??t),b=h??i,x=_??s,S=function(e){b!==`disabled`&&(c(e),g?.(e))},C=!1;return C=r?l[0]===y:l.indexOf(y)>-1,a.createElement(du,o({},v,{prefixCls:n,key:y,panelKey:y,isActive:C,accordion:r,openMotion:u,expandIcon:d,header:p,collapsible:b,onItemClick:S,destroyInactivePanel:x}),f)})},mu=function(e,t,n){if(!e)return null;var r=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,c=n.onItemClick,l=n.activeKey,u=n.openMotion,d=n.expandIcon,f=e.key||String(t),p=e.props,m=p.header,h=p.headerClass,g=p.destroyInactivePanel,_=p.collapsible,v=p.onItemClick,y=!1;y=i?l[0]===f:l.indexOf(f)>-1;var b=_??o,x={key:f,panelKey:f,header:m,headerClass:h,isActive:y,prefixCls:r,destroyInactivePanel:g??s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){b!==`disabled`&&(c(e),v?.(e))},expandIcon:d,collapsible:b};return typeof e.type==`string`?e:(Object.keys(x).forEach(function(e){x[e]===void 0&&delete x[e]}),a.cloneElement(e,x))};function hu(e,t,n){return Array.isArray(e)?pu(e,n):m(t).map(function(e,t){return mu(e,t,n)})}function gu(e){var t=e;if(!Array.isArray(t)){var n=s(t);t=n===`number`||n===`string`?[t]:[]}return t.map(function(e){return String(e)})}var _u=Object.assign(a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?`rc-collapse`:n,i=e.destroyInactivePanel,s=i===void 0?!1:i,c=e.style,l=e.accordion,u=e.className,d=e.children,f=e.collapsible,m=e.openMotion,h=e.expandIcon,g=e.activeKey,_=e.defaultActiveKey,v=e.onChange,y=e.items,b=(0,p.default)(r,u),x=Z(Ra([],{value:g,onChange:function(e){return v?.(e)},defaultValue:_,postState:gu}),2),C=x[0],w=x[1],T=function(e){return w(function(){return l?C[0]===e?[]:[e]:C.indexOf(e)>-1?C.filter(function(t){return t!==e}):[].concat(X(C),[e])})};S(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=hu(y,d,{prefixCls:r,accordion:l,openMotion:m,expandIcon:h,collapsible:f,destroyInactivePanel:s,onItemClick:T,activeKey:C});return a.createElement(`div`,o({ref:t,className:b,style:c,role:l?`tablist`:void 0},hc(e,{aria:!0,data:!0})),E)}),{Panel:du}),vu=_u;_u.Panel;var yu=a.forwardRef((e,t)=>{let{getPrefixCls:n}=a.useContext(ha),{prefixCls:r,className:i,showArrow:o=!0}=e,s=n(`collapse`,r),c=(0,p.default)({[`${s}-no-arrow`]:!o},i);return a.createElement(vu.Panel,Object.assign({ref:t},e,{prefixCls:s,className:c}))}),bu=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:`hidden`,transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),xu=e=>({animationDuration:e,animationFillMode:`both`}),Su=e=>({animationDuration:e,animationFillMode:`both`}),Cu=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
- ${a}${e}-enter,
- ${a}${e}-appear
- `]:Object.assign(Object.assign({},xu(r)),{animationPlayState:`paused`}),[`${a}${e}-leave`]:Object.assign(Object.assign({},Su(r)),{animationPlayState:`paused`}),[`
- ${a}${e}-enter${e}-enter-active,
- ${a}${e}-appear${e}-appear-active
- `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},wu=new Dr(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Tu=new Dr(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),Eu=new Dr(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Du=new Dr(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Ou=new Dr(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ku=new Dr(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Au={"move-up":{inKeyframes:new Dr(`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 Dr(`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:wu,outKeyframes:Tu},"move-left":{inKeyframes:Eu,outKeyframes:Du},"move-right":{inKeyframes:Ou,outKeyframes:ku}},ju=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Au[t];return[Cu(r,i,a,e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Mu=new Dr(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),Nu=new Dr(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Pu=new Dr(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),Fu=new Dr(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),Iu=new Dr(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),Lu=new Dr(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Ru=new Dr(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),zu=new Dr(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),Bu={"slide-up":{inKeyframes:Mu,outKeyframes:Nu},"slide-down":{inKeyframes:Pu,outKeyframes:Fu},"slide-left":{inKeyframes:Iu,outKeyframes:Lu},"slide-right":{inKeyframes:Ru,outKeyframes:zu}},Vu=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Bu[t];return[Cu(r,i,a,e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Hu=new Dr(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Uu=new Dr(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Wu=new Dr(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Gu=new Dr(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Ku=new Dr(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),qu=new Dr(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),Ju=new Dr(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Yu=new Dr(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),Xu=new Dr(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Zu=new Dr(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Qu=new Dr(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),$u=new Dr(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),ed={zoom:{inKeyframes:Hu,outKeyframes:Uu},"zoom-big":{inKeyframes:Wu,outKeyframes:Gu},"zoom-big-fast":{inKeyframes:Wu,outKeyframes:Gu},"zoom-left":{inKeyframes:Ju,outKeyframes:Yu},"zoom-right":{inKeyframes:Xu,outKeyframes:Zu},"zoom-up":{inKeyframes:Ku,outKeyframes:qu},"zoom-down":{inKeyframes:Qu,outKeyframes:$u}},td=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=ed[t];return[Cu(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},nd=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,collapseHeaderPaddingSM:o,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:h,lineHeight:g,lineHeightLG:_,marginSM:v,paddingSM:y,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:w,fontHeight:T,fontHeightLG:E}=e,D=`${Q(l)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},po(e)),{backgroundColor:i,border:D,borderRadius:c,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:D,"&:first-child":{[`
- &,
- & > ${t}-header`]:{borderRadius:`${Q(c)} ${Q(c)} 0 0`}},"&:last-child":{[`
- &,
- & > ${t}-header`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:a,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${S}, visibility 0s`},yo(e)),{[`> ${t}-header-text`]:{flex:`auto`},[`${t}-expand-icon`]:{height:T,display:`flex`,alignItems:`center`,paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},mo()),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:`auto`}}),[`${t}-collapsible-header`]:{cursor:`default`,[`${t}-header-text`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-collapsible-icon`]:{cursor:`unset`,[`${t}-expand-icon`]:{cursor:`pointer`}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:D,[`& > ${t}-content-box`]:{padding:w},"&-hidden":{display:`none`}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:_,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(b).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:`not-allowed`}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},rd=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},id=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
- > ${t}-item:last-child,
- > ${t}-item:last-child ${t}-header
- `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},ad=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:`transparent`,border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},od=So(`Collapse`,e=>{let t=Ha(e,{collapseHeaderPaddingSM:`${Q(e.paddingXS)} ${Q(e.paddingSM)}`,collapseHeaderPaddingLG:`${Q(e.padding)} ${Q(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[nd(t),id(t),ad(t),rd(t),bu(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:`transparent`})),sd=Object.assign(a.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:i,className:o,style:s}=va(`collapse`),{prefixCls:c,className:l,rootClassName:u,style:d,bordered:f=!0,ghost:h,size:g,expandIconPosition:_=`start`,children:v,destroyInactivePanel:y,destroyOnHidden:b,expandIcon:x}=e,S=Sl(e=>g??e??`middle`),C=n(`collapse`,c),w=n(),[T,E,D]=od(C),O=a.useMemo(()=>_===`left`?`start`:_===`right`?`end`:_,[_]),k=x??i,A=a.useCallback((e={})=>{let t=typeof k==`function`?k(e):a.createElement(cu,{rotate:e.isActive?r===`rtl`?-90:90:void 0,"aria-label":e.isActive?`expanded`:`collapsed`});return vc(t,()=>({className:(0,p.default)(t.props?.className,`${C}-arrow`)}))},[k,C,r]),j=(0,p.default)(`${C}-icon-position-${O}`,{[`${C}-borderless`]:!f,[`${C}-rtl`]:r===`rtl`,[`${C}-ghost`]:!!h,[`${C}-${S}`]:S!==`middle`},o,l,u,E,D),M=a.useMemo(()=>Object.assign(Object.assign({},ll(w)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),[w,C]),N=a.useMemo(()=>v?m(v).map((e,t)=>{let n=e.props;if(n?.disabled){let r=e.key??String(t);return vc(e,Object.assign(Object.assign({},dl(e.props,[`disabled`])),{key:r,collapsible:n.collapsible??`disabled`}))}return e}):null,[v]);return T(a.createElement(vu,Object.assign({ref:t,openMotion:M},dl(e,[`rootClassName`]),{expandIcon:A,prefixCls:C,className:j,style:Object.assign(Object.assign({},s),d),destroyInactivePanel:b??y}),N))}),{Panel:yu}),cd=e=>e instanceof ou?e:new ou(e),ld=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new ru(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},ud=e=>{let{paddingInline:t,onlyIconSize:n}=e;return Ha(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},dd=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??ta(t),a=e.contentLineHeightSM??ta(n),o=e.contentLineHeightLG??ta(r),s=ld(new ou(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=$a.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Q(e.controlOutlineWidth)} 0 ${no(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},c),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.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:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0)})},fd=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,background:`transparent`,border:`${Q(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`]:mo(),"> a":{color:`currentColor`},"&:not(:disabled)":yo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},pd=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),md=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),hd=e=>({cursor:`not-allowed`,borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:`none`}),gd=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:`none`},pd(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:`not-allowed`,color:i||void 0,borderColor:a||void 0}})}),_d=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},hd(e))}),vd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,color:e.colorTextDisabled}}),yd=(e,t,n,r)=>{let i=r&&[`link`,`text`].includes(r)?vd:_d;return Object.assign(Object.assign({},i(e)),pd(e.componentCls,t,n))},bd=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},yd(e,r,i))}),xd=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},yd(e,r,i))}),Sd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:`dashed`}}),Cd=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:`none`,background:t},yd(e,n,r))}),wd=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:`none`},yd(e,r,i,n))}),Td=e=>{let{componentCls:t}=e;return $a.reduce((n,r)=>{let i=e[`${r}6`],a=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],l=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:i,boxShadow:e[`${r}ShadowColor`]},bd(e,e.colorTextLightSolid,i,{background:o},{background:l})),xd(e,i,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),Sd(e)),Cd(e,a,{color:i,background:s},{color:i,background:c})),wd(e,i,`link`,{color:o},{color:l})),wd(e,i,`text`,{color:o,background:a},{color:l,background:c}))})},{})},Ed=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},bd(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Sd(e)),Cd(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),gd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),wd(e,e.textTextColor,`link`,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Dd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},xd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Sd(e)),Cd(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),wd(e,e.colorPrimaryText,`text`,{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),wd(e,e.colorPrimaryText,`link`,{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Od=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},bd(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),xd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Sd(e)),Cd(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),wd(e,e.colorError,`text`,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),wd(e,e.colorError,`link`,{color:e.colorErrorHover},{color:e.colorErrorActive})),gd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),kd=e=>Object.assign(Object.assign({},wd(e,e.colorLink,`link`,{color:e.colorLinkHover},{color:e.colorLinkActive})),gd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Ad=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Ed(e),[`${t}-color-primary`]:Dd(e),[`${t}-color-dangerous`]:Od(e),[`${t}-color-link`]:kd(e)},Td(e))},jd=e=>Object.assign(Object.assign(Object.assign(Object.assign({},xd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wd(e,e.textTextColor,`text`,{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),bd(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),wd(e,e.colorLink,`link`,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Md=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${Q(c)} ${Q(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:md(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Nd=e=>Md(Ha(e,{fontSize:e.contentFontSize}),e.componentCls),Pd=e=>Md(Ha(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),Fd=e=>Md(Ha(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),Id=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},Ld=So(`Button`,e=>{let t=ud(e);return[fd(t),Nd(t),Pd(t),Fd(t),Id(t),Ad(t),jd(t),ql(t)]},dd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rd(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=[`hover`,a?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${s}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function zd(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bd(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:Object.assign(Object.assign({},Rd(e,a,t,i)),zd(i,a,t))}}function Vd(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Hd(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ud(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Vd(e,t,e.componentCls)),Hd(e.componentCls,t))}}var Wd=e=>{let{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),o=e=>{let i=`${t}-compact${e?`-vertical`:``}-item${t}-primary:not([disabled])`;return{[`${i} + ${i}::before`]:{position:`absolute`,top:e?a:0,insetInlineStart:e?0:a,backgroundColor:n,content:`""`,width:e?`100%`:r,height:e?r:`100%`}}};return Object.assign(Object.assign({},o()),o(!0))},Gd=wo([`Button`,`compact`],e=>{let t=ud(e);return[Bd(t),Ud(t),Wd(t)]},dd),Kd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function qd(e){if(typeof e==`object`&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t==`number`?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var Jd={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},Yd=a.forwardRef((e,t)=>{let{loading:n=!1,prefixCls:r,color:i,variant:o,type:s,danger:c=!1,shape:l,size:u,styles:d,disabled:f,className:m,rootClassName:h,children:g,icon:_,iconPosition:v=`start`,ghost:y=!1,block:b=!1,htmlType:x=`button`,classNames:S,style:C={},autoInsertSpace:w,autoFocus:T}=e,E=Kd(e,[`loading`,`prefixCls`,`color`,`variant`,`type`,`danger`,`shape`,`size`,`styles`,`disabled`,`className`,`rootClassName`,`children`,`icon`,`iconPosition`,`ghost`,`block`,`htmlType`,`classNames`,`style`,`autoInsertSpace`,`autoFocus`]),D=s||`default`,{button:O}=a.useContext(ha),k=l||O?.shape||`default`,[A,j]=(0,a.useMemo)(()=>{if(i&&o)return[i,o];if(s||c){let e=Jd[D]||[];return c?[`danger`,e[1]]:e}return O?.color&&O?.variant?[O.color,O.variant]:[`default`,`outlined`]},[i,o,s,c,O?.color,O?.variant,D]),M=A===`danger`?`dangerous`:A,{getPrefixCls:N,direction:P,autoInsertSpace:F,className:I,style:ee,classNames:L,styles:R}=va(`button`),z=w??F??!0,B=N(`btn`,r),[V,H,U]=Ld(B),W=(0,a.useContext)(Sa),G=f??W,ne=(0,a.useContext)(Ml),K=(0,a.useMemo)(()=>qd(n),[n]),[q,J]=(0,a.useState)(K.loading),[re,ie]=(0,a.useState)(!1),ae=(0,a.useRef)(null),oe=te(t,ae),se=a.Children.count(g)===1&&!_&&!Rl(j),ce=(0,a.useRef)(!0);a.useEffect(()=>(ce.current=!1,()=>{ce.current=!0}),[]),Zt(()=>{let e=null;K.delay>0?e=setTimeout(()=>{e=null,J(!0)},K.delay):J(K.loading);function t(){e&&=(clearTimeout(e),null)}return t},[K.delay,K.loading]),(0,a.useEffect)(()=>{if(!ae.current||!z)return;let e=ae.current.textContent||``;se&&Fl(e)?re||ie(!0):re&&ie(!1)}),(0,a.useEffect)(()=>{T&&ae.current&&ae.current.focus()},[]);let le=a.useCallback(t=>{var n;if(q||G){t.preventDefault();return}(n=e.onClick)==null||n.call(e,(`href`in e,t))},[e.onClick,q,G]),{compactSize:ue,compactItemClassnames:de}=Dl(B,P),fe={large:`lg`,small:`sm`,middle:void 0},pe=Sl(e=>u??ue??ne??e),me=pe?fe[pe]??``:``,he=q?`loading`:_,ge=dl(E,[`navigate`]),_e=(0,p.default)(B,H,U,{[`${B}-${k}`]:k!=="default"&&k,[`${B}-${D}`]:D,[`${B}-dangerous`]:c,[`${B}-color-${M}`]:M,[`${B}-variant-${j}`]:j,[`${B}-${me}`]:me,[`${B}-icon-only`]:!g&&g!==0&&!!he,[`${B}-background-ghost`]:y&&!Rl(j),[`${B}-loading`]:q,[`${B}-two-chinese-chars`]:re&&z&&!q,[`${B}-block`]:b,[`${B}-rtl`]:P===`rtl`,[`${B}-icon-end`]:v===`end`},de,m,h,I),ve=Object.assign(Object.assign({},ee),C),ye=(0,p.default)(S?.icon,L.icon),be=Object.assign(Object.assign({},d?.icon||{}),R.icon||{}),xe=e=>a.createElement(Vl,{prefixCls:B,className:ye,style:be},e),Se=()=>a.createElement(Gl,{existIcon:!!_,prefixCls:B,loading:q,mount:ce.current}),Ce;Ce=_&&!q?xe(_):n&&typeof n==`object`&&n.icon?xe(n.icon):Se();let we=g||g===0?Bl(g,se&&z):null;if(ge.href!==void 0)return V(a.createElement(`a`,Object.assign({},ge,{className:(0,p.default)(_e,{[`${B}-disabled`]:G}),href:G?void 0:ge.href,style:ve,onClick:le,ref:oe,tabIndex:G?-1:0,"aria-disabled":G}),Ce,we));let Te=a.createElement(`button`,Object.assign({},E,{type:x,className:_e,style:ve,onClick:le,disabled:G,ref:oe}),Ce,we,de&&a.createElement(Gd,{prefixCls:B}));return Rl(j)||(Te=a.createElement(xl,{component:`Button`,disabled:q},Te)),V(Te)});Yd.Group=Nl,Yd.__ANT_BUTTON=!0;var Xd=Yd,Zd=a.createContext(null),Qd=[];function $d(e,t){var n=Z(a.useState(function(){return st()?document.createElement(`div`):null}),1)[0],r=a.useRef(!1),i=a.useContext(Zd),o=Z(a.useState(Qd),2),s=o[0],c=o[1],l=i||(r.current?void 0:function(e){c(function(t){return[e].concat(X(t))})});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;(e=n.parentElement)==null||e.removeChild(n),r.current=!1}return Zt(function(){return e?i?i(u):u():d(),d},[e]),Zt(function(){s.length&&(s.forEach(function(e){return e()}),c(Qd))},[s]),[n,l]}var ef;function tf(e){var t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;var r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,`::-webkit-scrollbar`),c=parseInt(s.width,10),l=parseInt(s.height,10);try{xt(`
- #${t}::-webkit-scrollbar {
- ${c?`width: ${s.width};`:``}
- ${l?`height: ${s.height};`:``}
- }`,t)}catch(e){console.error(e),i=c,a=l}}document.body.appendChild(n);var u=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,d=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),yt(t),{width:u,height:d}}function nf(e){return typeof document>`u`?0:((e||ef===void 0)&&(ef=tf()),ef.width)}function rf(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:tf(e)}function af(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var of=`rc-util-locker-${Date.now()}`,sf=0;function cf(e){var t=!!e,n=Z(a.useState(function(){return sf+=1,`${of}_${sf}`}),1)[0];Zt(function(){if(t){var e=rf(document.body).width;xt(`
- html body {
- overflow-y: hidden;
- ${af()?`width: calc(100% - ${e}px);`:``}
- }`,n)}else yt(n);return function(){yt(n)}},[t,n])}var lf=!1;function uf(e){return typeof e==`boolean`&&(lf=e),lf}var df=function(e){return e===!1?!1:!st()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e},ff=a.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,o=e.debug,s=e.autoDestroy,c=s===void 0?!0:s,l=e.children,u=Z(a.useState(n),2),d=u[0],p=u[1],m=d||n;a.useEffect(function(){(c||n)&&p(n)},[n,c]);var h=Z(a.useState(function(){return df(i)}),2),g=h[0],_=h[1];a.useEffect(function(){_(df(i)??null)});var v=Z($d(m&&!g,o),2),y=v[0],b=v[1],x=g??y;cf(r&&n&&st()&&(x===y||x===document.body));var S=null;l&&R(l)&&t&&(S=l.ref);var C=te(S,t);if(!m||!st()||g===void 0)return null;var w=x===!1||uf(),T=l;return t&&(T=a.cloneElement(l,{ref:C})),a.createElement(Zd.Provider,{value:b},w?T:(0,f.createPortal)(T,x))});function pf(){return O({},a).useId}var mf=0,hf=pf(),gf=hf?function(e){var t=hf();return e||t}:function(e){var t=Z(a.useState(`ssr-id`),2),n=t[0],r=t[1];return a.useEffect(function(){var e=mf;mf+=1,r(`rc_unique_${e}`)},[]),e||n},_f=`RC_FORM_INTERNAL_HOOKS`,vf=function(){S(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},yf=a.createContext({getFieldValue:vf,getFieldsValue:vf,getFieldError:vf,getFieldWarning:vf,getFieldsError:vf,isFieldsTouched:vf,isFieldTouched:vf,isFieldValidating:vf,isFieldsValidating:vf,resetFields:vf,setFields:vf,setFieldValue:vf,setFieldsValue:vf,validateFields:vf,submit:vf,getInternalHooks:function(){return vf(),{dispatch:vf,initEntityValue:vf,registerField:vf,useSubscribe:vf,setInitialValues:vf,destroyForm:vf,setCallbacks:vf,registerWatch:vf,getFields:vf,setValidateMessages:vf,setPreserve:vf,getInitialValue:vf}}}),bf=a.createContext(null);function xf(e){return e==null?[]:Array.isArray(e)?e:[e]}function Sf(e){return e&&!!e._init}function Cf(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var wf=Cf();function Tf(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Ef(e,t,n){if(Le())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Pe(i,n.prototype),i}function Df(e){var t=typeof Map==`function`?new Map:void 0;return Df=function(e){if(e===null||!Tf(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ef(e,arguments,Ie(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Pe(n,e)},Df(e)}var Of=/%[sdj%]/g,kf=function(){};function Af(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 jf(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Of,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Mf(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function Nf(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Mf(t)&&typeof e==`string`&&!e)}function Pf(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,X(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function Ff(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function If(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,X(e[n]||[]))}),t}var Lf=function(e){Fe(n,e);var t=ze(n);function n(e,r){var i;return je(this,n),i=t.call(this,`Async Validation Error`),E(Y(i),`errors`,void 0),E(Y(i),`fields`,void 0),i.errors=e,i.fields=r,i}return Ne(n)}(Df(Error));function Rf(e,t,n,r,i){if(t.first){var a=new Promise(function(t,a){Ff(If(e),n,function(e){return r(e),e.length?a(new Lf(e,Af(e))):t(i)})});return a.catch(function(e){return e}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new Lf(u,Af(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];o.indexOf(t)===-1?Pf(r,n,d):Ff(r,n,d)})});return d.catch(function(e){return e}),d}function zf(e){return!!(e&&e.message!==void 0)}function Bf(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Vf(e,t){return function(n){var r=e.fullFields?Bf(t,e.fullFields):t[n.field||e.fullField];return zf(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n==`function`?n():n,fieldValue:r,field:n.field||e.fullField}}}function Hf(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];s(r)===`object`&&s(e[n])===`object`?e[n]=O(O({},e[n]),r):e[n]=r}}return e}var Uf=`enum`,Wf=function(e,t,n,r,i){e[Uf]=Array.isArray(e[Uf])?e[Uf]:[],e[Uf].indexOf(t)===-1&&r.push(jf(i.messages[Uf],e.fullField,e[Uf].join(`, `)))},Gf=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(jf(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(jf(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Kf=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(jf(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(jf(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(jf(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(jf(i.messages[u].range,e.fullField,e.min,e.max))},qf=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||Nf(t,a||e.type))&&r.push(jf(i.messages.required,e.fullField))},Jf,Yf=(function(){if(Jf)return Jf;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|\$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Jf=RegExp(`(?:^${l}\$)`,`i`),Jf}),Xf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Zf={integer:function(e){return Zf.number(e)&&parseInt(e,10)===e},float:function(e){return Zf.number(e)&&!Zf.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return s(e)===`object`&&!Zf.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(Xf.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(Xf.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(Yf())},hex:function(e){return typeof e==`string`&&!!e.match(Xf.hex)}},Qf={required:qf,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(jf(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){qf(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Zf[o](t)||r.push(jf(i.messages.types[o],e.fullField,e.type)):o&&s(t)!==e.type&&r.push(jf(i.messages.types[o],e.fullField,e.type))},range:Kf,enum:Wf,pattern:Gf},$f=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i)}n(a)},ep=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Qf.required(e,t,r,a,i,`array`),t!=null&&(Qf.type(e,t,r,a,i),Qf.range(e,t,r,a,i))}n(a)},tp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&Qf.type(e,t,r,a,i)}n(a)},np=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t,`date`)&&!e.required)return n();if(Qf.required(e,t,r,a,i),!Nf(t,`date`)){var o=t instanceof Date?t:new Date(t);Qf.type(e,o,r,a,i),o&&Qf.range(e,o.getTime(),r,a,i)}}n(a)},rp=`enum`,ip=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&Qf[rp](e,t,r,a,i)}n(a)},ap=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&(Qf.type(e,t,r,a,i),Qf.range(e,t,r,a,i))}n(a)},op=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&(Qf.type(e,t,r,a,i),Qf.range(e,t,r,a,i))}n(a)},sp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&Qf.type(e,t,r,a,i)}n(a)},cp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&(Qf.type(e,t,r,a,i),Qf.range(e,t,r,a,i))}n(a)},lp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),t!==void 0&&Qf.type(e,t,r,a,i)}n(a)},up=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t,`string`)&&!e.required)return n();Qf.required(e,t,r,a,i),Nf(t,`string`)||Qf.pattern(e,t,r,a,i)}n(a)},dp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t)&&!e.required)return n();Qf.required(e,t,r,a,i),Nf(t)||Qf.type(e,t,r,a,i)}n(a)},fp=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:s(t);Qf.required(e,t,r,a,i,o),n(a)},pp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t,`string`)&&!e.required)return n();Qf.required(e,t,r,a,i,`string`),Nf(t,`string`)||(Qf.type(e,t,r,a,i),Qf.range(e,t,r,a,i),Qf.pattern(e,t,r,a,i),e.whitespace===!0&&Qf.whitespace(e,t,r,a,i))}n(a)},mp=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Nf(t,a)&&!e.required)return n();Qf.required(e,t,r,o,i,a),Nf(t,a)||Qf.type(e,t,r,o,i)}n(o)},hp={string:pp,method:sp,number:cp,boolean:tp,regexp:dp,integer:op,float:ap,array:ep,object:lp,enum:ip,pattern:up,date:np,url:mp,hex:mp,email:mp,tel:mp,required:fp,any:$f},gp=function(){function e(t){je(this,e),E(this,`rules`,null),E(this,`_messages`,wf),this.define(t)}return Ne(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(s(e)!==`object`||Array.isArray(e))throw 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=Hf(Cf(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,c=i;if(typeof o==`function`&&(c=o,o={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function l(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,X(e))}else t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=Af(t),c(t,n)):c(null,a)}if(o.messages){var u=this.messages();u===wf&&(u=Cf()),Hf(u,o.messages),o.messages=u}else o.messages=this.messages();var d={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=a[e];r.forEach(function(r){var o=r;typeof o.transform==`function`&&(a===t&&(a=O({},a)),i=a[e]=o.transform(i),i!=null&&(o.type=o.type||(Array.isArray(i)?`array`:s(i)))),o=typeof o==`function`?{validator:o}:O({},o),o.validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),d[e]=d[e]||[],d[e].push({rule:o,value:i,source:a,field:e}))})});var f={};return Rf(d,o,function(t,n){var r=t.rule,i=(r.type===`object`||r.type===`array`)&&(s(r.fields)===`object`||s(r.defaultField)===`object`);i&&=r.required||!r.required&&t.value,r.field=t.field;function c(e,t){return O(O({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[].concat(X(r.fullFields),[e]):[e]})}function l(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(s)?s:[s];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(Vf(r,a));if(o.first&&u.length)return f[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,jf(o.messages.required,r.field))]):u=[].concat(r.message).map(Vf(r,a)),n(u);var d={};r.defaultField&&Object.keys(t.value).map(function(e){d[e]=r.defaultField}),d=O(O({},d),t.rule.fields);var p={};Object.keys(d).forEach(function(e){var t=d[e];p[e]=(Array.isArray(t)?t:[t]).map(c.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,X(u)),e&&e.length&&t.push.apply(t,X(e)),n(t.length?t:null)})}}var u;if(r.asyncValidator)u=r.asyncValidator(r,t.value,l,t.source,o);else if(r.validator){try{u=r.validator(r,t.value,l,t.source,o)}catch(e){var d,p;(d=(p=console).error)==null||d.call(p,e),o.suppressValidatorError||setTimeout(function(){throw e},0),l(e.message)}u===!0?l():u===!1?l(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):u instanceof Array?l(u):u instanceof Error&&l(u.message)}u&&u.then&&u.then(function(){return l()},function(e){return l(e)})},function(e){l(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!hp.hasOwnProperty(e.type))throw Error(jf(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?hp.required:hp[this.getType(e)]||void 0}}]),e}();E(gp,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);hp[e]=t}),E(gp,`warning`,kf),E(gp,`messages`,wf),E(gp,`validators`,hp);var _p="'${name}' is not a valid ${type}",vp={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:_p,method:_p,array:_p,object:_p,number:_p,date:_p,boolean:_p,integer:_p,float:_p,regexp:_p,email:_p,url:_p,hex:_p},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}"}},yp=gp;function bp(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){return e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)]})}var xp=`CODE_LOGIC_ERROR`;function Sp(e,t,n,r,i){return Cp.apply(this,arguments)}function Cp(){return Cp=Vc(zc().mark(function e(t,n,r,i,o){var s,c,l,u,d,f,p,m,h;return zc().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=O({},r),delete s.ruleIndex,yp.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(xp)}}),l=null,s&&s.type===`array`&&s.defaultField&&(l=s.defaultField,delete s.defaultField),u=new yp(E({},t,[s])),d=Lr(vp,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(E({},t,n),O({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map(function(e,t){var n=e.message,r=n===xp?d.default:n;return a.isValidElement(r)?a.cloneElement(r,{key:`error_${t}`}):r}));case 18:if(!(!f.length&&l&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Sp(`${t}.${n}`,e,l,i,o)}));case 21:return p=e.sent,e.abrupt(`return`,p.reduce(function(e,t){return[].concat(X(e),X(t))},[]));case 23:return m=O(O({},r),{},{name:t,enum:(r.enum||[]).join(`, `)},o),h=f.map(function(e){return typeof e==`string`?bp(e,m):e}),e.abrupt(`return`,h);case 26:case`end`:return e.stop()}},e,null,[[10,15]])})),Cp.apply(this,arguments)}function wp(e,t,n,r,i,a){var o=e.join(`.`),s=n.map(function(e,t){var n=e.validator,r=O(O({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,a=n(e,t,function(){var e=[...arguments];Promise.resolve().then(function(){S(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,S(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(function(){r()}).catch(function(e){r(e||` `)})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,i=t.warningOnly,a=t.ruleIndex;return!!n==!!i?r-a:n?1:-1}),c;if(i===!0)c=new Promise(function(){var e=Vc(zc().mark(function e(n,i){var c,l,u;return zc().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=0;case 1:if(!(c<s.length)){e.next=12;break}return l=s[c],e.next=5,Sp(o,t,l,r,a);case 5:if(u=e.sent,!u.length){e.next=9;break}return i([{errors:u,rule:l}]),e.abrupt(`return`);case 9:c+=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 l=s.map(function(e){return Sp(o,t,e,r,a).then(function(t){return{errors:t,rule:e}})});c=(i?Dp(l):Tp(l)).then(function(e){return Promise.reject(e)})}return c.catch(function(e){return e}),c}function Tp(e){return Ep.apply(this,arguments)}function Ep(){return Ep=Vc(zc().mark(function e(t){return zc().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,X(e))}));case 1:case`end`:return e.stop()}},e)})),Ep.apply(this,arguments)}function Dp(e){return Op.apply(this,arguments)}function Op(){return Op=Vc(zc().mark(function e(t){var n;return zc().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,n===t.length&&e([])})})}));case 2:case`end`:return e.stop()}},e)})),Op.apply(this,arguments)}function kp(e){return xf(e)}function Ap(e,t){var n={};return t.forEach(function(t){var r=jr(e,t);n=Nr(n,t,r)}),n}function jp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(e){return Mp(t,e,n)})}function Mp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(t,n){return e[n]===t})}function Np(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||s(e)!==`object`||s(t)!==`object`)return!1;var n=Object.keys(e),r=Object.keys(t);return X(new Set([].concat(n,r))).every(function(n){var r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function Pp(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&s(t.target)===`object`&&e in t.target?t.target[e]:t}function Fp(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(X(e.slice(0,n)),[i],X(e.slice(n,t)),X(e.slice(t+1,r))):a<0?[].concat(X(e.slice(0,t)),X(e.slice(t+1,n+1)),[i],X(e.slice(n+1,r))):e}var Ip=[`name`],Lp=[];function Rp(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var zp=function(e){Fe(n,e);var t=ze(n);function n(e){var r;if(je(this,n),r=t.call(this,e),E(Y(r),`state`,{resetCount:0}),E(Y(r),`cancelRegisterFunc`,null),E(Y(r),`mounted`,!1),E(Y(r),`touched`,!1),E(Y(r),`dirty`,!1),E(Y(r),`validatePromise`,void 0),E(Y(r),`prevValidating`,void 0),E(Y(r),`errors`,Lp),E(Y(r),`warnings`,Lp),E(Y(r),`cancelRegister`,function(){var e=r.props,t=e.preserve,n=e.isListField,i=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,kp(i)),r.cancelRegisterFunc=null}),E(Y(r),`getNamePath`,function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,i=n===void 0?[]:n;return t===void 0?[]:[].concat(X(i),X(t))}),E(Y(r),`getRules`,function(){var e=r.props,t=e.rules,n=t===void 0?[]:t,i=e.fieldContext;return n.map(function(e){return typeof e==`function`?e(i):e})}),E(Y(r),`refresh`,function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),E(Y(r),`metaCache`,null),E(Y(r),`triggerMetaEvent`,function(e){var t=r.props.onMetaChange;if(t){var n=O(O({},r.getMeta()),{},{destroy:e});wt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),E(Y(r),`onStoreChange`,function(e,t,n){var i=r.props,a=i.shouldUpdate,o=i.dependencies,s=o===void 0?[]:o,c=i.onReset,l=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(l),p=t&&jp(t,u);switch(n.type===`valueUpdate`&&n.source===`external`&&!wt(d,f)&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Lp,r.warnings=Lp,r.triggerMetaEvent()),n.type){case`reset`:if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Lp,r.warnings=Lp,r.triggerMetaEvent(),c?.(),r.refresh();return}break;case`remove`:if(a&&Rp(a,e,l,d,f,n)){r.reRender();return}break;case`setField`:var m=n.data;if(p){`touched`in m&&(r.touched=m.touched),`validating`in m&&!(`originRCField`in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),`errors`in m&&(r.errors=m.errors||Lp),`warnings`in m&&(r.warnings=m.warnings||Lp),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}else if(`value`in m&&jp(t,u,!0)){r.reRender();return}if(a&&!u.length&&Rp(a,e,l,d,f,n)){r.reRender();return}break;case`dependenciesUpdate`:if(s.map(kp).some(function(e){return jp(n.relatedFields,e)})){r.reRender();return}break;default:if(p||(!s.length||u.length||a)&&Rp(a,e,l,d,f,n)){r.reRender();return}break}a===!0&&r.reRender()}),E(Y(r),`validateRules`,function(e){var t=r.getNamePath(),n=r.getValue(),i=e||{},a=i.triggerName,o=i.validateOnly,s=o===void 0?!1:o,c=Promise.resolve().then(Vc(zc().mark(function i(){var o,s,l,u,d,f,p;return zc().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(r.mounted){i.next=2;break}return i.abrupt(`return`,[]);case 2:if(o=r.props,s=o.validateFirst,l=s===void 0?!1:s,u=o.messageVariables,d=o.validateDebounce,f=r.getRules(),a&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return t?xf(t).includes(a):!0})),!(d&&a)){i.next=10;break}return i.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===c){i.next=10;break}return i.abrupt(`return`,[]);case 10:return p=wp(t,n,f,e,l,u),p.catch(function(e){return e}).then(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lp;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],i=[];(t=e.forEach)==null||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,a=r===void 0?Lp:r;t?i.push.apply(i,X(a)):n.push.apply(n,X(a))}),r.errors=n,r.warnings=i,r.triggerMetaEvent(),r.reRender()}}),i.abrupt(`return`,p);case 13:case`end`:return i.stop()}},i)})));return s?c:(r.validatePromise=c,r.dirty=!0,r.errors=Lp,r.warnings=Lp,r.triggerMetaEvent(),r.reRender(),c)}),E(Y(r),`isFieldValidating`,function(){return!!r.validatePromise}),E(Y(r),`isFieldTouched`,function(){return r.touched}),E(Y(r),`isFieldDirty`,function(){if(r.dirty||r.props.initialValue!==void 0)return!0;var e=r.props.fieldContext.getInternalHooks(_f).getInitialValue;return e(r.getNamePath())!==void 0}),E(Y(r),`getErrors`,function(){return r.errors}),E(Y(r),`getWarnings`,function(){return r.warnings}),E(Y(r),`isListField`,function(){return r.props.isListField}),E(Y(r),`isList`,function(){return r.props.isList}),E(Y(r),`isPreserve`,function(){return r.props.preserve}),E(Y(r),`getMeta`,function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:r.validatePromise===null}}),E(Y(r),`getOnlyChild`,function(e){if(typeof e==`function`){var t=r.getMeta();return O(O({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=m(e);return n.length!==1||!a.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}}),E(Y(r),`getValue`,function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return jr(e||t(!0),n)}),E(Y(r),`getControlled`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.props,n=t.name,i=t.trigger,a=t.validateTrigger,o=t.getValueFromEvent,s=t.normalize,c=t.valuePropName,l=t.getValueProps,u=t.fieldContext,d=a===void 0?u.validateTrigger:a,f=r.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,h=p(_f).dispatch,g=r.getValue(),_=l||function(e){return E({},c,e)},v=e[i],y=n===void 0?{}:_(g),b=O(O({},e),y);return b[i]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();var e,t=[...arguments];e=o?o.apply(void 0,t):Pp.apply(void 0,[c].concat(t)),s&&(e=s(e,g,m(!0))),e!==g&&h({type:`updateValue`,namePath:f,value:e}),v&&v.apply(void 0,t)},xf(d||[]).forEach(function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:`validateField`,namePath:f,triggerName:e})}}),b}),e.fieldContext){var i=e.fieldContext.getInternalHooks,o=i(_f).initEntityValue;o(Y(r))}return r}return Ne(n,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=n.getInternalHooks,i=r(_f).registerField;this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}},{key:`componentWillUnmount`,value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:`reRender`,value:function(){this.mounted&&this.forceUpdate()}},{key:`render`,value:function(){var e=this.state.resetCount,t=this.props.children,n=this.getOnlyChild(t),r=n.child,i=n.isFunction,o;return i?o=r:a.isValidElement(r)?o=a.cloneElement(r,this.getControlled(r.props)):(S(!r,"`children` of Field is not validate ReactElement."),o=r),a.createElement(a.Fragment,{key:e},o)}}]),n}(a.Component);E(zp,`contextType`,yf),E(zp,`defaultProps`,{trigger:`onChange`,valuePropName:`value`});function Bp(e){var t=e.name,n=Ct(e,Ip),r=a.useContext(yf),i=a.useContext(bf),s=t===void 0?void 0:kp(t),c=n.isListField??!!i,l=`keep`;return c||(l=`_${(s||[]).join(`_`)}`),a.createElement(zp,o({key:l,name:s,isListField:c},n,{fieldContext:r}))}function Vp(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,s=e.isListField,c=a.useContext(yf),l=a.useContext(bf),u=a.useRef({keys:[],id:0}).current,d=a.useMemo(function(){var e=kp(c.prefixName)||[];return[].concat(X(e),X(kp(t)))},[c.prefixName,t]),f=a.useMemo(function(){return O(O({},c),{},{prefixName:d})},[c,d]),p=a.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);return typeof r==`function`?a.createElement(bf.Provider,{value:p},a.createElement(yf.Provider,{value:f},a.createElement(Bp,{name:[],shouldUpdate:function(e,t,n){return n.source===`internal`?!1:e!==t},rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:s??!!l},function(e,t){var n=e.value,i=n===void 0?[]:n,a=e.onChange,o=c.getFieldValue,s=function(){return o(d||[])||[]},l={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(X(u.keys.slice(0,t)),[u.id],X(u.keys.slice(t))),a([].concat(X(n.slice(0,t)),[e],X(n.slice(t))))):(u.keys=[].concat(X(u.keys),[u.id]),a([].concat(X(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),a(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||(u.keys=Fp(u.keys,e,t),a(Fp(n,e,t)))}}},f=i||[];return Array.isArray(f)||(f=[]),r(f.map(function(e,t){var n=u.keys[t];return n===void 0&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}}),l,t)}))):(S(!1,`Form.List only accepts function as children.`),null)}function Hp(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(e,o){e.catch(function(e){return t=!0,e}).then(function(e){--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Up=`__@field_split__`;function Wp(e){return e.map(function(e){return`${s(e)}:${e}`}).join(Up)}var Gp=function(){function e(){je(this,e),E(this,`kvs`,new Map)}return Ne(e,[{key:`set`,value:function(e,t){this.kvs.set(Wp(e),t)}},{key:`get`,value:function(e){return this.kvs.get(Wp(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(Wp(e))}},{key:`map`,value:function(e){return X(this.kvs.entries()).map(function(t){var n=Z(t,2),r=n[0],i=n[1];return e({key:r.split(Up).map(function(e){var t=Z(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return n===`number`?Number(r):r}),value:i})})}},{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}(),Kp=[`name`],qp=Ne(function e(t){var n=this;je(this,e),E(this,`formHooked`,!1),E(this,`forceRootUpdate`,void 0),E(this,`subscribable`,!0),E(this,`store`,{}),E(this,`fieldEntities`,[]),E(this,`initialValues`,{}),E(this,`callbacks`,{}),E(this,`validateMessages`,null),E(this,`preserve`,null),E(this,`lastValidatePromise`,null),E(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}}),E(this,`getInternalHooks`,function(e){return e===`RC_FORM_INTERNAL_HOOKS`?(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}):(S(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),E(this,`useSubscribe`,function(e){n.subscribable=e}),E(this,`prevWithoutPreserves`,null),E(this,`setInitialValues`,function(e,t){if(n.initialValues=e||{},t){var r,i=Lr(e,n.store);(r=n.prevWithoutPreserves)==null||r.map(function(t){var n=t.key;i=Nr(i,n,jr(e,n))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),E(this,`destroyForm`,function(e){if(e)n.updateStore({});else{var t=new Gp;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),E(this,`getInitialValue`,function(e){var t=jr(n.initialValues,e);return e.length?Lr(t):t}),E(this,`setCallbacks`,function(e){n.callbacks=e}),E(this,`setValidateMessages`,function(e){n.validateMessages=e}),E(this,`setPreserve`,function(e){n.preserve=e}),E(this,`watchList`,[]),E(this,`registerWatch`,function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),E(this,`notifyWatch`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),E(this,`timeoutId`,null),E(this,`warningUnhooked`,function(){}),E(this,`updateStore`,function(e){n.store=e}),E(this,`getFieldEntities`,function(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),E(this,`getFieldsMap`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=new Gp;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),E(this,`getFieldEntitiesForNamePathList`,function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=kp(e);return t.get(n)||{INVALIDATE_NAME_PATH:kp(e)}})}),E(this,`getFieldsValue`,function(e,t){n.warningUnhooked();var r,i,a;if(e===!0||Array.isArray(e)?(r=e,i=t):e&&s(e)===`object`&&(a=e.strict,i=e.filter),r===!0&&!i)return n.store;var o=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[];return o.forEach(function(e){var t,n,o=`INVALIDATE_NAME_PATH`in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){var s,l;if((s=(l=e).isList)!=null&&s.call(l))return}else if(!r&&(t=(n=e).isListField)!=null&&t.call(n))return;if(!i)c.push(o);else{var u=`getMeta`in e?e.getMeta():null;i(u)&&c.push(o)}}),Ap(n.store,c.map(kp))}),E(this,`getFieldValue`,function(e){n.warningUnhooked();var t=kp(e);return jr(n.store,t)}),E(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:kp(e[n]),errors:[],warnings:[]}})}),E(this,`getFieldError`,function(e){n.warningUnhooked();var t=kp(e);return n.getFieldsError([t])[0].errors}),E(this,`getFieldWarning`,function(e){n.warningUnhooked();var t=kp(e);return n.getFieldsError([t])[0].warnings}),E(this,`isFieldsTouched`,function(){n.warningUnhooked();var e=[...arguments],t=e[0],r=e[1],i,a=!1;e.length===0?i=null:e.length===1?Array.isArray(t)?(i=t.map(kp),a=!1):(i=null,a=t):(i=t.map(kp),a=r);var o=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!i)return a?o.every(function(e){return s(e)||e.isList()}):o.some(s);var c=new Gp;i.forEach(function(e){c.set(e,[])}),o.forEach(function(e){var t=e.getNamePath();i.forEach(function(n){n.every(function(e,n){return t[n]===e})&&c.update(n,function(t){return[].concat(X(t),[e])})})});var l=function(e){return e.some(s)},u=c.map(function(e){return e.value});return a?u.every(l):u.some(l)}),E(this,`isFieldTouched`,function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),E(this,`isFieldsValidating`,function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(kp);return t.some(function(e){return jp(r,e.getNamePath())&&e.isFieldValidating()})}),E(this,`isFieldValidating`,function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),E(this,`resetWithFieldInitialValue`,function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=new Gp,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(n!==void 0){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});var i=function(r){r.forEach(function(r){if(r.props.initialValue!==void 0){var i=r.getNamePath();if(n.getInitialValue(i)!==void 0)S(!1,`Form already set 'initialValues' with path '${i.join(`.`)}'. Field can not overwrite it.`);else{var a=t.get(i);if(a&&a.size>1)S(!1,`Multiple Field with path '${i.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(a){var o=n.getFieldValue(i);!r.isListField()&&(!e.skipExist||o===void 0)&&n.updateStore(Nr(n.store,i,X(a)[0].value))}}}})},a;e.entities?a=e.entities:e.namePathList?(a=[],e.namePathList.forEach(function(e){var n=t.get(e);if(n){var r;(r=a).push.apply(r,X(X(n).map(function(e){return e.entity})))}})):a=r,i(a)}),E(this,`resetFields`,function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore(Lr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:`reset`}),n.notifyWatch();return}var r=e.map(kp);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Nr(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:`reset`}),n.notifyWatch(r)}),E(this,`setFields`,function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var i=e.name,a=Ct(e,Kp),o=kp(i);r.push(o),`value`in a&&n.updateStore(Nr(n.store,o,a.value)),n.notifyObservers(t,[o],{type:`setField`,data:e})}),n.notifyWatch(r)}),E(this,`getFields`,function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=O(O({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),E(this,`initEntityValue`,function(e){var t=e.props.initialValue;if(t!==void 0){var r=e.getNamePath();jr(n.store,r)===void 0&&n.updateStore(Nr(n.store,r,t))}}),E(this,`isMergedPreserve`,function(e){return(e===void 0?n.preserve:e)??!0}),E(this,`registerField`,function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),e.props.initialValue!==void 0){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(i)&&(!r||a.length>1)){var o=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==o&&n.fieldEntities.every(function(e){return!Mp(e.getNamePath(),t)})){var s=n.store;n.updateStore(Nr(s,t,o,!0)),n.notifyObservers(s,[t],{type:`remove`}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}}),E(this,`dispatch`,function(e){switch(e.type){case`updateValue`:var t=e.namePath,r=e.value;n.updateValue(t,r);break;case`validateField`:var i=e.namePath,a=e.triggerName;n.validateFields([i],{triggerName:a});break;default:}}),E(this,`notifyObservers`,function(e,t,r){if(n.subscribable){var i=O(O({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){var r=n.onStoreChange;r(e,t,i)})}else n.forceRootUpdate()}),E(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(X(r))}),r}),E(this,`updateValue`,function(e,t){var r=kp(e),i=n.store;n.updateStore(Nr(n.store,r,t)),n.notifyObservers(i,[r],{type:`valueUpdate`,source:`internal`}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(i,r),o=n.callbacks.onValuesChange;o&&o(Ap(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(X(a)))}),E(this,`setFieldsValue`,function(e){n.warningUnhooked();var t=n.store;if(e){var r=Lr(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),n.notifyWatch()}),E(this,`setFieldValue`,function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),E(this,`getDependencyChildrenFields`,function(e){var t=new Set,r=[],i=new Gp;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=kp(t);i.update(n,function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return t.add(e),t})})}),(function e(n){(i.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}})})(e),r}),E(this,`triggerOnFieldsChange`,function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var a=new Gp;t.forEach(function(e){var t=e.name,n=e.errors;a.set(t,n)}),i.forEach(function(e){e.errors=a.get(e.name)||e.errors})}var o=i.filter(function(t){var n=t.name;return jp(e,n)});o.length&&r(o,i)}}),E(this,`validateFields`,function(e,t){n.warningUnhooked();var r,i;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(r=e,i=t):i=e;var a=!!r,o=a?r.map(kp):[],s=[],c=String(Date.now()),l=new Set,u=i||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(a||o.push(e.getNamePath()),!(!e.props.rules||!e.props.rules.length)&&!(f&&!e.isFieldDirty())){var t=e.getNamePath();if(l.add(t.join(c)),!a||jp(o,t,d)){var r=e.validateRules(O({validateMessages:O(O({},vp),n.validateMessages)},i));s.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],i=[];return(n=e.forEach)==null||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,X(n)):r.push.apply(r,X(n))}),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}}))}}});var p=Hp(s);n.lastValidatePromise=p,p.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 m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==p})});m.catch(function(e){return e});var h=o.filter(function(e){return l.has(e.join(c))});return n.triggerOnFieldsChange(h),m}),E(this,`submit`,function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});function Jp(e){var t=a.useRef(),n=Z(a.useState({}),2)[1];return t.current||(e?t.current=e:t.current=new qp(function(){n({})}).getForm()),[t.current]}var Yp=a.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Xp=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,o=a.useContext(Yp),s=a.useRef({});return a.createElement(Yp.Provider,{value:O(O({},o),{},{validateMessages:O(O({},o.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),o.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),o.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=O(O({},s.current),{},E({},e,t))),o.registerForm(e,t)},unregisterForm:function(e){var t=O({},s.current);delete t[e],s.current=t,o.unregisterForm(e)}})},i)},Zp=[`name`,`initialValues`,`fields`,`form`,`preserve`,`children`,`component`,`validateMessages`,`validateTrigger`,`onValuesChange`,`onFieldsChange`,`onFinish`,`onFinishFailed`,`clearOnDestroy`],Qp=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,s=e.form,c=e.preserve,l=e.children,u=e.component,d=u===void 0?`form`:u,f=e.validateMessages,p=e.validateTrigger,m=p===void 0?`onChange`:p,h=e.onValuesChange,g=e.onFieldsChange,_=e.onFinish,v=e.onFinishFailed,y=e.clearOnDestroy,b=Ct(e,Zp),x=a.useRef(null),S=a.useContext(Yp),C=Z(Jp(s),1)[0],w=C.getInternalHooks(_f),T=w.useSubscribe,E=w.setInitialValues,D=w.setCallbacks,k=w.setValidateMessages,A=w.setPreserve,j=w.destroyForm;a.useImperativeHandle(t,function(){return O(O({},C),{},{nativeElement:x.current})}),a.useEffect(function(){return S.registerForm(n,C),function(){S.unregisterForm(n)}},[S,C,n]),k(O(O({},S.validateMessages),f)),D({onValuesChange:h,onFieldsChange:function(e){if(S.triggerFormChange(n,e),g){var t=[...arguments].slice(1);g.apply(void 0,[e].concat(t))}},onFinish:function(e){S.triggerFormFinish(n,e),_&&_(e)},onFinishFailed:v}),A(c);var M=a.useRef(null);E(r,!M.current),M.current||=!0,a.useEffect(function(){return function(){return j(y)}},[]);var N,P=typeof l==`function`;N=P?l(C.getFieldsValue(!0),C):l,T(!P);var F=a.useRef();a.useEffect(function(){Np(F.current||[],i||[])||C.setFields(i||[]),F.current=i},[i,C]);var I=a.useMemo(function(){return O(O({},C),{},{validateTrigger:m})},[C,m]),ee=a.createElement(bf.Provider,{value:null},a.createElement(yf.Provider,{value:I},N));return d===!1?ee:a.createElement(d,o({},b,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),(t=b.onReset)==null||t.call(b,e)}}),ee)};function $p(e){try{return JSON.stringify(e)}catch{return Math.random()}}function em(){var e=[...arguments],t=e[0],n=e[1],r=n===void 0?{}:n,i=Sf(r)?{form:r}:r,o=i.form,s=Z((0,a.useState)(),2),c=s[0],l=s[1],u=(0,a.useMemo)(function(){return $p(c)},[c]),d=(0,a.useRef)(u);d.current=u;var f=(0,a.useContext)(yf),p=o||f,m=p&&p._init,h=kp(t),g=(0,a.useRef)(h);return g.current=h,(0,a.useEffect)(function(){if(m){var e=p.getFieldsValue,n=p.getInternalHooks,r=n(_f).registerWatch,a=function(e,n){var r=i.preserve?n:e;return typeof t==`function`?t(r):jr(r,g.current)},o=r(function(e,t){var n=a(e,t),r=$p(n);d.current!==r&&(d.current=r,l(n))}),s=a(e(),e(!0));return c!==s&&l(s),o}},[m]),c}var tm=a.forwardRef(Qp);tm.FormProvider=Xp,tm.Field=Bp,tm.List=Vp,tm.useForm=Jp,tm.useWatch=em;var nm=a.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),rm=a.createContext(null),im=e=>{let t=dl(e,[`prefixCls`]);return a.createElement(Xp,Object.assign({},t))},am=a.createContext({prefixCls:``}),om=a.createContext({}),sm=({children:e,status:t,override:n})=>{let r=a.useContext(om),i=a.useMemo(()=>{let e=Object.assign({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return a.createElement(om.Provider,{value:i},e)},cm=a.createContext(void 0),lm=e=>{let{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=a.createElement(sm,{override:!0,status:!0},i)),t&&(i=a.createElement(Ol,null,i)),i},um=function(e){if(st()&&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},dm=function(e,t){if(!um(e))return!1;var n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function fm(e,t){return!Array.isArray(e)&&t!==void 0?dm(e,t):um(e)}var pm=()=>st()&&window.document.documentElement,mm=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:o}=e,s=(0,p.default)({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),c=(0,p.default)({[`${t}-circle`]:o===`circle`,[`${t}-square`]:o===`square`,[`${t}-round`]:o===`round`}),l=a.useMemo(()=>typeof i==`number`?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return a.createElement(`span`,{className:(0,p.default)(t,s,c,n),style:Object.assign(Object.assign({},l),r)})},hm=new Dr(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),gm=e=>({height:e,lineHeight:Q(e)}),_m=e=>Object.assign({width:e},gm(e)),vm=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:hm,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),ym=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},gm(e)),bm=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:`inline-block`,verticalAlign:`top`,background:n},_m(r)),[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:Object.assign({},_m(i)),[`${t}${t}-sm`]:Object.assign({},_m(a))}},xm=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n},ym(t,s)),[`${r}-lg`]:Object.assign({},ym(i,s)),[`${r}-sm`]:Object.assign({},ym(a,s))}},Sm=e=>Object.assign({width:e},gm(e)),Cm=e=>{let{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:r,borderRadius:i},Sm(a(n).mul(2).equal())),{[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:Object.assign(Object.assign({},Sm(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}}),[`${t}${t}-circle`]:{borderRadius:`50%`}}},wm=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},Tm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},gm(e)),Em=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Tm(r,s))},wm(e,r,n)),{[`${n}-lg`]:Object.assign({},Tm(i,s))}),wm(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Tm(a,s))}),wm(e,a,`${n}-sm`))},Dm=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:c,controlHeightLG:l,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:h,blockRadius:g,paragraphLiHeight:_,controlHeightXS:v,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},_m(c)),[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:Object.assign({},_m(l)),[`${n}-sm`]:Object.assign({},_m(u))},[`${t}-content`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:h,background:d,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:`100%`,height:_,listStyle:`none`,background:d,borderRadius:g,"+ li":{marginBlockStart:v}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:`inline-block`,width:`auto`},Em(e)),bm(e)),xm(e)),Cm(e)),[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
- ${r},
- ${i} > li,
- ${n},
- ${a},
- ${o},
- ${s}
- `]:Object.assign({},vm(e))}}},Om=So(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return Dm(Ha(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`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),km=e=>{let{prefixCls:t,className:n,rootClassName:r,active:i,shape:o=`circle`,size:s=`default`}=e,{getPrefixCls:c}=a.useContext(ha),l=c(`skeleton`,t),[u,d,f]=Om(l),m=dl(e,[`prefixCls`,`className`]),h=(0,p.default)(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,f);return u(a.createElement(`div`,{className:h},a.createElement(mm,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:s},m))))},Am=e=>{let{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:s=`default`}=e,{getPrefixCls:c}=a.useContext(ha),l=c(`skeleton`,t),[u,d,f]=Om(l),m=dl(e,[`prefixCls`]),h=(0,p.default)(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,d,f);return u(a.createElement(`div`,{className:h},a.createElement(mm,Object.assign({prefixCls:`${l}-button`,size:s},m))))},jm=`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`,Mm=e=>{let{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:s}=a.useContext(ha),c=s(`skeleton`,t),[l,u,d]=Om(c),f=(0,p.default)(c,`${c}-element`,{[`${c}-active`]:o},n,r,u,d);return l(a.createElement(`div`,{className:f},a.createElement(`div`,{className:(0,p.default)(`${c}-image`,n),style:i},a.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${c}-image-svg`},a.createElement(`title`,null,`Image placeholder`),a.createElement(`path`,{d:jm,className:`${c}-image-path`})))))},Nm=e=>{let{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:s=`default`}=e,{getPrefixCls:c}=a.useContext(ha),l=c(`skeleton`,t),[u,d,f]=Om(l),m=dl(e,[`prefixCls`]),h=(0,p.default)(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,d,f);return u(a.createElement(`div`,{className:h},a.createElement(mm,Object.assign({prefixCls:`${l}-input`,size:s},m))))},Pm=e=>{let{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:s}=e,{getPrefixCls:c}=a.useContext(ha),l=c(`skeleton`,t),[u,d,f]=Om(l),m=(0,p.default)(l,`${l}-element`,{[`${l}-active`]:o},d,n,r,f);return u(a.createElement(`div`,{className:m},a.createElement(`div`,{className:(0,p.default)(`${l}-image`,n),style:i},s)))},Fm=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Im=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,o=Array.from({length:i}).map((t,n)=>a.createElement(`li`,{key:n,style:{width:Fm(n,e)}}));return a.createElement(`ul`,{className:(0,p.default)(t,n),style:r},o)},Lm=({prefixCls:e,className:t,width:n,style:r})=>a.createElement(`h3`,{className:(0,p.default)(e,t),style:Object.assign({width:n},r)});function Rm(e){return e&&typeof e==`object`?e:{}}function zm(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function Bm(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function Vm(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var Hm=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:s,avatar:c=!1,title:l=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:h,className:g,style:_}=va(`skeleton`),v=m(`skeleton`,t),[y,b,x]=Om(v);if(n||!(`loading`in e)){let e=!!c,t=!!l,n=!!u,s;if(e){let e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},zm(t,n)),Rm(c));s=a.createElement(`div`,{className:`${v}-header`},a.createElement(mm,Object.assign({},e)))}let m;if(t||n){let r;if(t){let t=Object.assign(Object.assign({prefixCls:`${v}-title`},Bm(e,n)),Rm(l));r=a.createElement(Lm,Object.assign({},t))}let i;if(n){let n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},Vm(e,t)),Rm(u));i=a.createElement(Im,Object.assign({},n))}m=a.createElement(`div`,{className:`${v}-content`},r,i)}let S=(0,p.default)(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:h===`rtl`,[`${v}-round`]:f},g,r,i,b,x);return y(a.createElement(`div`,{className:S,style:Object.assign(Object.assign({},_),o)},s,m))}return s??null};Hm.Button=Am,Hm.Avatar=km,Hm.Input=Nm,Hm.Image=Mm,Hm.Node=Pm;var Um=Hm,Wm=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around":{justifyContent:`space-around`},"&-space-evenly":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},Gm=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},Km=(e,t)=>{let{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let e=i;e>=0;e--)e===0?(a[`${r}${t}-${e}`]={display:`none`},a[`${r}-push-${e}`]={insetInlineStart:`auto`},a[`${r}-pull-${e}`]={insetInlineEnd:`auto`},a[`${r}${t}-push-${e}`]={insetInlineStart:`auto`},a[`${r}${t}-pull-${e}`]={insetInlineEnd:`auto`},a[`${r}${t}-offset-${e}`]={marginInlineStart:0},a[`${r}${t}-order-${e}`]={order:0}):(a[`${r}${t}-${e}`]=[{"--ant-display":`block`,display:`block`},{display:`var(--ant-display)`,flex:`0 0 ${e/i*100}%`,maxWidth:`${e/i*100}%`}],a[`${r}${t}-push-${e}`]={insetInlineStart:`${e/i*100}%`},a[`${r}${t}-pull-${e}`]={insetInlineEnd:`${e/i*100}%`},a[`${r}${t}-offset-${e}`]={marginInlineStart:`${e/i*100}%`},a[`${r}${t}-order-${e}`]={order:e});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},qm=(e,t)=>Km(e,t),Jm=(e,t,n)=>({[`@media (min-width: ${Q(t)})`]:Object.assign({},qm(e,n))}),Ym=()=>({}),Xm=()=>({}),Zm=So(`Grid`,Wm,Ym),Qm=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),$m=So(`Grid`,e=>{let t=Ha(e,{gridColumns:24}),n=Qm(t);return delete n.xs,[Gm(t),qm(t,``),qm(t,`-xs`),Object.keys(n).map(e=>Jm(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},Xm);function eh(e){return t=>a.createElement(zs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(e,Object.assign({},t)))}var th=(e,t,n,r,i)=>eh(o=>{let{prefixCls:s,style:c}=o,l=a.useRef(null),[u,d]=a.useState(0),[f,p]=a.useState(0),[m,h]=Ra(!1,{value:o.open}),{getPrefixCls:g}=a.useContext(ha),_=g(r||`select`,s);a.useEffect(()=>{if(h(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(_)}`:`.${_}-dropdown`,r=l.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[_]);let v=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>l.current});n&&(v=n(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:u,position:`relative`,minWidth:f};return a.createElement(`div`,{ref:l,style:y},a.createElement(e,Object.assign({},v)))}),nh=(function(){if(typeof navigator>`u`||typeof window>`u`)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))}),rh=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,o=e.onMouseDown,s=e.onClick,c=typeof n==`function`?n(r):n;return a.createElement(`span`,{className:t,onMouseDown:function(e){e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?a.createElement(`span`,{className:(0,p.default)(t.split(/\s+/).map(function(e){return`${e}-icon`}))},i):c)},ih=function(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=a.useMemo(function(){if(s(r)===`object`)return r.clearIcon;if(i)return i},[r,i]);return{allowClear:a.useMemo(function(){return!!(!o&&r&&(n.length||c)&&!(l===`combobox`&&c===``))},[r,o,n.length,c,l]),clearIcon:a.createElement(rh,{className:`${e}-clear`,onMouseDown:t,customizeIcon:u},`×`)}},ah=a.createContext(null);function oh(){return a.useContext(ah)}function sh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Z(a.useState(!1),2),n=t[0],r=t[1],i=a.useRef(null),o=function(){window.clearTimeout(i.current)};return a.useEffect(function(){return o},[]),[n,function(t,n){o(),i.current=window.setTimeout(function(){r(t),n&&n()},e)},o]}function ch(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=a.useRef(null),n=a.useRef(null);a.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function lh(e,t,n,r){var i=a.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},a.useEffect(function(){function t(t){var n;if(!((n=i.current)!=null&&n.customizedTrigger)){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&i.current.triggerOpen(!1)}}return window.addEventListener(`mousedown`,t),function(){return window.removeEventListener(`mousedown`,t)}},[])}function uh(e){return e&&![$.ESC,$.SHIFT,$.BACKSPACE,$.TAB,$.WIN_KEY,$.ALT,$.META,$.WIN_KEY_RIGHT,$.CTRL,$.SEMICOLON,$.EQUALS,$.CAPS_LOCK,$.CONTEXT_MENU,$.F1,$.F2,$.F3,$.F4,$.F5,$.F6,$.F7,$.F8,$.F9,$.F10,$.F11,$.F12].includes(e)}var dh=[`prefixCls`,`invalidate`,`item`,`renderItem`,`responsive`,`responsiveDisabled`,`registerSize`,`itemKey`,`className`,`style`,`children`,`display`,`order`,`component`],fh=void 0;function ph(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,s=e.renderItem,c=e.responsive,l=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,f=e.className,m=e.style,h=e.children,g=e.display,_=e.order,v=e.component,y=v===void 0?`div`:v,b=Ct(e,dh),x=c&&!g;function S(e){u(d,e)}a.useEffect(function(){return function(){S(null)}},[]);var C=s&&i!==fh?s(i,{index:_}):h,w;r||(w={opacity:+!x,height:x?0:fh,overflowY:x?`hidden`:fh,order:c?_:fh,pointerEvents:x?`none`:fh,position:x?`absolute`:fh});var T={};x&&(T[`aria-hidden`]=!0);var E=a.createElement(y,o({className:(0,p.default)(!r&&n,f),style:O(O({},w),m)},T,b,{ref:t}),C);return c&&(E=a.createElement(Ge,{onResize:function(e){var t=e.offsetWidth;S(t)},disabled:l},E)),E}var mh=a.forwardRef(ph);mh.displayName=`Item`;function hh(e){if(typeof MessageChannel>`u`)nt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function gh(){var e=a.useRef(null);return function(t){e.current||(e.current=[],hh(function(){(0,f.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function _h(e,t){var n=Z(a.useState(t),2),r=n[0],i=n[1];return[r,Fa(function(t){e(function(){i(t)})})]}var vh=a.createContext(null),yh=[`component`],bh=[`className`],xh=[`className`],Sh=a.forwardRef(function(e,t){var n=a.useContext(vh);if(!n){var r=e.component,i=r===void 0?`div`:r,s=Ct(e,yh);return a.createElement(i,o({},s,{ref:t}))}var c=n.className,l=Ct(n,bh),u=e.className,d=Ct(e,xh);return a.createElement(vh.Provider,{value:null},a.createElement(mh,o({ref:t,className:(0,p.default)(c,u)},l,d)))});Sh.displayName=`RawItem`;var Ch=[`prefixCls`,`data`,`renderItem`,`renderRawItem`,`itemKey`,`itemWidth`,`ssr`,`style`,`className`,`maxCount`,`renderRest`,`renderRawRest`,`prefix`,`suffix`,`component`,`itemComponent`,`onVisibleChange`],wh=`responsive`,Th=`invalidate`;function Eh(e){return`+ ${e.length} ...`}function Dh(e,t){var n=e.prefixCls,r=n===void 0?`rc-overflow`:n,i=e.data,s=i===void 0?[]:i,c=e.renderItem,l=e.renderRawItem,u=e.itemKey,d=e.itemWidth,f=d===void 0?10:d,m=e.ssr,h=e.style,g=e.className,_=e.maxCount,v=e.renderRest,y=e.renderRawRest,b=e.prefix,x=e.suffix,S=e.component,C=S===void 0?`div`:S,w=e.itemComponent,T=e.onVisibleChange,E=Ct(e,Ch),D=m===`full`,k=gh(),A=Z(_h(k,null),2),j=A[0],M=A[1],N=j||0,P=Z(_h(k,new Map),2),F=P[0],I=P[1],ee=Z(_h(k,0),2),L=ee[0],te=ee[1],R=Z(_h(k,0),2),z=R[0],B=R[1],V=Z(_h(k,0),2),H=V[0],U=V[1],W=Z(_h(k,0),2),G=W[0],ne=W[1],K=Z((0,a.useState)(null),2),q=K[0],J=K[1],re=Z((0,a.useState)(null),2),ie=re[0],ae=re[1],oe=a.useMemo(function(){return ie===null&&D?2**53-1:ie||0},[ie,j]),se=Z((0,a.useState)(!1),2),ce=se[0],le=se[1],ue=`${r}-item`,de=Math.max(L,z),fe=_===wh,pe=s.length&&fe,me=_===Th,he=pe||typeof _==`number`&&s.length>_,ge=(0,a.useMemo)(function(){var e=s;return pe?e=j===null&&D?s:s.slice(0,Math.min(s.length,N/f)):typeof _==`number`&&(e=s.slice(0,_)),e},[s,f,j,_,pe]),_e=(0,a.useMemo)(function(){return pe?s.slice(oe+1):s.slice(ge.length)},[s,ge,pe,oe]),ve=(0,a.useCallback)(function(e,t){return typeof u==`function`?u(e):(u&&e?.[u])??t},[u]),ye=(0,a.useCallback)(c||function(e){return e},[c]);function be(e,t,n){ie===e&&(t===void 0||t===q)||(ae(e),n||(le(e<s.length-1),T?.(e)),t!==void 0&&J(t))}function xe(e,t){M(t.clientWidth)}function Se(e,t){I(function(n){var r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function Ce(e,t){B(t),te(z)}function we(e,t){U(t)}function Te(e,t){ne(t)}function Ee(e){return F.get(ve(ge[e],e))}Zt(function(){if(N&&typeof de==`number`&&ge){var e=H+G,t=ge.length,n=t-1;if(!t){be(0,null);return}for(var r=0;r<t;r+=1){var i=Ee(r);if(D&&(i||=0),i===void 0){be(r-1,void 0,!0);break}if(e+=i,n===0&&e<=N||r===n-1&&e+Ee(n)<=N){be(n,null);break}else if(e+de>N){be(r-1,e-i-G+z);break}}x&&Ee(0)+G>N&&J(null)}},[N,F,z,H,G,ve,ge]);var De=ce&&!!_e.length,Oe={};q!==null&&pe&&(Oe={position:`absolute`,left:q,top:0});var ke={prefixCls:ue,responsive:pe,component:w,invalidate:me},Ae=l?function(e,t){var n=ve(e,t);return a.createElement(vh.Provider,{key:n,value:O(O({},ke),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=oe})},l(e,t))}:function(e,t){var n=ve(e,t);return a.createElement(mh,o({},ke,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:Se,display:t<=oe}))},je={order:De?oe:2**53-1,className:`${ue}-rest`,registerSize:Ce,display:De},Me=v||Eh,Ne=y?a.createElement(vh.Provider,{value:O(O({},ke),je)},y(_e)):a.createElement(mh,o({},ke,je),typeof Me==`function`?Me(_e):Me),Pe=a.createElement(C,o({className:(0,p.default)(!me&&r,g),style:h,ref:t},E),b&&a.createElement(mh,o({},ke,{responsive:fe,responsiveDisabled:!pe,order:-1,className:`${ue}-prefix`,registerSize:we,display:!0}),b),ge.map(Ae),he?Ne:null,x&&a.createElement(mh,o({},ke,{responsive:fe,responsiveDisabled:!pe,order:oe,className:`${ue}-suffix`,registerSize:Te,display:!0,style:Oe}),x));return fe?a.createElement(Ge,{onResize:xe,disabled:!pe},Pe):Pe}var Oh=a.forwardRef(Dh);Oh.displayName=`Overflow`,Oh.Item=Sh,Oh.RESPONSIVE=wh,Oh.INVALIDATE=Th;var kh=Oh;function Ah(e,t,n){var r=O(O({},e),n?t:{});return Object.keys(t).forEach(function(n){var i=t[n];typeof i==`function`&&(r[n]=function(){var t,r=[...arguments];return i.apply(void 0,r),(t=e[n])?.call.apply(t,[e].concat(r))})}),r}var jh=[`prefixCls`,`id`,`inputElement`,`autoFocus`,`autoComplete`,`editable`,`activeDescendantId`,`value`,`open`,`attrs`],Mh=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,o=e.autoFocus,s=e.autoComplete,c=e.editable,l=e.activeDescendantId,u=e.value,d=e.open,f=e.attrs,m=Ct(e,jh),h=i||a.createElement(`input`,null),g=h,_=g.ref,v=g.props;return`maxLength`in h.props,h=a.cloneElement(h,O(O(O({type:`search`},Ah(m,v,!0)),{},{id:r,ref:L(t,_),autoComplete:s||`off`,autoFocus:o,className:(0,p.default)(`${n}-selection-search-input`,v?.className),role:`combobox`,"aria-expanded":d||!1,"aria-haspopup":`listbox`,"aria-owns":`${r}_list`,"aria-autocomplete":`list`,"aria-controls":`${r}_list`,"aria-activedescendant":d?l:void 0},f),{},{value:c?u:``,readOnly:!c,unselectable:c?null:`on`,style:O(O({},v.style),{},{opacity:c?null:0})})),h});function Nh(e){return Array.isArray(e)?e:e===void 0?[]:[e]}var Ph=typeof window<`u`&&window.document&&window.document.documentElement;function Fh(e){return e!=null}function Ih(e){return!e&&e!==0}function Lh(e){return[`string`,`number`].includes(s(e))}function Rh(e){var t=void 0;return e&&(Lh(e.title)?t=e.title.toString():Lh(e.label)&&(t=e.label.toString())),t}function zh(e,t){Ph?a.useLayoutEffect(e,t):a.useEffect(e,t)}function Bh(e){return e.key??e.value}var Vh=function(e){e.preventDefault(),e.stopPropagation()},Hh=function(e){var t=e.id,n=e.prefixCls,r=e.values,i=e.open,o=e.searchValue,s=e.autoClearSearchValue,c=e.inputRef,l=e.placeholder,u=e.disabled,d=e.mode,f=e.showSearch,m=e.autoFocus,h=e.autoComplete,g=e.activeDescendantId,_=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,b=e.maxTagTextLength,x=e.maxTagPlaceholder,S=x===void 0?function(e){return`+ ${e.length} ...`}:x,C=e.tagRender,w=e.onToggleOpen,T=e.onRemove,D=e.onInputChange,O=e.onInputPaste,k=e.onInputKeyDown,A=e.onInputMouseDown,j=e.onInputCompositionStart,M=e.onInputCompositionEnd,N=e.onInputBlur,P=a.useRef(null),F=Z((0,a.useState)(0),2),I=F[0],ee=F[1],L=Z((0,a.useState)(!1),2),te=L[0],R=L[1],z=`${n}-selection`,B=i||d===`multiple`&&s===!1||d===`tags`?o:``,V=d===`tags`||d===`multiple`&&s===!1||f&&(i||te);zh(function(){ee(P.current.scrollWidth)},[B]);var H=function(e,t,n,r,i){return a.createElement(`span`,{title:Rh(e),className:(0,p.default)(`${z}-item`,E({},`${z}-item-disabled`,n))},a.createElement(`span`,{className:`${z}-item-content`},t),r&&a.createElement(rh,{className:`${z}-item-remove`,onMouseDown:Vh,onClick:i,customizeIcon:v},`×`))},U=function(e,t,n,r,o,s){return a.createElement(`span`,{onMouseDown:function(e){Vh(e),w(!i)}},C({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!s}))},W=function(e){var t=e.disabled,n=e.label,r=e.value,i=!u&&!t,a=n;if(typeof b==`number`&&(typeof n==`string`||typeof n==`number`)){var o=String(a);o.length>b&&(a=`${o.slice(0,b)}...`)}var s=function(t){t&&t.stopPropagation(),T(e)};return typeof C==`function`?U(r,a,t,i,s):H(e,a,t,i,s)},G=function(e){if(!r.length)return null;var t=typeof S==`function`?S(e):S;return typeof C==`function`?U(void 0,t,!1,!1,void 0,!0):H({title:t},t,!1)},ne=a.createElement(`div`,{className:`${z}-search`,style:{width:I},onFocus:function(){R(!0)},onBlur:function(){R(!1)}},a.createElement(Mh,{ref:c,open:i,prefixCls:n,id:t,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:V,activeDescendantId:g,value:B,onKeyDown:k,onMouseDown:A,onChange:D,onPaste:O,onCompositionStart:j,onCompositionEnd:M,onBlur:N,tabIndex:_,attrs:hc(e,!0)}),a.createElement(`span`,{ref:P,className:`${z}-search-mirror`,"aria-hidden":!0},B,`\xA0`)),K=a.createElement(kh,{prefixCls:`${z}-overflow`,data:r,renderItem:W,renderRest:G,suffix:ne,itemKey:Bh,maxCount:y});return a.createElement(`span`,{className:`${z}-wrap`},K,!r.length&&!B&&a.createElement(`span`,{className:`${z}-placeholder`},l))},Uh=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,s=e.autoFocus,c=e.autoComplete,l=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,_=e.activeValue,v=e.maxLength,y=e.onInputKeyDown,b=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,w=e.onInputCompositionEnd,T=e.onInputBlur,E=e.title,D=Z(a.useState(!1),2),O=D[0],k=D[1],A=u===`combobox`,j=A||h,M=f[0],N=g||``;A&&_&&!O&&(N=_),a.useEffect(function(){A&&k(!1)},[A,_]);var P=u!==`combobox`&&!d&&!h?!1:!!N,F=E===void 0?Rh(M):E,I=a.useMemo(function(){return M?null:a.createElement(`span`,{className:`${n}-selection-placeholder`,style:P?{visibility:`hidden`}:void 0},p)},[M,P,p,n]);return a.createElement(`span`,{className:`${n}-selection-wrap`},a.createElement(`span`,{className:`${n}-selection-search`},a.createElement(Mh,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:o,autoFocus:s,autoComplete:c,editable:j,activeDescendantId:l,value:N,onKeyDown:y,onMouseDown:b,onChange:function(e){k(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:w,onBlur:T,tabIndex:m,attrs:hc(e,!0),maxLength:A?v:void 0})),!A&&M?a.createElement(`span`,{className:`${n}-selection-item`,title:F,style:P?{visibility:`hidden`}:void 0},M.label):null,I)},Wh=a.forwardRef(function(e,t){var n=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=e.prefixCls,s=e.open,c=e.mode,l=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,h=e.onSearchSubmit,g=e.onToggleOpen,_=e.onInputKeyDown,v=e.onInputBlur,y=e.domRef;a.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var b=Z(ch(0),2),x=b[0],S=b[1],C=function(e){var t=e.which,i=n.current instanceof HTMLTextAreaElement;!i&&s&&(t===$.UP||t===$.DOWN)&&e.preventDefault(),_&&_(e),t===$.ENTER&&c===`tags`&&!r.current&&!s&&h?.(e.target.value),!(i&&!s&&~[$.UP,$.DOWN,$.LEFT,$.RIGHT].indexOf(t))&&uh(t)&&g(!0)},w=function(){S(!0)},T=(0,a.useRef)(null),E=function(e){m(e,!0,r.current)!==!1&&g(!0)},D=function(){r.current=!0},O=function(e){r.current=!1,c!==`combobox`&&E(e.target.value)},k=function(e){var t=e.target.value;if(u&&T.current&&/[\r\n]/.test(T.current)){var n=T.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(n,T.current)}T.current=null,E(t)},A=function(e){T.current=e.clipboardData?.getData(`text`)||``},j=function(e){e.target!==n.current&&(document.body.style.msTouchAction===void 0?n.current.focus():setTimeout(function(){n.current.focus()}))},M=function(e){var t=x();e.target!==n.current&&!t&&!(c===`combobox`&&d)&&e.preventDefault(),(c!==`combobox`&&(!l||!t)||!s)&&(s&&p!==!1&&m(``,!0,!1),g())},N={inputRef:n,onInputKeyDown:C,onInputMouseDown:w,onInputChange:k,onInputPaste:A,onInputCompositionStart:D,onInputCompositionEnd:O,onInputBlur:v},P=c===`multiple`||c===`tags`?a.createElement(Hh,o({},e,N)):a.createElement(Uh,o({},e,N));return a.createElement(`div`,{ref:y,className:`${i}-selector`,onClick:j,onMouseDown:M},f&&a.createElement(`div`,{className:`${i}-prefix`},f),P)});function Gh(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},s=o.className,c=o.content,l=i.x,u=l===void 0?0:l,d=i.y,f=d===void 0?0:d,m=a.useRef();if(!n||!n.points)return null;var h={position:`absolute`};if(n.autoArrow!==!1){var g=n.points[0],_=n.points[1],v=g[0],y=g[1],b=_[0],x=_[1];v===b||![`t`,`b`].includes(v)?h.top=f:v===`t`?h.top=0:h.bottom=0,y===x||![`l`,`r`].includes(y)?h.left=u:y===`l`?h.left=0:h.right=0}return a.createElement(`div`,{ref:m,className:(0,p.default)(`${t}-arrow`,s),style:h},c)}function Kh(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,s=e.motion;return i?a.createElement(Cs,o({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return a.createElement(`div`,{style:{zIndex:r},className:(0,p.default)(`${t}-mask`,n)})}):null}var qh=a.memo(function(e){return e.children},function(e,t){return t.cache}),Jh=a.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,s=e.style,c=e.target,l=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,m=e.onClick,h=e.mask,g=e.arrow,_=e.arrowPos,v=e.align,y=e.motion,b=e.maskMotion,x=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,w=e.portal,T=e.zIndex,E=e.onMouseEnter,D=e.onMouseLeave,k=e.onPointerEnter,A=e.onPointerDownCapture,j=e.ready,M=e.offsetX,N=e.offsetY,P=e.offsetR,F=e.offsetB,I=e.onAlign,ee=e.onPrepare,te=e.stretch,R=e.targetWidth,z=e.targetHeight,B=typeof n==`function`?n():n,V=u||d,H=S?.length>0,U=Z(a.useState(!S||!H),2),W=U[0],G=U[1];if(Zt(function(){!W&&H&&c&&G(!0)},[W,H,c]),!W)return null;var ne=`auto`,K={left:`-1000vw`,top:`-1000vh`,right:ne,bottom:ne};if(j||!u){var q=v.points,J=v.dynamicInset||v._experimental?.dynamicInset,re=J&&q[0][1]===`r`,ie=J&&q[0][0]===`b`;re?(K.right=P,K.left=ne):(K.left=M,K.right=ne),ie?(K.bottom=F,K.top=ne):(K.top=N,K.bottom=ne)}var ae={};return te&&(te.includes(`height`)&&z?ae.height=z:te.includes(`minHeight`)&&z&&(ae.minHeight=z),te.includes(`width`)&&R?ae.width=R:te.includes(`minWidth`)&&R&&(ae.minWidth=R)),u||(ae.pointerEvents=`none`),a.createElement(w,{open:x||V,getContainer:S&&function(){return S(c)},autoDestroy:C},a.createElement(Kh,{prefixCls:i,open:u,zIndex:T,mask:h,motion:b}),a.createElement(Ge,{onResize:I,disabled:!u},function(e){return a.createElement(Cs,o({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:`${i}-hidden`},y,{onAppearPrepare:ee,onEnterPrepare:ee,visible:u,onVisibleChanged:function(e){var t;y==null||(t=y.onVisibleChanged)==null||t.call(y,e),l(e)}}),function(n,o){var c=n.className,l=n.style,d=(0,p.default)(i,c,r);return a.createElement(`div`,{ref:L(e,t,o),className:d,style:O(O(O(O({"--arrow-x":`${_.x||0}px`,"--arrow-y":`${_.y||0}px`},K),ae),l),{},{boxSizing:`border-box`,zIndex:T},s),onMouseEnter:E,onMouseLeave:D,onPointerEnter:k,onClick:m,onPointerDownCapture:A},g&&a.createElement(Gh,{prefixCls:i,arrow:g,arrowPos:_,align:v}),a.createElement(qh,{cache:!u&&!f},B))})}))}),Yh=a.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=R(n),o=te(a.useCallback(function(e){ee(t,r?r(e):e)},[r]),V(n));return i?a.cloneElement(n,{ref:o}):n}),Xh=a.createContext(null);function Zh(e){return e?Array.isArray(e)?e:[e]:[]}function Qh(e,t,n,r){return a.useMemo(function(){var i=Zh(n??t),a=Zh(r??t),o=new Set(i),s=new Set(a);return e&&(o.has(`hover`)&&(o.delete(`hover`),o.add(`click`)),s.has(`hover`)&&(s.delete(`hover`),s.add(`click`))),[o,s]},[e,t,n,r])}function $h(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return arguments.length>2&&arguments[2]?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function eg(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var s=a[o];if($h(e[s]?.points,i,r))return`${t}-placement-${s}`}return``}function tg(e,t,n,r){return t||(n?{motionName:`${e}-${n}`}:r?{motionName:r}:null)}function ng(e){return e.ownerDocument.defaultView}function rg(e){for(var t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];n;){var i=ng(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function ig(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ag(e){return ig(parseFloat(e),0)}function og(e,t){var n=O({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=ng(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,a=t.borderTopWidth,o=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ag(a),h=ag(o),g=ag(s),_=ag(c),v=ig(Math.round(l.width/f*1e3)/1e3),y=ig(Math.round(l.height/u*1e3)/1e3),b=(f-p-g-_)*v,x=(u-d-m-h)*y,S=m*y,C=h*y,w=g*v,T=_*v,E=0,D=0;if(r===`clip`){var O=ag(i);E=O*v,D=O*y}var k=l.x+w-E,A=l.y+S-D,j=k+l.width+2*E-w-T-b,M=A+l.height+2*D-S-C-x;n.left=Math.max(n.left,k),n.top=Math.max(n.top,A),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,M)}}),n}function sg(e){var t=`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:0}`,n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function cg(e,t){var n=Z(t||[],2),r=n[0],i=n[1];return[sg(e.width,r),sg(e.height,i)]}function lg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return[e[0],e[1]]}function ug(e,t){var n=t[0],r=t[1],i,a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2;return i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function dg(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(``)}function fg(e,t,n,r,i,o,s){var c=Z(a.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),l=c[0],u=c[1],d=a.useRef(0),f=a.useMemo(function(){return t?rg(t):[]},[t]),p=a.useRef({});e||function(){p.current={}}();var m=Fa(function(){if(t&&n&&e){var a,c,l=t,d=l.ownerDocument,m=ng(l),h=m.getComputedStyle(l).position,g=l.style.left,_=l.style.top,v=l.style.right,y=l.style.bottom,b=l.style.overflow,x=O(O({},i[r]),o),S=d.createElement(`div`);(a=l.parentElement)==null||a.appendChild(S),S.style.left=`${l.offsetLeft}px`,S.style.top=`${l.offsetTop}px`,S.style.position=h,S.style.height=`${l.offsetHeight}px`,S.style.width=`${l.offsetWidth}px`,l.style.left=`0`,l.style.top=`0`,l.style.right=`auto`,l.style.bottom=`auto`,l.style.overflow=`hidden`;var C;if(Array.isArray(n))C={x:n[0],y:n[1],width:0,height:0};else{var w=n.getBoundingClientRect();w.x=w.x??w.left,w.y=w.y??w.top,C={x:w.x,y:w.y,width:w.width,height:w.height}}var T=l.getBoundingClientRect(),E=m.getComputedStyle(l),D=E.height,A=E.width;T.x=T.x??T.left,T.y=T.y??T.top;var j=d.documentElement,M=j.clientWidth,N=j.clientHeight,P=j.scrollWidth,F=j.scrollHeight,I=j.scrollTop,ee=j.scrollLeft,L=T.height,te=T.width,R=C.height,z=C.width,B={left:0,top:0,right:M,bottom:N},V={left:-ee,top:-I,right:P-ee,bottom:F-I},H=x.htmlRegion,U=`visible`,W=`visibleFirst`;H!==`scroll`&&H!==W&&(H=U);var G=H===W,ne=og(V,f),K=og(B,f),q=H===U?K:ne,J=G?K:q;l.style.left=`auto`,l.style.top=`auto`,l.style.right=`0`,l.style.bottom=`0`;var re=l.getBoundingClientRect();l.style.left=g,l.style.top=_,l.style.right=v,l.style.bottom=y,l.style.overflow=b,(c=l.parentElement)==null||c.removeChild(S);var ie=ig(Math.round(te/parseFloat(A)*1e3)/1e3),ae=ig(Math.round(L/parseFloat(D)*1e3)/1e3);if(ie===0||ae===0||k(n)&&!fl(n))return;var oe=x.offset,se=x.targetOffset,ce=Z(cg(T,oe),2),le=ce[0],ue=ce[1],de=Z(cg(C,se),2),fe=de[0],pe=de[1];C.x-=fe,C.y-=pe;var me=Z(x.points||[],2),he=me[0],ge=me[1],_e=lg(ge),ve=lg(he),ye=ug(C,_e),be=ug(T,ve),xe=O({},x),Se=ye.x-be.x+le,Ce=ye.y-be.y+ue;function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q,r=T.x+e,i=T.y+t,a=r+te,o=i+L,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}var we=e(Se,Ce),Te=e(Se,Ce,K),Ee=ug(C,[`t`,`l`]),De=ug(T,[`t`,`l`]),Oe=ug(C,[`b`,`r`]),ke=ug(T,[`b`,`r`]),Ae=x.overflow||{},je=Ae.adjustX,Me=Ae.adjustY,Ne=Ae.shiftX,Pe=Ae.shiftY,Fe=function(e){return typeof e==`boolean`?e:e>=0},Ie,Le,Y,Re;function mt(){Ie=T.y+Ce,Le=Ie+L,Y=T.x+Se,Re=Y+te}mt();var ze=Fe(Me),Be=ve[0]===_e[0];if(ze&&ve[0]===`t`&&(Le>J.bottom||p.current.bt)){var Ve=Ce;Be?Ve-=L-R:Ve=Ee.y-ke.y-ue;var He=e(Se,Ve),Ue=e(Se,Ve,K);He>we||He===we&&(!G||Ue>=Te)?(p.current.bt=!0,Ce=Ve,ue=-ue,xe.points=[dg(ve,0),dg(_e,0)]):p.current.bt=!1}if(ze&&ve[0]===`b`&&(Ie<J.top||p.current.tb)){var We=Ce;Be?We+=L-R:We=Oe.y-De.y-ue;var Ge=e(Se,We),Ke=e(Se,We,K);Ge>we||Ge===we&&(!G||Ke>=Te)?(p.current.tb=!0,Ce=We,ue=-ue,xe.points=[dg(ve,0),dg(_e,0)]):p.current.tb=!1}var qe=Fe(je),Je=ve[1]===_e[1];if(qe&&ve[1]===`l`&&(Re>J.right||p.current.rl)){var Ye=Se;Je?Ye-=te-z:Ye=Ee.x-ke.x-le;var Xe=e(Ye,Ce),X=e(Ye,Ce,K);Xe>we||Xe===we&&(!G||X>=Te)?(p.current.rl=!0,Se=Ye,le=-le,xe.points=[dg(ve,1),dg(_e,1)]):p.current.rl=!1}if(qe&&ve[1]===`r`&&(Y<J.left||p.current.lr)){var Ze=Se;Je?Ze+=te-z:Ze=Oe.x-De.x-le;var Qe=e(Ze,Ce),$e=e(Ze,Ce,K);Qe>we||Qe===we&&(!G||$e>=Te)?(p.current.lr=!0,Se=Ze,le=-le,xe.points=[dg(ve,1),dg(_e,1)]):p.current.lr=!1}mt();var et=Ne===!0?0:Ne;typeof et==`number`&&(Y<K.left&&(Se-=Y-K.left-le,C.x+z<K.left+et&&(Se+=C.x-K.left+z-et)),Re>K.right&&(Se-=Re-K.right-le,C.x>K.right-et&&(Se+=C.x-K.right+et)));var tt=Pe===!0?0:Pe;typeof tt==`number`&&(Ie<K.top&&(Ce-=Ie-K.top-ue,C.y+R<K.top+tt&&(Ce+=C.y-K.top+R-tt)),Le>K.bottom&&(Ce-=Le-K.bottom-ue,C.y>K.bottom-tt&&(Ce+=C.y-K.bottom+tt)));var nt=T.x+Se,rt=nt+te,it=T.y+Ce,at=it+L,ot=C.x,st=ot+z,ct=C.y,lt=ct+R,ut=(Math.max(nt,ot)+Math.min(rt,st))/2-nt,dt=(Math.max(it,ct)+Math.min(at,lt))/2-it;s?.(t,xe);var ft=re.right-T.x-(Se+T.width),pt=re.bottom-T.y-(Ce+T.height);ie===1&&(Se=Math.floor(Se),ft=Math.floor(ft)),ae===1&&(Ce=Math.floor(Ce),pt=Math.floor(pt)),u({ready:!0,offsetX:Se/ie,offsetY:Ce/ae,offsetR:ft/ie,offsetB:pt/ae,arrowX:ut/ie,arrowY:dt/ae,scaleX:ie,scaleY:ae,align:xe})}}),h=function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&m()})},g=function(){u(function(e){return O(O({},e),{},{ready:!1})})};return Zt(g,[r]),Zt(function(){e||g()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,h]}function pg(e,t,n,r,i){Zt(function(){if(e&&t&&n){var a=t,o=n,s=rg(a),c=rg(o),l=ng(o),u=new Set([l].concat(X(s),X(c)));function e(){r(),i()}return u.forEach(function(t){t.addEventListener(`scroll`,e,{passive:!0})}),l.addEventListener(`resize`,e,{passive:!0}),r(),function(){u.forEach(function(t){t.removeEventListener(`scroll`,e),l.removeEventListener(`resize`,e)})}}},[e,t,n])}function mg(e,t,n,r,i,o,s,c){var l=a.useRef(e);l.current=e;var u=a.useRef(!1);a.useEffect(function(){if(t&&r&&(!i||o)){var e=function(){u.current=!1},a=function(e){var t;l.current&&!s(((t=e.composedPath)==null||(t=t.call(e))==null?void 0:t[0])||e.target)&&!u.current&&c(!1)},d=ng(r);d.addEventListener(`pointerdown`,e,!0),d.addEventListener(`mousedown`,a,!0),d.addEventListener(`contextmenu`,a,!0);var f=Hs(n);return f&&(f.addEventListener(`mousedown`,a,!0),f.addEventListener(`contextmenu`,a,!0)),function(){d.removeEventListener(`pointerdown`,e,!0),d.removeEventListener(`mousedown`,a,!0),d.removeEventListener(`contextmenu`,a,!0),f&&(f.removeEventListener(`mousedown`,a,!0),f.removeEventListener(`contextmenu`,a,!0))}}},[t,n,r,i,o]);function d(){u.current=!0}return d}var hg=`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`.split(`.`);function gg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ff;return a.forwardRef(function(t,n){var r=t.prefixCls,i=r===void 0?`rc-trigger-popup`:r,o=t.children,s=t.action,c=s===void 0?`hover`:s,l=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,m=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,g=t.mouseEnterDelay,_=t.mouseLeaveDelay,v=_===void 0?.1:_,y=t.focusDelay,b=t.blurDelay,x=t.mask,S=t.maskClosable,C=S===void 0?!0:S,w=t.getPopupContainer,T=t.forceRender,E=t.autoDestroy,D=t.destroyPopupOnHide,A=t.popup,j=t.popupClassName,M=t.popupStyle,N=t.popupPlacement,P=t.builtinPlacements,F=P===void 0?{}:P,I=t.popupAlign,ee=t.zIndex,L=t.stretch,te=t.getPopupClassNameFromAlign,R=t.fresh,z=t.alignPoint,B=t.onPopupClick,V=t.onPopupAlign,H=t.arrow,U=t.popupMotion,W=t.maskMotion,G=t.popupTransitionName,ne=t.popupAnimation,K=t.maskTransitionName,q=t.maskAnimation,J=t.className,re=t.getTriggerDOMNode,ie=Ct(t,hg),ae=E||D||!1,oe=Z(a.useState(!1),2),se=oe[0],ce=oe[1];Zt(function(){ce(nh())},[]);var le=a.useRef({}),ue=a.useContext(Xh),de=a.useMemo(function(){return{registerSubPopup:function(e,t){le.current[e]=t,ue?.registerSubPopup(e,t)}}},[ue]),fe=gf(),pe=Z(a.useState(null),2),me=pe[0],he=pe[1],ge=a.useRef(null),_e=Fa(function(e){ge.current=e,k(e)&&me!==e&&he(e),ue?.registerSubPopup(fe,e)}),ve=Z(a.useState(null),2),ye=ve[0],be=ve[1],xe=a.useRef(null),Se=Fa(function(e){k(e)&&ye!==e&&(be(e),xe.current=e)}),Ce=a.Children.only(o),we=Ce?.props||{},Te={},Ee=Fa(function(e){var t=ye;return t?.contains(e)||Hs(t)?.host===e||e===t||me?.contains(e)||Hs(me)?.host===e||e===me||Object.values(le.current).some(function(t){return t?.contains(e)||e===t})}),De=tg(i,U,ne,G),Oe=tg(i,W,q,K),ke=Z(a.useState(f||!1),2),Ae=ke[0],je=ke[1],Me=d??Ae,Ne=Fa(function(e){d===void 0&&je(e)});Zt(function(){je(d||!1)},[d]);var Pe=a.useRef(Me);Pe.current=Me;var Fe=a.useRef([]);Fe.current=[];var Ie=Fa(function(e){Ne(e),(Fe.current[Fe.current.length-1]??Me)!==e&&(Fe.current.push(e),m?.(e))}),Le=a.useRef(),Y=function(){clearTimeout(Le.current)},Re=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Y(),t===0?Ie(e):Le.current=setTimeout(function(){Ie(e)},t*1e3)};a.useEffect(function(){return Y},[]);var ze=Z(a.useState(!1),2),Be=ze[0],Ve=ze[1];Zt(function(e){(!e||Me)&&Ve(!0)},[Me]);var He=Z(a.useState(null),2),Ue=He[0],We=He[1],Ke=Z(a.useState(null),2),qe=Ke[0],Je=Ke[1],Ye=function(e){Je([e.clientX,e.clientY])},Xe=Z(fg(Me,me,z&&qe!==null?qe:ye,N,F,I,V),11),X=Xe[0],Ze=Xe[1],Qe=Xe[2],$e=Xe[3],et=Xe[4],tt=Xe[5],nt=Xe[6],rt=Xe[7],it=Xe[8],at=Xe[9],ot=Xe[10],st=Z(Qh(se,c,l,u),2),ct=st[0],lt=st[1],ut=ct.has(`click`),dt=lt.has(`click`)||lt.has(`contextMenu`),ft=Fa(function(){Be||ot()});pg(Me,ye,me,ft,function(){Pe.current&&z&&dt&&Re(!1)}),Zt(function(){ft()},[qe,N]),Zt(function(){Me&&!(F!=null&&F[N])&&ft()},[JSON.stringify(I)]);var pt=a.useMemo(function(){return(0,p.default)(eg(F,i,at,z),te?.(at))},[at,te,F,i,z]);a.useImperativeHandle(n,function(){return{nativeElement:xe.current,popupElement:ge.current,forceAlign:ft}});var mt=Z(a.useState(0),2),ht=mt[0],gt=mt[1],_t=Z(a.useState(0),2),vt=_t[0],yt=_t[1],bt=function(){if(L&&ye){var e=ye.getBoundingClientRect();gt(e.width),yt(e.height)}},xt=function(){bt(),ft()},St=function(e){Ve(!1),ot(),h?.(e)},wt=function(){return new Promise(function(e){bt(),We(function(){return e})})};Zt(function(){Ue&&(ot(),Ue(),We(null))},[Ue]);function Tt(e,t,n,r){Te[e]=function(i){var a;r?.(i),Re(t,n);var o=[...arguments].slice(1);(a=we[e])==null||a.call.apply(a,[we,i].concat(o))}}(ut||dt)&&(Te.onClick=function(e){var t;Pe.current&&dt?Re(!1):!Pe.current&&ut&&(Ye(e),Re(!0));var n=[...arguments].slice(1);(t=we.onClick)==null||t.call.apply(t,[we,e].concat(n))});var Et=mg(Me,dt,ye,me,x,C,Ee,Re),Dt=ct.has(`hover`),Ot=lt.has(`hover`),kt,At;Dt&&(Tt(`onMouseEnter`,!0,g,function(e){Ye(e)}),Tt(`onPointerEnter`,!0,g,function(e){Ye(e)}),kt=function(e){(Me||Be)&&me!=null&&me.contains(e.target)&&Re(!0,g)},z&&(Te.onMouseMove=function(e){var t;(t=we.onMouseMove)==null||t.call(we,e)})),Ot&&(Tt(`onMouseLeave`,!1,v),Tt(`onPointerLeave`,!1,v),At=function(){Re(!1,v)}),ct.has(`focus`)&&Tt(`onFocus`,!0,y),lt.has(`focus`)&&Tt(`onBlur`,!1,b),ct.has(`contextMenu`)&&(Te.onContextMenu=function(e){var t;Pe.current&<.has(`contextMenu`)?Re(!1):(Ye(e),Re(!0)),e.preventDefault();var n=[...arguments].slice(1);(t=we.onContextMenu)==null||t.call.apply(t,[we,e].concat(n))}),J&&(Te.className=(0,p.default)(we.className,J));var jt=a.useRef(!1);jt.current||=T||Me||Be;var Mt=O(O({},we),Te),Nt={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(function(e){ie[e]&&(Nt[e]=function(){var t,n=[...arguments];(t=Mt[e])==null||t.call.apply(t,[Mt].concat(n)),ie[e].apply(ie,n)})});var Pt=a.cloneElement(Ce,O(O({},Mt),Nt)),Ft={x:tt,y:nt},It=H?O({},H===!0?{}:H):null;return a.createElement(a.Fragment,null,a.createElement(Ge,{disabled:!Me,ref:Se,onResize:xt},a.createElement(Yh,{getTriggerDOMNode:re},Pt)),jt.current&&a.createElement(Xh.Provider,{value:de},a.createElement(Jh,{portal:e,ref:_e,prefixCls:i,popup:A,className:(0,p.default)(j,pt),style:M,target:ye,onMouseEnter:kt,onMouseLeave:At,onPointerEnter:kt,zIndex:ee,open:Me,keepDom:Be,fresh:R,onClick:B,onPointerDownCapture:Et,mask:x,motion:De,maskMotion:Oe,onVisibleChanged:St,onPrepare:wt,forceRender:T,autoDestroy:ae,getPopupContainer:w,align:at,arrow:It,arrowPos:Ft,ready:X,offsetX:Ze,offsetY:Qe,offsetR:$e,offsetB:et,onAlign:ft,stretch:L,targetWidth:ht/rt,targetHeight:vt/it})))})}var _g=gg(ff),vg=[`prefixCls`,`disabled`,`visible`,`children`,`popupElement`,`animation`,`transitionName`,`dropdownStyle`,`dropdownClassName`,`direction`,`placement`,`builtinPlacements`,`dropdownMatchSelectWidth`,`dropdownRender`,`dropdownAlign`,`getPopupContainer`,`empty`,`getTriggerDOMNode`,`onPopupVisibleChange`,`onPopupMouseEnter`],yg=function(e){var t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},bg=a.forwardRef(function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,i=e.children,s=e.popupElement,c=e.animation,l=e.transitionName,u=e.dropdownStyle,d=e.dropdownClassName,f=e.direction,m=f===void 0?`ltr`:f,h=e.placement,g=e.builtinPlacements,_=e.dropdownMatchSelectWidth,v=e.dropdownRender,y=e.dropdownAlign,b=e.getPopupContainer,x=e.empty,S=e.getTriggerDOMNode,C=e.onPopupVisibleChange,w=e.onPopupMouseEnter,T=Ct(e,vg),D=`${n}-dropdown`,k=s;v&&(k=v(s));var A=a.useMemo(function(){return g||yg(_)},[g,_]),j=c?`${D}-${c}`:l,M=typeof _==`number`,N=a.useMemo(function(){return M?null:_===!1?`minWidth`:`width`},[_,M]),P=u;M&&(P=O(O({},P),{},{width:_}));var F=a.useRef(null);return a.useImperativeHandle(t,function(){return{getPopupElement:function(){return F.current?.popupElement}}}),a.createElement(_g,o({},T,{showAction:C?[`click`]:[],hideAction:C?[`click`]:[],popupPlacement:h||(m===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:A,prefixCls:D,popupTransitionName:j,popup:a.createElement(`div`,{onMouseEnter:w},k),ref:F,stretch:N,popupAlign:y,popupVisible:r,getPopupContainer:b,popupClassName:(0,p.default)(d,E({},`${D}-empty`,x)),popupStyle:P,getTriggerDOMNode:S,onPopupVisibleChange:C}),i)});function xg(e,t){var n=e.key,r;return`value`in e&&(r=e.value),n??(r===void 0?`rc-index-key-${t}`:r)}function Sg(e){return e!==void 0&&!Number.isNaN(e)}function Cg(e,t){var n=e||{},r=n.label,i=n.value,a=n.options,o=n.groupLabel,s=r||(t?`children`:`label`);return{label:s,value:i||`value`,options:a||`options`,groupLabel:o||s}}function wg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=Cg(n,!1),o=a.label,s=a.value,c=a.options,l=a.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach(function(e){if(t||!(c in e)){var n=e[s];i.push({key:xg(e,i.length),groupOption:t,data:e,label:e[o],value:n})}else{var a=e[l];a===void 0&&r&&(a=e.label),i.push({key:xg(e,i.length),group:!0,data:e,label:a}),u(e[c],!0)}})}return u(e,!1),i}function Tg(e){var t=O({},e);return`props`in t||Object.defineProperty(t,"props",{get:function(){return S(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Eg=function(e,t,n){if(!t||!t.length)return null;var r=!1,i=function e(t,n){var i=Ar(n),a=i[0],o=i.slice(1);if(!a)return[t];var s=t.split(a);return r||=s.length>1,s.reduce(function(t,n){return[].concat(X(t),X(e(n,o)))},[]).filter(Boolean)}(e,t);return r?n===void 0?i:i.slice(0,n):null},Dg=a.createContext(null);function Og(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return a.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,r).map(function(e){var t=e.label,n=e.value;return[`number`,`string`].includes(s(t))?t:n}).join(`, `)}`,n.length>r?`, ...`:null)}var kg=`id.prefixCls.className.showSearch.tagRender.direction.omitDomProps.displayValues.onDisplayValuesChange.emptyOptions.notFoundContent.onClear.mode.disabled.loading.getInputElement.getRawInputElement.open.defaultOpen.onDropdownVisibleChange.activeValue.onActiveValueChange.activeDescendantId.searchValue.autoClearSearchValue.onSearch.onSearchSplit.tokenSeparators.allowClear.prefix.suffixIcon.clearIcon.OptionList.animation.transitionName.dropdownStyle.dropdownClassName.dropdownMatchSelectWidth.dropdownRender.dropdownAlign.placement.builtinPlacements.getPopupContainer.showAction.onFocus.onBlur.onKeyUp.onKeyDown.onMouseDown`.split(`.`),Ag=[`value`,`onChange`,`removeIcon`,`placeholder`,`autoFocus`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`],jg=function(e){return e===`tags`||e===`multiple`},Mg=a.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,s=e.className,c=e.showSearch,l=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,_=g===void 0?`Not Found`:g,v=e.onClear,y=e.mode,b=e.disabled,x=e.loading,S=e.getInputElement,C=e.getRawInputElement,w=e.open,T=e.defaultOpen,D=e.onDropdownVisibleChange,k=e.activeValue,A=e.onActiveValueChange,j=e.activeDescendantId,M=e.searchValue,N=e.autoClearSearchValue,P=e.onSearch,F=e.onSearchSplit,I=e.tokenSeparators,ee=e.allowClear,L=e.prefix,R=e.suffixIcon,z=e.clearIcon,B=e.OptionList,V=e.animation,H=e.transitionName,U=e.dropdownStyle,W=e.dropdownClassName,G=e.dropdownMatchSelectWidth,ne=e.dropdownRender,K=e.dropdownAlign,q=e.placement,J=e.builtinPlacements,re=e.getPopupContainer,ie=e.showAction,ae=ie===void 0?[]:ie,oe=e.onFocus,se=e.onBlur,ce=e.onKeyUp,le=e.onKeyDown,ue=e.onMouseDown,de=Ct(e,kg),fe=jg(y),pe=(c===void 0?fe:c)||y===`combobox`,me=O({},de);Ag.forEach(function(e){delete me[e]}),d?.forEach(function(e){delete me[e]});var he=Z(a.useState(!1),2),ge=he[0],_e=he[1];a.useEffect(function(){_e(nh())},[]);var ve=a.useRef(null),ye=a.useRef(null),be=a.useRef(null),xe=a.useRef(null),Se=a.useRef(null),Ce=a.useRef(!1),we=Z(sh(),3),Te=we[0],Ee=we[1],De=we[2];a.useImperativeHandle(t,function(){return{focus:xe.current?.focus,blur:xe.current?.blur,scrollTo:function(e){return Se.current?.scrollTo(e)},nativeElement:ve.current||ye.current}});var Oe=a.useMemo(function(){if(y!==`combobox`)return M;var e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,y,f]),ke=y===`combobox`&&typeof S==`function`&&S()||null,Ae=typeof C==`function`&&C(),je=te(ye,Ae==null||(n=Ae.props)==null?void 0:n.ref),Me=Z(a.useState(!1),2),Ne=Me[0],Pe=Me[1];Zt(function(){Pe(!0)},[]);var Fe=Z(Ra(!1,{defaultValue:T,value:w}),2),Ie=Fe[0],Le=Fe[1],Y=Ne?Ie:!1,Re=!_&&h;(b||Re&&Y&&y===`combobox`)&&(Y=!1);var ze=Re?!1:Y,Be=a.useCallback(function(e){var t=e===void 0?!Y:e;b||(Le(t),Y!==t&&D?.(t))},[b,Y,Le,D]),Ve=a.useMemo(function(){return(I||[]).some(function(e){return[`
- `,`\r
- `].includes(e)})},[I]),He=a.useContext(Dg)||{},Ue=He.maxCount,We=He.rawValues,Ge=function(e,t,n){if(!(fe&&Sg(Ue)&&We?.size>=Ue)){var r=!0,i=e;A?.(null);var a=Eg(e,I,Sg(Ue)?Ue-We.size:void 0),o=n?null:a;return y!==`combobox`&&o&&(i=``,F?.(o),Be(!1),r=!1),P&&Oe!==i&&P(i,{source:t?`typing`:`effect`}),r}},Ke=function(e){!e||!e.trim()||P(e,{source:`submit`})};a.useEffect(function(){!Y&&!fe&&y!==`combobox`&&Ge(``,!1,!1)},[Y]),a.useEffect(function(){Ie&&b&&Le(!1),b&&!Ce.current&&Ee(!1)},[b]);var qe=Z(ch(),2),Je=qe[0],Ye=qe[1],Xe=a.useRef(!1),Ze=function(e){var t=Je(),n=e.key,r=n===`Enter`;if(r&&(y!==`combobox`&&e.preventDefault(),Y||Be(!0)),Ye(!!Oe),n===`Backspace`&&!t&&fe&&!Oe&&f.length){for(var i=X(f),a=null,o=i.length-1;o>=0;--o){var s=i[o];if(!s.disabled){i.splice(o,1),a=s;break}}a&&m(i,{type:`remove`,values:[a]})}var c=[...arguments].slice(1);if(Y&&(!r||!Xe.current)){var l;r&&(Xe.current=!0),(l=Se.current)==null||l.onKeyDown.apply(l,[e].concat(c))}le?.apply(void 0,[e].concat(c))},Qe=function(e){var t=[...arguments].slice(1);if(Y){var n;(n=Se.current)==null||n.onKeyUp.apply(n,[e].concat(t))}e.key===`Enter`&&(Xe.current=!1),ce?.apply(void 0,[e].concat(t))},$e=function(e){m(f.filter(function(t){return t!==e}),{type:`remove`,values:[e]})},et=function(){Xe.current=!1},tt=a.useRef(!1),nt=function(){Ee(!0),b||(oe&&!tt.current&&oe.apply(void 0,arguments),ae.includes(`focus`)&&Be(!0)),tt.current=!0},rt=function(){Ce.current=!0,Ee(!1,function(){tt.current=!1,Ce.current=!1,Be(!1)}),!b&&(Oe&&(y===`tags`?P(Oe,{source:`submit`}):y===`multiple`&&P(``,{source:`blur`})),se&&se.apply(void 0,arguments))},it=[];a.useEffect(function(){return function(){it.forEach(function(e){return clearTimeout(e)}),it.splice(0,it.length)}},[]);var at=function(e){var t=e.target,n=be.current?.getPopupElement();if(n&&n.contains(t)){var r=setTimeout(function(){var e=it.indexOf(r);if(e!==-1&&it.splice(e,1),De(),!ge&&!n.contains(document.activeElement)){var t;(t=xe.current)==null||t.focus()}});it.push(r)}var i=[...arguments].slice(1);ue?.apply(void 0,[e].concat(i))},ot=Z(a.useState({}),2)[1];function st(){ot({})}var ct;Ae&&(ct=function(e){Be(e)}),lh(function(){return[ve.current,be.current?.getPopupElement()]},ze,Be,!!Ae);var lt=a.useMemo(function(){return O(O({},e),{},{notFoundContent:_,open:Y,triggerOpen:ze,id:r,showSearch:pe,multiple:fe,toggleOpen:Be})},[e,_,ze,Y,r,pe,fe,Be]),ut=!!R||x,dt;ut&&(dt=a.createElement(rh,{className:(0,p.default)(`${i}-arrow`,E({},`${i}-arrow-loading`,x)),customizeIcon:R,customizeIconProps:{loading:x,searchValue:Oe,open:Y,focused:Te,showSearch:pe}}));var ft=ih(i,function(){var e;v?.(),(e=xe.current)==null||e.focus(),m([],{type:`clear`,values:f}),Ge(``,!1,!1)},f,ee,z,b,Oe,y),pt=ft.allowClear,mt=ft.clearIcon,ht=a.createElement(B,{ref:Se}),gt=(0,p.default)(i,s,E(E(E(E(E(E(E(E(E(E({},`${i}-focused`,Te),`${i}-multiple`,fe),`${i}-single`,!fe),`${i}-allow-clear`,ee),`${i}-show-arrow`,ut),`${i}-disabled`,b),`${i}-loading`,x),`${i}-open`,Y),`${i}-customize-input`,ke),`${i}-show-search`,pe)),_t=a.createElement(bg,{ref:be,disabled:b,prefixCls:i,visible:ze,popupElement:ht,animation:V,transitionName:H,dropdownStyle:U,dropdownClassName:W,direction:u,dropdownMatchSelectWidth:G,dropdownRender:ne,dropdownAlign:K,placement:q,builtinPlacements:J,getPopupContainer:re,empty:h,getTriggerDOMNode:function(e){return ye.current||e},onPopupVisibleChange:ct,onPopupMouseEnter:st},Ae?a.cloneElement(Ae,{ref:je}):a.createElement(Wh,o({},e,{domRef:ye,prefixCls:i,inputElement:ke,ref:xe,id:r,prefix:L,showSearch:pe,autoClearSearchValue:N,mode:y,activeDescendantId:j,tagRender:l,values:f,open:Y,onToggleOpen:Be,activeValue:k,searchValue:Oe,onSearch:Ge,onSearchSubmit:Ke,onRemove:$e,tokenWithEnter:Ve,onInputBlur:et}))),vt=Ae?_t:a.createElement(`div`,o({className:gt},me,{ref:ve,onMouseDown:at,onKeyDown:Ze,onKeyUp:Qe,onFocus:nt,onBlur:rt}),a.createElement(Og,{visible:Te&&!Y,values:f}),_t,dt,pt&&mt);return a.createElement(ah.Provider,{value:lt},vt)}),Ng=function(){return null};Ng.isSelectOptGroup=!0;var Pg=function(){return null};Pg.isSelectOption=!0;var Fg=a.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,s=e.children,c=e.prefixCls,l=e.onInnerResize,u=e.innerProps,d=e.rtl,f=e.extra,m={},h={display:`flex`,flexDirection:`column`};return r!==void 0&&(m={height:n,position:`relative`,overflow:`hidden`},h=O(O({},h),{},E(E(E(E(E({transform:`translateY(${r}px)`},d?`marginRight`:`marginLeft`,-i),`position`,`absolute`),`left`,0),`right`,0),`top`,0))),a.createElement(`div`,{style:m},a.createElement(Ge,{onResize:function(e){e.offsetHeight&&l&&l()}},a.createElement(`div`,o({style:h,className:(0,p.default)(E({},`${c}-holder-inner`,c)),ref:t},u),s,f)))});Fg.displayName=`Filler`;function Ig(e){var t=e.children,n=e.setRef,r=a.useCallback(function(e){n(e)},[]);return a.cloneElement(t,{ref:r})}function Lg(e,t,n,r,i,o,s,c){var l=c.getKey;return e.slice(t,n+1).map(function(e,n){var c=s(e,t+n,{style:{width:r},offsetX:i}),u=l(e);return a.createElement(Ig,{key:u,setRef:function(t){return o(e,t)}},c)})}function Rg(e,t,n){var r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);var s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}for(var l=null,u=Math.abs(r-i)!==1,d=0;d<o.length;d+=1){var f=c(a[d]);if(f!==c(o[d])){l=d,u||=f!==c(o[d+1]);break}}return l===null?null:{index:l,multiple:u}}function zg(e,t,n){var r=Z(a.useState(e),2),i=r[0],o=r[1],s=Z(a.useState(null),2),c=s[0],l=s[1];return a.useEffect(function(){var r=Rg(i||[],e||[],t);r?.index!==void 0&&(n?.(r.index),l(e[r.index])),o(e)},[e]),[c]}var Bg=(typeof navigator>`u`?`undefined`:s(navigator))===`object`&&/Firefox/i.test(navigator.userAgent),Vg=(function(e,t,n,r){var i=(0,a.useRef)(!1),o=(0,a.useRef)(null);function s(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var c=(0,a.useRef)({top:e,bottom:t,left:n,right:r});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=r,function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e?t<0&&c.current.left||t>0&&c.current.right:t<0&&c.current.top||t>0&&c.current.bottom;return n&&r?(clearTimeout(o.current),i.current=!1):(!r||i.current)&&s(),!i.current&&r}});function Hg(e,t,n,r,i,o,s){var c=(0,a.useRef)(0),l=(0,a.useRef)(null),u=(0,a.useRef)(null),d=(0,a.useRef)(!1),f=Vg(t,n,r,i);function p(e,t){if(nt.cancel(l.current),!f(!1,t)){var n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;c.current+=t,u.current=t,Bg||n.preventDefault(),l.current=nt(function(){var e=d.current?10:1;s(c.current*e,!1),c.current=0})}}function m(e,t){s(t,!0),Bg||e.preventDefault()}var h=(0,a.useRef)(null),g=(0,a.useRef)(null);function _(t){if(e){nt.cancel(g.current),g.current=nt(function(){h.current=null},2);var n=t.deltaX,r=t.deltaY,i=t.shiftKey,a=n,s=r;(h.current===`sx`||!h.current&&i&&r&&!n)&&(a=r,s=0,h.current=`sx`);var c=Math.abs(a),l=Math.abs(s);h.current===null&&(h.current=o&&c>l?`x`:`y`),h.current===`y`?p(t,s):m(t,a)}}function v(t){e&&(d.current=t.detail===u.current)}return[_,v]}function Ug(e,t,n,r){var i=Z(a.useMemo(function(){return[new Map,[]]},[e,n.id,r]),2),o=i[0],s=i[1];return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i,c=o.get(i),l=o.get(a);if(c===void 0||l===void 0)for(var u=e.length,d=s.length;d<u;d+=1){var f=e[d],p=t(f);o.set(p,d);var m=n.get(p)??r;if(s[d]=(s[d-1]||0)+m,p===i&&(c=d),p===a&&(l=d),c!==void 0&&l!==void 0)break}return{top:s[c-1]||0,bottom:s[l]}}}var Wg=function(){function e(){je(this,e),E(this,`maps`,void 0),E(this,`id`,0),E(this,`diffRecords`,new Map),this.maps=Object.create(null)}return Ne(e,[{key:`set`,value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:`get`,value:function(e){return this.maps[e]}},{key:`resetRecord`,value:function(){this.diffRecords.clear()}},{key:`getRecord`,value:function(){return this.diffRecords}}]),e}();function Gg(e){var t=parseFloat(e);return isNaN(t)?0:t}function Kg(e,t,n){var r=Z(a.useState(0),2),i=r[0],o=r[1],s=(0,a.useRef)(new Map),c=(0,a.useRef)(new Wg),l=(0,a.useRef)(0);function u(){l.current+=1}function d(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var t=function(){var e=!1;s.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,i=getComputedStyle(t),a=i.marginTop,o=i.marginBottom,s=Gg(a),l=Gg(o),u=r+s+l;c.current.get(n)!==u&&(c.current.set(n,u),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&t()})}}function f(r,i){var a=e(r),o=s.current.get(a);i?(s.current.set(a,i),d()):s.current.delete(a),!o!=!i&&(i?t?.(r):n?.(r))}return(0,a.useEffect)(function(){return u},[]),[f,d,c.current,i]}var qg=14/15;function Jg(e,t,n){var r=(0,a.useRef)(!1),i=(0,a.useRef)(0),o=(0,a.useRef)(0),s=(0,a.useRef)(null),c=(0,a.useRef)(null),l,u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),a=Math.ceil(e.touches[0].pageY),s=i.current-t,l=o.current-a,u=Math.abs(s)>Math.abs(l);u?i.current=t:o.current=a;var d=n(u,u?s:l,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval(function(){u?s*=qg:l*=qg;var e=Math.floor(u?s:l);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)},16))}},d=function(){r.current=!1,l()},f=function(e){l(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),o.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener(`touchmove`,u,{passive:!1}),s.current.addEventListener(`touchend`,d,{passive:!0}))};l=function(){s.current&&(s.current.removeEventListener(`touchmove`,u),s.current.removeEventListener(`touchend`,d))},Zt(function(){return e&&t.current.addEventListener(`touchstart`,f,{passive:!0}),function(){var e;(e=t.current)==null||e.removeEventListener(`touchstart`,f),l(),clearInterval(c.current)}},[e])}function Yg(e){return Math.floor(e**.5)}function Xg(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function Zg(e,t,n){a.useEffect(function(){var r=t.current;if(e&&r){var i=!1,a,o,s=function(){nt.cancel(a)},c=function e(){s(),a=nt(function(){n(o),e()})},l=function(){i=!1,s()},u=function(e){if(!(e.target.draggable||e.button!==0)){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},d=function(e){if(i){var t=Xg(e,!1),n=r.getBoundingClientRect(),a=n.top,l=n.bottom;t<=a?(o=-Yg(a-t),c()):t>=l?(o=Yg(t-l),c()):s()}};return r.addEventListener(`mousedown`,u),r.ownerDocument.addEventListener(`mouseup`,l),r.ownerDocument.addEventListener(`mousemove`,d),r.ownerDocument.addEventListener(`dragend`,l),function(){r.removeEventListener(`mousedown`,u),r.ownerDocument.removeEventListener(`mouseup`,l),r.ownerDocument.removeEventListener(`mousemove`,d),r.ownerDocument.removeEventListener(`dragend`,l),s()}}},[e])}var Qg=10;function $g(e,t,n,r,i,o,c,l){var u=a.useRef(),d=Z(a.useState(null),2),f=d[0],p=d[1];return Zt(function(){if(f&&f.times<Qg){if(!e.current){p(function(e){return O({},e)});return}o();var a=f.targetAlign,s=f.originAlign,l=f.index,u=f.offset,d=e.current.clientHeight,m=!1,h=a,g=null;if(d){for(var _=a||s,v=0,y=0,b=0,x=Math.min(t.length-1,l),S=0;S<=x;S+=1){var C=i(t[S]);y=v;var w=n.get(C);b=y+(w===void 0?r:w),v=b}for(var T=_===`top`?u:d-u,E=x;E>=0;--E){var D=i(t[E]),k=n.get(D);if(k===void 0){m=!0;break}if(T-=k,T<=0)break}switch(_){case`top`:g=y-u;break;case`bottom`:g=b-d+u;break;default:var A=e.current.scrollTop,j=A+d;y<A?h=`top`:b>j&&(h=`bottom`)}g!==null&&c(g),g!==f.lastTop&&(m=!0)}m&&p(O(O({},f),{},{times:f.times+1,targetAlign:h,lastTop:g}))}},[f,e.current]),function(e){if(e==null){l();return}if(nt.cancel(u.current),typeof e==`number`)c(e);else if(e&&s(e)===`object`){var n,r=e.align;n=`index`in e?e.index:t.findIndex(function(t){return i(t)===e.key});var a=e.offset;p({times:0,index:n,offset:a===void 0?0:a,originAlign:r})}}}var e_=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,s=e.onStartMove,c=e.onStopMove,l=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,h=e.thumbStyle,g=e.showScrollBar,_=Z(a.useState(!1),2),v=_[0],y=_[1],b=Z(a.useState(null),2),x=b[0],S=b[1],C=Z(a.useState(null),2),w=C[0],T=C[1],D=!r,k=a.useRef(),A=a.useRef(),j=Z(a.useState(g),2),M=j[0],N=j[1],P=a.useRef(),F=function(){g===!0||g===!1||(clearTimeout(P.current),N(!0),P.current=setTimeout(function(){N(!1)},3e3))},I=o-f||0,ee=f-d||0,L=a.useMemo(function(){return i===0||I===0?0:i/I*ee},[i,I,ee]),te=function(e){e.stopPropagation(),e.preventDefault()},R=a.useRef({top:L,dragging:v,pageY:x,startTop:w});R.current={top:L,dragging:v,pageY:x,startTop:w};var z=function(e){y(!0),S(Xg(e,u)),T(R.current.top),s(),e.stopPropagation(),e.preventDefault()};a.useEffect(function(){var e=function(e){e.preventDefault()},t=k.current,n=A.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,z,{passive:!1}),function(){t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,z)}},[]);var B=a.useRef();B.current=I;var V=a.useRef();V.current=ee,a.useEffect(function(){if(v){var e,t=function(t){var n=R.current,r=n.dragging,i=n.pageY,a=n.startTop;nt.cancel(e);var o=k.current.getBoundingClientRect(),s=f/(u?o.width:o.height);if(r){var c=(Xg(t,u)-i)*s,d=a;!D&&u?d-=c:d+=c;var p=B.current,m=V.current,h=m?d/m:0,g=Math.ceil(h*p);g=Math.max(g,0),g=Math.min(g,p),e=nt(function(){l(g,u)})}},n=function(){y(!1),c()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),function(){window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),nt.cancel(e)}}},[v]),a.useEffect(function(){return F(),function(){clearTimeout(P.current)}},[i]),a.useImperativeHandle(t,function(){return{delayHidden:F}});var H=`${n}-scrollbar`,U={position:`absolute`,visibility:M?null:`hidden`},W={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return u?(Object.assign(U,{height:8,left:0,right:0,bottom:0}),Object.assign(W,E({height:`100%`,width:d},D?`left`:`right`,L))):(Object.assign(U,E({width:8,top:0,bottom:0},D?`right`:`left`,0)),Object.assign(W,{width:`100%`,height:d,top:L})),a.createElement(`div`,{ref:k,className:(0,p.default)(H,E(E(E({},`${H}-horizontal`,u),`${H}-vertical`,!u),`${H}-visible`,M)),style:O(O({},U),m),onMouseDown:te,onMouseMove:F},a.createElement(`div`,{ref:A,className:(0,p.default)(`${H}-thumb`,E({},`${H}-thumb-moving`,v)),style:O(O({},W),h),onMouseDown:z}))}),t_=20;function n_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=e/(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,t_),Math.floor(t)}var r_=[`prefixCls`,`className`,`height`,`itemHeight`,`fullHeight`,`style`,`data`,`children`,`itemKey`,`virtual`,`direction`,`scrollWidth`,`component`,`onScroll`,`onVirtualScroll`,`onVisibleChange`,`innerProps`,`extraRender`,`styles`,`showScrollBar`],i_=[],a_={overflowY:`auto`,overflowAnchor:`none`};function o_(e,t){var n=e.prefixCls,r=n===void 0?`rc-virtual-list`:n,i=e.className,c=e.height,l=e.itemHeight,u=e.fullHeight,d=u===void 0?!0:u,m=e.style,h=e.data,g=e.children,_=e.itemKey,v=e.virtual,y=e.direction,b=e.scrollWidth,x=e.component,S=x===void 0?`div`:x,C=e.onScroll,w=e.onVirtualScroll,T=e.onVisibleChange,D=e.innerProps,k=e.extraRender,A=e.styles,j=e.showScrollBar,M=j===void 0?`optional`:j,N=Ct(e,r_),P=a.useCallback(function(e){return typeof _==`function`?_(e):e?.[_]},[_]),F=Z(Kg(P,null,null),4),I=F[0],ee=F[1],L=F[2],te=F[3],R=!!(v!==!1&&c&&l),z=a.useMemo(function(){return Object.values(L.maps).reduce(function(e,t){return e+t},0)},[L.id,L.maps]),B=R&&h&&(Math.max(l*h.length,z)>c||!!b),V=y===`rtl`,H=(0,p.default)(r,E({},`${r}-rtl`,V),i),U=h||i_,W=(0,a.useRef)(),G=(0,a.useRef)(),ne=(0,a.useRef)(),K=Z((0,a.useState)(0),2),q=K[0],J=K[1],re=Z((0,a.useState)(0),2),ie=re[0],ae=re[1],oe=Z((0,a.useState)(!1),2),se=oe[0],ce=oe[1],le=function(){ce(!0)},ue=function(){ce(!1)},de={getKey:P};function fe(e){J(function(t){var n=Ae(typeof e==`function`?e(t):e);return W.current.scrollTop=n,n})}var pe=(0,a.useRef)({start:0,end:U.length}),me=(0,a.useRef)();me.current=Z(zg(U,P),1)[0];var he=a.useMemo(function(){if(!R)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!B)return{scrollHeight:G.current?.offsetHeight||0,start:0,end:U.length-1,offset:void 0};for(var e=0,t,n,r,i=U.length,a=0;a<i;a+=1){var o=U[a],s=P(o),u=L.get(s),d=e+(u===void 0?l:u);d>=q&&t===void 0&&(t=a,n=e),d>q+c&&r===void 0&&(r=a),e=d}return t===void 0&&(t=0,n=0,r=Math.ceil(c/l)),r===void 0&&(r=U.length-1),r=Math.min(r+1,U.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[B,R,q,U,te,c]),ge=he.scrollHeight,_e=he.start,ve=he.end,ye=he.offset;pe.current.start=_e,pe.current.end=ve,a.useLayoutEffect(function(){var e=L.getRecord();if(e.size===1){var t=Array.from(e.keys())[0],n=e.get(t),r=U[_e];if(r&&n===void 0&&P(r)===t){var i=L.get(t)-l;fe(function(e){return e+i})}}L.resetRecord()},[ge]);var be=Z(a.useState({width:0,height:c}),2),xe=be[0],Se=be[1],Ce=function(e){Se({width:e.offsetWidth,height:e.offsetHeight})},we=(0,a.useRef)(),Te=(0,a.useRef)(),Ee=a.useMemo(function(){return n_(xe.width,b)},[xe.width,b]),De=a.useMemo(function(){return n_(xe.height,ge)},[xe.height,ge]),Oe=ge-c,ke=(0,a.useRef)(Oe);ke.current=Oe;function Ae(e){var t=e;return Number.isNaN(ke.current)||(t=Math.min(t,ke.current)),t=Math.max(t,0),t}var je=q<=0,Me=q>=Oe,Ne=ie<=0,Pe=ie>=b,Fe=Vg(je,Me,Ne,Pe),Ie=function(){return{x:V?-ie:ie,y:q}},Le=(0,a.useRef)(Ie()),Y=Fa(function(e){if(w){var t=O(O({},Ie()),e);(Le.current.x!==t.x||Le.current.y!==t.y)&&(w(t),Le.current=t)}});function Re(e,t){var n=e;t?((0,f.flushSync)(function(){ae(n)}),Y()):fe(n)}function ze(e){var t=e.currentTarget.scrollTop;t!==q&&fe(t),C?.(e),Y()}var Be=function(e){var t=e,n=b?b-xe.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Ve=Fa(function(e,t){t?((0,f.flushSync)(function(){ae(function(t){return Be(t+(V?-e:e))})}),Y()):fe(function(t){return t+e})}),He=Z(Hg(R,je,Me,Ne,Pe,!!b,Ve),2),Ue=He[0],We=He[1];Jg(R,W,function(e,t,n,r){var i=r;return Fe(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ue({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),Zg(B,W,function(e){fe(function(t){return t+e})}),Zt(function(){function e(e){var t=je&&e.detail<0,n=Me&&e.detail>0;R&&!t&&!n&&e.preventDefault()}var t=W.current;return t.addEventListener(`wheel`,Ue,{passive:!1}),t.addEventListener(`DOMMouseScroll`,We,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),function(){t.removeEventListener(`wheel`,Ue),t.removeEventListener(`DOMMouseScroll`,We),t.removeEventListener(`MozMousePixelScroll`,e)}},[R,je,Me]),Zt(function(){if(b){var e=Be(ie);ae(e),Y({x:e})}},[xe.width,b]);var Ke=function(){var e,t;(e=we.current)==null||e.delayHidden(),(t=Te.current)==null||t.delayHidden()},qe=$g(W,U,L,l,P,function(){return ee(!0)},fe,Ke);a.useImperativeHandle(t,function(){return{nativeElement:ne.current,getScrollInfo:Ie,scrollTo:function(e){function t(e){return e&&s(e)===`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&ae(Be(e.left)),qe(e.top)):qe(e)}}}),Zt(function(){T&&T(U.slice(_e,ve+1),U)},[_e,ve,U]);var Je=Ug(U,P,L,l),Ye=k?.({start:_e,end:ve,virtual:B,offsetX:ie,offsetY:ye,rtl:V,getSize:Je}),Xe=Lg(U,_e,ve,b,ie,I,g,de),X=null;c&&(X=O(E({},d?`height`:`maxHeight`,c),a_),R&&(X.overflowY=`hidden`,b&&(X.overflowX=`hidden`),se&&(X.pointerEvents=`none`)));var Ze={};return V&&(Ze.dir=`rtl`),a.createElement(`div`,o({ref:ne,style:O(O({},m),{},{position:`relative`}),className:H},Ze,N),a.createElement(Ge,{onResize:Ce},a.createElement(S,{className:`${r}-holder`,style:X,ref:W,onScroll:ze,onMouseEnter:Ke},a.createElement(Fg,{prefixCls:r,height:ge,offsetX:ie,offsetY:ye,scrollWidth:b,onInnerResize:ee,ref:G,innerProps:D,rtl:V,extra:Ye},Xe))),B&&ge>c&&a.createElement(e_,{ref:we,prefixCls:r,scrollOffset:q,scrollRange:ge,rtl:V,onScroll:Re,onStartMove:le,onStopMove:ue,spinSize:De,containerSize:xe.height,style:A?.verticalScrollBar,thumbStyle:A?.verticalScrollBarThumb,showScrollBar:M}),B&&b>xe.width&&a.createElement(e_,{ref:Te,prefixCls:r,scrollOffset:ie,scrollRange:b,rtl:V,onScroll:Re,onStartMove:le,onStopMove:ue,spinSize:Ee,containerSize:xe.width,horizontal:!0,style:A?.horizontalScrollBar,thumbStyle:A?.horizontalScrollBarThumb,showScrollBar:M}))}var s_=a.forwardRef(o_);s_.displayName=`List`;var c_=s_;function l_(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var u_=[`disabled`,`title`,`children`,`style`,`className`];function d_(e){return typeof e==`string`||typeof e==`number`}var f_=a.forwardRef(function(e,t){var n=oh(),r=n.prefixCls,i=n.id,s=n.open,c=n.multiple,l=n.mode,u=n.searchValue,d=n.toggleOpen,f=n.notFoundContent,m=n.onPopupScroll,h=a.useContext(Dg),g=h.maxCount,_=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,x=h.menuItemSelectedIcon,S=h.rawValues,C=h.fieldNames,w=h.virtual,T=h.direction,D=h.listHeight,O=h.listItemHeight,k=h.optionRender,A=`${r}-item`,j=P(function(){return _},[s,_],function(e,t){return t[0]&&e[1]!==t[1]}),M=a.useRef(null),N=a.useMemo(function(){return c&&Sg(g)&&S?.size>=g},[c,g,S?.size]),F=function(e){e.preventDefault()},I=function(e){var t;(t=M.current)==null||t.scrollTo(typeof e==`number`?{index:e}:e)},ee=a.useCallback(function(e){return l===`combobox`?!1:S.has(e)},[l,X(S).toString(),S.size]),L=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=j.length,r=0;r<n;r+=1){var i=(e+r*t+n)%n,a=j[i]||{},o=a.group,s=a.data;if(!o&&!(s!=null&&s.disabled)&&(ee(s.value)||!N))return i}return-1},te=Z(a.useState(function(){return L(0)}),2),R=te[0],z=te[1],B=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;z(e);var n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){v(null,-1,n);return}v(r.value,e,n)};(0,a.useEffect)(function(){B(y===!1?-1:L(0))},[j.length,u]);var V=a.useCallback(function(e){return l===`combobox`?String(e).toLowerCase()===u.toLowerCase():S.has(e)},[l,u,X(S).toString(),S.size]);(0,a.useEffect)(function(){var e=setTimeout(function(){if(!c&&s&&S.size===1){var e=Array.from(S)[0],t=j.findIndex(function(t){var n=t.data;return u?String(n.value).startsWith(u):n.value===e});t!==-1&&(B(t),I(t))}});if(s){var t;(t=M.current)==null||t.scrollTo(void 0)}return function(){return clearTimeout(e)}},[s,u]);var H=function(e){e!==void 0&&b(e,{selected:!S.has(e)}),c||d(!1)};if(a.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case $.N:case $.P:case $.UP:case $.DOWN:var r=0;if(t===$.UP?r=-1:t===$.DOWN?r=1:l_()&&n&&(t===$.N?r=1:t===$.P&&(r=-1)),r!==0){var i=L(R+r,r);I(i),B(i,!0)}break;case $.TAB:case $.ENTER:var a,o=j[R];o&&!(o!=null&&(a=o.data)!=null&&a.disabled)&&!N?H(o.value):H(void 0),s&&e.preventDefault();break;case $.ESC:d(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){I(e)}}}),j.length===0)return a.createElement(`div`,{role:`listbox`,id:`${i}_list`,className:`${A}-empty`,onMouseDown:F},f);var U=Object.keys(C).map(function(e){return C[e]}),W=function(e){return e.label};function G(e,t){return{role:e.group?`presentation`:`option`,id:`${i}_list_${t}`}}var ne=function(e){var t=j[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,s=hc(n,!0),c=W(t);return t?a.createElement(`div`,o({"aria-label":typeof c==`string`&&!i?c:null},s,{key:e},G(t,e),{"aria-selected":V(r)}),r):null},K={role:`listbox`,id:`${i}_list`};return a.createElement(a.Fragment,null,w&&a.createElement(`div`,o({},K,{style:{height:0,width:0,overflow:`hidden`}}),ne(R-1),ne(R),ne(R+1)),a.createElement(c_,{itemKey:`key`,ref:M,data:j,height:D,itemHeight:O,fullHeight:!1,onMouseDown:F,onScroll:m,virtual:w,direction:T,innerProps:w?null:K},function(e,t){var n=e.group,r=e.groupOption,i=e.data,s=e.label,c=e.value,l=i.key;if(n){var u=i.title??(d_(s)?s.toString():void 0);return a.createElement(`div`,{className:(0,p.default)(A,`${A}-group`,i.className),title:u},s===void 0?l:s)}var d=i.disabled,f=i.title;i.children;var m=i.style,h=i.className,g=dl(Ct(i,u_),U),_=ee(c),v=d||!_&&N,y=`${A}-option`,b=(0,p.default)(A,y,h,E(E(E(E({},`${y}-grouped`,r),`${y}-active`,R===t&&!v),`${y}-disabled`,v),`${y}-selected`,_)),S=W(e),C=!x||typeof x==`function`||_,T=typeof S==`number`?S:S||c,D=d_(T)?T.toString():void 0;return f!==void 0&&(D=f),a.createElement(`div`,o({},hc(g),w?{}:G(e,t),{"aria-selected":V(c),className:b,title:D,onMouseMove:function(){R===t||v||B(t)},onClick:function(){v||H(c)},style:m}),a.createElement(`div`,{className:`${y}-content`},typeof k==`function`?k(e,{index:t}):T),a.isValidElement(x)||_,C&&a.createElement(rh,{className:`${A}-option-state`,customizeIcon:x,customizeIconProps:{value:c,disabled:v,isSelected:_}},_?`✓`:null))}))}),p_=(function(e,t){var n=a.useRef({values:new Map,options:new Map});return[a.useMemo(function(){var r=n.current,i=r.values,a=r.options,o=e.map(function(e){return e.label===void 0?O(O({},e),{},{label:i.get(e.value)?.label}):e}),s=new Map,c=new Map;return o.forEach(function(e){s.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=s,n.current.options=c,o},[e,t]),a.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]});function m_(e,t){return Nh(e).join(``).toUpperCase().includes(t)}var h_=(function(e,t,n,r,i){return a.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:function(e,t){return i?m_(t[i],u):t[a]?m_(t[o===`children`?`label`:o],u):m_(t[s],u)},f=l?function(e){return Tg(e)}:function(e){return e};return e.forEach(function(e){if(e[a]){if(d(n,f(e)))c.push(e);else{var t=e[a].filter(function(e){return d(n,f(e))});t.length&&c.push(O(O({},e),{},E({},a,t)))}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t])}),g_=0,__=st();function v_(){var e;return __?(e=g_,g_+=1):e=`TEST_OR_SSR`,e}function y_(e){var t=Z(a.useState(),2),n=t[0],r=t[1];return a.useEffect(function(){r(`rc_select_${v_()}`)},[]),e||n}var b_=[`children`,`value`],x_=[`children`];function S_(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=Ct(r,b_);return O({key:n,value:a===void 0?n:a,children:i},o)}function C_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return m(e).map(function(e,n){if(!a.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,o=r.key,s=r.props,c=s.children,l=Ct(s,x_);return t||!i?S_(e):O(O({key:`__RC_SELECT_GRP__${o===null?n:o}__`,label:o},l),{},{options:C_(c)})}).filter(function(e){return e})}var w_=function(e,t,n,r,i){return a.useMemo(function(){var a=e;e||(a=C_(t));var o=new Map,s=new Map,c=function(e,t,n){n&&typeof n==`string`&&e.set(t[n],t)};return(function e(t){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=0;l<t.length;l+=1){var u=t[l];!u[n.options]||a?(o.set(u[n.value],u),c(s,u,n.label),c(s,u,r),c(s,u,i)):e(u[n.options],!0)}})(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i])};function T_(e){var t=a.useRef();return t.current=e,a.useCallback(function(){return t.current.apply(t,arguments)},[])}var E_=`id.mode.prefixCls.backfill.fieldNames.inputValue.searchValue.onSearch.autoClearSearchValue.onSelect.onDeselect.dropdownMatchSelectWidth.filterOption.filterSort.optionFilterProp.optionLabelProp.options.optionRender.children.defaultActiveFirstOption.menuItemSelectedIcon.virtual.direction.listHeight.listItemHeight.labelRender.value.defaultValue.labelInValue.onChange.maxCount`.split(`.`),D_=[`inputValue`];function O_(e){return!e||s(e)!==`object`}var k_=a.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,s=i===void 0?`rc-select`:i,c=e.backfill,l=e.fieldNames,u=e.inputValue,d=e.searchValue,f=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,h=e.onSelect,g=e.onDeselect,_=e.dropdownMatchSelectWidth,v=_===void 0?!0:_,y=e.filterOption,b=e.filterSort,x=e.optionFilterProp,S=e.optionLabelProp,C=e.options,w=e.optionRender,T=e.children,D=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,A=e.virtual,j=e.direction,M=e.listHeight,N=M===void 0?200:M,P=e.listItemHeight,F=P===void 0?20:P,I=e.labelRender,ee=e.value,L=e.defaultValue,te=e.labelInValue,R=e.onChange,z=e.maxCount,B=Ct(e,E_),V=y_(n),H=jg(r),U=!!(!C&&T),W=a.useMemo(function(){return y===void 0&&r===`combobox`?!1:y},[y,r]),G=a.useMemo(function(){return Cg(l,U)},[JSON.stringify(l),U]),ne=Z(Ra(``,{value:d===void 0?u:d,postState:function(e){return e||``}}),2),K=ne[0],q=ne[1],J=w_(C,T,G,x,S),re=J.valueOptions,ie=J.labelOptions,ae=J.options,oe=a.useCallback(function(e){return Nh(e).map(function(e){var t,n,r,i,a;O_(e)?t=e:(r=e.key,n=e.label,t=e.value??r);var o=re.get(t);return o&&(n===void 0&&(n=o?.[S||G.label]),r===void 0&&(r=o?.key??t),i=o?.disabled,a=o?.title),{label:n,value:t,key:r,disabled:i,title:a}})},[G,S,re]),se=Z(Ra(L,{value:ee}),2),ce=se[0],le=se[1],ue=Z(p_(a.useMemo(function(){var e=oe(H&&ce===null?[]:ce);return r===`combobox`&&Ih(e[0]?.value)?[]:e},[ce,oe,r,H]),re),2),de=ue[0],fe=ue[1],pe=a.useMemo(function(){if(!r&&de.length===1){var e=de[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return de.map(function(e){return O(O({},e),{},{label:(typeof I==`function`?I(e):e.label)??e.value})})},[r,de,I]),me=a.useMemo(function(){return new Set(de.map(function(e){return e.value}))},[de]);a.useEffect(function(){if(r===`combobox`){var e=de[0]?.value;q(Fh(e)?String(e):``)}},[de]);var he=T_(function(e,t){var n=t??e;return E(E({},G.value,e),G.label,n)}),ge=h_(a.useMemo(function(){if(r!==`tags`)return ae;var e=X(ae),t=function(e){return re.has(e)};return X(de).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(n){var r=n.value;t(r)||e.push(he(r,n.label))}),e},[he,ae,re,de,r]),G,K,W,x),_e=a.useMemo(function(){return r!==`tags`||!K||ge.some(function(e){return e[x||`value`]===K})||ge.some(function(e){return e[G.value]===K})?ge:[he(K)].concat(X(ge))},[he,x,r,ge,K,G]),ve=function e(t){return X(t).sort(function(e,t){return b(e,t,{searchValue:K})}).map(function(t){return Array.isArray(t.options)?O(O({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},ye=a.useMemo(function(){return b?ve(_e):_e},[_e,b,K]),be=a.useMemo(function(){return wg(ye,{fieldNames:G,childrenAsData:U})},[ye,G,U]),xe=function(e){var t=oe(e);if(le(t),R&&(t.length!==de.length||t.some(function(e,t){return de[t]?.value!==e?.value}))){var n=te?t:t.map(function(e){return e.value}),r=t.map(function(e){return Tg(fe(e.value))});R(H?n:n[0],H?r:r[0])}},Se=Z(a.useState(null),2),Ce=Se[0],we=Se[1],Te=Z(a.useState(0),2),Ee=Te[0],De=Te[1],Oe=D===void 0?r!==`combobox`:D,ke=a.useCallback(function(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).source,i=n===void 0?`keyboard`:n;De(t),c&&r===`combobox`&&e!==null&&i===`keyboard`&&we(String(e))},[c,r]),Ae=function(e,t,n){var r=function(){var t=fe(e);return[te?{label:t?.[G.label],value:e,key:t?.key??e}:e,Tg(t)]};if(t&&h){var i=Z(r(),2),a=i[0],o=i[1];h(a,o)}else if(!t&&g&&n!==`clear`){var s=Z(r(),2),c=s[0],l=s[1];g(c,l)}},je=T_(function(e,t){var n,i=H?t.selected:!0;n=i?H?[].concat(X(de),[e]):[e]:de.filter(function(t){return t.value!==e}),xe(n),Ae(e,i),r===`combobox`?we(``):(!jg||m)&&(q(``),we(``))}),Me=function(e,t){xe(e);var n=t.type,r=t.values;(n===`remove`||n===`clear`)&&r.forEach(function(e){Ae(e.value,!1,n)})},Ne=function(e,t){if(q(e),we(null),t.source===`submit`){var n=(e||``).trim();n&&(xe(Array.from(new Set([].concat(X(me),[n])))),Ae(n,!0),q(``));return}t.source!==`blur`&&(r===`combobox`&&xe(e),f?.(e))},Pe=function(e){var t=e;r!==`tags`&&(t=e.map(function(e){return ie.get(e)?.value}).filter(function(e){return e!==void 0}));var n=Array.from(new Set([].concat(X(me),X(t))));xe(n),n.forEach(function(e){Ae(e,!0)})},Fe=a.useMemo(function(){var e=A!==!1&&v!==!1;return O(O({},J),{},{flattenOptions:be,onActiveValue:ke,defaultActiveFirstOption:Oe,onSelect:je,menuItemSelectedIcon:k,rawValues:me,fieldNames:G,virtual:e,direction:j,listHeight:N,listItemHeight:F,childrenAsData:U,maxCount:z,optionRender:w})},[z,J,be,ke,Oe,je,k,me,G,A,v,j,N,F,U,w]);return a.createElement(Dg.Provider,{value:Fe},a.createElement(Mg,o({},B,{id:V,prefixCls:s,ref:t,omitDomProps:D_,mode:r,displayValues:pe,onDisplayValuesChange:Me,direction:j,searchValue:K,onSearch:Ne,autoClearSearchValue:m,onSearchSplit:Pe,dropdownMatchSelectWidth:v,OptionList:f_,emptyOptions:!be.length,activeValue:Ce,activeDescendantId:`${V}_list_${Ee}`})))});k_.Option=Pg,k_.OptGroup=Ng;var A_=k_;function j_(e,t,n){return(0,p.default)({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n})}var M_=(e,t)=>t||e,N_=()=>{let[,e]=uo(),[t]=ti(`Empty`),n=new ui(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return a.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},a.createElement(`title`,null,t?.description||`Empty`),a.createElement(`g`,{fill:`none`,fillRule:`evenodd`},a.createElement(`g`,{transform:`translate(24 31.67)`},a.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.797`,cy:`106.89`,rx:`67.797`,ry:`12.668`}),a.createElement(`path`,{d:`M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z`,fill:`#AEB8C2`}),a.createElement(`path`,{d:`M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z`,fill:`url(#linearGradient-1)`,transform:`translate(13.56)`}),a.createElement(`path`,{d:`M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z`,fill:`#F5F5F7`}),a.createElement(`path`,{d:`M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z`,fill:`#DCE0E6`})),a.createElement(`path`,{d:`M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z`,fill:`#DCE0E6`}),a.createElement(`g`,{transform:`translate(149.65 15.383)`,fill:`#FFF`},a.createElement(`ellipse`,{cx:`20.654`,cy:`3.167`,rx:`2.849`,ry:`2.815`}),a.createElement(`path`,{d:`M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z`}))))},P_=()=>{let[,e]=uo(),[t]=ti(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:s,shadowColor:c,contentColor:l}=(0,a.useMemo)(()=>({borderColor:new ui(n).onBackground(o).toHexString(),shadowColor:new ui(r).onBackground(o).toHexString(),contentColor:new ui(i).onBackground(o).toHexString()}),[n,r,i,o]);return a.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},a.createElement(`title`,null,t?.description||`Empty`),a.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},a.createElement(`ellipse`,{fill:c,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),a.createElement(`g`,{fillRule:`nonzero`,stroke:s},a.createElement(`path`,{d:`M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z`}),a.createElement(`path`,{d:`M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z`,fill:l}))))},F_=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},I_=So(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return F_(Ha(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),L_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},R_=a.createElement(N_,null),z_=a.createElement(P_,null),B_=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:o,children:s,imageStyle:c,style:l,classNames:u,styles:d}=e,f=L_(e,[`className`,`rootClassName`,`prefixCls`,`image`,`description`,`children`,`imageStyle`,`style`,`classNames`,`styles`]),{getPrefixCls:m,direction:h,className:g,style:_,classNames:v,styles:y,image:b}=va(`empty`),x=m(`empty`,r),[S,C,w]=I_(x),[T]=ti(`Empty`),E=o===void 0?T?.description:o,D=typeof E==`string`?E:`empty`,O=i??b??R_,k=null;return k=typeof O==`string`?a.createElement(`img`,{draggable:!1,alt:D,src:O}):O,S(a.createElement(`div`,Object.assign({className:(0,p.default)(C,w,x,g,{[`${x}-normal`]:O===z_,[`${x}-rtl`]:h===`rtl`},t,n,v.root,u?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),_),d?.root),l)},f),a.createElement(`div`,{className:(0,p.default)(`${x}-image`,v.image,u?.image),style:Object.assign(Object.assign(Object.assign({},c),y.image),d?.image)},k),E&&a.createElement(`div`,{className:(0,p.default)(`${x}-description`,v.description,u?.description),style:Object.assign(Object.assign({},y.description),d?.description)},E),s&&a.createElement(`div`,{className:(0,p.default)(`${x}-footer`,v.footer,u?.footer),style:Object.assign(Object.assign({},y.footer),d?.footer)},s)))};B_.PRESENTED_IMAGE_DEFAULT=R_,B_.PRESENTED_IMAGE_SIMPLE=z_;var V_=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,a.useContext)(ha),r=n(`empty`);switch(t){case`Table`:case`List`:return a.createElement(B_,{image:B_.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return a.createElement(B_,{image:B_.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return a.createElement(B_,null)}},H_=(e,t,n)=>{let{variant:r,[e]:i}=a.useContext(ha),o=a.useContext(cm),s=i?.variant,c;c=t===void 0?n===!1?`borderless`:o??s??r??`outlined`:t;let l=ma.includes(c);return[c,l]},U_=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:[`tl`,`bl`],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:[`tr`,`br`],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:[`bl`,`tl`],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:[`br`,`tr`],offset:[0,-4]})}};function W_(e,t){return e||U_(t)}var G_=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},K_=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},po(e)),{position:`absolute`,top:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,padding:e.paddingXXS,overflow:`hidden`,fontSize:e.fontSize,fontVariant:`initial`,backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,[`
- ${i}${s}bottomLeft,
- ${a}${s}bottomLeft
- `]:{animationName:Mu},[`
- ${i}${s}topLeft,
- ${a}${s}topLeft,
- ${i}${s}topRight,
- ${a}${s}topRight
- `]:{animationName:Pu},[`${o}${s}bottomLeft`]:{animationName:Nu},[`
- ${o}${s}topLeft,
- ${o}${s}topRight
- `]:{animationName:Fu},"&-hidden":{display:`none`},[r]:Object.assign(Object.assign({},G_(e)),{cursor:`pointer`,transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":Object.assign({flex:`auto`},fo),"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},G_(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}})},Vu(e,`slide-up`),Vu(e,`slide-down`),ju(e,`move-up`),ju(e,`move-down`)]},q_=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:Q(t),itemLineHeight:Q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},J_=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Y_=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":Object.assign(Object.assign({},mo()),{display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}})}}}},X_=(e,t)=>{let{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=J_(e),s=t?`${n}-${t}`:``,c=q_(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},Y_(e)),{[`${n}-selector`]:{display:`flex`,alignItems:`center`,width:`100%`,height:`100%`,paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:`not-allowed`},"&:after":{display:`inline-block`,width:0,margin:`${Q(r)} 0`,lineHeight:Q(a),visibility:`hidden`,content:`"\\a0"`}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Q(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:`flex-start`,"&:after":{lineHeight:Q(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${i}-item + ${i}-item,
- ${n}-prefix + ${n}-selection-wrap
- `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:`inline-flex`,position:`relative`,maxWidth:`100%`,marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Q(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:`100%`,minWidth:4.1},"&-mirror":{position:`absolute`,top:0,insetInlineStart:0,insetInlineEnd:`auto`,zIndex:999,whiteSpace:`pre`,visibility:`hidden`}},[`${n}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`}})}};function Z_(e,t){let{componentCls:n}=e,r={[`${n}-multiple${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:`text`}},[`
- &${n}-show-arrow ${n}-selector,
- &${n}-allow-clear ${n}-selector
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[X_(e,t),r]}var Q_=e=>{let{componentCls:t}=e,n=Ha(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ha(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Z_(e),Z_(n,`sm`),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Z_(r,`lg`)]};function $_(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},po(e,!0)),{display:`flex`,borderRadius:i,flex:`1 1 auto`,[`${n}-selection-wrap:after`]:{lineHeight:Q(a)},[`${n}-selection-search`]:{position:`absolute`,inset:0,width:`100%`,"&-input":{width:`100%`,WebkitAppearance:`textfield`}},[`
- ${n}-selection-item,
- ${n}-selection-placeholder
- `]:{display:`block`,padding:0,lineHeight:Q(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:`center`},[`${n}-selection-placeholder`]:{transition:`none`,pointerEvents:`none`},[[`&:after`,`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(`,`)]:{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`}}),[`
- &${n}-show-arrow ${n}-selection-item,
- &${n}-show-arrow ${n}-selection-search,
- &${n}-show-arrow ${n}-selection-placeholder
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:`100%`,height:`100%`,alignItems:`center`,padding:`0 ${Q(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:Q(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:`none`},[`${n}-selection-search`]:{position:`static`,width:`100%`},[`${n}-selection-placeholder`]:{position:`absolute`,insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Q(r)}`,"&:after":{display:`none`}}}}}}}function ev(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[$_(e),$_(Ha(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),`sm`),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Q(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
- &${t}-show-arrow ${t}-selection-item,
- &${t}-show-arrow ${t}-selection-placeholder
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},$_(Ha(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`lg`)]}var tv=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},nv=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Q(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},rv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},nv(e,t))}),iv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},nv(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),rv(e,{status:`error`,borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),rv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),av=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ov=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},av(e,t))}),sv=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},av(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),ov(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ov(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),cv=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),lv=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},uv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},lv(e,t))}),dv=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},lv(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),uv(e,{status:`error`,borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),uv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),fv=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},iv(e)),sv(e)),cv(e)),dv(e))}),pv=e=>{let{componentCls:t}=e;return{position:`relative`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:`pointer`},[`${t}-show-search&`]:{cursor:`text`,input:{cursor:`auto`,color:`inherit`,height:`100%`}},[`${t}-disabled&`]:{cursor:`not-allowed`,input:{cursor:`not-allowed`}}}},mv=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:`transparent`,border:`none`,outline:`none`,appearance:`none`,fontFamily:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},hv=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:Object.assign(Object.assign({},po(e)),{position:`relative`,display:`inline-flex`,cursor:`pointer`,[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},pv(e)),mv(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`},fo),{[`> ${t}-typography`]:{display:`inline`}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},fo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`}),[`${n}-arrow`]:Object.assign(Object.assign({},mo()),{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:`center`,pointerEvents:`none`,display:`flex`,alignItems:`center`,transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:`top`,transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:`top`},[`&:not(${n}-suffix)`]:{pointerEvents:`auto`}},[`${n}-disabled &`]:{cursor:`not-allowed`},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:`flex`,width:`100%`,position:`relative`,minWidth:0,"&:after":{content:`"\\a0"`,width:0,overflow:`hidden`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:r,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},gv=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},hv(e),ev(e),Q_(e),K_(e),{[`${t}-rtl`]:{direction:`rtl`}},Bd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},_v=So(`Select`,(e,{rootPrefixCls:t})=>{let n=Ha(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[gv(n),fv(n)]},tv,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),vv={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`},yv=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:vv}))}),bv={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`},xv=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:bv}))}),Sv={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`},Cv=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:Sv}))});function wv({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:o,hasFeedback:s,prefixCls:c,showSuffixIcon:l,feedbackIcon:u,showArrow:d,componentName:f}){let p=t??a.createElement(cc,null),m=t=>e===null&&!s&&!d?null:a.createElement(a.Fragment,null,l!==!1&&t,s&&u),h=null;if(e!==void 0)h=m(e);else if(i)h=m(a.createElement(xc,{spin:!0}));else{let e=`${c}-suffix`;h=({open:t,showSearch:n})=>m(t&&n?a.createElement(Cv,{className:e}):a.createElement(xv,{className:e}))}let g=null;g=n===void 0?o?a.createElement(yv,null):null:n;let _=null;return _=r===void 0?a.createElement(uc,null):r,{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:_}}function Tv(e){return a.useMemo(()=>{if(e)return(...t)=>a.createElement(lm,{space:!0},e.apply(void 0,t))},[e])}function Ev(e,t){return t===void 0?e!==null:t}var Dv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Ov=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,kv=a.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:o,getPopupContainer:s,popupClassName:c,dropdownClassName:l,listHeight:u=256,placement:d,listItemHeight:f,size:m,disabled:h,notFoundContent:g,status:_,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:x,style:S,allowClear:C,variant:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F}=e,I=Dv(e,`prefixCls.bordered.className.rootClassName.getPopupContainer.popupClassName.dropdownClassName.listHeight.placement.listItemHeight.size.disabled.notFoundContent.status.builtinPlacements.dropdownMatchSelectWidth.popupMatchSelectWidth.direction.style.allowClear.variant.dropdownStyle.transitionName.tagRender.maxCount.prefix.dropdownRender.popupRender.onDropdownVisibleChange.onOpenChange.styles.classNames`.split(`.`)),{getPopupContainer:ee,getPrefixCls:L,renderEmpty:te,direction:R,virtual:z,popupMatchSelectWidth:B,popupOverflow:V}=a.useContext(ha),{showSearch:H,style:U,styles:W,className:G,classNames:ne}=va(`select`),[,K]=uo(),q=f??K?.controlHeight,J=L(`select`,n),re=L(),ie=x??R,{compactSize:ae,compactItemClassnames:oe}=Dl(J,ie),[se,ce]=H_(`select`,w,r),le=yc(J),[ue,de,fe]=_v(J,le),pe=a.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Ov?`combobox`:t},[e.mode]),me=pe===`multiple`||pe===`tags`,he=Ev(e.suffixIcon,e.showArrow),ge=b??y??B,_e=P?.popup?.root||W.popup?.root||T,ve=Tv(j||A),ye=N||M,{status:be,hasFeedback:xe,isFormItemInput:Se,feedbackIcon:Ce}=a.useContext(om),we=M_(be,_),Te;Te=g===void 0?pe===`combobox`?null:te?.(`Select`)||a.createElement(V_,{componentName:`Select`}):g;let{suffixIcon:Ee,itemIcon:De,removeIcon:Oe,clearIcon:ke}=wv(Object.assign(Object.assign({},I),{multiple:me,hasFeedback:xe,feedbackIcon:Ce,showSuffixIcon:he,prefixCls:J,componentName:`Select`})),Ae=C===!0?{clearIcon:ke}:C,je=dl(I,[`suffixIcon`,`itemIcon`]),Me=(0,p.default)(F?.popup?.root||ne?.popup?.root||c||l,{[`${J}-dropdown-${ie}`]:ie===`rtl`},o,ne.root,F?.root,fe,le,de),Ne=Sl(e=>m??ae??e),Pe=a.useContext(Sa),Fe=h??Pe,Ie=(0,p.default)({[`${J}-lg`]:Ne===`large`,[`${J}-sm`]:Ne===`small`,[`${J}-rtl`]:ie===`rtl`,[`${J}-${se}`]:ce,[`${J}-in-form-item`]:Se},j_(J,we,xe),oe,G,i,ne.root,F?.root,o,fe,le,de),Le=a.useMemo(()=>d===void 0?ie===`rtl`?`bottomRight`:`bottomLeft`:d,[d,ie]),[Y]=Ac(`SelectLike`,_e?.zIndex);return ue(a.createElement(A_,Object.assign({ref:t,virtual:z,showSearch:H},je,{style:Object.assign(Object.assign(Object.assign(Object.assign({},W.root),P?.root),U),S),dropdownMatchSelectWidth:ge,transitionName:ul(re,`slide-up`,E),builtinPlacements:W_(v,V),listHeight:u,listItemHeight:q,mode:pe,prefixCls:J,placement:Le,direction:ie,prefix:k,suffixIcon:Ee,menuItemSelectedIcon:De,removeIcon:Oe,allowClear:Ae,notFoundContent:Te,className:Ie,getPopupContainer:s||ee,dropdownClassName:Me,disabled:Fe,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Y}),maxCount:me?O:void 0,tagRender:me?D:void 0,dropdownRender:ve,onDropdownVisibleChange:ye})))}),Av=th(kv,`dropdownAlign`);kv.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ov,kv.Option=Pg,kv.OptGroup=Ng,kv._InternalPanelDoNotUseOrYouWillBeFired=Av;var jv=(e,t)=>{e?.addEventListener===void 0?e?.addListener!==void 0&&e.addListener(t):e.addEventListener(`change`,t)},Mv=(e,t)=>{e?.removeEventListener===void 0?e?.removeListener!==void 0&&e.removeListener(t):e.removeEventListener(`change`,t)},Nv=[`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Pv=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)`}),Fv=e=>{let t=e,n=[].concat(Nv).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},Iv=(e,t)=>{if(t){for(let n of Nv)if(e[n]&&t?.[n]!==void 0)return t[n]}},Lv=()=>{let[,e]=uo(),t=Pv(Fv(e));return a.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>e(r)),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},i=window.matchMedia(t);jv(i,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];Mv(t?.mql,t?.listener)}),e.clear()}}},[t])};function Rv(e=!0,t={}){let n=(0,a.useRef)(t),[,r]=Cc(),i=Lv();return Zt(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}function zv(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,s=e.className,c=e.style;return a.createElement(`div`,{className:(0,p.default)(`${n}-content`,s),style:c},a.createElement(`div`,{className:(0,p.default)(`${n}-inner`,o),id:r,role:`tooltip`,style:i},typeof t==`function`?t():t))}var Bv={shiftX:64,adjustY:1},Vv={adjustX:1,shiftY:!0},Hv=[0,0],Uv={left:{points:[`cr`,`cl`],overflow:Vv,offset:[-4,0],targetOffset:Hv},right:{points:[`cl`,`cr`],overflow:Vv,offset:[4,0],targetOffset:Hv},top:{points:[`bc`,`tc`],overflow:Bv,offset:[0,-4],targetOffset:Hv},bottom:{points:[`tc`,`bc`],overflow:Bv,offset:[0,4],targetOffset:Hv},topLeft:{points:[`bl`,`tl`],overflow:Bv,offset:[0,-4],targetOffset:Hv},leftTop:{points:[`tr`,`tl`],overflow:Vv,offset:[-4,0],targetOffset:Hv},topRight:{points:[`br`,`tr`],overflow:Bv,offset:[0,-4],targetOffset:Hv},rightTop:{points:[`tl`,`tr`],overflow:Vv,offset:[4,0],targetOffset:Hv},bottomRight:{points:[`tr`,`br`],overflow:Bv,offset:[0,4],targetOffset:Hv},rightBottom:{points:[`bl`,`br`],overflow:Vv,offset:[4,0],targetOffset:Hv},bottomLeft:{points:[`tl`,`bl`],overflow:Bv,offset:[0,4],targetOffset:Hv},leftBottom:{points:[`br`,`bl`],overflow:Vv,offset:[-4,0],targetOffset:Hv}},Wv=[`overlayClassName`,`trigger`,`mouseEnterDelay`,`mouseLeaveDelay`,`overlayStyle`,`prefixCls`,`children`,`onVisibleChange`,`afterVisibleChange`,`transitionName`,`animation`,`motion`,`placement`,`align`,`destroyTooltipOnHide`,`defaultVisible`,`getTooltipContainer`,`overlayInnerStyle`,`arrowContent`,`overlay`,`id`,`showArrow`,`classNames`,`styles`],Gv=(0,a.forwardRef)(function(e,t){var n=e.overlayClassName,r=e.trigger,i=r===void 0?[`hover`]:r,s=e.mouseEnterDelay,c=s===void 0?0:s,l=e.mouseLeaveDelay,u=l===void 0?.1:l,d=e.overlayStyle,f=e.prefixCls,m=f===void 0?`rc-tooltip`:f,h=e.children,g=e.onVisibleChange,_=e.afterVisibleChange,v=e.transitionName,y=e.animation,b=e.motion,x=e.placement,S=x===void 0?`right`:x,C=e.align,w=C===void 0?{}:C,T=e.destroyTooltipOnHide,E=T===void 0?!1:T,D=e.defaultVisible,k=e.getTooltipContainer,A=e.overlayInnerStyle;e.arrowContent;var j=e.overlay,M=e.id,N=e.showArrow,P=N===void 0?!0:N,F=e.classNames,I=e.styles,ee=Ct(e,Wv),L=gf(M),te=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,function(){return te.current});var R=O({},ee);return`visible`in e&&(R.popupVisible=e.visible),a.createElement(_g,o({popupClassName:(0,p.default)(n,F?.root),prefixCls:m,popup:function(){return a.createElement(zv,{key:`content`,prefixCls:m,id:L,bodyClassName:F?.body,overlayInnerStyle:O(O({},A),I?.body)},j)},action:i,builtinPlacements:Uv,popupPlacement:S,ref:te,popupAlign:w,getPopupContainer:k,onPopupVisibleChange:g,afterPopupVisibleChange:_,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:D,autoDestroy:E,mouseLeaveDelay:u,popupStyle:O(O({},d),I?.root),mouseEnterDelay:c,arrow:P},R),function(){var e=O(O({},a.Children.only(h)?.props||{}),{},{"aria-describedby":j?L:null});return a.cloneElement(h,e)}())});function Kv(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var qv=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Jv(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Yv(e,t){return e?t:{}}function Xv(e,t,n){let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:c={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`},qv(e,t,i)),{"&:before":{background:t}})]},Yv(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:s,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":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Yv(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:s,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Yv(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:s},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Yv(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:s},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function Zv(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=r&&typeof r==`object`?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var Qv={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`]}},$v={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`]}},ey=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function ty(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Jv({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Qv).forEach(e=>{let a=r&&$v[e]||Qv[e],u=Object.assign(Object.assign({},a),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,ey.has(e)&&(u.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:u.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:u.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:u.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:u.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:u.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:u.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:u.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:u.offset[1]=l.arrowOffsetHorizontal*2-s;break}u.overflow=Zv(e,l,t,n),o&&(u.htmlRegion=`visibleFirst`)}),c}var ny=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(o).add(p).add(f).equal(),h=t(o).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{position:`absolute`,zIndex:s,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":a,[`${n}-inner`]:{minWidth:h,minHeight:c,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,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(o,8)}},[`${n}-content`]:{position:`relative`}}),To(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:`rtl`}})},Xv(e,`var(--antd-arrow-background-color)`),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}}]},ry=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Jv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Kv(Ha(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),iy=(e,t=!0)=>So(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[ny(Ha(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),td(e,`zoom-big-fast`)]},ry,{resetStyle:!1,injectStyle:t})(e),ay=$a.map(e=>`${e}-inverse`),oy=[`success`,`processing`,`error`,`default`,`warning`];function sy(e,t=!0){return t?[].concat(X(ay),X($a)).includes(e):$a.includes(e)}function cy(e){return oy.includes(e)}function ly(e,t){let n=sy(t),r=(0,p.default)({[`${e}-${t}`]:t&&n}),i={},a={},o=cd(t).toRgb(),s=(.299*o.r+.587*o.g+.114*o.b)/255<.5?`#FFF`:`#000`;return t&&!n&&(i.background=t,i[`--ant-tooltip-color`]=s,a[`--antd-arrow-background-color`]=t),{className:r,overlayStyle:i,arrowStyle:a}}var uy=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:c}=a.useContext(ha),l=c(`tooltip`,t),[u,d,f]=iy(l),m=ly(l,o),h=m.arrowStyle,g=Object.assign(Object.assign({},s),m.overlayStyle),_=(0,p.default)(d,f,l,`${l}-pure`,`${l}-placement-${r}`,n,m.className);return u(a.createElement(`div`,{className:_,style:h},a.createElement(`div`,{className:`${l}-arrow`}),a.createElement(zv,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:g}),i)))},dy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},fy=a.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:o,overlayInnerStyle:s,children:c,afterOpenChange:l,afterVisibleChange:u,destroyTooltipOnHide:d,destroyOnHidden:f,arrow:m=!0,title:h,overlay:g,builtinPlacements:_,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0,motion:b,getPopupContainer:x,placement:S=`top`,mouseEnterDelay:C=.1,mouseLeaveDelay:w=.1,overlayStyle:T,rootClassName:E,overlayClassName:D,styles:O,classNames:k}=e,A=dy(e,`prefixCls.openClassName.getTooltipContainer.color.overlayInnerStyle.children.afterOpenChange.afterVisibleChange.destroyTooltipOnHide.destroyOnHidden.arrow.title.overlay.builtinPlacements.arrowPointAtCenter.autoAdjustOverflow.motion.getPopupContainer.placement.mouseEnterDelay.mouseLeaveDelay.overlayStyle.rootClassName.overlayClassName.styles.classNames`.split(`.`)),j=!!m,[,M]=uo(),{getPopupContainer:N,getPrefixCls:P,direction:F,className:I,style:ee,classNames:L,styles:te}=va(`tooltip`),R=Br(`Tooltip`),z=a.useRef(null),B=()=>{var e;(e=z.current)==null||e.forceAlign()};a.useImperativeHandle(t,()=>({forceAlign:B,forcePopupAlign:()=>{R.deprecated(!1,`forcePopupAlign`,`forceAlign`),B()},nativeElement:z.current?.nativeElement,popupElement:z.current?.popupElement}));let[V,H]=Ra(!1,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),U=!h&&!g&&h!==0,W=t=>{var n,r;H(U?!1:t),U||((n=e.onOpenChange)==null||n.call(e,t),(r=e.onVisibleChange)==null||r.call(e,t))},G=a.useMemo(()=>{let e=v;return typeof m==`object`&&(e=m.pointAtCenter??m.arrowPointAtCenter??v),_||ty({arrowPointAtCenter:e,autoAdjustOverflow:y,arrowWidth:j?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[v,m,_,M]),ne=a.useMemo(()=>h===0?h:g||h||``,[g,h]),K=a.createElement(lm,{space:!0},typeof ne==`function`?ne():ne),q=P(`tooltip`,n),J=P(),re=e[`data-popover-inject`],ie=V;!(`open`in e)&&!(`visible`in e)&&U&&(ie=!1);let ae=a.isValidElement(c)&&!gc(c)?c:a.createElement(`span`,null,c),oe=ae.props,se=!oe.className||typeof oe.className==`string`?(0,p.default)(oe.className,r||`${q}-open`):oe.className,[ce,le,ue]=iy(q,!re),de=ly(q,o),fe=de.arrowStyle,pe=(0,p.default)(D,{[`${q}-rtl`]:F===`rtl`},de.className,E,le,ue,I,L.root,k?.root),me=(0,p.default)(L.body,k?.body),[he,ge]=Ac(`Tooltip`,A.zIndex),_e=a.createElement(Gv,Object.assign({},A,{zIndex:he,showArrow:j,placement:S,mouseEnterDelay:C,mouseLeaveDelay:w,prefixCls:q,classNames:{root:pe,body:me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fe),te.root),ee),T),O?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},te.body),s),O?.body),de.overlayStyle)},getTooltipContainer:x||i||N,ref:z,builtinPlacements:G,overlay:K,visible:ie,onVisibleChange:W,afterVisibleChange:l??u,arrowContent:a.createElement(`span`,{className:`${q}-arrow-content`}),motion:{motionName:ul(J,`zoom-big-fast`,e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:f??!!d}),ie?vc(ae,{className:se}):ae);return ce(a.createElement(wc.Provider,{value:ge},_e))});fy._InternalPanelDoNotUseOrYouWillBeFired=uy;var py=$.ESC,my=$.TAB;function hy(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,s=a.useRef(!1),c=function(){if(t){var e,i;(e=n.current)==null||(i=e.focus)==null||i.call(e),r?.(!1)}},l=function(){var e;return(e=o.current)!=null&&e.focus?(o.current.focus(),s.current=!0,!0):!1},u=function(e){switch(e.keyCode){case py:c();break;case my:var t=!1;s.current||(t=l()),t?e.preventDefault():c();break}};a.useEffect(function(){return t?(window.addEventListener(`keydown`,u),i&&nt(l,3),function(){window.removeEventListener(`keydown`,u),s.current=!1}):function(){s.current=!1}},[t])}var gy=(0,a.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=(0,a.useMemo)(function(){return typeof n==`function`?n():n},[n]),s=L(t,V(o));return a.createElement(a.Fragment,null,r&&a.createElement(`div`,{className:`${i}-arrow`}),a.cloneElement(o,{ref:R(o)?s:void 0}))}),_y={adjustX:1,adjustY:1},vy=[0,0],yy={topLeft:{points:[`bl`,`tl`],overflow:_y,offset:[0,-4],targetOffset:vy},top:{points:[`bc`,`tc`],overflow:_y,offset:[0,-4],targetOffset:vy},topRight:{points:[`br`,`tr`],overflow:_y,offset:[0,-4],targetOffset:vy},bottomLeft:{points:[`tl`,`bl`],overflow:_y,offset:[0,4],targetOffset:vy},bottom:{points:[`tc`,`bc`],overflow:_y,offset:[0,4],targetOffset:vy},bottomRight:{points:[`tr`,`br`],overflow:_y,offset:[0,4],targetOffset:vy}},by=[`arrow`,`prefixCls`,`transitionName`,`animation`,`align`,`placement`,`placements`,`getPopupContainer`,`showAction`,`hideAction`,`overlayClassName`,`overlayStyle`,`visible`,`trigger`,`autoFocus`,`overlay`,`children`,`onVisibleChange`];function xy(e,t){var n=e.arrow,r=n===void 0?!1:n,i=e.prefixCls,s=i===void 0?`rc-dropdown`:i,c=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?`bottomLeft`:d,m=e.placements,h=m===void 0?yy:m,g=e.getPopupContainer,_=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,x=e.visible,S=e.trigger,C=S===void 0?[`hover`]:S,w=e.autoFocus,T=e.overlay,D=e.children,O=e.onVisibleChange,k=Ct(e,by),A=Z(a.useState(),2),j=A[0],M=A[1],N=`visible`in e?x:j,P=a.useRef(null),F=a.useRef(null),I=a.useRef(null);a.useImperativeHandle(t,function(){return P.current});var ee=function(e){M(e),O?.(e)};hy({visible:N,triggerRef:I,onVisibleChange:ee,autoFocus:w,overlayRef:F});var te=function(t){var n=e.onOverlayClick;M(!1),n&&n(t)},z=function(){return a.createElement(gy,{ref:F,overlay:T,prefixCls:s,arrow:r})},B=function(){return typeof T==`function`?z:z()},H=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return`minOverlayWidthMatchTrigger`in e?t:!n},U=a.cloneElement(D,{className:(0,p.default)(D.props?.className,N&&function(){var t=e.openClassName;return t===void 0?`${s}-open`:t}()),ref:R(D)?L(I,V(D)):void 0}),W=v;return!W&&C.indexOf(`contextMenu`)!==-1&&(W=[`click`]),a.createElement(_g,o({builtinPlacements:h},k,{prefixCls:s,ref:P,popupClassName:(0,p.default)(y,E({},`${s}-show-arrow`,r)),popupStyle:b,action:C,showAction:_,hideAction:W,popupPlacement:f,popupAlign:u,popupTransitionName:c,popupAnimation:l,popupVisible:N,stretch:H()?`minWidth`:``,popup:B(),onPopupVisibleChange:ee,onPopupClick:te,getPopupContainer:g}),U)}var Sy=a.forwardRef(xy),Cy=a.createContext(null);function wy(e,t){return e===void 0?null:`${e}-${t}`}function Ty(e){return wy(a.useContext(Cy),e)}var Ey=[`children`,`locked`],Dy=a.createContext(null);function Oy(e,t){var n=O({},e);return Object.keys(t).forEach(function(e){var r=t[e];r!==void 0&&(n[e]=r)}),n}function ky(e){var t=e.children,n=e.locked,r=Ct(e,Ey),i=a.useContext(Dy),o=P(function(){return Oy(i,r)},[i,r],function(e,t){return!n&&(e[0]!==t[0]||!wt(e[1],t[1],!0))});return a.createElement(Dy.Provider,{value:o},t)}var Ay=[],jy=a.createContext(null);function My(){return a.useContext(jy)}var Ny=a.createContext(Ay);function Py(e){var t=a.useContext(Ny);return a.useMemo(function(){return e===void 0?t:[].concat(X(t),[e])},[t,e])}var Fy=a.createContext(null),Iy=a.createContext({});function Ly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fl(e)){var n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Ry(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=X(e.querySelectorAll(`*`)).filter(function(e){return Ly(e,t)});return Ly(e,t)&&n.unshift(e),n}var zy=$.LEFT,By=$.RIGHT,Vy=$.UP,Hy=$.DOWN,Uy=$.ENTER,Wy=$.ESC,Gy=$.HOME,Ky=$.END,qy=[Vy,Hy,zy,By];function Jy(e,t,n,r){var i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===Uy)return{inlineTrigger:!0};var c=E(E({},Vy,i),Hy,a),l=E(E(E(E({},zy,n?a:i),By,n?i:a),Hy,o),Uy,o),u=E(E(E(E(E(E({},Vy,i),Hy,a),Uy,o),Wy,s),zy,n?o:s),By,n?s:o);switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function Yy(e){for(var t=e;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function Xy(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Zy(e,t){return Ry(e,!0).filter(function(e){return t.has(e)})}function Qy(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Zy(e,t),a=i.length,o=i.findIndex(function(e){return n===e});return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var $y=function(e,t){var n=new Set,r=new Map,i=new Map;return e.forEach(function(e){var a=document.querySelector(`[data-menu-id='${wy(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function eb(e,t,n,r,i,o,s,c,l,u){var d=a.useRef(),f=a.useRef();f.current=t;var p=function(){nt.cancel(d.current)};return a.useEffect(function(){return function(){p()}},[]),function(a){var m=a.which;if([].concat(qy,[Uy,Wy,Gy,Ky]).includes(m)){var h=o(),g=$y(h,r),_=g,v=_.elements,y=_.key2element,b=_.element2key,x=Xy(y.get(t),v),S=b.get(x),C=Jy(e,s(S,!0).length===1,n,m);if(!C&&m!==Gy&&m!==Ky)return;(qy.includes(m)||[Gy,Ky].includes(m))&&a.preventDefault();var w=function(e){if(e){var t=e,n=e.querySelector(`a`);n!=null&&n.getAttribute(`href`)&&(t=n);var r=b.get(e);c(r),p(),d.current=nt(function(){f.current===r&&t.focus()})}};if([Gy,Ky].includes(m)||C.sibling||!x){var T=!x||e===`inline`?i.current:Yy(x),E,D=Zy(T,v);E=m===Gy?D[0]:m===Ky?D[D.length-1]:Qy(T,v,x,C.offset),w(E)}else if(C.inlineTrigger)l(S);else if(C.offset>0)l(S,!0),p(),d.current=nt(function(){g=$y(h,r);var e=x.getAttribute(`aria-controls`);w(Qy(document.getElementById(e),g.elements))},5);else if(C.offset<0){var O=s(S,!0),k=O[O.length-2],A=y.get(k);l(k,!1),w(A)}}u?.(a)}}function tb(e){Promise.resolve().then(e)}var nb=`__RC_UTIL_PATH_SPLIT__`,rb=function(e){return e.join(nb)},ib=function(e){return e.split(nb)},ab=`rc-menu-more`;function ob(){var e=Z(a.useState({}),2)[1],t=(0,a.useRef)(new Map),n=(0,a.useRef)(new Map),r=Z(a.useState([]),2),i=r[0],o=r[1],s=(0,a.useRef)(0),c=(0,a.useRef)(!1),l=function(){c.current||e({})},u=(0,a.useCallback)(function(e,r){var i=rb(r);n.current.set(i,e),t.current.set(e,i),s.current+=1;var a=s.current;tb(function(){a===s.current&&l()})},[]),d=(0,a.useCallback)(function(e,r){var i=rb(r);n.current.delete(i),t.current.delete(e)},[]),f=(0,a.useCallback)(function(e){o(e)},[]),p=(0,a.useCallback)(function(e,n){var r=ib(t.current.get(e)||``);return n&&i.includes(r[0])&&r.unshift(ab),r},[i]),m=(0,a.useCallback)(function(e,t){return e.filter(function(e){return e!==void 0}).some(function(e){return p(e,!0).includes(t)})},[p]),h=function(){var e=X(t.current.keys());return i.length&&e.push(ab),e},g=(0,a.useCallback)(function(e){var r=`${t.current.get(e)}${nb}`,i=new Set;return X(n.current.keys()).forEach(function(e){e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return a.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:h,getSubPathKeys:g}}function sb(e){var t=a.useRef(e);t.current=e;var n=a.useCallback(function(){var e,n=[...arguments];return(e=t.current)?.call.apply(e,[t].concat(n))},[]);return e?n:void 0}var cb=Math.random().toFixed(5).toString().slice(2),lb=0;function ub(e){var t=Z(Ra(e,{value:e}),2),n=t[0],r=t[1];return a.useEffect(function(){lb+=1,r(`rc-menu-uuid-${`${cb}-${lb}`}`)},[]),n}function db(e,t,n,r){var i=a.useContext(Dy),o=i.activeKey,s=i.onActive,c=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){n?.({key:e,domEvent:t}),s(e)},l.onMouseLeave=function(t){r?.({key:e,domEvent:t}),c(e)}),l}function fb(e){var t=a.useContext(Dy),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!==`inline`)return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function pb(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t==`function`?i=a.createElement(t,O({},n)):typeof t!=`boolean`&&(i=t),i||r||null)}var mb=[`item`];function hb(e){var t=e.item,n=Ct(e,mb);return Object.defineProperty(n,"item",{get:function(){return S(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var gb=[`title`,`attribute`,`elementRef`],_b=[`style`,`className`,`eventKey`,`warnKey`,`disabled`,`itemIcon`,`children`,`role`,`onMouseEnter`,`onMouseLeave`,`onClick`,`onKeyDown`,`onFocus`],vb=[`active`],yb=function(e){Fe(n,e);var t=ze(n);function n(){return je(this,n),t.apply(this,arguments)}return Ne(n,[{key:`render`,value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=dl(Ct(e,gb),[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return S(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(kh.Item,o({},n,{title:typeof t==`string`?t:void 0},i,{ref:r}))}}]),n}(a.Component),bb=a.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var s=e.disabled,c=e.itemIcon,l=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,g=e.onFocus,_=Ct(e,_b),v=Ty(i),y=a.useContext(Dy),b=y.prefixCls,x=y.onItemClick,S=y.disabled,C=y.overflowDisabled,w=y.itemIcon,T=y.selectedKeys,D=y.onActive,k=a.useContext(Iy)._internalRenderMenuItem,A=`${b}-item`,j=a.useRef(),M=a.useRef(),N=S||s,P=te(t,M),F=Py(i),I=function(e){return{key:i,keyPath:X(F).reverse(),item:j.current,domEvent:e}},ee=c||w,L=db(i,N,d,f),R=L.active,z=Ct(L,vb),B=T.includes(i),V=fb(F.length),H=function(e){if(!N){var t=I(e);m?.(hb(t)),x(t)}},U=function(e){if(h?.(e),e.which===$.ENTER){var t=I(e);m?.(hb(t)),x(t)}},W=function(e){D(i),g?.(e)},G={};e.role===`option`&&(G[`aria-selected`]=B);var ne=a.createElement(yb,o({ref:j,elementRef:P,role:u===null?`none`:u||`menuitem`,tabIndex:s?null:-1,"data-menu-id":C&&v?null:v},dl(_,[`extra`]),z,G,{component:`li`,"aria-disabled":s,style:O(O({},V),n),className:(0,p.default)(A,E(E(E({},`${A}-active`,R),`${A}-selected`,B),`${A}-disabled`,N),r),onClick:H,onKeyDown:U,onFocus:W}),l,a.createElement(pb,{props:O(O({},e),{},{isSelected:B}),icon:ee}));return k&&(ne=k(ne,e,{selected:B})),ne});function xb(e,t){var n=e.eventKey,r=My(),i=Py(n);return a.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:a.createElement(bb,o({},e,{ref:t}))}var Sb=a.forwardRef(xb),Cb=[`className`,`children`],wb=a.forwardRef(function(e,t){var n=e.className,r=e.children,i=Ct(e,Cb),s=a.useContext(Dy),c=s.prefixCls,l=s.mode,u=s.rtl;return a.createElement(`ul`,o({className:(0,p.default)(c,u&&`${c}-rtl`,`${c}-sub`,`${c}-${l===`inline`?`inline`:`vertical`}`,n),role:`menu`},i,{"data-menu-list":!0,ref:t}),r)});wb.displayName=`SubMenuList`;function Tb(e,t){return m(e).map(function(e,n){if(a.isValidElement(e)){var r=e.key,i=e.props?.eventKey??r;i??=`tmp_key-${[].concat(X(t),[n]).join(`-`)}`;var o={key:i,eventKey:i};return a.cloneElement(e,o)}return e})}var Eb={adjustX:1,adjustY:1},Db={topLeft:{points:[`bl`,`tl`],overflow:Eb},topRight:{points:[`br`,`tr`],overflow:Eb},bottomLeft:{points:[`tl`,`bl`],overflow:Eb},bottomRight:{points:[`tr`,`br`],overflow:Eb},leftTop:{points:[`tr`,`tl`],overflow:Eb},leftBottom:{points:[`br`,`bl`],overflow:Eb},rightTop:{points:[`tl`,`tr`],overflow:Eb},rightBottom:{points:[`bl`,`br`],overflow:Eb}},Ob={topLeft:{points:[`bl`,`tl`],overflow:Eb},topRight:{points:[`br`,`tr`],overflow:Eb},bottomLeft:{points:[`tl`,`bl`],overflow:Eb},bottomRight:{points:[`tr`,`br`],overflow:Eb},rightTop:{points:[`tr`,`tl`],overflow:Eb},rightBottom:{points:[`br`,`bl`],overflow:Eb},leftTop:{points:[`tl`,`tr`],overflow:Eb},leftBottom:{points:[`bl`,`br`],overflow:Eb}};function kb(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Ab={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function jb(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,s=e.popupClassName,c=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=a.useContext(Dy),m=f.getPopupContainer,h=f.rtl,g=f.subMenuOpenDelay,_=f.subMenuCloseDelay,v=f.builtinPlacements,y=f.triggerSubMenuAction,b=f.forceSubMenuRender,x=f.rootClassName,S=f.motion,C=f.defaultMotions,w=Z(a.useState(!1),2),T=w[0],D=w[1],k=O(h?O({},Ob):O({},Db),v),A=Ab[u],j=kb(u,S,C),M=a.useRef(j);u!==`inline`&&(M.current=j);var N=O(O({},M.current),{},{leavedClassName:`${t}-hidden`,removeOnLeave:!1,motionAppear:!0}),P=a.useRef();return a.useEffect(function(){return P.current=nt(function(){D(n)}),function(){nt.cancel(P.current)}},[n]),a.createElement(_g,{prefixCls:t,popupClassName:(0,p.default)(`${t}-popup`,E({},`${t}-rtl`,h),s,x),stretch:u===`horizontal`?`minWidth`:null,getPopupContainer:m,builtinPlacements:k,popupPlacement:A,popupVisible:T,popup:i,popupStyle:o,popupAlign:c&&{offset:c},action:l?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:_,onPopupVisibleChange:d,forceRender:b,popupMotion:N,fresh:!0},r)}function Mb(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,s=`inline`,c=a.useContext(Dy),l=c.prefixCls,u=c.forceSubMenuRender,d=c.motion,f=c.defaultMotions,p=c.mode,m=a.useRef(!1);m.current=p===s;var h=Z(a.useState(!m.current),2),g=h[0],_=h[1],v=m.current?n:!1;a.useEffect(function(){m.current&&_(!1)},[p]);var y=O({},kb(s,d,f));r.length>1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(e){return!m.current&&!e&&_(!0),b?.(e)},g?null:a.createElement(ky,{mode:s,locked:!m.current},a.createElement(Cs,o({visible:v},y,{forceRender:u,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),function(e){var n=e.className,r=e.style;return a.createElement(wb,{id:t,className:n,style:r},i)}))}var Nb=[`style`,`className`,`title`,`eventKey`,`warnKey`,`disabled`,`internalPopupClose`,`children`,`itemIcon`,`expandIcon`,`popupClassName`,`popupOffset`,`popupStyle`,`onClick`,`onMouseEnter`,`onMouseLeave`,`onTitleClick`,`onTitleMouseEnter`,`onTitleMouseLeave`],Pb=[`active`],Fb=a.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,s=e.eventKey;e.warnKey;var c=e.disabled,l=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,h=e.popupOffset,g=e.popupStyle,_=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,b=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=Ct(e,Nb),w=Ty(s),T=a.useContext(Dy),D=T.prefixCls,k=T.mode,A=T.openKeys,j=T.disabled,M=T.overflowDisabled,N=T.activeKey,P=T.selectedKeys,F=T.itemIcon,I=T.expandIcon,ee=T.onItemClick,L=T.onOpenChange,te=T.onActive,R=a.useContext(Iy)._internalRenderSubMenuItem,z=a.useContext(Fy).isSubPathKey,B=Py(),V=`${D}-submenu`,H=j||c,U=a.useRef(),W=a.useRef(),G=d??F,ne=f??I,K=A.includes(s),q=!M&&K,J=z(P,s),re=db(s,H,x,S),ie=re.active,ae=Ct(re,Pb),oe=Z(a.useState(!1),2),se=oe[0],ce=oe[1],le=function(e){H||ce(e)},ue=function(e){le(!0),v?.({key:s,domEvent:e})},de=function(e){le(!1),y?.({key:s,domEvent:e})},fe=a.useMemo(function(){return ie||(k===`inline`?!1:se||z([N],s))},[k,ie,N,se,s,z]),pe=fb(B.length),me=function(e){H||(b?.({key:s,domEvent:e}),k===`inline`&&L(s,!K))},he=sb(function(e){_?.(hb(e)),ee(e)}),ge=function(e){k!==`inline`&&L(s,e)},_e=function(){te(s)},ve=w&&`${w}-popup`,ye=a.useMemo(function(){return a.createElement(pb,{icon:k===`horizontal`?void 0:ne,props:O(O({},e),{},{isOpen:q,isSubMenu:!0})},a.createElement(`i`,{className:`${V}-arrow`}))},[k,ne,e,q,V]),be=a.createElement(`div`,o({role:`menuitem`,style:pe,className:`${V}-title`,tabIndex:H?null:-1,ref:U,title:typeof i==`string`?i:null,"data-menu-id":M&&w?null:w,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ve,"aria-disabled":H,onClick:me,onFocus:_e},ae),i,ye),xe=a.useRef(k);if(k!==`inline`&&B.length>1?xe.current=`vertical`:xe.current=k,!M){var Se=xe.current;be=a.createElement(jb,{mode:Se,prefixCls:V,visible:!l&&q&&k!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:a.createElement(ky,{mode:Se===`horizontal`?`vertical`:Se},a.createElement(wb,{id:ve,ref:W},u)),disabled:H,onVisibleChange:ge},be)}var Ce=a.createElement(kh.Item,o({ref:t,role:`none`},C,{component:`li`,style:n,className:(0,p.default)(V,`${V}-${k}`,r,E(E(E(E({},`${V}-open`,q),`${V}-active`,fe),`${V}-selected`,J),`${V}-disabled`,H)),onMouseEnter:ue,onMouseLeave:de}),be,!M&&a.createElement(Mb,{id:ve,open:q,keyPath:B},u));return R&&(Ce=R(Ce,e,{selected:J,active:fe,open:q,disabled:H})),a.createElement(ky,{onItemClick:he,mode:k===`horizontal`?`vertical`:k,itemIcon:G,expandIcon:ne},Ce)}),Ib=a.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Py(n),s=Tb(r,i),c=My();a.useEffect(function(){if(c)return c.registerPath(n,i),function(){c.unregisterPath(n,i)}},[i]);var l=c?s:a.createElement(Fb,o({ref:t},e),s);return a.createElement(Ny.Provider,{value:i},l)});function Lb(e){var t=e.className,n=e.style,r=a.useContext(Dy).prefixCls;return My()?null:a.createElement(`li`,{role:`separator`,className:(0,p.default)(`${r}-item-divider`,t),style:n})}var Rb=[`className`,`title`,`eventKey`,`children`],zb=a.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,s=Ct(e,Rb),c=`${a.useContext(Dy).prefixCls}-item-group`;return a.createElement(`li`,o({ref:t,role:`presentation`},s,{onClick:function(e){return e.stopPropagation()},className:(0,p.default)(c,n)}),a.createElement(`div`,{role:`presentation`,className:`${c}-title`,title:typeof r==`string`?r:void 0},r),a.createElement(`ul`,{role:`group`,className:`${c}-list`},i))}),Bb=a.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Tb(r,Py(n));return My()?i:a.createElement(zb,o({ref:t},dl(e,[`warnKey`])),i)}),Vb=[`label`,`children`,`key`,`type`,`extra`];function Hb(e,t,n){var r=t.item,i=t.group,c=t.submenu,l=t.divider;return(e||[]).map(function(e,u){if(e&&s(e)===`object`){var d=e,f=d.label,p=d.children,m=d.key,h=d.type,g=d.extra,_=Ct(d,Vb),v=m??`tmp-${u}`;return p||h===`group`?h===`group`?a.createElement(i,o({key:v},_,{title:f}),Hb(p,t,n)):a.createElement(c,o({key:v},_,{title:f}),Hb(p,t,n)):h===`divider`?a.createElement(l,o({key:v},_)):a.createElement(r,o({key:v},_,{extra:g}),f,(!!g||g===0)&&a.createElement(`span`,{className:`${n}-item-extra`},g))}return null}).filter(function(e){return e})}function Ub(e,t,n,r,i){var a=e,o=O({divider:Lb,item:Sb,group:Bb,submenu:Ib},r);return t&&(a=Hb(t,o,i)),Tb(a,n)}var Wb=`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`.split(`.`),Gb=[],Kb=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=r===void 0?`rc-menu`:r,s=n.rootClassName,c=n.style,l=n.className,u=n.tabIndex,d=u===void 0?0:u,m=n.items,h=n.children,g=n.direction,_=n.id,v=n.mode,y=v===void 0?`vertical`:v,b=n.inlineCollapsed,x=n.disabled,S=n.disabledOverflow,C=n.subMenuOpenDelay,w=C===void 0?.1:C,T=n.subMenuCloseDelay,D=T===void 0?.1:T,k=n.forceSubMenuRender,A=n.defaultOpenKeys,j=n.openKeys,M=n.activeKey,N=n.defaultActiveFirst,P=n.selectable,F=P===void 0?!0:P,I=n.multiple,ee=I===void 0?!1:I,L=n.defaultSelectedKeys,te=n.selectedKeys,R=n.onSelect,z=n.onDeselect,B=n.inlineIndent,V=B===void 0?24:B,H=n.motion,U=n.defaultMotions,W=n.triggerSubMenuAction,G=W===void 0?`hover`:W,ne=n.builtinPlacements,K=n.itemIcon,q=n.expandIcon,J=n.overflowedIndicator,re=J===void 0?`...`:J,ie=n.overflowedIndicatorPopupClassName,ae=n.getPopupContainer,oe=n.onClick,se=n.onOpenChange,ce=n.onKeyDown;n.openAnimation,n.openTransitionName;var le=n._internalRenderMenuItem,ue=n._internalRenderSubMenuItem,de=n._internalComponents,fe=Ct(n,Wb),pe=Z(a.useMemo(function(){return[Ub(h,m,Gb,de,i),Ub(h,m,Gb,{},i)]},[h,m,de]),2),me=pe[0],he=pe[1],ge=Z(a.useState(!1),2),_e=ge[0],ve=ge[1],ye=a.useRef(),be=ub(_),xe=g===`rtl`,Se=Z(Ra(A,{value:j,postState:function(e){return e||Gb}}),2),Ce=Se[0],we=Se[1],Te=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function n(){we(e),se?.(e)}t?(0,f.flushSync)(n):n()},Ee=Z(a.useState(Ce),2),De=Ee[0],Oe=Ee[1],ke=a.useRef(!1),Ae=Z(a.useMemo(function(){return(y===`inline`||y===`vertical`)&&b?[`vertical`,b]:[y,!1]},[y,b]),2),je=Ae[0],Me=Ae[1],Ne=je===`inline`,Pe=Z(a.useState(je),2),Fe=Pe[0],Ie=Pe[1],Le=Z(a.useState(Me),2),Y=Le[0],Re=Le[1];a.useEffect(function(){Ie(je),Re(Me),ke.current&&(Ne?we(De):Te(Gb))},[je,Me]);var ze=Z(a.useState(0),2),Be=ze[0],Ve=ze[1],He=Be>=me.length-1||Fe!==`horizontal`||S;a.useEffect(function(){Ne&&Oe(Ce)},[Ce]),a.useEffect(function(){return ke.current=!0,function(){ke.current=!1}},[]);var Ue=ob(),We=Ue.registerPath,Ge=Ue.unregisterPath,Ke=Ue.refreshOverflowKeys,qe=Ue.isSubPathKey,Je=Ue.getKeyPath,Ye=Ue.getKeys,Xe=Ue.getSubPathKeys,Ze=a.useMemo(function(){return{registerPath:We,unregisterPath:Ge}},[We,Ge]),Qe=a.useMemo(function(){return{isSubPathKey:qe}},[qe]);a.useEffect(function(){Ke(He?Gb:me.slice(Be+1).map(function(e){return e.key}))},[Be,He]);var $e=Z(Ra(M||N&&me[0]?.key,{value:M}),2),et=$e[0],tt=$e[1],nt=sb(function(e){tt(e)}),rt=sb(function(){tt(void 0)});(0,a.useImperativeHandle)(t,function(){return{list:ye.current,focus:function(e){var t=$y(Ye(),be),n=t.elements,r=t.key2element,i=t.element2key,a=Zy(ye.current,n),o=et??(a[0]?i.get(a[0]):me.find(function(e){return!e.props.disabled})?.key),s=r.get(o);if(o&&s){var c;s==null||(c=s.focus)==null||c.call(s,e)}}}});var it=Z(Ra(L||[],{value:te,postState:function(e){return Array.isArray(e)?e:e==null?Gb:[e]}}),2),at=it[0],ot=it[1],st=function(e){if(F){var t=e.key,n=at.includes(t),r=ee?n?at.filter(function(e){return e!==t}):[].concat(X(at),[t]):[t];ot(r);var i=O(O({},e),{},{selectedKeys:r});n?z?.(i):R?.(i)}!ee&&Ce.length&&Fe!==`inline`&&Te(Gb)},ct=sb(function(e){oe?.(hb(e)),st(e)}),lt=sb(function(e,t){var n=Ce.filter(function(t){return t!==e});if(t)n.push(e);else if(Fe!==`inline`){var r=Xe(e);n=n.filter(function(e){return!r.has(e)})}wt(Ce,n,!0)||Te(n,!0)}),ut=eb(Fe,et,xe,be,ye,Ye,Je,tt,function(e,t){lt(e,t??!Ce.includes(e))},ce);a.useEffect(function(){ve(!0)},[]);var dt=a.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:ue}},[le,ue]),ft=Fe!==`horizontal`||S?me:me.map(function(e,t){return a.createElement(ky,{key:e.key,overflowDisabled:t>Be},e)}),pt=a.createElement(kh,o({id:_,ref:ye,prefixCls:`${i}-overflow`,component:`ul`,itemComponent:Sb,className:(0,p.default)(i,`${i}-root`,`${i}-${Fe}`,l,E(E({},`${i}-inline-collapsed`,Y),`${i}-rtl`,xe),s),dir:g,style:c,role:`menu`,tabIndex:d,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?me.slice(-t):null;return a.createElement(Ib,{eventKey:ab,title:re,disabled:He,internalPopupClose:t===0,popupClassName:ie},n)},maxCount:Fe!==`horizontal`||S?kh.INVALIDATE:kh.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:function(e){Ve(e)},onKeyDown:ut},fe));return a.createElement(Iy.Provider,{value:dt},a.createElement(Cy.Provider,{value:be},a.createElement(ky,{prefixCls:i,rootClassName:s,mode:Fe,openKeys:Ce,rtl:xe,disabled:x,motion:_e?H:null,defaultMotions:_e?U:null,activeKey:et,onActive:nt,onInactive:rt,selectedKeys:at,inlineIndent:V,subMenuOpenDelay:w,subMenuCloseDelay:D,forceSubMenuRender:k,builtinPlacements:ne,triggerSubMenuAction:G,getPopupContainer:ae,itemIcon:K,expandIcon:q,onItemClick:ct,onOpenChange:lt},a.createElement(Fy.Provider,{value:Qe},pt),a.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},a.createElement(jy.Provider,{value:Ze},he)))))});Kb.Item=Sb,Kb.SubMenu=Ib,Kb.ItemGroup=Bb,Kb.Divider=Lb;var qb={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`},Jb=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:qb}))});function Yb(e){return Ha(e,{inputAffixPadding:e.paddingXXS})}var Xb=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},Zb=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Qb=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({},Zb(Ha(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),$b=(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}}),ex=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$b(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),tx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$b(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Qb(e))}),ex(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ex(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),rx=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nx(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nx(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Qb(e))}})}),ix=(e,t)=>{let{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)}},ax=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ox=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ax(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),sx=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ax(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Qb(e))}),ox(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ox(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),cx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),lx=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}}},cx(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),cx(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ux=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),dx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ux(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`}}),fx=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ux(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`}}),dx(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),dx(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),px=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),mx=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Q(t)} ${Q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},hx=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gx=e=>Object.assign(Object.assign({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},px(e.colorTextPlaceholder)),{"&-lg":Object.assign({},mx(e)),"&-sm":Object.assign({},hx(e)),"&-rtl, &-textarea-rtl":{direction:`rtl`}}),_x=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},mx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},hx(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 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(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:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}}},[`${n}-cascader-picker`]:{margin:`-9px ${Q(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`},ho()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[`
- & > ${t}-affix-wrapper,
- & > ${t}-number-affix-wrapper,
- & > ${n}-picker-range
- `]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select > ${n}-select-selector,
- & > ${n}-select-auto-complete ${t},
- & > ${n}-cascader-picker ${t},
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
- & > ${n}-select:first-child > ${n}-select-selector,
- & > ${n}-select-auto-complete:first-child ${t},
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
- & > ${n}-select:last-child > ${n}-select-selector,
- & > ${n}-cascader-picker:last-child ${t},
- & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{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}}}})}},vx=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),gx(e)),tx(e)),sx(e)),ix(e)),fx(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}})}},yx=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},bx=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},gx(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}}}),yx(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},xx=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},po(e)),_x(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}}},rx(e)),lx(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}}})})}},Sx=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:`none`},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:`rtl`},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
- > ${t},
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Cx=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},wx=So([`Input`,`Shared`],e=>{let t=Ha(e,Yb(e));return[vx(t),bx(t)]},Xb,{resetFont:!1}),Tx=So([`Input`,`Component`],e=>{let t=Ha(e,Yb(e));return[xx(t),Sx(t),Cx(t),Bd(t)]},Xb,{resetFont:!1}),Ex=(0,a.createContext)({}),Dx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ox(e){return e===`auto`?`1 1 auto`:typeof e==`number`?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var kx=[`xs`,`sm`,`md`,`lg`,`xl`,`xxl`],Ax=a.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=a.useContext(ha),{gutter:i,wrap:o}=a.useContext(Ex),{prefixCls:s,span:c,order:l,offset:u,push:d,pull:f,className:m,children:h,flex:g,style:_}=e,v=Dx(e,[`prefixCls`,`span`,`order`,`offset`,`push`,`pull`,`className`,`children`,`flex`,`style`]),y=n(`col`,s),[b,x,S]=$m(y),C={},w={};kx.forEach(t=>{let n={},i=e[t];typeof i==`number`?n.span=i:typeof i==`object`&&(n=i||{}),delete v[t],w=Object.assign(Object.assign({},w),{[`${y}-${t}-${n.span}`]:n.span!==void 0,[`${y}-${t}-order-${n.order}`]:n.order||n.order===0,[`${y}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${y}-${t}-push-${n.push}`]:n.push||n.push===0,[`${y}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${y}-rtl`]:r===`rtl`}),n.flex&&(w[`${y}-${t}-flex`]=!0,C[`--${y}-${t}-flex`]=Ox(n.flex))});let T=(0,p.default)(y,{[`${y}-${c}`]:c!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},m,w,x,S),E={};if(i?.[0]){let e=typeof i[0]==`number`?`${i[0]/2}px`:`calc(${i[0]} / 2)`;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=Ox(g),o===!1&&!E.minWidth&&(E.minWidth=0)),b(a.createElement(`div`,Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),_),C),className:T,ref:t}),h))});function jx(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if(typeof e==`object`&&e)for(let r=0;r<Nv.length;r++){let a=Nv[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var Mx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Nx(e,t){let[n,r]=a.useState(typeof e==`string`?e:``),i=()=>{if(typeof e==`string`&&r(e),typeof e==`object`)for(let n=0;n<Nv.length;n++){let i=Nv[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return a.useEffect(()=>{i()},[JSON.stringify(e),t]),n}var Px=a.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:o,style:s,children:c,gutter:l=0,wrap:u}=e,d=Mx(e,[`prefixCls`,`justify`,`align`,`className`,`style`,`children`,`gutter`,`wrap`]),{getPrefixCls:f,direction:m}=a.useContext(ha),h=Rv(!0,null),g=Nx(i,h),_=Nx(r,h),v=f(`row`,n),[y,b,x]=Zm(v),S=jx(l,h),C=(0,p.default)(v,{[`${v}-no-wrap`]:u===!1,[`${v}-${_}`]:_,[`${v}-${g}`]:g,[`${v}-rtl`]:m===`rtl`},o,b,x),w={};if(S?.[0]){let e=typeof S[0]==`number`?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;w.marginLeft=e,w.marginRight=e}let[T,E]=S;w.rowGap=E;let D=a.useMemo(()=>({gutter:[T,E],wrap:u}),[T,E,u]);return y(a.createElement(Ex.Provider,{value:D},a.createElement(`div`,Object.assign({},d,{className:C,style:Object.assign(Object.assign({},w),s),ref:t}),c)))});function Fx(){return Rv()}var Ix={useBreakpoint:Fx};function Lx(e){return!!(e.addonBefore||e.addonAfter)}function Rx(e){return!!(e.prefix||e.suffix||e.allowClear)}function zx(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function Bx(e,t,n,r){if(n){var i=t;if(t.type===`click`){i=zx(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=zx(t,e,r),n(i);return}n(i)}}function Vx(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 Hx=a.forwardRef(function(e,t){var n=e.inputElement,r=e.children,i=e.prefixCls,c=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,h=e.disabled,g=e.readOnly,_=e.focused,v=e.triggerFocus,y=e.allowClear,b=e.value,x=e.handleReset,S=e.hidden,C=e.classes,w=e.classNames,T=e.dataAttrs,D=e.styles,k=e.components,A=e.onClear,j=r??n,M=k?.affixWrapper||`span`,N=k?.groupWrapper||`span`,P=k?.wrapper||`span`,F=k?.groupAddon||`span`,I=(0,a.useRef)(null),ee=function(e){var t;(t=I.current)!=null&&t.contains(e.target)&&v?.()},L=Rx(e),te=(0,a.cloneElement)(j,{value:b,className:(0,p.default)(j.props?.className,!L&&w?.variant)||null}),R=(0,a.useRef)(null);if(a.useImperativeHandle(t,function(){return{nativeElement:R.current||I.current}}),L){var z=null;if(y){var B=!h&&!g&&b,V=`${i}-clear-icon`,H=s(y)===`object`&&y!=null&&y.clearIcon?y.clearIcon:`✖`;z=a.createElement(`button`,{type:`button`,tabIndex:-1,onClick:function(e){x?.(e),A?.()},onMouseDown:function(e){return e.preventDefault()},className:(0,p.default)(V,E(E({},`${V}-hidden`,!B),`${V}-has-suffix`,!!l))},H)}var U=`${i}-affix-wrapper`,W=(0,p.default)(U,E(E(E(E(E({},`${i}-disabled`,h),`${U}-disabled`,h),`${U}-focused`,_),`${U}-readonly`,g),`${U}-input-with-clear-btn`,l&&y&&b),C?.affixWrapper,w?.affixWrapper,w?.variant),G=(l||y)&&a.createElement(`span`,{className:(0,p.default)(`${i}-suffix`,w?.suffix),style:D?.suffix},z,l);te=a.createElement(M,o({className:W,style:D?.affixWrapper,onClick:ee},T?.affixWrapper,{ref:I}),c&&a.createElement(`span`,{className:(0,p.default)(`${i}-prefix`,w?.prefix),style:D?.prefix},c),te,G)}if(Lx(e)){var ne=`${i}-group`,K=`${ne}-addon`,q=`${ne}-wrapper`,J=(0,p.default)(`${i}-wrapper`,ne,C?.wrapper,w?.wrapper),re=(0,p.default)(q,E({},`${q}-disabled`,h),C?.group,w?.groupWrapper);te=a.createElement(N,{className:re,ref:R},a.createElement(P,{className:J},u&&a.createElement(F,{className:K},u),te,d&&a.createElement(F,{className:K},d)))}return a.cloneElement(te,{className:(0,p.default)(te.props?.className,f)||null,style:O(O({},te.props?.style),m),hidden:S})}),Ux=[`show`];function Wx(e,t){return a.useMemo(function(){var n={};t&&(n.show=s(t)===`object`&&t.formatter?t.formatter:!!t),n=O(O({},n),e);var r=n,i=r.show,a=Ct(r,Ux);return O(O({},a),{},{show:!!i,showFormatter:typeof i==`function`?i:void 0,strategy:a.strategy||function(e){return e.length}})},[e,t])}var Gx=[`autoComplete`,`onChange`,`onFocus`,`onBlur`,`onPressEnter`,`onKeyDown`,`onKeyUp`,`prefixCls`,`disabled`,`htmlSize`,`className`,`maxLength`,`suffix`,`showCount`,`count`,`type`,`classes`,`classNames`,`styles`,`onCompositionStart`,`onCompositionEnd`],Kx=(0,a.forwardRef)(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,s=e.onBlur,c=e.onPressEnter,l=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,f=d===void 0?`rc-input`:d,m=e.disabled,h=e.htmlSize,g=e.className,_=e.maxLength,v=e.suffix,y=e.showCount,b=e.count,x=e.type,S=x===void 0?`text`:x,C=e.classes,w=e.classNames,T=e.styles,D=e.onCompositionStart,k=e.onCompositionEnd,A=Ct(e,Gx),j=Z((0,a.useState)(!1),2),M=j[0],N=j[1],P=(0,a.useRef)(!1),F=(0,a.useRef)(!1),I=(0,a.useRef)(null),ee=(0,a.useRef)(null),L=function(e){I.current&&Vx(I.current,e)},te=Z(Ra(e.defaultValue,{value:e.value}),2),R=te[0],z=te[1],B=R==null?``:String(R),V=Z((0,a.useState)(null),2),H=V[0],U=V[1],W=Wx(b,y),G=W.max||_,ne=W.strategy(B),K=!!G&&ne>G;(0,a.useImperativeHandle)(t,function(){return{focus:L,blur:function(){var e;(e=I.current)==null||e.blur()},setSelectionRange:function(e,t,n){var r;(r=I.current)==null||r.setSelectionRange(e,t,n)},select:function(){var e;(e=I.current)==null||e.select()},input:I.current,nativeElement:ee.current?.nativeElement||I.current}}),(0,a.useEffect)(function(){F.current&&=!1,N(function(e){return e&&m?!1:e})},[m]);var q=function(e,t,n){var i=t;if(!P.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max)i=W.exceedFormatter(t,{max:W.max}),t!==i&&U([I.current?.selectionStart||0,I.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;z(i),I.current&&Bx(I.current,e,r,i)};(0,a.useEffect)(function(){if(H){var e;(e=I.current)==null||e.setSelectionRange.apply(e,X(H))}},[H]);var J=function(e){q(e,e.target.value,{source:`change`})},re=function(e){P.current=!1,q(e,e.currentTarget.value,{source:`compositionEnd`}),k?.(e)},ie=function(e){c&&e.key===`Enter`&&!F.current&&(F.current=!0,c(e)),l?.(e)},ae=function(e){e.key===`Enter`&&(F.current=!1),u?.(e)},oe=function(e){N(!0),i?.(e)},se=function(e){F.current&&=!1,N(!1),s?.(e)},ce=function(e){z(``),L(),I.current&&Bx(I.current,e,r)},le=K&&`${f}-out-of-range`;return a.createElement(Hx,o({},A,{prefixCls:f,className:(0,p.default)(g,le),handleReset:ce,value:B,focused:M,triggerFocus:L,suffix:function(){var e=Number(G)>0;if(v||W.show){var t=W.showFormatter?W.showFormatter({value:B,count:ne,maxLength:G}):`${ne}${e?` / ${G}`:``}`;return a.createElement(a.Fragment,null,W.show&&a.createElement(`span`,{className:(0,p.default)(`${f}-show-count-suffix`,E({},`${f}-show-count-has-suffix`,!!v),w?.count),style:O({},T?.count)},t),v)}return null}(),disabled:m,classes:C,classNames:w,styles:T,ref:ee}),function(){var t=dl(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return a.createElement(`input`,o({autoComplete:n},t,{onChange:J,onFocus:oe,onBlur:se,onKeyDown:ie,onKeyUp:ae,className:(0,p.default)(f,E({},`${f}-disabled`,m),w?.input),style:T?.input,ref:I,size:h,type:S,onCompositionStart:function(e){P.current=!0,D?.(e)},onCompositionEnd:re}))}())}),qx=e=>{let t;return typeof e==`object`&&e?.clearIcon?t=e:e&&(t={clearIcon:a.createElement(cc,null)}),t};function Jx(e,t){let n=(0,a.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t;e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&((t=e.current)==null||t.input.removeAttribute(`value`))}))};return(0,a.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function Yx(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Xx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Zx=(0,a.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:o,disabled:s,onBlur:c,onFocus:l,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:h,style:g,styles:_,rootClassName:v,onChange:y,classNames:b,variant:x,_skipAddonWarning:S}=e,C=Xx(e,[`prefixCls`,`bordered`,`status`,`size`,`disabled`,`onBlur`,`onFocus`,`suffix`,`allowClear`,`addonAfter`,`addonBefore`,`className`,`style`,`styles`,`rootClassName`,`onChange`,`classNames`,`variant`,`_skipAddonWarning`]),{getPrefixCls:w,direction:T,allowClear:E,autoComplete:D,className:O,style:k,classNames:A,styles:j}=va(`input`),M=w(`input`,n),N=(0,a.useRef)(null),P=yc(M),[F,I,ee]=wx(M,v),[te]=Tx(M,P),{compactSize:R,compactItemClassnames:z}=Dl(M,T),B=Sl(e=>o??R??e),V=a.useContext(Sa),H=s??V,{status:U,hasFeedback:W,feedbackIcon:G}=(0,a.useContext)(om),ne=M_(U,i);(0,a.useRef)(Yx(e)||!!W);let K=Jx(N,!0),q=e=>{K(),c?.(e)},J=e=>{K(),l?.(e)},re=e=>{K(),y?.(e)},ie=(W||u)&&a.createElement(a.Fragment,null,u,W&&G),ae=qx(d??E),[oe,se]=H_(`input`,x,r);return F(te(a.createElement(Kx,Object.assign({ref:L(t,N),prefixCls:M,autoComplete:D},C,{disabled:H,onBlur:q,onFocus:J,style:Object.assign(Object.assign({},k),g),styles:Object.assign(Object.assign({},j),_),suffix:ie,allowClear:ae,className:(0,p.default)(h,v,ee,P,z,O),onChange:re,addonBefore:m&&a.createElement(lm,{form:!0,space:!0},m),addonAfter:f&&a.createElement(lm,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},b),A),{input:(0,p.default)({[`${M}-sm`]:B===`small`,[`${M}-lg`]:B===`large`,[`${M}-rtl`]:T===`rtl`},b?.input,A.input,I),variant:(0,p.default)({[`${M}-${oe}`]:se},j_(M,ne)),affixWrapper:(0,p.default)({[`${M}-affix-wrapper-sm`]:B===`small`,[`${M}-affix-wrapper-lg`]:B===`large`,[`${M}-affix-wrapper-rtl`]:T===`rtl`},I),wrapper:(0,p.default)({[`${M}-group-rtl`]:T===`rtl`},I),groupWrapper:(0,p.default)({[`${M}-group-wrapper-sm`]:B===`small`,[`${M}-group-wrapper-lg`]:B===`large`,[`${M}-group-wrapper-rtl`]:T===`rtl`,[`${M}-group-wrapper-${oe}`]:se},j_(`${M}-group-wrapper`,ne,W),I)})}))))});function Qx(e){return[`small`,`middle`,`large`].includes(e)}function $x(e){return e?typeof e==`number`&&!Number.isNaN(e):!1}var eS=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d}=e;return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,paddingInline:r,margin:0,background:u,borderWidth:d,borderStyle:`solid`,borderColor:i,borderRadius:n,"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Bd(e,{focus:!1})]}},tS=So([`Space`,`Addon`],e=>[eS(e)]),nS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},rS=a.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:o}=e,s=nS(e,[`className`,`children`,`style`,`prefixCls`]),{getPrefixCls:c,direction:l}=a.useContext(ha),u=c(`space-addon`,o),[d,f,m]=tS(u),{compactItemClassnames:h,compactSize:g}=Dl(u,l),_=(0,p.default)(u,f,h,m,{[`${u}-${g}`]:g},n);return d(a.createElement(`div`,Object.assign({ref:t,className:_,style:i},s),r))}),iS=a.createContext({latestIndex:0}),aS=iS.Provider,oS=({className:e,index:t,children:n,split:r,style:i})=>{let{latestIndex:o}=a.useContext(iS);return n==null?null:a.createElement(a.Fragment,null,a.createElement(`div`,{className:e,style:i},n),t<o&&r&&a.createElement(`span`,{className:`${e}-split`},r))},sS=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},cS=e=>{let{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}}}},lS=So(`Space`,e=>{let t=Ha(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[sS(t),cS(t)]},()=>({}),{resetStyle:!1}),uS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},dS=a.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:o,style:s,classNames:c,styles:l}=va(`space`),{size:u=i??`small`,align:d,className:f,rootClassName:h,children:g,direction:_=`horizontal`,prefixCls:v,split:y,style:b,wrap:x=!1,classNames:S,styles:C}=e,w=uS(e,[`size`,`align`,`className`,`rootClassName`,`children`,`direction`,`prefixCls`,`split`,`style`,`wrap`,`classNames`,`styles`]),[T,E]=Array.isArray(u)?u:[u,u],D=Qx(E),O=Qx(T),k=$x(E),A=$x(T),j=m(g,{keepEmpty:!0}),M=d===void 0&&_===`horizontal`?`center`:d,N=n(`space`,v),[P,F,I]=lS(N),ee=(0,p.default)(N,o,F,`${N}-${_}`,{[`${N}-rtl`]:r===`rtl`,[`${N}-align-${M}`]:M,[`${N}-gap-row-${E}`]:D,[`${N}-gap-col-${T}`]:O},f,h,I),L=(0,p.default)(`${N}-item`,S?.item??c.item),te=Object.assign(Object.assign({},l.item),C?.item),R=j.map((e,t)=>{let n=e?.key||`${L}-${t}`;return a.createElement(oS,{className:L,key:n,index:t,split:y,style:te},e)}),z=a.useMemo(()=>({latestIndex:j.reduce((e,t,n)=>t==null?e:n,0)}),[j]);if(j.length===0)return null;let B={};return x&&(B.flexWrap=`wrap`),!O&&A&&(B.columnGap=T),!D&&k&&(B.rowGap=E),P(a.createElement(`div`,Object.assign({ref:t,className:ee,style:Object.assign(Object.assign(Object.assign({},B),s),b)},w),a.createElement(aS,{value:z},R)))});dS.Compact=Al,dS.Addon=rS;var fS=`
- min-height:0 !important;
- max-height:none !important;
- height:0 !important;
- visibility:hidden !important;
- overflow:hidden !important;
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- pointer-events: none !important;
- `,pS=[`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`],mS={},hS;function gS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&mS[n])return mS[n];var r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:pS.map(function(e){return`${e}:${r.getPropertyValue(e)}`}).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(mS[n]=s),s}function _S(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hS||(hS=document.createElement(`textarea`),hS.setAttribute(`tab-index`,`-1`),hS.setAttribute(`aria-hidden`,`true`),hS.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(hS)),e.getAttribute(`wrap`)?hS.setAttribute(`wrap`,e.getAttribute(`wrap`)):hS.removeAttribute(`wrap`);var i=gS(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;hS.setAttribute(`style`,`${c};${fS}`),hS.value=e.value||e.placeholder||``;var l=void 0,u=void 0,d,f=hS.scrollHeight;if(s===`border-box`?f+=o:s===`content-box`&&(f-=a),n!==null||r!==null){hS.value=` `;var p=hS.scrollHeight-a;n!==null&&(l=p*n,s===`border-box`&&(l=l+a+o),f=Math.max(l,f)),r!==null&&(u=p*r,s===`border-box`&&(u=u+a+o),d=f>u?``:`hidden`,f=Math.min(u,f))}var m={height:f,overflowY:d,resize:`none`};return l&&(m.minHeight=l),u&&(m.maxHeight=u),m}var vS=[`prefixCls`,`defaultValue`,`value`,`autoSize`,`onResize`,`className`,`style`,`disabled`,`onChange`,`onInternalAutoSize`],yS=0,bS=1,xS=2,SS=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,c=n.value,l=n.autoSize,u=n.onResize,d=n.className,f=n.style,m=n.disabled,h=n.onChange;n.onInternalAutoSize;var g=Ct(n,vS),_=Z(Ra(i,{value:c,postState:function(e){return e??``}}),2),v=_[0],y=_[1],b=function(e){y(e.target.value),h?.(e)},x=a.useRef();a.useImperativeHandle(t,function(){return{textArea:x.current}});var S=Z(a.useMemo(function(){return l&&s(l)===`object`?[l.minRows,l.maxRows]:[]},[l]),2),C=S[0],w=S[1],T=!!l,D=Z(a.useState(xS),2),k=D[0],A=D[1],j=Z(a.useState(),2),M=j[0],N=j[1],P=function(){A(yS)};Zt(function(){T&&P()},[c,C,w,T]),Zt(function(){if(k===yS)A(bS);else if(k===bS){var e=_S(x.current,!1,C,w);A(xS),N(e)}},[k]);var F=a.useRef(),I=function(){nt.cancel(F.current)},ee=function(e){k===xS&&(u?.(e),l&&(I(),F.current=nt(function(){P()})))};a.useEffect(function(){return I},[]);var L=T?M:null,te=O(O({},f),L);return(k===yS||k===bS)&&(te.overflowY=`hidden`,te.overflowX=`hidden`),a.createElement(Ge,{onResize:ee,disabled:!(l||u)},a.createElement(`textarea`,o({},g,{ref:x,style:te,className:(0,p.default)(r,d,E({},`${r}-disabled`,m)),disabled:m,value:v,onChange:b})))}),CS=[`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`],wS=a.forwardRef(function(e,t){var n=e.defaultValue,r=e.value,i=e.onFocus,s=e.onBlur,c=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,g=h===void 0?`rc-textarea`:h,_=e.showCount,v=e.count,y=e.className,b=e.style,x=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,T=e.onResize,D=e.onClear,k=e.onPressEnter,A=e.readOnly,j=e.autoSize,M=e.onKeyDown,N=Ct(e,CS),P=Z(Ra(n,{value:r,defaultValue:n}),2),F=P[0],I=P[1],ee=F==null?``:String(F),L=Z(a.useState(!1),2),te=L[0],R=L[1],z=a.useRef(!1),B=Z(a.useState(null),2),V=B[0],H=B[1],U=(0,a.useRef)(null),W=(0,a.useRef)(null),G=function(){return W.current?.textArea},ne=function(){G().focus()};(0,a.useImperativeHandle)(t,function(){return{resizableTextArea:W.current,focus:ne,blur:function(){G().blur()},nativeElement:U.current?.nativeElement||G()}}),(0,a.useEffect)(function(){R(function(e){return!x&&e})},[x]);var K=Z(a.useState(null),2),q=K[0],J=K[1];a.useEffect(function(){if(q){var e;(e=G()).setSelectionRange.apply(e,X(q))}},[q]);var re=Wx(v,_),ie=re.max??u,ae=Number(ie)>0,oe=re.strategy(ee),se=!!ie&&oe>ie,ce=function(e,t){var n=t;!z.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&(n=re.exceedFormatter(t,{max:re.max}),t!==n&&J([G().selectionStart||0,G().selectionEnd||0])),I(n),Bx(e.currentTarget,e,c,n)},le=function(e){z.current=!0,d?.(e)},ue=function(e){z.current=!1,ce(e,e.currentTarget.value),f?.(e)},de=function(e){ce(e,e.target.value)},fe=function(e){e.key===`Enter`&&k&&k(e),M?.(e)},pe=function(e){R(!0),i?.(e)},me=function(e){R(!1),s?.(e)},he=function(e){I(``),ne(),Bx(G(),e,c)},ge=m,_e;re.show&&(_e=re.showFormatter?re.showFormatter({value:ee,count:oe,maxLength:ie}):`${oe}${ae?` / ${ie}`:``}`,ge=a.createElement(a.Fragment,null,ge,a.createElement(`span`,{className:(0,p.default)(`${g}-data-count`,C?.count),style:w?.count},_e)));var ve=function(e){var t;T?.(e),(t=G())!=null&&t.style.height&&H(!0)},ye=!j&&!_&&!l;return a.createElement(Hx,{ref:U,value:ee,allowClear:l,handleReset:he,suffix:ge,prefixCls:g,classNames:O(O({},C),{},{affixWrapper:(0,p.default)(C?.affixWrapper,E(E({},`${g}-show-count`,_),`${g}-textarea-allow-clear`,l))}),disabled:x,focused:te,className:(0,p.default)(y,se&&`${g}-out-of-range`),style:O(O({},b),V&&!ye?{height:`auto`}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _e==`string`?_e:void 0}},hidden:S,readOnly:A,onClear:D},a.createElement(SS,o({},N,{autoSize:j,maxLength:u,onKeyDown:fe,onChange:de,onFocus:pe,onBlur:me,onCompositionStart:le,onCompositionEnd:ue,className:(0,p.default)(C?.textarea),style:O(O({},w?.textarea),{},{resize:b?.resize}),disabled:x,prefixCls:g,onResize:ve,ref:W,readOnly:A})))}),TS=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
- &-allow-clear > ${t},
- &-affix-wrapper${r}-has-feedback ${t}
- `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ES=So([`Input`,`TextArea`],e=>TS(Ha(e,Yb(e))),Xb,{resetFont:!1}),DS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},OS=(0,a.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:o,status:s,allowClear:c,classNames:l,rootClassName:u,className:d,style:f,styles:m,variant:h,showCount:g,onMouseDown:_,onResize:v}=e,y=DS(e,[`prefixCls`,`bordered`,`size`,`disabled`,`status`,`allowClear`,`classNames`,`rootClassName`,`className`,`style`,`styles`,`variant`,`showCount`,`onMouseDown`,`onResize`]),{getPrefixCls:b,direction:x,allowClear:S,autoComplete:C,className:w,style:T,classNames:E,styles:D}=va(`textArea`),O=a.useContext(Sa),k=o??O,{status:A,hasFeedback:j,feedbackIcon:M}=a.useContext(om),N=M_(A,s),P=a.useRef(null);a.useImperativeHandle(t,()=>({resizableTextArea:P.current?.resizableTextArea,focus:e=>{Vx(P.current?.resizableTextArea?.textArea,e)},blur:()=>P.current?.blur()}));let F=b(`input`,n),I=yc(F),[ee,L,te]=wx(F,u),[R]=ES(F,I),{compactSize:z,compactItemClassnames:B}=Dl(F,x),V=Sl(e=>i??z??e),[H,U]=H_(`textArea`,h,r),W=qx(c??S),[G,ne]=a.useState(!1),[K,q]=a.useState(!1),J=e=>{ne(!0),_?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},re=e=>{if(v?.(e),G&&typeof getComputedStyle==`function`){let e=(P.current?.nativeElement)?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&q(!0)}};return ee(R(a.createElement(wS,Object.assign({autoComplete:C},y,{style:Object.assign(Object.assign({},T),f),styles:Object.assign(Object.assign({},D),m),disabled:k,allowClear:W,className:(0,p.default)(te,I,d,u,B,w,K&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},l),E),{textarea:(0,p.default)({[`${F}-sm`]:V===`small`,[`${F}-lg`]:V===`large`},L,l?.textarea,E.textarea,G&&`${F}-mouse-active`),variant:(0,p.default)({[`${F}-${H}`]:U},j_(F,N)),affixWrapper:(0,p.default)(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:x===`rtl`,[`${F}-affix-wrapper-sm`]:V===`small`,[`${F}-affix-wrapper-lg`]:V===`large`,[`${F}-textarea-show-count`]:g||e.count?.show},L)}),prefixCls:F,suffix:j&&a.createElement(`span`,{className:`${F}-textarea-suffix`},M),showCount:g,ref:P,onResize:re,onMouseDown:J}))))}),kS=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e],AS={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`},jS=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:AS}))}),MS={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`},NS=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:MS}))}),PS=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},FS=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
- h${t}&,
- div&-h${t},
- div&-h${t} > textarea,
- h${t}
- `]=PS(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},IS=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},xo(e)),{userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`}}})}},LS=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:Di[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}}),RS=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},zS=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),BS=()=>({"\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`}}),VS=So(`Typography`,e=>{let{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`}},FS(e)),{[`
- & + h1${t},
- & + h2${t},
- & + h3${t},
- & + h4${t},
- & + h5${t}
- `]:{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}}}),LS(e)),IS(e)),{[`
- ${t}-expand,
- ${t}-collapse,
- ${t}-edit,
- ${t}-copy
- `]:Object.assign(Object.assign({},xo(e)),{marginInlineStart:e.marginXXS})}),RS(e)),zS(e)),BS()),{"&-rtl":{direction:`rtl`}})}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),HS=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:s,autoSize:c=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:h=a.createElement(NS,null)}=e,g=a.useRef(null),_=a.useRef(!1),v=a.useRef(null),[y,b]=a.useState(l);a.useEffect(()=>{b(l)},[l]),a.useEffect(()=>{if(g.current?.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let x=({target:e})=>{b(e.value.replace(/[\n\r]/g,``))},S=()=>{_.current=!0},C=()=>{_.current=!1},w=({keyCode:e})=>{_.current||(v.current=e)},T=()=>{u(y.trim())},E=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{v.current!==e||_.current||t||n||r||i||(e===$.ENTER?(T(),f?.()):e===$.ESC&&d())},D=()=>{T()},[O,k,A]=VS(t),j=(0,p.default)(t,`${t}-edit-content`,{[`${t}-rtl`]:o===`rtl`,[`${t}-${m}`]:!!m},r,k,A);return O(a.createElement(`div`,{className:j,style:i},a.createElement(OS,{ref:g,maxLength:s,value:y,onChange:x,onKeyDown:w,onKeyUp:E,onCompositionStart:S,onCompositionEnd:C,onBlur:D,"aria-label":n,rows:1,autoSize:c}),h===null?null:vc(h,{className:`${t}-edit-content-confirm`})))},US=n(((e,t)=>{t.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;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),WS=e(n(((e,t)=>{var n=US(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o}))()),GS=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},KS=({copyConfig:e,children:t})=>{let[n,r]=a.useState(!1),[i,o]=a.useState(!1),s=a.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},l={};return e.format&&(l.format=e.format),a.useEffect(()=>c,[]),{copied:n,copyLoading:i,onClick:Fa(n=>GS(void 0,void 0,void 0,function*(){var i;n?.preventDefault(),n?.stopPropagation(),o(!0);try{(0,WS.default)((typeof e.text==`function`?yield e.text():e.text)||kS(t,!0).join(``)||``,l),o(!1),r(!0),c(),s.current=setTimeout(()=>{r(!1)},3e3),(i=e.onCopy)==null||i.call(e,n)}catch(e){throw o(!1),e}}))}};function qS(e,t){return a.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e==`object`?e:null)]},[e])}var JS=e=>{let t=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{t.current=e}),t.current},YS=(e,t,n)=>(0,a.useMemo)(()=>e===!0?{title:t??n}:(0,a.isValidElement)(e)?{title:e}:typeof e==`object`?Object.assign({title:t??n},e):{title:e},[e,t,n]),XS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ZS=a.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:o,setContentRef:s,children:c,direction:l,style:u}=e,d=XS(e,[`prefixCls`,`component`,`className`,`rootClassName`,`setContentRef`,`children`,`direction`,`style`]),{getPrefixCls:f,direction:m,className:h,style:g}=va(`typography`),_=l??m,v=s?L(t,s):t,y=f(`typography`,n),[b,x,S]=VS(y),C=(0,p.default)(y,h,{[`${y}-rtl`]:_===`rtl`},i,o,x,S),w=Object.assign(Object.assign({},g),u);return b(a.createElement(r,Object.assign({className:C,style:w,ref:v},d),c))}),QS={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`},$S=a.forwardRef(function(e,t){return a.createElement(oc,o({},e,{ref:t,icon:QS}))});function eC(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function tC(e,t,n){return e===!0||e===void 0?t:e||n&&t}function nC(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var rC=e=>[`string`,`number`].includes(typeof e),iC=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:o,tabIndex:s,onCopy:c,loading:l})=>{let u=eC(i),d=eC(o),{copied:f,copy:m}=n??{},h=t?f:m,g=tC(u[+!!t],h),_=typeof g==`string`?g:h;return a.createElement(fy,{title:g},a.createElement(`button`,{type:`button`,className:(0,p.default)(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":_,tabIndex:s},t?tC(d[1],a.createElement(yv,null),!0):tC(d[0],l?a.createElement(xc,null):a.createElement($S,null),!0)))},aC=a.forwardRef(({style:e,children:t},n)=>{let r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement(`span`,{"aria-hidden":!0,ref:r,style:Object.assign({position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`},e)},t)}),oC=e=>e.reduce((e,t)=>e+(rC(t)?String(t).length:1),0);function sC(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=rC(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var cC=0,lC=1,uC=2,dC=3,fC=4,pC={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function mC(e){let{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:s,miscDeps:c,onEllipsis:l}=e,u=a.useMemo(()=>m(r),[r]),d=a.useMemo(()=>oC(u),[r]),f=a.useMemo(()=>i(u,!1),[r]),[p,h]=a.useState(null),g=a.useRef(null),_=a.useRef(null),v=a.useRef(null),y=a.useRef(null),b=a.useRef(null),[x,S]=a.useState(!1),[C,w]=a.useState(cC),[T,E]=a.useState(0),[D,O]=a.useState(null);Zt(()=>{w(t&&n&&d?lC:cC)},[n,r,o,t,u]),Zt(()=>{if(C===lC){w(uC);let e=_.current&&getComputedStyle(_.current).whiteSpace;O(e)}else if(C===uC){let e=!!v.current?.isExceed();w(e?dC:fC),h(e?[0,d]:null),S(e);let t=v.current?.getHeight()||0,n=o===1?0:y.current?.getHeight()||0,r=b.current?.getHeight()||0,i=Math.max(t,n+r);E(i+1),l(e)}},[C]);let k=p?Math.ceil((p[0]+p[1])/2):0;Zt(()=>{let[e,t]=p||[0,0];if(e!==t){let n=(g.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),h(n?[e,r]:[r,t])}},[p,k]);let A=a.useMemo(()=>{if(!t)return i(u,!1);if(C!==dC||!p||p[0]!==p[1]){let e=i(u,!1);return[fC,cC].includes(C)?e:a.createElement(`span`,{style:Object.assign(Object.assign({},pC),{WebkitLineClamp:o})},e)}return i(s?u:sC(u,p[0]),x)},[s,C,p,u].concat(X(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return a.createElement(a.Fragment,null,A,C===uC&&a.createElement(a.Fragment,null,a.createElement(aC,{style:Object.assign(Object.assign(Object.assign({},j),pC),{WebkitLineClamp:o}),ref:v},f),a.createElement(aC,{style:Object.assign(Object.assign(Object.assign({},j),pC),{WebkitLineClamp:o-1}),ref:y},f),a.createElement(aC,{style:Object.assign(Object.assign(Object.assign({},j),pC),{WebkitLineClamp:1}),ref:b},i([],!0))),C===dC&&p&&p[0]!==p[1]&&a.createElement(aC,{style:Object.assign(Object.assign({},j),{top:400}),ref:g},i(sC(u,k),!0)),C===lC&&a.createElement(`span`,{style:{whiteSpace:`inherit`},ref:_}))}var hC=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:a.createElement(fy,Object.assign({open:t?void 0:!1},r),n),gC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function _C({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:o,italic:s},c){let l=c;function u(e,t){t&&(l=a.createElement(e,{},l))}return u(`strong`,i),u(`u`,n),u(`del`,r),u(`code`,t),u(`mark`,e),u(`kbd`,o),u(`i`,s),l}var vC=`...`,yC=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],bC=a.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:o,disabled:s,children:c,ellipsis:l,editable:u,copyable:d,component:f,title:h}=e,g=gC(e,[`prefixCls`,`className`,`style`,`type`,`disabled`,`children`,`ellipsis`,`editable`,`copyable`,`component`,`title`]),{getPrefixCls:_,direction:v}=a.useContext(ha),[y]=ti(`Text`),b=a.useRef(null),x=a.useRef(null),S=_(`typography`,n),C=dl(g,yC),[w,T]=qS(u),[E,D]=Ra(!1,{value:T.editing}),{triggerType:O=[`icon`]}=T,k=e=>{var t;e&&((t=T.onStart)==null||t.call(T)),D(e)},A=JS(E);Zt(()=>{var e;!E&&A&&((e=x.current)==null||e.focus())},[E]);let j=e=>{e?.preventDefault(),k(!0)},M=e=>{var t;(t=T.onChange)==null||t.call(T,e),k(!1)},N=()=>{var e;(e=T.onCancel)==null||e.call(T),k(!1)},[P,F]=qS(d),{copied:I,copyLoading:ee,onClick:te}=KS({copyConfig:F,children:c}),[R,z]=a.useState(!1),[B,V]=a.useState(!1),[H,U]=a.useState(!1),[W,G]=a.useState(!1),[ne,K]=a.useState(!0),[q,J]=qS(l,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[re,ie]=Ra(J.defaultExpanded||!1,{value:J.expanded}),ae=q&&(!re||J.expandable===`collapsible`),{rows:oe=1}=J,se=a.useMemo(()=>ae&&(J.suffix!==void 0||J.onEllipsis||J.expandable||w||P),[ae,J,w,P]);Zt(()=>{q&&!se&&(z(fm(`webkitLineClamp`)),V(fm(`textOverflow`)))},[se,q]);let[ce,le]=a.useState(ae),ue=a.useMemo(()=>se?!1:oe===1?B:R,[se,B,R]);Zt(()=>{le(ue&&ae)},[ue,ae]);let de=ae&&(ce?W:H),fe=ae&&oe===1&&ce,pe=ae&&oe>1&&ce,me=(e,t)=>{var n;ie(t.expanded),(n=J.onExpand)==null||n.call(J,e,t)},[he,ge]=a.useState(0),_e=({offsetWidth:e})=>{ge(e)},ve=e=>{var t;U(e),H!==e&&((t=J.onEllipsis)==null||t.call(J,e))};a.useEffect(()=>{let e=b.current;if(q&&ce&&e){let t=nC(e);W!==t&&G(t)}},[q,ce,c,pe,ne,he]),a.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!ce||!ae)return;let t=new IntersectionObserver(()=>{K(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ce,ae]);let ye=YS(J.tooltip,T.text,c),be=a.useMemo(()=>{if(!(!q||ce))return[T.text,c,h,ye.title].find(rC)},[q,ce,h,ye.title,de]);if(E)return a.createElement(HS,{value:T.text??(typeof c==`string`?c:``),onSave:M,onCancel:N,onEnd:T.onEnd,prefixCls:S,className:r,style:i,direction:v,component:f,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});let xe=()=>{let{expandable:e,symbol:t}=J;return e?a.createElement(`button`,{type:`button`,key:`expand`,className:`${S}-${re?`collapse`:`expand`}`,onClick:e=>me(e,{expanded:!re}),"aria-label":re?y.collapse:y?.expand},typeof t==`function`?t(re):t):null},Se=()=>{if(!w)return;let{icon:e,tooltip:t,tabIndex:n}=T,r=m(t)[0]||y?.edit,i=typeof r==`string`?r:``;return O.includes(`icon`)?a.createElement(fy,{key:`edit`,title:t===!1?``:r},a.createElement(`button`,{type:`button`,ref:x,className:`${S}-edit`,onClick:j,"aria-label":i,tabIndex:n},e||a.createElement(jS,{role:`button`}))):null},Ce=()=>P?a.createElement(iC,Object.assign({key:`copy`},F,{prefixCls:S,copied:I,locale:y,onCopy:te,loading:ee,iconOnly:c==null})):null,we=e=>[e&&xe(),Se(),Ce()],Te=e=>[e&&!re&&a.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},vC),J.suffix,we(e)];return a.createElement(Ge,{onResize:_e,disabled:!ae},l=>a.createElement(hC,{tooltipProps:ye,enableEllipsis:ae,isEllipsis:de},a.createElement(ZS,Object.assign({className:(0,p.default)({[`${S}-${o}`]:o,[`${S}-disabled`]:s,[`${S}-ellipsis`]:q,[`${S}-ellipsis-single-line`]:fe,[`${S}-ellipsis-multiple-line`]:pe},r),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:pe?oe:void 0}),component:f,ref:L(l,b,t),direction:v,onClick:O.includes(`text`)?j:void 0,"aria-label":be?.toString(),title:h},C),a.createElement(mC,{enableMeasure:ae&&!ce,text:c,rows:oe,width:he,onEllipsis:ve,expanded:re,miscDeps:[I,re,ee,w,P,y].concat(X(yC.map(t=>e[t])))},(t,n)=>_C(e,a.createElement(a.Fragment,null,t.length>0&&n&&!re&&be?a.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Te(n)))))))}),xC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},SC=a.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:o}=e,s=xC(e,[`ellipsis`,`rel`,`children`,`navigate`]),c=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target===`_blank`?`noopener noreferrer`:r});return a.createElement(bC,Object.assign({},c,{ref:t,ellipsis:!!n,component:`a`}),i)}),CC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},wC=a.forwardRef((e,t)=>{let{children:n}=e,r=CC(e,[`children`]);return a.createElement(bC,Object.assign({ref:t},r,{component:`div`}),n)}),TC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},EC=a.forwardRef((e,t)=>{let{ellipsis:n,children:r}=e,i=TC(e,[`ellipsis`,`children`]),o=a.useMemo(()=>n&&typeof n==`object`?dl(n,[`expandable`,`rows`]):n,[n]);return a.createElement(bC,Object.assign({ref:t},i,{ellipsis:o,component:`span`}),r)}),DC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},OC=[1,2,3,4,5],kC=a.forwardRef((e,t)=>{let{level:n=1,children:r}=e,i=DC(e,[`level`,`children`]),o=OC.includes(n)?`h${n}`:`h1`;return a.createElement(bC,Object.assign({ref:t},i,{component:o}),r)}),AC=ZS;AC.Text=EC,AC.Link=SC,AC.Title=kC,AC.Paragraph=wC;var jC=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),MC=n(((e,t)=>{t.exports=jC()}));export{V_ as $,Qt as $n,il as $t,Lb as A,uo as An,m as Ar,Xd as At,Xv as B,va as Bn,ju as Bt,tx as C,ho as Cn,R as Cr,Bp as Ct,Jb as D,po as Dn,O as Dr,ff as Dt,Yb as E,xo as En,A as Er,gf as Et,fy as F,Fa as Fn,Vu as Ft,Nv as G,Jr as Gn,Dl as Gt,zv as H,ui as Hn,bu as Ht,sy as I,wa as In,Pu as It,kv as J,Br as Jn,ml as Jt,jv as K,Hr as Kn,Sl as Kt,cy as L,Sa as Ln,Fu as Lt,Sb as M,Ha as Mn,o as Mr,sd as Mt,Py as N,Ra as Nn,i as Nr,td as Nt,Kb as O,mo as On,E as Or,nf as Ot,Sy as P,Ia as Pn,Hu as Pt,H_ as Q,Zt as Qn,ll as Qt,ty as R,Ca as Rn,Mu as Rt,rx as S,wo as Sn,B as Sr,Vp as St,Xb as T,yo as Tn,P as Tr,yf as Tt,Rv as U,ti as Un,cu as Ut,Kv as V,Ci as Vn,Cu as Vt,Iv as W,$r as Wn,Il as Wt,xv as X,jr as Xn,dl as Xt,Cv as Y,Nr as Yn,fl as Yt,yv as Z,Dr as Zn,ul as Zt,$b as _,Ls as _n,Ne as _r,rm as _t,Zx as a,Cc as an,Z as ar,th as at,lx as b,To as bn,ee as br,em as bt,Vx as c,$ as cn,Ye as cr,Um as ct,Ax as d,_c as dn,ze as dr,lm as dt,Vc as en,Q as er,B_ as et,gx as f,hc as fn,Re as fr,nm as ft,Tx as g,zs as gn,Fe as gr,sm as gt,px as h,oc as hn,Ie as hr,im as ht,dS as i,wc as in,st as ir,nh as it,Ib as j,$a as jn,s as jr,Bd as jt,Bb as k,fo as kn,S as kr,rf as kt,Ix as l,yc as ln,Ke as lr,pm as lt,hx as m,cc as mn,Le as mr,am as mt,AC as n,Ec as nn,Ct as nr,j_ as nt,Jx as o,Sc as on,nt as or,eh as ot,_x as p,uc as pn,Y as pr,om as pt,Mv as q,Vr as qn,xl as qt,OS as r,Ac as rn,ct as rr,c_ as rt,Hx as s,xc as sn,X as sr,Qm as st,MC as t,zc as tn,wt as tr,M_ as tt,Px as u,vc as un,Ge as ur,fm as ut,ix as v,Cs as vn,je as vr,cm as vt,fx as w,vo as wn,te as wr,bf as wt,sx as x,So as xn,V as xr,Jp as xt,Qb as y,Ss as yn,L as yr,tm as yt,Jv as z,ha as zn,Nu as zt};
|