(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2339],{88258:function(_t,Ye,h){"use strict";var d=h(67294),se=h(53124),V=h(14277),U=function(Ze){return d.createElement(se.C,null,function(we){var Ae=we.getPrefixCls,he=Ae("empty");switch(Ze){case"Table":case"List":return d.createElement(V.Z,{image:V.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return d.createElement(V.Z,{image:V.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(he,"-small")});default:return d.createElement(V.Z,null)}})};Ye.Z=U},14277:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Vt}});var d=h(96156),se=h(22122),V=h(94184),U=h.n(V),S=h(67294),Ze=h(53124),we=h(42051),Ae=function(){var Le=S.useContext(Ze.E_),Be=Le.getPrefixCls,te=Be("empty-img-default");return S.createElement("svg",{className:te,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(24 31.67)"},S.createElement("ellipse",{className:"".concat(te,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),S.createElement("path",{className:"".concat(te,"-path-1"),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"}),S.createElement("path",{className:"".concat(te,"-path-2"),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",transform:"translate(13.56)"}),S.createElement("path",{className:"".concat(te,"-path-3"),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"}),S.createElement("path",{className:"".concat(te,"-path-4"),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"})),S.createElement("path",{className:"".concat(te,"-path-5"),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"}),S.createElement("g",{className:"".concat(te,"-g"),transform:"translate(149.65 15.383)"},S.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),S.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=Ae,i=function(){var Le=S.useContext(Ze.E_),Be=Le.getPrefixCls,te=Be("empty-img-simple");return S.createElement("svg",{className:te,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},S.createElement("ellipse",{className:"".concat(te,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),S.createElement("g",{className:"".concat(te,"-g"),fillRule:"nonzero"},S.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"}),S.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",className:"".concat(te,"-path")}))))},Fe=i,Te=function(ke,Le){var Be={};for(var te in ke)Object.prototype.hasOwnProperty.call(ke,te)&&Le.indexOf(te)<0&&(Be[te]=ke[te]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,te=Object.getOwnPropertySymbols(ke);_e1&&arguments[1]!==void 0?arguments[1]:{},u=t.fieldNames,l=t.childrenAsData,v=[],c=Be(u,!1),y=c.label,I=c.value,E=c.options;function R(g,m){g.forEach(function(D){var C=D[y];if(m||!(E in D)){var Z=D[I];v.push({key:Le(D,v.length),groupOption:m,data:D,label:C,value:Z})}else{var oe=C;oe===void 0&&l&&(oe=D.label),v.push({key:Le(D,v.length),group:!0,data:D,label:oe}),R(D[E],!0)}})}return R(n,!1),v}function _e(n){var t=(0,U.Z)({},n);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,he.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function $e(n,t){if(!t||!t.length)return null;var u=!1;function l(c,y){var I=(0,ke.Z)(y),E=I[0],R=I.slice(1);if(!E)return[c];var g=c.split(E);return u=u||g.length>1,g.reduce(function(m,D){return[].concat((0,se.Z)(m),(0,se.Z)(l(D,R)))},[]).filter(function(m){return m})}var v=l(n,t);return u?v:null}var wt=h(18481),ot=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ct=function(t){var u=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:u,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:u,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:u,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:u,adjustY:1}}}},Ft=function(t,u){var l=t.prefixCls,v=t.disabled,c=t.visible,y=t.children,I=t.popupElement,E=t.containerWidth,R=t.animation,g=t.transitionName,m=t.dropdownStyle,D=t.dropdownClassName,C=t.direction,Z=C===void 0?"ltr":C,oe=t.placement,X=t.dropdownMatchSelectWidth,B=t.dropdownRender,$=t.dropdownAlign,ie=t.getPopupContainer,Se=t.empty,re=t.getTriggerDOMNode,j=t.onPopupVisibleChange,ue=t.onPopupMouseEnter,ne=(0,Ze.Z)(t,ot),Q="".concat(l,"-dropdown"),ge=I;B&&(ge=B(I));var Ee=i.useMemo(function(){return Ct(X)},[X]),ye=R?"".concat(Q,"-").concat(R):g,J=i.useRef(null);i.useImperativeHandle(u,function(){return{getPopupElement:function(){return J.current}}});var be=(0,U.Z)({minWidth:E},m);return typeof X=="number"?be.width=X:X&&(be.width=E),i.createElement(wt.Z,(0,d.Z)({},ne,{showAction:j?["click"]:[],hideAction:j?["click"]:[],popupPlacement:oe||(Z==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ee,prefixCls:Q,popupTransitionName:ye,popup:i.createElement("div",{ref:J,onMouseEnter:ue},ge),popupAlign:$,popupVisible:c,getPopupContainer:ie,popupClassName:Te()(D,(0,V.Z)({},"".concat(Q,"-empty"),Se)),popupStyle:be,getTriggerDOMNode:re,onPopupVisibleChange:j}),y)},at=i.forwardRef(Ft);at.displayName="SelectTrigger";var Ht=at,pt=h(64217),Ut=h(19214),Dt=function(t){var u=t.className,l=t.customizeIcon,v=t.customizeIconProps,c=t.onMouseDown,y=t.onClick,I=t.children,E;return typeof l=="function"?E=l(v):E=l,i.createElement("span",{className:u,onMouseDown:function(g){g.preventDefault(),c&&c(g)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:y,"aria-hidden":!0},E!==void 0?E:i.createElement("span",{className:Te()(u.split(/\s+/).map(function(R){return"".concat(R,"-icon")}))},I))},et=Dt,Pt=function(t,u){var l,v,c=t.prefixCls,y=t.id,I=t.inputElement,E=t.disabled,R=t.tabIndex,g=t.autoFocus,m=t.autoComplete,D=t.editable,C=t.activeDescendantId,Z=t.value,oe=t.maxLength,X=t.onKeyDown,B=t.onMouseDown,$=t.onChange,ie=t.onPaste,Se=t.onCompositionStart,re=t.onCompositionEnd,j=t.open,ue=t.attrs,ne=I||i.createElement("input",null),Q=ne,ge=Q.ref,Ee=Q.props,ye=Ee.onKeyDown,J=Ee.onChange,be=Ee.onMouseDown,G=Ee.onCompositionStart,N=Ee.onCompositionEnd,q=Ee.style;return(0,he.Kp)(!("maxLength"in ne.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ne=i.cloneElement(ne,(0,U.Z)((0,U.Z)((0,U.Z)({type:"search"},Ee),{},{id:y,ref:(0,mt.sQ)(u,ge),disabled:E,tabIndex:R,autoComplete:m||"off",autoFocus:g,className:Te()("".concat(c,"-selection-search-input"),(l=ne)===null||l===void 0||(v=l.props)===null||v===void 0?void 0:v.className),role:"combobox","aria-expanded":j,"aria-haspopup":"listbox","aria-owns":"".concat(y,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(y,"_list"),"aria-activedescendant":C},ue),{},{value:D?Z:"",maxLength:oe,readOnly:!D,unselectable:D?null:"on",style:(0,U.Z)((0,U.Z)({},q),{},{opacity:D?null:0}),onKeyDown:function(fe){X(fe),ye&&ye(fe)},onMouseDown:function(fe){B(fe),be&&be(fe)},onChange:function(fe){$(fe),J&&J(fe)},onCompositionStart:function(fe){Se(fe),G&&G(fe)},onCompositionEnd:function(fe){re(fe),N&&N(fe)},onPaste:ie})),ne},Bt=i.forwardRef(Pt);Bt.displayName="Input";var xt=Bt;function fn(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var dn=typeof window!="undefined"&&window.document&&window.document.documentElement,Pn=dn;function xn(n){return n!=null}function vn(n){return["string","number"].includes((0,we.Z)(n))}function $t(n){var t=void 0;return n&&(vn(n.title)?t=n.title.toString():vn(n.label)&&(t=n.label.toString())),t}function Zn(n,t){Pn?i.useLayoutEffect(n,t):i.useEffect(n,t)}function Gn(n){var t;return(t=n.key)!==null&&t!==void 0?t:n.value}var mn=function(t){t.preventDefault(),t.stopPropagation()},pn=function(t){var u=t.id,l=t.prefixCls,v=t.values,c=t.open,y=t.searchValue,I=t.inputRef,E=t.placeholder,R=t.disabled,g=t.mode,m=t.showSearch,D=t.autoFocus,C=t.autoComplete,Z=t.activeDescendantId,oe=t.tabIndex,X=t.removeIcon,B=t.maxTagCount,$=t.maxTagTextLength,ie=t.maxTagPlaceholder,Se=ie===void 0?function(b){return"+ ".concat(b.length," ...")}:ie,re=t.tagRender,j=t.onToggleOpen,ue=t.onRemove,ne=t.onInputChange,Q=t.onInputPaste,ge=t.onInputKeyDown,Ee=t.onInputMouseDown,ye=t.onInputCompositionStart,J=t.onInputCompositionEnd,be=i.useRef(null),G=(0,i.useState)(0),N=(0,S.Z)(G,2),q=N[0],pe=N[1],fe=(0,i.useState)(!1),je=(0,S.Z)(fe,2),He=je[0],ct=je[1],de="".concat(l,"-selection"),Y=c||g==="tags"?y:"",P=g==="tags"||m&&(c||He);Zn(function(){pe(be.current.scrollWidth)},[Y]);function W(b,A,ce,Ie,Oe){return i.createElement("span",{className:Te()("".concat(de,"-item"),(0,V.Z)({},"".concat(de,"-item-disabled"),ce)),title:$t(b)},i.createElement("span",{className:"".concat(de,"-item-content")},A),Ie&&i.createElement(et,{className:"".concat(de,"-item-remove"),onMouseDown:mn,onClick:Oe,customizeIcon:X},"\xD7"))}function le(b,A,ce,Ie,Oe){var tt=function(Ue){mn(Ue),j(!c)};return i.createElement("span",{onMouseDown:tt},re({label:A,value:b,disabled:ce,closable:Ie,onClose:Oe}))}function ee(b){var A=b.disabled,ce=b.label,Ie=b.value,Oe=!R&&!A,tt=ce;if(typeof $=="number"&&(typeof ce=="string"||typeof ce=="number")){var Pe=String(tt);Pe.length>$&&(tt="".concat(Pe.slice(0,$),"..."))}var Ue=function(it){it&&it.stopPropagation(),ue(b)};return typeof re=="function"?le(Ie,tt,A,Oe,Ue):W(b,tt,A,Oe,Ue)}function ae(b){var A=typeof Se=="function"?Se(b):Se;return W({title:A},A,!1)}var De=i.createElement("div",{className:"".concat(de,"-search"),style:{width:q},onFocus:function(){ct(!0)},onBlur:function(){ct(!1)}},i.createElement(xt,{ref:I,open:c,prefixCls:l,id:u,inputElement:null,disabled:R,autoFocus:D,autoComplete:C,editable:P,activeDescendantId:Z,value:Y,onKeyDown:ge,onMouseDown:Ee,onChange:ne,onPaste:Q,onCompositionStart:ye,onCompositionEnd:J,tabIndex:oe,attrs:(0,pt.Z)(t,!0)}),i.createElement("span",{ref:be,className:"".concat(de,"-search-mirror"),"aria-hidden":!0},Y,"\xA0")),Ne=i.createElement(Ut.Z,{prefixCls:"".concat(de,"-overflow"),data:v,renderItem:ee,renderRest:ae,suffix:De,itemKey:Gn,maxCount:B});return i.createElement(i.Fragment,null,Ne,!v.length&&!Y&&i.createElement("span",{className:"".concat(de,"-placeholder")},E))},Tn=pn,Ln=function(t){var u=t.inputElement,l=t.prefixCls,v=t.id,c=t.inputRef,y=t.disabled,I=t.autoFocus,E=t.autoComplete,R=t.activeDescendantId,g=t.mode,m=t.open,D=t.values,C=t.placeholder,Z=t.tabIndex,oe=t.showSearch,X=t.searchValue,B=t.activeValue,$=t.maxLength,ie=t.onInputKeyDown,Se=t.onInputMouseDown,re=t.onInputChange,j=t.onInputPaste,ue=t.onInputCompositionStart,ne=t.onInputCompositionEnd,Q=i.useState(!1),ge=(0,S.Z)(Q,2),Ee=ge[0],ye=ge[1],J=g==="combobox",be=J||oe,G=D[0],N=X||"";J&&B&&!Ee&&(N=B),i.useEffect(function(){J&&ye(!1)},[J,B]);var q=g!=="combobox"&&!m&&!oe?!1:!!N,pe=$t(G),fe=function(){if(G)return null;var He=q?{visibility:"hidden"}:void 0;return i.createElement("span",{className:"".concat(l,"-selection-placeholder"),style:He},C)};return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(l,"-selection-search")},i.createElement(xt,{ref:c,prefixCls:l,id:v,open:m,inputElement:u,disabled:y,autoFocus:I,autoComplete:E,editable:be,activeDescendantId:R,value:N,onKeyDown:ie,onMouseDown:Se,onChange:function(He){ye(!0),re(He)},onPaste:j,onCompositionStart:ue,onCompositionEnd:ne,tabIndex:Z,attrs:(0,pt.Z)(t,!0),maxLength:J?$:void 0})),!J&&G&&!q&&i.createElement("span",{className:"".concat(l,"-selection-item"),title:pe},G.label),fe())},hn=Ln;function gn(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),u=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(u.current)}},[]);function l(v){(v||t.current===null)&&(t.current=v),window.clearTimeout(u.current),u.current=window.setTimeout(function(){t.current=null},n)}return[function(){return t.current},l]}function Nn(n){return![M.Z.ESC,M.Z.SHIFT,M.Z.BACKSPACE,M.Z.TAB,M.Z.WIN_KEY,M.Z.ALT,M.Z.META,M.Z.WIN_KEY_RIGHT,M.Z.CTRL,M.Z.SEMICOLON,M.Z.EQUALS,M.Z.CAPS_LOCK,M.Z.CONTEXT_MENU,M.Z.F1,M.Z.F2,M.Z.F3,M.Z.F4,M.Z.F5,M.Z.F6,M.Z.F7,M.Z.F8,M.Z.F9,M.Z.F10,M.Z.F11,M.Z.F12].includes(n)}var An=function(t,u){var l=(0,i.useRef)(null),v=(0,i.useRef)(!1),c=t.prefixCls,y=t.open,I=t.mode,E=t.showSearch,R=t.tokenWithEnter,g=t.onSearch,m=t.onSearchSubmit,D=t.onToggleOpen,C=t.onInputKeyDown,Z=t.domRef;i.useImperativeHandle(u,function(){return{focus:function(){l.current.focus()},blur:function(){l.current.blur()}}});var oe=gn(0),X=(0,S.Z)(oe,2),B=X[0],$=X[1],ie=function(N){var q=N.which;(q===M.Z.UP||q===M.Z.DOWN)&&N.preventDefault(),C&&C(N),q===M.Z.ENTER&&I==="tags"&&!v.current&&!y&&(m==null||m(N.target.value)),Nn(q)&&D(!0)},Se=function(){$(!0)},re=(0,i.useRef)(null),j=function(N){g(N,!0,v.current)!==!1&&D(!0)},ue=function(){v.current=!0},ne=function(N){v.current=!1,I!=="combobox"&&j(N.target.value)},Q=function(N){var q=N.target.value;if(R&&re.current&&/[\r\n]/.test(re.current)){var pe=re.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");q=q.replace(pe,re.current)}re.current=null,j(q)},ge=function(N){var q=N.clipboardData,pe=q.getData("text");re.current=pe},Ee=function(N){var q=N.target;if(q!==l.current){var pe=document.body.style.msTouchAction!==void 0;pe?setTimeout(function(){l.current.focus()}):l.current.focus()}},ye=function(N){var q=B();N.target!==l.current&&!q&&I!=="combobox"&&N.preventDefault(),(I!=="combobox"&&(!E||!q)||!y)&&(y&&g("",!0,!1),D())},J={inputRef:l,onInputKeyDown:ie,onInputMouseDown:Se,onInputChange:Q,onInputPaste:ge,onInputCompositionStart:ue,onInputCompositionEnd:ne},be=I==="multiple"||I==="tags"?i.createElement(Tn,(0,d.Z)({},t,J)):i.createElement(hn,(0,d.Z)({},t,J));return i.createElement("div",{ref:Z,className:"".concat(c,"-selector"),onClick:Ee,onMouseDown:ye},be)},zt=i.forwardRef(An);zt.displayName="Selector";var _n=zt;function Vn(n,t,u,l){var v=i.useRef(null);v.current={open:t,triggerOpen:u,customizedTrigger:l},i.useEffect(function(){function c(y){var I;if(!((I=v.current)===null||I===void 0?void 0:I.customizedTrigger)){var E=y.target;E.shadowRoot&&y.composed&&(E=y.composedPath()[0]||E),v.current.open&&n().filter(function(R){return R}).every(function(R){return!R.contains(E)&&R!==E})&&v.current.triggerOpen(!1)}}return window.addEventListener("mousedown",c),function(){return window.removeEventListener("mousedown",c)}},[])}function yn(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),u=(0,S.Z)(t,2),l=u[0],v=u[1],c=i.useRef(null),y=function(){window.clearTimeout(c.current)};i.useEffect(function(){return y},[]);var I=function(R,g){y(),c.current=window.setTimeout(function(){v(R),g&&g()},n)};return[l,I,y]}var bn=i.createContext(null);function Gt(){return i.useContext(bn)}var Fn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Hn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function en(n){return n==="tags"||n==="multiple"}var tn=i.forwardRef(function(n,t){var u,l,v=n.id,c=n.prefixCls,y=n.className,I=n.showSearch,E=n.tagRender,R=n.direction,g=n.omitDomProps,m=n.displayValues,D=n.onDisplayValuesChange,C=n.emptyOptions,Z=n.notFoundContent,oe=Z===void 0?"Not Found":Z,X=n.onClear,B=n.mode,$=n.disabled,ie=n.loading,Se=n.getInputElement,re=n.getRawInputElement,j=n.open,ue=n.defaultOpen,ne=n.onDropdownVisibleChange,Q=n.activeValue,ge=n.onActiveValueChange,Ee=n.activeDescendantId,ye=n.searchValue,J=n.onSearch,be=n.onSearchSplit,G=n.tokenSeparators,N=n.allowClear,q=n.showArrow,pe=n.inputIcon,fe=n.clearIcon,je=n.OptionList,He=n.animation,ct=n.transitionName,de=n.dropdownStyle,Y=n.dropdownClassName,P=n.dropdownMatchSelectWidth,W=n.dropdownRender,le=n.dropdownAlign,ee=n.placement,ae=n.getPopupContainer,De=n.showAction,Ne=De===void 0?[]:De,b=n.onFocus,A=n.onBlur,ce=n.onKeyUp,Ie=n.onKeyDown,Oe=n.onMouseDown,tt=(0,Ze.Z)(n,Fn),Pe=en(B),Ue=(I!==void 0?I:Pe)||B==="combobox",Re=(0,U.Z)({},tt);Hn.forEach(function(k){delete Re[k]}),g==null||g.forEach(function(k){delete Re[k]});var it=i.useState(!1),Qe=(0,S.Z)(it,2),nt=Qe[0],Zt=Qe[1];i.useEffect(function(){Zt((0,Et.Z)())},[]);var Mt=i.useRef(null),ht=i.useRef(null),st=i.useRef(null),gt=i.useRef(null),lt=i.useRef(null),kt=yn(),an=(0,S.Z)(kt,3),Xt=an[0],ln=an[1],Qt=an[2];i.useImperativeHandle(t,function(){var k,H;return{focus:(k=gt.current)===null||k===void 0?void 0:k.focus,blur:(H=gt.current)===null||H===void 0?void 0:H.blur,scrollTo:function(qe){var Ve;return(Ve=lt.current)===null||Ve===void 0?void 0:Ve.scrollTo(qe)}}});var ft=i.useMemo(function(){var k;if(B!=="combobox")return ye;var H=(k=m[0])===null||k===void 0?void 0:k.value;return typeof H=="string"||typeof H=="number"?String(H):""},[ye,B,m]),un=B==="combobox"&&typeof Se=="function"&&Se()||null,yt=typeof re=="function"&&re(),$n=(0,mt.x1)(ht,yt==null||(u=yt.props)===null||u===void 0?void 0:u.ref),On=(0,Ae.Z)(void 0,{defaultValue:ue,value:j}),cn=(0,S.Z)(On,2),jt=cn[0],Jt=cn[1],Ke=jt,Rn=!oe&&C;($||Rn&&Ke&&B==="combobox")&&(Ke=!1);var Tt=Rn?!1:Ke,dt=i.useCallback(function(k){var H=k!==void 0?k:!Ke;Ke!==H&&!$&&(Jt(H),ne==null||ne(H))},[$,Ke,Jt,ne]),_=i.useMemo(function(){return(G||[]).some(function(k){return[` `,`\r `].includes(k)})},[G]),T=function(H,Ge,qe){var Ve=!0,rt=H;ge==null||ge(null);var vt=qe?null:$e(H,G);return B!=="combobox"&&vt&&(rt="",be==null||be(vt),dt(!1),Ve=!1),J&&ft!==rt&&J(rt,{source:Ge?"typing":"effect"}),Ve},x=function(H){!H||!H.trim()||J(H,{source:"submit"})};i.useEffect(function(){!Ke&&!Pe&&B!=="combobox"&&T("",!1,!1)},[Ke]),i.useEffect(function(){jt&&$&&Jt(!1),$&&ln(!1)},[$]);var z=gn(),Me=(0,S.Z)(z,2),xe=Me[0],Lt=Me[1],bt=function(H){var Ge=xe(),qe=H.which;if(qe===M.Z.ENTER&&(B!=="combobox"&&H.preventDefault(),Ke||dt(!0)),Lt(!!ft),qe===M.Z.BACKSPACE&&!Ge&&Pe&&!ft&&m.length){for(var Ve=(0,se.Z)(m),rt=null,vt=Ve.length-1;vt>=0;vt-=1){var sn=Ve[vt];if(!sn.disabled){Ve.splice(vt,1),rt=sn;break}}rt&&D(Ve,{type:"remove",values:[rt]})}for(var Nt=arguments.length,qt=new Array(Nt>1?Nt-1:0),At=1;At1?Ge-1:0),Ve=1;Ve1?vt-1:0),Nt=1;Nt1&&arguments[1]!==void 0?arguments[1]:!1;return(0,kn.Z)(n).map(function(u,l){if(!i.isValidElement(u)||!u.type)return null;var v=u.type.isSelectOptGroup,c=u.key,y=u.props,I=y.children,E=(0,Ze.Z)(y,jn);return t||!v?Wn(u):(0,U.Z)((0,U.Z)({key:"__RC_SELECT_GRP__".concat(c===null?l:c,"__"),label:c},E),{},{options:En(I)})}).filter(function(u){return u})}function Un(n,t,u,l,v){return i.useMemo(function(){var c=n,y=!n;y&&(c=En(t));var I=new Map,E=new Map,R=function(D,C,Z){Z&&typeof Z=="string"&&D.set(C[Z],C)};function g(m){for(var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C1&&arguments[1]!==void 0?arguments[1]:1,le=Q.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;q(P);var le={source:W?"keyboard":"mouse"},ee=Q[P];if(!ee){oe(null,-1,le);return}oe(ee.value,P,le)};(0,i.useEffect)(function(){pe(X!==!1?J(0):-1)},[Q.length,R]);var fe=i.useCallback(function(Y){return ie.has(Y)&&E!=="combobox"},[E,(0,se.Z)(ie).toString()]);(0,i.useEffect)(function(){var Y=setTimeout(function(){if(!I&&y&&ie.size===1){var W=Array.from(ie)[0],le=Q.findIndex(function(ee){var ae=ee.data;return ae.value===W});le!==-1&&(pe(le),ye(le))}});if(y){var P;(P=ge.current)===null||P===void 0||P.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[y,R]);var je=function(P){P!==void 0&&B(P,{selected:!ie.has(P)}),I||g(!1)};if(i.useImperativeHandle(u,function(){return{onKeyDown:function(P){var W=P.which,le=P.ctrlKey;switch(W){case M.Z.N:case M.Z.P:case M.Z.UP:case M.Z.DOWN:{var ee=0;if(W===M.Z.UP?ee=-1:W===M.Z.DOWN?ee=1:a()&&le&&(W===M.Z.N?ee=1:W===M.Z.P&&(ee=-1)),ee!==0){var ae=J(N+ee,ee);ye(ae),pe(ae,!0)}break}case M.Z.ENTER:{var De=Q[N];De&&!De.data.disabled?je(De.value):je(void 0),y&&P.preventDefault();break}case M.Z.ESC:g(!1),y&&P.stopPropagation()}},onKeyUp:function(){},scrollTo:function(P){ye(P)}}}),Q.length===0)return i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(ne,"-empty"),onMouseDown:Ee},m);var He=Object.keys(Se).map(function(Y){return Se[Y]}),ct=function(P){return P.label},de=function(P){var W=Q[P];if(!W)return null;var le=W.data||{},ee=le.value,ae=W.group,De=(0,pt.Z)(le,!0),Ne=ct(W);return W?i.createElement("div",(0,d.Z)({"aria-label":typeof Ne=="string"&&!ae?Ne:null},De,{key:P,role:ae?"presentation":"option",id:"".concat(c,"_list_").concat(P),"aria-selected":fe(ee)}),ee):null};return i.createElement(i.Fragment,null,i.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},de(N-1),de(N),de(N+1)),i.createElement(o.Z,{itemKey:"key",ref:ge,data:Q,height:j,itemHeight:ue,fullHeight:!1,onMouseDown:Ee,onScroll:D,virtual:re},function(Y,P){var W,le=Y.group,ee=Y.groupOption,ae=Y.data,De=Y.label,Ne=Y.value,b=ae.key;if(le){var A,ce=(A=ae.title)!==null&&A!==void 0?A:O(De)?De.toString():void 0;return i.createElement("div",{className:Te()(ne,"".concat(ne,"-group")),title:ce},De!==void 0?De:b)}var Ie=ae.disabled,Oe=ae.title,tt=ae.children,Pe=ae.style,Ue=ae.className,Re=(0,Ze.Z)(ae,p),it=(0,Bn.Z)(Re,He),Qe=fe(Ne),nt="".concat(ne,"-option"),Zt=Te()(ne,nt,Ue,(W={},(0,V.Z)(W,"".concat(nt,"-grouped"),ee),(0,V.Z)(W,"".concat(nt,"-active"),N===P&&!Ie),(0,V.Z)(W,"".concat(nt,"-disabled"),Ie),(0,V.Z)(W,"".concat(nt,"-selected"),Qe),W)),Mt=ct(Y),ht=!$||typeof $=="function"||Qe,st=typeof Mt=="number"?Mt:Mt||Ne,gt=O(st)?st.toString():void 0;return Oe!==void 0&&(gt=Oe),i.createElement("div",(0,d.Z)({},(0,pt.Z)(it),{"aria-selected":Qe,className:Zt,title:gt,onMouseMove:function(){N===P||Ie||pe(P)},onClick:function(){Ie||je(Ne)},style:Pe}),i.createElement("div",{className:"".concat(nt,"-content")},st),i.isValidElement($)||Qe,ht&&i.createElement(et,{className:"".concat(ne,"-option-state"),customizeIcon:$,customizeIconProps:{isSelected:Qe}},Qe?"\u2713":null))}))},w=i.forwardRef(s);w.displayName="OptionList";var L=w;function K(n){var t=n.mode,u=n.options,l=n.children,v=n.backfill,c=n.allowClear,y=n.placeholder,I=n.getInputElement,E=n.showSearch,R=n.onSearch,g=n.defaultOpen,m=n.autoFocus,D=n.labelInValue,C=n.value,Z=n.inputValue,oe=n.optionLabelProp,X=isMultiple(t),B=E!==void 0?E:X||t==="combobox",$=u||convertChildrenToData(l);if(warning(t!=="tags"||$.every(function(j){return!j.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var ie=$.some(function(j){return j.options?j.options.some(function(ue){return typeof("value"in ue?ue.value:ue.key)=="number"}):typeof("value"in j?j.value:j.key)=="number"});warning(!ie,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(t!=="combobox"||!oe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(t==="combobox"||!v,"`backfill` only works with `combobox` mode."),warning(t==="combobox"||!I,"`getInputElement` only work with `combobox` mode."),noteOnce(t!=="combobox"||!I||!c||!y,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),R&&!B&&t!=="combobox"&&t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!g||m,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),C!=null){var Se=toArray(C);warning(!D||Se.every(function(j){return _typeof(j)==="object"&&("key"in j||"value"in j)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!X||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(l){var re=null;toNodeArray(l).some(function(j){if(!React.isValidElement(j)||!j.type)return!1;var ue=j.type;if(ue.isSelectOption)return!1;if(ue.isSelectOptGroup){var ne=toNodeArray(j.props.children).every(function(Q){return!React.isValidElement(Q)||!j.type||Q.type.isSelectOption?!0:(re=Q.type,!1)});return!ne}return re=ue,!0}),re&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),warning(Z===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function F(n,t){if(n){var u=function l(v){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y2&&arguments[2]!==void 0?arguments[2]:{},z=x.source,Me=z===void 0?"keyboard":z;$n(T),y&&l==="combobox"&&_!==null&&Me==="keyboard"&&Qt(String(_))},[y,l]),jt=function(T,x){var z=function(){var St,Rt=it(T);return[N?{label:Rt==null?void 0:Rt[de.label],value:T,key:(St=Rt==null?void 0:Rt.key)!==null&&St!==void 0?St:T}:T,_e(Rt)]};if(x&&C){var Me=z(),xe=(0,S.Z)(Me,2),Lt=xe[0],bt=xe[1];C(Lt,bt)}else if(!x&&Z){var Wt=z(),We=(0,S.Z)(Wt,2),Ot=We[0],Dn=We[1];Z(Ot,Dn)}},Jt=wn(function(_,T){var x,z=je?T.selected:!0;z?x=je?[].concat((0,se.Z)(Re),[_]):[_]:x=Re.filter(function(Me){return Me.value!==_}),kt(x),jt(_,z),l==="combobox"?Qt(""):(!en||D)&&(le(""),Qt(""))}),Ke=function(T,x){kt(T),(x.type==="remove"||x.type==="clear")&&x.values.forEach(function(z){jt(z.value,!1)})},Rn=function(T,x){if(le(T),Qt(null),x.source==="submit"){var z=(T||"").trim();if(z){var Me=Array.from(new Set([].concat((0,se.Z)(nt),[z])));kt(Me),jt(z,!0),le("")}return}x.source!=="blur"&&(l==="combobox"&&kt(T),g==null||g(T))},Tt=function(T){var x=T;l!=="tags"&&(x=T.map(function(Me){var xe=De.get(Me);return xe==null?void 0:xe.value}).filter(function(Me){return Me!==void 0}));var z=Array.from(new Set([].concat((0,se.Z)(nt),(0,se.Z)(x))));kt(z),z.forEach(function(Me){jt(Me,!0)})},dt=i.useMemo(function(){var _=Q!==!1&&X!==!1;return(0,U.Z)((0,U.Z)({},ee),{},{flattenOptions:lt,onActiveValue:cn,defaultActiveFirstOption:On,onSelect:Jt,menuItemSelectedIcon:ne,rawValues:nt,fieldNames:de,virtual:_,listHeight:Ee,listItemHeight:J,childrenAsData:He})},[ee,lt,cn,On,Jt,ne,nt,de,Q,X,Ee,J,He]);return i.createElement(f.Provider,{value:dt},i.createElement(nn,(0,d.Z)({},pe,{id:fe,prefixCls:c,ref:t,omitDomProps:Ce,mode:l,displayValues:Qe,onDisplayValuesChange:Ke,searchValue:W,onSearch:Rn,onSearchSplit:Tt,dropdownMatchSelectWidth:X,OptionList:L,emptyOptions:!lt.length,activeValue:ln,activeDescendantId:"".concat(fe,"_list_").concat(yt)})))}),ut=Xe;ut.Option=Mn,ut.OptGroup=In;var It=ut,Je=It},64217:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Ae}});var d=h(28991),se=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,V=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,U="".concat(se," ").concat(V).split(/[\s\n]+/),S="aria-",Ze="data-";function we(he,i){return he.indexOf(i)===0}function Ae(he){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe;i===!1?Fe={aria:!0,data:!0,attr:!0}:i===!0?Fe={aria:!0}:Fe=(0,d.Z)({},i);var Te={};return Object.keys(he).forEach(function(M){(Fe.aria&&(M==="role"||we(M,S))||Fe.data&&we(M,Ze)||Fe.attr&&U.includes(M))&&(Te[M]=he[M])}),Te}},7606:function(_t,Ye,h){"use strict";h.d(Ye,{Z:function(){return Bn}});var d=h(67294),se=h(94184),V=h.n(se),U=h(48717);function S(e,o){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),a.push.apply(a,r)}return a}function Ze(e){for(var o=1;ow},r}return mt(a,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(f){f.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var f=this.state,p=f.dragging,O=f.visible,s=this.props.prefixCls,w=this.getSpinHeight(),L=this.getTop(),K=this.showScroll(),F=K&&O;return d.createElement("div",{ref:this.scrollbarRef,className:V()("".concat(s,"-scrollbar"),Te({},"".concat(s,"-scrollbar-show"),K)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:F?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},d.createElement("div",{ref:this.thumbRef,className:V()("".concat(s,"-scrollbar-thumb"),Te({},"".concat(s,"-scrollbar-thumb-moving"),p)),style:{width:"100%",height:w,top:L,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),a}(d.Component);function Ft(e){var o=e.children,a=e.setRef,r=d.useCallback(function(f){a(f)},[]);return d.cloneElement(o,{ref:r})}function at(e,o,a,r,f,p){var O=p.getKey;return e.slice(o,a+1).map(function(s,w){var L=o+w,K=f(s,L,{}),F=O(s);return d.createElement(Ft,{key:F,setRef:function(me){return r(s,me)}},K)})}var Ht=h(34203);function pt(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function Ut(e,o){for(var a=0;ae.length)&&(o=e.length);for(var a=0,r=new Array(o);am&&(n="bottom")}}R!==null&&R!==e.current.scrollTop&&O(R)}w.current=(0,i.Z)(function(){Je&&p(),ze(Xe-1,n)})}};Ce(3)}}}function Gn(e,o,a,r){var f=a-e,p=o-a,O=Math.min(f,p)*2;if(r<=O){var s=Math.floor(r/2);return r%2?a+s+1:a-s}return f>p?a-(r-p):a+(r-f)}function mn(e,o,a){var r=e.length,f=o.length,p,O;if(r===0&&f===0)return null;re.length)&&(o=e.length);for(var a=0,r=new Array(o);a1&&arguments[1]!==void 0?arguments[1]:!1,w=O<0&&p.current.top||O>0&&p.current.bottom;return s&&w?(clearTimeout(r.current),a.current=!1):(!w||a.current)&&f(),!a.current&&w}};function bn(e,o,a,r){var f=(0,d.useRef)(0),p=(0,d.useRef)(null),O=(0,d.useRef)(null),s=(0,d.useRef)(!1),w=yn(o,a);function L(F){if(!!e){i.Z.cancel(p.current);var ve=F.deltaY;f.current+=ve,O.current=ve,!w(ve)&&(Vn||F.preventDefault(),p.current=(0,i.Z)(function(){var me=s.current?10:1;r(f.current*me),f.current=0}))}}function K(F){!e||(s.current=F.detail===O.current)}return[L,K]}var Gt=h(8410),Fn=14/15;function Hn(e,o,a){var r=(0,d.useRef)(!1),f=(0,d.useRef)(0),p=(0,d.useRef)(null),O=(0,d.useRef)(null),s,w=function(ve){if(r.current){var me=Math.ceil(ve.touches[0].pageY),Ce=f.current-me;f.current=me,a(Ce)&&ve.preventDefault(),clearInterval(O.current),O.current=setInterval(function(){Ce*=Fn,(!a(Ce,!0)||Math.abs(Ce)<=.1)&&clearInterval(O.current)},16)}},L=function(){r.current=!1,s()},K=function(ve){s(),ve.touches.length===1&&!r.current&&(r.current=!0,f.current=Math.ceil(ve.touches[0].pageY),p.current=ve.target,p.current.addEventListener("touchmove",w),p.current.addEventListener("touchend",L))};s=function(){p.current&&(p.current.removeEventListener("touchmove",w),p.current.removeEventListener("touchend",L))},(0,Gt.Z)(function(){return e&&o.current.addEventListener("touchstart",K),function(){var F;(F=o.current)===null||F===void 0||F.removeEventListener("touchstart",K),s(),clearInterval(O.current)}},[e])}var en=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function tn(){return tn=Object.assign||function(e){for(var o=1;oe.length)&&(o=e.length);for(var a=0,r=new Array(o);a=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function Un(e,o){if(e==null)return{};var a={},r=Object.keys(e),f,p;for(p=0;p=0)&&(a[f]=e[f]);return a}var wn=[],Cn={overflowY:"auto",overflowAnchor:"none"};function In(e,o){var a=e.prefixCls,r=a===void 0?"rc-virtual-list":a,f=e.className,p=e.height,O=e.itemHeight,s=e.fullHeight,w=s===void 0?!0:s,L=e.style,K=e.data,F=e.children,ve=e.itemKey,me=e.virtual,Ce=e.component,ze=Ce===void 0?"div":Ce,Xe=e.onScroll,ut=e.onVisibleChange,It=En(e,en),Je=!!(me!==!1&&p&&O),n=Je&&K&&O*K.length>p,t=(0,d.useState)(0),u=Kt(t,2),l=u[0],v=u[1],c=(0,d.useState)(!1),y=Kt(c,2),I=y[0],E=y[1],R=V()(r,f),g=K||wn,m=(0,d.useRef)(),D=(0,d.useRef)(),C=(0,d.useRef)(),Z=d.useCallback(function(b){return typeof ve=="function"?ve(b):b==null?void 0:b[ve]},[ve]),oe={getKey:Z};function X(b){v(function(A){var ce;typeof b=="function"?ce=b(A):ce=b;var Ie=fe(ce);return m.current.scrollTop=Ie,Ie})}var B=(0,d.useRef)({start:0,end:g.length}),$=(0,d.useRef)(),ie=An(g,Z),Se=Kt(ie,1),re=Se[0];$.current=re;var j=vn(Z,null,null),ue=Kt(j,4),ne=ue[0],Q=ue[1],ge=ue[2],Ee=ue[3],ye=d.useMemo(function(){if(!Je)return{scrollHeight:void 0,start:0,end:g.length-1,offset:void 0};if(!n){var b;return{scrollHeight:((b=D.current)===null||b===void 0?void 0:b.offsetHeight)||0,start:0,end:g.length-1,offset:void 0}}for(var A=0,ce,Ie,Oe,tt=g.length,Pe=0;Pe=l&&ce===void 0&&(ce=Pe,Ie=A),Qe>l+p&&Oe===void 0&&(Oe=Pe),A=Qe}return ce===void 0&&(ce=0,Ie=0),Oe===void 0&&(Oe=g.length-1),Oe=Math.min(Oe+1,g.length),{scrollHeight:A,start:ce,end:Oe,offset:Ie}},[n,Je,l,g,Ee,p]),J=ye.scrollHeight,be=ye.start,G=ye.end,N=ye.offset;B.current.start=be,B.current.end=G;var q=J-p,pe=(0,d.useRef)(q);pe.current=q;function fe(b){var A=b;return Number.isNaN(pe.current)||(A=Math.min(A,pe.current)),A=Math.max(A,0),A}var je=l<=0,He=l>=q,ct=yn(je,He);function de(b){var A=b;X(A)}function Y(b){var A=b.currentTarget.scrollTop;A!==l&&X(A),Xe==null||Xe(b)}var P=bn(Je,je,He,function(b){X(function(A){var ce=A+b;return ce})}),W=Kt(P,2),le=W[0],ee=W[1];Hn(Je,m,function(b,A){return ct(b,A)?!1:(le({preventDefault:function(){},deltaY:b}),!0)}),(0,Gt.Z)(function(){function b(A){Je&&A.preventDefault()}return m.current.addEventListener("wheel",le),m.current.addEventListener("DOMMouseScroll",ee),m.current.addEventListener("MozMousePixelScroll",b),function(){m.current&&(m.current.removeEventListener("wheel",le),m.current.removeEventListener("DOMMouseScroll",ee),m.current.removeEventListener("MozMousePixelScroll",b))}},[Je]);var ae=Zn(m,g,ge,O,Z,Q,X,function(){var b;(b=C.current)===null||b===void 0||b.delayHidden()});d.useImperativeHandle(o,function(){return{scrollTo:ae}}),(0,Gt.Z)(function(){if(ut){var b=g.slice(be,G+1);ut(b,g)}},[be,G,g]);var De=at(g,be,G,ne,F,oe),Ne=null;return p&&(Ne=rn(Yt({},w?"height":"maxHeight",p),Cn),Je&&(Ne.overflowY="hidden",I&&(Ne.pointerEvents="none"))),d.createElement("div",tn({style:rn(rn({},L),{},{position:"relative"}),className:R},It),d.createElement(ze,{className:"".concat(r,"-holder"),style:Ne,ref:m,onScroll:Y},d.createElement(he,{prefixCls:r,height:J,offset:N,onInnerResize:Q,ref:D},De)),Je&&d.createElement(Ct,{ref:C,prefixCls:r,scrollTop:l,height:p,scrollHeight:J,count:g.length,onScroll:de,onStartMove:function(){E(!0)},onStopMove:function(){E(!1)}}))}var on=d.forwardRef(In);on.displayName="List";var Mn=on,Bn=Mn}}]);