(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{131:function(e,t,n){"use strict";n.d(t,"a",(function(){return ce}));for(var o=n(92),i=n(4),r=n(278),s=n(434),a=n(42),u=n(72),c=n(73),l=n(12),p=n(74),f=n(80),d=n(44),h=n(0),v=n.n(h),b=n(169),m=n(8),O=n(43),g=n(13),y=n(97),S=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],L=new RegExp("["+S.map((function(e){return e.letters})).join("")+"]","g"),M={},E=0;E<S.length;E++)for(var D=S[E],I=0;I<D.letters.length;I++)M[D.letters[I]]=D.base;var V=function(e){return e.replace(L,(function(e){return M[e]}))};function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var C=function(e){return e.replace(/^\s+|\s+$/g,"")},T=function(e){return"".concat(e.label," ").concat(e.value)};var k={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},R=function(e){return Object(m.c)("span",Object(i.a)({css:k},e))};function w(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,Object(o.a)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(m.c)("input",Object(i.a)({ref:t},n,{css:Object(y.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(d.a)(e);if(t){var i=Object(d.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(f.a)(this,n)}}var P=function(e){Object(p.a)(n,e);var t=x(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(O.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(h.Component),F=["boxSizing","height","overflow","paddingRight","position"],A={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function H(e){e.preventDefault()}function U(e){e.stopPropagation()}function B(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function N(){return"ontouchstart"in window||navigator.maxTouchPoints}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(d.a)(e);if(t){var i=Object(d.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(f.a)(this,n)}}var Y=!(!window.document||!window.document.createElement),G=0,W=function(e){Object(p.a)(n,e);var t=z(n);function n(){var e;Object(u.a)(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(Y){var t=this.props,n=t.accountForScrollbars,o=t.touchScrollTarget,i=document.body,r=i&&i.style;if(n&&F.forEach((function(t){var n=r&&r[t];e.originalStyles[t]=n})),n&&G<1){var s=parseInt(this.originalStyles.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+s||0;Object.keys(A).forEach((function(e){var t=A[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(u,"px"))}i&&N()&&(i.addEventListener("touchmove",H,this.listenerOptions),o&&(o.addEventListener("touchstart",B,this.listenerOptions),o.addEventListener("touchmove",U,this.listenerOptions))),G+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Y){var t=this.props,n=t.accountForScrollbars,o=t.touchScrollTarget,i=document.body,r=i&&i.style;G=Math.max(G-1,0),n&&G<1&&F.forEach((function(t){var n=e.originalStyles[t];r&&(r[t]=n)})),i&&N()&&(i.removeEventListener("touchmove",H,this.listenerOptions),o&&(o.removeEventListener("touchstart",B,this.listenerOptions),o.removeEventListener("touchmove",U,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(h.Component);function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(d.a)(e);if(t){var i=Object(d.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(f.a)(this,n)}}W.defaultProps={accountForScrollbars:!0};var K={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},J=function(e){Object(p.a)(n,e);var t=X(n);function n(){var e;Object(u.a)(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,o=this.state.touchScrollTarget;return n?Object(m.c)("div",null,Object(m.c)("div",{onClick:this.blurSelectInput,css:K}),Object(m.c)(P,{innerRef:this.getScrollTarget},t),o?Object(m.c)(W,{touchScrollTarget:o}):null):t}}]),n}(h.PureComponent);function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(d.a)(e);if(t){var i=Object(d.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(f.a)(this,n)}}var q=function(e){Object(p.a)(n,e);var t=Z(n);function n(){var e;Object(u.a)(this,n);for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var o=e.props,i=o.onBottomArrive,r=o.onBottomLeave,s=o.onTopArrive,a=o.onTopLeave,u=e.scrollTarget,c=u.scrollTop,l=u.scrollHeight,p=u.clientHeight,f=e.scrollTarget,d=n>0,h=l-p-c,v=!1;h>n&&e.isBottom&&(r&&r(t),e.isBottom=!1),d&&e.isTop&&(a&&a(t),e.isTop=!1),d&&n>h?(i&&!e.isBottom&&i(t),f.scrollTop=l,v=!0,e.isBottom=!0):!d&&-n>c&&(s&&!e.isTop&&s(t),f.scrollTop=0,v=!0,e.isTop=!0),v&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return v.a.createElement(P,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(h.Component);function Q(e){var t=e.isEnabled,n=void 0===t||t,i=Object(o.a)(e,["isEnabled"]);return n?v.a.createElement(q,i):i.children}var $=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,o=t.isMulti,i=t.label,r=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(i||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},_=function(e,t){var n=t.value,o=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,o?" is disabled. Select another option.":", selected.")}},ee=function(e){return!!e.isDisabled};var te={clearIndicator:g.i,container:g.g,control:g.h,dropdownIndicator:g.j,group:g.m,groupHeading:g.k,indicatorsContainer:g.o,indicatorSeparator:g.l,input:g.n,loadingIndicator:g.r,loadingMessage:g.p,menu:g.s,menuList:g.q,menuPortal:g.t,multiValue:g.u,multiValueLabel:g.v,multiValueRemove:g.w,noOptionsMessage:g.x,option:g.y,placeholder:g.z,singleValue:g.A,valueContainer:g.B};var ne={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(d.a)(e);if(t){var i=Object(d.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(f.a)(this,n)}}var se,ae={backspaceRemovesValue:!0,blurInputOnSelect:Object(g.C)(),captureMenuScroll:!Object(g.C)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:T,trim:!0,matchFrom:"any"},se),o=n.ignoreCase,i=n.ignoreAccents,r=n.stringify,s=n.trim,u=n.matchFrom,c=s?C(t):t,l=s?C(r(e)):r(e);return o&&(c=c.toLowerCase(),l=l.toLowerCase()),i&&(c=V(c),l=V(l)),"start"===u?l.substr(0,c.length)===c:l.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ee,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(g.D)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ue=1,ce=function(e){Object(p.a)(n,e);var t=re(n);function n(e){var o;Object(u.a)(this,n),(o=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},o.blockOptionHover=!1,o.isComposing=!1,o.clearFocusValueOnUpdate=!1,o.commonProps=void 0,o.components=void 0,o.hasGroups=!1,o.initialTouchX=0,o.initialTouchY=0,o.inputIsHiddenAfterUpdate=void 0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.cacheComponents=function(e){o.components=Object(g.E)({components:e})},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;i(e,ie(ie({},t),{},{name:r}))},o.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,i=o.props,r=i.closeMenuOnSelect,s=i.isMulti;o.onInputChange("",{action:"set-value"}),r&&(o.inputIsHiddenAfterUpdate=!s,o.onMenuClose()),o.clearFocusValueOnUpdate=!0,o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=o.state.selectValue;if(i)if(o.isOptionSelected(e,r)){var a=o.getOptionValue(e);o.setValue(r.filter((function(e){return o.getOptionValue(e)!==a})),"deselect-option",e),o.announceAriaLiveSelection({event:"deselect-option",context:{value:o.getOptionLabel(e)}})}else o.isOptionDisabled(e,r)?o.announceAriaLiveSelection({event:"select-option",context:{value:o.getOptionLabel(e),isDisabled:!0}}):(o.setValue([].concat(Object(s.a)(r),[e]),"select-option",e),o.announceAriaLiveSelection({event:"select-option",context:{value:o.getOptionLabel(e)}}));else o.isOptionDisabled(e,r)?o.announceAriaLiveSelection({event:"select-option",context:{value:o.getOptionLabel(e),isDisabled:!0}}):(o.setValue(e,"select-option"),o.announceAriaLiveSelection({event:"select-option",context:{value:o.getOptionLabel(e)}}));n&&o.blurInput()},o.removeValue=function(e){var t=o.state.selectValue,n=o.getOptionValue(e),i=t.filter((function(e){return o.getOptionValue(e)!==n}));o.onChange(i.length?i:null,{action:"remove-value",removedValue:e}),o.announceAriaLiveSelection({event:"remove-value",context:{value:e?o.getOptionLabel(e):""}}),o.focusInput()},o.clearValue=function(){var e=o.props.isMulti;o.onChange(e?[]:null,{action:"clear"})},o.popValue=function(){var e=o.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);o.announceAriaLiveSelection({event:"pop-value",context:{value:t?o.getOptionLabel(t):""}}),o.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},o.getOptionLabel=function(e){return o.props.getOptionLabel(e)},o.getOptionValue=function(e){return o.props.getOptionValue(e)},o.getStyles=function(e,t){var n=te[e](t);n.boxSizing="border-box";var i=o.props.styles[e];return i?i(n,t):n},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getActiveDescendentId=function(){var e=o.props.menuIsOpen,t=o.state,n=t.menuOptions,i=t.focusedOption;if(i&&e){var r=n.focusable.indexOf(i),s=n.render[r];return s&&s.key}},o.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;o.setState({ariaLiveSelection:_(t,n)})},o.announceAriaLiveContext=function(e){var t=e.event,n=e.context;o.setState({ariaLiveContext:$(t,ie(ie({},n),{},{label:o.props["aria-label"]}))})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.inputIsHiddenAfterUpdate=!n,o.onMenuClose()):o.openMenu("first"),e.preventDefault(),e.stopPropagation()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.stopPropagation(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Object(g.F)(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=e.currentTarget.value;o.inputIsHiddenAfterUpdate=!1,o.onInputChange(t,{action:"input-change"}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){var t=o.props,n=t.isSearchable,i=t.isMulti;o.props.onFocus&&o.props.onFocus(e),o.inputIsHiddenAfterUpdate=!1,o.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:i}}),o.setState({isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur"}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){var e=o.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=o.state,h=d.focusedOption,v=d.focusedValue,b=d.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;o.focusValue("previous");break;case"ArrowRight":if(!n||s)return;o.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(v)o.removeValue(v);else{if(!i)return;n?o.popValue():a&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!p||!h||f&&o.isOptionSelected(h,b))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.inputIsHiddenAfterUpdate=!1,o.onInputChange("",{action:"menu-close"}),o.onMenuClose()):a&&r&&o.clearValue();break;case" ":if(s)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.buildMenuOptions=function(e,t){var n=e.inputValue,i=void 0===n?"":n,r=e.options,s=function(e,n){var r=o.isOptionDisabled(e,t),s=o.isOptionSelected(e,t),a=o.getOptionLabel(e),u=o.getOptionValue(e);if(!(o.shouldHideSelectedOptions()&&s||!o.filterOption({label:a,value:u,data:e},i))){var c=r?void 0:function(){return o.onOptionHover(e)},l=r?void 0:function(){return o.selectOption(e)},p="".concat(o.getElementId("option"),"-").concat(n);return{innerProps:{id:p,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:r,isSelected:s,key:p,label:a,type:"option",value:u}}};return r.reduce((function(e,t,n){if(t.options){o.hasGroups||(o.hasGroups=!0);var i=t.options.map((function(t,o){var i=s(t,"".concat(n,"-").concat(o));return i&&e.focusable.push(t),i})).filter(Boolean);if(i.length){var r="".concat(o.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:r,data:t,options:i})}}else{var a=s(t,"".concat(n));a&&(e.render.push(a),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var i=e.value;o.cacheComponents=Object(b.a)(o.cacheComponents,g.a).bind(Object(l.a)(o)),o.cacheComponents(e.components),o.instancePrefix="react-select-"+(o.props.instanceId||++ue);var a=Object(g.b)(i);o.buildMenuOptions=Object(b.a)(o.buildMenuOptions,(function(e,t){var n=e,o=Object(r.a)(n,2),i=o[0],s=o[1],a=t,u=Object(r.a)(a,2),c=u[0],l=u[1];return Object(g.a)(s,l)&&Object(g.a)(i.inputValue,c.inputValue)&&Object(g.a)(i.options,c.options)})).bind(Object(l.a)(o));var c=e.menuIsOpen?o.buildMenuOptions(e,a):{render:[],focusable:[]};return o.state.menuOptions=c,o.state.selectValue=a,o}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,o=t.value,i=t.menuIsOpen,r=t.inputValue;if(this.cacheComponents(e.components),e.value!==o||e.options!==n||e.menuIsOpen!==i||e.inputValue!==r){var s=Object(g.b)(e.value),a=e.menuIsOpen?this.buildMenuOptions(e,s):{render:[],focusable:[]},u=this.getNextFocusedValue(s),c=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:s,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(g.c)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildMenuOptions(this.props,o),s=this.props.isMulti,a="first"===e?0:r.focusable.length-1;if(!s){var u=r.focusable.indexOf(o[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:r,focusedValue:null,focusedOption:r.focusable[a]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,o=t.isSearchable,i=this.state,r=i.selectValue,s=i.focusedValue;if(n){this.setState({focusedOption:null});var a=r.indexOf(s);s||(a=-1,this.announceAriaLiveContext({event:"value"}));var u=r.length-1,c=-1;if(r.length){switch(e){case"previous":c=0===a?0:-1===a?u:a-1;break;case"next":a>-1&&a<u&&(c=a+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:o,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:r[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,o=n.focusedOption,i=n.menuOptions,r=i.focusable;if(r.length){var s=0,a=r.indexOf(o);o||(a=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?s=a>0?a-1:r.length-1:"down"===e?s=(a+1)%r.length:"pageup"===e?(s=a-t)<0&&(s=0):"pagedown"===e?(s=a+t)>r.length-1&&(s=r.length-1):"last"===e&&(s=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[s],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:ee(r[s])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ne):ie(ie({},ne),this.props.theme):ne}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,o=this.selectOption,i=this.props,r=i.classNamePrefix,s=i.isMulti,a=i.isRtl,u=i.options,c=this.state.selectValue,l=this.hasValue();return{cx:g.d.bind(null,r),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:l,isMulti:s,isRtl:a,options:u,selectOption:o,setValue:n,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,o=t.selectValue.indexOf(n);if(o>-1){if(e.indexOf(n)>-1)return n;if(o<e.length)return e[o]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var o=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===o}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,o=e.focusedValue,i=e.focusedOption,r=this.props,s=r.options,a=r.menuIsOpen,u=r.inputValue,c=r.screenReaderStatus,l=o?function(e){var t=e.focusedValue,n=e.getOptionLabel,o=e.selectValue;return"value ".concat(n(t)," focused, ").concat(o.indexOf(t)+1," of ").concat(o.length,".")}({focusedValue:o,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=i&&a?function(e){var t=e.focusedOption,n=e.getOptionLabel,o=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(o.indexOf(t)+1," of ").concat(o.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:s}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,s=e.tabIndex,a=e.form,u=this.components.Input,c=this.state.inputIsHidden,l=o||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return v.a.createElement(w,Object(i.a)({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g.e,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:s,form:a,value:""},p));var f=this.commonProps,d=f.cx,h=f.theme,b=f.selectProps;return v.a.createElement(u,Object(i.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:b,spellCheck:"false",tabIndex:s,form:a,theme:h,type:"text",value:r},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,c=this.commonProps,l=this.props,p=l.controlShouldRenderValue,f=l.isDisabled,d=l.isMulti,h=l.inputValue,b=l.placeholder,m=this.state,O=m.selectValue,g=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!p)return h?null:v.a.createElement(u,Object(i.a)({},c,{key:"placeholder",isDisabled:f,isFocused:y}),b);if(d)return O.map((function(t,a){var u=t===g;return v.a.createElement(n,Object(i.a)({},c,{components:{Container:o,Label:r,Remove:s},isFocused:u,isDisabled:f,key:e.getOptionValue(t),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var S=O[0];return v.a.createElement(a,Object(i.a)({},c,{data:S,isDisabled:f}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.a.createElement(e,Object(i.a)({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,s=this.state.isFocused;if(!e||!r)return null;return v.a.createElement(e,Object(i.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,s=this.state.isFocused;return v.a.createElement(n,Object(i.a)({},o,{isDisabled:r,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.a.createElement(e,Object(i.a)({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,s=t.Menu,a=t.MenuList,u=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,p=t.Option,f=this.commonProps,d=this.state,h=d.focusedOption,b=d.menuOptions,m=this.props,O=m.captureMenuScroll,y=m.inputValue,S=m.isLoading,L=m.loadingMessage,M=m.minMenuHeight,E=m.maxMenuHeight,D=m.menuIsOpen,I=m.menuPlacement,V=m.menuPosition,j=m.menuPortalTarget,C=m.menuShouldBlockScroll,T=m.menuShouldScrollIntoView,k=m.noOptionsMessage,R=m.onMenuScrollToTop,w=m.onMenuScrollToBottom;if(!D)return null;var x,P=function(t){var n=h===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,v.a.createElement(p,Object(i.a)({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())x=b.render.map((function(t){if("group"===t.type){t.type;var s=Object(o.a)(t,["type"]),a="".concat(t.key,"-heading");return v.a.createElement(n,Object(i.a)({},f,s,{Heading:r,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e)})))}if("option"===t.type)return P(t)}));else if(S){var F=L({inputValue:y});if(null===F)return null;x=v.a.createElement(c,f,F)}else{var A=k({inputValue:y});if(null===A)return null;x=v.a.createElement(l,f,A)}var H={minMenuHeight:M,maxMenuHeight:E,menuPlacement:I,menuPosition:V,menuShouldScrollIntoView:T},U=v.a.createElement(g.f,Object(i.a)({},f,H),(function(t){var n=t.ref,o=t.placerProps,r=o.placement,u=o.maxHeight;return v.a.createElement(s,Object(i.a)({},f,H,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:S,placement:r}),v.a.createElement(Q,{isEnabled:O,onTopArrive:R,onBottomArrive:w},v.a.createElement(J,{isEnabled:C},v.a.createElement(a,Object(i.a)({},f,{innerRef:e.getMenuListRef,isLoading:S,maxHeight:u}),x))))}));return j||"fixed"===V?v.a.createElement(u,Object(i.a)({},f,{appendTo:j,controlElement:this.controlRef,menuPlacement:I,menuPosition:V}),U):U}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,r=t.name,s=this.state.selectValue;if(r&&!o){if(i){if(n){var a=s.map((function(t){return e.getOptionValue(t)})).join(n);return v.a.createElement("input",{name:r,type:"hidden",value:a})}var u=s.length>0?s.map((function(t,n){return v.a.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})})):v.a.createElement("input",{name:r,type:"hidden"});return v.a.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return v.a.createElement("input",{name:r,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?v.a.createElement(R,{"aria-live":"polite"},v.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),v.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,s=this.props,a=s.className,u=s.id,c=s.isDisabled,l=s.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return v.a.createElement(o,Object(i.a)({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),v.a.createElement(t,Object(i.a)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:l}),v.a.createElement(r,Object(i.a)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),v.a.createElement(n,Object(i.a)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(h.Component);ce.defaultProps=ae}}]);