PageSourceSearch

https://techgrocery.vn/_next/static/chunks/966-ddd73ae18d948078.js

js techgrocery.vn collected 2026-10-08 20:57:15 UTC 68,545 bytes, 25 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{8745:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(1770),r=n(7294),i=n(3124),a=n(8720);function l(e,t,n){return function(l){let{prefixCls:c,style:u}=l,s=r.useRef(null),[d,p]=r.useState(0),[f,m]=r.useState(0),[v,h]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:g}=r.useContext(i.E_),b=g(t||"select",c);return r.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var o;let r=n?`.${n(b)}`:`.${b}-dropdown`,i=null===(o=s.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]),r.createElement(a.ZP,{theme:{token:{motionDurationFast:"0.01s",motionDurationMid:"0.01s",motionDurationSlow:"0.01s"}}},r.createElement("div",{ref:s,style:{paddingBottom:d,position:"relative",width:"fit-content",minWidth:f}},r.createElement(e,Object.assign({},l,{style:Object.assign(Object.assign({},u),{margin:0}),open:v,visible:v,getPopupContainer:()=>s.current}))))}}},6966:function(e,t,n){n.d(t,{Z:function(){return tb}});var o=n(4184),r=n.n(o),i=n(7462),a=n(4902),l=n(4942),c=n(1413),u=n(7685),s=n(91),d=n(1002),p=n(1770),f=n(334),m=n(7294),v=n(8410),h=n(1131),g=n(5105),b=n(2550),w=m.createContext(null);function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=m.useRef(null),n=m.useRef(null);return m.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var S=n(4217),y=n(4243),x=function(e){var t,n=e.className,o=e.customizeIcon,i=e.customizeIconProps,a=e.onMouseDown,l=e.onClick,c=e.children;return t="function"==typeof o?o(i):o,m.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==t?t:m.createElement("span",{className:r()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},c))},Z=m.forwardRef(function(e,t){var n,o,i=e.prefixCls,a=e.id,l=e.inputElement,u=e.disabled,s=e.tabIndex,d=e.autoFocus,p=e.autoComplete,v=e.editable,h=e.activeDescendantId,g=e.value,w=e.maxLength,E=e.onKeyDown,S=e.onMouseDown,y=e.onChange,x=e.onPaste,Z=e.onCompositionStart,C=e.onCompositionEnd,M=e.open,I=e.attrs,$=l||m.createElement("input",null),R=$,O=R.ref,D=R.props,T=D.onKeyDown,N=D.onChange,H=D.onMouseDown,P=D.onCompositionStart,k=D.onCompositionEnd,z=D.style;return(0,f.Kp)(!("maxLength"in $.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),$=m.cloneElement($,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},D),{},{id:a,ref:(0,b.sQ)(t,O),disabled:u,tabIndex:s,autoComplete:p||"off",autoFocus:d,className:r()("".concat(i,"-selection-search-input"),null===(n=$)||void 0===n?void 0:null===(o=n.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":h},I),{},{value:v?g:"",maxLength:w,readOnly:!v,unselectable:v?null:"on",style:(0,c.Z)((0,c.Z)({},z),{},{opacity:v?null:0}),onKeyDown:function(e){E(e),T&&T(e)},onMouseDown:function(e){S(e),H&&H(e)},onChange:function(e){y(e),N&&N(e)},onCompositionStart:function(e){Z(e),P&&P(e)},onCompositionEnd:function(e){C(e),k&&k(e)},onPaste:x}))});function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}Z.displayName="Input";var M="undefined"!=typeof window&&window.document&&window.document.documentElement;function I(e){return["string","number"].includes((0,d.Z)(e))}function $(e){var t=void 0;return e&&(I(e.title)?t=e.title.toString():I(e.label)&&(t=e.label.toString())),t}function R(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var O=function(e){e.preventDefault(),e.stopPropagation()},D=function(e){var t,n,o=e.id,i=e.prefixCls,a=e.values,c=e.open,s=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,v=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,w=e.autoComplete,E=e.activeDescendantId,C=e.tabIndex,I=e.removeIcon,D=e.maxTagCount,T=e.maxTagTextLength,N=e.maxTagPlaceholder,H=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,P=e.tagRender,k=e.onToggleOpen,z=e.onRemove,L=e.onInputChange,V=e.onInputPaste,F=e.onInputKeyDown,A=e.onInputMouseDown,_=e.onInputCompositionStart,j=e.onInputCompositionEnd,W=m.useRef(null),B=(0,m.useState)(0),K=(0,u.Z)(B,2),U=K[0],Y=K[1],G=(0,m.useState)(!1),X=(0,u.Z)(G,2),Q=X[0],q=X[1],J="".concat(i,"-selection"),ee=c||"multiple"===h&&!1===d||"tags"===h?s:"";function et(e,t,n,o,i){return m.createElement("span",{className:r()("".concat(J,"-item"),(0,l.Z)({},"".concat(J,"-item-disabled"),n)),title:$(e)},m.createElement("span",{className:"".concat(J,"-item-content")},t),o&&m.createElement(x,{className:"".concat(J,"-item-remove"),onMouseDown:O,onClick:i,customizeIcon:I},"\xd7"))}t=function(){Y(W.current.scrollWidth)},n=[ee],M?m.useLayoutEffect(t,n):m.useEffect(t,n);var en=m.createElement("div",{className:"".concat(J,"-search"),style:{width:U},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},m.createElement(Z,{ref:p,open:c,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:b,autoComplete:w,editable:"tags"===h||"multiple"===h&&!1===d||g&&(c||Q),activeDescendantId:E,value:ee,onKeyDown:F,onMouseDown:A,onChange:L,onPaste:V,onCompositionStart:_,onCompositionEnd:j,tabIndex:C,attrs:(0,S.Z)(e,!0)}),m.createElement("span",{ref:W,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),eo=m.createElement(y.Z,{prefixCls:"".concat(J,"-overflow"),data:a,renderItem:function(e){var t,n=e.disabled,o=e.label,r=e.value,i=!v&&!n,a=o;if("number"==typeof T&&("string"==typeof o||"number"==typeof o)){var l=String(a);l.length>T&&(a="".concat(l.slice(0,T),"..."))}var u=function(t){t&&t.stopPropagation(),z(e)};return"function"==typeof P?(t=a,m.createElement("span",{onMouseDown:function(e){O(e),k(!c)}},P({label:t,value:r,disabled:n,closable:i,onClose:u}))):et(e,a,n,i,u)},renderRest:function(e){var t="function"==typeof H?H(e):H;return et({title:t},t,!1)},suffix:en,itemKey:R,maxCount:D});return m.createElement(m.Fragment,null,eo,!a.length&&!ee&&m.createElement("span",{className:"".concat(J,"-placeholder")},f))},T=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,d=e.open,p=e.values,f=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,w=e.maxLength,E=e.onInputKeyDown,y=e.onInputMouseDown,x=e.onInputChange,C=e.onInputPaste,M=e.onInputCompositionStart,I=e.onInputCompositionEnd,R=m.useState(!1),O=(0,u.Z)(R,2),D=O[0],T=O[1],N="combobox"===s,H=p[0],P=g||"";N&&b&&!D&&(P=b),m.useEffect(function(){N&&T(!1)},[N,b]);
1var k=("combobox"===s||!!d||!!h)&&!!P,z=$(H);return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(Z,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:N||h,activeDescendantId:c,value:P,onKeyDown:E,onMouseDown:y,onChange:function(e){T(!0),x(e)},onPaste:C,onCompositionStart:M,onCompositionEnd:I,tabIndex:v,attrs:(0,S.Z)(e,!0),maxLength:N?w:void 0})),!N&&H&&!k&&m.createElement("span",{className:"".concat(n,"-selection-item"),title:z},H.label),H?null:m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:k?{visibility:"hidden"}:void 0},f))},N=m.forwardRef(function(e,t){var n=(0,m.useRef)(null),o=(0,m.useRef)(!1),r=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,d=e.autoClearSearchValue,p=e.onSearch,f=e.onSearchSubmit,v=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;m.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var w=E(0),S=(0,u.Z)(w,2),y=S[0],x=S[1],Z=(0,m.useRef)(null),C=function(e){!1!==p(e,!0,o.current)&&v(!0)},M={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===g.Z.UP||t===g.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==g.Z.ENTER||"tags"!==l||o.current||a||null==f||f(e.target.value),[g.Z.ESC,g.Z.SHIFT,g.Z.BACKSPACE,g.Z.TAB,g.Z.WIN_KEY,g.Z.ALT,g.Z.META,g.Z.WIN_KEY_RIGHT,g.Z.CTRL,g.Z.SEMICOLON,g.Z.EQUALS,g.Z.CAPS_LOCK,g.Z.CONTEXT_MENU,g.Z.F1,g.Z.F2,g.Z.F3,g.Z.F4,g.Z.F5,g.Z.F6,g.Z.F7,g.Z.F8,g.Z.F9,g.Z.F10,g.Z.F11,g.Z.F12].includes(t)||v(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(s&&Z.current&&/[\r\n]/.test(Z.current)){var n=Z.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,Z.current)}Z.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");Z.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&C(e.target.value)}},I="multiple"===l||"tags"===l?m.createElement(D,(0,i.Z)({},e,M)):m.createElement(T,(0,i.Z)({},e,M));return m.createElement("div",{ref:b,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==d&&p("",!0,!1),v())}},I)});N.displayName="Selector";var H=n(1263),P=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],k=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},z=m.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),a=e.children,u=e.popupElement,d=e.containerWidth,p=e.animation,f=e.transitionName,v=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,b=e.placement,w=e.dropdownMatchSelectWidth,E=e.dropdownRender,S=e.dropdownAlign,y=e.getPopupContainer,x=e.empty,Z=e.getTriggerDOMNode,C=e.onPopupVisibleChange,M=e.onPopupMouseEnter,I=(0,s.Z)(e,P),$="".concat(n,"-dropdown"),R=u;E&&(R=E(u));var O=m.useMemo(function(){return k(w)},[w]),D=p?"".concat($,"-").concat(p):f,T=m.useRef(null);m.useImperativeHandle(t,function(){return{getPopupElement:function(){return T.current}}});var N=(0,c.Z)({minWidth:d},v);return"number"==typeof w?N.width=w:w&&(N.width=d),m.createElement(H.Z,(0,i.Z)({},I,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:b||("rtl"===(void 0===g?"ltr":g)?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:$,popupTransitionName:D,popup:m.createElement("div",{ref:T,onMouseEnter:M},R),popupAlign:S,popupVisible:o,getPopupContainer:y,popupClassName:r()(h,(0,l.Z)({},"".concat($,"-empty"),x)),popupStyle:N,getTriggerDOMNode:Z,onPopupVisibleChange:C}),a)});z.displayName="SelectTrigger";var L=n(4506);function V(e,t){var n,o=e.key;return("value"in e&&(n=e.value),null!=o)?o:void 0!==n?n:"rc-index-key-".concat(t)}function F(e,t){var n=e||{};return{label:n.label||(t?"children":"label"),value:n.value||"value",options:n.options||"options"}}function A(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var _=["id","prefixCls","className","showSearch","tagRender","direction","om
1itDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],j=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function W(e){return"tags"===e||"multiple"===e}var B=m.forwardRef(function(e,t){var n,o,f,S,y,Z,C,M,I=e.id,$=e.prefixCls,R=e.className,O=e.showSearch,D=e.tagRender,T=e.direction,H=e.omitDomProps,P=e.displayValues,k=e.onDisplayValuesChange,V=e.emptyOptions,F=e.notFoundContent,A=void 0===F?"Not Found":F,B=e.onClear,K=e.mode,U=e.disabled,Y=e.loading,G=e.getInputElement,X=e.getRawInputElement,Q=e.open,q=e.defaultOpen,J=e.onDropdownVisibleChange,ee=e.activeValue,et=e.onActiveValueChange,en=e.activeDescendantId,eo=e.searchValue,er=e.autoClearSearchValue,ei=e.onSearch,ea=e.onSearchSplit,el=e.tokenSeparators,ec=e.allowClear,eu=e.showArrow,es=e.inputIcon,ed=e.clearIcon,ep=e.OptionList,ef=e.animation,em=e.transitionName,ev=e.dropdownStyle,eh=e.dropdownClassName,eg=e.dropdownMatchSelectWidth,eb=e.dropdownRender,ew=e.dropdownAlign,eE=e.placement,eS=e.getPopupContainer,ey=e.showAction,ex=void 0===ey?[]:ey,eZ=e.onFocus,eC=e.onBlur,eM=e.onKeyUp,eI=e.onKeyDown,e$=e.onMouseDown,eR=(0,s.Z)(e,_),eO=W(K),eD=(void 0!==O?O:eO)||"combobox"===K,eT=(0,c.Z)({},eR);j.forEach(function(e){delete eT[e]}),null==H||H.forEach(function(e){delete eT[e]});var eN=m.useState(!1),eH=(0,u.Z)(eN,2),eP=eH[0],ek=eH[1];m.useEffect(function(){ek((0,h.Z)())},[]);var ez=m.useRef(null),eL=m.useRef(null),eV=m.useRef(null),eF=m.useRef(null),eA=m.useRef(null),e_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=m.useState(!1),n=(0,u.Z)(t,2),o=n[0],r=n[1],i=m.useRef(null),a=function(){window.clearTimeout(i.current)};return m.useEffect(function(){return a},[]),[o,function(t,n){a(),i.current=window.setTimeout(function(){r(t),n&&n()},e)},a]}(),ej=(0,u.Z)(e_,3),eW=ej[0],eB=ej[1],eK=ej[2];m.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eF.current)||void 0===e?void 0:e.focus,blur:null===(t=eF.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eA.current)||void 0===t?void 0:t.scrollTo(e)}}});var eU=m.useMemo(function(){if("combobox"!==K)return eo;var e,t=null===(e=P[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[eo,K,P]),eY="combobox"===K&&"function"==typeof G&&G()||null,eG="function"==typeof X&&X(),eX=(0,b.x1)(eL,null==eG?void 0:null===(f=eG.props)||void 0===f?void 0:f.ref),eQ=(0,p.Z)(void 0,{defaultValue:q,value:Q}),eq=(0,u.Z)(eQ,2),eJ=eq[0],e0=eq[1],e1=eJ,e2=!A&&V;(U||e2&&e1&&"combobox"===K)&&(e1=!1);var e4=!e2&&e1,e3=m.useCallback(function(e){var t=void 0!==e?e:!e1;U||(e0(t),e1!==t&&(null==J||J(t)))},[U,e1,e0,J]),e5=m.useMemo(function(){return(el||[]).some(function(e){return["\n","\r\n"].includes(e)})},[el]),e7=function(e,t,n){var o=!0,r=e;null==et||et(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,L.Z)(o),i=r[0],l=r.slice(1);if(!i)return[t];var c=t.split(i);return n=n||c.length>1,c.reduce(function(t,n){return[].concat((0,a.Z)(t),(0,a.Z)(e(n,l)))},[]).filter(function(e){return e})}(e,t);return n?o:null}(e,el);return"combobox"!==K&&i&&(r="",null==ea||ea(i),e3(!1),o=!1),ei&&eU!==r&&ei(r,{source:t?"typing":"effect"}),o};m.useEffect(function(){e1||eO||"combobox"===K||e7("",!1,!1)},[e1]),m.useEffect(function(){eJ&&U&&e0(!1),U&&eB(!1)},[U]);var e6=E(),e9=(0,u.Z)(e6,2),e8=e9[0],te=e9[1],tt=m.useRef(!1),tn=[];
1m.useEffect(function(){return function(){tn.forEach(function(e){return clearTimeout(e)}),tn.splice(0,tn.length)}},[]);var to=m.useState(null),tr=(0,u.Z)(to,2),ti=tr[0],ta=tr[1],tl=m.useState({}),tc=(0,u.Z)(tl,2)[1];(0,v.Z)(function(){if(e4){var e,t=Math.ceil(null===(e=ez.current)||void 0===e?void 0:e.offsetWidth);ti===t||Number.isNaN(t)||ta(t)}},[e4]),eG&&(y=function(e){e3(e)}),n=function(){var e;return[ez.current,null===(e=eV.current)||void 0===e?void 0:e.getPopupElement()]},(o=m.useRef(null)).current={open:e4,triggerOpen:e3,customizedTrigger:!!eG},m.useEffect(function(){function e(e){if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tu=m.useMemo(function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:A,open:e1,triggerOpen:e4,id:I,showSearch:eD,multiple:eO,toggleOpen:e3})},[e,A,e4,e1,I,eD,eO,e3]),ts=void 0!==eu?eu:Y||!eO&&"combobox"!==K;ts&&(Z=m.createElement(x,{className:r()("".concat($,"-arrow"),(0,l.Z)({},"".concat($,"-arrow-loading"),Y)),customizeIcon:es,customizeIconProps:{loading:Y,searchValue:eU,open:e1,focused:eW,showSearch:eD}})),!U&&ec&&(P.length||eU)&&!("combobox"===K&&""===eU)&&(C=m.createElement(x,{className:"".concat($,"-clear"),onMouseDown:function(){var e;null==B||B(),null===(e=eF.current)||void 0===e||e.focus(),k([],{type:"clear",values:P}),e7("",!1,!1)},customizeIcon:ed},"\xd7"));var td=m.createElement(ep,{ref:eA}),tp=r()($,R,(S={},(0,l.Z)(S,"".concat($,"-focused"),eW),(0,l.Z)(S,"".concat($,"-multiple"),eO),(0,l.Z)(S,"".concat($,"-single"),!eO),(0,l.Z)(S,"".concat($,"-allow-clear"),ec),(0,l.Z)(S,"".concat($,"-show-arrow"),ts),(0,l.Z)(S,"".concat($,"-disabled"),U),(0,l.Z)(S,"".concat($,"-loading"),Y),(0,l.Z)(S,"".concat($,"-open"),e1),(0,l.Z)(S,"".concat($,"-customize-input"),eY),(0,l.Z)(S,"".concat($,"-show-search"),eD),S)),tf=m.createElement(z,{ref:eV,disabled:U,prefixCls:$,visible:e4,popupElement:td,containerWidth:ti,animation:ef,transitionName:em,dropdownStyle:ev,dropdownClassName:eh,direction:T,dropdownMatchSelectWidth:eg,dropdownRender:eb,dropdownAlign:ew,placement:eE,getPopupContainer:eS,empty:V,getTriggerDOMNode:function(){return eL.current},onPopupVisibleChange:y,onPopupMouseEnter:function(){tc({})}},eG?m.cloneElement(eG,{ref:eX}):m.createElement(N,(0,i.Z)({},e,{domRef:eL,prefixCls:$,inputElement:eY,ref:eF,id:I,showSearch:eD,autoClearSearchValue:er,mode:K,activeDescendantId:en,tagRender:D,values:P,open:e1,onToggleOpen:e3,activeValue:ee,searchValue:eU,onSearch:e7,onSearchSubmit:function(e){e&&e.trim()&&ei(e,{source:"submit"})},onRemove:function(e){k(P.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:e5})));return M=eG?tf:m.createElement("div",(0,i.Z)({className:tp},eT,{ref:ez,onMouseDown:function(e){var t,n=e.target,o=null===(t=eV.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=tn.indexOf(r);-1!==t&&tn.splice(t,1),eK(),eP||o.contains(document.activeElement)||null===(e=eF.current)||void 0===e||e.focus()});tn.push(r)}for(var i=arguments.length,a=Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==e$||e$.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=e8(),o=e.which;if(o!==g.Z.ENTER||("combobox"!==K&&e.preventDefault(),e1||e3(!0)),te(!!eU),o===g.Z.BACKSPACE&&!n&&eO&&!eU&&P.length){for(var r=(0,a.Z)(P),i=null,l=r.length-1;l>=0;l-=1){var c=r[l];if(!c.disabled){r.splice(l,1),i=c;break}}i&&k(r,{type:"remove",values:[i]})}for(var u=arguments.length,s=Array(u>1?u-1:0),d=1;d<u;d++)s[d-1]=arguments[d];e1&&eA.current&&(t=eA.current).onKeyDown.apply(t,[e].concat(s)),null==eI||eI.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var t,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e1&&eA.current&&(t=eA.current).onKeyUp.apply(t,[e].concat(o)),null==eM||eM.apply(void 0,[e].concat(o))},onFocus:function(){eB(!0),!U&&(eZ&&!tt.current&&eZ.apply(void 0,arguments),ex.includes("focus")&&e3(!0)),tt.current=!0},onBlur:function(){eB(!1,function(){tt.current=!1,e3(!1)}),!U&&(eU&&("tags"===K?ei(eU,{source:"submit"}):"multiple"===K&&ei("",{source:"blur"})),eC&&eC.apply(void 0,arguments))}}),eW&&!e1&&m.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}
1,"aria-live":"polite"},"".concat(P.map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,d.Z)(t))?t:n}).join(", "))),tf,Z,C),m.createElement(w.Provider,{value:tu},M)}),K=function(e,t){var n=m.useRef({values:new Map,options:new Map});return[m.useMemo(function(){var o=n.current,r=o.values,i=o.options,a=e.map(function(e){if(void 0===e.label){var t;return(0,c.Z)((0,c.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label})}return e}),l=new Map,u=new Map;return a.forEach(function(e){l.set(e.value,e),u.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=l,n.current.options=u,a},[e,t]),m.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function U(e,t){return C(e).join("").toUpperCase().includes(t)}var Y=n(8924),G=0,X=(0,Y.Z)(),Q=n(344),q=["children","value"],J=["children"];function ee(e){var t=m.useRef();return t.current=e,m.useCallback(function(){return t.current.apply(t,arguments)},[])}var et=function(){return null};et.isSelectOptGroup=!0;var en=function(){return null};en.isSelectOption=!0;var eo=n(6982),er=n(8423),ei=n(8555),ea=m.forwardRef(function(e,t){var n=e.height,o=e.offset,a=e.children,u=e.prefixCls,s=e.onInnerResize,d=e.innerProps,p={},f={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},f=(0,c.Z)((0,c.Z)({},f),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),m.createElement("div",{style:p},m.createElement(ei.Z,{onResize:function(e){e.offsetHeight&&s&&s()}},m.createElement("div",(0,i.Z)({style:f,className:r()((0,l.Z)({},"".concat(u,"-holder-inner"),u)),ref:t},d),a)))});ea.displayName="Filler";var el=n(5671),ec=n(3144),eu=n(2531),es=n(3568),ed=n(5164);function ep(e){return"touches"in e?e.touches[0].pageY:e.pageY}var ef=function(e){(0,eu.Z)(n,e);var t=(0,es.Z)(n);function n(){var e;(0,el.Z)(this,n);for(var o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).moveRaf=null,e.scrollbarRef=m.createRef(),e.thumbRef=m.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout(function(){e.setState({visible:!1})},2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){var t;window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),null===(t=e.scrollbarRef.current)||void 0===t||t.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current&&(e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp)),ed.Z.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:ep(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,o=n.dragging,r=n.pageY,i=n.startTop,a=e.props.onScroll;if(ed.Z.cancel(e.moveRaf),o){var l=ep(t)-r,c=e.getEnableScrollRange(),u=e.getEnableHeightRange(),s=Math.ceil((u?(i+l)/u:0)*c);e.moveRaf=(0,ed.Z)(function(){a(s)})}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,o=n/t.count*10;return Math.floor(o=Math.min(o=Math.max(o,20),n/2))},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),o=e.getEnableHeightRange();return 0===t||0===n?0:t/n*o},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}
1return(0,ec.Z)(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),a=this.getTop(),c=this.showScroll();return m.createElement("div",{ref:this.scrollbarRef,className:r()("".concat(o,"-scrollbar"),(0,l.Z)({},"".concat(o,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c&&n?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},m.createElement("div",{ref:this.thumbRef,className:r()("".concat(o,"-scrollbar-thumb"),(0,l.Z)({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(m.Component);function em(e){var t=e.children,n=e.setRef,o=m.useCallback(function(e){n(e)},[]);return m.cloneElement(t,{ref:o})}var ev=n(4203),eh=function(){function e(){(0,el.Z)(this,e),this.maps=void 0,this.maps=Object.create(null)}return(0,ec.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eg=("undefined"==typeof navigator?"undefined":(0,d.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),eb=function(e,t){var n=(0,m.useRef)(!1),o=(0,m.useRef)(null),r=(0,m.useRef)({top:e,bottom:t});return r.current.top=e,r.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&r.current.top||e>0&&r.current.bottom;return t&&i?(clearTimeout(o.current),n.current=!1):(!i||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&i}},ew=14/15,eE=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],eS=[],ey={overflowY:"auto",overflowAnchor:"none"},ex=m.forwardRef(function(e,t){var n,o,a,p,f,h,g,b,w,E,S,y,x,Z,C,M,I,$,R,O,D,T,N,H,P,k,z=e.prefixCls,L=void 0===z?"rc-virtual-list":z,V=e.className,F=e.height,A=e.itemHeight,_=e.fullHeight,j=e.style,W=e.data,B=e.children,K=e.itemKey,U=e.virtual,Y=e.component,G=e.onScroll,X=e.onVisibleChange,Q=e.innerProps,q=(0,s.Z)(e,eE),J=!!(!1!==U&&F&&A),ee=J&&W&&A*W.length>F,et=(0,m.useState)(0),en=(0,u.Z)(et,2),eo=en[0],er=en[1],ei=(0,m.useState)(!1),el=(0,u.Z)(ei,2),ec=el[0],eu=el[1],es=r()(L,V),ep=W||eS,ex=(0,m.useRef)(),eZ=(0,m.useRef)(),eC=(0,m.useRef)(),eM=m.useCallback(function(e){return"function"==typeof K?K(e):null==e?void 0:e[K]},[K]);function eI(e){er(function(t){var n,o=(n="function"==typeof e?e(t):e,Number.isNaN(eW.current)||(n=Math.min(n,eW.current)),n=Math.max(n,0));return ex.current.scrollTop=o,o})}var e$=(0,m.useRef)({start:0,end:ep.length}),eR=(0,m.useRef)(),eO=(o=m.useState(ep),p=(a=(0,u.Z)(o,2))[0],f=a[1],h=m.useState(null),b=(g=(0,u.Z)(h,2))[0],w=g[1],m.useEffect(function(){var e=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var u=null,s=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var p=c(o[d]);if(p!==c(r[d])){u=d,s=s||p!==c(r[d+1]);break}}return null===u?null:{index:u,multiple:s}}(p||[],ep||[],eM);(null==e?void 0:e.index)!==void 0&&(null==n||n(e.index),w(ep[e.index])),f(ep)},[ep]),[b]),eD=(0,u.Z)(eO,1)[0];eR.current=eD;var eT=function(e,t,n){var o=m.useState(0),r=(0,u.Z)(o,2),i=r[0],a=r[1],l=(0,m.useRef)(new Map),c=(0,m.useRef)(new eh),s=(0,m.useRef)();function d(){ed.Z.cancel(s.current)}function p(){d(),s.current=(0,ed.Z)(function(){l.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,ev.Z)(e),o=n.offsetHeight;c.current.get(t)!==o&&c.current.set(t,n.offsetHeight)}}),a(function(e){return e+1})})}return(0,m.useEffect)(function(){return d},[]),[function(o,r){var i=e(o),a=l.current.get(i);r?(l.current.set(i,r),p()):l.current.delete(i),!a!=!r&&(r?null==t||t(o):null==n||n(o))},p,c.current,i]}(eM,null,null),eN=(0,u.Z)(eT,4),eH=eN[0],eP=eN[1],ek=eN[2],ez=eN[3],eL=m.useMemo(function(){if(!J)return{scrollHeight:void 0,start:0,end:ep.length-1,offset:void 0};if(!ee)return{scrollHeight:(null===(e=eZ.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ep.length-1,offset:void 0};for(var e,t,n,o,r=0,i=ep.length,a=0;a<i;a+=1){var l=eM(ep[a]),c=ek.get(l),u=r+(void 0===c?A:c);u>=eo&&void 0===t&&(t=a,n=r),u>eo+F&&void 0===o&&(o=a),r=u}return void 0===t&&(t=0,n=0,o=Math.ceil(F/A)),void 0===o&&(o=ep.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,ep.length),offset:n}},[ee,J,eo,ep,ez,F]),eV=eL.scrollHeight,eF=eL.start,eA=eL.end,e_=eL.offset;e$.current.start=eF,e$.current.end=eA;var ej=eV-F,eW=(0,m.useRef)(ej);eW.current=ej;var eB=eo<=0,eK=eo>=ej,eU=eb(eB,eK),eY=(E=function(e){eI(function(t){return t+e})},S=(0,m.useRef)(0),y=(0,m.useRef)(null),x=(0,m.useRef)(null),Z=(0,m.useRef)(!1),C=eb(eB,eK),[function(e){if(J){ed.Z.cancel(y.current);var t=e.deltaY;S.current+=t,x.current=t,C(t)||(eg||e.preventDefault(),y.current=(0,ed.Z)(function(){var e=Z.current?10:1;E(S.current*e),S.current=0}))}},function(e){J&&(Z.current=e.detail===x.current)}]),eG=(0,u.Z)(eY,2),eX=eG[0],eQ=eG[1];M=function(e,t){return!eU(e,t)&&(eX({preventDefault:function(){},deltaY:e}),!0)},$=(0,m.useRef)(!1),R=(0,m.useRef)(0),O=(0,m.useRef)(null),D=(0,m.useRef)(null),T=function(e){if($.current){var t=Math.ceil(e.touches[0].pageY),n=R.current-t;R.current=t,M(n)&&e.preventDefault(),clearInterval(D.current),D.current=setInterval(function(){(!M(n*=ew,!0)||.1>=Math.abs(n))&&clearInterval(D.current)},16)}},N=function(){$.current=!1,I()},H=function(e){I(),1!==e.touches.length||$.current||($.current=!0,R.current=Math.ceil(e.touches[0].pageY),O.current=e.target,O.current.addEventListener("touchmove",T),O.current.addEventListener("touchend",N))},I=function(){O.current&&(O.current.removeEventListener("touchmove",T),O.current.removeEventListener("touchend",N))},(0,v.Z)(function(){return J&&ex.current.addEventListener("touchstart",H),function(){var e;null===(e=ex.current)||void 0===e||e.removeEventListener("touchstart",H),I(),clearInterval(D.current)}},[J]),(0,v.Z)(function(){function e(e){J&&e.preventDefault()}return ex.current.addEventListener("wheel",eX),ex.current.addEventListener("DOMMouseScroll",eQ),ex.current.addEventListener("MozMousePixelScroll",e),function(){ex.current&&(ex.current.removeEventListener("wheel",eX),ex.current.removeEventListener("DOMMouseScroll",eQ),ex.current.removeEventListener("MozMousePixelScroll",e))}},[J]);var eq=(P=function(){var e;null===(e=eC.current)||void 0===e||e.delayHidden()},k=m.useRef(),function(e){if(null==e){P();return}if(ed.Z.cancel(k.current),"number"==typeof e)eI(e);else if(e&&"object"===(0,d.Z)(e)){var t,n=e.align;t="index"in e?e.index:ep.findIndex(function(t){return eM(t)===e.ke
1y});var o=e.offset,r=void 0===o?0:o;!function e(o,i){if(!(o<0)&&ex.current){var a=ex.current.clientHeight,l=!1,c=i;if(a){for(var u=0,s=0,d=0,p=Math.min(ep.length,t),f=0;f<=p;f+=1){var m=eM(ep[f]);s=u;var v=ek.get(m);u=d=s+(void 0===v?A:v),f===t&&void 0===v&&(l=!0)}var h=null;switch(i||n){case"top":h=s-r;break;case"bottom":h=d-a+r;break;default:var g=ex.current.scrollTop;s<g?c="top":d>g+a&&(c="bottom")}null!==h&&h!==ex.current.scrollTop&&eI(h)}k.current=(0,ed.Z)(function(){l&&eP(),e(o-1,c)},2)}}(3)}});m.useImperativeHandle(t,function(){return{scrollTo:eq}}),(0,v.Z)(function(){X&&X(ep.slice(eF,eA+1),ep)},[eF,eA,ep]);var eJ=ep.slice(eF,eA+1).map(function(e,t){var n=B(e,eF+t,{}),o=eM(e);return m.createElement(em,{key:o,setRef:function(t){return eH(e,t)}},n)}),e0=null;return F&&(e0=(0,c.Z)((0,l.Z)({},void 0===_||_?"height":"maxHeight",F),ey),J&&(e0.overflowY="hidden",ec&&(e0.pointerEvents="none"))),m.createElement("div",(0,i.Z)({style:(0,c.Z)((0,c.Z)({},j),{},{position:"relative"}),className:es},q),m.createElement(void 0===Y?"div":Y,{className:"".concat(L,"-holder"),style:e0,ref:ex,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==eo&&eI(t),null==G||G(e)}},m.createElement(ea,{prefixCls:L,height:eV,offset:e_,onInnerResize:eP,ref:eZ,innerProps:Q},eJ)),J&&m.createElement(ef,{ref:eC,prefixCls:L,scrollTop:eo,height:F,scrollHeight:eV,count:ep.length,onScroll:function(e){eI(e)},onStartMove:function(){eu(!0)},onStopMove:function(){eu(!1)}}))});ex.displayName="List";var eZ=m.createContext(null),eC=["disabled","title","children","style","className"];function eM(e){return"string"==typeof e||"number"==typeof e}var eI=m.forwardRef(function(e,t){var n=m.useContext(w),o=n.prefixCls,c=n.id,d=n.open,p=n.multiple,f=n.mode,v=n.searchValue,h=n.toggleOpen,b=n.notFoundContent,E=n.onPopupScroll,y=m.useContext(eZ),Z=y.flattenOptions,C=y.onActiveValue,M=y.defaultActiveFirstOption,I=y.onSelect,$=y.menuItemSelectedIcon,R=y.rawValues,O=y.fieldNames,D=y.virtual,T=y.listHeight,N=y.listItemHeight,H="".concat(o,"-item"),P=(0,eo.Z)(function(){return Z},[d,Z],function(e,t){return t[0]&&e[1]!==t[1]}),k=m.useRef(null),z=function(e){e.preventDefault()},L=function(e){k.current&&k.current.scrollTo("number"==typeof e?{index:e}:e)},V=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=P[r],a=i.group,l=i.data;if(!a&&!l.disabled)return r}return -1},F=m.useState(function(){return V(0)}),A=(0,u.Z)(F,2),_=A[0],j=A[1],W=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];j(e);var n={source:t?"keyboard":"mouse"},o=P[e];if(!o){C(null,-1,n);return}C(o.value,e,n)};(0,m.useEffect)(function(){W(!1!==M?V(0):-1)},[P.length,v]);var B=m.useCallback(function(e){return R.has(e)&&"combobox"!==f},[f,(0,a.Z)(R).toString(),R.size]);(0,m.useEffect)(function(){var e,t=setTimeout(function(){if(!p&&d&&1===R.size){var e=Array.from(R)[0],t=P.findIndex(function(t){return t.data.value===e});-1!==t&&(W(t),L(t))}});return d&&(null===(e=k.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[d,v]);var K=function(e){void 0!==e&&I(e,{selected:!R.has(e)}),p||h(!1)};if(m.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case g.Z.N:case g.Z.P:case g.Z.UP:case g.Z.DOWN:var o=0;if(t===g.Z.UP?o=-1:t===g.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===g.Z.N?o=1:t===g.Z.P&&(o=-1)),0!==o){var r=V(_+o,o);L(r),W(r,!0)}break;case g.Z.ENTER:var i=P[_];i&&!i.data.disabled?K(i.value):K(void 0),d&&e.preventDefault();break;case g.Z.ESC:h(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}}),0===P.length)return m.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(H,"-empty"),onMouseDown:z},b);var U=Object.keys(O).map(function(e){return O[e]}),Y=function(e){return e.label};function G(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var X=function(e){var t=P[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,a=(0,S.Z)(n,!0),l=Y(t);return t?m.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof l||r?null:l},a,{key:e},G(t,e),{"aria-selected":B(o)}),o):null},Q={role:"listbox",id:"".concat(c,"_list")};return m.createElement(m.Fragment,null,D&&m.createElement("div",(0,i.Z)({},Q,{style:{height:0,width:0,overflow:"hidden"}}),X(_-1),X(_),X(_+1)),m.createElement(ex,{itemKey:"key",ref:k,data:P,height:T,itemHeight:N,fullHeight:!1,onMouseDown:z,onScroll:E,virtual:D,innerProps:D?null:Q},function(e,t){var n=e.group,o=e.groupOption,a=e.data,c=e.label,u=e.value,d=a.key;if(n){var p,f,v=null!==(f=a.title)&&void 0!==f?f:eM(c)?c.toString():void 0;return m.createElement("div",{className:r()(H,"".concat(H,"-group")),title:v},void 0!==c?c:d)}var h=a.disabled,g=a.title,b=(a.children,a.style),w=a.className,E=(0,s.Z)(a,eC),y=(0,er.Z)(E,U),Z=B(u),C="".concat(H,"-option"),M=r()(H,C,w,(p={},(0,l.Z)(p,"".concat(C,"-grouped"),o),(0,l.Z)(p,"".concat(C,"-active"),_===t&&!h),(0,l.Z)(p,"".concat(C,"-disabled"),h),(0,l.Z)(p,"".concat(C,"-selected"),Z),p)),I=Y(e),R="number"==typeof I?I:I||u,O=eM(R)?R.toString():void 0;return void 0!==g&&(O=g),m.createElement("div",(0,i.Z)({},(0,S.Z)(y),D?{}:G(e,t),{"aria-selected":Z,className:M,title:O,onMouseMove:function(){_===t||h||W(t)},onClick:function(){h||K(u)},style:b}),m.createElement("div",{className:"".concat(C,"-content")},R),m.isValidElement($)||Z,(!$||"function"==typeof $||Z)&&m.createElement(x,{className:"".concat(H,"-option-state"),customizeIcon:$,customizeIconProps:{isSelected:Z}},Z?"✓":null))}))});eI.displayName="OptionList";var e$=["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"],eR=["inputValue"],eO=m.forwardRef(function(e,t){var n,o,r,f,v,h=e.id,g=e.mode,b=e.prefixCls,w=e.backfill,E=e.fieldNames,S=e.inputValue,y=e.searchValue,x=e.onSearch,Z=e.autoClearSearchValue,M=void 0===Z||Z,I=e.onSelect,$=e.onDeselect,R=e.dropdownMatchSelectWidth,O=void 0===R||R,D=e.filterOption,T=e.filterSort,N=e.optionFilterProp,H=e.optionLabelProp,P=e.options,k=e.children,z=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,_=e.virtual,j=e.listHeight,Y=void 0===j?200:j,et=e.listItemHeight,en=void 0===et?20:et,eo=e.value,er=e.defaultValue,ei=e.labelInValue,ea=e.onChange,el=(0,s.Z)(e,e$),ec=(n=m.useState(),r=(o=(0,u.Z)(n,2))[0],f=
1o[1],m.useEffect(function(){var e;f("rc_select_".concat((X?(e=G,G+=1):e="TEST_OR_SSR",e)))},[]),h||r),eu=W(g),es=!!(!P&&k),ed=m.useMemo(function(){return(void 0!==D||"combobox"!==g)&&D},[D,g]),ep=m.useMemo(function(){return F(E,es)},[JSON.stringify(E),es]),ef=(0,p.Z)("",{value:void 0!==y?y:S,postState:function(e){return e||""}}),em=(0,u.Z)(ef,2),ev=em[0],eh=em[1],eg=m.useMemo(function(){var e=P;P||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Q.Z)(t).map(function(t,o){if(!m.isValidElement(t)||!t.type)return null;var r,i,a,l,u,d=t.type.isSelectOptGroup,p=t.key,f=t.props,v=f.children,h=(0,s.Z)(f,J);return n||!d?(r=t.key,a=(i=t.props).children,l=i.value,u=(0,s.Z)(i,q),(0,c.Z)({key:r,value:void 0!==l?l:r,children:a},u)):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===p?o:p,"__"),label:p},h),{},{options:e(v)})}).filter(function(e){return e})}(k));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a<r.length;a+=1){var l=r[a];!l[ep.options]||i?(t.set(l[ep.value],l),o(n,l,ep.label),o(n,l,N),o(n,l,H)):e(l[ep.options],!0)}}(e),{options:e,valueOptions:t,labelOptions:n}},[P,k,ep,N,H]),eb=eg.valueOptions,ew=eg.labelOptions,eE=eg.options,eS=m.useCallback(function(e){return C(e).map(function(e){e&&"object"===(0,d.Z)(e)?(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o):t=e;var t,n,o,r,i,a,l,c=eb.get(t);return c&&(void 0===n&&(n=null==c?void 0:c[H||ep.label]),void 0===o&&(o=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),r=null==c?void 0:c.disabled,i=null==c?void 0:c.title),{label:n,value:t,key:o,disabled:r,title:i}})},[ep,H,eb]),ey=(0,p.Z)(er,{value:eo}),ex=(0,u.Z)(ey,2),eC=ex[0],eM=ex[1],eO=K(m.useMemo(function(){var e,t=eS(eC);return"combobox"!==g||null!==(e=t[0])&&void 0!==e&&e.value?t:[]},[eC,eS,g]),eb),eD=(0,u.Z)(eO,2),eT=eD[0],eN=eD[1],eH=m.useMemo(function(){if(!g&&1===eT.length){var e=eT[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eT.map(function(e){var t;return(0,c.Z)((0,c.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})})},[g,eT]),eP=m.useMemo(function(){return new Set(eT.map(function(e){return e.value}))},[eT]);m.useEffect(function(){if("combobox"===g){var e,t=null===(e=eT[0])||void 0===e?void 0:e.value;eh(null!=t?String(t):"")}},[eT]);var ek=ee(function(e,t){var n;return n={},(0,l.Z)(n,ep.value,e),(0,l.Z)(n,ep.label,null!=t?t:e),n}),ez=(v=m.useMemo(function(){if("tags"!==g)return eE;var e=(0,a.Z)(eE);return(0,a.Z)(eT).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;eb.has(n)||e.push(ek(n,t.label))}),e},[ek,eE,eb,eT,g]),m.useMemo(function(){if(!ev||!1===ed)return v;var e=ep.options,t=ep.label,n=ep.value,o=[],r="function"==typeof ed,i=ev.toUpperCase(),a=r?ed:function(o,r){return N?U(r[N],i):r[e]?U(r["children"!==t?t:"label"],i):U(r[n],i)},u=r?function(e){return A(e)}:function(e){return e};return v.forEach(function(t){if(t[e]){if(a(ev,u(t)))o.push(t);else{var n=t[e].filter(function(e){return a(ev,u(e))});n.length&&o.push((0,c.Z)((0,c.Z)({},t),{},(0,l.Z)({},e,n)))}return}a(ev,u(t))&&o.push(t)}),o},[v,ed,N,ev,ep])),eL=m.useMemo(function(){return"tags"!==g||!ev||ez.some(function(e){return e[N||"value"]===ev})?ez:[ek(ev)].concat((0,a.Z)(ez))},[ek,N,g,ez,ev]),eV=m.useMemo(function(){return T?(0,a.Z)(eL).sort(function(e,t){return T(e,t)}):eL},[eL,T]),eF=m.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=F(n,!1),a=i.label,l=i.value,c=i.options;return!function e(t,n){t.forEach(function(t){var i=t[a];if(!n&&c in t){var u=i;void 0===u&&o&&(u=t.label),r.push({key:V(t,r.length),group:!0,data:t,label:u}),e(t[c],!0)}else{var s=t[l];r.push({key:V(t,r.length),groupOption:n,data:t,label:i,value:s})}})}(e,!1),r}(eV,{fieldNames:ep,childrenAsData:es})},[eV,ep,es]),eA=function(e){var t=eS(e);if(eM(t),ea&&(t.length!==eT.length||t.some(function(e,t){var n;return(null===(n=eT[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}
1))){var n=ei?t:t.map(function(e){return e.value}),o=t.map(function(e){return A(eN(e.value))});ea(eu?n:n[0],eu?o:o[0])}},e_=m.useState(null),ej=(0,u.Z)(e_,2),eW=ej[0],eB=ej[1],eK=m.useState(0),eU=(0,u.Z)(eK,2),eY=eU[0],eG=eU[1],eX=void 0!==z?z:"combobox"!==g,eQ=m.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source;eG(t),w&&"combobox"===g&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&eB(String(e))},[w,g]),eq=function(e,t,n){var o=function(){var t,n=eN(e);return[ei?{label:null==n?void 0:n[ep.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,A(n)]};if(t&&I){var r=o(),i=(0,u.Z)(r,2);I(i[0],i[1])}else if(!t&&$&&"clear"!==n){var a=o(),l=(0,u.Z)(a,2);$(l[0],l[1])}},eJ=ee(function(e,t){var n=!eu||t.selected;eA(n?eu?[].concat((0,a.Z)(eT),[e]):[e]:eT.filter(function(t){return t.value!==e})),eq(e,n),"combobox"===g?eB(""):(!W||M)&&(eh(""),eB(""))}),e0=m.useMemo(function(){return(0,c.Z)((0,c.Z)({},eg),{},{flattenOptions:eF,onActiveValue:eQ,defaultActiveFirstOption:eX,onSelect:eJ,menuItemSelectedIcon:L,rawValues:eP,fieldNames:ep,virtual:!1!==_&&!1!==O,listHeight:Y,listItemHeight:en,childrenAsData:es})},[eg,eF,eQ,eX,eJ,L,eP,ep,_,O,Y,en,es]);return m.createElement(eZ.Provider,{value:e0},m.createElement(B,(0,i.Z)({},el,{id:ec,prefixCls:void 0===b?"rc-select":b,ref:t,omitDomProps:eR,mode:g,displayValues:eH,onDisplayValuesChange:function(e,t){eA(e);var n=t.type,o=t.values;("remove"===n||"clear"===n)&&o.forEach(function(e){eq(e.value,!1,n)})},searchValue:ev,onSearch:function(e,t){if(eh(e),eB(null),"submit"===t.source){var n=(e||"").trim();n&&(eA(Array.from(new Set([].concat((0,a.Z)(eP),[n])))),eq(n,!0),eh(""));return}"blur"!==t.source&&("combobox"===g&&eA(e),null==x||x(e))},autoClearSearchValue:M,onSearchSplit:function(e){var t=e;"tags"!==g&&(t=e.map(function(e){var t=ew.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,a.Z)(eP),(0,a.Z)(t))));eA(n),n.forEach(function(e){eq(e,!0)})},dropdownMatchSelectWidth:O,OptionList:eI,emptyOptions:!eF.length,activeValue:eW,activeDescendantId:"".concat(ec,"_list_").concat(eY)})))});eO.Option=en,eO.OptGroup=et;var eD=n(3124),eT=n(4342),eN=n(274),eH=n(8012);let eP=()=>{let[,e]=(0,eH.dQ)(),t=new eN.C(e.colorBgBase),n={};return t.toHsl().l<.5&&(n={opacity:.65}),m.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),m.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),m.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),m.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),m.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ek=()=>{let[,e]=(0,eH.dQ)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e,{borderColor:i,shadowColor:a,contentColor:l}=(0,m.useMemo)(()=>
1({borderColor:new eN.C(t).onBackground(r).toHexString(),shadowColor:new eN.C(n).onBackground(r).toHexString(),contentColor:new eN.C(o).onBackground(r).toHexString()}),[t,n,o,r]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:i},m.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"}),m.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};var ez=n(7968),eL=n(5503);let eV=e=>{let{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var eF=(0,ez.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:n}=e,o=(0,eL.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[eV(o)]}),eA=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let e_=m.createElement(eP,null),ej=m.createElement(ek,null),eW=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=e_,description:a,children:l,imageStyle:c}=e,u=eA(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);let{getPrefixCls:s,direction:d}=m.useContext(eD.E_),p=s("empty",o),[f,v]=eF(p);return f(m.createElement(eT.Z,{componentName:"Empty"},e=>{let o=void 0!==a?a:e.description,s=null;return s="string"==typeof i?m.createElement("img",{alt:"string"==typeof o?o:"empty",src:i}):i,m.createElement("div",Object.assign({className:r()(v,p,{[`${p}-normal`]:i===ej,[`${p}-rtl`]:"rtl"===d},t,n)},u),m.createElement("div",{className:`${p}-image`,style:c},s),o&&m.createElement("div",{className:`${p}-description`},o),l&&m.createElement("div",{className:`${p}-footer`},l))}))};eW.PRESENTED_IMAGE_DEFAULT=e_,eW.PRESENTED_IMAGE_SIMPLE=ej;let eB=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,m.useContext)(eD.E_),o=n("empty");switch(t){case"Table":case"List":return m.createElement(eW,{image:eW.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(eW,{image:eW.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return m.createElement(eW,null)}};var eK=n(8866),eU=n(7647),eY=n(5223),eG=n(3603),eX=n(9708),eQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},eq=n(3771),eJ=function(e,t){return m.createElement(eq.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:eQ}))};eJ.displayName="CheckOutlined";var e0=m.forwardRef(eJ),e1=n(186),e2=n(5846),e4=n(5558),e3=n(7322),e5=n(2480),e7=n(7771),e6=n(3297),e9=n(4747);let e8=e=>{let{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},te=e=>{let{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,e9.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
2            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
3            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
4          `]:{animationName:e7.fJ},[`
5            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
6            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
7          `]:{animationName:e7.Qt},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:e7.Uw},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:e7.ly},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:Object.assign(Object.assign({},e8(e)),{color:e.colorTextDisabled}),[`${o}`]:Object.assign(Object.assign({},e8(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e9.vS),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}
7-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,e7.oN)(e,"slide-up"),(0,e7.oN)(e,"slide-down"),(0,e6.Fm)(e,"move-up"),(0,e6.Fm)(e,"move-down")]};function tt(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e,r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function tn(e,t){let{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=tt(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-2}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,content:'"\\a0"'}},[`
8        &${n}-show-arrow ${n}-selector,
9        &${n}-allow-clear ${n}-selector
10      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:`${i-2*e.lineWidth}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,e9.Ro)()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[`
11          &-input,
12          &-mirror
13        `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`}
13,"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function to(e,t){let{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,e9.Wf)(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[`
14          ${n}-selection-item,
15          ${n}-selection-placeholder
16        `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:after,${n}-selection-placeholder:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
17        &${n}-show-arrow ${n}-selection-item,
18        &${n}-show-arrow ${n}-selection-placeholder
19      `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}var tr=n(110);let ti=e=>{let{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ta=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:a}=t,l=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r}})}}},tl=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tc=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,e9.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},ti(e)),tl(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},e9.vS),[`${t}
19-selection-placeholder`]:Object.assign(Object.assign({},e9.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,e9.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},tu=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},tc(e),function(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[to(e),to((0,eL.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`
20            &${t}-show-arrow ${t}-selection-item,
21            &${t}-show-arrow ${t}
21-selection-placeholder
22          `]:{paddingInlineEnd:1.5*e.fontSize}}}},to((0,eL.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),function(e){let{componentCls:t}=e,n=(0,eL.TS)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=tt(e);return[tn(e),tn(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},tn((0,eL.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}(e),te(e),{[`${t}-rtl`]:{direction:"rtl"}},ta(t,(0,eL.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ta(`${t}-status-error`,(0,eL.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ta(`${t}-status-warning`,(0,eL.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,tr.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var ts=(0,ez.Z)("Select",(e,t)=>{let{rootPrefixCls:n}=t,o=(0,eL.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[tu(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),td=n(8745),tp=n(4173),tf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let tm="SECRET_COMBOBOX_MODE_DO_NOT_USE",tv=(e,t)=>{let n;var{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:c,popupClassName:u,dropdownClassName:s,listHeight:d=256,placement:p,listItemHeight:f=24,size:v,disabled:h,notFoundContent:g,status:b,showArrow:w}=e,E=tf(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]);let{getPopupContainer:S,getPrefixCls:y,renderEmpty:x,direction:Z,virtual:C,dropdownMatchSelectWidth:M,select:I}=m.useContext(eD.E_),$=m.useContext(eU.Z),R=y("select",o),O=y(),{compactSize:D,compactItemClassnames:T}=(0,tp.ri)(R,Z),[N,H]=ts(R),P=m.useMemo(()=>{let{mode:e}=E;return"combobox"===e?void 0:e===tm?"combobox":e},[E.mode]),k="multiple"===P||"tags"===P,z=void 0!==w?w:E.loading||!(k||"combobox"===P),{status:L,hasFeedback:V,isFormItemInput:F,feedbackIcon:A}=m.useContext(eY.aM),_=(0,eX.F)(L,b);n=void 0!==g?g:"combobox"===P?null:(null==x?void 0:x("Select"))||m.createElement(eB,{componentName:"Select"});let{suffixIcon:j,itemIcon:W,removeIcon:B,clearIcon:K}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showArrow:u,feedbackIcon:s}=e,d=null!=n?n:m.createElement(e1.Z,null),p=e=>m.createElement(m.Fragment,null,!1!==u&&e,l&&s),f=null;if(void 0!==t)f=p(t);else if(i)f=p(m.createElement(e3.Z,{spin:!0}));else{let e=`${c}-suffix`;f=t=>{let{open:n,showSearch:o}=t;return n&&o?p(m.createElement(e5.Z,{className:e})):p(m.createElement(e4.Z,{className:e}))}}let v=null;return v=void 0!==o?o:a?m.createElement(e0,null):null,{clearIcon:d,suffixIcon:f,itemIcon:v,removeIcon:void 0!==r?r:m.createElement(e2.Z,null)}}(Object.assign(Object.assign({},E),{multiple:k,hasFeedback:V,feedbackIcon:A,showArrow:z,prefixCls:R})),U=(0,er.Z)(E,["suffixIcon","itemIcon"]),Y=r()(u||s,{[`${R}-dropdown-${Z}`]:"rtl"===Z},l,H),G=D||v||$,X=m.useContext(eK.Z),Q=r()({[`${R}-lg`]:"large"===G,[`${R}-sm`]:"small"===G,[`${R}-rtl`]:"rtl"===Z,[`${R}-borderless`]:!i,[`${R}-in-form-item`]:F},(0,eX.Z)(R,_,V),T,a,l,H);return N(m.createElement(eO,Object.assign({ref:t,virtual:C,dropdownMatchSelectWidth:M,showSearch:null==I?void 0:I.showSearch},U,{transitionName:(0,eG.mL)(O,(0,eG.q0)(p),E.transitionName),listHeight:d,listItemHeight:f,mode:P,prefixCls:R,placement:void 0!==p?p:"rtl"===Z?"bottomRight":"bottomLeft",direction:Z,inputIcon:j,menuItemSelectedIcon:W,removeIcon:B,clearIcon:K,notFoundContent:n,className:Q,getPopupContainer:c||S,dropdownClassName:Y,showArrow:V||w,disabled:null!=h?h:X})))},th=m.forwardRef(tv),tg=(0,td.Z)(th);th.SECRET_COMBOBOX_MODE_DO_NOT_USE=tm,th.Option=en,th.OptGroup=et,th._InternalPanelDoNotUseOrYouWillBeFired=tg;var tb=th},3297:function(e,t,n){n.d(t,{Fm:function(){return m}});var o=n(1222),r=n(3590);let i=new o.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}
22,"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new o.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new o.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new o.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u=new o.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new o.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d=new o.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new o.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),f={"move-up":{inKeyframes:d,outKeyframes:p},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:u,outKeyframes:s}},m=(e,t)=>{let{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=f[t];return[(0,r.R)(o,i,a,e.motionDurationMid),{[`
23        ${o}-enter,
24        ${o}-appear
25      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},5558:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(1413),r=n(7294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(3771),l=function(e,t){return r.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:i}))};l.displayName="DownOutlined";var c=r.forwardRef(l)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.