You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
63 KiB

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