import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{i as t,r as n}from"./react-1o5M9n0k.js";import{B as r,C as i,Cn as a,D as o,Dn as s,En as c,G as l,Gt as u,J as d,L as f,M as p,N as m,Nt as h,O as g,St as _,Tn as v,Tt as y,Ut as b,V as x,Vt as S,Y as C,Z as w,Zt as T,_t as E,b as D,bn as O,bt as k,dn as A,dt as j,en as M,f as N,ft as P,gn as F,hn as ee,ht as te,i as I,jt as ne,ln as re,lt as L,mt as R,n as z,nn as B,nt as V,qt as H,rn as U,tn as W,un as G,ut as ie,vn as ae,wn as K,xn as q,z as oe}from"./skeleton-B4Z0R3jQ.js";import{_ as se,b as ce,g as le,h as ue,v as de,x as fe,y as pe}from"./typography-xRg_3Gco.js";import{i as me,n as he,r as ge}from"./style-CBKkTdLU.js";import{a as J,c as Y,i as _e,l as ve,o as ye,s as be,u as xe}from"./input-BnsACfRy.js";var X=e(t()),Se=e(n()),Z=e(s()),Ce=e=>typeof e==`object`&&!!e&&e.nodeType===1,we=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,Q=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Ee=e=>e.parentElement??(e.getRootNode().host||null),De=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Ce(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Ce(u)&&s(u);){if(u=Ee(u),u===c){l.push(u);break}u!=null&&u===document.body&&Q(u)&&!Q(document.documentElement)||u!=null&&Q(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e=0&&b>=0&&y<=f&&v<=d&&(t===c&&!Q(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,ee=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?Te(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:Te(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?Te(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:Te(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=ee===0?0:Math.max(0,Math.min(n+j/ee,t.scrollHeight-a/ee+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},Oe=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function ke(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(De(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of De(e,Oe(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Ae=()=>X.useReducer(e=>e+1,0),je=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:`hidden`,transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Me=new b(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Ne=new b(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),Pe=new b(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Fe=new b(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Ie=new b(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Le=new b(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Re={"move-up":{inKeyframes:new b(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new b(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:Me,outKeyframes:Ne},"move-left":{inKeyframes:Pe,outKeyframes:Fe},"move-right":{inKeyframes:Ie,outKeyframes:Le}},ze=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Re[t];return[i(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Be(e){return t=>X.createElement(me,{theme:{token:{motion:!1,zIndexPopupBase:0}}},X.createElement(e,Object.assign({},t)))}var Ve=(e,t,n,r,i)=>Be(a=>{let{prefixCls:o,style:s}=a,c=X.useRef(null),[l,u]=X.useState(0),[d,f]=X.useState(0),[p,m]=te(!1,{value:a.open}),{getPrefixCls:h}=X.useContext(_),g=h(r||`select`,o);X.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});n&&(v=n(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return X.createElement(`div`,{ref:c,style:y},X.createElement(e,Object.assign({},v)))}),He=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,o=e.onClick,s=typeof n==`function`?n(r):n;return X.createElement(`span`,{className:t,onMouseDown:function(e){e.preventDefault(),a?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`},unselectable:`on`,onClick:o,"aria-hidden":!0},s===void 0?X.createElement(`span`,{className:(0,Z.default)(t.split(/\s+/).map(function(e){return`${e}-icon`}))},i):s)},Ue=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=X.useMemo(function(){if(v(r)===`object`)return r.clearIcon;if(i)return i},[r,i]);return{allowClear:X.useMemo(function(){return!(a||!r||!n.length&&!o||s===`combobox`&&o===``)},[r,a,n.length,o,s]),clearIcon:X.createElement(He,{className:`${e}-clear`,onMouseDown:t,customizeIcon:c},`×`)}},We=X.createContext(null);function Ge(){return X.useContext(We)}function Ke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=X.useState(!1),n=W(t,2),r=n[0],i=n[1],a=X.useRef(null),o=function(){window.clearTimeout(a.current)};return X.useEffect(function(){return o},[]),[r,function(t,n){o(),a.current=window.setTimeout(function(){i(t),n&&n()},e)},o]}function qe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=X.useRef(null),n=X.useRef(null);X.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Je(e,t,n,r){var i=X.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},X.useEffect(function(){function t(t){var n;if(!((n=i.current)!=null&&n.customizedTrigger)){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&i.current.triggerOpen(!1)}}return window.addEventListener(`mousedown`,t),function(){return window.removeEventListener(`mousedown`,t)}},[])}function Ye(e){return e&&![r.ESC,r.SHIFT,r.BACKSPACE,r.TAB,r.WIN_KEY,r.ALT,r.META,r.WIN_KEY_RIGHT,r.CTRL,r.SEMICOLON,r.EQUALS,r.CAPS_LOCK,r.CONTEXT_MENU,r.F1,r.F2,r.F3,r.F4,r.F5,r.F6,r.F7,r.F8,r.F9,r.F10,r.F11,r.F12].includes(e)}function $(e,t,n){var r=O(O({},e),n?t:{});return Object.keys(t).forEach(function(n){var i=t[n];typeof i==`function`&&(r[n]=function(){var t,r=[...arguments];return i.apply(void 0,r),(t=e[n])?.call.apply(t,[e].concat(r))})}),r}var Xe=[`prefixCls`,`id`,`inputElement`,`autoFocus`,`autoComplete`,`editable`,`activeDescendantId`,`value`,`open`,`attrs`],Ze=X.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,a=e.autoFocus,o=e.autoComplete,s=e.editable,c=e.activeDescendantId,l=e.value,u=e.open,d=e.attrs,f=T(e,Xe),p=i||X.createElement(`input`,null),m=p,h=m.ref,g=m.props;return`maxLength`in p.props,p=X.cloneElement(p,O(O(O({type:`search`},$(f,g,!0)),{},{id:r,ref:A(t,h),autoComplete:o||`off`,autoFocus:a,className:(0,Z.default)(`${n}-selection-search-input`,g?.className),role:`combobox`,"aria-expanded":u||!1,"aria-haspopup":`listbox`,"aria-owns":`${r}_list`,"aria-autocomplete":`list`,"aria-controls":`${r}_list`,"aria-activedescendant":u?c:void 0},d),{},{value:s?l:``,readOnly:!s,unselectable:s?null:`on`,style:O(O({},g.style),{},{opacity:s?null:0})})),p});function Qe(e){return Array.isArray(e)?e:e===void 0?[]:[e]}var $e=typeof window<`u`&&window.document&&window.document.documentElement;function et(e){return e!=null}function tt(e){return!e&&e!==0}function nt(e){return[`string`,`number`].includes(v(e))}function rt(e){var t=void 0;return e&&(nt(e.title)?t=e.title.toString():nt(e.label)&&(t=e.label.toString())),t}function it(e,t){$e?X.useLayoutEffect(e,t):X.useEffect(e,t)}function at(e){return e.key??e.value}var ot=function(e){e.preventDefault(),e.stopPropagation()},st=function(e){var t=e.id,n=e.prefixCls,r=e.values,i=e.open,a=e.searchValue,o=e.autoClearSearchValue,s=e.inputRef,c=e.placeholder,u=e.disabled,d=e.mode,f=e.showSearch,p=e.autoFocus,m=e.autoComplete,h=e.activeDescendantId,g=e.tabIndex,_=e.removeIcon,v=e.maxTagCount,y=e.maxTagTextLength,b=e.maxTagPlaceholder,x=b===void 0?function(e){return`+ ${e.length} ...`}:b,S=e.tagRender,C=e.onToggleOpen,w=e.onRemove,T=e.onInputChange,E=e.onInputPaste,D=e.onInputKeyDown,O=e.onInputMouseDown,k=e.onInputCompositionStart,A=e.onInputCompositionEnd,j=e.onInputBlur,M=X.useRef(null),N=(0,X.useState)(0),P=W(N,2),F=P[0],ee=P[1],te=(0,X.useState)(!1),I=W(te,2),ne=I[0],re=I[1],L=`${n}-selection`,R=i||d===`multiple`&&o===!1||d===`tags`?a:``,z=d===`tags`||d===`multiple`&&o===!1||f&&(i||ne);it(function(){ee(M.current.scrollWidth)},[R]);var B=function(e,t,n,r,i){return X.createElement(`span`,{title:rt(e),className:(0,Z.default)(`${L}-item`,q({},`${L}-item-disabled`,n))},X.createElement(`span`,{className:`${L}-item-content`},t),r&&X.createElement(He,{className:`${L}-item-remove`,onMouseDown:ot,onClick:i,customizeIcon:_},`×`))},V=function(e,t,n,r,a,o){return X.createElement(`span`,{onMouseDown:function(e){ot(e),C(!i)}},S({label:t,value:e,disabled:n,closable:r,onClose:a,isMaxTag:!!o}))},H=function(e){var t=e.disabled,n=e.label,r=e.value,i=!u&&!t,a=n;if(typeof y==`number`&&(typeof n==`string`||typeof n==`number`)){var o=String(a);o.length>y&&(a=`${o.slice(0,y)}...`)}var s=function(t){t&&t.stopPropagation(),w(e)};return typeof S==`function`?V(r,a,t,i,s):B(e,a,t,i,s)},U=function(e){if(!r.length)return null;var t=typeof x==`function`?x(e):x;return typeof S==`function`?V(void 0,t,!1,!1,void 0,!0):B({title:t},t,!1)},G=X.createElement(`div`,{className:`${L}-search`,style:{width:F},onFocus:function(){re(!0)},onBlur:function(){re(!1)}},X.createElement(Ze,{ref:s,open:i,prefixCls:n,id:t,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:z,activeDescendantId:h,value:R,onKeyDown:D,onMouseDown:O,onChange:T,onPaste:E,onCompositionStart:k,onCompositionEnd:A,onBlur:j,tabIndex:g,attrs:l(e,!0)}),X.createElement(`span`,{ref:M,className:`${L}-search-mirror`,"aria-hidden":!0},R,`\xA0`)),ie=X.createElement(J,{prefixCls:`${L}-overflow`,data:r,renderItem:H,renderRest:U,suffix:G,itemKey:at,maxCount:v});return X.createElement(`span`,{className:`${L}-wrap`},ie,!r.length&&!R&&X.createElement(`span`,{className:`${L}-placeholder`},c))},ct=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,o=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,_=e.activeValue,v=e.maxLength,y=e.onInputKeyDown,b=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,w=e.onInputCompositionEnd,T=e.onInputBlur,E=e.title,D=X.useState(!1),O=W(D,2),k=O[0],A=O[1],j=u===`combobox`,M=j||h,N=f[0],P=g||``;j&&_&&!k&&(P=_),X.useEffect(function(){j&&A(!1)},[j,_]);var F=u!==`combobox`&&!d&&!h?!1:!!P,ee=E===void 0?rt(N):E,te=X.useMemo(function(){return N?null:X.createElement(`span`,{className:`${n}-selection-placeholder`,style:F?{visibility:`hidden`}:void 0},p)},[N,F,p,n]);return X.createElement(`span`,{className:`${n}-selection-wrap`},X.createElement(`span`,{className:`${n}-selection-search`},X.createElement(Ze,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:o,autoComplete:s,editable:M,activeDescendantId:c,value:P,onKeyDown:y,onMouseDown:b,onChange:function(e){A(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:w,onBlur:T,tabIndex:m,attrs:l(e,!0),maxLength:j?v:void 0})),!j&&N?X.createElement(`span`,{className:`${n}-selection-item`,title:ee,style:F?{visibility:`hidden`}:void 0},N.label):null,te)},lt=X.forwardRef(function(e,t){var n=(0,X.useRef)(null),i=(0,X.useRef)(!1),a=e.prefixCls,o=e.open,s=e.mode,l=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,h=e.onSearchSubmit,g=e.onToggleOpen,_=e.onInputKeyDown,v=e.onInputBlur,y=e.domRef;X.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var b=qe(0),x=W(b,2),S=x[0],C=x[1],w=function(e){var t=e.which,a=n.current instanceof HTMLTextAreaElement;!a&&o&&(t===r.UP||t===r.DOWN)&&e.preventDefault(),_&&_(e),t===r.ENTER&&s===`tags`&&!i.current&&!o&&h?.(e.target.value),a&&!o&&~[r.UP,r.DOWN,r.LEFT,r.RIGHT].indexOf(t)||Ye(t)&&g(!0)},T=function(){C(!0)},E=(0,X.useRef)(null),D=function(e){m(e,!0,i.current)!==!1&&g(!0)},O=function(){i.current=!0},k=function(e){i.current=!1,s!==`combobox`&&D(e.target.value)},A=function(e){var t=e.target.value;if(u&&E.current&&/[\r\n]/.test(E.current)){var n=E.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(n,E.current)}E.current=null,D(t)},j=function(e){E.current=e.clipboardData?.getData(`text`)||``},M=function(e){e.target!==n.current&&(document.body.style.msTouchAction===void 0?n.current.focus():setTimeout(function(){n.current.focus()}))},N=function(e){var t=S();e.target!==n.current&&!t&&!(s===`combobox`&&d)&&e.preventDefault(),(s===`combobox`||l&&t)&&o||(o&&p!==!1&&m(``,!0,!1),g())},P={inputRef:n,onInputKeyDown:w,onInputMouseDown:T,onInputChange:A,onInputPaste:j,onInputCompositionStart:O,onInputCompositionEnd:k,onInputBlur:v},F=s===`multiple`||s===`tags`?X.createElement(st,c({},e,P)):X.createElement(ct,c({},e,P));return X.createElement(`div`,{ref:y,className:`${a}-selector`,onClick:M,onMouseDown:N},f&&X.createElement(`div`,{className:`${a}-prefix`},f),F)}),ut=[`prefixCls`,`disabled`,`visible`,`children`,`popupElement`,`animation`,`transitionName`,`dropdownStyle`,`dropdownClassName`,`direction`,`placement`,`builtinPlacements`,`dropdownMatchSelectWidth`,`dropdownRender`,`dropdownAlign`,`getPopupContainer`,`empty`,`getTriggerDOMNode`,`onPopupVisibleChange`,`onPopupMouseEnter`],dt=function(e){var t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},ft=X.forwardRef(function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,i=e.children,a=e.popupElement,o=e.animation,s=e.transitionName,l=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=d===void 0?`ltr`:d,p=e.placement,m=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,_=e.dropdownAlign,v=e.getPopupContainer,y=e.empty,b=e.getTriggerDOMNode,x=e.onPopupVisibleChange,S=e.onPopupMouseEnter,C=T(e,ut),w=`${n}-dropdown`,E=a;g&&(E=g(a));var D=X.useMemo(function(){return m||dt(h)},[m,h]),k=o?`${w}-${o}`:s,A=typeof h==`number`,j=X.useMemo(function(){return A?null:h===!1?`minWidth`:`width`},[h,A]),M=l;A&&(M=O(O({},M),{},{width:h}));var N=X.useRef(null);return X.useImperativeHandle(t,function(){return{getPopupElement:function(){return N.current?.popupElement}}}),X.createElement(pe,c({},C,{showAction:x?[`click`]:[],hideAction:x?[`click`]:[],popupPlacement:p||(f===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:w,popupTransitionName:k,popup:X.createElement(`div`,{onMouseEnter:S},E),ref:N,stretch:j,popupAlign:_,popupVisible:r,getPopupContainer:v,popupClassName:(0,Z.default)(u,q({},`${w}-empty`,y)),popupStyle:M,getTriggerDOMNode:b,onPopupVisibleChange:x}),i)});function pt(e,t){var n=e.key,r;return`value`in e&&(r=e.value),n??(r===void 0?`rc-index-key-${t}`:r)}function mt(e){return e!==void 0&&!Number.isNaN(e)}function ht(e,t){var n=e||{},r=n.label,i=n.value,a=n.options,o=n.groupLabel,s=r||(t?`children`:`label`);return{label:s,value:i||`value`,options:a||`options`,groupLabel:o||s}}function gt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=ht(n,!1),o=a.label,s=a.value,c=a.options,l=a.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach(function(e){if(t||!(c in e)){var n=e[s];i.push({key:pt(e,i.length),groupOption:t,data:e,label:e[o],value:n})}else{var a=e[l];a===void 0&&r&&(a=e.label),i.push({key:pt(e,i.length),group:!0,data:e,label:a}),u(e[c],!0)}})}return u(e,!1),i}function _t(e){var t=O({},e);return`props`in t||Object.defineProperty(t,"props",{get:function(){return a(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var vt=function(e,t,n){if(!t||!t.length)return null;var r=!1,i=function e(t,n){var i=S(n),a=i[0],o=i.slice(1);if(!a)return[t];var s=t.split(a);return r||=s.length>1,s.reduce(function(t,n){return[].concat(U(t),U(e(n,o)))},[]).filter(Boolean)}(e,t);return r?n===void 0?i:i.slice(0,n):null},yt=X.createContext(null);function bt(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return X.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,r).map(function(e){var t=e.label,n=e.value;return[`number`,`string`].includes(v(t))?t:n}).join(`, `)}`,n.length>r?`, ...`:null)}var xt=`id.prefixCls.className.showSearch.tagRender.direction.omitDomProps.displayValues.onDisplayValuesChange.emptyOptions.notFoundContent.onClear.mode.disabled.loading.getInputElement.getRawInputElement.open.defaultOpen.onDropdownVisibleChange.activeValue.onActiveValueChange.activeDescendantId.searchValue.autoClearSearchValue.onSearch.onSearchSplit.tokenSeparators.allowClear.prefix.suffixIcon.clearIcon.OptionList.animation.transitionName.dropdownStyle.dropdownClassName.dropdownMatchSelectWidth.dropdownRender.dropdownAlign.placement.builtinPlacements.getPopupContainer.showAction.onFocus.onBlur.onKeyUp.onKeyDown.onMouseDown`.split(`.`),St=[`value`,`onChange`,`removeIcon`,`placeholder`,`autoFocus`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`],Ct=function(e){return e===`tags`||e===`multiple`},wt=X.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,d=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,g=h===void 0?`Not Found`:h,_=e.onClear,v=e.mode,y=e.disabled,b=e.loading,x=e.getInputElement,S=e.getRawInputElement,C=e.open,w=e.defaultOpen,E=e.onDropdownVisibleChange,D=e.activeValue,k=e.onActiveValueChange,A=e.activeDescendantId,j=e.searchValue,M=e.autoClearSearchValue,N=e.onSearch,P=e.onSearchSplit,F=e.tokenSeparators,I=e.allowClear,ne=e.prefix,re=e.suffixIcon,L=e.clearIcon,R=e.OptionList,z=e.animation,B=e.transitionName,V=e.dropdownStyle,H=e.dropdownClassName,G=e.dropdownMatchSelectWidth,ie=e.dropdownRender,ae=e.dropdownAlign,K=e.placement,oe=e.builtinPlacements,se=e.getPopupContainer,le=e.showAction,ue=le===void 0?[]:le,de=e.onFocus,fe=e.onBlur,pe=e.onKeyUp,me=e.onKeyDown,he=e.onMouseDown,ge=T(e,xt),J=Ct(v),Y=(o===void 0?J:o)||v===`combobox`,_e=O({},ge);St.forEach(function(e){delete _e[e]}),d?.forEach(function(e){delete _e[e]});var ve=X.useState(!1),ye=W(ve,2),be=ye[0],xe=ye[1];X.useEffect(function(){xe(ce())},[]);var Se=X.useRef(null),Ce=X.useRef(null),we=X.useRef(null),Q=X.useRef(null),Te=X.useRef(null),Ee=X.useRef(!1),De=Ke(),Oe=W(De,3),ke=Oe[0],Ae=Oe[1],je=Oe[2];X.useImperativeHandle(t,function(){return{focus:Q.current?.focus,blur:Q.current?.blur,scrollTo:function(e){return Te.current?.scrollTo(e)},nativeElement:Se.current||Ce.current}});var Me=X.useMemo(function(){if(v!==`combobox`)return j;var e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[j,v,f]),Ne=v===`combobox`&&typeof x==`function`&&x()||null,Pe=typeof S==`function`&&S(),Fe=ee(Ce,Pe==null||(n=Pe.props)==null?void 0:n.ref),Ie=X.useState(!1),Le=W(Ie,2),Re=Le[0],ze=Le[1];u(function(){ze(!0)},[]);var Be=te(!1,{defaultValue:w,value:C}),Ve=W(Be,2),Ge=Ve[0],Ye=Ve[1],$=Re?Ge:!1,Xe=!g&&m;(y||Xe&&$&&v===`combobox`)&&($=!1);var Ze=!Xe&&$,Qe=X.useCallback(function(e){var t=e===void 0?!$:e;y||(Ye(t),$!==t&&E?.(t))},[y,$,Ye,E]),$e=X.useMemo(function(){return(F||[]).some(function(e){return[` `,`\r `].includes(e)})},[F]),et=X.useContext(yt)||{},tt=et.maxCount,nt=et.rawValues,rt=function(e,t,n){if(!(J&&mt(tt)&&nt?.size>=tt)){var r=!0,i=e;k?.(null);var a=vt(e,F,mt(tt)?tt-nt.size:void 0),o=n?null:a;return v!==`combobox`&&o&&(i=``,P?.(o),Qe(!1),r=!1),N&&Me!==i&&N(i,{source:t?`typing`:`effect`}),r}},it=function(e){e&&e.trim()&&N(e,{source:`submit`})};X.useEffect(function(){!$&&!J&&v!==`combobox`&&rt(``,!1,!1)},[$]),X.useEffect(function(){Ge&&y&&Ye(!1),y&&!Ee.current&&Ae(!1)},[y]);var at=qe(),ot=W(at,2),st=ot[0],ct=ot[1],ut=X.useRef(!1),dt=function(e){var t=st(),n=e.key,r=n===`Enter`;if(r&&(v!==`combobox`&&e.preventDefault(),$||Qe(!0)),ct(!!Me),n===`Backspace`&&!t&&J&&!Me&&f.length){for(var i=U(f),a=null,o=i.length-1;o>=0;--o){var s=i[o];if(!s.disabled){i.splice(o,1),a=s;break}}a&&p(i,{type:`remove`,values:[a]})}var c=[...arguments].slice(1);if($&&(!r||!ut.current)){var l;r&&(ut.current=!0),(l=Te.current)==null||l.onKeyDown.apply(l,[e].concat(c))}me?.apply(void 0,[e].concat(c))},pt=function(e){var t=[...arguments].slice(1);if($){var n;(n=Te.current)==null||n.onKeyUp.apply(n,[e].concat(t))}e.key===`Enter`&&(ut.current=!1),pe?.apply(void 0,[e].concat(t))},ht=function(e){p(f.filter(function(t){return t!==e}),{type:`remove`,values:[e]})},gt=function(){ut.current=!1},_t=X.useRef(!1),wt=function(){Ae(!0),y||(de&&!_t.current&&de.apply(void 0,arguments),ue.includes(`focus`)&&Qe(!0)),_t.current=!0},Tt=function(){Ee.current=!0,Ae(!1,function(){_t.current=!1,Ee.current=!1,Qe(!1)}),y||(Me&&(v===`tags`?N(Me,{source:`submit`}):v===`multiple`&&N(``,{source:`blur`})),fe&&fe.apply(void 0,arguments))},Et=[];X.useEffect(function(){return function(){Et.forEach(function(e){return clearTimeout(e)}),Et.splice(0,Et.length)}},[]);var Dt=function(e){var t=e.target,n=we.current?.getPopupElement();if(n&&n.contains(t)){var r=setTimeout(function(){var e=Et.indexOf(r);if(e!==-1&&Et.splice(e,1),je(),!be&&!n.contains(document.activeElement)){var t;(t=Q.current)==null||t.focus()}});Et.push(r)}var i=[...arguments].slice(1);he?.apply(void 0,[e].concat(i))},Ot=X.useState({}),kt=W(Ot,2)[1];function At(){kt({})}var jt;Pe&&(jt=function(e){Qe(e)}),Je(function(){return[Se.current,we.current?.getPopupElement()]},Ze,Qe,!!Pe);var Mt=X.useMemo(function(){return O(O({},e),{},{notFoundContent:g,open:$,triggerOpen:Ze,id:r,showSearch:Y,multiple:J,toggleOpen:Qe})},[e,g,Ze,$,r,Y,J,Qe]),Nt=!!re||b,Pt;Nt&&(Pt=X.createElement(He,{className:(0,Z.default)(`${i}-arrow`,q({},`${i}-arrow-loading`,b)),customizeIcon:re,customizeIconProps:{loading:b,searchValue:Me,open:$,focused:ke,showSearch:Y}}));var Ft=Ue(i,function(){var e;_?.(),(e=Q.current)==null||e.focus(),p([],{type:`clear`,values:f}),rt(``,!1,!1)},f,I,L,y,Me,v),It=Ft.allowClear,Lt=Ft.clearIcon,Rt=X.createElement(R,{ref:Te}),zt=(0,Z.default)(i,a,q(q(q(q(q(q(q(q(q(q({},`${i}-focused`,ke),`${i}-multiple`,J),`${i}-single`,!J),`${i}-allow-clear`,I),`${i}-show-arrow`,Nt),`${i}-disabled`,y),`${i}-loading`,b),`${i}-open`,$),`${i}-customize-input`,Ne),`${i}-show-search`,Y)),Bt=X.createElement(ft,{ref:we,disabled:y,prefixCls:i,visible:Ze,popupElement:Rt,animation:z,transitionName:B,dropdownStyle:V,dropdownClassName:H,direction:l,dropdownMatchSelectWidth:G,dropdownRender:ie,dropdownAlign:ae,placement:K,builtinPlacements:oe,getPopupContainer:se,empty:m,getTriggerDOMNode:function(e){return Ce.current||e},onPopupVisibleChange:jt,onPopupMouseEnter:At},Pe?X.cloneElement(Pe,{ref:Fe}):X.createElement(lt,c({},e,{domRef:Ce,prefixCls:i,inputElement:Ne,ref:Q,id:r,prefix:ne,showSearch:Y,autoClearSearchValue:M,mode:v,activeDescendantId:A,tagRender:s,values:f,open:$,onToggleOpen:Qe,activeValue:D,searchValue:Me,onSearch:rt,onSearchSubmit:it,onRemove:ht,tokenWithEnter:$e,onInputBlur:gt}))),Vt=Pe?Bt:X.createElement(`div`,c({className:zt},_e,{ref:Se,onMouseDown:Dt,onKeyDown:dt,onKeyUp:pt,onFocus:wt,onBlur:Tt}),X.createElement(bt,{visible:ke&&!$,values:f}),Bt,Pt,It&&Lt);return X.createElement(We.Provider,{value:Mt},Vt)}),Tt=function(){return null};Tt.isSelectOptGroup=!0;var Et=function(){return null};Et.isSelectOption=!0;var Dt=X.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,o=e.prefixCls,s=e.onInnerResize,l=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:`flex`,flexDirection:`column`};return r!==void 0&&(f={height:n,position:`relative`,overflow:`hidden`},p=O(O({},p),{},q(q(q(q(q({transform:`translateY(${r}px)`},u?`marginRight`:`marginLeft`,-i),`position`,`absolute`),`left`,0),`right`,0),`top`,0))),X.createElement(`div`,{style:f},X.createElement(fe,{onResize:function(e){e.offsetHeight&&s&&s()}},X.createElement(`div`,c({style:p,className:(0,Z.default)(q({},`${o}-holder-inner`,o)),ref:t},l),a,d)))});Dt.displayName=`Filler`;function Ot(e){var t=e.children,n=e.setRef,r=X.useCallback(function(e){n(e)},[]);return X.cloneElement(t,{ref:r})}function kt(e,t,n,r,i,a,o,s){var c=s.getKey;return e.slice(t,n+1).map(function(e,n){var s=o(e,t+n,{style:{width:r},offsetX:i}),l=c(e);return X.createElement(Ot,{key:l,setRef:function(t){return a(e,t)}},s)})}function At(e,t,n){var r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r`u`?`undefined`:v(navigator))===`object`&&/Firefox/i.test(navigator.userAgent),Nt=(function(e,t,n,r){var i=(0,X.useRef)(!1),a=(0,X.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=(0,X.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function Pt(e,t,n,r,i,a,o){var s=(0,X.useRef)(0),c=(0,X.useRef)(null),l=(0,X.useRef)(null),u=(0,X.useRef)(!1),d=Nt(t,n,r,i);function f(e,t){if(B.cancel(c.current),!d(!1,t)){var n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,Mt||n.preventDefault(),c.current=B(function(){var e=u.current?10:1;o(s.current*e,!1),s.current=0})}}function p(e,t){o(t,!0),Mt||e.preventDefault()}var m=(0,X.useRef)(null),h=(0,X.useRef)(null);function g(t){if(e){B.cancel(h.current),h.current=B(function(){m.current=null},2);var n=t.deltaX,r=t.deltaY,i=t.shiftKey,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);var c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function Ft(e,t,n,r){var i=X.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=W(i,2),o=a[0],s=a[1];return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i,c=o.get(i),l=o.get(a);if(c===void 0||l===void 0)for(var u=e.length,d=s.length;d0&&arguments[0]!==void 0&&arguments[0];u();var t=function(){var e=!1;s.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,i=getComputedStyle(t),a=i.marginTop,o=i.marginBottom,s=Lt(a),l=Lt(o),u=r+s+l;c.current.get(n)!==u&&(c.current.set(n,u),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&t()})}}function f(r,i){var a=e(r),o=s.current.get(a);i?(s.current.set(a,i),d()):s.current.delete(a),!o!=!i&&(i?t?.(r):n?.(r))}return(0,X.useEffect)(function(){return u},[]),[f,d,c.current,a]}var zt=14/15;function Bt(e,t,n){var r=(0,X.useRef)(!1),i=(0,X.useRef)(0),a=(0,X.useRef)(0),o=(0,X.useRef)(null),s=(0,X.useRef)(null),c,l=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),c=i.current-t,l=a.current-o,u=Math.abs(c)>Math.abs(l);u?i.current=t:a.current=o;var d=n(u,u?c:l,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(function(){u?c*=zt:l*=zt;var e=Math.floor(u?c:l);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},f=function(e){c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,d,{passive:!0}))};c=function(){o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,d))},u(function(){return e&&t.current.addEventListener(`touchstart`,f,{passive:!0}),function(){var e;(e=t.current)==null||e.removeEventListener(`touchstart`,f),c(),clearInterval(s.current)}},[e])}function Vt(e){return Math.floor(e**.5)}function Ht(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function Ut(e,t,n){X.useEffect(function(){var r=t.current;if(e&&r){var i=!1,a,o,s=function(){B.cancel(a)},c=function e(){s(),a=B(function(){n(o),e()})},l=function(){i=!1,s()},u=function(e){if(!(e.target.draggable||e.button!==0)){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},d=function(e){if(i){var t=Ht(e,!1),n=r.getBoundingClientRect(),a=n.top,l=n.bottom;t<=a?(o=-Vt(a-t),c()):t>=l?(o=Vt(t-l),c()):s()}};return r.addEventListener(`mousedown`,u),r.ownerDocument.addEventListener(`mouseup`,l),r.ownerDocument.addEventListener(`mousemove`,d),r.ownerDocument.addEventListener(`dragend`,l),function(){r.removeEventListener(`mousedown`,u),r.ownerDocument.removeEventListener(`mouseup`,l),r.ownerDocument.removeEventListener(`mousemove`,d),r.ownerDocument.removeEventListener(`dragend`,l),s()}}},[e])}var Wt=10;function Gt(e,t,n,r,i,a,o,s){var c=X.useRef(),l=X.useState(null),d=W(l,2),f=d[0],p=d[1];return u(function(){if(f&&f.times=0;--E){var D=i(t[E]),k=n.get(D);if(k===void 0){m=!0;break}if(T-=k,T<=0)break}switch(_){case`top`:g=y-u;break;case`bottom`:g=b-d+u;break;default:var A=e.current.scrollTop,j=A+d;yj&&(h=`bottom`)}g!==null&&o(g),g!==f.lastTop&&(m=!0)}m&&p(O(O({},f),{},{times:f.times+1,targetAlign:h,lastTop:g}))}},[f,e.current]),function(e){if(e==null)s();else if(B.cancel(c.current),typeof e==`number`)o(e);else if(e&&v(e)===`object`){var n,r=e.align;n=`index`in e?e.index:t.findIndex(function(t){return i(t)===e.key});var a=e.offset;p({times:0,index:n,offset:a===void 0?0:a,originAlign:r})}}}var Kt=X.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,c=e.onScroll,l=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,m=e.showScrollBar,h=X.useState(!1),g=W(h,2),_=g[0],v=g[1],y=X.useState(null),b=W(y,2),x=b[0],S=b[1],C=X.useState(null),w=W(C,2),T=w[0],E=w[1],D=!r,k=X.useRef(),A=X.useRef(),j=X.useState(m),M=W(j,2),N=M[0],P=M[1],F=X.useRef(),ee=function(){m!==!0&&m!==!1&&(clearTimeout(F.current),P(!0),F.current=setTimeout(function(){P(!1)},3e3))},te=a-d||0,I=d-u||0,ne=X.useMemo(function(){return i===0||te===0?0:i/te*I},[i,te,I]),re=function(e){e.stopPropagation(),e.preventDefault()},L=X.useRef({top:ne,dragging:_,pageY:x,startTop:T});L.current={top:ne,dragging:_,pageY:x,startTop:T};var R=function(e){v(!0),S(Ht(e,l)),E(L.current.top),o(),e.stopPropagation(),e.preventDefault()};X.useEffect(function(){var e=function(e){e.preventDefault()},t=k.current,n=A.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,R,{passive:!1}),function(){t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,R)}},[]);var z=X.useRef();z.current=te;var V=X.useRef();V.current=I,X.useEffect(function(){if(_){var e,t=function(t){var n=L.current,r=n.dragging,i=n.pageY,a=n.startTop;B.cancel(e);var o=k.current.getBoundingClientRect(),s=d/(l?o.width:o.height);if(r){var u=(Ht(t,l)-i)*s,f=a;!D&&l?f-=u:f+=u;var p=z.current,m=V.current,h=m?f/m:0,g=Math.ceil(h*p);g=Math.max(g,0),g=Math.min(g,p),e=B(function(){c(g,l)})}},n=function(){v(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),function(){window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),B.cancel(e)}}},[_]),X.useEffect(function(){return ee(),function(){clearTimeout(F.current)}},[i]),X.useImperativeHandle(t,function(){return{delayHidden:ee}});var H=`${n}-scrollbar`,U={position:`absolute`,visibility:N?null:`hidden`},G={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(U,{height:8,left:0,right:0,bottom:0}),Object.assign(G,q({height:`100%`,width:u},D?`left`:`right`,ne))):(Object.assign(U,q({width:8,top:0,bottom:0},D?`right`:`left`,0)),Object.assign(G,{width:`100%`,height:u,top:ne})),X.createElement(`div`,{ref:k,className:(0,Z.default)(H,q(q(q({},`${H}-horizontal`,l),`${H}-vertical`,!l),`${H}-visible`,N)),style:O(O({},U),f),onMouseDown:re,onMouseMove:ee},X.createElement(`div`,{ref:A,className:(0,Z.default)(`${H}-thumb`,q({},`${H}-thumb-moving`,_)),style:O(O({},G),p),onMouseDown:R}))}),qt=20;function Jt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=e/(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,qt),Math.floor(t)}var Yt=[`prefixCls`,`className`,`height`,`itemHeight`,`fullHeight`,`style`,`data`,`children`,`itemKey`,`virtual`,`direction`,`scrollWidth`,`component`,`onScroll`,`onVirtualScroll`,`onVisibleChange`,`innerProps`,`extraRender`,`styles`,`showScrollBar`],Xt=[],Zt={overflowY:`auto`,overflowAnchor:`none`};function Qt(e,t){var n=e.prefixCls,r=n===void 0?`rc-virtual-list`:n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0||s,d=e.style,f=e.data,p=e.children,m=e.itemKey,h=e.virtual,g=e.direction,_=e.scrollWidth,y=e.component,b=y===void 0?`div`:y,x=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,D=e.extraRender,k=e.styles,A=e.showScrollBar,j=A===void 0?`optional`:A,M=T(e,Yt),N=X.useCallback(function(e){return typeof m==`function`?m(e):e?.[m]},[m]),P=Rt(N,null,null),F=W(P,4),ee=F[0],te=F[1],I=F[2],ne=F[3],re=!!(h!==!1&&a&&o),L=X.useMemo(function(){return Object.values(I.maps).reduce(function(e,t){return e+t},0)},[I.id,I.maps]),R=re&&f&&(Math.max(o*f.length,L)>a||!!_),z=g===`rtl`,B=(0,Z.default)(r,q({},`${r}-rtl`,z),i),V=f||Xt,H=(0,X.useRef)(),U=(0,X.useRef)(),G=(0,X.useRef)(),ie=(0,X.useState)(0),ae=W(ie,2),K=ae[0],oe=ae[1],se=(0,X.useState)(0),ce=W(se,2),le=ce[0],ue=ce[1],de=(0,X.useState)(!1),pe=W(de,2),me=pe[0],he=pe[1],ge=function(){he(!0)},J=function(){he(!1)},Y={getKey:N};function _e(e){oe(function(t){var n=Le(typeof e==`function`?e(t):e);return H.current.scrollTop=n,n})}var ve=(0,X.useRef)({start:0,end:V.length}),ye=(0,X.useRef)(),be=jt(V,N);ye.current=W(be,1)[0];var xe=X.useMemo(function(){if(!re)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!R)return{scrollHeight:U.current?.offsetHeight||0,start:0,end:V.length-1,offset:void 0};for(var e=0,t,n,r,i=V.length,s=0;s=K&&t===void 0&&(t=s,n=e),u>K+a&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(a/o)),r===void 0&&(r=V.length-1),r=Math.min(r+1,V.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[R,re,K,V,ne,a]),Ce=xe.scrollHeight,we=xe.start,Q=xe.end,Te=xe.offset;ve.current.start=we,ve.current.end=Q,X.useLayoutEffect(function(){var e=I.getRecord();if(e.size===1){var t=Array.from(e.keys())[0],n=e.get(t),r=V[we];if(r&&n===void 0&&N(r)===t){var i=I.get(t)-o;_e(function(e){return e+i})}}I.resetRecord()},[Ce]);var Ee=X.useState({width:0,height:a}),De=W(Ee,2),Oe=De[0],ke=De[1],Ae=function(e){ke({width:e.offsetWidth,height:e.offsetHeight})},je=(0,X.useRef)(),Me=(0,X.useRef)(),Ne=X.useMemo(function(){return Jt(Oe.width,_)},[Oe.width,_]),Pe=X.useMemo(function(){return Jt(Oe.height,Ce)},[Oe.height,Ce]),Fe=Ce-a,Ie=(0,X.useRef)(Fe);Ie.current=Fe;function Le(e){var t=e;return Number.isNaN(Ie.current)||(t=Math.min(t,Ie.current)),t=Math.max(t,0),t}var Re=K<=0,ze=K>=Fe,Be=le<=0,Ve=le>=_,He=Nt(Re,ze,Be,Ve),Ue=function(){return{x:z?-le:le,y:K}},We=(0,X.useRef)(Ue()),Ge=E(function(e){if(S){var t=O(O({},Ue()),e);(We.current.x!==t.x||We.current.y!==t.y)&&(S(t),We.current=t)}});function Ke(e,t){var n=e;t?((0,Se.flushSync)(function(){ue(n)}),Ge()):_e(n)}function qe(e){var t=e.currentTarget.scrollTop;t!==K&&_e(t),x?.(e),Ge()}var Je=function(e){var t=e,n=_?_-Oe.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Ye=E(function(e,t){t?((0,Se.flushSync)(function(){ue(function(t){return Je(t+(z?-e:e))})}),Ge()):_e(function(t){return t+e})}),$=Pt(re,Re,ze,Be,Ve,!!_,Ye),Xe=W($,2),Ze=Xe[0],Qe=Xe[1];Bt(re,H,function(e,t,n,r){var i=r;return He(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ze({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),Ut(R,H,function(e){_e(function(t){return t+e})}),u(function(){function e(e){var t=Re&&e.detail<0,n=ze&&e.detail>0;re&&!t&&!n&&e.preventDefault()}var t=H.current;return t.addEventListener(`wheel`,Ze,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Qe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),function(){t.removeEventListener(`wheel`,Ze),t.removeEventListener(`DOMMouseScroll`,Qe),t.removeEventListener(`MozMousePixelScroll`,e)}},[re,Re,ze]),u(function(){if(_){var e=Je(le);ue(e),Ge({x:e})}},[Oe.width,_]);var $e=function(){var e,t;(e=je.current)==null||e.delayHidden(),(t=Me.current)==null||t.delayHidden()},et=Gt(H,V,I,o,N,function(){return te(!0)},_e,$e);X.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:Ue,scrollTo:function(e){function t(e){return e&&v(e)===`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&ue(Je(e.left)),et(e.top)):et(e)}}}),u(function(){C&&C(V.slice(we,Q+1),V)},[we,Q,V]);var tt=Ft(V,N,I,o),nt=D?.({start:we,end:Q,virtual:R,offsetX:le,offsetY:Te,rtl:z,getSize:tt}),rt=kt(V,we,Q,_,le,ee,p,Y),it=null;a&&(it=O(q({},l?`height`:`maxHeight`,a),Zt),re&&(it.overflowY=`hidden`,_&&(it.overflowX=`hidden`),me&&(it.pointerEvents=`none`)));var at={};return z&&(at.dir=`rtl`),X.createElement(`div`,c({ref:G,style:O(O({},d),{},{position:`relative`}),className:B},at,M),X.createElement(fe,{onResize:Ae},X.createElement(b,{className:`${r}-holder`,style:it,ref:H,onScroll:qe,onMouseEnter:$e},X.createElement(Dt,{prefixCls:r,height:Ce,offsetX:le,offsetY:Te,scrollWidth:_,onInnerResize:te,ref:U,innerProps:w,rtl:z,extra:nt},rt))),R&&Ce>a&&X.createElement(Kt,{ref:je,prefixCls:r,scrollOffset:K,scrollRange:Ce,rtl:z,onScroll:Ke,onStartMove:ge,onStopMove:J,spinSize:Pe,containerSize:Oe.height,style:k?.verticalScrollBar,thumbStyle:k?.verticalScrollBarThumb,showScrollBar:j}),R&&_>Oe.width&&X.createElement(Kt,{ref:Me,prefixCls:r,scrollOffset:le,scrollRange:_,rtl:z,onScroll:Ke,onStartMove:ge,onStopMove:J,spinSize:Ne,containerSize:Oe.width,horizontal:!0,style:k?.horizontalScrollBar,thumbStyle:k?.horizontalScrollBarThumb,showScrollBar:j}))}var $t=X.forwardRef(Qt);$t.displayName=`List`;var en=$t;function tn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var nn=[`disabled`,`title`,`children`,`style`,`className`];function rn(e){return typeof e==`string`||typeof e==`number`}var an=X.forwardRef(function(e,t){var n=Ge(),i=n.prefixCls,a=n.id,o=n.open,s=n.multiple,u=n.mode,d=n.searchValue,f=n.toggleOpen,m=n.notFoundContent,h=n.onPopupScroll,g=X.useContext(yt),_=g.maxCount,v=g.flattenOptions,y=g.onActiveValue,b=g.defaultActiveFirstOption,x=g.onSelect,S=g.menuItemSelectedIcon,C=g.rawValues,w=g.fieldNames,E=g.virtual,D=g.direction,O=g.listHeight,k=g.listItemHeight,A=g.optionRender,j=`${i}-item`,M=F(function(){return v},[o,v],function(e,t){return t[0]&&e[1]!==t[1]}),N=X.useRef(null),P=X.useMemo(function(){return s&&mt(_)&&C?.size>=_},[s,_,C?.size]),ee=function(e){e.preventDefault()},te=function(e){var t;(t=N.current)==null||t.scrollTo(typeof e==`number`?{index:e}:e)},I=X.useCallback(function(e){return u!==`combobox`&&C.has(e)},[u,U(C).toString(),C.size]),ne=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=M.length,r=0;r1&&arguments[1]!==void 0&&arguments[1];z(e);var n={source:t?`keyboard`:`mouse`},r=M[e];r?y(r.value,e,n):y(null,-1,n)};(0,X.useEffect)(function(){B(b===!1?-1:ne(0))},[M.length,d]);var V=X.useCallback(function(e){return u===`combobox`?String(e).toLowerCase()===d.toLowerCase():C.has(e)},[u,d,U(C).toString(),C.size]);(0,X.useEffect)(function(){var e=setTimeout(function(){if(!s&&o&&C.size===1){var e=Array.from(C)[0],t=M.findIndex(function(t){var n=t.data;return d?String(n.value).startsWith(d):n.value===e});t!==-1&&(B(t),te(t))}});if(o){var t;(t=N.current)==null||t.scrollTo(void 0)}return function(){return clearTimeout(e)}},[o,d]);var H=function(e){e!==void 0&&x(e,{selected:!C.has(e)}),s||f(!1)};if(X.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case r.N:case r.P:case r.UP:case r.DOWN:var i=0;if(t===r.UP?i=-1:t===r.DOWN?i=1:tn()&&n&&(t===r.N?i=1:t===r.P&&(i=-1)),i!==0){var a=ne(R+i,i);te(a),B(a,!0)}break;case r.TAB:case r.ENTER:var s,c=M[R];c&&!(c!=null&&(s=c.data)!=null&&s.disabled)&&!P?H(c.value):H(void 0),o&&e.preventDefault();break;case r.ESC:f(!1),o&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){te(e)}}}),M.length===0)return X.createElement(`div`,{role:`listbox`,id:`${a}_list`,className:`${j}-empty`,onMouseDown:ee},m);var G=Object.keys(w).map(function(e){return w[e]}),ie=function(e){return e.label};function ae(e,t){return{role:e.group?`presentation`:`option`,id:`${a}_list_${t}`}}var K=function(e){var t=M[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=l(n,!0),o=ie(t);return t?X.createElement(`div`,c({"aria-label":typeof o==`string`&&!i?o:null},a,{key:e},ae(t,e),{"aria-selected":V(r)}),r):null},oe={role:`listbox`,id:`${a}_list`};return X.createElement(X.Fragment,null,E&&X.createElement(`div`,c({},oe,{style:{height:0,width:0,overflow:`hidden`}}),K(R-1),K(R),K(R+1)),X.createElement(en,{itemKey:`key`,ref:N,data:M,height:O,itemHeight:k,fullHeight:!1,onMouseDown:ee,onScroll:h,virtual:E,direction:D,innerProps:E?null:oe},function(e,t){var n=e.group,r=e.groupOption,i=e.data,a=e.label,o=e.value,s=i.key;if(n){var u=i.title??(rn(a)?a.toString():void 0);return X.createElement(`div`,{className:(0,Z.default)(j,`${j}-group`,i.className),title:u},a===void 0?s:a)}var d=i.disabled,f=i.title;i.children;var m=i.style,h=i.className,g=T(i,nn),_=p(g,G),v=I(o),y=d||!v&&P,b=`${j}-option`,x=(0,Z.default)(j,b,h,q(q(q(q({},`${b}-grouped`,r),`${b}-active`,R===t&&!y),`${b}-disabled`,y),`${b}-selected`,v)),C=ie(e),w=!S||typeof S==`function`||v,D=typeof C==`number`?C:C||o,O=rn(D)?D.toString():void 0;return f!==void 0&&(O=f),X.createElement(`div`,c({},l(_),E?{}:ae(e,t),{"aria-selected":V(o),className:x,title:O,onMouseMove:function(){R===t||y||B(t)},onClick:function(){y||H(o)},style:m}),X.createElement(`div`,{className:`${b}-content`},typeof A==`function`?A(e,{index:t}):D),X.isValidElement(S)||v,w&&X.createElement(He,{className:`${j}-option-state`,customizeIcon:S,customizeIconProps:{value:o,disabled:y,isSelected:v}},v?`✓`:null))}))}),on=(function(e,t){var n=X.useRef({values:new Map,options:new Map});return[X.useMemo(function(){var r=n.current,i=r.values,a=r.options,o=e.map(function(e){return e.label===void 0?O(O({},e),{},{label:i.get(e.value)?.label}):e}),s=new Map,c=new Map;return o.forEach(function(e){s.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=s,n.current.options=c,o},[e,t]),X.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]});function sn(e,t){return Qe(e).join(``).toUpperCase().includes(t)}var cn=(function(e,t,n,r,i){return X.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:function(e,t){return i?sn(t[i],u):t[a]?sn(t[o===`children`?`label`:o],u):sn(t[s],u)},f=l?function(e){return _t(e)}:function(e){return e};return e.forEach(function(e){if(e[a]){if(d(n,f(e)))c.push(e);else{var t=e[a].filter(function(e){return d(n,f(e))});t.length&&c.push(O(O({},e),{},q({},a,t)))}}else d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t])}),ln=0,un=M();function dn(){var e;return un?(e=ln,ln+=1):e=`TEST_OR_SSR`,e}function fn(e){var t=X.useState(),n=W(t,2),r=n[0],i=n[1];return X.useEffect(function(){i(`rc_select_${dn()}`)},[]),e||r}var pn=[`children`,`value`],mn=[`children`];function hn(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=T(r,pn);return O({key:n,value:a===void 0?n:a,children:i},o)}function gn(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return K(e).map(function(e,n){if(!X.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,o=r.props,s=o.children,c=T(o,mn);return t||!i?hn(e):O(O({key:`__RC_SELECT_GRP__${a===null?n:a}__`,label:a},c),{},{options:gn(s)})}).filter(function(e){return e})}var _n=function(e,t,n,r,i){return X.useMemo(function(){var a=e;e||(a=gn(t));var o=new Map,s=new Map,c=function(e,t,n){n&&typeof n==`string`&&e.set(t[n],t)};return(function e(t){for(var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],l=0;l0?e(t.options):t.options}):t})},Ce=X.useMemo(function(){return y?Z(Se):Se},[Se,y,K]),we=X.useMemo(function(){return gt(Ce,{fieldNames:G,childrenAsData:V})},[Ce,G,V]),Q=function(e){var t=de(e);if(he(t),re&&(t.length!==Y.length||t.some(function(e,t){return Y[t]?.value!==e?.value}))){var n=ne?t:t.map(function(e){return e.value}),r=t.map(function(e){return _t(_e(e.value))});re(B?n:n[0],B?r:r[0])}},Te=X.useState(null),Ee=W(Te,2),De=Ee[0],Oe=Ee[1],ke=X.useState(0),Ae=W(ke,2),je=Ae[0],Me=Ae[1],Ne=E===void 0?r!==`combobox`:E,Pe=X.useCallback(function(e,t){var n=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).source,i=n===void 0?`keyboard`:n;Me(t),o&&r===`combobox`&&e!==null&&i===`keyboard`&&Oe(String(e))},[o,r]),Fe=function(e,t,n){var r=function(){var t=_e(e);return[ne?{label:t?.[G.label],value:e,key:t?.key??e}:e,_t(t)]};if(t&&m){var i=r(),a=W(i,2);m(a[0],a[1])}else if(!t&&h&&n!==`clear`){var o=r(),s=W(o,2);h(s[0],s[1])}},Ie=vn(function(e,t){var n,i=!B||t.selected;n=i?B?[].concat(U(Y),[e]):[e]:Y.filter(function(t){return t.value!==e}),Q(n),Fe(e,i),r===`combobox`?Oe(``):(!Ct||p)&&(oe(``),Oe(``))}),Le=function(e,t){Q(e);var n=t.type,r=t.values;(n===`remove`||n===`clear`)&&r.forEach(function(e){Fe(e.value,!1,n)})},Re=function(e,t){if(oe(e),Oe(null),t.source===`submit`){var n=(e||``).trim();n&&(Q(Array.from(new Set([].concat(U(ye),[n])))),Fe(n,!0),oe(``))}else t.source!==`blur`&&(r===`combobox`&&Q(e),d?.(e))},ze=function(e){var t=e;r!==`tags`&&(t=e.map(function(e){return le.get(e)?.value}).filter(function(e){return e!==void 0}));var n=Array.from(new Set([].concat(U(ye),U(t))));Q(n),n.forEach(function(e){Fe(e,!0)})},Be=X.useMemo(function(){var e=k!==!1&&_!==!1;return O(O({},se),{},{flattenOptions:we,onActiveValue:Pe,defaultActiveFirstOption:Ne,onSelect:Ie,menuItemSelectedIcon:D,rawValues:ye,fieldNames:G,virtual:e,direction:A,listHeight:M,listItemHeight:P,childrenAsData:V,maxCount:L,optionRender:C})},[L,se,we,Pe,Ne,Ie,D,ye,G,k,_,A,M,P,V,C]);return X.createElement(yt.Provider,{value:Be},X.createElement(wt,c({},R,{id:z,prefixCls:a,ref:t,omitDomProps:bn,mode:r,displayValues:ve,onDisplayValuesChange:Le,direction:A,searchValue:K,onSearch:Re,autoClearSearchValue:p,onSearchSplit:ze,dropdownMatchSelectWidth:_,OptionList:an,emptyOptions:!we.length,activeValue:De,activeDescendantId:`${z}_list_${je}`})))});Sn.Option=Et,Sn.OptGroup=Tt;var Cn=Sn,wn=()=>{let[,e]=P(),[t]=h(`Empty`),n=new ne(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return X.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},X.createElement(`title`,null,t?.description||`Empty`),X.createElement(`g`,{fill:`none`,fillRule:`evenodd`},X.createElement(`g`,{transform:`translate(24 31.67)`},X.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.797`,cy:`106.89`,rx:`67.797`,ry:`12.668`}),X.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`}),X.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)`}),X.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`}),X.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`})),X.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`}),X.createElement(`g`,{transform:`translate(149.65 15.383)`,fill:`#FFF`},X.createElement(`ellipse`,{cx:`20.654`,cy:`3.167`,rx:`2.849`,ry:`2.815`}),X.createElement(`path`,{d:`M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z`}))))},Tn=()=>{let[,e]=P(),[t]=h(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,X.useMemo)(()=>({borderColor:new ne(n).onBackground(a).toHexString(),shadowColor:new ne(r).onBackground(a).toHexString(),contentColor:new ne(i).onBackground(a).toHexString()}),[n,r,i,a]);return X.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},X.createElement(`title`,null,t?.description||`Empty`),X.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},X.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),X.createElement(`g`,{fillRule:`nonzero`,stroke:o},X.createElement(`path`,{d:`M55 12.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`}),X.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:c}))))},En=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Dn=V(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return En(R(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),On=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u}=e,d=On(e,[`className`,`rootClassName`,`prefixCls`,`image`,`description`,`children`,`imageStyle`,`style`,`classNames`,`styles`]),{getPrefixCls:f,direction:p,className:m,style:g,classNames:_,styles:v,image:b}=y(`empty`),x=f(`empty`,r),[S,C,w]=Dn(x),[T]=h(`Empty`),E=a===void 0?T?.description:a,D=typeof E==`string`?E:`empty`,O=i??b??kn,k=null;return k=typeof O==`string`?X.createElement(`img`,{draggable:!1,alt:D,src:O}):O,S(X.createElement(`div`,Object.assign({className:(0,Z.default)(C,w,x,m,{[`${x}-normal`]:O===An,[`${x}-rtl`]:p===`rtl`},t,n,_.root,l?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},v.root),g),u?.root),c)},d),X.createElement(`div`,{className:(0,Z.default)(`${x}-image`,_.image,l?.image),style:Object.assign(Object.assign(Object.assign({},s),v.image),u?.image)},k),E&&X.createElement(`div`,{className:(0,Z.default)(`${x}-description`,_.description,l?.description),style:Object.assign(Object.assign({},v.description),u?.description)},E),o&&X.createElement(`div`,{className:(0,Z.default)(`${x}-footer`,_.footer,l?.footer),style:Object.assign(Object.assign({},v.footer),u?.footer)},o)))};jn.PRESENTED_IMAGE_DEFAULT=kn,jn.PRESENTED_IMAGE_SIMPLE=An;var Mn=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,X.useContext)(_),r=n(`empty`);switch(t){case`Table`:case`List`:return X.createElement(jn,{image:jn.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return X.createElement(jn,{image:jn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return X.createElement(jn,null)}},Nn=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:[`tl`,`bl`],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:[`tr`,`br`],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:[`bl`,`tl`],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:[`br`,`tr`],offset:[0,-4]})}};function Pn(e,t){return e||Nn(t)}var Fn=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},In=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},L(e)),{position:`absolute`,top:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,padding:e.paddingXXS,overflow:`hidden`,fontSize:e.fontSize,fontVariant:`initial`,backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,[` ${i}${s}bottomLeft, ${a}${s}bottomLeft `]:{animationName:ve},[` ${i}${s}topLeft, ${a}${s}topLeft, ${i}${s}topRight, ${a}${s}topRight `]:{animationName:be},[`${o}${s}bottomLeft`]:{animationName:xe},[` ${o}${s}topLeft, ${o}${s}topRight `]:{animationName:Y},"&-hidden":{display:`none`},[r]:Object.assign(Object.assign({},Fn(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`},j),"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Fn(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}})},ye(e,`slide-up`),ye(e,`slide-down`),ze(e,`move-up`),ze(e,`move-down`)]},Ln=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:H(t),itemLineHeight:H(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Rn=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},zn=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":Object.assign(Object.assign({},ie()),{display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}})}}}},Bn=(e,t)=>{let{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=Rn(e),s=t?`${n}-${t}`:``,c=Ln(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},zn(e)),{[`${n}-selector`]:{display:`flex`,alignItems:`center`,width:`100%`,height:`100%`,paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:`not-allowed`},"&:after":{display:`inline-block`,width:0,margin:`${H(r)} 0`,lineHeight:H(a),visibility:`hidden`,content:`"\\a0"`}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:H(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:`flex-start`,"&:after":{lineHeight:H(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${i}-item + ${i}-item, ${n}-prefix + ${n}-selection-wrap `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:`inline-flex`,position:`relative`,maxWidth:`100%`,marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:H(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:`100%`,minWidth:4.1},"&-mirror":{position:`absolute`,top:0,insetInlineStart:0,insetInlineEnd:`auto`,zIndex:999,whiteSpace:`pre`,visibility:`hidden`}},[`${n}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`}})}};function Vn(e,t){let{componentCls:n}=e,r={[`${n}-multiple${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:`text`}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Bn(e,t),r]}var Hn=e=>{let{componentCls:t}=e,n=R(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=R(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Vn(e),Vn(n,`sm`),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Vn(r,`lg`)]};function Un(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},L(e,!0)),{display:`flex`,borderRadius:i,flex:`1 1 auto`,[`${n}-selection-wrap:after`]:{lineHeight:H(a)},[`${n}-selection-search`]:{position:`absolute`,inset:0,width:`100%`,"&-input":{width:`100%`,WebkitAppearance:`textfield`}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{display:`block`,padding:0,lineHeight:H(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:`center`},[`${n}-selection-placeholder`]:{transition:`none`,pointerEvents:`none`},[[`&:after`,`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(`,`)]:{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-search, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:`100%`,height:`100%`,alignItems:`center`,padding:`0 ${H(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:H(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:`none`},[`${n}-selection-search`]:{position:`static`,width:`100%`},[`${n}-selection-placeholder`]:{position:`absolute`,insetInlineStart:0,insetInlineEnd:0,padding:`0 ${H(r)}`,"&:after":{display:`none`}}}}}}}function Wn(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Un(e),Un(R(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),`sm`),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${H(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Un(R(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`lg`)]}var Gn=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Kn=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${H(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${H(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},qn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Kn(e,t))}),Jn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Kn(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),qn(e,{status:`error`,borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),qn(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Yn=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${H(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Xn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Yn(e,t))}),Zn=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Yn(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Xn(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Xn(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Qn=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:`transparent`,border:`${H(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),$n=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${H(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},er=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},$n(e,t))}),tr=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},$n(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),er(e,{status:`error`,borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),er(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),nr=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Jn(e)),Zn(e)),Qn(e)),tr(e))}),rr=e=>{let{componentCls:t}=e;return{position:`relative`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:`pointer`},[`${t}-show-search&`]:{cursor:`text`,input:{cursor:`auto`,color:`inherit`,height:`100%`}},[`${t}-disabled&`]:{cursor:`not-allowed`,input:{cursor:`not-allowed`}}}},ir=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:`transparent`,border:`none`,outline:`none`,appearance:`none`,fontFamily:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},ar=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:Object.assign(Object.assign({},L(e)),{position:`relative`,display:`inline-flex`,cursor:`pointer`,[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},rr(e)),ir(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`},j),{[`> ${t}-typography`]:{display:`inline`}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},j),{flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`}),[`${n}-arrow`]:Object.assign(Object.assign({},ie()),{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:`center`,pointerEvents:`none`,display:`flex`,alignItems:`center`,transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:`top`,transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:`top`},[`&:not(${n}-suffix)`]:{pointerEvents:`auto`}},[`${n}-disabled &`]:{cursor:`not-allowed`},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:`flex`,width:`100%`,position:`relative`,minWidth:0,"&:after":{content:`"\\a0"`,width:0,overflow:`hidden`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:r,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},or=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},ar(e),Wn(e),Hn(e),In(e),{[`${t}-rtl`]:{direction:`rtl`}},D(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},sr=V(`Select`,(e,{rootPrefixCls:t})=>{let n=R(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[or(n),nr(n)]},Gn,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),cr={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`},lr=X.forwardRef(function(e,t){return X.createElement(w,c({},e,{ref:t,icon:cr}))});function ur({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:a,hasFeedback:o,prefixCls:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:f}){let p=t??X.createElement(C,null),m=t=>e===null&&!o&&!u?null:X.createElement(X.Fragment,null,c!==!1&&t,o&&l),h=null;if(e!==void 0)h=m(e);else if(i)h=m(X.createElement(oe,{spin:!0}));else{let e=`${s}-suffix`;h=({open:t,showSearch:n})=>m(t&&n?X.createElement(_e,{className:e}):X.createElement(lr,{className:e}))}let g=null;g=n===void 0?a?X.createElement(ue,null):null:n;let _=null;return _=r===void 0?X.createElement(d,null):r,{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:_}}function dr(e){return X.useMemo(()=>{if(e)return(...t)=>X.createElement(z,{space:!0},e.apply(void 0,t))},[e])}function fr(e,t){return t===void 0?e!==null:t}var pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:s,popupClassName:c,dropdownClassName:l,listHeight:u=256,placement:d,listItemHeight:h,size:v,disabled:b,notFoundContent:S,status:C,builtinPlacements:w,dropdownMatchSelectWidth:T,popupMatchSelectWidth:E,direction:D,style:O,allowClear:A,variant:j,dropdownStyle:M,transitionName:N,tagRender:F,maxCount:ee,prefix:te,dropdownRender:ne,popupRender:re,onDropdownVisibleChange:L,onOpenChange:R,styles:z,classNames:B}=e,V=pr(e,`prefixCls.bordered.className.rootClassName.getPopupContainer.popupClassName.dropdownClassName.listHeight.placement.listItemHeight.size.disabled.notFoundContent.status.builtinPlacements.dropdownMatchSelectWidth.popupMatchSelectWidth.direction.style.allowClear.variant.dropdownStyle.transitionName.tagRender.maxCount.prefix.dropdownRender.popupRender.onDropdownVisibleChange.onOpenChange.styles.classNames`.split(`.`)),{getPopupContainer:H,getPrefixCls:U,renderEmpty:W,direction:G,virtual:ie,popupMatchSelectWidth:ae,popupOverflow:K}=X.useContext(_),{showSearch:q,style:oe,styles:ce,className:ue,classNames:fe}=y(`select`),[,pe]=P(),me=h??pe?.controlHeight,he=U(`select`,n),ge=U(),J=D??G,{compactSize:Y,compactItemClassnames:_e}=o(he,J),[ve,ye]=le(`select`,j,r),be=x(he),[xe,Se,Ce]=sr(he,be),we=X.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===mr?`combobox`:t},[e.mode]),Q=we===`multiple`||we===`tags`,Te=fr(e.suffixIcon,e.showArrow),Ee=E??T??ae,De=z?.popup?.root||ce.popup?.root||M,Oe=dr(re||ne),ke=R||L,{status:Ae,hasFeedback:je,isFormItemInput:Me,feedbackIcon:Ne}=X.useContext(I),Pe=se(Ae,C),Fe;Fe=S===void 0?we===`combobox`?null:W?.(`Select`)||X.createElement(Mn,{componentName:`Select`}):S;let{suffixIcon:Ie,itemIcon:Le,removeIcon:Re,clearIcon:ze}=ur(Object.assign(Object.assign({},V),{multiple:Q,hasFeedback:je,feedbackIcon:Ne,showSuffixIcon:Te,prefixCls:he,componentName:`Select`})),Be=A===!0?{clearIcon:ze}:A,Ve=p(V,[`suffixIcon`,`itemIcon`]),He=(0,Z.default)(B?.popup?.root||fe?.popup?.root||c||l,{[`${he}-dropdown-${J}`]:J===`rtl`},a,fe.root,B?.root,Ce,be,Se),Ue=g(e=>v??Y??e),We=X.useContext(k),Ge=b??We,Ke=(0,Z.default)({[`${he}-lg`]:Ue===`large`,[`${he}-sm`]:Ue===`small`,[`${he}-rtl`]:J===`rtl`,[`${he}-${ve}`]:ye,[`${he}-in-form-item`]:Me},de(he,Pe,je),_e,ue,i,fe.root,B?.root,a,Ce,be,Se),qe=X.useMemo(()=>d===void 0?J===`rtl`?`bottomRight`:`bottomLeft`:d,[d,J]),[Je]=f(`SelectLike`,De?.zIndex);return xe(X.createElement(Cn,Object.assign({ref:t,virtual:ie,showSearch:q},Ve,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),z?.root),oe),O),dropdownMatchSelectWidth:Ee,transitionName:m(ge,`slide-up`,N),builtinPlacements:Pn(w,K),listHeight:u,listItemHeight:me,mode:we,prefixCls:he,placement:qe,direction:J,prefix:te,suffixIcon:Ie,menuItemSelectedIcon:Le,removeIcon:Re,allowClear:Be,notFoundContent:Fe,className:Ke,getPopupContainer:s||H,dropdownClassName:He,disabled:Ge,dropdownStyle:Object.assign(Object.assign({},De),{zIndex:Je}),maxCount:Q?ee:void 0,tagRender:Q?F:void 0,dropdownRender:Oe,onDropdownVisibleChange:ke})))}),gr=Ve(hr,`dropdownAlign`);hr.SECRET_COMBOBOX_MODE_DO_NOT_USE=mr,hr.Option=Et,hr.OptGroup=Tt,hr._InternalPanelDoNotUseOrYouWillBeFired=gr;var _r=(e,t)=>{e?.addEventListener===void 0?e?.addListener!==void 0&&e.addListener(t):e.addEventListener(`change`,t)},vr=(e,t)=>{e?.removeEventListener===void 0?e?.removeListener!==void 0&&e.removeListener(t):e.removeEventListener(`change`,t)},yr=[`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],br=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),xr=e=>{let t=e,n=[].concat(yr).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r{let[,e]=P(),t=br(xr(e));return X.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>e(r)),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},i=window.matchMedia(t);_r(i,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];vr(t?.mql,t?.listener)}),e.clear()}}},[t])};function Cr(e=!0,t={}){let n=(0,X.useRef)(t),[,r]=Ae(),i=Sr();return u(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var wr=[`parentNode`],Tr=`form_item`;function Er(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Dr(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:wr.includes(n)?`${Tr}_${n}`:n}function Or(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}var kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{let r=Ar(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n}=t,i=kr(t,[`focus`]),a=jr(e,r);a&&(ke(a,Object.assign({scrollMode:`if-needed`,block:`nearest`},i)),n&&r.focusField(e))},focusField:e=>{var t,n;let i=r.getFieldInstance(e);typeof i?.focus==`function`?i.focus():(n=(t=jr(e,r))?.focus)==null||n.call(t)},getFieldInstance:e=>{let t=Ar(e);return n.current[t]}}),[e,t]);return[r]}var Nr=(0,X.createContext)({}),Pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{getPrefixCls:n,direction:r}=X.useContext(_),{gutter:i,wrap:a}=X.useContext(Nr),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h}=e,g=Pr(e,[`prefixCls`,`span`,`order`,`offset`,`push`,`pull`,`className`,`children`,`flex`,`style`]),v=n(`col`,o),[y,b,x]=he(v),S={},C={};Ir.forEach(t=>{let n={},i=e[t];typeof i==`number`?n.span=i:typeof i==`object`&&(n=i||{}),delete g[t],C=Object.assign(Object.assign({},C),{[`${v}-${t}-${n.span}`]:n.span!==void 0,[`${v}-${t}-order-${n.order}`]:n.order||n.order===0,[`${v}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${v}-${t}-push-${n.push}`]:n.push||n.push===0,[`${v}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${v}-rtl`]:r===`rtl`}),n.flex&&(C[`${v}-${t}-flex`]=!0,S[`--${v}-${t}-flex`]=Fr(n.flex))});let w=(0,Z.default)(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${c}`]:c,[`${v}-offset-${l}`]:l,[`${v}-push-${u}`]:u,[`${v}-pull-${d}`]:d},f,C,b,x),T={};if(i?.[0]){let e=typeof i[0]==`number`?`${i[0]/2}px`:`calc(${i[0]} / 2)`;T.paddingLeft=e,T.paddingRight=e}return m&&(T.flex=Fr(m),a===!1&&!T.minWidth&&(T.minWidth=0)),y(X.createElement(`div`,Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},T),h),S),className:w,ref:t}),p))});function Rr(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if(typeof e==`object`&&e)for(let r=0;r{if(typeof e==`string`&&r(e),typeof e==`object`)for(let n=0;n{i()},[JSON.stringify(e),t]),n}var Vr=X.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l}=e,u=zr(e,[`prefixCls`,`justify`,`align`,`className`,`style`,`children`,`gutter`,`wrap`]),{getPrefixCls:d,direction:f}=X.useContext(_),p=Cr(!0,null),m=Br(i,p),h=Br(r,p),g=d(`row`,n),[v,y,b]=ge(g),x=Rr(c,p),S=(0,Z.default)(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,y,b),C={};if(x?.[0]){let e=typeof x[0]==`number`?`${x[0]/-2}px`:`calc(${x[0]} / -2)`;C.marginLeft=e,C.marginRight=e}let[w,T]=x;C.rowGap=T;let E=X.useMemo(()=>({gutter:[w,T],wrap:l}),[w,T,l]);return v(X.createElement(Nr.Provider,{value:E},X.createElement(`div`,Object.assign({},u,{className:S,style:Object.assign(Object.assign({},C),o),ref:t}),s)))}),Hr={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`},Ur=X.forwardRef(function(e,t){return X.createElement(w,c({},e,{ref:t,icon:Hr}))}),Wr={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`},Gr=X.forwardRef(function(e,t){return X.createElement(w,c({},e,{ref:t,icon:Wr}))});export{Ar as a,Or as c,Be as d,je as f,Lr as i,Er as l,Ur as n,Mr as o,Vr as r,Dr as s,Gr as t,hr as u};