@akinon/ui-select 0.0.1 → 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/dist/index.cjs DELETED
@@ -1,187 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Cc=require("react/jsx-runtime"),U=require("react"),xr=require("react-dom");function xc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=xc(U);function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var el={exports:{}};/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(el);var Rc=el.exports;const Ye=Oc(Rc);function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}var ai={exports:{}},Be={};/**
6
- * @license React
7
- * react-is.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var Pa;function Pc(){if(Pa)return Be;Pa=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var p=v.$$typeof;switch(p){case e:switch(v=v.type,v){case n:case o:case r:case c:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case l:case m:case d:case i:return v;default:return p}}case t:return p}}}return Be.ContextConsumer=a,Be.ContextProvider=i,Be.Element=e,Be.ForwardRef=l,Be.Fragment=n,Be.Lazy=m,Be.Memo=d,Be.Portal=t,Be.Profiler=o,Be.StrictMode=r,Be.Suspense=c,Be.SuspenseList=f,Be.isAsyncMode=function(){return!1},Be.isConcurrentMode=function(){return!1},Be.isContextConsumer=function(v){return g(v)===a},Be.isContextProvider=function(v){return g(v)===i},Be.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Be.isForwardRef=function(v){return g(v)===l},Be.isFragment=function(v){return g(v)===n},Be.isLazy=function(v){return g(v)===m},Be.isMemo=function(v){return g(v)===d},Be.isPortal=function(v){return g(v)===t},Be.isProfiler=function(v){return g(v)===o},Be.isStrictMode=function(v){return g(v)===r},Be.isSuspense=function(v){return g(v)===c},Be.isSuspenseList=function(v){return g(v)===f},Be.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===c||v===f||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===d||v.$$typeof===i||v.$$typeof===a||v.$$typeof===l||v.$$typeof===b||v.getModuleId!==void 0)},Be.typeOf=g,Be}var Ue={};/**
14
- * @license React
15
- * react-is.development.js
16
- *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */var Ma;function Mc(){return Ma||(Ma=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=!1,g=!1,v=!1,p=!1,y=!1,S;S=Symbol.for("react.module.reference");function E(L){return!!(typeof L=="string"||typeof L=="function"||L===n||L===o||y||L===r||L===c||L===f||p||L===h||b||g||v||typeof L=="object"&&L!==null&&(L.$$typeof===m||L.$$typeof===d||L.$$typeof===i||L.$$typeof===a||L.$$typeof===l||L.$$typeof===S||L.getModuleId!==void 0))}function x(L){if(typeof L=="object"&&L!==null){var ce=L.$$typeof;switch(ce){case e:var Se=L.type;switch(Se){case n:case o:case r:case c:case f:return Se;default:var we=Se&&Se.$$typeof;switch(we){case s:case a:case l:case m:case d:case i:return we;default:return ce}}case t:return ce}}}var O=a,C=i,T=e,F=l,M=n,$=m,A=d,N=t,k=o,V=r,P=c,w=f,R=!1,_=!1;function j(L){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(L){return _||(_=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(L){return x(L)===a}function Q(L){return x(L)===i}function ee(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function Z(L){return x(L)===l}function Pe(L){return x(L)===n}function ye(L){return x(L)===m}function X(L){return x(L)===d}function q(L){return x(L)===t}function Y(L){return x(L)===o}function se(L){return x(L)===r}function oe(L){return x(L)===c}function G(L){return x(L)===f}Ue.ContextConsumer=O,Ue.ContextProvider=C,Ue.Element=T,Ue.ForwardRef=F,Ue.Fragment=M,Ue.Lazy=$,Ue.Memo=A,Ue.Portal=N,Ue.Profiler=k,Ue.StrictMode=V,Ue.Suspense=P,Ue.SuspenseList=w,Ue.isAsyncMode=j,Ue.isConcurrentMode=z,Ue.isContextConsumer=B,Ue.isContextProvider=Q,Ue.isElement=ee,Ue.isForwardRef=Z,Ue.isFragment=Pe,Ue.isLazy=ye,Ue.isMemo=X,Ue.isPortal=q,Ue.isProfiler=Y,Ue.isStrictMode=se,Ue.isSuspense=oe,Ue.isSuspenseList=G,Ue.isValidElementType=E,Ue.typeOf=x}()),Ue}process.env.NODE_ENV==="production"?ai.exports=Pc():ai.exports=Mc();var tl=ai.exports;function An(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return U.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(An(r)):tl.isFragment(r)&&r.props?n=n.concat(An(r.props.children,t)):n.push(r))}),n}var si={},Zi=[],Ic=function(t){Zi.push(t)};function Dn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Zi.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Tc(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Zi.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function nl(){si={}}function rl(e,t,n){!t&&!si[n]&&(e(!1,n),si[n]=!0)}function De(e,t){rl(Dn,e,t)}function li(e,t){rl(Tc,e,t)}De.preMessage=Ic;De.resetWarned=nl;De.noteOnce=li;function je(e){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(e)}function Nc(e,t){if(je(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(je(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ol(e){var t=Nc(e,"string");return je(t)==="symbol"?t:String(t)}function I(e,t,n){return t=ol(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ia(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function so(e){return e instanceof HTMLElement||e instanceof SVGElement}function br(e){return so(e)?e:e instanceof U.Component?xr.findDOMNode(e):null}function bo(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Ji(e,t){typeof e=="function"?e(t):je(e)==="object"&&e&&"current"in e&&(e.current=t)}function ea(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Ji(i,o)})}}function So(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bo(function(){return ea.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function Eo(e){var t,n,r=tl.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var ui=u.createContext(null);function Fc(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),i=u.useContext(ui),a=u.useCallback(function(s,l,c){r.current+=1;var f=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,c)},[n,i]);return u.createElement(ui.Provider,{value:a},t)}var il=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),ci=typeof window<"u"&&typeof document<"u"&&window.document===document,lo=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),$c=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(lo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),_c=2;function Ac(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){$c(i)}function s(){var l=Date.now();if(n){if(l-o<_c)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var Dc=20,Lc=["top","right","bottom","left","width","height","size","weight"],kc=typeof MutationObserver<"u",Vc=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ac(this.refresh.bind(this),Dc)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ci||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kc?(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(){!ci||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=Lc.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),al=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},or=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||lo},sl=wo(0,0,0,0);function uo(e){return parseFloat(e)||0}function Ta(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+uo(i)},0)}function jc(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=uo(a)}return n}function Hc(e){var t=e.getBBox();return wo(0,0,t.width,t.height)}function zc(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return sl;var r=or(e).getComputedStyle(e),o=jc(r),i=o.left+o.right,a=o.top+o.bottom,s=uo(r.width),l=uo(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Ta(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Ta(r,"top","bottom")+a)),!Bc(e)){var c=Math.round(s+i)-t,f=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(f)!==1&&(l-=f)}return wo(o.left,o.top,s,l)}var Wc=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof or(e).SVGGraphicsElement}:function(e){return e instanceof or(e).SVGElement&&typeof e.getBBox=="function"}}();function Bc(e){return e===or(e).document.documentElement}function Uc(e){return ci?Wc(e)?Hc(e):zc(e):sl}function Kc(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return al(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function wo(e,t,n,r){return{x:e,y:t,width:n,height:r}}var qc=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Uc(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Gc=function(){function e(t,n){var r=Kc(n);al(this,{target:t,contentRect:r})}return e}(),Xc=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new il,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof or(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new qc(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof or(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Gc(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ll=typeof WeakMap<"u"?new WeakMap:new il,ul=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Vc.getInstance(),r=new Xc(t,n,this);ll.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ul.prototype[e]=function(){var t;return(t=ll.get(this))[e].apply(t,arguments)}});var Yc=function(){return typeof lo.ResizeObserver<"u"?lo.ResizeObserver:ul}(),gn=new Map;function cl(e){e.forEach(function(t){var n,r=t.target;(n=gn.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var fl=new Yc(cl);process.env.NODE_ENV;process.env.NODE_ENV;function Qc(e,t){gn.has(e)||(gn.set(e,new Set),fl.observe(e)),gn.get(e).add(t)}function Zc(e,t){gn.has(e)&&(gn.get(e).delete(t),gn.get(e).size||(fl.unobserve(e),gn.delete(e)))}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ol(r.key),r)}}function an(e,t,n){return t&&Na(e.prototype,t),n&&Na(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fi(e,t)}function Co(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fi(e,t)}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},co(e)}function Jc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ze(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ef(e,t){if(t&&(je(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ze(e)}function xo(e){var t=Jc();return function(){var r=co(e),o;if(t){var i=co(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ef(this,o)}}var tf=function(e){Co(n,e);var t=xo(n);function n(){return on(this,n),t.apply(this,arguments)}return an(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function nf(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),i=u.useRef(null),a=u.useContext(ui),s=typeof n=="function",l=s?n(o):n,c=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&u.isValidElement(l)&&Eo(l),d=f?l.ref:null,m=So(d,o),h=function(){var p;return br(o.current)||(o.current&&je(o.current)==="object"?br((p=o.current)===null||p===void 0?void 0:p.nativeElement):null)||br(i.current)};u.useImperativeHandle(t,function(){return h()});var b=u.useRef(e);b.current=e;var g=u.useCallback(function(v){var p=b.current,y=p.onResize,S=p.data,E=v.getBoundingClientRect(),x=E.width,O=E.height,C=v.offsetWidth,T=v.offsetHeight,F=Math.floor(x),M=Math.floor(O);if(c.current.width!==F||c.current.height!==M||c.current.offsetWidth!==C||c.current.offsetHeight!==T){var $={width:F,height:M,offsetWidth:C,offsetHeight:T};c.current=$;var A=C===Math.round(x)?x:C,N=T===Math.round(O)?O:T,k=D(D({},$),{},{offsetWidth:A,offsetHeight:N});a==null||a(k,v,S),y&&Promise.resolve().then(function(){y(k,v)})}},[]);return u.useEffect(function(){var v=h();return v&&!r&&Qc(v,g),function(){return Zc(v,g)}},[o.current,r]),u.createElement(tf,{ref:i},f?u.cloneElement(l,{ref:m}):l)}var dl=u.forwardRef(nf);process.env.NODE_ENV!=="production"&&(dl.displayName="SingleObserver");var rf="rc-observer-key";function of(e,t){var n=e.children,r=typeof n=="function"?[n]:An(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Dn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Dn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(rf,"-").concat(i);return u.createElement(dl,Je({},e,{key:a,ref:i===0?t:void 0}),o)})}var Cn=u.forwardRef(of);process.env.NODE_ENV!=="production"&&(Cn.displayName="ResizeObserver");Cn.Collection=Fc;function vl(e,t){var n=D({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function di(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function af(e){if(Array.isArray(e))return di(e)}function ml(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ta(e,t){if(e){if(typeof e=="string")return di(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return di(e,t)}}function sf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e){return af(e)||ml(e)||ta(e)||sf()}var hl=function(t){return+setTimeout(t,16)},gl=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(hl=function(t){return window.requestAnimationFrame(t)},gl=function(t){return window.cancelAnimationFrame(t)});var Fa=0,na=new Map;function pl(e){na.delete(e)}var It=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fa+=1;var r=Fa;function o(i){if(i===0)pl(r),t();else{var a=hl(function(){o(i-1)});na.set(r,a)}}return o(n),r};It.cancel=function(e){var t=na.get(e);return pl(t),gl(t)};function ra(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function lf(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function St(e,t){if(e==null)return{};var n=lf(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(De(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var f=0;f<i.length;f++)if(!o(i[f],a[f],c))return!1;return!0}if(i&&a&&je(i)==="object"&&je(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(m){return o(i[m],a[m],c)})}return!1}return o(e,t)}var $a="%",uf=function(){function e(t){on(this,e),I(this,"instanceId",void 0),I(this,"cache",new Map),this.instanceId=t}return an(e,[{key:"get",value:function(n){return this.cache.get(n.join($a))||null}},{key:"update",value:function(n,r){var o=n.join($a),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),vi="data-token-hash",Fn="data-css-hash",cf="data-cache-path",Zn="__cssinjs_instance__";function ff(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Fn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Zn]=o[Zn]||e,o[Zn]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Fn,"]"))).forEach(function(o){var i=o.getAttribute(Fn);if(r[i]){if(o[Zn]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new uf(e)}var df=u.createContext({hashPriority:"low",cache:ff(),defaultCache:!0});const oa=df;function Tt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vf(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 _a="data-rc-order",Aa="data-rc-priority",mf="rc-util-key",mi=new Map;function bl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):mf}function Oo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function hf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Sl(e){return Array.from((mi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function El(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Tt())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=hf(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(_a,a),s&&i&&l.setAttribute(Aa,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Oo(t),f=c.firstChild;if(r){if(s){var d=Sl(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(_a)))return!1;var h=Number(m.getAttribute(Aa)||0);return i>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,f)}else c.appendChild(l);return l}function wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Oo(t);return Sl(n).find(function(r){return r.getAttribute(bl(t))===e})}function fo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wl(e,t);if(n){var r=Oo(t);r.removeChild(n)}}function gf(e,t){var n=mi.get(e);if(!n||!vf(document,n)){var r=El("",t),o=r.parentNode;mi.set(e,o),e.removeChild(r)}}function Or(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Oo(n);gf(r,n);var o=wl(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=El(e,n);return l.setAttribute(bl(n),t),l}function Cl(e){if(Array.isArray(e))return e}function pf(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,o=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function xl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(e,t){return Cl(e)||pf(e,t)||ta(e,t)||xl()}function yf(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var ia=function(){function e(){on(this,e),I(this,"cache",void 0),I(this,"keys",void 0),I(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return an(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,f){var d=H(c,2),m=d[1];return o.internalGet(f)[1]<m?[f,o.internalGet(f)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=H(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,f){if(f===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!yf(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();I(ia,"MAX_CACHE_SIZE",20);I(ia,"MAX_CACHE_OFFSET",5);var Da=0,Ol=function(){function e(t){on(this,e),I(this,"derivatives",void 0),I(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Da,t.length===0&&Dn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Da+=1}return an(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),jo=new ia;function hi(e){var t=Array.isArray(e)?e:[e];return jo.has(t)||jo.set(t,new Ol(t)),jo.get(t)}var bf=new WeakMap,Ho={};function Sf(e,t){for(var n=bf,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Ho)||n.set(Ho,e()),n.get(Ho)}var La=new WeakMap;function vo(e){var t=La.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Ol?t+=r.id:r&&je(r)==="object"?t+=vo(r):t+=r}),La.set(e,t)),t}function Ef(e,t){return ra("".concat(t,"_").concat(vo(e)))}var Sr="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Rl="_bAmBoO_";function wf(e,t,n){if(Tt()){var r,o;Or(e,Sr);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(Rl);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),fo(Sr),a}return!1}var zo=void 0;function Cf(){return zo===void 0&&(zo=wf("@layer ".concat(Sr," { .").concat(Sr,' { content: "').concat(Rl,'"!important; } }'),function(e){e.className=Sr})),zo}var ka=process.env.NODE_ENV!=="test"&&Tt()?u.useLayoutEffect:u.useEffect,lt=function(t,n){var r=u.useRef(!0);ka(function(){return t(r.current)},n),ka(function(){return r.current=!1,function(){r.current=!0}},[])},Va=function(t,n){lt(function(r){if(!r)return t()},n)},xf=D({},u),ja=xf.useInsertionEffect,Of=function(t,n,r){u.useMemo(t,r),lt(function(){return n(!0)},r)},Rf=ja?function(e,t,n){return ja(function(){return e(),t()},n)}:Of;const Pf=Rf;var Mf=D({},u),If=Mf.useInsertionEffect,Tf=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&Dn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},Nf=function(){return function(t){t()}},Ff=typeof If<"u"?Tf:Nf;const $f=Ff;function _f(){return!1}var gi=!1;function Af(){return gi}const Df=process.env.NODE_ENV==="production"?_f:Af;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Wo=window;if(typeof Wo.webpackHotUpdate=="function"){var Lf=Wo.webpackHotUpdate;Wo.webpackHotUpdate=function(){return gi=!0,setTimeout(function(){gi=!1},0),Lf.apply(void 0,arguments)}}}function Pl(e,t,n,r,o){var i=u.useContext(oa),a=i.cache,s=[e].concat(me(t)),l=s.join("_"),c=$f([l]),f=Df(),d=function(g){a.update(s,function(v){var p=v||[],y=H(p,2),S=y[0],E=S===void 0?0:S,x=y[1],O=x;process.env.NODE_ENV!=="production"&&x&&f&&(r==null||r(O,f),O=null);var C=O||n(),T=[E,C];return g?g(T):T})};u.useMemo(function(){d()},[l]);var m=a.get(s);process.env.NODE_ENV!=="production"&&!m&&(d(),m=a.get(s));var h=m[1];return Pf(function(){o==null||o(h)},function(b){return d(function(g){var v=H(g,2),p=v[0],y=v[1];return b&&p===0&&(o==null||o(h)),[p+1,y]}),function(){a.update(s,function(g){var v=g||[],p=H(v,2),y=p[0],S=y===void 0?0:y,E=p[1],x=S-1;return x===0?(c(function(){return r==null?void 0:r(E,!1)}),null):[S-1,E]})}},[l]),h}var kf={},Vf=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Mn=new Map;function jf(e){Mn.set(e,(Mn.get(e)||0)+1)}function Hf(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(vi,'="').concat(e,'"]'));n.forEach(function(r){if(r[Zn]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var zf=0;function Wf(e,t){Mn.set(e,(Mn.get(e)||0)-1);var n=Array.from(Mn.keys()),r=n.filter(function(o){var i=Mn.get(o)||0;return i<=0});n.length-r.length>zf&&r.forEach(function(o){Hf(o,t),Mn.delete(o)})}var Bf=function(t,n,r,o){var i=r.getDerivativeToken(t),a=D(D({},i),n);return o&&(a=o(a)),a};function Uf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=U.useContext(oa),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?kf:s,c=n.formatToken,f=n.getComputedToken,d=Sf(function(){return Object.assign.apply(Object,[{}].concat(me(t)))},t),m=vo(d),h=vo(l),b=Pl("token",[a,e.id,m,h],function(){var g=f?f(d,l,e):Bf(d,l,e,c),v=Ef(g,a);g._tokenKey=v,jf(v);var p="".concat(Vf,"-").concat(ra(v));return g._hashId=p,[g,p]},function(g){Wf(g[0]._tokenKey,o)});return b}var Kf={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},Ml="comm",Il="rule",Tl="decl",qf="@import",Gf="@keyframes",Xf="@layer",Yf=Math.abs,aa=String.fromCharCode;function Nl(e){return e.trim()}function to(e,t,n){return e.replace(t,n)}function Qf(e,t){return e.indexOf(t)}function Rr(e,t){return e.charCodeAt(t)|0}function Pr(e,t,n){return e.slice(t,n)}function hn(e){return e.length}function Zf(e){return e.length}function Br(e,t){return t.push(e),e}var Ro=1,ir=1,Fl=0,Ut=0,gt=0,lr="";function sa(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ro,column:ir,length:a,return:"",siblings:s}}function Jf(){return gt}function ed(){return gt=Ut>0?Rr(lr,--Ut):0,ir--,gt===10&&(ir=1,Ro--),gt}function tn(){return gt=Ut<Fl?Rr(lr,Ut++):0,ir++,gt===10&&(ir=1,Ro++),gt}function $n(){return Rr(lr,Ut)}function no(){return Ut}function Po(e,t){return Pr(lr,e,t)}function pi(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 td(e){return Ro=ir=1,Fl=hn(lr=e),Ut=0,[]}function nd(e){return lr="",e}function Bo(e){return Nl(Po(Ut-1,yi(e===91?e+2:e===40?e+1:e)))}function rd(e){for(;(gt=$n())&&gt<33;)tn();return pi(e)>2||pi(gt)>3?"":" "}function od(e,t){for(;--t&&tn()&&!(gt<48||gt>102||gt>57&&gt<65||gt>70&&gt<97););return Po(e,no()+(t<6&&$n()==32&&tn()==32))}function yi(e){for(;tn();)switch(gt){case e:return Ut;case 34:case 39:e!==34&&e!==39&&yi(gt);break;case 40:e===41&&yi(e);break;case 92:tn();break}return Ut}function id(e,t){for(;tn()&&e+gt!==47+10;)if(e+gt===42+42&&$n()===47)break;return"/*"+Po(t,Ut-1)+"*"+aa(e===47?e:tn())}function ad(e){for(;!pi($n());)tn();return Po(e,Ut)}function sd(e){return nd(ro("",null,null,null,[""],e=td(e),0,[0],e))}function ro(e,t,n,r,o,i,a,s,l){for(var c=0,f=0,d=a,m=0,h=0,b=0,g=1,v=1,p=1,y=0,S="",E=o,x=i,O=r,C=S;v;)switch(b=y,y=tn()){case 40:if(b!=108&&Rr(C,d-1)==58){Qf(C+=to(Bo(y),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=Bo(y);break;case 9:case 10:case 13:case 32:C+=rd(b);break;case 92:C+=od(no()-1,7);continue;case 47:switch($n()){case 42:case 47:Br(ld(id(tn(),no()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[c++]=hn(C)*p;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+f:p==-1&&(C=to(C,/\f/g,"")),h>0&&hn(C)-d&&Br(h>32?za(C+";",r,n,d-1,l):za(to(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Br(O=Ha(C,t,n,c,f,o,s,S,E=[],x=[],d,i),i),y===123)if(f===0)ro(C,t,O,O,E,i,d,s,x);else switch(m===99&&Rr(C,3)===110?100:m){case 100:case 108:case 109:case 115:ro(e,O,O,r&&Br(Ha(e,O,O,0,0,o,s,S,o,E=[],d,x),x),o,x,d,s,r?E:x);break;default:ro(C,O,O,O,[""],x,0,s,x)}}c=f=h=0,g=p=1,S=C="",d=a;break;case 58:d=1+hn(C),h=b;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&ed()==125)continue}switch(C+=aa(y),y*g){case 38:p=f>0?1:(C+="\f",-1);break;case 44:s[c++]=(hn(C)-1)*p,p=1;break;case 64:$n()===45&&(C+=Bo(tn())),m=$n(),f=d=hn(S=C+=ad(no())),y++;break;case 45:b===45&&hn(C)==2&&(g=0)}}return i}function Ha(e,t,n,r,o,i,a,s,l,c,f,d){for(var m=o-1,h=o===0?i:[""],b=Zf(h),g=0,v=0,p=0;g<r;++g)for(var y=0,S=Pr(e,m+1,m=Yf(v=a[g])),E=e;y<b;++y)(E=Nl(v>0?h[y]+" "+S:to(S,/&\f/g,h[y])))&&(l[p++]=E);return sa(e,t,n,o===0?Il:s,l,c,f,d)}function ld(e,t,n,r){return sa(e,t,n,Ml,aa(Jf()),Pr(e,2,-2),0,r)}function za(e,t,n,r,o){return sa(e,t,n,Tl,Pr(e,0,r),Pr(e,r+1,-1),r,o)}function bi(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ud(e,t,n,r){switch(e.type){case Xf:if(e.children.length)break;case qf:case Tl:return e.return=e.return||e.value;case Ml:return"";case Gf:return e.return=e.value+"{"+bi(e.children,r)+"}";case Il:if(!hn(e.value=e.props.join(",")))return""}return hn(n=bi(e.children,r))?e.return=e.value+"{"+n+"}":""}function $l(e,t){var n=t.path,r=t.parentSelectors;De(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var cd=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&$l("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},fd=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&$l("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Wa="data-ant-cssinjs-cache-path",_l="_FILE_STYLE__",_n,Al=!0;function dd(){if(!_n&&(_n={},Tt())){var e=document.createElement("div");e.className=Wa,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=H(i,2),s=a[0],l=a[1];_n[s]=l});var n=document.querySelector("style[".concat(Wa,"]"));if(n){var r;Al=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function vd(e){return dd(),!!_n[e]}function md(e){var t=_n[e],n=null;if(t&&Tt())if(Al)n=_l;else{var r=document.querySelector("style[".concat(Fn,'="').concat(_n[e],'"]'));r?n=r.innerHTML:delete _n[e]}return[n,t]}var Ba=Tt(),Dl="_skip_check_",Ll="_multi_value_";function Ua(e){var t=bi(sd(e),ud);return t.replace(/\{%%%\:[^;];}/g,";")}function hd(e){return je(e)==="object"&&e&&(Dl in e||Ll in e)}function gd(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",f=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(f).concat(o).concat(c.slice(f.length)),[c].concat(me(l.slice(1))).join(" ")});return i.join(",")}var pd=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,f=n.hashPriority,d=n.transformers,m=d===void 0?[]:d,h=n.linters,b=h===void 0?[]:h,g="",v={};function p(O){var C=O.getName(s);if(!v[C]){var T=e(O.style,n,{root:!1,parentSelectors:a}),F=H(T,1),M=F[0];v[C]="@keyframes ".concat(O.getName(s)).concat(M)}}function y(O){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(T){Array.isArray(T)?y(T,C):T&&C.push(T)}),C}var S=y(Array.isArray(t)?t:[t]);if(S.forEach(function(O){var C=typeof O=="string"&&!o?{}:O;if(typeof C=="string")g+="".concat(C,`
24
- `);else if(C._keyframe)p(C);else{var T=m.reduce(function(F,M){var $;return(M==null||($=M.visit)===null||$===void 0?void 0:$.call(M,F))||F},C);Object.keys(T).forEach(function(F){var M=T[F];if(je(M)==="object"&&M&&(F!=="animationName"||!M._keyframe)&&!hd(M)){var $=!1,A=F.trim(),N=!1;(o||i)&&s?A.startsWith("@")?$=!0:A=gd(F,s,f):o&&!s&&(A==="&"||A==="")&&(A="",N=!0);var k=e(M,n,{root:N,injectHash:$,parentSelectors:[].concat(me(a),[A])}),V=H(k,2),P=V[0],w=V[1];v=D(D({},v),w),g+="".concat(A).concat(P)}else{let j=function(z,B){process.env.NODE_ENV!=="production"&&(je(M)!=="object"||!(M!=null&&M[Dl]))&&[cd,fd].concat(me(b)).forEach(function(Z){return Z(z,B,{path:c,hashId:s,parentSelectors:a})});var Q=z.replace(/[A-Z]/g,function(Z){return"-".concat(Z.toLowerCase())}),ee=B;!Kf[z]&&typeof ee=="number"&&ee!==0&&(ee="".concat(ee,"px")),z==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(p(B),ee=B.getName(s)),g+="".concat(Q,":").concat(ee,";")};var R,_=(R=M==null?void 0:M.value)!==null&&R!==void 0?R:M;je(M)==="object"&&M!==null&&M!==void 0&&M[Ll]&&Array.isArray(_)?_.forEach(function(z){j(F,z)}):j(F,_)}})}}),!o)g="{".concat(g,"}");else if(l&&Cf()){var E=l.split(","),x=E[E.length-1].trim();g="@layer ".concat(x," {").concat(g,"}"),E.length>1&&(g="@layer ".concat(l,"{%%%:%}").concat(g))}return[g,v]};function yd(e,t){return ra("".concat(e.join("%")).concat(t))}function bd(){return null}function Si(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,f=u.useContext(oa),d=f.autoClear,m=f.mock,h=f.defaultCache,b=f.hashPriority,g=f.container,v=f.ssrInline,p=f.transformers,y=f.linters,S=f.cache,E=n._tokenKey,x=[E].concat(me(r)),O=Ba;process.env.NODE_ENV!=="production"&&m!==void 0&&(O=m==="client");var C=Pl("style",x,function(){var A=x.join("|");if(vd(A)){var N=md(A),k=H(N,2),V=k[0],P=k[1];if(V)return[V,E,P,{},s,c]}var w=t(),R=pd(w,{hashId:o,hashPriority:b,layer:i,path:r.join("-"),transformers:p,linters:y}),_=H(R,2),j=_[0],z=_[1],B=Ua(j),Q=yd(x,B);return[B,E,Q,z,s,c]},function(A,N){var k=H(A,3),V=k[2];(N||d)&&Ba&&fo(V,{mark:Fn})},function(A){var N=H(A,4),k=N[0];N[1];var V=N[2],P=N[3];if(O&&k!==_l){var w={mark:Fn,prepend:"queue",attachTo:g,priority:c},R=typeof a=="function"?a():a;R&&(w.csp={nonce:R});var _=Or(k,V,w);_[Zn]=S.instanceId,_.setAttribute(vi,E),process.env.NODE_ENV!=="production"&&_.setAttribute(cf,x.join("|")),Object.keys(P).forEach(function(j){Or(Ua(P[j]),"_effect-".concat(j),w)})}}),T=H(C,3),F=T[0],M=T[1],$=T[2];return function(A){var N;if(!v||O||!h)N=u.createElement(bd,null);else{var k;N=u.createElement("style",Je({},(k={},I(k,vi,M),I(k,Fn,$),k),{dangerouslySetInnerHTML:{__html:F}}))}return u.createElement(u.Fragment,null,N,A)}}var Nt=function(){function e(t,n){on(this,e),I(this,"name",void 0),I(this,"style",void 0),I(this,"_keyframe",!0),this.name=t,this.style=n}return an(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Un(e){return e.notSplit=!0,e}Un(["borderTop","borderBottom"]),Un(["borderTop"]),Un(["borderBottom"]),Un(["borderLeft","borderRight"]),Un(["borderLeft"]),Un(["borderRight"]);var Sd=U.createContext({});const la=Sd;function kl(e){return Cl(e)||ml(e)||ta(e)||xl()}function en(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Vl(e,t,n,r){if(!t.length)return n;var o=kl(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=me(e):s=D({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Vl(s[i],a,n,r),s}function Zt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!en(e,t.slice(0,-1))?e:Vl(e,t,n,r)}function Ed(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ka(e){return Array.isArray(e)?[]:{}}var wd=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ka(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=en(o,a),f=Array.isArray(c);if(f||Ed(c)){if(!l.has(c)){l.add(c);var d=en(r,a);f?r=Zt(r,a,[]):(!d||je(d)!=="object")&&(r=Zt(r,a,Ka(c))),wd(c).forEach(function(m){i([].concat(me(a),[m]),l)})}}else r=Zt(r,a,c)}i([])}),r}function jl(){}let mn=null;function Cd(){mn=null,nl()}let ua=jl;process.env.NODE_ENV!=="production"&&(ua=(e,t,n)=>{De(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Cd()});const Hl=u.createContext({}),Mo=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=u.useContext(Hl),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=mn;mn||(mn={}),mn[e]=mn[e]||[],mn[e].includes(i||"")||mn[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",mn)}else process.env.NODE_ENV!=="production"&&ua(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=jl,e},Io=ua,xd=U.createContext(void 0),Od={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"};var Rd={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Pd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zl=Pd,Md={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"]},Rd),timePickerLocale:Object.assign({},zl)},qa=Md,_t="${label} is not a valid ${type}",Id={locale:"en",Pagination:Od,DatePicker:qa,TimePicker:zl,Calendar:qa,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",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"},PageHeader:{back:"Back"},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:_t,method:_t,array:_t,object:_t,number:_t,date:_t,boolean:_t,integer:_t,float:_t,regexp:_t,email:_t,url:_t,hex:_t},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"},ColorPicker:{presetEmpty:"Empty"}},ar=Id;Object.assign({},ar.Modal);let oo=[];const Ga=()=>oo.reduce((e,t)=>Object.assign(Object.assign({},e),t),ar.Modal);function Td(e){if(e){const t=Object.assign({},e);return oo.push(t),Ga(),()=>{oo=oo.filter(n=>n!==t),Ga()}}Object.assign({},ar.Modal)}const Nd=U.createContext(void 0),ca=Nd,Fd=(e,t)=>{const n=u.useContext(ca),r=u.useMemo(()=>{var i;const a=t||ar[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=u.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?ar.locale:i},[n]);return[r,o]},$d=Fd,Wl="internalMark",Bl=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=Mo("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===Wl,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}u.useEffect(()=>Td(t&&t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(ca.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(Bl.displayName="LocaleProvider");const _d=Bl;function Mt(e,t){Ad(e)&&(e="100%");var n=Dd(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ur(e){return Math.min(1,Math.max(0,e))}function Ad(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Dd(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ul(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function In(e){return e.length===1?"0"+e:String(e)}function Ld(e,t,n){return{r:Mt(e,255)*255,g:Mt(t,255)*255,b:Mt(n,255)*255}}function Xa(e,t,n){e=Mt(e,255),t=Mt(t,255),n=Mt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){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;break}i/=6}return{h:i,s:a,l:s}}function Uo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kd(e,t,n){var r,o,i;if(e=Mt(e,360),t=Mt(t,100),n=Mt(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Uo(s,a,e+1/3),o=Uo(s,a,e),i=Uo(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Ei(e,t,n){e=Mt(e,255),t=Mt(t,255),n=Mt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function Vd(e,t,n){e=Mt(e,360)*6,t=Mt(t,100),n=Mt(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],f=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return{r:c*255,g:f*255,b:d*255}}function wi(e,t,n,r){var o=[In(Math.round(e).toString(16)),In(Math.round(t).toString(16)),In(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jd(e,t,n,r,o){var i=[In(Math.round(e).toString(16)),In(Math.round(t).toString(16)),In(Math.round(n).toString(16)),In(Hd(r))];return o&&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("")}function Hd(e){return Math.round(parseFloat(e)*255).toString(16)}function Ya(e){return Dt(e)/255}function Dt(e){return parseInt(e,16)}function zd(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ci={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 Qn(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Ud(e)),typeof e=="object"&&(dn(e.r)&&dn(e.g)&&dn(e.b)?(t=Ld(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):dn(e.h)&&dn(e.s)&&dn(e.v)?(r=Kr(e.s),o=Kr(e.v),t=Vd(e.h,r,o),a=!0,s="hsv"):dn(e.h)&&dn(e.s)&&dn(e.l)&&(r=Kr(e.s),i=Kr(e.l),t=kd(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ul(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Wd="[-\\+]?\\d+%?",Bd="[-\\+]?\\d*\\.\\d+%?",En="(?:".concat(Bd,")|(?:").concat(Wd,")"),Ko="[\\s|\\(]+(".concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")\\s*\\)?"),qo="[\\s|\\(]+(".concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")\\s*\\)?"),Qt={CSS_UNIT:new RegExp(En),rgb:new RegExp("rgb"+Ko),rgba:new RegExp("rgba"+qo),hsl:new RegExp("hsl"+Ko),hsla:new RegExp("hsla"+qo),hsv:new RegExp("hsv"+Ko),hsva:new RegExp("hsva"+qo),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 Ud(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ci[e])e=Ci[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Qt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Qt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Qt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Qt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qt.hex8.exec(e),n?{r:Dt(n[1]),g:Dt(n[2]),b:Dt(n[3]),a:Ya(n[4]),format:t?"name":"hex8"}:(n=Qt.hex6.exec(e),n?{r:Dt(n[1]),g:Dt(n[2]),b:Dt(n[3]),format:t?"name":"hex"}:(n=Qt.hex4.exec(e),n?{r:Dt(n[1]+n[1]),g:Dt(n[2]+n[2]),b:Dt(n[3]+n[3]),a:Ya(n[4]+n[4]),format:t?"name":"hex8"}:(n=Qt.hex3.exec(e),n?{r:Dt(n[1]+n[1]),g:Dt(n[2]+n[2]),b:Dt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function dn(e){return!!Qt.CSS_UNIT.exec(String(e))}var Pt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=zd(t)),this.originalInput=t;var o=Qn(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Ul(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ei(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ei(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Xa(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Xa(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),wi(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),jd(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Mt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Mt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+wi(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ci);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ur(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ur(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ur(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ur(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));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){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%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(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),qr=2,Qa=.16,Kd=.05,qd=.05,Gd=.15,Kl=5,ql=4,Xd=[{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 Za(e){var t=e.r,n=e.g,r=e.b,o=Ei(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Gr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(wi(t,n,r,!1))}function Yd(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Ja(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-qr*t:Math.round(e.h)+qr*t:r=n?Math.round(e.h)+qr*t:Math.round(e.h)-qr*t,r<0?r+=360:r>=360&&(r-=360),r}function es(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Qa*t:t===ql?r=e.s+Qa:r=e.s+Kd*t,r>1&&(r=1),n&&t===Kl&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ts(e,t,n){var r;return n?r=e.v+qd*t:r=e.v-Gd*t,r>1&&(r=1),Number(r.toFixed(2))}function Ln(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Qn(e),o=Kl;o>0;o-=1){var i=Za(r),a=Gr(Qn({h:Ja(i,o,!0),s:es(i,o,!0),v:ts(i,o,!0)}));n.push(a)}n.push(Gr(r));for(var s=1;s<=ql;s+=1){var l=Za(r),c=Gr(Qn({h:Ja(l,s),s:es(l,s),v:ts(l,s)}));n.push(c)}return t.theme==="dark"?Xd.map(function(f){var d=f.index,m=f.opacity,h=Gr(Yd(Qn(t.backgroundColor||"#141414"),Qn(n[d]),m*100));return h}):n}var Go={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"},io={},Xo={};Object.keys(Go).forEach(function(e){io[e]=Ln(Go[e]),io[e].primary=io[e][5],Xo[e]=Ln(Go[e],{theme:"dark",backgroundColor:"#141414"}),Xo[e].primary=Xo[e][5]});var Qd=io.blue;const Zd=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Jd=Zd;function ev(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Gl={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"},tv=Object.assign(Object.assign({},Gl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
25
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
26
- '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}),Mr=tv;function nv(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:f}=e,d=n(l),m=n(o),h=n(i),b=n(a),g=n(s),v=r(c,f),p=e.colorLink||e.colorInfo,y=n(p);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:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg: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:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Pt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const rv=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},ov=rv;function iv(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},ov(r))}const vn=(e,t)=>new Pt(e).setAlpha(t).toRgbString(),mr=(e,t)=>new Pt(e).darken(t).toHexString(),av=e=>{const t=Ln(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]}},sv=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:vn(r,.88),colorTextSecondary:vn(r,.65),colorTextTertiary:vn(r,.45),colorTextQuaternary:vn(r,.25),colorFill:vn(r,.15),colorFillSecondary:vn(r,.06),colorFillTertiary:vn(r,.04),colorFillQuaternary:vn(r,.02),colorBgLayout:mr(n,4),colorBgContainer:mr(n,0),colorBgElevated:mr(n,0),colorBgSpotlight:vn(r,.85),colorBgBlur:"transparent",colorBorder:mr(n,15),colorBorderSecondary:mr(n,6)}};function lv(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const uv=e=>{const t=lv(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},cv=uv;function fv(e){const t=Object.keys(Gl).map(n=>{const r=Ln(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),nv(e,{generateColorPalettes:av,generateNeutralColorPalettes:sv})),cv(e.fontSize)),ev(e)),Jd(e)),iv(e))}const Xl=hi(fv),Yl={token:Mr,override:{override:Mr},hashed:!0},Ql=U.createContext(Yl),Zl="anticon",dv=(e,t)=>t||(e?`ant-${e}`:"ant"),xn=u.createContext({getPrefixCls:dv,iconPrefixCls:Zl}),vv=`-ant-${Date.now()}-${Math.random()}`;function mv(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Pt(a),c=Ln(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Pt(t.primaryColor),s=Ln(a.toRgbString());s.forEach((c,f)=>{n[`primary-${f+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new Pt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
27
- :root {
28
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
29
- `)}
30
- }
31
- `.trim()}function hv(e,t){const n=mv(e,t);Tt()?Or(n,`${vv}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Io(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const xi=u.createContext(!1),gv=e=>{let{children:t,disabled:n}=e;const r=u.useContext(xi);return u.createElement(xi.Provider,{value:n??r},t)},Jl=xi,Oi=u.createContext(void 0),pv=e=>{let{children:t,size:n}=e;const r=u.useContext(Oi);return u.createElement(Oi.Provider,{value:n||r},t)},To=Oi;function yv(){const e=U.useContext(Jl),t=U.useContext(To);return{componentDisabled:e,componentSize:t}}const bv="5.11.0";function Yo(e){return e>=0&&e<=255}function Xr(e,t){const{r:n,g:r,b:o,a:i}=new Pt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Pt(t).toRgb();for(let c=.01;c<=1;c+=.01){const f=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Yo(f)&&Yo(d)&&Yo(m))return new Pt({r:f,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Pt({r:n,g:r,b:o,a:1}).toRgbString()}var Sv=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eu(e){const{override:t}=e,n=Sv(e,["override"]),r=Object.assign({},t);Object.keys(Mr).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,f=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Xr(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Xr(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xr(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Xr(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
32
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
33
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
34
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
35
- `,boxShadowSecondary:`
36
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
37
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
38
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
39
- `,boxShadowTertiary:`
40
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
41
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
42
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
43
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
44
- 0 1px 2px -2px ${new Pt("rgba(0, 0, 0, 0.16)").toRgbString()},
45
- 0 3px 6px 0 ${new Pt("rgba(0, 0, 0, 0.12)").toRgbString()},
46
- 0 5px 12px 4px ${new Pt("rgba(0, 0, 0, 0.09)").toRgbString()}
47
- `,boxShadowDrawerRight:`
48
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
49
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
50
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
51
- `,boxShadowDrawerLeft:`
52
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
53
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
54
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
55
- `,boxShadowDrawerUp:`
56
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
57
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
58
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
59
- `,boxShadowDrawerDown:`
60
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
61
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
62
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
63
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ns=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tu=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ns(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=eu(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:f}=c,d=ns(c,["theme"]);let m=d;f&&(m=tu(Object.assign(Object.assign({},a),d),{override:d},f)),a[l]=m}),a};function ur(){const{token:e,hashed:t,theme:n,override:r}=U.useContext(Ql),o=`${bv}-${t||""}`,i=n||Xl,[a,s]=Uf(i,[Mr,e],{salt:o,override:r,getComputedToken:tu,formatToken:eu});return[i,a,t?s:""]}function Bt(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function nr(e){var t=u.useRef(!1),n=u.useState(e),r=H(n,2),o=r[0],i=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function Qo(e){return e!==void 0}function mo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=nr(function(){return Qo(o)?o:Qo(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=H(s,2),c=l[0],f=l[1],d=o!==void 0?o:c,m=a?a(d):d,h=Bt(i),b=nr([d]),g=H(b,2),v=g[0],p=g[1];Va(function(){var S=v[0];c!==S&&h(c,S)},[v]),Va(function(){Qo(o)||f(o)},[o]);var y=Bt(function(S,E){f(S,E),p([d],E)});return[m,y]}const Ri={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},fa=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},da=()=>({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"}}),Ev=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),wv=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},nu=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Pi=!0;function nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!nu)return Object.assign.apply(Object,[{}].concat(t));Pi=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),Pi=!0,r}const rs={};function Cv(){}function xv(e){let t,n=e,r=Cv;return nu&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return Pi&&t.add(i),o[i]}}),r=(o,i)=>{var a;rs[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=rs[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}}const Ov=(e,t)=>{const[n,r]=ur();return Si({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},da()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},ru=Ov;function ou(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return s=>{const[l,c,f]=ur(),{getPrefixCls:d,iconPrefixCls:m,csp:h}=U.useContext(xn),b=d(),g={theme:l,token:c,hashId:f,nonce:()=>h==null?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Si(Object.assign(Object.assign({},g),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":Ev(c)}]),ru(m,h),[Si(Object.assign(Object.assign({},g),{path:[a,s,m]}),()=>{const{token:v,flush:p}=xv(c),y=Object.assign({},c[i]);if(r.deprecatedTokens){const{deprecatedTokens:T}=r;T.forEach(F=>{let[M,$]=F;var A;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&De(!(y!=null&&y[M]),`The token '${String(M)}' of ${i} had deprecated, use '${String($)}' instead.`),(y!=null&&y[M]||y!=null&&y[$])&&((A=y[$])!==null&&A!==void 0||(y[$]=y==null?void 0:y[M]))})}const S=typeof n=="function"?n(nn(v,y??{})):n,E=Object.assign(Object.assign({},S),y),x=`.${s}`,O=nn(v,{componentCls:x,prefixCls:s,iconCls:`.${m}`,antCls:`.${b}`},E),C=t(O,{hashId:f,prefixCls:s,rootPrefixCls:b,iconPrefixCls:m,overrideComponentToken:y});return p(i,E),[r.resetStyle===!1?null:wv(c,s),C]}),f]}}function Rv(e,t){const n=e||{},r=n.inherit===!1||!t?Yl:t;return bo(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,s)=>{const l=i[s];return!yl(a,l,!0)}))}var Pv=["children"],iu=u.createContext({});function Mv(e){var t=e.children,n=St(e,Pv);return u.createElement(iu.Provider,{value:n},t)}var Iv=function(e){Co(n,e);var t=xo(n);function n(){return on(this,n),t.apply(this,arguments)}return an(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component),Pn="none",Yr="appear",Qr="enter",Zr="leave",os="none",Jt="prepare",er="start",tr="active",va="end",au="prepared";function is(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Tv(e,t){var n={animationend:is("Animation","AnimationEnd"),transitionend:is("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Nv=Tv(Tt(),typeof window<"u"?window:{}),su={};if(Tt()){var Fv=document.createElement("div");su=Fv.style}var Jr={};function lu(e){if(Jr[e])return Jr[e];var t=Nv[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in su)return Jr[e]=t[i],Jr[e]}return""}var uu=lu("animationend"),cu=lu("transitionend"),fu=!!(uu&&cu),as=uu||"animationend",ss=cu||"transitionend";function ls(e,t){if(!e)return null;if(je(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const $v=function(e){var t=U.useRef(),n=U.useRef(e);n.current=e;var r=u.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(ss,r),a.removeEventListener(as,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(ss,r),a.addEventListener(as,r),t.current=a)}return u.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var du=Tt()?U.useLayoutEffect:U.useEffect;const _v=function(){var e=u.useRef(null);function t(){It.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=It(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var Av=[Jt,er,tr,va],Dv=[Jt,au],vu=!1,Lv=!0;function mu(e){return e===tr||e===va}const kv=function(e,t,n){var r=nr(os),o=H(r,2),i=o[0],a=o[1],s=_v(),l=H(s,2),c=l[0],f=l[1];function d(){a(Jt,!0)}var m=t?Dv:Av;return du(function(){if(i!==os&&i!==va){var h=m.indexOf(i),b=m[h+1],g=n(i);g===vu?a(b,!0):b&&c(function(v){function p(){v.isCanceled()||a(b,!0)}g===!0?p():Promise.resolve(g).then(p)})}},[e,i]),u.useEffect(function(){return function(){f()}},[]),[d,i]};function Vv(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,f=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,b=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,p=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,x=r.onAppearEnd,O=r.onEnterEnd,C=r.onLeaveEnd,T=r.onVisibleChanged,F=nr(),M=H(F,2),$=M[0],A=M[1],N=nr(Pn),k=H(N,2),V=k[0],P=k[1],w=nr(null),R=H(w,2),_=R[0],j=R[1],z=U.useRef(!1),B=U.useRef(null);function Q(){return n()}var ee=U.useRef(!1);function Z(){P(Pn,!0),j(null,!0)}function Pe(fe){var he=Q();if(!(fe&&!fe.deadline&&fe.target!==he)){var Ee=ee.current,de;V===Yr&&Ee?de=x==null?void 0:x(he,fe):V===Qr&&Ee?de=O==null?void 0:O(he,fe):V===Zr&&Ee&&(de=C==null?void 0:C(he,fe)),V!==Pn&&Ee&&de!==!1&&Z()}}var ye=$v(Pe),X=H(ye,1),q=X[0],Y=function(he){var Ee,de,He;switch(he){case Yr:return Ee={},I(Ee,Jt,m),I(Ee,er,g),I(Ee,tr,y),Ee;case Qr:return de={},I(de,Jt,h),I(de,er,v),I(de,tr,S),de;case Zr:return He={},I(He,Jt,b),I(He,er,p),I(He,tr,E),He;default:return{}}},se=u.useMemo(function(){return Y(V)},[V]),oe=kv(V,!e,function(fe){if(fe===Jt){var he=se[Jt];return he?he(Q()):vu}if(ce in se){var Ee;j(((Ee=se[ce])===null||Ee===void 0?void 0:Ee.call(se,Q(),null))||null)}return ce===tr&&(q(Q()),f>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Pe({deadline:!0})},f))),ce===au&&Z(),Lv}),G=H(oe,2),L=G[0],ce=G[1],Se=mu(ce);ee.current=Se,du(function(){A(t);var fe=z.current;z.current=!0;var he;!fe&&t&&s&&(he=Yr),fe&&t&&i&&(he=Qr),(fe&&!t&&c||!fe&&d&&!t&&c)&&(he=Zr);var Ee=Y(he);he&&(e||Ee[Jt])?(P(he),L()):P(Pn)},[t]),U.useEffect(function(){(V===Yr&&!s||V===Qr&&!i||V===Zr&&!c)&&P(Pn)},[s,i,c]),U.useEffect(function(){return function(){z.current=!1,clearTimeout(B.current)}},[]);var we=u.useRef(!1);U.useEffect(function(){$&&(we.current=!0),$!==void 0&&V===Pn&&((we.current||$)&&(T==null||T($)),we.current=!0)},[$,V]);var ie=_;return se[Jt]&&ce===er&&(ie=D({transition:"none"},ie)),[V,ce,ie,$??t]}function jv(e){var t=e;je(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=u.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,f=o.forceRender,d=o.children,m=o.motionName,h=o.leavedClassName,b=o.eventProps,g=u.useContext(iu),v=g.motion,p=n(o,v),y=U.useRef(),S=U.useRef();function E(){try{return y.current instanceof HTMLElement?y.current:br(S.current)}catch{return null}}var x=Vv(p,s,E,o),O=H(x,4),C=O[0],T=O[1],F=O[2],M=O[3],$=u.useRef(M);M&&($.current=!0);var A=u.useCallback(function(j){y.current=j,Ji(i,j)},[i]),N,k=D(D({},b),{},{visible:s});if(!d)N=null;else if(C===Pn)M?N=d(D({},k),A):!c&&$.current&&h?N=d(D(D({},k),{},{className:h}),A):f||!c&&!h?N=d(D(D({},k),{},{style:{display:"none"}}),A):N=null;else{var V,P;T===Jt?P="prepare":mu(T)?P="active":T===er&&(P="start");var w=ls(m,"".concat(C,"-").concat(P));N=d(D(D({},k),{},{className:Ye(ls(m,C),(V={},I(V,w,w&&P),I(V,m,typeof m=="string"),V)),style:F}),A)}if(u.isValidElement(N)&&Eo(N)){var R=N,_=R.ref;_||(N=u.cloneElement(N,{ref:A}))}return u.createElement(Iv,{ref:S},N)});return r.displayName="CSSMotion",r}const ma=jv(fu);var Mi="add",Ii="keep",Ti="remove",Zo="removed";function Hv(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function Ni(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Hv)}function zv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Ni(e),a=Ni(t);i.forEach(function(c){for(var f=!1,d=r;d<o;d+=1){var m=a[d];if(m.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(h){return D(D({},h),{},{status:Mi})})),r=d),n.push(D(D({},m),{},{status:Ii})),r+=1,f=!0;break}}f||n.push(D(D({},c),{},{status:Ti}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return D(D({},c),{},{status:Mi})})));var s={};n.forEach(function(c){var f=c.key;s[f]=(s[f]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(f){var d=f.key,m=f.status;return d!==c||m!==Ti}),n.forEach(function(f){f.key===c&&(f.status=Ii)})}),n}var Wv=["component","children","onVisibleChanged","onAllRemoved"],Bv=["status"],Uv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Kv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma,n=function(r){Co(i,r);var o=xo(i);function i(){var a;on(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),I(ze(a),"state",{keyEntities:[]}),I(ze(a),"removeKey",function(f){var d=a.state.keyEntities,m=d.map(function(h){return h.key!==f?h:D(D({},h),{},{status:Zo})});return a.setState({keyEntities:m}),m.filter(function(h){var b=h.status;return b!==Zo}).length}),a}return an(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,f=c.component,d=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,b=St(c,Wv),g=f||u.Fragment,v={};return Uv.forEach(function(p){v[p]=b[p],delete b[p]}),delete b.keys,u.createElement(g,b,l.map(function(p,y){var S=p.status,E=St(p,Bv),x=S===Mi||S===Ii;return u.createElement(t,Je({},v,{key:E.key,visible:x,eventProps:E,onVisibleChanged:function(C){if(m==null||m(C,{key:E.key}),!C){var T=s.removeKey(E.key);T===0&&h&&h()}}}),function(O,C){return d(D(D({},O),{},{index:y}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,f=l.keyEntities,d=Ni(c),m=zv(f,d);return{keyEntities:m.filter(function(h){var b=f.find(function(g){var v=g.key;return h.key===v});return!(b&&b.status===Zo&&h.status===Ti)})}}}]),i}(u.Component);return I(n,"defaultProps",{component:"div"}),n}Kv(fu);function qv(e){const{children:t}=e,[,n]=ur(),{motion:r}=n,o=u.useRef(!1);return o.current=o.current||r===!1,o.current?u.createElement(Mv,{motion:r},t):t}const hu=u.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Mo("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(hu.displayName="PropWarning");const Gv=process.env.NODE_ENV!=="production"?hu:()=>null;var Xv=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Fi=!1;process.env.NODE_ENV;const Yv=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Qv="ant";let gu;function Zv(){return gu||Qv}function Jv(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const em=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(gu=t),r&&Jv(r)&&(process.env.NODE_ENV!=="production"&&Io(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),hv(Zv(),r))},tm=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:f,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:g,parentContext:v,iconPrefixCls:p,theme:y,componentDisabled:S,segmented:E,statistic:x,spin:O,calendar:C,carousel:T,cascader:F,collapse:M,typography:$,checkbox:A,descriptions:N,divider:k,drawer:V,skeleton:P,steps:w,image:R,layout:_,list:j,mentions:z,modal:B,progress:Q,result:ee,slider:Z,breadcrumb:Pe,menu:ye,pagination:X,input:q,empty:Y,badge:se,radio:oe,rate:G,switch:L,transfer:ce,avatar:Se,message:we,tag:ie,table:fe,card:he,tabs:Ee,timeline:de,timePicker:He,upload:rt,notification:ke,tree:pe,colorPicker:tt,datePicker:Oe,rangePicker:Me,flex:Qe,wave:Ie,dropdown:pt,warning:yt}=e,Rt=u.useCallback((ge,Fe)=>{const{prefixCls:ne}=e;if(Fe)return Fe;const ue=ne||v.getPrefixCls("");return ge?`${ue}-${ge}`:ue},[v.getPrefixCls,e.prefixCls]),nt=p||v.iconPrefixCls||Zl,Ke=n||v.csp;ru(nt,Ke);const Ge=Rv(y,v.theme);process.env.NODE_ENV!=="production"&&(Fi=Fi||!!Ge);const Ze={csp:Ke,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:f,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:b,getPrefixCls:Rt,iconPrefixCls:nt,theme:Ge,segmented:E,statistic:x,spin:O,calendar:C,carousel:T,cascader:F,collapse:M,typography:$,checkbox:A,descriptions:N,divider:k,drawer:V,skeleton:P,steps:w,image:R,input:q,layout:_,list:j,mentions:z,modal:B,progress:Q,result:ee,slider:Z,breadcrumb:Pe,menu:ye,pagination:X,empty:Y,badge:se,radio:oe,rate:G,switch:L,transfer:ce,avatar:Se,message:we,tag:ie,table:fe,card:he,tabs:Ee,timeline:de,timePicker:He,upload:rt,notification:ke,tree:pe,colorPicker:tt,datePicker:Oe,rangePicker:Me,flex:Qe,wave:Ie,dropdown:pt,warning:yt},$e=Object.assign({},v);Object.keys(Ze).forEach(ge=>{Ze[ge]!==void 0&&($e[ge]=Ze[ge])}),Yv.forEach(ge=>{const Fe=e[ge];Fe&&($e[ge]=Fe)});const dt=bo(()=>$e,$e,(ge,Fe)=>{const ne=Object.keys(ge),ue=Object.keys(Fe);return ne.length!==ue.length||ne.some(W=>ge[W]!==Fe[W])}),vt=u.useMemo(()=>({prefixCls:nt,csp:Ke}),[nt,Ke]);let Te=u.createElement(u.Fragment,null,u.createElement(Gv,{dropdownMatchSelectWidth:m}),t);const _e=u.useMemo(()=>{var ge,Fe,ne,ue;return Jn(((ge=ar.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((ne=(Fe=dt.locale)===null||Fe===void 0?void 0:Fe.Form)===null||ne===void 0?void 0:ne.defaultValidateMessages)||{},((ue=dt.form)===null||ue===void 0?void 0:ue.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[dt,a==null?void 0:a.validateMessages]);Object.keys(_e).length>0&&(Te=u.createElement(xd.Provider,{value:_e},Te)),s&&(Te=u.createElement(_d,{locale:s,_ANT_MARK__:Wl},Te)),(nt||Ke)&&(Te=u.createElement(la.Provider,{value:vt},Te)),l&&(Te=u.createElement(pv,{size:l},Te)),Te=u.createElement(qv,null,Te);const Ve=u.useMemo(()=>{const ge=Ge||{},{algorithm:Fe,token:ne,components:ue}=ge,W=Xv(ge,["algorithm","token","components"]),te=Fe&&(!Array.isArray(Fe)||Fe.length>0)?hi(Fe):Xl,J={};Object.entries(ue||{}).forEach(Ne=>{let[Ae,ut]=Ne;const qe=Object.assign({},ut);"algorithm"in qe&&(qe.algorithm===!0?qe.theme=te:(Array.isArray(qe.algorithm)||typeof qe.algorithm=="function")&&(qe.theme=hi(qe.algorithm)),delete qe.algorithm),J[Ae]=qe});const re=Object.assign(Object.assign({},Mr),ne);return Object.assign(Object.assign({},W),{theme:te,token:re,components:J,override:Object.assign({override:re},J)})},[Ge]);return y&&(Te=u.createElement(Ql.Provider,{value:Ve},Te)),dt.warning&&(Te=u.createElement(Hl.Provider,{value:dt.warning},Te)),S!==void 0&&(Te=u.createElement(gv,{disabled:S},Te)),u.createElement(xn.Provider,{value:dt},Te)},Vn=e=>{const t=u.useContext(xn),n=u.useContext(ca);return u.createElement(tm,Object.assign({parentContext:t,legacyLocale:n},e))};Vn.ConfigContext=xn;Vn.SizeContext=To;Vn.config=em;Vn.useConfig=yv;Object.defineProperty(Vn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Io(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),To)});process.env.NODE_ENV!=="production"&&(Vn.displayName="ConfigProvider");function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function nm(e){if(Array.isArray(e))return e}function rm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,o=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function om(e,t){if(e){if(typeof e=="string")return us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return us(e,t)}}function im(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pu(e,t){return nm(e)||rm(e,t)||om(e,t)||im()}function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function am(e,t){if(kn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sm(e){var t=am(e,"string");return kn(t)==="symbol"?t:String(t)}function $i(e,t,n){return t=sm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function yu(e,t){if(e==null)return{};var n=lm(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cs(Object(n),!0).forEach(function(r){$i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function cm(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 fs="data-rc-order",ds="data-rc-priority",fm="rc-util-key",_i=new Map;function bu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):fm}function ha(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Su(e){return Array.from((_i.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Eu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!um())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=dm(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(fs,a),s&&i&&l.setAttribute(ds,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=ha(t),f=c.firstChild;if(r){if(s){var d=Su(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(fs)))return!1;var h=Number(m.getAttribute(ds)||0);return i>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,f)}else c.appendChild(l);return l}function vm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ha(t);return Su(n).find(function(r){return r.getAttribute(bu(t))===e})}function mm(e,t){var n=_i.get(e);if(!n||!cm(document,n)){var r=Eu("",t),o=r.parentNode;_i.set(e,o),e.removeChild(r)}}function hm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ha(n);mm(r,n);var o=vm(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=Eu(e,n);return l.setAttribute(bu(n),t),l}function wu(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function gm(e){return wu(e)instanceof ShadowRoot}function pm(e){return gm(e)?wu(e):null}var Ai={},ga=[],ym=function(t){ga.push(t)};function bm(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ga.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Sm(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=ga.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Em(){Ai={}}function Cu(e,t,n){!t&&!Ai[n]&&(e(!1,n),Ai[n]=!0)}function No(e,t){Cu(bm,e,t)}function wm(e,t){Cu(Sm,e,t)}No.preMessage=ym;No.resetWarned=Em;No.noteOnce=wm;function Cm(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function xm(e,t){No(e,"[@ant-design/icons] ".concat(t))}function vs(e){return kn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(kn(e.icon)==="object"||typeof e.icon=="function")}function ms(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Cm(n)]=r}return t},{})}function Di(e,t,n){return n?U.createElement(e.tag,wn(wn({key:t},ms(e.attrs)),n),(e.children||[]).map(function(r,o){return Di(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):U.createElement(e.tag,wn({key:t},ms(e.attrs)),(e.children||[]).map(function(r,o){return Di(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function xu(e){return Ln(e)[0]}function Ou(e){return e?Array.isArray(e)?e:[e]:[]}var Om=`
65
- .anticon {
66
- display: inline-block;
67
- color: inherit;
68
- font-style: normal;
69
- line-height: 0;
70
- text-align: center;
71
- text-transform: none;
72
- vertical-align: -0.125em;
73
- text-rendering: optimizeLegibility;
74
- -webkit-font-smoothing: antialiased;
75
- -moz-osx-font-smoothing: grayscale;
76
- }
77
-
78
- .anticon > * {
79
- line-height: 1;
80
- }
81
-
82
- .anticon svg {
83
- display: inline-block;
84
- }
85
-
86
- .anticon::before {
87
- display: none;
88
- }
89
-
90
- .anticon .anticon-icon {
91
- display: block;
92
- }
93
-
94
- .anticon[tabindex] {
95
- cursor: pointer;
96
- }
97
-
98
- .anticon-spin::before,
99
- .anticon-spin {
100
- display: inline-block;
101
- -webkit-animation: loadingCircle 1s infinite linear;
102
- animation: loadingCircle 1s infinite linear;
103
- }
104
-
105
- @-webkit-keyframes loadingCircle {
106
- 100% {
107
- -webkit-transform: rotate(360deg);
108
- transform: rotate(360deg);
109
- }
110
- }
111
-
112
- @keyframes loadingCircle {
113
- 100% {
114
- -webkit-transform: rotate(360deg);
115
- transform: rotate(360deg);
116
- }
117
- }
118
- `,Rm=function(t){var n=U.useContext(la),r=n.csp,o=n.prefixCls,i=Om;o&&(i=i.replace(/anticon/g,o)),U.useEffect(function(){var a=t.current,s=pm(a);hm(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Pm=["icon","className","onClick","style","primaryColor","secondaryColor"],Er={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Mm(e){var t=e.primaryColor,n=e.secondaryColor;Er.primaryColor=t,Er.secondaryColor=n||xu(t),Er.calculated=!!n}function Im(){return wn({},Er)}var Fo=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=yu(t,Pm),c=u.useRef(),f=Er;if(a&&(f={primaryColor:a,secondaryColor:s||xu(a)}),Rm(c),xm(vs(n),"icon should be icon definiton, but got ".concat(n)),!vs(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=wn(wn({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),Di(d.icon,"svg-".concat(d.name),wn(wn({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Fo.displayName="IconReact";Fo.getTwoToneColors=Im;Fo.setTwoToneColors=Mm;const pa=Fo;function Ru(e){var t=Ou(e),n=pu(t,2),r=n[0],o=n[1];return pa.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Tm(){var e=pa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Nm=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ru(Qd.primary);var $o=u.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,f=yu(e,Nm),d=u.useContext(la),m=d.prefixCls,h=m===void 0?"anticon":m,b=d.rootClassName,g=Ye(b,h,(n={},$i(n,"".concat(h,"-").concat(o.name),!!o.name),$i(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),v=s;v===void 0&&l&&(v=-1);var p=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Ou(c),S=pu(y,2),E=S[0],x=S[1];return u.createElement("span",pn({role:"img","aria-label":o.name},f,{ref:t,tabIndex:v,onClick:l,className:g}),u.createElement(pa,{icon:o,primaryColor:E,secondaryColor:x,style:p}))});$o.displayName="AntdIcon";$o.getTwoToneColor=Tm;$o.setTwoToneColor=Ru;const cr=$o;var Fm={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 $m=Fm;var Pu=function(t,n){return u.createElement(cr,pn({},t,{ref:n,icon:$m}))};process.env.NODE_ENV!=="production"&&(Pu.displayName="CloseCircleFilled");const _m=u.forwardRef(Pu);var Am={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 Dm=Am;var Mu=function(t,n){return u.createElement(cr,pn({},t,{ref:n,icon:Dm}))};process.env.NODE_ENV!=="production"&&(Mu.displayName="CloseOutlined");const Lm=u.forwardRef(Mu);var km=`accept acceptCharset accessKey action allowFullScreen allowTransparency
119
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
120
- charSet checked classID className colSpan cols content contentEditable contextMenu
121
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
122
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
123
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
124
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
125
- mediaGroup method min minLength multiple muted name noValidate nonce open
126
- optimum pattern placeholder poster preload radioGroup readOnly rel required
127
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
128
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
129
- summary tabIndex target title type useMap value width wmode wrap`,Vm=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
130
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
131
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
132
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
133
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
134
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
135
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,jm="".concat(km," ").concat(Vm).split(/[\s\n]+/),Hm="aria-",zm="data-";function hs(e,t){return e.indexOf(t)===0}function ho(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=D({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||hs(o,Hm))||n.data&&hs(o,zm)||n.attr&&jm.includes(o))&&(r[o]=e[o])}),r}var K={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=K.F1&&n<=K.F12)return!1;switch(n){case K.ALT:case K.CAPS_LOCK:case K.CONTEXT_MENU:case K.CTRL:case K.DOWN:case K.END:case K.ESC:case K.HOME:case K.INSERT:case K.LEFT:case K.MAC_FF_META:case K.META:case K.NUMLOCK:case K.NUM_CENTER:case K.PAGE_DOWN:case K.PAGE_UP:case K.PAUSE:case K.PRINT_SCREEN:case K.RIGHT:case K.SHIFT:case K.UP:case K.WIN_KEY:case K.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=K.ZERO&&t<=K.NINE||t>=K.NUM_ZERO&&t<=K.NUM_MULTIPLY||t>=K.A&&t<=K.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case K.SPACE:case K.QUESTION_MARK:case K.NUM_PLUS:case K.NUM_MINUS:case K.NUM_PERIOD:case K.NUM_DIVISION:case K.SEMICOLON:case K.DASH:case K.EQUALS:case K.COMMA:case K.PERIOD:case K.SLASH:case K.APOSTROPHE:case K.SINGLE_QUOTE:case K.OPEN_SQUARE_BRACKET:case K.BACKSLASH:case K.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Wm={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 Bm=Wm;var Iu=function(t,n){return u.createElement(cr,pn({},t,{ref:n,icon:Bm}))};process.env.NODE_ENV!=="production"&&(Iu.displayName="LoadingOutlined");const Um=u.forwardRef(Iu);function rn(){rn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(P,w,R){P[w]=R.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(P,w,R){return Object.defineProperty(P,w,{value:R,enumerable:!0,configurable:!0,writable:!0}),P[w]}try{c({},"")}catch{c=function(R,_,j){return R[_]=j}}function f(P,w,R,_){var j=w&&w.prototype instanceof p?w:p,z=Object.create(j.prototype),B=new k(_||[]);return o(z,"_invoke",{value:M(P,R,B)}),z}function d(P,w,R){try{return{type:"normal",arg:P.call(w,R)}}catch(_){return{type:"throw",arg:_}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",b="executing",g="completed",v={};function p(){}function y(){}function S(){}var E={};c(E,a,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(V([])));O&&O!==n&&r.call(O,a)&&(E=O);var C=S.prototype=p.prototype=Object.create(E);function T(P){["next","throw","return"].forEach(function(w){c(P,w,function(R){return this._invoke(w,R)})})}function F(P,w){function R(j,z,B,Q){var ee=d(P[j],P,z);if(ee.type!=="throw"){var Z=ee.arg,Pe=Z.value;return Pe&&je(Pe)=="object"&&r.call(Pe,"__await")?w.resolve(Pe.__await).then(function(ye){R("next",ye,B,Q)},function(ye){R("throw",ye,B,Q)}):w.resolve(Pe).then(function(ye){Z.value=ye,B(Z)},function(ye){return R("throw",ye,B,Q)})}Q(ee.arg)}var _;o(this,"_invoke",{value:function(z,B){function Q(){return new w(function(ee,Z){R(z,B,ee,Z)})}return _=_?_.then(Q,Q):Q()}})}function M(P,w,R){var _=m;return function(j,z){if(_===b)throw new Error("Generator is already running");if(_===g){if(j==="throw")throw z;return{value:e,done:!0}}for(R.method=j,R.arg=z;;){var B=R.delegate;if(B){var Q=$(B,R);if(Q){if(Q===v)continue;return Q}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(_===m)throw _=g,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);_=b;var ee=d(P,w,R);if(ee.type==="normal"){if(_=R.done?g:h,ee.arg===v)continue;return{value:ee.arg,done:R.done}}ee.type==="throw"&&(_=g,R.method="throw",R.arg=ee.arg)}}}function $(P,w){var R=w.method,_=P.iterator[R];if(_===e)return w.delegate=null,R==="throw"&&P.iterator.return&&(w.method="return",w.arg=e,$(P,w),w.method==="throw")||R!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+R+"' method")),v;var j=d(_,P.iterator,w.arg);if(j.type==="throw")return w.method="throw",w.arg=j.arg,w.delegate=null,v;var z=j.arg;return z?z.done?(w[P.resultName]=z.value,w.next=P.nextLoc,w.method!=="return"&&(w.method="next",w.arg=e),w.delegate=null,v):z:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,v)}function A(P){var w={tryLoc:P[0]};1 in P&&(w.catchLoc=P[1]),2 in P&&(w.finallyLoc=P[2],w.afterLoc=P[3]),this.tryEntries.push(w)}function N(P){var w=P.completion||{};w.type="normal",delete w.arg,P.completion=w}function k(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(A,this),this.reset(!0)}function V(P){if(P||P===""){var w=P[a];if(w)return w.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var R=-1,_=function j(){for(;++R<P.length;)if(r.call(P,R))return j.value=P[R],j.done=!1,j;return j.value=e,j.done=!0,j};return _.next=_}}throw new TypeError(je(P)+" is not iterable")}return y.prototype=S,o(C,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:y,configurable:!0}),y.displayName=c(S,l,"GeneratorFunction"),t.isGeneratorFunction=function(P){var w=typeof P=="function"&&P.constructor;return!!w&&(w===y||(w.displayName||w.name)==="GeneratorFunction")},t.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,S):(P.__proto__=S,c(P,l,"GeneratorFunction")),P.prototype=Object.create(C),P},t.awrap=function(P){return{__await:P}},T(F.prototype),c(F.prototype,s,function(){return this}),t.AsyncIterator=F,t.async=function(P,w,R,_,j){j===void 0&&(j=Promise);var z=new F(f(P,w,R,_),j);return t.isGeneratorFunction(w)?z:z.next().then(function(B){return B.done?B.value:z.next()})},T(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(P){var w=Object(P),R=[];for(var _ in w)R.push(_);return R.reverse(),function j(){for(;R.length;){var z=R.pop();if(z in w)return j.value=z,j.done=!1,j}return j.done=!0,j}},t.values=V,k.prototype={constructor:k,reset:function(w){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(N),!w)for(var R in this)R.charAt(0)==="t"&&r.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=e)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var R=this;function _(Z,Pe){return B.type="throw",B.arg=w,R.next=Z,Pe&&(R.method="next",R.arg=e),!!Pe}for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j],B=z.completion;if(z.tryLoc==="root")return _("end");if(z.tryLoc<=this.prev){var Q=r.call(z,"catchLoc"),ee=r.call(z,"finallyLoc");if(Q&&ee){if(this.prev<z.catchLoc)return _(z.catchLoc,!0);if(this.prev<z.finallyLoc)return _(z.finallyLoc)}else if(Q){if(this.prev<z.catchLoc)return _(z.catchLoc,!0)}else{if(!ee)throw new Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return _(z.finallyLoc)}}}},abrupt:function(w,R){for(var _=this.tryEntries.length-1;_>=0;--_){var j=this.tryEntries[_];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var z=j;break}}z&&(w==="break"||w==="continue")&&z.tryLoc<=R&&R<=z.finallyLoc&&(z=null);var B=z?z.completion:{};return B.type=w,B.arg=R,z?(this.method="next",this.next=z.finallyLoc,v):this.complete(B)},complete:function(w,R){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&R&&(this.next=R),v},finish:function(w){for(var R=this.tryEntries.length-1;R>=0;--R){var _=this.tryEntries[R];if(_.finallyLoc===w)return this.complete(_.completion,_.afterLoc),N(_),v}},catch:function(w){for(var R=this.tryEntries.length-1;R>=0;--R){var _=this.tryEntries[R];if(_.tryLoc===w){var j=_.completion;if(j.type==="throw"){var z=j.arg;N(_)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(w,R,_){return this.delegate={iterator:V(w),resultName:R,nextLoc:_},this.method==="next"&&(this.arg=e),v}},t}function gs(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o)}function Nr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){gs(i,r,o,a,s,"next",l)}function s(l){gs(i,r,o,a,s,"throw",l)}a(void 0)})}}const Km=(e,t,n)=>n!==void 0?n:`${e}-${t}`,qm=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},Gm=e=>{const t=U.useContext(To);return U.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Xm=Gm;globalThis&&globalThis.__rest;const Ym=u.createContext(null),Qm=(e,t)=>{const n=u.useContext(Ym),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return Ye(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}};function Zm(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Jm(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function eh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Zm(e,r,t)),Jm(n,r,t))}}var Tu=u.createContext(null),ps=[];function th(e,t){var n=u.useState(function(){if(!Tt())return null;var b=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&b.setAttribute("data-debug",t),b}),r=H(n,1),o=r[0],i=u.useRef(!1),a=u.useContext(Tu),s=u.useState(ps),l=H(s,2),c=l[0],f=l[1],d=a||(i.current?void 0:function(b){f(function(g){var v=[b].concat(me(g));return v})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function h(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),i.current=!1}return lt(function(){return e?a?a(m):m():h(),h},[e]),lt(function(){c.length&&(c.forEach(function(b){return b()}),f(ps))},[c]),[o,d]}var Jo;function nh(e){if(typeof document>"u")return 0;if(e||Jo===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Jo=o-i}return Jo}function ys(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?nh():n}function rh(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:ys(n),height:ys(r)}}function oh(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ih="rc-util-locker-".concat(Date.now()),bs=0;function ah(e){var t=!!e,n=u.useState(function(){return bs+=1,"".concat(ih,"_").concat(bs)}),r=H(n,1),o=r[0];lt(function(){if(t){var i=rh(document.body).width,a=oh();Or(`
136
- html body {
137
- overflow-y: hidden;
138
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
139
- }`),o)}else fo(o);return function(){fo(o)}},[t,o])}var Ss=!1;function sh(e){return typeof e=="boolean"&&(Ss=e),Ss}var Es=function(t){return t===!1?!1:!Tt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ya=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=u.useState(n),f=H(c,2),d=f[0],m=f[1],h=d||n;process.env.NODE_ENV!=="production"&&De(Tt()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),u.useEffect(function(){(s||n)&&m(n)},[n,s]);var b=u.useState(function(){return Es(o)}),g=H(b,2),v=g[0],p=g[1];u.useEffect(function(){var A=Es(o);p(A??null)});var y=th(h&&!v,i),S=H(y,2),E=S[0],x=S[1],O=v??E;ah(r&&n&&Tt()&&(O===E||O===document.body));var C=null;if(l&&Eo(l)&&t){var T=l;C=T.ref}var F=So(C,t);if(!h||!Tt()||v===void 0)return null;var M=O===!1||sh(),$=l;return t&&($=u.cloneElement(l,{ref:F})),u.createElement(Tu.Provider,{value:x},M?$:xr.createPortal($,O))});process.env.NODE_ENV!=="production"&&(ya.displayName="Portal");function lh(){var e=D({},u);return e.useId}var ws=0,Cs=lh();const uh=Cs?function(t){var n=Cs();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=u.useState("ssr-id"),r=H(n,2),o=r[0],i=r[1];return u.useEffect(function(){var a=ws;ws+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},ch=U.createContext(void 0),fh=ch;var Tn="RC_FORM_INTERNAL_HOOKS",Xe=function(){De(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},sr=u.createContext({getFieldValue:Xe,getFieldsValue:Xe,getFieldError:Xe,getFieldWarning:Xe,getFieldsError:Xe,isFieldsTouched:Xe,isFieldTouched:Xe,isFieldValidating:Xe,isFieldsValidating:Xe,resetFields:Xe,setFields:Xe,setFieldValue:Xe,setFieldsValue:Xe,validateFields:Xe,submit:Xe,getInternalHooks:function(){return Xe(),{dispatch:Xe,initEntityValue:Xe,registerField:Xe,useSubscribe:Xe,setInitialValues:Xe,destroyForm:Xe,setCallbacks:Xe,registerWatch:Xe,getFields:Xe,setValidateMessages:Xe,setPreserve:Xe,getInitialValue:Xe}}}),go=u.createContext(null);function Li(e){return e==null?[]:Array.isArray(e)?e:[e]}function dh(e){return e&&!!e._init}function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nn.apply(this,arguments)}function vh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ir(e,t)}function ki(e){return ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ki(e)}function Ir(e,t){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ir(e,t)}function mh(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ao(e,t,n){return mh()?ao=Reflect.construct.bind():ao=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&Ir(c,a.prototype),c},ao.apply(null,arguments)}function hh(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vi(e){var t=typeof Map=="function"?new Map:void 0;return Vi=function(r){if(r===null||!hh(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ao(r,arguments,ki(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ir(o,r)},Vi(e)}var gh=/%[sdj%]/g,Nu=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Nu=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function ji(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(gh,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function ph(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Et(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ph(t)&&typeof e=="string"&&!e)}function yh(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function xs(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function bh(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Os=function(e){vh(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(Vi(Error));function Sh(e,t,n,r,o){if(t.first){var i=new Promise(function(m,h){var b=function(p){return r(p),p.length?h(new Os(p,ji(p))):m(o)},g=bh(e);xs(g,n,b)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,f=[],d=new Promise(function(m,h){var b=function(v){if(f.push.apply(f,v),c++,c===l)return r(f),f.length?h(new Os(f,ji(f))):m(o)};s.length||(r(f),m(o)),s.forEach(function(g){var v=e[g];a.indexOf(g)!==-1?xs(v,n,b):yh(v,n,b)})});return d.catch(function(m){return m}),d}function Eh(e){return!!(e&&e.message!==void 0)}function wh(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Rs(e,t){return function(n){var r;return e.fullFields?r=wh(t,e.fullFields):r=t[n.field||e.fullField],Eh(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Ps(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Nn({},e[n],r):e[n]=r}}return e}var Fu=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Et(n,a||t.type))&&o.push(Lt(i.messages.required,t.fullField))},Ch=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Lt(i.messages.whitespace,t.fullField))},eo,xh=function(){if(eo)return eo;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
140
- (?:
141
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
142
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
143
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
144
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
145
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
146
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
147
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
148
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
149
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
150
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(E){return E&&E.exact?i:new RegExp("(?:"+t(E)+n+t(E)+")|(?:"+t(E)+o+t(E)+")","g")};l.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+n+t(S),"g")},l.v6=function(S){return S&&S.exact?s:new RegExp(""+t(S)+o+t(S),"g")};var c="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,m=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+f+"(?:localhost|"+d+"|"+m+"|"+h+b+g+")"+v+p;return eo=new RegExp("(?:^"+y+"$)","i"),eo},Ms={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},yr={integer:function(t){return yr.number(t)&&parseInt(t,10)===t},float:function(t){return yr.number(t)&&!yr.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!yr.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ms.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(xh())},hex:function(t){return typeof t=="string"&&!!t.match(Ms.hex)}},Oh=function(t,n,r,o,i){if(t.required&&n===void 0){Fu(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?yr[s](n)||o.push(Lt(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Lt(i.messages.types[s],t.fullField,t.type))},Rh=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,m=typeof n=="number",h=typeof n=="string",b=Array.isArray(n);if(m?d="number":h?d="string":b&&(d="array"),!d)return!1;b&&(f=n.length),h&&(f=n.replace(c,"_").length),a?f!==t.len&&o.push(Lt(i.messages[d].len,t.fullField,t.len)):s&&!l&&f<t.min?o.push(Lt(i.messages[d].min,t.fullField,t.min)):l&&!s&&f>t.max?o.push(Lt(i.messages[d].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&o.push(Lt(i.messages[d].range,t.fullField,t.min,t.max))},Kn="enum",Ph=function(t,n,r,o,i){t[Kn]=Array.isArray(t[Kn])?t[Kn]:[],t[Kn].indexOf(n)===-1&&o.push(Lt(i.messages[Kn],t.fullField,t[Kn].join(", ")))},Mh=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Lt(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Lt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Le={required:Fu,whitespace:Ch,type:Oh,range:Rh,enum:Ph,pattern:Mh},Ih=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n,"string")&&!t.required)return r();Le.required(t,n,o,a,i,"string"),Et(n,"string")||(Le.type(t,n,o,a,i),Le.range(t,n,o,a,i),Le.pattern(t,n,o,a,i),t.whitespace===!0&&Le.whitespace(t,n,o,a,i))}r(a)},Th=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&Le.type(t,n,o,a,i)}r(a)},Nh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&(Le.type(t,n,o,a,i),Le.range(t,n,o,a,i))}r(a)},Fh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&Le.type(t,n,o,a,i)}r(a)},$h=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),Et(n)||Le.type(t,n,o,a,i)}r(a)},_h=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&(Le.type(t,n,o,a,i),Le.range(t,n,o,a,i))}r(a)},Ah=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&(Le.type(t,n,o,a,i),Le.range(t,n,o,a,i))}r(a)},Dh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Le.required(t,n,o,a,i,"array"),n!=null&&(Le.type(t,n,o,a,i),Le.range(t,n,o,a,i))}r(a)},Lh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&Le.type(t,n,o,a,i)}r(a)},kh="enum",Vh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i),n!==void 0&&Le[kh](t,n,o,a,i)}r(a)},jh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n,"string")&&!t.required)return r();Le.required(t,n,o,a,i),Et(n,"string")||Le.pattern(t,n,o,a,i)}r(a)},Hh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n,"date")&&!t.required)return r();if(Le.required(t,n,o,a,i),!Et(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Le.type(t,l,o,a,i),l&&Le.range(t,l.getTime(),o,a,i)}}r(a)},zh=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Le.required(t,n,o,a,i,s),r(a)},ei=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Et(n,a)&&!t.required)return r();Le.required(t,n,o,s,i,a),Et(n,a)||Le.type(t,n,o,s,i)}r(s)},Wh=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();Le.required(t,n,o,a,i)}r(a)},wr={string:Ih,method:Th,number:Nh,boolean:Fh,regexp:$h,integer:_h,float:Ah,array:Dh,object:Lh,enum:Vh,pattern:jh,date:Hh,url:ei,hex:ei,email:ei,required:zh,any:Wh};function Hi(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var zi=Hi(),Fr=function(){function e(n){this.rules=null,this._messages=zi,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Ps(Hi(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function f(g){var v=[],p={};function y(E){if(Array.isArray(E)){var x;v=(x=v).concat.apply(x,E)}else v.push(E)}for(var S=0;S<g.length;S++)y(g[S]);v.length?(p=ji(v),c(v,p)):c(null,s)}if(l.messages){var d=this.messages();d===zi&&(d=Hi()),Ps(d,l.messages),l.messages=d}else l.messages=this.messages();var m={},h=l.keys||Object.keys(this.rules);h.forEach(function(g){var v=a.rules[g],p=s[g];v.forEach(function(y){var S=y;typeof S.transform=="function"&&(s===r&&(s=Nn({},s)),p=s[g]=S.transform(p)),typeof S=="function"?S={validator:S}:S=Nn({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=g,S.fullField=S.fullField||g,S.type=a.getType(S),m[g]=m[g]||[],m[g].push({rule:S,value:p,source:s,field:g}))})});var b={};return Sh(m,l,function(g,v){var p=g.rule,y=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");y=y&&(p.required||!p.required&&g.value),p.field=g.field;function S(O,C){return Nn({},C,{fullField:p.fullField+"."+O,fullFields:p.fullFields?[].concat(p.fullFields,[O]):[O]})}function E(O){O===void 0&&(O=[]);var C=Array.isArray(O)?O:[O];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&p.message!==void 0&&(C=[].concat(p.message));var T=C.map(Rs(p,s));if(l.first&&T.length)return b[p.field]=1,v(T);if(!y)v(T);else{if(p.required&&!g.value)return p.message!==void 0?T=[].concat(p.message).map(Rs(p,s)):l.error&&(T=[l.error(p,Lt(l.messages.required,p.field))]),v(T);var F={};p.defaultField&&Object.keys(g.value).map(function(A){F[A]=p.defaultField}),F=Nn({},F,g.rule.fields);var M={};Object.keys(F).forEach(function(A){var N=F[A],k=Array.isArray(N)?N:[N];M[A]=k.map(S.bind(null,A))});var $=new e(M);$.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),$.validate(g.value,g.rule.options||l,function(A){var N=[];T&&T.length&&N.push.apply(N,T),A&&A.length&&N.push.apply(N,A),v(N.length?N:null)})}}var x;if(p.asyncValidator)x=p.asyncValidator(p,g.value,E,g.source,l);else if(p.validator){try{x=p.validator(p,g.value,E,g.source,l)}catch(O){console.error==null||console.error(O),l.suppressValidatorError||setTimeout(function(){throw O},0),E(O.message)}x===!0?E():x===!1?E(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||(p.fullField||p.field)+" fails"):x instanceof Array?E(x):x instanceof Error&&E(x.message)}x&&x.then&&x.then(function(){return E()},function(O){return E(O)})},function(g){f(g)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!wr.hasOwnProperty(r.type))throw new Error(Lt("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?wr.required:wr[this.getType(r)]||void 0},e}();Fr.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");wr[t]=n};Fr.warning=Nu;Fr.messages=zi;Fr.validators=wr;var At="'${name}' is not a valid ${type}",$u={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:At,method:At,array:At,object:At,number:At,date:At,boolean:At,integer:At,float:At,regexp:At,email:At,url:At,hex:At},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}"}},Is=Fr;function Bh(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Ts="CODE_LOGIC_ERROR";function Wi(e,t,n,r,o){return Bi.apply(this,arguments)}function Bi(){return Bi=Nr(rn().mark(function e(t,n,r,o,i){var a,s,l,c,f,d,m,h,b;return rn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=D({},r),delete a.ruleIndex,Is.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(Ts)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Is(I({},t,[a])),f=Jn($u,o.validateMessages),c.messages(f),d=[],v.prev=10,v.next=13,Promise.resolve(c.validate(I({},t,n),D({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(d=v.t0.errors.map(function(p,y){var S=p.message,E=S===Ts?f.default:S;return u.isValidElement(E)?u.cloneElement(E,{key:"error_".concat(y)}):E}));case 18:if(!(!d.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(p,y){return Wi("".concat(t,".").concat(y),p,l,o,i)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(p,y){return[].concat(me(p),me(y))},[]));case 23:return h=D(D({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),b=d.map(function(p){return typeof p=="string"?Bh(p,h):p}),v.abrupt("return",b);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Bi.apply(this,arguments)}function Uh(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(f,d){var m=f.validator,h=D(D({},f),{},{ruleIndex:d});return m&&(h.validator=function(b,g,v){var p=!1,y=function(){for(var x=arguments.length,O=new Array(x),C=0;C<x;C++)O[C]=arguments[C];Promise.resolve().then(function(){De(!p,"Your validator function has already return a promise. `callback` will be ignored."),p||v.apply(void 0,O)})},S=m(b,g,y);p=S&&typeof S.then=="function"&&typeof S.catch=="function",De(p,"`callback` is deprecated. Please return a promise instead."),p&&S.then(function(){v()}).catch(function(E){v(E||" ")})}),h}).sort(function(f,d){var m=f.warningOnly,h=f.ruleIndex,b=d.warningOnly,g=d.ruleIndex;return!!m==!!b?h-g:m?1:-1}),l;if(o===!0)l=new Promise(function(){var f=Nr(rn().mark(function d(m,h){var b,g,v;return rn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:b=0;case 1:if(!(b<s.length)){y.next=12;break}return g=s[b],y.next=5,Wi(a,t,g,r,i);case 5:if(v=y.sent,!v.length){y.next=9;break}return h([{errors:v,rule:g}]),y.abrupt("return");case 9:b+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},d)}));return function(d,m){return f.apply(this,arguments)}}());else{var c=s.map(function(f){return Wi(a,t,f,r,i).then(function(d){return{errors:d,rule:f}})});l=(o?qh(c):Kh(c)).then(function(f){return Promise.reject(f)})}return l.catch(function(f){return f}),l}function Kh(e){return Ui.apply(this,arguments)}function Ui(){return Ui=Nr(rn().mark(function e(t){return rn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,me(o));return a}));case 1:case"end":return r.stop()}},e)})),Ui.apply(this,arguments)}function qh(e){return Ki.apply(this,arguments)}function Ki(){return Ki=Nr(rn().mark(function e(t){var n;return rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Ki.apply(this,arguments)}function ft(e){return Li(e)}function Ns(e,t){var n={};return t.forEach(function(r){var o=en(e,r);n=Zt(n,r,o)}),n}function rr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return _u(t,r,n)})}function _u(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function Gh(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||je(e)!=="object"||je(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return me(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Xh(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&je(t.target)==="object"&&e in t.target?t.target[e]:t}function Fs(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(me(e.slice(0,n)),[o],me(e.slice(n,t)),me(e.slice(t+1,r))):i<0?[].concat(me(e.slice(0,t)),me(e.slice(t+1,n+1)),[o],me(e.slice(n+1,r))):e}var Yh=["name"],Wt=[];function $s(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ba=function(e){Co(n,e);var t=xo(n);function n(r){var o;if(on(this,n),o=t.call(this,r),I(ze(o),"state",{resetCount:0}),I(ze(o),"cancelRegisterFunc",null),I(ze(o),"mounted",!1),I(ze(o),"touched",!1),I(ze(o),"dirty",!1),I(ze(o),"validatePromise",void 0),I(ze(o),"prevValidating",void 0),I(ze(o),"errors",Wt),I(ze(o),"warnings",Wt),I(ze(o),"cancelRegister",function(){var l=o.props,c=l.preserve,f=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(f,c,ft(d)),o.cancelRegisterFunc=null}),I(ze(o),"getNamePath",function(){var l=o.props,c=l.name,f=l.fieldContext,d=f.prefixName,m=d===void 0?[]:d;return c!==void 0?[].concat(me(m),me(c)):[]}),I(ze(o),"getRules",function(){var l=o.props,c=l.rules,f=c===void 0?[]:c,d=l.fieldContext;return f.map(function(m){return typeof m=="function"?m(d):m})}),I(ze(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),I(ze(o),"metaCache",null),I(ze(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var f=D(D({},o.getMeta()),{},{destroy:l});yl(o.metaCache,f)||c(f),o.metaCache=f}else o.metaCache=null}),I(ze(o),"onStoreChange",function(l,c,f){var d=o.props,m=d.shouldUpdate,h=d.dependencies,b=h===void 0?[]:h,g=d.onReset,v=f.store,p=o.getNamePath(),y=o.getValue(l),S=o.getValue(v),E=c&&rr(c,p);switch(f.type==="valueUpdate"&&f.source==="external"&&y!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Wt,o.warnings=Wt,o.triggerMetaEvent()),f.type){case"reset":if(!c||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Wt,o.warnings=Wt,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var x=f.data;if(E){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Wt),"warnings"in x&&(o.warnings=x.warnings||Wt),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&rr(c,p,!0)){o.reRender();return}if(m&&!p.length&&$s(m,l,v,y,S,f)){o.reRender();return}break}case"dependenciesUpdate":{var O=b.map(ft);if(O.some(function(C){return rr(f.relatedFields,C)})){o.reRender();return}break}default:if(E||(!b.length||p.length||m)&&$s(m,l,v,y,S,f)){o.reRender();return}break}m===!0&&o.reRender()}),I(ze(o),"validateRules",function(l){var c=o.getNamePath(),f=o.getValue(),d=l||{},m=d.triggerName,h=d.validateOnly,b=h===void 0?!1:h,g=Promise.resolve().then(Nr(rn().mark(function v(){var p,y,S,E,x,O,C;return rn().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(o.mounted){F.next=2;break}return F.abrupt("return",[]);case 2:if(p=o.props,y=p.validateFirst,S=y===void 0?!1:y,E=p.messageVariables,x=p.validateDebounce,O=o.getRules(),m&&(O=O.filter(function(M){return M}).filter(function(M){var $=M.validateTrigger;if(!$)return!0;var A=Li($);return A.includes(m)})),!(x&&m)){F.next=10;break}return F.next=8,new Promise(function(M){setTimeout(M,x)});case 8:if(o.validatePromise===g){F.next=10;break}return F.abrupt("return",[]);case 10:return C=Uh(c,f,O,l,S,E),C.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wt;if(o.validatePromise===g){var $;o.validatePromise=null;var A=[],N=[];($=M.forEach)===null||$===void 0||$.call(M,function(k){var V=k.rule.warningOnly,P=k.errors,w=P===void 0?Wt:P;V?N.push.apply(N,me(w)):A.push.apply(A,me(w))}),o.errors=A,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),F.abrupt("return",C);case 13:case"end":return F.stop()}},v)})));return b||(o.validatePromise=g,o.dirty=!0,o.errors=Wt,o.warnings=Wt,o.triggerMetaEvent(),o.reRender()),g}),I(ze(o),"isFieldValidating",function(){return!!o.validatePromise}),I(ze(o),"isFieldTouched",function(){return o.touched}),I(ze(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Tn),f=c.getInitialValue;return f(o.getNamePath())!==void 0}),I(ze(o),"getErrors",function(){return o.errors}),I(ze(o),"getWarnings",function(){return o.warnings}),I(ze(o),"isListField",function(){return o.props.isListField}),I(ze(o),"isList",function(){return o.props.isList}),I(ze(o),"isPreserve",function(){return o.props.preserve}),I(ze(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),I(ze(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return D(D({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var f=An(l);return f.length!==1||!u.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),I(ze(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,f=o.getNamePath();return en(l||c(!0),f)}),I(ze(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,f=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,b=c.valuePropName,g=c.getValueProps,v=c.fieldContext,p=d!==void 0?d:v.validateTrigger,y=o.getNamePath(),S=v.getInternalHooks,E=v.getFieldsValue,x=S(Tn),O=x.dispatch,C=o.getValue(),T=g||function(A){return I({},b,A)},F=l[f],M=D(D({},l),T(C));M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var A,N=arguments.length,k=new Array(N),V=0;V<N;V++)k[V]=arguments[V];m?A=m.apply(void 0,k):A=Xh.apply(void 0,[b].concat(k)),h&&(A=h(A,C,E(!0))),O({type:"updateValue",namePath:y,value:A}),F&&F.apply(void 0,k)};var $=Li(p||[]);return $.forEach(function(A){var N=M[A];M[A]=function(){N&&N.apply(void 0,arguments);var k=o.props.rules;k&&k.length&&O({type:"validateField",namePath:y,triggerName:A})}}),M}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Tn),s=a.initEntityValue;s(ze(o))}return o}return an(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Tn),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:u.isValidElement(s)?c=u.cloneElement(s,this.getControlled(s.props)):(De(!s,"`children` of Field is not validate ReactElement."),c=s),u.createElement(u.Fragment,{key:o},c)}}]),n}(u.Component);I(ba,"contextType",sr);I(ba,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Au(e){var t=e.name,n=St(e,Yh),r=u.useContext(sr),o=u.useContext(go),i=t!==void 0?ft(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&De(!1,"`preserve` should not apply on Form.List fields."),u.createElement(ba,Je({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function Qh(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=u.useContext(sr),l=u.useContext(go),c=u.useRef({keys:[],id:0}),f=c.current,d=u.useMemo(function(){var g=ft(s.prefixName)||[];return[].concat(me(g),me(ft(t)))},[s.prefixName,t]),m=u.useMemo(function(){return D(D({},s),{},{prefixName:d})},[s,d]),h=u.useMemo(function(){return{getKey:function(v){var p=d.length,y=v[p];return[f.keys[y],v.slice(p+1)]}}},[d]);if(typeof r!="function")return De(!1,"Form.List only accepts function as children."),null;var b=function(v,p,y){var S=y.source;return S==="internal"?!1:v!==p};return u.createElement(go.Provider,{value:h},u.createElement(sr.Provider,{value:m},u.createElement(Au,{name:[],shouldUpdate:b,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(g,v){var p=g.value,y=p===void 0?[]:p,S=g.onChange,E=s.getFieldValue,x=function(){var F=E(d||[]);return F||[]},O={add:function(F,M){var $=x();M>=0&&M<=$.length?(f.keys=[].concat(me(f.keys.slice(0,M)),[f.id],me(f.keys.slice(M))),S([].concat(me($.slice(0,M)),[F],me($.slice(M))))):(process.env.NODE_ENV!=="production"&&(M<0||M>$.length)&&De(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(me(f.keys),[f.id]),S([].concat(me($),[F]))),f.id+=1},remove:function(F){var M=x(),$=new Set(Array.isArray(F)?F:[F]);$.size<=0||(f.keys=f.keys.filter(function(A,N){return!$.has(N)}),S(M.filter(function(A,N){return!$.has(N)})))},move:function(F,M){if(F!==M){var $=x();F<0||F>=$.length||M<0||M>=$.length||(f.keys=Fs(f.keys,F,M),S(Fs($,F,M)))}}},C=y||[];return Array.isArray(C)||(C=[],process.env.NODE_ENV!=="production"&&De(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(C.map(function(T,F){var M=f.keys[F];return M===void 0&&(f.keys[F]=f.id,M=f.keys[F],f.id+=1),{name:F,key:M,isListField:!0}}),O,v)})))}function Zh(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var Du="__@field_split__";function ti(e){return e.map(function(t){return"".concat(je(t),":").concat(t)}).join(Du)}var qn=function(){function e(){on(this,e),I(this,"kvs",new Map)}return an(e,[{key:"set",value:function(n,r){this.kvs.set(ti(n),r)}},{key:"get",value:function(n){return this.kvs.get(ti(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ti(n))}},{key:"map",value:function(n){return me(this.kvs.entries()).map(function(r){var o=H(r,2),i=o[0],a=o[1],s=i.split(Du);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),f=H(c,3),d=f[1],m=f[2];return d==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),Jh=["name"],eg=an(function e(t){var n=this;on(this,e),I(this,"formHooked",!1),I(this,"forceRootUpdate",void 0),I(this,"subscribable",!0),I(this,"store",{}),I(this,"fieldEntities",[]),I(this,"initialValues",{}),I(this,"callbacks",{}),I(this,"validateMessages",null),I(this,"preserve",null),I(this,"lastValidatePromise",null),I(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}}),I(this,"getInternalHooks",function(r){return r===Tn?(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}):(De(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),I(this,"useSubscribe",function(r){n.subscribable=r}),I(this,"prevWithoutPreserves",null),I(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Jn(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Zt(a,l,en(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),I(this,"destroyForm",function(){var r=new qn;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),I(this,"getInitialValue",function(r){var o=en(n.initialValues,r);return r.length?Jn(o):o}),I(this,"setCallbacks",function(r){n.callbacks=r}),I(this,"setValidateMessages",function(r){n.validateMessages=r}),I(this,"setPreserve",function(r){n.preserve=r}),I(this,"watchList",[]),I(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),I(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),I(this,"timeoutId",null),I(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||De(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),I(this,"updateStore",function(r){n.store=r}),I(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),I(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new qn;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),I(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=ft(i);return o.get(a)||{INVALIDATE_NAME_PATH:ft(i)}})}),I(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&je(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(f){var d,m,h="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(s){var b,g;if((b=(g=f).isList)!==null&&b!==void 0&&b.call(g))return}else if(!i&&(d=(m=f).isListField)!==null&&d!==void 0&&d.call(m))return;if(!a)c.push(h);else{var v="getMeta"in f?f.getMeta():null;a(v)&&c.push(h)}}),Ns(n.store,c.map(ft))}),I(this,"getFieldValue",function(r){n.warningUnhooked();var o=ft(r);return en(n.store,o)}),I(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:ft(r[a]),errors:[],warnings:[]}})}),I(this,"getFieldError",function(r){n.warningUnhooked();var o=ft(r),i=n.getFieldsError([o])[0];return i.errors}),I(this,"getFieldWarning",function(r){n.warningUnhooked();var o=ft(r),i=n.getFieldsError([o])[0];return i.warnings}),I(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(ft),c=!1):(l=null,c=a):(l=a.map(ft),c=s);var f=n.getFieldEntities(!0),d=function(v){return v.isFieldTouched()};if(!l)return c?f.every(d):f.some(d);var m=new qn;l.forEach(function(g){m.set(g,[])}),f.forEach(function(g){var v=g.getNamePath();l.forEach(function(p){p.every(function(y,S){return v[S]===y})&&m.update(p,function(y){return[].concat(me(y),[g])})})});var h=function(v){return v.some(d)},b=m.map(function(g){var v=g.value;return v});return c?b.every(h):b.some(h)}),I(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),I(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(ft);return o.some(function(a){var s=a.getNamePath();return rr(i,s)&&a.isFieldValidating()})}),I(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),I(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new qn,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,f=l.getNamePath();if(c!==void 0){var d=o.get(f)||new Set;d.add({entity:l,value:c}),o.set(f,d)}});var a=function(c){c.forEach(function(f){var d=f.props.initialValue;if(d!==void 0){var m=f.getNamePath(),h=n.getInitialValue(m);if(h!==void 0)De(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var b=o.get(m);if(b&&b.size>1)De(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var g=n.getFieldValue(m),v=f.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(Zt(n.store,m,me(b)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var f;(f=s).push.apply(f,me(me(c).map(function(d){return d.entity})))}})):s=i,a(s)}),I(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Jn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(ft);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Zt(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),I(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=St(a,Jh),c=ft(s);i.push(c),"value"in l&&n.updateStore(Zt(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),I(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=D(D({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),I(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=en(n.store,i);a===void 0&&n.updateStore(Zt(n.store,i,o))}}),I(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),I(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return!_u(d.getNamePath(),o)})){var f=n.store;n.updateStore(Zt(f,o,c,!0)),n.notifyObservers(f,[o],{type:"remove"}),n.triggerDependenciesUpdate(f,o)}}n.notifyWatch([o])}}),I(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),I(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=D(D({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),I(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(me(i))}),i}),I(this,"updateValue",function(r,o){var i=ft(r),a=n.store;n.updateStore(Zt(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Ns(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(me(s)))}),I(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Jn(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),I(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),I(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new qn;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(f){var d=ft(f);a.update(d,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var f=a.get(c)||new Set;f.forEach(function(d){if(!o.has(d)){o.add(d);var m=d.getNamePath();d.isFieldDirty()&&m.length&&(i.push(m),l(m))}})};return s(r),i}),I(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new qn;o.forEach(function(c){var f=c.name,d=c.errors;s.set(f,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var f=c.name;return rr(r,f)});l.length&&i(l,a)}}),I(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(ft):[],c=[],f=String(Date.now()),d=new Set,m=a||{},h=m.recursive,b=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(b&&!y.isFieldDirty())){var S=y.getNamePath();if(d.add(S.join(f)),!s||rr(l,S,h)){var E=y.validateRules(D({validateMessages:D(D({},$u),n.validateMessages)},a));c.push(E.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(x){var O,C=[],T=[];return(O=x.forEach)===null||O===void 0||O.call(x,function(F){var M=F.rule.warningOnly,$=F.errors;M?T.push.apply(T,me($)):C.push.apply(C,me($))}),C.length?Promise.reject({name:S,errors:C,warnings:T}):{name:S,errors:C,warnings:T}}))}}});var g=Zh(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var S=y.map(function(E){var x=E.name;return x});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:S,outOfDate:n.lastValidatePromise!==g})});v.catch(function(y){return y});var p=l.filter(function(y){return d.has(y.join(f))});return n.triggerOnFieldsChange(p),v}),I(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Lu(e){var t=u.useRef(),n=u.useState({}),r=H(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new eg(i);t.current=a.getForm()}return[t.current]}var qi=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),tg=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=u.useContext(qi),s=u.useRef({});return u.createElement(qi.Provider,{value:D(D({},a),{},{validateMessages:D(D({},a.validateMessages),n),triggerFormChange:function(c,f){r&&r(c,{changedFields:f,forms:s.current}),a.triggerFormChange(c,f)},triggerFormFinish:function(c,f){o&&o(c,{values:f,forms:s.current}),a.triggerFormFinish(c,f)},registerForm:function(c,f){c&&(s.current=D(D({},s.current),{},I({},c,f))),a.registerForm(c,f)},unregisterForm:function(c){var f=D({},s.current);delete f[c],s.current=f,a.unregisterForm(c)}})},i)},ng=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],rg=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,f=c===void 0?"form":c,d=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,b=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,p=t.onFinishFailed,y=St(t,ng),S=u.useContext(qi),E=Lu(a),x=H(E,1),O=x[0],C=O.getInternalHooks(Tn),T=C.useSubscribe,F=C.setInitialValues,M=C.setCallbacks,$=C.setValidateMessages,A=C.setPreserve,N=C.destroyForm;u.useImperativeHandle(n,function(){return O}),u.useEffect(function(){return S.registerForm(r,O),function(){S.unregisterForm(r)}},[S,O,r]),$(D(D({},S.validateMessages),d)),M({onValuesChange:b,onFieldsChange:function(B){if(S.triggerFormChange(r,B),g){for(var Q=arguments.length,ee=new Array(Q>1?Q-1:0),Z=1;Z<Q;Z++)ee[Z-1]=arguments[Z];g.apply(void 0,[B].concat(ee))}},onFinish:function(B){S.triggerFormFinish(r,B),v&&v(B)},onFinishFailed:p}),A(s);var k=u.useRef(null);F(o,!k.current),k.current||(k.current=!0),u.useEffect(function(){return N},[]);var V,P=typeof l=="function";if(P){var w=O.getFieldsValue(!0);V=l(w,O)}else V=l;T(!P);var R=u.useRef();u.useEffect(function(){Gh(R.current||[],i||[])||O.setFields(i||[]),R.current=i},[i,O]);var _=u.useMemo(function(){return D(D({},O),{},{validateTrigger:h})},[O,h]),j=u.createElement(go.Provider,{value:null},u.createElement(sr.Provider,{value:_},V));return f===!1?j:u.createElement(f,Je({},y,{onSubmit:function(B){B.preventDefault(),B.stopPropagation(),O.submit()},onReset:function(B){var Q;B.preventDefault(),O.resetFields(),(Q=y.onReset)===null||Q===void 0||Q.call(y,B)}}),j)};function _s(e){try{return JSON.stringify(e)}catch{return Math.random()}}var og=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=U.useRef(t);De(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function ig(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,i=t[1],a=i===void 0?{}:i,s=dh(a)?{form:a}:a,l=s.form,c=U.useState(),f=H(c,2),d=f[0],m=f[1],h=U.useMemo(function(){return _s(d)},[d]),b=U.useRef(h);b.current=h;var g=U.useContext(sr),v=l||g,p=v&&v._init;process.env.NODE_ENV!=="production"&&De(t.length===2?l?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var y=ft(o),S=U.useRef(y);return S.current=y,og(y),U.useEffect(function(){if(p){var E=v.getFieldsValue,x=v.getInternalHooks,O=x(Tn),C=O.registerWatch,T=C(function(M,$){var A=en(s.preserve?$:M,S.current),N=_s(A);b.current!==N&&(b.current=N,m(A))}),F=en(s.preserve?E(!0):E(),S.current);return d!==F&&m(F),T}},[p]),d}var ag=u.forwardRef(rg),$r=ag;$r.FormProvider=tg;$r.Field=Au;$r.List=Qh;$r.useForm=Lu;$r.useWatch=ig;const ku=u.createContext({});process.env.NODE_ENV!=="production"&&(ku.displayName="FormItemInputContext");const sg=e=>({animationDuration:e,animationFillMode:"both"}),lg=e=>({animationDuration:e,animationFillMode:"both"}),Vu=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
151
- ${i}${e}-enter,
152
- ${i}${e}-appear
153
- `]:Object.assign(Object.assign({},sg(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},lg(r)),{animationPlayState:"paused"}),[`
154
- ${i}${e}-enter${e}-enter-active,
155
- ${i}${e}-appear${e}-appear-active
156
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ug=new Nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cg=new Nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),fg=new Nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dg=new Nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),vg=new Nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mg=new Nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hg=new Nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gg=new Nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),pg={"move-up":{inKeyframes:hg,outKeyframes:gg},"move-down":{inKeyframes:ug,outKeyframes:cg},"move-left":{inKeyframes:fg,outKeyframes:dg},"move-right":{inKeyframes:vg,outKeyframes:mg}},As=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=pg[t];return[Vu(r,o,i,e.motionDurationMid),{[`
157
- ${r}-enter,
158
- ${r}-appear
159
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ju=new Nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Hu=new Nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zu=new Nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Wu=new Nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yg=new Nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bg=new Nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Sg=new Nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Eg=new Nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wg={"slide-up":{inKeyframes:ju,outKeyframes:Hu},"slide-down":{inKeyframes:zu,outKeyframes:Wu},"slide-left":{inKeyframes:yg,outKeyframes:bg},"slide-right":{inKeyframes:Sg,outKeyframes:Eg}},Ds=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=wg[t];return[Vu(r,o,i,e.motionDurationMid),{[`
160
- ${r}-enter,
161
- ${r}-appear
162
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Bu={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},Cg={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function xg(e){return e in Bu}function Og(e,t){const[,n]=ur(),r=U.useContext(fh),o=xg(e);let i=r??0;return o?i+=n.zIndexPopupBase+Bu[e]:i+=Cg[e],[r===void 0?t:i,i]}function Rg(e){return function(n){return u.createElement(Vn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},n)))}}function Pg(e,t,n,r){function o(i){const{prefixCls:a,style:s}=i,l=u.useRef(null),[c,f]=u.useState(0),[d,m]=u.useState(0),[h,b]=mo(!1,{value:i.open}),{getPrefixCls:g}=u.useContext(xn),v=g(t||"select",a);u.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(E=>{const x=E[0].target;f(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var E;const x=n?`.${n(v)}`:`.${v}-dropdown`,O=(E=l.current)===null||E===void 0?void 0:E.querySelector(x);O&&(clearInterval(S),y.observe(O))},10);return()=>{clearInterval(S),y.disconnect()}}},[]);let p=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});return r&&(p=r(p)),u.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},u.createElement(e,Object.assign({},p)))}return Rg(o)}const Uu=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var _o=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,u.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),i&&i(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:u.createElement("span",{className:Ye(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},s))};function Mg(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=U.useMemo(function(){if(je(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=U.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return{allowClear:c,clearIcon:U.createElement(_o,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var Ku=u.createContext(null);function Ig(){return u.useContext(Ku)}function Tg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=H(t,2),r=n[0],o=n[1],i=u.useRef(null),a=function(){window.clearTimeout(i.current)};u.useEffect(function(){return a},[]);var s=function(c,f){a(),i.current=window.setTimeout(function(){o(c),f&&f()},e)};return[r,s,a]}function qu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Ng(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Fg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Gn=void 0;function $g(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,f=e.className,d=e.style,m=e.children,h=e.display,b=e.order,g=e.component,v=g===void 0?"div":g,p=St(e,Fg),y=a&&!h;function S(T){l(c,T)}u.useEffect(function(){return function(){S(null)}},[]);var E=i&&o!==Gn?i(o):m,x;r||(x={opacity:y?0:1,height:y?0:Gn,overflowY:y?"hidden":Gn,order:a?b:Gn,pointerEvents:y?"none":Gn,position:y?"absolute":Gn});var O={};y&&(O["aria-hidden"]=!0);var C=u.createElement(v,Je({className:Ye(!r&&n,f),style:D(D({},x),d)},O,p,{ref:t}),E);return a&&(C=u.createElement(Cn,{onResize:function(F){var M=F.offsetWidth;S(M)},disabled:s},C)),C}var Cr=u.forwardRef($g);Cr.displayName="Item";function _g(e){if(typeof MessageChannel>"u")It(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Ag(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],_g(function(){xr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function hr(e,t){var n=u.useState(t),r=H(n,2),o=r[0],i=r[1],a=Bt(function(s){e(function(){i(s)})});return[o,a]}var po=U.createContext(null),Dg=["component"],Lg=["className"],kg=["className"],Vg=function(t,n){var r=u.useContext(po);if(!r){var o=t.component,i=o===void 0?"div":o,a=St(t,Dg);return u.createElement(i,Je({},a,{ref:n}))}var s=r.className,l=St(r,Lg),c=t.className,f=St(t,kg);return u.createElement(po.Provider,{value:null},u.createElement(Cr,Je({ref:n,className:Ye(s,c)},l,f)))},Gu=u.forwardRef(Vg);Gu.displayName="RawItem";var jg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Xu="responsive",Yu="invalidate";function Hg(e){return"+ ".concat(e.length," ...")}function zg(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,f=c===void 0?10:c,d=e.ssr,m=e.style,h=e.className,b=e.maxCount,g=e.renderRest,v=e.renderRawRest,p=e.suffix,y=e.component,S=y===void 0?"div":y,E=e.itemComponent,x=e.onVisibleChange,O=St(e,jg),C=d==="full",T=Ag(),F=hr(T,null),M=H(F,2),$=M[0],A=M[1],N=$||0,k=hr(T,new Map),V=H(k,2),P=V[0],w=V[1],R=hr(T,0),_=H(R,2),j=_[0],z=_[1],B=hr(T,0),Q=H(B,2),ee=Q[0],Z=Q[1],Pe=hr(T,0),ye=H(Pe,2),X=ye[0],q=ye[1],Y=U.useState(null),se=H(Y,2),oe=se[0],G=se[1],L=U.useState(null),ce=H(L,2),Se=ce[0],we=ce[1],ie=u.useMemo(function(){return Se===null&&C?Number.MAX_SAFE_INTEGER:Se||0},[Se,$]),fe=U.useState(!1),he=H(fe,2),Ee=he[0],de=he[1],He="".concat(r,"-item"),rt=Math.max(j,ee),ke=b===Xu,pe=i.length&&ke,tt=b===Yu,Oe=pe||typeof b=="number"&&i.length>b,Me=U.useMemo(function(){var ne=i;return pe?$===null&&C?ne=i:ne=i.slice(0,Math.min(i.length,N/f)):typeof b=="number"&&(ne=i.slice(0,b)),ne},[i,f,$,b,pe]),Qe=U.useMemo(function(){return pe?i.slice(ie+1):i.slice(Me.length)},[i,Me,pe,ie]),Ie=U.useCallback(function(ne,ue){var W;return typeof l=="function"?l(ne):(W=l&&(ne==null?void 0:ne[l]))!==null&&W!==void 0?W:ue},[l]),pt=U.useCallback(a||function(ne){return ne},[a]);function yt(ne,ue,W){Se===ne&&(ue===void 0||ue===oe)||(we(ne),W||(de(ne<i.length-1),x==null||x(ne)),ue!==void 0&&G(ue))}function Rt(ne,ue){A(ue.clientWidth)}function nt(ne,ue){w(function(W){var te=new Map(W);return ue===null?te.delete(ne):te.set(ne,ue),te})}function Ke(ne,ue){Z(ue),z(ee)}function Ge(ne,ue){q(ue)}function Ze(ne){return P.get(Ie(Me[ne],ne))}lt(function(){if(N&&typeof rt=="number"&&Me){var ne=X,ue=Me.length,W=ue-1;if(!ue){yt(0,null);return}for(var te=0;te<ue;te+=1){var J=Ze(te);if(C&&(J=J||0),J===void 0){yt(te-1,void 0,!0);break}if(ne+=J,W===0&&ne<=N||te===W-1&&ne+Ze(W)<=N){yt(W,null);break}else if(ne+rt>N){yt(te-1,ne-J-X+ee);break}}p&&Ze(0)+X>N&&G(null)}},[N,P,ee,X,Ie,Me]);var $e=Ee&&!!Qe.length,dt={};oe!==null&&pe&&(dt={position:"absolute",left:oe,top:0});var vt={prefixCls:He,responsive:pe,component:E,invalidate:tt},Te=s?function(ne,ue){var W=Ie(ne,ue);return u.createElement(po.Provider,{key:W,value:D(D({},vt),{},{order:ue,item:ne,itemKey:W,registerSize:nt,display:ue<=ie})},s(ne,ue))}:function(ne,ue){var W=Ie(ne,ue);return u.createElement(Cr,Je({},vt,{order:ue,key:W,item:ne,renderItem:pt,itemKey:W,registerSize:nt,display:ue<=ie}))},_e,Ve={order:$e?ie:Number.MAX_SAFE_INTEGER,className:"".concat(He,"-rest"),registerSize:Ke,display:$e};if(v)v&&(_e=u.createElement(po.Provider,{value:D(D({},vt),Ve)},v(Qe)));else{var ge=g||Hg;_e=u.createElement(Cr,Je({},vt,Ve),typeof ge=="function"?ge(Qe):ge)}var Fe=u.createElement(S,Je({className:Ye(!tt&&r,h),style:m,ref:t},O),Me.map(Te),Oe?_e:null,p&&u.createElement(Cr,Je({},vt,{responsive:ke,responsiveDisabled:!pe,order:ie,className:"".concat(He,"-suffix"),registerSize:Ge,display:!0,style:dt}),p));return ke&&(Fe=u.createElement(Cn,{onResize:Rt,disabled:!pe},Fe)),Fe}var _r=u.forwardRef(zg);_r.displayName="Overflow";_r.Item=Gu;_r.RESPONSIVE=Xu;_r.INVALIDATE=Yu;var Wg=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,f=t.autoComplete,d=t.editable,m=t.activeDescendantId,h=t.value,b=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,p=t.onChange,y=t.onPaste,S=t.onCompositionStart,E=t.onCompositionEnd,x=t.open,O=t.attrs,C=a||u.createElement("input",null),T=C,F=T.ref,M=T.props,$=M.onKeyDown,A=M.onChange,N=M.onMouseDown,k=M.onCompositionStart,V=M.onCompositionEnd,P=M.style;return Dn(!("maxLength"in C.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),C=u.cloneElement(C,D(D(D({type:"search"},M),{},{id:i,ref:ea(n,F),disabled:s,tabIndex:l,autoComplete:f||"off",autoFocus:c,className:Ye("".concat(o,"-selection-search-input"),(r=C)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?m:void 0},O),{},{value:d?h:"",maxLength:b,readOnly:!d,unselectable:d?null:"on",style:D(D({},P),{},{opacity:d?null:0}),onKeyDown:function(R){g(R),$&&$(R)},onMouseDown:function(R){v(R),N&&N(R)},onChange:function(R){p(R),A&&A(R)},onCompositionStart:function(R){S(R),k&&k(R)},onCompositionEnd:function(R){E(R),V&&V(R)},onPaste:y})),C},Sa=u.forwardRef(Wg);Sa.displayName="Input";function Ea(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Bg=typeof window<"u"&&window.document&&window.document.documentElement,Ug=process.env.NODE_ENV!=="test"&&Bg;function Kg(e){return e!=null}function qg(e){return!e&&e!==0}function Ls(e){return["string","number"].includes(je(e))}function Qu(e){var t=void 0;return e&&(Ls(e.title)?t=e.title.toString():Ls(e.label)&&(t=e.label.toString())),t}function Gg(e,t){Ug?u.useLayoutEffect(e,t):u.useEffect(e,t)}function Xg(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ks=function(t){t.preventDefault(),t.stopPropagation()},Yg=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,f=t.disabled,d=t.mode,m=t.showSearch,h=t.autoFocus,b=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,p=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,x=E===void 0?function(G){return"+ ".concat(G.length," ...")}:E,O=t.tagRender,C=t.onToggleOpen,T=t.onRemove,F=t.onInputChange,M=t.onInputPaste,$=t.onInputKeyDown,A=t.onInputMouseDown,N=t.onInputCompositionStart,k=t.onInputCompositionEnd,V=u.useRef(null),P=U.useState(0),w=H(P,2),R=w[0],_=w[1],j=U.useState(!1),z=H(j,2),B=z[0],Q=z[1],ee="".concat(r,"-selection"),Z=i||d==="multiple"&&s===!1||d==="tags"?a:"",Pe=d==="tags"||d==="multiple"&&s===!1||m&&(i||B);Gg(function(){_(V.current.scrollWidth)},[Z]);function ye(G,L,ce,Se,we){return u.createElement("span",{className:Ye("".concat(ee,"-item"),I({},"".concat(ee,"-item-disabled"),ce)),title:Qu(G)},u.createElement("span",{className:"".concat(ee,"-item-content")},L),Se&&u.createElement(_o,{className:"".concat(ee,"-item-remove"),onMouseDown:ks,onClick:we,customizeIcon:p},"×"))}function X(G,L,ce,Se,we){var ie=function(he){ks(he),C(!i)};return u.createElement("span",{onMouseDown:ie},O({label:L,value:G,disabled:ce,closable:Se,onClose:we}))}function q(G){var L=G.disabled,ce=G.label,Se=G.value,we=!f&&!L,ie=ce;if(typeof S=="number"&&(typeof ce=="string"||typeof ce=="number")){var fe=String(ie);fe.length>S&&(ie="".concat(fe.slice(0,S),"..."))}var he=function(de){de&&de.stopPropagation(),T(G)};return typeof O=="function"?X(Se,ie,L,we,he):ye(G,ie,L,we,he)}function Y(G){var L=typeof x=="function"?x(G):x;return ye({title:L},L,!1)}var se=u.createElement("div",{className:"".concat(ee,"-search"),style:{width:R},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},u.createElement(Sa,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:h,autoComplete:b,editable:Pe,activeDescendantId:g,value:Z,onKeyDown:$,onMouseDown:A,onChange:F,onPaste:M,onCompositionStart:N,onCompositionEnd:k,tabIndex:v,attrs:ho(t,!0)}),u.createElement("span",{ref:V,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},Z," ")),oe=u.createElement(_r,{prefixCls:"".concat(ee,"-overflow"),data:o,renderItem:q,renderRest:Y,suffix:se,itemKey:Xg,maxCount:y});return u.createElement(u.Fragment,null,oe,!o.length&&!Z&&u.createElement("span",{className:"".concat(ee,"-placeholder")},c))},Qg=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,f=t.mode,d=t.open,m=t.values,h=t.placeholder,b=t.tabIndex,g=t.showSearch,v=t.searchValue,p=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,E=t.onInputMouseDown,x=t.onInputChange,O=t.onInputPaste,C=t.onInputCompositionStart,T=t.onInputCompositionEnd,F=t.title,M=u.useState(!1),$=H(M,2),A=$[0],N=$[1],k=f==="combobox",V=k||g,P=m[0],w=v||"";k&&p&&!A&&(w=p),u.useEffect(function(){k&&N(!1)},[k,p]);var R=f!=="combobox"&&!d&&!g?!1:!!w,_=F===void 0?Qu(P):F,j=function(){if(P)return null;var B=R?{visibility:"hidden"}:void 0;return u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},h)};return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(Sa,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:V,activeDescendantId:c,value:w,onKeyDown:S,onMouseDown:E,onChange:function(B){N(!0),x(B)},onPaste:O,onCompositionStart:C,onCompositionEnd:T,tabIndex:b,attrs:ho(t,!0),maxLength:k?y:void 0})),!k&&P?u.createElement("span",{className:"".concat(r,"-selection-item"),title:_,style:R?{visibility:"hidden"}:void 0},P.label):null,j())};function Zg(e){return![K.ESC,K.SHIFT,K.BACKSPACE,K.TAB,K.WIN_KEY,K.ALT,K.META,K.WIN_KEY_RIGHT,K.CTRL,K.SEMICOLON,K.EQUALS,K.CAPS_LOCK,K.CONTEXT_MENU,K.F1,K.F2,K.F3,K.F4,K.F5,K.F6,K.F7,K.F8,K.F9,K.F10,K.F11,K.F12].includes(e)}var Jg=function(t,n){var r=U.useRef(null),o=U.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,f=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,g=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var v=qu(0),p=H(v,2),y=p[0],S=p[1],E=function(w){var R=w.which;(R===K.UP||R===K.DOWN)&&w.preventDefault(),b&&b(w),R===K.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(w.target.value)),Zg(R)&&h(!0)},x=function(){S(!0)},O=U.useRef(null),C=function(w){d(w,!0,o.current)!==!1&&h(!0)},T=function(){o.current=!0},F=function(w){o.current=!1,s!=="combobox"&&C(w.target.value)},M=function(w){var R=w.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var _=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");R=R.replace(_,O.current)}O.current=null,C(R)},$=function(w){var R=w.clipboardData,_=R.getData("text");O.current=_},A=function(w){var R=w.target;if(R!==r.current){var _=document.body.style.msTouchAction!==void 0;_?setTimeout(function(){r.current.focus()}):r.current.focus()}},N=function(w){var R=y();w.target!==r.current&&!R&&s!=="combobox"&&w.preventDefault(),(s!=="combobox"&&(!l||!R)||!a)&&(a&&f!==!1&&d("",!0,!1),h())},k={inputRef:r,onInputKeyDown:E,onInputMouseDown:x,onInputChange:M,onInputPaste:$,onInputCompositionStart:T,onInputCompositionEnd:F},V=s==="multiple"||s==="tags"?u.createElement(Yg,Je({},t,k)):u.createElement(Qg,Je({},t,k));return u.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:A,onMouseDown:N},V)},Zu=u.forwardRef(Jg);Zu.displayName="Selector";function Ju(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ep(e){return Ju(e)instanceof ShadowRoot}function Gi(e){return ep(e)?Ju(e):null}function tp(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,f=o.y,d=f===void 0?0:f,m=u.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],g=n.points[1],v=b[0],p=b[1],y=g[0],S=g[1];v===y||!["t","b"].includes(v)?h.top=d:v==="t"?h.top=0:h.bottom=0,p===S||!["l","r"].includes(p)?h.left=c:p==="l"?h.left=0:h.right=0}return u.createElement("div",{ref:m,className:Ye("".concat(t,"-arrow"),a),style:h},s)}function np(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u.createElement(ma,Je({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return u.createElement("div",{style:{zIndex:r},className:Ye("".concat(t,"-mask"),s)})}):null}var ec=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(ec.displayName="PopupContent");var tc=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,f=e.fresh,d=e.onClick,m=e.mask,h=e.arrow,b=e.arrowPos,g=e.align,v=e.motion,p=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,E=e.autoDestroy,x=e.portal,O=e.zIndex,C=e.onMouseEnter,T=e.onMouseLeave,F=e.onPointerEnter,M=e.ready,$=e.offsetX,A=e.offsetY,N=e.offsetR,k=e.offsetB,V=e.onAlign,P=e.onPrepare,w=e.stretch,R=e.targetWidth,_=e.targetHeight,j=typeof n=="function"?n():n,z=l||c,B=(S==null?void 0:S.length)>0,Q=u.useState(!S||!B),ee=H(Q,2),Z=ee[0],Pe=ee[1];if(lt(function(){!Z&&B&&a&&Pe(!0)},[Z,B,a]),!Z)return null;var ye="auto",X={left:"-1000vw",top:"-1000vh",right:ye,bottom:ye};if(M||!l){var q,Y=g.points,se=g.dynamicInset||((q=g._experimental)===null||q===void 0?void 0:q.dynamicInset),oe=se&&Y[0][1]==="r",G=se&&Y[0][0]==="b";oe?(X.right=N,X.left=ye):(X.left=$,X.right=ye),G?(X.bottom=k,X.top=ye):(X.top=A,X.bottom=ye)}var L={};return w&&(w.includes("height")&&_?L.height=_:w.includes("minHeight")&&_&&(L.minHeight=_),w.includes("width")&&R?L.width=R:w.includes("minWidth")&&R&&(L.minWidth=R)),l||(L.pointerEvents="none"),u.createElement(x,{open:y||z,getContainer:S&&function(){return S(a)},autoDestroy:E},u.createElement(np,{prefixCls:o,open:l,zIndex:O,mask:m,motion:p}),u.createElement(Cn,{onResize:V,disabled:!l},function(ce){return u.createElement(ma,Je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:P,onEnterPrepare:P,visible:l,onVisibleChanged:function(we){var ie;v==null||(ie=v.onVisibleChanged)===null||ie===void 0||ie.call(v,we),s(we)}}),function(Se,we){var ie=Se.className,fe=Se.style,he=Ye(o,ie,r);return u.createElement("div",{ref:ea(ce,t,we),className:he,style:D(D(D(D({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},X),L),fe),{},{boxSizing:"border-box",zIndex:O},i),onMouseEnter:C,onMouseLeave:T,onPointerEnter:F,onClick:d},h&&u.createElement(tp,{prefixCls:o,arrow:h,arrowPos:b,align:g}),u.createElement(ec,{cache:!l&&!f},j))})}))});process.env.NODE_ENV!=="production"&&(tc.displayName="Popup");var nc=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Eo(n),i=u.useCallback(function(s){Ji(t,r?r(s):s)},[r]),a=So(i,n.ref);return o?u.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(nc.displayName="TriggerWrapper");var Vs=u.createContext(null);function js(e){return e?Array.isArray(e)?e:[e]:[]}function rp(e,t,n,r){return u.useMemo(function(){var o=js(n??t),i=js(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function op(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ip(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(op((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function Hs(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ar(e){return e.ownerDocument.defaultView}function Xi(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ar(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Tr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function gr(e){return Tr(parseFloat(e),0)}function zs(e,t){var n=D({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ar(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,f=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,b=r.offsetWidth,g=r.clientWidth,v=gr(s),p=gr(l),y=gr(c),S=gr(f),E=Tr(Math.round(d.width/b*1e3)/1e3),x=Tr(Math.round(d.height/m*1e3)/1e3),O=(b-g-y-S)*E,C=(m-h-v-p)*x,T=v*x,F=p*x,M=y*E,$=S*E,A=0,N=0;if(i==="clip"){var k=gr(a);A=k*E,N=k*x}var V=d.x+M-A,P=d.y+T-N,w=V+d.width+2*A-M-$-O,R=P+d.height+2*N-T-F-C;n.left=Math.max(n.left,V),n.top=Math.max(n.top,P),n.right=Math.min(n.right,w),n.bottom=Math.min(n.bottom,R)}}),n}function Ws(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Bs(e,t){var n=t||[],r=H(n,2),o=r[0],i=r[1];return[Ws(e.width,o),Ws(e.height,i)]}function Us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Xn(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Sn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function ap(e,t,n,r,o,i,a){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=H(s,2),c=l[0],f=l[1],d=u.useRef(0),m=u.useMemo(function(){return t?Xi(t):[]},[t]),h=u.useRef({}),b=function(){h.current={}};e||b();var g=Bt(function(){if(t&&n&&e){let Ht=function(kr,zt){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe,Vr=_.x+kr,Bn=_.y+zt,jr=Vr+X,vr=Bn+ye,Hr=Math.max(Vr,Wn.left),Do=Math.max(Bn,Wn.top),Lo=Math.min(jr,Wn.right),ko=Math.min(vr,Wn.bottom);return Math.max(0,(Lo-Hr)*(ko-Do))},Lr=function(){wt=_.y+Ve,We=wt+ye,mt=_.x+_e,ct=mt+X};var y,S,E=t,x=E.ownerDocument,O=Ar(E),C=O.getComputedStyle(E),T=C.width,F=C.height,M=C.position,$=E.style.left,A=E.style.top,N=E.style.right,k=E.style.bottom,V=D(D({},o[r]),i),P=x.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(P),P.style.left="".concat(E.offsetLeft,"px"),P.style.top="".concat(E.offsetTop,"px"),P.style.position=M,P.style.height="".concat(E.offsetHeight,"px"),P.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto";var w;if(Array.isArray(n))w={x:n[0],y:n[1],width:0,height:0};else{var R=n.getBoundingClientRect();w={x:R.x,y:R.y,width:R.width,height:R.height}}var _=E.getBoundingClientRect(),j=x.documentElement,z=j.clientWidth,B=j.clientHeight,Q=j.scrollWidth,ee=j.scrollHeight,Z=j.scrollTop,Pe=j.scrollLeft,ye=_.height,X=_.width,q=w.height,Y=w.width,se={left:0,top:0,right:z,bottom:B},oe={left:-Pe,top:-Z,right:Q-Pe,bottom:ee-Z},G=V.htmlRegion,L="visible",ce="visibleFirst";G!=="scroll"&&G!==ce&&(G=L);var Se=G===ce,we=zs(oe,m),ie=zs(se,m),fe=G===L?ie:we,he=Se?ie:fe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=$,E.style.top=A,E.style.right=N,E.style.bottom=k,(S=E.parentElement)===null||S===void 0||S.removeChild(P);var de=Tr(Math.round(X/parseFloat(T)*1e3)/1e3),He=Tr(Math.round(ye/parseFloat(F)*1e3)/1e3);if(de===0||He===0||so(n)&&!qm(n))return;var rt=V.offset,ke=V.targetOffset,pe=Bs(_,rt),tt=H(pe,2),Oe=tt[0],Me=tt[1],Qe=Bs(w,ke),Ie=H(Qe,2),pt=Ie[0],yt=Ie[1];w.x-=pt,w.y-=yt;var Rt=V.points||[],nt=H(Rt,2),Ke=nt[0],Ge=nt[1],Ze=Us(Ge),$e=Us(Ke),dt=Xn(w,Ze),vt=Xn(_,$e),Te=D({},V),_e=dt.x-vt.x+Oe,Ve=dt.y-vt.y+Me,ge=Ht(_e,Ve),Fe=Ht(_e,Ve,ie),ne=Xn(w,["t","l"]),ue=Xn(_,["t","l"]),W=Xn(w,["b","r"]),te=Xn(_,["b","r"]),J=V.overflow||{},re=J.adjustX,Ne=J.adjustY,Ae=J.shiftX,ut=J.shiftY,qe=function(zt){return typeof zt=="boolean"?zt:zt>=0},wt,We,mt,ct;Lr();var Kt=qe(Ne),ve=$e[0]===Ze[0];if(Kt&&$e[0]==="t"&&(We>he.bottom||h.current.bt)){var ae=Ve;ve?ae-=ye-q:ae=ne.y-te.y-Me;var Ce=Ht(_e,ae),et=Ht(_e,ae,ie);Ce>ge||Ce===ge&&(!Se||et>=Fe)?(h.current.bt=!0,Ve=ae,Me=-Me,Te.points=[Sn($e,0),Sn(Ze,0)]):h.current.bt=!1}if(Kt&&$e[0]==="b"&&(wt<he.top||h.current.tb)){var it=Ve;ve?it+=ye-q:it=W.y-ue.y-Me;var Ct=Ht(_e,it),qt=Ht(_e,it,ie);Ct>ge||Ct===ge&&(!Se||qt>=Fe)?(h.current.tb=!0,Ve=it,Me=-Me,Te.points=[Sn($e,0),Sn(Ze,0)]):h.current.tb=!1}var yn=qe(re),bn=$e[1]===Ze[1];if(yn&&$e[1]==="l"&&(ct>he.right||h.current.rl)){var kt=_e;bn?kt-=X-Y:kt=ne.x-te.x-Oe;var Gt=Ht(kt,Ve),fr=Ht(kt,Ve,ie);Gt>ge||Gt===ge&&(!Se||fr>=Fe)?(h.current.rl=!0,_e=kt,Oe=-Oe,Te.points=[Sn($e,1),Sn(Ze,1)]):h.current.rl=!1}if(yn&&$e[1]==="r"&&(mt<he.left||h.current.lr)){var sn=_e;bn?sn+=X-Y:sn=W.x-ue.x-Oe;var On=Ht(sn,Ve),dr=Ht(sn,Ve,ie);On>ge||On===ge&&(!Se||dr>=Fe)?(h.current.lr=!0,_e=sn,Oe=-Oe,Te.points=[Sn($e,1),Sn(Ze,1)]):h.current.lr=!1}Lr();var $t=Ae===!0?0:Ae;typeof $t=="number"&&(mt<ie.left&&(_e-=mt-ie.left-Oe,w.x+Y<ie.left+$t&&(_e+=w.x-ie.left+Y-$t)),ct>ie.right&&(_e-=ct-ie.right-Oe,w.x>ie.right-$t&&(_e+=w.x-ie.right+$t)));var Xt=ut===!0?0:ut;typeof Xt=="number"&&(wt<ie.top&&(Ve-=wt-ie.top-Me,w.y+q<ie.top+Xt&&(Ve+=w.y-ie.top+q-Xt)),We>ie.bottom&&(Ve-=We-ie.bottom-Me,w.y>ie.bottom-Xt&&(Ve+=w.y-ie.bottom+Xt)));var Rn=_.x+_e,Hn=Rn+X,ln=_.y+Ve,un=ln+ye,cn=w.x,Re=cn+Y,be=w.y,ht=be+q,xt=Math.max(Rn,cn),ot=Math.min(Hn,Re),Ot=(xt+ot)/2,Ft=Ot-Rn,fn=Math.max(ln,be),Vt=Math.min(un,ht),Yt=(fn+Vt)/2,jt=Yt-ln;a==null||a(t,Te);var zn=Ee.right-_.x-(_e+_.width),Dr=Ee.bottom-_.y-(Ve+_.height);f({ready:!0,offsetX:_e/de,offsetY:Ve/He,offsetR:zn/de,offsetB:Dr/He,arrowX:Ft/de,arrowY:jt/He,scaleX:de,scaleY:He,align:Te})}}),v=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&g()})},p=function(){f(function(S){return D(D({},S),{},{ready:!1})})};return lt(p,[r]),lt(function(){e||p()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function sp(e,t,n,r,o){lt(function(){if(e&&t&&n){let d=function(){r(),o()};var i=t,a=n,s=Xi(i),l=Xi(a),c=Ar(a),f=new Set([c].concat(me(s),me(l)));return f.forEach(function(m){m.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){f.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function lp(e,t,n,r,o,i,a,s){var l=u.useRef(e),c=u.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),u.useEffect(function(){var f=It(function(){c.current=!1});return function(){It.cancel(f)}},[e]),u.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){var M=!1,$=function(k){var V=k.target;M=a(V)},A=function(k){var V=k.target;!c.current&&l.current&&!M&&!a(V)&&s(!1)};return[$,A]},d=f(),m=H(d,2),h=m[0],b=m[1],g=f(),v=H(g,2),p=v[0],y=v[1],S=Ar(r);S.addEventListener("mousedown",h,!0),S.addEventListener("click",b,!0),S.addEventListener("contextmenu",b,!0);var E=Gi(n);if(E&&(E.addEventListener("mousedown",p,!0),E.addEventListener("click",y,!0),E.addEventListener("contextmenu",y,!0)),process.env.NODE_ENV!=="production"){var x,O,C=n==null||(x=n.getRootNode)===null||x===void 0?void 0:x.call(n),T=(O=r.getRootNode)===null||O===void 0?void 0:O.call(r);Dn(C===T,"trigger element and popup element should in same shadow root.")}return function(){S.removeEventListener("mousedown",h,!0),S.removeEventListener("click",b,!0),S.removeEventListener("contextmenu",b,!0),E&&(E.removeEventListener("mousedown",p,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0))}}},[t,n,r,o,i])}var up=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function cp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ya,t=u.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,f=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,p=v===void 0?.1:v,y=n.focusDelay,S=n.blurDelay,E=n.mask,x=n.maskClosable,O=x===void 0?!0:x,C=n.getPopupContainer,T=n.forceRender,F=n.autoDestroy,M=n.destroyPopupOnHide,$=n.popup,A=n.popupClassName,N=n.popupStyle,k=n.popupPlacement,V=n.builtinPlacements,P=V===void 0?{}:V,w=n.popupAlign,R=n.zIndex,_=n.stretch,j=n.getPopupClassNameFromAlign,z=n.fresh,B=n.alignPoint,Q=n.onPopupClick,ee=n.onPopupAlign,Z=n.arrow,Pe=n.popupMotion,ye=n.maskMotion,X=n.popupTransitionName,q=n.popupAnimation,Y=n.maskTransitionName,se=n.maskAnimation,oe=n.className,G=n.getTriggerDOMNode,L=St(n,up),ce=F||M||!1,Se=u.useState(!1),we=H(Se,2),ie=we[0],fe=we[1];lt(function(){fe(Uu())},[]);var he=u.useRef({}),Ee=u.useContext(Vs),de=u.useMemo(function(){return{registerSubPopup:function(xe,at){he.current[xe]=at,Ee==null||Ee.registerSubPopup(xe,at)}}},[Ee]),He=uh(),rt=u.useState(null),ke=H(rt,2),pe=ke[0],tt=ke[1],Oe=Bt(function(le){so(le)&&pe!==le&&tt(le),Ee==null||Ee.registerSubPopup(He,le)}),Me=u.useState(null),Qe=H(Me,2),Ie=Qe[0],pt=Qe[1],yt=u.useRef(null),Rt=Bt(function(le){so(le)&&Ie!==le&&(pt(le),yt.current=le)}),nt=u.Children.only(a),Ke=(nt==null?void 0:nt.props)||{},Ge={},Ze=Bt(function(le){var xe,at,bt=Ie;return(bt==null?void 0:bt.contains(le))||((xe=Gi(bt))===null||xe===void 0?void 0:xe.host)===le||le===bt||(pe==null?void 0:pe.contains(le))||((at=Gi(pe))===null||at===void 0?void 0:at.host)===le||le===pe||Object.values(he.current).some(function(st){return(st==null?void 0:st.contains(le))||le===st})}),$e=Hs(i,Pe,q,X),dt=Hs(i,ye,se,Y),vt=u.useState(m||!1),Te=H(vt,2),_e=Te[0],Ve=Te[1],ge=d??_e,Fe=Bt(function(le){d===void 0&&Ve(le)});lt(function(){Ve(d||!1)},[d]);var ne=u.useRef(ge);ne.current=ge;var ue=u.useRef([]);ue.current=[];var W=Bt(function(le){var xe;Fe(le),((xe=ue.current[ue.current.length-1])!==null&&xe!==void 0?xe:ge)!==le&&(ue.current.push(le),h==null||h(le))}),te=u.useRef(),J=function(){clearTimeout(te.current)},re=function(xe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;J(),at===0?W(xe):te.current=setTimeout(function(){W(xe)},at*1e3)};u.useEffect(function(){return J},[]);var Ne=u.useState(!1),Ae=H(Ne,2),ut=Ae[0],qe=Ae[1];lt(function(le){(!le||ge)&&qe(!0)},[ge]);var wt=u.useState(null),We=H(wt,2),mt=We[0],ct=We[1],Kt=u.useState([0,0]),ve=H(Kt,2),ae=ve[0],Ce=ve[1],et=function(xe){Ce([xe.clientX,xe.clientY])},it=ap(ge,pe,B?ae:Ie,k,P,w,ee),Ct=H(it,11),qt=Ct[0],yn=Ct[1],bn=Ct[2],kt=Ct[3],Gt=Ct[4],fr=Ct[5],sn=Ct[6],On=Ct[7],dr=Ct[8],$t=Ct[9],Xt=Ct[10],Rn=rp(ie,l,c,f),Hn=H(Rn,2),ln=Hn[0],un=Hn[1],cn=ln.has("click"),Re=un.has("click")||un.has("contextMenu"),be=Bt(function(){ut||Xt()}),ht=function(){ne.current&&B&&Re&&re(!1)};sp(ge,Ie,pe,be,ht),lt(function(){be()},[ae,k]),lt(function(){ge&&!(P!=null&&P[k])&&be()},[JSON.stringify(w)]);var xt=u.useMemo(function(){var le=ip(P,i,$t,B);return Ye(le,j==null?void 0:j($t))},[$t,j,P,i,B]);u.useImperativeHandle(r,function(){return{nativeElement:yt.current,forceAlign:be}});var ot=u.useState(0),Ot=H(ot,2),Ft=Ot[0],fn=Ot[1],Vt=u.useState(0),Yt=H(Vt,2),jt=Yt[0],zn=Yt[1],Dr=function(){if(_&&Ie){var xe=Ie.getBoundingClientRect();fn(xe.width),zn(xe.height)}},Ht=function(){Dr(),be()},Lr=function(xe){qe(!1),Xt(),b==null||b(xe)},kr=function(){return new Promise(function(xe){Dr(),ct(function(){return xe})})};lt(function(){mt&&(Xt(),mt(),ct(null))},[mt]);function zt(le,xe,at,bt){Ge[le]=function(st){var zr;bt==null||bt(st),re(xe,at);for(var Vo=arguments.length,Ra=new Array(Vo>1?Vo-1:0),Wr=1;Wr<Vo;Wr++)Ra[Wr-1]=arguments[Wr];(zr=Ke[le])===null||zr===void 0||zr.call.apply(zr,[Ke,st].concat(Ra))}}(cn||Re)&&(Ge.onClick=function(le){var xe;ne.current&&Re?re(!1):!ne.current&&cn&&(et(le),re(!0));for(var at=arguments.length,bt=new Array(at>1?at-1:0),st=1;st<at;st++)bt[st-1]=arguments[st];(xe=Ke.onClick)===null||xe===void 0||xe.call.apply(xe,[Ke,le].concat(bt))}),lp(ge,Re,Ie,pe,E,O,Ze,re);var Wn=ln.has("hover"),Vr=un.has("hover"),Bn,jr;Wn&&(zt("onMouseEnter",!0,g,function(le){et(le)}),zt("onPointerEnter",!0,g,function(le){et(le)}),Bn=function(){(ge||ut)&&re(!0,g)},B&&(Ge.onMouseMove=function(le){var xe;(xe=Ke.onMouseMove)===null||xe===void 0||xe.call(Ke,le)})),Vr&&(zt("onMouseLeave",!1,p),zt("onPointerLeave",!1,p),jr=function(){re(!1,p)}),ln.has("focus")&&zt("onFocus",!0,y),un.has("focus")&&zt("onBlur",!1,S),ln.has("contextMenu")&&(Ge.onContextMenu=function(le){var xe;ne.current&&un.has("contextMenu")?re(!1):(et(le),re(!0)),le.preventDefault();for(var at=arguments.length,bt=new Array(at>1?at-1:0),st=1;st<at;st++)bt[st-1]=arguments[st];(xe=Ke.onContextMenu)===null||xe===void 0||xe.call.apply(xe,[Ke,le].concat(bt))}),oe&&(Ge.className=Ye(Ke.className,oe));var vr=D(D({},Ke),Ge),Hr={},Do=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Do.forEach(function(le){L[le]&&(Hr[le]=function(){for(var xe,at=arguments.length,bt=new Array(at),st=0;st<at;st++)bt[st]=arguments[st];(xe=vr[le])===null||xe===void 0||xe.call.apply(xe,[vr].concat(bt)),L[le].apply(L,bt)})});var Lo=u.cloneElement(nt,D(D({},vr),Hr)),ko={x:fr,y:sn},wc=Z?D({},Z!==!0?Z:{}):null;return u.createElement(u.Fragment,null,u.createElement(Cn,{disabled:!ge,ref:Rt,onResize:Ht},u.createElement(nc,{getTriggerDOMNode:G},Lo)),u.createElement(Vs.Provider,{value:de},u.createElement(tc,{portal:e,ref:Oe,prefixCls:i,popup:$,className:Ye(A,xt),style:N,target:Ie,onMouseEnter:Bn,onMouseLeave:jr,onPointerEnter:Bn,zIndex:R,open:ge,keepDom:ut,fresh:z,onClick:Q,mask:E,motion:$e,maskMotion:dt,onVisibleChanged:Lr,onPrepare:kr,forceRender:T,autoDestroy:ce,getPopupContainer:C,align:$t,arrow:wc,arrowPos:ko,ready:qt,offsetX:yn,offsetY:bn,offsetR:kt,offsetB:Gt,onAlign:be,stretch:_,targetWidth:Ft/On,targetHeight:jt/dr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const fp=cp(ya);var dp=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],vp=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},mp=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,f=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,h=t.placement,b=t.builtinPlacements,g=t.dropdownMatchSelectWidth,v=t.dropdownRender,p=t.dropdownAlign,y=t.getPopupContainer,S=t.empty,E=t.getTriggerDOMNode,x=t.onPopupVisibleChange,O=t.onPopupMouseEnter,C=St(t,dp),T="".concat(r,"-dropdown"),F=a;v&&(F=v(a));var M=u.useMemo(function(){return b||vp(g)},[b,g]),$=s?"".concat(T,"-").concat(s):l,A=typeof g=="number",N=u.useMemo(function(){return A?null:g===!1?"minWidth":"width"},[g,A]),k=c;A&&(k=D(D({},k),{},{width:g}));var V=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){return V.current}}}),u.createElement(fp,Je({},C,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:T,popupTransitionName:$,popup:u.createElement("div",{ref:V,onMouseEnter:O},F),stretch:N,popupAlign:p,popupVisible:o,getPopupContainer:y,popupClassName:Ye(f,I({},"".concat(T,"-empty"),S)),popupStyle:k,getTriggerDOMNode:E,onPopupVisibleChange:x}),i)},rc=u.forwardRef(mp);rc.displayName="SelectTrigger";function Ks(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function oc(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function hp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=oc(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function f(d,m){d.forEach(function(h){if(m||!(l in h)){var b=h[s];o.push({key:Ks(h,o.length),groupOption:m,data:h,label:h[a],value:b})}else{var g=h[c];g===void 0&&r&&(g=h.label),o.push({key:Ks(h,o.length),group:!0,data:h,label:g}),f(h[l],!0)}})}return f(e,!1),o}function Yi(e){var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return De(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function gp(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=kl(a),l=s[0],c=s.slice(1);if(!l)return[i];var f=i.split(l);return n=n||f.length>1,f.reduce(function(d,m){return[].concat(me(d),me(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var pp=["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"],yp=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function yo(e){return e==="tags"||e==="multiple"}var ic=u.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,f=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,b=e.notFoundContent,g=b===void 0?"Not Found":b,v=e.onClear,p=e.mode,y=e.disabled,S=e.loading,E=e.getInputElement,x=e.getRawInputElement,O=e.open,C=e.defaultOpen,T=e.onDropdownVisibleChange,F=e.activeValue,M=e.onActiveValueChange,$=e.activeDescendantId,A=e.searchValue,N=e.autoClearSearchValue,k=e.onSearch,V=e.onSearchSplit,P=e.tokenSeparators,w=e.allowClear,R=e.suffixIcon,_=e.clearIcon,j=e.OptionList,z=e.animation,B=e.transitionName,Q=e.dropdownStyle,ee=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,Pe=e.dropdownRender,ye=e.dropdownAlign,X=e.placement,q=e.builtinPlacements,Y=e.getPopupContainer,se=e.showAction,oe=se===void 0?[]:se,G=e.onFocus,L=e.onBlur,ce=e.onKeyUp,Se=e.onKeyDown,we=e.onMouseDown,ie=St(e,pp),fe=yo(p),he=(s!==void 0?s:fe)||p==="combobox",Ee=D({},ie);yp.forEach(function(Re){delete Ee[Re]}),f==null||f.forEach(function(Re){delete Ee[Re]});var de=u.useState(!1),He=H(de,2),rt=He[0],ke=He[1];u.useEffect(function(){ke(Uu())},[]);var pe=u.useRef(null),tt=u.useRef(null),Oe=u.useRef(null),Me=u.useRef(null),Qe=u.useRef(null),Ie=u.useRef(!1),pt=Tg(),yt=H(pt,3),Rt=yt[0],nt=yt[1],Ke=yt[2];u.useImperativeHandle(t,function(){var Re,be;return{focus:(Re=Me.current)===null||Re===void 0?void 0:Re.focus,blur:(be=Me.current)===null||be===void 0?void 0:be.blur,scrollTo:function(xt){var ot;return(ot=Qe.current)===null||ot===void 0?void 0:ot.scrollTo(xt)}}});var Ge=u.useMemo(function(){var Re;if(p!=="combobox")return A;var be=(Re=d[0])===null||Re===void 0?void 0:Re.value;return typeof be=="string"||typeof be=="number"?String(be):""},[A,p,d]),Ze=p==="combobox"&&typeof E=="function"&&E()||null,$e=typeof x=="function"&&x(),dt=So(tt,$e==null||(n=$e.props)===null||n===void 0?void 0:n.ref),vt=u.useState(!1),Te=H(vt,2),_e=Te[0],Ve=Te[1];lt(function(){Ve(!0)},[]);var ge=mo(!1,{defaultValue:C,value:O}),Fe=H(ge,2),ne=Fe[0],ue=Fe[1],W=_e?ne:!1,te=!g&&h;(y||te&&W&&p==="combobox")&&(W=!1);var J=te?!1:W,re=u.useCallback(function(Re){var be=Re!==void 0?Re:!W;y||(ue(be),W!==be&&(T==null||T(be)))},[y,W,ue,T]),Ne=u.useMemo(function(){return(P||[]).some(function(Re){return[`
163
- `,`\r
164
- `].includes(Re)})},[P]),Ae=function(be,ht,xt){var ot=!0,Ot=be;M==null||M(null);var Ft=xt?null:gp(be,P);return p!=="combobox"&&Ft&&(Ot="",V==null||V(Ft),re(!1),ot=!1),k&&Ge!==Ot&&k(Ot,{source:ht?"typing":"effect"}),ot},ut=function(be){!be||!be.trim()||k(be,{source:"submit"})};u.useEffect(function(){!W&&!fe&&p!=="combobox"&&Ae("",!1,!1)},[W]),u.useEffect(function(){ne&&y&&ue(!1),y&&!Ie.current&&nt(!1)},[y]);var qe=qu(),wt=H(qe,2),We=wt[0],mt=wt[1],ct=function(be){var ht=We(),xt=be.which;if(xt===K.ENTER&&(p!=="combobox"&&be.preventDefault(),W||re(!0)),mt(!!Ge),xt===K.BACKSPACE&&!ht&&fe&&!Ge&&d.length){for(var ot=me(d),Ot=null,Ft=ot.length-1;Ft>=0;Ft-=1){var fn=ot[Ft];if(!fn.disabled){ot.splice(Ft,1),Ot=fn;break}}Ot&&m(ot,{type:"remove",values:[Ot]})}for(var Vt=arguments.length,Yt=new Array(Vt>1?Vt-1:0),jt=1;jt<Vt;jt++)Yt[jt-1]=arguments[jt];if(W&&Qe.current){var zn;(zn=Qe.current).onKeyDown.apply(zn,[be].concat(Yt))}Se==null||Se.apply(void 0,[be].concat(Yt))},Kt=function(be){for(var ht=arguments.length,xt=new Array(ht>1?ht-1:0),ot=1;ot<ht;ot++)xt[ot-1]=arguments[ot];if(W&&Qe.current){var Ot;(Ot=Qe.current).onKeyUp.apply(Ot,[be].concat(xt))}ce==null||ce.apply(void 0,[be].concat(xt))},ve=function(be){var ht=d.filter(function(xt){return xt!==be});m(ht,{type:"remove",values:[be]})},ae=u.useRef(!1),Ce=function(){nt(!0),y||(G&&!ae.current&&G.apply(void 0,arguments),oe.includes("focus")&&re(!0)),ae.current=!0},et=function(){Ie.current=!0,nt(!1,function(){ae.current=!1,Ie.current=!1,re(!1)}),!y&&(Ge&&(p==="tags"?k(Ge,{source:"submit"}):p==="multiple"&&k("",{source:"blur"})),L&&L.apply(void 0,arguments))},it=[];u.useEffect(function(){return function(){it.forEach(function(Re){return clearTimeout(Re)}),it.splice(0,it.length)}},[]);var Ct=function(be){var ht,xt=be.target,ot=(ht=Oe.current)===null||ht===void 0?void 0:ht.getPopupElement();if(ot&&ot.contains(xt)){var Ot=setTimeout(function(){var Yt=it.indexOf(Ot);if(Yt!==-1&&it.splice(Yt,1),Ke(),!rt&&!ot.contains(document.activeElement)){var jt;(jt=Me.current)===null||jt===void 0||jt.focus()}});it.push(Ot)}for(var Ft=arguments.length,fn=new Array(Ft>1?Ft-1:0),Vt=1;Vt<Ft;Vt++)fn[Vt-1]=arguments[Vt];we==null||we.apply(void 0,[be].concat(fn))},qt=u.useState({}),yn=H(qt,2),bn=yn[1];function kt(){bn({})}var Gt;$e&&(Gt=function(be){re(be)}),Ng(function(){var Re;return[pe.current,(Re=Oe.current)===null||Re===void 0?void 0:Re.getPopupElement()]},J,re,!!$e);var fr=u.useMemo(function(){return D(D({},e),{},{notFoundContent:g,open:W,triggerOpen:J,id:o,showSearch:he,multiple:fe,toggleOpen:re})},[e,g,J,W,o,he,fe,re]),sn=!!R||S,On;sn&&(On=u.createElement(_o,{className:Ye("".concat(i,"-arrow"),I({},"".concat(i,"-arrow-loading"),S)),customizeIcon:R,customizeIconProps:{loading:S,searchValue:Ge,open:W,focused:Rt,showSearch:he}}));var dr=function(){var be;v==null||v(),(be=Me.current)===null||be===void 0||be.focus(),m([],{type:"clear",values:d}),Ae("",!1,!1)},$t=Mg(i,dr,d,w,_,y,Ge,p),Xt=$t.allowClear,Rn=$t.clearIcon,Hn=u.createElement(j,{ref:Qe}),ln=Ye(i,a,(r={},I(r,"".concat(i,"-focused"),Rt),I(r,"".concat(i,"-multiple"),fe),I(r,"".concat(i,"-single"),!fe),I(r,"".concat(i,"-allow-clear"),w),I(r,"".concat(i,"-show-arrow"),sn),I(r,"".concat(i,"-disabled"),y),I(r,"".concat(i,"-loading"),S),I(r,"".concat(i,"-open"),W),I(r,"".concat(i,"-customize-input"),Ze),I(r,"".concat(i,"-show-search"),he),r)),un=u.createElement(rc,{ref:Oe,disabled:y,prefixCls:i,visible:J,popupElement:Hn,animation:z,transitionName:B,dropdownStyle:Q,dropdownClassName:ee,direction:c,dropdownMatchSelectWidth:Z,dropdownRender:Pe,dropdownAlign:ye,placement:X,builtinPlacements:q,getPopupContainer:Y,empty:h,getTriggerDOMNode:function(){return tt.current},onPopupVisibleChange:Gt,onPopupMouseEnter:kt},$e?u.cloneElement($e,{ref:dt}):u.createElement(Zu,Je({},e,{domRef:tt,prefixCls:i,inputElement:Ze,ref:Me,id:o,showSearch:he,autoClearSearchValue:N,mode:p,activeDescendantId:$,tagRender:l,values:d,open:W,onToggleOpen:re,activeValue:F,searchValue:Ge,onSearch:Ae,onSearchSubmit:ut,onRemove:ve,tokenWithEnter:Ne}))),cn;return $e?cn=un:cn=u.createElement("div",Je({className:ln},Ee,{ref:pe,onMouseDown:Ct,onKeyDown:ct,onKeyUp:Kt,onFocus:Ce,onBlur:et}),Rt&&!W&&u.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(Re){var be=Re.label,ht=Re.value;return["number","string"].includes(je(be))?be:ht}).join(", "))),un,On,Xt&&Rn),u.createElement(Ku.Provider,{value:fr},cn)});process.env.NODE_ENV!=="production"&&(ic.displayName="BaseSelect");var wa=function(){return null};wa.isSelectOptGroup=!0;var Ca=function(){return null};Ca.isSelectOption=!0;var ac=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,f=e.extra,d={},m={display:"flex",flexDirection:"column"};if(r!==void 0){var h;d={height:n,position:"relative",overflow:"hidden"},m=D(D({},m),{},(h={transform:"translateY(".concat(r,"px)")},I(h,c?"marginRight":"marginLeft",-o),I(h,"position","absolute"),I(h,"left",0),I(h,"right",0),I(h,"top",0),h))}return u.createElement("div",{style:d},u.createElement(Cn,{onResize:function(g){var v=g.offsetHeight;v&&s&&s()}},u.createElement("div",Je({style:m,className:Ye(I({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,f)))});ac.displayName="Filler";function qs(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Qi=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,f=e.horizontal,d=e.spinSize,m=e.containerSize,h=e.style,b=e.thumbStyle,g=u.useState(!1),v=H(g,2),p=v[0],y=v[1],S=u.useState(null),E=H(S,2),x=E[0],O=E[1],C=u.useState(null),T=H(C,2),F=T[0],M=T[1],$=!o,A=u.useRef(),N=u.useRef(),k=u.useState(!1),V=H(k,2),P=V[0],w=V[1],R=u.useRef(),_=function(){clearTimeout(R.current),w(!0),R.current=setTimeout(function(){w(!1)},3e3)},j=a-m||0,z=m-d||0,B=j>0,Q=u.useMemo(function(){if(i===0||j===0)return 0;var oe=i/j;return oe*z},[i,j,z]),ee=function(G){G.stopPropagation(),G.preventDefault()},Z=u.useRef({top:Q,dragging:p,pageY:x,startTop:F});Z.current={top:Q,dragging:p,pageY:x,startTop:F};var Pe=function(G){y(!0),O(qs(G,f)),M(Z.current.top),s(),G.stopPropagation(),G.preventDefault()};u.useEffect(function(){var oe=function(Se){Se.preventDefault()},G=A.current,L=N.current;return G.addEventListener("touchstart",oe),L.addEventListener("touchstart",Pe),function(){G.removeEventListener("touchstart",oe),L.removeEventListener("touchstart",Pe)}},[]);var ye=u.useRef();ye.current=j;var X=u.useRef();X.current=z,u.useEffect(function(){if(p){var oe,G=function(Se){var we=Z.current,ie=we.dragging,fe=we.pageY,he=we.startTop;if(It.cancel(oe),ie){var Ee=qs(Se,f)-fe,de=he;!$&&f?de-=Ee:de+=Ee;var He=ye.current,rt=X.current,ke=rt?de/rt:0,pe=Math.ceil(ke*He);pe=Math.max(pe,0),pe=Math.min(pe,He),oe=It(function(){c(pe,f)})}},L=function(){y(!1),l()};return window.addEventListener("mousemove",G),window.addEventListener("touchmove",G),window.addEventListener("mouseup",L),window.addEventListener("touchend",L),function(){window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",L),window.removeEventListener("touchend",L),It.cancel(oe)}}},[p]),u.useEffect(function(){_()},[i]),u.useImperativeHandle(t,function(){return{delayHidden:_}});var q="".concat(r,"-scrollbar"),Y={position:"absolute",visibility:P&&B?null:"hidden"},se={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,se.height="100%",se.width=d,$?se.left=Q:se.right=Q):(Y.width=8,Y.top=0,Y.bottom=0,$?Y.right=0:Y.left=0,se.width="100%",se.height=d,se.top=Q),u.createElement("div",{ref:A,className:Ye(q,(n={},I(n,"".concat(q,"-horizontal"),f),I(n,"".concat(q,"-vertical"),!f),I(n,"".concat(q,"-visible"),P),n)),style:D(D({},Y),h),onMouseDown:ee,onMouseMove:_},u.createElement("div",{ref:N,className:Ye("".concat(q,"-thumb"),I({},"".concat(q,"-thumb-moving"),p)),style:D(D({},se),b),onMouseDown:Pe}))});process.env.NODE_ENV!=="production"&&(Qi.displayName="ScrollBar");function bp(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function Sp(e,t,n,r,o,i,a){var s=a.getKey;return e.slice(t,n+1).map(function(l,c){var f=t+c,d=i(l,f,{style:{width:r}}),m=s(l);return u.createElement(bp,{key:m,setRef:function(b){return o(l,b)}},d)})}var Ep=function(){function e(){on(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return an(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function wp(e,t,n){var r=u.useState(0),o=H(r,2),i=o[0],a=o[1],s=U.useRef(new Map),l=U.useRef(new Ep),c=U.useRef();function f(){It.cancel(c.current)}function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;f();var b=function(){s.current.forEach(function(v,p){if(v&&v.offsetParent){var y=br(v),S=y.offsetHeight;l.current.get(p)!==S&&l.current.set(p,y.offsetHeight)}}),a(function(v){return v+1})};h?b():c.current=It(b)}function m(h,b){var g=e(h),v=s.current.get(g);b?(s.current.set(g,b),d()):s.current.delete(g),!v!=!b&&(b?t==null||t(h):n==null||n(h))}return U.useEffect(function(){return f},[]),[m,d,l.current,i]}var Gs=10;function Cp(e,t,n,r,o,i,a,s){var l=u.useRef(),c=u.useState(null),f=H(c,2),d=f[0],m=f[1];return lt(function(){if(d&&d.times<Gs){if(!e.current){m(function(_){return D({},_)});return}i();var h=d.targetAlign,b=d.originAlign,g=d.index,v=d.offset,p=e.current.clientHeight,y=!1,S=h,E=null;if(p){for(var x=h||b,O=0,C=0,T=0,F=Math.min(t.length-1,g),M=0;M<=F;M+=1){var $=o(t[M]);C=O;var A=n.get($);T=C+(A===void 0?r:A),O=T}for(var N=x==="top"?v:p-v,k=F;k>=0;k-=1){var V=o(t[k]),P=n.get(V);if(P===void 0){y=!0;break}if(N-=P,N<=0)break}switch(x){case"top":E=C-v;break;case"bottom":E=T-p+v;break;default:{var w=e.current.scrollTop,R=w+p;C<w?S="top":T>R&&(S="bottom")}}E!==null&&a(E),E!==d.lastTop&&(y=!0)}y&&m(D(D({},d),{},{times:d.times+1,targetAlign:S,lastTop:E}))}else process.env.NODE_ENV!=="production"&&(d==null?void 0:d.times)===Gs&&De(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,e.current]),function(h){if(h==null){s();return}if(It.cancel(l.current),typeof h=="number")a(h);else if(h&&je(h)==="object"){var b,g=h.align;"index"in h?b=h.index:b=t.findIndex(function(y){return o(y)===h.key});var v=h.offset,p=v===void 0?0:v;m({times:0,index:b,offset:p,originAlign:g})}}}function xp(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(b){return b!==void 0?n(b):s}for(var c=null,f=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var m=l(i[d]),h=l(a[d]);if(m!==h){c=d,f=f||m!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:f}}function Op(e,t,n){var r=u.useState(e),o=H(r,2),i=o[0],a=o[1],s=u.useState(null),l=H(s,2),c=l[0],f=l[1];return u.useEffect(function(){var d=xp(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),f(e[d.index])),a(e)},[e]),[c]}var Xs=(typeof navigator>"u"?"undefined":je(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const sc=function(e,t){var n=U.useRef(!1),r=U.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=U.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function Rp(e,t,n,r,o){var i=U.useRef(0),a=U.useRef(null),s=U.useRef(null),l=U.useRef(!1),c=sc(t,n);function f(v,p){It.cancel(a.current),i.current+=p,s.current=p,!c(p)&&(Xs||v.preventDefault(),a.current=It(function(){var y=l.current?10:1;o(i.current*y),i.current=0}))}function d(v,p){o(p,!0),Xs||v.preventDefault()}var m=U.useRef(null),h=U.useRef(null);function b(v){if(e){It.cancel(h.current),h.current=It(function(){m.current=null},2);var p=v.deltaX,y=v.deltaY,S=v.shiftKey,E=p,x=y;(m.current==="sx"||!m.current&&S&&y&&!p)&&(E=y,x=0,m.current="sx");var O=Math.abs(E),C=Math.abs(x);m.current===null&&(m.current=r&&O>C?"x":"y"),m.current==="y"?f(v,x):d(v,E)}}function g(v){e&&(l.current=v.detail===s.current)}return[b,g]}var Pp=14/15;function Mp(e,t,n){var r=U.useRef(!1),o=U.useRef(0),i=U.useRef(null),a=U.useRef(null),s,l=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),b=o.current-h;o.current=h,n(b)&&m.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){b*=Pp,(!n(b,!0)||Math.abs(b)<=.1)&&clearInterval(a.current)},16)}},c=function(){r.current=!1,s()},f=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c))};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c))},lt(function(){return e&&t.current.addEventListener("touchstart",f),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),s(),clearInterval(a.current)}},[e])}var Ip=20;function Ys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,Ip),n=Math.min(n,e/2),Math.floor(n)}function Tp(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=H(o,2),a=i[0],s=i[1],l=function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,m=a.get(f),h=a.get(d);if(m===void 0||h===void 0)for(var b=e.length,g=s.length;g<b;g+=1){var v,p=e[g],y=t(p);a.set(y,g);var S=(v=n.get(y))!==null&&v!==void 0?v:r;if(s[g]=(s[g-1]||0)+S,y===f&&(m=g),y===d&&(h=g),m!==void 0&&h!==void 0)break}return{top:s[m-1]||0,bottom:s[h]}};return l}var Np=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Fp=[],$p={overflowY:"auto",overflowAnchor:"none"};function _p(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,f=e.data,d=e.children,m=e.itemKey,h=e.virtual,b=e.direction,g=e.scrollWidth,v=e.component,p=v===void 0?"div":v,y=e.onScroll,S=e.onVirtualScroll,E=e.onVisibleChange,x=e.innerProps,O=e.extraRender,C=e.styles,T=St(e,Np),F=!!(h!==!1&&i&&a),M=F&&f&&(a*f.length>i||!!g),$=b==="rtl",A=Ye(r,I({},"".concat(r,"-rtl"),$),o),N=f||Fp,k=U.useRef(),V=U.useRef(),P=U.useState(0),w=H(P,2),R=w[0],_=w[1],j=U.useState(0),z=H(j,2),B=z[0],Q=z[1],ee=U.useState(!1),Z=H(ee,2),Pe=Z[0],ye=Z[1],X=function(){ye(!0)},q=function(){ye(!1)},Y=u.useCallback(function(ve){return typeof m=="function"?m(ve):ve==null?void 0:ve[m]},[m]),se={getKey:Y};function oe(ve){_(function(ae){var Ce;typeof ve=="function"?Ce=ve(ae):Ce=ve;var et=dt(Ce);return k.current.scrollTop=et,et})}var G=U.useRef({start:0,end:N.length}),L=U.useRef(),ce=Op(N,Y),Se=H(ce,1),we=Se[0];L.current=we;var ie=wp(Y,null,null),fe=H(ie,4),he=fe[0],Ee=fe[1],de=fe[2],He=fe[3],rt=u.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!M){var ve;return{scrollHeight:((ve=V.current)===null||ve===void 0?void 0:ve.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var ae=0,Ce,et,it,Ct=N.length,qt=0;qt<Ct;qt+=1){var yn=N[qt],bn=Y(yn),kt=de.get(bn),Gt=ae+(kt===void 0?a:kt);Gt>=R&&Ce===void 0&&(Ce=qt,et=ae),Gt>R+i&&it===void 0&&(it=qt),ae=Gt}return Ce===void 0&&(Ce=0,et=0,it=Math.ceil(i/a)),it===void 0&&(it=N.length-1),it=Math.min(it+1,N.length-1),{scrollHeight:ae,start:Ce,end:it,offset:et}},[M,F,R,N,He,i]),ke=rt.scrollHeight,pe=rt.start,tt=rt.end,Oe=rt.offset;G.current.start=pe,G.current.end=tt;var Me=u.useState({width:0,height:i}),Qe=H(Me,2),Ie=Qe[0],pt=Qe[1],yt=function(ae){pt({width:ae.width||ae.offsetWidth,height:ae.height||ae.offsetHeight})},Rt=U.useRef(),nt=U.useRef(),Ke=u.useMemo(function(){return Ys(Ie.width,g)},[Ie.width,g]),Ge=u.useMemo(function(){return Ys(Ie.height,ke)},[Ie.height,ke]),Ze=ke-i,$e=U.useRef(Ze);$e.current=Ze;function dt(ve){var ae=ve;return Number.isNaN($e.current)||(ae=Math.min(ae,$e.current)),ae=Math.max(ae,0),ae}var vt=R<=0,Te=R>=Ze,_e=sc(vt,Te),Ve=function(){return{x:$?-B:B,y:R}},ge=U.useRef(Ve()),Fe=Bt(function(){if(S){var ve=Ve();(ge.current.x!==ve.x||ge.current.y!==ve.y)&&(S(ve),ge.current=ve)}});function ne(ve,ae){var Ce=ve;ae?(xr.flushSync(function(){Q(Ce)}),Fe()):oe(Ce)}function ue(ve){var ae=ve.currentTarget.scrollTop;ae!==R&&oe(ae),y==null||y(ve),Fe()}var W=function(ae){var Ce=ae,et=g-Ie.width;return Ce=Math.max(Ce,0),Ce=Math.min(Ce,et),Ce},te=Bt(function(ve,ae){ae?(xr.flushSync(function(){Q(function(Ce){var et=Ce+($?-ve:ve);return W(et)})}),Fe()):oe(function(Ce){var et=Ce+ve;return et})}),J=Rp(F,vt,Te,!!g,te),re=H(J,2),Ne=re[0],Ae=re[1];Mp(F,k,function(ve,ae){return _e(ve,ae)?!1:(Ne({preventDefault:function(){},deltaY:ve}),!0)}),lt(function(){function ve(Ce){F&&Ce.preventDefault()}var ae=k.current;return ae.addEventListener("wheel",Ne),ae.addEventListener("DOMMouseScroll",Ae),ae.addEventListener("MozMousePixelScroll",ve),function(){ae.removeEventListener("wheel",Ne),ae.removeEventListener("DOMMouseScroll",Ae),ae.removeEventListener("MozMousePixelScroll",ve)}},[F]),lt(function(){g&&Q(function(ve){return W(ve)})},[Ie.width,g]);var ut=function(){var ae,Ce;(ae=Rt.current)===null||ae===void 0||ae.delayHidden(),(Ce=nt.current)===null||Ce===void 0||Ce.delayHidden()},qe=Cp(k,N,de,a,Y,function(){return Ee(!0)},oe,ut);u.useImperativeHandle(t,function(){return{getScrollInfo:Ve,scrollTo:function(ae){function Ce(et){return et&&je(et)==="object"&&("left"in et||"top"in et)}Ce(ae)?(ae.left!==void 0&&Q(W(ae.left)),qe(ae.top)):qe(ae)}}}),lt(function(){if(E){var ve=N.slice(pe,tt+1);E(ve,N)}},[pe,tt,N]);var wt=Tp(N,Y,de,a),We=O==null?void 0:O({start:pe,end:tt,virtual:M,offsetX:B,offsetY:Oe,rtl:$,getSize:wt}),mt=Sp(N,pe,tt,g,he,d,se),ct=null;i&&(ct=D(I({},l?"height":"maxHeight",i),$p),F&&(ct.overflowY="hidden",g&&(ct.overflowX="hidden"),Pe&&(ct.pointerEvents="none")));var Kt={};return $&&(Kt.dir="rtl"),u.createElement("div",Je({style:D(D({},c),{},{position:"relative"}),className:A},Kt,T),u.createElement(Cn,{onResize:yt},u.createElement(p,{className:"".concat(r,"-holder"),style:ct,ref:k,onScroll:ue,onMouseEnter:ut},u.createElement(ac,{prefixCls:r,height:ke,offsetX:B,offsetY:Oe,scrollWidth:g,onInnerResize:Ee,ref:V,innerProps:x,rtl:$,extra:We},mt))),M&&ke>i&&u.createElement(Qi,{ref:Rt,prefixCls:r,scrollOffset:R,scrollRange:ke,rtl:$,onScroll:ne,onStartMove:X,onStopMove:q,spinSize:Ge,containerSize:Ie.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),M&&g&&u.createElement(Qi,{ref:nt,prefixCls:r,scrollOffset:B,scrollRange:g,rtl:$,onScroll:ne,onStartMove:X,onStopMove:q,spinSize:Ke,containerSize:Ie.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var lc=u.forwardRef(_p);lc.displayName="List";var uc=u.createContext(null);function Ap(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Dp=["disabled","title","children","style","className"];function Qs(e){return typeof e=="string"||typeof e=="number"}var Lp=function(t,n){var r=Ig(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,f=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,h=u.useContext(uc),b=h.flattenOptions,g=h.onActiveValue,v=h.defaultActiveFirstOption,p=h.onSelect,y=h.menuItemSelectedIcon,S=h.rawValues,E=h.fieldNames,x=h.virtual,O=h.direction,C=h.listHeight,T=h.listItemHeight,F=h.optionRender,M="".concat(o,"-item"),$=bo(function(){return b},[a,b],function(X,q){return q[0]&&X[1]!==q[1]}),A=u.useRef(null),N=function(q){q.preventDefault()},k=function(q){A.current&&A.current.scrollTo(typeof q=="number"?{index:q}:q)},V=function(q){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,se=$.length,oe=0;oe<se;oe+=1){var G=(q+oe*Y+se)%se,L=$[G],ce=L.group,Se=L.data;if(!ce&&!Se.disabled)return G}return-1},P=u.useState(function(){return V(0)}),w=H(P,2),R=w[0],_=w[1],j=function(q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_(q);var se={source:Y?"keyboard":"mouse"},oe=$[q];if(!oe){g(null,-1,se);return}g(oe.value,q,se)};U.useEffect(function(){j(v!==!1?V(0):-1)},[$.length,c]);var z=u.useCallback(function(X){return S.has(X)&&l!=="combobox"},[l,me(S).toString(),S.size]);U.useEffect(function(){var X=setTimeout(function(){if(!s&&a&&S.size===1){var Y=Array.from(S)[0],se=$.findIndex(function(oe){var G=oe.data;return G.value===Y});se!==-1&&(j(se),k(se))}});if(a){var q;(q=A.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(X)}},[a,c]);var B=function(q){q!==void 0&&p(q,{selected:!S.has(q)}),s||f(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(q){var Y=q.which,se=q.ctrlKey;switch(Y){case K.N:case K.P:case K.UP:case K.DOWN:{var oe=0;if(Y===K.UP?oe=-1:Y===K.DOWN?oe=1:Ap()&&se&&(Y===K.N?oe=1:Y===K.P&&(oe=-1)),oe!==0){var G=V(R+oe,oe);k(G),j(G,!0)}break}case K.ENTER:{var L=$[R];L&&!L.data.disabled?B(L.value):B(void 0),a&&q.preventDefault();break}case K.ESC:f(!1),a&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){k(q)}}}),$.length===0)return u.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:N},d);var Q=Object.keys(E).map(function(X){return E[X]}),ee=function(q){return q.label};function Z(X,q){var Y=X.group;return{role:Y?"presentation":"option",id:"".concat(i,"_list_").concat(q)}}var Pe=function(q){var Y=$[q];if(!Y)return null;var se=Y.data||{},oe=se.value,G=Y.group,L=ho(se,!0),ce=ee(Y);return Y?u.createElement("div",Je({"aria-label":typeof ce=="string"&&!G?ce:null},L,{key:q},Z(Y,q),{"aria-selected":z(oe)}),oe):null},ye={role:"listbox",id:"".concat(i,"_list")};return u.createElement(u.Fragment,null,x&&u.createElement("div",Je({},ye,{style:{height:0,width:0,overflow:"hidden"}}),Pe(R-1),Pe(R),Pe(R+1)),u.createElement(lc,{itemKey:"key",ref:A,data:$,height:C,itemHeight:T,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:x,direction:O,innerProps:x?null:ye},function(X,q){var Y,se=X.group,oe=X.groupOption,G=X.data,L=X.label,ce=X.value,Se=G.key;if(se){var we,ie=(we=G.title)!==null&&we!==void 0?we:Qs(L)?L.toString():void 0;return u.createElement("div",{className:Ye(M,"".concat(M,"-group")),title:ie},L!==void 0?L:Se)}var fe=G.disabled,he=G.title;G.children;var Ee=G.style,de=G.className,He=St(G,Dp),rt=vl(He,Q),ke=z(ce),pe="".concat(M,"-option"),tt=Ye(M,pe,de,(Y={},I(Y,"".concat(pe,"-grouped"),oe),I(Y,"".concat(pe,"-active"),R===q&&!fe),I(Y,"".concat(pe,"-disabled"),fe),I(Y,"".concat(pe,"-selected"),ke),Y)),Oe=ee(X),Me=!y||typeof y=="function"||ke,Qe=typeof Oe=="number"?Oe:Oe||ce,Ie=Qs(Qe)?Qe.toString():void 0;return he!==void 0&&(Ie=he),u.createElement("div",Je({},ho(rt),x?{}:Z(X,q),{"aria-selected":ke,className:tt,title:Ie,onMouseMove:function(){R===q||fe||j(q)},onClick:function(){fe||B(ce)},style:Ee}),u.createElement("div",{className:"".concat(pe,"-content")},typeof F=="function"?F(X,{index:q}):Qe),u.isValidElement(y)||ke,Me&&u.createElement(_o,{className:"".concat(M,"-option-state"),customizeIcon:y,customizeIconProps:{value:ce,disabled:fe,isSelected:ke}},ke?"✓":null))}))},cc=u.forwardRef(Lp);cc.displayName="OptionList";const kp=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var m;return D(D({},d),{},{label:(m=a.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,f=new Map;return l.forEach(function(d){c.set(d.value,d),f.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=f,l},[e,t]),o=u.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function ni(e,t){return Ea(e).join("").toUpperCase().includes(t)}const Vp=function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",f=n.toUpperCase(),d=c?r:function(h,b){return o?ni(b[o],f):b[i]?ni(b[a!=="children"?a:"label"],f):ni(b[s],f)},m=c?function(h){return Yi(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var b=d(n,m(h));if(b)l.push(h);else{var g=h[i].filter(function(v){return d(n,m(v))});g.length&&l.push(D(D({},h),{},I({},i,g)))}return}d(n,m(h))&&l.push(h)}),l},[e,r,o,n,t])};var Zs=0,jp=process.env.NODE_ENV!=="test"&&Tt();function Hp(){var e;return jp?(e=Zs,Zs+=1):e="TEST_OR_SSR",e}function zp(e){var t=u.useState(),n=H(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(Hp()))},[]),e||r}var Wp=["children","value"],Bp=["children"];function Up(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=St(r,Wp);return D({key:n,value:i!==void 0?i:n,children:o},a)}function xa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return An(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=St(s,Bp);return t||!i?Up(n):D(D({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:xa(l)})}).filter(function(n){return n})}function Kp(e,t,n,r,o){return u.useMemo(function(){var i=e,a=!e;a&&(i=xa(t));var s=new Map,l=new Map,c=function(m,h,b){b&&typeof b=="string"&&m.set(h[b],h)};function f(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var b=d[h];!b[n.options]||m?(s.set(b[n.value],b),c(l,b,n.label),c(l,b,r),c(l,b,o)):f(b[n.options],!0)}}return f(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Js(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function qp(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,s=e.getInputElement,l=e.showSearch,c=e.onSearch,f=e.defaultOpen,d=e.autoFocus,m=e.labelInValue,h=e.value,b=e.inputValue,g=e.optionLabelProp,v=yo(t),p=l!==void 0?l:v||t==="combobox",y=n||xa(r);if(De(t!=="tags"||y.every(function(O){return!O.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var S=y.some(function(O){return O.options?O.options.some(function(C){return typeof("value"in C?C.value:C.key)=="number"}):typeof("value"in O?O.value:O.key)=="number"});De(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(De(t!=="combobox"||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),De(t==="combobox"||!o,"`backfill` only works with `combobox` mode."),De(t==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),li(t!=="combobox"||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!p&&t!=="combobox"&&t!=="tags"&&De(!1,"`onSearch` should work with `showSearch` instead of use alone."),li(!f||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),h!=null){var E=Ea(h);De(!m||E.every(function(O){return je(O)==="object"&&("key"in O||"value"in O)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),De(!v||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;An(r).some(function(O){if(!u.isValidElement(O)||!O.type)return!1;var C=O,T=C.type;if(T.isSelectOption)return!1;if(T.isSelectOptGroup){var F=An(O.props.children).every(function(M){return!u.isValidElement(M)||!O.type||M.type.isSelectOption?!0:(x=M.type,!1)});return!F}return x=T,!0}),x&&De(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),De(b===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Gp(e,t){if(e){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var s=o[a];if(s[t==null?void 0:t.value]===null)return De(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(s[t==null?void 0:t.options])&&r(s[t==null?void 0:t.options],!0))break}};n(e)}}var Xp=["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","value","defaultValue","labelInValue","onChange"],Yp=["inputValue"];function Qp(e){return!e||je(e)!=="object"}var fc=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,f=e.onSearch,d=e.autoClearSearchValue,m=d===void 0?!0:d,h=e.onSelect,b=e.onDeselect,g=e.dropdownMatchSelectWidth,v=g===void 0?!0:g,p=e.filterOption,y=e.filterSort,S=e.optionFilterProp,E=e.optionLabelProp,x=e.options,O=e.optionRender,C=e.children,T=e.defaultActiveFirstOption,F=e.menuItemSelectedIcon,M=e.virtual,$=e.direction,A=e.listHeight,N=A===void 0?200:A,k=e.listItemHeight,V=k===void 0?20:k,P=e.value,w=e.defaultValue,R=e.labelInValue,_=e.onChange,j=St(e,Xp),z=zp(n),B=yo(r),Q=!!(!x&&C),ee=u.useMemo(function(){return p===void 0&&r==="combobox"?!1:p},[p,r]),Z=u.useMemo(function(){return oc(s,Q)},[JSON.stringify(s),Q]),Pe=mo("",{value:c!==void 0?c:l,postState:function(te){return te||""}}),ye=H(Pe,2),X=ye[0],q=ye[1],Y=Kp(x,C,Z,S,E),se=Y.valueOptions,oe=Y.labelOptions,G=Y.options,L=u.useCallback(function(W){var te=Ea(W);return te.map(function(J){var re,Ne,Ae,ut,qe;if(Qp(J))re=J;else{var wt;Ae=J.key,Ne=J.label,re=(wt=J.value)!==null&&wt!==void 0?wt:Ae}var We=se.get(re);if(We){var mt;if(Ne===void 0&&(Ne=We==null?void 0:We[E||Z.label]),Ae===void 0&&(Ae=(mt=We==null?void 0:We.key)!==null&&mt!==void 0?mt:re),ut=We==null?void 0:We.disabled,qe=We==null?void 0:We.title,process.env.NODE_ENV!=="production"&&!E){var ct=We==null?void 0:We[Z.label];ct!==void 0&&!u.isValidElement(ct)&&!u.isValidElement(Ne)&&ct!==Ne&&De(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Ne,value:re,key:Ae,disabled:ut,title:qe}})},[Z,E,se]),ce=mo(w,{value:P}),Se=H(ce,2),we=Se[0],ie=Se[1],fe=u.useMemo(function(){var W,te=L(we);return r==="combobox"&&qg((W=te[0])===null||W===void 0?void 0:W.value)?[]:te},[we,L,r]),he=kp(fe,se),Ee=H(he,2),de=Ee[0],He=Ee[1],rt=u.useMemo(function(){if(!r&&de.length===1){var W=de[0];if(W.value===null&&(W.label===null||W.label===void 0))return[]}return de.map(function(te){var J;return D(D({},te),{},{label:(J=te.label)!==null&&J!==void 0?J:te.value})})},[r,de]),ke=u.useMemo(function(){return new Set(de.map(function(W){return W.value}))},[de]);u.useEffect(function(){if(r==="combobox"){var W,te=(W=de[0])===null||W===void 0?void 0:W.value;q(Kg(te)?String(te):"")}},[de]);var pe=Js(function(W,te){var J,re=te??W;return J={},I(J,Z.value,W),I(J,Z.label,re),J}),tt=u.useMemo(function(){if(r!=="tags")return G;var W=me(G),te=function(re){return se.has(re)};return me(de).sort(function(J,re){return J.value<re.value?-1:1}).forEach(function(J){var re=J.value;te(re)||W.push(pe(re,J.label))}),W},[pe,G,se,de,r]),Oe=Vp(tt,Z,X,ee,S),Me=u.useMemo(function(){return r!=="tags"||!X||Oe.some(function(W){return W[S||"value"]===X})||Oe.some(function(W){return W[Z.value]===X})?Oe:[pe(X)].concat(me(Oe))},[pe,S,r,Oe,X,Z]),Qe=u.useMemo(function(){return y?me(Me).sort(function(W,te){return y(W,te)}):Me},[Me,y]),Ie=u.useMemo(function(){return hp(Qe,{fieldNames:Z,childrenAsData:Q})},[Qe,Z,Q]),pt=function(te){var J=L(te);if(ie(J),_&&(J.length!==de.length||J.some(function(Ae,ut){var qe;return((qe=de[ut])===null||qe===void 0?void 0:qe.value)!==(Ae==null?void 0:Ae.value)}))){var re=R?J:J.map(function(Ae){return Ae.value}),Ne=J.map(function(Ae){return Yi(He(Ae.value))});_(B?re:re[0],B?Ne:Ne[0])}},yt=u.useState(null),Rt=H(yt,2),nt=Rt[0],Ke=Rt[1],Ge=u.useState(0),Ze=H(Ge,2),$e=Ze[0],dt=Ze[1],vt=T!==void 0?T:r!=="combobox",Te=u.useCallback(function(W,te){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=J.source,Ne=re===void 0?"keyboard":re;dt(te),a&&r==="combobox"&&W!==null&&Ne==="keyboard"&&Ke(String(W))},[a,r]),_e=function(te,J,re){var Ne=function(){var ae,Ce=He(te);return[R?{label:Ce==null?void 0:Ce[Z.label],value:te,key:(ae=Ce==null?void 0:Ce.key)!==null&&ae!==void 0?ae:te}:te,Yi(Ce)]};if(J&&h){var Ae=Ne(),ut=H(Ae,2),qe=ut[0],wt=ut[1];h(qe,wt)}else if(!J&&b&&re!=="clear"){var We=Ne(),mt=H(We,2),ct=mt[0],Kt=mt[1];b(ct,Kt)}},Ve=Js(function(W,te){var J,re=B?te.selected:!0;re?J=B?[].concat(me(de),[W]):[W]:J=de.filter(function(Ne){return Ne.value!==W}),pt(J),_e(W,re),r==="combobox"?Ke(""):(!yo||m)&&(q(""),Ke(""))}),ge=function(te,J){pt(te);var re=J.type,Ne=J.values;(re==="remove"||re==="clear")&&Ne.forEach(function(Ae){_e(Ae.value,!1,re)})},Fe=function(te,J){if(q(te),Ke(null),J.source==="submit"){var re=(te||"").trim();if(re){var Ne=Array.from(new Set([].concat(me(ke),[re])));pt(Ne),_e(re,!0),q("")}return}J.source!=="blur"&&(r==="combobox"&&pt(te),f==null||f(te))},ne=function(te){var J=te;r!=="tags"&&(J=te.map(function(Ne){var Ae=oe.get(Ne);return Ae==null?void 0:Ae.value}).filter(function(Ne){return Ne!==void 0}));var re=Array.from(new Set([].concat(me(ke),me(J))));pt(re),re.forEach(function(Ne){_e(Ne,!0)})},ue=u.useMemo(function(){var W=M!==!1&&v!==!1;return D(D({},Y),{},{flattenOptions:Ie,onActiveValue:Te,defaultActiveFirstOption:vt,onSelect:Ve,menuItemSelectedIcon:F,rawValues:ke,fieldNames:Z,virtual:W,direction:$,listHeight:N,listItemHeight:V,childrenAsData:Q,optionRender:O})},[Y,Ie,Te,vt,Ve,F,ke,Z,M,v,N,V,Q,O]);return process.env.NODE_ENV!=="production"&&(qp(e),Gp(G,Z)),u.createElement(uc.Provider,{value:ue},u.createElement(ic,Je({},j,{id:z,prefixCls:i,ref:t,omitDomProps:Yp,mode:r,displayValues:rt,onDisplayValuesChange:ge,direction:$,searchValue:X,onSearch:Fe,autoClearSearchValue:m,onSearchSplit:ne,dropdownMatchSelectWidth:v,OptionList:cc,emptyOptions:!Ie.length,activeValue:nt,activeDescendantId:"".concat(z,"_list_").concat($e)})))});process.env.NODE_ENV!=="production"&&(fc.displayName="Select");var Oa=fc;Oa.Option=Ca;Oa.OptGroup=wa;function Zp(e,t,n){return Ye({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Jp=(e,t)=>t||e,dc=()=>{const[,e]=ur(),n=new Pt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.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"}),u.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)"}),u.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"}),u.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"})),u.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"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(dc.displayName="EmptyImage");const e0=dc,vc=()=>{const[,e]=ur(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=U.useMemo(()=>({borderColor:new Pt(t).onBackground(o).toHexShortString(),shadowColor:new Pt(n).onBackground(o).toHexShortString(),contentColor:new Pt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:i},u.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"}),u.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}))))};process.env.NODE_ENV!=="production"&&(vc.displayName="SimpleImage");const t0=vc,n0=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},r0=ou("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=nn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[n0(r)]});var o0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mc=u.createElement(e0,null),hc=u.createElement(t0,null),Ao=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=mc,description:i,children:a,imageStyle:s,style:l}=e,c=o0(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:d,empty:m}=u.useContext(xn),h=f("empty",r),[b,g]=r0(h),[v]=$d("Empty"),p=typeof i<"u"?i:v==null?void 0:v.description,y=typeof p=="string"?p:"empty";let S=null;return typeof o=="string"?S=u.createElement("img",{alt:y,src:o}):S=o,b(u.createElement("div",Object.assign({className:Ye(g,h,m==null?void 0:m.className,{[`${h}-normal`]:o===hc,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),l)},c),u.createElement("div",{className:`${h}-image`,style:s},S),p&&u.createElement("div",{className:`${h}-description`},p),a&&u.createElement("div",{className:`${h}-footer`},a)))};Ao.PRESENTED_IMAGE_DEFAULT=mc;Ao.PRESENTED_IMAGE_SIMPLE=hc;process.env.NODE_ENV!=="production"&&(Ao.displayName="Empty");const pr=Ao,i0=e=>{const{componentName:t}=e,{getPrefixCls:n}=U.useContext(xn),r=n("empty");switch(t){case"Table":case"List":return U.createElement(pr,{image:pr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return U.createElement(pr,{image:pr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return U.createElement(pr,null)}},a0=i0,s0=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},l0=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${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`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},fa(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,[`
165
- ${o}${s}bottomLeft,
166
- ${i}${s}bottomLeft
167
- `]:{animationName:ju},[`
168
- ${o}${s}topLeft,
169
- ${i}${s}topLeft,
170
- ${o}${s}topRight,
171
- ${i}${s}topRight
172
- `]:{animationName:zu},[`${a}${s}bottomLeft`]:{animationName:Hu},[`
173
- ${a}${s}topLeft,
174
- ${a}${s}topRight
175
- `]:{animationName:Wu},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},s0(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"},Ri),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Ds(e,"slide-up"),Ds(e,"slide-down"),As(e,"move-up"),As(e,"move-down")]},u0=l0,Yn=2,gc=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]};function ri(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=gc(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${a-Yn}px ${Yn*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Yn}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`
176
- &${n}-show-arrow ${n}-selector,
177
- &${n}-allow-clear ${n}-selector
178
- `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Yn,marginBottom:Yn,lineHeight:`${i-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:Yn*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},da()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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}`}}}}const c0=e=>{const{componentCls:t}=e,n=nn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=nn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=gc(e);return[ri(e),ri(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},ri(r,"lg")]},f0=c0;function oi(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},fa(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
179
- ${n}-selection-item,
180
- ${n}-selection-placeholder
181
- `]:{padding:0,lineHeight:`${i}px`,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"'}}),[`
182
- &${n}-show-arrow ${n}-selection-item,
183
- &${n}-show-arrow ${n}-selection-placeholder
184
- `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function d0(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[oi(e),oi(nn(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 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
185
- &${t}-show-arrow ${t}-selection-item,
186
- &${t}-show-arrow ${t}-selection-placeholder
187
- `]:{paddingInlineEnd:e.fontSize*1.5}}}},oi(nn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const v0=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ii=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},m0=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"}}}},h0=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},fa(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},v0(e)),m0(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ri),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ri),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},da()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{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:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,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}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},g0=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},h0(e),d0(e),f0(e),u0(e),{[`${t}-rtl`]:{direction:"rtl"}},ii(t,nn(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),ii(`${t}-status-error`,nn(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),ii(`${t}-status-warning`,nn(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),eh(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},p0=ou("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=nn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[g0(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:f,colorFillSecondary:d,controlHeightLG:m,controlHeightSM:h,colorBgContainerDisabled:b,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:m,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightLG:r,multipleSelectorBgDisabled:b,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}),y0=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function b0(e,t){return e||y0(t)}var S0={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 E0=S0;var pc=function(t,n){return u.createElement(cr,pn({},t,{ref:n,icon:E0}))};process.env.NODE_ENV!=="production"&&(pc.displayName="CheckOutlined");const w0=u.forwardRef(pc);var C0={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 x0=C0;var yc=function(t,n){return u.createElement(cr,pn({},t,{ref:n,icon:x0}))};process.env.NODE_ENV!=="production"&&(yc.displayName="DownOutlined");const O0=u.forwardRef(yc);var R0={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 P0=R0;var bc=function(t,n){return u.createElement(cr,pn({},t,{ref:n,icon:P0}))};process.env.NODE_ENV!=="production"&&(bc.displayName="SearchOutlined");const M0=u.forwardRef(bc);function I0(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:f,showArrow:d,componentName:m}=e;process.env.NODE_ENV!=="production"&&Mo(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=n??u.createElement(_m,null),b=y=>t===null&&!s&&!d?null:u.createElement(u.Fragment,null,c!==!1&&y,s&&f);let g=null;if(t!==void 0)g=b(t);else if(i)g=b(u.createElement(Um,{spin:!0}));else{const y=`${l}-suffix`;g=S=>{let{open:E,showSearch:x}=S;return b(E&&x?u.createElement(M0,{className:y}):u.createElement(O0,{className:y}))}}let v=null;r!==void 0?v=r:a?v=u.createElement(w0,null):v=null;let p=null;return o!==void 0?p=o:p=u.createElement(Lm,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:p}}function T0(e,t){return t!==void 0?t:e!==null}var N0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sc="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ec=(e,t)=>{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:f,listHeight:d=256,placement:m,listItemHeight:h=24,size:b,disabled:g,notFoundContent:v,status:p,builtinPlacements:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:E,direction:x,style:O,allowClear:C}=e,T=N0(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:F,getPrefixCls:M,renderEmpty:$,direction:A,virtual:N,popupMatchSelectWidth:k,popupOverflow:V,select:P}=u.useContext(xn),w=M("select",o),R=M(),_=x??A,{compactSize:j,compactItemClassnames:z}=Qm(w,_),[B,Q]=p0(w),ee=u.useMemo(()=>{const{mode:Oe}=T;if(Oe!=="combobox")return Oe===Sc?"combobox":Oe},[T.mode]),Z=ee==="multiple"||ee==="tags",Pe=T0(T.suffixIcon,T.showArrow),ye=(n=E??S)!==null&&n!==void 0?n:k,{status:X,hasFeedback:q,isFormItemInput:Y,feedbackIcon:se}=u.useContext(ku),oe=Jp(X,p);let G;v!==void 0?G=v:ee==="combobox"?G=null:G=($==null?void 0:$("Select"))||u.createElement(a0,{componentName:"Select"});const{suffixIcon:L,itemIcon:ce,removeIcon:Se,clearIcon:we}=I0(Object.assign(Object.assign({},T),{multiple:Z,hasFeedback:q,feedbackIcon:se,showSuffixIcon:Pe,prefixCls:w,showArrow:T.showArrow,componentName:"Select"})),ie=C===!0?{clearIcon:we}:C,fe=vl(T,["suffixIcon","itemIcon"]),he=Ye(c||f,{[`${w}-dropdown-${_}`]:_==="rtl"},s,Q),Ee=Xm(Oe=>{var Me;return(Me=b??j)!==null&&Me!==void 0?Me:Oe}),de=u.useContext(Jl),He=g??de,rt=Ye({[`${w}-lg`]:Ee==="large",[`${w}-sm`]:Ee==="small",[`${w}-rtl`]:_==="rtl",[`${w}-borderless`]:!i,[`${w}-in-form-item`]:Y},Zp(w,oe,q),z,P==null?void 0:P.className,a,s,Q),ke=u.useMemo(()=>m!==void 0?m:_==="rtl"?"bottomRight":"bottomLeft",[m,_]),pe=b0(y,V);if(process.env.NODE_ENV!=="production"){const Oe=Mo("Select");Oe.deprecated(!f,"dropdownClassName","popupClassName"),Oe.deprecated(S===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Oe(!("showArrow"in T),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null.")}const[tt]=Og("SelectLike",(r=T.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return B(u.createElement(Oa,Object.assign({ref:t,virtual:N,showSearch:P==null?void 0:P.showSearch},fe,{style:Object.assign(Object.assign({},P==null?void 0:P.style),O),dropdownMatchSelectWidth:ye,builtinPlacements:pe,transitionName:Km(R,"slide-up",T.transitionName),listHeight:d,listItemHeight:h,mode:ee,prefixCls:w,placement:ke,direction:_,suffixIcon:L,menuItemSelectedIcon:ce,removeIcon:Se,allowClear:ie,notFoundContent:G,className:rt,getPopupContainer:l||F,dropdownClassName:he,disabled:He,dropdownStyle:Object.assign(Object.assign({},T==null?void 0:T.dropdownStyle),{zIndex:tt})})))};process.env.NODE_ENV!=="production"&&(Ec.displayName="Select");const jn=u.forwardRef(Ec),F0=Pg(jn);jn.SECRET_COMBOBOX_MODE_DO_NOT_USE=Sc;jn.Option=Ca;jn.OptGroup=wa;jn._InternalPanelDoNotUseOrYouWillBeFired=F0;process.env.NODE_ENV!=="production"&&(jn.displayName="Select");const $0=jn,_0=({children:e,...t})=>Cc.jsx($0,{...t,children:e});exports.Select=_0;