(globalThis.blocksyNewsletterSubscribeExtJsonp=globalThis.blocksyNewsletterSubscribeExtJsonp||[]).push([[882],{168:function(e,t,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(null,arguments)}n.d(t,{A:function(){return o}})},353:function(e,t,n){"use strict";n(581)},556:function(e,t,n){e.exports=n(694)()},581:function(e,t){"use strict";var n,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),d=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case r:case u:case s:case p:case f:return e;default:switch(e=e&&e.$$typeof){case d:case a:case c:case g:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},694:function(e,t,n){"use strict";var o=n(925);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},942:function(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},981:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}n.d(t,{Ay:function(){return $}});var i=n(168);function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var s=n(556),u=n.n(s),l=n(486),a=n.n(l);n(353);const d=e=>"object"==typeof e&&null!=e&&1===e.nodeType,c=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,p=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return c(n.overflowY,t)||c(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},f=(e,t,n,o,i,r,s,u)=>r<e&&s>t||r>e&&s<t?0:r<=e&&u<=n||s>=t&&u>=n?r-e-o:s>t&&u<n||r<e&&u>n?s-t+i:0,h=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var g=function(){return g=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var m=0;function v(e){return"function"==typeof e?e:I}function I(){}function y(e,t){if(e){var n=((e,t)=>{var n,o,i,r;if("undefined"==typeof document)return[];const{scrollMode:s,block:u,inline:l,boundary:a,skipOverflowHiddenElements:c}=t,g="function"==typeof a?a:e=>e!==a;if(!d(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let I=e;for(;d(I)&&g(I);){if(I=h(I),I===m){v.push(I);break}null!=I&&I===document.body&&p(I)&&!p(document.documentElement)||null!=I&&p(I,c)&&v.push(I)}const y=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,b=null!=(r=null==(i=window.visualViewport)?void 0:i.height)?r:innerHeight,{scrollX:S,scrollY:w}=window,{height:x,width:O,top:H,right:C,bottom:D,left:E}=e.getBoundingClientRect(),{top:A,right:P,bottom:M,left:R}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let T="start"===u||"nearest"===u?H-A:"end"===u?D+M:H+x/2-A+M,k="center"===l?E+O/2-R+P:"end"===l?C+P:E-R;const V=[];for(let e=0;e<v.length;e++){const t=v[e],{height:n,width:o,top:i,right:r,bottom:a,left:d}=t.getBoundingClientRect();if("if-needed"===s&&H>=0&&E>=0&&D<=b&&C<=y&&(t===m&&!p(t)||H>=i&&D<=a&&E>=d&&C<=r))return V;const c=getComputedStyle(t),h=parseInt(c.borderLeftWidth,10),g=parseInt(c.borderTopWidth,10),I=parseInt(c.borderRightWidth,10),A=parseInt(c.borderBottomWidth,10);let P=0,M=0;const R="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-I:0,K="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-A:0,_="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,B="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)P="start"===u?T:"end"===u?T-b:"nearest"===u?f(w,w+b,b,g,A,w+T,w+T+x,x):T-b/2,M="start"===l?k:"center"===l?k-y/2:"end"===l?k-y:f(S,S+y,y,h,I,S+k,S+k+O,O),P=Math.max(0,P+w),M=Math.max(0,M+S);else{P="start"===u?T-i-g:"end"===u?T-a+A+K:"nearest"===u?f(i,a,n,g,A+K,T,T+x,x):T-(i+n/2)+K/2,M="start"===l?k-d-h:"center"===l?k-(d+o/2)+R/2:"end"===l?k-r+I+R:f(d,r,o,h,I+R,k,k+O,O);const{scrollLeft:e,scrollTop:s}=t;P=0===B?0:Math.max(0,Math.min(s+P/B,t.scrollHeight-n/B+K)),M=0===_?0:Math.max(0,Math.min(e+M/_,t.scrollWidth-o/_+R)),T+=s-P,k+=e-M}V.push({el:t,top:P,left:M})}return V})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o})}}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function S(e,t){var n;function o(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];o(),n=setTimeout(function(){n=null,e.apply(void 0,r)},t)}return i.cancel=o,i}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(o)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function O(){return String(m++)}function H(e){var t=e.isOpen,n=e.resultCount,o=e.previousResultCount;return t?n?n!==o?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function C(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function D(e){return"string"==typeof e.type}function E(e){return e.props}var A=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function P(e){void 0===e&&(e={});var t={};return A.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function M(e,t){return e&&t?Object.keys(e).reduce(function(n,o){return n[o]=R(t,o)?t[o]:e[o],n},{}):e}function R(e,t){return void 0!==e[t]}function T(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function k(e,t,n,o,i){void 0===i&&(i=!1);var r=n.length;if(0===r)return-1;var s=r-1;("number"!=typeof e||e<0||e>s)&&(e=t>0?-1:s+1);var u=e+t;u<0?u=i?s:0:u>s&&(u=i?0:s);var l=V(u,t<0,n,o,i);return-1===l?e>=r?-1:e:l}function V(e,t,n,o,i){void 0===i&&(i=!1);var r=n.length;if(t){for(var s=e;s>=0;s--)if(!o(n[s],s))return s}else for(var u=e;u<r;u++)if(!o(n[u],u))return u;return i?V(t?r-1:0,t,n,o):-1}function K(e,t,n,o){return void 0===o&&(o=!0),n&&t.some(function(t){return t&&(b(t,e,n)||o&&b(t,n.document.activeElement,n))})}var _=S(function(e){B(e).textContent=""},500);function B(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function L(e,t){e&&t&&(B(t).textContent=e,_(t))}var j=Object.freeze({__proto__:null,blurButton:14,blurInput:10,changeInput:11,clickButton:13,clickItem:9,controlledPropUpdatedSelectedItem:15,itemMouseEnter:2,keyDownArrowDown:4,keyDownArrowUp:3,keyDownEnd:8,keyDownEnter:6,keyDownEscape:5,keyDownHome:7,keyDownSpaceButton:12,mouseUp:1,touchEnd:16,unknown:0}),N=["refKey","ref"],W=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],U=["onKeyDown","onBlur","onChange","onInput","onChangeText"],q=["refKey","ref"],F=["onMouseMove","onMouseDown","onClick","onPress","index","item"],$=function(){var e=function(e){function t(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+O(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==o}),e()},t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(e,t){var o=n.getItemNodeFromIndex(t);return o&&o.hasAttribute("disabled")},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=P(t),n.internalSetState((0,i.A)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=P(t),n.internalSetState((0,i.A)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,s={},u="function"==typeof e;return!u&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,(0,i.A)({},n.getStateAndHelpers(),e)),n.setState(function(t){var l;t=n.getState(t);var a=u?e(t):e;a=n.props.stateReducer(t,a),o=a.hasOwnProperty("selectedItem");var d={};return o&&a.selectedItem!==t.selectedItem&&(r=a.selectedItem),(l=a).type||(l.type=0),Object.keys(a).forEach(function(e){t[e]!==a[e]&&(s[e]=a[e]),"type"!==e&&(a[e],R(n.props,e)||(d[e]=a[e]))}),u&&a.hasOwnProperty("inputValue")&&n.props.onInputValueChange(a.inputValue,(0,i.A)({},n.getStateAndHelpers(),a)),d},function(){v(t)(),Object.keys(s).length>1&&n.props.onStateChange(s,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(s,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,s=void 0===e?{}:e,u=s.refKey,l=void 0===u?"ref":u,a=s.ref,d=o(s,N),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=p;var f=n.getState().isOpen;return(0,i.A)(((r={})[l]=x(a,n.rootRef),r.role="combobox",r["aria-expanded"]=f,r["aria-haspopup"]="listbox",r["aria-owns"]=f?n.menuId:void 0,r["aria-labelledby"]=n.labelId,r),d)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},function(){var e=t.getItemCount();if(e>0){var n=k(t.getState().highlightedIndex,1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:4})}})},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},function(){var e=t.getItemCount();if(e>0){var n=k(t.getState().highlightedIndex,-1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:3})}})},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset((0,i.A)({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=(0,i.A)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=(0,i.A)({},n.keyDownHandlers,{Home:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var o=V(0,!1,{length:n},this.isItemDisabled);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var o=V(n-1,!0,{length:n},this.isItemDisabled);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick;t.onPress;var s=t.onKeyDown,u=t.onKeyUp,l=t.onBlur,a=o(t,W),d=n.getState().isOpen,c={onClick:w(r,n.buttonHandleClick),onKeyDown:w(s,n.buttonHandleKeyDown),onKeyUp:w(u,n.buttonHandleKeyUp),onBlur:w(l,n.buttonHandleBlur)},p=a.disabled?{}:c;return(0,i.A)({type:"button",role:"button","aria-label":d?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},p,a)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=T(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(n,e)},n.buttonHandleClick=function(e){if(e.preventDefault(),n.props.environment){var t=n.props.environment.document,o=t.body,i=t.activeElement;o&&o===i&&e.target.focus()}n.internalSetTimeout(function(){return n.toggleMenu({type:13})})},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){if(!n.isMouseDown&&n.props.environment){var e=n.props.environment.document.activeElement;null!=e&&e.id===n.inputId||e===t||n.reset({type:14})}})},n.getLabelProps=function(e){return(0,i.A)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,s=t.onBlur,u=t.onChange,l=t.onInput;t.onChangeText;var a=o(t,U),d={};var c,p=n.getState(),f=p.inputValue,h=p.isOpen,g=p.highlightedIndex;a.disabled||((c={}).onChange=w(u,l,n.inputHandleChange),c.onKeyDown=w(r,n.inputHandleKeyDown),c.onBlur=w(s,n.inputHandleBlur),d=c);return(0,i.A)({"aria-autocomplete":"list","aria-activedescendant":h&&"number"==typeof g&&g>=0?n.getItemId(g):void 0,"aria-controls":h?n.menuId:void 0,"aria-labelledby":a&&a["aria-label"]?void 0:n.labelId,autoComplete:"off",value:f,id:n.inputId},d,a)},n.inputHandleKeyDown=function(e){var t=T(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(n,e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e;if(!n.isMouseDown&&n.props.environment){var t=n.props.environment.document.activeElement;(null==t||null==(e=t.dataset)?void 0:e.toggle)&&n._rootNode&&n._rootNode.contains(t)||n.reset({type:10})}})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,s=void 0===e?{}:e,u=s.refKey,l=void 0===u?"ref":u,a=s.ref,d=o(s,q),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=p,(0,i.A)(((r={})[l]=x(a,n.menuRef),r.role="listbox",r["aria-labelledby"]=d&&d["aria-label"]?void 0:n.labelId,r.id=n.menuId,r),d)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,s=r.onMouseMove,u=r.onMouseDown,l=r.onClick;r.onPress;var a=r.index,d=r.item,c=void 0===d?void 0:d,p=o(r,F);void 0===a?(n.items.push(c),a=n.items.indexOf(c)):n.items[a]=c;var f=l,h=((t={onMouseMove:w(s,function(){a!==n.getState().highlightedIndex&&(n.setHighlightedIndex(a,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:w(u,function(e){e.preventDefault()})}).onClick=w(f,function(){n.selectItemAtIndex(a,{type:9})}),t),g=p.disabled?{onMouseDown:h.onMouseDown}:h;return(0,i.A)({id:n.getItemId(a),role:"option","aria-selected":n.getState().highlightedIndex===a},g,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=P(e),n.internalSetState(function(t){var o=t.selectedItem;return(0,i.A)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)},t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=P(e),n.internalSetState(function(t){var o=t.isOpen;return(0,i.A)({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var o=n.getState(),i=o.isOpen,r=o.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof r&&n.setHighlightedIndex(r,e),v(t)()})},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=S(function(){var e;if(null!=(e=n.props)&&null!=(e=e.environment)&&e.document){var t=n.getState(),o=n.items[t.highlightedIndex],r=n.getItemCount(),s=n.props.getA11yStatusMessage((0,i.A)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:o},t));n.previousResultCount=r,L(s,n.props.environment.document)}},200);var r=n.props,s=r.defaultHighlightedIndex,u=r.initialHighlightedIndex,l=void 0===u?s:u,a=r.defaultIsOpen,d=r.initialIsOpen,c=void 0===d?a:d,p=r.initialInputValue,f=void 0===p?"":p,h=r.initialSelectedItem,g=void 0===h?null:h,m=n.getState({highlightedIndex:l,isOpen:c,inputValue:f,selectedItem:g});return null!=m.selectedItem&&void 0===n.props.initialInputValue&&(m.inputValue=n.props.itemToString(m.selectedItem)),n.state=m,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(e){clearTimeout(e)}),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),M(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(e)):null},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this.getItemCount(),o=this.getState().highlightedIndex;if(n>0){var i=k(o,e,{length:n},this.isItemDisabled,!0);this.setHighlightedIndex(i,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,s=this.id,u=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,d=this.getMenuProps,c=this.getInputProps,p=this.getItemProps,f=this.openMenu,h=this.closeMenu,g=this.toggleMenu,m=this.selectItem,v=this.selectItemAtIndex,I=this.selectHighlightedItem,y=this.setHighlightedIndex,b=this.clearSelection,S=this.clearItems;return{getRootProps:u,getToggleButtonProps:l,getLabelProps:a,getMenuProps:d,getInputProps:c,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:g,selectItem:m,selectItemAtIndex:v,selectHighlightedItem:I,setHighlightedIndex:y,clearSelection:b,clearItems:S,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:r,id:s,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},n.componentDidMount=function(){var e=this;if(this.props.environment){var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!K(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},o=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},r=function(t){var n=K(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},s=this.props.environment;s.addEventListener("mousedown",t),s.addEventListener("mouseup",n),s.addEventListener("touchstart",o),s.addEventListener("touchmove",i),s.addEventListener("touchend",r),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),s.removeEventListener("mousedown",t),s.removeEventListener("mouseup",n),s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",i),s.removeEventListener("touchend",r)}}else this.cleanup=function(){e.internalClearTimeouts()}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},n.componentDidUpdate=function(e,t){R(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=C(this.props.children,I);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=C(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:D(t)?(0,l.cloneElement)(t,this.getRootProps(E(t))):void 0:null},t}(l.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:H,itemToString:function(e){return null==e?"":String(e)},onStateChange:I,onInputValueChange:I,onUserAction:I,onChange:I,onSelect:I,onOuterClick:I,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?void 0:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=j,e}();S(function(e,t){L(e,t)},200),"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect,a();var Y={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:y,environment:"undefined"==typeof window?void 0:window};var z={environment:u().shape({addEventListener:u().func.isRequired,removeEventListener:u().func.isRequired,document:u().shape({createElement:u().func.isRequired,getElementById:u().func.isRequired,activeElement:u().any.isRequired,body:u().any.isRequired}).isRequired,Node:u().func.isRequired}),itemToString:u().func,itemToKey:u().func,stateReducer:u().func},J=(0,i.A)({},z,{getA11yStatusMessage:u().func,highlightedIndex:u().number,defaultHighlightedIndex:u().number,initialHighlightedIndex:u().number,isOpen:u().bool,defaultIsOpen:u().bool,initialIsOpen:u().bool,selectedItem:u().any,initialSelectedItem:u().any,defaultSelectedItem:u().any,id:u().string,labelId:u().string,menuId:u().string,getItemId:u().func,toggleButtonId:u().string,onSelectedItemChange:u().func,onHighlightedIndexChange:u().func,onStateChange:u().func,onIsOpenChange:u().func,scrollIntoView:u().func});g(g({},J),{items:u().array.isRequired,isItemDisabled:u().func}),g(g({},Y),{isItemDisabled:function(){return!1}});(0,i.A)({},J,{items:u().array.isRequired,isItemDisabled:u().func,inputValue:u().string,defaultInputValue:u().string,initialInputValue:u().string,inputId:u().string,onInputValueChange:u().func});(0,i.A)({},Y,{isItemDisabled:function(){return!1}});u().array,u().array,u().array,u().func,u().number,u().number,u().number,u().func,u().func,u().string,u().string}}]);