@kne-components/form-info 0.1.0-alpha.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +16 -16
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/js/{245.a2123b77.chunk.js → 245.24cc8621.chunk.js} +3 -3
- package/build/static/js/{245.a2123b77.chunk.js.LICENSE.txt → 245.24cc8621.chunk.js.LICENSE.txt} +3 -3
- package/build/static/js/245.24cc8621.chunk.js.map +1 -0
- package/build/static/js/268.bc0ef3b8.chunk.js +2 -0
- package/build/static/js/268.bc0ef3b8.chunk.js.map +1 -0
- package/build/static/js/414.85e14646.chunk.js +2 -0
- package/build/static/js/414.85e14646.chunk.js.map +1 -0
- package/build/static/js/516.d99a29a0.chunk.js +3 -0
- package/build/static/js/516.d99a29a0.chunk.js.map +1 -0
- package/build/static/js/{520.f368e5ff.chunk.js → 520.43395c68.chunk.js} +3 -3
- package/build/static/js/{520.f368e5ff.chunk.js.map → 520.43395c68.chunk.js.map} +1 -1
- package/build/static/js/{830.97dc0ec7.chunk.js → 830.ec4d6fc5.chunk.js} +2 -2
- package/build/static/js/830.ec4d6fc5.chunk.js.map +1 -0
- package/build/static/js/main.755feaed.js +2 -0
- package/build/static/js/main.755feaed.js.map +1 -0
- package/package.json +1 -1
- package/build/static/js/245.a2123b77.chunk.js.map +0 -1
- package/build/static/js/268.8e22da7e.chunk.js +0 -2
- package/build/static/js/268.8e22da7e.chunk.js.map +0 -1
- package/build/static/js/414.afa4ac79.chunk.js +0 -2
- package/build/static/js/414.afa4ac79.chunk.js.map +0 -1
- package/build/static/js/516.b2b069b4.chunk.js +0 -3
- package/build/static/js/516.b2b069b4.chunk.js.map +0 -1
- package/build/static/js/830.97dc0ec7.chunk.js.map +0 -1
- package/build/static/js/main.e30e4037.js +0 -2
- package/build/static/js/main.e30e4037.js.map +0 -1
- /package/build/static/js/{516.b2b069b4.chunk.js.LICENSE.txt → 516.d99a29a0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{520.f368e5ff.chunk.js.LICENSE.txt → 520.43395c68.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 516.b2b069b4.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_kne_components_form_info=self.webpackChunk_kne_components_form_info||[]).push([[516],{33516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>$i,Alert:()=>ll,Anchor:()=>Nl,App:()=>mv,AutoComplete:()=>Ly,Avatar:()=>VC,BackTop:()=>UC,Badge:()=>hx,Breadcrumb:()=>rS,Button:()=>Zd,Calendar:()=>iO,Card:()=>hI,Carousel:()=>hN,Cascader:()=>jM,Checkbox:()=>AM,Col:()=>QM,Collapse:()=>rd,ColorPicker:()=>Lz,ConfigProvider:()=>bs,DatePicker:()=>ST,Descriptions:()=>AT,Divider:()=>tj,Drawer:()=>sB,Dropdown:()=>wB,Empty:()=>Pb,Flex:()=>BB,FloatButton:()=>aH,Form:()=>nD,Grid:()=>oD,Image:()=>UD,Input:()=>ER,InputNumber:()=>TP,Layout:()=>aL,List:()=>uA,Mentions:()=>zA,Menu:()=>Hw,Modal:()=>UA,Pagination:()=>HL,Popconfirm:()=>gF,Popover:()=>AC,Progress:()=>YF,QRCode:()=>SW,Radio:()=>kW,Rate:()=>LW,Result:()=>e_,Row:()=>t_,Segmented:()=>hj,Select:()=>zy,Skeleton:()=>zm,Slider:()=>sz,Space:()=>bB,Spin:()=>QL,Splitter:()=>kZ,Statistic:()=>f_,Steps:()=>B_,Switch:()=>Y_,Table:()=>iG,Tabs:()=>JO,Tag:()=>bG,TimePicker:()=>RG,Timeline:()=>_G,Tooltip:()=>NC,Tour:()=>pY,Transfer:()=>HY,Tree:()=>JK,TreeSelect:()=>uU,Typography:()=>iQ,Upload:()=>tZ,Watermark:()=>dZ,message:()=>qA,notification:()=>lF,theme:()=>kG,version:()=>Do});var o=n(94922),r=n.n(o),i=n(98139),a=n.n(i);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(null,arguments)}var c=n(2086);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r().Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(s(e)):(0,c.isFragment)(e)&&e.props?n=n.concat(s(e.props.children,t)):n.push(e))})),n}var u={},d=[];function f(e,t){}function p(e,t){}function m(e,t,n){t||u[n]||(e(!1,n),u[n]=!0)}function g(e,t){m(f,e,t)}function v(e,t){m(p,e,t)}g.preMessage=function(e){d.push(e)},g.resetWarned=function(){u={}},g.noteOnce=v;const h=g;function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}function C(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=n(85714),S=n.n(w);function E(e){return e instanceof HTMLElement||e instanceof SVGElement}function k(e){return e&&"object"===b(e)&&E(e.nativeElement)?e.nativeElement:E(e)?e:null}function O(e){var t,n=k(e);return n||(e instanceof r().Component?null===(t=S().findDOMNode)||void 0===t?void 0:t.call(S(),e):null)}function I(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var N=function(e,t){"function"===typeof e?e(t):"object"===b(e)&&e&&"current"in e&&(e.current=t)},M=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){N(t,e)}))}},j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I((function(){return M.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},P=function(e){var t,n,o=(0,c.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===c.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===c.ForwardRef)};function R(e){return(0,o.isValidElement)(e)&&!(0,c.isFragment)(e)}Number(o.version.split(".")[0]);var z=o.createContext(null);var T=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),B="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,H="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),D="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(H):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var L=["top","right","bottom","left","width","height","size","weight"],A="undefined"!==typeof MutationObserver,F=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&l()}function a(){D(i)}function l(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){B&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(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(){B&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;L.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),W=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},_=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||H},V=U(0,0,0,0);function q(e){return parseFloat(e)||0}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+q(e["border-"+n+"-width"])}),0)}function X(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return V;var o=_(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=q(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=q(o.width),c=q(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=K(o,"left","right")+i),Math.round(c+a)!==n&&(c-=K(o,"top","bottom")+a)),!function(e){return e===_(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return U(r.left,r.top,l,c)}var G="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof _(e).SVGGraphicsElement}:function(e){return e instanceof _(e).SVGElement&&"function"===typeof e.getBBox};function Y(e){return B?G(e)?function(e){var t=e.getBBox();return U(0,0,t.width,t.height)}(e):X(e):V}function U(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Q=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=U(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Y(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}(),Z=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return W(a,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),a}(t);W(this,{target:e,contentRect:n})},J=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new T,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof _(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Q(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof _(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Z(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}(),ee="undefined"!==typeof WeakMap?new WeakMap:new T,te=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=F.getInstance(),o=new J(t,n,this);ee.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){te.prototype[e]=function(){var t;return(t=ee.get(this))[e].apply(t,arguments)}}));const ne="undefined"!==typeof H.ResizeObserver?H.ResizeObserver:te;var oe=new Map;var re=new ne((function(e){e.forEach((function(e){var t,n=e.target;null===(t=oe.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function le(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ce(e,t){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ce(e,t)}function se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ce(e,t)}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}function de(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(de=function(){return!!e})()}function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function me(e){var t=de();return function(){var n,o=ue(e);if(t){var r=ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return pe(this,n)}}var ge=function(e){se(n,e);var t=me(n);function n(){return ie(this,n),t.apply(this,arguments)}return le(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);var ve=o.forwardRef((function(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),l=o.useContext(z),c="function"===typeof n,s=c?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&o.isValidElement(s)&&P(s),f=d?s.ref:null,p=j(f,i),m=function(){var e;return O(i.current)||(i.current&&"object"===b(i.current)?O(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||O(a.current)};o.useImperativeHandle(t,(function(){return m()}));var g=o.useRef(e);g.current=e;var v=o.useCallback((function(e){var t=g.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,h=$($({},p),{},{offsetWidth:m,offsetHeight:v});null===l||void 0===l||l(h,e,o),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return o.useEffect((function(){var e,t,n=m();return n&&!r&&(e=n,t=v,oe.has(e)||(oe.set(e,new Set),re.observe(e)),oe.get(e).add(t)),function(){return function(e,t){oe.has(e)&&(oe.get(e).delete(t),oe.get(e).size||(re.unobserve(e),oe.delete(e)))}(n,v)}}),[i.current,r]),o.createElement(ge,{ref:a},d?o.cloneElement(s,{ref:p}):s)}));const he=ve;var be=o.forwardRef((function(e,t){var n=e.children;return("function"===typeof n?[n]:s(n)).map((function(n,r){var i=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(he,l({},e,{key:i,ref:0===r?t:void 0}),n)}))}));be.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(z),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===a||void 0===a||a(e,t,o)}),[n,a]);return o.createElement(z.Provider,{value:l},t)};const ye=be;function Ce(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function $e(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function we(e,t){if(e){if("string"==typeof e)return xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function Se(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||$e(e)||we(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=function(e){return+setTimeout(e,16)},ke=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Ee=function(e){return window.requestAnimationFrame(e)},ke=function(e){return window.cancelAnimationFrame(e)});var Oe=0,Ie=new Map;function Ne(e){Ie.delete(e)}var Me=function(e){var t=Oe+=1;return function n(o){if(0===o)Ne(t),e();else{var r=Ee((function(){n(o-1)}));Ie.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Me.cancel=function(e){var t=Ie.get(e);return Ne(e),ke(t)};const je=Me;const Pe=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=je((n=>()=>{t=null,e.apply(void 0,Se(n))})(o))}};return n.cancel=()=>{je.cancel(t),t=null},n},Re="ant",ze="anticon",Te=["outlined","borderless","filled"],Be=o.createContext({getPrefixCls:(e,t)=>t||(e?`${Re}-${e}`:Re),iconPrefixCls:ze}),{Consumer:He}=Be;function De(e){if(Array.isArray(e))return e}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ae(e,t){return De(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||we(e,t)||Le()}const Fe=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function We(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function _e(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 Ve="data-rc-order",qe="data-rc-priority",Ke=new Map;function Xe(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ye(e){return Array.from((Ke.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!We())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Ve,a),l&&i&&c.setAttribute(qe,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(c.nonce=null===n||void 0===n?void 0:n.nonce),c.innerHTML=e;var s=Ge(t),u=s.firstChild;if(o){if(l){var d=(t.styles||Ye(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ve)))return!1;var t=Number(e.getAttribute(qe)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ge(t);return(t.styles||Ye(n)).find((function(n){return n.getAttribute(Xe(t))===e}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qe(e,t);n&&Ge(t).removeChild(n)}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ge(n),r=Ye(o),i=$($({},n),{},{styles:r});!function(e,t){var n=Ke.get(e);if(!n||!_e(document,n)){var o=Ue("",t),r=o.parentNode;Ke.set(e,r),e.removeChild(o)}}(o,i);var a=Qe(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ue(e,i);return u.setAttribute(Xe(i),t),u}const et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(h(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],r[c],l))return!1;return!0}if(t&&r&&"object"===b(t)&&"object"===b(r)){var s=Object.keys(t);return s.length===Object.keys(r).length&&s.every((function(n){return e(t[n],r[n],l)}))}return!1}(e,t)};function tt(e){return e.join("%")}var nt=function(){function e(t){ie(this,e),C(this,"instanceId",void 0),C(this,"cache",new Map),this.instanceId=t}return le(e,[{key:"get",value:function(e){return this.opGet(tt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(tt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const ot=nt;var rt="data-token-hash",it="data-css-hash",at="__cssinjs_instance__";function lt(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(it,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[at]=t[at]||e,t[at]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(it,"]"))).forEach((function(t){var n,r=t.getAttribute(it);o[r]?t[at]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new ot(e)}var ct=o.createContext({hashPriority:"low",cache:lt(),defaultCache:!0});const st=ct;const ut=le((function e(){ie(this,e)}));var dt="CALC_UNIT",ft=new RegExp(dt,"g");function pt(e){return"number"===typeof e?"".concat(e).concat(dt):e}(function(e){se(n,e);var t=me(n);function n(e,o){var r;ie(this,n),C(fe(r=t.call(this)),"result",""),C(fe(r),"unitlessCssVar",void 0),C(fe(r),"lowPriority",void 0);var i=b(e);return r.unitlessCssVar=o,e instanceof n?r.result="(".concat(e.result,")"):"number"===i?r.result=pt(e):"string"===i&&(r.result=e),r}le(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(pt(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(pt(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"===typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(ft,o?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}])})(ut),function(e){se(n,e);var t=me(n);function n(e){var o;return ie(this,n),C(fe(o=t.call(this)),"result",0),e instanceof n?o.result=e.result:"number"===typeof e&&(o.result=e),o}le(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(ut);var mt=function(){function e(){ie(this,e),C(this,"cache",void 0),C(this,"keys",void 0),C(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return le(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=Ae(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Ae(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();C(mt,"MAX_CACHE_SIZE",20),C(mt,"MAX_CACHE_OFFSET",5);var gt=0,vt=function(){function e(t){ie(this,e),C(this,"derivatives",void 0),C(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=gt,0===t.length&&t.length,gt+=1}return le(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),ht=new mt;function bt(e){var t=Array.isArray(e)?e:[e];return ht.has(t)||ht.set(t,new vt(t)),ht.get(t)}var yt=new WeakMap,Ct={};var xt=new WeakMap;function $t(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xt.get(e)||"";return n||(Object.keys(e).forEach((function(o){var r=e[o];n+=o,r instanceof vt?n+=r.id:r&&"object"===b(r)?n+=$t(r,t):n+=r})),t&&(n=Fe(n)),xt.set(e,n)),n}function wt(e,t){return Fe("".concat(t,"_").concat($t(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var St=We();function Et(e){return"number"===typeof e?"".concat(e,"px"):e}function kt(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=$($({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},C(C({},rt,t),it,n)),r=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(r,">").concat(e,"</style>")}var Ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},It=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Ae(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Nt=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=Ae(e,2),l=a[0],c=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])r[l]=c;else if(("string"===typeof c||"number"===typeof c)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var s,u=Ot(l,null===n||void 0===n?void 0:n.prefix);o[u]="number"!==typeof c||null!==n&&void 0!==n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),r[l]="var(".concat(u,")")}})),[r,It(o,t,{scope:null===n||void 0===n?void 0:n.scope})]},Mt=We()?o.useLayoutEffect:o.useEffect,jt=function(e,t){var n=o.useRef(!0);Mt((function(){return e(n.current)}),t),Mt((function(){return n.current=!1,function(){n.current=!0}}),[])},Pt=function(e,t){jt((function(t){if(!t)return e()}),t)};const Rt=jt;var zt=$({},o).useInsertionEffect;const Tt=zt?function(e,t,n){return zt((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),Rt((function(){return t(!0)}),n)};const Bt="undefined"!==typeof $({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const Ht=function(){return!1};function Dt(e,t,n,r,i){var a=o.useContext(st).cache,l=tt([e].concat(Se(t))),c=Bt([l]),s=(Ht(),function(e){a.opUpdate(l,(function(t){var o=Ae(t||[void 0,void 0],2),r=o[0];var i=[void 0===r?0:r,o[1]||n()];return e?e(i):i}))});o.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return Tt((function(){null===i||void 0===i||i(u)}),(function(e){return s((function(t){var n=Ae(t,2),o=n[0],r=n[1];return e&&0===o&&(null===i||void 0===i||i(u)),[o+1,r]})),function(){a.opUpdate(l,(function(t){var n=Ae(t||[],2),o=n[0],i=void 0===o?0:o,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null===r||void 0===r||r(s,!1)})),null):[i-1,s]}))}}),[l]),u}var Lt={},At=new Map;function Ft(e,t){At.set(e,(At.get(e)||0)-1);var n=Array.from(At.keys()),o=n.filter((function(e){return(At.get(e)||0)<=0}));n.length-o.length>0&&o.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(rt,'="').concat(e,'"]')).forEach((function(e){var n;e[at]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),At.delete(e)}))}var Wt=function(e,t,n,o){var r=$($({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},_t="token";function Vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,o.useContext)(st),i=r.cache.instanceId,a=r.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?Lt:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=function(e,t){for(var n=yt,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Ct)||n.set(Ct,e()),n.get(Ct)}((function(){return Object.assign.apply(Object,[{}].concat(Se(t)))}),t),g=$t(m),v=$t(u),h=p?$t(p):"",b=Dt(_t,[c,e.id,g,v,h],(function(){var t,n=f?f(m,u,e):Wt(m,u,e,d),o=$({},n),r="";if(p){var i=Ae(Nt(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],r=i[1]}var a=wt(n,c);n._tokenKey=a,o._tokenKey=wt(o,c);var l=null!==(t=null===p||void 0===p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){At.set(e,(At.get(e)||0)+1)}(l);var s="".concat("css","-").concat(Fe(a));return n._hashId=s,[n,s,o,r,(null===p||void 0===p?void 0:p.key)||""]}),(function(e){Ft(e[0]._themeKey,i)}),(function(e){var t=Ae(e,4),n=t[0],o=t[3];if(p&&o){var r=Je(o,Fe("css-variables-".concat(n._themeKey)),{mark:it,prepend:"queue",attachTo:a,priority:-999});r[at]=i,r.setAttribute(rt,n._themeKey)}}));return b}const qt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Kt="comm",Xt="rule",Gt="decl",Yt=Math.abs,Ut=String.fromCharCode;Object.assign;function Qt(e){return e.trim()}function Zt(e,t,n){return e.replace(t,n)}function Jt(e,t,n){return e.indexOf(t,n)}function en(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function nn(e){return e.length}function on(e,t){return t.push(e),e}function rn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function an(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Gt:return e.return=e.return||e.value;case Kt:return"";case"@keyframes":return e.return=e.value+"{"+rn(e.children,o)+"}";case Xt:if(!nn(e.value=e.props.join(",")))return""}return nn(n=rn(e.children,o))?e.return=e.value+"{"+n+"}":""}var ln=1,cn=1,sn=0,un=0,dn=0,fn="";function pn(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:ln,column:cn,length:a,return:"",siblings:l}}function mn(){return dn=un>0?en(fn,--un):0,cn--,10===dn&&(cn=1,ln--),dn}function gn(){return dn=un<sn?en(fn,un++):0,cn++,10===dn&&(cn=1,ln++),dn}function vn(){return en(fn,un)}function hn(){return un}function bn(e,t){return tn(fn,e,t)}function yn(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 Cn(e){return ln=cn=1,sn=nn(fn=e),un=0,[]}function xn(e){return fn="",e}function $n(e){return Qt(bn(un-1,En(91===e?e+2:40===e?e+1:e)))}function wn(e){for(;(dn=vn())&&dn<33;)gn();return yn(e)>2||yn(dn)>3?"":" "}function Sn(e,t){for(;--t&&gn()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return bn(e,hn()+(t<6&&32==vn()&&32==gn()))}function En(e){for(;gn();)switch(dn){case e:return un;case 34:case 39:34!==e&&39!==e&&En(dn);break;case 40:41===e&&En(e);break;case 92:gn()}return un}function kn(e,t){for(;gn()&&e+dn!==57&&(e+dn!==84||47!==vn()););return"/*"+bn(t,un-1)+"*"+Ut(47===e?e:gn())}function On(e){for(;!yn(vn());)gn();return bn(e,un)}function In(e){return xn(Nn("",null,null,null,[""],e=Cn(e),0,[0],e))}function Nn(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,h=1,b=0,y="",C=r,x=i,$=o,w=y;v;)switch(m=b,b=gn()){case 40:if(108!=m&&58==en(w,d-1)){-1!=Jt(w+=Zt($n(b),"&","&\f"),"&\f",Yt(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:w+=$n(b);break;case 9:case 10:case 13:case 32:w+=wn(m);break;case 92:w+=Sn(hn()-1,7);continue;case 47:switch(vn()){case 42:case 47:on(jn(kn(gn(),hn()),t,n,c),c),5!=yn(m||1)&&5!=yn(vn()||1)||!nn(w)||" "===tn(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*g:l[s++]=nn(w)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(w=Zt(w,/\f/g,"")),p>0&&(nn(w)-d||0===g&&47===m)&&on(p>32?Pn(w+";",o,n,d-1,c):Pn(Zt(w," ","")+";",o,n,d-2,c),c);break;case 59:w+=";";default:if(on($=Mn(w,t,n,s,u,r,l,y,C=[],x=[],d,i),i),123===b)if(0===u)Nn(w,t,$,$,C,i,d,l,x);else switch(99===f&&110===en(w,3)?100:f){case 100:case 108:case 109:case 115:Nn(e,$,$,o&&on(Mn(e,$,$,0,0,r,l,y,r,C=[],d,x),x),r,x,d,l,o?C:x);break;default:Nn(w,$,$,$,[""],x,0,l,x)}}s=u=p=0,g=h=1,y=w="",d=a;break;case 58:d=1+nn(w),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==mn())continue;switch(w+=Ut(b),b*g){case 38:h=u>0?1:(w+="\f",-1);break;case 44:l[s++]=(nn(w)-1)*h,h=1;break;case 64:45===vn()&&(w+=$n(gn())),f=vn(),u=d=nn(y=w+=On(hn())),b++;break;case 45:45===m&&2==nn(w)&&(g=0)}}return i}function Mn(e,t,n,o,r,i,a,l,c,s,u,d){for(var f=r-1,p=0===r?i:[""],m=function(e){return e.length}(p),g=0,v=0,h=0;g<o;++g)for(var b=0,y=tn(e,f+1,f=Yt(v=a[g])),C=e;b<m;++b)(C=Qt(v>0?p[b]+" "+y:Zt(y,/&\f/g,p[b])))&&(c[h++]=C);return pn(e,t,n,0===r?Xt:l,c,s,u,d)}function jn(e,t,n,o){return pn(e,t,n,Kt,Ut(dn),tn(e,2,-2),0,o)}function Pn(e,t,n,o,r){return pn(e,t,n,Gt,tn(e,0,o),tn(e,o+1,-1),o,r)}var Rn,zn="data-ant-cssinjs-cache-path",Tn="_FILE_STYLE__";var Bn=!0;function Hn(e){return function(){if(!Rn&&(Rn={},We())){var e=document.createElement("div");e.className=zn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Ae(e.split(":"),2),n=t[0],o=t[1];Rn[n]=o}));var n,o=document.querySelector("style[".concat(zn,"]"));o&&(Bn=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!Rn[e]}var Dn="_multi_value_";function Ln(e){return rn(In(e),an).replace(/\{%%%\:[^;];}/g,";")}function An(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Se(n.slice(1))).join(" ")})).join(",")}var Fn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var o=t.getName(l);if(!p[o]){var r=Ae(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[o]="@keyframes ".concat(t.getName(l)).concat(r)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return g.forEach((function(t){var o="string"!==typeof t||r?t:{};if("string"===typeof o)f+="".concat(o,"\n");else if(o._keyframe)m(o);else{var c=d.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(c).forEach((function(t){var o=c[t];if("object"!==b(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===b(e)&&e&&("_skip_check_"in e||Dn in e)}(o)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;qt[e]||"number"!==typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(m(t),o=t.getName(l)),f+="".concat(n,":").concat(o,";")}var d=null!==(u=null===o||void 0===o?void 0:o.value)&&void 0!==u?u:o;"object"===b(o)&&null!==o&&void 0!==o&&o[Dn]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var g=!1,v=t.trim(),h=!1;(r||i)&&l?v.startsWith("@")?g=!0:v=An("&"===v?"":t,l,s):!r||l||"&"!==v&&""!==v||(v="",h=!0);var y=Ae(e(o,n,{root:h,injectHash:g,parentSelectors:[].concat(Se(a),[v])}),2),C=y[0],x=y[1];p=$($({},p),x),f+="".concat(v).concat(C)}}))}})),r?c&&(f="@layer ".concat(c.name," {").concat(f,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function Wn(e,t){return Fe("".concat(e.join("%")).concat(t))}function _n(){return null}var Vn="style";function qn(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,c=e.nonce,s=e.clientOnly,u=e.order,d=void 0===u?0:u,f=o.useContext(st),p=f.autoClear,m=(f.mock,f.defaultCache),g=f.hashPriority,v=f.container,h=f.ssrInline,b=f.transformers,y=f.linters,x=f.cache,w=f.layer,S=n._tokenKey,E=[S];w&&E.push("layer"),E.push.apply(E,Se(r));var k=St;var O=Dt(Vn,E,(function(){var e=E.join("|");if(Hn(e)){var n=function(e){var t=Rn[e],n=null;if(t&&We())if(Bn)n=Tn;else{var o=document.querySelector("style[".concat(it,'="').concat(Rn[e],'"]'));o?n=o.innerHTML:delete Rn[e]}return[n,t]}(e),o=Ae(n,2),l=o[0],c=o[1];if(l)return[l,S,c,{},s,d]}var u=t(),f=Ae(Fn(u,{hashId:i,hashPriority:g,layer:w?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),p=f[0],m=f[1],v=Ln(p),h=Wn(E,v);return[v,S,h,m,s,d]}),(function(e,t){var n=Ae(e,3)[2];(t||p)&&St&&Ze(n,{mark:it})}),(function(e){var t=Ae(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(k&&n!==Tn){var i={mark:it,prepend:!w&&"queue",attachTo:v,priority:d},a="function"===typeof c?c():c;a&&(i.csp={nonce:a});var l=[],s=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?l.push(e):s.push(e)})),l.forEach((function(e){Je(Ln(r[e]),"_layer-".concat(e),$($({},i),{},{prepend:!0}))}));var u=Je(n,o,i);u[at]=x.instanceId,u.setAttribute(rt,S),s.forEach((function(e){Je(Ln(r[e]),"_effect-".concat(e),i)}))}})),I=Ae(O,3),N=I[0],M=I[1],j=I[2];return function(e){var t;return t=h&&!k&&m?o.createElement("style",l({},C(C({},rt,M),it,j),{dangerouslySetInnerHTML:{__html:N}})):o.createElement(_n,null),o.createElement(o.Fragment,null,t,e)}}var Kn="cssVar";const Xn=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,o.useContext)(st),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Se(e.path),[n,s,p]),g=Dt(Kn,m,(function(){var e=t(),o=Ae(Nt(e,n,{prefix:r,unitless:i,ignore:a,scope:s}),2),l=o[0],c=o[1];return[l,c,Wn(m,c),n]}),(function(e){var t=Ae(e,3)[2];St&&Ze(t,{mark:it})}),(function(e){var t=Ae(e,3),o=t[1],r=t[2];if(o){var i=Je(o,r,{mark:it,prepend:"queue",attachTo:f,priority:-999});i[at]=d,i.setAttribute(rt,n)}}));return g};C(C(C({},Vn,(function(e,t,n){var o=Ae(e,6),r=o[0],i=o[1],a=o[2],l=o[3],c=o[4],s=o[5],u=(n||{}).plain;if(c)return null;var d=r,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=kt(r,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=kt(Ln(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),_t,(function(e,t,n){var o=Ae(e,5),r=o[2],i=o[3],a=o[4],l=(n||{}).plain;if(!i)return null;var c=r._tokenKey;return[-999,c,kt(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Kn,(function(e,t,n){var o=Ae(e,4),r=o[1],i=o[2],a=o[3],l=(n||{}).plain;if(!r)return null;return[-999,i,kt(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var Gn=function(){function e(t,n){ie(this,e),C(this,"name",void 0),C(this,"style",void 0),C(this,"_keyframe",!0),this.name=t,this.style=n}return le(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const Yn=Gn;function Un(e){return e.notSplit=!0,e}Un(["borderTop","borderBottom"]),Un(["borderTop"]),Un(["borderBottom"]),Un(["borderLeft","borderRight"]),Un(["borderLeft"]),Un(["borderRight"]);var Qn=le((function e(){ie(this,e)}));const Zn=Qn;var Jn="CALC_UNIT",eo=new RegExp(Jn,"g");function to(e){return"number"===typeof e?"".concat(e).concat(Jn):e}var no=function(e){se(n,e);var t=me(n);function n(e,o){var r;ie(this,n),C(fe(r=t.call(this)),"result",""),C(fe(r),"unitlessCssVar",void 0),C(fe(r),"lowPriority",void 0);var i=b(e);return r.unitlessCssVar=o,e instanceof n?r.result="(".concat(e.result,")"):"number"===i?r.result=to(e):"string"===i&&(r.result=e),r}return le(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(to(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(to(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"===typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(eo,o?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Zn);const oo=function(e){se(n,e);var t=me(n);function n(e){var o;return ie(this,n),C(fe(o=t.call(this)),"result",0),e instanceof n?o.result=e.result:"number"===typeof e&&(o.result=e),o}return le(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Zn);const ro=function(e,t){var n="css"===e?no:oo;return function(e){return new n(e,t)}};const io=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function ao(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function lo(e){var t=o.useRef(!1),n=Ae(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function co(e){return void 0!==e}function so(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,l=Ae(lo((function(){return co(r)?r:co(o)?"function"===typeof o?o():o:"function"===typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==r?r:c,d=a?a(u):u,f=ao(i),p=Ae(lo([u]),2),m=p[0],g=p[1];return Pt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),Pt((function(){co(r)||s(r)}),[r]),[d,ao((function(e,t){s(e,t),g([u],t)}))]}function uo(e){return De(e)||$e(e)||we(e)||Le()}function fo(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null===n||void 0===n)return;n=n[t[o]]}return n}function po(e,t,n,o){if(!t.length)return n;var r,i=uo(t),a=i[0],l=i.slice(1);return r=e||"number"!==typeof a?Array.isArray(e)?Se(e):$({},e):[],o&&void 0===n&&1===l.length?delete r[a][l[0]]:r[a]=po(r[a],l,n,o),r}function mo(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!fo(e,t.slice(0,-1))?e:po(e,t,n,o)}function go(e){return Array.isArray(e)?[]:{}}var vo="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=go(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),l=fo(e,n),c=Array.isArray(l);if(c||"object"===b(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=fo(o,n);c?o=mo(o,n,[]):s&&"object"===b(s)||(o=mo(o,n,go(l))),vo(l).forEach((function(e){t([].concat(Se(n),[e]),a)}))}}else o=mo(o,n,l)}([])})),o}const bo=function(e,t,n,o){var r=$({},t[e]);null!==o&&void 0!==o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(e){var t,n=Ae(e,2),o=n[0],i=n[1];(null!==r&&void 0!==r&&r[o]||null!==r&&void 0!==r&&r[i])&&(null!==(t=r[i])&&void 0!==t||(r[i]=null===r||void 0===r?void 0:r[o]))}));var i=$($({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var yo="undefined"!==typeof CSSINJS_STATISTIC,Co=!0;function xo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!yo)return Object.assign.apply(Object,[{}].concat(t));Co=!1;var o={};return t.forEach((function(e){"object"===b(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Co=!0,o}var $o={};function wo(){}const So=function(e){var t,n=e,o=wo;return yo&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;Co&&(null===(o=t)||void 0===o||o.add(n));return e[n]}}),o=function(e,n){var o;$o[e]={global:Array.from(t),component:$($({},null===(o=$o[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}};const Eo=function(e,t,n){var o;return"function"===typeof n?n(xo(t,null!==(o=t[e])&&void 0!==o?o:{})):null!==n&&void 0!==n?n:{}};const ko=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Et(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return Et(e)})).join(","),")")}}};var Oo=function(){function e(){ie(this,e),C(this,"map",new Map),C(this,"objectIDMap",new WeakMap),C(this,"nextID",0),C(this,"lastAccessBeat",new Map),C(this,"accessBeat",0)}return le(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===b(e)?"obj_".concat(t.getObjectID(e)):"".concat(b(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}(),Io=new Oo;const No=function(e,t){return r().useMemo((function(){var n=Io.get(t);if(n)return n;var o=e();return Io.set(t,o),o}),t)};const Mo=function(){return{}};const jo=function(e){var t=e.useCSP,n=void 0===t?Mo:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(t,r,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Ae(u,1)[0],f=u.join("-"),p=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=o(),m=u.theme,g=u.realToken,v=u.hashId,h=u.token,y=u.cssVar,C=i(),x=C.rootPrefixCls,w=C.iconPrefixCls,S=n(),E=y?"css":"js",k=No((function(){var e=new Set;return y&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Ot(t,y.prefix)),e.add(Ot(t,io(d,y.prefix)))})),ro(E,e)}),[E,d,null===y||void 0===y?void 0:y.prefix]),O=ko(E),I=O.max,N=O.min,M={theme:m,token:h,hashId:v,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:p,order:s.order||-999};return qn($($({},M),{},{clientOnly:!1,path:["Shared",x]}),(function(){return"function"===typeof a?a(h):[]})),[qn($($({},M),{},{path:[f,e,w]}),(function(){if(!1===s.injectStyle)return[];var n=So(h),o=n.token,i=n.flush,a=Eo(d,g,c),u=".".concat(e),f=bo(d,g,a,{deprecatedTokens:s.deprecatedTokens});y&&a&&"object"===b(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(Ot(e,io(d,y.prefix)),")")}));var p=xo(o,{componentCls:u,prefixCls:e,iconCls:".".concat(w),antCls:".".concat(x),calc:k,max:I,min:N},y?a:f),m=r(p,{hashId:v,prefixCls:e,rootPrefixCls:x,iconPrefixCls:w});i(d,f);var C="function"===typeof l?l(p,e,t,s.resetFont):null;return[!1===s.resetStyle?null:C,m]})),v]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null===i||void 0===i?void 0:i.unitless)||{},d=$($({},"function"===typeof c?c(e):{}),{},C({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=$($({},i),{},{unitless:d,prefixToken:l}),p=s(e,t,n,f),m=function(e,t,n){var i=n.unitless,a=n.injectStyle,l=void 0===a||a,c=n.prefixToken,s=n.ignore,u=function(r){var a=r.rootCls,l=r.cssVar,u=void 0===l?{}:l,d=o().realToken;return Xn({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:s,token:d,scope:a},(function(){var o=Eo(e,d,t),r=bo(e,d,o,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((function(e){r[c(e)]=r[e],delete r[e]})),r})),null},d=function(t){var n=o().cssVar;return[function(o){return l&&n?r().createElement(r().Fragment,null,r().createElement(u,{rootCls:t,cssVar:n,component:e}),o):o},null===n||void 0===n?void 0:n.key]};return d}(a,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Ae(p(e,t),2)[1],o=Ae(m(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=s(e,t,n,$({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null}},genComponentStyleHook:s}},Po={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ro=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},zo=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"}}}),To=e=>({outline:`${Et(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Bo=e=>({"&:focus-visible":Object.assign({},To(e))}),Ho=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"},Bo(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Do="5.21.6";function Lo(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Ao(e){return Math.min(1,Math.max(0,e))}function Fo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wo(e){return e<=1?"".concat(100*Number(e),"%"):e}function _o(e){return 1===e.length?"0"+e:String(e)}function Vo(e,t,n){e=Lo(e,255),t=Lo(t,255),n=Lo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,l=(o+r)/2;if(o===r)a=0,i=0;else{var c=o-r;switch(a=l>.5?c/(2-o-r):c/(o+r),o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function qo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ko(e,t,n){e=Lo(e,255),t=Lo(t,255),n=Lo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,l=o-r,c=0===o?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Xo(e,t,n,o){var r=[_o(Math.round(e).toString(16)),_o(Math.round(t).toString(16)),_o(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Go(e){return Math.round(255*parseFloat(e)).toString(16)}function Yo(e){return Uo(e)/255}function Uo(e){return parseInt(e,16)}var Qo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Zo(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Qo[e])e=Qo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=nr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=nr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=nr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=nr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=nr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=nr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=nr.hex8.exec(e),n)return{r:Uo(n[1]),g:Uo(n[2]),b:Uo(n[3]),a:Yo(n[4]),format:t?"name":"hex8"};if(n=nr.hex6.exec(e),n)return{r:Uo(n[1]),g:Uo(n[2]),b:Uo(n[3]),format:t?"name":"hex"};if(n=nr.hex4.exec(e),n)return{r:Uo(n[1]+n[1]),g:Uo(n[2]+n[2]),b:Uo(n[3]+n[3]),a:Yo(n[4]+n[4]),format:t?"name":"hex8"};if(n=nr.hex3.exec(e),n)return{r:Uo(n[1]+n[1]),g:Uo(n[2]+n[2]),b:Uo(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(or(e.r)&&or(e.g)&&or(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Lo(t,255),g:255*Lo(n,255),b:255*Lo(o,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):or(e.h)&&or(e.s)&&or(e.v)?(a=Wo(e.s),l=Wo(e.v),r=function(e,t,n){e=6*Lo(e,360),t=Lo(t,100),n=Lo(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),l=n*(1-(1-r)*t),c=o%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):or(e.h)&&or(e.s)&&or(e.l)&&(a=Wo(e.s),c=Wo(e.l),r=function(e,t,n){var o,r,i;if(e=Lo(e,360),t=Lo(t,100),n=Lo(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=qo(l,a,e+1/3),r=qo(l,a,e),i=qo(l,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Fo(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var Jo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),er="[\\s|\\(]+(".concat(Jo,")[,|\\s]+(").concat(Jo,")[,|\\s]+(").concat(Jo,")\\s*\\)?"),tr="[\\s|\\(]+(".concat(Jo,")[,|\\s]+(").concat(Jo,")[,|\\s]+(").concat(Jo,")[,|\\s]+(").concat(Jo,")\\s*\\)?"),nr={CSS_UNIT:new RegExp(Jo),rgb:new RegExp("rgb"+er),rgba:new RegExp("rgba"+tr),hsl:new RegExp("hsl"+er),hsla:new RegExp("hsla"+tr),hsv:new RegExp("hsv"+er),hsva:new RegExp("hsva"+tr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function or(e){return Boolean(nr.CSS_UNIT.exec(String(e)))}var rr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ir(e){var t=Ko(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ar(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Xo(t,n,o,!1))}function lr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function cr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function sr(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function ur(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Zo(e),r=5;r>0;r-=1){var i=ir(o),a=ar(Zo({h:lr(i,r,!0),s:cr(i,r,!0),v:sr(i,r,!0)}));n.push(a)}n.push(ar(o));for(var l=1;l<=4;l+=1){var c=ir(o),s=ar(Zo({h:lr(c,l),s:cr(c,l),v:sr(c,l)}));n.push(s)}return"dark"===t.theme?rr.map((function(e){var o=e.index,r=e.opacity;return ar(function(e,t,n){var o=n/100;return{r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b}}(Zo(t.backgroundColor||"#141414"),Zo(n[o]),100*r))})):n}var dr={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"},fr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];fr.primary=fr[5];var pr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];pr.primary=pr[5];var mr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];mr.primary=mr[5];var gr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gr.primary=gr[5];var vr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];vr.primary=vr[5];var hr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];hr.primary=hr[5];var br=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];br.primary=br[5];var yr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];yr.primary=yr[5];var Cr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Cr.primary=Cr[5];var xr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];xr.primary=xr[5];var $r=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$r.primary=$r[5];var wr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wr.primary=wr[5];var Sr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Sr.primary=Sr[5];var Er={red:fr,volcano:pr,orange:mr,gold:gr,yellow:vr,lime:hr,green:br,cyan:yr,blue:Cr,geekblue:xr,purple:$r,magenta:wr,grey:Sr},kr=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];kr.primary=kr[5];var Or=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Or.primary=Or[5];var Ir=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Ir.primary=Ir[5];var Nr=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Nr.primary=Nr[5];var Mr=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Mr.primary=Mr[5];var jr=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];jr.primary=jr[5];var Pr=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Pr.primary=Pr[5];var Rr=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Rr.primary=Rr[5];var zr=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];zr.primary=zr[5];var Tr=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Tr.primary=Tr[5];var Br=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Br.primary=Br[5];var Hr=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Hr.primary=Hr[5];var Dr=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Dr.primary=Dr[5];const Lr={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"},Ar=Object.assign(Object.assign({},Lr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var Fr=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Zo(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Fo(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Ko(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Ko(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Vo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Vo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Xo(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i=[_o(Math.round(e).toString(16)),_o(Math.round(t).toString(16)),_o(Math.round(n).toString(16)),_o(Go(o))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Lo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Lo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Xo(this.r,this.g,this.b,!1),t=0,n=Object.entries(Qo);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ao(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ao(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ao(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ao(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Wr(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(r),p=n(i),m=n(a),g=n(l),v=o(s,u),h=n(e.colorLink||e.colorInfo),b=new Fr(m[1]).mix(new Fr(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Fr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const _r=e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};const Vr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function qr(e){return(e+8)/e}const Kr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:qr(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],l=o[1],c=o[0],s=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*r),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};const Xr=(e,t)=>new Fr(e).setAlpha(t).toRgbString(),Gr=(e,t)=>new Fr(e).darken(t).toHexString(),Yr=e=>{const t=ur(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]}},Ur=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Xr(o,.88),colorTextSecondary:Xr(o,.65),colorTextTertiary:Xr(o,.45),colorTextQuaternary:Xr(o,.25),colorFill:Xr(o,.15),colorFillSecondary:Xr(o,.06),colorFillTertiary:Xr(o,.04),colorFillQuaternary:Xr(o,.02),colorBgSolid:Xr(o,1),colorBgSolidHover:Xr(o,.75),colorBgSolidActive:Xr(o,.95),colorBgLayout:Gr(n,4),colorBgContainer:Gr(n,0),colorBgElevated:Gr(n,0),colorBgSpotlight:Xr(o,.85),colorBgBlur:"transparent",colorBorder:Gr(n,15),colorBorderSecondary:Gr(n,6)}};function Qr(e){dr.pink=dr.magenta,Er.pink=Er.magenta;const t=Object.keys(Lr).map((t=>{const n=e[t]===dr[t]?Er[t]:ur(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Wr(e,{generateColorPalettes:Yr,generateNeutralColorPalettes:Ur})),Kr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),Vr(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},_r(o))}(e))}const Zr=bt(Qr),Jr={token:Ar,override:{override:Ar},hashed:!0},ei=r().createContext(Jr);function ti(e){return e>=0&&e<=255}const ni=function(e,t){const{r:n,g:o,b:r,a:i}=new Fr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Fr(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((n-a*(1-s))/s),t=Math.round((o-l*(1-s))/s),i=Math.round((r-c*(1-s))/s);if(ti(e)&&ti(t)&&ti(i))return new Fr({r:e,g:t,b:i,a:Math.round(100*s)/100}).toRgbString()}return new Fr({r:n,g:o,b:r,a:1}).toRgbString()};var oi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function ri(e){const{override:t}=e,n=oi(e,["override"]),o=Object.assign({},t);Object.keys(Ar).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ni(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ni(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ni(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ni(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Fr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Fr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Fr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var ii=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ai={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},li={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},ci={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},si=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=ii(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=ri(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=ii(n,["theme"]);let i=r;o&&(i=si(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function ui(){const{token:e,hashed:t,theme:n,override:o,cssVar:i}=r().useContext(ei),a=`${Do}-${t||""}`,l=n||Zr,[c,s,u]=Vt(l,[Ar,e],{salt:a,override:o,getComputedToken:si,formatToken:ri,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ai,ignore:li,preserve:ci}});return[l,u,t?s:"",c,i]}const di=(e,t)=>{const[n,o]=ui();return qn({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:fi,genComponentStyleHook:pi,genSubStyleComponent:mi}=jo({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,o.useContext)(Be);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=ui();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=(0,o.useContext)(Be);return di(t,e),null!==e&&void 0!==e?e:{}},getResetStyles:e=>[{"&":zo(e)}],getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==o&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[r]:a})}},getCompUnitless:()=>ai}),gi=fi("Affix",(e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}}),(e=>({zIndexPopup:e.zIndexBase+10})));function vi(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function hi(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function bi(e,t,n){if(void 0!==n&&Math.round(t.bottom)<Math.round(e.bottom)+n){return n+(window.innerHeight-t.bottom)}}const yi=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function Ci(){return"undefined"!==typeof window?window:null}const xi=r().forwardRef(((e,t)=>{var n;const{style:o,offsetTop:i,offsetBottom:l,prefixCls:c,className:s,rootClassName:u,children:d,target:f,onChange:p}=e,{getPrefixCls:m,getTargetContainer:g}=r().useContext(Be),v=m("affix",c),[h,b]=r().useState(!1),[y,C]=r().useState(),[x,$]=r().useState(),w=r().useRef(0),S=r().useRef(null),E=r().useRef(),k=r().useRef(null),O=r().useRef(null),I=r().useRef(null),N=null!==(n=null!==f&&void 0!==f?f:g)&&void 0!==n?n:Ci,M=void 0===l&&void 0===i?0:i,j=()=>{w.current=1,(()=>{if(1!==w.current||!O.current||!k.current||!N)return;const e=N();if(e){const t={status:0},n=vi(k.current);if(0===n.top&&0===n.left&&0===n.width&&0===n.height)return;const o=vi(e),r=hi(n,o,M),i=bi(n,o,l);void 0!==r?(t.affixStyle={position:"fixed",top:r,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):void 0!==i&&(t.affixStyle={position:"fixed",bottom:i,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,h!==t.lastAffix&&(null===p||void 0===p||p(t.lastAffix)),w.current=t.status,C(t.affixStyle),$(t.placeholderStyle),b(t.lastAffix)}})()},P=Pe((()=>{j()})),R=Pe((()=>{if(N&&y){const e=N();if(e&&k.current){const t=vi(e),n=vi(k.current),o=hi(n,t,M),r=bi(n,t,l);if(void 0!==o&&y.top===o||void 0!==r&&y.bottom===r)return}}j()})),z=()=>{const e=null===N||void 0===N?void 0:N();e&&(yi.forEach((t=>{var n;E.current&&(null===(n=S.current)||void 0===n||n.removeEventListener(t,E.current)),null===e||void 0===e||e.addEventListener(t,R)})),S.current=e,E.current=R)};r().useImperativeHandle(t,(()=>({updatePosition:P}))),r().useEffect((()=>(I.current=setTimeout(z),()=>(()=>{I.current&&(clearTimeout(I.current),I.current=null);const e=null===N||void 0===N?void 0:N();yi.forEach((t=>{var n;null===e||void 0===e||e.removeEventListener(t,R),E.current&&(null===(n=S.current)||void 0===n||n.removeEventListener(t,E.current))})),P.cancel(),R.cancel()})())),[]),r().useEffect((()=>{z()}),[f,y]),r().useEffect((()=>{P()}),[f,i,l]);const[T,B,H]=gi(v),D=a()(u,B,v,H),L=a()({[D]:y});let A=Ce(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return T(r().createElement(ye,{onResize:P},r().createElement("div",Object.assign({style:o,className:s,ref:k},A),y&&r().createElement("div",{style:x,"aria-hidden":"true"}),r().createElement("div",{className:L,ref:O,style:y},r().createElement(ye,{onResize:P},d)))))}));const $i=xi;const wi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Si(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const Ei=(0,o.createContext)({});function ki(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Oi(e){return function(e){return ki(e)instanceof ShadowRoot}(e)?ki(e):null}function Ii(e){return"object"===b(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===b(e.icon)||"function"===typeof e.icon)}function Ni(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=o;return t}),{})}function Mi(e,t,n){return n?r().createElement(e.tag,$($({key:t},Ni(e.attrs)),n),(e.children||[]).map((function(n,o){return Mi(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):r().createElement(e.tag,$({key:t},Ni(e.attrs)),(e.children||[]).map((function(n,o){return Mi(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function ji(e){return ur(e)[0]}function Pi(e){return e?Array.isArray(e)?e:[e]:[]}var Ri=["icon","className","onClick","style","primaryColor","secondaryColor"],zi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ti=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,a=e.primaryColor,l=e.secondaryColor,c=Si(e,Ri),s=o.useRef(),u=zi;if(a&&(u={primaryColor:a,secondaryColor:l||ji(a)}),function(e){var t=(0,o.useContext)(Ei),n=t.csp,r=t.prefixCls,i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),(0,o.useEffect)((function(){var t=Oi(e.current);Je(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(s),function(e,t){h(e,"[@ant-design/icons] ".concat(t))}(Ii(t),"icon should be icon definiton, but got ".concat(t)),!Ii(t))return null;var d=t;return d&&"function"===typeof d.icon&&(d=$($({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Mi(d.icon,"svg-".concat(d.name),$($({className:n,onClick:r,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:s}))};Ti.displayName="IconReact",Ti.getTwoToneColors=function(){return $({},zi)},Ti.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;zi.primaryColor=t,zi.secondaryColor=n||ji(t),zi.calculated=!!n};const Bi=Ti;function Hi(e){var t=Ae(Pi(e),2),n=t[0],o=t[1];return Bi.setTwoToneColors({primaryColor:n,secondaryColor:o})}var Di=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Hi(Cr.primary);var Li=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,c=e.rotate,s=e.tabIndex,u=e.onClick,d=e.twoToneColor,f=Si(e,Di),p=o.useContext(Ei),m=p.prefixCls,g=void 0===m?"anticon":m,v=p.rootClassName,h=a()(v,g,C(C({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!i||"loading"===r.name),n),b=s;void 0===b&&u&&(b=-1);var y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,x=Ae(Pi(d),2),$=x[0],w=x[1];return o.createElement("span",l({role:"img","aria-label":r.name},f,{ref:t,tabIndex:b,onClick:u,className:h}),o.createElement(Bi,{icon:r,primaryColor:$,secondaryColor:w,style:y}))}));Li.displayName="AntdIcon",Li.getTwoToneColor=function(){var e=Bi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Li.setTwoToneColor=Hi;const Ai=Li;const Fi=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:wi}))}));const Wi={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"};const _i=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Wi}))}));const Vi={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"};const qi=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Vi}))}));const Ki={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Xi=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Ki}))}));const Gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Yi=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Gi}))}));var Ui=["children"],Qi=o.createContext({});function Zi(e){var t=e.children,n=Si(e,Ui);return o.createElement(Qi.Provider,{value:n},t)}const Ji=function(e){se(n,e);var t=me(n);function n(){return ie(this,n),t.apply(this,arguments)}return le(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);var ea="none",ta="appear",na="enter",oa="leave",ra="none",ia="prepare",aa="start",la="active",ca="end",sa="prepared";function ua(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var da=function(e,t){var n={animationend:ua("Animation","AnimationEnd"),transitionend:ua("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(We(),"undefined"!==typeof window?window:{}),fa={};if(We()){var pa=document.createElement("div");fa=pa.style}var ma={};function ga(e){if(ma[e])return ma[e];var t=da[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in fa)return ma[e]=t[i],ma[e]}return""}var va=ga("animationend"),ha=ga("transitionend"),ba=!(!va||!ha),ya=va||"animationend",Ca=ha||"transitionend";function xa(e,t){if(!e)return null;if("object"===b(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const $a=We()?o.useLayoutEffect:o.useEffect;var wa=[ia,aa,la,ca],Sa=[ia,sa],Ea=!1;function ka(e){return e===la||e===ca}const Oa=function(e,t,n){var r=Ae(lo(ra),2),i=r[0],a=r[1],l=function(){var e=o.useRef(null);function t(){je.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=je((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),c=Ae(l,2),s=c[0],u=c[1];var d=t?Sa:wa;return $a((function(){if(i!==ra&&i!==ca){var e=d.indexOf(i),t=d[e+1],o=n(i);o===Ea?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){u()}}),[]),[function(){a(ia,!0)},i]};function Ia(e,t,n,r){var i=r.motionEnter,a=void 0===i||i,l=r.motionAppear,c=void 0===l||l,s=r.motionLeave,u=void 0===s||s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,h=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,S=r.onAppearEnd,E=r.onEnterEnd,k=r.onLeaveEnd,O=r.onVisibleChanged,I=Ae(lo(),2),N=I[0],M=I[1],j=function(e){var t=Ae(o.useReducer((function(e){return e+1}),0),2)[1],n=o.useRef(e);return[ao((function(){return n.current})),ao((function(e){n.current="function"===typeof e?e(n.current):e,t()}))]}(ea),P=Ae(j,2),R=P[0],z=P[1],T=Ae(lo(null),2),B=T[0],H=T[1],D=R(),L=(0,o.useRef)(!1),A=(0,o.useRef)(null);function F(){return n()}var W=(0,o.useRef)(!1);function _(){z(ea),H(null,!0)}var V=ao((function(e){var t=R();if(t!==ea){var n=F();if(!e||e.deadline||e.target===n){var o,r=W.current;t===ta&&r?o=null===S||void 0===S?void 0:S(n,e):t===na&&r?o=null===E||void 0===E?void 0:E(n,e):t===oa&&r&&(o=null===k||void 0===k?void 0:k(n,e)),r&&!1!==o&&_()}}})),q=function(e){var t=(0,o.useRef)();function n(t){t&&(t.removeEventListener(Ca,e),t.removeEventListener(ya,e))}return o.useEffect((function(){return function(){n(t.current)}}),[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Ca,e),o.addEventListener(ya,e),t.current=o)},n]}(V),K=Ae(q,1)[0],X=function(e){switch(e){case ta:return C(C(C({},ia,p),aa,v),la,y);case na:return C(C(C({},ia,m),aa,h),la,x);case oa:return C(C(C({},ia,g),aa,b),la,w);default:return{}}},G=o.useMemo((function(){return X(D)}),[D]),Y=Ae(Oa(D,!e,(function(e){if(e===ia){var t=G[ia];return t?t(F()):Ea}var n;Q in G&&H((null===(n=G[Q])||void 0===n?void 0:n.call(G,F(),null))||null);return Q===la&&D!==ea&&(K(F()),d>0&&(clearTimeout(A.current),A.current=setTimeout((function(){V({deadline:!0})}),d))),Q===sa&&_(),true})),2),U=Y[0],Q=Y[1],Z=ka(Q);W.current=Z,$a((function(){M(t);var n,o=L.current;L.current=!0,!o&&t&&c&&(n=ta),o&&t&&a&&(n=na),(o&&!t&&u||!o&&f&&!t&&u)&&(n=oa);var r=X(n);n&&(e||r[ia])?(z(n),U()):z(ea)}),[t]),(0,o.useEffect)((function(){(D===ta&&!c||D===na&&!a||D===oa&&!u)&&z(ea)}),[c,a,u]),(0,o.useEffect)((function(){return function(){L.current=!1,clearTimeout(A.current)}}),[]);var J=o.useRef(!1);(0,o.useEffect)((function(){N&&(J.current=!0),void 0!==N&&D===ea&&((J.current||N)&&(null===O||void 0===O||O(N)),J.current=!0)}),[N,D]);var ee=B;return G[ia]&&Q===aa&&(ee=$({transition:"none"},ee)),[D,Q,ee,null!==N&&void 0!==N?N:t]}const Na=function(e){var t=e;"object"===b(e)&&(t=e.transitionSupport);var n=o.forwardRef((function(e,n){var r=e.visible,i=void 0===r||r,l=e.removeOnLeave,c=void 0===l||l,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,o.useContext(Qi).motion),g=(0,o.useRef)(),v=(0,o.useRef)();var h=Ae(Ia(m,i,(function(){try{return g.current instanceof HTMLElement?g.current:O(v.current)}catch(sl){return null}}),e),4),b=h[0],y=h[1],x=h[2],w=h[3],S=o.useRef(w);w&&(S.current=!0);var E,k=o.useCallback((function(e){g.current=e,N(n,e)}),[n]),I=$($({},p),{},{visible:i});if(u)if(b===ea)E=w?u($({},I),k):!c&&S.current&&f?u($($({},I),{},{className:f}),k):s||!c&&!f?u($($({},I),{},{style:{display:"none"}}),k):null;else{var M;y===ia?M="prepare":ka(y)?M="active":y===aa&&(M="start");var j=xa(d,"".concat(b,"-").concat(M));E=u($($({},I),{},{className:a()(xa(d,b),C(C({},j,j&&M),d,"string"===typeof d)),style:x}),k)}else E=null;o.isValidElement(E)&&P(E)&&(E.ref||(E=o.cloneElement(E,{ref:k})));return o.createElement(Ji,{ref:v},E)}));return n.displayName="CSSMotion",n}(ba);var Ma="add",ja="keep",Pa="remove",Ra="removed";function za(e){var t;return $($({},t=e&&"object"===b(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ta(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(za)}var Ba=["component","children","onVisibleChanged","onAllRemoved"],Ha=["status"],Da=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const La=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Na,t=function(t){se(r,t);var n=me(r);function r(){var e;ie(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(fe(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),C(fe(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:$($({},e),{},{status:Ra})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Ra})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return le(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,c=r.onVisibleChanged,s=(r.onAllRemoved,Si(r,Ba)),u=i||o.Fragment,d={};return Da.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,o.createElement(u,s,n.map((function(n,r){var i=n.status,s=Si(n,Ha),u=i===Ma||i===ja;return o.createElement(e,l({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){null===c||void 0===c||c(e,{key:s.key}),e||t.removeKey(s.key)}}),(function(e,t){return a($($({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Ta(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=Ta(e),a=Ta(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var l=a[i];if(l.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return $($({},e),{},{status:Ma})}))),o=i),n.push($($({},l),{},{status:ja})),o+=1,t=!0;break}}t||n.push($($({},e),{},{status:Pa}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return $($({},e),{},{status:Ma})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==Pa}))).forEach((function(t){t.key===e&&(t.status=ja)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ra||e.status!==Pa}))}}}]),r}(o.Component);return C(t,"defaultProps",{component:"div"}),t}(ba),Aa=Na;var Fa="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Wa(e,t){return 0===e.indexOf(t)}function _a(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:$({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Wa(n,"aria-"))||t.data&&Wa(n,"data-")||t.attr&&Fa.includes(n))&&(o[n]=e[n])})),o}function Va(e){return e&&r().isValidElement(e)&&e.type===r().Fragment}const qa=(e,t,n)=>r().isValidElement(e)?r().cloneElement(e,"function"===typeof n?n(e.props||{}):n):t;function Ka(e,t){return qa(e,e,t)}const Xa=(e,t,n,o,r)=>({background:e,border:`${Et(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),Ga=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Ya=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":Xa(r,o,n,e,t),"&-info":Xa(p,f,d,e,t),"&-warning":Xa(l,a,i,e,t),"&-error":Object.assign(Object.assign({},Xa(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Ua=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:Et(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}},Qa=fi("Alert",(e=>[Ga(e),Ya(e),Ua(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));var Za=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ja={success:Fi,info:Yi,error:_i,warning:Xi},el=e=>{const{icon:t,prefixCls:n,type:r}=e,i=Ja[r]||null;return t?qa(t,o.createElement("span",{className:`${n}-icon`},t),(()=>({className:a()(`${n}-icon`,{[t.props.className]:t.props.className})}))):o.createElement(i,{className:`${n}-icon`})},tl=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,l=!0===r||void 0===r?o.createElement(qi,null):r;return t?o.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),l):null},nl=o.forwardRef(((e,t)=>{const{description:n,prefixCls:r,message:i,banner:l,className:c,rootClassName:s,style:u,onMouseEnter:d,onMouseLeave:f,onClick:p,afterClose:m,showIcon:g,closable:v,closeText:h,closeIcon:b,action:y,id:C}=e,x=Za(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[$,w]=o.useState(!1);const S=o.useRef(null);o.useImperativeHandle(t,(()=>({nativeElement:S.current})));const{getPrefixCls:E,direction:k,alert:O}=o.useContext(Be),I=E("alert",r),[N,j,P]=Qa(I),R=t=>{var n;w(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},z=o.useMemo((()=>void 0!==e.type?e.type:l?"warning":"info"),[e.type,l]),T=o.useMemo((()=>!("object"!==typeof v||!v.closeIcon)||(!!h||("boolean"===typeof v?v:!1!==b&&null!==b&&void 0!==b||!!(null===O||void 0===O?void 0:O.closable)))),[h,b,v,null===O||void 0===O?void 0:O.closable]),B=!(!l||void 0!==g)||g,H=a()(I,`${I}-${z}`,{[`${I}-with-description`]:!!n,[`${I}-no-icon`]:!B,[`${I}-banner`]:!!l,[`${I}-rtl`]:"rtl"===k},null===O||void 0===O?void 0:O.className,c,s,P,j),D=_a(x,{aria:!0,data:!0}),L=o.useMemo((()=>{var e,t;return"object"===typeof v&&v.closeIcon?v.closeIcon:h||(void 0!==b?b:"object"===typeof(null===O||void 0===O?void 0:O.closable)&&(null===(e=null===O||void 0===O?void 0:O.closable)||void 0===e?void 0:e.closeIcon)?null===(t=null===O||void 0===O?void 0:O.closable)||void 0===t?void 0:t.closeIcon:null===O||void 0===O?void 0:O.closeIcon)}),[b,v,h,null===O||void 0===O?void 0:O.closeIcon]),A=o.useMemo((()=>{const e=null!==v&&void 0!==v?v:null===O||void 0===O?void 0:O.closable;if("object"===typeof e){const{closeIcon:t}=e;return Za(e,["closeIcon"])}return{}}),[v,null===O||void 0===O?void 0:O.closable]);return N(o.createElement(Aa,{visible:!$,motionName:`${I}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:m},((t,r)=>{let{className:l,style:c}=t;return o.createElement("div",Object.assign({id:C,ref:M(S,r),"data-show":!$,className:a()(H,l),style:Object.assign(Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),u),c),onMouseEnter:d,onMouseLeave:f,onClick:p,role:"alert"},D),B?o.createElement(el,{description:n,icon:e.icon,prefixCls:I,type:z}):null,o.createElement("div",{className:`${I}-content`},i?o.createElement("div",{className:`${I}-message`},i):null,n?o.createElement("div",{className:`${I}-description`},n):null),y?o.createElement("div",{className:`${I}-action`},y):null,o.createElement(tl,{isClosable:T,prefixCls:I,closeIcon:L,handleClose:R,ariaProps:A}))})))}));const ol=nl;let rl=function(e){function t(){var e;return ie(this,t),e=function(e,t,n){return t=ue(t),pe(e,de()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return se(t,e),le(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:r}=this.props,{error:i,info:a}=this.state,l=(null===a||void 0===a?void 0:a.componentStack)||null,c="undefined"===typeof e?(i||"").toString():e,s="undefined"===typeof t?l:t;return i?o.createElement(ol,{id:n,type:"error",message:c,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):r}}])}(o.Component);const il=rl,al=ol;al.ErrorBoundary=il;const ll=al,cl=e=>"object"==typeof e&&null!=e&&1===e.nodeType,sl=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,ul=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return sl(n.overflowY,t)||sl(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},dl=(e,t,n,o,r,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-o:a>t&&l<n||i<e&&l>n?a-t+r:0,fl=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},pl=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!cl(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;cl(m)&&d(m);){if(m=fl(m),m===f){p.push(m);break}null!=m&&m===document.body&&ul(m)&&!ul(document.documentElement)||null!=m&&ul(m,u)&&p.push(m)}const g=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,v=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:h,scrollY:b}=window,{height:y,width:C,top:x,right:$,bottom:w,left:S}=e.getBoundingClientRect(),{top:E,right:k,bottom:O,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===l||"nearest"===l?x-E:"end"===l?w+O:x+y/2-E+O,M="center"===c?S+C/2-I+k:"end"===c?$+k:S-I;const j=[];for(let P=0;P<p.length;P++){const e=p[P],{height:t,width:n,top:o,right:r,bottom:i,left:s}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&S>=0&&w<=v&&$<=g&&x>=o&&w<=i&&S>=s&&$<=r)return j;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),k=parseInt(u.borderBottomWidth,10);let O=0,I=0;const R="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,z="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-k:0,T="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,B="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)O="start"===l?N:"end"===l?N-v:"nearest"===l?dl(b,b+v,v,m,k,b+N,b+N+y,y):N-v/2,I="start"===c?M:"center"===c?M-g/2:"end"===c?M-g:dl(h,h+g,g,d,E,h+M,h+M+C,C),O=Math.max(0,O+b),I=Math.max(0,I+h);else{O="start"===l?N-o-m:"end"===l?N-i+k+z:"nearest"===l?dl(o,i,t,m,k+z,N,N+y,y):N-(o+t/2)+z/2,I="start"===c?M-s-d:"center"===c?M-(s+n/2)+R/2:"end"===c?M-r+E+R:dl(s,r,n,d,E+R,M,M+C,C);const{scrollLeft:a,scrollTop:u}=e;O=0===B?0:Math.max(0,Math.min(u+O/B,e.scrollHeight-t/B+z)),I=0===T?0:Math.max(0,Math.min(a+I/T,e.scrollWidth-n/T+R)),N+=u-O,M+=a-I}j.push({el:e,top:O,left:I})}return j};function ml(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(pl(e,t));const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of pl(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}function gl(e){return null!==e&&void 0!==e&&e===e.window}const vl=e=>{var t,n;if("undefined"===typeof window)return 0;let o=0;return gl(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!gl(e)&&"number"!==typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function hl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),a=vl(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);gl(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?je(c):"function"===typeof o&&o()};je(c)}const bl=e=>{const[,,,,t]=ui();return t?`${e}-css-var`:""},yl=o.createContext(void 0),Cl=e=>{const{href:t,title:n,prefixCls:r,children:i,className:l,target:c,replace:s}=e,u=o.useContext(yl),{registerLink:d,unregisterLink:f,scrollTo:p,onClick:m,activeLink:g,direction:v}=u||{};o.useEffect((()=>(null===d||void 0===d||d(t),()=>{null===f||void 0===f||f(t)})),[t]);const{getPrefixCls:h}=o.useContext(Be),b=h("anchor",r),y=g===t,C=a()(`${b}-link`,l,{[`${b}-link-active`]:y}),x=a()(`${b}-link-title`,{[`${b}-link-title-active`]:y});return o.createElement("div",{className:C},o.createElement("a",{className:x,href:t,title:"string"===typeof n?n:"",target:c,onClick:e=>{null===m||void 0===m||m(e,{title:n,href:t}),null===p||void 0===p||p(t),s&&(e.preventDefault(),window.location.replace(t))}},n),"horizontal"!==v?i:null)},xl=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:a,colorSplit:l,calc:c}=e;return{[`${t}-wrapper`]:{marginBlockStart:c(n).mul(-1).equal(),paddingBlockStart:n,[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${Et(e.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},Po),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${Et(r)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},$l=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},wl=fi("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o,calc:r}=e,i=xo(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:r(o).div(2).equal(),anchorTitleBlock:r(t).div(14).mul(3).equal(),anchorBallSize:r(n).div(2).equal()});return[xl(i),$l(i)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function Sl(){return window}function El(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const kl=/#([\S ]+)$/;const Ol=e=>{var t;const{rootClassName:n,prefixCls:r,className:i,style:l,offsetTop:c,affix:s=!0,showInkInFixed:u=!1,children:d,items:f,direction:p="vertical",bounds:m,targetOffset:g,onClick:v,onChange:h,getContainer:b,getCurrentAnchor:y,replace:C}=e;const[x,$]=o.useState([]),[w,S]=o.useState(null),E=o.useRef(w),k=o.useRef(null),O=o.useRef(null),I=o.useRef(!1),{direction:N,anchor:M,getTargetContainer:j,getPrefixCls:P}=o.useContext(Be),R=P("anchor",r),z=bl(R),[T,B,H]=wl(R,z),D=null!==(t=null!==b&&void 0!==b?b:j)&&void 0!==t?t:Sl,L=JSON.stringify(x),A=ao((e=>{x.includes(e)||$((t=>[].concat(Se(t),[e])))})),F=ao((e=>{x.includes(e)&&$((t=>t.filter((t=>t!==e))))})),W=ao((e=>{if(E.current===e)return;const t="function"===typeof y?y(e):e;S(t),E.current=t,null===h||void 0===h||h(e)})),_=o.useCallback((()=>{if(I.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],r=D();if(e.forEach((e=>{const i=kl.exec(null===e||void 0===e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=El(a,r);i<=t+n&&o.push({link:e,top:i})}})),o.length){const e=o.reduce(((e,t)=>t.top>e.top?t:e));return e.link}return""}(x,void 0!==g?g:c||0,m);W(e)}),[L,g,c]),V=o.useCallback((e=>{W(e);const t=kl.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=D();let r=vl(o)+El(n,o);r-=void 0!==g?g:c||0,I.current=!0,hl(r,{getContainer:D,callback(){I.current=!1}})}),[g,c]),q=a()(B,H,z,n,`${R}-wrapper`,{[`${R}-wrapper-horizontal`]:"horizontal"===p,[`${R}-rtl`]:"rtl"===N},i,null===M||void 0===M?void 0:M.className),K=a()(R,{[`${R}-fixed`]:!s&&!u}),X=a()(`${R}-ink`,{[`${R}-ink-visible`]:w}),G=Object.assign(Object.assign({maxHeight:c?`calc(100vh - ${c}px)`:"100vh"},null===M||void 0===M?void 0:M.style),l),Y=e=>Array.isArray(e)?e.map((e=>o.createElement(Cl,Object.assign({replace:C},e,{key:e.key}),"vertical"===p&&Y(e.children)))):null,U=o.createElement("div",{ref:k,className:q,style:G},o.createElement("div",{className:K},o.createElement("span",{className:X,ref:O}),"items"in e?Y(f):d));o.useEffect((()=>{const e=D();return _(),null===e||void 0===e||e.addEventListener("scroll",_),()=>{null===e||void 0===e||e.removeEventListener("scroll",_)}}),[L]),o.useEffect((()=>{"function"===typeof y&&W(y(E.current||""))}),[y]),o.useEffect((()=>{(()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.querySelector(`.${R}-link-title-active`);if(t&&O.current){const{style:e}=O.current,n="horizontal"===p;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&ml(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[p,y,L,w]);const Q=o.useMemo((()=>({registerLink:A,unregisterLink:F,scrollTo:V,activeLink:w,onClick:v,direction:p})),[w,v,V,p]),Z=s&&"object"===typeof s?s:void 0;return T(o.createElement(yl.Provider,{value:Q},s?o.createElement($i,Object.assign({offsetTop:c,target:D},Z),U):U))},Il=Ol;Il.Link=Cl;const Nl=Il;function Ml(){}const jl=o.createContext({}),Pl=()=>{const e=()=>{};return e.deprecated=Ml,e};var Rl={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>=Rl.F1&&t<=Rl.F12)return!1;switch(t){case Rl.ALT:case Rl.CAPS_LOCK:case Rl.CONTEXT_MENU:case Rl.CTRL:case Rl.DOWN:case Rl.END:case Rl.ESC:case Rl.HOME:case Rl.INSERT:case Rl.LEFT:case Rl.MAC_FF_META:case Rl.META:case Rl.NUMLOCK:case Rl.NUM_CENTER:case Rl.PAGE_DOWN:case Rl.PAGE_UP:case Rl.PAUSE:case Rl.PRINT_SCREEN:case Rl.RIGHT:case Rl.SHIFT:case Rl.UP:case Rl.WIN_KEY:case Rl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Rl.ZERO&&e<=Rl.NINE)return!0;if(e>=Rl.NUM_ZERO&&e<=Rl.NUM_MULTIPLY)return!0;if(e>=Rl.A&&e<=Rl.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Rl.SPACE:case Rl.QUESTION_MARK:case Rl.NUM_PLUS:case Rl.NUM_MINUS:case Rl.NUM_PERIOD:case Rl.NUM_DIVISION:case Rl.SEMICOLON:case Rl.DASH:case Rl.EQUALS:case Rl.COMMA:case Rl.PERIOD:case Rl.SLASH:case Rl.APOSTROPHE:case Rl.SINGLE_QUOTE:case Rl.OPEN_SQUARE_BRACKET:case Rl.BACKSLASH:case Rl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const zl=Rl;var Tl=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,i=e.className,c=e.duration,s=void 0===c?4.5:c,u=e.showProgress,d=e.pauseOnHover,f=void 0===d||d,p=e.eventKey,m=e.content,g=e.closable,v=e.closeIcon,h=void 0===v?"x":v,y=e.props,x=e.onClick,$=e.onNoticeClose,w=e.times,S=e.hovering,E=Ae(o.useState(!1),2),k=E[0],O=E[1],I=Ae(o.useState(0),2),N=I[0],M=I[1],j=Ae(o.useState(0),2),P=j[0],R=j[1],z=S||k,T=s>0&&u,B=function(){$(p)};o.useEffect((function(){if(!z&&s>0){var e=Date.now()-P,t=setTimeout((function(){B()}),1e3*s-P);return function(){f&&clearTimeout(t),R(Date.now()-e)}}}),[s,z,w]),o.useEffect((function(){if(!z&&T&&(f||0===P)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var o=e+P-t,r=Math.min(o/(1e3*s),1);M(100*r),r<1&&n()}))}(),function(){f&&cancelAnimationFrame(e)}}}),[s,P,z,T,w]);var H=o.useMemo((function(){return"object"===b(g)&&null!==g?g:g?{closeIcon:h}:{}}),[g,h]),D=_a(H,!0),L=100-(!N||N<0?0:N>100?100:N),A="".concat(n,"-notice");return o.createElement("div",l({},y,{ref:t,className:a()(A,i,C({},"".concat(A,"-closable"),g)),style:r,onMouseEnter:function(e){var t;O(!0),null===y||void 0===y||null===(t=y.onMouseEnter)||void 0===t||t.call(y,e)},onMouseLeave:function(e){var t;O(!1),null===y||void 0===y||null===(t=y.onMouseLeave)||void 0===t||t.call(y,e)},onClick:x}),o.createElement("div",{className:"".concat(A,"-content")},m),g&&o.createElement("a",l({tabIndex:0,className:"".concat(A,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==zl.ENTER||B()},"aria-label":"Close"},D,{onClick:function(e){e.preventDefault(),e.stopPropagation(),B()}}),H.closeIcon),T&&o.createElement("progress",{className:"".concat(A,"-progress"),max:"100",value:L},L+"%"))}));const Bl=Tl;var Hl=r().createContext({});const Dl=function(e){var t=e.children,n=e.classNames;return r().createElement(Hl.Provider,{value:{classNames:n}},t)};const Ll=function(e){var t,n,o,r={offset:8,threshold:3,gap:16};e&&"object"===b(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16);return[!!e,r]};var Al=["className","style","classNames","styles"];const Fl=function(e){var t=e.configList,n=e.placement,i=e.prefixCls,c=e.className,s=e.style,u=e.motion,d=e.onAllNoticeRemoved,f=e.onNoticeClose,p=e.stack,m=(0,o.useContext)(Hl).classNames,g=(0,o.useRef)({}),v=Ae((0,o.useState)(null),2),h=v[0],b=v[1],y=Ae((0,o.useState)([]),2),x=y[0],w=y[1],S=t.map((function(e){return{config:e,key:String(e.key)}})),E=Ae(Ll(p),2),k=E[0],O=E[1],I=O.offset,N=O.threshold,M=O.gap,j=k&&(x.length>0||S.length<=N),P="function"===typeof u?u(n):u;return(0,o.useEffect)((function(){k&&x.length>1&&w((function(e){return e.filter((function(e){return S.some((function(t){var n=t.key;return e===n}))}))}))}),[x,S,k]),(0,o.useEffect)((function(){var e,t;k&&g.current[null===(e=S[S.length-1])||void 0===e?void 0:e.key]&&b(g.current[null===(t=S[S.length-1])||void 0===t?void 0:t.key])}),[S,k]),r().createElement(La,l({key:n,className:a()(i,"".concat(i,"-").concat(n),null===m||void 0===m?void 0:m.list,c,C(C({},"".concat(i,"-stack"),!!k),"".concat(i,"-stack-expanded"),j)),style:s,keys:S,motionAppear:!0},P,{onAllRemoved:function(){d(n)}}),(function(e,t){var o=e.config,c=e.className,s=e.style,u=e.index,d=o,p=d.key,v=d.times,b=String(p),y=o,C=y.className,E=y.style,O=y.classNames,N=y.styles,P=Si(y,Al),R=S.findIndex((function(e){return e.key===b})),z={};if(k){var T=S.length-1-(R>-1?R:u-1),B="top"===n||"bottom"===n?"-50%":"0";if(T>0){var H,D,L;z.height=j?null===(H=g.current[b])||void 0===H?void 0:H.offsetHeight:null===h||void 0===h?void 0:h.offsetHeight;for(var A=0,F=0;F<T;F++){var W;A+=(null===(W=g.current[S[S.length-1-F].key])||void 0===W?void 0:W.offsetHeight)+M}var _=(j?A:T*I)*(n.startsWith("top")?1:-1),V=!j&&null!==h&&void 0!==h&&h.offsetWidth&&null!==(D=g.current[b])&&void 0!==D&&D.offsetWidth?((null===h||void 0===h?void 0:h.offsetWidth)-2*I*(T<3?T:3))/(null===(L=g.current[b])||void 0===L?void 0:L.offsetWidth):1;z.transform="translate3d(".concat(B,", ").concat(_,"px, 0) scaleX(").concat(V,")")}else z.transform="translate3d(".concat(B,", 0, 0)")}return r().createElement("div",{ref:t,className:a()("".concat(i,"-notice-wrapper"),c,null===O||void 0===O?void 0:O.wrapper),style:$($($({},s),z),null===N||void 0===N?void 0:N.wrapper),onMouseEnter:function(){return w((function(e){return e.includes(b)?e:[].concat(Se(e),[b])}))},onMouseLeave:function(){return w((function(e){return e.filter((function(e){return e!==b}))}))}},r().createElement(Bl,l({},P,{ref:function(e){R>-1?g.current[b]=e:delete g.current[b]},prefixCls:i,classNames:O,styles:N,className:a()(C,null===m||void 0===m?void 0:m.notice),style:E,times:v,key:p,eventKey:p,onNoticeClose:f,hovering:k&&x.length>0})))}))};var Wl=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=Ae(o.useState([]),2),m=p[0],g=p[1],v=function(e){var t,n=m.find((function(t){return t.key===e}));null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),g((function(t){return t.filter((function(t){return t.key!==e}))}))};o.useImperativeHandle(t,(function(){return{open:function(e){g((function(t){var n,o=Se(t),r=o.findIndex((function(t){return t.key===e.key})),i=$({},e);r>=0?(i.times=((null===(n=t[r])||void 0===n?void 0:n.times)||0)+1,o[r]=i):(i.times=0,o.push(i));return l>0&&o.length>l&&(o=o.slice(-l)),o}))},close:function(e){v(e)},destroy:function(){g([])}}}));var h=Ae(o.useState({}),2),b=h[0],y=h[1];o.useEffect((function(){var e={};m.forEach((function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[m]);var C=function(e){y((function(t){var n=$({},t);return(n[e]||[]).length||delete n[e],n}))},x=o.useRef(!1);if(o.useEffect((function(){Object.keys(b).length>0?x.current=!0:x.current&&(null===u||void 0===u||u(),x.current=!1)}),[b]),!i)return null;var S=Object.keys(b);return(0,w.createPortal)(o.createElement(o.Fragment,null,S.map((function(e){var t=b[e],n=o.createElement(Fl,{key:e,configList:t,placement:e,prefixCls:r,className:null===c||void 0===c?void 0:c(e),style:null===s||void 0===s?void 0:s(e),motion:a,onNoticeClose:v,onAllNoticeRemoved:C,stack:d});return f?f(n,{prefixCls:r,key:e}):n}))),i)}));const _l=Wl;var Vl=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ql=function(){return document.body},Kl=0;function Xl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?ql:t,r=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Si(e,Vl),p=Ae(o.useState(),2),m=p[0],g=p[1],v=o.useRef(),h=o.createElement(_l,{container:m,ref:v,prefixCls:i,motion:r,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=Ae(o.useState([]),2),y=b[0],C=b[1],x=o.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var o=t[n];void 0!==o&&(e[n]=o)}))})),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Kl),Kl+=1),C((function(e){return[].concat(Se(e),[{type:"open",config:t}])}))},close:function(e){C((function(t){return[].concat(Se(t),[{type:"close",key:e}])}))},destroy:function(){C((function(e){return[].concat(Se(e),[{type:"destroy"}])}))}}}),[]);return o.useEffect((function(){g(n())})),o.useEffect((function(){v.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":v.current.open(e.config);break;case"close":v.current.close(e.key);break;case"destroy":v.current.destroy()}})),C((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[x,h]}const Gl={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"};const Yl=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Gl}))}));const Ul=r().createContext(void 0),Ql=100,Zl=1e3,Jl={Modal:Ql,Drawer:Ql,Popover:Ql,Popconfirm:Ql,Tooltip:Ql,Tour:Ql,FloatButton:Ql},ec={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const tc=(e,t)=>{const[,n]=ui(),o=r().useContext(Ul),i=function(e){return e in Jl}(e);let a;if(void 0!==t)a=[t,t];else{let r=null!==o&&void 0!==o?o:0;r+=i?(o?0:n.zIndexPopupBase)+Jl[e]:ec[e],a=[void 0===o?t:r,r]}return a},nc=e=>{const{componentCls:t,iconCls:n,boxShadow:o,colorText:r,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:h}=e,b=`${t}-notice`,y=new Yn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),C=new Yn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:v,background:h,borderRadius:m,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Ro(e)),{color:r,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},oc=fi("Message",(e=>{const t=xo(e,{height:150});return[nc(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+Zl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var rc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ic={info:o.createElement(Yi,null),success:o.createElement(Fi,null),error:o.createElement(_i,null),warning:o.createElement(Xi,null),loading:o.createElement(Yl,null)},ac=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:a()(`${t}-custom-content`,`${t}-${n}`)},r||ic[n],o.createElement("span",null,i))},lc=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:l}=e,c=rc(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=o.useContext(Be),u=t||s("message"),d=bl(u),[f,p,m]=oc(u,d);return f(o.createElement(Bl,Object.assign({},c,{prefixCls:u,className:a()(n,p,`${u}-notice-pure-panel`,m,d),eventKey:"pure",duration:null,content:o.createElement(ac,{prefixCls:u,type:r,icon:i},l)})))};function cc(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),o=()=>{null===t||void 0===t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}var sc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uc=3,dc=e=>{let{children:t,prefixCls:n}=e;const r=bl(n),[i,l,c]=oc(n,r);return i(o.createElement(Dl,{classNames:{list:a()(l,c,r)}},t))},fc=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(dc,{prefixCls:n,key:r},e)},pc=o.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:l,duration:c=uc,rtl:s,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:f,getPopupContainer:p,message:m,direction:g}=o.useContext(Be),v=r||f("message"),h=o.createElement("span",{className:`${v}-close-x`},o.createElement(qi,{className:`${v}-close-icon`})),[b,y]=Xl({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!==n&&void 0!==n?n:8}),className:()=>a()({[`${v}-rtl`]:null!==s&&void 0!==s?s:"rtl"===g}),motion:()=>function(e,t){return{motionName:null!==t&&void 0!==t?t:`${e}-move-up`}}(v,u),closable:!1,closeIcon:h,duration:c,getContainer:()=>(null===i||void 0===i?void 0:i())||(null===p||void 0===p?void 0:p())||document.body,maxCount:l,onAllRemoved:d,renderNotifications:fc});return o.useImperativeHandle(t,(()=>Object.assign(Object.assign({},b),{prefixCls:v,message:m}))),y}));let mc=0;function gc(e){const t=o.useRef(null),n=(Pl("Message"),o.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:i,message:l}=t.current,c=`${i}-notice`,{content:s,icon:u,type:d,key:f,className:p,style:m,onClose:g}=n,v=sc(n,["content","icon","type","key","className","style","onClose"]);let h=f;return void 0!==h&&null!==h||(mc+=1,h=`antd-message-${mc}`),cc((t=>(r(Object.assign(Object.assign({},v),{key:h,content:o.createElement(ac,{prefixCls:i,type:d,icon:u},s),placement:"top",className:a()(d&&`${c}-${d}`,p,null===l||void 0===l?void 0:l.className),style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),m),onClose:()=>{null===g||void 0===g||g(),t()}})),()=>{e(h)})))},r={open:n,destroy:n=>{var o;void 0!==n?e(n):null===(o=t.current)||void 0===o||o.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,o,r)=>{let i,a,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof o?l=o:(a=o,l=r);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(c)}})),r}),[]));return[n,o.createElement(pc,Object.assign({key:"message-holder"},e,{ref:t}))]}function vc(e){return gc(e)}function hc(){hc=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new j(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function h(){}function y(){}function C(){}var x={};s(x,a,(function(){return this}));var $=Object.getPrototypeOf,w=$&&$($(P([])));w&&w!==n&&o.call(w,a)&&(x=w);var S=C.prototype=h.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,i,a,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==b(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=f;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var l=o.delegate;if(l){var c=I(l,o);if(c){if(c===v)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var s=d(t,n,o);if("normal"===s.type){if(r=o.done?g:p,s.arg===v)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=g,o.method="throw",o.arg=s.arg)}}}function I(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(b(t)+" is not iterable")}return y.prototype=C,r(S,"constructor",{value:C,configurable:!0}),r(C,"constructor",{value:y,configurable:!0}),y.displayName=s(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},E(k.prototype),s(k.prototype,l,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return l.type="throw",l.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),v}},t}function bc(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function yc(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){bc(i,o,r,a,l,"next",e)}function l(e){bc(i,o,r,a,l,"throw",e)}a(void 0)}))}}var Cc,xc=$({},w),$c=xc.version,wc=xc.render,Sc=xc.unmountComponentAtNode;try{Number(($c||"").split(".")[0])>=18&&(Cc=xc.createRoot)}catch(sl){}function Ec(e){var t=xc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===b(t)&&(t.usingClientEntryPoint=e)}var kc="__rc_react_root__";function Oc(e,t){Cc?function(e,t){Ec(!0);var n=t[kc]||Cc(t);Ec(!1),n.render(e),t[kc]=n}(e,t):function(e,t){wc(e,t)}(e,t)}function Ic(e){return Nc.apply(this,arguments)}function Nc(){return(Nc=yc(hc().mark((function e(t){return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[kc])||void 0===e||e.unmount(),delete t[kc]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mc(e){Sc(e)}function jc(e){return Pc.apply(this,arguments)}function Pc(){return(Pc=yc(hc().mark((function e(t){return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Cc){e.next=2;break}return e.abrupt("return",Ic(t));case 2:Mc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Rc=(0,o.createContext)(void 0);const zc={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};const Tc=$($({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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"}),Bc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hc={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"]},Tc),timePickerLocale:Object.assign({},Bc)},Dc=Hc,Lc="${label} is not a valid ${type}",Ac={locale:"en",Pagination:zc,DatePicker:Hc,TimePicker:Bc,Calendar:Dc,global:{placeholder:"Please select"},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:Lc,method:Lc,array:Lc,object:Lc,number:Lc,date:Lc,boolean:Lc,integer:Lc,float:Lc,regexp:Lc,email:Lc,url:Lc,hex:Lc},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Fc=Object.assign({},Ac.Modal),Wc=[];const _c=()=>Wc.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Ac.Modal);function Vc(){return Fc}const qc=(0,o.createContext)(void 0);const Kc=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Wc.push(t),Fc=_c(),()=>{Wc=Wc.filter((e=>e!==t)),Fc=_c()}}Fc=Object.assign({},Ac.Modal)}(null===t||void 0===t?void 0:t.Modal);return e}),[t]);const i=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(qc.Provider,{value:i},n)},Xc=`-ant-${Date.now()}-${Math.random()}`;function Gc(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Fr(e),i=ur(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Fr(t.primaryColor),i=ur(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Fr(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);We()&&Je(n,`${Xc}-dynamic-theme`)}const Yc=o.createContext(!1),Uc=e=>{let{children:t,disabled:n}=e;const r=o.useContext(Yc);return o.createElement(Yc.Provider,{value:null!==n&&void 0!==n?n:r},t)},Qc=Yc,Zc=o.createContext(void 0),Jc=e=>{let{children:t,size:n}=e;const r=o.useContext(Zc);return o.createElement(Zc.Provider,{value:n||r},t)},es=Zc;const ts=function(){return{componentDisabled:(0,o.useContext)(Qc),componentSize:(0,o.useContext)(es)}},ns=Object.assign({},o),{useId:os}=ns,rs="undefined"===typeof os?()=>"":os;function is(e){const{children:t}=e,[,n]=ui(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(Zi,{motion:r},t):t}o.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return Pl("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));const as=()=>null;var ls=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cs=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ss,us,ds,fs;function ps(){return ss||Re}function ms(){return us||ze}const gs=()=>({getPrefixCls:(e,t)=>t||(e?`${ps()}-${e}`:ps()),getIconPrefixCls:ms,getRootPrefixCls:()=>ss||ps(),getTheme:()=>ds,holderRender:fs}),vs=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:h,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:x,segmented:$,statistic:w,spin:S,calendar:E,carousel:k,cascader:O,collapse:N,typography:M,checkbox:j,descriptions:P,divider:R,drawer:z,skeleton:T,steps:B,image:H,layout:D,list:L,mentions:A,modal:F,progress:W,result:_,slider:V,breadcrumb:q,menu:K,pagination:X,input:G,textArea:Y,empty:U,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:oe,tag:re,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:ve,wave:he,dropdown:be,warning:ye,tour:Ce,floatButtonGroup:xe,variant:$e,inputNumber:we,treeSelect:Se}=e,Ee=o.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||b.getPrefixCls("");return t?`${r}-${t}`:r}),[b.getPrefixCls,e.prefixCls]),ke=y||b.iconPrefixCls||ze,Oe=n||b.csp;di(ke,Oe);const Ie=function(e,t,n){var o;Pl("ConfigProvider");const r=e||{},i=!1!==r.inherit&&t?t:Object.assign(Object.assign({},Jr),{hashed:null!==(o=null===t||void 0===t?void 0:t.hashed)&&void 0!==o?o:Jr.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),a=rs();return I((()=>{var o,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(o=r.cssVar)&&void 0!==o?o:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof i.cssVar?i.cssVar:{}),"object"===typeof r.cssVar?r.cssVar:{}),{key:"object"===typeof r.cssVar&&(null===(l=r.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:c,cssVar:u})}),[r,i],((e,t)=>e.some(((e,n)=>{const o=t[n];return!et(e,o,!0)}))))}(C,b.theme,{prefixCls:Ee("")});const Ne={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||h,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!==g&&void 0!==g?g:m,popupOverflow:v,getPrefixCls:Ee,iconPrefixCls:ke,theme:Ie,segmented:$,statistic:w,spin:S,calendar:E,carousel:k,cascader:O,collapse:N,typography:M,checkbox:j,descriptions:P,divider:R,drawer:z,skeleton:T,steps:B,image:H,input:G,textArea:Y,layout:D,list:L,mentions:A,modal:F,progress:W,result:_,slider:V,breadcrumb:q,menu:K,pagination:X,empty:U,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:oe,tag:re,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:ve,wave:he,dropdown:be,warning:ye,tour:Ce,floatButtonGroup:xe,variant:$e,inputNumber:we,treeSelect:Se};const Me=Object.assign({},b);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Me[e]=Ne[e])})),cs.forEach((t=>{const n=e[t];n&&(Me[t]=n)})),"undefined"!==typeof r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const je=I((()=>Me),Me,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Pe=o.useMemo((()=>({prefixCls:ke,csp:Oe})),[ke,Oe]);let Re=o.createElement(o.Fragment,null,o.createElement(as,{dropdownMatchSelectWidth:m}),t);const Te=o.useMemo((()=>{var e,t,n,o;return ho((null===(e=Ac.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=je.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=je.form)||void 0===o?void 0:o.validateMessages)||{},(null===l||void 0===l?void 0:l.validateMessages)||{})}),[je,null===l||void 0===l?void 0:l.validateMessages]);Object.keys(Te).length>0&&(Re=o.createElement(Rc.Provider,{value:Te},Re)),c&&(Re=o.createElement(Kc,{locale:c,_ANT_MARK__:"internalMark"},Re)),(ke||Oe)&&(Re=o.createElement(Ei.Provider,{value:Pe},Re)),s&&(Re=o.createElement(Jc,{size:s},Re)),Re=o.createElement(is,null,Re);const He=o.useMemo((()=>{const e=Ie||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=ls(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?bt(t):Zr,l={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"===typeof o.algorithm)&&(o.theme=bt(o.algorithm)),delete o.algorithm),l[t]=o}));const c=Object.assign(Object.assign({},Ar),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:r})}),[Ie]);return C&&(Re=o.createElement(ei.Provider,{value:He},Re)),je.warning&&(Re=o.createElement(jl.Provider,{value:je.warning},Re)),void 0!==x&&(Re=o.createElement(Uc,{disabled:x},Re)),o.createElement(Be.Provider,{value:je},Re)},hs=e=>{const t=o.useContext(Be),n=o.useContext(qc);return o.createElement(vs,Object.assign({parentContext:t,legacyLocale:n},e))};hs.ConfigContext=Be,hs.SizeContext=es,hs.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(ss=t),void 0!==n&&(us=n),"holderRender"in e&&(fs=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?ds=o:Gc(ps(),o))},hs.useConfig=ts,Object.defineProperty(hs,"SizeContext",{get:()=>es});const bs=hs,ys=()=>({height:0,opacity:0}),Cs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xs=e=>({height:e?e.offsetHeight:0}),$s=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,ws=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Ss=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re}-motion-collapse`,onAppearStart:ys,onEnterStart:ys,onAppearActive:Cs,onEnterActive:Cs,onLeaveStart:xs,onLeaveActive:ys,onAppearEnd:$s,onEnterEnd:$s,onLeaveEnd:$s,motionDeadline:500}},Es=(e,t)=>{const n=o.useContext(qc),r=o.useMemo((()=>{var o;const r=t||Ac[e],i=null!==(o=null===n||void 0===n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"===typeof r?r():r),i||{})}),[e,t,n]);return[r,o.useMemo((()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?Ac.locale:e}),[n])]},ks=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,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1},Os=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Is=pi("Wave",(e=>[Os(e)])),Ns=`${Re}-wave-target`;function Ms(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function js(e){return Number.isNaN(e)?0:e}const Ps=e=>{const{className:t,target:n,component:r}=e,i=o.useRef(null),[l,c]=o.useState(null),[s,u]=o.useState([]),[d,f]=o.useState(0),[p,m]=o.useState(0),[g,v]=o.useState(0),[h,b]=o.useState(0),[y,C]=o.useState(!1),x={left:d,top:p,width:g,height:h,borderRadius:s.map((e=>`${e}px`)).join(" ")};function $(){const e=getComputedStyle(n);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Ms(t)?t:Ms(n)?n:Ms(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;f(t?n.offsetLeft:js(-parseFloat(o))),m(t?n.offsetTop:js(-parseFloat(r))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;u([i,a,s,l].map((e=>js(parseFloat(e)))))}if(l&&(x["--wave-color"]=l),o.useEffect((()=>{if(n){const e=je((()=>{$(),C(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver($),t.observe(n)),()=>{je.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!y)return null;const w=("Checkbox"===r||"Radio"===r)&&(null===n||void 0===n?void 0:n.classList.contains(Ns));return o.createElement(Aa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;jc(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return o.createElement("div",{ref:M(i,n),className:a()(t,r,{"wave-quick":w}),style:x})}))},Rs=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null===e||void 0===e||e.insertBefore(i,null===e||void 0===e?void 0:e.firstChild),Oc(o.createElement(Ps,Object.assign({},t,{target:e})),i)},zs=(e,t,n)=>{const{wave:r}=o.useContext(Be),[,i,a]=ui(),l=ao((o=>{const l=e.current;if((null===r||void 0===r?void 0:r.disabled)||!l)return;const c=l.querySelector(`.${Ns}`)||l,{showEffect:s}=r||{};(s||Rs)(c,{className:t,token:i,component:n,event:o,hashId:a})})),c=o.useRef();return e=>{je.cancel(c.current),c.current=je((()=>{l(e)}))}};const Ts=e=>{const{children:t,disabled:n,component:i}=e,{getPrefixCls:l}=(0,o.useContext)(Be),c=(0,o.useRef)(null),s=l("wave"),[,u]=Is(s),d=zs(c,a()(s,u),i);if(r().useEffect((()=>{const e=c.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!ks(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r().isValidElement(t))return null!==t&&void 0!==t?t:null;return Ka(t,{ref:P(t)?M(t.ref,c):c})},Bs=e=>{const t=r().useContext(es);return r().useMemo((()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:e instanceof Function?e(t):t:t),[e,t])},Hs=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ds=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Ls=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},As=fi("Space",(e=>{const t=xo(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ds(t),Ls(t),Hs(t)]}),(()=>({})),{resetStyle:!1});var Fs=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ws=o.createContext(null),_s=(e,t)=>{const n=o.useContext(Ws),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,l="vertical"===o?"-vertical-":"-";return a()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:r,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},Vs=e=>{let{children:t}=e;return o.createElement(Ws.Provider,{value:null},t)},qs=e=>{var{children:t}=e,n=Fs(e,["children"]);return o.createElement(Ws.Provider,{value:n},t)},Ks=e=>{const{getPrefixCls:t,direction:n}=o.useContext(Be),{size:r,direction:i,block:l,prefixCls:c,className:u,rootClassName:d,children:f}=e,p=Fs(e,["size","direction","block","prefixCls","className","rootClassName","children"]),m=Bs((e=>null!==r&&void 0!==r?r:e)),g=t("space-compact",c),[v,h]=As(g),b=a()(g,h,{[`${g}-rtl`]:"rtl"===n,[`${g}-block`]:l,[`${g}-vertical`]:"vertical"===i},u,d),y=o.useContext(Ws),C=s(f),x=o.useMemo((()=>C.map(((e,t)=>{const n=(null===e||void 0===e?void 0:e.key)||`${g}-item-${t}`;return o.createElement(qs,{key:n,compactSize:m,compactDirection:i,isFirstItem:0===t&&(!y||(null===y||void 0===y?void 0:y.isFirstItem)),isLastItem:t===C.length-1&&(!y||(null===y||void 0===y?void 0:y.isLastItem))},e)}))),[r,C,y]);return 0===C.length?null:v(o.createElement("div",Object.assign({className:b},p),x))};var Xs=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Gs=o.createContext(void 0),Ys=e=>{const{getPrefixCls:t,direction:n}=o.useContext(Be),{prefixCls:r,size:i,className:l}=e,c=Xs(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,u]=ui();let d="";switch(i){case"large":d="lg";break;case"small":d="sm"}const f=a()(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:"rtl"===n},l,u);return o.createElement(Gs.Provider,{value:i},o.createElement("div",Object.assign({},c,{className:f})))},Us=/^[\u4E00-\u9FA5]{2}$/,Qs=Us.test.bind(Us);function Zs(e){return"danger"===e?{danger:!0}:{type:e}}function Js(e){return"string"===typeof e}function eu(e){return"text"===e||"link"===e}function tu(e,t){let n=!1;const o=[];return r().Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r})),r().Children.map(o,(e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&Js(e.type)&&Qs(e.props.children)?Ka(e,{children:e.props.children.split("").join(n)}):Js(e)?Qs(e)?r().createElement("span",null,e.split("").join(n)):r().createElement("span",null,e):Va(e)?r().createElement("span",null,e):e}(e,t)))}const nu=(0,o.forwardRef)(((e,t)=>{const{className:n,style:o,children:i,prefixCls:l}=e,c=a()(`${l}-icon`,n);return r().createElement("span",{ref:t,className:c,style:o},i)})),ou=nu,ru=(0,o.forwardRef)(((e,t)=>{const{prefixCls:n,className:o,style:i,iconClassName:l}=e,c=a()(`${n}-loading-icon`,o);return r().createElement(ou,{prefixCls:n,className:c,style:i,ref:t},r().createElement(Yl,{className:l}))})),iu=()=>({width:0,opacity:0,transform:"scale(0)"}),au=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),lu=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,l=!!n;return o?r().createElement(ru,{prefixCls:t,className:i,style:a}):r().createElement(Aa,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:iu,onAppearActive:au,onEnterStart:iu,onEnterActive:au,onLeaveStart:au,onLeaveActive:iu},((e,n)=>{let{className:o,style:l}=e;return r().createElement(ru,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})}))},cu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),su=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).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}},cu(`${t}-primary`,r),cu(`${t}-danger`,i)]}},uu=Math.round;function du(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let r=0;r<3;r+=1)o[r]=t(o[r]||0,n[r]||"",r);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const fu=(e,t,n)=>0===n?e:e/100;function pu(e,t){const n=t||255;return e>n?n:e<0?0:e}class mu{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(C(this,"isValid",!0),C(this,"r",0),C(this,"g",0),C(this,"b",0),C(this,"a",1),C(this,"_h",void 0),C(this,"_s",void 0),C(this,"_l",void 0),C(this,"_v",void 0),C(this,"_max",void 0),C(this,"_min",void 0),C(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof mu)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=pu(e.r),this.g=pu(e.g),this.b=pu(e.b),this.a="number"===typeof e.a?pu(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:uu(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],i={r:uu(r("r")),g:uu(r("g")),b:uu(r("b")),a:uu(100*r("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>uu((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=uu(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=uu(100*this.getSaturation()),n=uu(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=pu(t,n),o}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:o,a:r}=e;if(this._h=t%360,this._s=n,this._l=o,this.a="number"===typeof r?r:1,n<=0){const e=uu(255*o);this.r=e,this.g=e,this.b=e}let i=0,a=0,l=0;const c=t/60,s=(1-Math.abs(2*o-1))*n,u=s*(1-Math.abs(c%2-1));c>=0&&c<1?(i=s,a=u):c>=1&&c<2?(i=u,a=s):c>=2&&c<3?(a=s,l=u):c>=3&&c<4?(a=u,l=s):c>=4&&c<5?(i=u,l=s):c>=5&&c<6&&(i=s,l=u);const d=o-s/2;this.r=uu(255*(i+d)),this.g=uu(255*(a+d)),this.b=uu(255*(l+d))}fromHsv(e){let{h:t,s:n,v:o,a:r}=e;this._h=t%360,this._s=n,this._v=o,this.a="number"===typeof r?r:1;const i=uu(255*o);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,s=uu(o*(1-n)*255),u=uu(o*(1-n*c)*255),d=uu(o*(1-n*(1-c))*255);switch(l){case 0:this.g=d,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=u;break;case 4:this.r=d,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=du(e,fu);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=du(e,fu);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=du(e,((e,t)=>t.includes("%")?uu(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var gu=["b"],vu=["v"],hu=function(e){return Math.round(Number(e||0))},bu=function(e){se(n,e);var t=me(n);function n(e){return ie(this,n),t.call(this,function(e){if(e instanceof mu)return e;if(e&&"object"===b(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return $($({},Si(t,gu)),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return le(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=hu(100*e.s),n=hu(100*e.b),o=hu(e.h),r=e.a,i="hsb(".concat(o,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(o,", ").concat(t,"%, ").concat(n,"%, ").concat(r.toFixed(0===r?0:2),")");return 1===r?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return $($({},Si(e,vu)),{},{b:t,a:this.a})}}]),n}(mu),yu=function(e){return e instanceof bu?e:new bu(e)},Cu=yu("#1677ff"),xu=function(e){var t=e.offset,n=e.targetRef,o=e.containerRef,r=e.color,i=e.type,a=o.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,d=s.height/2,f=(t.x+u)/l,p=1-(t.y+d)/c,m=r.toHsb(),g=f,v=(t.x+u)/l*360;if(i)switch(i){case"hue":return yu($($({},m),{},{h:v<=0?0:v}));case"alpha":return yu($($({},m),{},{a:g<=0?0:g}))}return yu({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},$u=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}};const wu=function(e){var t=e.color,n=e.prefixCls,o=e.className,i=e.style,l=e.onClick,c="".concat(n,"-color-block");return r().createElement("div",{className:a()(c,o),style:i,onClick:l},r().createElement("div",{className:"".concat(c,"-inner"),style:{background:t}}))};const Su=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,c=e.color,s=e.disabledDrag,u=Ae((0,o.useState)({x:0,y:0}),2),d=u[0],f=u[1],p=(0,o.useRef)(null),m=(0,o.useRef)(null);(0,o.useEffect)((function(){f(l())}),[c]),(0,o.useEffect)((function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}}),[]);var g=function(e){var o=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-o}}(e),a=o.pageX,l=o.pageY,c=n.current.getBoundingClientRect(),s=c.x,u=c.y,f=c.width,p=c.height,m=t.current.getBoundingClientRect(),g=m.width,v=m.height,h=g/2,b=v/2,y=Math.max(0,Math.min(a-s,f))-h,C=Math.max(0,Math.min(l-u,p))-b,x={x:y,y:"x"===r?d.y:C};if(0===g&&0===v||g!==v)return!1;null===i||void 0===i||i(x)},v=function(e){e.preventDefault(),g(e)},h=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,null===a||void 0===a||a()};return[d,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),s||(g(e),document.addEventListener("mousemove",v),document.addEventListener("mouseup",h),document.addEventListener("touchmove",v),document.addEventListener("touchend",h),p.current=v,m.current=h)}]};const Eu=function(e){var t=e.size,n=void 0===t?"default":t,o=e.color,i=e.prefixCls;return r().createElement("div",{className:a()("".concat(i,"-handler"),C({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:o}})};const ku=function(e){var t=e.children,n=e.style,o=e.prefixCls;return r().createElement("div",{className:"".concat(o,"-palette"),style:$({position:"relative"},n)},t)};const Ou=(0,o.forwardRef)((function(e,t){var n=e.children,o=e.x,i=e.y;return r().createElement("div",{ref:t,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}));const Iu=function(e){var t=e.color,n=e.onChange,i=e.prefixCls,a=e.onChangeComplete,l=e.disabled,c=(0,o.useRef)(),s=(0,o.useRef)(),u=(0,o.useRef)(t),d=ao((function(e){var o=xu({offset:e,targetRef:s,containerRef:c,color:t});u.current=o,n(o)})),f=Ae(Su({color:t,containerRef:c,targetRef:s,calculate:function(){return $u(t)},onDragChange:d,onDragChangeComplete:function(){return null===a||void 0===a?void 0:a(u.current)},disabledDrag:l}),2),p=f[0],m=f[1];return r().createElement("div",{ref:c,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},r().createElement(ku,{prefixCls:i},r().createElement(Ou,{x:p.x,y:p.y,ref:s},r().createElement(Eu,{color:t.toRgbString(),prefixCls:i})),r().createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const Nu=function(e,t){var n=Ae(so(e,{value:t}),2),r=n[0],i=n[1];return[(0,o.useMemo)((function(){return yu(r)}),[r]),i]};const Mu=function(e){var t=e.colors,n=e.children,i=e.direction,a=void 0===i?"to right":i,l=e.type,c=e.prefixCls,s=(0,o.useMemo)((function(){return t.map((function(e,n){var o=yu(e);return"alpha"===l&&n===t.length-1&&(o=new bu(o.setA(1))),o.toRgbString()})).join(",")}),[t,l]);return r().createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},n)};const ju=function(e){var t=e.prefixCls,n=e.colors,i=e.disabled,l=e.onChange,c=e.onChangeComplete,s=e.color,u=e.type,d=(0,o.useRef)(),f=(0,o.useRef)(),p=(0,o.useRef)(s),m=function(e){return"hue"===u?e.getHue():100*e.a},g=ao((function(e){var t=xu({offset:e,targetRef:f,containerRef:d,color:s,type:u});p.current=t,l(m(t))})),v=Ae(Su({color:s,targetRef:f,containerRef:d,calculate:function(){return $u(s,u)},onDragChange:g,onDragChangeComplete:function(){c(m(p.current))},direction:"x",disabledDrag:i}),2),h=v[0],b=v[1],y=r().useMemo((function(){if("hue"===u){var e=s.toHsb();return e.s=1,e.b=1,e.a=1,new bu(e)}return s}),[s,u]),C=r().useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return r().createElement("div",{ref:d,className:a()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(u)),onMouseDown:b,onTouchStart:b},r().createElement(ku,{prefixCls:t},r().createElement(Ou,{x:h.x,y:h.y,ref:f},r().createElement(Eu,{size:"small",color:y.toHexString(),prefixCls:t})),r().createElement(Mu,{colors:C,type:u,prefixCls:t})))};var Pu=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Ru=(0,o.forwardRef)((function(e,t){var n=e.value,i=e.defaultValue,c=e.prefixCls,s=void 0===c?"rc-color-picker":c,u=e.onChange,d=e.onChangeComplete,f=e.className,p=e.style,m=e.panelRender,g=e.disabledAlpha,v=void 0!==g&&g,h=e.disabled,b=void 0!==h&&h,y=function(e){return o.useMemo((function(){return[(e||{}).slider||ju]}),[e])}(e.components),x=Ae(y,1)[0],$=Ae(Nu(i||Cu,n),2),w=$[0],S=$[1],E=(0,o.useMemo)((function(){return w.setA(1).toRgbString()}),[w]),k=function(e,t){n||S(e),null===u||void 0===u||u(e,t)},O=function(e){return new bu(w.setHue(e))},I=function(e){return new bu(w.setA(e/100))},N=a()("".concat(s,"-panel"),f,C({},"".concat(s,"-panel-disabled"),b)),M={prefixCls:s,disabled:b,color:w},j=r().createElement(r().Fragment,null,r().createElement(Iu,l({onChange:k},M,{onChangeComplete:d})),r().createElement("div",{className:"".concat(s,"-slider-container")},r().createElement("div",{className:a()("".concat(s,"-slider-group"),C({},"".concat(s,"-slider-group-disabled-alpha"),v))},r().createElement(x,l({},M,{type:"hue",colors:Pu,min:0,max:359,value:w.getHue(),onChange:function(e){k(O(e),{type:"hue",value:e})},onChangeComplete:function(e){d&&d(O(e))}})),!v&&r().createElement(x,l({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:100*w.a,onChange:function(e){k(I(e),{type:"alpha",value:e})},onChangeComplete:function(e){d&&d(I(e))}}))),r().createElement(wu,{color:w.toRgbString(),prefixCls:s})));return r().createElement("div",{className:N,style:p,ref:t},"function"===typeof m?m(j):j)}));const zu=Ru,Tu=(e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let Bu=le((function e(t){var n;if(ie(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map((t=>{let{color:n,percent:o}=t;return{color:new e(n),percent:o}})),this.metaColor=new bu(this.colors[0].color.metaColor)):this.metaColor=new bu(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?Tu(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;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())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)})):this.toHexString()===e.toHexString())}}]);const Hu={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"};const Du=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Hu}))}));var Lu=r().forwardRef((function(e,t){var n=e.prefixCls,o=e.forceRender,i=e.className,l=e.style,c=e.children,s=e.isActive,u=e.role,d=e.classNames,f=e.styles,p=Ae(r().useState(s||o),2),m=p[0],g=p[1];return r().useEffect((function(){(o||s)&&g(!0)}),[o,s]),m?r().createElement("div",{ref:t,className:a()("".concat(n,"-content"),C(C({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:l,role:u},r().createElement("div",{className:a()("".concat(n,"-content-box"),null===d||void 0===d?void 0:d.body),style:null===f||void 0===f?void 0:f.body},c)):null}));Lu.displayName="PanelContent";const Au=Lu;var Fu=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Wu=r().forwardRef((function(e,t){var n=e.showArrow,o=void 0===n||n,i=e.headerClass,c=e.isActive,s=e.onItemClick,u=e.forceRender,d=e.className,f=e.classNames,p=void 0===f?{}:f,m=e.styles,g=void 0===m?{}:m,v=e.prefixCls,h=e.collapsible,b=e.accordion,y=e.panelKey,x=e.extra,$=e.header,w=e.expandIcon,S=e.openMotion,E=e.destroyInactivePanel,k=e.children,O=Si(e,Fu),I="disabled"===h,N="header"===h,M="icon"===h,j=null!==x&&void 0!==x&&"boolean"!==typeof x,P=function(){null===s||void 0===s||s(y)},R="function"===typeof w?w(e):r().createElement("i",{className:"arrow"});R&&(R=r().createElement("div",{className:"".concat(v,"-expand-icon"),onClick:["header","icon"].includes(h)?P:void 0},R));var z=a()(C(C(C({},"".concat(v,"-item"),!0),"".concat(v,"-item-active"),c),"".concat(v,"-item-disabled"),I),d),T={className:a()(i,C(C(C({},"".concat(v,"-header"),!0),"".concat(v,"-header-collapsible-only"),N),"".concat(v,"-icon-collapsible-only"),M),p.header),"aria-expanded":c,"aria-disabled":I,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==zl.ENTER&&e.which!==zl.ENTER||P()},style:g.header};return N||M||(T.onClick=P,T.role=b?"tab":"button",T.tabIndex=I?-1:0),r().createElement("div",l({},O,{ref:t,className:z}),r().createElement("div",T,o&&R,r().createElement("span",{className:"".concat(v,"-header-text"),onClick:"header"===h?P:void 0},$),j&&r().createElement("div",{className:"".concat(v,"-extra")},x)),r().createElement(Aa,l({visible:c,leavedClassName:"".concat(v,"-content-hidden")},S,{forceRender:u,removeOnLeave:E}),(function(e,t){var n=e.className,o=e.style;return r().createElement(Au,{ref:t,prefixCls:v,className:n,classNames:p,style:o,styles:g,isActive:c,forceRender:u,role:b?"tabpanel":void 0},k)})))}));const _u=Wu;var Vu=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];const qu=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,c=t.onItemClick,s=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var f=e.children,p=e.label,m=e.key,g=e.collapsible,v=e.onItemClick,h=e.destroyInactivePanel,b=Si(e,Vu),y=String(null!==m&&void 0!==m?m:t),C=null!==g&&void 0!==g?g:i,x=null!==h&&void 0!==h?h:a,$=!1;return $=o?s[0]===y:s.indexOf(y)>-1,r().createElement(_u,l({},b,{prefixCls:n,key:y,panelKey:y,isActive:$,accordion:o,openMotion:u,expandIcon:d,header:p,collapsible:C,onItemClick:function(e){"disabled"!==C&&(c(e),null===v||void 0===v||v(e))},destroyInactivePanel:x}),f)}))}(e,n):s(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,c=n.onItemClick,s=n.activeKey,u=n.openMotion,d=n.expandIcon,f=e.key||String(t),p=e.props,m=p.header,g=p.headerClass,v=p.destroyInactivePanel,h=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===f:s.indexOf(f)>-1;var C=null!==h&&void 0!==h?h:a,x={key:f,panelKey:f,header:m,headerClass:g,isActive:y,prefixCls:o,destroyInactivePanel:null!==v&&void 0!==v?v:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==C&&(c(e),null===b||void 0===b||b(e))},expandIcon:d,collapsible:C};return"string"===typeof e.type?e:(Object.keys(x).forEach((function(e){"undefined"===typeof x[e]&&delete x[e]})),r().cloneElement(e,x))}(e,t,n)}))};function Ku(e){var t=e;if(!Array.isArray(t)){var n=b(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var Xu=r().forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,c=void 0!==i&&i,s=e.style,u=e.accordion,d=e.className,f=e.children,p=e.collapsible,m=e.openMotion,g=e.expandIcon,v=e.activeKey,b=e.defaultActiveKey,y=e.onChange,C=e.items,x=a()(o,d),$=Ae(so([],{value:v,onChange:function(e){return null===y||void 0===y?void 0:y(e)},defaultValue:b,postState:Ku}),2),w=$[0],S=$[1];h(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=qu(C,f,{prefixCls:o,accordion:u,openMotion:m,expandIcon:g,collapsible:p,destroyInactivePanel:c,onItemClick:function(e){return S((function(){return u?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(Se(w),[e])}))},activeKey:w});return r().createElement("div",l({ref:t,className:x,style:s,role:u?"tablist":void 0},_a(e,{aria:!0,data:!0})),E)}));const Gu=Object.assign(Xu,{Panel:_u}),Yu=Gu;Gu.Panel;const Uu=o.forwardRef(((e,t)=>{const{getPrefixCls:n}=o.useContext(Be),{prefixCls:r,className:i,showArrow:l=!0}=e,c=n("collapse",r),s=a()({[`${c}-no-arrow`]:!l},i);return o.createElement(Yu.Panel,Object.assign({ref:t},e,{prefixCls:c,className:s}))})),Qu=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Zu=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:h,marginSM:b,paddingSM:y,paddingLG:C,paddingXS:x,motionDurationSlow:$,fontSizeIcon:w,contentPadding:S,fontHeight:E,fontHeightLG:k}=e,O=`${Et(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Ro(e)),{backgroundColor:r,border:O,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Et(c)} ${Et(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:v,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:w,transition:`transform ${$}`,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(C).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Et(c)} ${Et(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:b}}}}})}},Ju=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},ed=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},td=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},nd=fi("Collapse",(e=>{const t=xo(e,{collapseHeaderPaddingSM:`${Et(e.paddingXS)} ${Et(e.paddingSM)}`,collapseHeaderPaddingLG:`${Et(e.padding)} ${Et(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Zu(t),ed(t),td(t),Ju(t),Qu(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),od=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=o.useContext(Be),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:p,size:m,expandIconPosition:g="start",children:v,expandIcon:h}=e,b=Bs((e=>{var t;return null!==(t=null!==m&&void 0!==m?m:e)&&void 0!==t?t:"middle"})),y=n("collapse",l),C=n(),[x,$,w]=nd(y);const S=o.useMemo((()=>"left"===g?"start":"right"===g?"end":g),[g]),E=null!==h&&void 0!==h?h:null===i||void 0===i?void 0:i.expandIcon,k=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"===typeof E?E(e):o.createElement(Du,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return Ka(t,(()=>{var e;return{className:a()(null===(e=null===t||void 0===t?void 0:t.props)||void 0===e?void 0:e.className,`${y}-arrow`)}}))}),[E,y]),O=a()(`${y}-icon-position-${S}`,{[`${y}-borderless`]:!f,[`${y}-rtl`]:"rtl"===r,[`${y}-ghost`]:!!p,[`${y}-${b}`]:"middle"!==b},null===i||void 0===i?void 0:i.className,c,u,$,w),I=Object.assign(Object.assign({},Ss(C)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),N=o.useMemo((()=>v?s(v).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props;return Ka(e,Object.assign(Object.assign({},Ce(e.props,["disabled"])),{key:n,collapsible:null!==i&&void 0!==i?i:r?"disabled":void 0}))}return e})):null),[v]);return x(o.createElement(Yu,Object.assign({ref:t,openMotion:I},Ce(e,["rootClassName"]),{expandIcon:k,prefixCls:y,className:O,style:Object.assign(Object.assign({},null===i||void 0===i?void 0:i.style),d)}),N))}));const rd=Object.assign(od,{Panel:Uu}),id=e=>e instanceof Bu?e:new Bu(e),ad=e=>Math.round(Number(e||0)),ld=e=>ad(100*e.toHsb().a),cd=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,id(n)}return n.a=t||1,id(n)},sd=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Se(e),[{percent:100,color:e[e.length-1].color}]);for(let o=0;o<n.length-1;o+=1){const e=n[o].percent,r=n[o+1].percent,i=n[o].color,a=n[o+1].color;if(e<=t&&t<=r){const n=r-e;if(0===n)return i;const o=(t-e)/n*100,l=new bu(i),c=new bu(a);return l.mix(c,o).toRgbString()}}return""},ud=e=>e.map((e=>(e.colors=e.colors.map(id),e))),dd=(e,t)=>{const{r:n,g:o,b:r,a:i}=e.toRgb(),a=new bu(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*o+.114*r>192},fd=e=>{let{label:t}=e;return`panel-${t}`},pd=e=>{let{prefixCls:t,presets:n,value:i,onChange:l}=e;const[c]=Es("ColorPicker"),[,s]=ui(),[u]=so(ud(n),{value:ud(n),postState:ud}),d=`${t}-presets`,f=(0,o.useMemo)((()=>u.reduce(((e,t)=>{const{defaultOpen:n=!0}=t;return n&&e.push(fd(t)),e}),[])),[u]),p=u.map((e=>{var n;return{key:fd(e),label:r().createElement("div",{className:`${d}-label`},null===e||void 0===e?void 0:e.label),children:r().createElement("div",{className:`${d}-items`},Array.isArray(null===e||void 0===e?void 0:e.colors)&&(null===(n=e.colors)||void 0===n?void 0:n.length)>0?e.colors.map(((e,n)=>r().createElement(wu,{key:`preset-${n}-${e.toHexString()}`,color:id(e).toRgbString(),prefixCls:t,className:a()(`${d}-color`,{[`${d}-color-checked`]:e.toHexString()===(null===i||void 0===i?void 0:i.toHexString()),[`${d}-color-bright`]:dd(e,s.colorBgElevated)}),onClick:()=>{return t=e,void(null===l||void 0===l||l(t));var t}}))):r().createElement("span",{className:`${d}-empty`},c.presetEmpty))}}));return r().createElement("div",{className:d},r().createElement(rd,{defaultActiveKey:f,ghost:!0,items:p}))},md=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return xo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},gd=e=>{var t,n,o,r,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:qr(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:qr(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:qr(s),p=dd(new Bu(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},vd=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Et(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-flex"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Bo(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},hd=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),bd=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),yd=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Cd=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),xd=(e,t,n,o,r,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},hd(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),$d=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Cd(e))}),wd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Sd=(e,t,n,o)=>{const r=o&&["link","text"].includes(o)?wd:$d;return Object.assign(Object.assign({},r(e)),hd(e.componentCls,t,n))},Ed=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Sd(e,o,r))}),kd=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Sd(e,o,r))}),Od=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Id=(e,t,n,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Sd(e,n,o))}),Nd=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Sd(e,o,r,n))}),Md=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Ed(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Od(e)),Id(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Nd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),jd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},kd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Od(e)),Id(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Nd(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),xd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Pd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Ed(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),kd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Od(e)),Id(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Nd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Nd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),xd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rd=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:Md(e),[`${t}-color-primary`]:jd(e),[`${t}-color-dangerous`]:Pd(e)}},zd=e=>Object.assign(Object.assign(Object.assign(Object.assign({},kd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Nd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Ed(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Nd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Td=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:r,lineHeight:i,height:o,padding:`${Et(s)} ${Et(l)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:bd(e)},{[`${n}${n}-round${t}`]:yd(e)}]},Bd=e=>{const t=xo(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Td(t,e.componentCls)},Hd=e=>{const t=xo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Td(t,`${e.componentCls}-sm`)},Dd=e=>{const t=xo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Td(t,`${e.componentCls}-lg`)},Ld=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ad=fi("Button",(e=>{const t=md(e);return[vd(t),Bd(t),Hd(t),Dd(t),Ld(t),Rd(t),zd(t),su(t)]}),gd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Fd(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Wd(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function _d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},Fd(e,o,t)),Wd(n,o,t))}}function Vd(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function qd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Vd(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const Kd=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Et(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Et(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Xd=mi(["Button","compact"],(e=>{const t=md(e);return[_d(t),qd(t),Kd(t)]}),gd);var Gd=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Yd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Ud=r().forwardRef(((e,t)=>{var n,i,l,c;const{loading:s=!1,prefixCls:u,color:d,variant:f,type:p,danger:m=!1,shape:g="default",size:v,styles:h,disabled:b,className:y,rootClassName:C,children:x,icon:$,iconPosition:w="start",ghost:S=!1,block:E=!1,htmlType:k="button",classNames:O,style:I={},autoInsertSpace:N}=e,j=Gd(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),P=p||"default",[R,z]=(0,o.useMemo)((()=>{if(d&&f)return[d,f];const e=Yd[P]||[];return m?["danger",e[1]]:e}),[p,d,f,m]),T="danger"===R?"dangerous":R,{getPrefixCls:B,direction:H,button:D}=(0,o.useContext)(Be),L=null===(n=null!==N&&void 0!==N?N:null===D||void 0===D?void 0:D.autoInsertSpace)||void 0===n||n,A=B("btn",u),[F,W,_]=Ad(A),V=(0,o.useContext)(Qc),q=null!==b&&void 0!==b?b:V,K=(0,o.useContext)(Gs),X=(0,o.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(s)),[s]),[G,Y]=(0,o.useState)(X.loading),[U,Q]=(0,o.useState)(!1),Z=(0,o.createRef)(),J=M(t,Z),ee=1===o.Children.count(x)&&!$&&!eu(z);(0,o.useEffect)((()=>{let e=null;return X.delay>0?e=setTimeout((()=>{e=null,Y(!0)}),X.delay):Y(X.loading),function(){e&&(clearTimeout(e),e=null)}}),[X]),(0,o.useEffect)((()=>{if(!J||!J.current||!L)return;const e=J.current.textContent;ee&&Qs(e)?U||Q(!0):U&&Q(!1)}),[J]);const te=r().useCallback((t=>{var n;G||q?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,G,q]);const{compactSize:ne,compactItemClassnames:oe}=_s(A,H),re={large:"lg",small:"sm",middle:void 0},ie=Bs((e=>{var t,n;return null!==(n=null!==(t=null!==v&&void 0!==v?v:ne)&&void 0!==t?t:K)&&void 0!==n?n:e})),ae=ie&&null!==(i=re[ie])&&void 0!==i?i:"",le=G?"loading":$,ce=Ce(j,["navigate"]),se=a()(A,W,_,{[`${A}-${g}`]:"default"!==g&&g,[`${A}-${P}`]:P,[`${A}-dangerous`]:m,[`${A}-color-${T}`]:T,[`${A}-variant-${z}`]:z,[`${A}-${ae}`]:ae,[`${A}-icon-only`]:!x&&0!==x&&!!le,[`${A}-background-ghost`]:S&&!eu(z),[`${A}-loading`]:G,[`${A}-two-chinese-chars`]:U&&L&&!G,[`${A}-block`]:E,[`${A}-rtl`]:"rtl"===H,[`${A}-icon-end`]:"end"===w},oe,y,C,null===D||void 0===D?void 0:D.className),ue=Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),I),de=a()(null===O||void 0===O?void 0:O.icon,null===(l=null===D||void 0===D?void 0:D.classNames)||void 0===l?void 0:l.icon),fe=Object.assign(Object.assign({},(null===h||void 0===h?void 0:h.icon)||{}),(null===(c=null===D||void 0===D?void 0:D.styles)||void 0===c?void 0:c.icon)||{}),pe=$&&!G?r().createElement(ou,{prefixCls:A,className:de,style:fe},$):r().createElement(lu,{existIcon:!!$,prefixCls:A,loading:G}),me=x||0===x?tu(x,ee&&L):null;if(void 0!==ce.href)return F(r().createElement("a",Object.assign({},ce,{className:a()(se,{[`${A}-disabled`]:q}),href:q?void 0:ce.href,style:ue,onClick:te,ref:J,tabIndex:q?-1:0}),pe,me));let ge=r().createElement("button",Object.assign({},j,{type:k,className:se,style:ue,onClick:te,disabled:q,ref:J}),pe,me,!!oe&&r().createElement(Xd,{key:"compact",prefixCls:A}));return eu(z)||(ge=r().createElement(Ts,{component:"Button",disabled:G},ge)),F(ge)})),Qd=Ud;Qd.Group=Ys,Qd.__ANT_BUTTON=!0;const Zd=Qd;function Jd(e){return!!(null===e||void 0===e?void 0:e.then)}const ef=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=o.useRef(!1),p=o.useRef(null),[m,g]=lo(!1),v=function(){null===a||void 0===a||a.apply(void 0,arguments)};o.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return o.createElement(Zd,Object.assign({},Zs(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void v();let t;if(c){if(t=d(e),u&&!Jd(t))return f.current=!1,void v(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!Jd(t))return void v();(e=>{Jd(e)&&(g(!0),e.then((function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null===s||void 0===s?void 0:s()))return Promise.reject(e)})))})(t)},loading:m,prefixCls:r},i,{ref:p}),n)},tf=r().createContext({}),{Provider:nf}=tf,of=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:i,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:s,onConfirm:u}=(0,o.useContext)(tf);return a?r().createElement(ef,{isSilent:i,actionFn:s,close:function(){null===c||void 0===c||c.apply(void 0,arguments),null===u||void 0===u||u(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${l}-btn`},n):null},rf=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:i,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:s,onOk:u}=(0,o.useContext)(tf);return r().createElement(ef,{isSilent:n,type:c||"primary",actionFn:u,close:function(){null===t||void 0===t||t.apply(void 0,arguments),null===s||void 0===s||s(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${a}-btn`},l)};const af=o.createContext(null);var lf,cf=[];function sf(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,r,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Je("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(sl){console.error(sl),o=c,r=s}}document.body.appendChild(n);var f=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ze(t),{width:f,height:p}}function uf(e){return"undefined"===typeof document?0:((e||void 0===lf)&&(lf=sf()),lf.width)}function df(e){return"undefined"!==typeof document&&e&&e instanceof Element?sf(e):{width:0,height:0}}var ff="rc-util-locker-".concat(Date.now()),pf=0;function mf(e){var t=!!e,n=Ae(o.useState((function(){return pf+=1,"".concat(ff,"_").concat(pf)})),1)[0];Rt((function(){if(t){var e=df(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Je("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Ze(n);return function(){Ze(n)}}),[t,n])}var gf=!1;var vf=function(e){return!1!==e&&(We()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},hf=o.forwardRef((function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=Ae(o.useState(n),2),u=s[0],d=s[1],f=u||n;o.useEffect((function(){(l||n)&&d(n)}),[n,l]);var p=Ae(o.useState((function(){return vf(i)})),2),m=p[0],g=p[1];o.useEffect((function(){var e=vf(i);g(null!==e&&void 0!==e?e:null)}));var v=function(e){var t=Ae(o.useState((function(){return We()?document.createElement("div"):null})),1)[0],n=o.useRef(!1),r=o.useContext(af),i=Ae(o.useState(cf),2),a=i[0],l=i[1],c=r||(n.current?void 0:function(e){l((function(t){return[e].concat(Se(t))}))});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Rt((function(){return e?r?r(s):s():u(),u}),[e]),Rt((function(){a.length&&(a.forEach((function(e){return e()})),l(cf))}),[a]),[t,c]}(f&&!m),h=Ae(v,2),b=h[0],y=h[1],C=null!==m&&void 0!==m?m:b;mf(r&&n&&We()&&(C===b||C===document.body));var x=null;c&&P(c)&&t&&(x=c.ref);var $=j(x,t);if(!f||!We()||void 0===m)return null;var S,E=!1===C||("boolean"===typeof S&&(gf=S),gf),k=c;return t&&(k=o.cloneElement(c,{ref:$})),o.createElement(af.Provider,{value:y},E?k:(0,w.createPortal)(k,C))}));const bf=hf;var yf=o.createContext({});var Cf=0;var xf=$({},o).useId;const $f=xf?function(e){var t=xf();return e||t}:function(e){var t=Ae(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=Cf;Cf+=1,r("rc_unique_".concat(e))}),[]),e||n};function wf(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Sf(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var r=e.document;"number"!==typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}const Ef=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var kf={width:0,height:0,overflow:"hidden",outline:"none"},Of={outline:"none"},If=r().forwardRef((function(e,t){var n=e.prefixCls,i=e.className,c=e.style,s=e.title,u=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,h=e.bodyProps,y=e.modalRender,C=e.onMouseDown,x=e.onMouseUp,w=e.holderRef,S=e.visible,E=e.forceRender,k=e.width,O=e.height,I=e.classNames,N=e.styles,M=r().useContext(yf).panel,P=j(w,M),R=(0,o.useRef)(),z=(0,o.useRef)();r().useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=R.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===z.current?R.current.focus({preventScroll:!0}):e||t!==R.current||z.current.focus({preventScroll:!0})}}}));var T={};void 0!==k&&(T.width=k),void 0!==O&&(T.height=O);var B=d?r().createElement("div",{className:a()("".concat(n,"-footer"),null===I||void 0===I?void 0:I.footer),style:$({},null===N||void 0===N?void 0:N.footer)},d):null,H=s?r().createElement("div",{className:a()("".concat(n,"-header"),null===I||void 0===I?void 0:I.header),style:$({},null===N||void 0===N?void 0:N.header)},r().createElement("div",{className:"".concat(n,"-title"),id:u},s)):null,D=(0,o.useMemo)((function(){return"object"===b(f)&&null!==f?f:f?{closeIcon:null!==p&&void 0!==p?p:r().createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[f,p,n]),L=_a(D,!0),A="object"===b(f)&&f.disabled,F=f?r().createElement("button",l({type:"button",onClick:m,"aria-label":"Close"},L,{className:"".concat(n,"-close"),disabled:A}),D.closeIcon):null,W=r().createElement("div",{className:a()("".concat(n,"-content"),null===I||void 0===I?void 0:I.content),style:null===N||void 0===N?void 0:N.content},F,H,r().createElement("div",l({className:a()("".concat(n,"-body"),null===I||void 0===I?void 0:I.body),style:$($({},v),null===N||void 0===N?void 0:N.body)},h),g),B);return r().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?u:null,"aria-modal":"true",ref:P,style:$($({},c),T),className:a()(n,i),onMouseDown:C,onMouseUp:x},r().createElement("div",{ref:R,tabIndex:0,style:Of},r().createElement(Ef,{shouldUpdate:S||E},y?y(W):W)),r().createElement("div",{tabIndex:0,ref:z,style:kf}))}));const Nf=If;var Mf=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,i=e.style,c=e.className,s=e.visible,u=e.forceRender,d=e.destroyOnClose,f=e.motionName,p=e.ariaId,m=e.onVisibleChanged,g=e.mousePosition,v=(0,o.useRef)(),h=Ae(o.useState(),2),b=h[0],y=h[1],C={};function x(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Sf(r),n.top+=Sf(r,!0),n}(v.current);y(g&&(g.x||g.y)?"".concat(g.x-e.left,"px ").concat(g.y-e.top,"px"):"")}return b&&(C.transformOrigin=b),o.createElement(Aa,{visible:s,onVisibleChanged:m,onAppearPrepare:x,onEnterPrepare:x,forceRender:u,motionName:f,removeOnLeave:d,ref:v},(function(s,u){var d=s.className,f=s.style;return o.createElement(Nf,l({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:u,style:$($($({},f),i),C),className:a()(c,d)}))}))}));Mf.displayName="Content";const jf=Mf;const Pf=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,c=e.motionName,s=e.className;return o.createElement(Aa,{key:"mask",visible:r,motionName:c,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var c=e.className,u=e.style;return o.createElement("div",l({ref:r,style:$($({},u),n),className:a()("".concat(t,"-mask"),c,s)},i))}))};const Rf=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,i=e.visible,c=void 0!==i&&i,s=e.keyboard,u=void 0===s||s,d=e.focusTriggerAfterClose,f=void 0===d||d,p=e.wrapStyle,m=e.wrapClassName,g=e.wrapProps,v=e.onClose,h=e.afterOpenChange,b=e.afterClose,y=e.transitionName,C=e.animation,x=e.closable,w=void 0===x||x,S=e.mask,E=void 0===S||S,k=e.maskTransitionName,O=e.maskAnimation,I=e.maskClosable,N=void 0===I||I,M=e.maskStyle,j=e.maskProps,P=e.rootClassName,R=e.classNames,z=e.styles;var T=(0,o.useRef)(),B=(0,o.useRef)(),H=(0,o.useRef)(),D=Ae(o.useState(c),2),L=D[0],A=D[1],F=$f();function W(e){null===v||void 0===v||v(e)}var _=(0,o.useRef)(!1),V=(0,o.useRef)(),q=null;N&&(q=function(e){_.current?_.current=!1:B.current===e.target&&W(e)}),(0,o.useEffect)((function(){c&&(A(!0),_e(B.current,document.activeElement)||(T.current=document.activeElement))}),[c]),(0,o.useEffect)((function(){return function(){clearTimeout(V.current)}}),[]);var K=$($($({zIndex:r},p),null===z||void 0===z?void 0:z.wrapper),{},{display:L?null:"none"});return o.createElement("div",l({className:a()("".concat(n,"-root"),P)},_a(e,{data:!0})),o.createElement(Pf,{prefixCls:n,visible:E&&c,motionName:wf(n,k,O),style:$($({zIndex:r},M),null===z||void 0===z?void 0:z.mask),maskProps:j,className:null===R||void 0===R?void 0:R.mask}),o.createElement("div",l({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===zl.ESC)return e.stopPropagation(),void W(e);c&&e.keyCode===zl.TAB&&H.current.changeActive(!e.shiftKey)},className:a()("".concat(n,"-wrap"),m,null===R||void 0===R?void 0:R.wrapper),ref:B,onClick:q,style:K},g),o.createElement(jf,l({},e,{onMouseDown:function(){clearTimeout(V.current),_.current=!0},onMouseUp:function(){V.current=setTimeout((function(){_.current=!1}))},ref:H,closable:w,ariaId:F,prefixCls:n,visible:c&&L,onClose:W,onVisibleChanged:function(e){if(e)!function(){var e;_e(B.current,document.activeElement)||null===(e=H.current)||void 0===e||e.focus()}();else{if(A(!1),E&&T.current&&f){try{T.current.focus({preventScroll:!0})}catch(sl){}T.current=null}L&&(null===b||void 0===b||b())}null===h||void 0===h||h(e)},motionName:wf(n,y,C)}))))};var zf=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,c=e.afterClose,s=e.panelRef,u=Ae(o.useState(t),2),d=u[0],f=u[1],p=o.useMemo((function(){return{panel:s}}),[s]);return o.useEffect((function(){t&&f(!0)}),[t]),r||!a||d?o.createElement(yf.Provider,{value:p},o.createElement(bf,{open:t||r||d,autoDestroy:!1,getContainer:n,autoLock:t||d},o.createElement(Rf,l({},e,{destroyOnClose:a,afterClose:function(){null===c||void 0===c||c(),f(!1)}})))):null};zf.displayName="Dialog";const Tf=zf;var Bf="RC_FORM_INTERNAL_HOOKS",Hf=function(){h(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Df=o.createContext({getFieldValue:Hf,getFieldsValue:Hf,getFieldError:Hf,getFieldWarning:Hf,getFieldsError:Hf,isFieldsTouched:Hf,isFieldTouched:Hf,isFieldValidating:Hf,isFieldsValidating:Hf,resetFields:Hf,setFields:Hf,setFieldValue:Hf,setFieldsValue:Hf,validateFields:Hf,submit:Hf,getInternalHooks:function(){return Hf(),{dispatch:Hf,initEntityValue:Hf,registerField:Hf,useSubscribe:Hf,setInitialValues:Hf,destroyForm:Hf,setCallbacks:Hf,registerWatch:Hf,getFields:Hf,setValidateMessages:Hf,setPreserve:Hf,getInitialValue:Hf}}});const Lf=o.createContext(null);function Af(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function Ff(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Wf=Ff();function _f(e){var t="function"==typeof Map?new Map:void 0;return _f=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(ul){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(de())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&ce(r,n.prototype),r}(e,arguments,ue(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ce(n,e)},_f(e)}var Vf=/%[sdj%]/g;function qf(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 Kf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(Vf,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Xf(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function Gf(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var l=o;o+=1,l<r?t(e[l],i):n([])}}([])}var Yf=function(e){se(n,e);var t=me(n);function n(e,o){var r;return ie(this,n),C(fe(r=t.call(this,"Async Validation Error")),"errors",void 0),C(fe(r),"fields",void 0),r.errors=e,r.fields=o,r}return le(n)}(_f(Error));function Uf(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Se(e[n]||[]))})),t}(e);Gf(a,n,(function(e){return o(e),e.length?i(new Yf(e,qf(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return o(u),u.length?i(new Yf(u,qf(u))):t(r)};l.length||(o(u),t(r)),l.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?Gf(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Se(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Qf(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(void 0==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"===typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Zf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===b(o)&&"object"===b(e[n])?e[n]=$($({},e[n]),o):e[n]=o}return e}var Jf="enum";const ep=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Xf(t,i||e.type)||o.push(Kf(r.messages.required,e.fullField))};var tp;var np=/^(([^<>()\[\]\\.,;:\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,}))$/,op=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,rp={integer:function(e){return rp.number(e)&&parseInt(e,10)===e},float:function(e){return rp.number(e)&&!rp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(sl){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===b(e)&&!rp.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(np)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(tp)return tp;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return tp=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(op)}};const ip=function(e,t,n,o,r){if(e.required&&void 0===t)ep(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?rp[i](t)||o.push(Kf(r.messages.types[i],e.fullField,e.type)):i&&b(t)!==e.type&&o.push(Kf(r.messages.types[i],e.fullField,e.type))}};const ap={required:ep,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Kf(r.messages.whitespace,e.fullField))},type:ip,range:function(e,t,n,o,r){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,c=t,s=null,u="number"===typeof t,d="string"===typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&o.push(Kf(r.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?o.push(Kf(r.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?o.push(Kf(r.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&o.push(Kf(r.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Jf]=Array.isArray(e[Jf])?e[Jf]:[],-1===e[Jf].indexOf(t)&&o.push(Kf(r.messages[Jf],e.fullField,e[Jf].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Kf(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Kf(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const lp=function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":b(t);ap.required(e,t,o,i,r,a),n(i)};const cp=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t,i)&&!e.required)return n();ap.required(e,t,o,a,r,i),Xf(t,i)||ap.type(e,t,o,a,r)}n(a)},sp={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t,"string")&&!e.required)return n();ap.required(e,t,o,i,r,"string"),Xf(t,"string")||(ap.type(e,t,o,i,r),ap.range(e,t,o,i,r),ap.pattern(e,t,o,i,r),!0===e.whitespace&&ap.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&ap.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&(ap.type(e,t,o,i,r),ap.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&ap.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),Xf(t)||ap.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&(ap.type(e,t,o,i,r),ap.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&(ap.type(e,t,o,i,r),ap.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();ap.required(e,t,o,i,r,"array"),void 0!==t&&null!==t&&(ap.type(e,t,o,i,r),ap.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&ap.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r),void 0!==t&&ap.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t,"string")&&!e.required)return n();ap.required(e,t,o,i,r),Xf(t,"string")||ap.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t,"date")&&!e.required)return n();var a;if(ap.required(e,t,o,i,r),!Xf(t,"date"))a=t instanceof Date?t:new Date(t),ap.type(e,a,o,i,r),a&&ap.range(e,a.getTime(),o,i,r)}n(i)},url:cp,hex:cp,email:cp,required:lp,any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Xf(t)&&!e.required)return n();ap.required(e,t,o,i,r)}n(i)}};var up=function(){function e(t){ie(this,e),C(this,"rules",null),C(this,"_messages",Wf),this.define(t)}return le(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==b(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))}},{key:"messages",value:function(e){return e&&(this._messages=Zf(Ff(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"===typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===Wf&&(a=Ff()),Zf(a,r.messages),r.messages=a}else r.messages=this.messages();var l={};(r.keys||Object.keys(this.rules)).forEach((function(e){var r=n.rules[e],i=o[e];r.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=$({},o)),void 0!==(i=o[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":b(i)))),(a="function"===typeof a?{validator:a}:$({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:o,field:e}))}))}));var c={};return Uf(l,r,(function(t,n){var i,a=t.rule,l=("object"===a.type||"array"===a.type)&&("object"===b(a.fields)||"object"===b(a.defaultField));function s(e,t){return $($({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Se(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Qf(a,o));if(r.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Qf(a,o)):r.error&&(d=[r.error(a,Kf(r.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=$($({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),m.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,Se(d)),e&&e.length&&t.push.apply(t,Se(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(p){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,p),r.suppressValidatorError||setTimeout((function(){throw p}),0),u(p.message)}!0===i?u():!1===i?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Se(e)):t.push(e)}for(var a=0;a<e.length;a++)r(e[a]);t.length?(n=qf(t),i(t,n)):i(null,o)}(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!sp.hasOwnProperty(e.type))throw new Error(Kf("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?sp.required:sp[this.getType(e)]||void 0}}]),e}();C(up,"register",(function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");sp[e]=t})),C(up,"warning",(function(){})),C(up,"messages",Wf),C(up,"validators",sp);var dp="'${name}' is not a valid ${type}",fp={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:dp,method:dp,array:dp,object:dp,number:dp,date:dp,boolean:dp,integer:dp,float:dp,regexp:dp,email:dp,url:dp,hex:dp},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}"}},pp=up;function mp(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var gp="CODE_LOGIC_ERROR";function vp(e,t,n,o,r){return hp.apply(this,arguments)}function hp(){return hp=yc(hc().mark((function e(t,n,r,i,a){var l,c,s,u,d,f,p,m,g;return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=$({},r)).ruleIndex,pp.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(gp)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new pp(C({},t,[l])),d=ho(fp,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(C({},t,n),$({},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===gp?d.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return vp("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Se(e),Se(t))}),[]));case 23:return m=$($({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=f.map((function(e){return"string"===typeof e?mp(e,m):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),hp.apply(this,arguments)}function bp(e,t,n,o,r,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,o=$($({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){h(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));r=i&&"function"===typeof i.then&&"function"===typeof i.catch,h(r,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n===!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=yc(hc().mark((function e(n,r){var a,s,u;return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,vp(l,t,s,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return vp(l,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Cp.apply(this,arguments)}(s):function(e){return yp.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function yp(){return(yp=yc(hc().mark((function e(t){return hc().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,Se(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cp(){return(Cp=yc(hc().mark((function e(t){var n;return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xp(e){return Af(e)}function $p(e,t){var n={};return t.forEach((function(t){var o=fo(e,t);n=mo(n,t,o)})),n}function wp(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Sp(t,e,n)}))}function Sp(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Ep(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===b(t.target)&&e in t.target?t.target[e]:t}function kp(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Se(e.slice(0,n)),[r],Se(e.slice(n,t)),Se(e.slice(t+1,o))):i<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[r],Se(e.slice(n+1,o))):e}var Op=["name"],Ip=[];function Np(e,t,n,o,r,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var Mp=function(e){se(n,e);var t=me(n);function n(e){var r;(ie(this,n),C(fe(r=t.call(this,e)),"state",{resetCount:0}),C(fe(r),"cancelRegisterFunc",null),C(fe(r),"mounted",!1),C(fe(r),"touched",!1),C(fe(r),"dirty",!1),C(fe(r),"validatePromise",void 0),C(fe(r),"prevValidating",void 0),C(fe(r),"errors",Ip),C(fe(r),"warnings",Ip),C(fe(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,xp(o)),r.cancelRegisterFunc=null})),C(fe(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Se(void 0===n?[]:n),Se(t)):[]})),C(fe(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(o):e}))})),C(fe(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),C(fe(r),"metaCache",null),C(fe(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=$($({},r.getMeta()),{},{destroy:e});et(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),C(fe(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),p=t&&wp(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||et(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Ip,r.warnings=Ip,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Ip,r.warnings=Ip,r.triggerMetaEvent(),null===c||void 0===c||c(),void r.refresh();break;case"remove":if(i&&Np(i,e,s,d,f,n))return void r.reRender();break;case"setField":var m=n.data;if(p)return"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||Ip),"warnings"in m&&(r.warnings=m.warnings||Ip),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&wp(t,u,!0))return void r.reRender();if(i&&!u.length&&Np(i,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(xp).some((function(e){return wp(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&Np(i,e,s,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),C(fe(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(yc(hc().mark((function o(){var a,l,s,u,d,f,p;return hc().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Af(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===c){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=bp(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ip;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?Ip:r;t?o.push.apply(o,Se(i)):n.push.apply(n,Se(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return l||(r.validatePromise=c,r.dirty=!0,r.errors=Ip,r.warnings=Ip,r.triggerMetaEvent(),r.reRender()),c})),C(fe(r),"isFieldValidating",(function(){return!!r.validatePromise})),C(fe(r),"isFieldTouched",(function(){return r.touched})),C(fe(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Bf).getInitialValue)(r.getNamePath())})),C(fe(r),"getErrors",(function(){return r.errors})),C(fe(r),"getWarnings",(function(){return r.warnings})),C(fe(r),"isListField",(function(){return r.props.isListField})),C(fe(r),"isList",(function(){return r.props.isList})),C(fe(r),"isPreserve",(function(){return r.props.preserve})),C(fe(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),C(fe(r),"getOnlyChild",(function(e){if("function"===typeof e){var t=r.getMeta();return $($({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=s(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),C(fe(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return fo(e||t(!0),n)})),C(fe(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(Bf).dispatch,v=r.getValue(),h=s||function(e){return C({},c,e)},b=e[o],y=void 0!==n?h(v):{};var x=$($({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Ep.apply(void 0,[c].concat(n)),l&&(e=l(e,v,m(!0))),g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},Af(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Bf).initEntityValue)(fe(r));return r}return le(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(Bf).registerField;this.cancelRegisterFunc=o(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):(h(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);C(Mp,"contextType",Df),C(Mp,"defaultProps",{trigger:"onChange",valuePropName:"value"});const jp=function(e){var t=e.name,n=Si(e,Op),r=o.useContext(Df),i=o.useContext(Lf),a=void 0!==t?xp(t):void 0,c="keep";return n.isListField||(c="_".concat((a||[]).join("_"))),o.createElement(Mp,l({key:c,name:a,isListField:!!i},n,{fieldContext:r}))};const Pp=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=o.useContext(Df),s=o.useContext(Lf),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=xp(c.prefixName)||[];return[].concat(Se(e),Se(xp(t)))}),[c.prefixName,t]),f=o.useMemo((function(){return $($({},c),{},{prefixName:d})}),[c,d]),p=o.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!==typeof r?(h(!1,"Form.List only accepts function as children."),null):o.createElement(Lf.Provider,{value:p},o.createElement(Df.Provider,{value:f},o.createElement(jp,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!==l&&void 0!==l?l:!!s},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Se(u.keys.slice(0,t)),[u.id],Se(u.keys.slice(t))),i([].concat(Se(n.slice(0,t)),[e],Se(n.slice(t))))):(u.keys=[].concat(Se(u.keys),[u.id]),i([].concat(Se(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=kp(u.keys,e,t),i(kp(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var Rp="__@field_split__";function zp(e){return e.map((function(e){return"".concat(b(e),":").concat(e)})).join(Rp)}var Tp=function(){function e(){ie(this,e),C(this,"kvs",new Map)}return le(e,[{key:"set",value:function(e,t){this.kvs.set(zp(e),t)}},{key:"get",value:function(e){return this.kvs.get(zp(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(zp(e))}},{key:"map",value:function(e){return Se(this.kvs.entries()).map((function(t){var n=Ae(t,2),o=n[0],r=n[1],i=o.split(Rp);return e({key:i.map((function(e){var t=Ae(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}();const Bp=Tp;var Hp=["name"],Dp=le((function e(t){var n=this;ie(this,e),C(this,"formHooked",!1),C(this,"forceRootUpdate",void 0),C(this,"subscribable",!0),C(this,"store",{}),C(this,"fieldEntities",[]),C(this,"initialValues",{}),C(this,"callbacks",{}),C(this,"validateMessages",null),C(this,"preserve",null),C(this,"lastValidatePromise",null),C(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}})),C(this,"getInternalHooks",(function(e){return e===Bf?(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}):(h(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),C(this,"useSubscribe",(function(e){n.subscribable=e})),C(this,"prevWithoutPreserves",null),C(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=ho(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=mo(r,n,fo(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),C(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Bp;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),C(this,"getInitialValue",(function(e){var t=fo(n.initialValues,e);return e.length?ho(t):t})),C(this,"setCallbacks",(function(e){n.callbacks=e})),C(this,"setValidateMessages",(function(e){n.validateMessages=e})),C(this,"setPreserve",(function(e){n.preserve=e})),C(this,"watchList",[]),C(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),C(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),C(this,"timeoutId",null),C(this,"warningUnhooked",(function(){0})),C(this,"updateStore",(function(e){n.store=e})),C(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),C(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Bp;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),C(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=xp(e);return t.get(n)||{INVALIDATE_NAME_PATH:xp(e)}}))})),C(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===b(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&l.push(s)}else l.push(s)})),$p(n.store,l.map(xp))})),C(this,"getFieldValue",(function(e){n.warningUnhooked();var t=xp(e);return fo(n.store,t)})),C(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:xp(e[n]),errors:[],warnings:[]}}))})),C(this,"getFieldError",(function(e){n.warningUnhooked();var t=xp(e);return n.getFieldsError([t])[0].errors})),C(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=xp(e);return n.getFieldsError([t])[0].warnings})),C(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],l=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(xp),l=!1):(r=null,l=i):(r=i.map(xp),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!r)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Bp;r.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Se(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),C(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),C(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(xp);return t.some((function(e){var t=e.getNamePath();return wp(o,t)&&e.isFieldValidating()}))})),C(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),C(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Bp,o=n.getFieldEntities(!0);o.forEach((function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}}));var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,Se(Se(o).map((function(e){return e.entity}))))}))):r=o,r.forEach((function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))h(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)h(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(mo(n.store,r,Se(i)[0].value))}}}}))})),C(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(ho(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(xp);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(mo(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),C(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=Si(e,Hp),a=xp(r);o.push(a),"value"in i&&n.updateStore(mo(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),C(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=$($({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),C(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===fo(n.store,o)&&n.updateStore(mo(n.store,o,t))}})),C(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),C(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Sp(e.getNamePath(),t)}))){var l=n.store;n.updateStore(mo(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),C(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),C(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=$($({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),C(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Se(o))}),o})),C(this,"updateValue",(function(e,t){var o=xp(e),r=n.store;n.updateStore(mo(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a($p(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Se(i)))})),C(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=ho(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),C(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),C(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new Bp;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=xp(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),C(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new Bp;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return wp(e,n)}));a.length&&o(a,r)}})),C(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(xp):[],l=[],c=String(Date.now()),s=new Set,u=r||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||wp(a,t,d)){var o=e.validateRules($({validateMessages:$($({},fp),n.validateMessages)},r));l.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Se(n)):o.push.apply(o,Se(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var p=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(l);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(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(g),m})),C(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(o){console.error(o)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const Lp=function(e){var t=o.useRef(),n=Ae(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Dp((function(){n({})}));t.current=r.getForm()}return[t.current]};var Ap=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Fp=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(Ap),l=o.useRef({});return o.createElement(Ap.Provider,{value:$($({},a),{},{validateMessages:$($({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=$($({},l.current),{},C({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=$({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const Wp=Ap;var _p=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Vp=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,c=e.preserve,s=e.children,u=e.component,d=void 0===u?"form":u,f=e.validateMessages,p=e.validateTrigger,m=void 0===p?"onChange":p,g=e.onValuesChange,v=e.onFieldsChange,h=e.onFinish,y=e.onFinishFailed,C=e.clearOnDestroy,x=Si(e,_p),w=o.useRef(null),S=o.useContext(Wp),E=Ae(Lp(a),1)[0],k=E.getInternalHooks(Bf),O=k.useSubscribe,I=k.setInitialValues,N=k.setCallbacks,M=k.setValidateMessages,j=k.setPreserve,P=k.destroyForm;o.useImperativeHandle(t,(function(){return $($({},E),{},{nativeElement:w.current})})),o.useEffect((function(){return S.registerForm(n,E),function(){S.unregisterForm(n)}}),[S,E,n]),M($($({},S.validateMessages),f)),N({onValuesChange:g,onFieldsChange:function(e){if(S.triggerFormChange(n,e),v){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];v.apply(void 0,[e].concat(o))}},onFinish:function(e){S.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:y}),j(c);var R,z=o.useRef(null);I(r,!z.current),z.current||(z.current=!0),o.useEffect((function(){return function(){return P(C)}}),[]);var T="function"===typeof s;T?R=s(E.getFieldsValue(!0),E):R=s;O(!T);var B=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==b(e)||"object"!==b(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Se(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"===typeof o&&"function"===typeof r||o===r}))})(B.current||[],i||[])||E.setFields(i||[]),B.current=i}),[i,E]);var H=o.useMemo((function(){return $($({},E),{},{validateTrigger:m})}),[E,m]),D=o.createElement(Lf.Provider,{value:null},o.createElement(Df.Provider,{value:H},R));return!1===d?D:o.createElement(d,l({},x,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),D)};function qp(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var Kp=function(){};const Xp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=Ae((0,o.useState)(),2),u=s[0],d=s[1],f=(0,o.useMemo)((function(){return qp(u)}),[u]),p=(0,o.useRef)(f);p.current=f;var m=(0,o.useContext)(Df),g=c||m,v=g&&g._init,h=xp(r),b=(0,o.useRef)(h);return b.current=h,Kp(h),(0,o.useEffect)((function(){if(v){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(Bf).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"===typeof r?r(n):fo(n,b.current)},o=t((function(e,t){var o=n(e,t),r=qp(o);p.current!==r&&(p.current=r,d(o))})),i=n(e(),e(!0));return u!==i&&d(i),o}}),[v]),u};var Gp=o.forwardRef(Vp);Gp.FormProvider=Fp,Gp.Field=jp,Gp.List=Pp,Gp.useForm=Lp,Gp.useWatch=Xp;const Yp=Gp,Up=o.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Qp=o.createContext(null),Zp=e=>{const t=Ce(e,["prefixCls"]);return o.createElement(Fp,Object.assign({},t))},Jp=o.createContext({prefixCls:""}),em=o.createContext({});const tm=e=>{let{children:t,status:n,override:r}=e;const i=(0,o.useContext)(em),a=(0,o.useMemo)((()=>{const e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,i]);return o.createElement(em.Provider,{value:a},t)},nm=(0,o.createContext)(void 0),om=e=>{const{space:t,form:n,children:o}=e;if(void 0===o||null===o)return null;let i=o;return n&&(i=r().createElement(tm,{override:!0,status:!0},i)),t&&(i=r().createElement(Vs,null,i)),i};function rm(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function im(e){const{closable:t,closeIcon:n}=e||{};return r().useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!==typeof n&&null!==n?n:void 0};return t&&"object"===typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function am(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const lm={};function cm(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lm;const o=im(e),i=im(t),a="boolean"!==typeof o&&!!(null===o||void 0===o?void 0:o.disabled),l=r().useMemo((()=>Object.assign({closeIcon:r().createElement(qi,null)},n)),[n]),c=r().useMemo((()=>!1!==o&&(o?am(l,i,o):!1!==i&&(i?am(l,i):!!l.closable&&l))),[o,i,l]);return r().useMemo((()=>{if(!1===c)return[!1,null,a];const{closeIconRender:e}=l,{closeIcon:t}=c;let n=t;if(null!==n&&void 0!==n){e&&(n=e(t));const o=_a(c,!0);Object.keys(o).length&&(n=r().isValidElement(n)?r().cloneElement(n,o):r().createElement("span",Object.assign({},o),n))}return[!0,n,a]}),[c,l])}const sm=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:l}=e,c=a()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),s=a()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=o.useMemo((()=>"number"===typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return o.createElement("span",{className:a()(t,c,s,n),style:Object.assign(Object.assign({},u),r)})},um=new Yn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),dm=e=>({height:e,lineHeight:Et(e)}),fm=e=>Object.assign({width:e},dm(e)),pm=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:um,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),mm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},dm(e)),gm=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},fm(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},fm(r)),[`${t}${t}-sm`]:Object.assign({},fm(i))}},vm=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},mm(t,l)),[`${o}-lg`]:Object.assign({},mm(r,l)),[`${o}-sm`]:Object.assign({},mm(i,l))}},hm=e=>Object.assign({width:e},dm(e)),bm=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:o,borderRadius:r},hm(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},hm(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ym=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},Cm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},dm(e)),xm=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(o).mul(2).equal(),minWidth:l(o).mul(2).equal()},Cm(o,l))},ym(e,o,n)),{[`${n}-lg`]:Object.assign({},Cm(r,l))}),ym(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Cm(i,l))}),ym(e,i,`${n}-sm`))},$m=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:h,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},fm(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},fm(s)),[`${n}-sm`]:Object.assign({},fm(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:d,borderRadius:v,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:p,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},xm(e)),gm(e)),vm(e)),bm(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},pm(e))}}},wm=fi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=xo(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[$m(o)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Sm=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:l="circle",size:c="default"}=e,{getPrefixCls:s}=o.useContext(Be),u=s("skeleton",t),[d,f,p]=wm(u),m=Ce(e,["prefixCls","className"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i},n,r,f,p);return d(o.createElement("div",{className:g},o.createElement(sm,Object.assign({prefixCls:`${u}-avatar`,shape:l,size:c},m))))},Em=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:l=!1,size:c="default"}=e,{getPrefixCls:s}=o.useContext(Be),u=s("skeleton",t),[d,f,p]=wm(u),m=Ce(e,["prefixCls"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:l},n,r,f,p);return d(o.createElement("div",{className:g},o.createElement(sm,Object.assign({prefixCls:`${u}-button`,size:c},m))))},km=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:l}=e,{getPrefixCls:c}=o.useContext(Be),s=c("skeleton",t),[u,d,f]=wm(s),p=a()(s,`${s}-element`,{[`${s}-active`]:l},n,r,d,f);return u(o.createElement("div",{className:p},o.createElement("div",{className:a()(`${s}-image`,n),style:i},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},o.createElement("title",null,"Image placeholder"),o.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},Om=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:l,size:c="default"}=e,{getPrefixCls:s}=o.useContext(Be),u=s("skeleton",t),[d,f,p]=wm(u),m=Ce(e,["prefixCls"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:l},n,r,f,p);return d(o.createElement("div",{className:g},o.createElement(sm,Object.assign({prefixCls:`${u}-input`,size:c},m))))},Im=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:l,children:c}=e,{getPrefixCls:s}=o.useContext(Be),u=s("skeleton",t),[d,f,p]=wm(u),m=a()(u,`${u}-element`,{[`${u}-active`]:l},f,n,r,p);return d(o.createElement("div",{className:m},o.createElement("div",{className:a()(`${u}-image`,n),style:i},c)))},Nm=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},Mm=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,l=Se(new Array(i)).map(((t,n)=>o.createElement("li",{key:n,style:{width:Nm(n,e)}})));return o.createElement("ul",{className:a()(t,n),style:r},l)},jm=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:a()(t,n),style:Object.assign({width:r},i)})};function Pm(e){return e&&"object"===typeof e?e:{}}const Rm=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:l,children:c,avatar:s=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:g,skeleton:v}=o.useContext(Be),h=m("skeleton",t),[b,y,C]=wm(h);if(n||!("loading"in e)){const e=!!s,t=!!u,n=!!d;let c,m;if(e){const e=Object.assign(Object.assign({prefixCls:`${h}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Pm(s));c=o.createElement("div",{className:`${h}-header`},o.createElement(sm,Object.assign({},e)))}if(t||n){let r,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${h}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Pm(u));r=o.createElement(jm,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Pm(d));i=o.createElement(Mm,Object.assign({},n))}m=o.createElement("div",{className:`${h}-content`},r,i)}const x=a()(h,{[`${h}-with-avatar`]:e,[`${h}-active`]:f,[`${h}-rtl`]:"rtl"===g,[`${h}-round`]:p},null===v||void 0===v?void 0:v.className,r,i,y,C);return b(o.createElement("div",{className:x,style:Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),l)},c,m))}return null!==c&&void 0!==c?c:null};Rm.Button=Em,Rm.Avatar=Sm,Rm.Input=Om,Rm.Image=km,Rm.Node=Im;const zm=Rm;function Tm(){}const Bm=o.createContext({add:Tm,remove:Tm});function Hm(e){const t=o.useContext(Bm),n=o.useRef();return ao((o=>{if(o){const r=e?o.querySelector(e):o;t.add(r),n.current=r}else t.remove(n.current)}))}const Dm=Bm,Lm=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,o.useContext)(tf);return r().createElement(Zd,Object.assign({onClick:n},e),t)},Am=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:i,onOk:a}=(0,o.useContext)(tf);return r().createElement(Zd,Object.assign({},Zs(n),{loading:e,onClick:a},t),i)};function Fm(e,t){return r().createElement("span",{className:`${e}-close-x`},t||r().createElement(qi,{className:`${e}-close-icon`}))}const Wm=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=Es("Modal",Vc()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:t||(null===d||void 0===d?void 0:d.okText),cancelTextLocale:o||(null===d||void 0===d?void 0:d.cancelText),okType:n,onOk:a,onCancel:l},p=r().useMemo((()=>f),Se(Object.values(f)));let m;return"function"===typeof u||"undefined"===typeof u?(m=r().createElement(r().Fragment,null,r().createElement(Lm,null),r().createElement(Am,null)),"function"===typeof u&&(m=u(m,{OkBtn:Am,CancelBtn:Lm})),m=r().createElement(nf,{value:p},m)):m=u,r().createElement(Uc,{disabled:!1},m)},_m=e=>({animationDuration:e,animationFillMode:"both"}),Vm=e=>({animationDuration:e,animationFillMode:"both"}),qm=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},_m(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},Vm(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Km=new Yn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Xm=new Yn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Gm=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[qm(o,Km,Xm,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Ym=new Yn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Um=new Yn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Qm=new Yn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zm=new Yn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Jm=new Yn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),eg=new Yn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),tg=new Yn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ng=new Yn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),og=new Yn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),rg=new Yn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ig=new Yn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ag=new Yn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),lg={zoom:{inKeyframes:Ym,outKeyframes:Um},"zoom-big":{inKeyframes:Qm,outKeyframes:Zm},"zoom-big-fast":{inKeyframes:Qm,outKeyframes:Zm},"zoom-left":{inKeyframes:tg,outKeyframes:ng},"zoom-right":{inKeyframes:og,outKeyframes:rg},"zoom-up":{inKeyframes:Jm,outKeyframes:eg},"zoom-down":{inKeyframes:ig,outKeyframes:ag}},cg=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=lg[t];return[qm(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function sg(e){return{position:e,inset:0}}const ug=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},sg("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},sg("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Gm(e)}]},dg=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Et(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ro(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Et(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Et(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Bo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Et(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},fg=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pg=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return xo(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},mg=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Et(e.paddingMD)} ${Et(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Et(e.padding)} ${Et(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Et(e.paddingXS)} ${Et(e.padding)}`:0,footerBorderTop:e.wireframe?`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Et(2*e.padding)} ${Et(2*e.padding)} ${Et(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),gg=fi("Modal",(e=>{const t=pg(e);return[dg(t),fg(t),ug(t),cg(t,"zoom")]}),mg,{unitless:{titleLineHeight:!0}});var vg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let hg;const bg=e=>{hg={x:e.pageX,y:e.pageY},setTimeout((()=>{hg=null}),100)};We()&&window.document.documentElement&&document.documentElement.addEventListener("click",bg,!0);const yg=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:l}=o.useContext(Be),c=t=>{const{onCancel:n}=e;null===n||void 0===n||n(t)};const{prefixCls:s,className:u,rootClassName:d,open:f,wrapClassName:p,centered:m,getContainer:g,focusTriggerAfterClose:v=!0,style:h,visible:b,width:y=520,footer:C,classNames:x,styles:$,children:w,loading:S}=e,E=vg(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),k=r("modal",s),O=r(),I=bl(k),[N,M,j]=gg(k,I),P=a()(p,{[`${k}-centered`]:!!m,[`${k}-wrap-rtl`]:"rtl"===i}),R=null===C||S?null:o.createElement(Wm,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null===n||void 0===n||n(t)},onCancel:c})),[z,T,B]=cm(rm(e),rm(l),{closable:!0,closeIcon:o.createElement(qi,{className:`${k}-close-icon`}),closeIconRender:e=>Fm(k,e)}),H=Hm(`.${k}-content`),[D,L]=tc("Modal",E.zIndex);return N(o.createElement(om,{form:!0,space:!0},o.createElement(Ul.Provider,{value:L},o.createElement(Tf,Object.assign({width:y},E,{zIndex:D,getContainer:void 0===g?n:g,prefixCls:k,rootClassName:a()(M,d,j,I),footer:R,visible:null!==f&&void 0!==f?f:b,mousePosition:null!==(t=E.mousePosition)&&void 0!==t?t:hg,onClose:c,closable:z?{disabled:B,closeIcon:T}:z,closeIcon:T,focusTriggerAfterClose:v,transitionName:ws(O,"zoom",e.transitionName),maskTransitionName:ws(O,"fade",e.maskTransitionName),className:a()(M,u,null===l||void 0===l?void 0:l.className),style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),h),classNames:Object.assign(Object.assign(Object.assign({},null===l||void 0===l?void 0:l.classNames),x),{wrapper:a()(P,null===x||void 0===x?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.styles),$),panelRef:H}),S?o.createElement(zm,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):w))))},Cg=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Et(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},xg=mi(["Modal","confirm"],(e=>{const t=pg(e);return[Cg(t)]}),mg,{order:-1e3});var $g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function wg(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:l,type:c,okCancel:s,footer:u,locale:d}=e,f=$g(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let p=n;if(!n&&null!==n)switch(c){case"info":p=o.createElement(Yi,null);break;case"success":p=o.createElement(Fi,null);break;case"error":p=o.createElement(_i,null);break;default:p=o.createElement(Xi,null)}const m=null!==s&&void 0!==s?s:"confirm"===c,g=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[v]=Es("Modal"),h=d||v,b=r||(m?null===h||void 0===h?void 0:h.okText:null===h||void 0===h?void 0:h.justOkText),y=i||(null===h||void 0===h?void 0:h.cancelText),C=Object.assign({autoFocusButton:g,cancelTextLocale:y,okTextLocale:b,mergedOkCancel:m},f),x=o.useMemo((()=>C),Se(Object.values(C))),$=o.createElement(o.Fragment,null,o.createElement(of,null),o.createElement(rf,null)),w=void 0!==e.title&&null!==e.title,S=`${l}-body`;return o.createElement("div",{className:`${l}-body-wrapper`},o.createElement("div",{className:a()(S,{[`${S}-has-title`]:w})},p,o.createElement("div",{className:`${l}-paragraph`},w&&o.createElement("span",{className:`${l}-title`},e.title),o.createElement("div",{className:`${l}-content`},e.content))),void 0===u||"function"===typeof u?o.createElement(nf,{value:x},o.createElement("div",{className:`${l}-btns`},"function"===typeof u?u($,{OkBtn:rf,CancelBtn:of}):$)):u,o.createElement(xg,{prefixCls:t}))}const Sg=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:l,centered:c,getContainer:s,maskStyle:u,direction:d,prefixCls:f,wrapClassName:p,rootPrefixCls:m,bodyStyle:g,closable:v=!1,closeIcon:h,modalRender:b,focusTriggerAfterClose:y,onConfirm:C,styles:x}=e;const $=`${f}-confirm`,w=e.width||416,S=e.style||{},E=void 0===e.mask||e.mask,k=void 0!==e.maskClosable&&e.maskClosable,O=a()($,`${$}-${e.type}`,{[`${$}-rtl`]:"rtl"===d},e.className),[,I]=ui(),N=o.useMemo((()=>void 0!==n?n:I.zIndexPopupBase+Zl),[n,I]);return o.createElement(yg,{prefixCls:f,className:O,wrapClassName:a()({[`${$}-centered`]:!!e.centered},p),onCancel:()=>{null===t||void 0===t||t({triggerCancel:!0}),null===C||void 0===C||C(!1)},open:i,title:"",footer:null,transitionName:ws(m||"","zoom",e.transitionName),maskTransitionName:ws(m||"","fade",e.maskTransitionName),mask:E,maskClosable:k,style:S,styles:Object.assign({body:g,mask:u},x),width:w,zIndex:N,afterClose:r,keyboard:l,centered:c,getContainer:s,closable:v,closeIcon:h,modalRender:b,focusTriggerAfterClose:y},o.createElement(wg,Object.assign({},e,{confirmPrefixCls:$})))};const Eg=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(bs,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(Sg,Object.assign({},e)))},kg=[];let Og="";function Ig(){return Og}const Ng=e=>{var t,n;const{prefixCls:i,getContainer:a,direction:l}=e,c=Vc(),s=(0,o.useContext)(Be),u=Ig()||s.getPrefixCls(),d=i||`${u}-modal`;let f=a;return!1===f&&(f=void 0),r().createElement(Eg,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!==l&&void 0!==l?l:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:f}))};function Mg(e){const t=gs();const n=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a;r.some((e=>null===e||void 0===e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(Se(r.slice(1)))));for(let e=0;e<kg.length;e++){if(kg[e]===c){kg.splice(e,1);break}}jc(n)}function l(e){clearTimeout(o),o=setTimeout((()=>{const o=t.getPrefixCls(void 0,Ig()),i=t.getIconPrefixCls(),a=t.getTheme(),l=r().createElement(Ng,Object.assign({},e));Oc(r().createElement(bs,{prefixCls:o,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(l):l),n)}))}function c(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),kg.push(c),{destroy:c,update:function(e){i="function"===typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function jg(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Pg(e){return Object.assign(Object.assign({},e),{type:"info"})}function Rg(e){return Object.assign(Object.assign({},e),{type:"success"})}function zg(e){return Object.assign(Object.assign({},e),{type:"error"})}function Tg(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var Bg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hg=o.forwardRef(((e,t)=>{var n,{afterClose:r,config:i}=e,a=Bg(e,["afterClose","config"]);const[l,c]=o.useState(!0),[s,u]=o.useState(i),{direction:d,getPrefixCls:f}=o.useContext(Be),p=f("modal"),m=f(),g=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r;n.some((e=>null===e||void 0===e?void 0:e.triggerCancel))&&(null===(e=s.onCancel)||void 0===e||(r=e).call.apply(r,[s,()=>{}].concat(Se(n.slice(1)))))};o.useImperativeHandle(t,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const v=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[h]=Es("Modal",Ac.Modal);return o.createElement(Eg,Object.assign({prefixCls:p,rootPrefixCls:m},s,{close:g,open:l,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(v?null===h||void 0===h?void 0:h.okText:null===h||void 0===h?void 0:h.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null===h||void 0===h?void 0:h.cancelText)},a))}));let Dg=0;const Lg=o.memo(o.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=o.useState([]);return[e,o.useCallback((e=>(t((t=>[].concat(Se(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return o.useImperativeHandle(t,(()=>({patchElement:r})),[]),o.createElement(o.Fragment,null,n)})));const Ag=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect((()=>{if(t.length){Se(t).forEach((e=>{e()})),n([])}}),[t]);const r=o.useCallback((t=>function(r){var i;Dg+=1;const a=o.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const d=o.createElement(Hg,{key:`modal-${Dg}`,config:t(r),ref:a,afterClose:()=>{null===s||void 0===s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&kg.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Se(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Se(e),[t])))},then:e=>(u=!0,c.then(e))};return f}),[]);return[o.useMemo((()=>({info:r(Pg),success:r(Rg),error:r(zg),warning:r(jg),confirm:r(Tg)})),[]),o.createElement(Lg,{key:"modal-holder",ref:e})]},Fg=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,r=`${t}-notice`,i=new Yn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Yn("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}}),l=new Yn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Yn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[r]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[r]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},Wg=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_g={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Vg=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},qg=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Kg=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Vg(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},qg(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Wg.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[_g[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},Xg=e=>{const{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:h,lineHeight:b,width:y,notificationIconSize:C,colorText:x}=e,$=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:o,[$]:{padding:p,width:y,maxWidth:`calc(100vw - ${Et(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${$}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:h,color:x},[`${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:r},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:h},[`${$}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${$}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Bo(e)),[`${$}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Et(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}}},Gg=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:r,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Yn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ro(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:r,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Xg(e))}}]},Yg=e=>({zIndexPopup:e.zIndexPopupBase+Zl+50,width:384}),Ug=e=>{const t=e.paddingMD,n=e.paddingLG;return xo(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Et(e.paddingMD)} ${Et(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Qg=fi("Notification",(e=>{const t=Ug(e);return[Gg(t),Fg(t),Kg(t)]}),Yg),Zg=mi(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=Ug(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Xg(n)),{width:n.width,maxWidth:`calc(100vw - ${Et(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Yg);var Jg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};o.createElement(Yi,null),o.createElement(Fi,null),o.createElement(_i,null),o.createElement(Xi,null),o.createElement(Yl,null);function ev(e,t){return null===t||!1===t?null:t||o.createElement(qi,{className:`${e}-close-icon`})}const tv={success:Fi,info:Yi,error:_i,warning:Xi},nv=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:l,btn:c,role:s="alert"}=e;let u=null;return n?u=o.createElement("span",{className:`${t}-icon`},n):r&&(u=o.createElement(tv[r]||null,{className:a()(`${t}-icon`,`${t}-icon-${r}`)})),o.createElement("div",{className:a()({[`${t}-with-icon`]:u}),role:s},u,o.createElement("div",{className:`${t}-message`},i),o.createElement("div",{className:`${t}-description`},l),c&&o.createElement("div",{className:`${t}-btn`},c))},ov=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:l,description:c,btn:s,closable:u=!0,closeIcon:d,className:f}=e,p=Jg(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=o.useContext(Be),g=t||m("notification"),v=`${g}-notice`,h=bl(g),[b,y,C]=Qg(g,h);return b(o.createElement("div",{className:a()(`${v}-pure-panel`,y,n,C,h)},o.createElement(Zg,{prefixCls:g}),o.createElement(Bl,Object.assign({},p,{prefixCls:g,eventKey:"pure",duration:null,closable:u,className:a()({notificationClassName:f}),closeIcon:ev(g,d),content:o.createElement(nv,{prefixCls:v,icon:r,type:i,message:l,description:c,btn:s})}))))};var rv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const iv=e=>{let{children:t,prefixCls:n}=e;const o=bl(n),[i,l,c]=Qg(n,o);return i(r().createElement(Dl,{classNames:{list:a()(l,c,o)}},t))},av=(e,t)=>{let{prefixCls:n,key:o}=t;return r().createElement(iv,{prefixCls:n,key:o},e)},lv=r().forwardRef(((e,t)=>{const{top:n,bottom:i,prefixCls:l,getContainer:c,maxCount:s,rtl:u,onAllRemoved:d,stack:f,duration:p,pauseOnHover:m=!0,showProgress:g}=e,{getPrefixCls:v,getPopupContainer:h,notification:b,direction:y}=(0,o.useContext)(Be),[,C]=ui(),x=l||v("notification"),[$,w]=Xl({prefixCls:x,style:e=>function(e,t,n){let o;switch(e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}(e,null!==n&&void 0!==n?n:24,null!==i&&void 0!==i?i:24),className:()=>a()({[`${x}-rtl`]:null!==u&&void 0!==u?u:"rtl"===y}),motion:()=>function(e){return{motionName:`${e}-fade`}}(x),closable:!0,closeIcon:ev(x),duration:null!==p&&void 0!==p?p:4.5,getContainer:()=>(null===c||void 0===c?void 0:c())||(null===h||void 0===h?void 0:h())||document.body,maxCount:s,pauseOnHover:m,showProgress:g,onAllRemoved:d,renderNotifications:av,stack:!1!==f&&{threshold:"object"===typeof f?null===f||void 0===f?void 0:f.threshold:void 0,offset:8,gap:C.margin}});return r().useImperativeHandle(t,(()=>Object.assign(Object.assign({},$),{prefixCls:x,notification:b}))),w}));function cv(e){const t=r().useRef(null),n=(Pl("Notification"),r().useMemo((()=>{const n=n=>{var o;if(!t.current)return;const{open:i,prefixCls:l,notification:c}=t.current,s=`${l}-notice`,{message:u,description:d,icon:f,type:p,btn:m,className:g,style:v,role:h="alert",closeIcon:b,closable:y}=n,C=rv(n,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),x=ev(s,"undefined"!==typeof b?b:null===c||void 0===c?void 0:c.closeIcon);return i(Object.assign(Object.assign({placement:null!==(o=null===e||void 0===e?void 0:e.placement)&&void 0!==o?o:"topRight"},C),{content:r().createElement(nv,{prefixCls:s,icon:f,type:p,message:u,description:d,btn:m,role:h}),className:a()(p&&`${s}-${p}`,g,null===c||void 0===c?void 0:c.className),style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),v),closeIcon:x,closable:null!==y&&void 0!==y?y:!!x}))},o={open:n,destroy:e=>{var n,o;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(o=t.current)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[n,r().createElement(lv,Object.assign({key:"notification-holder"},e,{ref:t}))]}function sv(e){return cv(e)}const uv=r().createContext({}),dv=r().createContext({message:{},notification:{},modal:{}}),fv=fi("App",(e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}}),(()=>({}))),pv=e=>{const{prefixCls:t,children:n,className:i,rootClassName:l,message:c,notification:s,style:u,component:d="div"}=e,{direction:f,getPrefixCls:p}=(0,o.useContext)(Be),m=p("app",t),[g,v,h]=fv(m),b=a()(v,m,i,l,h,{[`${m}-rtl`]:"rtl"===f}),y=(0,o.useContext)(uv),C=r().useMemo((()=>({message:Object.assign(Object.assign({},y.message),c),notification:Object.assign(Object.assign({},y.notification),s)})),[c,s,y.message,y.notification]),[x,$]=vc(C.message),[w,S]=sv(C.notification),[E,k]=Ag(),O=r().useMemo((()=>({message:x,notification:w,modal:E})),[x,w,E]);Pl("App")(!(h&&!1===d),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const I=!1===d?r().Fragment:d,N={className:b,style:u};return g(r().createElement(dv.Provider,{value:O},r().createElement(uv.Provider,{value:C},r().createElement(I,Object.assign({},!1===d?void 0:N),k,$,S,n))))};pv.useApp=()=>r().useContext(dv);const mv=pv;function gv(e){return t=>o.createElement(bs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}const vv=(e,t,n,r)=>gv((i=>{const{prefixCls:a,style:l}=i,c=o.useRef(null),[s,u]=o.useState(0),[d,f]=o.useState(0),[p,m]=so(!1,{value:i.open}),{getPrefixCls:g}=o.useContext(Be),v=g(t||"select",a);o.useEffect((()=>{if(m(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var o;const r=n?`.${n(v)}`:`.${v}-dropdown`,i=null===(o=c.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let h=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});r&&(h=r(h));const b={paddingBottom:s,position:"relative",minWidth:d};return o.createElement("div",{ref:c,style:b},o.createElement(e,Object.assign({},h)))})),hv=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};const bv=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,l=e.onMouseDown,c=e.onClick,s="function"===typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null===l||void 0===l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==s?s:o.createElement("span",{className:a()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var yv=o.createContext(null);function Cv(){return o.useContext(yv)}function xv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var $v=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wv=void 0;var Sv=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,c=e.renderItem,s=e.responsive,u=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,p=e.className,m=e.style,g=e.children,v=e.display,h=e.order,b=e.component,y=void 0===b?"div":b,C=Si(e,$v),x=s&&!v;function w(e){d(f,e)}o.useEffect((function(){return function(){w(null)}}),[]);var S,E=c&&i!==wv?c(i):g;r||(S={opacity:x?0:1,height:x?0:wv,overflowY:x?"hidden":wv,order:s?h:wv,pointerEvents:x?"none":wv,position:x?"absolute":wv});var k={};x&&(k["aria-hidden"]=!0);var O=o.createElement(y,l({className:a()(!r&&n,p),style:$($({},S),m)},k,C,{ref:t}),E);return s&&(O=o.createElement(ye,{onResize:function(e){w(e.offsetWidth)},disabled:u},O)),O}));Sv.displayName="Item";const Ev=Sv;function kv(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)je(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,w.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function Ov(e,t){var n=Ae(o.useState(t),2),r=n[0],i=n[1];return[r,ao((function(t){e((function(){i(t)}))}))]}var Iv=r().createContext(null),Nv=["component"],Mv=["className"],jv=["className"],Pv=o.forwardRef((function(e,t){var n=o.useContext(Iv);if(!n){var r=e.component,i=void 0===r?"div":r,c=Si(e,Nv);return o.createElement(i,l({},c,{ref:t}))}var s=n.className,u=Si(n,Mv),d=e.className,f=Si(e,jv);return o.createElement(Iv.Provider,{value:null},o.createElement(Ev,l({ref:t,className:a()(s,d)},u,f)))}));Pv.displayName="RawItem";const Rv=Pv;var zv=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Tv="responsive",Bv="invalidate";function Hv(e){return"+ ".concat(e.length," ...")}var Dv=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,i=e.data,c=void 0===i?[]:i,s=e.renderItem,u=e.renderRawItem,d=e.itemKey,f=e.itemWidth,p=void 0===f?10:f,m=e.ssr,g=e.style,v=e.className,h=e.maxCount,b=e.renderRest,y=e.renderRawRest,C=e.suffix,x=e.component,w=void 0===x?"div":x,S=e.itemComponent,E=e.onVisibleChange,k=Si(e,zv),O="full"===m,I=kv(),N=Ae(Ov(I,null),2),M=N[0],j=N[1],P=M||0,R=Ae(Ov(I,new Map),2),z=R[0],T=R[1],B=Ae(Ov(I,0),2),H=B[0],D=B[1],L=Ae(Ov(I,0),2),A=L[0],F=L[1],W=Ae(Ov(I,0),2),_=W[0],V=W[1],q=Ae((0,o.useState)(null),2),K=q[0],X=q[1],G=Ae((0,o.useState)(null),2),Y=G[0],U=G[1],Q=o.useMemo((function(){return null===Y&&O?Number.MAX_SAFE_INTEGER:Y||0}),[Y,M]),Z=Ae((0,o.useState)(!1),2),J=Z[0],ee=Z[1],te="".concat(r,"-item"),ne=Math.max(H,A),oe=h===Tv,re=c.length&&oe,ie=h===Bv,ae=re||"number"===typeof h&&c.length>h,le=(0,o.useMemo)((function(){var e=c;return re?e=null===M&&O?c:c.slice(0,Math.min(c.length,P/p)):"number"===typeof h&&(e=c.slice(0,h)),e}),[c,p,M,h,re]),ce=(0,o.useMemo)((function(){return re?c.slice(Q+1):c.slice(le.length)}),[c,le,re,Q]),se=(0,o.useCallback)((function(e,t){var n;return"function"===typeof d?d(e):null!==(n=d&&(null===e||void 0===e?void 0:e[d]))&&void 0!==n?n:t}),[d]),ue=(0,o.useCallback)(s||function(e){return e},[s]);function de(e,t,n){(Y!==e||void 0!==t&&t!==K)&&(U(e),n||(ee(e<c.length-1),null===E||void 0===E||E(e)),void 0!==t&&X(t))}function fe(e,t){T((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function pe(e){return z.get(se(le[e],e))}Rt((function(){if(P&&"number"===typeof ne&&le){var e=_,t=le.length,n=t-1;if(!t)return void de(0,null);for(var o=0;o<t;o+=1){var r=pe(o);if(O&&(r=r||0),void 0===r){de(o-1,void 0,!0);break}if(e+=r,0===n&&e<=P||o===n-1&&e+pe(n)<=P){de(n,null);break}if(e+ne>P){de(o-1,e-r-_+A);break}}C&&pe(0)+_>P&&X(null)}}),[P,z,A,_,se,le]);var me=J&&!!ce.length,ge={};null!==K&&re&&(ge={position:"absolute",left:K,top:0});var ve,he={prefixCls:te,responsive:re,component:S,invalidate:ie},be=u?function(e,t){var n=se(e,t);return o.createElement(Iv.Provider,{key:n,value:$($({},he),{},{order:t,item:e,itemKey:n,registerSize:fe,display:t<=Q})},u(e,t))}:function(e,t){var n=se(e,t);return o.createElement(Ev,l({},he,{order:t,key:n,item:e,renderItem:ue,itemKey:n,registerSize:fe,display:t<=Q}))},Ce={order:me?Q:Number.MAX_SAFE_INTEGER,className:"".concat(te,"-rest"),registerSize:function(e,t){F(t),D(A)},display:me};if(y)y&&(ve=o.createElement(Iv.Provider,{value:$($({},he),Ce)},y(ce)));else{var xe=b||Hv;ve=o.createElement(Ev,l({},he,Ce),"function"===typeof xe?xe(ce):xe)}var $e=o.createElement(w,l({className:a()(!ie&&r,v),style:g,ref:t},k),le.map(be),ae?ve:null,C&&o.createElement(Ev,l({},he,{responsive:oe,responsiveDisabled:!re,order:Q,className:"".concat(te,"-suffix"),registerSize:function(e,t){V(t)},display:!0,style:ge}),C));return oe&&($e=o.createElement(ye,{onResize:function(e,t){j(t.clientWidth)},disabled:!re},$e)),$e}));Dv.displayName="Overflow",Dv.Item=Rv,Dv.RESPONSIVE=Tv,Dv.INVALIDATE=Bv;const Lv=Dv;var Av=o.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,d=e.autoComplete,f=e.editable,p=e.activeDescendantId,m=e.value,g=e.maxLength,v=e.onKeyDown,h=e.onMouseDown,b=e.onChange,y=e.onPaste,C=e.onCompositionStart,x=e.onCompositionEnd,w=e.open,S=e.attrs,E=l||o.createElement("input",null),k=E,O=k.ref,I=k.props,N=I.onKeyDown,j=I.onChange,P=I.onMouseDown,R=I.onCompositionStart,z=I.onCompositionEnd,T=I.style;return E.props,E=o.cloneElement(E,$($($({type:"search"},I),{},{id:i,ref:M(t,O),disabled:c,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:a()("".concat(r,"-selection-search-input"),null===(n=E)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?p:void 0},S),{},{value:f?m:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:$($({},T),{},{opacity:f?null:0}),onKeyDown:function(e){v(e),N&&N(e)},onMouseDown:function(e){h(e),P&&P(e)},onChange:function(e){b(e),j&&j(e)},onCompositionStart:function(e){C(e),R&&R(e)},onCompositionEnd:function(e){x(e),z&&z(e)},onPaste:y}))}));const Fv=Av;function Wv(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var _v="undefined"!==typeof window&&window.document&&window.document.documentElement;function Vv(e){return["string","number"].includes(b(e))}function qv(e){var t=void 0;return e&&(Vv(e.title)?t=e.title.toString():Vv(e.label)&&(t=e.label.toString())),t}function Kv(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Xv=function(e){e.preventDefault(),e.stopPropagation()};const Gv=function(e){var t,n,r=e.id,i=e.prefixCls,l=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,p=e.disabled,m=e.mode,g=e.showSearch,v=e.autoFocus,h=e.autoComplete,b=e.activeDescendantId,y=e.tabIndex,x=e.removeIcon,$=e.maxTagCount,w=e.maxTagTextLength,S=e.maxTagPlaceholder,E=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=e.tagRender,O=e.onToggleOpen,I=e.onRemove,N=e.onInputChange,M=e.onInputPaste,j=e.onInputKeyDown,P=e.onInputMouseDown,R=e.onInputCompositionStart,z=e.onInputCompositionEnd,T=o.useRef(null),B=Ae((0,o.useState)(0),2),H=B[0],D=B[1],L=Ae((0,o.useState)(!1),2),A=L[0],F=L[1],W="".concat(i,"-selection"),_=c||"multiple"===m&&!1===u||"tags"===m?s:"",V="tags"===m||"multiple"===m&&!1===u||g&&(c||A);t=function(){D(T.current.scrollWidth)},n=[_],_v?o.useLayoutEffect(t,n):o.useEffect(t,n);var q=function(e,t,n,r,i){return o.createElement("span",{title:qv(e),className:a()("".concat(W,"-item"),C({},"".concat(W,"-item-disabled"),n))},o.createElement("span",{className:"".concat(W,"-item-content")},t),r&&o.createElement(bv,{className:"".concat(W,"-item-remove"),onMouseDown:Xv,onClick:i,customizeIcon:x},"\xd7"))},K=function(e,t,n,r,i,a){return o.createElement("span",{onMouseDown:function(e){Xv(e),O(!c)}},k({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!a}))},X=o.createElement("div",{className:"".concat(W,"-search"),style:{width:H},onFocus:function(){F(!0)},onBlur:function(){F(!1)}},o.createElement(Fv,{ref:d,open:c,prefixCls:i,id:r,inputElement:null,disabled:p,autoFocus:v,autoComplete:h,editable:V,activeDescendantId:b,value:_,onKeyDown:j,onMouseDown:P,onChange:N,onPaste:M,onCompositionStart:R,onCompositionEnd:z,tabIndex:y,attrs:_a(e,!0)}),o.createElement("span",{ref:T,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},_,"\xa0")),G=o.createElement(Lv,{prefixCls:"".concat(W,"-overflow"),data:l,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!p&&!t,i=n;if("number"===typeof w&&("string"===typeof n||"number"===typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),I(e)};return"function"===typeof k?K(o,i,t,r,l):q(e,i,t,r,l)},renderRest:function(e){var t="function"===typeof E?E(e):E;return"function"===typeof k?K(void 0,t,!1,!1,void 0,!0):q({title:t},t,!1)},suffix:X,itemKey:Kv,maxCount:$});return o.createElement(o.Fragment,null,G,!l.length&&!_&&o.createElement("span",{className:"".concat(W,"-placeholder")},f))};const Yv=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,g=e.showSearch,v=e.searchValue,h=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,C=e.onInputMouseDown,x=e.onInputChange,$=e.onInputPaste,w=e.onInputCompositionStart,S=e.onInputCompositionEnd,E=e.title,k=Ae(o.useState(!1),2),O=k[0],I=k[1],N="combobox"===u,M=N||g,j=f[0],P=v||"";N&&h&&!O&&(P=h),o.useEffect((function(){N&&I(!1)}),[N,h]);var R=!("combobox"!==u&&!d&&!g)&&!!P,z=void 0===E?qv(j):E,T=o.useMemo((function(){return j?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:R?{visibility:"hidden"}:void 0},p)}),[j,R,p,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(Fv,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:M,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:C,onChange:function(e){I(!0),x(e)},onPaste:$,onCompositionStart:w,onCompositionEnd:S,tabIndex:m,attrs:_a(e,!0),maxLength:N?b:void 0})),!N&&j?o.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:R?{visibility:"hidden"}:void 0},j.label):null,T)};var Uv=o.forwardRef((function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,v=e.onInputKeyDown,h=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var b=Ae(xv(0),2),y=b[0],C=b[1],x=(0,o.useRef)(null),$=function(e){!1!==p(e,!0,r.current)&&g(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==zl.UP&&n!==zl.DOWN||e.preventDefault(),v&&v(e),n!==zl.ENTER||"tags"!==c||r.current||a||null===m||void 0===m||m(e.target.value),t=n,[zl.ESC,zl.SHIFT,zl.BACKSPACE,zl.TAB,zl.WIN_KEY,zl.ALT,zl.META,zl.WIN_KEY_RIGHT,zl.CTRL,zl.SEMICOLON,zl.EQUALS,zl.CAPS_LOCK,zl.CONTEXT_MENU,zl.F1,zl.F2,zl.F3,zl.F4,zl.F5,zl.F6,zl.F7,zl.F8,zl.F9,zl.F10,zl.F11,zl.F12].includes(t)||g(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,$(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");x.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&$(e.target.value)}},S="multiple"===c||"tags"===c?o.createElement(Gv,l({},e,w)):o.createElement(Yv,l({},e,w));return o.createElement("div",{ref:h,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&t)&&a||(a&&!1!==f&&p("",!0,!1),g())}},S)}));const Qv=Uv;function Zv(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,l=r||{},c=l.className,s=l.content,u=i.x,d=void 0===u?0:u,f=i.y,p=void 0===f?0:f,m=o.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],h=n.points[1],b=v[0],y=v[1],C=h[0],x=h[1];b!==C&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=p,y!==x&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=d}return o.createElement("div",{ref:m,className:a()("".concat(t,"-arrow"),c),style:g},s)}function Jv(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,c=e.motion;return i?o.createElement(Aa,l({},c,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:a()("".concat(t,"-mask"),n)})})):null}var eh=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));const th=eh;var nh=o.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,c=e.style,s=e.target,u=e.onVisibleChanged,d=e.open,f=e.keepDom,p=e.fresh,m=e.onClick,g=e.mask,v=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,C=e.maskMotion,x=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,E=e.portal,k=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,N=e.onPointerEnter,j=e.ready,P=e.offsetX,R=e.offsetY,z=e.offsetR,T=e.offsetB,B=e.onAlign,H=e.onPrepare,D=e.stretch,L=e.targetWidth,A=e.targetHeight,F="function"===typeof n?n():n,W=d||f,_=(null===w||void 0===w?void 0:w.length)>0,V=Ae(o.useState(!w||!_),2),q=V[0],K=V[1];if(Rt((function(){!q&&_&&s&&K(!0)}),[q,_,s]),!q)return null;var X="auto",G={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(j||!d){var Y,U=b.points,Q=b.dynamicInset||(null===(Y=b._experimental)||void 0===Y?void 0:Y.dynamicInset),Z=Q&&"r"===U[0][1],J=Q&&"b"===U[0][0];Z?(G.right=z,G.left=X):(G.left=P,G.right=X),J?(G.bottom=T,G.top=X):(G.top=R,G.bottom=X)}var ee={};return D&&(D.includes("height")&&A?ee.height=A:D.includes("minHeight")&&A&&(ee.minHeight=A),D.includes("width")&&L?ee.width=L:D.includes("minWidth")&&L&&(ee.minWidth=L)),d||(ee.pointerEvents="none"),o.createElement(E,{open:x||W,getContainer:w&&function(){return w(s)},autoDestroy:S},o.createElement(Jv,{prefixCls:i,open:d,zIndex:k,mask:g,motion:C}),o.createElement(ye,{onResize:B,disabled:!d},(function(e){return o.createElement(Aa,l({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null===y||void 0===y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),u(e)}}),(function(n,l){var s=n.className,u=n.style,f=a()(i,s,r);return o.createElement("div",{ref:M(e,t,l),className:f,style:$($($($({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),ee),u),{},{boxSizing:"border-box",zIndex:k},c),onMouseEnter:O,onMouseLeave:I,onPointerEnter:N,onClick:m},v&&o.createElement(Zv,{prefixCls:i,arrow:v,arrowPos:h,align:b}),o.createElement(th,{cache:!d&&!p},F))}))})))}));const oh=nh;var rh=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=P(n),a=o.useCallback((function(e){N(t,r?r(e):e)}),[r]),l=j(a,n.ref);return i?o.cloneElement(n,{ref:l}):n}));const ih=rh;const ah=o.createContext(null);function lh(e){return e?Array.isArray(e)?e:[e]:[]}function ch(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function sh(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function uh(e){return e.ownerDocument.defaultView}function dh(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=uh(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function fh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ph(e){return fh(parseFloat(e),0)}function mh(e,t){var n=$({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=uh(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ph(i),g=ph(a),v=ph(l),h=ph(c),b=fh(Math.round(s.width/f*1e3)/1e3),y=fh(Math.round(s.height/u*1e3)/1e3),C=(f-p-v-h)*b,x=(u-d-m-g)*y,$=m*y,w=g*y,S=v*b,E=h*b,k=0,O=0;if("clip"===o){var I=ph(r);k=I*b,O=I*y}var N=s.x+S-k,M=s.y+$-O,j=N+s.width+2*k-S-E-C,P=M+s.height+2*O-$-w-x;n.left=Math.max(n.left,N),n.top=Math.max(n.top,M),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,P)}})),n}function gh(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function vh(e,t){var n=Ae(t||[],2),o=n[0],r=n[1];return[gh(e.width,o),gh(e.height,r)]}function hh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function bh(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function yh(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var Ch=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const xh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bf,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,m=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,v=t.mouseEnterDelay,h=t.mouseLeaveDelay,b=void 0===h?.1:h,y=t.focusDelay,C=t.blurDelay,x=t.mask,w=t.maskClosable,S=void 0===w||w,k=t.getPopupContainer,O=t.forceRender,I=t.autoDestroy,N=t.destroyPopupOnHide,M=t.popup,j=t.popupClassName,P=t.popupStyle,R=t.popupPlacement,z=t.builtinPlacements,T=void 0===z?{}:z,B=t.popupAlign,H=t.zIndex,D=t.stretch,L=t.getPopupClassNameFromAlign,A=t.fresh,F=t.alignPoint,W=t.onPopupClick,_=t.onPopupAlign,V=t.arrow,q=t.popupMotion,K=t.maskMotion,X=t.popupTransitionName,G=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,Q=t.className,Z=t.getTriggerDOMNode,J=Si(t,Ch),ee=I||N||!1,te=Ae(o.useState(!1),2),ne=te[0],oe=te[1];Rt((function(){oe(hv())}),[]);var re=o.useRef({}),ie=o.useContext(ah),ae=o.useMemo((function(){return{registerSubPopup:function(e,t){re.current[e]=t,null===ie||void 0===ie||ie.registerSubPopup(e,t)}}}),[ie]),le=$f(),ce=Ae(o.useState(null),2),se=ce[0],ue=ce[1],de=o.useRef(null),fe=ao((function(e){de.current=e,E(e)&&se!==e&&ue(e),null===ie||void 0===ie||ie.registerSubPopup(le,e)})),pe=Ae(o.useState(null),2),me=pe[0],ge=pe[1],ve=o.useRef(null),he=ao((function(e){E(e)&&me!==e&&(ge(e),ve.current=e)})),be=o.Children.only(l),Ce=(null===be||void 0===be?void 0:be.props)||{},xe={},$e=ao((function(e){var t,n,o=me;return(null===o||void 0===o?void 0:o.contains(e))||(null===(t=Oi(o))||void 0===t?void 0:t.host)===e||e===o||(null===se||void 0===se?void 0:se.contains(e))||(null===(n=Oi(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(re.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),we=sh(i,q,G,X),Ee=sh(i,K,U,Y),ke=Ae(o.useState(p||!1),2),Oe=ke[0],Ie=ke[1],Ne=null!==f&&void 0!==f?f:Oe,Me=ao((function(e){void 0===f&&Ie(e)}));Rt((function(){Ie(f||!1)}),[f]);var je=o.useRef(Ne);je.current=Ne;var Pe=o.useRef([]);Pe.current=[];var Re=ao((function(e){var t;Me(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Ne)!==e&&(Pe.current.push(e),null===m||void 0===m||m(e))})),ze=o.useRef(),Te=function(){clearTimeout(ze.current)},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Re(e):ze.current=setTimeout((function(){Re(e)}),1e3*t)};o.useEffect((function(){return Te}),[]);var He=Ae(o.useState(!1),2),De=He[0],Le=He[1];Rt((function(e){e&&!Ne||Le(!0)}),[Ne]);var Fe=Ae(o.useState(null),2),We=Fe[0],_e=Fe[1],Ve=Ae(o.useState(null),2),qe=Ve[0],Ke=Ve[1],Xe=function(e){Ke([e.clientX,e.clientY])},Ge=function(e,t,n,r,i,a,l){var c=Ae(o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),s=c[0],u=c[1],d=o.useRef(0),f=o.useMemo((function(){return t?dh(t):[]}),[t]),p=o.useRef({});e||(p.current={});var m=ao((function(){if(t&&n&&e){var o,c,s,d,m,g=t,v=g.ownerDocument,h=uh(g).getComputedStyle(g),b=h.width,y=h.height,C=h.position,x=g.style.left,w=g.style.top,S=g.style.right,k=g.style.bottom,O=g.style.overflow,I=$($({},i[r]),a),N=v.createElement("div");if(null===(o=g.parentElement)||void 0===o||o.appendChild(N),N.style.left="".concat(g.offsetLeft,"px"),N.style.top="".concat(g.offsetTop,"px"),N.style.position=C,N.style.height="".concat(g.offsetHeight,"px"),N.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var M,j,P=n.getBoundingClientRect();P.x=null!==(M=P.x)&&void 0!==M?M:P.left,P.y=null!==(j=P.y)&&void 0!==j?j:P.top,m={x:P.x,y:P.y,width:P.width,height:P.height}}var R=g.getBoundingClientRect();R.x=null!==(c=R.x)&&void 0!==c?c:R.left,R.y=null!==(s=R.y)&&void 0!==s?s:R.top;var z=v.documentElement,T=z.clientWidth,B=z.clientHeight,H=z.scrollWidth,D=z.scrollHeight,L=z.scrollTop,A=z.scrollLeft,F=R.height,W=R.width,_=m.height,V=m.width,q={left:0,top:0,right:T,bottom:B},K={left:-A,top:-L,right:H-A,bottom:D-L},X=I.htmlRegion,G="visible",Y="visibleFirst";"scroll"!==X&&X!==Y&&(X=G);var U=X===Y,Q=mh(K,f),Z=mh(q,f),J=X===G?Z:Q,ee=U?Z:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=x,g.style.top=w,g.style.right=S,g.style.bottom=k,g.style.overflow=O,null===(d=g.parentElement)||void 0===d||d.removeChild(N);var ne=fh(Math.round(W/parseFloat(b)*1e3)/1e3),oe=fh(Math.round(F/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||E(n)&&!ks(n))return;var re=I.offset,ie=I.targetOffset,ae=Ae(vh(R,re),2),le=ae[0],ce=ae[1],se=Ae(vh(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=Ae(I.points||[],2),pe=fe[0],me=hh(fe[1]),ge=hh(pe),ve=bh(m,me),he=bh(R,ge),be=$({},I),ye=ve.x-he.x+le,Ce=ve.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,o=R.x+e,r=R.y+t,i=o+W,a=r+F,l=Math.max(o,n.left),c=Math.max(r,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var xe,$e,we,Se,Ee=mt(ye,Ce),ke=mt(ye,Ce,Z),Oe=bh(m,["t","l"]),Ie=bh(R,["t","l"]),Ne=bh(m,["b","r"]),Me=bh(R,["b","r"]),je=I.overflow||{},Pe=je.adjustX,Re=je.adjustY,ze=je.shiftX,Te=je.shiftY,Be=function(e){return"boolean"===typeof e?e:e>=0};function gt(){xe=R.y+Ce,$e=xe+F,we=R.x+ye,Se=we+W}gt();var He=Be(Re),De=ge[0]===me[0];if(He&&"t"===ge[0]&&($e>ee.bottom||p.current.bt)){var Le=Ce;De?Le-=F-_:Le=Oe.y-Me.y-ce;var Fe=mt(ye,Le),We=mt(ye,Le,Z);Fe>Ee||Fe===Ee&&(!U||We>=ke)?(p.current.bt=!0,Ce=Le,ce=-ce,be.points=[yh(ge,0),yh(me,0)]):p.current.bt=!1}if(He&&"b"===ge[0]&&(xe<ee.top||p.current.tb)){var _e=Ce;De?_e+=F-_:_e=Ne.y-Ie.y-ce;var Ve=mt(ye,_e),qe=mt(ye,_e,Z);Ve>Ee||Ve===Ee&&(!U||qe>=ke)?(p.current.tb=!0,Ce=_e,ce=-ce,be.points=[yh(ge,0),yh(me,0)]):p.current.tb=!1}var Ke=Be(Pe),Xe=ge[1]===me[1];if(Ke&&"l"===ge[1]&&(Se>ee.right||p.current.rl)){var Ge=ye;Xe?Ge-=W-V:Ge=Oe.x-Me.x-le;var Ye=mt(Ge,Ce),Ue=mt(Ge,Ce,Z);Ye>Ee||Ye===Ee&&(!U||Ue>=ke)?(p.current.rl=!0,ye=Ge,le=-le,be.points=[yh(ge,1),yh(me,1)]):p.current.rl=!1}if(Ke&&"r"===ge[1]&&(we<ee.left||p.current.lr)){var Qe=ye;Xe?Qe+=W-V:Qe=Ne.x-Ie.x-le;var Ze=mt(Qe,Ce),Je=mt(Qe,Ce,Z);Ze>Ee||Ze===Ee&&(!U||Je>=ke)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[yh(ge,1),yh(me,1)]):p.current.lr=!1}gt();var et=!0===ze?0:ze;"number"===typeof et&&(we<Z.left&&(ye-=we-Z.left-le,m.x+V<Z.left+et&&(ye+=m.x-Z.left+V-et)),Se>Z.right&&(ye-=Se-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Te?0:Te;"number"===typeof tt&&(xe<Z.top&&(Ce-=xe-Z.top-ce,m.y+_<Z.top+tt&&(Ce+=m.y-Z.top+_-tt)),$e>Z.bottom&&(Ce-=$e-Z.bottom-ce,m.y>Z.bottom-tt&&(Ce+=m.y-Z.bottom+tt)));var nt=R.x+ye,ot=nt+W,rt=R.y+Ce,it=rt+F,at=m.x,lt=at+V,ct=m.y,st=ct+_,ut=(Math.max(nt,at)+Math.min(ot,lt))/2-nt,dt=(Math.max(rt,ct)+Math.min(it,st))/2-rt;null===l||void 0===l||l(t,be);var ft=te.right-R.x-(ye+R.width),pt=te.bottom-R.y-(Ce+R.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===oe&&(Ce=Math.round(Ce),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:Ce/oe,offsetR:ft/ne,offsetB:pt/oe,arrowX:ut/ne,arrowY:dt/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return $($({},e),{},{ready:!1})}))};return Rt(g,[r]),Rt((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Ne,se,F&&null!==qe?qe:me,R,T,B,_),Ye=Ae(Ge,11),Ue=Ye[0],Qe=Ye[1],Ze=Ye[2],Je=Ye[3],et=Ye[4],tt=Ye[5],nt=Ye[6],ot=Ye[7],rt=Ye[8],it=Ye[9],at=Ye[10],lt=function(e,t,n,r){return o.useMemo((function(){var o=lh(null!==n&&void 0!==n?n:t),i=lh(null!==r&&void 0!==r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}(ne,s,u,d),ct=Ae(lt,2),st=ct[0],ut=ct[1],dt=st.has("click"),ft=ut.has("click")||ut.has("contextMenu"),pt=ao((function(){De||at()}));!function(e,t,n,o,r){Rt((function(){if(e&&t&&n){var i=n,a=dh(t),l=dh(i),c=uh(i),s=new Set([c].concat(Se(a),Se(l)));function u(){o(),r()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),o(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ne,me,se,pt,(function(){je.current&&F&&ft&&Be(!1)})),Rt((function(){pt()}),[qe,R]),Rt((function(){!Ne||null!==T&&void 0!==T&&T[R]||pt()}),[JSON.stringify(B)]);var mt=o.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(ch(null===(l=e[c])||void 0===l?void 0:l.points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(T,i,it,F);return a()(e,null===L||void 0===L?void 0:L(it))}),[it,L,T,i,F]);o.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:de.current,forceAlign:pt}}));var gt=Ae(o.useState(0),2),vt=gt[0],ht=gt[1],bt=Ae(o.useState(0),2),yt=bt[0],Ct=bt[1],xt=function(){if(D&&me){var e=me.getBoundingClientRect();ht(e.width),Ct(e.height)}};function $t(e,t,n,o){xe[e]=function(r){var i;null===o||void 0===o||o(r),Be(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=Ce[e])||void 0===i||i.call.apply(i,[Ce,r].concat(l))}}Rt((function(){We&&(at(),We(),_e(null))}),[We]),(dt||ft)&&(xe.onClick=function(e){var t;je.current&&ft?Be(!1):!je.current&&dt&&(Xe(e),Be(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Ce.onClick)||void 0===t||t.call.apply(t,[Ce,e].concat(o))}),function(e,t,n,r,i,a,l,c){var s=o.useRef(e);s.current=e,o.useEffect((function(){if(t&&r&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},o=uh(r);o.addEventListener("mousedown",e,!0),o.addEventListener("contextmenu",e,!0);var u=Oi(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){o.removeEventListener("mousedown",e,!0),o.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,a])}(Ne,ft,me,se,x,S,$e,Be);var wt,St,Et=st.has("hover"),kt=ut.has("hover");Et&&($t("onMouseEnter",!0,v,(function(e){Xe(e)})),$t("onPointerEnter",!0,v,(function(e){Xe(e)})),wt=function(e){(Ne||De)&&null!==se&&void 0!==se&&se.contains(e.target)&&Be(!0,v)},F&&(xe.onMouseMove=function(e){var t;null===(t=Ce.onMouseMove)||void 0===t||t.call(Ce,e)})),kt&&($t("onMouseLeave",!1,b),$t("onPointerLeave",!1,b),St=function(){Be(!1,b)}),st.has("focus")&&$t("onFocus",!0,y),ut.has("focus")&&$t("onBlur",!1,C),st.has("contextMenu")&&(xe.onContextMenu=function(e){var t;je.current&&ut.has("contextMenu")?Be(!1):(Xe(e),Be(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Ce.onContextMenu)||void 0===t||t.call.apply(t,[Ce,e].concat(o))}),Q&&(xe.className=a()(Ce.className,Q));var Ot=$($({},Ce),xe),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(It[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(o)),J[e].apply(J,o)})}));var Nt=o.cloneElement(be,$($({},Ot),It)),Mt={x:tt,y:nt},jt=V?$({},!0!==V?V:{}):null;return o.createElement(o.Fragment,null,o.createElement(ye,{disabled:!Ne,ref:he,onResize:function(){xt(),pt()}},o.createElement(ih,{getTriggerDOMNode:Z},Nt)),o.createElement(ah.Provider,{value:ae},o.createElement(oh,{portal:e,ref:fe,prefixCls:i,popup:M,className:a()(j,mt),style:P,target:me,onMouseEnter:wt,onMouseLeave:St,onPointerEnter:wt,zIndex:H,open:Ne,keepDom:De,fresh:A,onClick:W,mask:x,motion:we,maskMotion:Ee,onVisibleChanged:function(e){Le(!1),at(),null===g||void 0===g||g(e)},onPrepare:function(){return new Promise((function(e){xt(),_e((function(){return e}))}))},forceRender:O,autoDestroy:ee,getPopupContainer:k,align:it,arrow:jt,arrowPos:Mt,ready:Ue,offsetX:Qe,offsetY:Ze,offsetR:Je,offsetB:et,onAlign:pt,stretch:D,targetWidth:vt/ot,targetHeight:yt/rt})))}));return t}(bf);var $h=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wh=o.forwardRef((function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),i=e.children,c=e.popupElement,s=e.animation,u=e.transitionName,d=e.dropdownStyle,f=e.dropdownClassName,p=e.direction,m=void 0===p?"ltr":p,g=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,b=e.dropdownRender,y=e.dropdownAlign,x=e.getPopupContainer,w=e.empty,S=e.getTriggerDOMNode,E=e.onPopupVisibleChange,k=e.onPopupMouseEnter,O=Si(e,$h),I="".concat(n,"-dropdown"),N=c;b&&(N=b(c));var M=o.useMemo((function(){return v||function(e){var t=!0===e?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"}}}(h)}),[v,h]),j=s?"".concat(I,"-").concat(s):u,P="number"===typeof h,R=o.useMemo((function(){return P?null:!1===h?"minWidth":"width"}),[h,P]),z=d;P&&(z=$($({},z),{},{width:h}));var T=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(xh,l({},O,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||("rtl"===m?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:I,popupTransitionName:j,popup:o.createElement("div",{onMouseEnter:k},N),ref:T,stretch:R,popupAlign:y,popupVisible:r,getPopupContainer:x,popupClassName:a()(f,C({},"".concat(I,"-empty"),w)),popupStyle:z,getTriggerDOMNode:S,onPopupVisibleChange:E}),i)}));const Sh=wh;function Eh(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!==o&&void 0!==o?o:void 0!==n?n:"rc-index-key-".concat(t)}function kh(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function Oh(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function Ih(e){var t=$({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return h(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Nh=o.createContext(null);function Mh(e){var t=e.visible,n=e.values;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(b(t))?t:n})).join(", ")),n.length>50?", ...":null)}var jh=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ph=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Rh=function(e){return"tags"===e||"multiple"===e},zh=o.forwardRef((function(e,t){var n,i=e.id,c=e.prefixCls,s=e.className,u=e.showSearch,d=e.tagRender,f=e.direction,p=e.omitDomProps,m=e.displayValues,g=e.onDisplayValuesChange,v=e.emptyOptions,h=e.notFoundContent,y=void 0===h?"Not Found":h,x=e.onClear,w=e.mode,S=e.disabled,E=e.loading,k=e.getInputElement,O=e.getRawInputElement,I=e.open,N=e.defaultOpen,M=e.onDropdownVisibleChange,P=e.activeValue,R=e.onActiveValueChange,z=e.activeDescendantId,T=e.searchValue,B=e.autoClearSearchValue,H=e.onSearch,D=e.onSearchSplit,L=e.tokenSeparators,A=e.allowClear,F=e.suffixIcon,W=e.clearIcon,_=e.OptionList,V=e.animation,q=e.transitionName,K=e.dropdownStyle,X=e.dropdownClassName,G=e.dropdownMatchSelectWidth,Y=e.dropdownRender,U=e.dropdownAlign,Q=e.placement,Z=e.builtinPlacements,J=e.getPopupContainer,ee=e.showAction,te=void 0===ee?[]:ee,ne=e.onFocus,oe=e.onBlur,re=e.onKeyUp,ie=e.onKeyDown,ae=e.onMouseDown,le=Si(e,jh),ce=Rh(w),se=(void 0!==u?u:ce)||"combobox"===w,ue=$({},le);Ph.forEach((function(e){delete ue[e]})),null===p||void 0===p||p.forEach((function(e){delete ue[e]}));var de=Ae(o.useState(!1),2),fe=de[0],pe=de[1];o.useEffect((function(){pe(hv())}),[]);var me=o.useRef(null),ge=o.useRef(null),ve=o.useRef(null),he=o.useRef(null),be=o.useRef(null),ye=o.useRef(!1),Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Ae(o.useState(!1),2),n=t[0],r=t[1],i=o.useRef(null),a=function(){window.clearTimeout(i.current)};return o.useEffect((function(){return a}),[]),[n,function(t,n){a(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),xe=Ae(Ce,3),$e=xe[0],we=xe[1],Ee=xe[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=he.current)||void 0===e?void 0:e.focus,blur:null===(t=he.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:me.current||ge.current}}));var ke=o.useMemo((function(){var e;if("combobox"!==w)return T;var t=null===(e=m[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[T,w,m]),Oe="combobox"===w&&"function"===typeof k&&k()||null,Ie="function"===typeof O&&O(),Ne=j(ge,null===Ie||void 0===Ie||null===(n=Ie.props)||void 0===n?void 0:n.ref),Me=Ae(o.useState(!1),2),je=Me[0],Pe=Me[1];Rt((function(){Pe(!0)}),[]);var Re=Ae(so(!1,{defaultValue:N,value:I}),2),ze=Re[0],Te=Re[1],Be=!!je&&ze,He=!y&&v;(S||He&&Be&&"combobox"===w)&&(Be=!1);var De=!He&&Be,Le=o.useCallback((function(e){var t=void 0!==e?e:!Be;S||(Te(t),Be!==t&&(null===M||void 0===M||M(t)))}),[S,Be,Te,M]),Fe=o.useMemo((function(){return(L||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[L]),We=o.useContext(Nh)||{},_e=We.maxCount,Ve=We.rawValues,qe=function(e,t,n){if(!(ce&&kh(_e)&&(null===Ve||void 0===Ve?void 0:Ve.size)>=_e)){var o=!0,r=e;null===R||void 0===R||R(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=uo(n),i=r[0],a=r.slice(1);if(!i)return[t];var l=t.split(i);return o=o||l.length>1,l.reduce((function(t,n){return[].concat(Se(t),Se(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?"undefined"!==typeof n?r.slice(0,n):r:null}(e,L,kh(_e)?_e-Ve.size:void 0),a=n?null:i;return"combobox"!==w&&a&&(r="",null===D||void 0===D||D(a),Le(!1),o=!1),H&&ke!==r&&H(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){Be||ce||"combobox"===w||qe("",!1,!1)}),[Be]),o.useEffect((function(){ze&&S&&Te(!1),S&&!ye.current&&we(!1)}),[S]);var Ke=Ae(xv(),2),Xe=Ke[0],Ge=Ke[1],Ye=o.useRef(!1),Ue=o.useRef(!1),Qe=[];o.useEffect((function(){return function(){Qe.forEach((function(e){return clearTimeout(e)})),Qe.splice(0,Qe.length)}}),[]);var Ze,Je=Ae(o.useState({}),2)[1];Ie&&(Ze=function(e){Le(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[me.current,null===(e=ve.current)||void 0===e?void 0:e.getPopupElement()]}),De,Le,!!Ie);var et,tt=o.useMemo((function(){return $($({},e),{},{notFoundContent:y,open:Be,triggerOpen:De,id:i,showSearch:se,multiple:ce,toggleOpen:Le})}),[e,y,De,Be,i,se,ce,Le]),nt=!!F||E;nt&&(et=o.createElement(bv,{className:a()("".concat(c,"-arrow"),C({},"".concat(c,"-arrow-loading"),E)),customizeIcon:F,customizeIconProps:{loading:E,searchValue:ke,open:Be,focused:$e,showSearch:se}}));var ot,rt=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=r().useMemo((function(){return"object"===b(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:r().useMemo((function(){return!(a||!o||!n.length&&!l||"combobox"===c&&""===l)}),[o,a,n.length,l,c]),clearIcon:r().createElement(bv,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}}(c,(function(){var e;null===x||void 0===x||x(),null===(e=he.current)||void 0===e||e.focus(),g([],{type:"clear",values:m}),qe("",!1,!1)}),m,A,W,S,ke,w),it=rt.allowClear,at=rt.clearIcon,lt=o.createElement(_,{ref:be}),ct=a()(c,s,C(C(C(C(C(C(C(C(C(C({},"".concat(c,"-focused"),$e),"".concat(c,"-multiple"),ce),"".concat(c,"-single"),!ce),"".concat(c,"-allow-clear"),A),"".concat(c,"-show-arrow"),nt),"".concat(c,"-disabled"),S),"".concat(c,"-loading"),E),"".concat(c,"-open"),Be),"".concat(c,"-customize-input"),Oe),"".concat(c,"-show-search"),se)),st=o.createElement(Sh,{ref:ve,disabled:S,prefixCls:c,visible:De,popupElement:lt,animation:V,transitionName:q,dropdownStyle:K,dropdownClassName:X,direction:f,dropdownMatchSelectWidth:G,dropdownRender:Y,dropdownAlign:U,placement:Q,builtinPlacements:Z,getPopupContainer:J,empty:v,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Ze,onPopupMouseEnter:function(){Je({})}},Ie?o.cloneElement(Ie,{ref:Ne}):o.createElement(Qv,l({},e,{domRef:ge,prefixCls:c,inputElement:Oe,ref:he,id:i,showSearch:se,autoClearSearchValue:B,mode:w,activeDescendantId:z,tagRender:d,values:m,open:Be,onToggleOpen:Le,activeValue:P,searchValue:ke,onSearch:qe,onSearchSubmit:function(e){e&&e.trim()&&H(e,{source:"submit"})},onRemove:function(e){var t=m.filter((function(t){return t!==e}));g(t,{type:"remove",values:[e]})},tokenWithEnter:Fe})));return ot=Ie?st:o.createElement("div",l({className:ct},ue,{ref:me,onMouseDown:function(e){var t,n=e.target,o=null===(t=ve.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=Qe.indexOf(r);-1!==t&&Qe.splice(t,1),Ee(),fe||o.contains(document.activeElement)||null===(e=he.current)||void 0===e||e.focus()}));Qe.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null===ae||void 0===ae||ae.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Xe(),o=e.key,r="Enter"===o;if(r&&("combobox"!==w&&e.preventDefault(),Be||Le(!0)),Ge(!!ke),"Backspace"===o&&!n&&ce&&!ke&&m.length){for(var i=Se(m),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&g(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];!Be||r&&Ye.current||null===(t=be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),r&&(Ye.current=!0),null===ie||void 0===ie||ie.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Be&&(null===(r=be.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(Ye.current=!1),null===re||void 0===re||re.apply(void 0,[e].concat(n))},onFocus:function(){we(!0),S||(ne&&!Ue.current&&ne.apply(void 0,arguments),te.includes("focus")&&Le(!0)),Ue.current=!0},onBlur:function(){ye.current=!0,we(!1,(function(){Ue.current=!1,ye.current=!1,Le(!1)})),S||(ke&&("tags"===w?H(ke,{source:"submit"}):"multiple"===w&&H("",{source:"blur"})),oe&&oe.apply(void 0,arguments))}}),o.createElement(Mh,{visible:$e&&!Be,values:m}),st,et,it&&at),o.createElement(yv.Provider,{value:tt},ot)}));const Th=zh;var Bh=function(){return null};Bh.isSelectOptGroup=!0;const Hh=Bh;var Dh=function(){return null};Dh.isSelectOption=!0;const Lh=Dh;var Ah=o.forwardRef((function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,c=e.children,s=e.prefixCls,u=e.onInnerResize,d=e.innerProps,f=e.rtl,p=e.extra,m={},g={display:"flex",flexDirection:"column"};return void 0!==r&&(m={height:n,position:"relative",overflow:"hidden"},g=$($({},g),{},C(C(C(C(C({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:m},o.createElement(ye,{onResize:function(e){e.offsetHeight&&u&&u()}},o.createElement("div",l({style:g,className:a()(C({},"".concat(s,"-holder-inner"),s)),ref:t},d),c,p)))}));Ah.displayName="Filler";const Fh=Ah;function Wh(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}function _h(e,t,n){var r=Ae(o.useState(e),2),i=r[0],a=r[1],l=Ae(o.useState(null),2),c=l[0],s=l[1];return o.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var f=c(o[d]);if(f!==c(r[d])){s=d,u=u||f!==c(r[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],t);void 0!==(null===o||void 0===o?void 0:o.index)&&(null===n||void 0===n||n(o.index),s(e[o.index])),a(e)}),[e]),[c]}const Vh="object"===("undefined"===typeof navigator?"undefined":b(navigator))&&/Firefox/i.test(navigator.userAgent),qh=function(e,t,n,r){var i=(0,o.useRef)(!1),a=(0,o.useRef)(null);var l=(0,o.useRef)({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&o?(clearTimeout(a.current),i.current=!1):o&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&o}};function Kh(e,t,n,r,i,a,l){var c=(0,o.useRef)(0),s=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(!1),f=qh(t,n,r,i);var p=(0,o.useRef)(null),m=(0,o.useRef)(null);return[function(t){if(e){je.cancel(m.current),m.current=je((function(){p.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,i=n,g=o;("sx"===p.current||!p.current&&r&&o&&!n)&&(i=o,g=0,p.current="sx");var v=Math.abs(i),h=Math.abs(g);null===p.current&&(p.current=a&&v>h?"x":"y"),"y"===p.current?function(e,t){if(je.cancel(s.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,c.current+=t,u.current=t,Vh||n.preventDefault(),s.current=je((function(){var e=d.current?10:1;l(c.current*e,!1),c.current=0})))}}(t,g):function(e,t){l(t,!0),Vh||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}const Xh=function(){function e(){ie(this,e),C(this,"maps",void 0),C(this,"id",0),this.maps=Object.create(null)}return le(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Gh=14/15;function Yh(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Uh=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,s=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,m=e.style,g=e.thumbStyle,v=Ae(o.useState(!1),2),h=v[0],b=v[1],y=Ae(o.useState(null),2),x=y[0],w=y[1],S=Ae(o.useState(null),2),E=S[0],k=S[1],O=!r,I=o.useRef(),N=o.useRef(),M=Ae(o.useState(!1),2),j=M[0],P=M[1],R=o.useRef(),z=function(){clearTimeout(R.current),P(!0),R.current=setTimeout((function(){P(!1)}),3e3)},T=l-p||0,B=p-f||0,H=o.useMemo((function(){return 0===i||0===T?0:i/T*B}),[i,T,B]),D=o.useRef({top:H,dragging:h,pageY:x,startTop:E});D.current={top:H,dragging:h,pageY:x,startTop:E};var L=function(e){b(!0),w(Yh(e,d)),k(D.current.top),c(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=I.current,n=N.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",L,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",L)}}),[]);var A=o.useRef();A.current=T;var F=o.useRef();F.current=B,o.useEffect((function(){if(h){var e,t=function(t){var n=D.current,o=n.dragging,r=n.pageY,i=n.startTop;je.cancel(e);var a=I.current.getBoundingClientRect(),l=p/(d?a.width:a.height);if(o){var c=(Yh(t,d)-r)*l,s=i;!O&&d?s-=c:s+=c;var f=A.current,m=F.current,g=m?s/m:0,v=Math.ceil(g*f);v=Math.max(v,0),v=Math.min(v,f),e=je((function(){u(v,d)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),je.cancel(e)}}}),[h]),o.useEffect((function(){return z(),function(){clearTimeout(R.current)}}),[i]),o.useImperativeHandle(t,(function(){return{delayHidden:z}}));var W="".concat(n,"-scrollbar"),_={position:"absolute",visibility:j?null:"hidden"},V={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(_.height=8,_.left=0,_.right=0,_.bottom=0,V.height="100%",V.width=f,O?V.left=H:V.right=H):(_.width=8,_.top=0,_.bottom=0,O?_.right=0:_.left=0,V.width="100%",V.height=f,V.top=H),o.createElement("div",{ref:I,className:a()(W,C(C(C({},"".concat(W,"-horizontal"),d),"".concat(W,"-vertical"),!d),"".concat(W,"-visible"),j)),style:$($({},_),m),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},o.createElement("div",{ref:N,className:a()("".concat(W,"-thumb"),C({},"".concat(W,"-thumb-moving"),h)),style:$($({},V),g),onMouseDown:L}))}));const Qh=Uh;function Zh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Jh=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],eb=[],tb={overflowY:"auto",overflowAnchor:"none"};var nb=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,c=e.height,s=e.itemHeight,u=e.fullHeight,d=void 0===u||u,f=e.style,p=e.data,m=e.children,g=e.itemKey,v=e.virtual,h=e.direction,y=e.scrollWidth,x=e.component,S=void 0===x?"div":x,E=e.onScroll,k=e.onVirtualScroll,I=e.onVisibleChange,N=e.innerProps,M=e.extraRender,j=e.styles,P=Si(e,Jh),R=o.useCallback((function(e){return"function"===typeof g?g(e):null===e||void 0===e?void 0:e[g]}),[g]),z=function(e,t,n){var r=Ae(o.useState(0),2),i=r[0],a=r[1],l=(0,o.useRef)(new Map),c=(0,o.useRef)(new Xh),s=(0,o.useRef)();function u(){je.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=O(e),o=n.offsetHeight;c.current.get(t)!==o&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=je(t)}return(0,o.useEffect)((function(){return u}),[]),[function(o,r){var i=e(o),a=l.current.get(i);r?(l.current.set(i,r),d()):l.current.delete(i),!a!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},d,c.current,i]}(R,null,null),T=Ae(z,4),B=T[0],H=T[1],D=T[2],L=T[3],A=!(!1===v||!c||!s),F=o.useMemo((function(){return Object.values(D.maps).reduce((function(e,t){return e+t}),0)}),[D.id,D.maps]),W=A&&p&&(Math.max(s*p.length,F)>c||!!y),_="rtl"===h,V=a()(r,C({},"".concat(r,"-rtl"),_),i),q=p||eb,K=(0,o.useRef)(),X=(0,o.useRef)(),G=(0,o.useRef)(),Y=Ae((0,o.useState)(0),2),U=Y[0],Q=Y[1],Z=Ae((0,o.useState)(0),2),J=Z[0],ee=Z[1],te=Ae((0,o.useState)(!1),2),ne=te[0],oe=te[1],re=function(){oe(!0)},ie=function(){oe(!1)},ae={getKey:R};function le(e){Q((function(t){var n=function(e){var t=e;Number.isNaN(Ee.current)||(t=Math.min(t,Ee.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return K.current.scrollTop=n,n}))}var ce=(0,o.useRef)({start:0,end:q.length}),se=(0,o.useRef)(),ue=Ae(_h(q,R),1)[0];se.current=ue;var de=o.useMemo((function(){if(!A)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};var e;if(!W)return{scrollHeight:(null===(e=X.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:q.length-1,offset:void 0};for(var t,n,o,r=0,i=q.length,a=0;a<i;a+=1){var l=q[a],u=R(l),d=D.get(u),f=r+(void 0===d?s:d);f>=U&&void 0===t&&(t=a,n=r),f>U+c&&void 0===o&&(o=a),r=f}return void 0===t&&(t=0,n=0,o=Math.ceil(c/s)),void 0===o&&(o=q.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,q.length-1),offset:n}}),[W,A,U,q,L,c]),fe=de.scrollHeight,pe=de.start,me=de.end,ge=de.offset;ce.current.start=pe,ce.current.end=me;var ve=Ae(o.useState({width:0,height:c}),2),he=ve[0],be=ve[1],Ce=(0,o.useRef)(),xe=(0,o.useRef)(),$e=o.useMemo((function(){return Zh(he.width,y)}),[he.width,y]),we=o.useMemo((function(){return Zh(he.height,fe)}),[he.height,fe]),Se=fe-c,Ee=(0,o.useRef)(Se);Ee.current=Se;var ke=U<=0,Oe=U>=Se,Ie=J<=0,Ne=J>=y,Me=qh(ke,Oe,Ie,Ne),Pe=function(){return{x:_?-J:J,y:U}},Re=(0,o.useRef)(Pe()),ze=ao((function(e){if(k){var t=$($({},Pe()),e);Re.current.x===t.x&&Re.current.y===t.y||(k(t),Re.current=t)}}));function Te(e,t){var n=e;t?((0,w.flushSync)((function(){ee(n)})),ze()):le(n)}var Be=function(e){var t=e,n=y?y-he.width:0;return t=Math.max(t,0),t=Math.min(t,n)},He=ao((function(e,t){t?((0,w.flushSync)((function(){ee((function(t){return Be(t+(_?-e:e))}))})),ze()):le((function(t){return t+e}))})),De=Ae(Kh(A,ke,Oe,Ie,Ne,!!y,He),2),Le=De[0],Fe=De[1];!function(e,t,n){var r,i=(0,o.useRef)(!1),a=(0,o.useRef)(0),l=(0,o.useRef)(0),c=(0,o.useRef)(null),s=(0,o.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),r=a.current-t,c=l.current-o,u=Math.abs(r)>Math.abs(c);u?a.current=t:l.current=o;var d=n(u,u?r:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval((function(){u?r*=Gh:c*=Gh;var e=Math.floor(u?r:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16))}},d=function(){i.current=!1,r()},f=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};r=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},Rt((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(s.current)}}),[e])}(A,K,(function(e,t,n,o){var r=o;return!Me(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Le({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),Rt((function(){function e(e){var t=ke&&e.detail<0,n=Oe&&e.detail>0;!A||t||n||e.preventDefault()}var t=K.current;return t.addEventListener("wheel",Le,{passive:!1}),t.addEventListener("DOMMouseScroll",Fe,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Le),t.removeEventListener("DOMMouseScroll",Fe),t.removeEventListener("MozMousePixelScroll",e)}}),[A,ke,Oe]),Rt((function(){if(y){var e=Be(J);ee(e),ze({x:e})}}),[he.width,y]);var We=function(){var e,t;null===(e=Ce.current)||void 0===e||e.delayHidden(),null===(t=xe.current)||void 0===t||t.delayHidden()},_e=function(e,t,n,r,i,a,l,c){var s=o.useRef(),u=Ae(o.useState(null),2),d=u[0],f=u[1];return Rt((function(){if(d&&d.times<10){if(!e.current)return void f((function(e){return $({},e)}));a();var o=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,m=!1,g=o,v=null;if(p){for(var h=o||c,b=0,y=0,C=0,x=Math.min(t.length-1,s),w=0;w<=x;w+=1){var S=i(t[w]);y=b;var E=n.get(S);b=C=y+(void 0===E?r:E)}for(var k="top"===h?u:p-u,O=x;O>=0;O-=1){var I=i(t[O]),N=n.get(I);if(void 0===N){m=!0;break}if((k-=N)<=0)break}switch(h){case"top":v=y-u;break;case"bottom":v=C-p+u;break;default:var M=e.current.scrollTop;y<M?g="top":C>M+p&&(g="bottom")}null!==v&&l(v),v!==d.lastTop&&(m=!0)}m&&f($($({},d),{},{times:d.times+1,targetAlign:g,lastTop:v}))}}),[d,e.current]),function(e){if(null!==e&&void 0!==e){if(je.cancel(s.current),"number"===typeof e)l(e);else if(e&&"object"===b(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var r=e.offset;f({times:0,index:n,offset:void 0===r?0:r,originAlign:o})}}else c()}}(K,q,D,s,R,(function(){return H(!0)}),le,We);o.useImperativeHandle(t,(function(){return{nativeElement:G.current,getScrollInfo:Pe,scrollTo:function(e){var t;(t=e)&&"object"===b(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ee(Be(e.left)),_e(e.top)):_e(e)}}})),Rt((function(){if(I){var e=q.slice(pe,me+1);I(e,q)}}),[pe,me,q]);var Ve=function(e,t,n,r){var i=Ae(o.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),a=i[0],l=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,c=a.get(o),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],m=t(p);a.set(m,d);var g=null!==(f=n.get(m))&&void 0!==f?f:r;if(l[d]=(l[d-1]||0)+g,m===o&&(c=d),m===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(q,R,D,s),qe=null===M||void 0===M?void 0:M({start:pe,end:me,virtual:W,offsetX:J,offsetY:ge,rtl:_,getSize:Ve}),Ke=function(e,t,n,r,i,a,l,c){var s=c.getKey;return e.slice(t,n+1).map((function(e,n){var c=l(e,t+n,{style:{width:r},offsetX:i}),u=s(e);return o.createElement(Wh,{key:u,setRef:function(t){return a(e,t)}},c)}))}(q,pe,me,y,J,B,m,ae),Xe=null;c&&(Xe=$(C({},d?"height":"maxHeight",c),tb),A&&(Xe.overflowY="hidden",y&&(Xe.overflowX="hidden"),ne&&(Xe.pointerEvents="none")));var Ge={};return _&&(Ge.dir="rtl"),o.createElement("div",l({ref:G,style:$($({},f),{},{position:"relative"}),className:V},Ge,P),o.createElement(ye,{onResize:function(e){be({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(S,{className:"".concat(r,"-holder"),style:Xe,ref:K,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==U&&le(t),null===E||void 0===E||E(e),ze()},onMouseEnter:We},o.createElement(Fh,{prefixCls:r,height:fe,offsetX:J,offsetY:ge,scrollWidth:y,onInnerResize:H,ref:X,innerProps:N,rtl:_,extra:qe},Ke))),W&&fe>c&&o.createElement(Qh,{ref:Ce,prefixCls:r,scrollOffset:U,scrollRange:fe,rtl:_,onScroll:Te,onStartMove:re,onStopMove:ie,spinSize:we,containerSize:he.height,style:null===j||void 0===j?void 0:j.verticalScrollBar,thumbStyle:null===j||void 0===j?void 0:j.verticalScrollBarThumb}),W&&y>he.width&&o.createElement(Qh,{ref:xe,prefixCls:r,scrollOffset:J,scrollRange:y,rtl:_,onScroll:Te,onStartMove:re,onStopMove:ie,spinSize:$e,containerSize:he.width,horizontal:!0,style:null===j||void 0===j?void 0:j.horizontalScrollBar,thumbStyle:null===j||void 0===j?void 0:j.horizontalScrollBarThumb}))}));nb.displayName="List";const ob=nb;var rb=["disabled","title","children","style","className"];function ib(e){return"string"===typeof e||"number"===typeof e}var ab=o.forwardRef((function(e,t){var n=Cv(),r=n.prefixCls,i=n.id,c=n.open,s=n.multiple,u=n.mode,d=n.searchValue,f=n.toggleOpen,p=n.notFoundContent,m=n.onPopupScroll,g=o.useContext(Nh),v=g.maxCount,h=g.flattenOptions,b=g.onActiveValue,y=g.defaultActiveFirstOption,x=g.onSelect,$=g.menuItemSelectedIcon,w=g.rawValues,S=g.fieldNames,E=g.virtual,k=g.direction,O=g.listHeight,N=g.listItemHeight,M=g.optionRender,j="".concat(r,"-item"),P=I((function(){return h}),[c,h],(function(e,t){return t[0]&&e[1]!==t[1]})),R=o.useRef(null),z=o.useMemo((function(){return s&&kh(v)&&(null===w||void 0===w?void 0:w.size)>=v}),[s,v,null===w||void 0===w?void 0:w.size]),T=function(e){e.preventDefault()},B=function(e){var t;null===(t=R.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=P[r]||{},a=i.group,l=i.data;if(!a&&(null===l||void 0===l||!l.disabled)&&!z)return r}return-1},D=Ae(o.useState((function(){return H(0)})),2),L=D[0],A=D[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(e);var n={source:t?"keyboard":"mouse"},o=P[e];o?b(o.value,e,n):b(null,-1,n)};(0,o.useEffect)((function(){F(!1!==y?H(0):-1)}),[P.length,d]);var W=o.useCallback((function(e){return w.has(e)&&"combobox"!==u}),[u,Se(w).toString(),w.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!s&&c&&1===w.size){var e=Array.from(w)[0],t=P.findIndex((function(t){return t.data.value===e}));-1!==t&&(F(t),B(t))}}));c&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[c,d]);var _=function(e){void 0!==e&&x(e,{selected:!w.has(e)}),s||f(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case zl.N:case zl.P:case zl.UP:case zl.DOWN:var o=0;if(t===zl.UP?o=-1:t===zl.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===zl.N?o=1:t===zl.P&&(o=-1)),0!==o){var r=H(L+o,o);B(r),F(r,!0)}break;case zl.ENTER:var i,a=P[L];!a||null!==a&&void 0!==a&&null!==(i=a.data)&&void 0!==i&&i.disabled||z?_(void 0):_(a.value),c&&e.preventDefault();break;case zl.ESC:f(!1),c&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){B(e)}}})),0===P.length)return o.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(j,"-empty"),onMouseDown:T},p);var V=Object.keys(S).map((function(e){return S[e]})),q=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var X=function(e){var t=P[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=_a(n,!0),c=q(t);return t?o.createElement("div",l({"aria-label":"string"!==typeof c||i?null:c},a,{key:e},K(t,e),{"aria-selected":W(r)}),r):null},G={role:"listbox",id:"".concat(i,"_list")};return o.createElement(o.Fragment,null,E&&o.createElement("div",l({},G,{style:{height:0,width:0,overflow:"hidden"}}),X(L-1),X(L),X(L+1)),o.createElement(ob,{itemKey:"key",ref:R,data:P,height:O,itemHeight:N,fullHeight:!1,onMouseDown:T,onScroll:m,virtual:E,direction:k,innerProps:E?null:G},(function(e,t){var n=e.group,r=e.groupOption,i=e.data,c=e.label,s=e.value,u=i.key;if(n){var d,f=null!==(d=i.title)&&void 0!==d?d:ib(c)?c.toString():void 0;return o.createElement("div",{className:a()(j,"".concat(j,"-group"),i.className),title:f},void 0!==c?c:u)}var p=i.disabled,m=i.title,g=(i.children,i.style),v=i.className,h=Ce(Si(i,rb),V),b=W(s),y=p||!b&&z,x="".concat(j,"-option"),w=a()(j,x,v,C(C(C(C({},"".concat(x,"-grouped"),r),"".concat(x,"-active"),L===t&&!y),"".concat(x,"-disabled"),y),"".concat(x,"-selected"),b)),S=q(e),k=!$||"function"===typeof $||b,O="number"===typeof S?S:S||s,I=ib(O)?O.toString():void 0;return void 0!==m&&(I=m),o.createElement("div",l({},_a(h),E?{}:K(e,t),{"aria-selected":b,className:w,title:I,onMouseMove:function(){L===t||y||F(t)},onClick:function(){y||_(s)},style:g}),o.createElement("div",{className:"".concat(x,"-content")},"function"===typeof M?M(e,{index:t}):O),o.isValidElement($)||b,k&&o.createElement(bv,{className:"".concat(j,"-option-state"),customizeIcon:$,customizeIconProps:{value:s,disabled:y,isSelected:b}},b?"\u2713":null))})))}));const lb=ab;function cb(e,t){return Wv(e).join("").toUpperCase().includes(t)}var sb=0,ub=We();function db(e){var t=Ae(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){r("rc_select_".concat(function(){var e;return ub?(e=sb,sb+=1):e="TEST_OR_SSR",e}()))}),[]),e||n}var fb=["children","value"],pb=["children"];function mb(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,s=Si(l,pb);return t||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return $({key:n,value:void 0!==i?i:n,children:r},Si(o,fb))}(e):$($({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:mb(c)})})).filter((function(e){return e}))}const gb=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=mb(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||o?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,r),c(l,u,i)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:l}}),[e,t,n,r,i])};function vb(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var hb=["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"],bb=["inputValue"];var yb=o.forwardRef((function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,c=e.backfill,s=e.fieldNames,u=e.inputValue,d=e.searchValue,f=e.onSearch,p=e.autoClearSearchValue,m=void 0===p||p,g=e.onSelect,v=e.onDeselect,h=e.dropdownMatchSelectWidth,y=void 0===h||h,x=e.filterOption,w=e.filterSort,S=e.optionFilterProp,E=e.optionLabelProp,k=e.options,O=e.optionRender,I=e.children,N=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,j=e.virtual,P=e.direction,R=e.listHeight,z=void 0===R?200:R,T=e.listItemHeight,B=void 0===T?20:T,H=e.labelRender,D=e.value,L=e.defaultValue,A=e.labelInValue,F=e.onChange,W=e.maxCount,_=Si(e,hb),V=db(n),q=Rh(r),K=!(k||!I),X=o.useMemo((function(){return(void 0!==x||"combobox"!==r)&&x}),[x,r]),G=o.useMemo((function(){return Oh(s,K)}),[JSON.stringify(s),K]),Y=Ae(so("",{value:void 0!==d?d:u,postState:function(e){return e||""}}),2),U=Y[0],Q=Y[1],Z=gb(k,I,G,S,E),J=Z.valueOptions,ee=Z.labelOptions,te=Z.options,ne=o.useCallback((function(e){return Wv(e).map((function(e){var t,n,o,r,i,a;(function(e){return!e||"object"!==b(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o);var l,c=J.get(t);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[E||G.label]),void 0===o&&(o=null!==(l=null===c||void 0===c?void 0:c.key)&&void 0!==l?l:t),r=null===c||void 0===c?void 0:c.disabled,i=null===c||void 0===c?void 0:c.title);return{label:n,value:t,key:o,disabled:r,title:i}}))}),[G,E,J]),oe=Ae(so(L,{value:D}),2),re=oe[0],ie=oe[1],ae=o.useMemo((function(){var e,t=ne(q&&null===re?[]:re);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[re,ne,r,q]),le=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?$($({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=c,a}),[e,t]),o.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ae,J),ce=Ae(le,2),se=ce[0],ue=ce[1],de=o.useMemo((function(){if(!r&&1===se.length){var e=se[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return se.map((function(e){var t;return $($({},e),{},{label:null!==(t="function"===typeof H?H(e):e.label)&&void 0!==t?t:e.value})}))}),[r,se,H]),fe=o.useMemo((function(){return new Set(se.map((function(e){return e.value})))}),[se]);o.useEffect((function(){if("combobox"===r){var e,t=null===(e=se[0])||void 0===e?void 0:e.value;Q(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[se]);var pe=vb((function(e,t){var n=null!==t&&void 0!==t?t:e;return C(C({},G.value,e),G.label,n)})),me=function(e,t,n,r,i){return o.useMemo((function(){if(!n||!1===r)return e;var o=t.options,a=t.label,l=t.value,c=[],s="function"===typeof r,u=n.toUpperCase(),d=s?r:function(e,t){return i?cb(t[i],u):t[o]?cb(t["children"!==a?a:"label"],u):cb(t[l],u)},f=s?function(e){return Ih(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(d(n,f(e)))c.push(e);else{var t=e[o].filter((function(e){return d(n,f(e))}));t.length&&c.push($($({},e),{},C({},o,t)))}else d(n,f(e))&&c.push(e)})),c}),[e,r,i,n,t])}(o.useMemo((function(){if("tags"!==r)return te;var e=Se(te);return Se(se).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return J.has(e)})(n)||e.push(pe(n,t.label))})),e}),[pe,te,J,se,r]),G,U,X,S),ge=o.useMemo((function(){return"tags"!==r||!U||me.some((function(e){return e[S||"value"]===U}))||me.some((function(e){return e[G.value]===U}))?me:[pe(U)].concat(Se(me))}),[pe,S,r,me,U,G]),ve=function e(t){return Se(t).sort((function(e,t){return w(e,t,{searchValue:U})})).map((function(t){return Array.isArray(t.options)?$($({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},he=o.useMemo((function(){return w?ve(ge):ge}),[ge,w,U]),be=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=Oh(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];r.push({key:Eh(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&o&&(u=t.label),r.push({key:Eh(t,r.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),r}(he,{fieldNames:G,childrenAsData:K})}),[he,G,K]),ye=function(e){var t=ne(e);if(ie(t),F&&(t.length!==se.length||t.some((function(e,t){var n;return(null===(n=se[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=A?t:t.map((function(e){return e.value})),o=t.map((function(e){return Ih(ue(e.value))}));F(q?n:n[0],q?o:o[0])}},Ce=Ae(o.useState(null),2),xe=Ce[0],$e=Ce[1],we=Ae(o.useState(0),2),Ee=we[0],ke=we[1],Oe=void 0!==N?N:"combobox"!==r,Ie=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ke(t),c&&"combobox"===r&&null!==e&&"keyboard"===o&&$e(String(e))}),[c,r]),Ne=function(e,t,n){var o=function(){var t,n=ue(e);return[A?{label:null===n||void 0===n?void 0:n[G.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,Ih(n)]};if(t&&g){var r=Ae(o(),2),i=r[0],a=r[1];g(i,a)}else if(!t&&v&&"clear"!==n){var l=Ae(o(),2),c=l[0],s=l[1];v(c,s)}},Me=vb((function(e,t){var n,o=!q||t.selected;n=o?q?[].concat(Se(se),[e]):[e]:se.filter((function(t){return t.value!==e})),ye(n),Ne(e,o),"combobox"===r?$e(""):Rh&&!m||(Q(""),$e(""))})),je=o.useMemo((function(){var e=!1!==j&&!1!==y;return $($({},Z),{},{flattenOptions:be,onActiveValue:Ie,defaultActiveFirstOption:Oe,onSelect:Me,menuItemSelectedIcon:M,rawValues:fe,fieldNames:G,virtual:e,direction:P,listHeight:z,listItemHeight:B,childrenAsData:K,maxCount:W,optionRender:O})}),[W,Z,be,Ie,Oe,Me,M,fe,G,j,y,P,z,B,K,O]);return o.createElement(Nh.Provider,{value:je},o.createElement(Th,l({},_,{id:V,prefixCls:a,ref:t,omitDomProps:bb,mode:r,displayValues:de,onDisplayValuesChange:function(e,t){ye(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Ne(e.value,!1,n)}))},direction:P,searchValue:U,onSearch:function(e,t){if(Q(e),$e(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&ye(e),null===f||void 0===f||f(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Se(fe),[n])));ye(o),Ne(n,!0),Q("")}}},autoClearSearchValue:m,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=ee.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Se(fe),Se(t))));ye(n),n.forEach((function(e){Ne(e,!0)}))},dropdownMatchSelectWidth:y,OptionList:lb,emptyOptions:!be.length,activeValue:xe,activeDescendantId:"".concat(V,"_list_").concat(Ee)})))}));var Cb=yb;Cb.Option=Lh,Cb.OptGroup=Hh;const xb=Cb;function $b(e,t,n){return a()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const wb=(e,t)=>t||e;const Sb=()=>{const[,e]=ui(),[t]=Es("Empty"),n=new Fr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const Eb=()=>{const[,e]=ui(),[t]=Es("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:s}=(0,o.useMemo)((()=>({borderColor:new Fr(n).onBackground(a).toHexShortString(),shadowColor:new Fr(r).onBackground(a).toHexShortString(),contentColor:new Fr(i).onBackground(a).toHexShortString()})),[n,r,i,a]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:l},o.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"}),o.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:s}))))},kb=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ob=fi("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=xo(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[kb(r)]}));var Ib=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Nb=o.createElement(Sb,null),Mb=o.createElement(Eb,null),jb=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=Nb,description:l,children:c,imageStyle:s,style:u}=e,d=Ib(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:p,empty:m}=o.useContext(Be),g=f("empty",r),[v,h,b]=Ob(g),[y]=Es("Empty"),C="undefined"!==typeof l?l:null===y||void 0===y?void 0:y.description,x="string"===typeof C?C:"empty";let $=null;return $="string"===typeof i?o.createElement("img",{alt:x,src:i}):i,v(o.createElement("div",Object.assign({className:a()(h,b,g,null===m||void 0===m?void 0:m.className,{[`${g}-normal`]:i===Mb,[`${g}-rtl`]:"rtl"===p},t,n),style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),u)},d),o.createElement("div",{className:`${g}-image`,style:s},$),C&&o.createElement("div",{className:`${g}-description`},C),c&&o.createElement("div",{className:`${g}-footer`},c)))};jb.PRESENTED_IMAGE_DEFAULT=Nb,jb.PRESENTED_IMAGE_SIMPLE=Mb;const Pb=jb,Rb=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(Be),i=n("empty");switch(t){case"Table":case"List":return r().createElement(Pb,{image:Pb.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r().createElement(Pb,{image:Pb.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return r().createElement(Pb,null)}},zb=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[e]:l}=(0,o.useContext)(Be),c=(0,o.useContext)(nm),s=null===l||void 0===l?void 0:l.variant;let u;u="undefined"!==typeof t?t:!1===n?"borderless":null!==(i=null!==(r=null!==c&&void 0!==c?c:s)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Te.includes(u)]};const Tb=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"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]})}})(t)},Bb=new Yn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Hb=new Yn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Db=new Yn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Lb=new Yn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ab=new Yn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Fb=new Yn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wb=new Yn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),_b=new Yn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Vb={"slide-up":{inKeyframes:Bb,outKeyframes:Hb},"slide-down":{inKeyframes:Db,outKeyframes:Lb},"slide-left":{inKeyframes:Ab,outKeyframes:Fb},"slide-right":{inKeyframes:Wb,outKeyframes:_b}},qb=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Vb[t];return[qm(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Kb=new Yn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xb=new Yn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Gb=new Yn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Yb=new Yn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ub=new Yn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Qb=new Yn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Zb={"move-up":{inKeyframes:new Yn("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 Yn("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:Kb,outKeyframes:Xb},"move-left":{inKeyframes:Gb,outKeyframes:Yb},"move-right":{inKeyframes:Ub,outKeyframes:Qb}},Jb=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Zb[t];return[qm(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ey=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},ty=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ro(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,[`\n ${r}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Bb},[`\n ${r}${l}topLeft,\n ${i}${l}topLeft,\n ${r}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Db},[`${a}${l}bottomLeft`]:{animationName:Hb},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Lb},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},ey(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"},Po),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-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({},ey(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},qb(e,"slide-up"),qb(e,"slide-down"),Jb(e,"move-up"),Jb(e,"move-down")]},ny=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:Et(t),itemLineHeight:Et(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},oy=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},ry=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),l=t?`${n}-${t}`:"",c=ny(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},oy(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",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:`${Et(o)} 0`,lineHeight:Et(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Et(c.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Et(i),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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function iy(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ry(e,t),r]}const ay=e=>{const{componentCls:t}=e,n=xo(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=xo(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[iy(e),iy(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},iy(o,"lg")]};function ly(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r,fontSizeIcon:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=e.calc(o).add(i).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ro(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:Et(l),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Et(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 &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Et(o)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Et(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 ${Et(o)}`,"&:after":{display:"none"}}}}}}}function cy(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ly(e),ly(xo(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Et(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ly(xo(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const sy=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Et(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Et(r)} ${t.activeOutlineColor}`,outline:0}}}},uy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sy(e,t))}),dy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sy(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),uy(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),uy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${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:`${Et(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),fy=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Et(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},py=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fy(e,t))}),my=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},fy(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),py(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),py(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:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gy=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${Et(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),vy=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},dy(e)),my(e)),gy(e))}),hy=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},by=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},yy=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hy(e)),by(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Po),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Po),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,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`,[r]:{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}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},Cy=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},yy(e),cy(e),ay(e),ty(e),{[`${t}-rtl`]:{direction:"rtl"}},_d(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xy=fi("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=xo(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Cy(o),vy(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:h,colorPrimaryHover:b,colorPrimary:y,controlOutline:C}=e,x=2*l,$=2*o,w=Math.min(r-x,r-$),S=Math.min(i-x,i-$),E=Math.min(a-x,a-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(r-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:S,multipleItemHeightLG:E,multipleSelectorBgDisabled:v,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:C}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const $y={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"};const wy=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:$y}))}));const Sy={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"};const Ey=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Sy}))}));const ky={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"};const Oy=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:ky}))}));function Iy(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!==n&&void 0!==n?n:o.createElement(_i,null),g=e=>null!==t||c||f?o.createElement(o.Fragment,null,!1!==u&&e,c&&d):null;let v=null;if(void 0!==t)v=g(t);else if(a)v=g(o.createElement(Yl,{spin:!0}));else{const e=`${s}-suffix`;v=t=>{let{open:n,showSearch:r}=t;return g(n&&r?o.createElement(Oy,{className:e}):o.createElement(Ey,{className:e}))}}let h=null;h=void 0!==r?r:l?o.createElement(wy,null):null;let b=null;return b=void 0!==i?i:o.createElement(qi,null),{clearIcon:m,suffixIcon:v,itemIcon:h,removeIcon:b}}function Ny(e,t){return void 0!==t?t:null!==e}var My=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jy="SECRET_COMBOBOX_MODE_DO_NOT_USE";const Py=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:i,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:v,notFoundContent:h,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:x,direction:$,style:w,allowClear:S,variant:E,dropdownStyle:k,transitionName:O,tagRender:I,maxCount:N}=e,M=My(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"]),{getPopupContainer:j,getPrefixCls:P,renderEmpty:R,direction:z,virtual:T,popupMatchSelectWidth:B,popupOverflow:H,select:D}=o.useContext(Be),[,L]=ui(),A=null!==m&&void 0!==m?m:null===L||void 0===L?void 0:L.controlHeight,F=P("select",r),W=P(),_=null!==$&&void 0!==$?$:z,{compactSize:V,compactItemClassnames:q}=_s(F,_),[K,X]=zb("select",E,i),G=bl(F),[Y,U,Q]=xy(F,G),Z=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===jy?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=Ny(e.suffixIcon,e.showArrow),te=null!==(n=null!==x&&void 0!==x?x:C)&&void 0!==n?n:B,{status:ne,hasFeedback:oe,isFormItemInput:re,feedbackIcon:ie}=o.useContext(em),ae=wb(ne,b);let le;le=void 0!==h?h:"combobox"===Z?null:(null===R||void 0===R?void 0:R("Select"))||o.createElement(Rb,{componentName:"Select"});const{suffixIcon:ce,itemIcon:se,removeIcon:ue,clearIcon:de}=Iy(Object.assign(Object.assign({},M),{multiple:J,hasFeedback:oe,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:F,componentName:"Select"})),fe=!0===S?{clearIcon:de}:S,pe=Ce(M,["suffixIcon","itemIcon"]),me=a()(u||d,{[`${F}-dropdown-${_}`]:"rtl"===_},c,Q,G,U),ge=Bs((e=>{var t;return null!==(t=null!==g&&void 0!==g?g:V)&&void 0!==t?t:e})),ve=o.useContext(Qc),he=null!==v&&void 0!==v?v:ve,be=a()({[`${F}-lg`]:"large"===ge,[`${F}-sm`]:"small"===ge,[`${F}-rtl`]:"rtl"===_,[`${F}-${K}`]:X,[`${F}-in-form-item`]:re},$b(F,ae,oe),q,null===D||void 0===D?void 0:D.className,l,c,Q,G,U),ye=o.useMemo((()=>void 0!==p?p:"rtl"===_?"bottomRight":"bottomLeft"),[p,_]);const[xe]=tc("SelectLike",null===k||void 0===k?void 0:k.zIndex);return Y(o.createElement(xb,Object.assign({ref:t,virtual:T,showSearch:null===D||void 0===D?void 0:D.showSearch},pe,{style:Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),w),dropdownMatchSelectWidth:te,transitionName:ws(W,"slide-up",O),builtinPlacements:Tb(y,H),listHeight:f,listItemHeight:A,mode:Z,prefixCls:F,placement:ye,direction:_,suffixIcon:ce,menuItemSelectedIcon:se,removeIcon:ue,allowClear:fe,notFoundContent:le,className:be,getPopupContainer:s||j,dropdownClassName:me,disabled:he,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:xe}),maxCount:J?N:void 0,tagRender:J?I:void 0})))})),Ry=vv(Py);Py.SECRET_COMBOBOX_MODE_DO_NOT_USE=jy,Py.Option=Lh,Py.OptGroup=Hh,Py._InternalPanelDoNotUseOrYouWillBeFired=Ry;const zy=Py,{Option:Ty}=zy;function By(e){return(null===e||void 0===e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const Hy=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,className:i,popupClassName:l,dropdownClassName:c,children:u,dataSource:d}=e,f=s(u);let p;1===f.length&&o.isValidElement(f[0])&&!By(f[0])&&([p]=f);const m=p?()=>p:void 0;let g;g=f.length&&By(f[0])?u:d?d.map((e=>{if(o.isValidElement(e))return e;switch(typeof e){case"string":return o.createElement(Ty,{key:e,value:e},e);case"object":{const{value:t}=e;return o.createElement(Ty,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:v}=o.useContext(Be),h=v("select",r),[b]=tc("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return o.createElement(zy,Object.assign({ref:t,suffixIcon:null},Ce(e,["dataSource","dropdownClassName"]),{prefixCls:h,popupClassName:l||c,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:b}),className:a()(`${h}-auto-complete`,i),mode:zy.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:m}),g)})),Dy=vv(Hy);Hy.Option=Ty,Hy._InternalPanelDoNotUseOrYouWillBeFired=Dy;const Ly=Hy,Ay=["xxl","xl","lg","md","sm","xs"];function Fy(){const[,e]=ui(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Ay).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return r().useMemo((()=>{const e=new Map;let n=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null===o||void 0===o||o.mql.removeListener(null===o||void 0===o?void 0:o.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}const Wy=(e,t)=>{if(t&&"object"===typeof t)for(let n=0;n<Ay.length;n++){const o=Ay[n];if(e[o]&&void 0!==t[o])return t[o]}};function _y(){const[,e]=o.useReducer((e=>e+1),0);return e}const Vy=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,o.useRef)({}),n=_y(),r=Fy();return Rt((()=>{const o=r.subscribe((o=>{t.current=o,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current},qy=o.createContext({}),Ky=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:v}=e,h=(e,t,r)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Et(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),h(a,s,f)),{"&-lg":Object.assign({},h(l,u,p)),"&-sm":Object.assign({},h(c,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Xy=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},Gy=fi("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=xo(e,{avatarBg:n,avatarColor:t});return[Ky(o),Xy(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:r,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}}));var Yy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Uy=o.forwardRef(((e,t)=>{const[n,r]=o.useState(1),[i,l]=o.useState(!1),[c,s]=o.useState(!0),u=o.useRef(null),d=o.useRef(null),f=M(t,u),{getPrefixCls:p,avatar:m}=o.useContext(Be),g=o.useContext(qy),v=()=>{if(!d.current||!u.current)return;const t=d.current.offsetWidth,n=u.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&r(n-2*o<t?(n-2*o)/t:1)}};o.useEffect((()=>{l(!0)}),[]),o.useEffect((()=>{s(!0),r(1)}),[e.src]),o.useEffect(v,[e.gap]);const h=()=>{const{onError:t}=e;!1!==(null===t||void 0===t?void 0:t())&&s(!1)},{prefixCls:b,shape:y,size:C,src:x,srcSet:$,icon:w,className:S,rootClassName:E,alt:k,draggable:O,children:I,crossOrigin:N}=e,j=Yy(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=Bs((e=>{var t,n;return null!==(n=null!==(t=null!==C&&void 0!==C?C:null===g||void 0===g?void 0:g.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),R=Object.keys("object"===typeof P&&P||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),z=Vy(R),T=o.useMemo((()=>{if("object"!==typeof P)return{};const e=Ay.find((e=>z[e])),t=P[e];return t?{width:t,height:t,fontSize:t&&(w||I)?t/2:18}:{}}),[z,P]);const B=p("avatar",b),H=bl(B),[D,L,A]=Gy(B,H),F=a()({[`${B}-lg`]:"large"===P,[`${B}-sm`]:"small"===P}),W=o.isValidElement(x),_=y||(null===g||void 0===g?void 0:g.shape)||"circle",V=a()(B,F,null===m||void 0===m?void 0:m.className,`${B}-${_}`,{[`${B}-image`]:W||x&&c,[`${B}-icon`]:!!w},A,H,S,E,L),q="number"===typeof P?{width:P,height:P,fontSize:w?P/2:18}:{};let K;if("string"===typeof x&&c)K=o.createElement("img",{src:x,draggable:O,srcSet:$,onError:h,alt:k,crossOrigin:N});else if(W)K=x;else if(w)K=w;else if(i||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};K=o.createElement(ye,{onResize:v},o.createElement("span",{className:`${B}-string`,ref:d,style:Object.assign({},t)},I))}else K=o.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:d},I);return delete j.onError,delete j.gap,D(o.createElement("span",Object.assign({},j,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),T),null===m||void 0===m?void 0:m.style),j.style),className:V,ref:f}),K))}));const Qy=Uy,Zy=e=>e?"function"===typeof e?e():e:null;function Jy(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,l=e.className,c=e.style;return o.createElement("div",{className:a()("".concat(n,"-content"),l),style:c},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"===typeof t?t():t))}var eC={shiftX:64,adjustY:1},tC={adjustX:1,shiftY:!0},nC=[0,0],oC={left:{points:["cr","cl"],overflow:tC,offset:[-4,0],targetOffset:nC},right:{points:["cl","cr"],overflow:tC,offset:[4,0],targetOffset:nC},top:{points:["bc","tc"],overflow:eC,offset:[0,-4],targetOffset:nC},bottom:{points:["tc","bc"],overflow:eC,offset:[0,4],targetOffset:nC},topLeft:{points:["bl","tl"],overflow:eC,offset:[0,-4],targetOffset:nC},leftTop:{points:["tr","tl"],overflow:tC,offset:[-4,0],targetOffset:nC},topRight:{points:["br","tr"],overflow:eC,offset:[0,-4],targetOffset:nC},rightTop:{points:["tl","tr"],overflow:tC,offset:[4,0],targetOffset:nC},bottomRight:{points:["tr","br"],overflow:eC,offset:[0,4],targetOffset:nC},rightBottom:{points:["bl","br"],overflow:tC,offset:[4,0],targetOffset:nC},bottomLeft:{points:["tl","bl"],overflow:eC,offset:[0,4],targetOffset:nC},leftBottom:{points:["br","bl"],overflow:tC,offset:[-4,0],targetOffset:nC}};var rC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"];const iC=(0,o.forwardRef)((function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,c=void 0===a?0:a,s=e.mouseLeaveDelay,u=void 0===s?.1:s,d=e.overlayStyle,f=e.prefixCls,p=void 0===f?"rc-tooltip":f,m=e.children,g=e.onVisibleChange,v=e.afterVisibleChange,h=e.transitionName,b=e.animation,y=e.motion,C=e.placement,x=void 0===C?"right":C,w=e.align,S=void 0===w?{}:w,E=e.destroyTooltipOnHide,k=void 0!==E&&E,O=e.defaultVisible,I=e.getTooltipContainer,N=e.overlayInnerStyle,M=(e.arrowContent,e.overlay),j=e.id,P=e.showArrow,R=void 0===P||P,z=Si(e,rC),T=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return T.current}));var B=$({},z);"visible"in e&&(B.popupVisible=e.visible);return o.createElement(xh,l({popupClassName:n,prefixCls:p,popup:function(){return o.createElement(Jy,{key:"content",prefixCls:p,id:j,overlayInnerStyle:N},M)},action:i,builtinPlacements:oC,popupPlacement:x,ref:T,popupAlign:S,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:h,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:R},B),m)})),aC=iC;function lC(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),c=r-n*(1/Math.sqrt(2)),s=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-c,d=s,f=2*r-a,p=l,m=2*r-0,g=i,v=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),h=o*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${o} ${o} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*r-h}px 100%, ${h}px 100%)`}}const cC=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Et(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function sC(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function uC(e,t){return e?t:{}}function dC(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},cC(e,t,r)),{"&:before":{background:t}})]},uC(!!c.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Et(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),uC(!!c.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Et(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),uC(!!c.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),uC(!!c.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const fC={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"]}},pC={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"]}},mC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function gC(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(fC).forEach((e=>{const s=o&&pC[e]||fC[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,mC.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+r}const d=sC({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"===typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const vC=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function hC(e,t){return vC.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const bC=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,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":r,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Et(e.calc(s).div(2).equal())} ${Et(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),hC(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},dC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},yC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},sC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),lC(xo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),CC=function(e){const t=fi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=xo(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[bC(r),cg(e,"zoom-big-fast")]}),yC,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},xC=vC.map((e=>`${e}-inverse`)),$C=["success","processing","error","default","warning"];function wC(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Se(xC),Se(vC)).includes(e):vC.includes(e)}function SC(e,t){const n=wC(t),o=a()({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const EC=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:l,overlayInnerStyle:c}=e,{getPrefixCls:s}=o.useContext(Be),u=s("tooltip",t),[d,f,p]=CC(u),m=SC(u,l),g=m.arrowStyle,v=Object.assign(Object.assign({},c),m.overlayStyle),h=a()(f,p,u,`${u}-pure`,`${u}-placement-${r}`,n,m.className);return d(o.createElement("div",{className:h,style:g},o.createElement("div",{className:`${u}-arrow`}),o.createElement(Jy,Object.assign({},e,{className:f,prefixCls:u,overlayInnerStyle:v}),i)))};var kC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const OC=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:l,getTooltipContainer:c,overlayClassName:s,color:u,overlayInnerStyle:d,children:f,afterOpenChange:p,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:v=!0,title:h,overlay:b,builtinPlacements:y,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0}=e,$=!!v,[,w]=ui(),{getPopupContainer:S,getPrefixCls:E,direction:k}=o.useContext(Be),O=Pl("Tooltip"),I=o.useRef(null),N=()=>{var e;null===(e=I.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:null===(e=I.current)||void 0===e?void 0:e.nativeElement}}));const[M,j]=so(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!h&&!b&&0!==h,R=o.useMemo((()=>{var e,t;let n=C;return"object"===typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:C),y||gC({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:$?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[C,v,y,w]),z=o.useMemo((()=>0===h?h:b||h||""),[b,h]),T=o.createElement(om,{space:!0},"function"===typeof z?z():z),{getPopupContainer:B,placement:H="top",mouseEnterDelay:D=.1,mouseLeaveDelay:L=.1,overlayStyle:A,rootClassName:F}=e,W=kC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),_=E("tooltip",i),V=E(),q=e["data-popover-inject"];let K=M;"open"in e||"visible"in e||!P||(K=!1);const X=o.isValidElement(f)&&!Va(f)?f:o.createElement("span",null,f),G=X.props,Y=G.className&&"string"!==typeof G.className?G.className:a()(G.className,l||`${_}-open`),[U,Q,Z]=CC(_,!q),J=SC(_,u),ee=J.arrowStyle,te=Object.assign(Object.assign({},d),J.overlayStyle),ne=a()(s,{[`${_}-rtl`]:"rtl"===k},J.className,F,Q,Z),[oe,re]=tc("Tooltip",W.zIndex),ie=o.createElement(aC,Object.assign({},W,{zIndex:oe,showArrow:$,placement:H,mouseEnterDelay:D,mouseLeaveDelay:L,prefixCls:_,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),A),getTooltipContainer:B||c||S,ref:I,builtinPlacements:R,overlay:T,visible:K,onVisibleChange:t=>{var n,o;j(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!==p&&void 0!==p?p:m,overlayInnerStyle:te,arrowContent:o.createElement("span",{className:`${_}-arrow-content`}),motion:{motionName:ws(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),K?Ka(X,{className:Y}):X);return U(o.createElement(Ul.Provider,{value:re},ie))})),IC=OC;IC._InternalPanelDoNotUseOrYouWillBeFired=EC;const NC=IC,MC=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Ro(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:l,fontWeight:r,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},dC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},jC=e=>{const{componentCls:t}=e;return{[t]:vC.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},PC=fi("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=xo(e,{popoverBg:t,popoverColor:n});return[MC(o),jC(o),cg(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-o,p=f/2,m=f/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},lC(e)),sC({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var RC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zC=e=>{let{title:t,content:n,prefixCls:r}=e;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-title`},t),n&&o.createElement("div",{className:`${r}-inner-content`},n)):null},TC=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:l="top",title:c,content:s,children:u}=e,d=Zy(c),f=Zy(s),p=a()(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return o.createElement("div",{className:p,style:i},o.createElement("div",{className:`${n}-arrow`}),o.createElement(Jy,Object.assign({},e,{className:t,prefixCls:n}),u||o.createElement(zC,{prefixCls:n,title:d,content:f})))},BC=e=>{const{prefixCls:t,className:n}=e,r=RC(e,["prefixCls","className"]),{getPrefixCls:i}=o.useContext(Be),l=i("popover",t),[c,s,u]=PC(l);return c(o.createElement(TC,Object.assign({},r,{prefixCls:l,hashId:s,className:a()(n,u)})))};var HC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const DC=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,title:l,content:c,overlayClassName:s,placement:u="top",trigger:d="hover",children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:v={}}=e,h=HC(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:b}=o.useContext(Be),y=b("popover",i),[C,x,$]=PC(y),w=b(),S=a()(s,x,$),[E,k]=so(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),O=(e,t)=>{k(e,!0),null===g||void 0===g||g(e,t)},I=Zy(l),N=Zy(c);return C(o.createElement(NC,Object.assign({placement:u,trigger:d,mouseEnterDelay:p,mouseLeaveDelay:m,overlayStyle:v},h,{prefixCls:y,overlayClassName:S,ref:t,open:E,onOpenChange:e=>{O(e)},overlay:I||N?o.createElement(zC,{prefixCls:y,title:I,content:N}):null,transitionName:ws(w,"zoom-big",h.transitionName),"data-popover-inject":!0}),Ka(f,{onKeyDown:e=>{var t,n;o.isValidElement(f)&&(null===(n=null===f||void 0===f?void 0:(t=f.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===zl.ESC&&O(!1,e)})(e)}})))})),LC=DC;LC._InternalPanelDoNotUseOrYouWillBeFired=BC;const AC=LC,FC=e=>{const{size:t,shape:n}=o.useContext(qy),r=o.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return o.createElement(qy.Provider,{value:r},e.children)},WC=e=>{var t,n,r;const{getPrefixCls:i,direction:l}=o.useContext(Be),{prefixCls:c,className:u,rootClassName:d,style:f,maxCount:p,maxStyle:m,size:g,shape:v,maxPopoverPlacement:h,maxPopoverTrigger:b,children:y,max:C}=e;const x=i("avatar",c),$=`${x}-group`,w=bl(x),[S,E,k]=Gy(x,w),O=a()($,{[`${$}-rtl`]:"rtl"===l},k,w,u,d,E),I=s(y).map(((e,t)=>Ka(e,{key:`avatar-key-${t}`}))),N=(null===C||void 0===C?void 0:C.count)||p,M=I.length;if(N&&N<M){const e=I.slice(0,N),i=I.slice(N,M),l=(null===C||void 0===C?void 0:C.style)||m,c=(null===(t=null===C||void 0===C?void 0:C.popover)||void 0===t?void 0:t.trigger)||b||"hover",s=(null===(n=null===C||void 0===C?void 0:C.popover)||void 0===n?void 0:n.placement)||h||"top",u=Object.assign(Object.assign({content:i},null===C||void 0===C?void 0:C.popover),{overlayClassName:a()(`${$}-popover`,null===(r=null===C||void 0===C?void 0:C.popover)||void 0===r?void 0:r.overlayClassName),placement:s,trigger:c});return e.push(o.createElement(AC,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},u),o.createElement(Qy,{style:l},"+"+(M-N)))),S(o.createElement(FC,{shape:v,size:g},o.createElement("div",{className:O,style:f},e)))}return S(o.createElement(FC,{shape:v,size:g},o.createElement("div",{className:O,style:f},I)))},_C=Qy;_C.Group=WC;const VC=_C;const qC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const KC=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:qC}))})),XC=e=>{const{componentCls:t,backTopFontSize:n,backTopSize:o,zIndexPopup:r}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:r,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:o,height:o,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:o,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:Et(o)}})}},GC=e=>{const{componentCls:t,screenMD:n,screenXS:o,backTopInlineEndMD:r,backTopInlineEndXS:i}=e;return{[`@media (max-width: ${Et(n)})`]:{[t]:{insetInlineEnd:r}},[`@media (max-width: ${Et(o)})`]:{[t]:{insetInlineEnd:i}}}},YC=fi("BackTop",(e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:o,colorText:r,controlHeightLG:i,calc:a}=e,l=xo(e,{backTopBackground:n,backTopColor:o,backTopHoverBackground:r,backTopFontSize:t,backTopSize:i,backTopBlockEnd:a(i).mul(1.25).equal(),backTopInlineEnd:a(i).mul(2.5).equal(),backTopInlineEndMD:a(i).mul(1.5).equal(),backTopInlineEndXS:a(i).mul(.5).equal()});return[XC(l),GC(l)]}),(e=>({zIndexPopup:e.zIndexBase+10})));const UC=e=>{const{prefixCls:t,className:n,rootClassName:r,visibilityHeight:i=400,target:l,onClick:c,duration:s=450}=e,[u,d]=o.useState(0===i),f=o.useRef(null),p=()=>{var e;return(null===(e=f.current)||void 0===e?void 0:e.ownerDocument)||window},m=Pe((e=>{const t=vl(e.target);d(t>=i)}));o.useEffect((()=>{const e=(l||p)();return m({target:e}),null===e||void 0===e||e.addEventListener("scroll",m),()=>{m.cancel(),null===e||void 0===e||e.removeEventListener("scroll",m)}}),[l]);const{getPrefixCls:g,direction:v}=o.useContext(Be),h=g("back-top",t),b=g(),[y,C,x]=YC(h),$=a()(C,x,h,{[`${h}-rtl`]:"rtl"===v},n,r),w=Ce(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),S=o.createElement("div",{className:`${h}-content`},o.createElement("div",{className:`${h}-icon`},o.createElement(KC,null)));return y(o.createElement("div",Object.assign({},w,{className:$,onClick:e=>{hl(0,{getContainer:l||p,duration:s}),null===c||void 0===c||c(e)},ref:f}),o.createElement(Aa,{visible:u,motionName:`${b}-fade`},(t=>{let{className:n}=t;return Ka(e.children||S,(e=>{let{className:t}=e;return{className:a()(n,t)}}))}))))},QC=new Yn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),ZC=new Yn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),JC=new Yn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),ex=new Yn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),tx=new Yn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),nx=new Yn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ox=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return xo(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},rx=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}},ix=fi("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,m=`${o}-scroll-number`,g=hC(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:i,lineHeight:Et(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${Et(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:Et(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Et(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Et(r)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:nx,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:QC,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:ZC,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:JC,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:ex,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:tx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(ox(e))),rx),ax=fi(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=hC(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{position:"absolute",top:o,padding:`0 ${Et(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Et(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${Et(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(ox(e))),rx);const lx=e=>{const{className:t,prefixCls:n,style:r,color:i,children:l,text:c,placement:s="end",rootClassName:u}=e,{getPrefixCls:d,direction:f}=o.useContext(Be),p=d("ribbon",n),m=`${p}-wrapper`,[g,v,h]=ax(p,m),b=wC(i,!1),y=a()(p,`${p}-placement-${s}`,{[`${p}-rtl`]:"rtl"===f,[`${p}-color-${i}`]:b},t),C={},x={};return i&&!b&&(C.background=i,x.color=i),g(o.createElement("div",{className:a()(m,u,v,h)},l,o.createElement("div",{className:a()(y,v),style:Object.assign(Object.assign({},C),r)},o.createElement("span",{className:`${p}-text`},c),o.createElement("div",{className:`${p}-corner`,style:x}))))},cx=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let l;return i&&(l={position:"absolute",top:`${i}00%`,left:0}),o.createElement("span",{style:l,className:a()(`${t}-only-unit`,{current:r})},n)};function sx(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const ux=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[l,c]=o.useState(i),[s,u]=o.useState(a),d=()=>{c(i),u(a)};let f,p;if(o.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[o.createElement(cx,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const r=n.findIndex((e=>e%10===l));f=n.map(((t,n)=>{const i=t%10;return o.createElement(cx,Object.assign({},e,{key:t,value:i,offset:n-r,current:n===r}))}));p={transform:`translateY(${-sx(l,i,s<a?1:-1)}00%)`}}return o.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},f)};var dx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fx=o.forwardRef(((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:l,style:c,title:s,show:u,component:d="sup",children:f}=e,p=dx(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=o.useContext(Be),g=m("scroll-number",n),v=Object.assign(Object.assign({},p),{"data-show":u,style:c,className:a()(g,i,l),title:s});let h=r;if(r&&Number(r)%1===0){const e=String(r).split("");h=o.createElement("bdi",null,e.map(((t,n)=>o.createElement(ux,{prefixCls:g,count:Number(r),value:t,key:e.length-n}))))}return(null===c||void 0===c?void 0:c.borderColor)&&(v.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),f?Ka(f,(e=>({className:a()(`${g}-custom-component`,null===e||void 0===e?void 0:e.className,l)}))):o.createElement(d,Object.assign({},v,{ref:t}),h)})),px=fx;var mx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gx=o.forwardRef(((e,t)=>{var n,r,i,l,c;const{prefixCls:s,scrollNumberPrefixCls:u,children:d,status:f,text:p,color:m,count:g=null,overflowCount:v=99,dot:h=!1,size:b="default",title:y,offset:C,style:x,className:$,rootClassName:w,classNames:S,styles:E,showZero:k=!1}=e,O=mx(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:I,direction:N,badge:M}=o.useContext(Be),j=I("badge",s),[P,R,z]=ix(j),T=g>v?`${v}+`:g,B="0"===T||0===T,H=(null!==f&&void 0!==f||null!==m&&void 0!==m)&&(null===g||B&&!k),D=h&&!B,L=D?"":T,A=(0,o.useMemo)((()=>(null===L||void 0===L||""===L||B&&!k)&&!D),[L,B,k,D]),F=(0,o.useRef)(g);A||(F.current=g);const W=F.current,_=(0,o.useRef)(L);A||(_.current=L);const V=_.current,q=(0,o.useRef)(D);A||(q.current=D);const K=(0,o.useMemo)((()=>{if(!C)return Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),x);const e={marginTop:C[1]};return"rtl"===N?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null===M||void 0===M?void 0:M.style),x)}),[N,C,x,null===M||void 0===M?void 0:M.style]),X=null!==y&&void 0!==y?y:"string"===typeof W||"number"===typeof W?W:void 0,G=A||!p?null:o.createElement("span",{className:`${j}-status-text`},p),Y=W&&"object"===typeof W?Ka(W,(e=>({style:Object.assign(Object.assign({},K),e.style)}))):void 0,U=wC(m,!1),Q=a()(null===S||void 0===S?void 0:S.indicator,null===(n=null===M||void 0===M?void 0:M.classNames)||void 0===n?void 0:n.indicator,{[`${j}-status-dot`]:H,[`${j}-status-${f}`]:!!f,[`${j}-color-${m}`]:U}),Z={};m&&!U&&(Z.color=m,Z.background=m);const J=a()(j,{[`${j}-status`]:H,[`${j}-not-a-wrapper`]:!d,[`${j}-rtl`]:"rtl"===N},$,w,null===M||void 0===M?void 0:M.className,null===(r=null===M||void 0===M?void 0:M.classNames)||void 0===r?void 0:r.root,null===S||void 0===S?void 0:S.root,R,z);if(!d&&H){const e=K.color;return P(o.createElement("span",Object.assign({},O,{className:J,style:Object.assign(Object.assign(Object.assign({},null===E||void 0===E?void 0:E.root),null===(i=null===M||void 0===M?void 0:M.styles)||void 0===i?void 0:i.root),K)}),o.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null===E||void 0===E?void 0:E.indicator),null===(l=null===M||void 0===M?void 0:M.styles)||void 0===l?void 0:l.indicator),Z)}),p&&o.createElement("span",{style:{color:e},className:`${j}-status-text`},p)))}return P(o.createElement("span",Object.assign({ref:t},O,{className:J,style:Object.assign(Object.assign({},null===(c=null===M||void 0===M?void 0:M.styles)||void 0===c?void 0:c.root),null===E||void 0===E?void 0:E.root)}),d,o.createElement(Aa,{visible:!A,motionName:`${j}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,r;const i=I("scroll-number",u),l=q.current,c=a()(null===S||void 0===S?void 0:S.indicator,null===(n=null===M||void 0===M?void 0:M.classNames)||void 0===n?void 0:n.indicator,{[`${j}-dot`]:l,[`${j}-count`]:!l,[`${j}-count-sm`]:"small"===b,[`${j}-multiple-words`]:!l&&V&&V.toString().length>1,[`${j}-status-${f}`]:!!f,[`${j}-color-${m}`]:U});let s=Object.assign(Object.assign(Object.assign({},null===E||void 0===E?void 0:E.indicator),null===(r=null===M||void 0===M?void 0:M.styles)||void 0===r?void 0:r.indicator),K);return m&&!U&&(s=s||{},s.background=m),o.createElement(px,{prefixCls:i,show:!A,motionClassName:t,className:c,count:V,title:X,style:s,key:"scrollNumber"},Y)})),G))})),vx=gx;vx.Ribbon=lx;const hx=vx;var bx=zl.ESC,yx=zl.TAB;const Cx=(0,o.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,a=e.prefixCls,l=(0,o.useMemo)((function(){return"function"===typeof n?n():n}),[n]),c=M(t,null===l||void 0===l?void 0:l.ref);return r().createElement(r().Fragment,null,i&&r().createElement("div",{className:"".concat(a,"-arrow")}),r().cloneElement(l,{ref:P(l)?c:void 0}))}));var xx={adjustX:1,adjustY:1},$x=[0,0];const wx={topLeft:{points:["bl","tl"],overflow:xx,offset:[0,-4],targetOffset:$x},top:{points:["bc","tc"],overflow:xx,offset:[0,-4],targetOffset:$x},topRight:{points:["br","tr"],overflow:xx,offset:[0,-4],targetOffset:$x},bottomLeft:{points:["tl","bl"],overflow:xx,offset:[0,4],targetOffset:$x},bottom:{points:["tc","bc"],overflow:xx,offset:[0,4],targetOffset:$x},bottomRight:{points:["tr","br"],overflow:xx,offset:[0,4],targetOffset:$x}};var Sx=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const Ex=r().forwardRef((function(e,t){var n,i=e.arrow,c=void 0!==i&&i,s=e.prefixCls,u=void 0===s?"rc-dropdown":s,d=e.transitionName,f=e.animation,p=e.align,m=e.placement,g=void 0===m?"bottomLeft":m,v=e.placements,h=void 0===v?wx:v,b=e.getPopupContainer,y=e.showAction,x=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,S=e.visible,E=e.trigger,k=void 0===E?["hover"]:E,O=e.autoFocus,I=e.overlay,N=e.children,j=e.onVisibleChange,R=Si(e,Sx),z=Ae(r().useState(),2),T=z[0],B=z[1],H="visible"in e?S:T,D=r().useRef(null),L=r().useRef(null),A=r().useRef(null);r().useImperativeHandle(t,(function(){return D.current}));var F=function(e){B(e),null===j||void 0===j||j(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=o.useRef(!1),c=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null===r||void 0===r||r(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus)&&(a.current.focus(),l.current=!0,!0)},u=function(e){switch(e.keyCode){case bx:c();break;case yx:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&je(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:H,triggerRef:A,onVisibleChange:F,autoFocus:O,overlayRef:L});var W=function(){return r().createElement(Cx,{ref:L,overlay:I,prefixCls:u,arrow:c})},_=r().cloneElement(N,{className:a()(null===(n=N.props)||void 0===n?void 0:n.className,H&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(u,"-open")}()),ref:P(N)?M(A,N.ref):void 0}),V=x;return V||-1===k.indexOf("contextMenu")||(V=["click"]),r().createElement(xh,l({builtinPlacements:h},R,{prefixCls:u,ref:D,popupClassName:a()($,C({},"".concat(u,"-show-arrow"),c)),popupStyle:w,action:k,showAction:y,hideAction:V,popupPlacement:g,popupAlign:p,popupTransitionName:d,popupAnimation:f,popupVisible:H,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof I?W:W(),onPopupVisibleChange:F,onPopupClick:function(t){var n=e.onOverlayClick;B(!1),n&&n(t)},getPopupContainer:b}),_)})),kx=Ex;var Ox=o.createContext(null);function Ix(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Nx(e){return Ix(o.useContext(Ox),e)}var Mx=["children","locked"],jx=o.createContext(null);function Px(e){var t=e.children,n=e.locked,r=Si(e,Mx),i=o.useContext(jx),a=I((function(){return function(e,t){var n=$({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(i,r)}),[i,r],(function(e,t){return!n&&(e[0]!==t[0]||!et(e[1],t[1],!0))}));return o.createElement(jx.Provider,{value:a},t)}var Rx=o.createContext(null);function zx(){return o.useContext(Rx)}var Tx=o.createContext([]);function Bx(e){var t=o.useContext(Tx);return o.useMemo((function(){return void 0!==e?[].concat(Se(t),[e]):t}),[t,e])}var Hx=o.createContext(null);const Dx=o.createContext({});function Lx(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ks(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function Ax(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Se(e.querySelectorAll("*")).filter((function(e){return Lx(e,t)}));return Lx(e,t)&&n.unshift(e),n}var Fx=zl.LEFT,Wx=zl.RIGHT,_x=zl.UP,Vx=zl.DOWN,qx=zl.ENTER,Kx=zl.ESC,Xx=zl.HOME,Gx=zl.END,Yx=[_x,Vx,Fx,Wx];function Ux(e,t){return Ax(e,!0).filter((function(e){return t.has(e)}))}function Qx(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Ux(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var Zx=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Ix(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function Jx(e,t,n,r,i,a,l,c,s,u){var d=o.useRef(),f=o.useRef();f.current=t;var p=function(){je.cancel(d.current)};return o.useEffect((function(){return function(){p()}}),[]),function(o){var m=o.which;if([].concat(Yx,[qx,Kx,Xx,Gx]).includes(m)){var g=a(),v=Zx(g,r),h=v,b=h.elements,y=h.key2element,x=h.element2key,$=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),w=x.get($),S=function(e,t,n,o){var r,i="prev",a="next",l="children",c="parent";if("inline"===e&&o===qx)return{inlineTrigger:!0};var s=C(C({},_x,i),Vx,a),u=C(C(C(C({},Fx,n?a:i),Wx,n?i:a),Vx,l),qx,l),d=C(C(C(C(C(C({},_x,i),Vx,a),qx,l),Kx,c),Fx,n?l:c),Wx,n?c:l);switch(null===(r={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===r?void 0:r[o]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(w,!0).length,n,m);if(!S&&m!==Xx&&m!==Gx)return;(Yx.includes(m)||[Xx,Gx].includes(m))&&o.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var o=x.get(e);c(o),p(),d.current=je((function(){f.current===o&&t.focus()}))}};if([Xx,Gx].includes(m)||S.sibling||!$){var k,O,I=Ux(k=$&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}($):i.current,b);O=m===Xx?I[0]:m===Gx?I[I.length-1]:Qx(k,b,$,S.offset),E(O)}else if(S.inlineTrigger)s(w);else if(S.offset>0)s(w,!0),p(),d.current=je((function(){v=Zx(g,r);var e=$.getAttribute("aria-controls"),t=Qx(document.getElementById(e),v.elements);E(t)}),5);else if(S.offset<0){var N=l(w,!0),M=N[N.length-2],j=y.get(M);s(M,!1),E(j)}}null===u||void 0===u||u(o)}}var e$="__RC_UTIL_PATH_SPLIT__",t$=function(e){return e.join(e$)},n$="rc-menu-more";function o$(){var e=Ae(o.useState({}),2)[1],t=(0,o.useRef)(new Map),n=(0,o.useRef)(new Map),r=Ae(o.useState([]),2),i=r[0],a=r[1],l=(0,o.useRef)(0),c=(0,o.useRef)(!1),s=(0,o.useCallback)((function(o,r){var i=t$(r);n.current.set(i,o),t.current.set(o,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,o.useCallback)((function(e,o){var r=t$(o);n.current.delete(r),t.current.delete(e)}),[]),d=(0,o.useCallback)((function(e){a(e)}),[]),f=(0,o.useCallback)((function(e,n){var o=t.current.get(e)||"",r=o.split(e$);return n&&i.includes(r[0])&&r.unshift(n$),r}),[i]),p=(0,o.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,o.useCallback)((function(e){var o="".concat(t.current.get(e)).concat(e$),r=new Set;return Se(n.current.keys()).forEach((function(e){e.startsWith(o)&&r.add(n.current.get(e))})),r}),[]);return o.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=Se(t.current.keys());return i.length&&e.push(n$),e},getSubPathKeys:m}}function r$(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var i$=Math.random().toFixed(5).toString().slice(2),a$=0;function l$(e,t,n,r){var i=o.useContext(jx),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),c(e)}),s}function c$(e){var t=o.useContext(jx),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function s$(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"===typeof n?t=o.createElement(n,$({},r)):"boolean"!==typeof n&&(t=n),t||i||null)}var u$=["item"];function d$(e){var t=e.item,n=Si(e,u$);return Object.defineProperty(n,"item",{get:function(){return h(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var f$=["title","attribute","elementRef"],p$=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],m$=["active"],g$=function(e){se(n,e);var t=me(n);function n(){return ie(this,n),t.apply(this,arguments)}return le(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=Ce(Si(e,f$),["eventKey","popupClassName","popupOffset","onTitleClick"]);return h(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(Lv.Item,l({},n,{title:"string"===typeof t?t:void 0},i,{ref:r}))}}]),n}(o.Component),v$=o.forwardRef((function(e,t){var n=e.style,r=e.className,i=e.eventKey,c=(e.warnKey,e.disabled),s=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,p=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,v=e.onFocus,h=Si(e,p$),b=Nx(i),y=o.useContext(jx),x=y.prefixCls,w=y.onItemClick,S=y.disabled,E=y.overflowDisabled,k=y.itemIcon,O=y.selectedKeys,I=y.onActive,N=o.useContext(Dx)._internalRenderMenuItem,M="".concat(x,"-item"),P=o.useRef(),R=o.useRef(),z=S||c,T=j(t,R),B=Bx(i);var H=function(e){return{key:i,keyPath:Se(B).reverse(),item:P.current,domEvent:e}},D=s||k,L=l$(i,z,f,p),A=L.active,F=Si(L,m$),W=O.includes(i),_=c$(B.length),V={};"option"===e.role&&(V["aria-selected"]=W);var q=o.createElement(g$,l({ref:P,elementRef:T,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":E&&b?null:b},h,F,V,{component:"li","aria-disabled":c,style:$($({},_),n),className:a()(M,C(C(C({},"".concat(M,"-active"),A),"".concat(M,"-selected"),W),"".concat(M,"-disabled"),z),r),onClick:function(e){if(!z){var t=H(e);null===m||void 0===m||m(d$(t)),w(t)}},onKeyDown:function(e){if(null===g||void 0===g||g(e),e.which===zl.ENTER){var t=H(e);null===m||void 0===m||m(d$(t)),w(t)}},onFocus:function(e){I(i),null===v||void 0===v||v(e)}}),u,o.createElement(s$,{props:$($({},e),{},{isSelected:W}),icon:D}));return N&&(q=N(q,e,{selected:W})),q}));const h$=o.forwardRef((function(e,t){var n=e.eventKey,r=zx(),i=Bx(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement(v$,l({},e,{ref:t}))}));var b$=["className","children"],y$=o.forwardRef((function(e,t){var n=e.className,r=e.children,i=Si(e,b$),c=o.useContext(jx),s=c.prefixCls,u=c.mode,d=c.rtl;return o.createElement("ul",l({className:a()(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===u?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)}));y$.displayName="SubMenuList";const C$=y$;function x$(e,t){return s(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,l=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a;(null===l||void 0===l)&&(l="tmp_key-".concat([].concat(Se(t),[n]).join("-")));var c={key:l,eventKey:l};return o.cloneElement(e,c)}return e}))}var $$={adjustX:1,adjustY:1},w$={topLeft:{points:["bl","tl"],overflow:$$},topRight:{points:["br","tr"],overflow:$$},bottomLeft:{points:["tl","bl"],overflow:$$},bottomRight:{points:["tr","br"],overflow:$$},leftTop:{points:["tr","tl"],overflow:$$},leftBottom:{points:["br","bl"],overflow:$$},rightTop:{points:["tl","tr"],overflow:$$},rightBottom:{points:["bl","br"],overflow:$$}},S$={topLeft:{points:["bl","tl"],overflow:$$},topRight:{points:["br","tr"],overflow:$$},bottomLeft:{points:["tl","bl"],overflow:$$},bottomRight:{points:["tr","br"],overflow:$$},rightTop:{points:["tr","tl"],overflow:$$},rightBottom:{points:["br","bl"],overflow:$$},leftTop:{points:["tl","tr"],overflow:$$},leftBottom:{points:["bl","br"],overflow:$$}};function E$(e,t,n){return t||(n?n[e]||n.other:void 0)}var k$={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function O$(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,l=e.popupStyle,c=e.popupClassName,s=e.popupOffset,u=e.disabled,d=e.mode,f=e.onVisibleChange,p=o.useContext(jx),m=p.getPopupContainer,g=p.rtl,v=p.subMenuOpenDelay,h=p.subMenuCloseDelay,b=p.builtinPlacements,y=p.triggerSubMenuAction,x=p.forceSubMenuRender,w=p.rootClassName,S=p.motion,E=p.defaultMotions,k=Ae(o.useState(!1),2),O=k[0],I=k[1],N=$($({},g?S$:w$),b),M=k$[d],j=E$(d,S,E),P=o.useRef(j);"inline"!==d&&(P.current=j);var R=$($({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),z=o.useRef();return o.useEffect((function(){return z.current=je((function(){I(n)})),function(){je.cancel(z.current)}}),[n]),o.createElement(xh,{prefixCls:t,popupClassName:a()("".concat(t,"-popup"),C({},"".concat(t,"-rtl"),g),c,w),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:m,builtinPlacements:N,popupPlacement:M,popupVisible:O,popup:i,popupStyle:l,popupAlign:s&&{offset:s},action:u?[]:[y],mouseEnterDelay:v,mouseLeaveDelay:h,onPopupVisibleChange:f,forceRender:x,popupMotion:R,fresh:!0},r)}function I$(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",c=o.useContext(jx),s=c.prefixCls,u=c.forceSubMenuRender,d=c.motion,f=c.defaultMotions,p=c.mode,m=o.useRef(!1);m.current=p===a;var g=Ae(o.useState(!m.current),2),v=g[0],h=g[1],b=!!m.current&&n;o.useEffect((function(){m.current&&h(!1)}),[p]);var y=$({},E$(a,d,f));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(e){return m.current||e||h(!0),null===C||void 0===C?void 0:C(e)},v?null:o.createElement(Px,{mode:a,locked:!m.current},o.createElement(Aa,l({visible:b},y,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(C$,{id:t,className:n,style:r},i)})))}var N$=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],M$=["active"],j$=o.forwardRef((function(e,t){var n=e.style,r=e.className,i=e.title,c=e.eventKey,s=(e.warnKey,e.disabled),u=e.internalPopupClose,d=e.children,f=e.itemIcon,p=e.expandIcon,m=e.popupClassName,g=e.popupOffset,v=e.popupStyle,h=e.onClick,b=e.onMouseEnter,y=e.onMouseLeave,x=e.onTitleClick,w=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=Si(e,N$),k=Nx(c),O=o.useContext(jx),I=O.prefixCls,N=O.mode,M=O.openKeys,j=O.disabled,P=O.overflowDisabled,R=O.activeKey,z=O.selectedKeys,T=O.itemIcon,B=O.expandIcon,H=O.onItemClick,D=O.onOpenChange,L=O.onActive,A=o.useContext(Dx)._internalRenderSubMenuItem,F=o.useContext(Hx).isSubPathKey,W=Bx(),_="".concat(I,"-submenu"),V=j||s,q=o.useRef(),K=o.useRef();var X=null!==f&&void 0!==f?f:T,G=null!==p&&void 0!==p?p:B,Y=M.includes(c),U=!P&&Y,Q=F(z,c),Z=l$(c,V,w,S),J=Z.active,ee=Si(Z,M$),te=Ae(o.useState(!1),2),ne=te[0],oe=te[1],re=function(e){V||oe(e)},ie=o.useMemo((function(){return J||"inline"!==N&&(ne||F([R],c))}),[N,J,R,ne,c,F]),ae=c$(W.length),le=r$((function(e){null===h||void 0===h||h(d$(e)),H(e)})),ce=k&&"".concat(k,"-popup"),se=o.createElement("div",l({role:"menuitem",style:ae,className:"".concat(_,"-title"),tabIndex:V?null:-1,ref:q,title:"string"===typeof i?i:null,"data-menu-id":P&&k?null:k,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":V,onClick:function(e){V||(null===x||void 0===x||x({key:c,domEvent:e}),"inline"===N&&D(c,!Y))},onFocus:function(){L(c)}},ee),i,o.createElement(s$,{icon:"horizontal"!==N?G:void 0,props:$($({},e),{},{isOpen:U,isSubMenu:!0})},o.createElement("i",{className:"".concat(_,"-arrow")}))),ue=o.useRef(N);if("inline"!==N&&W.length>1?ue.current="vertical":ue.current=N,!P){var de=ue.current;se=o.createElement(O$,{mode:de,prefixCls:_,visible:!u&&U&&"inline"!==N,popupClassName:m,popupOffset:g,popupStyle:v,popup:o.createElement(Px,{mode:"horizontal"===de?"vertical":de},o.createElement(C$,{id:ce,ref:K},d)),disabled:V,onVisibleChange:function(e){"inline"!==N&&D(c,e)}},se)}var fe=o.createElement(Lv.Item,l({ref:t,role:"none"},E,{component:"li",style:n,className:a()(_,"".concat(_,"-").concat(N),r,C(C(C(C({},"".concat(_,"-open"),U),"".concat(_,"-active"),ie),"".concat(_,"-selected"),Q),"".concat(_,"-disabled"),V)),onMouseEnter:function(e){re(!0),null===b||void 0===b||b({key:c,domEvent:e})},onMouseLeave:function(e){re(!1),null===y||void 0===y||y({key:c,domEvent:e})}}),se,!P&&o.createElement(I$,{id:ce,open:U,keyPath:W},d));return A&&(fe=A(fe,e,{selected:Q,active:ie,open:U,disabled:V})),o.createElement(Px,{onItemClick:le,mode:"horizontal"===N?"vertical":N,itemIcon:X,expandIcon:G},fe)}));const P$=o.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=Bx(r),c=x$(i,a),s=zx();return o.useEffect((function(){if(s)return s.registerPath(r,a),function(){s.unregisterPath(r,a)}}),[a]),n=s?c:o.createElement(j$,l({ref:t},e),c),o.createElement(Tx.Provider,{value:a},n)}));function R$(e){var t=e.className,n=e.style,r=o.useContext(jx).prefixCls;return zx()?null:o.createElement("li",{role:"separator",className:a()("".concat(r,"-item-divider"),t),style:n})}var z$=["className","title","eventKey","children"],T$=o.forwardRef((function(e,t){var n=e.className,r=e.title,i=(e.eventKey,e.children),c=Si(e,z$),s=o.useContext(jx).prefixCls,u="".concat(s,"-item-group");return o.createElement("li",l({ref:t,role:"presentation"},c,{onClick:function(e){return e.stopPropagation()},className:a()(u,n)}),o.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"===typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:"".concat(u,"-list")},i))}));const B$=o.forwardRef((function(e,t){var n=e.eventKey,r=x$(e.children,Bx(n));return zx()?r:o.createElement(T$,l({ref:t},Ce(e,["warnKey"])),r)}));var H$=["label","children","key","type","extra"];function D$(e,t,n){var r=t.item,i=t.group,a=t.submenu,c=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===b(e)){var u=e,d=u.label,f=u.children,p=u.key,m=u.type,g=u.extra,v=Si(u,H$),h=null!==p&&void 0!==p?p:"tmp-".concat(s);return f||"group"===m?"group"===m?o.createElement(i,l({key:h},v,{title:d}),D$(f,t,n)):o.createElement(a,l({key:h},v,{title:d}),D$(f,t,n)):"divider"===m?o.createElement(c,l({key:h},v)):o.createElement(r,l({key:h},v),d,(!!g||0===g)&&o.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null})).filter((function(e){return e}))}function L$(e,t,n,o,r){var i=e,a=$({divider:R$,item:h$,group:B$,submenu:P$},o);return t&&(i=D$(t,a,r)),x$(i,n)}var A$=["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"],F$=[],W$=o.forwardRef((function(e,t){var n,r=e,i=r.prefixCls,c=void 0===i?"rc-menu":i,s=r.rootClassName,u=r.style,d=r.className,f=r.tabIndex,p=void 0===f?0:f,m=r.items,g=r.children,v=r.direction,h=r.id,b=r.mode,y=void 0===b?"vertical":b,x=r.inlineCollapsed,S=r.disabled,E=r.disabledOverflow,k=r.subMenuOpenDelay,O=void 0===k?.1:k,I=r.subMenuCloseDelay,N=void 0===I?.1:I,M=r.forceSubMenuRender,j=r.defaultOpenKeys,P=r.openKeys,R=r.activeKey,z=r.defaultActiveFirst,T=r.selectable,B=void 0===T||T,H=r.multiple,D=void 0!==H&&H,L=r.defaultSelectedKeys,A=r.selectedKeys,F=r.onSelect,W=r.onDeselect,_=r.inlineIndent,V=void 0===_?24:_,q=r.motion,K=r.defaultMotions,X=r.triggerSubMenuAction,G=void 0===X?"hover":X,Y=r.builtinPlacements,U=r.itemIcon,Q=r.expandIcon,Z=r.overflowedIndicator,J=void 0===Z?"...":Z,ee=r.overflowedIndicatorPopupClassName,te=r.getPopupContainer,ne=r.onClick,oe=r.onOpenChange,re=r.onKeyDown,ie=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ae=r._internalRenderSubMenuItem,le=r._internalComponents,ce=Si(r,A$),se=Ae(o.useMemo((function(){return[L$(g,m,F$,le,c),L$(g,m,F$,{},c)]}),[g,m,le]),2),ue=se[0],de=se[1],fe=Ae(o.useState(!1),2),pe=fe[0],me=fe[1],ge=o.useRef(),ve=function(e){var t=Ae(so(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){a$+=1;var e="".concat(i$,"-").concat(a$);r("rc-menu-uuid-".concat(e))}),[]),n}(h),he="rtl"===v;var be=so(j,{value:P,postState:function(e){return e||F$}}),ye=Ae(be,2),Ce=ye[0],xe=ye[1],$e=function(e){function t(){xe(e),null===oe||void 0===oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,w.flushSync)(t):t()},we=Ae(o.useState(Ce),2),Ee=we[0],ke=we[1],Oe=o.useRef(!1),Ie=Ae(o.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),Ne=Ie[0],Me=Ie[1],je="inline"===Ne,Pe=Ae(o.useState(Ne),2),Re=Pe[0],ze=Pe[1],Te=Ae(o.useState(Me),2),Be=Te[0],He=Te[1];o.useEffect((function(){ze(Ne),He(Me),Oe.current&&(je?xe(Ee):$e(F$))}),[Ne,Me]);var De=Ae(o.useState(0),2),Le=De[0],Fe=De[1],We=Le>=ue.length-1||"horizontal"!==Re||E;o.useEffect((function(){je&&ke(Ce)}),[Ce]),o.useEffect((function(){return Oe.current=!0,function(){Oe.current=!1}}),[]);var _e=o$(),Ve=_e.registerPath,qe=_e.unregisterPath,Ke=_e.refreshOverflowKeys,Xe=_e.isSubPathKey,Ge=_e.getKeyPath,Ye=_e.getKeys,Ue=_e.getSubPathKeys,Qe=o.useMemo((function(){return{registerPath:Ve,unregisterPath:qe}}),[Ve,qe]),Ze=o.useMemo((function(){return{isSubPathKey:Xe}}),[Xe]);o.useEffect((function(){Ke(We?F$:ue.slice(Le+1).map((function(e){return e.key})))}),[Le,We]);var Je=Ae(so(R||z&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:R}),2),tt=Je[0],nt=Je[1],ot=r$((function(e){nt(e)})),rt=r$((function(){nt(void 0)}));(0,o.useImperativeHandle)(t,(function(){return{list:ge.current,focus:function(e){var t,n,o=Ye(),r=Zx(o,ve),i=r.elements,a=r.key2element,l=r.element2key,c=Ux(ge.current,i),s=null!==tt&&void 0!==tt?tt:c[0]?l.get(c[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var it=so(L||[],{value:A,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?F$:[e]}}),at=Ae(it,2),lt=at[0],ct=at[1],st=r$((function(e){null===ne||void 0===ne||ne(d$(e)),function(e){if(B){var t,n=e.key,o=lt.includes(n);t=D?o?lt.filter((function(e){return e!==n})):[].concat(Se(lt),[n]):[n],ct(t);var r=$($({},e),{},{selectedKeys:t});o?null===W||void 0===W||W(r):null===F||void 0===F||F(r)}!D&&Ce.length&&"inline"!==Re&&$e(F$)}(e)})),ut=r$((function(e,t){var n=Ce.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var o=Ue(e);n=n.filter((function(e){return!o.has(e)}))}et(Ce,n,!0)||$e(n,!0)})),dt=Jx(Re,tt,he,ve,ge,Ye,Ge,nt,(function(e,t){var n=null!==t&&void 0!==t?t:!Ce.includes(e);ut(e,n)}),re);o.useEffect((function(){me(!0)}),[]);var ft=o.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}}),[ie,ae]),pt="horizontal"!==Re||E?ue:ue.map((function(e,t){return o.createElement(Px,{key:e.key,overflowDisabled:t>Le},e)})),mt=o.createElement(Lv,l({id:h,ref:ge,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:h$,className:a()(c,"".concat(c,"-root"),"".concat(c,"-").concat(Re),d,C(C({},"".concat(c,"-inline-collapsed"),Be),"".concat(c,"-rtl"),he),s),dir:v,style:u,role:"menu",tabIndex:p,data:pt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return o.createElement(P$,{eventKey:n$,title:J,disabled:We,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Re||E?Lv.INVALIDATE:Lv.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Fe(e)},onKeyDown:dt},ce));return o.createElement(Dx.Provider,{value:ft},o.createElement(Ox.Provider,{value:ve},o.createElement(Px,{prefixCls:c,rootClassName:s,mode:Re,openKeys:Ce,rtl:he,disabled:S,motion:pe?q:null,defaultMotions:pe?K:null,activeKey:tt,onActive:ot,onInactive:rt,selectedKeys:lt,inlineIndent:V,subMenuOpenDelay:O,subMenuCloseDelay:N,forceSubMenuRender:M,builtinPlacements:Y,triggerSubMenuAction:G,getPopupContainer:te,itemIcon:U,expandIcon:Q,onItemClick:st,onOpenChange:ut},o.createElement(Hx.Provider,{value:Ze},mt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Rx.Provider,{value:Qe},de)))))}));var _$=W$;_$.Item=h$,_$.SubMenu=P$,_$.ItemGroup=B$,_$.Divider=R$;const V$=_$;const q$={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const K$=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:q$}))}));const X$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const G$=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:X$}))})),Y$=e=>!isNaN(parseFloat(e))&&isFinite(e),U$=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Q$=e=>{const{antCls:t,componentCls:n,colorText:o,footerBg:r,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:Et(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:o,fontSize:s,background:r},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}},Z$=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:r,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:r}},J$=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],ew=fi("Layout",(e=>[Q$(e)]),Z$,{deprecatedTokens:J$}),tw=e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:Et(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${o}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},nw=fi(["Layout","Sider"],(e=>[tw(e)]),Z$,{deprecatedTokens:J$});var ow=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rw={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},iw=o.createContext({}),aw=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),lw=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:v,onCollapse:h,onBreakpoint:b}=e,y=ow(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=(0,o.useContext)(U$),[x,$]=(0,o.useState)("collapsed"in e?e.collapsed:c),[w,S]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&$(e.collapsed)}),[e.collapsed]);const E=(t,n)=>{"collapsed"in e||$(t),null===h||void 0===h||h(t,n)},{getPrefixCls:k}=(0,o.useContext)(Be),O=k("layout-sider",n),[I,N,M]=nw(O),j=(0,o.useRef)();j.current=e=>{S(e.matches),null===b||void 0===b||b(e.matches),x!==e.matches&&E(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return j.current(e)}let t;if("undefined"!==typeof window){const{matchMedia:o}=window;if(o&&v&&v in rw){t=o(`screen and (max-width: ${rw[v]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null===t||void 0===t||t.removeEventListener("change",e)}catch(n){null===t||void 0===t||t.removeListener(e)}}}),[v]),(0,o.useEffect)((()=>{const e=aw("ant-sider-");return C.addSider(e),()=>C.removeSider(e)}),[]);const P=()=>{E(!x,"clickTrigger")},R=o.useMemo((()=>({siderCollapsed:x})),[x]);return I(o.createElement(iw.Provider,{value:R},(()=>{const e=Ce(y,["collapsed"]),n=x?m:p,c=Y$(n)?`${n}px`:String(n),v=0===parseFloat(String(m||0))?o.createElement("span",{onClick:P,className:a()(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${f?"right":"left"}`),style:g},i||o.createElement(K$,null)):null,h={expanded:f?o.createElement(Du,null):o.createElement(G$,null),collapsed:f?o.createElement(G$,null):o.createElement(Du,null)}[x?"collapsed":"expanded"],b=null!==i?v||o.createElement("div",{className:`${O}-trigger`,onClick:P,style:{width:c}},i||h):null,C=Object.assign(Object.assign({},u),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),$=a()(O,`${O}-${s}`,{[`${O}-collapsed`]:!!x,[`${O}-has-trigger`]:d&&null!==i&&!v,[`${O}-below`]:!!w,[`${O}-zero-width`]:0===parseFloat(c)},r,N,M);return o.createElement("aside",Object.assign({className:$},e,{style:C,ref:t}),o.createElement("div",{className:`${O}-children`},l),d||w&&v?b:null)})()))}));const cw=lw;const sw={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"};const uw=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:sw}))})),dw=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var fw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pw=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=fw(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=o.useContext(Be),c=l("menu",t),s=a()({[`${c}-item-divider-dashed`]:!!r},n);return o.createElement(R$,Object.assign({className:s},i))},mw=e=>{var t;const{className:n,children:r,icon:i,title:l,danger:c}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=o.useContext(dw),{siderCollapsed:g}=o.useContext(iw);let v=l;"undefined"===typeof l?v=d?r:"":!1===l&&(v="");const h={title:v};g||m||(h.title=null,h.open=!1);const b=s(r).length;let y=o.createElement(h$,Object.assign({},Ce(e,["title","icon","danger"]),{className:a()({[`${u}-item-danger`]:c,[`${u}-item-only-child`]:1===(i?b+1:b)},n),title:"string"===typeof l?l:void 0}),Ka(i,{className:a()(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${u}-item-icon`)}),(e=>{const t=null===r||void 0===r?void 0:r[0],n=o.createElement("span",{className:`${u}-title-content`},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&d&&"string"===typeof t?o.createElement("div",{className:`${u}-inline-collapsed-noicon`},t.charAt(0)):n})(m));return p||(y=o.createElement(NC,Object.assign({},h,{placement:"rtl"===f?"left":"right",overlayClassName:`${u}-inline-collapsed-tooltip`}),y)),y};var gw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vw=o.createContext(null),hw=o.forwardRef(((e,t)=>{const{children:n}=e,r=gw(e,["children"]),i=o.useContext(vw),a=o.useMemo((()=>Object.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=function(e){return R(e)&&P(e)}(n),c=j(t,l?n.ref:null);return o.createElement(vw.Provider,{value:a},o.createElement(om,{space:!0},l?o.cloneElement(n,{ref:c}):n))})),bw=vw,yw=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Et(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Cw=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Et(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Et(n)})`}}}}},xw=e=>Object.assign({},To(e)),$w=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:w,dangerItemActiveBg:S,dangerItemSelectedBg:E,popupBg:k,itemHoverBg:O,itemActiveBg:I,menuSubMenuBg:N,horizontalItemSelectedColor:M,horizontalItemSelectedBg:j,horizontalItemBorderRadius:P,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},xw(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},xw(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Et(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:s,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:s,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Et(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Et(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},ww=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Et(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Et(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Sw=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,h={height:o,lineHeight:Et(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ww(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ww(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Et(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et(e.calc(u).div(2).equal())} - ${Et(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Et(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Po),{paddingInline:p})}}]},Ew=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kw=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Et(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Et(a)})`}}}}},Ow=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Et(l)} ${Et(c)}`,fontSize:b,lineHeight:h,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{display:"inline-flex",alignItems:"center",transition:`color ${r}`,"> a:first-child":{flexGrow:1},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ew(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Et(e.calc(o).mul(2).equal())} ${Et(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Ew(e)),kw(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),kw(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Et(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Et(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Et(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Et(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Et(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Iw=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:C,padding:x,fontSize:$,controlHeightSM:w,fontSizeLG:S,colorTextLightSolid:E,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,N=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,M=new Fr(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:$,iconMarginInlineEnd:w-$,collapsedIconSize:S,groupTitleFontSize:$,darkItemDisabledColor:new Fr(E).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:E,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*N}px)`}},Nw=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=fi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,C=e.calc(o).div(7).mul(5).equal(),x=xo(e,{menuArrowSize:C,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(C).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),$=xo(x,{itemColor:r,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[Ow(x),yw(x),Sw(x),$w(x,"light"),$w($,"dark"),Cw(x),Qu(x),qb(x,"slide-up"),qb(x,"slide-down"),cg(x,"zoom-big")]}),Iw,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},Mw=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:l}=e,c=o.useContext(dw),{prefixCls:s,inlineCollapsed:u,theme:d}=c,f=Bx();let p;if(r){const e=o.isValidElement(i)&&"span"===i.type;p=o.createElement(o.Fragment,null,Ka(r,{className:a()(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?i:o.createElement("span",{className:`${s}-title-content`},i))}else p=u&&!f.length&&i&&"string"===typeof i?o.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${s}-title-content`},i);const m=o.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[g]=tc("Menu");return o.createElement(dw.Provider,{value:m},o.createElement(P$,Object.assign({},Ce(e,["icon"]),{title:p,popupClassName:a()(s,n,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var jw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Pw(e){return null===e||!1===e}const Rw={item:mw,submenu:Mw,divider:pw},zw=(0,o.forwardRef)(((e,t)=>{var n;const r=o.useContext(bw),i=r||{},{getPrefixCls:l,getPopupContainer:c,direction:s,menu:u}=o.useContext(Be),d=l(),{prefixCls:f,className:p,style:m,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,rootClassName:C,mode:x,selectable:$,onClick:w,overflowedIndicatorPopupClassName:S}=e,E=Ce(jw(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const k=ao((function(){var e;null===w||void 0===w||w.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,I=null!==$&&void 0!==$?$:i.selectable,N=o.useMemo((()=>void 0!==y?y:b),[b,y]),M={horizontal:{motionName:`${d}-slide-up`},inline:Ss(d),other:{motionName:`${d}-zoom-big`}},j=l("menu",f||i.prefixCls),P=bl(j),[R,z,T]=Nw(j,P,!r),B=a()(`${j}-${g}`,null===u||void 0===u?void 0:u.className,p),H=o.useMemo((()=>{var e,t;if("function"===typeof v||Pw(v))return v||null;if("function"===typeof i.expandIcon||Pw(i.expandIcon))return i.expandIcon||null;if("function"===typeof(null===u||void 0===u?void 0:u.expandIcon)||Pw(null===u||void 0===u?void 0:u.expandIcon))return(null===u||void 0===u?void 0:u.expandIcon)||null;const n=null!==(e=null!==v&&void 0!==v?v:null===i||void 0===i?void 0:i.expandIcon)&&void 0!==e?e:null===u||void 0===u?void 0:u.expandIcon;return Ka(n,{className:a()(`${j}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[v,null===i||void 0===i?void 0:i.expandIcon,null===u||void 0===u?void 0:u.expandIcon,j]),D=o.useMemo((()=>({prefixCls:j,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:g,mode:O,disableMenuItemTitleTooltip:h})),[j,N,s,h,g]);return R(o.createElement(bw.Provider,{value:null},o.createElement(dw.Provider,{value:D},o.createElement(V$,Object.assign({getPopupContainer:c,overflowedIndicator:o.createElement(uw,null),overflowedIndicatorPopupClassName:a()(j,`${j}-${g}`,S),mode:O,selectable:I,onClick:k},E,{inlineCollapsed:N,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),m),className:B,prefixCls:j,direction:s,defaultMotions:M,expandIcon:H,ref:t,rootClassName:a()(C,z,i.rootClassName,T,P),_internalComponents:Rw})))))})),Tw=zw,Bw=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(iw);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(Tw,Object.assign({ref:n},e,r))}));Bw.Item=mw,Bw.SubMenu=Mw,Bw.Divider=pw,Bw.ItemGroup=B$;const Hw=Bw,Dw=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},Lw=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Bb},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Db},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Hb},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Lb}}},dC(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Ro(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Bo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Et(s)} ${Et(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Et(s)} ${Et(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Bo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Et(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Et(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[qb(e,"slide-up"),qb(e,"slide-down"),Jb(e,"move-up"),Jb(e,"move-down"),cg(e,"zoom-big")]]},Aw=fi("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=xo(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Lw(i),Dw(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},sC({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),lC(e))),{resetStyle:!1}),Fw=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:l,trigger:c,disabled:s,dropdownRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:v,visible:h,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:x=!0,placement:$="",overlay:w,transitionName:S}=e,{getPopupContainer:E,getPrefixCls:k,direction:O,dropdown:I}=o.useContext(Be);Pl("Dropdown");const N=o.useMemo((()=>{const e=k();return void 0!==S?S:$.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[k,$,S]),M=o.useMemo((()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:"rtl"===O?"bottomRight":"bottomLeft"),[$,O]);const j=k("dropdown",i),P=bl(j),[R,z,T]=Aw(j,P),[,B]=ui(),H=o.Children.only(l),D=Ka(H,{className:a()(`${j}-trigger`,{[`${j}-rtl`]:"rtl"===O},H.props.className),disabled:null!==(t=H.props.disabled)&&void 0!==t?t:s}),L=s?[]:c,A=!!(null===L||void 0===L?void 0:L.includes("contextMenu")),[F,W]=so(!1,{value:null!==g&&void 0!==g?g:h}),_=ao((e=>{null===v||void 0===v||v(e,{source:"trigger"}),null===b||void 0===b||b(e),W(e)})),V=a()(f,p,z,T,P,null===I||void 0===I?void 0:I.className,{[`${j}-rtl`]:"rtl"===O}),q=gC({arrowPointAtCenter:"object"===typeof r&&r.pointAtCenter,autoAdjustOverflow:x,offset:B.marginXXS,arrowWidth:r?B.sizePopupArrow:0,borderRadius:B.borderRadius}),K=o.useCallback((()=>{(null===n||void 0===n?void 0:n.selectable)&&(null===n||void 0===n?void 0:n.multiple)||(null===v||void 0===v||v(!1,{source:"menu"}),W(!1))}),[null===n||void 0===n?void 0:n.selectable,null===n||void 0===n?void 0:n.multiple]),[X,G]=tc("Dropdown",null===m||void 0===m?void 0:m.zIndex);let Y=o.createElement(kx,Object.assign({alignPoint:A},Ce(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:C,visible:F,builtinPlacements:q,arrow:!!r,overlayClassName:V,prefixCls:j,getPopupContainer:d||E,transitionName:N,trigger:L,overlay:()=>{let e;return e=(null===n||void 0===n?void 0:n.items)?o.createElement(Hw,Object.assign({},n)):"function"===typeof w?w():w,u&&(e=u(e)),e=o.Children.only("string"===typeof e?o.createElement("span",null,e):e),o.createElement(hw,{prefixCls:`${j}-menu`,rootClassName:a()(T,P),expandIcon:o.createElement("span",{className:`${j}-menu-submenu-arrow`},o.createElement(Du,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:K,validator:e=>{let{mode:t}=e}},e)},placement:M,onVisibleChange:_,overlayStyle:Object.assign(Object.assign(Object.assign({},null===I||void 0===I?void 0:I.style),m),{zIndex:X})}),D);return X&&(Y=o.createElement(Ul.Provider,{value:G},Y)),R(Y)};const Ww=vv(Fw,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Fw._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Ww,Object.assign({},e),o.createElement("span",null));const _w=Fw,Vw=e=>{let{children:t}=e;const{getPrefixCls:n}=o.useContext(Be),r=n("breadcrumb");return o.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};Vw.__ANT_BREADCRUMB_SEPARATOR=!0;const qw=Vw;var Kw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Xw(e,t,n,r){if(null===n||void 0===n)return null;const{className:i,onClick:l}=t,c=Kw(t,["className","onClick"]),s=Object.assign(Object.assign({},_a(c,{data:!0,aria:!0})),{onClick:l});return void 0!==r?o.createElement("a",Object.assign({},s,{className:a()(`${e}-link`,i),href:r}),n):o.createElement("span",Object.assign({},s,{className:a()(`${e}-link`,i)}),n)}function Gw(e,t){return(n,o,r,i,a)=>{if(t)return t(n,o,r,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"===typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,o);return Xw(e,n,l,a)}}var Yw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Uw=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:a,dropdownProps:l,href:c}=e;const s=(e=>{if(i||a){const n=Object.assign({},l);if(i){const e=i||{},{items:t}=e,r=Yw(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null===t||void 0===t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:i,path:a}=e,l=Yw(e,["key","title","label","path"]);let s=null!==i&&void 0!==i?i:r;return a&&(s=o.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},l),{key:null!==n&&void 0!==n?n:t,label:s})}))})}else a&&(n.overlay=a);return o.createElement(_w,Object.assign({placement:"bottom"},n),o.createElement("span",{className:`${t}-overlay-link`},e,o.createElement(Ey,null)))}return e})(r);return void 0!==s&&null!==s?o.createElement(o.Fragment,null,o.createElement("li",null,s),n&&o.createElement(qw,null,n)):null},Qw=e=>{const{prefixCls:t,children:n,href:r}=e,i=Yw(e,["prefixCls","children","href"]),{getPrefixCls:a}=o.useContext(Be),l=a("breadcrumb",t);return o.createElement(Uw,Object.assign({},i,{prefixCls:l}),Xw(l,i,n,r))};Qw.__ANT_BREADCRUMB_ITEM=!0;const Zw=Qw,Jw=fi("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Et(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Bo(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Et(e.paddingXXS)}`,marginInline:o(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})(xo(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})));var eS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function tS(e){const{breadcrumbName:t,children:n}=e,o=eS(e,["breadcrumbName","children"]),r=Object.assign({title:t},o);return n&&(r.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=eS(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var nS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const oS=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:l,routes:c,items:u,children:d,itemRender:f,params:p={}}=e,m=nS(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:g,direction:v,breadcrumb:h}=o.useContext(Be);let b;const y=g("breadcrumb",t),[C,x,$]=Jw(y),w=function(e,t){return(0,o.useMemo)((()=>e||(t?t.map(tS):null)),[e,t])}(u,c);const S=Gw(y,f);if(w&&w.length>0){const e=[],t=u||c;b=w.map(((r,i)=>{const{path:a,key:l,type:c,menu:s,overlay:u,onClick:d,className:f,separator:m,dropdownProps:g}=r,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(p,a);void 0!==v&&e.push(v);const h=null!==l&&void 0!==l?l:i;if("separator"===c)return o.createElement(qw,{key:h},m);const b={},C=i===w.length-1;s?b.menu=s:u&&(b.overlay=u);let{href:x}=r;return e.length&&void 0!==v&&(x=`#/${e.join("/")}`),o.createElement(Uw,Object.assign({key:h},b,_a(r,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:x,separator:C?"":n,onClick:d,prefixCls:y}),S(r,p,t,e,x))}))}else if(d){const e=s(d).length;b=s(d).map(((t,o)=>{if(!t)return t;return Ka(t,{separator:o===e-1?"":n,key:o})}))}const E=a()(y,null===h||void 0===h?void 0:h.className,{[`${y}-rtl`]:"rtl"===v},i,l,x,$),k=Object.assign(Object.assign({},null===h||void 0===h?void 0:h.style),r);return C(o.createElement("nav",Object.assign({className:E,style:k},m),o.createElement("ol",null,b)))};oS.Item=Zw,oS.Separator=qw;const rS=oS;var iS=n(57469),aS=n.n(iS),lS=n(19223),cS=n.n(lS),sS=n(20199),uS=n.n(sS),dS=n(66865),fS=n.n(dS),pS=n(66556),mS=n.n(pS),gS=n(97076),vS=n.n(gS),hS=n(68988),bS=n.n(hS);aS().extend(bS()),aS().extend(vS()),aS().extend(cS()),aS().extend(uS()),aS().extend(fS()),aS().extend(mS()),aS().extend((function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return o.bind(this)(t)}}));var yS={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},CS=function(e){return yS[e]||e.split("_")[0]},xS=function(){v(!1,"Not match any format. Please help to fire a issue about this.")},$S={getNow:function(){var e=aS()();return"function"===typeof e.tz?e.tz():e},getFixedDate:function(e){return aS()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return aS()().locale(CS(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(CS(e)).weekday(0)},getWeek:function(e,t){return t.locale(CS(e)).week()},getShortWeekDays:function(e){return aS()().locale(CS(e)).localeData().weekdaysMin()},getShortMonths:function(e){return aS()().locale(CS(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(CS(e)).format(n)},parse:function(e,t,n){for(var o=CS(e),r=0;r<n.length;r+=1){var i=n[r],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=aS()(l,"YYYY").startOf("year").locale(o),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return xS(),null}var f=aS()(a,i,!0).locale(o);if(f.isValid())return f}return t&&xS(),null}}};const wS=$S;new Map;function SS(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}function ES(e,t){var n=SS(e,t),o=(null===n||void 0===n?void 0:n.toLowerCase().endsWith("right"))?"insetInlineEnd":"insetInlineStart";return t&&(o=["insetInlineStart","insetInlineEnd"].find((function(e){return e!==o}))),o}const kS=o.createContext(null);var OS={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const IS=function(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,l=e.transitionName,c=e.getPopupContainer,s=e.children,u=e.range,d=e.placement,f=e.builtinPlacements,p=void 0===f?OS:f,m=e.direction,g=e.visible,v=e.onClose,h=o.useContext(kS).prefixCls,b="".concat(h,"-dropdown"),y=SS(d,"rtl"===m);return o.createElement(xh,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:p,prefixCls:b,popupTransitionName:l,popup:t,popupAlign:i,popupVisible:g,popupClassName:a()(r,C(C({},"".concat(b,"-range"),u),"".concat(b,"-rtl"),"rtl"===m)),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(e){e||v()}},s)};function NS(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",o=String(e);o.length<t;)o="".concat(n).concat(o);return o}function MS(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function jS(e,t,n){var o=Se(e);return o[t]=n,o}function PS(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function RS(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function zS(e,t,n){var o=void 0!==n?n:t[t.length-1],r=t.find((function(t){return e[t]}));return o!==r?e[r]:void 0}function TS(e){return PS(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function BS(e,t,n,r){var i=o.useMemo((function(){return e||function(e,o){var r=e;return t&&"date"===o.type?t(r,o.today):n&&"month"===o.type?n(r,o.locale):o.originNode}}),[e,n,t]),a=o.useCallback((function(e,t){return i(e,$($({},t),{},{range:r}))}),[i,r]);return a}function HS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Ae(o.useState([!1,!1]),2),i=r[0],a=r[1],l=o.useMemo((function(){return i.map((function(o,r){if(o)return!0;var i=e[r];return!!i&&(!n[r]&&!i||!(!i||!t(i,{activeIndex:r})))}))}),[e,i,t,n]);return[l,function(e,t){a((function(n){return jS(n,t,e)}))}]}function DS(e,t,n,o,r){var i="",a=[];return e&&a.push(r?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),o&&(i+=".SSS"),r&&(i+=" A"),i}function LS(e,t){var n=t.showHour,o=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return r().useMemo((function(){return function(e,t,n,o,r,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,h=e.cellDateFormat,b=DS(t,n,o,r,i);return $($({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:h||v||"D"})}(e,n,o,i,a,l)}),[e,n,o,i,a,l])}function AS(e,t,n){return null!==n&&void 0!==n?n:t.some((function(t){return e.includes(t)}))}var FS=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function WS(e){return e&&"string"===typeof e}function _S(e,t,n,o){return[e,t,n,o].some((function(e){return void 0!==e}))}function VS(e,t,n,o,r){var i=t,a=n,l=o;if(e||i||a||l||r){if(e){var c,s,u,d=[i,a,l].some((function(e){return!1===e})),f=[i,a,l].some((function(e){return!0===e})),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,r]}function qS(e){var t=e.showTime,n=function(e){var t=PS(e,FS),n=e.format,o=e.picker,r=null;return n&&(r=n,Array.isArray(r)&&(r=r[0]),r="object"===b(r)?r.format:r),"time"===o&&(t.format=r),[t,r]}(e),o=Ae(n,2),r=o[0],i=o[1],a=t&&"object"===b(t)?t:{},l=$($({defaultOpenValue:a.defaultOpenValue||a.defaultValue},r),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=Ae(VS(_S(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,$($({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function KS(e,t,n,o,r){if("datetime"===e||"time"===e){for(var i=o,a=RS(e,r,null),l=[t,n],c=0;c<l.length;c+=1){var s=MS(l[c])[0];if(WS(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,m=AS(a,["a","A","LT","LLL","LTS"],i.use12Hours),g=_S(u,d,f,p);g||(u=AS(a,["H","h","k","LT","LLL"]),d=AS(a,["m","LT","LLL"]),f=AS(a,["s","LTS"]),p=AS(a,["SSS"]));var v=Ae(VS(g,u,d,f,p),3);u=v[0],d=v[1],f=v[2];var h=t||DS(u,d,f,p,m);return $($({},i),{},{format:h,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:m})}return null}function XS(e,t,n){return!1===t?null:(t&&"object"===b(t)?t:{}).clearIcon||n||o.createElement("span",{className:"".concat(e,"-clear-btn")})}function GS(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function YS(e,t,n){return GS(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function US(e,t,n){return GS(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function QS(e,t){return Math.floor(e.getMonth(t)/3)+1}function ZS(e,t,n){return GS(t,n,(function(){return US(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function JS(e,t,n){return GS(t,n,(function(){return US(e,t,n)&&ZS(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function eE(e,t,n){return GS(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function tE(e,t,n){return GS(t,n,(function(){return JS(e,t,n)&&eE(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function nE(e,t,n,o){return GS(n,o,(function(){var r=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,o);return US(e,r,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}))}function oE(e,t,n,o,r){switch(r){case"date":return JS(e,n,o);case"week":return nE(e,t.locale,n,o);case"month":return ZS(e,n,o);case"quarter":return function(e,t,n){return GS(t,n,(function(){return US(e,t,n)&&QS(e,t)===QS(e,n)}))}(e,n,o);case"year":return US(e,n,o);case"decade":return YS(e,n,o);case"time":return eE(e,n,o);default:return tE(e,n,o)}}function rE(e,t,n,o){return!!(t&&n&&o)&&(e.isAfter(o,t)&&e.isAfter(n,o))}function iE(e,t,n,o,r){return!!oE(e,t,n,o,r)||e.isAfter(n,o)}function aE(e,t){var n=t.generateConfig,o=t.locale,r=t.format;return e?"function"===typeof r?r(e):n.locale.format(o.locale,e,r):""}function lE(e,t,n){var o=t,r=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){o=n?e[t](o,e[r[i]](n)):e[t](o,0)})),o}function cE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.useMemo((function(){var n=e?MS(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function sE(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,m=void 0===p||p,g=e.components,v=void 0===g?{}:g,h=e.inputRender,y=e.allowClear,C=e.clearIcon,x=e.needConfirm,w=e.multiple,S=e.format,E=e.inputReadOnly,k=e.disabledDate,O=e.minDate,I=e.maxDate,N=e.showTime,M=e.value,j=e.defaultValue,P=e.pickerValue,R=e.defaultPickerValue,z=cE(M),T=cE(j),B=cE(P),H=cE(R),D="date"===a&&N?"datetime":a,L="time"===D||"datetime"===D,A=L||w,F=null!==x&&void 0!==x?x:L,W=Ae(qS(e),4),_=W[0],V=W[1],q=W[2],K=W[3],X=LS(r,V),G=o.useMemo((function(){return KS(D,q,K,_,X)}),[D,q,K,_,X]);var Y=o.useMemo((function(){return $($({},e),{},{prefixCls:c,locale:X,picker:a,styles:u,classNames:f,order:m,components:$({input:h},v),clearIcon:XS(c,y,C),showTime:G,value:z,defaultValue:T,pickerValue:B,defaultPickerValue:H},null===t||void 0===t?void 0:t())}),[e]),U=function(e,t,n){return o.useMemo((function(){var o=MS(RS(e,t,n)),r=o[0],i="object"===b(r)&&"mask"===r.type?r.format:null;return[o.map((function(e){return"string"===typeof e||"function"===typeof e?e:e.format})),i]}),[e,t,n])}(D,X,S),Q=Ae(U,2),Z=Q[0],J=Q[1],ee=function(e,t,n){return!("function"!==typeof e[0]&&!n)||t}(Z,E,w),te=function(e,t,n,o,r){var i=ao((function(i,a){return!(!n||!n(i,a))||!(!o||!e.isAfter(o,i)||oE(e,t,o,i,a.type))||!(!r||!e.isAfter(i,r)||oE(e,t,r,i,a.type))}));return i}(n,r,k,O,I),ne=function(e,t,n,o){var r=ao((function(r,i){var a=$({type:t},i);if(delete a.activeIndex,!e.isValidate(r)||n&&n(r,a))return!0;if(("date"===t||"time"===t)&&o){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=o.disabledTime)||void 0===l?void 0:l.call(o,r,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,m=o.disabledHours,g=o.disabledMinutes,v=o.disabledSeconds,h=u||m,b=d||g,y=f||v,C=e.getHour(r),x=e.getMinute(r),w=e.getSecond(r),S=e.getMillisecond(r);if(h&&h().includes(C))return!0;if(b&&b(C).includes(x))return!0;if(y&&y(C,x).includes(w))return!0;if(p&&p(C,x,w).includes(S))return!0}return!1}));return r}(n,a,te,G);return[o.useMemo((function(){return $($({},Y),{},{needConfirm:F,inputReadOnly:ee,disabledDate:te})}),[Y,F,ee,te]),D,A,Z,J,ne]}function uE(e,t){var n=arguments.length>3?arguments[3]:void 0,o=function(e,t,n){var o=Ae(so(t,{value:e}),2),i=o[0],a=o[1],l=r().useRef(e),c=r().useRef(),s=function(){je.cancel(c.current)},u=ao((function(){a(l.current),n&&i!==l.current&&n(l.current)})),d=ao((function(e,t){s(),l.current=e,e||t?u():c.current=je(u)}));return r().useEffect((function(){return s}),[]),[i,d]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,t||!1,n),i=Ae(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function dE(e){var t=o.useRef();return o.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function fE(e,t){return o.useMemo((function(){return e||(t?(h(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=Ae(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function pE(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=o.useRef(t);r.current=t,Pt((function(){if(!e){var t=je((function(){r.current(e)}),n);return function(){je.cancel(t)}}r.current(e)}),[e])}function mE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ae(o.useState(0),2),i=r[0],a=r[1],l=Ae(o.useState(!1),2),c=l[0],s=l[1],u=o.useRef([]),d=o.useRef(null);return pE(c||n,(function(){c||(u.current=[])})),o.useEffect((function(){c&&u.current.push(i)}),[c,i]),[c,function(e){s(e)},function(e){return e&&(d.current=e),d.current},i,a,function(n){var o=u.current,r=new Set(o.filter((function(e){return n[e]||t[e]}))),i=0===o[o.length-1]?1:0;return r.size>=2||e[i]?null:i},u.current]}function gE(e,t,n,o){switch(t){case"date":case"week":return e.addMonth(n,o);case"month":case"quarter":return e.addYear(n,o);case"year":return e.addYear(n,10*o);case"decade":return e.addYear(n,100*o);default:return n}}var vE=[];function hE(e,t,n,r,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:vE,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:vE,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m="time"===l,g=a||0,v=function(t){var o=e.getNow();return m&&(o=lE(e,o)),s[t]||n[t]||o},h=Ae(arguments.length>9&&void 0!==arguments[9]?arguments[9]:vE,2),b=h[0],y=h[1],C=Ae(so((function(){return v(0)}),{value:b}),2),x=C[0],$=C[1],w=Ae(so((function(){return v(1)}),{value:y}),2),S=w[0],E=w[1],k=o.useMemo((function(){var t=[x,S][g];return m?t:lE(e,t,u[g])}),[m,x,S,g,e,u]),O=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[$,E][g])(n);var i=[x,S];i[g]=n,!d||oE(e,t,x,i[0],l)&&oE(e,t,S,i[1],l)||d(i,{source:o,range:1===g?"end":"start",mode:r})},I=o.useRef(null);return Rt((function(){if(i&&!s[g]){var o=m?null:e.getNow();if(null!==I.current&&I.current!==g?o=[x,S][1^g]:n[g]?o=0===g?n[0]:function(n,o){if(c){var r={date:"month",week:"month",month:"year",quarter:"year"}[l];if(r&&!oE(e,t,n,o,r))return gE(e,l,o,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(o)/10))return gE(e,l,o,-1)}return o}(n[0],n[1]):n[1^g]&&(o=n[1^g]),o){f&&e.isAfter(f,o)&&(o=f);var r=c?gE(e,l,o,1):o;p&&e.isAfter(r,p)&&(o=c?gE(e,l,p,-1):p),O(o,"reset")}}}),[i,g,n[g]]),o.useEffect((function(){I.current=i?g:null}),[i,g]),Rt((function(){i&&s&&s[g]&&O(s[g],"reset")}),[i,g]),[k,O]}function bE(e,t){var n=o.useRef(e),r=Ae(o.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:n.current};return[i,function(e){n.current=e,r({})},i(!0)]}var yE=[];function CE(e,t,n){return[function(o){return o.map((function(o){return aE(o,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var o=Math.max(t.length,n.length),r=-1,i=0;i<o;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!tE(e,a,l)){r=i;break}}return[r<0,0!==r]}]}function xE(e,t){return Se(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function $E(e,t,n,r,i,a,l,c,s){var u=Ae(so(a,{value:l}),2),d=u[0],f=u[1],p=d||yE,m=function(e){var t=Ae(bE(e),2),n=t[0],r=t[1],i=ao((function(){r(e)}));return o.useEffect((function(){i()}),[e]),[n,r]}(p),g=Ae(m,2),v=g[0],h=g[1],b=Ae(CE(e,t,n),2),y=b[0],C=b[1],x=ao((function(t){var n=Se(t);if(r)for(var o=0;o<2;o+=1)n[o]=n[o]||null;else i&&(n=xE(n.filter((function(e){return e})),e));var a=Ae(C(v(),n),2),l=a[0],s=a[1];if(!l&&(h(n),c)){var u=y(n);c(n,u,{range:s?"end":"start"})}}));return[p,f,v,x,function(){s&&s(v())}]}function wE(e,t,n,r,i,a,l,c,s,u){var d=e.generateConfig,f=e.locale,p=e.picker,m=e.onChange,g=e.allowEmpty,v=e.order,h=!a.some((function(e){return e}))&&v,b=Ae(CE(d,f,l),2),y=b[0],C=b[1],x=Ae(bE(t),2),$=x[0],w=x[1],S=ao((function(){w(t)}));o.useEffect((function(){S()}),[t]);var E=ao((function(e){var o=null===e,r=Se(e||$());if(o)for(var l=Math.max(a.length,r.length),c=0;c<l;c+=1)a[c]||(r[c]=null);h&&r[0]&&r[1]&&(r=xE(r,d)),i(r);var s=Ae(r,2),b=s[0],x=s[1],w=!b,S=!x,E=!g||(!w||g[0])&&(!S||g[1]),k=!v||w||S||oE(d,f,b,x,p)||d.isAfter(x,b),O=(!b||!u(b,{activeIndex:0}))&&(!x||!u(x,{from:b,activeIndex:1})),I=o||E&&k&&O;if(I){n(r);var N=Ae(C(r,t),1)[0];m&&!N&&m(o&&r.every((function(e){return!e}))?null:r,y(r))}return I})),k=ao((function(e,t){var n=jS($(),e,r()[e]);w(n),t&&E()})),O=!c&&!s;return pE(!O,(function(){O&&(E(),i(t),S())}),2),[k,E]}function SE(e,t,n,o,r){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==o?o:!r&&("date"===e||"time"===e))}function EE(){return[]}function kE(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=r.includes(c);s&&o||a.push({label:NS(c,i),value:c,disabled:s})}return a}function OE(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},r=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,l=n.minuteStep,c=void 0===l?1:l,s=n.secondStep,u=void 0===s?1:s,d=n.millisecondStep,f=void 0===d?100:d,p=n.hideDisabledOptions,m=n.disabledTime,g=n.disabledHours,v=n.disabledMinutes,h=n.disabledSeconds,b=o.useMemo((function(){return t||e.getNow()}),[t,e]),y=o.useCallback((function(e){var t=(null===m||void 0===m?void 0:m(e))||{};return[t.disabledHours||g||EE,t.disabledMinutes||v||EE,t.disabledSeconds||h||EE,t.disabledMilliseconds||EE]}),[m,g,v,h]),C=Ae(o.useMemo((function(){return y(b)}),[b,y]),4),x=C[0],w=C[1],S=C[2],E=C[3],k=o.useCallback((function(e,t,n,o){var i=kE(0,23,a,p,e()),l=r?i.map((function(e){return $($({},e),{},{label:NS(e.value%12||12,2)})})):i;return[l,function(e){return kE(0,59,c,p,t(e))},function(e,t){return kE(0,59,u,p,n(e,t))},function(e,t,n){return kE(0,999,f,p,o(e,t,n),3)}]}),[p,a,r,f,c,u]),O=Ae(o.useMemo((function(){return k(x,w,S,E)}),[k,x,w,S,E]),4),I=O[0],N=O[1],M=O[2],j=O[3];return[function(t,n){var o=function(){return I},r=N,i=M,a=j;if(n){var l=Ae(y(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=Ae(k(c,s,u,d),4),p=f[0];o=function(){return p},r=f[1],i=f[2],a=f[3]}var m=function(e,t,n,o,r,i){var a=e;function l(e,t,n){var o=i[e](a),r=n.find((function(e){return e.value===o}));if(!r||r.disabled){var l=n.filter((function(e){return!e.disabled})),c=Se(l).reverse().find((function(e){return e.value<=o}))||l[0];c&&(o=c.value,a=i[t](a,o))}return o}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",o(c,s));return l("getMillisecond","setMillisecond",r(c,s,u)),a}(t,o,r,i,a,e);return m},I,N,M,j]}function IE(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,l=e.showTime,c=e.onSubmit,s=e.onNow,u=e.invalid,d=e.needConfirm,f=e.generateConfig,p=e.disabledDate,m=o.useContext(kS),g=m.prefixCls,v=m.locale,h=m.button,b=void 0===h?"button":h,y=f.getNow(),C=Ae(OE(f,l,y),1)[0],x=null===r||void 0===r?void 0:r(t),$=p(y,{type:t}),w="".concat(g,"-now"),S="".concat(w,"-btn"),E=i&&o.createElement("li",{className:w},o.createElement("a",{className:a()(S,$&&"".concat(S,"-disabled")),"aria-disabled":$,onClick:function(){if(!$){var e=C(y);s(e)}}},"date"===n?v.today:v.now)),k=d&&o.createElement("li",{className:"".concat(g,"-ok")},o.createElement(b,{disabled:u,onClick:c},v.ok)),O=(E||k)&&o.createElement("ul",{className:"".concat(g,"-ranges")},E,k);return x||O?o.createElement("div",{className:"".concat(g,"-footer")},x&&o.createElement("div",{className:"".concat(g,"-footer-extra")},x),O):null}function NE(e,t,n){return function(o,r){var i=o.findIndex((function(o){return oE(e,t,o,r,n)}));if(-1===i)return[].concat(Se(o),[r]);var a=Se(o);return a.splice(i,1),a}}var ME=o.createContext(null);function jE(){return o.useContext(ME)}function PE(e,t){var n=e.prefixCls,o=e.generateConfig,r=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,h=e.superPrevIcon,b=e.superNextIcon,y=o.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:r,generateConfig:o,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:h,superNextIcon:b},y]}var RE=o.createContext({});function zE(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,l=e.prefixColumn,c=e.rowClassName,s=e.titleFormat,u=e.getCellText,d=e.getCellClassName,f=e.headerCells,p=e.cellSelection,m=void 0===p||p,g=e.disabledDate,v=jE(),h=v.prefixCls,b=v.panelType,y=v.now,x=v.disabledDate,w=v.cellRender,S=v.onHover,E=v.hoverValue,k=v.hoverRangeValue,O=v.generateConfig,I=v.values,N=v.locale,M=v.onSelect,j=g||x,P="".concat(h,"-cell"),R=o.useContext(RE).onCellDblClick,z=function(e){return I.some((function(t){return t&&oE(O,N,e,t,b)}))},T=[],B=0;B<t;B+=1){for(var H=[],D=void 0,L=function(){var e=i(r,B*n+A),t=null===j||void 0===j?void 0:j(e,{type:b});0===A&&(D=e,l&&H.push(l(D)));var c=!1,f=!1,p=!1;if(m&&k){var g=Ae(k,2),v=g[0],x=g[1];c=rE(O,v,x,e),f=oE(O,N,e,v,b),p=oE(O,N,e,x,b)}var I=s?aE(e,{locale:N,format:s,generateConfig:O}):void 0,T=o.createElement("div",{className:"".concat(P,"-inner")},u(e));H.push(o.createElement("td",{key:A,title:I,className:a()(P,$(C(C(C(C(C(C({},"".concat(P,"-disabled"),t),"".concat(P,"-hover"),(E||[]).some((function(t){return oE(O,N,e,t,b)}))),"".concat(P,"-in-range"),c&&!f&&!p),"".concat(P,"-range-start"),f),"".concat(P,"-range-end"),p),"".concat(h,"-cell-selected"),!k&&"week"!==b&&z(e)),d(e))),onClick:function(){t||M(e)},onDoubleClick:function(){!t&&R&&R()},onMouseEnter:function(){t||null===S||void 0===S||S(e)},onMouseLeave:function(){t||null===S||void 0===S||S(null)}},w?w(e,{prefixCls:h,originNode:T,today:y,type:b,locale:N}):T))},A=0;A<n;A+=1)L();T.push(o.createElement("tr",{key:B,className:null===c||void 0===c?void 0:c(D)},H))}return o.createElement("div",{className:"".concat(h,"-body")},o.createElement("table",{className:"".concat(h,"-content")},f&&o.createElement("thead",null,o.createElement("tr",null,f)),o.createElement("tbody",null,T)))}var TE={visibility:"hidden"};const BE=function(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,l=e.getEnd,c=e.children,s=jE(),u=s.prefixCls,d=s.prevIcon,f=void 0===d?"\u2039":d,p=s.nextIcon,m=void 0===p?"\u203a":p,g=s.superPrevIcon,v=void 0===g?"\xab":g,h=s.superNextIcon,b=void 0===h?"\xbb":h,y=s.minDate,C=s.maxDate,x=s.generateConfig,$=s.locale,w=s.pickerValue,S=s.panelType,E="".concat(u,"-header"),k=o.useContext(RE),O=k.hidePrev,I=k.hideNext,N=k.hideHeader,M=o.useMemo((function(){if(!y||!t||!l)return!1;var e=l(t(-1,w));return!iE(x,$,e,y,S)}),[y,t,w,l,x,$,S]),j=o.useMemo((function(){if(!y||!n||!l)return!1;var e=l(n(-1,w));return!iE(x,$,e,y,S)}),[y,n,w,l,x,$,S]),P=o.useMemo((function(){if(!C||!t||!i)return!1;var e=i(t(1,w));return!iE(x,$,C,e,S)}),[C,t,w,i,x,$,S]),R=o.useMemo((function(){if(!C||!n||!i)return!1;var e=i(n(1,w));return!iE(x,$,C,e,S)}),[C,n,w,i,x,$,S]),z=function(e){t&&r(t(e,w))},T=function(e){n&&r(n(e,w))};if(N)return null;var B="".concat(E,"-prev-btn"),H="".concat(E,"-next-btn"),D="".concat(E,"-super-prev-btn"),L="".concat(E,"-super-next-btn");return o.createElement("div",{className:E},n&&o.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return T(-1)},tabIndex:-1,className:a()(D,j&&"".concat(D,"-disabled")),disabled:j,style:O?TE:{}},v),t&&o.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return z(-1)},tabIndex:-1,className:a()(B,M&&"".concat(B,"-disabled")),disabled:M,style:O?TE:{}},f),o.createElement("div",{className:"".concat(E,"-view")},c),t&&o.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return z(1)},tabIndex:-1,className:a()(H,P&&"".concat(H,"-disabled")),disabled:P,style:I?TE:{}},m),n&&o.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return T(1)},tabIndex:-1,className:a()(L,R&&"".concat(L,"-disabled")),disabled:R,style:I?TE:{}},b))};function HE(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,i=e.locale,c=e.generateConfig,s=e.pickerValue,u=e.onPickerValueChange,d=e.onModeChange,f=e.mode,p=void 0===f?"date":f,m=e.disabledDate,g=e.onSelect,v=e.onHover,h=e.showWeek,b="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),x="week"===p,$=Ae(PE(e,p),2),w=$[0],S=$[1],E=c.locale.getWeekFirstDay(i.locale),k=c.setDate(s,1),O=function(e,t,n){var o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r),a=t.addDate(r,o-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,c,k),I=c.getMonth(s),N=(void 0===h?x:h)?function(e){var t=null===m||void 0===m?void 0:m(e,{type:"week"});return o.createElement("td",{key:"week",className:a()(y,"".concat(y,"-week"),C({},"".concat(y,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null===v||void 0===v||v(e)},onMouseLeave:function(){t||null===v||void 0===v||v(null)}},o.createElement("div",{className:"".concat(y,"-inner")},c.locale.getWeek(i.locale,e)))}:null,M=[],j=i.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(i.locale):[]);N&&M.push(o.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var P=0;P<7;P+=1)M.push(o.createElement("th",{key:P},j[(P+E)%7]));var R=i.shortMonths||(c.locale.getShortMonths?c.locale.getShortMonths(i.locale):[]),z=o.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){d("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},aE(s,{locale:i,format:i.yearFormat,generateConfig:c})),T=o.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){d("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?aE(s,{locale:i,format:i.monthFormat,generateConfig:c}):R[I]),B=i.monthBeforeYear?[T,z]:[z,T];return o.createElement(ME.Provider,{value:w},o.createElement("div",{className:a()(b,h&&"".concat(b,"-show-week"))},o.createElement(BE,{offset:function(e){return c.addMonth(s,e)},superOffset:function(e){return c.addYear(s,e)},onChange:u,getStart:function(e){return c.setDate(e,1)},getEnd:function(e){var t=c.setDate(e,1);return t=c.addMonth(t,1),c.addDate(t,-1)}},B),o.createElement(zE,l({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:O,headerCells:M,getCellDate:function(e,t){return c.addDate(e,t)},getCellText:function(e){return aE(e,{locale:i,format:i.cellDateFormat,generateConfig:c})},getCellClassName:function(e){return C(C({},"".concat(t,"-cell-in-view"),ZS(c,e,s)),"".concat(t,"-cell-today"),JS(c,e,S))},prefixColumn:N,cellSelection:!x}))))}var DE=1/3;function LE(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,l=e.onChange,c=e.onHover,s=e.onDblClick,u=e.changeOnScroll,d=jE(),f=d.prefixCls,p=d.cellRender,m=d.now,g=d.locale,v="".concat(f,"-time-panel"),h="".concat(f,"-time-panel-cell"),b=o.useRef(null),y=o.useRef(),x=function(){clearTimeout(y.current)},$=function(e,t){var n=o.useRef(!1),r=o.useRef(null),i=o.useRef(null),a=function(){je.cancel(r.current),n.current=!1},l=o.useRef();return[ao((function(){var o=e.current;if(i.current=null,l.current=0,o){var c=o.querySelector('[data-value="'.concat(t,'"]')),s=o.querySelector("li");c&&s&&function e(){a(),n.current=!0,l.current+=1;var t=o.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!ks(o))l.current<=5&&(r.current=je(e));else{var p=t+(f-t)*DE,m=Math.abs(f-p);if(null!==i.current&&i.current<m)a();else{if(i.current=m,m<=1)return o.scrollTop=f,void a();o.scrollTop=p,r.current=je(e)}}}()}})),a,function(){return n.current}]}(b,null!==n&&void 0!==n?n:r),w=Ae($,3),S=w[0],E=w[1],k=w[2];Rt((function(){return S(),x(),function(){E(),x()}}),[n,r,t]);var O="".concat(v,"-column");return o.createElement("ul",{className:O,ref:b,"data-type":i,onScroll:function(e){x();var n=e.target;!k()&&u&&(y.current=setTimeout((function(){var e=b.current,o=e.querySelector("li").offsetTop,r=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-o})).map((function(e,o){return t[o].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),i=Math.min.apply(Math,Se(r)),a=r.findIndex((function(e){return e===i})),c=t[a];c&&!c.disabled&&l(c.value)}),300))}},t.map((function(e){var t=e.label,r=e.value,u=e.disabled,d=o.createElement("div",{className:"".concat(h,"-inner")},t);return o.createElement("li",{key:r,className:a()(h,C(C({},"".concat(h,"-selected"),n===r),"".concat(h,"-disabled"),u)),onClick:function(){u||l(r)},onDoubleClick:function(){!u&&s&&s()},onMouseEnter:function(){c(r)},onMouseLeave:function(){c(null)},"data-value":r},p?p(r,{prefixCls:f,originNode:d,today:m,type:"time",subType:i,locale:g}):d)})))}function AE(e){return e<12}function FE(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,a=e.use12Hours,c=e.changeOnScroll,s=jE(),u=s.prefixCls,d=s.values,f=s.generateConfig,p=s.locale,m=s.onSelect,g=s.onHover,v=void 0===g?function(){}:g,h=s.pickerValue,b=(null===d||void 0===d?void 0:d[0])||null,y=o.useContext(RE).onCellDblClick,C=Ae(OE(f,e,b),5),x=C[0],$=C[1],w=C[2],S=C[3],E=C[4],k=function(e){return[b&&f[e](b),h&&f[e](h)]},O=Ae(k("getHour"),2),I=O[0],N=O[1],M=Ae(k("getMinute"),2),j=M[0],P=M[1],R=Ae(k("getSecond"),2),z=R[0],T=R[1],B=Ae(k("getMillisecond"),2),H=B[0],D=B[1],L=null===I?null:AE(I)?"am":"pm",A=o.useMemo((function(){return a?AE(I)?$.filter((function(e){return AE(e.value)})):$.filter((function(e){return!AE(e.value)})):$}),[I,$,a]),F=function(e,t){var n,o=e.filter((function(e){return!e.disabled}));return null!==t&&void 0!==t?t:null===o||void 0===o||null===(n=o[0])||void 0===n?void 0:n.value},W=F($,I),_=o.useMemo((function(){return w(W)}),[w,W]),V=F(_,j),q=o.useMemo((function(){return S(W,V)}),[S,W,V]),K=F(q,z),X=o.useMemo((function(){return E(W,V,K)}),[E,W,V,K]),G=F(X,H),Y=o.useMemo((function(){if(!a)return[];var e=f.getNow(),t=f.setHour(e,6),n=f.setHour(e,18),o=function(e,t){var n=p.cellMeridiemFormat;return n?aE(e,{generateConfig:f,locale:p,format:n}):t};return[{label:o(t,"AM"),value:"am",disabled:$.every((function(e){return e.disabled||!AE(e.value)}))},{label:o(n,"PM"),value:"pm",disabled:$.every((function(e){return e.disabled||AE(e.value)}))}]}),[$,a,f,p]),U=function(e){var t=x(e);m(t)},Q=o.useMemo((function(){var e=b||h||f.getNow(),t=function(e){return null!==e&&void 0!==e};return t(I)?(e=f.setHour(e,I),e=f.setMinute(e,j),e=f.setSecond(e,z),e=f.setMillisecond(e,H)):t(N)?(e=f.setHour(e,N),e=f.setMinute(e,P),e=f.setSecond(e,T),e=f.setMillisecond(e,D)):t(W)&&(e=f.setHour(e,W),e=f.setMinute(e,V),e=f.setSecond(e,K),e=f.setMillisecond(e,G)),e}),[b,h,I,j,z,H,W,V,K,G,N,P,T,D,f]),Z=function(e,t){return null===e?null:f[t](Q,e)},J=function(e){return Z(e,"setHour")},ee=function(e){return Z(e,"setMinute")},te=function(e){return Z(e,"setSecond")},ne=function(e){return Z(e,"setMillisecond")},oe=function(e){return null===e?null:"am"!==e||AE(I)?"pm"===e&&AE(I)?f.setHour(Q,I+12):Q:f.setHour(Q,I-12)},re={onDblClick:y,changeOnScroll:c};return o.createElement("div",{className:"".concat(u,"-content")},t&&o.createElement(LE,l({units:A,value:I,optionalValue:N,type:"hour",onChange:function(e){U(J(e))},onHover:function(e){v(J(e))}},re)),n&&o.createElement(LE,l({units:_,value:j,optionalValue:P,type:"minute",onChange:function(e){U(ee(e))},onHover:function(e){v(ee(e))}},re)),r&&o.createElement(LE,l({units:q,value:z,optionalValue:T,type:"second",onChange:function(e){U(te(e))},onHover:function(e){v(te(e))}},re)),i&&o.createElement(LE,l({units:X,value:H,optionalValue:D,type:"millisecond",onChange:function(e){U(ne(e))},onHover:function(e){v(ne(e))}},re)),a&&o.createElement(LE,l({units:Y,value:L,type:"meridiem",onChange:function(e){U(oe(e))},onHover:function(e){v(oe(e))}},re)))}function WE(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,l=e.showTime,c=(l||{}).format,s="".concat(t,"-time-panel"),u=Ae(PE(e,"time"),1)[0];return o.createElement(ME.Provider,{value:u},o.createElement("div",{className:a()(s)},o.createElement(BE,null,n?aE(n,{locale:r,format:c,generateConfig:i}):"\xa0"),o.createElement(FE,l)))}var _E={date:HE,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,a=e.value,c=e.pickerValue,s=e.onHover,u="".concat(t,"-datetime-panel"),d=Ae(OE(n,r),1)[0],f=function(e){return lE(n,e,a||c)};return o.createElement("div",{className:u},o.createElement(HE,l({},e,{onSelect:function(e){var t=f(e);i(d(t,t))},onHover:function(e){null===s||void 0===s||s(e?f(e):e)}})),o.createElement(WE,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,c=e.hoverValue,s=e.hoverRangeValue,u=r.locale,d="".concat(t,"-week-panel-row");return o.createElement(HE,l({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(s){var o=Ae(s,2),r=o[0],l=o[1],f=nE(n,u,r,e),p=nE(n,u,l,e);t["".concat(d,"-range-start")]=f,t["".concat(d,"-range-end")]=p,t["".concat(d,"-range-hover")]=!f&&!p&&rE(n,r,l,e)}return c&&(t["".concat(d,"-hover")]=c.some((function(t){return nE(n,u,e,t)}))),a()(d,C({},"".concat(d,"-selected"),!s&&nE(n,u,i,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,c=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-month-panel"),d=Ae(PE(e,"month"),1)[0],f=r.setMonth(i,0),p=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),m=a?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,r.getMonth(n)+1),i=r.addDate(o,-1);return a(n,t)&&a(i,t)}:null,g=o.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},aE(i,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(ME.Provider,{value:d},o.createElement("div",{className:u},o.createElement(BE,{superOffset:function(e){return r.addYear(i,e)},onChange:c,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},g),o.createElement(zE,l({},e,{disabledDate:m,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return r.addMonth(e,t)},getCellText:function(e){var t=r.getMonth(e);return n.monthFormat?aE(e,{locale:n,format:n.monthFormat,generateConfig:r}):p[t]},getCellClassName:function(){return C({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-quarter-panel"),u=Ae(PE(e,"quarter"),1)[0],d=r.setMonth(i,0),f=o.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},aE(i,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(ME.Provider,{value:u},o.createElement("div",{className:s},o.createElement(BE,{superOffset:function(e){return r.addYear(i,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},f),o.createElement(zE,l({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:function(e,t){return r.addMonth(e,3*t)},getCellText:function(e){return aE(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},getCellClassName:function(){return C({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,c=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-year-panel"),d=Ae(PE(e,"year"),1)[0],f=function(e){var t=10*Math.floor(r.getYear(i)/10);return r.setYear(e,t)},p=function(e){var t=f(e);return r.addYear(t,9)},m=f(i),g=p(i),v=r.addYear(m,-1),h=a?function(e,t){var n=r.setMonth(e,0),o=r.setDate(n,1),i=r.addYear(o,1),l=r.addDate(i,-1);return a(o,t)&&a(l,t)}:null,b=o.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},aE(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-",aE(g,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(ME.Provider,{value:d},o.createElement("div",{className:u},o.createElement(BE,{superOffset:function(e){return r.addYear(i,10*e)},onChange:c,getStart:f,getEnd:p},b),o.createElement(zE,l({},e,{disabledDate:h,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:function(e,t){return r.addYear(e,t)},getCellText:function(e){return aE(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},getCellClassName:function(e){return C({},"".concat(t,"-cell-in-view"),US(r,e,m)||US(r,e,g)||rE(r,m,g,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,c=e.onPickerValueChange,s="".concat(t,"-decade-panel"),u=Ae(PE(e,"decade"),1)[0],d=function(e){var t=100*Math.floor(r.getYear(i)/100);return r.setYear(e,t)},f=function(e){var t=d(e);return r.addYear(t,99)},p=d(i),m=f(i),g=r.addYear(p,-10),v=a?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,0),i=r.setYear(o,10*Math.floor(r.getYear(o)/10)),l=r.addYear(i,10),c=r.addDate(l,-1);return a(i,t)&&a(c,t)}:null,h="".concat(aE(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(aE(m,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(ME.Provider,{value:u},o.createElement("div",{className:s},o.createElement(BE,{superOffset:function(e){return r.addYear(i,100*e)},onChange:c,getStart:d,getEnd:f},h),o.createElement(zE,l({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:g,getCellDate:function(e,t){return r.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,o=aE(e,{locale:n,format:t,generateConfig:r}),i=aE(r.addYear(e,9),{locale:n,format:t,generateConfig:r});return"".concat(o,"-").concat(i)},getCellClassName:function(e){return C({},"".concat(t,"-cell-in-view"),YS(r,e,p)||YS(r,e,m)||rE(r,p,m,e))}}))))},time:WE};var VE=o.memo(o.forwardRef((function(e,t){var n,r=e.locale,i=e.generateConfig,c=e.direction,s=e.prefixCls,u=e.tabIndex,d=void 0===u?0:u,f=e.multiple,p=e.defaultValue,m=e.value,g=e.onChange,v=e.onSelect,h=e.defaultPickerValue,b=e.pickerValue,y=e.onPickerValueChange,x=e.mode,w=e.onPanelChange,S=e.picker,E=void 0===S?"date":S,k=e.showTime,O=e.hoverValue,I=e.hoverRangeValue,N=e.cellRender,M=e.dateRender,j=e.monthCellRender,P=e.components,R=void 0===P?{}:P,z=e.hideHeader,T=(null===(n=o.useContext(kS))||void 0===n?void 0:n.prefixCls)||s||"rc-picker",B=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:B.current}}));var H=Ae(qS(e),4),D=H[0],L=H[1],A=H[2],F=H[3],W=LS(r,L),_="date"===E&&k?"datetime":E,V=o.useMemo((function(){return KS(_,A,F,D,W)}),[_,A,F,D,W]),q=i.getNow(),K=Ae(so(E,{value:x,postState:function(e){return e||"date"}}),2),X=K[0],G=K[1],Y="date"===X&&V?"datetime":X,U=NE(i,r,_),Q=Ae(so(p,{value:m}),2),Z=Q[0],J=Q[1],ee=o.useMemo((function(){var e=MS(Z).filter((function(e){return e}));return f?e:e.slice(0,1)}),[Z,f]),te=ao((function(e){J(e),g&&(null===e||ee.length!==e.length||ee.some((function(t,n){return!oE(i,r,t,e[n],_)})))&&(null===g||void 0===g||g(f?e:e[0]))})),ne=ao((function(e){if(null===v||void 0===v||v(e),X===E){var t=f?U(ee,e):[e];te(t)}})),oe=Ae(so(h||ee[0]||q,{value:b}),2),re=oe[0],ie=oe[1];o.useEffect((function(){ee[0]&&!b&&ie(ee[0])}),[ee[0]]);var ae=function(e,t){null===w||void 0===w||w(e||b,t||X)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null===y||void 0===y||y(e),t&&ae(e)},ce=function(e,t){G(e),t&&le(t),ae(t,e)},se=o.useMemo((function(){var e,t;if(Array.isArray(I)){var n=Ae(I,2);e=n[0],t=n[1]}else e=I;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[I,i]),ue=BS(N,M,j),de=R[Y]||_E[Y]||HE,fe=o.useContext(RE),pe=o.useMemo((function(){return $($({},fe),{},{hideHeader:z})}),[fe,z]),me="".concat(T,"-panel"),ge=PS(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return o.createElement(RE.Provider,{value:pe},o.createElement("div",{ref:B,tabIndex:d,className:a()(me,C({},"".concat(me,"-rtl"),"rtl"===c))},o.createElement(de,l({},ge,{showTime:V,prefixCls:T,locale:W,generateConfig:i,onModeChange:ce,pickerValue:re,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),X!==E){var t=["decade","year"],n=[].concat(t,["month"]),o={quarter:[].concat(t,["quarter"]),week:[].concat(Se(n),["week"]),date:[].concat(Se(n),["date"])}[E]||n,r=o.indexOf(X),i=o[r+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:O}))))})));const qE=VE;function KE(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,c=e.onSubmit,s=e.range,u=e.hoverValue,d=o.useContext(kS),f=d.prefixCls,p=d.generateConfig,m=o.useCallback((function(e,n){return gE(p,t,e,n)}),[p,t]),g=o.useMemo((function(){return m(r,1)}),[r,m]),v={onCellDblClick:function(){a&&c()}},h="time"===t,b=$($({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return s?b.hoverRangeValue=u:b.hoverValue=u,n?o.createElement("div",{className:"".concat(f,"-panels")},o.createElement(RE.Provider,{value:$($({},v),{},{hideNext:!0})},o.createElement(qE,b)),o.createElement(RE.Provider,{value:$($({},v),{},{hidePrev:!0})},o.createElement(qE,l({},b,{pickerValue:g,onPickerValueChange:function(e){i(m(e,-1))}})))):o.createElement(RE.Provider,{value:$({},v)},o.createElement(qE,b))}function XE(e){return"function"===typeof e?e():e}function GE(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map((function(e,t){var n=e.label,a=e.value;return o.createElement("li",{key:t,onClick:function(){r(XE(a))},onMouseEnter:function(){i(XE(a))},onMouseLeave:function(){i(null)}},n)})))):null}function YE(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,c=e.range,s=e.multiple,u=e.activeOffset,d=void 0===u?0:u,f=e.placement,p=e.presets,m=e.onPresetHover,g=e.onPresetSubmit,v=e.onFocus,h=e.onBlur,b=e.onPanelMouseDown,y=e.direction,x=e.value,$=e.onSelect,w=e.isInvalid,S=e.defaultOpenValue,E=e.onOk,k=e.onSubmit,O=o.useContext(kS).prefixCls,I="".concat(O,"-panel"),N="rtl"===y,M=o.useRef(null),j=o.useRef(null),P=Ae(o.useState(0),2),R=P[0],z=P[1],T=Ae(o.useState(0),2),B=T[0],H=T[1];function D(e){return e.filter((function(e){return e}))}o.useEffect((function(){if(c){var e,t=(null===(e=M.current)||void 0===e?void 0:e.offsetWidth)||0;H(d<=R-t?0:d+t-R)}}),[R,d,c]);var L=o.useMemo((function(){return D(MS(x))}),[x]),A="time"===r&&!L.length,F=o.useMemo((function(){return A?D([S]):L}),[A,L,S]),W=A?S:L,_=o.useMemo((function(){return!F.length||F.some((function(e){return w(e)}))}),[F,w]),V=o.createElement("div",{className:"".concat(O,"-panel-layout")},o.createElement(GE,{prefixCls:O,presets:p,onClick:g,onHover:m}),o.createElement("div",null,o.createElement(KE,l({},e,{value:W})),o.createElement(IE,l({},e,{showNow:!s&&i,invalid:_,onSubmit:function(){A&&$(S),E(),k()}}))));t&&(V=t(V));var q="".concat(I,"-container"),K="marginLeft",X="marginRight",G=o.createElement("div",{onMouseDown:b,tabIndex:-1,className:a()(q,"".concat(O,"-").concat(n,"-panel-container")),style:C(C({},N?X:K,B),N?K:X,"auto"),onFocus:v,onBlur:h},V);if(c){var Y=ES(SS(f,N),N);G=o.createElement("div",{onMouseDown:b,ref:j,className:a()("".concat(O,"-range-wrapper"),"".concat(O,"-").concat(r,"-range-wrapper"))},o.createElement("div",{ref:M,className:"".concat(O,"-range-arrow"),style:C({},Y,d)}),o.createElement(ye,{onResize:function(e){e.offsetWidth&&z(e.offsetWidth)}},G))}return G}function UE(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,m=e.onInputChange,g=e.onInvalid,v=e.open,h=e.onOpenChange,b=e.onKeyDown,y=e.onChange,C=e.activeHelp,x=e.name,w=e.autoComplete,S=e.id,E=e.value,k=e.invalid,O=e.placeholder,I=e.disabled,N=e.activeIndex,M=e.allHelp,j=e.picker,P=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},R=n[0],z=o.useCallback((function(e){return aE(e,{locale:a,format:R,generateConfig:i})}),[a,i,R]),T=o.useMemo((function(){return E.map(z)}),[E,z]),B=o.useMemo((function(){var e="time"===j?8:10,t="function"===typeof R?R(i.getNow()).length:R.length;return Math.max(e,t)+2}),[R,j,i]),H=function(e){for(var t=0;t<n.length;t+=1){var o=n[t];if("string"===typeof o){var r=P(e,o);if(r)return r}}return!1};return[function(n){function o(e){return void 0!==n?e[n]:e}var i=$($({},_a(e,{aria:!0,data:!0})),{},{format:r,validateFormat:function(e){return!!H(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:x,autoComplete:w,size:B,id:o(S),value:o(T)||"",invalid:o(k),placeholder:o(O),active:N===n,helped:M||C&&N===n,disabled:o(I),onFocus:function(e){f(e,n)},onBlur:function(e){p(e,n)},onSubmit:d,onChange:function(e){m();var t=H(e);if(t)return g(!1,n),void y(t,n);g(!!e,n)},onHelp:function(){h(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null===b||void 0===b||b(e,(function(){t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":h(!1,{index:n});break;case"Enter":v||h(!0)}}},null===t||void 0===t?void 0:t({valueTexts:T}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},z]}var QE=["onMouseEnter","onMouseLeave"];function ZE(e){return o.useMemo((function(){return PS(e,QE)}),[e])}var JE=["icon","type"],ek=["onClear"];function tk(e){var t=e.icon,n=e.type,r=Si(e,JE),i=o.useContext(kS).prefixCls;return t?o.createElement("span",l({className:"".concat(i,"-").concat(n)},r),t):null}function nk(e){var t=e.onClear,n=Si(e,ek);return o.createElement(tk,l({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var ok=["YYYY","MM","DD","HH","mm","ss","SSS"],rk=function(){function e(t){ie(this,e),C(this,"format",void 0),C(this,"maskFormat",void 0),C(this,"cells",void 0),C(this,"maskCells",void 0),this.format=t;var n=ok.map((function(e){return"(".concat(e,")")})).join("|"),o=new RegExp(n,"g");this.maskFormat=t.replace(o,(function(e){return"\u9867".repeat(e.length)}));var r=new RegExp("(".concat(ok.join("|"),")")),i=(t.split(r)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=ok.includes(e),n=a,o=a+e.length;return a=o,{text:e,mask:t,start:n,end:o}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return le(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],o=e[t];if(!o||"\u9867"!==n&&n!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,o=0;o<this.maskCells.length;o+=1){var r=this.maskCells[o],i=r.start,a=r.end;if(e>=i&&e<=a)return o;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=o)}return n}}]),e}();var ik=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ak=o.forwardRef((function(e,t){var n=e.active,r=e.showActiveCls,i=void 0===r||r,c=e.suffixIcon,s=e.format,u=e.validateFormat,d=e.onChange,f=(e.onInput,e.helped),p=e.onHelp,m=e.onSubmit,g=e.onKeyDown,v=e.preserveInvalidOnBlur,h=void 0!==v&&v,b=e.invalid,y=e.clearIcon,x=Si(e,ik),$=e.value,w=e.onFocus,S=e.onBlur,E=e.onMouseUp,k=o.useContext(kS),O=k.prefixCls,I=k.input,N=void 0===I?"input":I,M="".concat(O,"-input"),j=Ae(o.useState(!1),2),P=j[0],R=j[1],z=Ae(o.useState($),2),T=z[0],B=z[1],H=Ae(o.useState(""),2),D=H[0],L=H[1],A=Ae(o.useState(null),2),F=A[0],W=A[1],_=Ae(o.useState(null),2),V=_[0],q=_[1],K=T||"";o.useEffect((function(){B($)}),[$]);var X=o.useRef(),G=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:X.current,inputElement:G.current,focus:function(e){G.current.focus(e)},blur:function(){G.current.blur()}}}));var Y=o.useMemo((function(){return new rk(s||"")}),[s]),U=Ae(o.useMemo((function(){return f?[0,0]:Y.getSelection(F)}),[Y,F,f]),2),Q=U[0],Z=U[1],J=function(e){e&&e!==s&&e!==$&&p()},ee=ao((function(e){u(e)&&d(e),B(e),J(e)})),te=o.useRef(!1),ne=function(e){S(e)};pE(n,(function(){n||h||B($)}));var oe=function(e){"Enter"===e.key&&u(K)&&m(),null===g||void 0===g||g(e)},re=o.useRef();Rt((function(){if(P&&s&&!te.current){if(Y.match(K))return G.current.setSelectionRange(Q,Z),re.current=je((function(){G.current.setSelectionRange(Q,Z)})),function(){je.cancel(re.current)};ee(s)}}),[Y,s,P,K,F,Q,Z,V,ee]);var ie=s?{onFocus:function(e){R(!0),W(0),L(""),w(e)},onBlur:function(e){R(!1),ne(e)},onKeyDown:function(e){oe(e);var t=e.key,n=null,o=null,r=Z-Q,i=s.slice(Q,Z),a=function(e){W((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,Y.size()-1)}))},l=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Ae(t,3),o=n[0],r=n[1],a=n[2],l=K.slice(Q,Z),c=Number(l);if(isNaN(c))return String(a||(e>0?o:r));var s=r-o+1;return String(o+(s+(c+e)-o)%s)};switch(t){case"Backspace":case"Delete":n="",o=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",o=l(1);break;case"ArrowDown":n="",o=l(-1);break;default:isNaN(Number(t))||(o=n=D+t)}if(null!==n&&(L(n),n.length>=r&&(a(1),L(""))),null!==o){var c=K.slice(0,Q)+NS(o,r)+K.slice(Z);ee(c.slice(0,s.length))}q({})},onMouseDown:function(){te.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Y.getMaskCellIndex(t);W(n),q({}),null===E||void 0===E||E(e),te.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");u(t)&&ee(t)}}:{};return o.createElement("div",{ref:X,className:a()(M,C(C({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),f))},o.createElement(N,l({ref:G,"aria-invalid":b,autoComplete:"off"},x,{onKeyDown:oe,onBlur:ne},ie,{value:K,onChange:function(e){if(!s){var t=e.target.value;J(t),B(t),d(t)}}})),o.createElement(tk,{type:"suffix",icon:c}),y)}));const lk=ak;var ck=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],sk=["index"];var uk=o.forwardRef((function(e,t){var n=e.id,r=e.clearIcon,i=e.suffixIcon,c=e.separator,s=void 0===c?"~":c,u=e.activeIndex,d=(e.activeHelp,e.allHelp,e.focused),f=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),p=e.className,m=e.style,g=e.onClick,v=e.onClear,h=e.value,y=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),x=e.invalid,w=(e.inputReadOnly,e.direction),S=(e.onOpenChange,e.onActiveOffset),E=e.placement,k=e.onMouseDown,O=(e.required,e["aria-required"],e.autoFocus),I=Si(e,ck),N="rtl"===w,M=o.useContext(kS).prefixCls,j=o.useMemo((function(){if("string"===typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),P=o.useRef(),R=o.useRef(),z=o.useRef(),T=function(e){var t;return null===(t=[R,z][e])||void 0===t?void 0:t.current};o.useImperativeHandle(t,(function(){return{nativeElement:P.current,focus:function(e){if("object"===b(e)){var t,n=e||{},o=n.index,r=void 0===o?0:o,i=Si(n,sk);null===(t=T(r))||void 0===t||t.focus(i)}else{var a;null===(a=T(null!==e&&void 0!==e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}}));var B=ZE(I),H=o.useMemo((function(){return Array.isArray(f)?f:[f,f]}),[f]),D=Ae(UE($($({},e),{},{id:j,placeholder:H})),1)[0],L=SS(E,N),A=ES(L,N),F=null===L||void 0===L?void 0:L.toLowerCase().endsWith("right"),W=Ae(o.useState({position:"absolute",width:0}),2),_=W[0],V=W[1],q=ao((function(){var e=T(u);if(e){var t=e.nativeElement,n=t.offsetWidth,o=t.offsetLeft,r=t.offsetParent,i=(null===r||void 0===r?void 0:r.offsetWidth)||0,a=F?i-n-o:o;V((function(e){return $($({},e),{},C({width:n},A,a))})),S(a)}}));o.useEffect((function(){q()}),[u]);var K=r&&(h[0]&&!y[0]||h[1]&&!y[1]),X=O&&!y[0],G=O&&!X&&!y[1];return o.createElement(ye,{onResize:q},o.createElement("div",l({},B,{className:a()(M,"".concat(M,"-range"),C(C(C(C({},"".concat(M,"-focused"),d),"".concat(M,"-disabled"),y.every((function(e){return e}))),"".concat(M,"-invalid"),x.some((function(e){return e}))),"".concat(M,"-rtl"),N),p),style:m,ref:P,onClick:g,onMouseDown:function(e){var t=e.target;t!==R.current.inputElement&&t!==z.current.inputElement&&e.preventDefault(),null===k||void 0===k||k(e)}}),o.createElement(lk,l({ref:R},D(0),{autoFocus:X,"date-range":"start"})),o.createElement("div",{className:"".concat(M,"-range-separator")},s),o.createElement(lk,l({ref:z},D(1),{autoFocus:G,"date-range":"end"})),o.createElement("div",{className:"".concat(M,"-active-bar"),style:_}),o.createElement(tk,{type:"suffix",icon:i}),K&&o.createElement(nk,{icon:r,onClear:v})))}));const dk=uk;function fk(e,t){var n=null!==e&&void 0!==e?e:t;return Array.isArray(n)?n:[n,n]}function pk(e){return 1===e?"end":"start"}var mk=o.forwardRef((function(e,t){var n=Ae(sE(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:fk(t,!1),allowEmpty:fk(n,!1)}})),6),r=n[0],i=n[1],a=n[2],c=n[3],s=n[4],u=n[5],d=r.prefixCls,f=r.styles,p=r.classNames,m=r.placement,g=r.defaultValue,v=r.value,h=r.needConfirm,b=r.onKeyDown,y=r.disabled,C=r.allowEmpty,x=r.disabledDate,w=r.minDate,S=r.maxDate,E=r.defaultOpen,k=r.open,O=r.onOpenChange,I=r.locale,N=r.generateConfig,M=r.picker,j=r.showNow,P=r.showToday,R=r.showTime,z=r.mode,T=r.onPanelChange,B=r.onCalendarChange,H=r.onOk,D=r.defaultPickerValue,L=r.pickerValue,A=r.onPickerValueChange,F=r.inputReadOnly,W=r.suffixIcon,_=r.onFocus,V=r.onBlur,q=r.presets,K=r.ranges,X=r.components,G=r.cellRender,Y=r.dateRender,U=r.monthCellRender,Q=r.onClick,Z=dE(t),J=Ae(uE(k,E,y,O),2),ee=J[0],te=J[1],ne=function(e,t){!y.some((function(e){return!e}))&&e||te(e,t)},oe=Ae($E(N,I,c,!0,!1,g,v,B,H),5),re=oe[0],ie=oe[1],ae=oe[2],le=oe[3],ce=oe[4],se=ae(),ue=Ae(mE(y,C,ee),7),de=ue[0],fe=ue[1],pe=ue[2],me=ue[3],ge=ue[4],ve=ue[5],he=ue[6],be=function(e,t){fe(!0),null===_||void 0===_||_(e,{range:pk(null!==t&&void 0!==t?t:me)})},ye=function(e,t){fe(!1),null===V||void 0===V||V(e,{range:pk(null!==t&&void 0!==t?t:me)})},xe=o.useMemo((function(){if(!R)return null;var e=R.disabledTime,t=e?function(t){var n=pk(me),o=zS(se,he,me);return e(t,n,{from:o})}:void 0;return $($({},R),{},{disabledTime:t})}),[R,me,se,he]),$e=Ae(so([M,M],{value:z}),2),we=$e[0],Ee=$e[1],ke=we[me]||M,Oe="date"===ke&&xe?"datetime":ke,Ie=Oe===M&&"time"!==Oe,Ne=SE(M,ke,j,P,!0),Me=Ae(wE(r,re,ie,ae,le,y,c,de,ee,u),2),je=Me[0],Pe=Me[1],Re=function(e,t,n,o,r,i){var a=n[n.length-1];return function(l,c){var s=Ae(e,2),u=s[0],d=s[1],f=$($({},c),{},{from:zS(e,n)});return!(1!==a||!t[0]||!u||oE(o,r,u,l,f.type)||!o.isAfter(u,l))||!(0!==a||!t[1]||!d||oE(o,r,d,l,f.type)||!o.isAfter(l,d))||(null===i||void 0===i?void 0:i(l,f))}}(se,y,he,N,I,x),ze=Ae(HS(se,u,C),2),Te=ze[0],Be=ze[1],He=Ae(hE(N,I,se,we,ee,me,i,Ie,D,L,null===xe||void 0===xe?void 0:xe.defaultOpenValue,A,w,S),2),De=He[0],Le=He[1],Fe=ao((function(e,t,n){var o=jS(we,me,t);if(o[0]===we[0]&&o[1]===we[1]||Ee(o),T&&!1!==n){var r=Se(se);e&&(r[me]=e),T(r,o)}})),We=function(e,t){return jS(se,t,e)},_e=function(e,t){var n=se;e&&(n=We(e,me));var o=ve(n);le(n),je(me,null===o),null===o?ne(!1,{force:!0}):t||Z.current.focus({index:o})},Ve=Ae(o.useState(null),2),qe=Ve[0],Ke=Ve[1],Xe=Ae(o.useState(null),2),Ge=Xe[0],Ye=Xe[1],Ue=o.useMemo((function(){return Ge||se}),[se,Ge]);o.useEffect((function(){ee||Ye(null)}),[ee]);var Qe=Ae(o.useState(0),2),Ze=Qe[0],Je=Qe[1],et=fE(q,K),tt=BS(G,Y,U,pk(me)),nt=se[me]||null,ot=ao((function(e){return u(e,{activeIndex:me})})),rt=o.useMemo((function(){var e=_a(r,!1);return Ce(r,[].concat(Se(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[r]),it=o.createElement(YE,l({},rt,{showNow:Ne,showTime:xe,range:!0,multiplePanel:Ie,activeOffset:Ze,placement:m,disabledDate:Re,onFocus:function(e){ne(!0),be(e)},onBlur:ye,onPanelMouseDown:function(){pe("panel")},picker:M,mode:ke,internalMode:Oe,onPanelChange:Fe,format:s,value:nt,isInvalid:ot,onChange:null,onSelect:function(e){var t=jS(se,me,e);le(t),h||a||i!==Oe||_e(e)},pickerValue:De,defaultOpenValue:MS(null===R||void 0===R?void 0:R.defaultOpenValue)[me],onPickerValueChange:Le,hoverValue:Ue,onHover:function(e){Ye(e?We(e,me):null),Ke("cell")},needConfirm:h,onSubmit:_e,onOk:ce,presets:et,onPresetHover:function(e){Ye(e),Ke("preset")},onPresetSubmit:function(e){Pe(e)&&ne(!1,{force:!0})},onNow:function(e){_e(e)},cellRender:tt})),at=o.useMemo((function(){return{prefixCls:d,locale:I,generateConfig:N,button:X.button,input:X.input}}),[d,I,N,X.button,X.input]);return Rt((function(){ee&&void 0!==me&&Fe(null,M,!1)}),[ee,me,M]),Rt((function(){var e=pe();ee||"input"!==e||(ne(!1),_e(null,!0)),ee||!a||h||"panel"!==e||(ne(!0),_e())}),[ee]),o.createElement(kS.Provider,{value:at},o.createElement(IS,l({},TS(r),{popupElement:it,popupStyle:f.popup,popupClassName:p.popup,visible:ee,onClose:function(){ne(!1)},range:!0}),o.createElement(dk,l({},r,{ref:Z,suffixIcon:W,activeIndex:de||ee?me:null,activeHelp:!!Ge,allHelp:!!Ge&&"preset"===qe,focused:de,onFocus:function(e,t){pe("input"),ne(!0,{inherit:!0}),me!==t&&ee&&!h&&a&&_e(null,!0),ge(t),be(e,t)},onBlur:function(e,t){if(ne(!1),!h&&"input"===pe()){var n=ve(se);je(me,null===n)}ye(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&_e(null,!0),null===b||void 0===b||b(e,t)},onSubmit:_e,value:Ue,maskFormat:s,onChange:function(e,t){var n=We(e,t);le(n)},onInputChange:function(){pe("input")},format:c,inputReadOnly:F,disabled:y,open:ee,onOpenChange:ne,onClick:function(e){var t,n=e.target.getRootNode();if(!Z.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var o=y.findIndex((function(e){return!e}));o>=0&&Z.current.focus({index:o})}ne(!0),null===Q||void 0===Q||Q(e)},onClear:function(){Pe(null),ne(!1,{force:!0})},invalid:Te,onInvalid:Be,onActiveOffset:Je}))))}));const gk=mk;function vk(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,l=void 0===i?"\xd7":i,c=e.formatDate,s=e.disabled,u=e.maxTagCount,d=e.placeholder,f="".concat(t,"-selector"),p="".concat(t,"-selection"),m="".concat(p,"-overflow");function g(e,t){return o.createElement("span",{className:a()("".concat(p,"-item")),title:"string"===typeof e?e:null},o.createElement("span",{className:"".concat(p,"-item-content")},e),!s&&t&&o.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(p,"-item-remove")},l))}return o.createElement("div",{className:f},o.createElement(Lv,{prefixCls:m,data:n,renderItem:function(e){return g(c(e),(function(t){t&&t.stopPropagation(),r(e)}))},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!n.length&&o.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var hk=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];var bk=o.forwardRef((function(e,t){e.id;var n=e.open,r=e.clearIcon,i=e.suffixIcon,c=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),u=e.generateConfig,d=e.placeholder,f=e.className,p=e.style,m=e.onClick,g=e.onClear,v=e.internalPicker,h=e.value,b=e.onChange,y=e.onSubmit,x=(e.onInputChange,e.multiple),w=e.maxTagCount,S=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),E=e.invalid,k=(e.inputReadOnly,e.direction),O=(e.onOpenChange,e.onMouseDown),I=(e.required,e["aria-required"],e.autoFocus),N=e.removeIcon,M=Si(e,hk),j="rtl"===k,P=o.useContext(kS).prefixCls,R=o.useRef(),z=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:R.current,focus:function(e){var t;null===(t=z.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=z.current)||void 0===e||e.blur()}}}));var T=ZE(M),B=UE($($({},e),{},{onChange:function(e){b([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:c}})),H=Ae(B,2),D=H[0],L=H[1],A=!(!r||!h.length||S),F=x?o.createElement(o.Fragment,null,o.createElement(vk,{prefixCls:P,value:h,onRemove:function(e){var t=h.filter((function(t){return t&&!oE(u,s,t,e,v)}));b(t),n||y()},formatDate:L,maxTagCount:w,disabled:S,removeIcon:N,placeholder:d}),o.createElement("input",{className:"".concat(P,"-multiple-input"),value:h.map(L).join(","),ref:z,readOnly:!0,autoFocus:I}),o.createElement(tk,{type:"suffix",icon:i}),A&&o.createElement(nk,{icon:r,onClear:g})):o.createElement(lk,l({ref:z},D(),{autoFocus:I,suffixIcon:i,clearIcon:A&&o.createElement(nk,{icon:r,onClear:g}),showActiveCls:!1}));return o.createElement("div",l({},T,{className:a()(P,C(C(C(C(C({},"".concat(P,"-multiple"),x),"".concat(P,"-focused"),c),"".concat(P,"-disabled"),S),"".concat(P,"-invalid"),E),"".concat(P,"-rtl"),j),f),style:p,ref:R,onClick:m,onMouseDown:function(e){var t;e.target!==(null===(t=z.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null===O||void 0===O||O(e)}}),F)}));const yk=bk;var Ck=o.forwardRef((function(e,t){var n=Ae(sE(e),6),r=n[0],i=n[1],a=n[2],c=n[3],s=n[4],u=n[5],d=r,f=d.prefixCls,p=d.styles,m=d.classNames,g=d.order,v=d.defaultValue,h=d.value,b=d.needConfirm,y=d.onChange,C=d.onKeyDown,x=d.disabled,w=d.disabledDate,S=d.minDate,E=d.maxDate,k=d.defaultOpen,O=d.open,I=d.onOpenChange,N=d.locale,M=d.generateConfig,j=d.picker,P=d.showNow,R=d.showToday,z=d.showTime,T=d.mode,B=d.onPanelChange,H=d.onCalendarChange,D=d.onOk,L=d.multiple,A=d.defaultPickerValue,F=d.pickerValue,W=d.onPickerValueChange,_=d.inputReadOnly,V=d.suffixIcon,q=d.removeIcon,K=d.onFocus,X=d.onBlur,G=d.presets,Y=d.components,U=d.cellRender,Q=d.dateRender,Z=d.monthCellRender,J=d.onClick,ee=dE(t);function te(e){return null===e?null:L?e:e[0]}var ne=NE(M,N,i),oe=Ae(uE(O,k,[x],I),2),re=oe[0],ie=oe[1],ae=Ae($E(M,N,c,!1,g,v,h,(function(e,t,n){if(H){var o=$({},n);delete o.range,H(te(e),te(t),o)}}),(function(e){null===D||void 0===D||D(te(e))})),5),le=ae[0],ce=ae[1],se=ae[2],ue=ae[3],de=ae[4],fe=se(),pe=Ae(mE([x]),4),me=pe[0],ge=pe[1],ve=pe[2],he=pe[3],be=function(e){ge(!0),null===K||void 0===K||K(e,{})},ye=function(e){ge(!1),null===X||void 0===X||X(e,{})},xe=Ae(so(j,{value:T}),2),$e=xe[0],we=xe[1],Ee="date"===$e&&z?"datetime":$e,ke=SE(j,$e,P,R),Oe=y&&function(e,t){y(te(e),te(t))},Ie=Ae(wE($($({},r),{},{onChange:Oe}),le,ce,se,ue,[],c,me,re,u),2)[1],Ne=Ae(HS(fe,u),2),Me=Ne[0],je=Ne[1],Pe=o.useMemo((function(){return Me.some((function(e){return e}))}),[Me]),Re=Ae(hE(M,N,fe,[$e],re,he,i,!1,A,F,MS(null===z||void 0===z?void 0:z.defaultOpenValue),(function(e,t){if(W){var n=$($({},t),{},{mode:t.mode[0]});delete n.range,W(e[0],n)}}),S,E),2),ze=Re[0],Te=Re[1],Be=ao((function(e,t,n){if(we(t),B&&!1!==n){var o=e||fe[fe.length-1];B(o,t)}})),He=function(){Ie(se()),ie(!1,{force:!0})},De=Ae(o.useState(null),2),Le=De[0],Fe=De[1],We=Ae(o.useState(null),2),_e=We[0],Ve=We[1],qe=o.useMemo((function(){var e=[_e].concat(Se(fe)).filter((function(e){return e}));return L?e:e.slice(0,1)}),[fe,_e,L]),Ke=o.useMemo((function(){return!L&&_e?[_e]:fe.filter((function(e){return e}))}),[fe,_e,L]);o.useEffect((function(){re||Ve(null)}),[re]);var Xe=fE(G),Ge=function(e){var t=L?ne(se(),e):[e];Ie(t)&&!L&&ie(!1,{force:!0})},Ye=BS(U,Q,Z),Ue=o.useMemo((function(){var e=_a(r,!1);return $($({},Ce(r,[].concat(Se(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:r.multiple})}),[r]),Qe=o.createElement(YE,l({},Ue,{showNow:ke,showTime:z,disabledDate:w,onFocus:function(e){ie(!0),be(e)},onBlur:ye,picker:j,mode:$e,internalMode:Ee,onPanelChange:Be,format:s,value:fe,isInvalid:u,onChange:null,onSelect:function(e){ve("panel");var t=L?ne(se(),e):[e];ue(t),b||a||i!==Ee||He()},pickerValue:ze,defaultOpenValue:null===z||void 0===z?void 0:z.defaultOpenValue,onPickerValueChange:Te,hoverValue:qe,onHover:function(e){Ve(e),Fe("cell")},needConfirm:b,onSubmit:He,onOk:de,presets:Xe,onPresetHover:function(e){Ve(e),Fe("preset")},onPresetSubmit:Ge,onNow:function(e){Ge(e)},cellRender:Ye})),Ze=o.useMemo((function(){return{prefixCls:f,locale:N,generateConfig:M,button:Y.button,input:Y.input}}),[f,N,M,Y.button,Y.input]);return Rt((function(){re&&void 0!==he&&Be(null,j,!1)}),[re,he,j]),Rt((function(){var e=ve();re||"input"!==e||(ie(!1),He()),re||!a||b||"panel"!==e||(ie(!0),He())}),[re]),o.createElement(kS.Provider,{value:Ze},o.createElement(IS,l({},TS(r),{popupElement:Qe,popupStyle:p.popup,popupClassName:m.popup,visible:re,onClose:function(){ie(!1)}}),o.createElement(yk,l({},r,{ref:ee,suffixIcon:V,removeIcon:q,activeHelp:!!_e,allHelp:!!_e&&"preset"===Le,focused:me,onFocus:function(e){ve("input"),ie(!0,{inherit:!0}),be(e)},onBlur:function(e){ie(!1),ye(e)},onKeyDown:function(e,t){"Tab"===e.key&&He(),null===C||void 0===C||C(e,t)},onSubmit:He,value:Ke,maskFormat:s,onChange:function(e){ue(e)},onInputChange:function(){ve("input")},internalPicker:i,format:c,inputReadOnly:_,disabled:x,open:re,onOpenChange:ie,onClick:function(e){x||ee.current.nativeElement.contains(document.activeElement)||ee.current.focus(),ie(!0),null===J||void 0===J||J(e)},onClear:function(){Ie(null),ie(!1,{force:!0})},invalid:Pe,onInvalid:function(e){je(e,0)}}))))}));const xk=Ck,$k=o.createContext(null),wk=$k.Provider,Sk=$k,Ek=o.createContext(null),kk=Ek.Provider;var Ok=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Ik=(0,o.forwardRef)((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-checkbox":n,i=e.className,c=e.style,s=e.checked,u=e.disabled,d=e.defaultChecked,f=void 0!==d&&d,p=e.type,m=void 0===p?"checkbox":p,g=e.title,v=e.onChange,h=Si(e,Ok),b=(0,o.useRef)(null),y=(0,o.useRef)(null),x=Ae(so(f,{value:s}),2),w=x[0],S=x[1];(0,o.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:y.current}}));var E=a()(r,i,C(C({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),u));return o.createElement("span",{className:E,title:g,style:c,ref:y},o.createElement("input",l({},h,{className:"".concat(r,"-input"),ref:b,onChange:function(t){u||("checked"in e||S(t.target.checked),null===v||void 0===v||v({target:$($({},e),{},{type:m,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:u,checked:!!w,type:m})),o.createElement("span",{className:"".concat(r,"-inner")}))}));const Nk=Ik,Mk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},Ro(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},jk=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:h,calc:b}=e,y=`${t}-inner`,C=b(r).sub(b(4).mul(2)),x=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ro(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Et(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},To(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(C).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},Pk=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:h,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:$,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:S,colorPrimary:E,colorPrimaryHover:k,colorPrimaryActive:O,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:M,calc:j}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:Et(j(n).sub(j(r).mul(2)).equal()),background:d,border:`${Et(r)} ${i} ${a}`,borderBlockStartWidth:j(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:j(r).mul(-1).equal(),insetInlineStart:j(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Et(r)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${o}-group-large &`]:{height:p,fontSize:f,lineHeight:Et(j(p).sub(j(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:m,paddingInline:j(g).sub(r).equal(),paddingBlock:0,lineHeight:Et(j(m).sub(j(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},To(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:C,background:I,borderColor:I,"&:hover":{color:C,background:N,borderColor:N},"&:active":{color:C,background:M,borderColor:M}},"&-disabled":{color:x,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:$,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:S,backgroundColor:w,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Rk=fi("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Et(n)} ${t}`,r=xo(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[Mk(r),jk(r),Pk(r)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var zk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tk=o.forwardRef(((e,t)=>{var n,r;const i=o.useContext(Sk),l=o.useContext(Ek),{getPrefixCls:c,direction:s,radio:u}=o.useContext(Be),d=o.useRef(null),f=M(t,d),{isFormItemInput:p}=o.useContext(em);const m=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null===i||void 0===i?void 0:i.onChange)||void 0===o||o.call(i,t)},{prefixCls:g,className:v,rootClassName:h,children:b,style:y,title:C}=e,x=zk(e,["prefixCls","className","rootClassName","children","style","title"]),$=c("radio",g),w="button"===((null===i||void 0===i?void 0:i.optionType)||l),S=w?`${$}-button`:$,E=bl($),[k,O,I]=Rk($,E),N=Object.assign({},x),j=o.useContext(Qc);i&&(N.name=i.name,N.onChange=m,N.checked=e.value===i.value,N.disabled=null!==(n=N.disabled)&&void 0!==n?n:i.disabled),N.disabled=null!==(r=N.disabled)&&void 0!==r?r:j;const P=a()(`${S}-wrapper`,{[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:N.disabled,[`${S}-wrapper-rtl`]:"rtl"===s,[`${S}-wrapper-in-form-item`]:p,[`${S}-wrapper-block`]:!!(null===i||void 0===i?void 0:i.block)},null===u||void 0===u?void 0:u.className,v,h,O,I,E);return k(o.createElement(Ts,{component:"Radio",disabled:N.disabled},o.createElement("label",{className:P,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C},o.createElement(Nk,Object.assign({},N,{className:a()(N.className,{[Ns]:!w}),type:"radio",prefixCls:S,ref:f})),void 0!==b?o.createElement("span",null,b):null)))}));const Bk=Tk,Hk=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(Be),{prefixCls:i,className:l,rootClassName:c,options:s,buttonStyle:u="outline",disabled:d,children:f,size:p,style:m,id:g,optionType:v,name:h,defaultValue:b,value:y,block:C=!1,onChange:x,onMouseEnter:$,onMouseLeave:w,onFocus:S,onBlur:E}=e,[k,O]=so(b,{value:y}),I=o.useCallback((t=>{const n=k,o=t.target.value;"value"in e||O(o),o!==n&&(null===x||void 0===x||x(t))}),[k,O,x]),N=n("radio",i),M=`${N}-group`,j=bl(N),[P,R,z]=Rk(N,j);let T=f;s&&s.length>0&&(T=s.map((e=>"string"===typeof e||"number"===typeof e?o.createElement(Bk,{key:e.toString(),prefixCls:N,disabled:d,value:e,checked:k===e},e):o.createElement(Bk,{key:`radio-group-value-options-${e.value}`,prefixCls:N,disabled:e.disabled||d,value:e.value,checked:k===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const B=Bs(p),H=a()(M,`${M}-${u}`,{[`${M}-${B}`]:B,[`${M}-rtl`]:"rtl"===r,[`${M}-block`]:C},l,c,R,z,j),D=o.useMemo((()=>({onChange:I,value:k,disabled:d,name:h,optionType:v,block:C})),[I,k,d,h,v,C]);return P(o.createElement("div",Object.assign({},_a(e,{aria:!0,data:!0}),{className:H,style:m,onMouseEnter:$,onMouseLeave:w,onFocus:S,onBlur:E,id:g,ref:t}),o.createElement(wk,{value:D},T)))})),Dk=o.memo(Hk);var Lk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ak=o.forwardRef(((e,t)=>{const{getPrefixCls:n}=o.useContext(Be),{prefixCls:r}=e,i=Lk(e,["prefixCls"]),a=n("radio",r);return o.createElement(kk,{value:"button"},o.createElement(Bk,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))}));function Fk(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:a,value:l,onChange:c,divRef:s}=e,u=r.getYear(l||r.getNow());let d=u-10,f=d+20;n&&(d=r.getYear(n[0]),f=r.getYear(n[1])+1);const p=i&&"\u5e74"===i.year?"\u5e74":"",m=[];for(let o=d;o<f;o++)m.push({label:`${o}${p}`,value:o});return o.createElement(zy,{size:t?void 0:"small",options:m,value:u,className:`${a}-year-select`,onChange:e=>{let t=r.setYear(l,e);if(n){const[e,o]=n,i=r.getYear(t),a=r.getMonth(t);i===r.getYear(o)&&a>r.getMonth(o)&&(t=r.setMonth(t,r.getMonth(o))),i===r.getYear(e)&&a<r.getMonth(e)&&(t=r.setMonth(t,r.getMonth(e)))}c(t)},getPopupContainer:()=>s.current})}function Wk(e){const{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:a,locale:l,onChange:c,divRef:s}=e,u=a.getMonth(i||a.getNow());let d=0,f=11;if(r){const[e,t]=r,n=a.getYear(i);a.getYear(t)===n&&(f=a.getMonth(t)),a.getYear(e)===n&&(d=a.getMonth(e))}const p=l.shortMonths||a.locale.getShortMonths(l.locale),m=[];for(let o=d;o<=f;o+=1)m.push({label:p[o],value:o});return o.createElement(zy,{size:n?void 0:"small",className:`${t}-month-select`,value:u,options:m,onChange:e=>{c(a.setMonth(i,e))},getPopupContainer:()=>s.current})}function _k(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:a}=e;return o.createElement(Dk,{onChange:e=>{let{target:{value:t}}=e;a(t)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},o.createElement(Ak,{value:"month"},n.month),o.createElement(Ak,{value:"year"},n.year))}const Vk=function(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:a}=e,l=o.useRef(null),c=(0,o.useContext)(em),s=(0,o.useMemo)((()=>Object.assign(Object.assign({},c),{isFormItemInput:!1})),[c]),u=Object.assign(Object.assign({},e),{fullscreen:n,divRef:l});return o.createElement("div",{className:`${t}-header`,ref:l},o.createElement(em.Provider,{value:s},o.createElement(Fk,Object.assign({},u,{onChange:e=>{i(e,"year")}})),"month"===r&&o.createElement(Wk,Object.assign({},u,{onChange:e=>{i(e,"month")}}))),o.createElement(_k,Object.assign({},u,{onModeChange:a})))},qk=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:o,borderRadiusSM:r,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:Et(o),borderRadius:r,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Et(l)} ${c} ${s}`,borderRadius:r,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:r,borderEndStartRadius:r,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r},"&-disabled":{color:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Kk=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerYearMonthCellWidth:r,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:h,colorIcon:b,textHeight:y,motionDurationMid:C,colorIconHover:x,fontWeightStrong:$,cellHeight:w,pickerCellPaddingVertical:S,colorTextDisabled:E,colorText:k,fontSize:O,motionDurationSlow:I,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:M,borderRadiusSM:j,colorTextLightSolid:P,cellHoverBg:R,timeColumnHeight:z,timeColumnWidth:T,timeCellHeight:B,controlItemBgActive:H,marginXXS:D,pickerDatePanelPaddingHorizontal:L,pickerControlIconMargin:A}=e,F=e.calc(a).mul(7).add(e.calc(L).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:F},"&-header":{display:"flex",padding:`0 ${Et(c)}`,color:g,borderBottom:`${Et(d)} ${f} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Et(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:$,lineHeight:Et(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Et(h)} 0`,borderInlineWidth:`${Et(h)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:A,insetInlineStart:A,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Et(h)} 0`,borderInlineWidth:`${Et(h)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(S).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Et(S)} 0`,color:E,cursor:"pointer","&-in-view":{color:k}},qk(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(N).mul(4).equal()},[o]:{padding:`0 ${Et(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:M}},"&-decade-panel":{[o]:{padding:`0 ${Et(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Et(c)}`},[o]:{width:r}},"&-date-panel":{[`${t}-body`]:{padding:`${Et(c)} ${Et(L)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${o},\n &-selected ${o},\n ${o}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td":{"&:before":{background:R}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Fr(P).setAlpha(.5).toHexString()},[o]:{color:P}}},"&-range-hover td:before":{background:H}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Et(c)} ${Et(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Et(d)} ${f} ${v}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:z},"&-column":{flex:"1 0 auto",width:T,margin:`${Et(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(B).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${Et(d)} ${f} ${v}`},"&-active":{background:new Fr(H).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(T).sub(e.calc(D).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(T).sub(B).div(2).equal(),color:k,lineHeight:Et(B),borderRadius:j,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:R}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},Xk=e=>{const{componentCls:t,textHeight:n,lineWidth:o,paddingSM:r,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Et(o)} ${s} ${u}`,"&-extra":{padding:`0 ${Et(r)}`,lineHeight:Et(e.calc(n).sub(e.calc(o).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Et(o)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Et(r),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Et(e.calc(n).sub(e.calc(o).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(o).mul(2).equal(),marginInlineStart:"auto"}}}}};function Gk(e){return xo(e,{inputAffixPadding:e.paddingXXS})}const Yk=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-r,paddingInline:s-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},Uk=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:o,padding:r}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(o).add(e.calc(o).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(r).add(e.calc(o).div(2)).equal()}},Qk=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:o,controlHeightLG:r,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(o-l,o-c),d=Math.min(r-l,r-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Fr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Fr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*r,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*o,cellHeight:o,textHeight:r,withoutTimeCellHeight:1.65*r,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Zk=e=>{const{calendarCls:t,componentCls:n,fullBg:o,fullPanelBg:r,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Kk(e)),Ro(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${Et(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${Et(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:Et(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:Et(e.weekHeight)}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${Et(e.calc(e.marginXS).div(2).equal())}`,padding:`${Et(e.calc(e.paddingXS).div(2).equal())} ${Et(e.paddingXS)} 0`,border:0,borderTop:`${Et(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:Et(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${Et(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${Et(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},Jk=fi("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=xo(e,Uk(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[Zk(n)]}),(e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},Qk(e)))),eO=(e,t,n)=>{const{getYear:o}=n;return e&&t&&o(e)===o(t)},tO=(e,t,n)=>{const{getMonth:o}=n;return eO(e,t,n)&&o(e)===o(t)},nO=(e,t,n)=>{const{getDate:o}=n;return tO(e,t,n)&&o(e)===o(t)},oO=e=>t=>{const{prefixCls:n,className:r,rootClassName:i,style:l,dateFullCellRender:c,dateCellRender:s,monthFullCellRender:u,monthCellRender:d,cellRender:f,fullCellRender:p,headerRender:m,value:g,defaultValue:v,disabledDate:h,mode:b,validRange:y,fullscreen:C=!0,onChange:x,onPanelChange:$,onSelect:w}=t,{getPrefixCls:S,direction:E,calendar:k}=o.useContext(Be),O=S("picker",n),I=`${O}-calendar`,[N,M,j]=Jk(O,I),P=e.getNow();const[R,z]=so((()=>g||e.getNow()),{defaultValue:v,value:g}),[T,B]=so("month",{value:b}),H=o.useMemo((()=>"year"===T?"month":"date"),[T]),D=o.useCallback((t=>!!y&&(e.isAfter(y[0],t)||e.isAfter(t,y[1]))||!!(null===h||void 0===h?void 0:h(t))),[h,y]),L=(e,t)=>{null===$||void 0===$||$(e,t)},A=e=>{B(e),L(R,e)},F=(t,n)=>{(t=>{z(t),nO(t,R,e)||(("date"===H&&!tO(t,R,e)||"month"===H&&!eO(t,R,e))&&L(t,T),null===x||void 0===x||x(t))})(t),null===w||void 0===w||w(t,{source:n})},W=o.useCallback(((t,n)=>p?p(t,n):c?c(t):o.createElement("div",{className:a()(`${O}-cell-inner`,`${I}-date`,{[`${I}-date-today`]:nO(P,t,e)})},o.createElement("div",{className:`${I}-date-value`},String(e.getDate(t)).padStart(2,"0")),o.createElement("div",{className:`${I}-date-content`},f?f(t,n):null===s||void 0===s?void 0:s(t)))),[c,s,f,p]),_=o.useCallback(((t,n)=>{if(p)return p(t,n);if(u)return u(t);const r=n.locale.shortMonths||e.locale.getShortMonths(n.locale.locale);return o.createElement("div",{className:a()(`${O}-cell-inner`,`${I}-date`,{[`${I}-date-today`]:tO(P,t,e)})},o.createElement("div",{className:`${I}-date-value`},r[e.getMonth(t)]),o.createElement("div",{className:`${I}-date-content`},f?f(t,n):null===d||void 0===d?void 0:d(t)))}),[u,d,f,p]),[V]=Es("Calendar",Dc),q=Object.assign(Object.assign({},V),t.locale);return N(o.createElement("div",{className:a()(I,{[`${I}-full`]:C,[`${I}-mini`]:!C,[`${I}-rtl`]:"rtl"===E},null===k||void 0===k?void 0:k.className,r,i,M,j),style:Object.assign(Object.assign({},null===k||void 0===k?void 0:k.style),l)},m?m({value:R,type:T,onChange:e=>{F(e,"customize")},onTypeChange:A}):o.createElement(Vk,{prefixCls:I,value:R,generateConfig:e,mode:T,fullscreen:C,locale:null===q||void 0===q?void 0:q.lang,validRange:y,onChange:F,onModeChange:A}),o.createElement(qE,{value:R,prefixCls:O,locale:null===q||void 0===q?void 0:q.lang,generateConfig:e,cellRender:(e,t)=>"date"===t.type?W(e,t):"month"===t.type?_(e,Object.assign(Object.assign({},t),{locale:null===q||void 0===q?void 0:q.lang})):void 0,onSelect:e=>{F(e,H)},mode:H,picker:H,disabledDate:D,hideHeader:!0})))},rO=oO(wS);rO.generateCalendar=oO;const iO=rO;const aO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const lO=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:aO}))})),cO=(0,o.createContext)(null);const sO=function(e){var t=e.activeTabOffset,n=e.horizontal,i=e.rtl,a=e.indicator,l=void 0===a?{}:a,c=l.size,s=l.align,u=void 0===s?"center":s,d=Ae((0,o.useState)(),2),f=d[0],p=d[1],m=(0,o.useRef)(),g=r().useCallback((function(e){return"function"===typeof c?c(e):"number"===typeof c?c:e}),[c]);function v(){je.cancel(m.current)}return(0,o.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var o=i?"right":"left";"start"===u&&(e[o]=t[o]),"center"===u&&(e[o]=t[o]+t.width/2,e.transform=i?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=je((function(){p(e)})),v}),[t,n,i,u,g]),{style:f}};var uO={width:0,height:0,left:0,top:0};function dO(e,t){var n=o.useRef(e),r=Ae(o.useState({}),2)[1];return[n.current,function(e){var o="function"===typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var fO=Math.pow(.995,20);function pO(e){var t=Ae((0,o.useState)(0),2),n=t[0],r=t[1],i=(0,o.useRef)(0),a=(0,o.useRef)();return a.current=e,Pt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}var mO={width:0,height:0,left:0,top:0,right:0};function gO(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function vO(e){return String(e).replace(/"/g,"TABS_DQ")}function hO(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var bO=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));const yO=bO;var CO=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==b(a)||o.isValidElement(a)?l.right=a:l=a,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));const xO=CO;var $O=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,c=e.locale,s=e.mobile,u=e.more,d=void 0===u?{}:u,f=e.style,p=e.className,m=e.editable,g=e.tabBarGutter,v=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,x=e.popupClassName,$=Ae((0,o.useState)(!1),2),w=$[0],S=$[1],E=Ae((0,o.useState)(null),2),k=E[0],O=E[1],I=d.icon,N=void 0===I?"More":I,M="".concat(r,"-more-popup"),j="".concat(n,"-dropdown"),P=null!==k?"".concat(M,"-").concat(k):null,R=null===c||void 0===c?void 0:c.dropdownAriaLabel;var z=o.createElement(V$,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(j,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[k],"aria-label":void 0!==R?R:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=hO(t,i,m,n);return o.createElement(h$,{key:a,id:"".concat(M,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,l),c&&o.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"\xd7"))})));function T(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}(0,o.useEffect)((function(){var e=document.getElementById(P);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),(0,o.useEffect)((function(){w||O(null)}),[w]);var B=C({},v?"marginRight":"marginLeft",g);i.length||(B.visibility="hidden",B.order=1);var H=a()(C({},"".concat(j,"-rtl"),v)),D=s?null:o.createElement(kx,l({prefixCls:j,overlay:z,visible:!!i.length&&w,onVisibleChange:S,overlayClassName:a()(H,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},d),o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:B,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case zl.UP:T(-1),e.preventDefault();break;case zl.DOWN:T(1),e.preventDefault();break;case zl.ESC:S(!1);break;case zl.SPACE:case zl.ENTER:null!==k&&b(k,e)}else[zl.DOWN,zl.SPACE,zl.ENTER].includes(t)&&(S(!0),e.preventDefault())}},N));return o.createElement("div",{className:a()("".concat(n,"-nav-operations"),p),style:f,ref:t},D,o.createElement(yO,{prefixCls:n,locale:c,editable:m}))}));const wO=o.memo($O,(function(e,t){return t.tabMoving}));const SO=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.tab,l=i.key,c=i.label,s=i.disabled,u=i.closeIcon,d=i.icon,f=e.closable,p=e.renderWrapper,m=e.removeAriaLabel,g=e.editable,v=e.onClick,h=e.onFocus,b=e.style,y="".concat(t,"-tab"),x=hO(f,u,g,s);function $(e){s||v(e)}var w=o.useMemo((function(){return d&&"string"===typeof c?o.createElement("span",null,c):c}),[c,d]),S=o.createElement("div",{key:l,"data-node-key":vO(l),className:a()(y,C(C(C({},"".concat(y,"-with-remove"),x),"".concat(y,"-active"),r),"".concat(y,"-disabled"),s)),style:b,onClick:$},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(l),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(l),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),$(e)},onKeyDown:function(e){[zl.SPACE,zl.ENTER].includes(e.which)&&(e.preventDefault(),$(e))},onFocus:h},d&&o.createElement("span",{className:"".concat(y,"-icon")},d),c&&w),x&&o.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:l,event:t})}},u||g.removeIcon||"\xd7"));return p?p(S):S};var EO=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-o)<1)return[l,c]}return[o,i]},kO=function(e,t){return e[t?0:1]},OO=o.forwardRef((function(e,t){var n=e.className,r=e.style,i=e.id,c=e.animated,s=e.activeKey,u=e.rtl,d=e.extra,f=e.editable,p=e.locale,m=e.tabPosition,g=e.tabBarGutter,v=e.children,h=e.onTabClick,b=e.onTabScroll,y=e.indicator,x=o.useContext(cO),w=x.prefixCls,S=x.tabs,E=(0,o.useRef)(null),k=(0,o.useRef)(null),O=(0,o.useRef)(null),I=(0,o.useRef)(null),N=(0,o.useRef)(null),M=(0,o.useRef)(null),P=(0,o.useRef)(null),R="top"===m||"bottom"===m,z=dO(0,(function(e,t){R&&b&&b({direction:e>t?"left":"right"})})),T=Ae(z,2),B=T[0],H=T[1],D=dO(0,(function(e,t){!R&&b&&b({direction:e>t?"top":"bottom"})})),L=Ae(D,2),A=L[0],F=L[1],W=Ae((0,o.useState)([0,0]),2),_=W[0],V=W[1],q=Ae((0,o.useState)([0,0]),2),K=q[0],X=q[1],G=Ae((0,o.useState)([0,0]),2),Y=G[0],U=G[1],Q=Ae((0,o.useState)([0,0]),2),Z=Q[0],J=Q[1],ee=function(e){var t=(0,o.useRef)([]),n=Ae((0,o.useState)({}),2)[1],r=(0,o.useRef)("function"===typeof e?e():e),i=pO((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,n({})}));return[r.current,function(e){t.current.push(e),i()}]}(new Map),te=Ae(ee,2),ne=te[0],oe=te[1],re=function(e,t,n){return(0,o.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||uO,i=r.left+r.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||uO);var u=o.get(c)||$({},s);u.right=i-u.left-u.width,o.set(c,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(S,ne,K[0]),ie=kO(_,R),ae=kO(K,R),le=kO(Y,R),ce=kO(Z,R),se=Math.floor(ie)<Math.floor(ae+le),ue=se?ie-ce:ie-le,de="".concat(w,"-nav-operations-hidden"),fe=0,pe=0;function me(e){return e<fe?fe:e>pe?pe:e}R&&u?(fe=0,pe=Math.max(0,ae-ue)):(fe=Math.min(0,ue-ae),pe=0);var ge=(0,o.useRef)(null),ve=Ae((0,o.useState)(),2),he=ve[0],be=ve[1];function Ce(){be(Date.now())}function xe(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=Ae((0,o.useState)(),2),r=n[0],i=n[1],a=Ae((0,o.useState)(0),2),l=a[0],c=a[1],s=Ae((0,o.useState)(0),2),u=s[0],d=s[1],f=Ae((0,o.useState)(),2),p=f[0],m=f[1],g=(0,o.useRef)(),v=(0,o.useRef)(),h=(0,o.useRef)(null);h.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(g.current)},onTouchMove:function(e){if(r){var n=e.touches[0],o=n.screenX,a=n.screenY;i({x:o,y:a});var s=o-r.x,u=a-r.y;t(s,u);var f=Date.now();c(f),d(f-l),m({x:s,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),p)){var e=p.x/u,n=p.y/u,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,a)<.1)return;var l=e,c=n;g.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):t(20*(l*=fO),20*(c*=fO))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===v.current?n:o:i>a?(r=n,v.current="x"):(r=o,v.current="y"),t(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function t(e){h.current.onTouchMove(e)}function n(e){h.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){h.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){h.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(I,(function(e,t){function n(e,t){e((function(e){return me(e+t)}))}return!!se&&(R?n(H,e):n(F,t),xe(),Ce(),!0)})),(0,o.useEffect)((function(){return xe(),he&&(ge.current=setTimeout((function(){be(0)}),100)),xe}),[he]);var $e=function(e,t,n,r,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,o.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||mO;if(Math.floor(i[s]+i[c])>Math.floor(u+t)){o=r-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||mO)[s]<u){a=l+1;break}return a>=o?[0,0]:[a,o]}),[e,t,r,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(re,ue,R?B:A,ae,le,ce,$($({},e),{},{tabs:S})),we=Ae($e,2),Ee=we[0],ke=we[1],Oe=ao((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(R){var n=B;u?t.right<B?n=t.right:t.right+t.width>B+ue&&(n=t.right+t.width-ue):t.left<-B?n=-t.left:t.left+t.width>-B+ue&&(n=-(t.left+t.width-ue)),F(0),H(me(n))}else{var o=A;t.top<-A?o=-t.top:t.top+t.height>-A+ue&&(o=-(t.top+t.height-ue)),H(0),F(me(o))}})),Ie={};"top"===m||"bottom"===m?Ie[u?"marginRight":"marginLeft"]=g:Ie.marginTop=g;var Ne=S.map((function(e,t){var n=e.key;return o.createElement(SO,{id:i,prefixCls:w,key:n,tab:e,style:0===t?void 0:Ie,closable:e.closable,editable:f,active:n===s,renderWrapper:v,removeAriaLabel:null===p||void 0===p?void 0:p.removeAriaLabel,onClick:function(e){h(n,e)},onFocus:function(){Oe(n),Ce(),I.current&&(u||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Me=function(){return oe((function(){var e,t=new Map,n=null===(e=N.current)||void 0===e?void 0:e.getBoundingClientRect();return S.forEach((function(e){var o,r=e.key,i=null===(o=N.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(vO(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,o,i,r]}(i,n),l=Ae(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(r,{width:c,height:s,left:u,top:d})}})),t}))};(0,o.useEffect)((function(){Me()}),[S.map((function(e){return e.key})).join("_")]);var je=pO((function(){var e=EO(E),t=EO(k),n=EO(O);V([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=EO(P);U(o);var r=EO(M);J(r);var i=EO(N);X([i[0]-o[0],i[1]-o[1]]),Me()})),Pe=S.slice(0,Ee),Re=S.slice(ke+1),ze=[].concat(Se(Pe),Se(Re)),Te=re.get(s),Be=sO({activeTabOffset:Te,horizontal:R,indicator:y,rtl:u}).style;(0,o.useEffect)((function(){Oe()}),[s,fe,pe,gO(Te),gO(re),R]),(0,o.useEffect)((function(){je()}),[u]);var He,De,Le,Fe,We=!!ze.length,_e="".concat(w,"-nav-wrap");return R?u?(De=B>0,He=B!==pe):(He=B<0,De=B!==fe):(Le=A<0,Fe=A!==fe),o.createElement(ye,{onResize:je},o.createElement("div",{ref:j(t,E),role:"tablist",className:a()("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Ce()}},o.createElement(xO,{ref:k,position:"left",extra:d,prefixCls:w}),o.createElement(ye,{onResize:je},o.createElement("div",{className:a()(_e,C(C(C(C({},"".concat(_e,"-ping-left"),He),"".concat(_e,"-ping-right"),De),"".concat(_e,"-ping-top"),Le),"".concat(_e,"-ping-bottom"),Fe)),ref:I},o.createElement(ye,{onResize:je},o.createElement("div",{ref:N,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(A,"px)"),transition:he?"none":void 0}},Ne,o.createElement(yO,{ref:P,prefixCls:w,locale:p,editable:f,style:$($({},0===Ne.length?void 0:Ie),{},{visibility:We?"hidden":null})}),o.createElement("div",{className:a()("".concat(w,"-ink-bar"),C({},"".concat(w,"-ink-bar-animated"),c.inkBar)),style:Be}))))),o.createElement(wO,l({},e,{removeAriaLabel:null===p||void 0===p?void 0:p.removeAriaLabel,ref:M,prefixCls:w,tabs:ze,className:!We&&de,tabMoving:!!he})),o.createElement(xO,{ref:O,position:"right",extra:d,prefixCls:w})))}));const IO=OO;var NO=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return o.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:i,className:a()(n,c&&"".concat(n,"-active"),r),ref:t},u)}));const MO=NO;var jO=["renderTabBar"],PO=["label","key"];const RO=function(e){var t=e.renderTabBar,n=Si(e,jO),r=o.useContext(cO).tabs;return t?t($($({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Si(e,PO);return o.createElement(MO,l({tab:t,key:n,tabKey:n},r))}))}),IO):o.createElement(IO,n)};var zO=["key","forceRender","style","className","destroyInactiveTabPane"];const TO=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,c=e.destroyInactiveTabPane,s=o.useContext(cO),u=s.prefixCls,d=s.tabs,f=r.tabPane,p="".concat(u,"-tabpane");return o.createElement("div",{className:a()("".concat(u,"-content-holder"))},o.createElement("div",{className:a()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),C({},"".concat(u,"-content-animated"),f))},d.map((function(e){var i=e.key,s=e.forceRender,u=e.style,d=e.className,m=e.destroyInactiveTabPane,g=Si(e,zO),v=i===n;return o.createElement(Aa,l({key:i,visible:v,forceRender:s,removeOnLeave:!(!c&&!m),leavedClassName:"".concat(p,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,c=e.className;return o.createElement(MO,l({},g,{prefixCls:p,id:t,tabKey:i,animated:f,active:v,style:$($({},u),r),className:a()(d,c),ref:n}))}))}))))};var BO=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],HO=0,DO=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tabs":r,c=e.className,s=e.items,u=e.direction,d=e.activeKey,f=e.defaultActiveKey,p=e.editable,m=e.animated,g=e.tabPosition,v=void 0===g?"top":g,h=e.tabBarGutter,y=e.tabBarStyle,x=e.tabBarExtraContent,w=e.locale,S=e.more,E=e.destroyInactiveTabPane,k=e.renderTabBar,O=e.onChange,I=e.onTabClick,N=e.onTabScroll,M=e.getPopupContainer,j=e.popupClassName,P=e.indicator,R=Si(e,BO),z=o.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===b(e)&&"key"in e}))}),[s]),T="rtl"===u,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:$({inkBar:!0},"object"===b(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(m),H=Ae((0,o.useState)(!1),2),D=H[0],L=H[1];(0,o.useEffect)((function(){L(hv())}),[]);var A=Ae(so((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:f}),2),F=A[0],W=A[1],_=Ae((0,o.useState)((function(){return z.findIndex((function(e){return e.key===F}))})),2),V=_[0],q=_[1];(0,o.useEffect)((function(){var e,t=z.findIndex((function(e){return e.key===F}));-1===t&&(t=Math.max(0,Math.min(V,z.length-1)),W(null===(e=z[t])||void 0===e?void 0:e.key));q(t)}),[z.map((function(e){return e.key})).join("_"),F,V]);var K=Ae(so(null,{value:n}),2),X=K[0],G=K[1];(0,o.useEffect)((function(){n||(G("rc-tabs-".concat(HO)),HO+=1)}),[]);var Y={id:X,activeKey:F,animated:B,tabPosition:v,rtl:T,mobile:D},U=$($({},Y),{},{editable:p,locale:w,more:S,tabBarGutter:h,onTabClick:function(e,t){null===I||void 0===I||I(e,t);var n=e!==F;W(e),n&&(null===O||void 0===O||O(e))},onTabScroll:N,extra:x,style:y,panes:null,getPopupContainer:M,popupClassName:j,indicator:P});return o.createElement(cO.Provider,{value:{tabs:z,prefixCls:i}},o.createElement("div",l({ref:t,id:n,className:a()(i,"".concat(i,"-").concat(v),C(C(C({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),T),c)},R),o.createElement(RO,l({},U,{renderTabBar:k})),o.createElement(TO,l({destroyInactiveTabPane:E},Y,{animated:B}))))}));const LO=DO,AO={motionAppear:!1,motionEnter:!0,motionLeave:!0};var FO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const WO=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[qb(e,"slide-up"),qb(e,"slide-down")]]},_O=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${Et(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Et(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Et(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Et(e.borderRadiusLG)} 0 0 ${Et(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},VO=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ro(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Et(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Po),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Et(e.paddingXXS)} ${Et(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qO=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Et(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},KO=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Et(e.borderRadius)} ${Et(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Et(e.borderRadius)} ${Et(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Et(e.borderRadius)} ${Et(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Et(e.borderRadius)} 0 0 ${Et(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},XO=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Bo(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},GO=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Et(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Et(e.marginXS)},marginLeft:{_skip_check_:!0,value:Et(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},YO=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${Et(e.paddingXS)}`,background:"transparent",border:`${Et(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Bo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),XO(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},UO=fi("Tabs",(e=>{const t=xo(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Et(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Et(e.horizontalItemGutter)}`});return[KO(t),GO(t),qO(t),VO(t),_O(t),YO(t),WO(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var QO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ZO=e=>{var t,n,r,i,l,c,u,d,f,p,m;const{type:g,className:v,rootClassName:h,size:b,onEdit:y,hideAdd:C,centered:x,addIcon:$,removeIcon:w,moreIcon:S,more:E,popupClassName:k,children:O,items:I,animated:N,style:M,indicatorSize:j,indicator:P}=e,R=QO(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:z}=R,{direction:T,tabs:B,getPrefixCls:H,getPopupContainer:D}=o.useContext(Be),L=H("tabs",z),A=bl(L),[F,W,_]=UO(L,A);let V;"editable-card"===g&&(V={onEdit:(e,t)=>{let{key:n,event:o}=t;null===y||void 0===y||y("add"===e?o:n,e)},removeIcon:null!==(t=null!==w&&void 0!==w?w:null===B||void 0===B?void 0:B.removeIcon)&&void 0!==t?t:o.createElement(qi,null),addIcon:(null!==$&&void 0!==$?$:null===B||void 0===B?void 0:B.addIcon)||o.createElement(lO,null),showAdd:!0!==C});const q=H();const K=Bs(b),X=function(e,t){if(e)return e;const n=s(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=FO(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}(I,O),G=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},AO),{motionName:ws(e,"switch")})),t}(L,N),Y=Object.assign(Object.assign({},null===B||void 0===B?void 0:B.style),M),U={align:null!==(n=null===P||void 0===P?void 0:P.align)&&void 0!==n?n:null===(r=null===B||void 0===B?void 0:B.indicator)||void 0===r?void 0:r.align,size:null!==(u=null!==(l=null!==(i=null===P||void 0===P?void 0:P.size)&&void 0!==i?i:j)&&void 0!==l?l:null===(c=null===B||void 0===B?void 0:B.indicator)||void 0===c?void 0:c.size)&&void 0!==u?u:null===B||void 0===B?void 0:B.indicatorSize};return F(o.createElement(LO,Object.assign({direction:T,getPopupContainer:D},R,{items:X,className:a()({[`${L}-${K}`]:K,[`${L}-card`]:["card","editable-card"].includes(g),[`${L}-editable-card`]:"editable-card"===g,[`${L}-centered`]:x},null===B||void 0===B?void 0:B.className,v,h,W,_,A),popupClassName:a()(k,W,_,A),style:Y,editable:V,more:Object.assign({icon:null!==(m=null!==(p=null!==(f=null===(d=null===B||void 0===B?void 0:B.more)||void 0===d?void 0:d.icon)&&void 0!==f?f:null===B||void 0===B?void 0:B.moreIcon)&&void 0!==p?p:S)&&void 0!==m?m:o.createElement(uw,null),transitionName:`${q}-slide-up`},E),prefixCls:L,animated:G,indicator:U})))};ZO.TabPane=()=>null;const JO=ZO;var eI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const tI=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=eI(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=o.useContext(Be),c=l("card",t),s=a()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},i,{className:s}))},nI=e=>{const{antCls:t,componentCls:n,headerHeight:o,cardPaddingBase:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${Et(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Po),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},oI=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Et(r)} 0 0 0 ${n},\n 0 ${Et(r)} 0 0 ${n},\n ${Et(r)} ${Et(r)} 0 0 ${n},\n ${Et(r)} 0 0 0 ${n} inset,\n 0 ${Et(r)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},rI=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Et(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:Et(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${i}`}}})},iI=e=>Object.assign(Object.assign({margin:`${Et(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Po),"&-description":{color:e.colorTextDescription}}),aI=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${Et(n)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Et(e.padding)} ${Et(n)}`}}},lI=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cI=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:nI(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:oI(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:rI(e),[`${t}-meta`]:iI(e)}),[`${t}-bordered`]:{border:`${Et(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:aI(e),[`${t}-loading`]:lI(e),[`${t}-rtl`]:{direction:"rtl"}}},sI=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:o,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Et(n)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},uI=fi("Card",(e=>{const t=xo(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[cI(t),sI(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var dI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fI=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return o.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return o.createElement("li",{style:{width:100/n.length+"%"},key:r},o.createElement("span",null,e))})))},pI=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,extra:c,headStyle:s={},bodyStyle:u={},title:d,loading:f,bordered:p=!0,size:m,type:g,cover:v,actions:h,tabList:b,children:y,activeTabKey:C,defaultActiveTabKey:x,tabBarExtraContent:$,hoverable:w,tabProps:S={},classNames:E,styles:k}=e,O=dI(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:N,card:M}=o.useContext(Be);const j=e=>{var t;return a()(null===(t=null===M||void 0===M?void 0:M.classNames)||void 0===t?void 0:t[e],null===E||void 0===E?void 0:E[e])},P=e=>{var t;return Object.assign(Object.assign({},null===(t=null===M||void 0===M?void 0:M.styles)||void 0===t?void 0:t[e]),null===k||void 0===k?void 0:k[e])},R=o.useMemo((()=>{let e=!1;return o.Children.forEach(y,(t=>{(null===t||void 0===t?void 0:t.type)===tI&&(e=!0)})),e}),[y]),z=I("card",n),[T,B,H]=uI(z),D=o.createElement(zm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),L=void 0!==C,A=Object.assign(Object.assign({},S),{[L?"activeKey":"defaultActiveKey"]:L?C:x,tabBarExtraContent:$});let F;const W=Bs(m),_=W&&"default"!==W?W:"large",V=b?o.createElement(JO,Object.assign({size:_},A,{className:`${z}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map((e=>{var{tab:t}=e,n=dI(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(d||c||V){const e=a()(`${z}-head`,j("header")),t=a()(`${z}-head-title`,j("title")),n=a()(`${z}-extra`,j("extra")),r=Object.assign(Object.assign({},s),P("header"));F=o.createElement("div",{className:e,style:r},o.createElement("div",{className:`${z}-head-wrapper`},d&&o.createElement("div",{className:t,style:P("title")},d),c&&o.createElement("div",{className:n,style:P("extra")},c)),V)}const q=a()(`${z}-cover`,j("cover")),K=v?o.createElement("div",{className:q,style:P("cover")},v):null,X=a()(`${z}-body`,j("body")),G=Object.assign(Object.assign({},u),P("body")),Y=o.createElement("div",{className:X,style:G},f?D:y),U=a()(`${z}-actions`,j("actions")),Q=(null===h||void 0===h?void 0:h.length)?o.createElement(fI,{actionClasses:U,actionStyle:P("actions"),actions:h}):null,Z=Ce(O,["onTabChange"]),J=a()(z,null===M||void 0===M?void 0:M.className,{[`${z}-loading`]:f,[`${z}-bordered`]:p,[`${z}-hoverable`]:w,[`${z}-contain-grid`]:R,[`${z}-contain-tabs`]:null===b||void 0===b?void 0:b.length,[`${z}-${W}`]:W,[`${z}-type-${g}`]:!!g,[`${z}-rtl`]:"rtl"===N},r,i,B,H),ee=Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),l);return T(o.createElement("div",Object.assign({ref:t},Z,{className:J,style:ee}),F,K,Y,Q))}));var mI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gI=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:l}=e,c=mI(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=o.useContext(Be),u=s("card",t),d=a()(`${u}-meta`,n),f=r?o.createElement("div",{className:`${u}-meta-avatar`},r):null,p=i?o.createElement("div",{className:`${u}-meta-title`},i):null,m=l?o.createElement("div",{className:`${u}-meta-description`},l):null,g=p||m?o.createElement("div",{className:`${u}-meta-detail`},p,m):null;return o.createElement("div",Object.assign({},c,{className:d}),f,g)},vI=pI;vI.Grid=tI,vI.Meta=gI;const hI=vI;const bI={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function yI(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,l=r.noLeading,c=void 0!==l&&l,s=r.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){o&&clearTimeout(o)}function m(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var l=this,s=Date.now()-f;function m(){f=Date.now(),t.apply(l,r)}function g(){o=void 0}d||(c||!u||o||m(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(o=setTimeout(u?g:m,e))):m():!0!==a&&(o=setTimeout(u?g:m,void 0===u?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const CI={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r().createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r().createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function xI(e,t,n){return Math.max(t,Math.min(e,n))}var $I=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},wI=function(e){for(var t=[],n=SI(e),o=EI(e),r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},SI=function(e){return e.currentSlide-kI(e)},EI=function(e){return e.currentSlide+OI(e)},kI=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},OI=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},II=function(e){return e&&e.offsetWidth||0},NI=function(e){return e&&e.offsetHeight||0},MI=function(e){var t,n,o,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,t),(r=Math.round(180*o/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===i?r>=35&&r<=135?"up":"down":"vertical"},jI=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},PI=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},RI=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r}(e),o=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=o;break}o=n[r]}return t},zI=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(o){if(e.vertical){if(o.offsetTop+NI(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+II(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},TI=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},BI=function(e){var t,n;(TI(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=FI(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=$($({},o),{},{WebkitTransform:r,transform:i,msTransform:a})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},HI=function(e){TI(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=BI(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},DI=function(e){if(e.unslick)return 0;TI(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,o=e.slideIndex,r=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,m=e.fade,g=e.vertical;if(m||1===e.slideCount)return 0;var v=0;if(i?(v=-LI(e),l%s!==0&&o+s>l&&(v=-(o>l?c-(o-l):l%s)),a&&(v+=parseInt(c/2))):(l%s!==0&&o+s>l&&(v=c-l%s),a&&(v=parseInt(c/2))),t=g?o*p*-1+v*p:o*u*-1+v*u,!0===f){var h,b=r&&r.node;if(h=o+LI(e),t=(n=b&&b.childNodes[h])?-1*n.offsetLeft:0,!0===a){h=i?o+LI(e):o,n=b&&b.children[h],t=0;for(var y=0;y<h;y++)t-=b&&b.children[y]&&b.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},LI=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},AI=function(e){return e.unslick||!e.infinite?0:e.slideCount},FI=function(e){return 1===e.slideCount?1:LI(e)+e.slideCount+AI(e)},WI=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+_I(e)?"left":"right":e.targetSlide<e.currentSlide-VI(e)?"right":"left"},_I=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2===0&&(i+=1),i}return o?0:t-1},VI=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o||t%2!==0||(i+=1),i}return o?t-1:0},qI=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)},KI=Object.keys(CI);var XI=function(e){var t,n,o,r,i;return o=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},GI=function(e,t){return e.key+"-"+t},YI=function(e){var t,n=[],o=[],i=[],l=r().Children.count(e.children),c=SI(e),s=EI(e);return r().Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:r().createElement("div",null);var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}($($({},e),{},{index:d})),g=f.props.className||"",v=XI($($({},e),{},{index:d}));if(n.push(r().cloneElement(f,{key:"original"+GI(f,d),"data-index":d,className:a()(v,g),tabIndex:"-1","aria-hidden":!v["slick-active"],style:$($({outline:"none"},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var h=l-d;h<=LI(e)&&((t=-h)>=c&&(f=u),v=XI($($({},e),{},{index:t})),o.push(r().cloneElement(f,{key:"precloned"+GI(f,t),"data-index":t,tabIndex:"-1",className:a()(v,g),"aria-hidden":!v["slick-active"],style:$($({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=l+d)<s&&(f=u),v=XI($($({},e),{},{index:t})),i.push(r().cloneElement(f,{key:"postcloned"+GI(f,t),"data-index":t,tabIndex:"-1",className:a()(v,g),"aria-hidden":!v["slick-active"],style:$($({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))}})),e.rtl?o.concat(n,i).reverse():o.concat(n,i)},UI=function(e){function t(){var e;ie(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return e=function(e,t,n){return t=ue(t),pe(e,de()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(this,t,[].concat(o)),C(e,"node",null),C(e,"handleRef",(function(t){e.node=t})),e}return se(t,e),le(t,[{key:"render",value:function(){var e=YI(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r().createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])}(r().PureComponent);var QI=function(e){function t(){return ie(this,t),function(e,t,n){return t=ue(t),pe(e,de()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(this,t,arguments)}return se(t,e),le(t,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,o=t.onMouseOver,i=t.onMouseLeave,l=t.infinite,c=t.slidesToScroll,s=t.slidesToShow,u=t.slideCount,d=t.currentSlide,f=(e={slideCount:u,slidesToScroll:c,slidesToShow:s,infinite:l}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,p={onMouseEnter:n,onMouseOver:o,onMouseLeave:i},m=[],g=0;g<f;g++){var v=(g+1)*c-1,h=l?v:xI(v,0,u-1),b=h-(c-1),y=l?b:xI(b,0,u-1),C=a()({"slick-active":l?d>=y&&d<=h:d===y}),x={message:"dots",index:g,slidesToScroll:c,currentSlide:d},w=this.clickHandler.bind(this,x);m=m.concat(r().createElement("li",{key:g,className:C},r().cloneElement(this.props.customPaging(g),{onClick:w})))}return r().cloneElement(this.props.appendDots(m),$({className:this.props.dotsClass},p))}}])}(r().PureComponent);function ZI(e,t,n){return t=ue(t),pe(e,de()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}var JI=function(e){function t(){return ie(this,t),ZI(this,t,arguments)}return se(t,e),le(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r().cloneElement(this.props.prevArrow,$($({},n),o)):r().createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}])}(r().PureComponent),eN=function(e){function t(){return ie(this,t),ZI(this,t,arguments)}return se(t,e),le(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});jI(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r().cloneElement(this.props.nextArrow,$($({},n),o)):r().createElement("button",l({key:"1",type:"button"},n)," ","Next")}}])}(r().PureComponent),tN=["animating"];var nN=function(e){function t(e){var n;ie(this,t),n=function(e,t,n){return t=ue(t),pe(e,de()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(this,t,[e]),C(n,"listRefHandler",(function(e){return n.list=e})),C(n,"trackRefHandler",(function(e){return n.track=e})),C(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=NI(e)+"px"}})),C(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=wI($($({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=$({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new ne((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),C(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),C(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=wI($($({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=$($({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(o,i,(function(){n.state.currentSlide>=r().Children.count(n.props.children)&&n.changeSlide({message:"index",index:r().Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),C(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=yI(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),C(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=$($({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),C(n,"updateState",(function(e,t,o){var i=function(e){var t,n=r().Children.count(e.children),o=e.listRef,i=Math.ceil(II(o)),a=e.trackRef&&e.trackRef.node,l=Math.ceil(II(a));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var s=o&&NI(o.querySelector('[data-index="0"]')),u=s*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=n-1-e.initialSlide);var f=e.lazyLoadedList||[],p=wI($($({},e),{},{currentSlide:d,lazyLoadedList:f})),m={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:d,slideHeight:s,listHeight:u,lazyLoadedList:f=f.concat(p)};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m}(e);e=$($($({},e),i),{},{slideIndex:i.currentSlide});var a=DI(e);e=$($({},e),{},{left:a});var l=BI(e);(t||r().Children.count(n.props.children)!==r().Children.count(e.children))&&(i.trackStyle=l),n.setState(i,o)})),C(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],i=LI($($($({},n.props),n.state),{},{slideCount:n.props.children.length})),a=AI($($($({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l<i;l++)t+=o[o.length-1-l],e+=o[o.length-1-l];for(var c=0;c<a;c++)e+=o[c];for(var s=0;s<n.state.currentSlide;s++)t+=o[s];var u={width:e+"px",left:-t+"px"};if(n.props.centerMode){var d="".concat(o[n.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var f=r().Children.count(n.props.children),p=$($($({},n.props),n.state),{},{slideCount:f}),m=LI(p)+AI(p)+f,g=100/n.props.slidesToShow*m,v=100/m,h=-v*(LI(p)+n.state.currentSlide)*g/100;return n.props.centerMode&&(h+=(100-v*g/100)/2),{slideWidth:v+"%",trackStyle:{width:g+"%",left:h+"%"}}})),C(n,"checkImagesLoad",(function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],t=e.length,o=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++o&&o>=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=r,e.onerror=function(){r(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),C(n,"progressiveLazyLoad",(function(){for(var e=[],t=$($({},n.props),n.state),o=n.state.currentSlide;o<n.state.slideCount+AI(t);o++)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var r=n.state.currentSlide-1;r>=-LI(t);r--)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),C(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.props,r=o.asNavFor,i=o.beforeChange,a=o.onLazyLoad,l=o.speed,c=o.afterChange,s=n.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,r=e.infinite,i=e.index,a=e.slideCount,l=e.lazyLoad,c=e.currentSlide,s=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,f=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var m,g,v,h=i,b={},y={},C=r?i:xI(i,0,a-1);if(o){if(!r&&(i<0||i>=a))return{};i<0?h=i+a:i>=a&&(h=i-a),l&&p.indexOf(h)<0&&(p=p.concat(h)),b={animating:!0,currentSlide:h,lazyLoadedList:p,targetSlide:h},y={animating:!1,targetSlide:h}}else m=h,h<0?(m=h+a,r?a%u!==0&&(m=a-a%u):m=0):!jI(e)&&h>c?h=m=c:s&&h>=a?(h=r?a:a-1,m=r?0:a-1):h>=a&&(m=h-a,r?a%u!==0&&(m=0):m=a-d),!r&&h+d>=a&&(m=a-d),g=DI($($({},e),{},{slideIndex:h})),v=DI($($({},e),{},{slideIndex:m})),r||(g===v&&(h=m),g=v),l&&(p=p.concat(wI($($({},e),{},{currentSlide:h})))),f?(b={animating:!0,currentSlide:m,trackStyle:HI($($({},e),{},{left:g})),lazyLoadedList:p,targetSlide:C},y={animating:!1,currentSlide:m,trackStyle:BI($($({},e),{},{left:v})),swipeLeft:null,targetSlide:C}):b={currentSlide:m,trackStyle:BI($($({},e),{},{left:v})),lazyLoadedList:p,targetSlide:C};return{state:b,nextState:y}}($($($({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),d=u.state,f=u.nextState;if(d){i&&i(s,d.currentSlide);var p=d.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));a&&p.length>0&&a(p),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),c&&c(s),delete n.animationEndCallback),n.setState(d,(function(){r&&n.asNavForIndex!==e&&(n.asNavForIndex=e,r.innerSlider.slideHandler(e)),f&&(n.animationEndCallback=setTimeout((function(){var e=f.animating,t=Si(f,tN);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),c&&c(d.currentSlide),delete n.animationEndCallback}))}),l))}))}})),C(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=function(e,t){var n,o,r,i,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,s=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,f=e.infinite;if(n=c%a!==0?0:(c-s)%a,"previous"===t.message)i=s-(r=0===n?a:l-n),d&&!f&&(i=-1===(o=s-r)?c-1:o),f||(i=u-a);else if("next"===t.message)i=s+(r=0===n?a:n),d&&!f&&(i=(s+a)%c+n),f||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,f){var p=WI($($({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===p?i-=c:i<t.currentSlide&&"right"===p&&(i+=c)}}else"index"===t.message&&(i=Number(t.index));return i}($($({},n.props),n.state),e);if((0===o||o)&&(!0===t?n.slideHandler(o,t):n.slideHandler(o),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var r=n.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),C(n,"clickHandler",(function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0})),C(n,"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,n.props.accessibility,n.props.rtl);""!==t&&n.changeSlide({message:t})})),C(n,"selectHandler",(function(e){n.changeSlide(e)})),C(n,"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),C(n,"enableBodyScroll",(function(){window.ontouchmove=null})),C(n,"swipeStart",(function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&$I(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,n.props.swipe,n.props.draggable);""!==t&&n.setState(t)})),C(n,"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,o=t.animating,r=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,l=t.rtl,c=t.currentSlide,s=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,f=t.swiped,p=t.swiping,m=t.slideCount,g=t.slidesToScroll,v=t.infinite,h=t.touchObject,b=t.swipeEvent,y=t.listHeight,C=t.listWidth;if(!n){if(o)return $I(e);r&&i&&a&&$I(e);var x,w={},S=DI(t);h.curX=e.touches?e.touches[0].pageX:e.clientX,h.curY=e.touches?e.touches[0].pageY:e.clientY,h.swipeLength=Math.round(Math.sqrt(Math.pow(h.curX-h.startX,2)));var E=Math.round(Math.sqrt(Math.pow(h.curY-h.startY,2)));if(!a&&!p&&E>10)return{scrolling:!0};a&&(h.swipeLength=E);var k=(l?-1:1)*(h.curX>h.startX?1:-1);a&&(k=h.curY>h.startY?1:-1);var O=Math.ceil(m/g),I=MI(t.touchObject,a),N=h.swipeLength;return v||(0===c&&("right"===I||"down"===I)||c+1>=O&&("left"===I||"up"===I)||!jI(t)&&("left"===I||"up"===I))&&(N=h.swipeLength*s,!1===u&&d&&(d(I),w.edgeDragged=!0)),!f&&b&&(b(I),w.swiped=!0),x=r?S+N*(y/C)*k:l?S-N*k:S+N*k,a&&(x=S+N*k),w=$($({},w),{},{touchObject:h,swipeLeft:x,trackStyle:BI($($({},t),{},{left:x}))}),Math.abs(h.curX-h.startX)<.8*Math.abs(h.curY-h.startY)||h.swipeLength>10&&(w.swiping=!0,$I(e)),w}}(e,$($($({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),C(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,o=t.swipe,r=t.touchObject,i=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,s=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,f=t.targetSlide,p=t.currentSlide,m=t.infinite;if(!n)return o&&$I(e),{};var g=l?c/a:i/a,v=MI(r,l),h={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return h;if(!r.swipeLength)return h;if(r.swipeLength>g){var b,y;$I(e),d&&d(v);var C=m?p:f;switch(v){case"left":case"up":y=C+zI(t),b=s?RI(t,y):y,h.currentDirection=0;break;case"right":case"down":y=C-zI(t),b=s?RI(t,y):y,h.currentDirection=1;break;default:b=C}h.triggerSlideHandler=b}else{var x=DI(t);h.trackStyle=HI($($({},t),{},{left:x}))}return h}(e,$($($({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var o=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==o&&(n.slideHandler(o),n.props.verticalSwiping&&n.enableBodyScroll())}})),C(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),C(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),C(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),C(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),C(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!jI($($({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),C(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),C(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),C(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),C(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),C(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),C(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),C(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),C(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),C(n,"render",(function(){var e,t,o,i=a()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=$($({},n.props),n.state),s=PI(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=$($({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=PI(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=$($({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=r().createElement(QI,d)}var p=PI(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(t=r().createElement(JI,p),o=r().createElement(eN,p));var m=null;n.props.vertical&&(m={height:n.state.listHeight});var g=null;!1===n.props.vertical?!0===n.props.centerMode&&(g={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(g={padding:n.props.centerPadding+" 0px"});var v=$($({},m),g),h=n.props.touchMove,b={className:"slick-list",style:v,onClick:n.clickHandler,onMouseDown:h?n.swipeStart:null,onMouseMove:n.state.dragging&&h?n.swipeMove:null,onMouseUp:h?n.swipeEnd:null,onMouseLeave:n.state.dragging&&h?n.swipeEnd:null,onTouchStart:h?n.swipeStart:null,onTouchMove:n.state.dragging&&h?n.swipeMove:null,onTouchEnd:h?n.touchEnd:null,onTouchCancel:n.state.dragging&&h?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},y={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(b={className:"slick-list"},y={className:i,style:n.props.style}),r().createElement("div",y,n.props.unslick?"":t,r().createElement("div",l({ref:n.listRefHandler},b),r().createElement(UI,l({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":o,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=$($({},bI),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r().Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var o=n.ssrInit();return n.state=$($({},n.state),o),n}return se(t,e),le(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==b(e[i])&&"function"!==typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r().Children.count(this.props.children)!==r().Children.count(e.children)}}])}(r().Component),oN=n(41270),rN=n.n(oN);var iN=function(e){function t(e){var n;return ie(this,t),n=function(e,t,n){return t=ue(t),pe(e,de()?Reflect.construct(t,n||[],ue(e).constructor):t.apply(e,n))}(this,t,[e]),C(n,"innerSliderRefHandler",(function(e){return n.innerSlider=e})),C(n,"slickPrev",(function(){return n.innerSlider.slickPrev()})),C(n,"slickNext",(function(){return n.innerSlider.slickNext()})),C(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),C(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),C(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return se(t,e),le(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),o=function(e){e.matches&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,o){var r;r=0===o?rN()({minWidth:0,maxWidth:n}):rN()({minWidth:t[o-1]+1,maxWidth:n}),qI()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=rN()({minWidth:t.slice(-1)[0]});qI()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":$($($({},CI),this.props),t[0].settings):$($({},CI),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=r().Children.toArray(this.props.children);o=o.filter((function(e){return"string"===typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,c=0;c<o.length;c+=e.rows*e.slidesPerRow){for(var s=[],u=c;u<c+e.rows*e.slidesPerRow;u+=e.slidesPerRow){for(var d=[],f=u;f<u+e.slidesPerRow&&(e.variableWidth&&o[f].props.style&&(a=o[f].props.style.width),!(f>=o.length));f+=1)d.push(r().cloneElement(o[f],{key:100*c+10*u+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(r().createElement("div",{key:10*c+u},d))}e.variableWidth?i.push(r().createElement("div",{key:c,style:{width:a}},s)):i.push(r().createElement("div",{key:c},s))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return r().createElement("div",{className:p},o)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r().createElement(nN,l({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return KI.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),i)}}])}(r().Component);const aN=iN,lN=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},cN=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:o,arrowOffset:r}=e,i=e.calc(o).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:o,height:o,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(o).sub(i).div(2).equal(),insetInlineStart:e.calc(o).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}]},sN=e=>{const{componentCls:t,dotOffset:n,dotWidth:o,dotHeight:r,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:o,height:r,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},uN=e=>{const{componentCls:t,dotOffset:n,arrowOffset:o,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:o,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:o,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${Et(r)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},dN=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},fN=fi("Carousel",(e=>[lN(e),cN(e),sN(e),uN(e),dN(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var pN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mN="slick-dots",gN=e=>{var{currentSlide:t,slideCount:n}=e,r=pN(e,["currentSlide","slideCount"]);return o.createElement("button",Object.assign({type:"button"},r))},vN=o.forwardRef(((e,t)=>{const{dots:n=!0,arrows:r=!1,prevArrow:i=o.createElement(gN,{"aria-label":"prev"}),nextArrow:l=o.createElement(gN,{"aria-label":"next"}),draggable:c=!1,waitForAnimate:s=!1,dotPosition:u="bottom",vertical:d="left"===u||"right"===u,rootClassName:f,className:p,style:m,id:g}=e,v=pN(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:h,direction:b,carousel:y}=o.useContext(Be),C=o.useRef(),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];C.current.slickGoTo(e,t)};o.useImperativeHandle(t,(()=>({goTo:x,autoPlay:C.current.innerSlider.autoPlay,innerSlider:C.current.innerSlider,prev:C.current.slickPrev,next:C.current.slickNext})),[C.current]);const $=o.useRef(o.Children.count(e.children));o.useEffect((()=>{$.current!==o.Children.count(e.children)&&(x(e.initialSlide||0,!1),$.current=o.Children.count(e.children))}),[e.children]);const w=Object.assign({vertical:d,className:a()(p,null===y||void 0===y?void 0:y.className),style:Object.assign(Object.assign({},null===y||void 0===y?void 0:y.style),m)},v);"fade"===w.effect&&(w.fade=!0);const S=h("carousel",w.prefixCls),E=!!n,k=a()(mN,`${mN}-${u}`,"boolean"!==typeof n&&(null===n||void 0===n?void 0:n.className)),[O,I,N]=fN(S),M=a()(S,{[`${S}-rtl`]:"rtl"===b,[`${S}-vertical`]:w.vertical},I,N,f);return O(o.createElement("div",{className:M,id:g},o.createElement(aN,Object.assign({ref:C},w,{dots:E,dotsClass:k,arrows:r,prevArrow:i,nextArrow:l,draggable:c,verticalSwiping:d,waitForAnimate:s}))))}));const hN=vN;const bN=o.createContext({});var yN="__rc_cascader_search_mark__",CN=function(e,t,n){var o=n.label,r=void 0===o?"":o;return t.some((function(t){return String(t[r]).toLowerCase().includes(e.toLowerCase())}))},xN=function(e,t,n,o){return t.map((function(e){return e[o.label]})).join(" / ")};const $N=function(e,t,n,r,i,a){var l=i.filter,c=void 0===l?CN:l,s=i.render,u=void 0===s?xN:s,d=i.limit,f=void 0===d?50:d,p=i.sort;return o.useMemo((function(){var o=[];if(!e)return[];return function t(i,l){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.forEach((function(i){if(!(!p&&!1!==f&&f>0&&o.length>=f)){var d,m=[].concat(Se(l),[i]),g=i[n.children],v=s||i.disabled;if(!g||0===g.length||a)if(c(e,m,{label:n.label}))o.push($($({},i),{},(C(d={disabled:v},n.label,u(e,m,r,n)),C(d,yN,m),C(d,n.children,void 0),d)));g&&t(i[n.children],m,v)}}))}(t,[]),p&&o.sort((function(t,o){return p(t[yN],o[yN],e,n)})),!1!==f&&f>0?o.slice(0,f):o}),[e,t,n,r,u,a,c,p,f])};var wN="__RC_CASCADER_SPLIT__",SN="SHOW_PARENT",EN="SHOW_CHILD";function kN(e){return e.join(wN)}function ON(e){return e.map(kN)}function IN(e){var t=e||{},n=t.label,o=t.value||"value";return{label:n||"label",value:o,key:o,children:t.children||"children"}}function NN(e,t){var n,o;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(o=e[t.children])&&void 0!==o&&o.length)}function MN(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function jN(e,t){return e.map((function(e){var n;return null===(n=e[yN])||void 0===n?void 0:n.map((function(e){return e[t.value]}))}))}function PN(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}function RN(e,t,n){var o=new Set(e),r=t();return e.filter((function(e){var t=r[e],i=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===EN?!(a&&a.some((function(e){return e.key&&o.has(e.key)}))):!(i&&!i.node.disabled&&o.has(i.key)))}))}function zN(e,t,n){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t,i=[],a=function(){var t,a,c,s=e[l],u=null===(t=r)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return o?String(t)===String(s):t===s})),d=-1!==u?null===(a=r)||void 0===a?void 0:a[u]:null;i.push({value:null!==(c=null===d||void 0===d?void 0:d[n.value])&&void 0!==c?c:s,index:u,option:d}),r=null===d||void 0===d?void 0:d[n.children]},l=0;l<e.length;l+=1)a();return i}function TN(e,t){return o.useCallback((function(n){var o=[],r=[];return n.forEach((function(n){zN(n,e,t).every((function(e){return e.option}))?r.push(n):o.push(n)})),[r,o]}),[e,t])}function BN(e,t){return e[t]}var HN=["children"];function DN(e,t){return"".concat(e,"-").concat(t)}function LN(e,t){return null!==e&&void 0!==e?e:t}function AN(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function FN(e){return function e(t){return s(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return h(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=$({key:n},Si(o,HN)),a=e(r);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function WN(e,t,n){var o=AN(n),r=o._title,i=o.key,a=o.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=DN(o?o.pos:"0",u),p=LN(s[i],f),m=0;m<r.length;m+=1){var g=r[m];if(void 0!==s[g]){d=s[g];break}}var v=Object.assign(Ce(s,[].concat(Se(r),[i,a])),{title:d,key:p,parent:o,pos:f,children:null,data:s,isStart:[].concat(Se(o?o.isStart:[]),[0===u]),isEnd:[].concat(Se(o?o.isEnd:[]),[u===n.length-1])});return c.push(v),!0===t||l.has(p)?v.children=e(s[a]||[],v):v.children=[],v}))}(e),c}function _N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,r=("object"===b(n)?n:{externalGetKey:n})||{},i=r.childrenPropName,a=r.externalGetKey,l=AN(r.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"===typeof a?o=function(e){return e[a]}:"function"===typeof a&&(o=function(e){return a(e)}):o=function(e,t){return LN(e[c],t)},function n(r,i,a,l){var c=r?r[u]:e,s=r?DN(a.pos,i):"0",d=r?[].concat(Se(l),[r]):[];if(r){var f=o(r,s),p={node:r,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:r,pos:s,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:l},f=LN(i,r);s[r]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),o&&o(c,d)}),{externalGetKey:c,childrenPropName:a,fieldNames:l}),r&&r(d),d}function VN(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=BN(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function qN(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,m=$($({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return h(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function KN(e,t){var n=o.useMemo((function(){return t||[]}),[t]),r=function(e,t){var n=o.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=o.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=_N(e,{fieldNames:t,initWrapper:function(e){return $($({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var o=e.nodes.map((function(e){return e[t.value]})).join(wN);n.pathKeyEntities[o]=e,e.key=o}})),n.current.info.pathKeyEntities}),[t,e]);return r}(n,e),i=o.useCallback((function(t){var n=r();return t.map((function(t){return n[t].nodes.map((function(t){return t[e.value]}))}))}),[r,e]);return[n,r,i]}function XN(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function GN(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function YN(e,t,n,o){var r,i=[];r=o||GN;var a,l=new Set(e.filter((function(e){var t=!!BN(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=c.get(o);r||(r=new Set,c.set(o,r)),r.add(t),s=Math.max(s,o)})),h(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&r.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(XN(i,r))}}(l,c,s,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,l=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||l.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)})),o||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(XN(a,i))}}(l,t.halfCheckedKeys,c,s,r),a}function UN(e,t,n,o,r,i,a,l){return function(c){if(e){var s=kN(c),u=ON(n),d=ON(o),f=u.includes(s),p=r.some((function(e){return kN(e)===s})),m=n,g=r;if(p&&!f)g=r.filter((function(e){return kN(e)!==s}));else{var v,h=f?u.filter((function(e){return e!==s})):[].concat(Se(u),[s]),b=i();if(f)v=YN(h,{checked:!1,halfCheckedKeys:d},b).checkedKeys;else v=YN(h,!0,b).checkedKeys;var y=RN(v,i,l);m=a(y)}t([].concat(Se(g),Se(m)))}else t(c)}}function QN(e,t,n,r,i){return o.useMemo((function(){var o=Ae(i(t),2),a=o[0],l=o[1];if(!e||!t.length)return[a,[],l];var c=YN(ON(a),!0,n()),s=c.checkedKeys,u=c.halfCheckedKeys;return[r(s),r(u),l]}),[e,t,n,r,i])}var ZN=o.memo((function(e){return e.children}),(function(e,t){return!t.open}));const JN=ZN;function eM(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,l=e.disabled,c=e.onClick,s=e.disableCheckbox,u=o.useContext(bN).checkable,d="boolean"!==typeof u?u:null;return o.createElement("span",{className:a()("".concat(n),(t={},C(t,"".concat(n,"-checked"),r),C(t,"".concat(n,"-indeterminate"),!r&&i),C(t,"".concat(n,"-disabled"),l||s),t)),onClick:c},d)}var tM="__cascader_fix_label__";function nM(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,l=e.prevValuePath,c=e.onToggleOpen,s=e.onSelect,u=e.onActive,d=e.checkedSet,f=e.halfCheckedSet,p=e.loadingKeys,m=e.isSelectable,g="".concat(t,"-menu"),v="".concat(t,"-menu-item"),h=o.useContext(bN),b=h.fieldNames,y=h.changeOnSelect,x=h.expandTrigger,$=h.expandIcon,w=h.loadingIcon,S=h.dropdownMenuColumnStyle,E=h.optionRender,k="hover"===x,O=o.useMemo((function(){return r.map((function(e){var t,n=e.disabled,o=e.disableCheckbox,r=e[yN],i=null!==(t=e[tM])&&void 0!==t?t:e[b.label],a=e[b.value],c=NN(e,b),s=r?r.map((function(e){return e[b.value]})):[].concat(Se(l),[a]),u=kN(s);return{disabled:n,label:i,value:a,isLeaf:c,isLoading:p.includes(u),checked:d.has(u),halfChecked:f.has(u),option:e,disableCheckbox:o,fullPath:s,fullPathKey:u}}))}),[r,d,b,f,p,l]);return o.createElement("ul",{className:g,role:"menu"},O.map((function(e){var r,l,d=e.disabled,f=e.label,p=e.value,g=e.isLeaf,h=e.isLoading,b=e.checked,x=e.halfChecked,O=e.option,I=e.fullPath,N=e.fullPathKey,M=e.disableCheckbox,j=function(){if(!d){var e=Se(I);k&&g&&e.pop(),u(e)}},P=function(){m(O)&&s(I,g)};return"string"===typeof O.title?l=O.title:"string"===typeof f&&(l=f),o.createElement("li",{key:N,className:a()(v,(r={},C(r,"".concat(v,"-expand"),!g),C(r,"".concat(v,"-active"),i===p||i===N),C(r,"".concat(v,"-disabled"),d),C(r,"".concat(v,"-loading"),h),r)),style:S,role:"menuitemcheckbox",title:l,"aria-checked":b,"data-path-key":N,onClick:function(){j(),M||n&&!g||P()},onDoubleClick:function(){y&&c(!1)},onMouseEnter:function(){k&&j()},onMouseDown:function(e){e.preventDefault()}},n&&o.createElement(eM,{prefixCls:"".concat(t,"-checkbox"),checked:b,halfChecked:x,disabled:d||M,disableCheckbox:M,onClick:function(e){M||(e.stopPropagation(),P())}}),o.createElement("div",{className:"".concat(v,"-content")},E?E(O):f),!h&&$&&!g&&o.createElement("div",{className:"".concat(v,"-expand-icon")},$),h&&w&&o.createElement("div",{className:"".concat(v,"-loading-icon")},w))})))}const oM=function(e,t){var n=o.useContext(bN).values[0],r=Ae(o.useState([]),2),i=r[0],a=r[1];return o.useEffect((function(){e||a(n||[])}),[t,n]),[i,a]},rM=function(e,t,n,r,i,a,l){var c=l.direction,s=l.searchValue,u=l.toggleOpen,d=l.open,f="rtl"===c,p=o.useMemo((function(){for(var e=-1,o=t,i=[],a=[],l=r.length,c=jN(t,n),s=function(t){var l=o.findIndex((function(e,o){return(c[o]?kN(c[o]):e[n.value])===r[t]}));if(-1===l)return 1;e=l,i.push(e),a.push(r[t]),o=o[e][n.children]},u=0;u<l&&o&&!s(u);u+=1);for(var d=t,f=0;f<i.length-1;f+=1)d=d[i[f]][n.children];return[a,e,d,c]}),[r,n,t]),m=Ae(p,4),g=m[0],v=m[1],h=m[2],b=m[3],y=function(e){i(e)},C=function(){if(g.length>1){var e=g.slice(0,-1);y(e)}else u(!1)},x=function(){var e,t=((null===(e=h[v])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var o=[].concat(Se(g),[t[n.value]]);y(o)}};o.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case zl.UP:case zl.DOWN:var o=0;t===zl.UP?o=-1:t===zl.DOWN&&(o=1),0!==o&&function(e){var t=h.length,o=v;-1===o&&e<0&&(o=t);for(var r=0;r<t;r+=1){var i=h[o=(o+e+t)%t];if(i&&!i.disabled){var a=g.slice(0,-1).concat(b[o]?kN(b[o]):i[n.value]);return void y(a)}}}(o);break;case zl.LEFT:if(s)break;f?x():C();break;case zl.RIGHT:if(s)break;f?C():x();break;case zl.BACKSPACE:s||C();break;case zl.ENTER:if(g.length){var r=h[v],i=(null===r||void 0===r?void 0:r[yN])||[];i.length?a(i.map((function(e){return e[n.value]})),i[i.length-1]):a(g,h[v])}break;case zl.ESC:u(!1),d&&e.stopPropagation()}},onKeyUp:function(){}}}))};var iM=o.forwardRef((function(e,t){var n,r,i,c=e.prefixCls,s=e.multiple,u=e.searchValue,d=e.toggleOpen,f=e.notFoundContent,p=e.direction,m=e.open,g=o.useRef(null),v="rtl"===p,h=o.useContext(bN),b=h.options,y=h.values,x=h.halfValues,w=h.fieldNames,S=h.changeOnSelect,E=h.onSelect,k=h.searchOptions,O=h.dropdownPrefixCls,I=h.loadData,N=h.expandTrigger,M=O||c,j=Ae(o.useState([]),2),P=j[0],R=j[1];o.useEffect((function(){P.length&&P.forEach((function(e){var t=function(e){return e.split(wN)}(e),n=zN(t,b,w,!0).map((function(e){return e.option})),o=n[n.length-1];(!o||o[w.children]||NN(o,w))&&R((function(t){return t.filter((function(t){return t!==e}))}))}))}),[b,P,w]);var z=o.useMemo((function(){return new Set(ON(y))}),[y]),T=o.useMemo((function(){return new Set(ON(x))}),[x]),B=Ae(oM(s,m),2),H=B[0],D=B[1],L=function(e){D(e),function(e){if(I&&!u){var t=zN(e,b,w).map((function(e){return e.option})),n=t[t.length-1];if(n&&!NN(n,w)){var o=kN(e);R((function(e){return[].concat(Se(e),[o])})),I(t)}}}(e)},A=function(e){var t=e.disabled,n=NN(e,w);return!t&&(n||S||s)},F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];E(e),!s&&(t||S&&("hover"===N||n))&&d(!1)},W=o.useMemo((function(){return u?k:b}),[u,k,b]),_=o.useMemo((function(){for(var e=[{options:W}],t=W,n=jN(t,w),o=function(){var o=H[r],i=t.find((function(e,t){return(n[t]?kN(n[t]):e[w.value])===o})),a=null===i||void 0===i?void 0:i[w.children];if(null===a||void 0===a||!a.length)return 1;t=a,e.push({options:a})},r=0;r<H.length&&!o();r+=1);return e}),[W,H,w]);rM(t,W,w,H,L,(function(e,t){A(t)&&F(e,NN(t,w),!0)}),{direction:p,searchValue:u,toggleOpen:d,open:m}),o.useEffect((function(){if(!u)for(var e=0;e<H.length;e+=1){var t,n=kN(H.slice(0,e+1)),o=null===(t=g.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));o&&MN(o)}}),[H,u]);var V=!(null!==(n=_[0])&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.length),q=[(r={},C(r,w.value,"__EMPTY__"),C(r,tM,f),C(r,"disabled",!0),r)],K=$($({},e),{},{multiple:!V&&s,onSelect:F,onActive:L,onToggleOpen:d,checkedSet:z,halfCheckedSet:T,loadingKeys:P,isSelectable:A}),X=(V?[{options:q}]:_).map((function(e,t){var n=H.slice(0,t),r=H[t];return o.createElement(nM,l({key:t},K,{prefixCls:M,options:e.options,prevValuePath:n,activeValue:r}))}));return o.createElement(JN,{open:m},o.createElement("div",{className:a()("".concat(M,"-menus"),(i={},C(i,"".concat(M,"-menu-empty"),V),C(i,"".concat(M,"-rtl"),v),i)),ref:g},X))}));const aM=iM;const lM=o.forwardRef((function(e,t){var n=Cv();return o.createElement(aM,l({},e,n,{ref:t}))}));function cM(){}function sM(e){var t,n=e,r=n.prefixCls,i=void 0===r?"rc-cascader":r,l=n.style,c=n.className,s=n.options,u=n.checkable,d=n.defaultValue,f=n.value,p=n.fieldNames,m=n.changeOnSelect,g=n.onChange,v=n.showCheckedStrategy,h=n.loadData,b=n.expandTrigger,y=n.expandIcon,x=void 0===y?">":y,$=n.loadingIcon,w=n.direction,S=n.notFoundContent,E=void 0===S?"Not Found":S,k=!!u,O=Ae(so(d,{value:f,postState:PN}),2),I=O[0],N=O[1],M=o.useMemo((function(){return IN(p)}),[JSON.stringify(p)]),j=Ae(KN(M,s),3),P=j[0],R=j[1],z=j[2],T=TN(P,M),B=Ae(QN(k,I,R,z,T),3),H=B[0],D=B[1],L=B[2],A=ao((function(e){if(N(e),g){var t=PN(e),n=t.map((function(e){return zN(e,P,M).map((function(e){return e.option}))})),o=k?t:t[0],r=k?n:n[0];g(o,r)}})),F=UN(k,A,H,D,L,R,z,v),W=ao((function(e){F(e)})),_=o.useMemo((function(){return{options:P,fieldNames:M,values:H,halfValues:D,changeOnSelect:m,onSelect:W,checkable:u,searchOptions:[],dropdownPrefixCls:void 0,loadData:h,expandTrigger:b,expandIcon:x,loadingIcon:$,dropdownMenuColumnStyle:void 0}}),[P,M,H,D,m,W,u,h,b,x,$]),V="".concat(i,"-panel"),q=!P.length;return o.createElement(bN.Provider,{value:_},o.createElement("div",{className:a()(V,(t={},C(t,"".concat(V,"-rtl"),"rtl"===w),C(t,"".concat(V,"-empty"),q),t),c),style:l},q?E:o.createElement(aM,{prefixCls:i,searchValue:"",multiple:k,toggleOpen:cM,open:!0,direction:w})))}var uM=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],dM=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-cascader":r,a=e.fieldNames,c=e.defaultValue,s=e.value,u=e.changeOnSelect,d=e.onChange,f=e.displayRender,p=e.checkable,m=e.autoClearSearchValue,g=void 0===m||m,v=e.searchValue,h=e.onSearch,y=e.showSearch,C=e.expandTrigger,x=e.options,w=e.dropdownPrefixCls,S=e.loadData,E=e.popupVisible,k=e.open,O=e.popupClassName,I=e.dropdownClassName,N=e.dropdownMenuColumnStyle,M=e.dropdownStyle,j=e.popupPlacement,P=e.placement,R=e.onDropdownVisibleChange,z=e.onPopupVisibleChange,T=e.expandIcon,B=void 0===T?">":T,H=e.loadingIcon,D=e.children,L=e.dropdownMatchSelectWidth,A=void 0!==L&&L,F=e.showCheckedStrategy,W=void 0===F?SN:F,_=e.optionRender,V=Si(e,uM),q=db(n),K=!!p,X=Ae(so(c,{value:s,postState:PN}),2),G=X[0],Y=X[1],U=o.useMemo((function(){return IN(a)}),[JSON.stringify(a)]),Q=Ae(KN(U,x),3),Z=Q[0],J=Q[1],ee=Q[2],te=Ae(so("",{value:v,postState:function(e){return e||""}}),2),ne=te[0],oe=te[1],re=function(e){return o.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===b(e)&&(t=$($({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]}),[e])}(y),ie=Ae(re,2),ae=ie[0],le=ie[1],ce=$N(ne,Z,U,w||i,le,u||K),se=TN(Z,U),ue=Ae(QN(K,G,J,ee,se),3),de=ue[0],fe=ue[1],pe=ue[2],me=function(e,t,n,r,i){return o.useMemo((function(){var a=i||function(e){var t=r?e.slice(-1):e;return t.every((function(e){return["string","number"].includes(b(e))}))?t.join(" / "):t.reduce((function(e,t,n){var r=o.isValidElement(t)?o.cloneElement(t,{key:n}):t;return 0===n?[r]:[].concat(Se(e),[" / ",r])}),[])};return e.map((function(e){var o,r=zN(e,t,n),i=a(r.map((function(e){var t,o=e.option,r=e.value;return null!==(t=null===o||void 0===o?void 0:o[n.label])&&void 0!==t?t:r})),r.map((function(e){return e.option}))),l=kN(e);return{label:i,value:l,key:l,valueCells:e,disabled:null===(o=r[r.length-1])||void 0===o||null===(o=o.option)||void 0===o?void 0:o.disabled}}))}),[e,t,n,i,r])}(o.useMemo((function(){var e=RN(ON(de),J,W);return[].concat(Se(pe),Se(ee(e)))}),[de,J,ee,pe,W]),Z,U,K,f),ge=ao((function(e){if(Y(e),d){var t=PN(e),n=t.map((function(e){return zN(e,Z,U).map((function(e){return e.option}))})),o=K?t:t[0],r=K?n:n[0];d(o,r)}})),ve=UN(K,ge,de,fe,pe,J,ee,W),he=ao((function(e){K&&!g||oe(""),ve(e)})),be=void 0!==k?k:E,ye=I||O,Ce=P||j;var xe=o.useMemo((function(){return{options:Z,fieldNames:U,values:de,halfValues:fe,changeOnSelect:u,onSelect:he,checkable:p,searchOptions:ce,dropdownPrefixCls:w,loadData:S,expandTrigger:C,expandIcon:B,loadingIcon:H,dropdownMenuColumnStyle:N,optionRender:_}}),[Z,U,de,fe,u,he,p,ce,w,S,C,B,H,N,_]),$e=!(ne?ce:Z).length,we=ne&&le.matchInputWidth||$e?{}:{minWidth:"auto"};return o.createElement(bN.Provider,{value:xe},o.createElement(Th,l({},V,{ref:t,id:q,prefixCls:i,autoClearSearchValue:g,dropdownMatchSelectWidth:A,dropdownStyle:$($({},we),M),displayValues:me,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;he(n)}else ge([])},mode:K?"multiple":void 0,searchValue:ne,onSearch:function(e,t){oe(e),"blur"!==t.source&&h&&h(e)},showSearch:ae,OptionList:lM,emptyOptions:$e,open:be,dropdownClassName:ye,placement:Ce,onDropdownVisibleChange:function(e){null===R||void 0===R||R(e),null===z||void 0===z||z(e)},getRawInputElement:function(){return D}})))}));dM.SHOW_PARENT=SN,dM.SHOW_CHILD=EN,dM.Panel=sM;const fM=dM;const pM=function(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=o.useContext(Be),a=t||r;return[n("select",e),n("cascader",e),a,i]};function mM(e,t){return o.useMemo((()=>!!t&&o.createElement("span",{className:`${e}-checkbox-inner`})),[t])}const gM=(e,t,n)=>{let r=n;n||(r=t?o.createElement(G$,null):o.createElement(Du,null));const i=o.createElement("span",{className:`${e}-menu-item-loading-icon`},o.createElement(Yl,{spin:!0}));return o.useMemo((()=>[r,i]),[r])},vM=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ro(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ro(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},To(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Et(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function hM(e,t){const n=xo(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[vM(n)]}const bM=fi("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[hM(n,e)]})),yM=e=>{const{prefixCls:t,componentCls:n}=e,o=`${n}-menu-item`,r=`\n &${o}-expand ${o}-expand-icon,\n ${o}-loading-icon\n`;return[hM(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[o]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Po),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[r]:{color:e.colorTextDisabled}},[`&-active:not(${o}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[r]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},CM=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},yM(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},_d(e)]},xM=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},$M=fi("Cascader",(e=>[CM(e)]),xM),wM=pi(["Cascader","Panel"],(e=>(e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[yM(e),{display:"inline-flex",border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}})(e)),xM);const SM=function(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:l,direction:c,expandIcon:s}=e,[u,d,f,p]=pM(t,c),m=bl(d),[g,v,h]=$M(d,m);wM(d);const b="rtl"===f,[y,C]=gM(u,b,s),x=l||(null===p||void 0===p?void 0:p("Cascader"))||o.createElement(Rb,{componentName:"Cascader"}),$=mM(d,r);return g(o.createElement(sM,Object.assign({},e,{checkable:$,prefixCls:d,className:a()(n,v,i,h,m),notFoundContent:x,direction:f,expandIcon:y,loadingIcon:C})))};var EM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const{SHOW_CHILD:kM,SHOW_PARENT:OM}=fM;const IM=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach(((e,t)=>{0!==t&&i.push(" / ");let l=e[r.label];const c=typeof l;"string"!==c&&"number"!==c||(l=function(e,t,n){const r=e.toLowerCase().split(t).reduce(((e,n,o)=>0===o?[n]:[].concat(Se(e),[t,n])),[]),i=[];let a=0;return r.forEach(((t,r)=>{const l=a+t.length;let c=e.slice(a,l);a=l,r%2===1&&(c=o.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${r}`},c)),i.push(c)})),i}(String(l),a,n)),i.push(l)})),i},NM=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,size:i,disabled:l,className:c,rootClassName:s,multiple:u,bordered:d=!0,transitionName:f,choiceTransitionName:p="",popupClassName:m,dropdownClassName:g,expandIcon:v,placement:h,showSearch:b,allowClear:y=!0,notFoundContent:C,direction:x,getPopupContainer:$,status:w,showArrow:S,builtinPlacements:E,style:k,variant:O}=e,I=Ce(EM(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),["suffixIcon"]),{getPopupContainer:N,getPrefixCls:M,popupOverflow:j,cascader:P}=o.useContext(Be),{status:R,hasFeedback:z,isFormItemInput:T,feedbackIcon:B}=o.useContext(em),H=wb(R,w);const[D,L,A,F]=pM(r,x),W="rtl"===A,_=M(),V=bl(D),[q,K,X]=xy(D,V),G=bl(L),[Y]=$M(L,G),{compactSize:U,compactItemClassnames:Q}=_s(D,x),[Z,J]=zb("cascader",O,d),ee=C||(null===F||void 0===F?void 0:F("Cascader"))||o.createElement(Rb,{componentName:"Cascader"}),te=a()(m||g,`${L}-dropdown`,{[`${L}-dropdown-rtl`]:"rtl"===A},s,V,G,K,X),ne=o.useMemo((()=>{if(!b)return b;let e={render:IM};return"object"===typeof b&&(e=Object.assign(Object.assign({},e),b)),e}),[b]),oe=Bs((e=>{var t;return null!==(t=null!==i&&void 0!==i?i:U)&&void 0!==t?t:e})),re=o.useContext(Qc),ie=null!==l&&void 0!==l?l:re,[ae,le]=gM(D,W,v),ce=mM(L,u),se=Ny(e.suffixIcon,S),{suffixIcon:ue,removeIcon:de,clearIcon:fe}=Iy(Object.assign(Object.assign({},e),{hasFeedback:z,feedbackIcon:B,showSuffixIcon:se,multiple:u,prefixCls:D,componentName:"Cascader"})),pe=o.useMemo((()=>void 0!==h?h:W?"bottomRight":"bottomLeft"),[h,W]),me=!0===y?{clearIcon:fe}:y,[ge]=tc("SelectLike",null===(n=I.dropdownStyle)||void 0===n?void 0:n.zIndex);return Y(q(o.createElement(fM,Object.assign({prefixCls:D,className:a()(!r&&L,{[`${D}-lg`]:"large"===oe,[`${D}-sm`]:"small"===oe,[`${D}-rtl`]:W,[`${D}-${Z}`]:J,[`${D}-in-form-item`]:T},$b(D,H,z),Q,null===P||void 0===P?void 0:P.className,c,s,V,G,K,X),disabled:ie,style:Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),k)},I,{builtinPlacements:Tb(E,j),direction:A,placement:pe,notFoundContent:ee,allowClear:me,showSearch:ne,expandIcon:ae,suffixIcon:ue,removeIcon:de,loadingIcon:le,checkable:ce,dropdownClassName:te,dropdownPrefixCls:r||L,dropdownStyle:Object.assign(Object.assign({},I.dropdownStyle),{zIndex:ge}),choiceTransitionName:ws(_,"",p),transitionName:ws(_,"slide-up",f),getPopupContainer:$||N,ref:t}))))}));const MM=vv(NM);NM.SHOW_PARENT=OM,NM.SHOW_CHILD=kM,NM.Panel=SM,NM._InternalPanelDoNotUseOrYouWillBeFired=MM;const jM=NM,PM=r().createContext(null);var RM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zM=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:p=!1,disabled:m}=e,g=RM(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:h,checkbox:b}=o.useContext(Be),y=o.useContext(PM),{isFormItemInput:C}=o.useContext(em),x=o.useContext(Qc),$=null!==(n=(null===y||void 0===y?void 0:y.disabled)||m)&&void 0!==n?n:x,w=o.useRef(g.value),S=o.useRef(null),E=M(t,S);o.useEffect((()=>{null===y||void 0===y||y.registerValue(g.value)}),[]),o.useEffect((()=>{if(!p)return g.value!==w.current&&(null===y||void 0===y||y.cancelValue(w.current),null===y||void 0===y||y.registerValue(g.value),w.current=g.value),()=>null===y||void 0===y?void 0:y.cancelValue(g.value)}),[g.value]),o.useEffect((()=>{var e;(null===(e=S.current)||void 0===e?void 0:e.input)&&(S.current.input.indeterminate=s)}),[s]);const k=v("checkbox",r),O=bl(k),[I,N,j]=bM(k,O),P=Object.assign({},g);y&&!p&&(P.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:c,value:g.value})},P.name=y.name,P.checked=y.value.includes(g.value));const R=a()(`${k}-wrapper`,{[`${k}-rtl`]:"rtl"===h,[`${k}-wrapper-checked`]:P.checked,[`${k}-wrapper-disabled`]:$,[`${k}-wrapper-in-form-item`]:C},null===b||void 0===b?void 0:b.className,i,l,j,O,N),z=a()({[`${k}-indeterminate`]:s},Ns,N);return I(o.createElement(Ts,{component:"Checkbox",disabled:$},o.createElement("label",{className:R,style:Object.assign(Object.assign({},null===b||void 0===b?void 0:b.style),u),onMouseEnter:d,onMouseLeave:f},o.createElement(Nk,Object.assign({},P,{prefixCls:k,className:z,disabled:$,ref:E})),void 0!==c&&o.createElement("span",null,c))))}));const TM=zM;var BM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const HM=o.forwardRef(((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,f=BM(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:m}=o.useContext(Be),[g,v]=o.useState(f.value||n||[]),[h,b]=o.useState([]);o.useEffect((()=>{"value"in f&&v(f.value||[])}),[f.value]);const y=o.useMemo((()=>i.map((e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e))),[i]),C=p("checkbox",l),x=`${C}-group`,$=bl(C),[w,S,E]=bM(C,$),k=Ce(f,["value","disabled"]),O=i.length?y.map((e=>o.createElement(TM,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${x}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,I={toggleOption:e=>{const t=g.indexOf(e.value),n=Se(g);-1===t?n.push(e.value):n.splice(t,1),"value"in f||v(n),null===d||void 0===d||d(n.filter((e=>h.includes(e))).sort(((e,t)=>y.findIndex((t=>t.value===e))-y.findIndex((e=>e.value===t)))))},value:g,disabled:f.disabled,name:f.name,registerValue:e=>{b((t=>[].concat(Se(t),[e])))},cancelValue:e=>{b((t=>t.filter((t=>t!==e))))}},N=a()(x,{[`${x}-rtl`]:"rtl"===m},c,s,E,$,S);return w(o.createElement("div",Object.assign({className:N,style:u},k,{ref:t}),o.createElement(PM.Provider,{value:I},O)))})),DM=HM,LM=TM;LM.Group=DM,LM.__ANT_CHECKBOX=!0;const AM=LM,FM=(0,o.createContext)({}),WM=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_M=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let a=r;a>=0;a--)0===a?(i[`${o}${t}-${a}`]={display:"none"},i[`${o}-push-${a}`]={insetInlineStart:"auto"},i[`${o}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${a}`]={marginInlineStart:0},i[`${o}${t}-order-${a}`]={order:0}):(i[`${o}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/r*100}%`,maxWidth:a/r*100+"%"}],i[`${o}${t}-push-${a}`]={insetInlineStart:a/r*100+"%"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:a/r*100+"%"},i[`${o}${t}-offset-${a}`]={marginInlineStart:a/r*100+"%"},i[`${o}${t}-order-${a}`]={order:a});return i[`${o}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),VM=fi("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),qM=fi("Grid",(e=>{const t=xo(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[WM(t),_M(t,""),_M(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Et(t)})`]:Object.assign({},_M(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var KM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function XM(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const GM=["xs","sm","md","lg","xl","xxl"],YM=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(Be),{gutter:i,wrap:l}=o.useContext(FM),{prefixCls:c,span:s,order:u,offset:d,push:f,pull:p,className:m,children:g,flex:v,style:h}=e,b=KM(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",c),[C,x,$]=qM(y),w={};let S={};GM.forEach((t=>{let n={};const o=e[t];"number"===typeof o?n.span=o:"object"===typeof o&&(n=o||{}),delete b[t],S=Object.assign(Object.assign({},S),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===r}),n.flex&&(S[`${y}-${t}-flex`]=!0,w[`--${y}-${t}-flex`]=XM(n.flex))}));const E=a()(y,{[`${y}-${s}`]:void 0!==s,[`${y}-order-${u}`]:u,[`${y}-offset-${d}`]:d,[`${y}-push-${f}`]:f,[`${y}-pull-${p}`]:p},m,S,x,$),k={};if(i&&i[0]>0){const e=i[0]/2;k.paddingLeft=e,k.paddingRight=e}return v&&(k.flex=XM(v),!1!==l||k.minWidth||(k.minWidth=0)),C(o.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},k),h),w),className:E,ref:t}),g))}));const UM=YM,QM=UM,ZM=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{borderBlockStart:`${Et(r)} solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Et(r)} solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Et(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Et(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Et(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${Et(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:`${Et(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},JM=fi("Divider",(e=>{const t=xo(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[ZM(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var ej=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const tj=e=>{const{getPrefixCls:t,direction:n,divider:r}=o.useContext(Be),{prefixCls:i,type:l="horizontal",orientation:c="center",orientationMargin:s,className:u,rootClassName:d,children:f,dashed:p,variant:m="solid",plain:g,style:v}=e,h=ej(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),b=t("divider",i),[y,C,x]=JM(b),$=!!f,w="left"===c&&null!=s,S="right"===c&&null!=s,E=a()(b,null===r||void 0===r?void 0:r.className,C,x,`${b}-${l}`,{[`${b}-with-text`]:$,[`${b}-with-text-${c}`]:$,[`${b}-dashed`]:!!p,[`${b}-${m}`]:"solid"!==m,[`${b}-plain`]:!!g,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-left`]:w,[`${b}-no-default-orientation-margin-right`]:S},u,d),k=o.useMemo((()=>"number"===typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),O=Object.assign(Object.assign({},w&&{marginLeft:k}),S&&{marginRight:k});return y(o.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null===r||void 0===r?void 0:r.style),v)},h,{role:"separator"}),f&&"vertical"!==l&&o.createElement("span",{className:`${b}-inner-text`,style:O},f)))};var nj=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},oj=function(e){return void 0!==e?"".concat(e,"px"):void 0};function rj(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,l=e.motionName,c=e.onMotionStart,s=e.onMotionEnd,u=e.direction,d=e.vertical,f=void 0!==d&&d,p=o.useRef(null),m=Ae(o.useState(r),2),g=m[0],v=m[1],h=function(e){var o,r=i(e),a=null===(o=n.current)||void 0===o?void 0:o.querySelectorAll(".".concat(t,"-item"))[r];return(null===a||void 0===a?void 0:a.offsetParent)&&a},b=Ae(o.useState(null),2),y=b[0],C=b[1],x=Ae(o.useState(null),2),w=x[0],S=x[1];Rt((function(){if(g!==r){var e=h(g),t=h(r),n=nj(e,f),o=nj(t,f);v(r),C(n),S(o),e&&t?c():s()}}),[r]);var E=o.useMemo((function(){var e;return oj(f?null!==(e=null===y||void 0===y?void 0:y.top)&&void 0!==e?e:0:"rtl"===u?-(null===y||void 0===y?void 0:y.right):null===y||void 0===y?void 0:y.left)}),[f,u,y]),k=o.useMemo((function(){var e;return oj(f?null!==(e=null===w||void 0===w?void 0:w.top)&&void 0!==e?e:0:"rtl"===u?-(null===w||void 0===w?void 0:w.right):null===w||void 0===w?void 0:w.left)}),[f,u,w]);return y&&w?o.createElement(Aa,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:function(){return f?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return f?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){C(null),S(null),s()}},(function(e,n){var r=e.className,i=$($({},e.style),{},{"--thumb-start-left":E,"--thumb-start-width":oj(null===y||void 0===y?void 0:y.width),"--thumb-active-left":k,"--thumb-active-width":oj(null===w||void 0===w?void 0:w.width),"--thumb-start-top":E,"--thumb-start-height":oj(null===y||void 0===y?void 0:y.height),"--thumb-active-top":k,"--thumb-active-height":oj(null===w||void 0===w?void 0:w.height)}),l={ref:M(p,n),style:i,className:a()("".concat(t,"-thumb"),r)};return o.createElement("div",l)})):null}var ij=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"];function aj(e){return e.map((function(e){if("object"===b(e)&&null!==e){var t=function(e){return"undefined"!==typeof e.title?e.title:"object"!==b(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return $($({},e),{},{title:t})}return{label:null===e||void 0===e?void 0:e.toString(),title:null===e||void 0===e?void 0:e.toString(),value:e}}))}var lj=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,i=e.checked,l=e.label,c=e.title,s=e.value,u=e.onChange;return o.createElement("label",{className:a()(n,C({},"".concat(t,"-item-disabled"),r))},o.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:i,onChange:function(e){r||u(e,s)}}),o.createElement("div",{className:"".concat(t,"-item-label"),title:c,role:"option","aria-selected":i},l))},cj=o.forwardRef((function(e,t){var n,r,i=e.prefixCls,c=void 0===i?"rc-segmented":i,s=e.direction,u=e.vertical,d=e.options,f=void 0===d?[]:d,p=e.disabled,m=e.defaultValue,g=e.value,v=e.onChange,h=e.className,b=void 0===h?"":h,y=e.motionName,x=void 0===y?"thumb-motion":y,$=Si(e,ij),w=o.useRef(null),S=o.useMemo((function(){return M(w,t)}),[w,t]),E=o.useMemo((function(){return aj(f)}),[f]),k=Ae(so(null===(n=E[0])||void 0===n?void 0:n.value,{value:g,defaultValue:m}),2),O=k[0],I=k[1],N=Ae(o.useState(!1),2),j=N[0],P=N[1],R=function(e,t){p||(I(t),null===v||void 0===v||v(t))},z=Ce($,["children"]);return o.createElement("div",l({role:"listbox","aria-label":"segmented control"},z,{className:a()(c,(r={},C(r,"".concat(c,"-rtl"),"rtl"===s),C(r,"".concat(c,"-disabled"),p),C(r,"".concat(c,"-vertical"),u),r),b),ref:S}),o.createElement("div",{className:"".concat(c,"-group")},o.createElement(rj,{vertical:u,prefixCls:c,value:O,containerRef:w,motionName:"".concat(c,"-").concat(x),direction:s,getValueIndex:function(e){return E.findIndex((function(t){return t.value===e}))},onMotionStart:function(){P(!0)},onMotionEnd:function(){P(!1)}}),E.map((function(e){return o.createElement(lj,l({},e,{key:e.value,prefixCls:c,className:a()(e.className,"".concat(c,"-item"),C({},"".concat(c,"-item-selected"),e.value===O&&!j)),checked:e.value===O,onChange:R,disabled:!!p||!!e.disabled}))}))))}));const sj=cj;function uj(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function dj(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const fj=Object.assign({overflow:"hidden"},Po),pj=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${Et(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},dj(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Et(n),padding:`0 ${Et(e.segmentedPaddingHorizontal)}`},fj),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},dj(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Et(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:Et(o),padding:`0 ${Et(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:r,lineHeight:Et(r),padding:`0 ${Et(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),uj(`&-disabled ${t}-item`,e)),uj(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},mj=fi("Segmented",(e=>{const{lineWidth:t,calc:n}=e,o=xo(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[pj(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:o,colorBgElevated:r,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:o,itemSelectedBg:r,itemActiveBg:i,itemSelectedColor:n}}));var gj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vj=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,block:l,options:c=[],size:s="middle",style:u,vertical:d}=e,f=gj(e,["prefixCls","className","rootClassName","block","options","size","style","vertical"]),{getPrefixCls:p,direction:m,segmented:g}=o.useContext(Be),v=p("segmented",n),[h,b,y]=mj(v),C=Bs(s),x=o.useMemo((()=>c.map((e=>{if(function(e){return"object"===typeof e&&!!(null===e||void 0===e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=gj(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:`${v}-item-icon`},t),n&&o.createElement("span",null,n))})}return e}))),[c,v]),$=a()(r,i,null===g||void 0===g?void 0:g.className,{[`${v}-block`]:l,[`${v}-sm`]:"small"===C,[`${v}-lg`]:"large"===C,[`${v}-vertical`]:d},b,y),w=Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),u);return h(o.createElement(sj,Object.assign({},f,{className:$,style:w,options:x,ref:t,prefixCls:v,direction:m,vertical:d})))}));const hj=vj,bj=r().createContext({}),yj=r().createContext({}),Cj=e=>{let{prefixCls:t,value:n,onChange:o}=e;return r().createElement("div",{className:`${t}-clear`,onClick:()=>{if(o&&n&&!n.cleared){const e=n.toHsb();e.a=0;const t=id(e);t.cleared=!0,o(t)}}})};var xj;!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(xj||(xj={}));const $j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const wj=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:$j}))}));function Sj(){return"function"===typeof BigInt}function Ej(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function kj(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var o=t||"0",r=o.split("."),i=r[0]||"0",a=r[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:o,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(o)}}function Oj(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Ij(e){var t=String(e);if(Oj(e)){var n=Number(t.slice(t.indexOf("e-")+2)),o=t.match(/\.(\d+)/);return null!==o&&void 0!==o&&o[1]&&(n+=o[1].length),n}return t.includes(".")&&Mj(t)?t.length-t.indexOf(".")-1:0}function Nj(e){var t=String(e);if(Oj(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Sj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Sj()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ij(t))}return kj(t).fullStr}function Mj(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var jj=function(){function e(t){if(ie(this,e),C(this,"origin",""),C(this,"negative",void 0),C(this,"integer",void 0),C(this,"decimal",void 0),C(this,"decimalLen",void 0),C(this,"empty",void 0),C(this,"nan",void 0),Ej(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(Oj(n)&&(n=Number(n)),Mj(n="string"===typeof n?n:Nj(n))){var o=kj(n);this.negative=o.negative;var r=o.trimStr.split(".");this.integer=BigInt(r[0]);var i=r[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return le(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,o){var r=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(r),t.alignDecimal(r)).toString(),a=o(r),l=kj(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":kj("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Pj=function(){function e(t){ie(this,e),C(this,"origin",""),C(this,"number",void 0),C(this,"empty",void 0),Ej(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return le(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(Ij(this.number),Ij(n));return new e(o.toFixed(r))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var o=this.number*n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(Ij(this.number),Ij(n));return new e(o.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Nj(this.number):this.origin}}]),e}();function Rj(e){return Sj()?new jj(e):new Pj(e)}function zj(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=kj(e),i=r.negativeStr,a=r.integerStr,l=r.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!o?zj(Rj(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,o):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}const Tj=Rj;function Bj(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function Hj(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=Bj(t,e,o)):n(r=Bj(t,e,""))}}function Dj(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Lj=r().forwardRef((function(e,t){var n,i,c=e.inputElement,s=e.children,u=e.prefixCls,d=e.prefix,f=e.suffix,p=e.addonBefore,m=e.addonAfter,g=e.className,v=e.style,h=e.disabled,y=e.readOnly,x=e.focused,w=e.triggerFocus,S=e.allowClear,E=e.value,k=e.handleReset,O=e.hidden,I=e.classes,N=e.classNames,M=e.dataAttrs,j=e.styles,P=e.components,R=e.onClear,z=null!==s&&void 0!==s?s:c,T=(null===P||void 0===P?void 0:P.affixWrapper)||"span",B=(null===P||void 0===P?void 0:P.groupWrapper)||"span",H=(null===P||void 0===P?void 0:P.wrapper)||"span",D=(null===P||void 0===P?void 0:P.groupAddon)||"span",L=(0,o.useRef)(null),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),F=(0,o.cloneElement)(z,{value:E,className:a()(z.props.className,!A&&(null===N||void 0===N?void 0:N.variant))||null}),W=(0,o.useRef)(null);if(r().useImperativeHandle(t,(function(){return{nativeElement:W.current||L.current}})),A){var _=null;if(S){var V=!h&&!y&&E,q="".concat(u,"-clear-icon"),K="object"===b(S)&&null!==S&&void 0!==S&&S.clearIcon?S.clearIcon:"\u2716";_=r().createElement("span",{onClick:function(e){null===k||void 0===k||k(e),null===R||void 0===R||R()},onMouseDown:function(e){return e.preventDefault()},className:a()(q,C(C({},"".concat(q,"-hidden"),!V),"".concat(q,"-has-suffix"),!!f)),role:"button",tabIndex:-1},K)}var X="".concat(u,"-affix-wrapper"),G=a()(X,C(C(C(C(C({},"".concat(u,"-disabled"),h),"".concat(X,"-disabled"),h),"".concat(X,"-focused"),x),"".concat(X,"-readonly"),y),"".concat(X,"-input-with-clear-btn"),f&&S&&E),null===I||void 0===I?void 0:I.affixWrapper,null===N||void 0===N?void 0:N.affixWrapper,null===N||void 0===N?void 0:N.variant),Y=(f||S)&&r().createElement("span",{className:a()("".concat(u,"-suffix"),null===N||void 0===N?void 0:N.suffix),style:null===j||void 0===j?void 0:j.suffix},_,f);F=r().createElement(T,l({className:G,style:null===j||void 0===j?void 0:j.affixWrapper,onClick:function(e){var t;null!==(t=L.current)&&void 0!==t&&t.contains(e.target)&&(null===w||void 0===w||w())}},null===M||void 0===M?void 0:M.affixWrapper,{ref:L}),d&&r().createElement("span",{className:a()("".concat(u,"-prefix"),null===N||void 0===N?void 0:N.prefix),style:null===j||void 0===j?void 0:j.prefix},d),F,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var U="".concat(u,"-group"),Q="".concat(U,"-addon"),Z="".concat(U,"-wrapper"),J=a()("".concat(u,"-wrapper"),U,null===I||void 0===I?void 0:I.wrapper,null===N||void 0===N?void 0:N.wrapper),ee=a()(Z,C({},"".concat(Z,"-disabled"),h),null===I||void 0===I?void 0:I.group,null===N||void 0===N?void 0:N.groupWrapper);F=r().createElement(B,{className:ee,ref:W},r().createElement(H,{className:J},p&&r().createElement(D,{className:Q},p),F,m&&r().createElement(D,{className:Q},m)))}return r().cloneElement(F,{className:a()(null===(n=F.props)||void 0===n?void 0:n.className,g)||null,style:$($({},null===(i=F.props)||void 0===i?void 0:i.style),v),hidden:O})}));const Aj=Lj;var Fj=["show"];function Wj(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===b(t)&&t.formatter?t.formatter:!!t);var o=n=$($({},n),e),r=o.show,i=Si(o,Fj);return $($({},i),{},{show:!!r,showFormatter:"function"===typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var _j=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Vj=(0,o.forwardRef)((function(e,t){var n=e.autoComplete,i=e.onChange,c=e.onFocus,s=e.onBlur,u=e.onPressEnter,d=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=void 0===p?"rc-input":p,g=e.disabled,v=e.htmlSize,h=e.className,b=e.maxLength,y=e.suffix,x=e.showCount,w=e.count,S=e.type,E=void 0===S?"text":S,k=e.classes,O=e.classNames,I=e.styles,N=e.onCompositionStart,M=e.onCompositionEnd,j=Si(e,_j),P=Ae((0,o.useState)(!1),2),R=P[0],z=P[1],T=(0,o.useRef)(!1),B=(0,o.useRef)(!1),H=(0,o.useRef)(null),D=(0,o.useRef)(null),L=function(e){H.current&&Dj(H.current,e)},A=Ae(so(e.defaultValue,{value:e.value}),2),F=A[0],W=A[1],_=void 0===F||null===F?"":String(F),V=Ae((0,o.useState)(null),2),q=V[0],K=V[1],X=Wj(w,x),G=X.max||b,Y=X.strategy(_),U=!!G&&Y>G;(0,o.useImperativeHandle)(t,(function(){var e;return{focus:L,blur:function(){var e;null===(e=H.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=H.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=H.current)||void 0===e||e.select()},input:H.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||H.current}})),(0,o.useEffect)((function(){z((function(e){return(!e||!g)&&e}))}),[g]);var Q=function(e,t,n){var o,r,a=t;if(!T.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&K([(null===(o=H.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=H.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;W(a),H.current&&Hj(H.current,e,i,a)};(0,o.useEffect)((function(){var e;q&&(null===(e=H.current)||void 0===e||e.setSelectionRange.apply(e,Se(q)))}),[q]);var Z=function(e){Q(e,e.target.value,{source:"change"})},J=function(e){T.current=!1,Q(e,e.currentTarget.value,{source:"compositionEnd"}),null===M||void 0===M||M(e)},ee=function(e){u&&"Enter"===e.key&&!B.current&&(B.current=!0,u(e)),null===d||void 0===d||d(e)},te=function(e){"Enter"===e.key&&(B.current=!1),null===f||void 0===f||f(e)},ne=function(e){z(!0),null===c||void 0===c||c(e)},oe=function(e){z(!1),null===s||void 0===s||s(e)},re=U&&"".concat(m,"-out-of-range");return r().createElement(Aj,l({},j,{prefixCls:m,className:a()(h,re),handleReset:function(e){W(""),L(),H.current&&Hj(H.current,e,i)},value:_,focused:R,triggerFocus:L,suffix:function(){var e=Number(G)>0;if(y||X.show){var t=X.showFormatter?X.showFormatter({value:_,count:Y,maxLength:G}):"".concat(Y).concat(e?" / ".concat(G):"");return r().createElement(r().Fragment,null,X.show&&r().createElement("span",{className:a()("".concat(m,"-show-count-suffix"),C({},"".concat(m,"-show-count-has-suffix"),!!y),null===O||void 0===O?void 0:O.count),style:$({},null===I||void 0===I?void 0:I.count)},t),y)}return null}(),disabled:g,classes:k,classNames:O,styles:I}),function(){var t=Ce(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return r().createElement("input",l({autoComplete:n},t,{onChange:Z,onFocus:ne,onBlur:oe,onKeyDown:ee,onKeyUp:te,className:a()(m,C({},"".concat(m,"-disabled"),g),null===O||void 0===O?void 0:O.input),style:null===I||void 0===I?void 0:I.input,ref:H,size:v,type:E,onCompositionStart:function(e){T.current=!0,null===N||void 0===N||N(e)},onCompositionEnd:J}))}())}));const qj=Vj;const Kj=function(){var e=Ae((0,o.useState)(!1),2),t=e[0],n=e[1];return Rt((function(){n(hv())}),[]),t};function Xj(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,c=e.downDisabled,s=e.onStep,u=o.useRef(),d=o.useRef([]),f=o.useRef();f.current=s;var p=function(){clearTimeout(u.current)},m=function(e,t){e.preventDefault(),p(),f.current(t),u.current=setTimeout((function e(){f.current(t),u.current=setTimeout(e,200)}),600)};if(o.useEffect((function(){return function(){p(),d.current.forEach((function(e){return je.cancel(e)}))}}),[]),Kj())return null;var g="".concat(t,"-handler"),v=a()(g,"".concat(g,"-up"),C({},"".concat(g,"-up-disabled"),i)),h=a()(g,"".concat(g,"-down"),C({},"".concat(g,"-down-disabled"),c)),b=function(){return d.current.push(je(p))},y={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return o.createElement("div",{className:"".concat(g,"-wrap")},o.createElement("span",l({},y,{onMouseDown:function(e){m(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",l({},y,{onMouseDown:function(e){m(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:h}),r||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Gj(e){var t="number"===typeof e?Nj(e):kj(e).fullStr;return t.includes(".")?kj(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Yj=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Uj=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Qj=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Zj=function(e){var t=Tj(e);return t.isInvalidate()?null:t},Jj=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,c=e.min,s=e.max,u=e.step,d=void 0===u?1:u,f=e.defaultValue,p=e.value,m=e.disabled,g=e.readOnly,v=e.upHandler,y=e.downHandler,x=e.keyboard,$=e.changeOnWheel,w=void 0!==$&&$,S=e.controls,E=void 0===S||S,k=(e.classNames,e.stringMode),O=e.parser,I=e.formatter,N=e.precision,j=e.decimalSeparator,P=e.onChange,R=e.onInput,z=e.onPressEnter,T=e.onStep,B=e.changeOnBlur,H=void 0===B||B,D=e.domRef,L=Si(e,Yj),A="".concat(n,"-input"),F=o.useRef(null),W=Ae(o.useState(!1),2),_=W[0],V=W[1],q=o.useRef(!1),K=o.useRef(!1),X=o.useRef(!1),G=Ae(o.useState((function(){return Tj(null!==p&&void 0!==p?p:f)})),2),Y=G[0],U=G[1];var Q=o.useCallback((function(e,t){if(!t)return N>=0?N:Math.max(Ij(e),Ij(d))}),[N,d]),Z=o.useCallback((function(e){var t=String(e);if(O)return O(t);var n=t;return j&&(n=n.replace(j,".")),n.replace(/[^\w.-]+/g,"")}),[O,j]),J=o.useRef(""),ee=o.useCallback((function(e,t){if(I)return I(e,{userTyping:t,input:String(J.current)});var n="number"===typeof e?Nj(e):e;if(!t){var o=Q(n,t);if(Mj(n)&&(j||o>=0))n=zj(n,j||".",o)}return n}),[I,Q,j]),te=Ae(o.useState((function(){var e=null!==f&&void 0!==f?f:p;return Y.isInvalidate()&&["string","number"].includes(b(e))?Number.isNaN(e)?"":e:ee(Y.toString(),!1)})),2),ne=te[0],oe=te[1];function re(e,t){oe(ee(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}J.current=ne;var ie=o.useMemo((function(){return Zj(s)}),[s,N]),ae=o.useMemo((function(){return Zj(c)}),[c,N]),le=o.useMemo((function(){return!(!ie||!Y||Y.isInvalidate())&&ie.lessEquals(Y)}),[ie,Y]),ce=o.useMemo((function(){return!(!ae||!Y||Y.isInvalidate())&&Y.lessEquals(ae)}),[ae,Y]),se=function(e,t){var n=(0,o.useRef)(null);return[function(){try{var t=e.selectionStart,o=e.selectionEnd,r=e.value,i=r.substring(0,t),a=r.substring(o);n.current={start:t,end:o,value:r,beforeTxt:i,afterTxt:a}}catch(sl){}},function(){if(e&&n.current&&t)try{var o=e.value,r=n.current,i=r.beforeTxt,a=r.afterTxt,l=r.start,c=o.length;if(o.startsWith(i))c=i.length;else if(o.endsWith(a))c=o.length-n.current.afterTxt.length;else{var s=i[l-1],u=o.indexOf(s,l-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(sl){h(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(sl.message))}}]}(F.current,_),ue=Ae(se,2),de=ue[0],fe=ue[1],pe=function(e){return ie&&!e.lessEquals(ie)?ie:ae&&!ae.lessEquals(e)?ae:null},me=function(e){return!pe(e)},ge=function(e,t){var n,o=e,r=me(o)||o.isEmpty();if(o.isEmpty()||t||(o=pe(o)||o,r=!0),!g&&!m&&r){var i=o.toString(),a=Q(i,t);return a>=0&&(o=Tj(zj(i,".",a)),me(o)||(o=Tj(zj(i,".",a,!0)))),o.equals(Y)||(n=o,void 0===p&&U(n),null===P||void 0===P||P(o.isEmpty()?null:Qj(k,o)),void 0===p&&re(o,t)),o}return Y},ve=function(){var e=(0,o.useRef)(0),t=function(){je.cancel(e.current)};return(0,o.useEffect)((function(){return t}),[]),function(n){t(),e.current=je((function(){n()}))}}(),he=function e(t){if(de(),J.current=t,oe(t),!K.current){var n=Z(t),o=Tj(n);o.isNaN()||ge(o,!0)}null===R||void 0===R||R(t),ve((function(){var n=t;O||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&le||!e&&ce)){q.current=!1;var n=Tj(X.current?Gj(d):d);e||(n=n.negate());var o=(Y||Tj(0)).add(n.toString()),r=ge(o,!1);null===T||void 0===T||T(Qj(k,r),{offset:X.current?Gj(d):d,type:e?"up":"down"}),null===(t=F.current)||void 0===t||t.focus()}},ye=function(e){var t,n=Tj(Z(ne));t=n.isNaN()?ge(Y,e):ge(n,e),void 0!==p?re(Y,!1):t.isNaN()||re(t,!1)};o.useEffect((function(){if(w&&_){var e=function(e){be(e.deltaY<0),e.preventDefault()},t=F.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Pt((function(){Y.isInvalidate()||re(Y,!1)}),[N,I]),Pt((function(){var e=Tj(p);U(e);var t=Tj(Z(ne));e.equals(t)&&q.current&&!I||re(e,q.current)}),[p]),Pt((function(){I&&fe()}),[ne]),o.createElement("div",{ref:D,className:a()(n,r,C(C(C(C(C({},"".concat(n,"-focused"),_),"".concat(n,"-disabled"),m),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!me(Y))),style:i,onFocus:function(){V(!0)},onBlur:function(){H&&ye(!1),V(!1),q.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;q.current=!0,X.current=n,"Enter"===t&&(K.current||(q.current=!1),ye(!1),null===z||void 0===z||z(e)),!1!==x&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){q.current=!1,X.current=!1},onCompositionStart:function(){K.current=!0},onCompositionEnd:function(){K.current=!1,he(F.current.value)},onBeforeInput:function(){q.current=!0}},E&&o.createElement(Xj,{prefixCls:n,upNode:v,downNode:y,upDisabled:le,downDisabled:ce,onStep:be}),o.createElement("div",{className:"".concat(A,"-wrap")},o.createElement("input",l({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":s,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:d},L,{ref:M(F,t),className:A,value:ne,onChange:function(e){he(e.target.value)},disabled:m,readOnly:g}))))})),eP=o.forwardRef((function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,c=e.value,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,m=e.classNames,g=Si(e,Uj),v=o.useRef(null),h=o.useRef(null),b=o.useRef(null);return o.useImperativeHandle(t,(function(){return e=b.current,t={nativeElement:v.current.nativeElement||h.current},"undefined"!==typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var o=e[n];return"function"===typeof o?o.bind(e):o}}):e;var e,t})),o.createElement(Aj,{className:p,triggerFocus:function(e){b.current&&Dj(b.current,e)},prefixCls:a,value:c,disabled:n,style:r,prefix:s,suffix:u,addonAfter:f,addonBefore:d,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},o.createElement(Jj,l({prefixCls:a,disabled:n,ref:b,domRef:h,className:null===m||void 0===m?void 0:m.input},g)))}));const tP=eP,nP=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),oP=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({},nP(xo(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rP=(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}}),iP=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rP(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),aP=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rP(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),iP(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),iP(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lP=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cP=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},lP(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),lP(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},oP(e))}})}),sP=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},uP=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null===t||void 0===t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),dP=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uP(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),fP=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uP(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),dP(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),dP(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),pP=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),mP=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},pP(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),pP(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:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),gP=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),vP=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Et(t)} ${Et(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},hP=e=>({padding:`${Et(e.paddingBlockSM)} ${Et(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bP=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Et(e.paddingBlock)} ${Et(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},gP(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},vP(e)),"&-sm":Object.assign({},hP(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yP=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},vP(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},hP(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 ${Et(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Et(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Et(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:`${Et(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Et(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},CP=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),bP(e)),aP(e)),fP(e)),sP(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},xP=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Et(e.inputAffixPadding)}`}}}},$P=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},bP(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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),xP(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[s]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},wP=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ro(e)),yP(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:o}}},cP(e)),mP(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}}})})}},SP=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{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,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},EP=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},kP=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},OP=fi("Input",(e=>{const t=xo(e,Gk(e));return[CP(t),EP(t),$P(t),wP(t),SP(t),kP(t),_d(t)]}),Yk,{resetFont:!1}),IP=(e,t)=>{let{componentCls:n,borderRadiusSM:o,borderRadiusLG:r}=e;const i="lg"===t?r:o;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},NP=e=>{const{componentCls:t,lineWidth:n,lineType:o,borderRadius:r,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:h,paddingInline:b,paddingBlock:y,handleBg:C,handleActiveBg:x,colorTextDisabled:$,borderRadiusSM:w,borderRadiusLG:S,controlWidth:E,handleBorderColor:k,filledHandleBg:O,lineHeightLG:I,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),bP(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:r}),aP(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Et(n)} ${o} ${k}`}}})),fP(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${Et(n)} ${o} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),sP(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:S,[`input${t}-input`]:{height:N(l).sub(N(n).mul(2)).equal(),padding:`${Et(f)} ${Et(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:N(c).sub(N(n).mul(2)).equal(),padding:`${Et(d)} ${Et(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Ro(e)),yP(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},cP(e)),mP(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{width:"100%",padding:`${Et(y)} ${Et(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),gP(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Et(n)} ${o} ${k}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},IP(e,"lg")),IP(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:$}})}]},MP=e=>{const{componentCls:t,paddingBlock:n,paddingInline:o,inputAffixPadding:r,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Et(n)} 0`}},bP(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:o,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Et(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Et(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:o,marginInlineStart:r,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(o).equal()}})}},jP=fi("InputNumber",(e=>{const t=xo(e,Gk(e));return[NP(t),MP(t),_d(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},Yk(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Fr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var PP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const RP=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(Be),i=o.useRef(null);o.useImperativeHandle(t,(()=>i.current));const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:f,addonAfter:p,prefix:m,suffix:g,bordered:v,readOnly:h,status:b,controls:y,variant:C}=e,x=PP(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),$=n("input-number",d),w=bl($),[S,E,k]=jP($,w),{compactSize:O,compactItemClassnames:I}=_s($,r);let N=o.createElement(wj,{className:`${$}-handler-up-inner`}),M=o.createElement(Ey,{className:`${$}-handler-down-inner`});const j="boolean"===typeof y?y:void 0;"object"===typeof y&&(N="undefined"===typeof y.upIcon?N:o.createElement("span",{className:`${$}-handler-up-inner`},y.upIcon),M="undefined"===typeof y.downIcon?M:o.createElement("span",{className:`${$}-handler-down-inner`},y.downIcon));const{hasFeedback:P,status:R,isFormItemInput:z,feedbackIcon:T}=o.useContext(em),B=wb(R,b),H=Bs((e=>{var t;return null!==(t=null!==s&&void 0!==s?s:O)&&void 0!==t?t:e})),D=o.useContext(Qc),L=null!==u&&void 0!==u?u:D,[A,F]=zb("inputNumber",C,v),W=P&&o.createElement(o.Fragment,null,T),_=a()({[`${$}-lg`]:"large"===H,[`${$}-sm`]:"small"===H,[`${$}-rtl`]:"rtl"===r,[`${$}-in-form-item`]:z},E),V=`${$}-group`;return S(o.createElement(tP,Object.assign({ref:i,disabled:L,className:a()(k,w,l,c,I),upHandler:N,downHandler:M,prefixCls:$,readOnly:h,controls:j,prefix:m,suffix:W||g,addonBefore:f&&o.createElement(om,{form:!0,space:!0},f),addonAfter:p&&o.createElement(om,{form:!0,space:!0},p),classNames:{input:_,variant:a()({[`${$}-${A}`]:F},$b($,B,P)),affixWrapper:a()({[`${$}-affix-wrapper-sm`]:"small"===H,[`${$}-affix-wrapper-lg`]:"large"===H,[`${$}-affix-wrapper-rtl`]:"rtl"===r,[`${$}-affix-wrapper-without-controls`]:!1===y},E),wrapper:a()({[`${V}-rtl`]:"rtl"===r},E),groupWrapper:a()({[`${$}-group-wrapper-sm`]:"small"===H,[`${$}-group-wrapper-lg`]:"large"===H,[`${$}-group-wrapper-rtl`]:"rtl"===r,[`${$}-group-wrapper-${A}`]:F},$b(`${$}-group-wrapper`,B,P),E)}},x)))})),zP=RP;zP._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(bs,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(RP,Object.assign({},e)));const TP=zP,BP=e=>{let{prefixCls:t,min:n=0,max:i=100,value:l,onChange:c,className:s,formatter:u}=e;const d=`${t}-steppers`,[f,p]=(0,o.useState)(l);return(0,o.useEffect)((()=>{Number.isNaN(l)||p(l)}),[l]),r().createElement(TP,{className:a()(d,s),min:n,max:i,value:f,formatter:u,size:"small",onChange:e=>{l||p(e||0),null===c||void 0===c||c(e)}})},HP=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-alpha-input`,[l,c]=(0,o.useState)(id(n||"#000"));(0,o.useEffect)((()=>{n&&c(n)}),[n]);return r().createElement(BP,{value:ld(l),prefixCls:t,formatter:e=>`${e}%`,className:a,onChange:e=>{const t=l.toHsb();t.a=(e||0)/100;const o=id(t);n||c(o),null===i||void 0===i||i(o)}})},DP=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(Be),{prefixCls:r,className:i}=e,l=t("input-group",r),c=t("input"),[s,u]=OP(c),d=a()(l,{[`${l}-lg`]:"large"===e.size,[`${l}-sm`]:"small"===e.size,[`${l}-compact`]:e.compact,[`${l}-rtl`]:"rtl"===n},u,i),f=(0,o.useContext)(em),p=(0,o.useMemo)((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);return s(o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(em.Provider,{value:p},e.children)))},LP=e=>{let t;return"object"===typeof e&&(null===e||void 0===e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r().createElement(_i,null)}),t};function AP(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,o.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var FP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const WP=(0,o.forwardRef)(((e,t)=>{var n;const{prefixCls:i,bordered:l=!0,status:c,size:s,disabled:u,onBlur:d,onFocus:f,suffix:p,allowClear:m,addonAfter:g,addonBefore:v,className:h,style:b,styles:y,rootClassName:C,onChange:x,classNames:$,variant:w}=e,S=FP(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:E,direction:k,input:O}=r().useContext(Be),I=E("input",i),N=(0,o.useRef)(null),j=bl(I),[P,R,z]=OP(I,j),{compactSize:T,compactItemClassnames:B}=_s(I,k),H=Bs((e=>{var t;return null!==(t=null!==s&&void 0!==s?s:T)&&void 0!==t?t:e})),D=r().useContext(Qc),L=null!==u&&void 0!==u?u:D,{status:A,hasFeedback:F,feedbackIcon:W}=(0,o.useContext)(em),_=wb(A,c),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!F;(0,o.useRef)(V);const q=AP(N,!0),K=(F||p)&&r().createElement(r().Fragment,null,p,F&&W),X=LP(null!==m&&void 0!==m?m:null===O||void 0===O?void 0:O.allowClear),[G,Y]=zb("input",w,l);return P(r().createElement(qj,Object.assign({ref:M(t,N),prefixCls:I,autoComplete:null===O||void 0===O?void 0:O.autoComplete},S,{disabled:L,onBlur:e=>{q(),null===d||void 0===d||d(e)},onFocus:e=>{q(),null===f||void 0===f||f(e)},style:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),b),styles:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.styles),y),suffix:K,allowClear:X,className:a()(h,C,z,j,B,null===O||void 0===O?void 0:O.className),onChange:e=>{q(),null===x||void 0===x||x(e)},addonBefore:v&&r().createElement(om,{form:!0,space:!0},v),addonAfter:g&&r().createElement(om,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},$),null===O||void 0===O?void 0:O.classNames),{input:a()({[`${I}-sm`]:"small"===H,[`${I}-lg`]:"large"===H,[`${I}-rtl`]:"rtl"===k},null===$||void 0===$?void 0:$.input,null===(n=null===O||void 0===O?void 0:O.classNames)||void 0===n?void 0:n.input,R),variant:a()({[`${I}-${G}`]:Y},$b(I,_)),affixWrapper:a()({[`${I}-affix-wrapper-sm`]:"small"===H,[`${I}-affix-wrapper-lg`]:"large"===H,[`${I}-affix-wrapper-rtl`]:"rtl"===k},R),wrapper:a()({[`${I}-group-rtl`]:"rtl"===k},R),groupWrapper:a()({[`${I}-group-wrapper-sm`]:"small"===H,[`${I}-group-wrapper-lg`]:"large"===H,[`${I}-group-wrapper-rtl`]:"rtl"===k,[`${I}-group-wrapper-${G}`]:Y},$b(`${I}-group-wrapper`,_,F),R)})})))}));const _P=WP,VP=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},qP=fi(["Input","OTP"],(e=>{const t=xo(e,Gk(e));return[VP(t)]}),Yk);var KP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XP=o.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:l}=e,c=KP(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"===typeof l?l:n,u=o.useRef(null);o.useImperativeHandle(t,(()=>u.current));const d=()=>{je((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(_P,Object.assign({type:!0===l?"password":"text"},c,{ref:u,value:s,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d}))})),GP=XP;var YP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function UP(e){return(e||"").split("")}const QP=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:l,value:c,onChange:s,formatter:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:v}=e,h=YP(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]);const{getPrefixCls:b,direction:y}=o.useContext(Be),C=b("otp",n),x=_a(h,{aria:!0,data:!0,attr:!0}),$=bl(C),[w,S,E]=qP(C,$),k=Bs((e=>null!==i&&void 0!==i?i:e)),O=o.useContext(em),I=wb(O.status,p),N=o.useMemo((()=>Object.assign(Object.assign({},O),{status:I,hasFeedback:!1,feedbackIcon:null})),[O,I]),M=o.useRef(null),j=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=j.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=j.current[t])||void 0===e||e.blur()},nativeElement:M.current})));const P=e=>u?u(e):e,[R,z]=o.useState(UP(P(l||"")));o.useEffect((()=>{void 0!==c&&z(UP(c))}),[c]);const T=ao((e=>{z(e),s&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&s(e.join(""))})),B=ao(((e,t)=>{let n=Se(R);for(let r=0;r<e;r+=1)n[r]||(n[r]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(UP(t)),n=n.slice(0,r);for(let r=n.length-1;r>=0&&!n[r];r-=1)n.pop();const o=P(n.map((e=>e||" ")).join(""));return n=UP(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),H=(e,t)=>{var n;const o=B(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=j.current[i])||void 0===n||n.focus()),T(o)},D=e=>{var t;null===(t=j.current[e])||void 0===t||t.focus()},L={variant:d,disabled:f,status:I,mask:g,type:v};return w(o.createElement("div",Object.assign({},x,{ref:M,className:a()(C,{[`${C}-sm`]:"small"===k,[`${C}-lg`]:"large"===k,[`${C}-rtl`]:"rtl"===y},E,S)}),o.createElement(em.Provider,{value:N},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=R[t]||"";return o.createElement(GP,Object.assign({ref:e=>{j.current[t]=e},key:n,index:t,size:k,htmlSize:1,className:`${C}-input`,onChange:H,value:r,onActiveChange:D,autoFocus:0===t&&m},L))})))))})),ZP=QP;const JP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const eR=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:JP}))}));const tR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const nR=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:tR}))}));var oR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rR=e=>e?o.createElement(nR,null):o.createElement(eR,null),iR={click:"onClick",hover:"onMouseOver"},aR=o.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:l=rR}=e,c=o.useContext(Qc),s=null!==n&&void 0!==n?n:c,u="object"===typeof i&&void 0!==i.visible,[d,f]=(0,o.useState)((()=>!!u&&i.visible)),p=(0,o.useRef)(null);o.useEffect((()=>{u&&f(i.visible)}),[u,i]);const m=AP(p),g=()=>{s||(d&&m(),f((e=>{var t;const n=!e;return"object"===typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:v,prefixCls:h,inputPrefixCls:b,size:y}=e,C=oR(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=o.useContext(Be),$=x("input",b),w=x("input-password",h),S=i&&(e=>{const t=iR[r]||"",n=l(d),i={[t]:g,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),i)})(w),E=a()(w,v,{[`${w}-${y}`]:!!y}),k=Object.assign(Object.assign({},Ce(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:$,suffix:S});return y&&(k.size=y),o.createElement(_P,Object.assign({ref:M(t,p)},k))}));const lR=aR;var cR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const sR=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:l,suffix:c,enterButton:s=!1,addonAfter:u,loading:d,disabled:f,onSearch:p,onChange:m,onCompositionStart:g,onCompositionEnd:v}=e,h=cR(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=o.useContext(Be),C=o.useRef(!1),x=b("input-search",n),$=b("input",r),{compactSize:w}=_s(x,y),S=Bs((e=>{var t;return null!==(t=null!==l&&void 0!==l?l:w)&&void 0!==t?t:e})),E=o.useRef(null),k=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;p&&p(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},I="boolean"===typeof s?o.createElement(Oy,null):null,N=`${x}-button`;let j;const P=s||{},R=P.type&&!0===P.type.__ANT_BUTTON;j=R||"button"===P.type?Ka(P,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null===P||void 0===P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},R?{className:N,size:S}:{})):o.createElement(Zd,{className:N,type:s?"primary":void 0,size:S,disabled:f,key:"enterButton",onMouseDown:k,onClick:O,loading:d,icon:I},s),u&&(j=[j,Ka(u,{key:"addonAfter"})]);const z=a()(x,{[`${x}-rtl`]:"rtl"===y,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!s},i);return o.createElement(_P,Object.assign({ref:M(E,t),onPressEnter:e=>{C.current||d||O(e)}},h,{size:S,onCompositionStart:e=>{C.current=!0,null===g||void 0===g||g(e)},onCompositionEnd:e=>{C.current=!1,null===v||void 0===v||v(e)},prefixCls:$,addonAfter:j,suffix:c,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null===m||void 0===m||m(e)},className:z,disabled:f}))}));const uR=sR;var dR,fR=["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"],pR={};function mR(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;dR||((dR=document.createElement("textarea")).setAttribute("tab-index","-1"),dR.setAttribute("aria-hidden","true"),dR.setAttribute("name","hiddenTextarea"),document.body.appendChild(dR)),e.getAttribute("wrap")?dR.setAttribute("wrap",e.getAttribute("wrap")):dR.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&pR[n])return pR[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l={sizingStyle:fR.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(pR[n]=l),l}(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,c=r.sizingStyle;dR.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),dR.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=dR.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==o){dR.value=" ";var p=dR.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var gR=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vR=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,c=n.value,s=n.autoSize,u=n.onResize,d=n.className,f=n.style,p=n.disabled,m=n.onChange,g=(n.onInternalAutoSize,Si(n,gR)),v=Ae(so(i,{value:c,postState:function(e){return null!==e&&void 0!==e?e:""}}),2),h=v[0],y=v[1],x=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:x.current}}));var w=Ae(o.useMemo((function(){return s&&"object"===b(s)?[s.minRows,s.maxRows]:[]}),[s]),2),S=w[0],E=w[1],k=!!s,O=Ae(o.useState(2),2),I=O[0],N=O[1],M=Ae(o.useState(),2),j=M[0],P=M[1],R=function(){N(0)};Rt((function(){k&&R()}),[c,S,E,k]),Rt((function(){if(0===I)N(1);else if(1===I){var e=mR(x.current,!1,S,E);N(2),P(e)}else!function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;x.current.setSelectionRange(t,n),x.current.scrollTop=o}}catch(sl){}}()}),[I]);var z=o.useRef(),T=function(){je.cancel(z.current)};o.useEffect((function(){return T}),[]);var B=k?j:null,H=$($({},f),B);return 0!==I&&1!==I||(H.overflowY="hidden",H.overflowX="hidden"),o.createElement(ye,{onResize:function(e){2===I&&(null===u||void 0===u||u(e),s&&(T(),z.current=je((function(){R()}))))},disabled:!(s||u)},o.createElement("textarea",l({},g,{ref:x,style:H,className:a()(r,d,C({},"".concat(r,"-disabled"),p)),disabled:p,value:h,onChange:function(e){y(e.target.value),null===m||void 0===m||m(e)}})))}));const hR=vR;var bR=["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"],yR=r().forwardRef((function(e,t){var n,i=e.defaultValue,c=e.value,s=e.onFocus,u=e.onBlur,d=e.onChange,f=e.allowClear,p=e.maxLength,m=e.onCompositionStart,g=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,b=void 0===h?"rc-textarea":h,y=e.showCount,x=e.count,w=e.className,S=e.style,E=e.disabled,k=e.hidden,O=e.classNames,I=e.styles,N=e.onResize,M=e.onClear,j=e.onPressEnter,P=e.readOnly,R=e.autoSize,z=e.onKeyDown,T=Si(e,bR),B=Ae(so(i,{value:c,defaultValue:i}),2),H=B[0],D=B[1],L=void 0===H||null===H?"":String(H),A=Ae(r().useState(!1),2),F=A[0],W=A[1],_=r().useRef(!1),V=Ae(r().useState(null),2),q=V[0],K=V[1],X=(0,o.useRef)(null),G=(0,o.useRef)(null),Y=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},U=function(){Y().focus()};(0,o.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:G.current,focus:U,blur:function(){Y().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||Y()}})),(0,o.useEffect)((function(){W((function(e){return!E&&e}))}),[E]);var Q=Ae(r().useState(null),2),Z=Q[0],J=Q[1];r().useEffect((function(){var e;Z&&(e=Y()).setSelectionRange.apply(e,Se(Z))}),[Z]);var ee,te=Wj(x,y),ne=null!==(n=te.max)&&void 0!==n?n:p,oe=Number(ne)>0,re=te.strategy(L),ie=!!ne&&re>ne,ae=function(e,t){var n=t;!_.current&&te.exceedFormatter&&te.max&&te.strategy(t)>te.max&&t!==(n=te.exceedFormatter(t,{max:te.max}))&&J([Y().selectionStart||0,Y().selectionEnd||0]),D(n),Hj(e.currentTarget,e,d,n)},le=v;te.show&&(ee=te.showFormatter?te.showFormatter({value:L,count:re,maxLength:ne}):"".concat(re).concat(oe?" / ".concat(ne):""),le=r().createElement(r().Fragment,null,le,r().createElement("span",{className:a()("".concat(b,"-data-count"),null===O||void 0===O?void 0:O.count),style:null===I||void 0===I?void 0:I.count},ee)));var ce=!R&&!y&&!f;return r().createElement(Aj,{ref:X,value:L,allowClear:f,handleReset:function(e){D(""),U(),Hj(Y(),e,d)},suffix:le,prefixCls:b,classNames:$($({},O),{},{affixWrapper:a()(null===O||void 0===O?void 0:O.affixWrapper,C(C({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),f))}),disabled:E,focused:F,className:a()(w,ie&&"".concat(b,"-out-of-range")),style:$($({},S),q&&!ce?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof ee?ee:void 0}},hidden:k,readOnly:P,onClear:M},r().createElement(hR,l({},T,{autoSize:R,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&j&&j(e),null===z||void 0===z||z(e)},onChange:function(e){ae(e,e.target.value)},onFocus:function(e){W(!0),null===s||void 0===s||s(e)},onBlur:function(e){W(!1),null===u||void 0===u||u(e)},onCompositionStart:function(e){_.current=!0,null===m||void 0===m||m(e)},onCompositionEnd:function(e){_.current=!1,ae(e,e.currentTarget.value),null===g||void 0===g||g(e)},className:a()(null===O||void 0===O?void 0:O.textarea),style:$($({},null===I||void 0===I?void 0:I.textarea),{},{resize:null===S||void 0===S?void 0:S.resize}),disabled:E,prefixCls:b,onResize:function(e){var t;null===N||void 0===N||N(e),null!==(t=Y())&&void 0!==t&&t.style.height&&K(!0)},ref:G,readOnly:P})))}));const CR=yR;var xR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const $R=(0,o.forwardRef)(((e,t)=>{var n,r;const{prefixCls:i,bordered:l=!0,size:c,disabled:s,status:u,allowClear:d,classNames:f,rootClassName:p,className:m,style:g,styles:v,variant:h}=e,b=xR(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:y,direction:C,textArea:x}=o.useContext(Be),$=Bs(c),w=o.useContext(Qc),S=null!==s&&void 0!==s?s:w,{status:E,hasFeedback:k,feedbackIcon:O}=o.useContext(em),I=wb(E,u),N=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const M=y("input",i),j=bl(M),[P,R,z]=OP(M,j),[T,B]=zb("textArea",h,l),H=LP(null!==d&&void 0!==d?d:null===x||void 0===x?void 0:x.allowClear);return P(o.createElement(CR,Object.assign({autoComplete:null===x||void 0===x?void 0:x.autoComplete},b,{style:Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),g),styles:Object.assign(Object.assign({},null===x||void 0===x?void 0:x.styles),v),disabled:S,allowClear:H,className:a()(z,j,m,p,null===x||void 0===x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},f),null===x||void 0===x?void 0:x.classNames),{textarea:a()({[`${M}-sm`]:"small"===$,[`${M}-lg`]:"large"===$},R,null===f||void 0===f?void 0:f.textarea,null===(n=null===x||void 0===x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:a()({[`${M}-${T}`]:B},$b(M,I)),affixWrapper:a()(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:"rtl"===C,[`${M}-affix-wrapper-sm`]:"small"===$,[`${M}-affix-wrapper-lg`]:"large"===$,[`${M}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},R)}),prefixCls:M,suffix:k&&o.createElement("span",{className:`${M}-textarea-suffix`},O),ref:N})))})),wR=$R,SR=_P;SR.Group=DP,SR.Search=uR,SR.TextArea=wR,SR.Password=lR,SR.OTP=ZP;const ER=SR,kR=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,OR=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-hex-input`,[l,c]=(0,o.useState)((()=>n?Tu(n.toHexString()):void 0));(0,o.useEffect)((()=>{n&&c(Tu(n.toHexString()))}),[n]);return r().createElement(ER,{className:a,value:l,prefix:"#",onChange:e=>{const t=e.target.value;var n;c(Tu(t)),n=Tu(t,!0),kR.test(`#${n}`)&&(null===i||void 0===i||i(id(t)))},size:"small"})},IR=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-hsb-input`,[l,c]=(0,o.useState)(id(n||"#000"));(0,o.useEffect)((()=>{n&&c(n)}),[n]);const s=(e,t)=>{const o=l.toHsb();o[t]="h"===t?e:(e||0)/100;const r=id(o);n||c(r),null===i||void 0===i||i(r)};return r().createElement("div",{className:a},r().createElement(BP,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:t,className:a,formatter:e=>ad(e||0).toString(),onChange:e=>s(Number(e),"h")}),r().createElement(BP,{max:100,min:0,value:100*Number(l.toHsb().s),prefixCls:t,className:a,formatter:e=>`${ad(e||0)}%`,onChange:e=>s(Number(e),"s")}),r().createElement(BP,{max:100,min:0,value:100*Number(l.toHsb().b),prefixCls:t,className:a,formatter:e=>`${ad(e||0)}%`,onChange:e=>s(Number(e),"b")}))},NR=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-rgb-input`,[l,c]=(0,o.useState)(id(n||"#000"));(0,o.useEffect)((()=>{n&&c(n)}),[n]);const s=(e,t)=>{const o=l.toRgb();o[t]=e||0;const r=id(o);n||c(r),null===i||void 0===i||i(r)};return r().createElement("div",{className:a},r().createElement(BP,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:t,className:a,onChange:e=>s(Number(e),"r")}),r().createElement(BP,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:t,className:a,onChange:e=>s(Number(e),"g")}),r().createElement(BP,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:t,className:a,onChange:e=>s(Number(e),"b")}))},MR=[xj.hex,xj.hsb,xj.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()}))),jR=e=>{const{prefixCls:t,format:n,value:i,disabledAlpha:a,onFormatChange:l,onChange:c}=e,[s,u]=so(xj.hex,{value:n,onChange:l}),d=`${t}-input`,f=(0,o.useMemo)((()=>{const e={value:i,prefixCls:t,onChange:c};switch(s){case xj.hsb:return r().createElement(IR,Object.assign({},e));case xj.rgb:return r().createElement(NR,Object.assign({},e));default:return r().createElement(OR,Object.assign({},e))}}),[s,t,i,c]);return r().createElement("div",{className:`${d}-container`},r().createElement(zy,{value:s,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{u(e)},className:`${t}-format-select`,size:"small",options:MR}),r().createElement("div",{className:d},f),!a&&r().createElement(HP,{prefixCls:t,value:i,onChange:c}))};function PR(e,t,n){return(e-t)/(n-t)}function RR(e,t,n,o){var r=PR(t,n,o),i={};switch(e){case"rtl":i.right="".concat(100*r,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*r,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*r,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*r,"%"),i.transform="translateX(-50%)"}return i}function zR(e,t){return Array.isArray(e)?e[t]:e}const TR=o.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var BR=o.createContext({}),HR=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],DR=o.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.value,c=e.valueIndex,s=e.onStartMove,u=e.onDelete,d=e.style,f=e.render,p=e.dragging,m=e.draggingDelete,g=e.onOffsetChange,v=e.onChangeComplete,h=e.onFocus,b=e.onMouseEnter,y=Si(e,HR),x=o.useContext(TR),w=x.min,S=x.max,E=x.direction,k=x.disabled,O=x.keyboard,I=x.range,N=x.tabIndex,M=x.ariaLabelForHandle,j=x.ariaLabelledByForHandle,P=x.ariaValueTextFormatterForHandle,R=x.styles,z=x.classNames,T="".concat(r,"-handle"),B=function(e){k||s(e,c)},H=RR(E,i,w,S),D={};null!==c&&(D={tabIndex:k?null:zR(N,c),role:"slider","aria-valuemin":w,"aria-valuemax":S,"aria-valuenow":i,"aria-disabled":k,"aria-label":zR(M,c),"aria-labelledby":zR(j,c),"aria-valuetext":null===(n=zR(P,c))||void 0===n?void 0:n(i),"aria-orientation":"ltr"===E||"rtl"===E?"horizontal":"vertical",onMouseDown:B,onTouchStart:B,onFocus:function(e){null===h||void 0===h||h(e,c)},onMouseEnter:function(e){b(e,c)},onKeyDown:function(e){if(!k&&O){var t=null;switch(e.which||e.keyCode){case zl.LEFT:t="ltr"===E||"btt"===E?-1:1;break;case zl.RIGHT:t="ltr"===E||"btt"===E?1:-1;break;case zl.UP:t="ttb"!==E?1:-1;break;case zl.DOWN:t="ttb"!==E?-1:1;break;case zl.HOME:t="min";break;case zl.END:t="max";break;case zl.PAGE_UP:t=2;break;case zl.PAGE_DOWN:t=-2;break;case zl.BACKSPACE:case zl.DELETE:u(c)}null!==t&&(e.preventDefault(),g(t,c))}},onKeyUp:function(e){switch(e.which||e.keyCode){case zl.LEFT:case zl.RIGHT:case zl.UP:case zl.DOWN:case zl.HOME:case zl.END:case zl.PAGE_UP:case zl.PAGE_DOWN:null===v||void 0===v||v()}}});var L=o.createElement("div",l({ref:t,className:a()(T,C(C(C({},"".concat(T,"-").concat(c+1),null!==c&&I),"".concat(T,"-dragging"),p),"".concat(T,"-dragging-delete"),m),z.handle),style:$($($({},H),d),R.handle)},D,y));return f&&(L=f(L,{index:c,prefixCls:r,value:i,dragging:p,draggingDelete:m})),L}));const LR=DR;var AR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],FR=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,c=e.values,s=e.handleRender,u=e.activeHandleRender,d=e.draggingIndex,f=e.draggingDelete,p=e.onFocus,m=Si(e,AR),g=o.useRef({}),v=Ae(o.useState(!1),2),h=v[0],b=v[1],y=Ae(o.useState(-1),2),C=y[0],x=y[1],S=function(e){x(e),b(!0)};o.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=g.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,w.flushSync)((function(){b(!1)}))}}}));var E=$({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:function(e,t){S(t),null===p||void 0===p||p(e)},onMouseEnter:function(e,t){S(t)}},m);return o.createElement(o.Fragment,null,c.map((function(e,t){var n=d===t;return o.createElement(LR,l({ref:function(e){e?g.current[t]=e:delete g.current[t]},dragging:n,draggingDelete:n&&f,style:zR(r,t),key:t,value:e,valueIndex:t},E))})),u&&h&&o.createElement(LR,l({key:"a11y"},E,{value:c[C],valueIndex:null,dragging:-1!==d,draggingDelete:f,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}));const WR=FR;const _R=function(e){var t=e.prefixCls,n=e.style,r=e.children,i=e.value,l=e.onClick,c=o.useContext(TR),s=c.min,u=c.max,d=c.direction,f=c.includedStart,p=c.includedEnd,m=c.included,g="".concat(t,"-text"),v=RR(d,i,s,u);return o.createElement("span",{className:a()(g,C({},"".concat(g,"-active"),m&&f<=i&&i<=p)),style:$($({},v),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){l(i)}},r)};const VR=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,i="".concat(t,"-mark");return n.length?o.createElement("div",{className:i},n.map((function(e){var t=e.value,n=e.style,a=e.label;return o.createElement(_R,{key:t,prefixCls:i,style:n,value:t,onClick:r},a)}))):null};const qR=function(e){var t=e.prefixCls,n=e.value,r=e.style,i=e.activeStyle,l=o.useContext(TR),c=l.min,s=l.max,u=l.direction,d=l.included,f=l.includedStart,p=l.includedEnd,m="".concat(t,"-dot"),g=d&&f<=n&&n<=p,v=$($({},RR(u,n,c,s)),"function"===typeof r?r(n):r);return g&&(v=$($({},v),"function"===typeof i?i(n):i)),o.createElement("span",{className:a()(m,C({},"".concat(m,"-active"),g)),style:v})};const KR=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,i=e.style,a=e.activeStyle,l=o.useContext(TR),c=l.min,s=l.max,u=l.step,d=o.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)}),[c,s,u,r,n]);return o.createElement("div",{className:"".concat(t,"-step")},d.map((function(e){return o.createElement(qR,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})})))};const XR=function(e){var t=e.prefixCls,n=e.style,r=e.start,i=e.end,l=e.index,c=e.onStartMove,s=e.replaceCls,u=o.useContext(TR),d=u.direction,f=u.min,p=u.max,m=u.disabled,g=u.range,v=u.classNames,h="".concat(t,"-track"),b=PR(r,f,p),y=PR(i,f,p),x=function(e){!m&&c&&c(e,-1)},w={};switch(d){case"rtl":w.right="".concat(100*b,"%"),w.width="".concat(100*y-100*b,"%");break;case"btt":w.bottom="".concat(100*b,"%"),w.height="".concat(100*y-100*b,"%");break;case"ttb":w.top="".concat(100*b,"%"),w.height="".concat(100*y-100*b,"%");break;default:w.left="".concat(100*b,"%"),w.width="".concat(100*y-100*b,"%")}var S=s||a()(h,C(C({},"".concat(h,"-").concat(l+1),null!==l&&g),"".concat(t,"-track-draggable"),c),v.track);return o.createElement("div",{className:S,style:$($({},w),n),onMouseDown:x,onTouchStart:x})};const GR=function(e){var t=e.prefixCls,n=e.style,r=e.values,i=e.startPoint,l=e.onStartMove,c=o.useContext(TR),s=c.included,u=c.range,d=c.min,f=c.styles,p=c.classNames,m=o.useMemo((function(){if(!u){if(0===r.length)return[];var e=null!==i&&void 0!==i?i:d,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],o=0;o<r.length-1;o+=1)n.push({start:r[o],end:r[o+1]});return n}),[r,u,i,d]);if(!s)return null;var g=p.tracks||f.tracks?o.createElement(XR,{index:null,prefixCls:t,start:m[0].start,end:m[m.length-1].end,replaceCls:a()(p.tracks,"".concat(t,"-tracks")),style:f.tracks}):null;return o.createElement(o.Fragment,null,g,m.map((function(e,r){var i=e.start,a=e.end;return o.createElement(XR,{index:r,prefixCls:t,style:$($({},zR(n,r)),f.track),start:i,end:a,key:r,onStartMove:l})})))};function YR(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const UR=function(e,t,n,r,i,a,l,c,s,u,d){var f=Ae(o.useState(null),2),p=f[0],m=f[1],g=Ae(o.useState(-1),2),v=g[0],h=g[1],b=Ae(o.useState(!1),2),y=b[0],C=b[1],x=Ae(o.useState(n),2),$=x[0],w=x[1],S=Ae(o.useState(n),2),E=S[0],k=S[1],O=o.useRef(null),I=o.useRef(null),N=o.useRef(null),M=o.useContext(BR),j=M.onDragStart,P=M.onDragChange;Rt((function(){-1===v&&w(n)}),[n,v]),o.useEffect((function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",I.current),N.current&&(N.current.removeEventListener("touchmove",O.current),N.current.removeEventListener("touchend",I.current))}}),[]);var R=function(e,t,n){void 0!==t&&m(t),w(e);var o=e;n&&(o=e.filter((function(e,t){return t!==v}))),l(o),P&&P({rawValues:e,deleteIndex:n?v:-1,draggingIndex:v,draggingValue:t})},z=ao((function(e,t,n){if(-1===e){var o=E[0],l=E[E.length-1],c=r-o,u=i-l,d=t*(i-r);d=Math.max(d,c),d=Math.min(d,u);var f=a(o+d);d=f-o;var p=E.map((function(e){return e+d}));R(p)}else{var m=(i-r)*t,g=Se($);g[e]=E[e];var v=s(g,m,e,"dist");R(v.values,v.value,n)}})),T=o.useMemo((function(){var e=Se(n).sort((function(e,t){return e-t})),t=Se($).sort((function(e,t){return e-t})),o={};t.forEach((function(e){o[e]=(o[e]||0)+1})),e.forEach((function(e){o[e]=(o[e]||0)-1}));var r=u?1:0,i=Object.values(o).reduce((function(e,t){return e+Math.abs(t)}),0);return i<=r?$:n}),[n,$,u]);return[v,p,y,T,function(o,r,i){o.stopPropagation();var a=i||n,l=a[r];h(r),m(l),k(a),w(a),C(!1);var s=YR(o),f=s.pageX,p=s.pageY,g=!1;j&&j({rawValues:a,draggingIndex:r,draggingValue:l});var v=function(n){n.preventDefault();var o,i,a=YR(n),l=a.pageX,c=a.pageY,s=l-f,m=c-p,v=e.current.getBoundingClientRect(),h=v.width,b=v.height;switch(t){case"btt":o=-m/b,i=s;break;case"ttb":o=m/b,i=s;break;case"rtl":o=-s/h,i=m;break;default:o=s/h,i=m}g=!!u&&(Math.abs(i)>130&&d<$.length),C(g),z(r,o,g)},b=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",v),N.current&&(N.current.removeEventListener("touchmove",O.current),N.current.removeEventListener("touchend",I.current)),O.current=null,I.current=null,N.current=null,c(g),h(-1),C(!1)};document.addEventListener("mouseup",b),document.addEventListener("mousemove",v),o.currentTarget.addEventListener("touchend",b),o.currentTarget.addEventListener("touchmove",v),O.current=v,I.current=b,N.current=o.currentTarget}]};var QR=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-slider":n,i=e.className,l=e.style,c=e.classNames,s=e.styles,u=e.id,d=e.disabled,f=void 0!==d&&d,p=e.keyboard,m=void 0===p||p,g=e.autoFocus,v=e.onFocus,y=e.onBlur,x=e.min,w=void 0===x?0:x,S=e.max,E=void 0===S?100:S,k=e.step,O=void 0===k?1:k,I=e.value,N=e.defaultValue,M=e.range,j=e.count,P=e.onChange,R=e.onBeforeChange,z=e.onAfterChange,T=e.onChangeComplete,B=e.allowCross,H=void 0===B||B,D=e.pushable,L=void 0!==D&&D,A=e.reverse,F=e.vertical,W=e.included,_=void 0===W||W,V=e.startPoint,q=e.trackStyle,K=e.handleStyle,X=e.railStyle,G=e.dotStyle,Y=e.activeDotStyle,U=e.marks,Q=e.dots,Z=e.handleRender,J=e.activeHandleRender,ee=e.track,te=e.tabIndex,ne=void 0===te?0:te,oe=e.ariaLabelForHandle,re=e.ariaLabelledByForHandle,ie=e.ariaValueTextFormatterForHandle,ae=o.useRef(null),le=o.useRef(null),ce=o.useMemo((function(){return F?A?"ttb":"btt":A?"rtl":"ltr"}),[A,F]),se=function(e){return(0,o.useMemo)((function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack;return[!0,t,!t&&n,e.minCount||0,e.maxCount]}),[e])}(M),ue=Ae(se,5),de=ue[0],fe=ue[1],pe=ue[2],me=ue[3],ge=ue[4],ve=o.useMemo((function(){return isFinite(w)?w:0}),[w]),he=o.useMemo((function(){return isFinite(E)?E:100}),[E]),be=o.useMemo((function(){return null!==O&&O<=0?1:O}),[O]),ye=o.useMemo((function(){return"boolean"===typeof L?!!L&&be:L>=0&&L}),[L,be]),Ce=o.useMemo((function(){return Object.keys(U||{}).map((function(e){var t=U[e],n={value:Number(e)};return t&&"object"===b(t)&&!o.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"===typeof t})).sort((function(e,t){return e.value-t.value}))}),[U]),xe=function(e,t,n,r,i,a){var l=o.useCallback((function(n){return Math.max(e,Math.min(t,n))}),[e,t]),c=o.useCallback((function(o){if(null!==n){var r=e+Math.round((l(o)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(n),i(t),i(e)),c=Number(r.toFixed(a));return e<=c&&c<=t?c:null}return null}),[n,e,t,l]),s=o.useCallback((function(o){var i=l(o),a=r.map((function(e){return e.value}));null!==n&&a.push(c(o)),a.push(e,t);var s=a[0],u=t-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)})),s}),[e,t,r,n,l,c]),u=function o(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof a){var u,d=i[l],f=d+a,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(c(d));var m=a>0?1:-1;"unit"===s?p.push(c(d+m*n)):p.push(c(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===s&&(p=p.filter((function(e){return e!==d})));var g="unit"===s?d:f;u=p[0];var v=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t<v&&(u=e,v=t)})),void 0===u)return a<0?e:t;if("dist"===s)return u;if(Math.abs(a)>1){var h=Se(i);return h[l]=u,o(h,a-m,l,s)}return u}return"min"===a?e:"max"===a?t:void 0},d=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e[n],i=u(e,t,n,o);return{value:i,changed:i!==r}},f=function(e){return null===a&&0===e||"number"===typeof a&&e<a};return[s,function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e.map(s),l=r[n],c=u(r,t,n,o);if(r[n]=c,!1===i){var p=a||0;n>0&&r[n-1]!==l&&(r[n]=Math.max(r[n],r[n-1]+p)),n<r.length-1&&r[n+1]!==l&&(r[n]=Math.min(r[n],r[n+1]-p))}else if("number"===typeof a||null===a){for(var m=n+1;m<r.length;m+=1)for(var g=!0;f(r[m]-r[m-1])&&g;){var v=d(r,1,m);r[m]=v.value,g=v.changed}for(var h=n;h>0;h-=1)for(var b=!0;f(r[h]-r[h-1])&&b;){var y=d(r,-1,h-1);r[h-1]=y.value,b=y.changed}for(var C=r.length-1;C>0;C-=1)for(var x=!0;f(r[C]-r[C-1])&&x;){var $=d(r,-1,C-1);r[C-1]=$.value,x=$.changed}for(var w=0;w<r.length-1;w+=1)for(var S=!0;f(r[w+1]-r[w])&&S;){var E=d(r,1,w+1);r[w+1]=E.value,S=E.changed}}return{value:r[n],values:r}}]}(ve,he,be,Ce,H,ye),$e=Ae(xe,2),we=$e[0],Ee=$e[1],ke=Ae(so(N,{value:I}),2),Oe=ke[0],Ie=ke[1],Ne=o.useMemo((function(){var e=null===Oe||void 0===Oe?[]:Array.isArray(Oe)?Oe:[Oe],t=Ae(e,1)[0],n=null===Oe?[]:[void 0===t?ve:t];if(de){if(n=Se(e),j||void 0===Oe){var o=j>=0?j+1:2;for(n=n.slice(0,o);n.length<o;){var r;n.push(null!==(r=n[n.length-1])&&void 0!==r?r:ve)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=we(e)})),n}),[Oe,de,ve,j,we]),Me=function(e){return de?e:e[0]},je=ao((function(e){var t=Se(e).sort((function(e,t){return e-t}));P&&!et(t,Ne,!0)&&P(Me(t)),Ie(t)})),Pe=ao((function(e){e&&ae.current.hideHelp();var t=Me(Ne);null===z||void 0===z||z(t),h(!z,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null===T||void 0===T||T(t)})),Re=Ae(UR(le,ce,Ne,ve,he,we,je,Pe,Ee,fe,me),5),ze=Re[0],Te=Re[1],Be=Re[2],He=Re[3],De=Re[4],Le=function(e,t){if(!f){var n=Se(Ne),o=0,r=0,i=he-ve;Ne.forEach((function(t,n){var a=Math.abs(e-t);a<=i&&(i=a,o=n),t<e&&(r=n)}));var a=o;fe&&0!==i&&(!ge||Ne.length<ge)?(n.splice(r+1,0,e),a=r+1):n[o]=e,de&&!Ne.length&&void 0===j&&n.push(e);var l,c,s=Me(n);if(null===R||void 0===R||R(s),je(n),t)null===(l=document.activeElement)||void 0===l||null===(c=l.blur)||void 0===c||c.call(l),ae.current.focus(a),De(t,a,n);else null===z||void 0===z||z(s),h(!z,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null===T||void 0===T||T(s)}},Fe=Ae(o.useState(null),2),We=Fe[0],_e=Fe[1];o.useEffect((function(){if(null!==We){var e=Ne.indexOf(We);e>=0&&ae.current.focus(e)}_e(null)}),[We]);var Ve=o.useMemo((function(){return(!pe||null!==be)&&pe}),[pe,be]),qe=ao((function(e,t){De(e,t),null===R||void 0===R||R(Me(Ne))})),Ke=-1!==ze;o.useEffect((function(){if(!Ke){var e=Ne.lastIndexOf(Te);ae.current.focus(e)}}),[Ke]);var Xe=o.useMemo((function(){return Se(He).sort((function(e,t){return e-t}))}),[He]),Ge=Ae(o.useMemo((function(){return de?[Xe[0],Xe[Xe.length-1]]:[ve,Xe[0]]}),[Xe,de,ve]),2),Ye=Ge[0],Ue=Ge[1];o.useImperativeHandle(t,(function(){return{focus:function(){ae.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=le.current)&&void 0!==e&&e.contains(t)&&(null===t||void 0===t||t.blur())}}})),o.useEffect((function(){g&&ae.current.focus(0)}),[]);var Qe=o.useMemo((function(){return{min:ve,max:he,direction:ce,disabled:f,keyboard:m,step:be,included:_,includedStart:Ye,includedEnd:Ue,range:de,tabIndex:ne,ariaLabelForHandle:oe,ariaLabelledByForHandle:re,ariaValueTextFormatterForHandle:ie,styles:s||{},classNames:c||{}}}),[ve,he,ce,f,m,be,_,Ye,Ue,de,ne,oe,re,ie,s,c]);return o.createElement(TR.Provider,{value:Qe},o.createElement("div",{ref:le,className:a()(r,i,C(C(C(C({},"".concat(r,"-disabled"),f),"".concat(r,"-vertical"),F),"".concat(r,"-horizontal"),!F),"".concat(r,"-with-marks"),Ce.length)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=le.current.getBoundingClientRect(),o=n.width,r=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(ce){case"btt":t=(l-u)/r;break;case"ttb":t=(u-a)/r;break;case"rtl":t=(c-s)/o;break;default:t=(s-i)/o}Le(we(ve+t*(he-ve)),e)},id:u},o.createElement("div",{className:a()("".concat(r,"-rail"),null===c||void 0===c?void 0:c.rail),style:$($({},X),null===s||void 0===s?void 0:s.rail)}),!1!==ee&&o.createElement(GR,{prefixCls:r,style:q,values:Ne,startPoint:V,onStartMove:Ve?qe:void 0}),o.createElement(KR,{prefixCls:r,marks:Ce,dots:Q,style:G,activeStyle:Y}),o.createElement(WR,{ref:ae,prefixCls:r,style:K,values:He,draggingIndex:ze,draggingDelete:Be,onStartMove:qe,onOffsetChange:function(e,t){if(!f){var n=Ee(Ne,e,t);null===R||void 0===R||R(Me(Ne)),je(n.values),_e(n.value)}},onFocus:v,onBlur:y,handleRender:Z,activeHandleRender:J,onChangeComplete:Pe,onDelete:fe?function(e){if(!(f||!fe||Ne.length<=me)){var t=Se(Ne);t.splice(e,1),null===R||void 0===R||R(Me(t)),je(t);var n=Math.max(0,e-1);ae.current.hideHelp(),ae.current.focus(n)}}:void 0}),o.createElement(VR,{prefixCls:r,marks:Ce,onClick:Le})))}));const ZR=QR;const JR=o.forwardRef(((e,t)=>{const{open:n,draggingDelete:r}=e,i=(0,o.useRef)(null),a=n&&!r,l=(0,o.useRef)(null);function c(){je.cancel(l.current),l.current=null}return o.useEffect((()=>(a?l.current=je((()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),l.current=null})):c(),c)),[a,e.title]),o.createElement(NC,Object.assign({ref:M(i,t)},e,{open:a}))})),ez=e=>{const{componentCls:t,antCls:n,controlSize:o,dotSize:r,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative",height:o,margin:`${Et(a)} ${Et(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Et(i)} ${Et(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Et(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(m).mul(-1).equal(),insetBlockStart:s(m).mul(-1).equal(),width:s(u).add(s(m).mul(2)).equal(),height:s(u).add(s(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Et(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${v},\n inset-block-start ${v},\n width ${v},\n height ${v},\n box-shadow ${v},\n outline ${v}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),width:s(d).add(s(g).mul(2)).equal(),height:s(d).add(s(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Et(g)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${Et(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Et(m)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},tz=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=l(o).mul(3).sub(r).div(2).equal(),m=l(r).sub(o).div(2).equal(),g=t?{borderWidth:`${Et(m)} 0`,transform:`translateY(${Et(l(m).mul(-1).equal())})`}:{borderWidth:`0 ${Et(m)}`,transform:`translateX(${Et(e.calc(m).mul(-1).equal())})`};return{[c]:o,[u]:l(o).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:o},[`${n}-track,${n}-tracks`]:{[u]:o},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:l(o).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:o,[s]:"100%",[u]:o},[`${n}-dot`]:{position:"absolute",[d]:l(o).sub(i).div(2).equal()}}},nz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},tz(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},oz=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},tz(e,!1)),{height:"100%"})}},rz=fi("Slider",(e=>{const t=xo(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[ez(t),nz(t),oz(t)]}),(e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,r=e.lineWidth+1.5,i=e.colorPrimary,a=new Fr(i).setAlpha(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:r,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Fr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}})),iz=(0,o.createContext)({});function az(){const[e,t]=o.useState(!1),n=o.useRef(),r=()=>{je.cancel(n.current)};return o.useEffect((()=>r),[]),[e,e=>{r(),e?t(e):n.current=je((()=>{t(e)}))}]}var lz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cz=r().forwardRef(((e,t)=>{const{prefixCls:n,range:o,className:i,rootClassName:l,style:c,disabled:s,tooltipPrefixCls:u,tipFormatter:d,tooltipVisible:f,getTooltipPopupContainer:p,tooltipPlacement:m,tooltip:g={},onChangeComplete:v}=e,h=lz(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:y,slider:C,getPrefixCls:x,getPopupContainer:$}=r().useContext(Be),w=r().useContext(Qc),S=null!==s&&void 0!==s?s:w,{handleRender:E,direction:k}=r().useContext(iz),O="rtl"===(k||y),[I,N]=az(),[M,j]=az(),P=Object.assign({},g),{open:R,placement:z,getPopupContainer:T,prefixCls:B,formatter:H}=P,D=null!==R&&void 0!==R?R:f,L=(I||M)&&!1!==D,A=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"===typeof e?e.toString():""}(H,d),[F,W]=az(),_=(e,t)=>e||(t?O?"left":"right":"top"),V=x("slider",n),[q,K,X]=rz(V),G=a()(i,null===C||void 0===C?void 0:C.className,l,{[`${V}-rtl`]:O,[`${V}-lock`]:F},K,X);O&&!h.vertical&&(h.reverse=!h.reverse),r().useEffect((()=>{const e=()=>{je((()=>{j(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const Y=o&&!D,U=E||((e,t)=>{const{index:n}=t,o=e.props;function i(e,t,n){var r,i,a,l;n&&(null===(i=(r=h)[e])||void 0===i||i.call(r,t)),null===(l=(a=o)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},o),{onMouseEnter:e=>{N(!0),i("onMouseEnter",e)},onMouseLeave:e=>{N(!1),i("onMouseLeave",e)},onMouseDown:e=>{j(!0),W(!0),i("onMouseDown",e)},onFocus:e=>{var t;j(!0),null===(t=h.onFocus)||void 0===t||t.call(h,e),i("onFocus",e,!0)},onBlur:e=>{var t;j(!1),null===(t=h.onBlur)||void 0===t||t.call(h,e),i("onBlur",e,!0)}}),l=r().cloneElement(e,a),c=(!!D||L)&&null!==A;return Y?l:r().createElement(JR,Object.assign({},P,{prefixCls:x("tooltip",null!==B&&void 0!==B?B:u),title:A?A(t.value):"",open:c,placement:_(null!==z&&void 0!==z?z:m,b),key:n,overlayClassName:`${V}-tooltip`,getPopupContainer:T||p||$}),l)}),Q=Y?(e,t)=>{const n=r().cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return r().createElement(JR,Object.assign({},P,{prefixCls:x("tooltip",null!==B&&void 0!==B?B:u),title:A?A(t.value):"",open:null!==A&&L,placement:_(null!==z&&void 0!==z?z:m,b),key:"tooltip",overlayClassName:`${V}-tooltip`,getPopupContainer:T||p||$,draggingDelete:t.draggingDelete}),n)}:void 0,Z=Object.assign(Object.assign({},null===C||void 0===C?void 0:C.style),c);return q(r().createElement(ZR,Object.assign({},h,{step:h.step,range:o,className:G,style:Z,disabled:S,ref:t,prefixCls:V,handleRender:U,activeHandleRender:Q,onChangeComplete:e=>{null===v||void 0===v||v(e),W(!1)}})))}));const sz=cz;var uz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const dz=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:l=!1,className:c,activeIndex:s,onActive:u,onDragStart:d,onDragChange:f,onKeyDelete:p}=e,m=uz(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),v=o.useMemo((()=>`linear-gradient(90deg, ${n.map((e=>`${e.color} ${e.percent}%`)).join(", ")})`),[n]),h=o.useMemo((()=>i&&r?"alpha"===r?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null),[i,r]),b=ao(d),y=ao(f),C=o.useMemo((()=>({onDragStart:b,onDragChange:y})),[]),x=ao(((e,i)=>{const{onFocus:l,style:c,className:d,onKeyDown:f}=e.props,m=Object.assign({},c);return"gradient"===r&&(m.background=sd(n,i.value)),o.cloneElement(e,{onFocus:e=>{null===u||void 0===u||u(i.index),null===l||void 0===l||l(e)},style:m,className:a()(d,{[`${t}-slider-handle-active`]:s===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!p||p(i.index),null===f||void 0===f||f(e)}})})),$=o.useMemo((()=>({direction:"ltr",handleRender:x})),[]);return o.createElement(iz.Provider,{value:$},o.createElement(BR.Provider,{value:C},o.createElement(sz,Object.assign({},g,{className:a()(c,`${t}-slider`),tooltip:{open:!1},range:{editable:l,minCount:2},styles:{rail:{background:v},handle:h?{background:h}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},fz=e=>{const{value:t,onChange:n,onChangeComplete:r}=e;return o.createElement(dz,Object.assign({},e,{value:[t],onChange:e=>n(e[0]),onChangeComplete:e=>r(e[0])}))};function pz(e){return Se(e).sort(((e,t)=>e.percent-t.percent))}const mz=o.memo((e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===n,d=o.useMemo((()=>s.map((e=>({percent:e.percent,color:e.color.toRgbString()})))),[s]),f=o.useMemo((()=>d.map((e=>e.percent))),[d]),p=o.useRef(d);return u?o.createElement(dz,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:e=>{i(new Bu(d)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:o}=e;if(t.length>d.length){const e=sd(d,o),t=Se(d);t.splice(n,0,{percent:o,color:e}),p.current=t}else p.current=d;c(!0),r(new Bu(pz(p.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:o}=e,i=Se(p.current);-1!==t?i.splice(t,1):(i[n]=Object.assign(Object.assign({},i[n]),{percent:o}),i=pz(i)),r(new Bu(i),!0)},onKeyDelete:e=>{const t=Se(d);t.splice(e,1);const n=new Bu(t);r(n),i(n)}}):null}));var gz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vz={slider:fz},hz=()=>{const e=(0,o.useContext)(bj),{mode:t,onModeChange:n,modeOptions:i,prefixCls:a,allowClear:l,value:c,disabledAlpha:s,onChange:u,onClear:d,onChangeComplete:f,activeIndex:p,gradientDragging:m}=e,g=gz(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),v=r().useMemo((()=>c.cleared?[{percent:0,color:new Bu("")},{percent:100,color:new Bu("")}]:c.getColors()),[c]),h=!c.isGradient(),[b,y]=r().useState(c);Rt((()=>{var e;h||y(null===(e=v[p])||void 0===e?void 0:e.color)}),[m,p]);const C=r().useMemo((()=>{var e;return h?c:m?b:null===(e=v[p])||void 0===e?void 0:e.color}),[c,p,h,b,m]),[x,$]=r().useState(C),[w,S]=r().useState(0),E=(null===x||void 0===x?void 0:x.equals(C))?C:x;Rt((()=>{$(C)}),[w,null===C||void 0===C?void 0:C.toHexString()]);const k=(e,n)=>{let o=id(e);if(c.cleared){const e=o.toRgb();if(e.r||e.g||e.b||!n)o=cd(o);else{const{type:e,value:t=0}=n;o=new Bu({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return o;const r=Se(v);return r[p]=Object.assign(Object.assign({},r[p]),{color:o}),new Bu(r)};let O=null;const I=i.length>1;return(l||I)&&(O=r().createElement("div",{className:`${a}-operation`},I&&r().createElement(hj,{size:"small",options:i,value:t,onChange:n}),r().createElement(Cj,Object.assign({prefixCls:a,value:c,onChange:e=>{u(e),null===d||void 0===d||d()}},g)))),r().createElement(r().Fragment,null,O,r().createElement(mz,Object.assign({},e,{colors:v})),r().createElement(zu,{prefixCls:a,value:null===E||void 0===E?void 0:E.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,n)=>{const o=k(e,n);$(o.isGradient()?o.getColors()[p].color:o),u(o,t)})(e,!0,t)},onChangeComplete:(e,t)=>{((e,t)=>{f(k(e,t)),S((e=>e+1))})(e,t)},components:vz}),r().createElement(jR,Object.assign({value:C,onChange:e=>{u(k(e))},prefixCls:a,disabledAlpha:s},g)))},bz=()=>{const{prefixCls:e,value:t,presets:n,onChange:i}=(0,o.useContext)(yj);return Array.isArray(n)?r().createElement(pd,{value:t,presets:n,prefixCls:e,onChange:i}):null};const yz=e=>{const{prefixCls:t,presets:n,panelRender:o,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:m,onActive:g,format:v,onFormatChange:h,gradientDragging:b,onGradientDragging:y}=e,C=`${t}-inner`,x=r().useMemo((()=>({prefixCls:t,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:m,onActive:g,format:v,onFormatChange:h,gradientDragging:b,onGradientDragging:y})),[t,i,a,l,c,s,u,d,f,p,m,g,v,h,b,y]),$=r().useMemo((()=>({prefixCls:t,value:i,presets:n,onChange:a})),[t,i,n,a]),w=r().createElement("div",{className:`${C}-content`},r().createElement(hz,null),Array.isArray(n)&&r().createElement(tj,null),r().createElement(bz,null));return r().createElement(bj.Provider,{value:x},r().createElement(yj.Provider,{value:$},r().createElement("div",{className:C},"function"===typeof o?o(w,{components:{Picker:hz,Presets:bz}}):w)))};var Cz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xz=(0,o.forwardRef)(((e,t)=>{const{color:n,prefixCls:i,open:l,disabled:c,format:s,className:u,showText:d,activeIndex:f}=e,p=Cz(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),m=`${i}-trigger`,g=`${m}-text`,v=`${g}-cell`,[h]=Es("ColorPicker"),b=r().useMemo((()=>{if(!d)return"";if("function"===typeof d)return d(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map(((e,t)=>{const n=-1!==f&&f!==t;return r().createElement("span",{key:t,className:a()(v,n&&`${v}-inactive`)},e.color.toRgbString()," ",e.percent,"%")}));const e=n.toHexString().toUpperCase(),t=ld(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}}),[n,s,d,f]),y=(0,o.useMemo)((()=>n.cleared?r().createElement(Cj,{prefixCls:i}):r().createElement(wu,{prefixCls:i,color:n.toCssString()})),[n,i]);return r().createElement("div",Object.assign({ref:t,className:a()(m,u,{[`${m}-active`]:l,[`${m}-disabled`]:c})},_a(p)),y,d&&r().createElement("div",{className:g},b))})),$z=xz;const wz=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Sz=(e,t)=>{const{componentCls:n,borderRadiusSM:o,colorPickerInsetShadow:r,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:o,width:t,height:t,boxShadow:r,flex:"none"},wz("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Et(i)} ${a}`,borderRadius:"inherit"}})}},Ez=e=>{const{componentCls:t,antCls:n,fontSizeSM:o,lineHeightSM:r,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:o,lineHeight:r,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Et(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:o,lineHeight:Et(c)},[`${n}-select-item-option-content`]:{fontSize:o,lineHeight:r},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Et(d)}`,[`${n}-input`]:{fontSize:o,textTransform:"uppercase",lineHeight:Et(e.calc(c).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},kz=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:o,colorPickerInsetShadow:r,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:o},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:r,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${Et(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${r}, 0 0 0 1px ${l}`}}},Oz=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:o,paddingXXS:r,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:o,paddingInlineEnd:r}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Et(m)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${Et(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${Et(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:o}}}},Iz=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:o,colorFillSecondary:r,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[wz(Et(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${Et(i)} solid ${o}`,boxShadow:`${n}, 0 0 0 1px ${r}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},Nz=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Et(e.controlOutlineWidth)} ${n}`,outline:0}),Mz=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},jz=(e,t,n)=>{const{componentCls:o,borderRadiusSM:r,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${o}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:r,border:`${Et(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},Pz=e=>{const{componentCls:t,colorError:n,colorWarning:o,colorErrorHover:r,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:r},[`&${t}-trigger-active`]:Object.assign({},Nz(e,n,a))},[`&${t}-status-warning`]:{borderColor:o,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Nz(e,o,l))}}},Rz=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:o,controlHeight:r,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:r,height:r,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:o,minHeight:o,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:Et(i)}}}},zz=e=>{const{antCls:t,componentCls:n,colorPickerWidth:o,colorPrimary:r,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:h,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:x,colorPrimaryHover:$,controlOutline:w}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:o,[`& > ${t}-divider`]:{margin:`${Et(f)} 0 ${Et(d)}`}},[`${n}-panel`]:Object.assign({},kz(e))},Iz(e)),Sz(e,h)),Ez(e)),Oz(e)),jz(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${Et(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(C).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(C).sub(b)).equal(),fontSize:x,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:$},[`&${n}-trigger-active`]:Object.assign({},Nz(e,r,w)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:l}}},jz(e,m)),Sz(e,m)),Pz(e)),Rz(e))},Mz(e))},_d(e,{focusElCls:`${n}-trigger-active`})]},Tz=fi("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:n}=e,o=xo(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[zz(o)]}));var Bz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hz=e=>{const{mode:t,value:n,defaultValue:i,format:l,defaultFormat:c,allowClear:s=!1,presets:u,children:d,trigger:f="click",open:p,disabled:m,placement:g="bottomLeft",arrow:v=!0,panelRender:h,showText:b,style:y,className:C,size:x,rootClassName:$,prefixCls:w,styles:S,disabledAlpha:E=!1,onFormatChange:k,onChange:O,onClear:I,onOpenChange:N,onChangeComplete:M,getPopupContainer:j,autoAdjustOverflow:P=!0,destroyTooltipOnHide:R}=e,z=Bz(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:T,direction:B,colorPicker:H}=(0,o.useContext)(Be),D=(0,o.useContext)(Qc),L=null!==m&&void 0!==m?m:D,[A,F]=so(!1,{value:p,postState:e=>!L&&e,onChange:N}),[W,_]=so(l,{value:l,defaultValue:c,onChange:k}),V=T("color-picker",w),[q,K,X,G,Y]=function(e,t,n){const[r]=Es("ColorPicker"),[i,a]=so(e,{value:t}),[l,c]=o.useState("single"),[s,u]=o.useMemo((()=>{const e=(Array.isArray(n)?n:[n]).filter((e=>e));e.length||e.push("single");const t=new Set(e),o=[],i=(e,n)=>{t.has(e)&&o.push({label:n,value:e})};return i("single",r.singleColor),i("gradient",r.gradientColor),[o,t]}),[n]),[d,f]=o.useState(null),p=ao((e=>{f(e),a(e)})),m=o.useMemo((()=>{const e=id(i||"");return e.equals(d)?d:e}),[i,d]),g=o.useMemo((()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value}),[u,l,s]);return o.useEffect((()=>{c(m.isGradient()?"gradient":"single")}),[m]),[m,p,g,c,s]}(i,n,t),U=(0,o.useMemo)((()=>ld(q)<100),[q]),[Q,Z]=r().useState(null),J=e=>{if(M){let t=id(e);E&&U&&(t=cd(e)),M(t)}},ee=(e,t)=>{let n=id(e);E&&U&&(n=cd(n)),K(n),Z(null),O&&O(n,n.toCssString()),t||J(n)},[te,ne]=r().useState(0),[oe,re]=r().useState(!1),{status:ie}=r().useContext(em),{compactSize:ae,compactItemClassnames:le}=_s(V,B),ce=Bs((e=>{var t;return null!==(t=null!==x&&void 0!==x?x:ae)&&void 0!==t?t:e})),se=bl(V),[ue,de,fe]=Tz(V,se),pe={[`${V}-rtl`]:B},me=a()($,fe,se,pe),ge=a()($b(V,ie),{[`${V}-sm`]:"small"===ce,[`${V}-lg`]:"large"===ce},le,null===H||void 0===H?void 0:H.className,me,C,de),ve=a()(V,me);const he={open:A,trigger:f,placement:g,arrow:v,rootClassName:$,getPopupContainer:j,autoAdjustOverflow:P,destroyTooltipOnHide:R},be=Object.assign(Object.assign({},null===H||void 0===H?void 0:H.style),y);return ue(r().createElement(AC,Object.assign({style:null===S||void 0===S?void 0:S.popup,overlayInnerStyle:null===S||void 0===S?void 0:S.popupOverlayInner,onOpenChange:e=>{e&&L||F(e)},content:r().createElement(om,{form:!0},r().createElement(yz,{mode:X,onModeChange:e=>{if(G(e),"single"===e&&q.isGradient())ne(0),ee(new Bu(q.getColors()[0].color)),Z(q);else if("gradient"===e&&!q.isGradient()){const e=U?cd(q):q;ee(new Bu(Q||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:V,value:q,allowClear:s,disabled:L,disabledAlpha:E,presets:u,panelRender:h,format:W,onFormatChange:_,onChange:ee,onChangeComplete:J,onClear:I,activeIndex:te,onActive:ne,gradientDragging:oe,onGradientDragging:re})),overlayClassName:ve},he),d||r().createElement($z,Object.assign({activeIndex:A?te:-1,open:A,className:ge,style:be,prefixCls:V,disabled:L,showText:b,format:W},z,{color:q}))))};const Dz=vv(Hz,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));Hz._InternalPanelDoNotUseOrYouWillBeFired=Dz;const Lz=Hz;const Az={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const Fz=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Az}))}));const Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const _z=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Wz}))}));const Vz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const qz=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Vz}))})),Kz=(e,t)=>{const{componentCls:n,controlHeight:o}=e,r=t?`${n}-${t}`:"",i=ny(e);return[{[`${n}-multiple${r}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:o,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:Et(i.itemLineHeight)}}}]},Xz=e=>{const{componentCls:t,calc:n,lineWidth:o}=e,r=xo(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=xo(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(o).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Kz(r,"small"),Kz(e),Kz(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},oy(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Gz=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},aP(e)),fP(e)),sP(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Yz=(e,t,n,o)=>{const r=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(r).div(2).equal(),0),a=e.max(e.calc(t).sub(r).sub(i).equal(),0);return{padding:`${Et(i)} ${Et(o)} ${Et(a)}`}},Uz=e=>{const{componentCls:t,colorError:n,colorWarning:o}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:o}}}}},Qz=e=>{const{componentCls:t,antCls:n,controlHeight:o,paddingInline:r,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:h,colorTextDescription:b,lineWidthBold:y,colorPrimary:C,motionDurationSlow:x,zIndexPopup:$,paddingXXS:w,sizePopupArrow:S,colorBgElevated:E,borderRadiusLG:k,boxShadowSecondary:O,borderRadiusSM:I,colorSplit:N,cellHoverBg:M,presetsWidth:j,presetsMaxWidth:P,boxShadowPopoverArrow:R,fontHeight:z,fontHeightLG:T,lineHeightLG:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Ro(e)),Yz(e,o,z,r)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},gP(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},Yz(e,f,T,r)),{[`${t}-input > input`]:{fontSize:p,lineHeight:B}}),"&-small":Object.assign({},Yz(e,m,z,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:h}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:C,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Et(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ro(e)),Kk(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Db},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Bb},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Lb},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Hb},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},cC(e,E,R)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:k,boxShadow:O,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:j,maxWidth:P,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${Et(i)} ${a} ${N}`,li:Object.assign(Object.assign({},Po),{borderRadius:I,paddingInline:v,paddingBlock:e.calc(m).sub(z).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:h},"&:hover":{background:M}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Et(e.calc(S).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},qb(e,"slide-up"),qb(e,"slide-down"),Jb(e,"move-up"),Jb(e,"move-down")]},Zz=fi("DatePicker",(e=>{const t=xo(Gk(e),Uk(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Xk(t),Qz(t),Gz(t),Uz(t),Xz(t),_d(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Yk(e)),Qk(e)),lC(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function Jz(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function eT(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function tT(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function nT(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Iy(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:r},e)}),[n,r]),i]}const[oT,rT]=["week","WeekPicker"],[iT,aT]=["month","MonthPicker"],[lT,cT]=["year","YearPicker"],[sT,uT]=["quarter","QuarterPicker"],[dT,fT]=["time","TimePicker"],pT=e=>o.createElement(Zd,Object.assign({size:"small",type:"primary"},e));function mT(e){return(0,o.useMemo)((()=>Object.assign({button:pT},e)),[e])}var gT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vT=e=>{const t=(0,o.forwardRef)(((t,n)=>{var r;const{prefixCls:i,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupClassName:v,dropdownClassName:h,status:b,rootClassName:y,variant:C,picker:x}=t,$=gT(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),w=o.useRef(null),{getPrefixCls:S,direction:E,getPopupContainer:k,rangePicker:O}=(0,o.useContext)(Be),I=S("picker",i),{compactSize:N,compactItemClassnames:M}=_s(I,E),j=S(),[P,R]=zb("rangePicker",C,m),z=bl(I),[T,B,H]=Zz(I,z);const[D]=nT(t,I),L=mT(c),A=Bs((e=>{var t;return null!==(t=null!==f&&void 0!==f?f:N)&&void 0!==t?t:e})),F=o.useContext(Qc),W=null!==p&&void 0!==p?p:F,_=(0,o.useContext)(em),{hasFeedback:V,status:q,feedbackIcon:K}=_,X=o.createElement(o.Fragment,null,x===dT?o.createElement(_z,null):o.createElement(Fz,null),V&&K);(0,o.useImperativeHandle)(n,(()=>w.current));const[G]=Es("Calendar",Hc),Y=Object.assign(Object.assign({},G),t.locale),[U]=tc("DatePicker",null===(r=t.popupStyle)||void 0===r?void 0:r.zIndex);return T(o.createElement(om,{space:!0},o.createElement(gk,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${I}-separator`},o.createElement(qz,null)),disabled:W,ref:w,popupAlign:tT(E,d),placement:d,placeholder:eT(Y,x,g),suffixIcon:X,prevIcon:o.createElement("span",{className:`${I}-prev-icon`}),nextIcon:o.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:x},$,{className:a()({[`${I}-${A}`]:A,[`${I}-${P}`]:R},$b(I,wb(q,b),V),B,M,s,null===O||void 0===O?void 0:O.className,H,z,y),style:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),u),locale:Y.lang,prefixCls:I,getPopupContainer:l||k,generateConfig:e,components:L,direction:E,classNames:{popup:a()(B,v||h,H,z,y)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:U})},allowClear:D}))))}));return t};var hT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bT=e=>{const t=(t,n)=>{const r=n===fT?"timePicker":"datePicker",i=(0,o.forwardRef)(((n,i)=>{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:v,placeholder:h,popupClassName:b,dropdownClassName:y,disabled:C,status:x,variant:$,onCalendarChange:w}=n,S=hT(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:E,direction:k,getPopupContainer:O,[r]:I}=(0,o.useContext)(Be),N=E("picker",c),{compactSize:M,compactItemClassnames:j}=_s(N,k),P=o.useRef(null),[R,z]=zb("datePicker",$,g),T=bl(N),[B,H,D]=Zz(N,T);(0,o.useImperativeHandle)(i,(()=>P.current));const L=t||n.picker,A=E(),{onSelect:F,multiple:W}=S,_=F&&"time"===t&&!W;const[V,q]=nT(n,N),K=mT(u),X=Bs((e=>{var t;return null!==(t=null!==m&&void 0!==m?m:M)&&void 0!==t?t:e})),G=o.useContext(Qc),Y=null!==C&&void 0!==C?C:G,U=(0,o.useContext)(em),{hasFeedback:Q,status:Z,feedbackIcon:J}=U,ee=o.createElement(o.Fragment,null,"time"===L?o.createElement(_z,null):o.createElement(Fz,null),Q&&J),[te]=Es("DatePicker",Hc),ne=Object.assign(Object.assign({},te),n.locale),[oe]=tc("DatePicker",null===(l=n.popupStyle)||void 0===l?void 0:l.zIndex);return B(o.createElement(om,{space:!0},o.createElement(xk,Object.assign({ref:P,placeholder:Jz(ne,L,h),suffixIcon:ee,dropdownAlign:tT(k,v),placement:v,prevIcon:o.createElement("span",{className:`${N}-prev-icon`}),nextIcon:o.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null===w||void 0===w||w(e,t,n),_&&F(e)}},{showToday:!0},S,{locale:ne.lang,className:a()({[`${N}-${X}`]:X,[`${N}-${R}`]:z},$b(N,wb(Z,x),Q),H,j,null===I||void 0===I?void 0:I.className,f,D,T,p),style:Object.assign(Object.assign({},null===I||void 0===I?void 0:I.style),d),prefixCls:N,getPopupContainer:s||O,generateConfig:e,components:K,direction:k,disabled:Y,classNames:{popup:a()(H,D,T,p,b||y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:oe})},allowClear:V,removeIcon:q}))))}));return i},n=t(),r=t(oT,rT),i=t(iT,aT),l=t(lT,cT),c=t(sT,uT);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:l,TimePicker:t(dT,fT),QuarterPicker:c}},yT=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:o,YearPicker:r,TimePicker:i,QuarterPicker:a}=bT(e),l=vT(e),c=t;return c.WeekPicker=n,c.MonthPicker=o,c.YearPicker=r,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c},CT=yT(wS);function xT(e){const t=tT(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const $T=vv(CT,"picker",null,xT);CT._InternalPanelDoNotUseOrYouWillBeFired=$T;const wT=vv(CT.RangePicker,"picker",null,xT);CT._InternalRangePanelDoNotUseOrYouWillBeFired=wT,CT.generatePicker=yT;const ST=CT,ET={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},kT=r().createContext({});var OT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function IT(e,t,n){const r=o.useMemo((()=>t||s(n).map((e=>Object.assign(Object.assign({},null===e||void 0===e?void 0:e.props),{key:e.key})))),[t,n]);return o.useMemo((()=>r.map((t=>{var{span:n}=t,o=OT(t,["span"]);return Object.assign(Object.assign({},o),{span:"number"===typeof n?n:Wy(e,n)})}))),[r,e])}function NT(e,t,n){let o=e,r=!1;return(void 0===n||n>t)&&(o=Object.assign(Object.assign({},e),{span:t}),r=void 0!==n),[o,r]}const MT=(e,t)=>{const[n,r]=(0,o.useMemo)((()=>function(e,t){const n=[];let o=[],r=t,i=!1;return e.filter((e=>e)).forEach(((a,l)=>{const c=null===a||void 0===a?void 0:a.span,s=c||1;if(l===e.length-1){const[e,t]=NT(a,r,c);return i=i||t,o.push(e),void n.push(o)}if(s<r)r-=s,o.push(a);else{const[e,l]=NT(a,r,s);i=i||l,o.push(e),n.push(o),r=t,o=[]}})),[n,i]}(t,e)),[t,e]);return n},jT=e=>{let{children:t}=e;return t};function PT(e){return void 0!==e&&null!==e}const RT=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:l,labelStyle:c,contentStyle:s,bordered:u,label:d,content:f,colon:p,type:m}=e,g=n;return u?o.createElement(g,{className:a()({[`${t}-item-label`]:"label"===m,[`${t}-item-content`]:"content"===m},i),style:l,colSpan:r},PT(d)&&o.createElement("span",{style:c},d),PT(f)&&o.createElement("span",{style:s},f)):o.createElement(g,{className:a()(`${t}-item`,i),style:l,colSpan:r},o.createElement("div",{className:`${t}-item-container`},(d||0===d)&&o.createElement("span",{className:a()(`${t}-item-label`,{[`${t}-item-no-colon`]:!p}),style:c},d),(f||0===f)&&o.createElement("span",{className:a()(`${t}-item-content`),style:s},f)))};function zT(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:l,type:c,showLabel:s,showContent:u,labelStyle:d,contentStyle:f}=n;return e.map(((e,t)=>{let{label:n,children:p,prefixCls:m=i,className:g,style:v,labelStyle:h,contentStyle:b,span:y=1,key:C}=e;return"string"===typeof l?o.createElement(RT,{key:`${c}-${C||t}`,className:g,style:v,labelStyle:Object.assign(Object.assign({},d),h),contentStyle:Object.assign(Object.assign({},f),b),span:y,colon:r,component:l,itemPrefixCls:m,bordered:a,label:s?n:null,content:u?p:null,type:c}):[o.createElement(RT,{key:`label-${C||t}`,className:g,style:Object.assign(Object.assign(Object.assign({},d),v),h),span:1,colon:r,component:l[0],itemPrefixCls:m,bordered:a,label:n,type:"label"}),o.createElement(RT,{key:`content-${C||t}`,className:g,style:Object.assign(Object.assign(Object.assign({},f),v),b),span:2*y-1,component:l[1],itemPrefixCls:m,bordered:a,content:p,type:"content"})]}))}const TT=e=>{const t=o.useContext(kT),{prefixCls:n,vertical:r,row:i,index:a,bordered:l}=e;return r?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${a}`,className:`${n}-row`},zT(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),o.createElement("tr",{key:`content-${a}`,className:`${n}-row`},zT(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):o.createElement("tr",{key:a,className:`${n}-row`},zT(i,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},BT=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Et(e.padding)} ${Et(e.paddingLG)}`,borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Et(e.paddingSM)} ${Et(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Et(e.paddingXS)} ${Et(e.padding)}`}}}}}},HT=fi("Descriptions",(e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:o,itemPaddingEnd:r,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Ro(e)),BT(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},Po),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o,paddingInlineEnd:r},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Et(a)} ${Et(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})(xo(e,{}))),(e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText})));var DT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const LT=e=>{const{prefixCls:t,title:n,extra:r,column:i,colon:l=!0,bordered:c,layout:s,children:u,className:d,rootClassName:f,style:p,size:m,labelStyle:g,contentStyle:v,items:h}=e,b=DT(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:y,direction:C,descriptions:x}=o.useContext(Be),$=y("descriptions",t),w=Vy(),S=o.useMemo((()=>{var e;return"number"===typeof i?i:null!==(e=Wy(w,Object.assign(Object.assign({},ET),i)))&&void 0!==e?e:3}),[w,i]),E=IT(w,h,u),k=Bs(m),O=MT(S,E),[I,N,M]=HT($),j=o.useMemo((()=>({labelStyle:g,contentStyle:v})),[g,v]);return I(o.createElement(kT.Provider,{value:j},o.createElement("div",Object.assign({className:a()($,null===x||void 0===x?void 0:x.className,{[`${$}-${k}`]:k&&"default"!==k,[`${$}-bordered`]:!!c,[`${$}-rtl`]:"rtl"===C},d,f,N,M),style:Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),p)},b),(n||r)&&o.createElement("div",{className:`${$}-header`},n&&o.createElement("div",{className:`${$}-title`},n),r&&o.createElement("div",{className:`${$}-extra`},r)),o.createElement("div",{className:`${$}-view`},o.createElement("table",null,o.createElement("tbody",null,O.map(((e,t)=>o.createElement(TT,{key:t,index:t,colon:l,prefixCls:$,vertical:"vertical"===s,bordered:c,row:e})))))))))};LT.Item=jT;const AT=LT;var FT=o.createContext(null),WT=o.createContext({});const _T=FT;var VT=["prefixCls","className","containerRef"];const qT=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,i=Si(e,VT),c=o.useContext(WT).panel,s=j(c,r);return o.createElement("div",l({className:a()("".concat(t,"-content"),n),role:"dialog",ref:s},_a(e,{aria:!0}),{"aria-modal":"true"},i))};function KT(e){return"string"===typeof e&&String(Number(e))===e?(h(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var XT={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};var GT=o.forwardRef((function(e,t){var n,r,i,c=e.prefixCls,s=e.open,u=e.placement,d=e.inline,f=e.push,p=e.forceRender,m=e.autoFocus,g=e.keyboard,v=e.classNames,h=e.rootClassName,b=e.rootStyle,y=e.zIndex,x=e.className,w=e.id,S=e.style,E=e.motion,k=e.width,O=e.height,I=e.children,N=e.mask,M=e.maskClosable,j=e.maskMotion,P=e.maskClassName,R=e.maskStyle,z=e.afterOpenChange,T=e.onClose,B=e.onMouseEnter,H=e.onMouseOver,D=e.onMouseLeave,L=e.onClick,A=e.onKeyDown,F=e.onKeyUp,W=e.styles,_=e.drawerRender,V=o.useRef(),q=o.useRef(),K=o.useRef();o.useImperativeHandle(t,(function(){return V.current})),o.useEffect((function(){var e;s&&m&&(null===(e=V.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);var X=Ae(o.useState(!1),2),G=X[0],Y=X[1],U=o.useContext(_T),Q=null!==(n=null!==(r=null===(i="boolean"===typeof f?f?{}:{distance:0}:f||{})||void 0===i?void 0:i.distance)&&void 0!==r?r:null===U||void 0===U?void 0:U.pushDistance)&&void 0!==n?n:180,Z=o.useMemo((function(){return{pushDistance:Q,push:function(){Y(!0)},pull:function(){Y(!1)}}}),[Q]);o.useEffect((function(){var e,t;s?null===U||void 0===U||null===(e=U.push)||void 0===e||e.call(U):null===U||void 0===U||null===(t=U.pull)||void 0===t||t.call(U)}),[s]),o.useEffect((function(){return function(){var e;null===U||void 0===U||null===(e=U.pull)||void 0===e||e.call(U)}}),[]);var J=N&&o.createElement(Aa,l({key:"mask"},j,{visible:s}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{className:a()("".concat(c,"-mask"),n,null===v||void 0===v?void 0:v.mask,P),style:$($($({},r),R),null===W||void 0===W?void 0:W.mask),onClick:M&&s?T:void 0,ref:t})})),ee="function"===typeof E?E(u):E,te={};if(G&&Q)switch(u){case"top":te.transform="translateY(".concat(Q,"px)");break;case"bottom":te.transform="translateY(".concat(-Q,"px)");break;case"left":te.transform="translateX(".concat(Q,"px)");break;default:te.transform="translateX(".concat(-Q,"px)")}"left"===u||"right"===u?te.width=KT(k):te.height=KT(O);var ne={onMouseEnter:B,onMouseOver:H,onMouseLeave:D,onClick:L,onKeyDown:A,onKeyUp:F},oe=o.createElement(Aa,l({key:"panel"},ee,{visible:s,forceRender:p,onVisibleChanged:function(e){null===z||void 0===z||z(e)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,i=t.style,s=o.createElement(qT,l({id:w,containerRef:n,prefixCls:c,className:a()(x,null===v||void 0===v?void 0:v.content),style:$($({},S),null===W||void 0===W?void 0:W.content)},_a(e,{aria:!0}),ne),I);return o.createElement("div",l({className:a()("".concat(c,"-content-wrapper"),null===v||void 0===v?void 0:v.wrapper,r),style:$($($({},te),i),null===W||void 0===W?void 0:W.wrapper)},_a(e,{data:!0})),_?_(s):s)})),re=$({},b);return y&&(re.zIndex=y),o.createElement(_T.Provider,{value:Z},o.createElement("div",{className:a()(c,"".concat(c,"-").concat(u),h,C(C({},"".concat(c,"-open"),s),"".concat(c,"-inline"),d)),style:re,tabIndex:-1,ref:V,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case zl.TAB:var o;if(t===zl.TAB)if(n||document.activeElement!==K.current){if(n&&document.activeElement===q.current){var r;null===(r=K.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(o=q.current)||void 0===o||o.focus({preventScroll:!0});break;case zl.ESC:T&&g&&(e.stopPropagation(),T(e))}}},J,o.createElement("div",{tabIndex:0,ref:q,style:XT,"aria-hidden":"true","data-sentinel":"start"}),oe,o.createElement("div",{tabIndex:0,ref:K,style:XT,"aria-hidden":"true","data-sentinel":"end"})))}));const YT=GT;const UT=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,i=void 0===r?"rc-drawer":r,a=e.placement,l=void 0===a?"right":a,c=e.autoFocus,s=void 0===c||c,u=e.keyboard,d=void 0===u||u,f=e.width,p=void 0===f?378:f,m=e.mask,g=void 0===m||m,v=e.maskClosable,h=void 0===v||v,b=e.getContainer,y=e.forceRender,C=e.afterOpenChange,x=e.destroyOnClose,w=e.onMouseEnter,S=e.onMouseOver,E=e.onMouseLeave,k=e.onClick,O=e.onKeyDown,I=e.onKeyUp,N=e.panelRef,M=Ae(o.useState(!1),2),j=M[0],P=M[1];var R=Ae(o.useState(!1),2),z=R[0],T=R[1];Rt((function(){T(!0)}),[]);var B=!!z&&n,H=o.useRef(),D=o.useRef();Rt((function(){B&&(D.current=document.activeElement)}),[B]);var L=o.useMemo((function(){return{panel:N}}),[N]);if(!y&&!j&&!B&&x)return null;var A={onMouseEnter:w,onMouseOver:S,onMouseLeave:E,onClick:k,onKeyDown:O,onKeyUp:I},F=$($({},e),{},{open:B,prefixCls:i,placement:l,autoFocus:s,keyboard:d,width:p,mask:g,maskClosable:h,inline:!1===b,afterOpenChange:function(e){var t,n;(P(e),null===C||void 0===C||C(e),e||!D.current||null!==(t=H.current)&&void 0!==t&&t.contains(D.current))||(null===(n=D.current)||void 0===n||n.focus({preventScroll:!0}))},ref:H},A);return o.createElement(WT.Provider,{value:L},o.createElement(bf,{open:B||y||j,autoDestroy:!1,getContainer:b,autoLock:g&&(B||j)},o.createElement(YT,F)))},QT=UT,ZT=e=>{var t,n;const{prefixCls:r,title:i,footer:l,extra:c,loading:s,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:p,children:m,classNames:g,styles:v}=e,{drawer:h}=o.useContext(Be),b=o.useCallback((e=>o.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},e)),[u]),[y,C]=cm(rm(e),rm(h),{closable:!0,closeIconRender:b}),x=o.useMemo((()=>{var e,t;return i||y?o.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null===h||void 0===h?void 0:h.styles)||void 0===e?void 0:e.header),d),null===v||void 0===v?void 0:v.header),className:a()(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!c},null===(t=null===h||void 0===h?void 0:h.classNames)||void 0===t?void 0:t.header,null===g||void 0===g?void 0:g.header)},o.createElement("div",{className:`${r}-header-title`},C,i&&o.createElement("div",{className:`${r}-title`},i)),c&&o.createElement("div",{className:`${r}-extra`},c)):null}),[y,C,c,d,r,i]),$=o.useMemo((()=>{var e,t;if(!l)return null;const n=`${r}-footer`;return o.createElement("div",{className:a()(n,null===(e=null===h||void 0===h?void 0:h.classNames)||void 0===e?void 0:e.footer,null===g||void 0===g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null===h||void 0===h?void 0:h.styles)||void 0===t?void 0:t.footer),p),null===v||void 0===v?void 0:v.footer)},l)}),[l,p,r]);return o.createElement(o.Fragment,null,x,o.createElement("div",{className:a()(`${r}-body`,null===g||void 0===g?void 0:g.body,null===(t=null===h||void 0===h?void 0:h.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null===h||void 0===h?void 0:h.styles)||void 0===n?void 0:n.body),f),null===v||void 0===v?void 0:v.body)},s?o.createElement(zm,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):m),$)},JT=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},eB=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),tB=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},eB({opacity:e},{opacity:1})),nB=(e,t)=>[tB(.7,t),eB({transform:JT(e)},{transform:"none"})],oB=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:tB(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:nB(t,n)})),{})}}},rB=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:o,colorBgMask:r,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:s,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:g,marginXS:v,colorIcon:h,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:C,colorText:x,fontWeightStrong:$,footerPaddingBlock:w,footerPaddingInline:S,calc:E}=e,k=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:o,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:o,background:r,pointerEvents:"auto"},[k]:{position:"absolute",zIndex:o,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Et(s)} ${Et(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Et(p)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:E(d).add(c).equal(),height:E(d).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:h,fontWeight:$,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:C}},Bo(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Et(w)} ${Et(S)}`,borderTop:`${Et(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},iB=fi("Drawer",(e=>{const t=xo(e,{});return[rB(t),oB(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var aB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lB={distance:180},cB=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:l=!0,push:c=lB,open:s,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:p,style:m,className:g,visible:v,afterVisibleChange:h,maskStyle:b,drawerStyle:y,contentWrapperStyle:C}=e,x=aB(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:$,getPrefixCls:w,direction:S,drawer:E}=o.useContext(Be),k=w("drawer",f),[O,I,N]=iB(k),M=void 0===p&&$?()=>$(document.body):p,j=a()({"no-mask":!l,[`${k}-rtl`]:"rtl"===S},t,I,N);const P=o.useMemo((()=>null!==n&&void 0!==n?n:"large"===i?736:378),[n,i]),R=o.useMemo((()=>null!==r&&void 0!==r?r:"large"===i?736:378),[r,i]),z={motionName:ws(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},T=Hm(),[B,H]=tc("Drawer",x.zIndex),{classNames:D={},styles:L={}}=x,{classNames:A={},styles:F={}}=E||{};return O(o.createElement(om,{form:!0,space:!0},o.createElement(Ul.Provider,{value:H},o.createElement(QT,Object.assign({prefixCls:k,onClose:d,maskMotion:z,motion:e=>({motionName:ws(k,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},x,{classNames:{mask:a()(D.mask,A.mask),content:a()(D.content,A.content),wrapper:a()(D.wrapper,A.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},L.mask),b),F.mask),content:Object.assign(Object.assign(Object.assign({},L.content),y),F.content),wrapper:Object.assign(Object.assign(Object.assign({},L.wrapper),C),F.wrapper)},open:null!==s&&void 0!==s?s:v,mask:l,push:c,width:P,height:R,style:Object.assign(Object.assign({},null===E||void 0===E?void 0:E.style),m),className:a()(null===E||void 0===E?void 0:E.className,g),rootClassName:j,getContainer:M,afterOpenChange:null!==u&&void 0!==u?u:h,panelRef:T,zIndex:B}),o.createElement(ZT,Object.assign({prefixCls:k},x,{onClose:d}))))))};cB._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,l=aB(e,["prefixCls","style","className","placement"]),{getPrefixCls:c}=o.useContext(Be),s=c("drawer",t),[u,d,f]=iB(s),p=a()(s,`${s}-pure`,`${s}-${i}`,d,f,r);return u(o.createElement("div",{className:p,style:n},o.createElement(ZT,Object.assign({prefixCls:s},l))))};const sB=cB;function uB(e){return["small","middle","large"].includes(e)}function dB(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const fB=r().createContext({latestIndex:0}),pB=fB.Provider,mB=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:l}=o.useContext(fB);return null===r||void 0===r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<l&&i&&o.createElement("span",{className:`${t}-split`},i))};var gB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vB=o.forwardRef(((e,t)=>{var n,r,i;const{getPrefixCls:l,space:c,direction:u}=o.useContext(Be),{size:d=(null!==(n=null===c||void 0===c?void 0:c.size)&&void 0!==n?n:"small"),align:f,className:p,rootClassName:m,children:g,direction:v="horizontal",prefixCls:h,split:b,style:y,wrap:C=!1,classNames:x,styles:$}=e,w=gB(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(d)?d:[d,d],k=uB(E),O=uB(S),I=dB(E),N=dB(S),M=s(g,{keepEmpty:!0}),j=void 0===f&&"horizontal"===v?"center":f,P=l("space",h),[R,z,T]=As(P),B=a()(P,null===c||void 0===c?void 0:c.className,z,`${P}-${v}`,{[`${P}-rtl`]:"rtl"===u,[`${P}-align-${j}`]:j,[`${P}-gap-row-${E}`]:k,[`${P}-gap-col-${S}`]:O},p,m,T),H=a()(`${P}-item`,null!==(r=null===x||void 0===x?void 0:x.item)&&void 0!==r?r:null===(i=null===c||void 0===c?void 0:c.classNames)||void 0===i?void 0:i.item);let D=0;const L=M.map(((e,t)=>{var n,r;null!==e&&void 0!==e&&(D=t);const i=(null===e||void 0===e?void 0:e.key)||`${H}-${t}`;return o.createElement(mB,{className:H,key:i,index:t,split:b,style:null!==(n=null===$||void 0===$?void 0:$.item)&&void 0!==n?n:null===(r=null===c||void 0===c?void 0:c.styles)||void 0===r?void 0:r.item},e)})),A=o.useMemo((()=>({latestIndex:D})),[D]);if(0===M.length)return null;const F={};return C&&(F.flexWrap="wrap"),!O&&N&&(F.columnGap=S),!k&&I&&(F.rowGap=E),R(o.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},F),null===c||void 0===c?void 0:c.style),y)},w),o.createElement(pB,{value:A},L)))})),hB=vB;hB.Compact=Ks;const bB=hB;var yB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const CB=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(Be),{prefixCls:i,type:l="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:f,children:p,className:m,menu:g,arrow:v,autoFocus:h,overlay:b,trigger:y,align:C,open:x,onOpenChange:$,placement:w,getPopupContainer:S,href:E,icon:k=o.createElement(uw,null),title:O,buttonsRender:I=e=>e,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:j,overlayStyle:P,destroyPopupOnHide:R,dropdownRender:z}=e,T=yB(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),B=n("dropdown",i),H=`${B}-button`,D={menu:g,arrow:v,autoFocus:h,align:C,disabled:s,trigger:s?[]:y,onOpenChange:$,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:j,overlayStyle:P,destroyPopupOnHide:R,dropdownRender:z},{compactSize:L,compactItemClassnames:A}=_s(B,r),F=a()(H,A,m);"overlay"in e&&(D.overlay=b),"open"in e&&(D.open=x),D.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight";const W=o.createElement(Zd,{type:l,danger:c,disabled:s,loading:u,onClick:d,htmlType:f,href:E,title:O},p),_=o.createElement(Zd,{type:l,danger:c,icon:k}),[V,q]=I([W,_]);return o.createElement(bB.Compact,Object.assign({className:F,size:L,block:!0},T),V,o.createElement(_w,Object.assign({},D),q))};CB.__ANT_BUTTON=!0;const xB=CB,$B=_w;$B.Button=xB;const wB=$B,SB=["wrap","nowrap","wrap-reverse"],EB=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],kB=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const OB=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&SB.includes(n)}})(e,t)),((e,t)=>{const n={};return kB.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return EB.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))},IB=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},NB=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},MB=e=>{const{componentCls:t}=e,n={};return SB.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},jB=e=>{const{componentCls:t}=e,n={};return kB.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},PB=e=>{const{componentCls:t}=e,n={};return EB.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},RB=fi("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:o}=e,r=xo(e,{flexGapSM:t,flexGap:n,flexGapLG:o});return[IB(r),NB(r),MB(r),jB(r),PB(r)]}),(()=>({})),{resetStyle:!1});var zB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const TB=r().forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:o,className:i,style:l,flex:c,gap:s,children:u,vertical:d=!1,component:f="div"}=e,p=zB(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:v}=r().useContext(Be),h=v("flex",n),[b,y,C]=RB(h),x=null!==d&&void 0!==d?d:null===m||void 0===m?void 0:m.vertical,$=a()(i,o,null===m||void 0===m?void 0:m.className,h,y,C,OB(h,e),{[`${h}-rtl`]:"rtl"===g,[`${h}-gap-${s}`]:uB(s),[`${h}-vertical`]:x}),w=Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),l);return c&&(w.flex=c),s&&!uB(s)&&(w.gap=s),b(r().createElement(f,Object.assign({ref:t,className:$,style:w},Ce(p,["justify","wrap","align"])),u))}));const BB=TB,HB=r().createContext(void 0),{Provider:DB}=HB,LB=HB;const AB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const FB=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:AB}))})),WB=(0,o.memo)((e=>{const{icon:t,description:n,prefixCls:o,className:i}=e,l=r().createElement("div",{className:`${o}-icon`},r().createElement(FB,null));return r().createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:a()(i,`${o}-content`)},t||n?r().createElement(r().Fragment,null,t&&r().createElement("div",{className:`${o}-icon`},t),n&&r().createElement("div",{className:`${o}-description`},n)):l)})),_B=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),VB=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r,calc:i}=e,a=new Yn("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${Et(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new Yn("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${Et(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),c=new Yn("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new Yn("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),u=new Yn("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new Yn("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0}}),f=new Yn("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${Et(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new Yn("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${Et(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),m=`${t}-group`;return[{[m]:{[`&${m}-top ${m}-wrap`]:qm(`${m}-wrap`,a,l,o,!0),[`&${m}-bottom ${m}-wrap`]:qm(`${m}-wrap`,u,d,o,!0),[`&${m}-left ${m}-wrap`]:qm(`${m}-wrap`,f,p,o,!0),[`&${m}-right ${m}-wrap`]:qm(`${m}-wrap`,c,s,o,!0)}},{[`${m}-wrap`]:{[`&${m}-wrap-enter, &${m}-wrap-appear`]:{opacity:0,animationTimingFunction:r},[`&${m}-wrap-leave`]:{opacity:1,animationTimingFunction:r}}}]},qB=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:l,floatButtonBodyPadding:c,zIndexPopupBase:s,calc:u}=e,d=`${n}-group`;return{[d]:Object.assign(Object.assign({},Ro(e)),{zIndex:s,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:o,minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,[`${d}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${d}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${d}-top > ${d}-wrap`]:{flexDirection:"column",top:"auto",bottom:u(o).add(r).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:r,bottom:u(r).mul(-1).equal()}},[`${d}-bottom > ${d}-wrap`]:{flexDirection:"column",top:u(o).add(r).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:r,top:u(r).mul(-1).equal()}},[`${d}-right > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:u(o).add(r).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:r,height:"100%",left:{_skip_check_:!0,value:u(r).mul(-1).equal()}}},[`${d}-left > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(o).add(r).equal()},"&::after":{content:'""',position:"absolute",width:r,height:"100%",right:{_skip_check_:!0,value:u(r).mul(-1).equal()}}},[`${d}-circle`]:{gap:r,[`${d}-wrap`]:{gap:r}},[`${d}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${d}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(c).add(l)).mul(-1).equal(),insetInlineEnd:u(u(c).add(l)).mul(-1).equal()}}},[`${d}-wrap`]:{borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}},[`${d}-top > ${d}-wrap, ${d}-bottom > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-left > ${d}-wrap, ${d}-right > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-circle-shadow`]:{boxShadow:"none"},[`${d}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},KB=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s,zIndexPopupBase:u,calc:d}=e;return{[n]:Object.assign(Object.assign({},Ro(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(l).mul(-1).equal(),insetInlineEnd:d(l).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${Et(d(o).div(2).equal())} ${Et(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Et(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Et(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},XB=fi("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,calc:u}=e,d=xo(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:a,floatButtonIconSize:u(l).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(s).mul(2)).equal(),floatButtonBodyPadding:s,badgeOffset:u(s).mul(1.5).equal()});return[qB(d),KB(d),Gm(e),VB(d)]}),(e=>({dotOffsetInCircle:_B(e.controlHeightLG/2),dotOffsetInSquare:_B(e.borderRadiusLG)})));var GB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const YB="float-btn",UB=r().forwardRef(((e,t)=>{const{prefixCls:n,className:i,rootClassName:l,style:c,type:s="default",shape:u="circle",icon:d,description:f,tooltip:p,htmlType:m="button",badge:g={}}=e,v=GB(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:h,direction:b}=(0,o.useContext)(Be),y=(0,o.useContext)(LB),C=h(YB,n),x=bl(C),[$,w,S]=XB(C,x),E=y||u,k=a()(w,S,x,C,i,l,`${C}-${s}`,`${C}-${E}`,{[`${C}-rtl`]:"rtl"===b}),[O]=tc("FloatButton",null===c||void 0===c?void 0:c.zIndex),I=Object.assign(Object.assign({},c),{zIndex:O}),N=Ce(g,["title","children","status","text"]),M=(0,o.useMemo)((()=>({prefixCls:C,description:f,icon:d,type:s})),[C,f,d,s]);let j=r().createElement("div",{className:`${C}-body`},r().createElement(WB,Object.assign({},M)));return"badge"in e&&(j=r().createElement(hx,Object.assign({},N),j)),"tooltip"in e&&(j=r().createElement(NC,{title:p,placement:"rtl"===b?"right":"left"},j)),$(e.href?r().createElement("a",Object.assign({ref:t},v,{className:k,style:I}),j):r().createElement("button",Object.assign({ref:t},v,{className:k,style:I,type:m}),j))}));const QB=UB;var ZB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const JB=r().forwardRef(((e,t)=>{const{prefixCls:n,className:i,type:l="default",shape:c="circle",visibilityHeight:s=400,icon:u=r().createElement(KC,null),target:d,onClick:f,duration:p=450}=e,m=ZB(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[g,v]=(0,o.useState)(0===s),h=r().useRef(null);r().useImperativeHandle(t,(()=>({nativeElement:h.current})));const b=()=>{var e;return(null===(e=h.current)||void 0===e?void 0:e.ownerDocument)||window},y=Pe((e=>{const t=vl(e.target);v(t>=s)}));(0,o.useEffect)((()=>{const e=(d||b)();return y({target:e}),null===e||void 0===e||e.addEventListener("scroll",y),()=>{y.cancel(),null===e||void 0===e||e.removeEventListener("scroll",y)}}),[d]);const C=e=>{hl(0,{getContainer:d||b,duration:p}),null===f||void 0===f||f(e)},{getPrefixCls:x}=(0,o.useContext)(Be),$=x(YB,n),w=x(),S=(0,o.useContext)(LB)||c,E=Object.assign({prefixCls:$,icon:u,type:l,shape:S},m);return r().createElement(Aa,{visible:g,motionName:`${w}-fade`},((e,t)=>{let{className:n}=e;return r().createElement(QB,Object.assign({ref:M(h,t)},E,{onClick:C,className:a()(i,n)}))}))}));const eH=JB;var tH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nH=e=>{var t;const{prefixCls:n,className:o,style:i,shape:l="circle",type:c="default",placement:s="top",icon:u=r().createElement(FB,null),closeIcon:d,description:f,trigger:p,children:m,onOpenChange:g,open:v,onClick:h}=e,b=tH(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:y,getPrefixCls:C,floatButtonGroup:x}=r().useContext(Be),$=null!==(t=null!==d&&void 0!==d?d:null===x||void 0===x?void 0:x.closeIcon)&&void 0!==t?t:r().createElement(qi,null),w=C(YB,n),S=bl(w),[E,k,O]=XB(w,S),I=`${w}-group`,N=p&&["click","hover"].includes(p),M=s&&["top","left","right","bottom"].includes(s),j=a()(I,k,O,S,o,{[`${I}-rtl`]:"rtl"===y,[`${I}-${l}`]:l,[`${I}-${l}-shadow`]:!N,[`${I}-${s}`]:N&&M}),[P]=tc("FloatButton",null===i||void 0===i?void 0:i.zIndex),R=Object.assign(Object.assign({},i),{zIndex:P}),z=a()(k,`${I}-wrap`),[T,B]=so(!1,{value:v}),H=r().useRef(null),D="hover"===p,L="click"===p,A=ao((e=>{T!==e&&(B(e),null===g||void 0===g||g(e))}));return r().useEffect((()=>{if(L){const e=e=>{var t;(null===(t=H.current)||void 0===t?void 0:t.contains(e.target))||A(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}}),[L]),E(r().createElement(DB,{value:l},r().createElement("div",{ref:H,className:j,style:R,onMouseEnter:()=>{D&&A(!0)},onMouseLeave:()=>{D&&A(!1)}},N?r().createElement(r().Fragment,null,r().createElement(Aa,{visible:T,motionName:`${I}-wrap`},(e=>{let{className:t}=e;return r().createElement("div",{className:a()(t,z)},m)})),r().createElement(QB,Object.assign({type:c,icon:T?$:u,description:f,"aria-label":e["aria-label"],className:`${I}-trigger`,onClick:e=>{L&&A(!T),null===h||void 0===h||h(e)}},b))):m)))};var oH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rH=e=>{var{backTop:t}=e,n=oH(e,["backTop"]);return t?o.createElement(eH,Object.assign({},n,{visibilityHeight:0})):o.createElement(QB,Object.assign({},n))},iH=e=>{var{className:t,items:n}=e,r=oH(e,["className","items"]);const{prefixCls:i}=r,{getPrefixCls:l}=o.useContext(Be),c=`${l(YB,i)}-pure`;return n?o.createElement(nH,Object.assign({className:a()(t,c)},r),n.map(((e,t)=>o.createElement(rH,Object.assign({key:t},e))))):o.createElement(rH,Object.assign({className:a()(t,c)},r))};QB.BackTop=eH,QB.Group=nH,QB._InternalPanelDoNotUseOrYouWillBeFired=iH;const aH=QB;function lH(e){const[t,n]=o.useState(e);return o.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const cH=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},sH=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Et(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),uH=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},dH=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ro(e)),sH(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},uH(e,e.controlHeightSM)),"&-large":Object.assign({},uH(e,e.controlHeightLG))})}},fH=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ym,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},pH=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},mH=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:o}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:o,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},gH=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),vH=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:gH(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},hH=e=>{const{componentCls:t,formItemCls:n,antCls:o}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${o}-col-24${n}-label,\n ${o}-col-xl-24${n}-label`]:gH(e)}},[`@media (max-width: ${Et(e.screenXSMax)})`]:[vH(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-xs-24${n}-label`]:gH(e)}}}],[`@media (max-width: ${Et(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-sm-24${n}-label`]:gH(e)}}},[`@media (max-width: ${Et(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-md-24${n}-label`]:gH(e)}}},[`@media (max-width: ${Et(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-lg-24${n}-label`]:gH(e)}}}}},bH=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:gH(e),[`@media (max-width: ${Et(e.screenXSMax)})`]:[vH(e),{[t]:{[`${n}-col-xs-24${t}-label`]:gH(e)}}],[`@media (max-width: ${Et(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:gH(e)}},[`@media (max-width: ${Et(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:gH(e)}},[`@media (max-width: ${Et(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:gH(e)}}}},yH=(e,t)=>xo(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),CH=fi("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=yH(e,n);return[dH(o),fH(o),cH(o),pH(o,o.componentCls),pH(o,o.formItemCls),mH(o),hH(o),bH(o),Qu(o),Ym]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),xH=[];function $H(e,t,n){return{key:"string"===typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const wH=e=>{let{help:t,helpStatus:n,errors:r=xH,warnings:i=xH,className:l,fieldId:c,onVisibleChanged:s}=e;const{prefixCls:u}=o.useContext(Jp),d=`${u}-item-explain`,f=bl(u),[p,m,g]=CH(u,f),v=(0,o.useMemo)((()=>Ss(u)),[u]),h=lH(r),b=lH(i),y=o.useMemo((()=>void 0!==t&&null!==t?[$H(t,"help",n)]:[].concat(Se(h.map(((e,t)=>$H(e,"error","error",t)))),Se(b.map(((e,t)=>$H(e,"warning","warning",t)))))),[t,n,h,b]),C={};return c&&(C.id=`${c}_help`),p(o.createElement(Aa,{motionDeadline:v.motionDeadline,motionName:`${u}-show-help`,visible:!!y.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return o.createElement("div",Object.assign({},C,{className:a()(d,t,g,f,l,m),style:n,role:"alert"}),o.createElement(La,Object.assign({keys:y},Ss(u),{motionName:`${u}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:i,style:l}=e;return o.createElement("div",{key:t,className:a()(i,{[`${d}-${r}`]:r}),style:l},n)})))})))},SH=["parentNode"];function EH(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function kH(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return SH.includes(n)?`form_item_${n}`:n}function OH(e,t,n,o,r,i){let a=o;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}function IH(e){return EH(e).join("_")}function NH(e){const[t]=Lp(),n=o.useRef({}),r=o.useMemo((()=>null!==e&&void 0!==e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const o=IH(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e,t){const n=k(t.getFieldInstance(e));if(n)return n;const o=kH(EH(e),t.__INTERNAL__.name);return o?document.getElementById(o):void 0}(e,r);n&&ml(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=IH(e);return n.current[t]}})),[e,t]);return[r]}var MH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jH=o.forwardRef(((e,t)=>{const n=o.useContext(Qc),{getPrefixCls:r,direction:i,form:l}=o.useContext(Be),{prefixCls:c,className:s,rootClassName:u,size:d,disabled:f=n,form:p,colon:m,labelAlign:g,labelWrap:v,labelCol:h,wrapperCol:b,hideRequiredMark:y,layout:C="horizontal",scrollToFirstError:x,requiredMark:$,onFinishFailed:w,name:S,style:E,feedbackIcons:k,variant:O}=e,I=MH(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=Bs(d),M=o.useContext(Rc);const j=(0,o.useMemo)((()=>void 0!==$?$:!y&&(!l||void 0===l.requiredMark||l.requiredMark)),[y,$,l]),P=null!==m&&void 0!==m?m:null===l||void 0===l?void 0:l.colon,R=r("form",c),z=bl(R),[T,B,H]=CH(R,z),D=a()(R,`${R}-${C}`,{[`${R}-hide-required-mark`]:!1===j,[`${R}-rtl`]:"rtl"===i,[`${R}-${N}`]:N},H,z,B,null===l||void 0===l?void 0:l.className,s,u),[L]=NH(p),{__INTERNAL__:A}=L;A.name=S;const F=(0,o.useMemo)((()=>({name:S,labelAlign:g,labelCol:h,labelWrap:v,wrapperCol:b,vertical:"vertical"===C,colon:P,requiredMark:j,itemRef:A.itemRef,form:L,feedbackIcons:k})),[S,g,h,b,C,P,j,L,k]),W=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},L),{nativeElement:null===(e=W.current)||void 0===e?void 0:e.nativeElement})}));const _=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n=e),L.scrollToField(t,n)}};return T(o.createElement(nm.Provider,{value:O},o.createElement(Uc,{disabled:f},o.createElement(es.Provider,{value:N},o.createElement(Zp,{validateMessages:M},o.createElement(Up.Provider,{value:F},o.createElement(Yp,Object.assign({id:S},I,{name:S,onFinishFailed:e=>{if(null===w||void 0===w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==x)return void _(x,t);l&&void 0!==l.scrollToFirstError&&_(l.scrollToFirstError,t)}},form:L,ref:W,style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),E),className:D}))))))))}));const PH=jH;const RH=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,o.useContext)(em);return{status:e,errors:t,warnings:n}};RH.Context=em;const zH=RH;var TH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function BH(e,t){const[n,r]=o.useState("string"===typeof e?e:"");return o.useEffect((()=>{(()=>{if("string"===typeof e&&r(e),"object"===typeof e)for(let n=0;n<Ay.length;n++){const o=Ay[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const HH=o.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:i,className:l,style:c,children:s,gutter:u=0,wrap:d}=e,f=TH(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:m}=o.useContext(Be),[g,v]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[h,b]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=BH(i,h),C=BH(r,h),x=o.useRef(u),$=Fy();o.useEffect((()=>{const e=$.subscribe((e=>{b(e);const t=x.current||0;(!Array.isArray(t)&&"object"===typeof t||Array.isArray(t)&&("object"===typeof t[0]||"object"===typeof t[1]))&&v(e)}));return()=>$.unsubscribe(e)}),[]);const w=p("row",n),[S,E,k]=VM(w),O=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"===typeof t)for(let o=0;o<Ay.length;o++){const r=Ay[o];if(g[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t})),e})(),I=a()(w,{[`${w}-no-wrap`]:!1===d,[`${w}-${C}`]:C,[`${w}-${y}`]:y,[`${w}-rtl`]:"rtl"===m},l,E,k),N={},M=null!=O[0]&&O[0]>0?O[0]/-2:void 0;M&&(N.marginLeft=M,N.marginRight=M);const[j,P]=O;N.rowGap=P;const R=o.useMemo((()=>({gutter:[j,P],wrap:d})),[j,P,d]);return S(o.createElement(FM.Provider,{value:R},o.createElement("div",Object.assign({},f,{className:I,style:Object.assign(Object.assign({},N),c),ref:t}),s)))}));const DH=HH,LH=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},AH=mi(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const o=yH(e,n);return[LH(o)]})),FH=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:l,warnings:c,_internalItemRender:s,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:m}=e,g=`${t}-item`,v=o.useContext(Up),h=r||v.wrapperCol||{},b=a()(`${g}-control`,h.className),y=o.useMemo((()=>Object.assign({},v)),[v]);delete y.labelCol,delete y.wrapperCol;const C=o.createElement("div",{className:`${g}-control-input`},o.createElement("div",{className:`${g}-control-input-content`},i)),x=o.useMemo((()=>({prefixCls:t,status:n})),[t,n]),$=null!==p||l.length||c.length?o.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},o.createElement(Jp.Provider,{value:x},o.createElement(wH,{fieldId:f,errors:l,warnings:c,help:d,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})),!!p&&o.createElement("div",{style:{width:0,height:p}})):null,w={};f&&(w.id=`${f}_extra`);const S=u?o.createElement("div",Object.assign({},w,{className:`${g}-extra`}),u):null,E=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:C,errorList:$,extra:S}):o.createElement(o.Fragment,null,C,$,S);return o.createElement(Up.Provider,{value:y},o.createElement(UM,Object.assign({},h,{className:b}),E),o.createElement(AH,{prefixCls:t}))};const WH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const _H=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:WH}))}));var VH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qH=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:l,colon:c,required:s,requiredMark:u,tooltip:d,vertical:f}=e;var p;const[m]=Es("Form"),{labelAlign:g,labelCol:v,labelWrap:h,colon:b}=o.useContext(Up);if(!n)return null;const y=i||v||{},C=l||g,x=`${t}-item-label`,$=a()(x,"left"===C&&`${x}-left`,y.className,{[`${x}-wrap`]:!!h});let w=n;const S=!0===c||!1!==b&&!1!==c;S&&!f&&"string"===typeof n&&n.trim()&&(w=n.replace(/[:|\uff1a]\s*$/,""));const E=function(e){return e?"object"!==typeof e||o.isValidElement(e)?{title:e}:e:null}(d);if(E){const{icon:e=o.createElement(_H,null)}=E,n=VH(E,["icon"]),r=o.createElement(NC,Object.assign({},n),o.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));w=o.createElement(o.Fragment,null,w,r)}const k="optional"===u,O="function"===typeof u;O?w=u(w,{required:!!s}):k&&!s&&(w=o.createElement(o.Fragment,null,w,o.createElement("span",{className:`${t}-item-optional`,title:""},(null===m||void 0===m?void 0:m.optional)||(null===(p=Ac.Form)||void 0===p?void 0:p.optional))));const I=a()({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:k||O,[`${t}-item-no-colon`]:!S});return o.createElement(UM,Object.assign({},y,{className:$}),o.createElement("label",{htmlFor:r,className:I,title:"string"===typeof n?n:""},w))},KH={success:Fi,warning:Xi,error:_i,validating:Yl};function XH(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:l,prefixCls:c,meta:s,noStyle:u}=e;const d=`${c}-item`,{feedbackIcons:f}=o.useContext(Up),p=OH(n,r,s,null,!!i,l),{isFormItemInput:m,status:g,hasFeedback:v,feedbackIcon:h}=o.useContext(em),b=o.useMemo((()=>{var e;let t;if(i){const l=!0!==i&&i.icons||f,c=p&&(null===(e=null===l||void 0===l?void 0:l({status:p,errors:n,warnings:r}))||void 0===e?void 0:e[p]),s=p&&KH[p];t=!1!==c&&s?o.createElement("span",{className:a()(`${d}-feedback-icon`,`${d}-feedback-icon-${p}`)},c||o.createElement(s,null)):null}const l={status:p||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:t,isFormItemInput:!0};return u&&(l.status=(null!==p&&void 0!==p?p:g)||"",l.isFormItemInput=m,l.hasFeedback=!!(null!==i&&void 0!==i?i:v),l.feedbackIcon=void 0!==i?l.feedbackIcon:h),l}),[p,i,u,m,g]);return o.createElement(em.Provider,{value:b},t)}var GH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function YH(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:l,errors:c,warnings:s,validateStatus:u,meta:d,hasFeedback:f,hidden:p,children:m,fieldId:g,required:v,isRequired:h,onSubItemMetaChange:b,layout:y}=e,C=GH(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),x=`${t}-item`,{requiredMark:$,vertical:w}=o.useContext(Up),S=w||"vertical"===y,E=o.useRef(null),k=lH(c),O=lH(s),I=void 0!==l&&null!==l,N=!!(I||c.length||s.length),M=!!E.current&&ks(E.current),[j,P]=o.useState(null);Rt((()=>{if(N&&E.current){const e=getComputedStyle(E.current);P(parseInt(e.marginBottom,10))}}),[N,M]);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return OH(e?k:d.errors,e?O:d.warnings,d,"",!!f,u)}(),z=a()(x,n,r,{[`${x}-with-help`]:I||k.length||O.length,[`${x}-has-feedback`]:R&&f,[`${x}-has-success`]:"success"===R,[`${x}-has-warning`]:"warning"===R,[`${x}-has-error`]:"error"===R,[`${x}-is-validating`]:"validating"===R,[`${x}-hidden`]:p,[`${x}-${y}`]:y});return o.createElement("div",{className:z,style:i,ref:E},o.createElement(DH,Object.assign({className:`${x}-row`},Ce(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(qH,Object.assign({htmlFor:g},e,{requiredMark:$,required:null!==v&&void 0!==v?v:h,prefixCls:t,vertical:S})),o.createElement(FH,Object.assign({},e,d,{errors:k,warnings:O,prefixCls:t,status:R,help:l,marginBottom:j,onErrorVisibleChanged:e=>{e||P(null)}}),o.createElement(Qp.Provider,{value:b},o.createElement(XH,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:f,validateStatus:R},m)))),!!j&&o.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-j}}))}const UH=o.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>{const o=e[n],r=t[n];return o===r||"function"===typeof o||"function"===typeof r}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const QH=function(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:f,label:p,messageVariables:m,trigger:g="onChange",validateTrigger:v,hidden:h,help:b,layout:y}=e,{getPrefixCls:C}=o.useContext(Be),{name:x}=o.useContext(Up),$=function(e){if("function"===typeof e)return e;const t=s(e);return t.length<=1?t[0]:t}(d),w="function"===typeof $,S=o.useContext(Qp),{validateTrigger:E}=o.useContext(Df),k=void 0!==v?v:E,O=!(void 0===t||null===t),I=C("form",l),N=bl(I),[j,R,z]=CH(I,N);Pl("Form.Item");const T=o.useContext(Lf),B=o.useRef(),[H,D]=function(e){const[t,n]=o.useState(e),r=(0,o.useRef)(null),i=(0,o.useRef)([]),a=(0,o.useRef)(!1);return o.useEffect((()=>(a.current=!1,()=>{a.current=!0,je.cancel(r.current),r.current=null})),[]),[t,function(e){a.current||(null===r.current&&(i.current=[],r.current=je((()=>{r.current=null,n((e=>{let t=e;return i.current.forEach((e=>{t=e(t)})),t}))}))),i.current.push(e))}]}({}),[L,A]=lo((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),F=(e,t)=>{D((n=>{const o=Object.assign({},n),r=[].concat(Se(e.name.slice(0,-1)),Se(t)).join("__SPLIT__");return e.destroy?delete o[r]:o[r]=e,o}))},[W,_]=o.useMemo((()=>{const e=Se(L.errors),t=Se(L.warnings);return Object.values(H).forEach((n=>{e.push.apply(e,Se(n.errors||[])),t.push.apply(t,Se(n.warnings||[]))})),[e,t]}),[H,L.errors,L.warnings]),V=function(){const{itemRef:e}=o.useContext(Up),t=o.useRef({});return function(n,o){const r=o&&"object"===typeof o&&o.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===r||(t.current.name=i,t.current.originRef=r,t.current.ref=M(e(n),r)),t.current.ref}}();function q(t,i,l){return n&&!h?o.createElement(XH,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:L,errors:W,warnings:_,noStyle:!0},t):o.createElement(YH,Object.assign({key:"row"},e,{className:a()(r,z,N,R),prefixCls:I,fieldId:i,isRequired:l,errors:W,warnings:_,meta:L,onSubItemMetaChange:F,layout:y}),t)}if(!O&&!w&&!i)return j(q($));let K={};return"string"===typeof p?K.label=p:t&&(K.label=String(t)),m&&(K=Object.assign(Object.assign({},K),m)),j(o.createElement(jp,Object.assign({},e,{messageVariables:K,trigger:g,validateTrigger:k,onMetaChange:e=>{const t=null===T||void 0===T?void 0:T.getKey(e.name);if(A(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==b&&S){let n=e.name;if(e.destroy)n=B.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat(Se(o)),B.current=n}S(e,n)}}}),((n,r,a)=>{const l=EH(t).length&&r?r.name:[],s=kH(l,x),d=void 0!==f?f:!!(null===u||void 0===u?void 0:u.some((e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(a);return(null===t||void 0===t?void 0:t.required)&&!(null===t||void 0===t?void 0:t.warningOnly)}return!1}))),p=Object.assign({},n);let m=null;if(Array.isArray($)&&O)m=$;else if(w&&(!c&&!i||O));else if(!i||w||O)if(o.isValidElement($)){const t=Object.assign(Object.assign({},$.props),p);if(t.id||(t.id=s),b||W.length>0||_.length>0||e.extra){const n=[];(b||W.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}W.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),P($)&&(t.ref=V(l,$));new Set([].concat(Se(EH(g)),Se(EH(k)))).forEach((e=>{t[e]=function(){for(var t,n,o,r,i,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];null===(o=p[e])||void 0===o||(t=o).call.apply(t,[p].concat(l)),null===(i=(r=$.props)[e])||void 0===i||(n=i).call.apply(n,[r].concat(l))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=o.createElement(UH,{control:p,update:$,childProps:n},Ka($,t))}else m=w&&(c||i)&&!O?$(a):$;else;return q(m,s,d)})))};QH.useStatus=zH;const ZH=QH;var JH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const eD=e=>{var{prefixCls:t,children:n}=e,r=JH(e,["prefixCls","children"]);const{getPrefixCls:i}=o.useContext(Be),a=i("form",t),l=o.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return o.createElement(Pp,Object.assign({},r),((e,t,r)=>o.createElement(Jp.Provider,{value:l},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const tD=PH;tD.Item=ZH,tD.List=eD,tD.ErrorList=wH,tD.useForm=NH,tD.useFormInstance=function(){const{form:e}=(0,o.useContext)(Up);return e},tD.useWatch=Xp,tD.Provider=Zp,tD.create=()=>{};const nD=tD;const oD={useBreakpoint:function(){return Vy()}};function rD(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function iD(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function aD(e,t,n,o){var r=S().unstable_batchedUpdates?function(e){S().unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}var lD=o.createContext(null);const cD=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,l=e.rootClassName,c=e.icons,s=e.countRender,u=e.showSwitch,d=e.showProgress,f=e.current,p=e.transform,m=e.count,g=e.scale,v=e.minScale,h=e.maxScale,b=e.closeIcon,y=e.onActive,x=e.onClose,w=e.onZoomIn,S=e.onZoomOut,E=e.onRotateRight,k=e.onRotateLeft,O=e.onFlipX,I=e.onFlipY,N=e.onReset,M=e.toolbarRender,j=e.zIndex,P=e.image,R=(0,o.useContext)(lD),z=c.rotateLeft,T=c.rotateRight,B=c.zoomIn,H=c.zoomOut,D=c.close,L=c.left,A=c.right,F=c.flipX,W=c.flipY,_="".concat(i,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===zl.ESC&&x()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var V=function(e,t){e.preventDefault(),e.stopPropagation(),y(t)},q=o.useCallback((function(e){var t=e.type,n=e.disabled,r=e.onClick,l=e.icon;return o.createElement("div",{key:t,className:a()(_,"".concat(i,"-operations-operation-").concat(t),C({},"".concat(i,"-operations-operation-disabled"),!!n)),onClick:r},l)}),[_,i]),K=u?q({icon:L,onClick:function(e){return V(e,-1)},type:"prev",disabled:0===f}):void 0,X=u?q({icon:A,onClick:function(e){return V(e,1)},type:"next",disabled:f===m-1}):void 0,G=q({icon:W,onClick:I,type:"flipY"}),Y=q({icon:F,onClick:O,type:"flipX"}),U=q({icon:z,onClick:k,type:"rotateLeft"}),Q=q({icon:T,onClick:E,type:"rotateRight"}),Z=q({icon:H,onClick:S,type:"zoomOut",disabled:g<=v}),J=q({icon:B,onClick:w,type:"zoomIn",disabled:g===h}),ee=o.createElement("div",{className:"".concat(i,"-operations")},G,Y,U,Q,Z,J);return o.createElement(Aa,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return o.createElement(bf,{open:!0,getContainer:null!==r&&void 0!==r?r:document.body},o.createElement("div",{className:a()("".concat(i,"-operations-wrapper"),t,l),style:$($({},n),{},{zIndex:j})},null===b?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:x},b||D),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:a()("".concat(i,"-switch-left"),C({},"".concat(i,"-switch-left-disabled"),0===f)),onClick:function(e){return V(e,-1)}},L),o.createElement("div",{className:a()("".concat(i,"-switch-right"),C({},"".concat(i,"-switch-right-disabled"),f===m-1)),onClick:function(e){return V(e,1)}},A)),o.createElement("div",{className:"".concat(i,"-footer")},d&&o.createElement("div",{className:"".concat(i,"-progress")},s?s(f+1,m):"".concat(f+1," / ").concat(m)),M?M(ee,$($({icons:{prevIcon:K,nextIcon:X,flipYIcon:G,flipXIcon:Y,rotateLeftIcon:U,rotateRightIcon:Q,zoomOutIcon:Z,zoomInIcon:J},actions:{onActive:y,onFlipY:I,onFlipX:O,onRotateLeft:k,onRotateRight:E,onZoomOut:S,onZoomIn:w,onReset:N,onClose:x},transform:p},R?{current:f,total:m}:{}),{},{image:P})):ee)))}))};var sD={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function uD(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return C({},e,i);if(t<0&&r<o)return C({},e,-i)}else if(t<0||r>o)return C({},e,t<0?i:-i);return{}}function dD(e,t,n,o){var r=rD(),i=r.width,a=r.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=$($({},uD("x",n,e,i)),uD("y",o,t,a))),l}function fD(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=Ae((0,o.useState)(n?"loading":"normal"),2),a=i[0],l=i[1],c=(0,o.useRef)(!1),s="error"===a;(0,o.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&l("error")})),function(){e=!1}}),[t]),(0,o.useEffect)((function(){n&&!c.current?l("loading"):s&&l("normal")}),[t]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!==e&&void 0!==e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&r?{src:r}:{onLoad:u,src:t},a]}function pD(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function mD(e,t,n,r,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=Ae((0,o.useState)(!1),2),p=f[0],m=f[1],g=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(e){g.current=$($({},g.current),e)};return(0,o.useEffect)((function(){var e;return n&&t&&(e=aD(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:p,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?v({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):v({point1:{x:o[0].clientX-u,y:o[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=g.current,r=o.point1,i=o.point2,c=o.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,o){var r=pD(e,n),i=pD(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,i,s,u),f=Ae(d,2),p=f[0],m=f[1],h=pD(s,u)/pD(r,i);l(h,"touchZoom",p,m,!0),v({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),v({eventType:"move"}))},onTouchEnd:function(){if(n){if(p&&m(!1),v({eventType:"none"}),r>s)return a({x:0,y:0,scale:r},"touchZoom");var t=e.current.offsetWidth*s,o=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,d=c%180!==0,f=dD(d?o:t,d?t:o,l,u);f&&a($({},f),"dragRebound")}}}}var gD=["fallback","src","imgRef"],vD=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],hD=function(e){var t=e.fallback,n=e.src,o=e.imgRef,i=Si(e,gD),a=Ae(fD({src:n,fallback:t}),2),c=a[0],s=a[1];return r().createElement("img",l({ref:function(e){o.current=e,c(e)}},i,s))};const bD=function(e){var t=e.prefixCls,n=e.src,i=e.alt,c=e.imageInfo,s=e.fallback,u=e.movable,d=void 0===u||u,f=e.onClose,p=e.visible,m=e.icons,g=void 0===m?{}:m,v=e.rootClassName,h=e.closeIcon,b=e.getContainer,y=e.current,x=void 0===y?0:y,w=e.count,S=void 0===w?1:w,E=e.countRender,k=e.scaleStep,O=void 0===k?.5:k,I=e.minScale,N=void 0===I?1:I,M=e.maxScale,j=void 0===M?50:M,P=e.transitionName,R=void 0===P?"zoom":P,z=e.maskTransitionName,T=void 0===z?"fade":z,B=e.imageRender,H=e.imgCommonProps,D=e.toolbarRender,L=e.onTransform,A=e.onChange,F=Si(e,vD),W=(0,o.useRef)(),_=(0,o.useContext)(lD),V=_&&S>1,q=_&&S>=1,K=Ae((0,o.useState)(!0),2),X=K[0],G=K[1],Y=function(e,t,n,r){var i=(0,o.useRef)(null),a=(0,o.useRef)([]),l=Ae((0,o.useState)(sD),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=je((function(){s((function(e){var n=e;return a.current.forEach((function(e){n=$($({},n),e)})),i.current=null,null===r||void 0===r||r({transform:n,action:t}),n}))}))),a.current.push($($({},c),e))};return{transform:c,resetTransform:function(e){s(sD),et(sD,c)||null===r||void 0===r||r({transform:sD,action:e})},updateTransform:u,dispatchZoomChange:function(o,r,i,a,l){var s=e.current,d=s.width,f=s.height,p=s.offsetWidth,m=s.offsetHeight,g=s.offsetLeft,v=s.offsetTop,h=o,b=c.scale*o;b>n?(b=n,h=n/c.scale):b<t&&(h=(b=l?b:t)/c.scale);var y=null!==i&&void 0!==i?i:innerWidth/2,C=null!==a&&void 0!==a?a:innerHeight/2,x=h-1,$=x*d*.5,w=x*f*.5,S=x*(y-c.x-g),E=x*(C-c.y-v),k=c.x-(S-$),O=c.y-(E-w);if(o<1&&1===b){var I=p*b,N=m*b,M=rD(),j=M.width,P=M.height;I<=j&&N<=P&&(k=0,O=0)}u({x:k,y:O,scale:b},r)}}}(W,N,j,L),U=Y.transform,Q=Y.resetTransform,Z=Y.updateTransform,J=Y.dispatchZoomChange,ee=function(e,t,n,r,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=Ae((0,o.useState)(!1),2),p=f[0],m=f[1],g=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(e){n&&p&&a({x:e.pageX-g.current.diffX,y:e.pageY-g.current.diffY},"move")},h=function(){if(n&&p){m(!1);var t=g.current,o=t.transformX,r=t.transformY;if(u===o||d===r)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,f=e.current.getBoundingClientRect(),v=f.left,h=f.top,b=c%180!==0,y=dD(b?l:i,b?i:l,v,h);y&&a($({},y),"dragRebound")}};return(0,o.useEffect)((function(){var e,n,o,r;if(t){o=aD(window,"mouseup",h,!1),r=aD(window,"mousemove",v,!1);try{window.top!==window.self&&(e=aD(window.top,"mouseup",h,!1),n=aD(window.top,"mousemove",v,!1))}catch(i){"[rc-image] ".concat(i)}}return function(){var t,i,a,l;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=n)||void 0===l||l.remove()}}),[n,p,u,d,c,t]),{isMoving:p,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),g.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},m(!0))},onMouseMove:v,onMouseUp:h,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),o=1+Math.min(t,1)*r;e.deltaY>0&&(o=1/o),l(o,"wheel",e.clientX,e.clientY)}}}}(W,d,p,O,U,Z,J),te=ee.isMoving,ne=ee.onMouseDown,oe=ee.onWheel,re=mD(W,d,p,N,U,Z,J),ie=re.isTouching,ae=re.onTouchStart,le=re.onTouchMove,ce=re.onTouchEnd,se=U.rotate,ue=U.scale,de=a()(C({},"".concat(t,"-moving"),te));(0,o.useEffect)((function(){X||G(!0)}),[X]);var fe=function(e){var t=x+e;!Number.isInteger(t)||t<0||t>S-1||(G(!1),Q(e<0?"prev":"next"),null===A||void 0===A||A(t,x))},pe=function(e){p&&V&&(e.keyCode===zl.LEFT?fe(-1):e.keyCode===zl.RIGHT&&fe(1))};(0,o.useEffect)((function(){var e=aD(window,"keydown",pe,!1);return function(){e.remove()}}),[p,V,x]);var me=r().createElement(hD,l({},H,{width:e.width,height:e.height,imgRef:W,className:"".concat(t,"-img"),alt:i,style:{transform:"translate3d(".concat(U.x,"px, ").concat(U.y,"px, 0) scale3d(").concat(U.flipX?"-":"").concat(ue,", ").concat(U.flipY?"-":"").concat(ue,", 1) rotate(").concat(se,"deg)"),transitionDuration:(!X||ie)&&"0s"},fallback:s,src:n,onWheel:oe,onMouseDown:ne,onDoubleClick:function(e){p&&(1!==ue?Z({x:0,y:0,scale:1},"doubleClick"):J(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ae,onTouchMove:le,onTouchEnd:ce,onTouchCancel:ce})),ge=$({url:n,alt:i},c);return r().createElement(r().Fragment,null,r().createElement(Tf,l({transitionName:R,maskTransitionName:T,closable:!1,keyboard:!0,prefixCls:t,onClose:f,visible:p,classNames:{wrapper:de},rootClassName:v,getContainer:b},F,{afterClose:function(){Q("close")}}),r().createElement("div",{className:"".concat(t,"-img-wrapper")},B?B(me,$({transform:U,image:ge},_?{current:x}:{})):me)),r().createElement(cD,{visible:p,transform:U,maskTransitionName:T,closeIcon:h,getContainer:b,prefixCls:t,rootClassName:v,icons:g,countRender:E,showSwitch:V,showProgress:q,current:x,count:S,scale:ue,minScale:N,maxScale:j,toolbarRender:D,onActive:fe,onZoomIn:function(){J(1+O,"zoomIn")},onZoomOut:function(){J(1/(1+O),"zoomOut")},onRotateRight:function(){Z({rotate:se+90},"rotateRight")},onRotateLeft:function(){Z({rotate:se-90},"rotateLeft")},onFlipX:function(){Z({flipX:!U.flipX},"flipX")},onFlipY:function(){Z({flipY:!U.flipY},"flipY")},onClose:f,onReset:function(){Q("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:ge}))};var yD=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var CD=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],xD=["src"];const $D=function(e){var t,n=e.previewPrefixCls,r=void 0===n?"rc-image-preview":n,i=e.children,a=e.icons,c=void 0===a?{}:a,s=e.items,u=e.preview,d=e.fallback,f="object"===b(u)?u:{},p=f.visible,m=f.onVisibleChange,g=f.getContainer,v=f.current,h=f.movable,y=f.minScale,x=f.maxScale,w=f.countRender,S=f.closeIcon,E=f.onChange,k=f.onTransform,O=f.toolbarRender,I=f.imageRender,N=Si(f,CD),M=function(e){var t=Ae(o.useState({}),2),n=t[0],r=t[1],i=o.useCallback((function(e,t){return r((function(n){return $($({},n),{},C({},e,t))})),function(){r((function(t){var n=$({},t);return delete n[e],n}))}}),[]);return[o.useMemo((function(){return e?e.map((function(e){if("string"===typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Se(yD)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var o=n[t],r=o.canPreview,i=o.data;return r&&e.push({data:i,id:t}),e}),[])}),[e,n]),i,!!e]}(s),j=Ae(M,3),P=j[0],R=j[1],z=j[2],T=Ae(so(0,{value:v}),2),B=T[0],H=T[1],D=Ae((0,o.useState)(!1),2),L=D[0],A=D[1],F=(null===(t=P[B])||void 0===t?void 0:t.data)||{},W=F.src,_=Si(F,xD),V=Ae(so(!!p,{value:p,onChange:function(e,t){null===m||void 0===m||m(e,t,B)}}),2),q=V[0],K=V[1],X=Ae((0,o.useState)(null),2),G=X[0],Y=X[1],U=o.useCallback((function(e,t,n,o){var r=z?P.findIndex((function(e){return e.data.src===t})):P.findIndex((function(t){return t.id===e}));H(r<0?0:r),K(!0),Y({x:n,y:o}),A(!0)}),[P,z]);o.useEffect((function(){q?L||H(0):A(!1)}),[q]);var Q=o.useMemo((function(){return{register:R,onPreview:U}}),[R,U]);return o.createElement(lD.Provider,{value:Q},i,o.createElement(bD,l({"aria-hidden":!q,movable:h,visible:q,prefixCls:r,closeIcon:S,onClose:function(){K(!1),Y(null)},mousePosition:G,imgCommonProps:_,src:W,fallback:d,icons:c,minScale:y,maxScale:x,getContainer:g,current:B,count:P.length,countRender:w,onTransform:k,toolbarRender:O,imageRender:I,onChange:function(e,t){H(e),null===E||void 0===E||E(e,t)}},N)))};var wD=0;var SD=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ED=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],kD=function(e){var t=e.src,n=e.alt,r=e.onPreviewClose,i=e.prefixCls,c=void 0===i?"rc-image":i,s=e.previewPrefixCls,u=void 0===s?"".concat(c,"-preview"):s,d=e.placeholder,f=e.fallback,p=e.width,m=e.height,g=e.style,v=e.preview,h=void 0===v||v,y=e.className,x=e.onClick,w=e.onError,S=e.wrapperClassName,E=e.wrapperStyle,k=e.rootClassName,O=Si(e,SD),I=d&&!0!==d,N="object"===b(h)?h:{},M=N.src,j=N.visible,P=void 0===j?void 0:j,R=N.onVisibleChange,z=void 0===R?r:R,T=N.getContainer,B=void 0===T?void 0:T,H=N.mask,D=N.maskClassName,L=N.movable,A=N.icons,F=N.scaleStep,W=N.minScale,_=N.maxScale,V=N.imageRender,q=N.toolbarRender,K=Si(N,ED),X=null!==M&&void 0!==M?M:t,G=Ae(so(!!P,{value:P,onChange:z}),2),Y=G[0],U=G[1],Q=Ae(fD({src:t,isCustomPlaceholder:I,fallback:f}),3),Z=Q[0],J=Q[1],ee=Q[2],te=Ae((0,o.useState)(null),2),ne=te[0],oe=te[1],re=(0,o.useContext)(lD),ie=!!h,ae=a()(c,S,k,C({},"".concat(c,"-error"),"error"===ee)),le=(0,o.useMemo)((function(){var t={};return yD.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),yD.map((function(t){return e[t]}))),ce=function(e,t){var n=Ae(o.useState((function(){return String(wD+=1)})),1)[0],r=o.useContext(lD),i={data:t,canPreview:e};return o.useEffect((function(){if(r)return r.register(n,i)}),[]),o.useEffect((function(){r&&r.register(n,i)}),[e,t]),n}(ie,(0,o.useMemo)((function(){return $($({},le),{},{src:X})}),[X,le]));return o.createElement(o.Fragment,null,o.createElement("div",l({},O,{className:ae,onClick:ie?function(e){var t=iD(e.target),n=t.left,o=t.top;re?re.onPreview(ce,X,n,o):(oe({x:n,y:o}),U(!0)),null===x||void 0===x||x(e)}:x,style:$({width:p,height:m},E)}),o.createElement("img",l({},le,{className:a()("".concat(c,"-img"),C({},"".concat(c,"-img-placeholder"),!0===d),y),style:$({height:m},g),ref:Z},J,{width:p,height:m,onError:w})),"loading"===ee&&o.createElement("div",{"aria-hidden":"true",className:"".concat(c,"-placeholder")},d),H&&ie&&o.createElement("div",{className:a()("".concat(c,"-mask"),D),style:{display:"none"===(null===g||void 0===g?void 0:g.display)?"none":void 0}},H)),!re&&ie&&o.createElement(bD,l({"aria-hidden":!Y,visible:Y,prefixCls:u,onClose:function(){U(!1),oe(null)},mousePosition:ne,src:X,alt:n,imageInfo:{width:p,height:m},fallback:f,getContainer:B,icons:A,movable:L,scaleStep:F,minScale:W,maxScale:_,rootClassName:k,imageRender:V,imgCommonProps:le,toolbarRender:q},K)))};kD.PreviewGroup=$D;const OD=kD;const ID={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const ND=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:ID}))}));const MD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const jD=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:MD}))}));const PD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};const RD=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:PD}))}));const zD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const TD=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:zD}))}));const BD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const HD=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:BD}))})),DD=e=>({position:e||"absolute",inset:0}),LD=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Fr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Po),{padding:`0 ${Et(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},AD=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Fr(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Et(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},FD=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,l=new Fr(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},WD=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},DD()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},DD()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[AD(e),FD(e)]}]},_D=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},LD(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},DD())}}},VD=e=>{const{previewCls:t}=e;return{[`${t}-root`]:cg(e,"zoom"),"&":Gm(e,!0)}},qD=fi("Image",(e=>{const t=`${e.componentCls}-preview`,n=xo(e,{previewCls:t,modalMaskBg:new Fr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[_D(n),WD(n),ug(xo(n,{componentCls:t})),VD(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Fr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Fr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Fr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var KD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XD={rotateLeft:o.createElement(ND,null),rotateRight:o.createElement(jD,null),zoomIn:o.createElement(TD,null),zoomOut:o.createElement(HD,null),close:o.createElement(qi,null),left:o.createElement(G$,null),right:o.createElement(Du,null),flipX:o.createElement(RD,null),flipY:o.createElement(RD,{rotate:90})};var GD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const YD=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:l,style:c}=e,s=GD(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:u,locale:d=Ac,getPopupContainer:f,image:p}=o.useContext(Be),m=u("image",n),g=u(),v=d.Image||Ac.Image,h=bl(m),[b,y,C]=qD(m,h),x=a()(l,y,C,h),$=a()(i,y,null===p||void 0===p?void 0:p.className),[w]=tc("ImagePreview","object"===typeof r?r.zIndex:void 0),S=o.useMemo((()=>{var e;if(!1===r)return r;const t="object"===typeof r?r:{},{getContainer:n,closeIcon:i}=t,a=GD(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${m}-mask-info`},o.createElement(nR,null),null===v||void 0===v?void 0:v.preview),icons:XD},a),{getContainer:null!==n&&void 0!==n?n:f,transitionName:ws(g,"zoom",t.transitionName),maskTransitionName:ws(g,"fade",t.maskTransitionName),zIndex:w,closeIcon:null!==i&&void 0!==i?i:null===(e=null===p||void 0===p?void 0:p.preview)||void 0===e?void 0:e.closeIcon})}),[r,v,null===(t=null===p||void 0===p?void 0:p.preview)||void 0===t?void 0:t.closeIcon]),E=Object.assign(Object.assign({},null===p||void 0===p?void 0:p.style),c);return b(o.createElement(OD,Object.assign({prefixCls:m,preview:S,rootClassName:x,className:$,style:E},s)))};YD.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=KD(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(Be),l=i("image",t),c=`${l}-preview`,s=i(),u=bl(l),[d,f,p]=qD(l,u),[m]=tc("ImagePreview","object"===typeof n?n.zIndex:void 0),g=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"===typeof n?n:{},o=a()(f,p,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:ws(s,"zoom",t.transitionName),maskTransitionName:ws(s,"fade",t.maskTransitionName),rootClassName:o,zIndex:m})}),[n]);return d(o.createElement(OD.PreviewGroup,Object.assign({preview:g,previewPrefixCls:c,icons:XD},r)))};const UD=YD;var QD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function ZD(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef(((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r))))}const JD=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:l}=e,c=QD(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=o.useContext(Be),u=s("layout",n),[d,f,p]=ew(u),m=r?`${u}-${r}`:u;return d(o.createElement(l,Object.assign({className:a()(n||m,i,f,p),ref:t},c)))})),eL=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(Be),[r,i]=o.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:f,tagName:p,style:m}=e,g=Ce(QD(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:v,layout:h}=o.useContext(Be),b=v("layout",l),y=function(e,t,n){return"boolean"===typeof n?n:!!e.length||s(t).some((e=>e.type===cw))}(r,d,f),[C,x,$]=ew(b),w=a()(b,{[`${b}-has-sider`]:y,[`${b}-rtl`]:"rtl"===n},null===h||void 0===h?void 0:h.className,c,u,x,$),S=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Se(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return C(o.createElement(U$.Provider,{value:S},o.createElement(p,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},null===h||void 0===h?void 0:h.style),m)},g),d)))})),tL=ZD({tagName:"div",displayName:"Layout"})(eL),nL=ZD({suffixCls:"header",tagName:"header",displayName:"Header"})(JD),oL=ZD({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(JD),rL=ZD({suffixCls:"content",tagName:"main",displayName:"Content"})(JD),iL=tL;iL.Header=nL,iL.Footer=oL,iL.Content=rL,iL.Sider=cw,iL._InternalSiderContext=iw;const aL=iL,lL=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e};const cL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const sL=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:cL}))}));const uL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const dL=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:uL}))}));const fL={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};var pL=["10","20","50","100"];const mL=function(e){var t=e.pageSizeOptions,n=void 0===t?pL:t,o=e.locale,i=e.changeSize,c=e.pageSize,s=e.goButton,u=e.quickGo,d=e.rootPrefixCls,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.disabled,g=e.buildOptionText,v=e.showSizeChanger,h=Ae(r().useState(""),2),y=h[0],C=h[1],x=function(){return!y||Number.isNaN(y)?void 0:Number(y)},$="function"===typeof g?g:function(e){return"".concat(e," ").concat(o.items_per_page)},w=function(e){""!==y&&(e.keyCode!==zl.ENTER&&"click"!==e.type||(C(""),null===u||void 0===u||u(x())))},S="".concat(d,"-options");if(!v&&!u)return null;var E=null,k=null,O=null;if(v&&f){var I="object"===b(v)?v:{},N=I.options,M=I.className,j=N?void 0:(n.some((function(e){return e.toString()===c.toString()}))?n:n.concat([c.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r().createElement(f.Option,{key:t,value:e.toString()},$(e))}));E=r().createElement(f,l({disabled:m,prefixCls:p,showSearch:!1,optionLabelProp:N?"label":"children",popupMatchSelectWidth:!1,value:(c||n[0]).toString(),getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},"object"===b(v)?v:null,{className:a()("".concat(S,"-size-changer"),M),options:N,onChange:function(e,t){var n;null===i||void 0===i||i(Number(e)),"object"===b(v)&&(null===(n=v.onChange)||void 0===n||n.call(v,e,t))}}),j)}return u&&(s&&(O="boolean"===typeof s?r().createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:m,className:"".concat(S,"-quick-jumper-button")},o.jump_to_confirm):r().createElement("span",{onClick:w,onKeyUp:w},s)),k=r().createElement("div",{className:"".concat(S,"-quick-jumper")},o.jump_to,r().createElement("input",{disabled:m,type:"text",value:y,onChange:function(e){C(e.target.value)},onKeyUp:w,onBlur:function(e){s||""===y||(C(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null===u||void 0===u||u(x()))},"aria-label":o.page}),o.page,O)),r().createElement("li",{className:S},E,k)};const gL=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,i=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(t,"-item"),f=a()(d,"".concat(d,"-").concat(n),C(C({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!n),i),p=u(n,"page",r().createElement("a",{rel:"nofollow"},n));return p?r().createElement("li",{title:l?String(n):null,className:f,onClick:function(){c(n)},onKeyDown:function(e){s(e,c,n)},tabIndex:0},p):null};var vL=function(e,t,n){return n};function hL(){}function bL(e){var t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function yL(e,t,n){var o="undefined"===typeof e?t:e;return Math.floor((n-1)/o)+1}const CL=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,i=e.selectPrefixCls,c=void 0===i?"rc-select":i,s=e.className,u=e.selectComponentClass,d=e.current,f=e.defaultCurrent,p=void 0===f?1:f,m=e.total,g=void 0===m?0:m,v=e.pageSize,h=e.defaultPageSize,y=void 0===h?10:h,x=e.onChange,w=void 0===x?hL:x,S=e.hideOnSinglePage,E=e.align,k=e.showPrevNextJumpers,O=void 0===k||k,I=e.showQuickJumper,N=e.showLessItems,M=e.showTitle,j=void 0===M||M,P=e.onShowSizeChange,R=void 0===P?hL:P,z=e.locale,T=void 0===z?fL:z,B=e.style,H=e.totalBoundaryShowSizeChanger,D=void 0===H?50:H,L=e.disabled,A=e.simple,F=e.showTotal,W=e.showSizeChanger,_=void 0===W?g>D:W,V=e.pageSizeOptions,q=e.itemRender,K=void 0===q?vL:q,X=e.jumpPrevIcon,G=e.jumpNextIcon,Y=e.prevIcon,U=e.nextIcon,Q=r().useRef(null),Z=Ae(so(10,{value:v,defaultValue:y}),2),J=Z[0],ee=Z[1],te=Ae(so(1,{value:d,defaultValue:p,postState:function(e){return Math.max(1,Math.min(e,yL(void 0,J,g)))}}),2),ne=te[0],oe=te[1],re=Ae(r().useState(ne),2),ie=re[0],ae=re[1];(0,o.useEffect)((function(){ae(ne)}),[ne]);var le=Math.max(1,ne-(N?3:5)),ce=Math.min(yL(void 0,J,g),ne+(N?3:5));function se(t,o){var i=t||r().createElement("button",{type:"button","aria-label":o,className:"".concat(n,"-item-link")});return"function"===typeof t&&(i=r().createElement(t,$({},e))),i}function ue(e){var t=e.target.value,n=yL(void 0,J,g);return""===t?t:Number.isNaN(Number(t))?ie:t>=n?n:Number(t)}var de=g>J&&I;function fe(e){var t=ue(e);switch(t!==ie&&ae(t),e.keyCode){case zl.ENTER:pe(t);break;case zl.UP:pe(t-1);break;case zl.DOWN:pe(t+1)}}function pe(e){if(function(e){return bL(e)&&e!==ne&&bL(g)&&g>0}(e)&&!L){var t=yL(void 0,J,g),n=e;return e>t?n=t:e<1&&(n=1),n!==ie&&ae(n),oe(n),null===w||void 0===w||w(n,J),n}return ne}var me=ne>1,ge=ne<yL(void 0,J,g);function ve(){me&&pe(ne-1)}function he(){ge&&pe(ne+1)}function be(){pe(le)}function ye(){pe(ce)}function Ce(e,t){if("Enter"===e.key||e.charCode===zl.ENTER||e.keyCode===zl.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function xe(e){"click"!==e.type&&e.keyCode!==zl.ENTER||pe(ie)}var $e=null,we=_a(e,{aria:!0,data:!0}),Se=F&&r().createElement("li",{className:"".concat(n,"-total-text")},F(g,[0===g?0:(ne-1)*J+1,ne*J>g?g:ne*J])),Ee=null,ke=yL(void 0,J,g);if(S&&g<=J)return null;var Oe=[],Ie={rootPrefixCls:n,onClick:pe,onKeyPress:Ce,showTitle:j,itemRender:K,page:-1},Ne=ne-1>0?ne-1:0,Me=ne+1<ke?ne+1:ke,je=I&&I.goButton,Pe="object"===b(A)?A.readOnly:!A,Re=je,ze=null;A&&(je&&(Re="boolean"===typeof je?r().createElement("button",{type:"button",onClick:xe,onKeyUp:xe},T.jump_to_confirm):r().createElement("span",{onClick:xe,onKeyUp:xe},je),Re=r().createElement("li",{title:j?"".concat(T.jump_to).concat(ne,"/").concat(ke):null,className:"".concat(n,"-simple-pager")},Re)),ze=r().createElement("li",{title:j?"".concat(ne,"/").concat(ke):null,className:"".concat(n,"-simple-pager")},Pe?ie:r().createElement("input",{type:"text",value:ie,disabled:L,onKeyDown:function(e){e.keyCode!==zl.UP&&e.keyCode!==zl.DOWN||e.preventDefault()},onKeyUp:fe,onChange:fe,onBlur:function(e){pe(ue(e))},size:3}),r().createElement("span",{className:"".concat(n,"-slash")},"/"),ke));var Te=N?1:2;if(ke<=3+2*Te){ke||Oe.push(r().createElement(gL,l({},Ie,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Be=1;Be<=ke;Be+=1)Oe.push(r().createElement(gL,l({},Ie,{key:Be,page:Be,active:ne===Be})))}else{var He=N?T.prev_3:T.prev_5,De=N?T.next_3:T.next_5,Le=K(le,"jump-prev",se(X,"prev page")),Fe=K(ce,"jump-next",se(G,"next page"));O&&($e=Le?r().createElement("li",{title:j?He:null,key:"prev",onClick:be,tabIndex:0,onKeyDown:function(e){Ce(e,be)},className:a()("".concat(n,"-jump-prev"),C({},"".concat(n,"-jump-prev-custom-icon"),!!X))},Le):null,Ee=Fe?r().createElement("li",{title:j?De:null,key:"next",onClick:ye,tabIndex:0,onKeyDown:function(e){Ce(e,ye)},className:a()("".concat(n,"-jump-next"),C({},"".concat(n,"-jump-next-custom-icon"),!!G))},Fe):null);var We=Math.max(1,ne-Te),_e=Math.min(ne+Te,ke);ne-1<=Te&&(_e=1+2*Te),ke-ne<=Te&&(We=ke-2*Te);for(var Ve=We;Ve<=_e;Ve+=1)Oe.push(r().createElement(gL,l({},Ie,{key:Ve,page:Ve,active:ne===Ve})));if(ne-1>=2*Te&&3!==ne&&(Oe[0]=r().cloneElement(Oe[0],{className:a()("".concat(n,"-item-after-jump-prev"),Oe[0].props.className)}),Oe.unshift($e)),ke-ne>=2*Te&&ne!==ke-2){var qe=Oe[Oe.length-1];Oe[Oe.length-1]=r().cloneElement(qe,{className:a()("".concat(n,"-item-before-jump-next"),qe.props.className)}),Oe.push(Ee)}1!==We&&Oe.unshift(r().createElement(gL,l({},Ie,{key:1,page:1}))),_e!==ke&&Oe.push(r().createElement(gL,l({},Ie,{key:ke,page:ke})))}var Ke=function(e){var t=K(e,"prev",se(Y,"prev page"));return r().isValidElement(t)?r().cloneElement(t,{disabled:!me}):t}(Ne);if(Ke){var Xe=!me||!ke;Ke=r().createElement("li",{title:j?T.prev_page:null,onClick:ve,tabIndex:Xe?null:0,onKeyDown:function(e){Ce(e,ve)},className:a()("".concat(n,"-prev"),C({},"".concat(n,"-disabled"),Xe)),"aria-disabled":Xe},Ke)}var Ge,Ye,Ue=function(e){var t=K(e,"next",se(U,"next page"));return r().isValidElement(t)?r().cloneElement(t,{disabled:!ge}):t}(Me);Ue&&(A?(Ge=!ge,Ye=me?0:null):Ye=(Ge=!ge||!ke)?null:0,Ue=r().createElement("li",{title:j?T.next_page:null,onClick:he,tabIndex:Ye,onKeyDown:function(e){Ce(e,he)},className:a()("".concat(n,"-next"),C({},"".concat(n,"-disabled"),Ge)),"aria-disabled":Ge},Ue));var Qe=a()(n,s,C(C(C(C(C({},"".concat(n,"-start"),"start"===E),"".concat(n,"-center"),"center"===E),"".concat(n,"-end"),"end"===E),"".concat(n,"-simple"),A),"".concat(n,"-disabled"),L));return r().createElement("ul",l({className:Qe,style:B,ref:Q},we),Se,Ke,A?ze:Oe,Ue,r().createElement(mL,{locale:T,rootPrefixCls:n,disabled:L,selectComponentClass:u,selectPrefixCls:c,changeSize:function(e){var t=yL(e,J,g),n=ne>t&&0!==t?t:ne;ee(e),ae(n),null===R||void 0===R||R(ne,e),oe(n),null===w||void 0===w||w(n,e)},pageSize:J,pageSizeOptions:V,quickGo:de?pe:null,goButton:Re,showSizeChanger:_}))},xL=e=>o.createElement(zy,Object.assign({},e,{showSearch:!0,size:"small"})),$L=e=>o.createElement(zy,Object.assign({},e,{showSearch:!0,size:"middle"}));xL.Option=zy.Option,$L.Option=zy.Option;const wL=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},SL=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Et(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Et(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Et(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM),input:Object.assign(Object.assign({},hP(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},EL=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Et(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Et(e.inputOutlineOffset)} 0 ${Et(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},kL=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Et(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Et(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Et(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},bP(e)),rP(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},oP(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},OL=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Et(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Et(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Et(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},IL=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Et(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),OL(e)),kL(e)),EL(e)),SL(e)),wL(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},NL=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Bo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},To(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},To(e))}}}},ML=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Yk(e)),jL=e=>xo(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Gk(e)),PL=fi("Pagination",(e=>{const t=jL(e);return[IL(t),NL(t)]}),ML),RL=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},zL=mi(["Pagination","bordered"],(e=>{const t=jL(e);return[RL(t)]}),ML);var TL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const BL=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:l,style:c,size:s,locale:u,selectComponentClass:d,responsive:f,showSizeChanger:p}=e,m=TL(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=Vy(f),[,v]=ui(),{getPrefixCls:h,direction:b,pagination:y={}}=o.useContext(Be),C=h("pagination",n),[x,$,w]=PL(C),S=null!==p&&void 0!==p?p:y.showSizeChanger,E=o.useMemo((()=>{const e=o.createElement("span",{className:`${C}-item-ellipsis`},"\u2022\u2022\u2022");return{prevIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===b?o.createElement(Du,null):o.createElement(G$,null)),nextIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===b?o.createElement(G$,null):o.createElement(Du,null)),jumpPrevIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===b?o.createElement(dL,{className:`${C}-item-link-icon`}):o.createElement(sL,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===b?o.createElement(sL,{className:`${C}-item-link-icon`}):o.createElement(dL,{className:`${C}-item-link-icon`}),e))}}),[b,C]),[k]=Es("Pagination",zc),O=Object.assign(Object.assign({},k),u),I=Bs(s),N="small"===I||!(!g||I||!f),M=h("select",r),j=a()({[`${C}-${t}`]:!!t,[`${C}-mini`]:N,[`${C}-rtl`]:"rtl"===b,[`${C}-bordered`]:v.wireframe},null===y||void 0===y?void 0:y.className,i,l,$,w),P=Object.assign(Object.assign({},null===y||void 0===y?void 0:y.style),c);return x(o.createElement(o.Fragment,null,v.wireframe&&o.createElement(zL,{prefixCls:C}),o.createElement(CL,Object.assign({},E,m,{style:P,prefixCls:C,selectPrefixCls:M,className:j,selectComponentClass:d||(N?xL:$L),locale:O,showSizeChanger:S}))))},HL=BL,DL=80*Math.PI,LL=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return o.createElement("circle",{className:a()(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},AL=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,l=`${i}-hidden`,[c,s]=o.useState(!1);Rt((()=>{0!==t&&s(!0)}),[0!==t]);const u=Math.max(Math.min(t,100),0);if(!c)return null;const d={strokeDashoffset:""+DL/4,strokeDasharray:`${DL*u/100} ${DL*(100-u)/100}`};return o.createElement("span",{className:a()(i,`${r}-progress`,u<=0&&l)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},o.createElement(LL,{dotClassName:r,hasCircleCls:!0}),o.createElement(LL,{dotClassName:r,style:d})))};function FL(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,l=`${i}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:a()(i,n>0&&l)},o.createElement("span",{className:a()(r,`${t}-dot-spin`)},[1,2,3,4].map((e=>o.createElement("i",{className:`${t}-dot-item`,key:e}))))),o.createElement(AL,{prefixCls:t,percent:n}))}function WL(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&o.isValidElement(n)?Ka(n,{className:a()(n.props.className,i),percent:r}):o.createElement(FL,{prefixCls:t,percent:r})}const _L=new Yn("antSpinMove",{to:{opacity:1}}),VL=new Yn("antRotate",{to:{transform:"rotate(405deg)"}}),qL=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:_L,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:VL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},KL=fi("Spin",(e=>{const t=xo(e,{spinDotDefault:e.colorTextDescription});return[qL(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),XL=[[30,.05],[70,.03],[96,.01]];var GL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let YL;const UL=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:l,rootClassName:c,size:s="default",tip:u,wrapperClassName:d,style:f,children:p,fullscreen:m=!1,indicator:g,percent:v}=e,h=GL(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:y,spin:C}=o.useContext(Be),x=b("spin",n),[$,w,S]=KL(x),[E,k]=o.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,i))),O=function(e,t){const[n,r]=o.useState(0),i=o.useRef(),a="auto"===t;return o.useEffect((()=>(a&&e&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let n=0;n<XL.length;n+=1){const[o,r]=XL[n];if(e<=o)return e+t*r}return e}))}),200)),()=>{clearInterval(i.current)})),[a,e]),a?n:t}(E,v);o.useEffect((()=>{if(r){const e=yI(i,(()=>{k(!0)}));return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}k(!1)}),[i,r]);const I=o.useMemo((()=>"undefined"!==typeof p&&!m),[p,m]);const N=a()(x,null===C||void 0===C?void 0:C.className,{[`${x}-sm`]:"small"===s,[`${x}-lg`]:"large"===s,[`${x}-spinning`]:E,[`${x}-show-text`]:!!u,[`${x}-rtl`]:"rtl"===y},l,!m&&c,w,S),M=a()(`${x}-container`,{[`${x}-blur`]:E}),j=null!==(t=null!==g&&void 0!==g?g:null===C||void 0===C?void 0:C.indicator)&&void 0!==t?t:YL,P=Object.assign(Object.assign({},null===C||void 0===C?void 0:C.style),f),R=o.createElement("div",Object.assign({},h,{style:P,className:N,"aria-live":"polite","aria-busy":E}),o.createElement(WL,{prefixCls:x,indicator:j,percent:O}),u&&(I||m)?o.createElement("div",{className:`${x}-text`},u):null);return $(I?o.createElement("div",Object.assign({},h,{className:a()(`${x}-nested-loading`,d,w,S)}),E&&o.createElement("div",{key:"loading"},R),o.createElement("div",{className:M,key:"container"},p)):m?o.createElement("div",{className:a()(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:E},c,w,S)},R):R)};UL.setDefaultIndicator=e=>{YL=e};const QL=UL,ZL=r().createContext({});ZL.Consumer;var JL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const eA=r().forwardRef(((e,t)=>{const{prefixCls:n,children:i,actions:l,extra:c,styles:s,className:u,classNames:d,colStyle:f}=e,p=JL(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:m,itemLayout:g}=(0,o.useContext)(ZL),{getPrefixCls:v,list:h}=(0,o.useContext)(Be),b=e=>{var t,n;return a()(null===(n=null===(t=null===h||void 0===h?void 0:h.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null===d||void 0===d?void 0:d[e])},y=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null===h||void 0===h?void 0:h.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null===s||void 0===s?void 0:s[e])},C=v("list",n),x=l&&l.length>0&&r().createElement("ul",{className:a()(`${C}-item-action`,b("actions")),key:"actions",style:y("actions")},l.map(((e,t)=>r().createElement("li",{key:`${C}-item-action-${t}`},e,t!==l.length-1&&r().createElement("em",{className:`${C}-item-action-split`}))))),$=m?"div":"li",w=r().createElement($,Object.assign({},p,m?{}:{ref:t},{className:a()(`${C}-item`,{[`${C}-item-no-flex`]:!("vertical"===g?c:!(()=>{let e=!1;return o.Children.forEach(i,(t=>{"string"===typeof t&&(e=!0)})),e&&o.Children.count(i)>1})())},u)}),"vertical"===g&&c?[r().createElement("div",{className:`${C}-item-main`,key:"content"},i,x),r().createElement("div",{className:a()(`${C}-item-extra`,b("extra")),key:"extra",style:y("extra")},c)]:[i,x,Ka(c,{key:"extra"})]);return m?r().createElement(UM,{ref:t,flex:1,style:f},w):w})),tA=eA;tA.Meta=e=>{var{prefixCls:t,className:n,avatar:i,title:l,description:c}=e,s=JL(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=(0,o.useContext)(Be),d=u("list",t),f=a()(`${d}-item-meta`,n),p=r().createElement("div",{className:`${d}-item-meta-content`},l&&r().createElement("h4",{className:`${d}-item-meta-title`},l),c&&r().createElement("div",{className:`${d}-item-meta-description`},c));return r().createElement("div",Object.assign({},s,{className:f}),i&&r().createElement("div",{className:`${d}-item-meta-avatar`},i),(l||c)&&p)};const nA=tA,oA=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:c}=e;return{[t]:{border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${Et(r)} ${Et(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},rA=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${o}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Et(a)}`}}}}}},iA=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:a,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:h,headerBg:b,footerBg:y,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:$,titleMarginBottom:w,descriptionFontSize:S}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:$},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Et(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:g,fontSize:S,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Et(f)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:h,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Et(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${Et(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},aA=fi("List",(e=>{const t=xo(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[iA(t),oA(t),rA(t)]}),(e=>({contentWidth:220,itemPadding:`${Et(e.paddingContentVertical)} 0`,itemPaddingSM:`${Et(e.paddingContentVerticalSM)} ${Et(e.paddingContentHorizontal)}`,itemPaddingLG:`${Et(e.paddingContentVerticalLG)} ${Et(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})));var lA=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cA=o.forwardRef((function(e,t){var{pagination:n=!1,prefixCls:r,bordered:i=!1,split:l=!0,className:c,rootClassName:s,style:u,children:d,itemLayout:f,loadMore:p,grid:m,dataSource:g=[],size:v,header:h,footer:b,loading:y=!1,rowKey:C,renderItem:x,locale:$}=e,w=lA(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const S=n&&"object"===typeof n?n:{},[E,k]=o.useState(S.defaultCurrent||1),[O,I]=o.useState(S.defaultPageSize||10),{getPrefixCls:N,renderEmpty:M,direction:j,list:P}=o.useContext(Be),R=e=>(t,o)=>{var r;k(t),I(o),n&&(null===(r=null===n||void 0===n?void 0:n[e])||void 0===r||r.call(n,t,o))},z=R("onChange"),T=R("onShowSizeChange"),B=N("list",r),[H,D,L]=aA(B);let A=y;"boolean"===typeof A&&(A={spinning:A});const F=!!(null===A||void 0===A?void 0:A.spinning);let W="";switch(Bs(v)){case"large":W="lg";break;case"small":W="sm"}const _=a()(B,{[`${B}-vertical`]:"vertical"===f,[`${B}-${W}`]:W,[`${B}-split`]:l,[`${B}-bordered`]:i,[`${B}-loading`]:F,[`${B}-grid`]:!!m,[`${B}-something-after-last-item`]:!!(p||n||b),[`${B}-rtl`]:"rtl"===j},null===P||void 0===P?void 0:P.className,c,s,D,L),V=lL({current:1,total:0},{total:g.length,current:E,pageSize:O},n||{}),q=Math.ceil(V.total/V.pageSize);V.current>q&&(V.current=q);const K=n&&o.createElement("div",{className:a()(`${B}-pagination`)},o.createElement(HL,Object.assign({align:"end"},V,{onChange:z,onShowSizeChange:T})));let X=Se(g);n&&g.length>(V.current-1)*V.pageSize&&(X=Se(g).splice((V.current-1)*V.pageSize,V.pageSize));const G=Object.keys(m||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),Y=Vy(G),U=o.useMemo((()=>{for(let e=0;e<Ay.length;e+=1){const t=Ay[e];if(Y[t])return t}}),[Y]),Q=o.useMemo((()=>{if(!m)return;const e=U&&m[U]?m[U]:m.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0}),[JSON.stringify(m),U]);let Z=F&&o.createElement("div",{style:{minHeight:53}});if(X.length>0){const e=X.map(((e,t)=>((e,t)=>{if(!x)return null;let n;return n="function"===typeof C?C(e):C?e[C]:e.key,n||(n=`list-item-${t}`),o.createElement(o.Fragment,{key:n},x(e,t))})(e,t)));Z=m?o.createElement(DH,{gutter:m.gutter},o.Children.map(e,(e=>o.createElement("div",{key:null===e||void 0===e?void 0:e.key,style:Q},e)))):o.createElement("ul",{className:`${B}-items`},e)}else d||F||(Z=o.createElement("div",{className:`${B}-empty-text`},(null===$||void 0===$?void 0:$.emptyText)||(null===M||void 0===M?void 0:M("List"))||o.createElement(Rb,{componentName:"List"})));const J=V.position||"bottom",ee=o.useMemo((()=>({grid:m,itemLayout:f})),[JSON.stringify(m),f]);return H(o.createElement(ZL.Provider,{value:ee},o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),u),className:_},w),("top"===J||"both"===J)&&K,h&&o.createElement("div",{className:`${B}-header`},h),o.createElement(QL,Object.assign({},A),Z,d),b&&o.createElement("div",{className:`${B}-footer`},b),p||("bottom"===J||"both"===J)&&K)))}));const sA=cA;sA.Item=nA;const uA=sA;const dA=o.createContext(null);const fA=function(e){var t=o.useContext(dA),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,l=t.onFocus,c=t.onBlur,s=e.prefixCls,u=e.options,d=u[r]||{};return o.createElement(V$,{prefixCls:"".concat(s,"-menu"),activeKey:d.key,onSelect:function(e){var t=e.key,n=u.find((function(e){return e.key===t}));a(n)},onFocus:l,onBlur:c},u.map((function(e,t){var n=e.key,r=e.disabled,a=e.className,l=e.style,c=e.label;return o.createElement(h$,{key:n,disabled:r,className:a,style:l,onMouseEnter:function(){i(t)}},c)})),!u.length&&o.createElement(h$,{disabled:!0},n))};var pA={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}};const mA=function(e){var t=e.prefixCls,n=e.options,r=e.children,i=e.visible,a=e.transitionName,l=e.getPopupContainer,c=e.dropdownClassName,s=e.direction,u=e.placement,d="".concat(t,"-dropdown"),f=o.createElement(fA,{prefixCls:d,options:n}),p=(0,o.useMemo)((function(){return"rtl"===s?"top"===u?"topLeft":"bottomLeft":"top"===u?"topRight":"bottomRight"}),[s,u]);return o.createElement(xh,{prefixCls:d,popupVisible:i,popup:f,popupPlacement:p,popupTransitionName:a,builtinPlacements:pA,getPopupContainer:l,popupClassName:c},r)};const gA=function(){return null};function vA(e){return(e||"").toLowerCase()}function hA(e,t){var n=t.measureLocation,o=t.prefix,r=t.targetText,i=t.selectionStart,a=t.split,l=e.slice(0,n);l[l.length-a.length]===a&&(l=l.slice(0,l.length-a.length)),l&&(l="".concat(l).concat(a));var c=function(e,t,n){var o=e[0];if(!o||o===n)return e;for(var r=e,i=t.length,a=0;a<i;a+=1){if(vA(r[a])!==vA(t[a])){r=r.slice(a);break}a===i-1&&(r=r.slice(i))}return r}(e.slice(i),r.slice(i-n-o.length),a);c.slice(0,a.length)===a&&(c=c.slice(a.length));var s="".concat(l).concat(o).concat(r).concat(a);return{text:"".concat(s).concat(c),selectionLocation:s.length}}function bA(e,t){return!t||-1===e.indexOf(t)}function yA(e,t){var n=t.value,o=void 0===n?"":n,r=e.toLowerCase();return-1!==o.toLowerCase().indexOf(r)}var CA=["prefixCls","className","style","prefix","split","notFoundContent","value","defaultValue","children","options","open","allowClear","silent","validateSearch","filterOption","onChange","onKeyDown","onKeyUp","onPressEnter","onSearch","onSelect","onFocus","onBlur","transitionName","placement","direction","getPopupContainer","dropdownClassName","rows","visible"],xA=["suffix","prefixCls","defaultValue","value","allowClear","onChange","classNames","className","disabled","onClear"],$A=(0,o.forwardRef)((function(e,t){var n=e.prefixCls,i=e.className,c=e.style,u=e.prefix,d=void 0===u?"@":u,f=e.split,p=void 0===f?" ":f,m=e.notFoundContent,g=void 0===m?"Not Found":m,v=e.value,h=e.defaultValue,b=e.children,y=e.options,C=e.open,x=(e.allowClear,e.silent),w=e.validateSearch,S=void 0===w?bA:w,E=e.filterOption,k=void 0===E?yA:E,O=e.onChange,I=e.onKeyDown,N=e.onKeyUp,M=e.onPressEnter,j=e.onSearch,P=e.onSelect,R=e.onFocus,z=e.onBlur,T=e.transitionName,B=e.placement,H=e.direction,D=e.getPopupContainer,L=e.dropdownClassName,A=e.rows,F=void 0===A?1:A,W=(e.visible,Si(e,CA)),_=(0,o.useMemo)((function(){return Array.isArray(d)?d:[d]}),[d]),V=(0,o.useRef)(null),q=(0,o.useRef)(null),K=(0,o.useRef)(null),X=function(){var e;return null===(e=q.current)||void 0===e||null===(e=e.resizableTextArea)||void 0===e?void 0:e.textArea};r().useImperativeHandle(t,(function(){var e;return{focus:function(){var e;return null===(e=q.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=q.current)||void 0===e?void 0:e.blur()},textarea:null===(e=q.current)||void 0===e||null===(e=e.resizableTextArea)||void 0===e?void 0:e.textArea,nativeElement:V.current}}));var G=Ae((0,o.useState)(!1),2),Y=G[0],U=G[1],Q=Ae((0,o.useState)(""),2),Z=Q[0],J=Q[1],ee=Ae((0,o.useState)(""),2),te=ee[0],ne=ee[1],oe=Ae((0,o.useState)(0),2),re=oe[0],ie=oe[1],ae=Ae((0,o.useState)(0),2),le=ae[0],ce=ae[1],se=Ae((0,o.useState)(!1),2),ue=se[0],de=se[1],fe=Ae(so("",{defaultValue:h,value:v}),2),pe=fe[0],me=fe[1];(0,o.useEffect)((function(){Y&&K.current&&(K.current.scrollTop=X().scrollTop)}),[Y]);var ge=r().useMemo((function(){if(C){0;for(var e=0;e<_.length;e+=1){var t=_[e],n=pe.lastIndexOf(t);if(n>=0)return[!0,"",t,n]}}return[Y,Z,te,re]}),[C,Y,_,pe,Z,te,re]),ve=Ae(ge,4),he=ve[0],be=ve[1],ye=ve[2],Ce=ve[3],xe=r().useCallback((function(e){return(y&&y.length>0?y.map((function(e){var t;return $($({},e),{},{key:null!==(t=null===e||void 0===e?void 0:e.key)&&void 0!==t?t:e.value})})):s(b).map((function(e){var t=e.props,n=e.key;return $($({},t),{},{label:t.children,key:n||t.value})}))).filter((function(t){return!1===k||k(e,t)}))}),[b,y,k]),$e=r().useMemo((function(){return xe(be)}),[xe,be]),we=function(){var e=Ae((0,o.useState)({id:0,callback:null}),2),t=e[0],n=e[1],r=(0,o.useCallback)((function(e){n((function(t){return{id:t.id+1,callback:e}}))}),[]);return(0,o.useEffect)((function(){var e;null===(e=t.callback)||void 0===e||e.call(t)}),[t]),r}(),Se=function(e){U(!1),ie(0),J(""),we(e)},Ee=function(e){me(e),null===O||void 0===O||O(e)},ke=function(e){var t,n=e.value,o=hA(pe,{measureLocation:Ce,targetText:void 0===n?"":n,prefix:ye,selectionStart:null===(t=X())||void 0===t?void 0:t.selectionStart,split:p}),r=o.text,i=o.selectionLocation;Ee(r),Se((function(){!function(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}(X(),i)})),null===P||void 0===P||P(e,ye)},Oe=(0,o.useRef)(),Ie=function(e){window.clearTimeout(Oe.current),!ue&&e&&R&&R(e),de(!0)},Ne=function(e){Oe.current=window.setTimeout((function(){de(!1),Se(),null===z||void 0===z||z(e)}),0)};return r().createElement("div",{className:a()(n,i),style:c,ref:V},r().createElement(CR,l({ref:q,value:pe},W,{rows:F,onChange:function(e){var t=e.target.value;Ee(t)},onKeyDown:function(e){var t=e.which;if(null===I||void 0===I||I(e),he)if(t===zl.UP||t===zl.DOWN){var n=$e.length,o=t===zl.UP?-1:1;ce((le+o+n)%n),e.preventDefault()}else if(t===zl.ESC)Se();else if(t===zl.ENTER){if(e.preventDefault(),x)return;if(!$e.length)return void Se();var r=$e[le];ke(r)}},onKeyUp:function(e){var t=e.key,n=e.which,o=function(e){var t=e.selectionStart;return e.value.slice(0,t)}(e.target),r=function(e,t){return t.reduce((function(t,n){var o=e.lastIndexOf(n);return o>t.location?{location:o,prefix:n}:t}),{location:-1,prefix:""})}(o,_),i=r.location,a=r.prefix;if(null===N||void 0===N||N(e),-1===[zl.ESC,zl.UP,zl.DOWN,zl.ENTER].indexOf(n))if(-1!==i){var l=o.slice(i+a.length),c=S(l,p),s=!!xe(l).length;c?(t===a||"Shift"===t||he||l!==be&&s)&&function(e,t,n){U(!0),J(e),ne(t),ie(n),ce(0)}(l,a,i):he&&Se(),j&&c&&j(l,a)}else he&&Se()},onPressEnter:function(e){!he&&M&&M(e)},onFocus:Ie,onBlur:Ne})),he&&r().createElement("div",{ref:K,className:"".concat(n,"-measure")},pe.slice(0,Ce),r().createElement(dA.Provider,{value:{notFoundContent:g,activeIndex:le,setActiveIndex:ce,selectOption:ke,onFocus:function(){Ie()},onBlur:function(){Ne()}}},r().createElement(mA,{prefixCls:n,transitionName:T,placement:B,direction:H,options:$e,visible:!0,getPopupContainer:D,dropdownClassName:L},r().createElement("span",null,ye))),pe.slice(Ce+ye.length)))})),wA=(0,o.forwardRef)((function(e,t){var n=e.suffix,i=e.prefixCls,a=void 0===i?"rc-mentions":i,c=e.defaultValue,s=e.value,u=e.allowClear,d=e.onChange,f=e.classNames,p=e.className,m=e.disabled,g=e.onClear,v=Si(e,xA),h=(0,o.useRef)(null),b=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){var e,t;return $($({},b.current),{},{nativeElement:(null===(e=h.current)||void 0===e?void 0:e.nativeElement)||(null===(t=b.current)||void 0===t?void 0:t.nativeElement)})}));var y=Ae(so("",{defaultValue:c,value:s}),2),C=y[0],x=y[1],w=function(e){x(e),null===d||void 0===d||d(e)};return r().createElement(Aj,{suffix:n,prefixCls:a,value:C,allowClear:u,handleReset:function(){w("")},className:p,classNames:f,disabled:m,ref:h,onClear:g},r().createElement($A,l({className:null===f||void 0===f?void 0:f.mentions,prefixCls:a,ref:b,onChange:w,disabled:m},v)))}));wA.Option=gA;const SA=wA;function EA(e){return!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||void 0!==e&&null!==e?Array.isArray(e)?e:[e]:[]}const kA=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:c,paddingInline:s,paddingBlock:u,fontSize:d,fontSizeIcon:f,colorTextTertiary:p,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:v,paddingLG:h,borderRadius:b,borderRadiusLG:y,boxShadowSecondary:C,itemPaddingVertical:x,calc:$}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),bP(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),aP(e)),fP(e)),sP(e)),{"&-affix-wrapper":Object.assign(Object.assign({},bP(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:s,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:h},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:$(d).mul(l).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,color:m,fontSize:f,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:p},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},oP(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(c).sub(2),margin:0,padding:`${Et(u)} ${Et(s)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},gP(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},Ro(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",padding:v,backgroundColor:g,borderRadius:y,outline:"none",boxShadow:C,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},Po),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${Et(x)} ${Et(r)}`,color:i,borderRadius:b,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:o},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},OA=fi("Mentions",(e=>{const t=xo(e,Gk(e));return[kA(t)]}),(e=>Object.assign(Object.assign({},Yk(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2})));var IA=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const{Option:NA}=SA;function MA(){return!0}const jA=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,disabled:l,loading:c,filterOption:s,children:u,notFoundContent:d,options:f,status:p,allowClear:m=!1,popupClassName:g,style:v,variant:h}=e,b=IA(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[y,C]=o.useState(!1),x=o.useRef(null),$=M(t,x);const{getPrefixCls:w,renderEmpty:S,direction:E,mentions:k}=o.useContext(Be),{status:O,hasFeedback:I,feedbackIcon:N}=o.useContext(em),j=wb(O,p),P=o.useMemo((()=>void 0!==d?d:(null===S||void 0===S?void 0:S("Select"))||o.createElement(Rb,{componentName:"Select"})),[d,S]),R=o.useMemo((()=>c?o.createElement(NA,{value:"ANTD_SEARCHING",disabled:!0},o.createElement(QL,{size:"small"})):u),[c,u]),z=c?[{value:"ANTD_SEARCHING",disabled:!0,label:o.createElement(QL,{size:"small"})}]:f,T=c?MA:s,B=w("mentions",n),H=LP(m),D=bl(B),[L,A,F]=OA(B,D),[W,_]=zb("mentions",h),V=I&&o.createElement(o.Fragment,null,N),q=a()(null===k||void 0===k?void 0:k.className,r,i,F,D);return L(o.createElement(SA,Object.assign({silent:c,prefixCls:B,notFoundContent:P,className:q,disabled:l,allowClear:H,direction:E,style:Object.assign(Object.assign({},null===k||void 0===k?void 0:k.style),v)},b,{filterOption:T,onFocus:function(){b.onFocus&&b.onFocus.apply(b,arguments),C(!0)},onBlur:function(){b.onBlur&&b.onBlur.apply(b,arguments),C(!1)},dropdownClassName:a()(g,i,A,F,D),ref:$,options:z,suffix:V,classNames:{mentions:a()({[`${B}-disabled`]:l,[`${B}-focused`]:y,[`${B}-rtl`]:"rtl"===E},A),variant:a()({[`${B}-${W}`]:_},$b(B,j)),affixWrapper:A}}),R))})),PA=jA;PA.Option=NA;const RA=vv(PA,"mentions");PA._InternalPanelDoNotUseOrYouWillBeFired=RA,PA.getMentions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=EA(n);return e.split(o).map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return r.some((n=>e.slice(0,n.length)===n&&(t=n,!0))),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((e=>!!e&&!!e.value))};const zA=PA;let TA=null,BA=e=>e(),HA=[],DA={};function LA(){const{getContainer:e,duration:t,rtl:n,maxCount:o,top:r}=DA,i=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:o,top:r}}const AA=r().forwardRef(((e,t)=>{const{messageConfig:n,sync:i}=e,{getPrefixCls:a}=(0,o.useContext)(Be),l=DA.prefixCls||a("message"),c=(0,o.useContext)(uv),[s,u]=gc(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return r().useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return i(),s[t].apply(s,arguments)}})),{instance:e,sync:i}})),u})),FA=r().forwardRef(((e,t)=>{const[n,o]=r().useState(LA),i=()=>{o(LA)};r().useEffect(i,[]);const a=gs(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=r().createElement(AA,{ref:t,sync:i,messageConfig:n});return r().createElement(bs,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function WA(){if(!TA){const e=document.createDocumentFragment(),t={fragment:e};return TA=t,void BA((()=>{Oc(r().createElement(FA,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=o,WA())}))}}),e)}))}TA.instance&&(HA.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":BA((()=>{const t=TA.instance.open(Object.assign(Object.assign({},DA),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":BA((()=>{null===TA||void 0===TA||TA.instance.destroy(e.key)}));break;default:BA((()=>{var n;const o=(n=TA.instance)[t].apply(n,Se(e.args));null===o||void 0===o||o.then(e.resolve),e.setCloseFn(o)}))}})),HA=[])}const _A={open:function(e){const t=cc((t=>{let n;const o={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return HA.push(o),()=>{n?BA((()=>{n()})):o.skipped=!0}}));return WA(),t},destroy:e=>{HA.push({type:"destroy",key:e}),WA()},config:function(e){DA=Object.assign(Object.assign({},DA),e),BA((()=>{var e;null===(e=null===TA||void 0===TA?void 0:TA.sync)||void 0===e||e.call(TA)}))},useMessage:vc,_InternalPanelDoNotUseOrYouWillBeFired:lc},VA=_A;["success","info","warning","error","loading"].forEach((e=>{VA[e]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(e,t){gs();const n=cc((n=>{let o;const r={type:e,args:t,resolve:n,setCloseFn:e=>{o=e}};return HA.push(r),()=>{o?BA((()=>{o()})):r.skipped=!0}}));return WA(),n}(e,n)}}));const qA=VA;var KA=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XA=gv((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:l,title:c,children:s,footer:u}=e,d=KA(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=o.useContext(Be),p=f(),m=t||f("modal"),g=bl(p),[v,h,b]=gg(m,g),y=`${m}-confirm`;let C={};return C=l?{closable:null!==i&&void 0!==i&&i,title:"",footer:"",children:o.createElement(wg,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:p,content:s}))}:{closable:null===i||void 0===i||i,title:c,footer:null!==u&&o.createElement(Wm,Object.assign({},e)),children:s},v(o.createElement(Nf,Object.assign({prefixCls:m,className:a()(h,`${m}-pure-panel`,l&&y,l&&`${y}-${l}`,n,b,g)},d,{closeIcon:Fm(m,r),closable:i},C)))}));function GA(e){return Mg(jg(e))}const YA=yg;YA.useModal=Ag,YA.info=function(e){return Mg(Pg(e))},YA.success=function(e){return Mg(Rg(e))},YA.error=function(e){return Mg(zg(e))},YA.warning=GA,YA.warn=GA,YA.confirm=function(e){return Mg(Tg(e))},YA.destroyAll=function(){for(;kg.length;){const e=kg.pop();e&&e()}},YA.config=function(e){let{rootPrefixCls:t}=e;Og=t},YA._InternalPanelDoNotUseOrYouWillBeFired=XA;const UA=YA;let QA=null,ZA=e=>e(),JA=[],eF={};function tF(){const{getContainer:e,rtl:t,maxCount:n,top:o,bottom:r,showProgress:i,pauseOnHover:a}=eF,l=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:o,bottom:r,showProgress:i,pauseOnHover:a}}const nF=r().forwardRef(((e,t)=>{const{notificationConfig:n,sync:i}=e,{getPrefixCls:a}=(0,o.useContext)(Be),l=eF.prefixCls||a("notification"),c=(0,o.useContext)(uv),[s,u]=cv(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.notification));return r().useEffect(i,[]),r().useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return i(),s[t].apply(s,arguments)}})),{instance:e,sync:i}})),u})),oF=r().forwardRef(((e,t)=>{const[n,o]=r().useState(tF),i=()=>{o(tF)};r().useEffect(i,[]);const a=gs(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=r().createElement(nF,{ref:t,sync:i,notificationConfig:n});return r().createElement(bs,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function rF(){if(!QA){const e=document.createDocumentFragment(),t={fragment:e};return QA=t,void ZA((()=>{Oc(r().createElement(oF,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=o,rF())}))}}),e)}))}QA.instance&&(JA.forEach((e=>{switch(e.type){case"open":ZA((()=>{QA.instance.open(Object.assign(Object.assign({},eF),e.config))}));break;case"destroy":ZA((()=>{null===QA||void 0===QA||QA.instance.destroy(e.key)}))}})),JA=[])}function iF(e){gs();JA.push({type:"open",config:e}),rF()}const aF={open:iF,destroy:e=>{JA.push({type:"destroy",key:e}),rF()},config:function(e){eF=Object.assign(Object.assign({},eF),e),ZA((()=>{var e;null===(e=null===QA||void 0===QA?void 0:QA.sync)||void 0===e||e.call(QA)}))},useNotification:sv,_InternalPanelDoNotUseOrYouWillBeFired:ov};["success","info","warning","error"].forEach((e=>{aF[e]=t=>iF(Object.assign(Object.assign({},t),{type:e}))}));const lF=aF,cF=fi("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,zIndexPopup:r,colorText:i,colorWarning:a,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:r,[`&${o}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});var sF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uF=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:l,okText:c,okType:s="primary",icon:u=o.createElement(Xi,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=e,{getPrefixCls:v}=o.useContext(Be),[h]=Es("Popconfirm",Ac.Popconfirm),b=Zy(i),y=Zy(a);return o.createElement("div",{className:`${t}-inner-content`,onClick:g},o.createElement("div",{className:`${t}-message`},u&&o.createElement("span",{className:`${t}-message-icon`},u),o.createElement("div",{className:`${t}-message-text`},b&&o.createElement("div",{className:`${t}-title`},b),y&&o.createElement("div",{className:`${t}-description`},y))),o.createElement("div",{className:`${t}-buttons`},d&&o.createElement(Zd,Object.assign({onClick:m,size:"small"},r),l||(null===h||void 0===h?void 0:h.cancelText)),o.createElement(ef,{buttonProps:Object.assign(Object.assign({size:"small"},Zs(s)),n),actionFn:p,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(null===h||void 0===h?void 0:h.okText))))},dF=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,l=sF(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=o.useContext(Be),s=c("popconfirm",t),[u]=cF(s);return u(o.createElement(BC,{placement:n,className:a()(s,r),style:i,content:o.createElement(uF,Object.assign({prefixCls:s},l))}))};var fF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pF=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,placement:l="top",trigger:c="click",okType:s="primary",icon:u=o.createElement(Xi,null),children:d,overlayClassName:f,onOpenChange:p,onVisibleChange:m}=e,g=fF(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:v}=o.useContext(Be),[h,b]=so(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),y=(e,t)=>{b(e,!0),null===m||void 0===m||m(e),null===p||void 0===p||p(e,t)},C=v("popconfirm",i),x=a()(C,f),[$]=cF(C);return $(o.createElement(AC,Object.assign({},Ce(g,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:o=!1}=e;o||y(t,n)},open:h,ref:t,overlayClassName:x,content:o.createElement(uF,Object.assign({okType:s,icon:u},e,{prefixCls:C,close:e=>{y(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;y(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),d))})),mF=pF;mF._InternalPanelDoNotUseOrYouWillBeFired=dF;const gF=mF;var vF={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},hF=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)((function(){var n=Date.now(),o=!1;e.current.forEach((function(e){if(e){o=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(r.transitionDuration="0s, 0s")}})),o&&(t.current=Date.now())})),e.current};var bF=0,yF=We();const CF=function(e){var t=Ae(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){r("rc_progress_".concat(function(){var e;return yF?(e=bF,bF+=1):e="TEST_OR_SSR",e}()))}),[]),e||n};var xF=function(e){var t=e.bg,n=e.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function $F(e,t){return Object.keys(e).map((function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)}))}var wF=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&"object"===b(r),m=p?"#FFF":void 0,g=d/2,v=o.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:g,cy:g,stroke:m,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:l,ref:t});if(!p)return v;var h="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",C=$F(r,(360-f)/360),x=$F(r,1),$="conic-gradient(from ".concat(y,", ").concat(C.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:h},v),o.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},o.createElement(xF,{bg:w},o.createElement(xF,{bg:$}))))}));const SF=wF;var EF=100,kF=function(e,t,n,o,r,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-o)/100*t;"round"===c&&100!==o&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"===typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(r+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},OF=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function IF(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}const NF=function(e){var t=$($({},vF),e),n=t.id,r=t.prefixCls,i=t.steps,c=t.strokeWidth,s=t.trailWidth,u=t.gapDegree,d=void 0===u?0:u,f=t.gapPosition,p=t.trailColor,m=t.strokeLinecap,g=t.style,v=t.className,h=t.strokeColor,y=t.percent,C=Si(t,OF),x=CF(n),w="".concat(x,"-gradient"),S=50-c/2,E=2*Math.PI*S,k=d>0?90+d/2:-90,O=E*((360-d)/360),I="object"===b(i)?i:{count:i,gap:2},N=I.count,M=I.gap,j=IF(y),P=IF(h),R=P.find((function(e){return e&&"object"===b(e)})),z=R&&"object"===b(R)?"butt":m,T=kF(E,O,0,100,k,d,f,p,z,c),B=hF();return o.createElement("svg",l({className:a()("".concat(r,"-circle"),v),viewBox:"0 0 ".concat(EF," ").concat(EF),style:g,id:n,role:"presentation"},C),!N&&o.createElement("circle",{className:"".concat(r,"-circle-trail"),r:S,cx:50,cy:50,stroke:p,strokeLinecap:z,strokeWidth:s||c,style:T}),N?function(){var e=Math.round(N*(j[0]/100)),t=100/N,n=0;return new Array(N).fill(null).map((function(i,a){var l=a<=e-1?P[0]:p,s=l&&"object"===b(l)?"url(#".concat(w,")"):void 0,u=kF(E,O,n,t,k,d,f,l,"butt",c,M);return n+=100*(O-u.strokeDashoffset+M)/O,o.createElement("circle",{key:a,className:"".concat(r,"-circle-path"),r:S,cx:50,cy:50,stroke:s,strokeWidth:c,opacity:1,style:u,ref:function(e){B[a]=e}})}))}():function(){var e=0;return j.map((function(t,n){var i=P[n]||P[P.length-1],a=kF(E,O,e,t,k,d,f,i,z,c);return e+=t,o.createElement(SF,{key:n,color:i,ptg:t,radius:S,prefixCls:r,gradientId:w,style:a,strokeLinecap:z,strokeWidth:c,gapDegree:d,ref:function(e){B[n]=e},size:EF})})).reverse()}())};function MF(e){return!e||e<0?0:e>100?100:e}function jF(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const PF=(e,t,n)=>{var o,r,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(l="small"===e?2:14,c=null!==o&&void 0!==o?o:8):"number"===typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?c=t||("small"===e?6:8):"number"===typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[l,c]="small"===e?[60,60]:[120,120]:"number"===typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},RF=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:l,width:c=120,type:s,children:u,success:d,size:f=c,steps:p}=e,[m,g]=PF(f,"circle");let{strokeWidth:v}=e;void 0===v&&(v=Math.max((e=>3/e*100)(m),6));const h={width:m,height:g,fontSize:.15*m+6},b=o.useMemo((()=>l||0===l?l:"dashboard"===s?75:void 0),[l,s]),y=(e=>{let{percent:t,success:n,successPercent:o}=e;const r=MF(jF({success:n,successPercent:o}));return[r,MF(MF(t)-r)]})(e),C=i||"dashboard"===s&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),$=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||dr.green,n||null]})({success:d,strokeColor:e.strokeColor}),w=a()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),S=o.createElement(NF,{steps:p,percent:p?y[1]:y,strokeWidth:v,trailWidth:v,strokeColor:p?$[1]:$,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:C}),E=m<=20,k=o.createElement("div",{className:w,style:h},S,!E&&u);return E?o.createElement(NC,{title:u},k):k},zF="--progress-line-stroke-color",TF="--progress-percent",BF=e=>{const t=e?"100%":"-100%";return new Yn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},HF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${zF})`]},height:"100%",width:`calc(1 / var(${TF}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Et(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:BF(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:BF(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},DF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},LF=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},AF=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},FF=fi("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=xo(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[HF(n),DF(n),LF(n),AF(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));var WF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _F=(e,t)=>{const{from:n=dr.blue,to:o=dr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=WF(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`;return{background:e,[zF]:e}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[zF]:a}},VF=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:l,strokeColor:c,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:f,success:p}=e,{align:m,type:g}=f,v=c&&"string"!==typeof c?_F(c,n):{[zF]:c,background:c},h="square"===s||"butt"===s?0:void 0,b=null!==i&&void 0!==i?i:[-1,l||("small"===i?6:8)],[y,C]=PF(b,"line",{strokeWidth:l});const x={backgroundColor:d||void 0,borderRadius:h},$=Object.assign(Object.assign({width:`${MF(r)}%`,height:C,borderRadius:h},v),{[TF]:MF(r)/100}),w=jF(e),S={width:`${MF(w)}%`,height:C,borderRadius:h,backgroundColor:null===p||void 0===p?void 0:p.strokeColor},E={width:y<0?"100%":y},k=o.createElement("div",{className:`${t}-inner`,style:x},o.createElement("div",{className:a()(`${t}-bg`,`${t}-bg-${g}`),style:$},"inner"===g&&u),void 0!==w&&o.createElement("div",{className:`${t}-success-bg`,style:S})),O="outer"===g&&"start"===m,I="outer"===g&&"end"===m;return"outer"===g&&"center"===m?o.createElement("div",{className:`${t}-layout-bottom`},k,u):o.createElement("div",{className:`${t}-outer`,style:E},O&&u,k,I&&u)},qF=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:u}=e,d=Math.round(n*(r/100)),f=null!==t&&void 0!==t?t:["small"===t?2:14,i],[p,m]=PF(f,"step",{steps:n,strokeWidth:i}),g=p/n,v=new Array(n);for(let h=0;h<n;h++){const e=Array.isArray(l)?l[h]:l;v[h]=o.createElement("div",{key:h,className:a()(`${s}-steps-item`,{[`${s}-steps-item-active`]:h<=d-1}),style:{backgroundColor:h<=d-1?e:c,width:g,height:m}})}return o.createElement("div",{className:`${s}-steps-outer`},v,u)};var KF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XF=["normal","exception","active","success"],GF=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:l,strokeColor:c,percent:s=0,size:u="default",showInfo:d=!0,type:f="line",status:p,format:m,style:g,percentPosition:v={}}=e,h=KF(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:y="outer"}=v,C=Array.isArray(c)?c[0]:c,x="string"===typeof c||Array.isArray(c)?c:void 0,$=o.useMemo((()=>{if(C){const e="string"===typeof C?C:Object.values(C)[0];return new Fr(e).isLight()}return!1}),[c]),w=o.useMemo((()=>{var t,n;const o=jF(e);return parseInt(void 0!==o?null===(t=null!==o&&void 0!==o?o:0)||void 0===t?void 0:t.toString():null===(n=null!==s&&void 0!==s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),S=o.useMemo((()=>!XF.includes(p)&&w>=100?"success":p||"normal"),[p,w]),{getPrefixCls:E,direction:k,progress:O}=o.useContext(Be),I=E("progress",n),[N,M,j]=FF(I),P="line"===f,R=P&&!l,z=o.useMemo((()=>{if(!d)return null;const t=jF(e);let n;const r=m||(e=>`${e}%`),i=P&&$&&"inner"===y;return"inner"===y||m||"exception"!==S&&"success"!==S?n=r(MF(s),MF(t)):"exception"===S?n=P?o.createElement(_i,null):o.createElement(qi,null):"success"===S&&(n=P?o.createElement(Fi,null):o.createElement(wy,null)),o.createElement("span",{className:a()(`${I}-text`,{[`${I}-text-bright`]:i,[`${I}-text-${b}`]:R,[`${I}-text-${y}`]:R}),title:"string"===typeof n?n:void 0},n)}),[d,s,w,S,f,I,m]);let T;"line"===f?T=l?o.createElement(qF,Object.assign({},e,{strokeColor:x,prefixCls:I,steps:"object"===typeof l?l.count:l}),z):o.createElement(VF,Object.assign({},e,{strokeColor:C,prefixCls:I,direction:k,percentPosition:{align:b,type:y}}),z):"circle"!==f&&"dashboard"!==f||(T=o.createElement(RF,Object.assign({},e,{strokeColor:C,prefixCls:I,progressStatus:S}),z));const B=a()(I,`${I}-status-${S}`,{[`${I}-${"dashboard"===f?"circle":f}`]:"line"!==f,[`${I}-inline-circle`]:"circle"===f&&PF(u,"circle")[0]<=20,[`${I}-line`]:R,[`${I}-line-align-${b}`]:R,[`${I}-line-position-${y}`]:R,[`${I}-steps`]:l,[`${I}-show-info`]:d,[`${I}-${u}`]:"string"===typeof u,[`${I}-rtl`]:"rtl"===k},null===O||void 0===O?void 0:O.className,r,i,M,j);return N(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),g),className:B,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Ce(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))}));const YF=GF;function UF(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=we(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var QF,ZF;function JF(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var o=t-1;o>=0;o--)n.push(e>>>o&1)}function eW(e,t){return 0!=(e>>>t&1)}function tW(e){if(!e)throw new Error("Assertion error")}var nW=function(){function e(t,n){ie(this,e),C(this,"modeBits",void 0),C(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return le(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();C(nW,"NUMERIC",new(QF=nW)(1,[10,12,14])),C(nW,"ALPHANUMERIC",new QF(2,[9,11,13])),C(nW,"BYTE",new QF(4,[8,16,16])),C(nW,"KANJI",new QF(8,[8,10,12])),C(nW,"ECI",new QF(7,[0,0,0]));var oW=le((function e(t,n){ie(this,e),C(this,"ordinal",void 0),C(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n}));C(oW,"LOW",new(ZF=oW)(0,1)),C(oW,"MEDIUM",new ZF(1,0)),C(oW,"QUARTILE",new ZF(2,3)),C(oW,"HIGH",new ZF(3,2));var rW=function(){function e(t,n,o){if(ie(this,e),C(this,"mode",void 0),C(this,"numChars",void 0),C(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=o,n<0)throw new RangeError("Invalid argument");this.bitData=o.slice()}return le(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var n,o=[],r=UF(t);try{for(r.s();!(n=r.n()).done;){JF(n.value,8,o)}}catch(i){r.e(i)}finally{r.f()}return new e(nW.BYTE,t.length,o)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var n=[],o=0;o<t.length;){var r=Math.min(t.length-o,3);JF(parseInt(t.substring(o,o+r),10),3*r+1,n),o+=r}return new e(nW.NUMERIC,t.length,n)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var n,o=[];for(n=0;n+2<=t.length;n+=2){var r=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));JF(r+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,o)}return n<t.length&&JF(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,o),new e(nW.ALPHANUMERIC,t.length,o)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)JF(t,8,n);else if(t<16384)JF(2,2,n),JF(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");JF(6,3,n),JF(t,21,n)}return new e(nW.ECI,0,n)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,o=0,r=UF(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.mode.numCharCountBits(t);if(i.numChars>=1<<a)return 1/0;o+=4+a+i.bitData.length}}catch(l){r.e(l)}finally{r.f()}return o}},{key:"toUtf8ByteArray",value:function(e){for(var t=encodeURI(e),n=[],o=0;o<t.length;o++)"%"!=t.charAt(o)?n.push(t.charCodeAt(o)):(n.push(parseInt(t.substring(o+1,o+3),16)),o+=2);return n}}]),e}();C(rW,"NUMERIC_REGEX",/^[0-9]*$/),C(rW,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),C(rW,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var iW=function(){function e(t,n,o,r){ie(this,e),C(this,"size",void 0),C(this,"mask",void 0),C(this,"modules",[]),C(this,"isFunction",[]),C(this,"version",void 0),C(this,"errorCorrectionLevel",void 0);var i=r;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],l=0;l<this.size;l++)a.push(!1);for(var c=0;c<this.size;c++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var s=this.addEccAndInterleave(o);if(this.drawCodewords(s),-1==i)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var f=this.getPenaltyScore();f<u&&(i=d,u=f),this.applyMask(d)}tW(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}return le(e,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,o=0;o<n;o++)for(var r=0;r<n;r++)0==o&&0==r||0==o&&r==n-1||o==n-1&&0==r||this.drawAlignmentPattern(t[o],t[r]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,o=0;o<10;o++)n=n<<1^1335*(n>>>9);var r=21522^(t<<10|n);tW(r>>>15==0);for(var i=0;i<=5;i++)this.setFunctionModule(8,i,eW(r,i));this.setFunctionModule(8,7,eW(r,6)),this.setFunctionModule(8,8,eW(r,7)),this.setFunctionModule(7,8,eW(r,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,eW(r,a));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,eW(r,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,eW(r,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;tW(n>>>18==0);for(var o=0;o<18;o++){var r=eW(n,o),i=this.size-11+o%3,a=Math.floor(o/3);this.setFunctionModule(i,a,r),this.setFunctionModule(a,i,r)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var o=-4;o<=4;o++){var r=Math.max(Math.abs(o),Math.abs(n)),i=e+o,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=r&&4!=r)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(t){var n=this.version,o=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");for(var r=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],i=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],a=Math.floor(e.getNumRawDataModules(n)/8),l=r-a%r,c=Math.floor(a/r),s=[],u=e.reedSolomonComputeDivisor(i),d=0,f=0;d<r;d++){var p=t.slice(f,f+c-i+(d<l?0:1));f+=p.length;var m=e.reedSolomonComputeRemainder(p,u);d<l&&p.push(0),s.push(p.concat(m))}for(var g=[],v=function(e){s.forEach((function(t,n){(e!=c-i||n>=l)&&g.push(t[e])}))},h=0;h<s[0].length;h++)v(h);return tW(g.length==a),g}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,o=this.size-1;o>=1;o-=2){6==o&&(o=5);for(var r=0;r<this.size;r++)for(var i=0;i<2;i++){var a=o-i,l=0==(o+1&2)?this.size-1-r:r;!this.isFunction[l][a]&&n<8*t.length&&(this.modules[l][a]=eW(t[n>>>3],7-(7&n)),n++)}}tW(n==8*t.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var o=void 0;switch(e){case 0:o=(n+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=n%3==0;break;case 3:o=(n+t)%3==0;break;case 4:o=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:o=n*t%2+n*t%3==0;break;case 6:o=(n*t%2+n*t%3)%2==0;break;case 7:o=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&o&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var t=0,n=0;n<this.size;n++){for(var o=!1,r=0,i=[0,0,0,0,0,0,0],a=0;a<this.size;a++)this.modules[n][a]==o?5==++r?t+=e.PENALTY_N1:r>5&&t++:(this.finderPenaltyAddHistory(r,i),o||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),o=this.modules[n][a],r=1);t+=this.finderPenaltyTerminateAndCount(o,r,i)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,s=0,u=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][l]==c?5==++s?t+=e.PENALTY_N1:s>5&&t++:(this.finderPenaltyAddHistory(s,u),c||(t+=this.finderPenaltyCountPatterns(u)*e.PENALTY_N3),c=this.modules[d][l],s=1);t+=this.finderPenaltyTerminateAndCount(c,s,u)*e.PENALTY_N3}for(var f=0;f<this.size-1;f++)for(var p=0;p<this.size-1;p++){var m=this.modules[f][p];m==this.modules[f][p+1]&&m==this.modules[f+1][p]&&m==this.modules[f+1][p+1]&&(t+=e.PENALTY_N2)}var g,v=0,h=UF(this.modules);try{for(h.s();!(g=h.n()).done;){v=g.value.reduce((function(e,t){return e+(t?1:0)}),v)}}catch(C){h.e(C)}finally{h.f()}var b=this.size*this.size,y=Math.ceil(Math.abs(20*v-10*b)/b)-1;return tW(0<=y&&y<=9),tW(0<=(t+=y*e.PENALTY_N4)&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],o=this.size-7;n.length<e;o-=t)n.splice(1,0,o);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];tW(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){var o=t;return e&&(this.finderPenaltyAddHistory(o,n),o=0),o+=this.size,this.finderPenaltyAddHistory(o,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){var n=e;0==t[0]&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:"encodeText",value:function(t,n){var o=rW.makeSegments(t);return e.encodeSegments(o,n)}},{key:"encodeBinary",value:function(t,n){var o=rW.makeBytes(t);return e.encodeSegments([o],n)}},{key:"encodeSegments",value:function(t,n){var o,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");for(o=i;;o++){var s=8*e.getNumDataCodewords(o,n),u=rW.getTotalBits(t,o);if(u<=s){r=u;break}if(o>=a)throw new RangeError("Data too long")}for(var d=n,f=0,p=[oW.MEDIUM,oW.QUARTILE,oW.HIGH];f<p.length;f++){var m=p[f];c&&r<=8*e.getNumDataCodewords(o,m)&&(d=m)}var g,v=[],h=UF(t);try{for(h.s();!(g=h.n()).done;){var b=g.value;JF(b.mode.modeBits,4,v),JF(b.numChars,b.mode.numCharCountBits(o),v);var y,C=UF(b.getData());try{for(C.s();!(y=C.n()).done;){var x=y.value;v.push(x)}}catch(E){C.e(E)}finally{C.f()}}}catch(E){h.e(E)}finally{h.f()}tW(v.length==r);var $=8*e.getNumDataCodewords(o,d);tW(v.length<=$),JF(0,Math.min(4,$-v.length),v),JF(0,(8-v.length%8)%8,v),tW(v.length%8==0);for(var w=236;v.length<$;w^=253)JF(w,8,v);for(var S=[];8*S.length<v.length;)S.push(0);return v.forEach((function(e,t){return S[t>>>3]|=e<<7-(7&t)})),new e(o,d,S,l)}},{key:"getNumRawDataModules",value:function(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var o=Math.floor(t/7)+2;n-=(25*o-10)*o-55,t>=7&&(n-=36)}return tW(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],o=0;o<t-1;o++)n.push(0);n.push(1);for(var r=1,i=0;i<t;i++){for(var a=0;a<n.length;a++)n[a]=e.reedSolomonMultiply(n[a],r),a+1<n.length&&(n[a]^=n[a+1]);r=e.reedSolomonMultiply(r,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(t,n){var o,r=n.map((function(){return 0})),i=UF(t);try{var a=function(){var t=o.value^r.shift();r.push(0),n.forEach((function(n,o){return r[o]^=e.reedSolomonMultiply(n,t)}))};for(i.s();!(o=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}return r}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return tW(n>>>8==0),n}}]),e}();C(iW,"MIN_VERSION",1),C(iW,"MAX_VERSION",40),C(iW,"PENALTY_N1",3),C(iW,"PENALTY_N2",3),C(iW,"PENALTY_N3",40),C(iW,"PENALTY_N4",10),C(iW,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),C(iW,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var aW={L:oW.LOW,M:oW.MEDIUM,Q:oW.QUARTILE,H:oW.HIGH},lW="#FFFFFF",cW="#000000",sW=!1;function uW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,o){var r=null;e.forEach((function(i,a){if(!i&&null!==r)return n.push("M".concat(r+t," ").concat(o+t,"h").concat(a-r,"v1H").concat(r+t,"z")),void(r=null);if(a!==e.length-1)i&&null===r&&(r=a);else{if(!i)return;null===r?n.push("M".concat(a+t,",").concat(o+t," h1v1H").concat(a+t,"z")):n.push("M".concat(r+t,",").concat(o+t," h").concat(a+1-r,"v1H").concat(r+t,"z"))}}))})),n.join("")}function dW(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}var fW=function(){try{(new Path2D).addPath(new Path2D)}catch(sl){return!1}return!0}();function pW(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,l=e.imageSettings,c=e.size,s=(0,o.useMemo)((function(){var e=rW.makeSegments(t);return iW.encodeSegments(e,aW[n],r)}),[t,n,r]),u=(0,o.useMemo)((function(){var e=s.getModules(),t=function(e,t){return null!=t?Math.floor(t):e?4:0}(i,a),n=e.length+2*t,o=function(e,t,n,o){if(null==o)return null;var r=e.length+2*n,i=Math.floor(.1*t),a=r/t,l=(o.width||i)*a,c=(o.height||i)*a,s=null==o.x?e.length/2-l/2:o.x*a,u=null==o.y?e.length/2-c/2:o.y*a,d=null==o.opacity?1:o.opacity,f=null;if(o.excavate){var p=Math.floor(s),m=Math.floor(u);f={x:p,y:m,w:Math.ceil(l+s-p),h:Math.ceil(c+u-m)}}return{x:s,y:u,h:c,w:l,excavation:f,opacity:d,crossOrigin:o.crossOrigin}}(e,c,t,l);return{cells:e,margin:t,numCells:n,calculatedImageSettings:o}}),[s,c,l,i,a]),d=u.cells,f=u.margin,p=u.numCells,m=u.calculatedImageSettings;return{qrcode:s,margin:f,cells:d,numCells:p,calculatedImageSettings:m}}var mW=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],gW=r().forwardRef((function(e,t){var n=e.value,i=e.size,a=void 0===i?128:i,c=e.level,s=void 0===c?"L":c,u=e.bgColor,d=void 0===u?lW:u,f=e.fgColor,p=void 0===f?cW:f,m=e.includeMargin,g=void 0===m?sW:m,v=e.minVersion,h=void 0===v?1:v,b=e.marginSize,y=e.style,C=e.imageSettings,x=Si(e,mW),w=null===C||void 0===C?void 0:C.src,S=(0,o.useRef)(null),E=(0,o.useRef)(null),k=(0,o.useCallback)((function(e){S.current=e,"function"===typeof t?t(e):t&&(t.current=e)}),[t]),O=Ae((0,o.useState)(!1),2)[1],I=pW({value:n,level:s,minVersion:h,includeMargin:g,marginSize:b,imageSettings:C,size:a}),N=I.margin,M=I.cells,j=I.numCells,P=I.calculatedImageSettings;(0,o.useEffect)((function(){if(null!=S.current){var e=S.current,t=e.getContext("2d");if(!t)return;var n=M,o=E.current,r=null!=P&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;r&&null!=P.excavation&&(n=dW(M,P.excavation));var i=window.devicePixelRatio||1;e.height=e.width=a*i;var l=a/j*i;t.scale(l,l),t.fillStyle=d,t.fillRect(0,0,j,j),t.fillStyle=p,fW?t.fill(new Path2D(uW(n,N))):M.forEach((function(e,n){e.forEach((function(e,o){e&&t.fillRect(o+N,n+N,1,1)}))})),P&&(t.globalAlpha=P.opacity),r&&t.drawImage(o,P.x+N,P.y+N,P.w,P.h)}})),(0,o.useEffect)((function(){O(!1)}),[w]);var R=$({height:a,width:a},y),z=null;return null!=w&&(z=r().createElement("img",{src:w,key:w,style:{display:"none"},onLoad:function(){O(!0)},ref:E,crossOrigin:null===P||void 0===P?void 0:P.crossOrigin})),r().createElement(r().Fragment,null,r().createElement("canvas",l({style:R,height:a,width:a,ref:k,role:"img"},x)),z)}));gW.displayName="QRCodeCanvas";var vW=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],hW=r().forwardRef((function(e,t){var n=e.value,o=e.size,i=void 0===o?128:o,a=e.level,c=void 0===a?"L":a,s=e.bgColor,u=void 0===s?lW:s,d=e.fgColor,f=void 0===d?cW:d,p=e.includeMargin,m=void 0===p?sW:p,g=e.minVersion,v=void 0===g?1:g,h=e.title,b=e.marginSize,y=e.imageSettings,C=Si(e,vW),x=pW({value:n,level:c,minVersion:v,includeMargin:m,marginSize:b,imageSettings:y,size:i}),$=x.margin,w=x.cells,S=x.numCells,E=x.calculatedImageSettings,k=w,O=null;null!=y&&null!=E&&(null!=E.excavation&&(k=dW(w,E.excavation)),O=r().createElement("image",{href:y.src,height:E.h,width:E.w,x:E.x+$,y:E.y+$,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var I=uW(k,$);return r().createElement("svg",l({height:i,width:i,viewBox:"0 0 ".concat(S," ").concat(S),ref:t,role:"img"},C),!!h&&r().createElement("title",null,h),r().createElement("path",{fill:u,d:"M0,0 h".concat(S,"v").concat(S,"H0z"),shapeRendering:"crispEdges"}),r().createElement("path",{fill:f,d:I,shapeRendering:"crispEdges"}),O)}));hW.displayName="QRCodeSVG";const bW=fi("QRCode",(e=>(e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Et(n)} ${o} ${r}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}})(xo(e,{QRCodeTextColor:e.colorText}))),(e=>({QRCodeMaskBackgroundColor:new Fr(e.colorBgContainer).setAlpha(.96).toRgbString()})));const yW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const CW=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:yW}))})),xW=r().createElement(QL,null);function $W(e){let{prefixCls:t,locale:n,onRefresh:o,statusRender:i,status:a}=e;const l=r().createElement(r().Fragment,null,r().createElement("p",{className:`${t}-expired`},null===n||void 0===n?void 0:n.expired),o&&r().createElement(Zd,{type:"link",icon:r().createElement(CW,null),onClick:o},null===n||void 0===n?void 0:n.refresh)),c=r().createElement("p",{className:`${t}-scanned`},null===n||void 0===n?void 0:n.scanned),s={expired:l,loading:xW,scanned:c};return(null!==i&&void 0!==i?i:e=>s[e.status])({status:a,locale:n,onRefresh:o})}var wW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const SW=e=>{var t,n,i,l;const[,c]=ui(),{value:s,type:u="canvas",icon:d="",size:f=160,iconSize:p,color:m=c.colorText,errorLevel:g="M",status:v="active",bordered:h=!0,onRefresh:b,style:y,className:C,rootClassName:x,prefixCls:$,bgColor:w="transparent",statusRender:S}=e,E=wW(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:k}=(0,o.useContext)(Be),O=k("qrcode",$),[I,N,M]=bW(O),j={src:d,x:void 0,y:void 0,height:"number"===typeof p?p:null!==(t=null===p||void 0===p?void 0:p.height)&&void 0!==t?t:40,width:"number"===typeof p?p:null!==(n=null===p||void 0===p?void 0:p.width)&&void 0!==n?n:40,excavate:!0,crossOrigin:"anonymous"},P={value:s,size:f,level:g,bgColor:w,fgColor:m,style:{width:null===y||void 0===y?void 0:y.width,height:null===y||void 0===y?void 0:y.height},imageSettings:d?j:void 0},[R]=Es("QRCode");if(!s)return null;const z=a()(O,C,x,N,M,{[`${O}-borderless`]:!h}),T=Object.assign(Object.assign({backgroundColor:w},y),{width:null!==(i=null===y||void 0===y?void 0:y.width)&&void 0!==i?i:f,height:null!==(l=null===y||void 0===y?void 0:y.height)&&void 0!==l?l:f});return I(r().createElement("div",Object.assign({},E,{className:z,style:T}),"active"!==v&&r().createElement("div",{className:`${O}-mask`},r().createElement($W,{prefixCls:O,locale:R,status:v,onRefresh:b,statusRender:S})),"canvas"===u?r().createElement(gW,Object.assign({},P)):r().createElement(hW,Object.assign({},P))))},EW=Bk;EW.Button=Ak,EW.Group=Dk,EW.__ANT_RADIO=!0;const kW=EW;const OW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const IW=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:OW}))}));const NW=r().forwardRef((function(e,t){var n=e.disabled,o=e.prefixCls,i=e.character,l=e.characterRender,c=e.index,s=e.count,u=e.value,d=e.allowHalf,f=e.focused,p=e.onHover,m=e.onClick,g=c+1,v=new Set([o]);0===u&&0===c&&f?v.add("".concat(o,"-focused")):d&&u+.5>=g&&u<g?(v.add("".concat(o,"-half")),v.add("".concat(o,"-active")),f&&v.add("".concat(o,"-focused"))):(g<=u?v.add("".concat(o,"-full")):v.add("".concat(o,"-zero")),g===u&&f&&v.add("".concat(o,"-focused")));var h="function"===typeof i?i(e):i,b=r().createElement("li",{className:a()(Array.from(v)),ref:t},r().createElement("div",{onClick:n?null:function(e){m(e,c)},onKeyDown:n?null:function(e){e.keyCode===zl.ENTER&&m(e,c)},onMouseMove:n?null:function(e){p(e,c)},role:"radio","aria-checked":u>c?"true":"false","aria-posinset":c+1,"aria-setsize":s,tabIndex:n?-1:0},r().createElement("div",{className:"".concat(o,"-first")},h),r().createElement("div",{className:"".concat(o,"-second")},h)));return l&&(b=l(b,e)),b}));var MW=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];const jW=r().forwardRef((function(e,t){var n=e.prefixCls,i=void 0===n?"rc-rate":n,c=e.className,s=e.defaultValue,u=e.value,d=e.count,f=void 0===d?5:d,p=e.allowHalf,m=void 0!==p&&p,g=e.allowClear,v=void 0===g||g,h=e.keyboard,b=void 0===h||h,y=e.character,x=void 0===y?"\u2605":y,$=e.characterRender,w=e.disabled,S=e.direction,E=void 0===S?"ltr":S,k=e.tabIndex,O=void 0===k?0:k,I=e.autoFocus,N=e.onHoverChange,M=e.onChange,j=e.onFocus,P=e.onBlur,R=e.onKeyDown,z=e.onMouseLeave,T=Si(e,MW),B=function(){var e=o.useRef({});return[function(t){return e.current[t]},function(t){return function(n){e.current[t]=n}}]}(),H=Ae(B,2),D=H[0],L=H[1],A=r().useRef(null),F=function(){var e;w||(null===(e=A.current)||void 0===e||e.focus())};r().useImperativeHandle(t,(function(){return{focus:F,blur:function(){var e;w||(null===(e=A.current)||void 0===e||e.blur())}}}));var W=Ae(so(s||0,{value:u}),2),_=W[0],V=W[1],q=Ae(so(null),2),K=q[0],X=q[1],G=function(e,t){var n="rtl"===E,o=e+1;if(m){var r=D(e),i=function(e){var t=function(e){var t,n,o=e.ownerDocument,r=o.body,i=o&&o.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||r.clientLeft||0,top:n-=i.clientTop||r.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!==typeof t){var o=e.document;"number"!==typeof(t=o.documentElement[n])&&(t=o.body[n])}return t}(o),t.left}(r),a=r.clientWidth;(n&&t-i>a/2||!n&&t-i<a/2)&&(o-=.5)}return o},Y=function(e){V(e),null===M||void 0===M||M(e)},U=Ae(r().useState(!1),2),Q=U[0],Z=U[1],J=Ae(r().useState(null),2),ee=J[0],te=J[1],ne=function(e,t){var n=G(t,e.pageX);n!==K&&(te(n),X(null)),null===N||void 0===N||N(n)},oe=function(e){w||(te(null),X(null),null===N||void 0===N||N(void 0)),e&&(null===z||void 0===z||z(e))},re=function(e,t){var n=G(t,e.pageX),o=!1;v&&(o=n===_),oe(),Y(o?0:n),X(o?n:null)};r().useEffect((function(){I&&!w&&F()}),[]);var ie=new Array(f).fill(0).map((function(e,t){return r().createElement(NW,{ref:L(t),index:t,count:f,disabled:w,prefixCls:"".concat(i,"-star"),allowHalf:m,value:null===ee?_:ee,onClick:re,onHover:ne,key:e||t,character:x,characterRender:$,focused:Q})})),ae=a()(i,c,C(C({},"".concat(i,"-disabled"),w),"".concat(i,"-rtl"),"rtl"===E));return r().createElement("ul",l({className:ae,onMouseLeave:oe,tabIndex:w?-1:O,onFocus:w?null:function(){Z(!0),null===j||void 0===j||j()},onBlur:w?null:function(){Z(!1),null===P||void 0===P||P()},onKeyDown:w?null:function(e){var t=e.keyCode,n="rtl"===E,o=m?.5:1;b&&(t===zl.RIGHT&&_<f&&!n?(Y(_+o),e.preventDefault()):t===zl.LEFT&&_>0&&!n||t===zl.RIGHT&&_>0&&n?(Y(_-o),e.preventDefault()):t===zl.LEFT&&_<f&&n&&(Y(_+o),e.preventDefault())),null===R||void 0===R||R(e)},ref:A,role:"radiogroup"},_a(T,{aria:!0,data:!0,attr:!0})),ie)})),PW=jW,RW=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Et(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},zW=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),TW=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),RW(e)),zW(e))}},BW=fi("Rate",(e=>{const t=xo(e,{});return[TW(t)]}),(e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})));var HW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const DW=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,tooltips:c,character:s=o.createElement(IW,null),disabled:u}=e,d=HW(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),{getPrefixCls:f,direction:p,rate:m}=o.useContext(Be),g=f("rate",n),[v,h,b]=BW(g),y=Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),l),C=o.useContext(Qc),x=null!==u&&void 0!==u?u:C;return v(o.createElement(PW,Object.assign({ref:t,character:s,characterRender:(e,t)=>{let{index:n}=t;return c?o.createElement(NC,{title:c[n]},e):e},disabled:x},d,{className:a()(r,i,h,b,null===m||void 0===m?void 0:m.className),style:y,prefixCls:g,direction:p})))}));const LW=DW;const AW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const FW=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:AW}))})),WW=()=>o.createElement("svg",{width:"252",height:"294"},o.createElement("title",null,"No Found"),o.createElement("defs",null,o.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(0 .012)"},o.createElement("mask",{fill:"#fff"}),o.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),o.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),o.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),o.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),o.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),o.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),o.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),o.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),o.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),o.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),o.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),o.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),o.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),o.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),o.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),o.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),o.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),o.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),o.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),o.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),o.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),o.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),o.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),o.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),o.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),o.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),o.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),o.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),o.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),o.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),o.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),o.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),o.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),o.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),o.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),o.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),o.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),o.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),o.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),_W=()=>o.createElement("svg",{width:"254",height:"294"},o.createElement("title",null,"Server Error"),o.createElement("defs",null,o.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),o.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(0 .067)"},o.createElement("mask",{fill:"#fff"}),o.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),o.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),o.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),o.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),o.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),o.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),o.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),o.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),o.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),o.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),o.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),o.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),o.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),o.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),o.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),o.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),o.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),o.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),o.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),o.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),o.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),o.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),o.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),o.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),o.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),o.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),o.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),o.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),o.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),o.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),o.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),o.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),o.createElement("mask",{fill:"#fff"}),o.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),o.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),o.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),o.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),o.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),o.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),o.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),o.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),o.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),o.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),o.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),VW=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:c,lineHeight:s}=e;return{[t]:{padding:`${Et(e.calc(l).mul(2).equal())} ${Et(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${o}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:s,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${Et(l)} ${Et(e.calc(r).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},qW=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},KW=e=>(e=>[VW(e),qW(e)])(e),XW=fi("Result",(e=>{const t=xo(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295});return[KW(t)]}),(e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`}))),GW={success:Fi,error:_i,info:Xi,warning:FW},YW={404:WW,500:_W,403:()=>o.createElement("svg",{width:"251",height:"294"},o.createElement("title",null,"Unauthorized"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),o.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),o.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),o.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),o.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),o.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),o.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),o.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),o.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),o.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),o.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),o.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),o.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),o.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),o.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),o.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),o.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),o.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),o.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),o.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),o.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),o.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),o.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),o.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),o.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),o.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),o.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),o.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),o.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),o.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),o.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),o.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),o.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),o.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),o.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),o.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),o.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},UW=Object.keys(YW),QW=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=a()(`${t}-icon`);if(UW.includes(`${r}`)){const e=YW[r];return o.createElement("div",{className:`${i} ${t}-image`},o.createElement(e,null))}const l=o.createElement(GW[r]);return null===n||!1===n?null:o.createElement("div",{className:i},n||l)},ZW=e=>{let{prefixCls:t,extra:n}=e;return n?o.createElement("div",{className:`${t}-extra`},n):null},JW=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:l,style:c,children:s,status:u="info",icon:d,extra:f}=e;const{getPrefixCls:p,direction:m,result:g}=o.useContext(Be),v=p("result",t),[h,b,y]=XW(v),C=a()(v,`${v}-${u}`,n,null===g||void 0===g?void 0:g.className,r,{[`${v}-rtl`]:"rtl"===m},b,y),x=Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),c);return h(o.createElement("div",{className:C,style:x},o.createElement(QW,{prefixCls:v,status:u,icon:d}),o.createElement("div",{className:`${v}-title`},l),i&&o.createElement("div",{className:`${v}-subtitle`},i),o.createElement(ZW,{prefixCls:v,extra:f}),s&&o.createElement("div",{className:`${v}-content`},s)))};JW.PRESENTED_IMAGE_403=YW[403],JW.PRESENTED_IMAGE_404=YW[404],JW.PRESENTED_IMAGE_500=YW[500];const e_=JW,t_=DH,n_=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a="",prefixCls:l}=e;let c;if("function"===typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"===typeof r&&(s=s.padEnd(r,"0").slice(0,r>0?r:0)),s&&(s=`${i}${s}`),c=[o.createElement("span",{key:"int",className:`${l}-content-value-int`},e,t),s&&o.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},s)]}else c=e}return o.createElement("span",{className:`${l}-content-value`},c)},o_=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:a,fontSize:l,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},r_=fi("Statistic",(e=>{const t=xo(e,{});return[o_(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var i_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const a_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,valueStyle:l,value:c=0,title:s,valueRender:u,prefix:d,suffix:f,loading:p=!1,formatter:m,precision:g,decimalSeparator:v=".",groupSeparator:h=",",onMouseEnter:b,onMouseLeave:y}=e,C=i_(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:x,direction:$,statistic:w}=o.useContext(Be),S=x("statistic",t),[E,k,O]=r_(S),I=o.createElement(n_,{decimalSeparator:v,groupSeparator:h,prefixCls:S,formatter:m,precision:g,value:c}),N=a()(S,{[`${S}-rtl`]:"rtl"===$},null===w||void 0===w?void 0:w.className,n,r,k,O),M=_a(C,{aria:!0,data:!0});return E(o.createElement("div",Object.assign({},M,{className:N,style:Object.assign(Object.assign({},null===w||void 0===w?void 0:w.style),i),onMouseEnter:b,onMouseLeave:y}),s&&o.createElement("div",{className:`${S}-title`},s),o.createElement(zm,{paragraph:!1,loading:p,className:`${S}-skeleton`},o.createElement("div",{style:l,className:`${S}-content`},d&&o.createElement("span",{className:`${S}-content-prefix`},d),u?u(I):I,f&&o.createElement("span",{className:`${S}-content-suffix`},f)))))},l_=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function c_(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map((e=>e.slice(1,-1))),i=t.replace(o,"[]"),a=l_.reduce(((e,t)=>{let[o,r]=t;if(e.includes(o)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${o}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let l=0;return a.replace(o,(()=>{const e=r[l];return l+=1,e}))}(Math.max(o-r,0),n)}var s_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const u_=1e3/30;const d_=o.memo((e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:i}=e,a=s_(e,["value","format","onChange","onFinish"]),l=_y(),c=o.useRef(null),s=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{l(),null===r||void 0===r||r(e-Date.now()),e<Date.now()&&(null===i||void 0===i||i(),c.current&&(clearInterval(c.current),c.current=null))}),u_))};o.useEffect((()=>(s(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return o.createElement(a_,Object.assign({},a,{value:t,valueRender:e=>Ka(e,{title:void 0}),formatter:(e,t)=>c_(e,Object.assign(Object.assign({},t),{format:n}))}))}));a_.Countdown=d_;const f_=a_;var p_=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function m_(e){return"string"===typeof e}const g_=function(e){var t,n=e.className,r=e.prefixCls,i=e.style,c=e.active,s=e.status,u=e.iconPrefix,d=e.icon,f=(e.wrapperStyle,e.stepNumber),p=e.disabled,m=e.description,g=e.title,v=e.subTitle,h=e.progressDot,b=e.stepIcon,y=e.tailContent,x=e.icons,w=e.stepIndex,S=e.onStepClick,E=e.onClick,k=e.render,O=Si(e,p_),I={};!!S&&!p&&(I.role="button",I.tabIndex=0,I.onClick=function(e){null===E||void 0===E||E(e),S(w)},I.onKeyDown=function(e){var t=e.which;t!==zl.ENTER&&t!==zl.SPACE||S(w)});var N=s||"wait",M=a()("".concat(r,"-item"),"".concat(r,"-item-").concat(N),n,(C(t={},"".concat(r,"-item-custom"),d),C(t,"".concat(r,"-item-active"),c),C(t,"".concat(r,"-item-disabled"),!0===p),t)),j=$({},i),P=o.createElement("div",l({},O,{className:M,style:j}),o.createElement("div",l({onClick:E},I,{className:"".concat(r,"-item-container")}),o.createElement("div",{className:"".concat(r,"-item-tail")},y),o.createElement("div",{className:"".concat(r,"-item-icon")},function(){var e,t,n=a()("".concat(r,"-icon"),"".concat(u,"icon"),(C(e={},"".concat(u,"icon-").concat(d),d&&m_(d)),C(e,"".concat(u,"icon-check"),!d&&"finish"===s&&(x&&!x.finish||!x)),C(e,"".concat(u,"icon-cross"),!d&&"error"===s&&(x&&!x.error||!x)),e)),i=o.createElement("span",{className:"".concat(r,"-icon-dot")});return t=h?"function"===typeof h?o.createElement("span",{className:"".concat(r,"-icon")},h(i,{index:f-1,status:s,title:g,description:m})):o.createElement("span",{className:"".concat(r,"-icon")},i):d&&!m_(d)?o.createElement("span",{className:"".concat(r,"-icon")},d):x&&x.finish&&"finish"===s?o.createElement("span",{className:"".concat(r,"-icon")},x.finish):x&&x.error&&"error"===s?o.createElement("span",{className:"".concat(r,"-icon")},x.error):d||"finish"===s||"error"===s?o.createElement("span",{className:n}):o.createElement("span",{className:"".concat(r,"-icon")},f),b&&(t=b({index:f-1,status:s,title:g,description:m,node:t})),t}()),o.createElement("div",{className:"".concat(r,"-item-content")},o.createElement("div",{className:"".concat(r,"-item-title")},g,v&&o.createElement("div",{title:"string"===typeof v?v:void 0,className:"".concat(r,"-item-subtitle")},v)),m&&o.createElement("div",{className:"".concat(r,"-item-description")},m))));return k&&(P=k(P)||null),P};var v_=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function h_(e){var t,n=e.prefixCls,o=void 0===n?"rc-steps":n,i=e.style,c=void 0===i?{}:i,s=e.className,u=(e.children,e.direction),d=void 0===u?"horizontal":u,f=e.type,p=void 0===f?"default":f,m=e.labelPlacement,g=void 0===m?"horizontal":m,v=e.iconPrefix,h=void 0===v?"rc":v,b=e.status,y=void 0===b?"process":b,x=e.size,w=e.current,S=void 0===w?0:w,E=e.progressDot,k=void 0!==E&&E,O=e.stepIcon,I=e.initial,N=void 0===I?0:I,M=e.icons,j=e.onChange,P=e.itemRender,R=e.items,z=void 0===R?[]:R,T=Si(e,v_),B="navigation"===p,H="inline"===p,D=H||k,L=H?"horizontal":d,A=H?void 0:x,F=D?"vertical":g,W=a()(o,"".concat(o,"-").concat(L),s,(C(t={},"".concat(o,"-").concat(A),A),C(t,"".concat(o,"-label-").concat(F),"horizontal"===L),C(t,"".concat(o,"-dot"),!!D),C(t,"".concat(o,"-navigation"),B),C(t,"".concat(o,"-inline"),H),t)),_=function(e){j&&S!==e&&j(e)};return r().createElement("div",l({className:W,style:c},T),z.filter((function(e){return e})).map((function(e,t){var n=$({},e),i=N+t;return"error"===y&&t===S-1&&(n.className="".concat(o,"-next-error")),n.status||(n.status=i===S?y:i<S?"finish":"wait"),H&&(n.icon=void 0,n.subTitle=void 0),!n.render&&P&&(n.render=function(e){return P(n,e)}),r().createElement(g_,l({},n,{active:i===S,stepNumber:i+1,stepIndex:i,key:i,prefixCls:o,iconPrefix:h,wrapperStyle:c,progressDot:D,stepIcon:O,icons:M,onStepClick:j&&_}))})))}h_.Step=g_;const b_=h_,y_=e=>{const{componentCls:t,customIconTop:n,customIconSize:o,customIconFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:Et(o)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},C_=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},x_=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Et(i)} ${Et(e.paddingXXS)} 0`,margin:`0 ${Et(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Et(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Et(e.lineWidth)} ${e.lineType} ${r}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${Et(e.lineWidth)} ${e.lineType} ${r}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Et(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},$_=e=>{const{componentCls:t,iconSize:n,lineHeight:o,iconSizeSM:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Et(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(r).div(2).add(e.controlHeightLG).equal()}}}}}},w_=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Po),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Et(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Et(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},S_=e=>{const{antCls:t,componentCls:n,iconSize:o,iconSizeSM:r,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:c,paddingXXS:s}=e,u=e.calc(o).add(e.calc(l).mul(4).equal()).equal(),d=e.calc(r).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:s,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:s,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(o).div(2).sub(c).add(s).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:s,paddingInlineStart:s}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(r).div(2).sub(c).add(s).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(s).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Et(u)} !important`,height:`${Et(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(s).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Et(d)} !important`,height:`${Et(d)} !important`}}}}},E_=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:o,dotCurrentSize:r,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Et(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Et(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:Et(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(r).div(2).equal(),width:r,height:r,lineHeight:Et(r),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(r).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Et(e.calc(i).add(e.paddingXS).equal())} 0 ${Et(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(r).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},k_=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},O_=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Et(e.marginXS)}`,fontSize:o,lineHeight:Et(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:Et(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:Et(n),transform:"none"}}}}},I_=e=>{const{componentCls:t,iconSizeSM:n,iconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:Et(o)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Et(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${Et(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Et(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Et(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:Et(n)}}}}},N_=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},M_=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`,r=`${o}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},To(e))}},[`${r}, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:Et(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${Et(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:Et(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},N_("wait",e)),N_("process",e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),N_("finish",e)),N_("error",e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},j_=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},P_=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),M_(e)),j_(e)),y_(e)),O_(e)),I_(e)),C_(e)),$_(e)),E_(e)),w_(e)),k_(e)),S_(e)),x_(e))}},R_=fi("Steps",(e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:o,colorText:r,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:c,colorBorderSecondary:s,colorSplit:u}=e,d=xo(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:u,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:u,waitDotColor:t,finishIconColor:i,finishTitleColor:r,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:o,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:u,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:s});return[P_(d)]}),(e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive})));var z_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const T_=e=>{const{percent:t,size:n,className:r,rootClassName:i,direction:l,items:c,responsive:u=!0,current:d=0,children:f,style:p}=e,m=z_(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:g}=Vy(u),{getPrefixCls:v,direction:h,steps:b}=o.useContext(Be),y=o.useMemo((()=>u&&g?"vertical":l),[g,l]),C=Bs(n),x=v("steps",e.prefixCls),[$,w,S]=R_(x),E="inline"===e.type,k=v("",e.iconPrefix),O=function(e,t){if(e)return e;const n=s(t).map((e=>{if(o.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null}));return function(e){return e.filter((e=>e))}(n)}(c,f),I=E?void 0:t,N=Object.assign(Object.assign({},null===b||void 0===b?void 0:b.style),p),M=a()(null===b||void 0===b?void 0:b.className,{[`${x}-rtl`]:"rtl"===h,[`${x}-with-progress`]:void 0!==I},r,i,w,S),j={finish:o.createElement(wy,{className:`${x}-finish-icon`}),error:o.createElement(qi,{className:`${x}-error-icon`})};return $(o.createElement(b_,Object.assign({icons:j},m,{style:N,current:d,size:C,items:O,itemRender:E?(e,t)=>e.description?o.createElement(NC,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;if("process"===n&&void 0!==I){const e="small"===C?32:40;return o.createElement("div",{className:`${x}-progress-icon`},o.createElement(YF,{type:"circle",percent:I,size:e,strokeWidth:4,format:()=>null}),t)}return t},direction:y,prefixCls:x,iconPrefix:k,className:M})))};T_.Step=b_.Step;const B_=T_;var H_=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],D_=o.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,c=e.className,s=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,p=e.checkedChildren,m=e.unCheckedChildren,g=e.onClick,v=e.onChange,h=e.onKeyDown,b=Si(e,H_),y=Ae(so(!1,{value:s,defaultValue:u}),2),x=y[0],$=y[1];function w(e,t){var n=x;return d||($(n=e),null===v||void 0===v||v(n,t)),n}var S=a()(i,c,(C(n={},"".concat(i,"-checked"),x),C(n,"".concat(i,"-disabled"),d),n));return o.createElement("button",l({},b,{type:"button",role:"switch","aria-checked":x,disabled:d,className:S,ref:t,onKeyDown:function(e){e.which===zl.LEFT?w(!1,e):e.which===zl.RIGHT&&w(!0,e),null===h||void 0===h||h(e)},onClick:function(e){var t=w(!x,e);null===g||void 0===g||g(t,e)}}),f,o.createElement("span",{className:"".concat(i,"-inner")},o.createElement("span",{className:"".concat(i,"-inner-checked")},p),o.createElement("span",{className:"".concat(i,"-inner-unchecked")},m)))}));D_.displayName="Switch";const L_=D_,A_=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=Et(c(l).add(c(o).mul(2)).equal()),d=Et(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:Et(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Et(c(l).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},F_=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},W_=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Et(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},__=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=Et(l(a).add(l(o).mul(2)).equal()),u=Et(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(o).mul(2).equal(),marginInlineEnd:l(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(o).mul(-1).mul(2).equal(),marginInlineEnd:l(o).mul(2).equal()}}}}}},V_=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:Et(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Bo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},q_=fi("Switch",(e=>{const t=xo(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[V_(t),__(t),W_(t),F_(t),A_(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:r,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Fr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}));var K_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const X_=o.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:l,className:c,rootClassName:s,style:u,checked:d,value:f,defaultChecked:p,defaultValue:m,onChange:g}=e,v=K_(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,b]=so(!1,{value:null!==d&&void 0!==d?d:f,defaultValue:null!==p&&void 0!==p?p:m}),{getPrefixCls:y,direction:C,switch:x}=o.useContext(Be),$=o.useContext(Qc),w=(null!==i&&void 0!==i?i:$)||l,S=y("switch",n),E=o.createElement("div",{className:`${S}-handle`},l&&o.createElement(Yl,{className:`${S}-loading-icon`})),[k,O,I]=q_(S),N=Bs(r),M=a()(null===x||void 0===x?void 0:x.className,{[`${S}-small`]:"small"===N,[`${S}-loading`]:l,[`${S}-rtl`]:"rtl"===C},c,s,O,I),j=Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),u);return k(o.createElement(Ts,{component:"Switch"},o.createElement(L_,Object.assign({},v,{checked:h,onChange:function(){b(arguments.length<=0?void 0:arguments[0]),null===g||void 0===g||g.apply(void 0,arguments)},prefixCls:S,className:M,style:j,disabled:w,ref:t,loadingIcon:E}))))})),G_=X_;G_.__ANT_SWITCH=!0;const Y_=G_;var U_={},Q_="rc-table-internal-hook";function Z_(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=o.useRef(n);i.current=n;var a=Ae(o.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),1)[0];return Rt((function(){(0,w.unstable_batchedUpdates)((function(){a.listeners.forEach((function(e){e(n)}))}))}),[n]),o.createElement(t.Provider,{value:a},r)},defaultValue:e}}function J_(e,t){var n=ao("function"===typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=o.useContext(null===e||void 0===e?void 0:e.Context),i=r||{},a=i.listeners,l=i.getValue,c=o.useRef();c.current=n(r?l():null===e||void 0===e?void 0:e.defaultValue);var s=Ae(o.useState({}),2)[1];return Rt((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);et(c.current,t,!0)||s({})}}),[r]),c.current}function eV(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=P(n),a=function(a,c){var s=i?{ref:c}:{},u=o.useRef(0),d=o.useRef(a);return null!==t()?o.createElement(n,l({},a,s)):(r&&!r(d.current,a)||(u.current+=1),d.current=a,o.createElement(e.Provider,{value:u.current},o.createElement(n,l({},a,s))))};return i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=P(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,l({},n,a))};return r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}var tV=eV(),nV=(tV.makeImmutable,tV.responseImmutable,tV.useImmutableMark,eV()),oV=nV.makeImmutable,rV=nV.responseImmutable,iV=nV.useImmutableMark;const aV=Z_();o.memo((function(){var e=function(e,t){var n=o.useRef(0);n.current+=1;var r=o.useRef(e),i=[];Object.keys(e||{}).map((function(t){var n;(null===e||void 0===e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&i.push(t)})),r.current=e;var a=o.useRef([]);return i.length&&(a.current=i),o.useDebugValue(n.current),o.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),n.current,a.current),n.current}();return o.createElement("h1",null,"Render Times: ",e)}));const lV=o.createContext({renderWithProps:!1});function cV(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,void 0===o||null===o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function sV(e){return null!==e&&void 0!==e}function uV(e,t,n,r,i,a){var l=o.useContext(lV),c=I((function(){if(sV(r))return[r];var a,c=null===t||void 0===t||""===t?[]:Array.isArray(t)?t:[t],s=fo(e,c),u=s,d=void 0;if(i){var f=i(s,e,n);!(a=f)||"object"!==b(a)||Array.isArray(a)||o.isValidElement(a)?u=f:(u=f.children,d=f.props,l.renderWithProps=!0)}return[u,d]}),[iV(),e,r,t,i,n],(function(e,t){if(a){var n=Ae(e,2)[1],o=Ae(t,2)[1];return a(o,n)}return!!l.renderWithProps||!et(e,t,!0)}));return c}const dV=o.memo((function(e){var t,n,r,i,c,s,u,d,f=e.component,p=e.children,m=e.ellipsis,g=e.scope,v=e.prefixCls,h=e.className,y=e.align,x=e.record,w=e.render,S=e.dataIndex,E=e.renderIndex,k=e.shouldCellUpdate,O=e.index,I=e.rowType,N=e.colSpan,M=e.rowSpan,j=e.fixLeft,P=e.fixRight,R=e.firstFixLeft,z=e.lastFixLeft,T=e.firstFixRight,B=e.lastFixRight,H=e.appendNode,D=e.additionalProps,L=void 0===D?{}:D,A=e.isSticky,F="".concat(v,"-cell"),W=J_(aV,["supportSticky","allColumnsFixedLeft","rowHoverable"]),_=W.supportSticky,V=W.allColumnsFixedLeft,q=W.rowHoverable,K=Ae(uV(x,S,E,p,w,k),2),X=K[0],G=K[1],Y={},U="number"===typeof j&&_,Q="number"===typeof P&&_;U&&(Y.position="sticky",Y.left=j),Q&&(Y.position="sticky",Y.right=P);var Z=null!==(t=null!==(n=null!==(r=null===G||void 0===G?void 0:G.colSpan)&&void 0!==r?r:L.colSpan)&&void 0!==n?n:N)&&void 0!==t?t:1,J=null!==(i=null!==(c=null!==(s=null===G||void 0===G?void 0:G.rowSpan)&&void 0!==s?s:L.rowSpan)&&void 0!==c?c:M)&&void 0!==i?i:1,ee=function(e,t){return J_(aV,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(O,J),te=Ae(ee,2),ne=te[0],oe=te[1],re=ao((function(e){var t;x&&oe(O,O+J-1),null===L||void 0===L||null===(t=L.onMouseEnter)||void 0===t||t.call(L,e)})),ie=ao((function(e){var t;x&&oe(-1,-1),null===L||void 0===L||null===(t=L.onMouseLeave)||void 0===t||t.call(L,e)}));if(0===Z||0===J)return null;var ae=null!==(u=L.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"===typeof i||"number"===typeof i?t=i.toString():o.isValidElement(i)&&"string"===typeof i.props.children&&(t=i.props.children)),t}({rowType:I,ellipsis:m,children:X}),le=a()(F,h,(C(C(C(C(C(C(C(C(C(C(d={},"".concat(F,"-fix-left"),U&&_),"".concat(F,"-fix-left-first"),R&&_),"".concat(F,"-fix-left-last"),z&&_),"".concat(F,"-fix-left-all"),z&&V&&_),"".concat(F,"-fix-right"),Q&&_),"".concat(F,"-fix-right-first"),T&&_),"".concat(F,"-fix-right-last"),B&&_),"".concat(F,"-ellipsis"),m),"".concat(F,"-with-append"),H),"".concat(F,"-fix-sticky"),(U||Q)&&A&&_),C(d,"".concat(F,"-row-hover"),!G&&ne)),L.className,null===G||void 0===G?void 0:G.className),ce={};y&&(ce.textAlign=y);var se=$($($($({},Y),L.style),ce),null===G||void 0===G?void 0:G.style),ue=X;return"object"!==b(ue)||Array.isArray(ue)||o.isValidElement(ue)||(ue=null),m&&(z||T)&&(ue=o.createElement("span",{className:"".concat(F,"-content")},ue)),o.createElement(f,l({},G,L,{className:le,style:se,title:ae,scope:g,onMouseEnter:q?re:void 0,onMouseLeave:q?ie:void 0,colSpan:1!==Z?Z:null,rowSpan:1!==J?J:null}),H,ue)}));function fV(e,t,n,o,r){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=o.left["rtl"===r?t:e]:"right"===c.fixed&&(a=o.right["rtl"===r?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==i)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}const pV=o.createContext({});var mV=["children"];function gV(e){return e.children}gV.Row=function(e){var t=e.children,n=Si(e,mV);return o.createElement("tr",n,t)},gV.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,c=e.rowSpan,s=e.align,u=J_(aV,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,p=o.useContext(pV),m=p.scrollColumnIndex,g=p.stickyOffsets,v=n+a-1+1===m?a+1:a,h=fV(n,n+v-1,p.flattenColumns,g,f);return o.createElement(dV,l({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:c,render:function(){return r}},h))};const vV=gV;const hV=rV((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=J_(aV,"prefixCls"),a=r.length-1,l=r[a],c=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!==l&&void 0!==l&&l.scrollbar?a:null}}),[l,r,a,n]);return o.createElement(pV.Provider,{value:c},o.createElement("tfoot",{className:"".concat(i,"-summary")},t))}));var bV=vV,yV=function(e){if(We()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function CV(e,t){return Array.isArray(e)||void 0===t?yV(e):function(e,t){if(!yV(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}function xV(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null===r||void 0===r?void 0:r.has(l);if(t&&Array.isArray(t[o])&&c)for(var s=0;s<t[o].length;s+=1)xV(e,t[o][s],n+1,o,r,i,s)}function $V(e,t,n,r){var i=o.useMemo((function(){if(null!==n&&void 0!==n&&n.size){for(var o=[],i=0;i<(null===e||void 0===e?void 0:e.length);i+=1){xV(o,e[i],0,t,n,r,i)}return o}return null===e||void 0===e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r]);return i}function wV(e,t,n,o){var r,i=J_(aV,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=i.flattenColumns,c=i.expandableType,s=i.expandedKeys,u=i.childrenColumnName,d=i.onTriggerExpand,f=i.rowExpandable,p=i.onRow,m=i.expandRowByClick,g=i.rowClassName,v="nest"===c,h="row"===c&&(!f||f(e)),b=h||v,y=s&&s.has(t),C=u&&e&&e[u],x=ao(d),w=null===p||void 0===p?void 0:p(e,n),S=null===w||void 0===w?void 0:w.onClick;"string"===typeof g?r=g:"function"===typeof g&&(r=g(e,n,o));var E=cV(l);return $($({},i),{},{columnsKey:E,nestExpandable:v,expanded:y,hasNestChildren:C,record:e,onTriggerExpand:x,rowSupportExpand:h,expandable:b,rowProps:$($({},w),{},{className:a()(r,null===w||void 0===w?void 0:w.className),onClick:function(t){m&&b&&d(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===S||void 0===S||S.apply(void 0,[t].concat(o))}})})}const SV=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,l=e.expanded,c=e.colSpan,s=e.isEmpty,u=J_(aV,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,m=u.componentWidth,g=u.horizonScroll,v=n;return(s?g&&m:p)&&(v=o.createElement("div",{style:{width:m-(f&&!s?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),o.createElement(r,{className:a,style:{display:l?null:"none"}},o.createElement(dV,{component:i,prefixCls:t,colSpan:c},v))};function EV(e,t,n,r,i){var a,l,c=e.record,s=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,p=e.nestExpandable,m=e.indentSize,g=e.expandIcon,v=e.expanded,h=e.hasNestChildren,b=e.onTriggerExpand,y=u[n],C=d[n];return n===(f||0)&&p&&(a=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(m*r,"px")},className:"".concat(s,"-row-indent indent-level-").concat(r)}),g({prefixCls:s,expanded:v,expandable:h,record:c,onExpand:b}))),t.onCell&&(l=t.onCell(c,i)),{key:y,fixedInfo:C,appendCellNode:a,additionalCellProps:l||{}}}const kV=rV((function(e){var t=e.className,n=e.style,r=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,u=e.indent,d=void 0===u?0:u,f=e.rowComponent,p=e.cellComponent,m=e.scopeCellComponent,g=wV(r,s,i,d),v=g.prefixCls,h=g.flattenColumns,b=g.expandedRowClassName,y=g.expandedRowRender,C=g.rowProps,x=g.expanded,w=g.rowSupportExpand,S=o.useRef(!1);S.current||(S.current=x);var E,k=b&&b(r,i,d),O=o.createElement(f,l({},C,{"data-row-key":s,className:a()(t,"".concat(v,"-row"),"".concat(v,"-row-level-").concat(d),null===C||void 0===C?void 0:C.className,d>=1?k:""),style:$($({},n),null===C||void 0===C?void 0:C.style)}),h.map((function(e,t){var n=e.render,a=e.dataIndex,s=e.className,u=EV(g,e,t,d,i),f=u.key,h=u.fixedInfo,b=u.appendCellNode,y=u.additionalCellProps;return o.createElement(dV,l({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?m:p,prefixCls:v,key:f,record:r,index:i,renderIndex:c,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},h,{appendNode:b,additionalProps:y}))})));if(w&&(S.current||x)){var I=y(r,i,d+1,x);E=o.createElement(SV,{expanded:x,className:a()("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),k),prefixCls:v,component:f,cellComponent:p,colSpan:h.length,isEmpty:!1},I)}return o.createElement(o.Fragment,null,O,E)}));function OV(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(ye,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function IV(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(ye.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(OV,{key:e,columnKey:e,onColumnResize:r})}))))}const NV=rV((function(e){var t,n=e.data,r=e.measureColumnWidth,i=J_(aV,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,m=$V(n,f,d,u),g=o.useRef({renderWithProps:!1}),v=l(["body","wrapper"],"tbody"),h=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");t=n.length?m.map((function(e,t){var n=e.record,r=e.indent,i=e.index,a=u(n,t);return o.createElement(kV,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:h,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:r})})):o.createElement(SV,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:h,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var C=cV(s);return o.createElement(lV.Provider,{value:g.current},o.createElement(v,{className:"".concat(a,"-tbody")},r&&o.createElement(IV,{prefixCls:a,columnsKey:C,onColumnResize:c}),t))}));var MV=["expandable"],jV="RC_TABLE_INTERNAL_COL_DEFINE";var PV=["columnType"];const RV=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=J_(aV,["tableLayout"]).tableLayout,a=[],c=!1,s=(r||n.length)-1;s>=0;s-=1){var u=t[s],d=n&&n[s],f=void 0,p=void 0;if(d&&(f=d[jV],"auto"===i&&(p=d.minWidth)),u||p||f||c){var m=f||{},g=(m.columnType,Si(m,PV));a.unshift(o.createElement("col",l({key:s,style:{width:u,minWidth:p}},g))),c=!0}}return o.createElement("colgroup",null,a)};var zV=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var TV=o.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,l=e.flattenColumns,c=e.colWidths,s=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,p=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,v=e.onScroll,h=e.maxContentScroll,b=e.children,y=Si(e,zV),x=J_(aV,["prefixCls","scrollbarSize","isSticky","getComponent"]),w=x.prefixCls,S=x.scrollbarSize,E=x.isSticky,k=(0,x.getComponent)(["header","table"],"table"),O=E&&!f?0:S,I=o.useRef(null),M=o.useCallback((function(e){N(t,e),N(I,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(v({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=I.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=I.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var j=o.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),P=l[l.length-1],R={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},z=(0,o.useMemo)((function(){return O?[].concat(Se(i),[R]):i}),[O,i]),T=(0,o.useMemo)((function(){return O?[].concat(Se(l),[R]):l}),[O,l]),B=(0,o.useMemo)((function(){var e=u.right,t=u.left;return $($({},u),{},{left:"rtl"===d?[].concat(Se(t.map((function(e){return e+O}))),[0]):t,right:"rtl"===d?e:[].concat(Se(e.map((function(e){return e+O}))),[0]),isSticky:E})}),[O,u,E]),H=function(e,t){return(0,o.useMemo)((function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n}),[e.join("_"),t])}(c,s);return o.createElement("div",{style:$({overflow:"hidden"},E?{top:p,bottom:m}:{}),ref:M,className:a()(n,C({},g,!!g))},o.createElement(k,{style:{tableLayout:"fixed",visibility:r||H?null:"hidden"}},(!r||!h||j)&&o.createElement(RV,{colWidths:H?[].concat(Se(H),[O]):[],columCount:s+1,columns:T}),b($($({},y),{},{stickyOffsets:B,columns:z,flattenColumns:T}))))}));const BV=o.memo(TV);const HV=function(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,c=e.cellComponent,s=e.onHeaderRow,u=e.index,d=J_(aV,["prefixCls","direction"]),f=d.prefixCls,p=d.direction;s&&(t=s(n.map((function(e){return e.column})),u));var m=cV(n.map((function(e){return e.column})));return o.createElement(a,t,n.map((function(e,t){var n,a=e.column,s=fV(e.colStart,e.colEnd,i,r,p);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),o.createElement(dV,l({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:f,key:m[t]},s,{additionalProps:n,rowType:"header"}))})))};const DV=rV((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=J_(aV,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o,a=n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}));return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)o(r);return t}(n)}),[n]),u=c(["header","wrapper"],"thead"),d=c(["header","row"],"tr"),f=c(["header","cell"],"th");return o.createElement(u,{className:"".concat(l,"-thead")},s.map((function(e,n){return o.createElement(HV,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,onHeaderRow:i,index:n})})))}));function LV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var AV=["children"],FV=["fixed"];function WV(e){return s(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=$({key:t},Si(n,AV));return o&&(r.children=WV(o)),r}))}function _V(e){return e.filter((function(e){return e&&"object"===b(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?$($({},e),{},{children:_V(t)}):e}))}function VV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===b(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),l=n.children;return l&&l.length>0?[].concat(Se(e),Se(VV(l,a).map((function(e){return $({fixed:i},e)})))):[].concat(Se(e),[$($({key:a},n),{},{fixed:i})])}),[])}const qV=function(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,m=e.direction,g=e.expandRowByClick,v=e.columnWidth,h=e.fixed,b=e.scrollWidth,y=e.clientWidth,x=o.useMemo((function(){return _V((r||WV(i)||[]).slice())}),[r,i]),w=o.useMemo((function(){if(a){var e=x.slice();if(!e.includes(U_)){var t=p||0;t>=0&&e.splice(t,0,U_)}0;var r=e.indexOf(U_);e=e.filter((function(e,t){return e!==U_||t===r}));var i,m=x[r];i="left"!==h&&!h||p?"right"!==h&&!h||p!==x.length?m?m.fixed:null:"right":"left";var b=C(C(C(C(C(C({},jV,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",i),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",(function(e,t,r){var i=s(t,r),a=l.has(i),c=!f||f(t),p=d({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:u});return g?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p}));return e.map((function(e){return e===U_?b:e}))}return x.filter((function(e){return e!==U_}))}),[a,x,s,l,d,m]),S=o.useMemo((function(){var e=w;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,w,m]),E=o.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),$({fixed:n},Si(e,FV))}))}(VV(S)):VV(S)}),[S,m,b]),k=o.useMemo((function(){for(var e=-1,t=E.length-1;t>=0;t-=1){var n=E[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=E[o].fixed;if("left"!==r&&!0!==r)return!0}var i=E.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<E.length;a+=1){if("right"!==E[a].fixed)return!0}return!1}),[E]),O=function(e,t,n){return o.useMemo((function(){if(t&&t>0){var o=0,r=0;e.forEach((function(e){var n=LV(t,e.width);n?o+=n:r+=1}));var i=Math.max(t,n),a=Math.max(i-o,r),l=r,c=a/r,s=0,u=e.map((function(e){var n=$({},e),o=LV(t,n.width);if(o)n.width=o;else{var r=Math.floor(c);n.width=1===l?a:r,a-=r,l-=1}return s+=n.width,n}));if(s<i){var d=i/s;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(s,i)]}return[e,t]}),[e,t,n])}(E,b,y),I=Ae(O,2),N=I[0],M=I[1];return[S,N,M,k]};function KV(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,l=e.expandable,c="".concat(t,"-row-expand-icon");if(!l)return o.createElement("span",{className:a()(c,"".concat(t,"-row-spaced"))});return o.createElement("span",{className:a()(c,C(C({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:function(e){r(n,e),e.stopPropagation()}})}function XV(e,t,n){var r=function(e){var t,n=e.expandable,o=Si(e,MV);return!1===(t="expandable"in e?$($({},o),n):o).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,a=r.expandedRowKeys,l=r.defaultExpandedRowKeys,c=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=i||KV,p=r.childrenColumnName||"children",m=o.useMemo((function(){return s?"row":!!(e.expandable&&e.internalHooks===Q_&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===b(e)&&e[p]})))&&"nest"}),[!!s,t]),g=o.useState((function(){return l||(c?function(e,t,n){var o=[];return function e(r){(r||[]).forEach((function(r,i){o.push(t(r,i)),e(r[n])}))}(e),o}(t,n,p):[])})),v=Ae(g,2),h=v[0],y=v[1],C=o.useMemo((function(){return new Set(a||h||[])}),[a,h]),x=o.useCallback((function(e){var o,r=n(e,t.indexOf(e)),i=C.has(r);i?(C.delete(r),o=Se(C)):o=[].concat(Se(C),[r]),y(o),u&&u(!i,e),d&&d(o)}),[n,C,t,u,d]);return[r,m,C,f,p,x]}function GV(e){var t=(0,o.useRef)(e),n=Ae((0,o.useState)({}),2)[1],r=(0,o.useRef)(null),i=(0,o.useRef)([]);return(0,o.useEffect)((function(){return function(){r.current=null}}),[]),[t.current,function(e){i.current.push(e);var o=Promise.resolve();r.current=o,o.then((function(){if(r.current===o){var e=i.current,a=t.current;i.current=[],e.forEach((function(e){t.current=e(t.current)})),r.current=null,a!==t.current&&n({})}}))}]}var YV=We()?window:null;const UV=function(e,t,n){var r=(0,o.useMemo)((function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,l=n;l!==o;l+=r)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return r};const QV=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};const ZV=o.forwardRef((function(e,t){var n,r,i=e.scrollBodyRef,l=e.onScroll,c=e.offsetScroll,s=e.container,u=J_(aV,"prefixCls"),d=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,f=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,p=d&&f*(f/d),m=o.useRef(),g=Ae(GV({scrollLeft:0,isHiddenScrollBar:!0}),2),v=g[0],h=g[1],b=o.useRef({delta:0,x:0}),y=Ae(o.useState(!1),2),x=y[0],w=y[1],S=o.useRef(null);o.useEffect((function(){return function(){je.cancel(S.current)}}),[]);var E=function(){w(!1)},k=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(x&&0!==n){var o=b.current.x+e.pageX-b.current.x-b.current.delta;o<=0&&(o=0),o+p>=f&&(o=f-p),l({scrollLeft:o/f*(d+2)}),b.current.x=e.pageX}else x&&w(!1)},O=function(){S.current=je((function(){if(i.current){var e=iD(i.current).top,t=e+i.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:iD(s).top+s.clientHeight;t-uf()<=n||e>=n-c?h((function(e){return $($({},e),{},{isHiddenScrollBar:!0})})):h((function(e){return $($({},e),{},{isHiddenScrollBar:!1})}))}}))},I=function(e){h((function(t){return $($({},t),{},{scrollLeft:e/d*f||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:I,checkScrollBarVisible:O}})),o.useEffect((function(){var e=aD(document.body,"mouseup",E,!1),t=aD(document.body,"mousemove",k,!1);return O(),function(){e.remove(),t.remove()}}),[p,x]),o.useEffect((function(){var e=aD(s,"scroll",O,!1),t=aD(window,"resize",O,!1);return function(){e.remove(),t.remove()}}),[s]),o.useEffect((function(){v.isHiddenScrollBar||h((function(e){var t=i.current;return t?$($({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[v.isHiddenScrollBar]),d<=f||!p||v.isHiddenScrollBar?null:o.createElement("div",{style:{height:uf(),width:f,bottom:c},className:"".concat(u,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),b.current.delta=e.pageX-v.scrollLeft,b.current.x=0,w(!0),e.preventDefault()},ref:m,className:a()("".concat(u,"-sticky-scroll-bar"),C({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))}));const JV=function(e){return null};const eq=function(e){return null};var tq="rc-table",nq=[],oq={};function rq(){return"No Data"}var iq=o.forwardRef((function(e,t){var n=$({rowKey:"key",prefixCls:tq,emptyText:rq},e),r=n.prefixCls,i=n.className,c=n.rowClassName,s=n.style,u=n.data,d=n.rowKey,f=n.scroll,p=n.tableLayout,m=n.direction,g=n.title,v=n.footer,h=n.summary,y=n.caption,x=n.id,w=n.showHeader,S=n.components,E=n.emptyText,O=n.onRow,N=n.onHeaderRow,M=n.onScroll,j=n.internalHooks,P=n.transformColumns,R=n.internalRefs,z=n.tailor,T=n.getContainerWidth,B=n.sticky,H=n.rowHoverable,D=void 0===H||H,L=u||nq,A=!!L.length,F=j===Q_,W=o.useCallback((function(e,t){return fo(S,e)||t}),[S]),_=o.useMemo((function(){return"function"===typeof d?d:function(e){return e&&e[d]}}),[d]),V=W(["body"]),q=function(){var e=Ae(o.useState(-1),2),t=e[0],n=e[1],r=Ae(o.useState(-1),2),i=r[0],a=r[1];return[t,i,o.useCallback((function(e,t){n(e),a(t)}),[])]}(),K=Ae(q,3),X=K[0],G=K[1],Y=K[2],U=Ae(XV(n,L,_),6),Q=U[0],Z=U[1],J=U[2],ee=U[3],te=U[4],ne=U[5],oe=null===f||void 0===f?void 0:f.x,re=Ae(o.useState(0),2),ie=re[0],ae=re[1],le=Ae(qV($($($({},n),Q),{},{expandable:!!Q.expandedRowRender,columnTitle:Q.columnTitle,expandedKeys:J,getRowKey:_,onTriggerExpand:ne,expandIcon:ee,expandIconColumnIndex:Q.expandIconColumnIndex,direction:m,scrollWidth:F&&z&&"number"===typeof oe?oe:null,clientWidth:ie}),F?P:null),4),ce=le[0],se=le[1],ue=le[2],de=le[3],fe=null!==ue&&void 0!==ue?ue:oe,pe=o.useMemo((function(){return{columns:ce,flattenColumns:se}}),[ce,se]),me=o.useRef(),ge=o.useRef(),ve=o.useRef(),he=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:me.current,scrollTo:function(e){var t,n;if(ve.current instanceof HTMLElement){var o=e.index,r=e.top,i=e.key;if("number"!==typeof(n=r)||Number.isNaN(n)){var a,l=null!==i&&void 0!==i?i:_(L[o]);null===(a=ve.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=ve.current)||void 0===c||c.scrollTo({top:r})}}else null!==(t=ve.current)&&void 0!==t&&t.scrollTo&&ve.current.scrollTo(e)}}}));var be,Ce,xe,$e=o.useRef(),we=Ae(o.useState(!1),2),Se=we[0],Ee=we[1],ke=Ae(o.useState(!1),2),Oe=ke[0],Ie=ke[1],Ne=Ae(GV(new Map),2),Me=Ne[0],je=Ne[1],Pe=cV(se).map((function(e){return Me.get(e)})),Re=o.useMemo((function(){return Pe}),[Pe.join("_")]),ze=UV(Re,se,m),Te=f&&sV(f.y),Be=f&&sV(fe)||Boolean(Q.fixed),He=Be&&se.some((function(e){return e.fixed})),De=o.useRef(),Le=function(e,t){var n="object"===b(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return YV}:u)()||YV,f=!!e;return o.useMemo((function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[f,s,i,l,t,d])}(B,r),Fe=Le.isSticky,We=Le.offsetHeader,_e=Le.offsetSummary,Ve=Le.offsetScroll,qe=Le.stickyClassName,Ke=Le.container,Xe=o.useMemo((function(){return null===h||void 0===h?void 0:h(L)}),[h,L]),Ge=(Te||Fe)&&o.isValidElement(Xe)&&Xe.type===vV&&Xe.props.fixed;Te&&(Ce={overflowY:A?"scroll":"auto",maxHeight:f.y}),Be&&(be={overflowX:"auto"},Te||(Ce={overflowY:"hidden"}),xe={width:!0===fe?"auto":fe,minWidth:"100%"});var Ye=o.useCallback((function(e,t){ks(me.current)&&je((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Ue=Ae(function(e){var t=(0,o.useRef)(e||null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}return(0,o.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),2),Qe=Ue[0],Ze=Ue[1];function Je(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var tt=ao((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===m,i="number"===typeof o?o:n.scrollLeft,a=n||oq;Ze()&&Ze()!==a||(Qe(a),Je(i,ge.current),Je(i,ve.current),Je(i,$e.current),Je(i,null===(t=De.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ge.current;if(l){var c="number"===typeof fe?fe:l.scrollWidth,s=l.clientWidth;if(c===s)return Ee(!1),void Ie(!1);r?(Ee(-i<c-s),Ie(-i>0)):(Ee(i>0),Ie(i<c-s))}})),nt=ao((function(e){tt(e),null===M||void 0===M||M(e)})),ot=function(){var e;Be&&ve.current?tt({currentTarget:k(ve.current),scrollLeft:null===(e=ve.current)||void 0===e?void 0:e.scrollLeft}):(Ee(!1),Ie(!1))},rt=o.useRef(!1);o.useEffect((function(){rt.current&&ot()}),[Be,u,ce.length]),o.useEffect((function(){rt.current=!0}),[]);var it=Ae(o.useState(0),2),at=it[0],lt=it[1],ct=Ae(o.useState(!0),2),st=ct[0],ut=ct[1];o.useEffect((function(){z&&F||(ve.current instanceof Element?lt(df(ve.current).width):lt(df(he.current).width)),ut(CV("position","sticky"))}),[]),o.useEffect((function(){F&&R&&(R.body.current=ve.current)}));var dt,ft=o.useCallback((function(e){return o.createElement(o.Fragment,null,o.createElement(DV,e),"top"===Ge&&o.createElement(hV,e,Xe))}),[Ge,Xe]),pt=o.useCallback((function(e){return o.createElement(hV,e,Xe)}),[Xe]),mt=W(["table"],"table"),gt=o.useMemo((function(){return p||(He?"max-content"===fe?"auto":"fixed":Te||Fe||se.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Te,He,se,p,Fe]),vt={colWidths:Re,columCount:se.length,stickyOffsets:ze,onHeaderRow:N,fixHeader:Te,scroll:f},ht=o.useMemo((function(){return A?null:"function"===typeof E?E():E}),[A,E]),bt=o.createElement(NV,{data:L,measureColumnWidth:Te||Be||Fe}),yt=o.createElement(RV,{colWidths:se.map((function(e){return e.width})),columns:se}),Ct=null!==y&&void 0!==y?o.createElement("caption",{className:"".concat(r,"-caption")},y):void 0,xt=_a(n,{data:!0}),$t=_a(n,{aria:!0});if(Te||Fe){var wt;"function"===typeof V?(wt=V(L,{scrollbarSize:at,ref:ve,onScroll:tt}),vt.colWidths=se.map((function(e,t){var n=e.width,o=t===se.length-1?n-at:n;return"number"!==typeof o||Number.isNaN(o)?0:o}))):wt=o.createElement("div",{style:$($({},be),Ce),onScroll:nt,ref:ve,className:a()("".concat(r,"-body"))},o.createElement(mt,l({style:$($({},xe),{},{tableLayout:gt})},$t),Ct,yt,bt,!Ge&&Xe&&o.createElement(hV,{stickyOffsets:ze,flattenColumns:se},Xe)));var St=$($($({noData:!L.length,maxContentScroll:Be&&"max-content"===fe},vt),pe),{},{direction:m,stickyClassName:qe,onScroll:tt});dt=o.createElement(o.Fragment,null,!1!==w&&o.createElement(BV,l({},St,{stickyTopOffset:We,className:"".concat(r,"-header"),ref:ge}),ft),wt,Ge&&"top"!==Ge&&o.createElement(BV,l({},St,{stickyBottomOffset:_e,className:"".concat(r,"-summary"),ref:$e}),pt),Fe&&ve.current&&ve.current instanceof Element&&o.createElement(ZV,{ref:De,offsetScroll:Ve,scrollBodyRef:ve,onScroll:tt,container:Ke}))}else dt=o.createElement("div",{style:$($({},be),Ce),className:a()("".concat(r,"-content")),onScroll:tt,ref:ve},o.createElement(mt,l({style:$($({},xe),{},{tableLayout:gt})},$t),Ct,yt,!1!==w&&o.createElement(DV,l({},vt,pe)),bt,Xe&&o.createElement(hV,{stickyOffsets:ze,flattenColumns:se},Xe)));var Et=o.createElement("div",l({className:a()(r,i,C(C(C(C(C(C(C(C(C(C({},"".concat(r,"-rtl"),"rtl"===m),"".concat(r,"-ping-left"),Se),"".concat(r,"-ping-right"),Oe),"".concat(r,"-layout-fixed"),"fixed"===p),"".concat(r,"-fixed-header"),Te),"".concat(r,"-fixed-column"),He),"".concat(r,"-fixed-column-gapped"),He&&de),"".concat(r,"-scroll-horizontal"),Be),"".concat(r,"-has-fix-left"),se[0]&&se[0].fixed),"".concat(r,"-has-fix-right"),se[se.length-1]&&"right"===se[se.length-1].fixed)),style:s,id:x,ref:me},xt),g&&o.createElement(QV,{className:"".concat(r,"-title")},g(L)),o.createElement("div",{ref:he,className:"".concat(r,"-container")},dt),v&&o.createElement(QV,{className:"".concat(r,"-footer")},v(L)));Be&&(Et=o.createElement(ye,{onResize:function(e){var t,n=e.width;null===(t=De.current)||void 0===t||t.checkScrollBarVisible();var o=me.current?me.current.offsetWidth:n;F&&T&&me.current&&(o=T(me.current,o)||o),o!==ie&&(ot(),ae(o))}},Et));var kt=function(e,t,n){var o=e.map((function(o,r){return fV(r,r,e,t,n)}));return I((function(){return o}),[o],(function(e,t){return!et(e,t)}))}(se,ze,m),Ot=o.useMemo((function(){return{scrollX:fe,prefixCls:r,getComponent:W,scrollbarSize:at,direction:m,fixedInfoList:kt,isSticky:Fe,supportSticky:st,componentWidth:ie,fixHeader:Te,fixColumn:He,horizonScroll:Be,tableLayout:gt,rowClassName:c,expandedRowClassName:Q.expandedRowClassName,expandIcon:ee,expandableType:Z,expandRowByClick:Q.expandRowByClick,expandedRowRender:Q.expandedRowRender,onTriggerExpand:ne,expandIconColumnIndex:Q.expandIconColumnIndex,indentSize:Q.indentSize,allColumnsFixedLeft:se.every((function(e){return"left"===e.fixed})),emptyNode:ht,columns:ce,flattenColumns:se,onColumnResize:Ye,hoverStartRow:X,hoverEndRow:G,onHover:Y,rowExpandable:Q.rowExpandable,onRow:O,getRowKey:_,expandedKeys:J,childrenColumnName:te,rowHoverable:D}}),[fe,r,W,at,m,kt,Fe,st,ie,Te,He,Be,gt,c,Q.expandedRowClassName,ee,Z,Q.expandRowByClick,Q.expandedRowRender,ne,Q.expandIconColumnIndex,Q.indentSize,ht,ce,se,Ye,X,G,Y,Q.rowExpandable,O,_,J,te,D]);return o.createElement(aV.Provider,{value:Ot},Et)}));function aq(e){return oV(iq,e)}var lq=aq();lq.EXPAND_COLUMN=U_,lq.INTERNAL_HOOKS=Q_,lq.Column=JV,lq.ColumnGroup=eq,lq.Summary=bV;const cq=lq;var sq=Z_(null),uq=Z_(null);const dq=function(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,c=e.index,s=e.component,u=e.renderIndex,d=e.record,f=e.style,p=e.className,m=e.inverse,g=e.getHeight,v=n.render,h=n.dataIndex,b=n.className,y=n.width,C=J_(uq,["columnsOffset"]).columnsOffset,x=EV(t,n,r,i,c),w=x.key,S=x.fixedInfo,E=x.appendCellNode,k=x.additionalCellProps,O=k.style,I=k.colSpan,N=void 0===I?1:I,M=k.rowSpan,j=void 0===M?1:M,P=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,N,C),R=N>1?y-P:0,z=$($($({},O),f),{},{flex:"0 0 ".concat(P,"px"),width:"".concat(P,"px"),marginRight:R,pointerEvents:"auto"}),T=o.useMemo((function(){return m?j<=1:0===N||0===j||j>1}),[j,N,m]);T?z.visibility="hidden":m&&(z.height=null===g||void 0===g?void 0:g(j));var B=T?function(){return null}:v,H={};return 0!==j&&0!==N||(H.rowSpan=1,H.colSpan=1),o.createElement(dV,l({className:a()(b,p),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:w,record:d,index:c,renderIndex:u,dataIndex:h,render:B,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:E,additionalProps:$($({},k),{},{style:z},H)}))};var fq=["data","index","className","rowKey","style","extra","getHeight"],pq=o.forwardRef((function(e,t){var n,r=e.data,i=e.index,c=e.className,s=e.rowKey,u=e.style,d=e.extra,f=e.getHeight,p=Si(e,fq),m=r.record,g=r.indent,v=r.index,h=J_(aV,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=h.scrollX,y=h.flattenColumns,x=h.prefixCls,w=h.fixColumn,S=h.componentWidth,E=J_(sq,["getComponent"]).getComponent,k=wV(m,s,i,g),O=E(["body","row"],"div"),I=E(["body","cell"],"div"),N=k.rowSupportExpand,M=k.expanded,j=k.rowProps,P=k.expandedRowRender,R=k.expandedRowClassName;if(N&&M){var z=P(m,i,g+1,M),T=null===R||void 0===R?void 0:R(m,i,g),B={};w&&(B={style:C({},"--virtual-width","".concat(S,"px"))});var H="".concat(x,"-expanded-row-cell");n=o.createElement(O,{className:a()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(g+1),T)},o.createElement(dV,{component:I,prefixCls:x,className:a()(H,C({},"".concat(H,"-fixed"),w)),additionalProps:B},z))}var D=$($({},u),{},{width:b});d&&(D.position="absolute",D.pointerEvents="none");var L=o.createElement(O,l({},j,p,{"data-row-key":s,ref:N?null:t,className:a()(c,"".concat(x,"-row"),null===j||void 0===j?void 0:j.className,C({},"".concat(x,"-row-extra"),d)),style:$($({},D),null===j||void 0===j?void 0:j.style)}),y.map((function(e,t){return o.createElement(dq,{key:t,component:I,rowInfo:k,column:e,colIndex:t,indent:g,index:i,renderIndex:v,record:m,inverse:d,getHeight:f})})));return N?o.createElement("div",{ref:t},L,n):L}));const mq=rV(pq);var gq=o.forwardRef((function(e,t){var n=e.data,r=e.onScroll,i=J_(aV,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,p=J_(sq),m=p.sticky,g=p.scrollY,v=p.listItemHeight,h=p.getComponent,y=p.onScroll,C=o.useRef(),x=$V(n,d,s,c),$=o.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),w=o.useMemo((function(){return $.map((function(e){return e[2]}))}),[$]);o.useEffect((function(){$.forEach((function(e){var t=Ae(e,2),n=t[0],o=t[1];l(n,o)}))}),[$]),o.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=C.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo({left:e})}}),t}));var S=function(e,t){var n,o=null===(n=x[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null===a||void 0===a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},E=o.useMemo((function(){return{columnsOffset:w}}),[w]),k="".concat(u,"-tbody"),O=h(["body","wrapper"]),I={};return m&&(I.position="sticky",I.bottom=0,"object"===b(m)&&m.offsetScroll&&(I.bottom=m.offsetScroll)),o.createElement(uq.Provider,{value:E},o.createElement(ob,{fullHeight:!1,ref:C,prefixCls:"".concat(k,"-virtual"),styles:{horizontalScrollBar:I},className:k,height:g,itemHeight:v||24,data:x,itemKey:function(e){return c(e.record)},component:O,scrollWidth:f,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=C.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:y,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter((function(e){return 0===S(e,t)})),s=t,u=function(e){if(l=l.filter((function(t){return 0===S(t,e)})),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter((function(e){return 1!==S(e,n)})),p=n,m=function(e){if(f=f.filter((function(t){return 1!==S(t,e)})),!f.length)return p=Math.max(e-1,n),1},g=n;g<x.length&&!m(g);g+=1);for(var v=[],h=function(e){if(!x[e])return 1;a.some((function(t){return S(t,e)>1}))&&v.push(e)},b=s;b<=p;b+=1)h(b);var y=v.map((function(e){var t=x[e],n=c(t.record,e),a=r(n);return o.createElement(mq,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c(x[o].record,o),a=r(n,i);return a.bottom-a.top}})}));return y}},(function(e,t,n){var r=c(e.record,t);return o.createElement(mq,{data:e,rowKey:r,index:t,style:n.style})})))}));const vq=rV(gq);var hq=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(vq,{ref:n,data:e,onScroll:r})};var bq=o.forwardRef((function(e,t){var n=e.data,r=e.columns,i=e.scroll,c=e.sticky,s=e.prefixCls,u=void 0===s?tq:s,d=e.className,f=e.listItemHeight,p=e.components,m=e.onScroll,g=i||{},v=g.x,h=g.y;"number"!==typeof v&&(v=1),"number"!==typeof h&&(h=500);var b=ao((function(e,t){return fo(p,e)||t})),y=ao(m),C=o.useMemo((function(){return{sticky:c,scrollY:h,listItemHeight:f,getComponent:b,onScroll:y}}),[c,h,f,b,y]);return o.createElement(sq.Provider,{value:C},o.createElement(cq,l({},e,{className:a()(d,"".concat(u,"-virtual")),scroll:$($({},i),{},{x:v}),components:$($({},p),{},{body:null!==n&&void 0!==n&&n.length?hq:void 0}),columns:r,internalHooks:Q_,tailor:!0,ref:t})))}));function yq(e){return oV(bq,e)}yq();const Cq=e=>null,xq=e=>null;var $q=o.createContext(null);const wq=o.memo((function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,l="".concat(t,"-indent-unit"),c=[],s=0;s<n;s+=1)c.push(o.createElement("span",{key:s,className:a()(l,C(C({},"".concat(l,"-start"),r[s]),"".concat(l,"-end"),i[s]))}));return o.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},c)}));var Sq=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Eq="open",kq="close",Oq=function(e){se(n,e);var t=me(n);function n(){var e;ie(this,n);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return C(fe(e=t.call.apply(t,[this].concat(i))),"state",{dragNodeHighlight:!1}),C(fe(e),"selectHandle",void 0),C(fe(e),"cacheIndent",void 0),C(fe(e),"onSelectorClick",(function(t){(0,e.props.context.onNodeClick)(t,qN(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)})),C(fe(e),"onSelectorDoubleClick",(function(t){(0,e.props.context.onNodeDoubleClick)(t,qN(e.props))})),C(fe(e),"onSelect",(function(t){e.isDisabled()||(0,e.props.context.onNodeSelect)(t,qN(e.props))})),C(fe(e),"onCheck",(function(t){if(!e.isDisabled()){var n=e.props,o=n.disableCheckbox,r=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!o){var a=!r;i(t,qN(e.props),a)}}})),C(fe(e),"onMouseEnter",(function(t){(0,e.props.context.onNodeMouseEnter)(t,qN(e.props))})),C(fe(e),"onMouseLeave",(function(t){(0,e.props.context.onNodeMouseLeave)(t,qN(e.props))})),C(fe(e),"onContextMenu",(function(t){(0,e.props.context.onNodeContextMenu)(t,qN(e.props))})),C(fe(e),"onDragStart",(function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,fe(e));try{t.dataTransfer.setData("text/plain","")}catch(o){}})),C(fe(e),"onDragEnter",(function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,fe(e))})),C(fe(e),"onDragOver",(function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,fe(e))})),C(fe(e),"onDragLeave",(function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,fe(e))})),C(fe(e),"onDragEnd",(function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,fe(e))})),C(fe(e),"onDrop",(function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,fe(e))})),C(fe(e),"onExpand",(function(t){var n=e.props,o=n.loading,r=n.context.onNodeExpand;o||r(t,qN(e.props))})),C(fe(e),"setSelectHandle",(function(t){e.selectHandle=t})),C(fe(e),"getNodeState",(function(){var t=e.props.expanded;return e.isLeaf()?null:t?Eq:kq})),C(fe(e),"hasChildren",(function(){var t=e.props.eventKey;return!!((BN(e.props.context.keyEntities,t)||{}).children||[]).length})),C(fe(e),"isLeaf",(function(){var t=e.props,n=t.isLeaf,o=t.loaded,r=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!r&&!i||r&&o&&!i)})),C(fe(e),"isDisabled",(function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)})),C(fe(e),"isCheckable",(function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n})),C(fe(e),"syncLoadData",(function(t){var n=t.expanded,o=t.loading,r=t.loaded,i=e.props.context,a=i.loadData,l=i.onNodeLoad;o||a&&n&&!e.isLeaf()&&!r&&l(qN(e.props))})),C(fe(e),"isDraggable",(function(){var t=e.props,n=t.data,o=t.context.draggable;return!(!o||o.nodeDraggable&&!o.nodeDraggable(n))})),C(fe(e),"renderDragHandler",(function(){var t=e.props.context,n=t.draggable,r=t.prefixCls;return null!==n&&void 0!==n&&n.icon?o.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null})),C(fe(e),"renderSwitcherIconDom",(function(t){var n=e.props.switcherIcon,o=e.props.context.switcherIcon,r=n||o;return"function"===typeof r?r($($({},e.props),{},{isLeaf:t})):r})),C(fe(e),"renderSwitcher",(function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?o.createElement("span",{className:a()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=a()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?Eq:kq)),l=e.renderSwitcherIconDom(!1);return!1!==l?o.createElement("span",{onClick:e.onExpand,className:i},l):null})),C(fe(e),"renderCheckbox",(function(){var t=e.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,l=e.props.context.prefixCls,c=e.isDisabled(),s=e.isCheckable();if(!s)return null;var u="boolean"!==typeof s?s:null;return o.createElement("span",{className:a()("".concat(l,"-checkbox"),n&&"".concat(l,"-checkbox-checked"),!n&&r&&"".concat(l,"-checkbox-indeterminate"),(c||i)&&"".concat(l,"-checkbox-disabled")),onClick:e.onCheck},u)})),C(fe(e),"renderIcon",(function(){var t=e.props.loading,n=e.props.context.prefixCls;return o.createElement("span",{className:a()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),C(fe(e),"renderSelector",(function(){var t,n,r=e.state.dragNodeHighlight,i=e.props,l=i.title,c=void 0===l?"---":l,s=i.selected,u=i.icon,d=i.loading,f=i.data,p=e.props.context,m=p.prefixCls,g=p.showIcon,v=p.icon,h=p.loadData,b=p.titleRender,y=e.isDisabled(),C="".concat(m,"-node-content-wrapper");if(g){var x=u||v;t=x?o.createElement("span",{className:a()("".concat(m,"-iconEle"),"".concat(m,"-icon__customize"))},"function"===typeof x?x(e.props):x):e.renderIcon()}else h&&d&&(t=e.renderIcon());n="function"===typeof c?c(f):b?b(f):c;var $=o.createElement("span",{className:"".concat(m,"-title")},n);return o.createElement("span",{ref:e.setSelectHandle,title:"string"===typeof c?c:"",className:a()("".concat(C),"".concat(C,"-").concat(e.getNodeState()||"normal"),!y&&(s||r)&&"".concat(m,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,$,e.renderDropIndicator())})),C(fe(e),"renderDropIndicator",(function(){var t=e.props,n=t.disabled,o=t.eventKey,r=e.props.context,i=r.draggable,a=r.dropLevelOffset,l=r.dropPosition,c=r.prefixCls,s=r.indent,u=r.dropIndicatorRender,d=r.dragOverNodeKey,f=r.direction,p=!n&&!!i&&d===o,m=null!==s&&void 0!==s?s:e.cacheIndent;return e.cacheIndent=s,p?u({dropPosition:l,dropLevelOffset:a,indent:m,prefixCls:c,direction:f}):null})),e}return le(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"===typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,i=t.style,c=t.dragOver,s=t.dragOverGapTop,u=t.dragOverGapBottom,d=t.isLeaf,f=t.isStart,p=t.isEnd,m=t.expanded,g=t.selected,v=t.checked,h=t.halfChecked,b=t.loading,y=t.domRef,x=t.active,$=(t.data,t.onMouseMove),w=t.selectable,S=Si(t,Sq),E=this.props.context,k=E.prefixCls,O=E.filterTreeNode,I=E.keyEntities,N=E.dropContainerKey,M=E.dropTargetKey,j=E.draggingNodeKey,P=this.isDisabled(),R=_a(S,{aria:!0,data:!0}),z=(BN(I,n)||{}).level,T=p[p.length-1],B=this.isDraggable(),H=!P&&B,D=j===n,L=void 0!==w?{"aria-selected":!!w}:void 0;return o.createElement("div",l({ref:y,className:a()(r,"".concat(k,"-treenode"),(e={},C(C(C(C(C(C(C(C(C(C(e,"".concat(k,"-treenode-disabled"),P),"".concat(k,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(k,"-treenode-checkbox-checked"),v),"".concat(k,"-treenode-checkbox-indeterminate"),h),"".concat(k,"-treenode-selected"),g),"".concat(k,"-treenode-loading"),b),"".concat(k,"-treenode-active"),x),"".concat(k,"-treenode-leaf-last"),T),"".concat(k,"-treenode-draggable"),B),"dragging",D),C(C(C(C(C(C(e,"drop-target",M===n),"drop-container",N===n),"drag-over",!P&&c),"drag-over-gap-top",!P&&s),"drag-over-gap-bottom",!P&&u),"filter-node",O&&O(qN(this.props))))),style:i,draggable:H,"aria-grabbed":D,onDragStart:H?this.onDragStart:void 0,onDragEnter:B?this.onDragEnter:void 0,onDragOver:B?this.onDragOver:void 0,onDragLeave:B?this.onDragLeave:void 0,onDrop:B?this.onDrop:void 0,onDragEnd:B?this.onDragEnd:void 0,onMouseMove:$},L,R),o.createElement(wq,{prefixCls:k,level:z,isStart:f,isEnd:p}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(o.Component),Iq=function(e){return o.createElement($q.Consumer,null,(function(t){return o.createElement(Oq,l({},e,{context:t}))}))};Iq.displayName="TreeNode",Iq.isTreeNode=1;const Nq=Iq;function Mq(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function jq(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function Pq(e){return e.split("-")}function Rq(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(BN(t,e).children),n}function zq(e){if(e.parent){var t=Pq(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Tq(e,t,n,o,r,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,v=(("rtl"===s?-1:1)*(((null===r||void 0===r?void 0:r.x)||0)-d)-12)/o,h=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=BN(l,n.props.eventKey);if(f<m+g/2){var y=a.findIndex((function(e){return e.key===b.key})),C=a[y<=0?0:y-1].key;b=BN(l,C)}var x=b.key,$=b,w=b.key,S=0,E=0;if(!h.includes(x))for(var k=0;k<v&&zq(b);k+=1)b=b.parent,E+=1;var O=t.props.data,I=b.node,N=!0;return function(e){var t=Pq(e.pos);return 0===Number(t[t.length-1])}(b)&&0===b.level&&f<m+g/2&&i({dragNode:O,dropNode:I,dropPosition:-1})&&b.key===n.props.eventKey?S=-1:($.children||[]).length&&h.includes(w)?i({dragNode:O,dropNode:I,dropPosition:0})?S=0:N=!1:0===E?v>-1.5?i({dragNode:O,dropNode:I,dropPosition:1})?S=1:N=!1:i({dragNode:O,dropNode:I,dropPosition:0})?S=0:i({dragNode:O,dropNode:I,dropPosition:1})?S=1:N=!1:i({dragNode:O,dropNode:I,dropPosition:1})?S=1:N=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===S?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:N}}function Bq(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Hq(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==b(e))return h(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Dq(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=BN(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),Se(n)}function Lq(e){const[t,n]=(0,o.useState)(null);return[(0,o.useCallback)(((o,r,i)=>{const a=null!==t&&void 0!==t?t:o,l=Math.min(a||0,o),c=Math.max(a||0,o),s=r.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}const Aq={},Fq="SELECT_ALL",Wq="SELECT_INVERT",_q="SELECT_NONE",Vq=[],qq=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"===typeof t&&e in t&&(n=[].concat(Se(n),Se(qq(e,t[e]))))})),n},Kq=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:v,fixed:h,renderCell:b,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:x,data:$,pageData:w,getRecordByKey:S,getRowKey:E,expandType:k,childrenColumnName:O,locale:I,getPopupContainer:N}=e,M=Pl("Table"),[j,P]=Lq((e=>e)),[R,z]=so(r||i||Vq,{value:r}),T=o.useRef(new Map),B=(0,o.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&T.current.has(e)&&(n=T.current.get(e)),t.set(e,n)})),T.current=t}}),[S,n]);o.useEffect((()=>{B(R)}),[R]);const H=(0,o.useMemo)((()=>qq(O,w)),[O,w]),{keyEntities:D}=(0,o.useMemo)((()=>{if(C)return{keyEntities:null};let e=$;if(n){const t=new Set(H.map(((e,t)=>E(e,t)))),n=Array.from(T.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat(Se(e),Se(n))}return _N(e,{externalGetKey:E,childrenPropName:O})}),[$,E,C,O,n,H]),L=(0,o.useMemo)((()=>{const e=new Map;return H.forEach(((t,n)=>{const o=E(t,n),r=(l?l(t):null)||{};e.set(o,r)})),e}),[H,E,l]),A=(0,o.useCallback)((e=>{var t;return!!(null===(t=L.get(E(e)))||void 0===t?void 0:t.disabled)}),[L,E]),[F,W]=(0,o.useMemo)((()=>{if(C)return[R||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=YN(R,!0,D,A);return[e||[],t]}),[R,C,D,A]),_=(0,o.useMemo)((()=>{const e="radio"===g?F.slice(0,1):F;return new Set(e)}),[F,g]),V=(0,o.useMemo)((()=>"radio"===g?new Set:new Set(W)),[W,g]);o.useEffect((()=>{t||z(Vq)}),[!!t]);const q=(0,o.useCallback)(((e,t)=>{let o,r;B(e),n?(o=e,r=e.map((e=>T.current.get(e)))):(o=[],r=[],e.forEach((e=>{const t=S(e);void 0!==t&&(o.push(e),r.push(t))}))),z(o),null===c||void 0===c||c(o,r,{type:t})}),[z,S,c,n]),K=(0,o.useCallback)(((e,t,n,o)=>{if(s){const r=n.map((e=>S(e)));s(S(e),t,r,o)}q(n,"single")}),[s,S,q]),X=(0,o.useMemo)((()=>{if(!v||y)return null;return(!0===v?[Fq,Wq,_q]:v).map((e=>e===Fq?{key:"all",text:I.selectionAll,onSelect(){q($.map(((e,t)=>E(e,t))).filter((e=>{const t=L.get(e);return!(null===t||void 0===t?void 0:t.disabled)||_.has(e)})),"all")}}:e===Wq?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(_);w.forEach(((t,n)=>{const o=E(t,n),r=L.get(o);(null===r||void 0===r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);d&&(M.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===_q?{key:"none",text:I.selectNone,onSelect(){null===f||void 0===f||f(),q(Array.from(_).filter((e=>{const t=L.get(e);return null===t||void 0===t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),P(null)}})))}),[v,_,w,E,d,q]),G=(0,o.useCallback)((e=>{var n;if(!t)return e.filter((e=>e!==Aq));let r=Se(e);const i=new Set(_),l=H.map(E).filter((e=>!L.get(e).disabled)),c=l.every((e=>i.has(e))),s=l.some((e=>i.has(e))),d=()=>{const e=[];c?l.forEach((t=>{i.delete(t),e.push(t)})):l.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null===u||void 0===u||u(!c,t.map((e=>S(e))),e.map((e=>S(e)))),q(t,"all"),P(null)};let f,$,w;if("radio"!==g){let e;if(X){const t={getPopupContainer:N,items:X.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!==n&&void 0!==n?n:t,onClick:()=>{null===r||void 0===r||r(l)},label:o}}))};e=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(wB,{menu:t,getPopupContainer:N},o.createElement("span",null,o.createElement(Ey,null))))}const t=H.map(((e,t)=>{const n=E(e,t),o=L.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===H.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),a=n&&t.some((e=>{let{checked:t}=e;return t}));$=o.createElement(AM,{checked:n?r:!!H.length&&c,indeterminate:n?!r&&a:!c&&s,onChange:d,disabled:0===H.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!y&&o.createElement("div",{className:`${x}-selection`},$,e)}w="radio"===g?(e,t,n)=>{const r=E(t,n),a=i.has(r);return{node:o.createElement(kW,Object.assign({},L.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||K(r,!0,[r],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var r;const a=E(t,n),c=i.has(a),s=V.has(a),u=L.get(a);let d;return d="nest"===k?s:null!==(r=null===u||void 0===u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:o.createElement(AM,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,o=l.findIndex((e=>e===a)),r=F.some((e=>l.includes(e)));if(n&&C&&r){const e=j(o,l,i),t=Array.from(i);null===p||void 0===p||p(!c,t.map((e=>S(e))),e.map((e=>S(e)))),q(t,"multiple")}else{const e=F;if(C){const n=c?Mq(e,a):jq(e,a);K(a,!c,n,t)}else{const n=YN([].concat(Se(e),[a]),!0,D,A),{checkedKeys:o,halfCheckedKeys:r}=n;let i=o;if(c){const e=new Set(o);e.delete(a),i=YN(Array.from(e),{checked:!1,halfCheckedKeys:r},D,A).checkedKeys}K(a,!c,i,t)}}P(c?null:o)}})),checked:c}};if(!r.includes(Aq))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[jV])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Aq].concat(Se(t))}else r=[Aq].concat(Se(r));const O=r.indexOf(Aq);r=r.filter(((e,t)=>e!==Aq||t===O));const I=r[O-1],M=r[O+1];let R=h;void 0===R&&(void 0!==(null===M||void 0===M?void 0:M.fixed)?R=M.fixed:void 0!==(null===I||void 0===I?void 0:I.fixed)&&(R=I.fixed)),R&&I&&"EXPAND_COLUMN"===(null===(n=I[jV])||void 0===n?void 0:n.columnType)&&void 0===I.fixed&&(I.fixed=R);const z=a()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:v&&"checkbox"===g}),T={fixed:R,width:m,className:`${x}-selection-column`,title:(null===t||void 0===t?void 0:t.columnTitle)?"function"===typeof t.columnTitle?t.columnTitle($):t.columnTitle:f,render:(e,t,n)=>{const{node:o,checked:r}=w(e,t,n);return b?b(r,t,n,o):o},onCell:t.onCell,[jV]:{className:z}};return r.map((e=>e===Aq?T:e))}),[E,H,t,F,_,V,m,X,k,L,p,K,A]);return[G,_]};function Xq(e,t){return(0,o.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!==typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}const Gq=function(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:l,expandable:c}=t,s=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:a()(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}};const Yq=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Uq(e,t){return t?`${t}-${e}`:`${e}`}const Qq=(e,t)=>"function"===typeof e?e(t):e;const Zq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const Jq=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:Zq}))}));function eK(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var tK=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nK=function(e,t){var n=e.className,r=e.style,i=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,p=e.treeNodeRequiredProps,m=Si(e,tK),g=Ae(o.useState(!0),2),v=g[0],h=g[1],b=o.useContext($q).prefixCls,y=c&&"hide"!==s;Rt((function(){c&&y!==v&&h(y)}),[c]);var C=o.useRef(!1),x=function(){c&&!C.current&&(C.current=!0,d())};!function(e,t){var n=Ae(o.useState(!1),2),r=n[0],i=n[1];Rt((function(){if(r)return e(),function(){t()}}),[r]),Rt((function(){return i(!0),function(){i(!1)}}),[])}((function(){c&&u()}),x);return c?o.createElement(Aa,l({ref:t,visible:v},i,{motionAppear:"show"===s,onVisibleChanged:function(e){y===e&&x()}}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:a()("".concat(b,"-treenode-motion"),n),style:r},c.map((function(e){var t=Object.assign({},(eK(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var c=VN(r,p);return o.createElement(Nq,l({},t,c,{title:n,active:f,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(Nq,l({domRef:t,className:n,style:r},m,{active:f}))};nK.displayName="MotionTreeNode";const oK=o.forwardRef(nK);function rK(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var iK=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],aK={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},lK=function(){},cK="RC_TREE_MOTION_".concat(Math.random()),sK={key:cK},uK={key:cK,level:0,index:0,pos:"0",node:sK,nodes:[sK]},dK={parent:null,children:[],pos:uK.pos,data:sK,title:null,key:cK,isStart:[],isEnd:[]};function fK(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function pK(e){return LN(e.key,e.pos)}var mK=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,m=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,h=e.motion,b=e.height,y=e.itemHeight,C=e.virtual,x=e.focusable,$=e.activeItem,w=e.focused,S=e.tabIndex,E=e.onKeyDown,k=e.onFocus,O=e.onBlur,I=e.onActiveChange,N=e.onListChangeStart,M=e.onListChangeEnd,j=Si(e,iK),P=o.useRef(null),R=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var z=Ae(o.useState(i),2),T=z[0],B=z[1],H=Ae(o.useState(r),2),D=H[0],L=H[1],A=Ae(o.useState(r),2),F=A[0],W=A[1],_=Ae(o.useState([]),2),V=_[0],q=_[1],K=Ae(o.useState(null),2),X=K[0],G=K[1],Y=o.useRef(r);function U(){var e=Y.current;L(e),W(e),q([]),G(null),M()}Y.current=r,Rt((function(){B(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(T,i);if(null!==e.key)if(e.add){var t=D.findIndex((function(t){return t.key===e.key})),n=fK(rK(D,r,e.key),C,b,y),o=D.slice();o.splice(t+1,0,dK),W(o),q(n),G("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),l=fK(rK(r,D,e.key),C,b,y),c=r.slice();c.splice(a+1,0,dK),W(c),q(l),G("hide")}else D!==r&&(L(r),W(r))}),[i,r]),o.useEffect((function(){m||U()}),[m]);var Q=h?F:r,Z={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:v,keyEntities:f};return o.createElement(o.Fragment,null,w&&$&&o.createElement("span",{style:aK,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}($)),o.createElement("div",null,o.createElement("input",{style:aK,disabled:!1===x||p,tabIndex:!1!==x?S:null,onKeyDown:E,onFocus:k,onBlur:O,value:"",onChange:lK,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),o.createElement(ob,l({},j,{data:Q,itemKey:pK,height:b,fullHeight:!1,virtual:C,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:P,onVisibleChange:function(e){e.every((function(e){return pK(e)!==cK}))&&U()}}),(function(e){var t=e.pos,n=Object.assign({},(eK(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,c=e.isEnd,s=LN(i,t);delete n.key,delete n.children;var u=VN(s,Z);return o.createElement(oK,l({},n,u,{title:r,active:!!$&&i===$.key,pos:t,data:e.data,isStart:a,isEnd:c,motion:h,motionNodes:i===cK?V:null,motionType:X,onMotionStart:N,onMotionEnd:U,treeNodeRequiredProps:Z,onMouseMove:function(){I(null)}}))})))}));mK.displayName="NodeList";const gK=mK;var vK=function(e){se(n,e);var t=me(n);function n(){var e;ie(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return C(fe(e=t.call.apply(t,[this].concat(i))),"destroyed",!1),C(fe(e),"delayedDragEnterLogic",void 0),C(fe(e),"loadingRetryTimes",{}),C(fe(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:AN()}),C(fe(e),"dragStartMousePosition",null),C(fe(e),"dragNode",void 0),C(fe(e),"currentMouseOverDroppableNodeKey",null),C(fe(e),"listRef",o.createRef()),C(fe(e),"onNodeDragStart",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=Mq(r,l);e.setState({draggingNodeKey:l,dragChildrenKeys:Rq(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:qN(n.props)})})),C(fe(e),"onNodeDragEnter",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=o.dragChildrenKeys,l=o.flattenNodes,c=o.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,m=n.props,g=m.pos,v=m.eventKey,h=fe(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==v&&(e.currentMouseOverDroppableNodeKey=v),h){var b=Tq(t,h,n,c,e.dragStartMousePosition,f,l,i,r,p),y=b.dropPosition,C=b.dropLevelOffset,x=b.dropTargetKey,$=b.dropContainerKey,w=b.dropTargetPos,S=b.dropAllowed,E=b.dragOverNodeKey;-1===a.indexOf(x)&&S?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),h.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var o=Se(r),a=BN(i,n.props.eventKey);a&&(a.children||[]).length&&(o=jq(r,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(o),null===d||void 0===d||d(o,{node:qN(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),h.props.eventKey!==x||0!==C?(e.setState({dragOverNodeKey:E,dropPosition:y,dropLevelOffset:C,dropTargetKey:x,dropContainerKey:$,dropTargetPos:w,dropAllowed:S}),null===u||void 0===u||u({event:t,node:qN(n.props),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),C(fe(e),"onNodeDragOver",(function(t,n){var o=e.state,r=o.dragChildrenKeys,i=o.flattenNodes,a=o.keyEntities,l=o.expandedKeys,c=o.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=fe(e).dragNode;if(p){var m=Tq(t,p,n,c,e.dragStartMousePosition,d,i,a,l,f),g=m.dropPosition,v=m.dropLevelOffset,h=m.dropTargetKey,b=m.dropContainerKey,y=m.dropAllowed,C=m.dropTargetPos,x=m.dragOverNodeKey;-1===r.indexOf(h)&&y&&(p.props.eventKey===h&&0===v?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():g===e.state.dropPosition&&v===e.state.dropLevelOffset&&h===e.state.dropTargetKey&&b===e.state.dropContainerKey&&C===e.state.dropTargetPos&&y===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:g,dropLevelOffset:v,dropTargetKey:h,dropContainerKey:b,dropTargetPos:C,dropAllowed:y,dragOverNodeKey:x}),null===u||void 0===u||u({event:t,node:qN(n.props)}))}})),C(fe(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var o=e.props.onDragLeave;null===o||void 0===o||o({event:t,node:qN(n.props)})})),C(fe(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),C(fe(e),"onNodeDragEnd",(function(t,n){var o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===o||void 0===o||o({event:t,node:qN(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),C(fe(e),"onNodeDrop",(function(t,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=$($({},VN(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:BN(e.state.keyEntities,c).node}),f=-1!==a.indexOf(c);h(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=Pq(s),m={event:t,node:qN(d),dragNode:e.dragNode?qN(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};r||null===u||void 0===u||u(m),e.dragNode=null}}})),C(fe(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),C(fe(e),"triggerExpandActionExpand",(function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=qN($($({},VN(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?Mq(r,l):jq(r,l)),e.onNodeExpand(t,s)}})),C(fe(e),"onNodeClick",(function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)})),C(fe(e),"onNodeDoubleClick",(function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)})),C(fe(e),"onNodeSelect",(function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(o=f?s?jq(o,d):[d]:Mq(o,d)).map((function(e){var t=BN(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:o}),null===c||void 0===c||c(o,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),C(fe(e),"onNodeCheck",(function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var m=o?jq(l,f):Mq(l,f);r={checked:m,halfChecked:Mq(c,f)},p.checkedNodes=m.map((function(e){return BN(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=YN([].concat(Se(l),[f]),!0,a),v=g.checkedKeys,h=g.halfCheckedKeys;if(!o){var b=new Set(v);b.delete(f);var y=YN(Array.from(b),{checked:!1,halfCheckedKeys:h},a);v=y.checkedKeys,h=y.halfCheckedKeys}r=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=h,v.forEach((function(e){var t=BN(a,e);if(t){var n=t.node,o=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:h})}null===d||void 0===d||d(r,p)})),C(fe(e),"onNodeLoad",(function(t){var n,o=t.key,r=BN(e.state.keyEntities,o);if(null===r||void 0===r||null===(n=r.children)||void 0===n||!n.length){var i=new Promise((function(n,r){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(o)&&-1===s.indexOf(o)?(d(t).then((function(){var r=jq(e.state.loadedKeys,o);null===f||void 0===f||f(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:Mq(e.loadingKeys,o)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Mq(e.loadingKeys,o)}})),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var i=e.state.loadedKeys;h(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:jq(i,o)}),n()}r(t)})),{loadingKeys:jq(s,o)}):null}))}));return i.catch((function(){})),i}})),C(fe(e),"onNodeMouseEnter",(function(t,n){var o=e.props.onMouseEnter;null===o||void 0===o||o({event:t,node:n})})),C(fe(e),"onNodeMouseLeave",(function(t,n){var o=e.props.onMouseLeave;null===o||void 0===o||o({event:t,node:n})})),C(fe(e),"onNodeContextMenu",(function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))})),C(fe(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===t||void 0===t||t.apply(void 0,o)})),C(fe(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===t||void 0===t||t.apply(void 0,o)})),C(fe(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),C(fe(e),"setExpandedKeys",(function(t){var n=e.state,o=WN(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:o},!0)})),C(fe(e),"onNodeExpand",(function(t,n){var o=e.state.expandedKeys,r=e.state,i=r.listChanging,a=r.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=o.indexOf(d),p=!u;if(h(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),o=p?jq(o,d):Mq(o,d),e.setExpandedKeys(o),null===c||void 0===c||c(o,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&s){var m=e.onNodeLoad(n);m&&m.then((function(){var t=WN(e.state.treeData,o,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=Mq(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),C(fe(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),C(fe(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),C(fe(e),"onActiveChange",(function(t){var n=e.state.activeKey,o=e.props,r=o.onActiveChange,i=o.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null===r||void 0===r||r(t))})),C(fe(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,o=t.flattenNodes;return null===n?null:o.find((function(e){return e.key===n}))||null})),C(fe(e),"offsetActiveKey",(function(t){var n=e.state,o=n.flattenNodes,r=n.activeKey,i=o.findIndex((function(e){return e.key===r}));-1===i&&t<0&&(i=o.length);var a=o[i=(i+t+o.length)%o.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),C(fe(e),"onKeyDown",(function(t){var n=e.state,o=n.activeKey,r=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case zl.UP:e.offsetActiveKey(-1),t.preventDefault();break;case zl.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,m=qN($($({},VN(o,f)),{},{data:d.data,active:!0}));switch(t.which){case zl.LEFT:p&&r.includes(o)?e.onNodeExpand({},m):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case zl.RIGHT:p&&!r.includes(o)?e.onNodeExpand({},m):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case zl.ENTER:case zl.SPACE:!s||m.disabled||!1===m.checkable||m.disableCheckbox?s||!u||m.disabled||!1===m.selectable||e.onNodeSelect({},m):e.onNodeCheck({},m,!i.includes(o))}}null===c||void 0===c||c(t)})),C(fe(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(r=!0,a[n]=t[n])})),!r||n&&!i||e.setState($($({},a),o))}})),C(fe(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return le(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,c=t.draggingNodeKey,s=t.activeKey,u=t.dropLevelOffset,d=t.dropContainerKey,f=t.dropTargetKey,p=t.dropPosition,m=t.dragOverNodeKey,g=t.indent,v=this.props,h=v.prefixCls,y=v.className,x=v.style,$=v.showLine,w=v.focusable,S=v.tabIndex,E=void 0===S?0:S,k=v.selectable,O=v.showIcon,I=v.icon,N=v.switcherIcon,M=v.draggable,j=v.checkable,P=v.checkStrictly,R=v.disabled,z=v.motion,T=v.loadData,B=v.filterTreeNode,H=v.height,D=v.itemHeight,L=v.virtual,A=v.titleRender,F=v.dropIndicatorRender,W=v.onContextMenu,_=v.onScroll,V=v.direction,q=v.rootClassName,K=v.rootStyle,X=_a(this.props,{aria:!0,data:!0});return M&&(e="object"===b(M)?M:"function"===typeof M?{nodeDraggable:M}:{}),o.createElement($q.Provider,{value:{prefixCls:h,selectable:k,showIcon:O,icon:I,switcherIcon:N,draggable:e,draggingNodeKey:c,checkable:j,checkStrictly:P,disabled:R,keyEntities:i,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:m,indent:g,direction:V,dropIndicatorRender:F,loadData:T,filterTreeNode:B,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},o.createElement("div",{role:"tree",className:a()(h,y,q,C(C(C({},"".concat(h,"-show-line"),$),"".concat(h,"-focused"),n),"".concat(h,"-active-focused"),null!==s)),style:K},o.createElement(gK,l({ref:this.listRef,prefixCls:h,style:x,data:r,disabled:R,selectable:k,checkable:!!j,motion:z,dragging:null!==c,height:H,itemHeight:D,virtual:L,focusable:w,focused:n,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:_},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&t in e||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=AN(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(h(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=FN(e.children)),n){r.treeData=n;var l=_N(n,{fieldNames:a});r.keyEntities=$(C({},cK,uK),l.keyEntities)}var c,s=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?Dq(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=$({},s);delete u[cK];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Dq(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var f=WN(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=Bq(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=Bq(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=Hq(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=Hq(e.defaultCheckedKeys)||{}:n&&(c=Hq(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,m=p.checkedKeys,g=void 0===m?[]:m,v=p.halfCheckedKeys,b=void 0===v?[]:v;if(!e.checkStrictly){var y=YN(g,!0,s);g=y.checkedKeys,b=y.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=b}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(o.Component);C(vK,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),C(vK,"TreeNode",Nq);const hK=vK;const bK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const yK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:bK}))}));const CK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const xK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:CK}))}));const $K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const wK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:$K}))}));const SK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const EK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:SK}))})),kK=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher`]:{marginInlineEnd:0},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:r,zIndex:1},[`${t}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}}},OK=new Yn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),IK=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),NK=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Et(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),MK=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l,colorTextQuaternary:c}=t,s=t.marginXXS;return{[n]:Object.assign(Object.assign({},Ro(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},To(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:OK,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:Et(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},IK(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,padding:`0 ${t.paddingXS}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},NK(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Et(t.calc(i).div(2).equal())} !important`}})}},jK=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.calc(t.paddingXS).div(2).equal(),i=xo(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[MK(e,i),kK(i)]},PK=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},RK=fi("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:hM(`${n}-checkbox`,e)},jK(n,e),Qu(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},PK(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));const zK=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c="ltr"===a?"right":"left",s={[l]:-n*i+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return r().createElement("div",{style:s,className:`${o}-drop-indicator`})};const TK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const BK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:TK}))}));const HK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const DK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:HK}))}));const LK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const AK=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:LK}))})),FK=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:l}=e,{isLeaf:c,expanded:s,loading:u}=r;if(u)return o.isValidElement(l)?l:o.createElement(Yl,{className:`${t}-switcher-loading-icon`});let d;if(i&&"object"===typeof i&&(d=i.showLeafIcon),c){if(!i)return null;if("boolean"!==typeof d&&d){const e="function"===typeof d?d(r):d,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?Ka(e,{className:a()(e.props.className||"",n)}):e}return d?o.createElement(yK,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const f=`${t}-switcher-icon`,p="function"===typeof n?n(r):n;return o.isValidElement(p)?Ka(p,{className:a()(p.props.className||"",f)}):void 0!==p?p:i?s?o.createElement(DK,{className:`${t}-switcher-line-icon`}):o.createElement(AK,{className:`${t}-switcher-line-icon`}):o.createElement(BK,{className:f})},WK=r().forwardRef(((e,t)=>{var n;const{getPrefixCls:o,direction:i,virtual:l,tree:c}=r().useContext(Be),{prefixCls:s,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:g=!1,children:v,checkable:h=!1,selectable:b=!0,draggable:y,motion:C,style:x}=e,$=o("tree",s),w=o(),S=null!==C&&void 0!==C?C:Object.assign(Object.assign({},Ss(w)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:h,selectable:b,showIcon:d,motion:S,blockNode:g,showLine:Boolean(f),dropIndicatorRender:zK}),[k,O,I]=RK($),[,N]=ui(),M=N.paddingXS/2+((null===(n=N.Tree)||void 0===n?void 0:n.titleHeight)||N.controlHeightSM),j=r().useMemo((()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||r().createElement(EK,null)),e}),[y]);return k(r().createElement(hK,Object.assign({itemHeight:M,ref:t,virtual:l},E,{style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),x),prefixCls:$,className:a()({[`${$}-icon-hide`]:!d,[`${$}-block-node`]:g,[`${$}-unselectable`]:!b,[`${$}-rtl`]:"rtl"===i},null===c||void 0===c?void 0:c.className,u,O,I),direction:i,checkable:h?r().createElement("span",{className:`${$}-checkbox-inner`}):h,selectable:b,switcherIcon:e=>r().createElement(FK,{prefixCls:$,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f}),draggable:j}),v))}));const _K=WK;function VK(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&VK(a||[],t,n)}))}function qK(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let l=0;if(o&&o===r)return[o];if(!o||!r)return[];return VK(t,(e=>{if(2===l)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),AN(i)),a}function KK(e,t,n){const o=Se(t),r=[];return VK(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),AN(n)),r}var XK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function GK(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(yK,null):n?o.createElement(xK,null):o.createElement(wK,null)}function YK(e){let{treeData:t,children:n}=e;return t||FN(n)}const UK=o.forwardRef(((e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,l=XK(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=o.useRef(),s=o.useRef(),[u,d]=o.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,p]=o.useState((()=>(()=>{const{keyEntities:e}=_N(YK(l));let t;return t=n?Object.keys(e):r?Dq(l.expandedKeys||i||[],e):l.expandedKeys||i||[],t})()));o.useEffect((()=>{"selectedKeys"in l&&d(l.selectedKeys)}),[l.selectedKeys]),o.useEffect((()=>{"expandedKeys"in l&&p(l.expandedKeys)}),[l.expandedKeys]);const{getPrefixCls:m,direction:g}=o.useContext(Be),{prefixCls:v,className:h,showIcon:b=!0,expandAction:y="click"}=l,C=XK(l,["prefixCls","className","showIcon","expandAction"]),x=m("tree",v),$=a()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===g},h);return o.createElement(_K,Object.assign({icon:GK,ref:t,blockNode:!0},C,{showIcon:b,expandAction:y,prefixCls:x,className:$,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=l,{node:i,nativeEvent:a}=t,{key:u=""}=i,p=YK(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null===a||void 0===a?void 0:a.ctrlKey)||(null===a||void 0===a?void 0:a.metaKey),v=null===a||void 0===a?void 0:a.shiftKey;let h;o&&g?(h=e,c.current=u,s.current=h,m.selectedNodes=KK(p,h,r)):o&&v?(h=Array.from(new Set([].concat(Se(s.current||[]),Se(qK({treeData:p,expandedKeys:f,startKey:u,endKey:c.current,fieldNames:r}))))),m.selectedNodes=KK(p,h,r)):(h=[u],c.current=u,s.current=h,m.selectedNodes=KK(p,h,r)),null===(n=l.onSelect)||void 0===n||n.call(l,h,m),"selectedKeys"in l||d(h)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||p(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))}));const QK=UK,ZK=_K;ZK.DirectoryTree=QK,ZK.TreeNode=Nq;const JK=ZK,eX=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(ER,{prefix:o.createElement(Oy,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},tX=e=>{const{keyCode:t}=e;t===zl.ENTER&&e.stopPropagation()},nX=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:tX,ref:t},e.children)));const oX=nX;function rX(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat(Se(t),Se(rX(o))))})),t}function iX(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function aX(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:aX({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?AM:kW,u={key:void 0!==e.value?c:t,label:o.createElement(o.Fragment,null,o.createElement(s,{checked:r.includes(c)}),o.createElement("span",null,e.text))};return a.trim()?"function"===typeof l?l(a,e)?u:null:iX(a,e.text)?u:null:u}))}function lX(e){return e||[]}const cX=e=>{var t,n;const{tablePrefixCls:r,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:s,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:v,children:h,getPopupContainer:b,rootClassName:y}=e,{filterDropdownOpen:C,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:$,defaultFilteredValue:w,filterDropdownVisible:S,onFilterDropdownVisibleChange:E}=l,[k,O]=o.useState(!1),I=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),N=e=>{O(e),null===x||void 0===x||x(e),null===E||void 0===E||E(e)};const M=null!==(n=null!==C&&void 0!==C?C:S)&&void 0!==n?n:k,j=null===m||void 0===m?void 0:m.filteredKeys,[P,R]=function(e){const t=o.useRef(e),n=_y();return[()=>t.current,e=>{t.current=e,n()}]}(lX(j)),z=e=>{let{selectedKeys:t}=e;R(t)},T=(e,t)=>{let{node:n,checked:o}=t;z(d?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect((()=>{k&&z({selectedKeys:lX(j)})}),[j]);const[B,H]=o.useState([]),D=e=>{H(e)},[L,A]=o.useState(""),F=e=>{const{value:t}=e.target;A(t)};o.useEffect((()=>{k||A("")}),[k]);const W=e=>{const t=(null===e||void 0===e?void 0:e.length)?e:null;return null!==t||m&&m.filteredKeys?et(t,null===m||void 0===m?void 0:m.filteredKeys,!0)?null:void g({column:l,key:s,filteredKeys:t}):null},_=()=>{N(!1),W(P())},V=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&W([]),t&&N(!1),A(""),R($?(w||[]).map((e=>String(e))):[])},q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&N(!1),W(P())},K=a()({[`${c}-menu-without-submenu`]:(X=l.filters||[],!X.some((e=>{let{children:t}=e;return t})))});var X;const G=e=>{if(e.target.checked){const e=rX(null===l||void 0===l?void 0:l.filters).map((e=>String(e)));R(e)}else R([])},Y=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=Y({filters:e.children})),o}))},U=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>U(e))))||[]})};let Q;const{direction:Z,renderEmpty:J}=o.useContext(Be);if("function"===typeof l.filterDropdown)Q=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:P(),confirm:q,clearFilters:V,filters:l.filters,visible:M,close:()=>{N(!1)}});else if(l.filterDropdown)Q=l.filterDropdown;else{const e=P()||[],t=()=>{var t;const n=null!==(t=null===J||void 0===J?void 0:J("Table.filter"))&&void 0!==t?t:o.createElement(Pb,{image:Pb.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return n;if("tree"===f)return o.createElement(o.Fragment,null,o.createElement(eX,{filterSearch:p,value:L,onChange:F,tablePrefixCls:r,locale:v}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},d?o.createElement(AM,{checked:e.length===rX(l.filters).length,indeterminate:e.length>0&&e.length<rX(l.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:G},v.filterCheckall):null,o.createElement(JK,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:`${c}-menu`,onCheck:T,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Y({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"===typeof p?p(L,U(e)):iX(L,e.title):void 0})));const a=aX({filters:l.filters||[],filterSearch:p,prefixCls:i,filteredKeys:P(),filterMultiple:d,searchValue:L}),s=a.every((e=>null===e));return o.createElement(o.Fragment,null,o.createElement(eX,{filterSearch:p,value:L,onChange:F,tablePrefixCls:r,locale:v}),s?n:o.createElement(Hw,{selectable:!0,multiple:d,prefixCls:`${c}-menu`,className:K,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:b,openKeys:B,onOpenChange:D,items:a}))},n=()=>$?et((w||[]).map((e=>String(e))),e,!0):0===e.length;Q=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${i}-dropdown-btns`},o.createElement(Zd,{type:"link",size:"small",disabled:n(),onClick:()=>V()},v.filterReset),o.createElement(Zd,{type:"primary",size:"small",onClick:_},v.filterConfirm)))}l.filterDropdown&&(Q=o.createElement(hw,{selectable:void 0},Q));let ee;return ee="function"===typeof l.filterIcon?l.filterIcon(I):l.filterIcon?l.filterIcon:o.createElement(Jq,null),o.createElement("div",{className:`${i}-column`},o.createElement("span",{className:`${r}-column-title`},h),o.createElement(wB,{dropdownRender:()=>o.createElement(oX,{className:`${i}-dropdown`},Q),trigger:["click"],open:M,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==j&&R(lX(j)),N(e),e||l.filterDropdown||!u||_())},getPopupContainer:b,placement:"rtl"===Z?"bottomLeft":"bottomRight",rootClassName:y},o.createElement("span",{role:"button",tabIndex:-1,className:a()(`${i}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},ee)))},sX=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=Uq(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null===t||void 0===t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:Yq(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:Yq(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(Se(o),Se(sX(e.children,t,a))))})),o};function uX(e,t,n,r,i,a,l,c,s){return n.map(((n,u)=>{const d=Uq(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=n;let v=n;if(v.filters||v.filterDropdown){const c=Yq(v,d),u=r.find((e=>{let{key:t}=e;return c===t}));v=Object.assign(Object.assign({},v),{title:r=>o.createElement(cX,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},Qq(n.title,r))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:uX(e,t,v.children,r,i,a,l,d,s)})),v}))}const dX=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:l}=r;if(l)t[i]=o||null;else if(Array.isArray(o)){const e=rX(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t},fX=(e,t,n)=>{const o=t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=rX(i),l=a.findIndex((e=>String(e)===String(o))),c=-1!==l?a[l]:o;return e[n]&&(e[n]=fX(e[n],t,n)),r(c,e)})))):e}),e);return o},pX=e=>e.flatMap((e=>"children"in e?[e].concat(Se(pX(e.children||[]))):[e])),mX=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=(Pl("Table"),o.useMemo((()=>pX(r||[])),[r])),[u,d]=o.useState((()=>sX(s,!0))),f=o.useMemo((()=>{const e=sX(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>Yq(e,Uq(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=o.useMemo((()=>dX(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(dX(t),t)};return[e=>uX(t,n,e,f,l,m,a,void 0,c),f,p]},gX=(e,t,n)=>{const r=o.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function l(e){e.forEach(((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"===typeof e&&t in e&&l(e[t]||[])}))}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]};var vX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hX=10;const bX=function(e,t,n){const r=n&&"object"===typeof n?n:{},{total:i=0}=r,a=vX(r,["total"]),[l,c]=(0,o.useState)((()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:hX}))),s=lL(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!==e&&void 0!==e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null===s||void 0===s?void 0:s.pageSize))}}),d]};const yX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const CX=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:yX}))}));const xX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const $X=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:xX}))})),wX="ascend",SX="descend",EX=e=>"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple,kX=e=>"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare,OX=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:Yq(e,t),multiplePriority:EX(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=Uq(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(Se(o),Se(OX(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:Yq(e,a),multiplePriority:EX(e),sortOrder:e.defaultSortOrder}))})),o},IX=(e,t,n,r,i,l,c,s)=>{const u=(t||[]).map(((t,u)=>{const d=Uq(u,s);let f=t;if(f.sorter){const s=f.sortDirections||i,u=void 0===f.showSorterTooltip?c:f.showSorterTooltip,p=Yq(f,d),m=n.find((e=>{let{key:t}=e;return t===p})),g=m?m.sortOrder:null,v=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,g);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:g});else{const t=s.includes(wX)&&o.createElement($X,{className:a()(`${e}-column-sorter-up`,{active:g===wX})}),n=s.includes(SX)&&o.createElement(CX,{className:a()(`${e}-column-sorter-down`,{active:g===SX})});h=o.createElement("span",{className:a()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:C}=l||{};let x=b;v===SX?x=C:v===wX&&(x=y);const $="object"===typeof u?Object.assign({title:x},u):{title:x};f=Object.assign(Object.assign({},f),{className:a()(f.className,{[`${e}-column-sort`]:g}),title:n=>{const r=`${e}-column-sorters`,i=o.createElement("span",{className:`${e}-column-title`},Qq(t.title,n)),a=o.createElement("div",{className:r},i,h);return u?"boolean"!==typeof u&&"sorter-icon"===(null===u||void 0===u?void 0:u.target)?o.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,o.createElement(NC,Object.assign({},$),h)):o.createElement(NC,Object.assign({},$),a):a},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},l=i.onClick,c=i.onKeyDown;i.onClick=e=>{r({column:t,key:p,sortOrder:v,multiplePriority:EX(t)}),null===l||void 0===l||l(e)},i.onKeyDown=e=>{e.keyCode===zl.ENTER&&(r({column:t,key:p,sortOrder:v,multiplePriority:EX(t)}),null===c||void 0===c||c(e))};const s=((e,t)=>{const n=Qq(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),u=null===s||void 0===s?void 0:s.toString();return g?i["aria-sort"]="ascend"===g?"ascending":"descending":i["aria-label"]=u||"",i.className=a()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!==s&&void 0!==s?s:"").toString()),i}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:IX(e,f.children,n,r,i,l,c,d)})),f}));return u},NX=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},MX=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(NX);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},NX(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},jX=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return kX(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,l=kX(r);if(l&&a){const n=l(e,t,a);if(0!==n)return a===wX?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:jX(o,t,n)}):e})):r},PX=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=o.useState(OX(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const r=Uq(o,t);if(n.push(Yq(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,Se(t))}})),n},d=o.useMemo((()=>{let e=!0;const t=OX(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o}),[n,c]),f=o.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(Se(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(MX(t),t)};return[e=>IX(t,e,d,p,r,i,a),d,f,()=>MX(d)]},RX=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=Qq(e.title,t),"children"in n&&(n.children=RX(n.children,t)),n}));return n},zX=e=>{const t=o.useCallback((t=>RX(t,e)),[e]);return[t]},TX=aq(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),BX=TX,HX=yq(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),DX=HX,LX=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${Et(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Et(c(o).mul(-1).equal())}\n ${Et(c(c(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Et(c(a).mul(-1).equal())} ${Et(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Et(n)} 0 ${Et(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},AX=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Po),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},FX=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},WX=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:h,expandIconScale:b,calc:y}=e,C=`${Et(r)} ${a} ${l}`,x=y(m).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Ho(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:Et(v),background:c,border:C,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:x,insetInlineStart:x,height:r},"&::after":{top:x,bottom:x,insetInlineStart:h,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Et(y(d).mul(-1).equal())} ${Et(y(f).mul(-1).equal())}`,padding:`${Et(d)} ${Et(f)}`}}}},_X=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorTextDescription:h,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:$,controlItemBgHover:w,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:O}=e,I=`${n}-dropdown`,N=`${t}-filter-dropdown`,M=`${n}-tree`,j=`${Et(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${Et(a)} ${Et(O(m).div(2).mul(-1).equal())}`,padding:`0 ${Et(a)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:h,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},Ro(e)),{minWidth:r,backgroundColor:x,borderRadius:g,boxShadow:E,overflow:"hidden",[`${I}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${Et(l)} 0`,color:C,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${Et(l)} 0`,paddingInline:l,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:w},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${N}-search`]:{padding:l,borderBottom:j,"&-input":{input:{minWidth:i},[o]:{color:C}}},[`${N}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Et(O(l).sub(s).equal())} ${Et(l)}`,overflow:"hidden",borderTop:j}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},VX=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},qX=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Et(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},KX=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Et(n)} ${Et(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Et(n)} ${Et(n)}`}}}}},XX=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},GX=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Et(m(p).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},YX=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${Et(r)} ${Et(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Et(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Et(o(r).mul(-1).equal())} ${Et(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Et(o(r).mul(-1).equal()),marginInline:`${Et(o(n).sub(i).equal())} ${Et(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Et(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},UX=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},QX=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${Et(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Et(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},ZX=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${Et(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Et(r(n).mul(-1).equal())} 0 ${o}`}}}},JX=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,l=`${Et(o)} ${r} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Et(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},eG=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:h,calc:b}=e,y=`${Et(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Ro(e)),{fontSize:s,background:u,borderRadius:`${Et(d)} ${Et(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Et(d)} ${Et(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${Et(o)} ${Et(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Et(o)} ${Et(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:Et(b(o).mul(-1).equal()),marginInline:`${Et(b(i).sub(r).equal())}\n ${Et(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${Et(o)} ${Et(r)}`,color:v,background:h}})}},tG=fi("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:h,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:C,footerBg:x,footerColor:$,headerBorderRadius:w,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:O,fixedHeaderSortActiveBg:I,headerFilterHoverBg:N,filterDropdownBg:M,expandIconBg:j,selectionColumnWidth:P,stickyScrollBarBg:R,calc:z}=e,T=xo(e,{tableFontSize:S,tableBg:o,tableRadius:w,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:$,tableFooterBg:x,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:M,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:z(2).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:P,tableExpandIconBg:j,tableExpandColumnWidth:z(r).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[eG(T),qX(T),ZX(T),UX(T),_X(T),LX(T),KX(T),WX(T),ZX(T),FX(T),GX(T),VX(T),QX(T),AX(T),YX(T),XX(T),JX(T)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:h,lineWidth:b,colorIcon:y,colorIconHover:C,opacityLoading:x,controlInteractiveSize:$}=e,w=new Fr(r).onBackground(n).toHexShortString(),S=new Fr(i).onBackground(n).toHexShortString(),E=new Fr(t).onBackground(n).toHexShortString(),k=new Fr(y),O=new Fr(C),I=$/2-b,N=2*I+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:w,headerSortHoverBg:S,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:E,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*h-3*b)/2-Math.ceil((1.4*v-3*b)/2),headerIconColor:k.clone().setAlpha(k.getAlpha()*x).toRgbString(),headerIconHoverColor:O.clone().setAlpha(O.getAlpha()*x).toRgbString(),expandIconHalfInner:I,expandIconSize:N,expandIconScale:$/N}}),{unitless:{expandIconScale:!0}}),nG=[],oG=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:v="key",rowClassName:h,columns:b,children:y,childrenColumnName:C,onChange:x,getPopupContainer:$,loading:w,expandIcon:S,expandable:E,expandedRowRender:k,expandIconColumnIndex:O,indentSize:I,scroll:N,sortDirections:M,locale:j,showSorterTooltip:P={target:"full-header"},virtual:R}=e;Pl("Table");const z=o.useMemo((()=>b||WV(y)),[b,y]),T=o.useMemo((()=>z.some((e=>e.responsive))),[z]),B=Vy(T),H=o.useMemo((()=>{const e=new Set(Object.keys(B).filter((e=>B[e])));return z.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[z,B]),D=Ce(e,["className","style","columns"]),{locale:L=Ac,direction:A,table:F,renderEmpty:W,getPrefixCls:_,getPopupContainer:V}=o.useContext(Be),q=Bs(u),K=Object.assign(Object.assign({},L.Table),j),X=p||nG,G=_("table",i),Y=_("dropdown",f),[,U]=ui(),Q=bl(G),[Z,J,ee]=tG(G,Q),te=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:O},E),{expandIcon:null!==(n=null===E||void 0===E?void 0:E.expandIcon)&&void 0!==n?n:null===(r=null===F||void 0===F?void 0:F.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:ne="children"}=te,oe=o.useMemo((()=>X.some((e=>null===e||void 0===e?void 0:e[ne]))?"nest":k||(null===E||void 0===E?void 0:E.expandedRowRender)?"row":null),[X]),re={body:o.useRef()},ie=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(G),ae=o.useRef(null),le=o.useRef(null);Xq(t,(()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current})));const ce=o.useMemo((()=>"function"===typeof v?v:e=>null===e||void 0===e?void 0:e[v]),[v]),[se]=gX(X,ne,ce),ue={},de=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const l=Object.assign(Object.assign({},ue),e);n&&(null===(o=ue.resetPagination)||void 0===o||o.call(ue),(null===(r=l.pagination)||void 0===r?void 0:r.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),N&&!1!==N.scrollToFirstRowOnChange&&re.body.current&&hl(0,{getContainer:()=>re.body.current}),null===x||void 0===x||x(l.pagination,l.filters,l.sorter,{currentDataSource:fX(jX(X,l.sorterStates,ne),l.filterStates,ne),action:t})},[fe,pe,me,ge]=PX({prefixCls:G,mergedColumns:H,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:K,showSorterTooltip:P}),ve=o.useMemo((()=>jX(X,pe,ne)),[X,pe]);ue.sorter=ge(),ue.sorterStates=pe;const[he,be,ye]=mX({prefixCls:G,locale:K,dropdownPrefixCls:Y,mergedColumns:H,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V,rootClassName:a()(c,Q)}),xe=fX(ve,be,ne);ue.filters=ye,ue.filterStates=be;const $e=o.useMemo((()=>{const e={};return Object.keys(ye).forEach((t=>{null!==ye[t]&&(e[t]=ye[t])})),Object.assign(Object.assign({},me),{filters:e})}),[me,ye]),[we]=zX($e),[Se,Ee]=bX(xe.length,((e,t)=>{de({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")}),m);ue.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"===typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!==typeof o&&(n[t]=o)})),n}(Se,m),ue.resetPagination=Ee;const ke=o.useMemo((()=>{if(!1===m||!Se.pageSize)return xe;const{current:e=1,total:t,pageSize:n=hX}=Se;return xe.length<t?xe.length>n?xe.slice((e-1)*n,e*n):xe:xe.slice((e-1)*n,e*n)}),[!!m,xe,null===Se||void 0===Se?void 0:Se.current,null===Se||void 0===Se?void 0:Se.pageSize,null===Se||void 0===Se?void 0:Se.total]),[Oe,Ie]=Kq({prefixCls:G,data:xe,pageData:ke,getRowKey:ce,getRecordByKey:se,expandType:oe,childrenColumnName:ne,locale:K,getPopupContainer:$||V},g);te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||S||Gq(K),"nest"===oe&&void 0===te.expandIconColumnIndex?te.expandIconColumnIndex=g?1:0:te.expandIconColumnIndex>0&&g&&(te.expandIconColumnIndex-=1),"number"!==typeof te.indentSize&&(te.indentSize="number"===typeof I?I:15);const Ne=o.useCallback((e=>we(Oe(he(fe(e))))),[fe,he,Oe]);let Me,je,Pe;if(!1!==m&&(null===Se||void 0===Se?void 0:Se.total)){let e;e=Se.size?Se.size:"small"===q||"middle"===q?"small":void 0;const t=t=>o.createElement(HL,Object.assign({},Se,{className:a()(`${G}-pagination ${G}-pagination-${t}`,Se.className),size:e})),n="rtl"===A?"left":"right",{position:r}=Se;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"===`${e}`));e||o||i||(je=t(n)),e&&(Me=t(e.toLowerCase().replace("top",""))),o&&(je=t(o.toLowerCase().replace("bottom","")))}else je=t(n)}"boolean"===typeof w?Pe={spinning:w}:"object"===typeof w&&(Pe=Object.assign({spinning:!0},w));const Re=a()(ee,Q,`${G}-wrapper`,null===F||void 0===F?void 0:F.className,{[`${G}-wrapper-rtl`]:"rtl"===A},l,c,J),ze=Object.assign(Object.assign({},null===F||void 0===F?void 0:F.style),s),Te="undefined"!==typeof(null===j||void 0===j?void 0:j.emptyText)?j.emptyText:(null===W||void 0===W?void 0:W("Table"))||o.createElement(Rb,{componentName:"Table"}),He=R?DX:BX,De={},Le=o.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:o,paddingSM:r}=U,i=Math.floor(e*t);switch(q){case"large":return 2*n+i;case"small":return 2*o+i;default:return 2*r+i}}),[U,q]);return R&&(De.listItemHeight=Le),Z(o.createElement("div",{ref:ae,className:Re,style:ze},o.createElement(QL,Object.assign({spinning:!1},Pe),Me,o.createElement(He,Object.assign({},De,D,{ref:le,columns:H,direction:A,expandable:te,prefixCls:G,className:a()({[`${G}-middle`]:"middle"===q,[`${G}-small`]:"small"===q,[`${G}-bordered`]:d,[`${G}-empty`]:0===X.length},ee,Q,J),data:ke,rowKey:ce,rowClassName:(e,t,n)=>{let o;return o="function"===typeof h?a()(h(e,t,n)):a()(h),a()({[`${G}-row-selected`]:Ie.has(ce(e,t))},o)},emptyText:Te,internalHooks:Q_,internalRefs:re,transformColumns:Ne,getContainerWidth:ie})),je)))})),rG=o.forwardRef(((e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(oG,Object.assign({},e,{ref:t,_renderTimes:n.current}))}));rG.SELECTION_COLUMN=Aq,rG.EXPAND_COLUMN=U_,rG.SELECTION_ALL=Fq,rG.SELECTION_INVERT=Wq,rG.SELECTION_NONE=_q,rG.Column=Cq,rG.ColumnGroup=xq,rG.Summary=bV;const iG=rG,aG=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return xo(e,{tagFontSize:r,tagLineHeight:Et(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},lG=e=>({defaultBg:new Fr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),cG=fi("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:i}=e,a=i(o).sub(n).equal(),l=i(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},Ro(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(aG(e))),lG);var sG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uG=o.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:i,checked:l,onChange:c,onClick:s}=e,u=sG(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:f}=o.useContext(Be),p=d("tag",n),[m,g,v]=cG(p),h=a()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:l},null===f||void 0===f?void 0:f.className,i,g,v);return m(o.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),null===f||void 0===f?void 0:f.style),className:h,onClick:e=>{null===c||void 0===c||c(!l),null===s||void 0===s||s(e)}})))})),dG=uG,fG=mi(["Tag","preset"],(e=>(e=>hC(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(aG(e))),lG);const pG=(e,t,n)=>{const o="string"!==typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},mG=mi(["Tag","status"],(e=>{const t=aG(e);return[pG(t,"success","Success"),pG(t,"processing","Info"),pG(t,"error","Error"),pG(t,"warning","Warning")]}),lG);var gG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vG=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,children:c,icon:s,color:u,onClose:d,bordered:f=!0,visible:p}=e,m=gG(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:v,tag:h}=o.useContext(Be),[b,y]=o.useState(!0),C=Ce(m,["closeIcon","closable"]);o.useEffect((()=>{void 0!==p&&y(p)}),[p]);const x=wC(u),$=function(e){return $C.includes(e)}(u),w=x||$,S=Object.assign(Object.assign({backgroundColor:u&&!w?u:void 0},null===h||void 0===h?void 0:h.style),l),E=g("tag",n),[k,O,I]=cG(E),N=a()(E,null===h||void 0===h?void 0:h.className,{[`${E}-${u}`]:w,[`${E}-has-color`]:u&&!w,[`${E}-hidden`]:!b,[`${E}-rtl`]:"rtl"===v,[`${E}-borderless`]:!f},r,i,O,I),M=e=>{e.stopPropagation(),null===d||void 0===d||d(e),e.defaultPrevented||y(!1)},[,j]=cm(rm(e),rm(h),{closable:!1,closeIconRender:e=>{const t=o.createElement("span",{className:`${E}-close-icon`,onClick:M},e);return qa(e,t,(e=>({onClick:t=>{var n;null===(n=null===e||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),M(t)},className:a()(null===e||void 0===e?void 0:e.className,`${E}-close-icon`)})))}}),P="function"===typeof m.onClick||c&&"a"===c.type,R=s||null,z=R?o.createElement(o.Fragment,null,R,c&&o.createElement("span",null,c)):c,T=o.createElement("span",Object.assign({},C,{ref:t,className:N,style:S}),z,j,x&&o.createElement(fG,{key:"preset",prefixCls:E}),$&&o.createElement(mG,{key:"status",prefixCls:E}));return k(P?o.createElement(Ts,{component:"Tag"},T):T)})),hG=vG;hG.CheckableTag=dG;const bG=hG,yG=e=>{const t=(null===e||void 0===e?void 0:e.algorithm)?bt(e.algorithm):bt(Qr),n=Object.assign(Object.assign({},Ar),null===e||void 0===e?void 0:e.token);return Wt(n,{override:null===e||void 0===e?void 0:e.token},t,ri)};const CG=(e,t)=>{const n=null!==t&&void 0!==t?t:Qr(e),o=n.fontSizeSM,r=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(null!==t&&void 0!==t?t:e)),Kr(o)),{controlHeight:r}),Vr(Object.assign(Object.assign({},n),{controlHeight:r})))},xG=(e,t)=>new Fr(e).setAlpha(t).toRgbString(),$G=(e,t)=>new Fr(e).lighten(t).toHexString(),wG=e=>{const t=ur(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},SG=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:xG(o,.85),colorTextSecondary:xG(o,.65),colorTextTertiary:xG(o,.45),colorTextQuaternary:xG(o,.25),colorFill:xG(o,.18),colorFillSecondary:xG(o,.12),colorFillTertiary:xG(o,.08),colorFillQuaternary:xG(o,.04),colorBgSolid:xG(o,.95),colorBgSolidHover:xG(o,1),colorBgSolidActive:xG(o,.9),colorBgElevated:$G(n,12),colorBgContainer:$G(n,8),colorBgLayout:$G(n,0),colorBgSpotlight:$G(n,26),colorBgBlur:xG(o,.04),colorBorder:$G(n,26),colorBorderSecondary:$G(n,19)}},EG=(e,t)=>{const n=Object.keys(Lr).map((t=>{const n=ur(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),o=null!==t&&void 0!==t?t:Qr(e);return Object.assign(Object.assign(Object.assign({},o),n),Wr(e,{generateColorPalettes:wG,generateNeutralColorPalettes:SG}))};const kG={defaultSeed:Jr.token,useToken:function(){const[e,t,n]=ui();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Qr,darkAlgorithm:EG,compactAlgorithm:CG,getDesignToken:yG,defaultConfig:Jr,_internalContext:ei};var OG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const{TimePicker:IG,RangePicker:NG}=ST,MG=o.forwardRef(((e,t)=>o.createElement(NG,Object.assign({},e,{picker:"time",mode:void 0,ref:t})))),jG=o.forwardRef(((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,l=OG(e,["addon","renderExtraFooter","variant","bordered"]);const[c]=zb("timePicker",i,a),s=o.useMemo((()=>r||(n||void 0)),[n,r]);return o.createElement(IG,Object.assign({},l,{mode:void 0,ref:t,renderExtraFooter:s,variant:c}))}));const PG=vv(jG,"picker");jG._InternalPanelDoNotUseOrYouWillBeFired=PG,jG.RangePicker=MG,jG._InternalPanelDoNotUseOrYouWillBeFired=PG;const RG=jG,zG=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ro(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${Et(e.itemHeadSize)})`,borderInlineStart:`${Et(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${Et(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${Et(e.marginXXS)})`,width:`calc(50% - ${Et(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${Et(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${Et(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`},[`${t}-item-content`]:{width:`calc(100% - ${Et(n(e.itemHeadSize).add(e.marginXS).equal())})`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${Et(e.margin)})`,borderInlineStart:`${Et(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${Et(e.margin)})`,borderInlineStart:`${Et(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${Et(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${Et(e.marginSM)})`,width:`calc(50% - ${Et(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},TG=fi("Timeline",(e=>{const t=xo(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[zG(t)]}),(e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding})));var BG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const HG=e=>{var{prefixCls:t,className:n,color:r="blue",dot:i,pending:l=!1,position:c,label:s,children:u}=e,d=BG(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:f}=o.useContext(Be),p=f("timeline",t),m=a()(`${p}-item`,{[`${p}-item-pending`]:l},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,v=a()(`${p}-item-head`,{[`${p}-item-head-custom`]:!!i,[`${p}-item-head-${r}`]:!g});return o.createElement("li",Object.assign({},d,{className:m}),s&&o.createElement("div",{className:`${p}-item-label`},s),o.createElement("div",{className:`${p}-item-tail`}),o.createElement("div",{className:v,style:{borderColor:g,color:g}},i),o.createElement("div",{className:`${p}-item-content`},u))};var DG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const LG=e=>{var{prefixCls:t,className:n,pending:r=!1,children:i,items:l,rootClassName:c,reverse:s=!1,direction:u,hashId:d,pendingDot:f,mode:p=""}=e,m=DG(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(e,n)=>"alternate"===p?"right"===e?`${t}-item-right`:"left"===e||n%2===0?`${t}-item-left`:`${t}-item-right`:"left"===p?`${t}-item-left`:"right"===p||"right"===e?`${t}-item-right`:"",v=Se(l||[]),h="boolean"===typeof r?null:r;r&&v.push({pending:!!r,dot:f||o.createElement(Yl,null),children:h}),s&&v.reverse();const b=v.length,y=`${t}-item-last`,C=v.filter((e=>!!e)).map(((e,t)=>{var n;const i=t===b-2?y:"",l=t===b-1?y:"",{className:c}=e,u=DG(e,["className"]);return o.createElement(HG,Object.assign({},u,{className:a()([c,!s&&r?i:l,g(null!==(n=null===e||void 0===e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null===e||void 0===e?void 0:e.key)||t}))})),x=v.some((e=>!!(null===e||void 0===e?void 0:e.label))),$=a()(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${p}`]:!!p&&!x,[`${t}-label`]:x,[`${t}-rtl`]:"rtl"===u},n,c,d);return o.createElement("ul",Object.assign({},m,{className:$}),C)};const AG=function(e,t){return e&&Array.isArray(e)?e:s(t).map((e=>{var t,n;return Object.assign({children:null!==(n=null===(t=null===e||void 0===e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)}))};var FG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const WG=e=>{const{getPrefixCls:t,direction:n,timeline:r}=o.useContext(Be),{prefixCls:i,children:l,items:c,className:s,style:u}=e,d=FG(e,["prefixCls","children","items","className","style"]),f=t("timeline",i);const p=bl(f),[m,g,v]=TG(f,p),h=AG(c,l);return m(o.createElement(LG,Object.assign({},d,{className:a()(null===r||void 0===r?void 0:r.className,s,v,p),style:Object.assign(Object.assign({},null===r||void 0===r?void 0:r.style),u),prefixCls:f,direction:n,items:h,hashId:g})))};WG.Item=HG;const _G=WG;function VG(e){return null!==e&&"object"===b(e)}function qG(e,t,n){if(!1===e||!1===t&&(!VG(e)||!e.closeIcon))return null;var o,r="boolean"!==typeof t?t:void 0;return VG(e)?$($({},e),{},{closeIcon:null!==(o=e.closeIcon)&&void 0!==o?o:r}):n||e||t?{closeIcon:r}:"empty"}function KG(e,t,n,r){var i=Ae((0,o.useState)(void 0),2),a=i[0],l=i[1];Rt((function(){var t="function"===typeof e?e():e;l(t||null)}));var c=Ae((0,o.useState)(null),2),s=c[0],u=c[1],d=ao((function(){if(a){!function(e){var t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,o=e.getBoundingClientRect(),r=o.top,i=o.right,a=o.bottom,l=o.left;return r>=0&&l>=0&&i<=t&&a<=n}(a)&&t&&a.scrollIntoView(r);var e=a.getBoundingClientRect(),n={left:e.left,top:e.top,width:e.width,height:e.height,radius:0};u((function(e){return JSON.stringify(e)!==JSON.stringify(n)?n:e}))}else u(null)})),f=function(e){var t;return null!==(t=Array.isArray(null===n||void 0===n?void 0:n.offset)?null===n||void 0===n?void 0:n.offset[e]:null===n||void 0===n?void 0:n.offset)&&void 0!==t?t:6};return Rt((function(){return d(),window.addEventListener("resize",d),function(){window.removeEventListener("resize",d)}}),[a,t,d]),[(0,o.useMemo)((function(){if(!s)return s;var e,t=f(0),o=f(1),r="number"!==typeof(e=null===n||void 0===n?void 0:n.radius)||Number.isNaN(e)?2:null===n||void 0===n?void 0:n.radius;return{left:s.left-t,top:s.top-o,width:s.width+2*t,height:s.height+2*o,radius:r}}),[s,n]),a]}var XG={fill:"transparent",pointerEvents:"auto"};const GG=function(e){var t=e.prefixCls,n=e.rootClassName,o=e.pos,i=e.showMask,c=e.style,s=void 0===c?{}:c,u=e.fill,d=void 0===u?"rgba(0,0,0,0.5)":u,f=e.open,p=e.animated,m=e.zIndex,g=e.disabledInteraction,v=$f(),h="".concat(t,"-mask-").concat(v),y="object"===b(p)?null===p||void 0===p?void 0:p.placeholder:p,C="undefined"!==typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return r().createElement(bf,{open:f,autoLock:!0},r().createElement("div",{className:a()("".concat(t,"-mask"),n),style:$({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:m,pointerEvents:o&&!g?"none":"auto"},s)},i?r().createElement("svg",{style:{width:"100%",height:"100%"}},r().createElement("defs",null,r().createElement("mask",{id:h},r().createElement("rect",l({x:"0",y:"0"},C,{fill:"white"})),o&&r().createElement("rect",{x:o.left,y:o.top,rx:o.radius,width:o.width,height:o.height,fill:"black",className:y?"".concat(t,"-placeholder-animated"):""}))),r().createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:d,mask:"url(#".concat(h,")")}),o&&r().createElement(r().Fragment,null,r().createElement("rect",l({},XG,{x:"0",y:"0",width:"100%",height:o.top})),r().createElement("rect",l({},XG,{x:"0",y:"0",width:o.left,height:"100%"})),r().createElement("rect",l({},XG,{x:"0",y:o.top+o.height,width:"100%",height:"calc(100vh - ".concat(o.top+o.height,"px)")})),r().createElement("rect",l({},XG,{x:o.left+o.width,y:"0",width:"calc(100vw - ".concat(o.left+o.width,"px)"),height:"100%"})))):null))};var YG=[0,0],UG={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function QG(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return Object.keys(UG).forEach((function(n){t[n]=$($({},UG[n]),{},{autoArrow:e,targetOffset:YG})})),t}QG();function ZG(e){var t,n=e.prefixCls,r=e.current,i=e.total,c=e.title,s=e.description,u=e.onClose,d=e.onPrev,f=e.onNext,p=e.onFinish,m=e.className,g=e.closable,v=_a(g||{},!0),h=null!==(t=null===g||void 0===g?void 0:g.closeIcon)&&void 0!==t?t:o.createElement("span",{className:"".concat(n,"-close-x")},"\xd7"),b=!!g;return o.createElement("div",{className:a()("".concat(n,"-content"),m)},o.createElement("div",{className:"".concat(n,"-inner")},b&&o.createElement("button",l({type:"button",onClick:u,"aria-label":"Close"},v,{className:"".concat(n,"-close")}),h),o.createElement("div",{className:"".concat(n,"-header")},o.createElement("div",{className:"".concat(n,"-title")},c)),o.createElement("div",{className:"".concat(n,"-description")},s),o.createElement("div",{className:"".concat(n,"-footer")},o.createElement("div",{className:"".concat(n,"-sliders")},i>1?Se(Array.from({length:i}).keys()).map((function(e,t){return o.createElement("span",{key:e,className:t===r?"active":""})})):null),o.createElement("div",{className:"".concat(n,"-buttons")},0!==r?o.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:d},"Prev"):null,r===i-1?o.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:p},"Finish"):o.createElement("button",{className:"".concat(n,"-next-btn"),onClick:f},"Next")))))}const JG=function(e){var t=e.current,n=e.renderPanel;return o.createElement(o.Fragment,null,"function"===typeof n?n(e,t):o.createElement(ZG,e))};var eY=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],tY={left:"50%",top:"50%",width:1,height:1},nY={block:"center",inline:"center"};const oY=function(e){var t=e.prefixCls,n=void 0===t?"rc-tour":t,r=e.steps,i=void 0===r?[]:r,c=e.defaultCurrent,s=e.current,u=e.onChange,d=e.onClose,f=e.onFinish,p=e.open,m=e.mask,g=void 0===m||m,v=e.arrow,h=void 0===v||v,y=e.rootClassName,C=e.placement,x=e.renderPanel,w=e.gap,S=e.animated,E=e.scrollIntoViewOptions,k=void 0===E?nY:E,O=e.zIndex,I=void 0===O?1001:O,N=e.closeIcon,M=e.closable,j=e.builtinPlacements,P=e.disabledInteraction,R=Si(e,eY),z=o.useRef(),T=Ae(so(0,{value:s,defaultValue:c}),2),B=T[0],H=T[1],D=Ae(so(void 0,{value:p,postState:function(e){return!(B<0||B>=i.length)&&(null===e||void 0===e||e)}}),2),L=D[0],A=D[1],F=Ae(o.useState(L),2),W=F[0],_=F[1],V=o.useRef(L);Rt((function(){L&&(V.current||H(0),_(!0)),V.current=L}),[L]);var q=i[B]||{},K=q.target,X=q.placement,G=q.style,Y=q.arrow,U=q.className,Q=q.mask,Z=q.scrollIntoViewOptions,J=void 0===Z?nY:Z,ee=q.closeIcon,te=function(e,t,n,r){return o.useMemo((function(){var o=qG(e,t,!1),i=qG(n,r,!0);return"empty"!==o?o:i}),[n,r,e,t])}(q.closable,ee,M,N),ne=L&&(null!==Q&&void 0!==Q?Q:g),oe=Ae(KG(K,p,w,null!==J&&void 0!==J?J:k),2),re=oe[0],ie=oe[1],ae=function(e,t,n){var o;return null!==(o=null!==n&&void 0!==n?n:t)&&void 0!==o?o:null===e?"center":"bottom"}(ie,C,X),le=!!ie&&("undefined"===typeof Y?h:Y),ce="object"===b(le)&&le.pointAtCenter;Rt((function(){var e;null===(e=z.current)||void 0===e||e.forceAlign()}),[ce,B]);var se=function(e){H(e),null===u||void 0===u||u(e)},ue=(0,o.useMemo)((function(){return j?"function"===typeof j?j({arrowPointAtCenter:ce}):j:QG(ce)}),[j,ce]);if(void 0===ie||!W)return null;var de=function(){A(!1),null===d||void 0===d||d(B)},fe="boolean"===typeof ne?ne:!!ne,pe="boolean"===typeof ne?void 0:ne;return o.createElement(o.Fragment,null,o.createElement(GG,{zIndex:I,prefixCls:n,pos:re,showMask:fe,style:null===pe||void 0===pe?void 0:pe.style,fill:null===pe||void 0===pe?void 0:pe.color,open:L,animated:S,rootClassName:y,disabledInteraction:P}),o.createElement(xh,l({},R,{builtinPlacements:ue,ref:z,popupStyle:G,popupPlacement:ae,popupVisible:L,popupClassName:a()(y,U),prefixCls:n,popup:function(){return o.createElement(JG,l({arrow:le,key:"content",prefixCls:n,total:i.length,renderPanel:x,onPrev:function(){se(B-1)},onNext:function(){se(B+1)},onClose:de,current:B,onFinish:function(){de(),null===f||void 0===f||f()}},i[B],{closable:te}))},forceRender:!1,destroyPopupOnHide:!0,zIndex:I,getTriggerDOMNode:function(e){return e||ie||document.body},arrow:!!le}),o.createElement(bf,{open:L,autoLock:!0},o.createElement("div",{className:a()(y,"".concat(n,"-target-placeholder")),style:$($({},re||tY),{},{position:"fixed",pointerEvents:"none"})}))))},rY=oY;function iY(e){return void 0!==e&&null!==e}const aY=e=>{var t,n;const{stepProps:o,current:i,type:l,indicatorsRender:c}=e,{prefixCls:s,total:u=1,title:d,onClose:f,onPrev:p,onNext:m,onFinish:g,cover:v,description:h,nextButtonProps:b,prevButtonProps:y,type:C,closable:x}=o,$=null!==C&&void 0!==C?C:l,w=r().createElement("button",{type:"button",onClick:f,className:`${s}-close`},(null===x||void 0===x?void 0:x.closeIcon)||r().createElement(qi,{className:`${s}-close-icon`})),S=i===u-1,E=iY(d)?r().createElement("div",{className:`${s}-header`},r().createElement("div",{className:`${s}-title`},d)):null,k=iY(h)?r().createElement("div",{className:`${s}-description`},h):null,O=iY(v)?r().createElement("div",{className:`${s}-cover`},v):null;let I;I=c?c(i,u):Se(Array.from({length:u}).keys()).map(((e,t)=>r().createElement("span",{key:e,className:a()(t===i&&`${s}-indicator-active`,`${s}-indicator`)})));const N="primary"===$?"default":"primary",M={type:"default",ghost:"primary"===$},[j]=Es("Tour",Ac.Tour);return r().createElement("div",{className:`${s}-content`},r().createElement("div",{className:`${s}-inner`},x&&w,O,E,k,r().createElement("div",{className:`${s}-footer`},u>1&&r().createElement("div",{className:`${s}-indicators`},I),r().createElement("div",{className:`${s}-buttons`},0!==i?r().createElement(Zd,Object.assign({},M,y,{onClick:()=>{var e;null===p||void 0===p||p(),null===(e=null===y||void 0===y?void 0:y.onClick)||void 0===e||e.call(y)},size:"small",className:a()(`${s}-prev-btn`,null===y||void 0===y?void 0:y.className)}),null!==(t=null===y||void 0===y?void 0:y.children)&&void 0!==t?t:null===j||void 0===j?void 0:j.Previous):null,r().createElement(Zd,Object.assign({type:N},b,{onClick:()=>{var e;S?null===g||void 0===g||g():null===m||void 0===m||m(),null===(e=null===b||void 0===b?void 0:b.onClick)||void 0===e||e.call(b)},size:"small",className:a()(`${s}-next-btn`,null===b||void 0===b?void 0:b.className)}),null!==(n=null===b||void 0===b?void 0:b.children)&&void 0!==n?n:S?null===j||void 0===j?void 0:j.Finish:null===j||void 0===j?void 0:j.Next)))))},lY=e=>{const{componentCls:t,padding:n,paddingXS:o,borderRadius:r,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:c,indicatorWidth:s,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:m,colorTextLightSolid:g,tourBorderRadius:v,colorWhite:h,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:C,antCls:x,primaryPrevBtnBg:$}=e;return[{[t]:Object.assign(Object.assign({},Ro(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":f,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:v,boxShadow:u,position:"relative",backgroundColor:f,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Bo(e)),[`${t}-cover`]:{textAlign:"center",padding:`${Et(e.calc(n).add(y).add(o).equal())} ${Et(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${Et(n)} ${Et(n)} ${Et(o)}`,width:`calc(100% - ${Et(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${Et(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${Et(o)} ${Et(n)} ${Et(n)}`,textAlign:"end",borderRadius:`0 0 ${Et(i)} ${Et(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:s,height:c,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:r,boxShadow:u,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:$,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:$,backgroundColor:a,"&:hover":{backgroundColor:$,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:h,"&:hover":{background:b}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${C}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(v,8)}}},dC(e,"var(--antd-arrow-background-color)")]},cY=fi("Tour",(e=>{const{borderRadiusLG:t}=e,n=xo(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return[lY(n)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new Fr(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new Fr(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},sC({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),lC(e))));var sY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const uY=gv((e=>{const{prefixCls:t,current:n=0,total:r=6,className:i,style:l,type:c,closable:s,closeIcon:u}=e,d=sY(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:f}=o.useContext(Be),p=f("tour",t),[m,g,v]=cY(p),[h,b]=cm({closable:s,closeIcon:u},null,{closable:!0,closeIconRender:e=>o.isValidElement(e)?Ka(e,{className:a()(e.props.className,`${p}-close-icon`)}):e});return m(o.createElement(TC,{prefixCls:p,hashId:g,className:a()(i,`${p}-pure`,c&&`${p}-${c}`,v),style:l},o.createElement(aY,{stepProps:Object.assign(Object.assign({},d),{prefixCls:p,total:r,closable:h?{closeIcon:b}:void 0}),current:n,type:c})))}));var dY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fY=e=>{const{prefixCls:t,type:n,rootClassName:i,indicatorsRender:l,steps:c,closeIcon:s}=e,u=dY(e,["prefixCls","type","rootClassName","indicatorsRender","steps","closeIcon"]),{getPrefixCls:d,direction:f,tour:p}=(0,o.useContext)(Be),m=d("tour",t),[g,v,h]=cY(m),[,b]=ui(),y=r().useMemo((()=>null===c||void 0===c?void 0:c.map((e=>{var t;return Object.assign(Object.assign({},e),{className:a()(e.className,{[`${m}-primary`]:"primary"===(null!==(t=e.type)&&void 0!==t?t:n)})})}))),[c,n]),C=a()({[`${m}-rtl`]:"rtl"===f},v,h,i),[x,$]=tc("Tour",u.zIndex);return g(r().createElement(Ul.Provider,{value:$},r().createElement(rY,Object.assign({},u,{closeIcon:null!==s&&void 0!==s?s:null===p||void 0===p?void 0:p.closeIcon,zIndex:x,rootClassName:C,prefixCls:m,animated:!0,renderPanel:(e,t)=>r().createElement(aY,{type:n,stepProps:e,current:t,indicatorsRender:l}),builtinPlacements:e=>{var t;return gC({arrowPointAtCenter:null===(t=null===e||void 0===e?void 0:e.arrowPointAtCenter)||void 0===t||t,autoAdjustOverflow:!0,offset:b.marginXXS,arrowWidth:b.sizePopupArrow,borderRadius:b.borderRadius})},steps:y}))))};fY._InternalPanelDoNotUseOrYouWillBeFired=uY;const pY=fY,mY=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},gY=(e,t,n)=>{const r=o.useMemo((()=>(e||[]).map((e=>t?Object.assign(Object.assign({},e),{key:t(e)}):e))),[e,t]),[i,a]=o.useMemo((()=>{const e=[],t=new Array((n||[]).length),o=mY(n||[]);return r.forEach((n=>{o.has(n.key)?t[o.get(n.key)]=n:e.push(n)})),[e,t]}),[r,n,t]);return[r,i,a]},vY=[];function hY(e,t){const n=e.filter((e=>t.has(e)));return e.length===n.length?e:n}function bY(e){return Array.from(e).join(";")}const yY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const CY=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:yY}))})),xY=o.memo((e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:l,prefixCls:c,onClick:s,onRemove:u,showRemove:d}=e,f=a()(`${c}-content-item`,{[`${c}-content-item-disabled`]:l||r.disabled,[`${c}-content-item-checked`]:i});let p;"string"!==typeof t&&"number"!==typeof t||(p=String(t));const[m]=Es("Transfer",Ac.Transfer),g={className:f,title:p},v=o.createElement("span",{className:`${c}-content-item-text`},n);return d?o.createElement("li",Object.assign({},g),v,o.createElement("button",{type:"button",disabled:l||r.disabled,className:`${c}-content-item-remove`,"aria-label":null===m||void 0===m?void 0:m.remove,onClick:()=>null===u||void 0===u?void 0:u(r)},o.createElement(CY,null))):(g.onClick=l||r.disabled?void 0:e=>s(r,e),o.createElement("li",Object.assign({},g),o.createElement(AM,{className:`${c}-checkbox`,checked:i,disabled:l||r.disabled}),v))})),$Y=["handleFilter","handleClear","checkedKeys"];const wY=o.forwardRef(((e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:l,showRemove:c,pagination:s,onScroll:u,onItemSelect:d,onItemRemove:f}=e,[p,m]=o.useState(1),g=o.useMemo((()=>{if(!s)return null;return(e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e))("object"===typeof s?s:{})}),[s]),[v,h]=so(10,{value:null===g||void 0===g?void 0:g.pageSize});o.useEffect((()=>{if(g){const e=Math.ceil(r.length/v);m(Math.min(p,e))}}),[r,g,v]);const b=(e,t)=>{d(e.key,!i.includes(e.key),t)},y=e=>{null===f||void 0===f||f([e.key])},C=o.useMemo((()=>g?r.slice((p-1)*v,p*v):r),[p,r,g,v]);o.useImperativeHandle(t,(()=>({items:C})));const x=g?o.createElement(HL,{size:"small",disabled:l,simple:g.simple,pageSize:v,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:p,onChange:e=>{m(e)},onShowSizeChange:(e,t)=>{m(e),h(t)}}):null,$=a()(`${n}-content`,{[`${n}-content-show-remove`]:c});return o.createElement(o.Fragment,null,o.createElement("ul",{className:$,onScroll:u},(C||[]).map((e=>{let{renderedEl:t,renderedText:r,item:a}=e;return o.createElement(xY,{key:a.key,item:a,renderedText:r,renderedEl:t,prefixCls:n,showRemove:c,onClick:b,onRemove:y,checked:i.includes(a.key),disabled:l||a.disabled})}))),x)}));const SY=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:l}=e,c=o.useCallback((e=>{null===a||void 0===a||a(e),""===e.target.value&&(null===l||void 0===l||l())}),[a]);return o.createElement(ER,{placeholder:t,className:r,value:n,onChange:c,disabled:i,allowClear:!0,prefix:o.createElement(Oy,null)})},EY=()=>null;function kY(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const OY=e=>{const{prefixCls:t,dataSource:n=[],titleText:i="",checkedKeys:l,disabled:c,showSearch:s=!1,style:u,searchPlaceholder:d,notFoundContent:f,selectAll:p,deselectAll:m,selectCurrent:g,selectInvert:v,removeAll:h,removeCurrent:b,showSelectAll:y=!0,showRemove:C,pagination:x,direction:$,itemsUnit:w,itemUnit:S,selectAllLabel:E,selectionsIcon:k,footer:O,renderList:I,onItemSelectAll:N,onItemRemove:M,handleFilter:j,handleClear:P,filterOption:R,render:z=EY}=e,[T,B]=(0,o.useState)(""),H=(0,o.useRef)({}),D=e=>{B(e.target.value),j(e)},L=()=>{B(""),P()},A=e=>{const t=z(e),n=function(e){return!(!e||r().isValidElement(e)||"[object Object]"!==Object.prototype.toString.call(e))}(t);return{item:e,renderedEl:n?t.label:t,renderedText:n?t.value:t}},F=(0,o.useMemo)((()=>Array.isArray(f)?f["left"===$?0:1]:f),[f,$]),[W,_]=(0,o.useMemo)((()=>{const e=[],t=[];return n.forEach((n=>{const o=A(n);T&&!((e,t)=>R?R(T,t,$):e.includes(T))(o.renderedText,n)||(e.push(n),t.push(o))})),[e,t]}),[n,T]),V=(0,o.useMemo)((()=>{if(0===l.length)return"none";const e=mY(l);return W.every((t=>e.has(t.key)||!!t.disabled))?"all":"part"}),[l,W]),q=(0,o.useMemo)((()=>{const n=s?r().createElement("div",{className:`${t}-body-search-wrapper`},r().createElement(SY,{prefixCls:`${t}-search`,onChange:D,handleClear:L,placeholder:d,value:T,disabled:c})):null,{customize:o,bodyContent:i}=(e=>{let t=I?I(Object.assign(Object.assign({},e),{onItemSelect:(t,n)=>e.onItemSelect(t,n)})):null;const n=!!t;return n||(t=r().createElement(wY,Object.assign({ref:H},e))),{customize:n,bodyContent:t}})(Object.assign(Object.assign({},Ce(e,$Y)),{filteredItems:W,filteredRenderItems:_,selectedKeys:l}));let u;return u=o?r().createElement("div",{className:`${t}-body-customize-wrapper`},i):W.length?i:r().createElement("div",{className:`${t}-body-not-found`},F),r().createElement("div",{className:a()(s?`${t}-body ${t}-body-with-search`:`${t}-body`)},n,u)}),[s,t,d,T,c,l,W,_,F]),K=r().createElement(AM,{disabled:0===n.length||c,checked:"all"===V,indeterminate:"part"===V,className:`${t}-checkbox`,onChange:()=>{null===N||void 0===N||N(W.filter((e=>!e.disabled)).map((e=>{let{key:t}=e;return t})),"all"!==V)}}),X=O&&(O.length<2?O(e):O(e,{direction:$})),G=a()(t,{[`${t}-with-pagination`]:!!x,[`${t}-with-footer`]:!!X}),Y=X?r().createElement("div",{className:`${t}-footer`},X):null,U=!C&&!x&&K;let Q;Q=C?[x?{key:"removeCurrent",label:b,onClick(){var e;const t=kY(((null===(e=H.current)||void 0===e?void 0:e.items)||[]).map((e=>e.item)));null===M||void 0===M||M(t)}}:null,{key:"removeAll",label:h,onClick(){null===M||void 0===M||M(kY(W))}}].filter(Boolean):[{key:"selectAll",label:"all"===V?m:p,onClick(){const e=kY(W);null===N||void 0===N||N(e,e.length!==l.length)}},x?{key:"selectCurrent",label:g,onClick(){var e;const t=(null===(e=H.current)||void 0===e?void 0:e.items)||[];null===N||void 0===N||N(kY(t.map((e=>e.item))),!0)}}:null,{key:"selectInvert",label:v,onClick(){var e;const t=kY(((null===(e=H.current)||void 0===e?void 0:e.items)||[]).map((e=>e.item))),n=new Set(l),o=new Set(n);t.forEach((e=>{n.has(e)?o.delete(e):o.add(e)})),null===N||void 0===N||N(Array.from(o),"replace")}}];const Z=r().createElement(wB,{className:`${t}-header-dropdown`,menu:{items:Q},disabled:c},void 0!==k?k:r().createElement(Ey,null));return r().createElement("div",{className:G,style:u},r().createElement("div",{className:`${t}-header`},y?r().createElement(r().Fragment,null,U,Z):null,r().createElement("span",{className:`${t}-header-selected`},((e,t)=>{if(E)return"function"===typeof E?E({selectedCount:e,totalCount:t}):E;const n=t>1?w:S;return r().createElement(r().Fragment,null,(e>0?`${e}/`:"")+t," ",n)})(l.length,W.length)),r().createElement("span",{className:`${t}-header-title`},i)),q,Y)};const IY=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:l,rightActive:c,className:s,style:u,direction:d,oneWay:f}=e;return o.createElement("div",{className:s,style:u},o.createElement(Zd,{type:"primary",size:"small",disabled:t||!c,onClick:r,icon:"rtl"!==d?o.createElement(Du,null):o.createElement(G$,null)},a),!f&&o.createElement(Zd,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:"rtl"!==d?o.createElement(G$,null):o.createElement(Du,null)},i))},NY=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r}=e,i=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:r,minWidth:r}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},MY=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},jY=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},MY(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},MY(e,e.colorWarning))}},PY=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:s,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:g,marginXS:v,paddingSM:h,lineType:b,antCls:y,iconCls:C,motionDurationSlow:x,controlItemBgHover:$,borderRadiusLG:w,colorBgContainer:S,colorText:E,controlItemBgActiveHover:k}=e;return{display:"flex",flexDirection:"column",width:p,height:f,border:`${Et(r)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${Et(e.calc(l).sub(r).equal())} ${Et(h)} ${Et(l)}`,color:E,background:S,borderBottom:`${Et(r)} ${b} ${o}`,borderRadius:`${Et(w)} ${Et(w)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Po),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:h}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${Et(c)} ${Et(h)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Po),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},Ho(e)),{color:n,"&:hover, &:focus":{color:d}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:$,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:k}},"&-checked":{backgroundColor:s},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${Et(r)} ${b} ${o}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${Et(r)} ${b} ${o}`},"&-checkbox":{lineHeight:1}}},RY=e=>{const{antCls:t,iconCls:n,componentCls:o,marginXS:r,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return{[o]:Object.assign(Object.assign({},Ro(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:l}},[`${o}-list`]:PY(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${Et(r)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:a}}})}},zY=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},TY=fi("Transfer",(e=>{const t=xo(e);return[RY(t),NY(t),jY(t),zY(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,controlHeightLG:r,lineWidth:i}=e,a=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:r,itemHeight:o,itemPaddingBlock:(o-a)/2,transferHeaderVerticalPadding:Math.ceil((r-i-a)/2)}})),BY=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:i,selectAllLabels:l=[],operations:c=[],style:s={},listStyle:u={},locale:d={},titles:f,disabled:p,showSearch:m=!1,operationStyle:g,showSelectAll:v,oneWay:h,pagination:b,status:y,prefixCls:C,className:x,rootClassName:$,selectionsIcon:w,filterOption:S,render:E,footer:k,children:O,rowKey:I,onScroll:N,onChange:M,onSearch:j,onSelectChange:P}=e,{getPrefixCls:R,renderEmpty:z,direction:T,transfer:B}=(0,o.useContext)(Be),H=R("transfer",C),[D,L,A]=TY(H),[F,W,_]=gY(t,I,n),[V,q,K,X]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vY;const[r,i]=o.useMemo((()=>[new Set(e.map((e=>e.key))),new Set(t.map((e=>e.key)))]),[e,t]),[a,l]=o.useState((()=>hY(n,r))),[c,s]=o.useState((()=>hY(n,i)));return o.useEffect((()=>{l(hY(n,r)),s(hY(n,i))}),[n]),o.useEffect((()=>{l(hY(a,r)),s(hY(c,i))}),[bY(r),bY(i)]),[a,c,l,s]}(W,_,i),[G,Y]=Lq((e=>e.key)),[U,Q]=Lq((e=>e.key));const Z=(0,o.useCallback)(((e,t)=>{if("left"===e){const e="function"===typeof t?t(V||[]):t;K(e)}else{const e="function"===typeof t?t(q||[]):t;X(e)}}),[V,q]),J=(e,t)=>{("left"===e?Y:Q)(t)},ee=(0,o.useCallback)(((e,t)=>{"left"===e?null===P||void 0===P||P(t,q):null===P||void 0===P||P(V,t)}),[V,q]),te=e=>{const t="right"===e?V:q,o=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:o,key:r}=e;o&&t.set(r,n)})),t})(F),r=t.filter((e=>!o.has(e))),i=mY(r),a="right"===e?r.concat(n):n.filter((e=>!i.has(e))),l="right"===e?"left":"right";Z(l,[]),ee(l,[]),null===M||void 0===M||M(a,e,r)},ne=(e,t,n)=>{Z(e,(o=>{let r=[];if("replace"===n)r=t;else if(n)r=Array.from(new Set([].concat(Se(o),Se(t))));else{const e=mY(t);r=o.filter((t=>!e.has(t)))}return ee(e,r),r})),J(e,null)},oe=(t,n,o,r)=>{const i="left"===t,a=Se(i?V:q),l=new Set(a),c=Se(i?W:_).filter((e=>!(null===e||void 0===e?void 0:e.disabled))),s=c.findIndex((e=>e.key===n));r&&a.length>0?((e,t,n,o)=>{("left"===e?G:U)(o,t,n)})(t,c,l,s):((e,t,n,o,r)=>{t.has(n)&&(t.delete(n),J(e,null)),o&&(t.add(n),J(e,r))})(t,l,n,o,s);const u=Array.from(l);ee(t,u),e.selectedKeys||Z(t,u)},re=e=>"function"===typeof u?u({direction:e}):u||{},ie=(0,o.useContext)(em),{hasFeedback:ae,status:le}=ie,ce=wb(le,y),se=!O&&b,ue=q.length>0,de=V.length>0,fe=a()(H,{[`${H}-disabled`]:p,[`${H}-customize-list`]:!!O,[`${H}-rtl`]:"rtl"===T},$b(H,ce,ae),null===B||void 0===B?void 0:B.className,x,$,L,A),[pe]=Es("Transfer",Ac.Transfer),me=(ge=pe,Object.assign(Object.assign(Object.assign({},ge),{notFoundContent:(null===z||void 0===z?void 0:z("Transfer"))||r().createElement(Rb,{componentName:"Transfer"})}),d));var ge;const[ve,he]=(e=>{var t;return null!==(t=null!==f&&void 0!==f?f:e.titles)&&void 0!==t?t:[]})(me),be=null!==w&&void 0!==w?w:null===B||void 0===B?void 0:B.selectionsIcon;return D(r().createElement("div",{className:fe,style:Object.assign(Object.assign({},null===B||void 0===B?void 0:B.style),s)},r().createElement(OY,Object.assign({prefixCls:`${H}-list`,titleText:ve,dataSource:W,filterOption:S,style:re("left"),checkedKeys:V,handleFilter:e=>null===j||void 0===j?void 0:j("left",e.target.value),handleClear:()=>null===j||void 0===j?void 0:j("left",""),onItemSelect:(e,t,n)=>{oe("left",e,t,null===n||void 0===n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ne("left",e,t)},render:E,showSearch:m,renderList:O,footer:k,onScroll:e=>{null===N||void 0===N||N("left",e)},disabled:p,direction:"rtl"===T?"right":"left",showSelectAll:v,selectAllLabel:l[0],pagination:se,selectionsIcon:be},me)),r().createElement(IY,{className:`${H}-operation`,rightActive:de,rightArrowText:c[0],moveToRight:()=>{te("right"),J("right",null)},leftActive:ue,leftArrowText:c[1],moveToLeft:()=>{te("left"),J("left",null)},style:g,disabled:p,direction:T,oneWay:h}),r().createElement(OY,Object.assign({prefixCls:`${H}-list`,titleText:he,dataSource:_,filterOption:S,style:re("right"),checkedKeys:q,handleFilter:e=>null===j||void 0===j?void 0:j("right",e.target.value),handleClear:()=>null===j||void 0===j?void 0:j("right",""),onItemSelect:(e,t,n)=>{oe("right",e,t,null===n||void 0===n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ne("right",e,t)},onItemRemove:e=>{Z("right",[]),null===M||void 0===M||M(n.filter((t=>!e.includes(t))),"left",Se(e))},render:E,showSearch:m,renderList:O,footer:k,onScroll:e=>{null===N||void 0===N||N("right",e)},disabled:p,direction:"rtl"===T?"left":"right",showSelectAll:v,selectAllLabel:l[1],showRemove:h,pagination:se,selectionsIcon:be},me))))};BY.List=OY,BY.Search=SY,BY.Operation=IY;const HY=BY;const DY=function(){return null};var LY=["children","value"];function AY(e){return s(e).map((function(e){if(!o.isValidElement(e)||!e.type)return null;var t=e,n=t.key,r=t.props,i=r.children,a=$({key:n,value:r.value},Si(r,LY)),l=AY(i);return l.length&&(a.children=l),a})).filter((function(e){return e}))}function FY(e){if(!e)return e;var t=$({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return h(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function WY(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function _Y(e,t,n){return o.useMemo((function(){return e?n?function(e,t){var n=t.id,o=t.pId,r=t.rootPId,i={},a=[],l=e.map((function(e){var t=$({},e),o=t[n];return i[o]=t,t.key=t.key||o,t}));return l.forEach((function(e){var t=e[o],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&a.push(e)})),a}(e,$({id:"id",pId:"pId",rootPId:null},!0!==n?n:{})):e:AY(t)}),[t,n,e])}const VY=o.createContext(null);const qY=o.createContext(null);function KY(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}function XY(e){return null===e||void 0===e}var GY={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},YY=o.forwardRef((function(e,t){var n=Cv(),r=n.prefixCls,i=n.multiple,a=n.searchValue,c=n.toggleOpen,s=n.open,u=n.notFoundContent,d=o.useContext(qY),f=d.virtual,p=d.listHeight,m=d.listItemHeight,g=d.listItemScrollOffset,v=d.treeData,h=d.fieldNames,b=d.onSelect,y=d.dropdownMatchSelectWidth,C=d.treeExpandAction,x=d.treeTitleRender,$=d.onPopupScroll,w=o.useContext(VY),S=w.checkable,E=w.checkedKeys,k=w.halfCheckedKeys,O=w.treeExpandedKeys,N=w.treeDefaultExpandAll,M=w.treeDefaultExpandedKeys,j=w.onTreeExpand,P=w.treeIcon,R=w.showTreeIcon,z=w.switcherIcon,T=w.treeLine,B=w.treeNodeFilterProp,H=w.loadData,D=w.treeLoadedKeys,L=w.treeMotion,A=w.onTreeLoad,F=w.keyEntities,W=o.useRef(),_=I((function(){return v}),[s,v],(function(e,t){return t[0]&&e[1]!==t[1]})),V=Ae(o.useState(null),2),q=V[0],K=V[1],X=F[q],G=o.useMemo((function(){return S?{checked:E,halfChecked:k}:null}),[S,E,k]);o.useEffect((function(){var e;s&&!i&&E.length&&(null===(e=W.current)||void 0===e||e.scrollTo({key:E[0]}),K(E[0]))}),[s]);var Y=String(a).toLowerCase(),U=Ae(o.useState(M),2),Q=U[0],Z=U[1],J=Ae(o.useState(null),2),ee=J[0],te=J[1],ne=o.useMemo((function(){return O?Se(O):a?ee:Q}),[Q,ee,O,a]);o.useEffect((function(){a&&te(function(e,t){var n=[];return function e(o){o.forEach((function(o){var r=o[t.children];r&&(n.push(o[t.value]),e(r))}))}(e),n}(v,h))}),[a]);var oe=function(e){e.preventDefault()},re=function(e,t){var n=t.node;S&&KY(n)||(b(n.key,{selected:!E.includes(n.key)}),i||c(!1))};if(o.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=W.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case zl.UP:case zl.DOWN:case zl.LEFT:case zl.RIGHT:null===(t=W.current)||void 0===t||t.onKeyDown(e);break;case zl.ENTER:if(X){var n=(null===X||void 0===X?void 0:X.node)||{},o=n.selectable,r=n.value;!1!==o&&re(0,{node:{key:q},selected:!E.includes(r)})}break;case zl.ESC:c(!1)}},onKeyUp:function(){}}})),0===_.length)return o.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:oe},u);var ie={fieldNames:h};return D&&(ie.loadedKeys=D),ne&&(ie.expandedKeys=ne),o.createElement("div",{onMouseDown:oe},X&&s&&o.createElement("span",{style:GY,"aria-live":"assertive"},X.node.value),o.createElement(hK,l({ref:W,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:_,height:p,itemHeight:m,itemScrollOffset:g,virtual:!1!==f&&!1!==y,multiple:i,icon:P,showIcon:R,switcherIcon:z,showLine:T,loadData:a?null:H,motion:L,activeKey:q,checkable:S,checkStrictly:!0,checkedKeys:G,selectedKeys:S?[]:E,defaultExpandAll:N,titleRender:x},ie,{onActiveChange:K,onSelect:re,onCheck:re,onExpand:function(e){Z(e),te(e),j&&j(e)},onLoad:A,filterTreeNode:function(e){return!!Y&&String(e[B]).toLowerCase().includes(Y)},expandAction:C,onScroll:$})))}));const UY=YY;var QY="SHOW_ALL",ZY="SHOW_PARENT",JY="SHOW_CHILD";function eU(e,t,n,o){var r=new Set(e);return t===JY?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return r.has(t[o.value])}))&&t.children.every((function(e){var t=e.node;return KY(t)||r.has(t[o.value])})))})):t===ZY?e.filter((function(e){var t=n[e],o=t?t.parent:null;return!(o&&!KY(o.node)&&r.has(o.key))})):e}var tU=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];var nU=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tree-select":r,a=e.value,c=e.defaultValue,s=e.onChange,u=e.onSelect,d=e.onDeselect,f=e.searchValue,p=e.inputValue,m=e.onSearch,g=e.autoClearSearchValue,v=void 0===g||g,y=e.filterTreeNode,x=e.treeNodeFilterProp,w=void 0===x?"value":x,S=e.showCheckedStrategy,E=e.treeNodeLabelProp,k=e.multiple,O=e.treeCheckable,I=e.treeCheckStrictly,N=e.labelInValue,M=e.fieldNames,j=e.treeDataSimpleMode,P=e.treeData,R=e.children,z=e.loadData,T=e.treeLoadedKeys,B=e.onTreeLoad,H=e.treeDefaultExpandAll,D=e.treeExpandedKeys,L=e.treeDefaultExpandedKeys,A=e.onTreeExpand,F=e.treeExpandAction,W=e.virtual,_=e.listHeight,V=void 0===_?200:_,q=e.listItemHeight,K=void 0===q?20:q,X=e.listItemScrollOffset,G=void 0===X?0:X,Y=e.onDropdownVisibleChange,U=e.dropdownMatchSelectWidth,Q=void 0===U||U,Z=e.treeLine,J=e.treeIcon,ee=e.showTreeIcon,te=e.switcherIcon,ne=e.treeMotion,oe=e.treeTitleRender,re=e.onPopupScroll,ie=Si(e,tU),ae=db(n),le=O&&!I,ce=O||I,se=I||N,ue=ce||k,de=Ae(so(c,{value:a}),2),fe=de[0],pe=de[1],me=o.useMemo((function(){return O?S||JY:QY}),[S,O]);var ge=o.useMemo((function(){return function(e){var t=e||{},n=t.label,o=t.value||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:t.children||"children"}}(M)}),[JSON.stringify(M)]),ve=Ae(so("",{value:void 0!==f?f:p,postState:function(e){return e||""}}),2),he=ve[0],be=ve[1],ye=_Y(P,R,j),Ce=function(e,t){return o.useMemo((function(){var n=_N(e,{fieldNames:t,initWrapper:function(e){return $($({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var o=e.node[t.value];n.valueEntities.set(o,e)}});return n}),[e,t])}(ye,ge),xe=Ce.keyEntities,$e=Ce.valueEntities,we=o.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){$e.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[$e]),Ee=function(e,t,n){var r=n.treeNodeFilterProp,i=n.filterTreeNode,a=n.fieldNames.children;return o.useMemo((function(){if(!t||!1===i)return e;var n;if("function"===typeof i)n=i;else{var o=t.toUpperCase();n=function(e,t){var n=t[r];return String(n).toUpperCase().includes(o)}}return function e(o){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.reduce((function(o,i){var l=i[a],c=r||n(t,FY(i)),s=e(l||[],c);return(c||s.length)&&o.push($($({},i),{},C({isLeaf:void 0},a,s))),o}),[])}(e)}),[e,t,a,r,i])}(ye,he,{fieldNames:ge,treeNodeFilterProp:w,filterTreeNode:y}),ke=o.useCallback((function(e){if(e){if(E)return e[E];for(var t=ge._title,n=0;n<t.length;n+=1){var o=e[t[n]];if(void 0!==o)return o}}}),[ge,E]),Oe=o.useCallback((function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map((function(e){return function(e){return!e||"object"!==b(e)}(e)?{value:e}:e}))}),[]),Ie=o.useCallback((function(e){return Oe(e).map((function(e){var t,n,o=e.label,r=e.value,i=e.halfChecked,a=$e.get(r);if(a)o=oe?oe(a.node):null!==(n=o)&&void 0!==n?n:ke(a.node),t=a.node.disabled;else if(void 0===o){o=Oe(fe).find((function(e){return e.value===r})).label}return{label:o,value:r,halfChecked:i,disabled:t}}))}),[$e,ke,Oe,fe]),Ne=o.useMemo((function(){return Oe(null===fe?[]:fe)}),[Oe,fe]),Me=Ae(o.useMemo((function(){var e=[],t=[];return Ne.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),[e,t]}),[Ne]),2),je=Me[0],Pe=Me[1],Re=o.useMemo((function(){return je.map((function(e){return e.value}))}),[je]),ze=function(e,t,n,r){return o.useMemo((function(){var o=e.map((function(e){return e.value})),i=t.map((function(e){return e.value})),a=o.filter((function(e){return!r[e]}));if(n){var l=YN(o,!0,r);o=l.checkedKeys,i=l.halfCheckedKeys}return[Array.from(new Set([].concat(Se(a),Se(o)))),i]}),[e,t,n,r])}(je,Pe,le,xe),Te=Ae(ze,2),Be=Te[0],He=Te[1],De=function(e){var t=o.useRef({valueLabels:new Map});return o.useMemo((function(){var n=t.current.valueLabels,o=new Map,r=e.map((function(e){var t,r=e.value,i=null!==(t=e.label)&&void 0!==t?t:n.get(r);return o.set(r,i),$($({},e),{},{label:i})}));return t.current.valueLabels=o,[r]}),[e])}(o.useMemo((function(){var e=eU(Be,me,xe,ge).map((function(e){var t,n;return null!==(t=null===(n=xe[e])||void 0===n||null===(n=n.node)||void 0===n?void 0:n[ge.value])&&void 0!==t?t:e})).map((function(e){var t=je.find((function(t){return t.value===e})),n=N?null===t||void 0===t?void 0:t.label:null===oe||void 0===oe?void 0:oe(t);return{value:e,label:n}})),t=Ie(e),n=t[0];return!ue&&n&&XY(n.value)&&XY(n.label)?[]:t.map((function(e){var t;return $($({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[ge,ue,Be,je,Ie,me,xe])),Le=Ae(De,1)[0],Fe=WY((function(e,t,n){var r=Ie(e);if(pe(r),v&&be(""),s){var i=e;if(le){var a=eU(e,me,xe,ge);i=a.map((function(e){var t=$e.get(e);return t?t.node[ge.value]:e}))}var l=t||{triggerValue:void 0,selected:void 0},c=l.triggerValue,u=l.selected,d=i;if(I){var f=Pe.filter((function(e){return!i.includes(e.value)}));d=[].concat(Se(d),Se(f))}var p=Ie(d),m={preValue:je,triggerValue:c},g=!0;(I||"selection"===n&&!u)&&(g=!1),function(e,t,n,r,i,a){var l=null,c=null;function s(){c||(c=[],function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,u){var d="".concat(i,"-").concat(u),f=r[a.value],p=n.includes(f),m=e(r[a.children]||[],d,p),g=o.createElement(DY,r,m.map((function(e){return e.node})));if(t===f&&(l=g),p){var v={pos:d,node:g,children:m};return s||c.push(v),v}return null})).filter((function(e){return e}))}(r),c.sort((function(e,t){var o=e.node.props.value,r=t.node.props.value;return n.indexOf(o)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:function(){return h(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),l}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return h(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),i?c:c.map((function(e){return e.node}))}})}(m,c,e,ye,g,ge),ce?m.checked=u:m.selected=u;var b=se?p:p.map((function(e){return e.value}));s(ue?b:b[0],se?null:p.map((function(e){return e.label})),m)}})),We=o.useCallback((function(e,t){var n,o=t.selected,r=t.source,i=xe[e],a=null===i||void 0===i?void 0:i.node,l=null!==(n=null===a||void 0===a?void 0:a[ge.value])&&void 0!==n?n:e;if(ue){var c=o?[].concat(Se(Re),[l]):Be.filter((function(e){return e!==l}));if(le){var s,f=we(c),p=f.missingRawValues,m=f.existRawValues.map((function(e){return $e.get(e).key}));if(o)s=YN(m,!0,xe).checkedKeys;else s=YN(m,{checked:!1,halfCheckedKeys:He},xe).checkedKeys;c=[].concat(Se(p),Se(s.map((function(e){return xe[e].node[ge.value]}))))}Fe(c,{selected:o,triggerValue:l},r||"option")}else Fe([l],{selected:!0,triggerValue:l},"option");o||!ue?null===u||void 0===u||u(l,FY(a)):null===d||void 0===d||d(l,FY(a))}),[we,$e,xe,ge,ue,Re,Fe,le,u,d,Be,He]),_e=o.useCallback((function(e){if(Y){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return h(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Y(e,t)}}),[Y]),Ve=WY((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&We(t.values[0].value,{selected:!1,source:"selection"}):Fe(n,{},"selection")})),qe=o.useMemo((function(){return{virtual:W,dropdownMatchSelectWidth:Q,listHeight:V,listItemHeight:K,listItemScrollOffset:G,treeData:Ee,fieldNames:ge,onSelect:We,treeExpandAction:F,treeTitleRender:oe,onPopupScroll:re}}),[W,Q,V,K,G,Ee,ge,We,F,oe,re]),Ke=o.useMemo((function(){return{checkable:ce,loadData:z,treeLoadedKeys:T,onTreeLoad:B,checkedKeys:Be,halfCheckedKeys:He,treeDefaultExpandAll:H,treeExpandedKeys:D,treeDefaultExpandedKeys:L,onTreeExpand:A,treeIcon:J,treeMotion:ne,showTreeIcon:ee,switcherIcon:te,treeLine:Z,treeNodeFilterProp:w,keyEntities:xe}}),[ce,z,T,B,Be,He,H,D,L,A,J,ne,ee,te,Z,w,xe]);return o.createElement(qY.Provider,{value:qe},o.createElement(VY.Provider,{value:Ke},o.createElement(Th,l({ref:t},ie,{id:ae,prefixCls:i,mode:ue?"multiple":void 0,displayValues:Le,onDisplayValuesChange:Ve,searchValue:he,onSearch:function(e){be(e),null===m||void 0===m||m(e)},OptionList:UY,emptyOptions:!ye.length,onDropdownVisibleChange:_e,dropdownMatchSelectWidth:Q}))))}));var oU=nU;oU.TreeNode=DY,oU.SHOW_ALL=QY,oU.SHOW_PARENT=ZY,oU.SHOW_CHILD=JY;const rU=oU,iU=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Et(e.paddingXS)} ${Et(e.calc(e.paddingXS).div(2).equal())}`},jK(n,xo(e,{colorBgContainer:o})),{[r]:{borderRadius:0,[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},hM(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};var aU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lU=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,size:i,disabled:l,bordered:c=!0,className:s,rootClassName:u,treeCheckable:d,multiple:f,listHeight:p=256,listItemHeight:m=26,placement:g,notFoundContent:v,switcherIcon:h,treeLine:b,getPopupContainer:y,popupClassName:C,dropdownClassName:x,treeIcon:$=!1,transitionName:w,choiceTransitionName:S="",status:E,treeExpandAction:k,builtinPlacements:O,dropdownMatchSelectWidth:I,popupMatchSelectWidth:N,allowClear:M,variant:j,dropdownStyle:P,tagRender:R}=e,z=aU(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:T,getPrefixCls:B,renderEmpty:H,direction:D,virtual:L,popupMatchSelectWidth:A,popupOverflow:F}=o.useContext(Be);const W=B(),_=B("select",r),V=B("select-tree",r),q=B("tree-select",r),{compactSize:K,compactItemClassnames:X}=_s(_,D),G=bl(_),Y=bl(q),[U,Q,Z]=xy(_,G),[J]=function(e,t,n){return fi("TreeSelect",(e=>{const n=xo(e,{treePrefixCls:t});return[iU(n)]}),PK)(e,n)}(q,V,Y),[ee,te]=zb("treeSelect",j,c),ne=a()(C||x,`${q}-dropdown`,{[`${q}-dropdown-rtl`]:"rtl"===D},u,Z,G,Y,Q),oe=!(!d&&!f),re=Ny(e.suffixIcon,e.showArrow),ie=null!==(n=null!==N&&void 0!==N?N:I)&&void 0!==n?n:A,{status:ae,hasFeedback:le,isFormItemInput:ce,feedbackIcon:se}=o.useContext(em),ue=wb(ae,E),{suffixIcon:de,removeIcon:fe,clearIcon:pe}=Iy(Object.assign(Object.assign({},z),{multiple:oe,showSuffixIcon:re,hasFeedback:le,feedbackIcon:se,prefixCls:_,componentName:"TreeSelect"})),me=!0===M?{clearIcon:pe}:M;let ge;ge=void 0!==v?v:(null===H||void 0===H?void 0:H("Select"))||o.createElement(Rb,{componentName:"Select"});const ve=Ce(z,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),he=o.useMemo((()=>void 0!==g?g:"rtl"===D?"bottomRight":"bottomLeft"),[g,D]),be=Bs((e=>{var t;return null!==(t=null!==i&&void 0!==i?i:K)&&void 0!==t?t:e})),ye=o.useContext(Qc),xe=null!==l&&void 0!==l?l:ye,$e=a()(!r&&q,{[`${_}-lg`]:"large"===be,[`${_}-sm`]:"small"===be,[`${_}-rtl`]:"rtl"===D,[`${_}-${ee}`]:te,[`${_}-in-form-item`]:ce},$b(_,ue,le),X,s,u,Z,G,Y,Q),[we]=tc("SelectLike",null===P||void 0===P?void 0:P.zIndex);return U(J(o.createElement(rU,Object.assign({virtual:L,disabled:xe},ve,{dropdownMatchSelectWidth:ie,builtinPlacements:Tb(O,F),ref:t,prefixCls:_,className:$e,listHeight:p,listItemHeight:m,treeCheckable:d?o.createElement("span",{className:`${_}-tree-checkbox-inner`}):d,treeLine:!!b,suffixIcon:de,multiple:oe,placement:he,removeIcon:fe,allowClear:me,switcherIcon:e=>o.createElement(FK,{prefixCls:V,switcherIcon:h,treeNodeProps:e,showLine:b}),showTreeIcon:$,notFoundContent:ge,getPopupContainer:y||T,treeMotion:null,dropdownClassName:ne,dropdownStyle:Object.assign(Object.assign({},P),{zIndex:we}),choiceTransitionName:ws(W,"",S),transitionName:ws(W,"slide-up",w),treeExpandAction:k,tagRender:oe?R:void 0}))))})),cU=lU,sU=vv(cU);cU.TreeNode=DY,cU.SHOW_ALL=QY,cU.SHOW_PARENT=ZY,cU.SHOW_CHILD=JY,cU._InternalPanelDoNotUseOrYouWillBeFired=sU;const uU=cU;const dU={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"};const fU=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:dU}))}));const pU={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"};const mU=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:pU}))})),gU=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},vU=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Ho(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},hU=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:gr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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}}),bU=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${Et(o)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},yU=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),CU=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},gU(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),hU(e)),vU(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Ho(e)),{marginInlineStart:e.marginXXS})}),bU(e)),yU(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},xU=fi("Typography",(e=>[CU(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),$U=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:c,autoSize:s=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:m,enterIcon:g=o.createElement(mU,null)}=e,v=o.useRef(null),h=o.useRef(!1),b=o.useRef(),[y,C]=o.useState(u);o.useEffect((()=>{C(u)}),[u]),o.useEffect((()=>{var e;if(null===(e=v.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{d(y.trim())},[$,w,S]=xU(t),E=a()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l,[`${t}-${m}`]:!!m},r,w,S);return $(o.createElement("div",{className:E,style:i},o.createElement(wR,{ref:v,maxLength:c,value:y,onChange:e=>{let{target:t}=e;C(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;h.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||h.current||n||o||r||i||(t===zl.ENTER?(x(),null===p||void 0===p||p()):t===zl.ESC&&f())},onCompositionStart:()=>{h.current=!0},onCompositionEnd:()=>{h.current=!1},onBlur:()=>{x()},"aria-label":n,rows:1,autoSize:s}),null!==g?Ka(g,{className:`${t}-edit-content-confirm`}):null))};var wU=n(75270),SU=n.n(wU),EU=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(sl){i(sl)}}function l(e){try{c(o.throw(e))}catch(sl){i(sl)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((o=o.apply(e,t||[])).next())}))};const kU=e=>{let{copyConfig:t,children:n}=e;const[r,i]=o.useState(!1),[a,l]=o.useState(!1),c=o.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};t.format&&(u.format=t.format),o.useEffect((()=>s),[]);const d=ao((e=>EU(void 0,void 0,void 0,(function*(){var o;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),l(!0);try{const r="function"===typeof t.text?yield t.text():t.text;SU()(r||EA(n,!0).join("")||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(o=t.onCopy)||void 0===o||o.call(t,e)}catch(r){throw l(!1),r}}))));return{copied:r,copyLoading:a,onClick:d}};function OU(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"===typeof e?e:null)]}),[e])}const IU=e=>{const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e})),t.current},NU=(e,t,n)=>(0,o.useMemo)((()=>!0===e?{title:null!==t&&void 0!==t?t:n}:(0,o.isValidElement)(e)?{title:e}:"object"===typeof e?Object.assign({title:null!==t&&void 0!==t?t:n},e):{title:e}),[e,t,n]);var MU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jU=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:c,children:s,direction:u,style:d}=e,f=MU(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:m,typography:g}=o.useContext(Be),v=null!==u&&void 0!==u?u:m,h=c?M(t,c):t,b=p("typography",n);const[y,C,x]=xU(b),$=a()(b,null===g||void 0===g?void 0:g.className,{[`${b}-rtl`]:"rtl"===v},i,l,C,x),w=Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),d);return y(o.createElement(r,Object.assign({className:$,style:w,ref:h},f),s))}));const PU=jU;const RU={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"};const zU=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:RU}))}));function TU(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function BU(e,t,n){return!0===e||void 0===e?t:e||n&&t}const HU=e=>["string","number"].includes(typeof e),DU=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:l,icon:c,tabIndex:s,onCopy:u,loading:d}=e;const f=TU(l),p=TU(c),{copied:m,copy:g}=null!==r&&void 0!==r?r:{},v=n?m:g,h=BU(f[n?1:0],v),b="string"===typeof h?h:v;return o.createElement(NC,{title:h},o.createElement("button",{type:"button",className:a()(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:u,"aria-label":b,tabIndex:s},n?BU(p[1],o.createElement(wy,null),!0):BU(p[0],d?o.createElement(Yl,null):o.createElement(zU,null),!0)))},LU=o.forwardRef(((e,t)=>{let{style:n,children:r}=e;const i=o.useRef(null);return o.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),o.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}));function AU(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(HU(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const FU=0,WU=4,_U={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function VU(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:u}=e,d=o.useMemo((()=>s(r)),[r]),f=o.useMemo((()=>(e=>e.reduce(((e,t)=>e+(HU(t)?String(t).length:1)),0))(d)),[r]),p=o.useMemo((()=>i(d,!1)),[r]),[m,g]=o.useState(null),v=o.useRef(null),h=o.useRef(null),b=o.useRef(null),y=o.useRef(null),C=o.useRef(null),[x,$]=o.useState(!1),[w,S]=o.useState(FU),[E,k]=o.useState(0),[O,I]=o.useState(null);Rt((()=>{S(t&&n&&f?1:FU)}),[n,r,a,t,d]),Rt((()=>{var e,t,n,o;if(1===w){S(2);const e=h.current&&getComputedStyle(h.current).whiteSpace;I(e)}else if(2===w){const r=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());S(r?3:WU),g(r?[0,f]:null),$(r);const i=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(o=C.current)||void 0===o?void 0:o.getHeight())||0,s=Math.max(i,l+c);k(s+1),u(r)}}),[w]);const N=m?Math.ceil((m[0]+m[1])/2):0;Rt((()=>{var e;const[t,n]=m||[0,0];if(t!==n){const o=((null===(e=v.current)||void 0===e?void 0:e.getHeight())||0)>E;let r=N;n-t===1&&(r=o?t:n),g(o?[t,r]:[r,n])}}),[m,N]);const M=o.useMemo((()=>{if(!t)return i(d,!1);if(3!==w||!m||m[0]!==m[1]){const e=i(d,!1);return[WU,FU].includes(w)?e:o.createElement("span",{style:Object.assign(Object.assign({},_U),{WebkitLineClamp:a})},e)}return i(l?d:AU(d,m[0]),x)}),[l,w,m,d].concat(Se(c))),j={width:n,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return o.createElement(o.Fragment,null,M,2===w&&o.createElement(o.Fragment,null,o.createElement(LU,{style:Object.assign(Object.assign(Object.assign({},j),_U),{WebkitLineClamp:a}),ref:b},p),o.createElement(LU,{style:Object.assign(Object.assign(Object.assign({},j),_U),{WebkitLineClamp:a-1}),ref:y},p),o.createElement(LU,{style:Object.assign(Object.assign(Object.assign({},j),_U),{WebkitLineClamp:1}),ref:C},i([],!0))),3===w&&m&&m[0]!==m[1]&&o.createElement(LU,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},i(AU(d,N),!0)),1===w&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const qU=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null===i||void 0===i?void 0:i.title)&&t?o.createElement(NC,Object.assign({open:!!n&&void 0},i),r):r};var KU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XU=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,className:i,style:l,type:c,disabled:u,children:d,ellipsis:f,editable:p,copyable:m,component:g,title:v}=e,h=KU(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=o.useContext(Be),[C]=Es("Text"),x=o.useRef(null),$=o.useRef(null),w=b("typography",r),S=Ce(h,["mark","code","delete","underline","strong","keyboard","italic"]),[E,k]=OU(p),[O,I]=so(!1,{value:k.editing}),{triggerType:N=["icon"]}=k,j=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),I(e)},P=IU(O);Rt((()=>{var e;!O&&P&&(null===(e=$.current)||void 0===e||e.focus())}),[O]);const R=e=>{null===e||void 0===e||e.preventDefault(),j(!0)},z=e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),j(!1)},T=()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),j(!1)},[B,H]=OU(m),{copied:D,copyLoading:L,onClick:A}=kU({copyConfig:H,children:d}),[F,W]=o.useState(!1),[_,V]=o.useState(!1),[q,K]=o.useState(!1),[X,G]=o.useState(!1),[Y,U]=o.useState(!0),[Q,Z]=OU(f,{expandable:!1,symbol:e=>e?null===C||void 0===C?void 0:C.collapse:null===C||void 0===C?void 0:C.expand}),[J,ee]=so(Z.defaultExpanded||!1,{value:Z.expanded}),te=Q&&(!J||"collapsible"===Z.expandable),{rows:ne=1}=Z,oe=o.useMemo((()=>te&&(void 0!==Z.suffix||Z.onEllipsis||Z.expandable||E||B)),[te,Z,E,B]);Rt((()=>{Q&&!oe&&(W(CV("webkitLineClamp")),V(CV("textOverflow")))}),[oe,Q]);const[re,ie]=o.useState(te),ae=o.useMemo((()=>!oe&&(1===ne?_:F)),[oe,_,F]);Rt((()=>{ie(ae&&te)}),[ae,te]);const le=te&&(re?X:q),ce=te&&1===ne&&re,se=te&&ne>1&&re,[ue,de]=o.useState(0),fe=e=>{var t;K(e),q!==e&&(null===(t=Z.onEllipsis)||void 0===t||t.call(Z,e))};o.useEffect((()=>{const e=x.current;if(Q&&re&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);X!==t&&G(t)}}),[Q,re,d,se,Y,ue]),o.useEffect((()=>{const e=x.current;if("undefined"===typeof IntersectionObserver||!e||!re||!te)return;const t=new IntersectionObserver((()=>{U(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[re,te]);const pe=NU(Z.tooltip,k.text,d),me=o.useMemo((()=>{if(Q&&!re)return[k.text,d,v,pe.title].find(HU)}),[Q,re,v,pe.title,le]);if(O)return o.createElement($U,{value:null!==(n=k.text)&&void 0!==n?n:"string"===typeof d?d:"",onSave:z,onCancel:T,onEnd:k.onEnd,prefixCls:w,className:i,style:l,direction:y,component:g,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const ge=()=>{const{expandable:e,symbol:t}=Z;return e?o.createElement("button",{type:"button",key:"expand",className:`${w}-${J?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;ee(t.expanded),null===(n=Z.onExpand)||void 0===n||n.call(Z,e,t)})(e,{expanded:!J}),"aria-label":J?C.collapse:null===C||void 0===C?void 0:C.expand},"function"===typeof t?t(J):t):null},ve=()=>{if(!E)return;const{icon:e,tooltip:t,tabIndex:n}=k,r=s(t)[0]||(null===C||void 0===C?void 0:C.edit),i="string"===typeof r?r:"";return N.includes("icon")?o.createElement(NC,{key:"edit",title:!1===t?"":r},o.createElement("button",{type:"button",ref:$,className:`${w}-edit`,onClick:R,"aria-label":i,tabIndex:n},e||o.createElement(fU,{role:"button"}))):null},he=e=>[e&&ge(),ve(),B?o.createElement(DU,Object.assign({key:"copy"},H,{prefixCls:w,copied:D,locale:C,onCopy:A,loading:L,iconOnly:null===d||void 0===d})):null];return o.createElement(ye,{onResize:e=>{let{offsetWidth:t}=e;de(t)},disabled:!te},(n=>o.createElement(qU,{tooltipProps:pe,enableEllipsis:te,isEllipsis:le},o.createElement(PU,Object.assign({className:a()({[`${w}-${c}`]:c,[`${w}-disabled`]:u,[`${w}-ellipsis`]:Q,[`${w}-ellipsis-single-line`]:ce,[`${w}-ellipsis-multiple-line`]:se},i),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:se?ne:void 0}),component:g,ref:M(n,x,t),direction:y,onClick:N.includes("text")?R:void 0,"aria-label":null===me||void 0===me?void 0:me.toString(),title:v},S),o.createElement(VU,{enableMeasure:te&&!re,text:d,rows:ne,width:ue,onEllipsis:fe,expanded:J,miscDeps:[D,J,L,E,B]},((t,n)=>function(e,t){let{mark:n,code:r,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=o.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",r),d("mark",n),d("kbd",c),d("i",s),u}(e,o.createElement(o.Fragment,null,t.length>0&&n&&!J&&me?o.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!J&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Z.suffix,he(e)])(n)))))))))})),GU=XU;var YU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const UU=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,i=YU(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,o.createElement(GU,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),QU=UU,ZU=o.forwardRef(((e,t)=>o.createElement(GU,Object.assign({ref:t},e,{component:"div"}))));var JU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const eQ=o.forwardRef(((e,t)=>{var{ellipsis:n}=e,r=JU(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"===typeof n?Ce(n,["expandable","rows"]):n),[n]);return o.createElement(GU,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))}));var tQ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nQ=[1,2,3,4,5],oQ=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=tQ(e,["level"]);const i=nQ.includes(n)?`h${n}`:"h1";return o.createElement(GU,Object.assign({ref:t},r,{component:i}))})),rQ=PU;rQ.Text=eQ,rQ.Link=QU,rQ.Title=oQ,rQ.Paragraph=ZU;const iQ=rQ,aQ=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=o.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&(h(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function lQ(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(sl){return t}}function cQ(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var o=e.data[t];Array.isArray(o)?o.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,o)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),lQ(t)):e.onSuccess(lQ(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((function(e){null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort:function(){t.abort()}}}var sQ=function(){var e=yc(hc().mark((function e(t,n){var o,r,i,a,l,c,s,u;return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=yc(hc().mark((function e(t){return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(o){n(o)?(t.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),e(o)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return a=yc(hc().mark((function e(t){var n,o,r,i,a;return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),o=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(r=e.sent,i=r.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)o.push(r[a]);e.next=2;break;case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)},i=function(e){return a.apply(this,arguments)},o=[],r=[],t.forEach((function(e){return r.push(e.webkitGetAsEntry())})),s=function(){var e=yc(hc().mark((function e(t,n){var a,c;return hc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&o.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:c=e.sent,r.push.apply(r,Se(c));case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<r.length)){e.next=15;break}return e.next=12,s(r[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();const uQ=sQ;var dQ=+new Date,fQ=0;function pQ(){return"rc-upload-".concat(dQ,"-").concat(++fQ)}var mQ=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],gQ=function(e){se(n,e);var t=me(n);function n(){var e;ie(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return C(fe(e=t.call.apply(t,[this].concat(r))),"state",{uid:pQ()}),C(fe(e),"reqs",{}),C(fe(e),"fileInput",void 0),C(fe(e),"_isMounted",void 0),C(fe(e),"onChange",(function(t){var n=e.props,o=n.accept,r=n.directory,i=Se(t.target.files).filter((function(e){return!r||aQ(e,o)}));e.uploadFiles(i),e.reset()})),C(fe(e),"onClick",(function(t){var n=e.fileInput;if(n){var o=t.target,r=e.props.onClick;if(o&&"BUTTON"===o.tagName)n.parentNode.focus(),o.blur();n.click(),r&&r(t)}})),C(fe(e),"onKeyDown",(function(t){"Enter"===t.key&&e.onClick(t)})),C(fe(e),"onFileDrop",function(){var t=yc(hc().mark((function t(n){var o,r,i;return hc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.multiple,n.preventDefault(),"dragover"!==n.type){t.next=4;break}return t.abrupt("return");case 4:if(!e.props.directory){t.next=11;break}return t.next=7,uQ(Array.prototype.slice.call(n.dataTransfer.items),(function(t){return aQ(t,e.props.accept)}));case 7:r=t.sent,e.uploadFiles(r),t.next=14;break;case 11:i=Se(n.dataTransfer.files).filter((function(t){return aQ(t,e.props.accept)})),!1===o&&(i=i.slice(0,1)),e.uploadFiles(i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),C(fe(e),"uploadFiles",(function(t){var n=Se(t),o=n.map((function(t){return t.uid=pQ(),e.processFile(t,n)}));Promise.all(o).then((function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))})),C(fe(e),"processFile",function(){var t=yc(hc().mark((function t(n,o){var r,i,a,l,c,s,u,d,f;return hc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.beforeUpload,i=n,!r){t.next=14;break}return t.prev=3,t.next=6,r(n,o);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!==typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==b(i)&&"string"!==typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(f=d).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:f,action:l});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}()),C(fe(e),"saveFileInput",(function(t){e.fileInput=t})),e}return le(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,o=e.origin,r=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,d=a.withCredentials,f=a.method,p=o.uid,m=c||cQ,g={action:r,filename:s,data:n,file:i,headers:u,withCredentials:d,method:f||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,i)},onSuccess:function(e,n){var o=t.props.onSuccess;null===o||void 0===o||o(e,i,n),delete t.reqs[p]},onError:function(e,n){var o=t.props.onError;null===o||void 0===o||o(e,n,i),delete t.reqs[p]}};l(o),this.reqs[p]=m(g)}}},{key:"reset",value:function(){this.setState({uid:pQ()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,o=e.className,i=e.classNames,c=void 0===i?{}:i,s=e.disabled,u=e.id,d=e.name,f=e.style,p=e.styles,m=void 0===p?{}:p,g=e.multiple,v=e.accept,h=e.capture,b=e.children,y=e.directory,x=e.openFileDialogOnClick,w=e.onMouseEnter,S=e.onMouseLeave,E=e.hasControlInside,k=Si(e,mQ),O=a()(C(C(C({},n,!0),"".concat(n,"-disabled"),s),o,o)),I=y?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},N=s?{}:{onClick:x?this.onClick:function(){},onKeyDown:x?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:S,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:E?void 0:"0"};return r().createElement(t,l({},N,{className:O,role:E?void 0:"button",style:f}),r().createElement("input",l({},_a(k,{aria:!0,data:!0}),{id:u,name:d,disabled:s,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:$({display:"none"},m.input),className:c.input,accept:v},I,{multiple:g,onChange:this.onChange},null!=h?{capture:h}:{})),b)}}]),n}(o.Component);const vQ=gQ;function hQ(){}var bQ=function(e){se(n,e);var t=me(n);function n(){var e;ie(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return C(fe(e=t.call.apply(t,[this].concat(r))),"uploader",void 0),C(fe(e),"saveUploader",(function(t){e.uploader=t})),e}return le(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return r().createElement(vQ,l({},this.props,{ref:this.saveUploader}))}}]),n}(o.Component);C(bQ,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:hQ,onError:hQ,onSuccess:hQ,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const yQ=bQ,CQ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Et(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Et(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Et(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},xQ=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},Po),{padding:`0 ${Et(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[s]:{opacity:0},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[c]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$Q=e=>{const{componentCls:t}=e,n=new Yn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new Yn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:n},[`${r}-leave`]:{animationName:o}}},{[`${t}-wrapper`]:Gm(e)},n,o]},wQ=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(o).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Po),{width:o,height:o,lineHeight:Et(i(o).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${Et(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(o).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${Cr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Cr.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},SQ=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Et(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Et(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Et(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:o,margin:`0 ${Et(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Et(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Et(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},EQ=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},kQ=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ro(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},OQ=fi("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:o,controlHeightLG:r,calc:i}=e,a=xo(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(o).equal(),uploadPicCardSize:i(r).mul(2.55).equal()});return[kQ(a),CQ(a),wQ(a),SQ(a),xQ(a),$Q(a),EQ(a),Qu(a)]}),(e=>({actionsColor:e.colorTextDescription})));const IQ={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};const NQ=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:IQ}))}));const MQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const jQ=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:MQ}))}));const PQ={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};const RQ=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:PQ}))}));function zQ(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function TQ(e,t){const n=Se(t),o=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function BQ(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const HQ=e=>0===e.indexOf("image/"),DQ=e=>{if(e.type&&!e.thumbUrl)return HQ(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},LQ=200;function AQ(e){return new Promise((t=>{if(!e.type||!HQ(e.type))return void t("");const n=document.createElement("canvas");n.width=LQ,n.height=LQ,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let a=LQ,l=LQ,c=0,s=0;e>i?(l=i*(LQ/e),s=-(l-a)/2):(a=e*(LQ/i),c=-(a-l)/2),o.drawImage(r,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(r.src),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"===typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))}const FQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const WQ=o.forwardRef((function(e,t){return o.createElement(Ai,l({},e,{ref:t,icon:FQ}))})),_Q=o.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:i,locale:l,listType:c,file:s,items:u,progress:d,iconRender:f,actionIconRender:p,itemRender:m,isImgUrl:g,showPreviewIcon:v,showRemoveIcon:h,showDownloadIcon:b,previewIcon:y,removeIcon:C,downloadIcon:x,extra:$,onPreview:w,onDownload:S,onClose:E}=e;var k,O;const{status:I}=s,[N,M]=o.useState(I);o.useEffect((()=>{"removed"!==I&&M(I)}),[I]);const[j,P]=o.useState(!1);o.useEffect((()=>{const e=setTimeout((()=>{P(!0)}),300);return()=>{clearTimeout(e)}}),[]);const R=f(s);let z=o.createElement("div",{className:`${n}-icon`},R);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===N||!s.thumbUrl&&!s.url){const e=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==N});z=o.createElement("div",{className:e},R)}else{const e=(null===g||void 0===g?void 0:g(s))?o.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):R,t=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});z=o.createElement("a",{className:t,onClick:e=>w(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const T=a()(`${n}-list-item`,`${n}-list-item-${N}`),B="string"===typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,H=("function"===typeof h?h(s):h)?p(("function"===typeof C?C(s):C)||o.createElement(CY,null),(()=>E(s)),n,l.removeFile,!0):null,D=("function"===typeof b?b(s):b)&&"done"===N?p(("function"===typeof x?x(s):x)||o.createElement(WQ,null),(()=>S(s)),n,l.downloadFile):null,L="picture-card"!==c&&"picture-circle"!==c&&o.createElement("span",{key:"download-delete",className:a()(`${n}-list-item-actions`,{picture:"picture"===c})},D,H),A="function"===typeof $?$(s):$,F=A&&o.createElement("span",{className:`${n}-list-item-extra`},A),W=a()(`${n}-list-item-name`),_=s.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:s.name},B,{href:s.url,onClick:e=>w(s,e)}),s.name,F):o.createElement("span",{key:"view",className:W,onClick:e=>w(s,e),title:s.name},s.name,F),V=("function"===typeof v?v(s):v)&&(s.url||s.thumbUrl)?o.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>w(s,e),title:l.previewFile},"function"===typeof y?y(s):y||o.createElement(nR,null)):null,q=("picture-card"===c||"picture-circle"===c)&&"uploading"!==N&&o.createElement("span",{className:`${n}-list-item-actions`},V,"done"===N&&D,H),{getPrefixCls:K}=o.useContext(Be),X=K(),G=o.createElement("div",{className:T},z,_,L,q,j&&o.createElement(Aa,{motionName:`${X}-fade`,visible:"uploading"===N,motionDeadline:2e3},(e=>{let{className:t}=e;const r="percent"in s?o.createElement(YF,Object.assign({},d,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return o.createElement("div",{className:a()(`${n}-list-item-progress`,t)},r)}))),Y=s.response&&"string"===typeof s.response?s.response:(null===(k=s.error)||void 0===k?void 0:k.statusText)||(null===(O=s.error)||void 0===O?void 0:O.message)||l.uploadError,U="error"===N?o.createElement(NC,{title:Y,getPopupContainer:e=>e.parentNode},G):G;return o.createElement("div",{className:a()(`${n}-list-item-container`,r),style:i,ref:t},m?m(U,s,u,{download:S.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):U)})),VQ=_Q,qQ=o.forwardRef(((e,t)=>{const{listType:n="text",previewFile:r=AQ,onPreview:i,onDownload:l,onRemove:c,locale:s,iconRender:u,isImageUrl:d=DQ,prefixCls:f,items:p=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:h,previewIcon:b,downloadIcon:y,extra:C,progress:x={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:S,disabled:E}=e,k=_y(),[O,I]=o.useState(!1),N=["picture-card","picture-circle"].includes(n);o.useEffect((()=>{n.startsWith("picture")&&(p||[]).forEach((e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null===r||void 0===r||r(e.originFileObj).then((t=>{e.thumbUrl=t||"",k()})))}))}),[n,p,r]),o.useEffect((()=>{I(!0)}),[]);const M=(e,t)=>{if(i)return t.preventDefault(),i(e)},j=e=>{"function"===typeof l?l(e):e.url&&window.open(e.url)},P=e=>{null===c||void 0===c||c(e)},R=e=>{if(u)return u(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const r="picture"===n?o.createElement(Yl,null):s.uploading,i=(null===d||void 0===d?void 0:d(e))?o.createElement(RQ,null):o.createElement(NQ,null);return t?r:i}return t?o.createElement(Yl,null):o.createElement(jQ,null)},z=(e,t,n,r,i)=>{const a={type:"text",size:"small",title:r,onClick:n=>{var r,i;t(),o.isValidElement(e)&&(null===(i=(r=e.props).onClick)||void 0===i||i.call(r,n))},className:`${n}-list-item-action`};return i&&(a.disabled=E),o.isValidElement(e)?o.createElement(Zd,Object.assign({},a,{icon:Ka(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):o.createElement(Zd,Object.assign({},a),o.createElement("span",null,e))};o.useImperativeHandle(t,(()=>({handlePreview:M,handleDownload:j})));const{getPrefixCls:T}=o.useContext(Be),B=T("upload",f),H=T(),D=a()(`${B}-list`,`${B}-list-${n}`),L=o.useMemo((()=>Ce(Ss(H),["onAppearEnd","onEnterEnd","onLeaveEnd"])),[H]),A=Object.assign(Object.assign({},N?{}:L),{motionDeadline:2e3,motionName:`${B}-${N?"animate-inline":"animate"}`,keys:Se(p.map((e=>({key:e.uid,file:e})))),motionAppear:O});return o.createElement("div",{className:D},o.createElement(La,Object.assign({},A,{component:!1}),(e=>{let{key:t,file:r,className:i,style:a}=e;return o.createElement(VQ,{key:t,locale:s,prefixCls:B,className:i,style:a,file:r,items:p,progress:x,listType:n,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,removeIcon:h,previewIcon:b,downloadIcon:y,extra:C,iconRender:R,actionIconRender:z,itemRender:S,onPreview:M,onDownload:j,onClose:P})})),$&&o.createElement(Aa,Object.assign({},A,{visible:w,forceRender:!0}),(e=>{let{className:t,style:n}=e;return Ka($,(e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))}));const KQ=qQ;var XQ=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(sl){i(sl)}}function l(e){try{c(o.throw(e))}catch(sl){i(sl)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((o=o.apply(e,t||[])).next())}))};const GQ=`__LIST_IGNORE_${Date.now()}__`,YQ=o.forwardRef(((e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:l=!0,listType:c="text",onPreview:s,onDownload:u,onChange:d,onDrop:f,previewFile:p,disabled:m,locale:g,iconRender:v,isImageUrl:h,progress:b,prefixCls:y,className:C,type:x="select",children:$,style:S,itemRender:E,maxCount:k,data:O={},multiple:I=!1,hasControlInside:N=!0,action:M="",accept:j="",supportServerRender:P=!0,rootClassName:R}=e,z=o.useContext(Qc),T=null!==m&&void 0!==m?m:z,[B,H]=so(r||[],{value:n,postState:e=>null!==e&&void 0!==e?e:[]}),[D,L]=o.useState("drop"),A=o.useRef(null),F=o.useRef(null);o.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const W=(e,t,n)=>{let o=Se(t),r=!1;1===k?o=o.slice(-1):k&&(r=o.length>k,o=o.slice(0,k)),(0,w.flushSync)((()=>{H(o)}));const i={file:e,fileList:o};n&&(i.event=n),r&&"removed"!==e.status&&!o.some((t=>t.uid===e.uid))||(0,w.flushSync)((()=>{null===d||void 0===d||d(i)}))},_=e=>{const t=e.filter((e=>!e.file[GQ]));if(!t.length)return;const n=t.map((e=>zQ(e.file)));let o=Se(B);n.forEach((e=>{o=TQ(e,o)})),n.forEach(((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(i){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}W(r,o)}))},V=(e,t,n)=>{try{"string"===typeof e&&(e=JSON.parse(e))}catch(i){}if(!BQ(t,B))return;const o=zQ(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=TQ(o,B);W(o,r)},q=(e,t)=>{if(!BQ(t,B))return;const n=zQ(t);n.status="uploading",n.percent=e.percent;const o=TQ(n,B);W(n,o,e)},K=(e,t,n)=>{if(!BQ(n,B))return;const o=zQ(n);o.error=e,o.response=t,o.status="error";const r=TQ(o,B);W(o,r)},X=e=>{let t;Promise.resolve("function"===typeof i?i(e):i).then((n=>{var o;if(!1===n)return;const r=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter((t=>t[n]!==e[n]));return o.length===t.length?null:o}(e,B);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null===B||void 0===B||B.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(o=A.current)||void 0===o||o.abort(t),W(t,r))}))},G=e=>{L(e.type),"drop"===e.type&&(null===f||void 0===f||f(e))};o.useImperativeHandle(t,(()=>({onBatchStart:_,onSuccess:V,onProgress:q,onError:K,fileList:B,upload:A.current,nativeElement:F.current})));const{getPrefixCls:Y,direction:U,upload:Q}=o.useContext(Be),Z=Y("upload",y),J=Object.assign(Object.assign({onBatchStart:_,onError:K,onProgress:q,onSuccess:V},e),{data:O,multiple:I,action:M,accept:j,supportServerRender:P,prefixCls:Z,disabled:T,beforeUpload:(t,n)=>XQ(void 0,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let i=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[GQ],e===GQ)return Object.defineProperty(t,GQ,{value:!0,configurable:!0}),!1;"object"===typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i})),onChange:void 0,hasControlInside:N});delete J.className,delete J.style,$&&!T||delete J.id;const ee=`${Z}-wrapper`,[te,ne,oe]=OQ(Z,ee),[re]=Es("Upload",Ac.Upload),{showRemoveIcon:ie,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:ce,previewIcon:se,downloadIcon:ue,extra:de}="boolean"===typeof l?{}:l,fe="undefined"===typeof ie?!T:ie,pe=(e,t)=>l?o.createElement(KQ,{prefixCls:Z,listType:c,items:B,previewFile:p,onPreview:s,onDownload:u,onRemove:X,showRemoveIcon:fe,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:ce,previewIcon:se,downloadIcon:ue,iconRender:v,extra:de,locale:Object.assign(Object.assign({},re),g),isImageUrl:h,progress:b,appendAction:e,appendActionVisible:t,itemRender:E,disabled:T}):e,me=a()(ee,C,R,ne,oe,null===Q||void 0===Q?void 0:Q.className,{[`${Z}-rtl`]:"rtl"===U,[`${Z}-picture-card-wrapper`]:"picture-card"===c,[`${Z}-picture-circle-wrapper`]:"picture-circle"===c}),ge=Object.assign(Object.assign({},null===Q||void 0===Q?void 0:Q.style),S);if("drag"===x){const e=a()(ne,Z,`${Z}-drag`,{[`${Z}-drag-uploading`]:B.some((e=>"uploading"===e.status)),[`${Z}-drag-hover`]:"dragover"===D,[`${Z}-disabled`]:T,[`${Z}-rtl`]:"rtl"===U});return te(o.createElement("span",{className:me,ref:F},o.createElement("div",{className:e,style:ge,onDrop:G,onDragOver:G,onDragLeave:G},o.createElement(yQ,Object.assign({},J,{ref:A,className:`${Z}-btn`}),o.createElement("div",{className:`${Z}-drag-container`},$))),pe()))}const ve=a()(Z,`${Z}-select`,{[`${Z}-disabled`]:T}),he=o.createElement("div",{className:ve,style:$?void 0:{display:"none"}},o.createElement(yQ,Object.assign({},J,{ref:A})));return te("picture-card"===c||"picture-circle"===c?o.createElement("span",{className:me,ref:F},pe(he,!!$)):o.createElement("span",{className:me,ref:F},he,pe()))}));const UQ=YQ;var QQ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ZQ=o.forwardRef(((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,a=QQ(e,["style","height","hasControlInside"]);return o.createElement(UQ,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}));const JQ=ZQ,eZ=UQ;eZ.Dragger=JQ,eZ.LIST_IGNORE=GQ;const tZ=eZ;!function(e){se(n,e);var t=me(n);function n(){return ie(this,n),t.apply(this,arguments)}le(n,[{key:"render",value:function(){return this.props.children}}])}(r().Component);var nZ={subtree:!0,childList:!0,attributeFilter:["style","class"]};function oZ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e*n,a=t*n;return o.setAttribute("width",`${i}px`),o.setAttribute("height",`${a}px`),r.save(),[r,o,i,a]}function rZ(){return function(e,t,n,o,r,i,a,l){const[c,s,u,d]=oZ(o,r,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{const{color:t,fontSize:o,fontStyle:a,fontWeight:l,fontFamily:s,textAlign:d}=i,f=Number(o)*n;c.font=`${a} normal ${l} ${f}px/${r}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";const p=EA(e);null===p||void 0===p||p.forEach(((e,t)=>{c.fillText(null!==e&&void 0!==e?e:"",u/2,t*(f+3*n))}))}const f=Math.PI/180*Number(t),p=Math.max(o,r),[m,g,v]=oZ(p,p,n);m.translate(v/2,v/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let h=0,b=0,y=0,C=0;const x=u/2,$=d/2;[[0-x,0-$],[0+x,0-$],[0+x,0+$],[0-x,0+$]].forEach((e=>{let[t,n]=e;const[o,r]=function(e,t){return[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)]}(t,n);h=Math.min(h,o),b=Math.max(b,o),y=Math.min(y,r),C=Math.max(C,r)}));const w=h+v/2,S=y+v/2,E=b-h,k=C-y,O=a*n,I=l*n,N=2*(E+O),M=k+I,[j,P]=oZ(N,M);function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;j.drawImage(g,w,S,E,k,e,t,E,k)}return R(),R(E+O,-k/2-I/2),R(E+O,+k/2+I/2),[P.toDataURL(),N/n,M/n]}}const iZ={visibility:"visible !important"};function aZ(e){const[t]=o.useState((()=>new Map));return[(n,o,r)=>{if(r){if(!t.get(r)){const e=document.createElement("div");t.set(r,e)}const i=t.get(r);i.setAttribute("style",function(e){return Object.keys(e).map((t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`)).join(" ")}(Object.assign(Object.assign(Object.assign({},e),{backgroundImage:`url('${n}')`,backgroundSize:`${Math.floor(o)}px`}),iZ))),i.removeAttribute("class"),i.parentElement!==r&&r.append(i)}return t.get(r)},e=>{const n=t.get(e);n&&e&&e.removeChild(n),t.delete(e)},e=>Array.from(t.values()).includes(e)]}function lZ(e,t){return e.size===t.size?e:t}const cZ=100,sZ=100,uZ={position:"relative",overflow:"hidden"};const dZ=e=>{var t,n;const{zIndex:i=9,rotate:l=-22,width:c,height:s,image:u,content:d,font:f={},style:p,className:m,rootClassName:g,gap:v=[cZ,sZ],offset:h,children:b,inherit:y=!0}=e,C=Object.assign(Object.assign({},uZ),p),[,x]=ui(),{color:$=x.colorFill,fontSize:w=x.fontSizeLG,fontWeight:S="normal",fontStyle:E="normal",fontFamily:k="sans-serif",textAlign:O="center"}=f,[I=cZ,N=sZ]=v,M=I/2,j=N/2,P=null!==(t=null===h||void 0===h?void 0:h[0])&&void 0!==t?t:M,R=null!==(n=null===h||void 0===h?void 0:h[1])&&void 0!==n?n:j,z=r().useMemo((()=>{const e={zIndex:i,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=P-M,n=R-j;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e}),[i,P,M,R,j]),[T,B]=r().useState(),[H,D]=r().useState(new Set),L=r().useMemo((()=>[].concat(T?[T]:[],Se(Array.from(H)))),[T,H]),A=rZ(),[F,W]=r().useState(null),_=function(e){const t=r().useRef(!1),n=r().useRef(),o=ao(e);return()=>{t.current||(t.current=!0,o(),n.current=je((()=>{t.current=!1})))}}((()=>{const e=document.createElement("canvas").getContext("2d");if(e){const t=window.devicePixelRatio||1,[n,o]=(e=>{let t=120,n=64;if(!u&&e.measureText){e.font=`${Number(w)}px ${k}`;const o=EA(d),r=o.map((t=>{const n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]}));t=Math.ceil(Math.max.apply(Math,Se(r.map((e=>e[0]))))),n=Math.ceil(Math.max.apply(Math,Se(r.map((e=>e[1])))))*o.length+3*(o.length-1)}return[null!==c&&void 0!==c?c:t,null!==s&&void 0!==s?s:n]})(e),r=e=>{const[r,i]=A(e||"",l,t,n,o,{color:$,fontSize:w,fontStyle:E,fontWeight:S,fontFamily:k,textAlign:O},I,N);W([r,i])};if(u){const e=new Image;e.onload=()=>{r(e)},e.onerror=()=>{r(d)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=u}else r(d)}})),[V,q,K]=aZ(z);(0,o.useEffect)((()=>{F&&L.forEach((e=>{V(F[0],F[1],e)}))}),[F,L]);const X=ao((e=>{e.forEach((e=>{if(((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some((e=>t(e)))),"attributes"===e.type&&t(e.target)&&(n=!0),n})(e,K))_();else if(e.target===T&&"style"===e.attributeName){const e=Object.keys(uZ);for(let t=0;t<e.length;t+=1){const n=e[t],o=C[n],r=T.style[n];o&&o!==r&&(T.style[n]=o)}}}))}));!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nZ;o.useEffect((function(){if(We()&&e){var o,r=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(o=new MutationObserver(t),r.forEach((function(e){o.observe(e,n)}))),function(){var e,t;null===(e=o)||void 0===e||e.takeRecords(),null===(t=o)||void 0===t||t.disconnect()}}}),[n,e])}(L,X),(0,o.useEffect)(_,[l,i,c,s,u,d,$,w,S,E,k,O,I,N,P,R]);const G=r().useMemo((()=>({add:e=>{D((t=>{const n=new Set(t);return n.add(e),lZ(t,n)}))},remove:e=>{q(e),D((t=>{const n=new Set(t);return n.delete(e),lZ(t,n)}))}})),[]),Y=y?r().createElement(Dm.Provider,{value:G},b):b;return r().createElement("div",{ref:B,className:a()(m,g),style:C},Y)},fZ=(0,o.forwardRef)(((e,t)=>{const{prefixCls:n,className:o,children:i,size:l,style:c={}}=e,s=a()(`${n}-panel`,{[`${n}-panel-hidden`]:0===l},o),u=void 0!==l;return r().createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},c),{flexBasis:u?l:"auto",flexGrow:u?0:1})},i)}));const pZ=()=>null;var mZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function gZ(e){if(e&&"object"===typeof e)return e;const t=!!e;return{start:t,end:t}}function vZ(e){return Number(e.slice(0,-1))/100}function hZ(e){return"string"===typeof e&&e.endsWith("%")}function bZ(e){return"number"!==typeof e||Number.isNaN(e)?0:Math.round(e)}const yZ=e=>{const{prefixCls:t,vertical:n,index:i,active:l,ariaNow:c,ariaMin:s,ariaMax:u,resizable:d,startCollapsible:f,endCollapsible:p,onOffsetStart:m,onOffsetUpdate:g,onOffsetEnd:v,onCollapse:h}=e,b=`${t}-bar`,[y,C]=(0,o.useState)(null);r().useEffect((()=>{if(y){const e=e=>{const{pageX:t,pageY:n}=e,o=t-y[0],r=n-y[1];g(i,o,r)},t=()=>{C(null),v()},n=e=>{if(1===e.touches.length){const t=e.touches[0],n=t.pageX-y[0],o=t.pageY-y[1];g(i,n,o)}},o=()=>{C(null),v()};return window.addEventListener("touchmove",n),window.addEventListener("touchend",o),window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",o)}}}),[y]);const x=n?wj:G$,$=n?Ey:Du;return r().createElement("div",{className:b,role:"separator","aria-valuenow":bZ(c),"aria-valuemin":bZ(s),"aria-valuemax":bZ(u)},r().createElement("div",{className:a()(`${b}-dragger`,{[`${b}-dragger-disabled`]:!d,[`${b}-dragger-active`]:l}),onMouseDown:e=>{d&&e.currentTarget&&(C([e.pageX,e.pageY]),m(i))},onTouchStart:e=>{if(d&&1===e.touches.length){const t=e.touches[0];C([t.pageX,t.pageY]),m(i)}}}),f&&r().createElement("div",{className:a()(`${b}-collapse-bar`,`${b}-collapse-bar-start`),onClick:()=>h(i,"start")},r().createElement(x,{className:a()(`${b}-collapse-icon`,`${b}-collapse-start`)})),p&&r().createElement("div",{className:a()(`${b}-collapse-bar`,`${b}-collapse-bar-end`),onClick:()=>h(i,"end")},r().createElement($,{className:a()(`${b}-collapse-icon`,`${b}-collapse-end`)})))},CZ=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},xZ={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},$Z=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:o,splitBarSize:r,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:c}=e,s=`${t}-bar`,u=`${t}-mask`,d=`${t}-panel`,f=e.calc(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign({},Ro(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${s}`]:{flex:"none",position:"relative",userSelect:"none",[`${s}-dragger`]:Object.assign(Object.assign({},xZ),{zIndex:1,"&:before":Object.assign({content:'""',background:a},xZ),"&:after":Object.assign({content:'""',background:n},xZ),[`&:hover:not(${s}-dragger-active)`]:{"&:before":{background:l}},"&-active":{zIndex:2,"&:before":{background:c}},[`&-disabled${s}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&:before":{background:a}},"&:after":{display:"none"}}}),[`${s}-collapse-bar`]:Object.assign(Object.assign({},xZ),{zIndex:1,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:c}}),"&:hover, &:active":{[`${s}-collapse-bar`]:{opacity:1}}},[u]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${s}`]:{width:0,[`${s}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&:before":{height:"100%",width:r},"&:after":{height:o,width:r}},[`${s}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:f},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:f},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${s}`]:{height:0,[`${s}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&:before":{width:"100%",height:r},"&:after":{width:o,height:r}},[`${s}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:f,transform:"translateX(-50%)"},"&-end":{top:f,bottom:"auto",transform:"translateX(-50%)"}}}},[d]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),CZ(e))}},wZ=fi("Splitter",(e=>[$Z(e)]),(e=>{var t;const n=e.splitBarSize||2,o=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20;return{splitBarSize:n,splitTriggerSize:o,splitBarDraggableSize:null!==(t=e.splitBarDraggableSize)&&void 0!==t?t:r,resizeSpinnerSize:r}}));const SZ=e=>{const{prefixCls:t,className:n,style:i,layout:l="horizontal",children:c,rootClassName:u,onResizeStart:d,onResize:f,onResizeEnd:p}=e,{getPrefixCls:m,direction:g,splitter:v}=r().useContext(Be),h=m("splitter",t),b=bl(h),[y,C,x]=wZ(h,b),$="vertical"===l,w="rtl"===g,S=!$&&w,E=function(e){const t=o.useMemo((()=>s(e).filter(o.isValidElement).map((e=>{const{props:t}=e,{collapsible:n}=t,o=mZ(t,["collapsible"]);return Object.assign(Object.assign({},o),{collapsible:gZ(n)})}))),[e]);return t}(c);const[k,O]=(0,o.useState)(),[I,N,M,j,P,R]=function(e,t){const n=e.map((e=>e.size)),o=e.length,i=t||0,a=e=>e*i,[l,c]=r().useState((()=>e.map((e=>e.defaultSize)))),s=r().useMemo((()=>{var e;const t=[];for(let r=0;r<o;r+=1)t[r]=null!==(e=n[r])&&void 0!==e?e:l[r];return t}),[o,l,n]),u=r().useMemo((()=>{let e=[],t=0;for(let r=0;r<o;r+=1){const n=s[r];if(hZ(n))e[r]=vZ(n);else if(n||0===n){const t=Number(n);Number.isNaN(t)||(e[r]=t/i)}else t+=1,e[r]=void 0}const n=e.reduce(((e,t)=>e+(t||0)),0);if(n>1||!t){const t=1/n;e=e.map((e=>void 0===e?0:e*t))}else{const o=(1-n)/t;e=e.map((e=>void 0===e?o:e))}return e}),[s,i]),d=r().useMemo((()=>u.map(a)),[u,i]),f=r().useMemo((()=>e.map((e=>hZ(e.min)?vZ(e.min):(e.min||0)/i))),[e,i]),p=r().useMemo((()=>e.map((e=>hZ(e.max)?vZ(e.max):(e.max||i)/i))),[e,i]);return[r().useMemo((()=>t?d:s),[d,t]),d,u,f,p,c]}(E,k),z=function(e,t){return o.useMemo((()=>{const n=[];for(let o=0;o<e.length-1;o+=1){const r=e[o],i=e[o+1],a=t[o],l=t[o+1],{resizable:c=!0,min:s,collapsible:u}=r,{resizable:d=!0,min:f,collapsible:p}=i,m=c&&d&&(0!==a||!s)&&(0!==l||!f),g=u.end&&a>0||p.start&&0===l&&a>0,v=p.start&&l>0||u.end&&0===a&&l>0;n[o]={resizable:m,startCollapsible:!!g,endCollapsible:!!v}}return n}),[t,e])}(E,N),[T,B,H,D,L]=function(e,t,n,r,i){const a=e.map((e=>[e.min,e.max])),l=r||0,c=e=>e*l;function s(e,t){return"string"===typeof e?c(vZ(e)):null!==e&&void 0!==e?e:t}const[u,d]=o.useState([]),[f,p]=o.useState(null),m=()=>n.map(c);return[e=>{d(m()),p({index:e,confirmed:!1})},(e,n)=>{var o;let r=null;if((!f||!f.confirmed)&&0!==n)if(n>0)r=e,p({index:e,confirmed:!0});else for(let i=e;i>=0;i-=1)if(u[i]>0&&t[i].resizable){r=i,p({index:i,confirmed:!0});break}const c=null!==(o=null!==r&&void 0!==r?r:null===f||void 0===f?void 0:f.index)&&void 0!==o?o:e,d=Se(u),m=c+1,g=s(a[c][0],0),v=s(a[m][0],0),h=s(a[c][1],l),b=s(a[m][1],l);let y=n;return d[c]+y<g&&(y=g-d[c]),d[m]-y<v&&(y=d[m]-v),d[c]+y>h&&(y=h-d[c]),d[m]-y>b&&(y=d[m]-b),d[c]+=y,d[m]-=y,i(d),d},()=>{p(null)},(e,t)=>{const n=m(),o="start"===t?e:e+1,r="start"===t?e+1:e,c=n[o],u=n[r];if(0!==c&&0!==u)n[o]=0,n[r]+=c;else{const e=c+u,t=s(a[o][0],0),i=s(a[o][1],l),d=s(a[r][0],0),f=s(a[r][1],l),p=Math.max(t,e-f),m=(Math.min(i,e-d)-p)/2;n[o]-=m,n[r]+=m}return i(n),n},null===f||void 0===f?void 0:f.index]}(E,z,M,k,R),A=ao((e=>{T(e),null===d||void 0===d||d(N)})),F=ao(((e,t)=>{const n=B(e,t);null===f||void 0===f||f(n)})),W=ao((()=>{H(),null===p||void 0===p||p(N)})),_=ao(((e,t)=>{const n=D(e,t);null===f||void 0===f||f(n),null===p||void 0===p||p(n)})),V=a()(h,n,`${h}-${l}`,{[`${h}-rtl`]:w},u,null===v||void 0===v?void 0:v.className,x,b,C),q=`${h}-mask`,K=r().useMemo((()=>{const e=[];let t=0;for(let n=0;n<E.length;n+=1)t+=M[n],e.push(t);return e}),[M]),X=Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),i);return y(r().createElement(ye,{onResize:e=>{const{offsetWidth:t,offsetHeight:n}=e,o=$?n:t;0!==o&&O(o)}},r().createElement("div",{style:X,className:V},E.map(((e,t)=>{const n=r().createElement(fZ,Object.assign({},e,{prefixCls:h,size:I[t]}));let o=null;const i=z[t];if(i){const e=(K[t-1]||0)+j[t],n=(K[t+1]||100)-P[t+1],a=(K[t-1]||0)+P[t],l=(K[t+1]||100)-j[t+1];o=r().createElement(yZ,{index:t,active:L===t,prefixCls:h,vertical:$,resizable:i.resizable,ariaNow:100*K[t],ariaMin:100*Math.max(e,n),ariaMax:100*Math.min(a,l),startCollapsible:i.startCollapsible,endCollapsible:i.endCollapsible,onOffsetStart:A,onOffsetUpdate:(e,t,n)=>{let o=$?n:t;S&&(o=-o),F(e,o)},onOffsetEnd:W,onCollapse:_})}return r().createElement(r().Fragment,{key:`split-panel-${t}`},n,o)})),"number"===typeof L&&r().createElement("div",{"aria-hidden":!0,className:a()(q,`${q}-${l}`)}))))},EZ=SZ;EZ.Panel=pZ;const kZ=EZ},75270:(e,t,n)=>{"use strict";var o=n(40139),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=o(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),"undefined"===typeof o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},97076:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return o.bind(this)(i)}}}()},68988:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,o=a.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,c("seconds")],ss:[r,c("seconds")],m:[r,c("minutes")],mm:[r,c("minutes")],H:[r,c("hours")],h:[r,c("hours")],HH:[r,c("hours")],hh:[r,c("hours")],D:[r,c("day")],DD:[o,c("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[r,c("week")],ww:[o,c("week")],M:[r,c("month")],MM:[o,c("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function p(n){var o,r;o=n,r=a&&a.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=i.length,c=0;c<l;c+=1){var s=i[c],u=f[s],d=u&&u[0],p=u&&u[1];i[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<l;n+=1){var r=i[n];if("string"==typeof r)o+=r.length;else{var a=r.regex,c=r.parser,s=e.slice(o),u=a.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,i=e.args;this.$u=o;var l=i[1];if("string"==typeof l){var c=!0===i[2],s=!0===i[3],u=c||s,d=i[2];s&&(d=i[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),i=r.year,a=r.month,l=r.day,c=r.hours,s=r.minutes,u=r.seconds,d=r.milliseconds,f=r.zone,m=r.week,g=new Date,v=l||(i||a?1:g.getDate()),h=i||g.getFullYear(),b=0;i&&!a||(b=a>0?a-1:g.getMonth());var y,C=c||0,x=s||0,$=u||0,w=d||0;return f?new Date(Date.UTC(h,b,v,C,x,$,w+60*f.offset*1e3)):n?new Date(Date.UTC(h,b,v,C,x,$,w)):(y=new Date(h,b,v,C,x,$,w),m&&(y=o(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,l,o,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var f=l.length,m=1;m<=f;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===f&&(this.$d=new Date(""))}else r.call(this,e)}}}()},20199:function(e){e.exports=function(){"use strict";return function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var a=e.name?e:e.$locale(),l=r(a[t]),c=r(a[n]),s=l||c.map((function(e){return e.slice(0,o)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},66865:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,o,r){var i=o.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var o=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=r(this).startOf(t).add(1,t).date(o),a=r(this).endOf(e);if(i.isBefore(a))return 1}var l=r(this).startOf(t).date(o).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?r(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},66556:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},19223:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,o=(n<t?n+7:n)-t;return this.$utils().u(e)?o:this.subtract(o,"day").add(e,"day")}}}()},41270:(e,t,n)=>{var o=n(37475),r=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,i){var a=e[r];(function(e){return/[height|width]$/.test(e)})(r=o(r))&&"number"===typeof a&&(a+="px"),t+=!0===a?r:!1===a?"not "+r:"("+r+": "+a+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=r(n),o<e.length-1&&(t+=", ")})),t):r(e)}},95082:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function h(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case g:case m:case c:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return h(e)===i},t.isMemo=function(e){return h(e)===m}},2086:(e,t,n)=>{"use strict";e.exports=n(95082)},37475:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},40139:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},98139:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}}]);
|
|
3
|
-
//# sourceMappingURL=516.b2b069b4.chunk.js.map
|