@crystaldesign/diva-web-planner-react 26.1.0-beta.2 → 26.1.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 8590.diva-web-planner-react.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8590],{73790:(e,t,n)=>{var o=n(35764),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function getStatics(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function hoistNonReactStatics(e,t,n){if("string"!=typeof t){if(f){var o=d(t);o&&o!==f&&hoistNonReactStatics(e,o,n)}var r=l(t);c&&(r=r.concat(c(t)));for(var a=getStatics(e),s=getStatics(t),m=0;m<r.length;++m){var h=r[m];if(!(i[h]||n&&n[h]||s&&s[h]||a&&a[h])){var b=p(t,h);try{u(e,h,b)}catch(e){}}}}return e}},21584:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function z(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case b:case h:case u:return e;default:return t}}case r:return t}}}function A(e){return z(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=b,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||z(e)===c},t.isConcurrentMode=A,t.isContextConsumer=function(e){return z(e)===l},t.isContextProvider=function(e){return z(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return z(e)===d},t.isFragment=function(e){return z(e)===i},t.isLazy=function(e){return z(e)===b},t.isMemo=function(e){return z(e)===h},t.isPortal=function(e){return z(e)===r},t.isProfiler=function(e){return z(e)===s},t.isStrictMode=function(e){return z(e)===a},t.isSuspense=function(e){return z(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===S||e.$$typeof===v)},t.typeOf=z},35764:(e,t,n)=>{e.exports=n(21584)},58590:(e,t,n)=>{function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function toPropertyKey(e){var t=function toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_typeof(t)?t:t+""}function _defineProperty(e,t,n){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(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 objectSpread2_objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _objectWithoutProperties(e,t){if(null==e)return{};var n,o,r=function _objectWithoutPropertiesLoose(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{ZP:()=>Ne});var o=n(87363),r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _extends(){return _extends=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},_extends.apply(null,arguments)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!e})()}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i,a,s=n(35037),u=(n(55251),n(67267)),l=(n(64970),n(73790),function jsx(e,t){var n=arguments;if(null==t||!s.h.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=s.E,i[1]=(0,s.c)(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)});i=l||(l={}),a||(a=i.JSX||(i.JSX={}));function css(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}var c=n(61533);const p=Math.min,d=Math.max,f=Math.round,m=Math.floor,createCoords=e=>({x:e,y:e});function rectToClientRect(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=floating_ui_utils_dom_getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function floating_ui_utils_dom_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=getNearestOverflowAncestor(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=getWindow(r);if(i){const e=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(r)?r:[],e&&n?getOverflowAncestors(e):[])}return t.concat(r,getOverflowAncestors(r,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=floating_ui_utils_dom_getComputedStyle(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=isHTMLElement(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=f(n)!==i||f(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=getCssDimensions(t);let a=(i?f(n.width):n.width)/o,s=(i?f(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const h=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function getBoundingClientRect(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=unwrapElement(e);let a=createCoords(1);t&&(o?isElement(o)&&(a=getScale(o)):a=getScale(e));const s=function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}(i,n,o)?getVisualOffsets(i):createCoords(0);let u=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,c=r.width/a.x,p=r.height/a.y;if(i){const e=getWindow(i),t=o&&isElement(o)?getWindow(o):o;let n=e,r=getFrameElement(n);for(;r&&o&&t!==n;){const e=getScale(r),t=r.getBoundingClientRect(),o=floating_ui_utils_dom_getComputedStyle(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,p*=e.y,u+=i,l+=a,n=getWindow(r),r=getFrameElement(n)}}return rectToClientRect({width:c,height:p,x:u,y:l})}function autoUpdate(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,l=unwrapElement(e),c=r||i?[...l?getOverflowAncestors(l):[],...getOverflowAncestors(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=l&&s?function observeMove(e,t){let n,o=null;const r=getDocumentElement(e);function cleanup(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function refresh(i,a){void 0===i&&(i=!1),void 0===a&&(a=1),cleanup();const{left:s,top:u,width:l,height:c}=e.getBoundingClientRect();if(i||t(),!l||!c)return;const f={rootMargin:-m(u)+"px "+-m(r.clientWidth-(s+l))+"px "+-m(r.clientHeight-(u+c))+"px "+-m(s)+"px",threshold:d(0,p(1,a))||1};let h=!0;function handleObserve(e){const t=e[0].intersectionRatio;if(t!==a){if(!h)return refresh();t?refresh(!1,t):n=setTimeout((()=>{refresh(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(handleObserve,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(handleObserve,f)}o.observe(e)}(!0),cleanup}(l,n):null;let h,b=-1,v=null;a&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),l&&!u&&v.observe(l),v.observe(t));let g=u?getBoundingClientRect(e):null;return u&&function frameLoop(){const t=getBoundingClientRect(e);!g||t.x===g.x&&t.y===g.y&&t.width===g.width&&t.height===g.height||n();g=t,h=requestAnimationFrame(frameLoop)}(),n(),()=>{var e;c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(h)}}var b=o.useLayoutEffect,v=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],g=function noop(){};function applyPrefixToName(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function classNames(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(applyPrefixToName(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var y=function cleanValue(e){return function isArray(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===_typeof(e)&&null!==e?[e]:[]},S=function cleanCommonProps(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,objectSpread2_objectSpread2({},_objectWithoutProperties(e,v))},O=function getStyleProps(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function isDocumentElement(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function getScrollTop(e){return isDocumentElement(e)?window.pageYOffset:e.scrollTop}function scrollTo(e,t){isDocumentElement(e)?window.scrollTo(0,t):e.scrollTop=t}function easeOutCubic(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function animatedScrollTo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g,r=getScrollTop(e),i=t-r,a=10,s=0;function animateScroll(){var t=easeOutCubic(s+=a,r,i,n);scrollTo(e,t),s<n?window.requestAnimationFrame(animateScroll):o(e)}animateScroll()}function scrollIntoView(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?scrollTo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&scrollTo(e,Math.max(t.offsetTop-r,0))}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var C=!1,w={get passive(){return C=!0}},I="undefined"!=typeof window?window:{};I.addEventListener&&I.removeEventListener&&(I.addEventListener("p",g,w),I.removeEventListener("p",g,!1));var x=C;function notNullish(e){return null!=e}function valueTernary(e,t,n){return e?t:n}var _=["children","innerProps"],P=["children","innerProps"];function getMenuPlacement(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function getScrollParent(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,f=p.height,m=p.top,h=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:function normalizedHeight(e){return isDocumentElement(e)?window.innerHeight:e.clientHeight}(u),v=getScrollTop(u),g=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),S=h-y,O=b-m,C=S+v,w=c-v-m,I=d-b+v+g,x=v+m-y,_=160;switch(r){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(w>=f&&!a)return i&&animatedScrollTo(u,I,_),{placement:"bottom",maxHeight:t};if(!a&&w>=o||a&&O>=o)return i&&animatedScrollTo(u,I,_),{placement:"bottom",maxHeight:a?O-g:w-g};if("auto"===r||a){var P=t,M=a?S:C;return M>=o&&(P=Math.min(M-g-s,t)),{placement:"top",maxHeight:P}}if("bottom"===r)return i&&scrollTo(u,I),{placement:"bottom",maxHeight:t};break;case"top":if(S>=f)return{placement:"top",maxHeight:t};if(C>=f&&!a)return i&&animatedScrollTo(u,x,_),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&S>=o){var E=t;return(!a&&C>=o||a&&S>=o)&&(E=a?S-y:C-y),i&&animatedScrollTo(u,x,_),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}var M,E=function coercePlacement(e){return"auto"===e?"bottom":e},V=(0,o.createContext)(null),T=function MenuPlacer(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,u=e.theme,l=((0,o.useContext)(V)||{}).setPortalPlacement,c=(0,o.useRef)(null),p=_slicedToArray((0,o.useState)(r),2),d=p[0],f=p[1],m=_slicedToArray((0,o.useState)(null),2),h=m[0],v=m[1],g=u.spacing.controlHeight;return b((function(){var e=c.current;if(e){var t="fixed"===a,o=getMenuPlacement({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(o.maxHeight),v(o.placement),null==l||l(o.placement)}}),[r,i,a,s,n,l,g]),t({ref:c,placerProps:objectSpread2_objectSpread2(objectSpread2_objectSpread2({},e),{},{placement:h||E(i),maxHeight:d})})},j=function Menu(e){var t=e.children,n=e.innerRef,o=e.innerProps;return l("div",_extends({},O(e,"menu",{menu:!0}),{ref:n},o),t)},D=function noticeCSS(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return objectSpread2_objectSpread2({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},R=D,L=D,F=["size"],k=["innerProps","isRtl","size"];var H={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},N=function Svg(e){var t=e.size,n=_objectWithoutProperties(e,F);return l("svg",_extends({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:H},n))},W=function CrossIcon(e){return l(N,_extends({size:20},e),l("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},U=function DownChevron(e){return l(N,_extends({size:20},e),l("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},B=function baseCSS(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return objectSpread2_objectSpread2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},$=B,G=B,Y=function keyframes(){var e=css.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function toString(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(M||(M=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),K=function LoadingDot(e){var t=e.delay,n=e.offset;return l("span",{css:css({animation:"".concat(Y," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},q=function Control(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return l("div",_extends({ref:r},O(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},X=["data"],J=function Group(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,p=e.selectProps;return l("div",_extends({},O(e,"group",{group:!0}),s),l(i,_extends({},a,{selectProps:p,theme:c,getStyles:o,getClassNames:r,cx:n}),u),l("div",null,t))},Z=["innerRef","isDisabled","isHidden","inputClassName"],Q={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ee={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":objectSpread2_objectSpread2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Q)},te=function inputStyle(e){return objectSpread2_objectSpread2({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Q)},ne=function MultiValueGeneric(e){var t=e.children,n=e.innerProps;return l("div",n,t)};var oe=function MultiValue(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,p=n.Remove;return l(u,{data:o,innerProps:objectSpread2_objectSpread2(objectSpread2_objectSpread2({},O(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},l(c,{data:o,innerProps:objectSpread2_objectSpread2({},O(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),l(p,{data:o,innerProps:objectSpread2_objectSpread2(objectSpread2_objectSpread2({},O(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},re={ClearIndicator:function ClearIndicator(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||l(W,null))},Control:q,DropdownIndicator:function DropdownIndicator(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||l(U,null))},DownChevron:U,CrossIcon:W,Group:J,GroupHeading:function GroupHeading(e){var t=S(e);t.data;var n=_objectWithoutProperties(t,X);return l("div",_extends({},O(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function IndicatorsContainer(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function IndicatorSeparator(e){var t=e.innerProps;return l("span",_extends({},t,O(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function Input(e){var t=e.cx,n=e.value,o=S(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,u=_objectWithoutProperties(o,Z);return l("div",_extends({},O(e,"input",{"input-container":!0}),{"data-value":n||""}),l("input",_extends({className:t({input:!0},s),ref:r,style:te(a),disabled:i},u)))},LoadingIndicator:function LoadingIndicator(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=_objectWithoutProperties(e,k);return l("div",_extends({},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),l(K,{delay:0,offset:n}),l(K,{delay:160,offset:!0}),l(K,{delay:320,offset:!n}))},Menu:j,MenuList:function MenuList(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return l("div",_extends({},O(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function MenuPortal(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,u=(0,o.useRef)(null),p=(0,o.useRef)(null),d=_slicedToArray((0,o.useState)(E(a)),2),f=d[0],m=d[1],h=(0,o.useMemo)((function(){return{setPortalPlacement:m}}),[]),v=_slicedToArray((0,o.useState)(null),2),g=v[0],y=v[1],S=(0,o.useCallback)((function(){if(r){var e=function getBoundingClientObj(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[r,s,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);b((function(){S()}),[S]);var C=(0,o.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),r&&u.current&&(p.current=autoUpdate(r,u.current,S,{elementResize:"ResizeObserver"in window}))}),[r,S]);b((function(){C()}),[C]);var w=(0,o.useCallback)((function(e){u.current=e,C()}),[C]);if(!t&&"fixed"!==s||!g)return null;var I=l("div",_extends({ref:w},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return l(V.Provider,{value:h},t?(0,c.createPortal)(I,t):I)},LoadingMessage:function LoadingMessage(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=_objectWithoutProperties(e,P);return l("div",_extends({},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function NoOptionsMessage(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=_objectWithoutProperties(e,_);return l("div",_extends({},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:oe,MultiValueContainer:ne,MultiValueLabel:ne,MultiValueRemove:function MultiValueRemove(e){var t=e.children,n=e.innerProps;return l("div",_extends({role:"button"},n),t||l(W,{size:14}))},Option:function Option(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return l("div",_extends({},O(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function Placeholder(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function SelectContainer(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return l("div",_extends({},O(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function SingleValue(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return l("div",_extends({},O(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function ValueContainer(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return l("div",_extends({},O(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},ie=Number.isNaN||function ponyfill(e){return"number"==typeof e&&e!=e};function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],r=t[n],!(o===r||ie(o)&&ie(r)))return!1;var o,r;return!0}for(var ae={name:"7pg0cj-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"},se=function A11yText(e){return l("span",_extends({css:ae},e))},ue={guidance:function guidance(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" 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";default:return""}},onChange:function onChange(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function onFocus(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function getArrayIndex(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(o,n),".")}return""},onFilter:function onFilter(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},le=function LiveRegion(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,c=e.id,p=e.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,m=u.inputValue,h=u.isMulti,b=u.isOptionDisabled,v=u.isSearchable,g=u.menuIsOpen,y=u.options,S=u.screenReaderStatus,O=u.tabSelectsValue,C=u.isLoading,w=u["aria-label"],I=u["aria-live"],x=(0,o.useMemo)((function(){return objectSpread2_objectSpread2(objectSpread2_objectSpread2({},ue),d||{})}),[d]),_=(0,o.useMemo)((function(){var e="";if(t&&x.onChange){var n=t.option,o=t.options,r=t.removedValue,i=t.removedValues,a=t.value,u=r||n||function asOption(e){return Array.isArray(e)?null:e}(a),l=u?f(u):"",c=o||i||void 0,p=c?c.map(f):[],d=objectSpread2_objectSpread2({isDisabled:u&&b(u,s),label:l,labels:p},t);e=x.onChange(d)}return e}),[t,x,b,s,f]),P=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&x.onFocus){var a={focused:t,label:f(t),isDisabled:b(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:p};e=x.onFocus(a)}return e}),[n,r,f,b,x,i,s,p]),M=(0,o.useMemo)((function(){var e="";if(g&&y.length&&!C&&x.onFilter){var t=S({count:i.length});e=x.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,g,x,y,S,C]),E="initial-input-focus"===(null==t?void 0:t.action),V=(0,o.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":g?"menu":"input";e=x.guidance({"aria-label":w,context:t,isDisabled:n&&b(n,s),isMulti:h,isSearchable:v,tabSelectsValue:O,isInitialFocus:E})}return e}),[w,n,r,h,b,v,g,x,s,O,E]),T=l(o.Fragment,null,l("span",{id:"aria-selection"},_),l("span",{id:"aria-focused"},P),l("span",{id:"aria-results"},M),l("span",{id:"aria-guidance"},V));return l(o.Fragment,null,l(se,{id:c},E&&T),l(se,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!E&&T))},ce=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pe=new RegExp("["+ce.map((function(e){return e.letters})).join("")+"]","g"),de={},fe=0;fe<ce.length;fe++)for(var me=ce[fe],he=0;he<me.letters.length;he++)de[me.letters[he]]=me.base;var be=function stripDiacritics(e){return e.replace(pe,(function(e){return de[e]}))},ve=function memoizeOne(e,t){void 0===t&&(t=areInputsEqual);var n=null;function memoized(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return memoized.clear=function clear(){n=null},memoized}(be),ge=function trimString(e){return e.replace(/^\s+|\s+$/g,"")},ye=function defaultStringify(e){return"".concat(e.label," ").concat(e.value)},Se=["innerRef"];function DummyInput(e){var t=e.innerRef,n=function removeProps(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=_slicedToArray(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=_slicedToArray(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(_objectWithoutProperties(e,Se),"onExited","in","enter","exit","appear");return l("input",_extends({ref:t},n,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Oe=["boxSizing","height","overflow","paddingRight","position"],Ce={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.cancelable&&e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var we=!("undefined"==typeof window||!window.document||!window.document.createElement),Ie=0,xe={capture:!1,passive:!1};var _e=function blurSelectInput(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Pe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ScrollManager(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function useScrollCapture(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,o.useRef)(!1),u=(0,o.useRef)(!1),l=(0,o.useRef)(0),c=(0,o.useRef)(null),p=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,l=o.scrollTop,p=o.scrollHeight,d=o.clientHeight,f=c.current,m=t>0,h=p-d-l,b=!1;h>t&&s.current&&(r&&r(e),s.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=p,b=!0,s.current=!0):!m&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,b=!0,u.current=!0),b&&function cancelScroll(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,a]),d=(0,o.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,o.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,o.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),h=(0,o.useCallback)((function(e){if(e){var t=!!x&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,d]),b=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,d]);return(0,o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){b(e)}}}),[t,h,b]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function useScrollLock(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)((function(e){if(we){var t=document.body,n=t&&t.style;if(r&&Oe.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Ie<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Ce).forEach((function(e){var t=Ce[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&isTouchDevice()&&(t.addEventListener("touchmove",preventTouchMove,xe),e&&(e.addEventListener("touchstart",preventInertiaScroll,xe),e.addEventListener("touchmove",allowTouchMove,xe))),Ie+=1}}),[r]),u=(0,o.useCallback)((function(e){if(we){var t=document.body,n=t&&t.style;Ie=Math.max(Ie-1,0),r&&Ie<1&&Oe.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&isTouchDevice()&&(t.removeEventListener("touchmove",preventTouchMove,xe),e&&(e.removeEventListener("touchstart",preventInertiaScroll,xe),e.removeEventListener("touchmove",allowTouchMove,xe)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return l(o.Fragment,null,n&&l("div",{onClick:_e,css:Pe}),t((function targetRef(e){i(e),a(e)})))}var Me={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ee=function RequiredInput(e){var t=e.name,n=e.onFocus;return l("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Me,value:"",onChange:function onChange(){}})};function testPlatform(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function isMac(){return testPlatform(/^Mac/i)}function isIOS(){return function isIPhone(){return testPlatform(/^iPhone/i)}()||function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}()}var Ve={clearIndicator:G,container:function containerCSS(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function css(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return objectSpread2_objectSpread2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:$,group:function groupCSS(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function groupHeadingCSS(e,t){var n=e.theme,o=n.colors,r=n.spacing;return objectSpread2_objectSpread2({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function indicatorsContainerCSS(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function indicatorSeparatorCSS(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return objectSpread2_objectSpread2({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function inputCSS(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return objectSpread2_objectSpread2(objectSpread2_objectSpread2({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ee),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function loadingIndicatorCSS(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return objectSpread2_objectSpread2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:L,menu:function menuCSS(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return objectSpread2_objectSpread2((_defineProperty(n={label:"menu"},function alignToControl(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),_defineProperty(n,"position","absolute"),_defineProperty(n,"width","100%"),_defineProperty(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function menuListCSS(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return objectSpread2_objectSpread2({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function menuPortalCSS(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function multiValueCSS(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return objectSpread2_objectSpread2({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function multiValueLabelCSS(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return objectSpread2_objectSpread2({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function multiValueRemoveCSS(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return objectSpread2_objectSpread2({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:R,option:function optionCSS(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return objectSpread2_objectSpread2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function placeholderCSS(e,t){var n=e.theme,o=n.spacing,r=n.colors;return objectSpread2_objectSpread2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function css(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return objectSpread2_objectSpread2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function valueContainerCSS(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return objectSpread2_objectSpread2({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Te={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}},je={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function createFilter(e){return function(t,n){if(t.data.__isNew__)return!0;var o=objectSpread2_objectSpread2({ignoreCase:!0,ignoreAccents:!0,stringify:ye,trim:!0,matchFrom:"any"},e),r=o.ignoreCase,i=o.ignoreAccents,a=o.stringify,s=o.trim,u=o.matchFrom,l=s?ge(n):n,c=s?ge(a(t)):a(t);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=ve(l),c=be(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1}}(),formatGroupLabel:function formatGroupLabel(e){return e.label},getOptionLabel:function getOptionLabel(e){return e.label},getOptionValue:function getOptionValue(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function isOptionDisabled(e){return!!e.isDisabled},loadingMessage:function loadingMessage(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function noOptionsMessage(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function screenReaderStatus(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function toCategorizedOption(e,t,n,o){return{type:"option",data:t,isDisabled:_isOptionDisabled(e,t,n),isSelected:_isOptionSelected(e,t,n),label:Re(e,t),value:Le(e,t),index:o}}function buildCategorizedOptions(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return toCategorizedOption(e,n,t,o)})).filter((function(t){return isFocusable(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=toCategorizedOption(e,n,t,o);return isFocusable(e,i)?i:void 0})).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,_toConsumableArray(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function buildFocusableOptionsWithIds(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,_toConsumableArray(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function isFocusable(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Fe(e)||!i)&&_filterOption(e,{label:a,value:s,data:r},o)}var De=function getFocusedOptionId(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Re=function getOptionLabel(e,t){return e.getOptionLabel(t)},Le=function getOptionValue(e,t){return e.getOptionValue(t)};function _isOptionDisabled(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _isOptionSelected(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Le(e,t);return n.some((function(t){return Le(e,t)===o}))}function _filterOption(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Fe=function shouldHideSelectedOptions(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ke=1,Ae=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}(Select,e);var t=function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}(Select);function Select(e){var n;if(function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Select),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=function isAppleDevice(){return isMac()||isIOS()}(),n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var o=n.props,r=o.onChange,i=o.name;t.name=i,n.ariaOnChange(e,t),r(e,t)},n.setValue=function(e,t,o){var r=n.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(n.setState({inputIsHiddenAfterUpdate:!a}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:o})},n.selectOption=function(e){var t=n.props,o=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=n.state.selectValue,s=r&&n.isOptionSelected(e,a),u=n.isOptionDisabled(e,a);if(s){var l=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void n.ariaOnChange(e,{action:"select-option",option:e,name:i});r?n.setValue([].concat(_toConsumableArray(a),[e]),"select-option",e):n.setValue(e,"select-option")}o&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,o=n.state.selectValue,r=n.getOptionValue(e),i=o.filter((function(e){return n.getOptionValue(e)!==r})),a=valueTernary(t,i,i[0]||null);n.onChange(a,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(valueTernary(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,o=t[t.length-1],r=t.slice(0,t.length-1),i=valueTernary(e,r,r[0]||null);o&&n.onChange(i,{action:"pop-value",removedValue:o})},n.getFocusedOptionId=function(e){return De(n.state.focusableOptionsWithIds,e)},n.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return classNames.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return Re(n.props,e)},n.getOptionValue=function(e){return Le(n.props,e)},n.getStyles=function(e,t){var o=n.props.unstyled,r=Ve[e](t,o);r.boxSizing="border-box";var i=n.props.styles[e];return i?i(r,t):r},n.getClassNames=function(e,t){var o,r;return null===(o=(r=n.props.classNames)[e])||void 0===o?void 0:o.call(r,t)},n.getElementId=function(e){return"".concat(n.state.instancePrefix,"-").concat(e)},n.getComponents=function(){return function defaultComponents(e){return objectSpread2_objectSpread2(objectSpread2_objectSpread2({},re),e.components)}(n.props)},n.buildCategorizedOptions=function(){return buildCategorizedOptions(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:objectSpread2_objectSpread2({value:e},t)})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,o=t.isMulti,r=t.menuIsOpen;n.focusInput(),r?(n.setState({inputIsHiddenAfterUpdate:!o}),n.onMenuClose()):n.openMenu("first"),e.preventDefault()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.preventDefault(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&isDocumentElement(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches,o=t&&t.item(0);o&&(n.initialTouchX=o.clientX,n.initialTouchY=o.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches,o=t&&t.item(0);if(o){var r=Math.abs(o.clientX-n.initialTouchX),i=Math.abs(o.clientY-n.initialTouchY);n.userIsDragging=r>5||i>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=n.props.inputValue,o=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(o,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){if(!n.blockOptionHover&&n.state.focusedOption!==e){var t=n.getFocusableOptions().indexOf(e);n.setState({focusedOption:e,focusedOptionId:t>-1?n.getFocusedOptionId(e):null})}},n.shouldHideSelectedOptions=function(){return Fe(n.props)},n.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),n.focus()},n.onKeyDown=function(e){var t=n.props,o=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,m=f.focusedOption,h=f.focusedValue,b=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;n.focusValue("previous");break;case"ArrowRight":if(!o||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)n.removeValue(h);else{if(!r)return;o?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!l||!p||!m||d&&n.isOptionSelected(m,b))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(n.isComposing)return;n.selectOption(m);break}return;case"Escape":l?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:a}),n.onMenuClose()):s&&i&&n.clearValue();break;case" ":if(a)return;if(!l){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":l?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":l?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!l)return;n.focusOption("pageup");break;case"PageDown":if(!l)return;n.focusOption("pagedown");break;case"Home":if(!l)return;n.focusOption("first");break;case"End":if(!l)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++ke),n.state.selectValue=y(e.value),e.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),r=n.buildFocusableOptions(),i=r.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=r[i],n.state.focusedOptionId=De(o,r[i])}return n}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(Select,[{key:"componentDidMount",value:function componentDidMount(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&scrollIntoView(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function componentDidUpdate(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function onMenuOpen(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function onMenuClose(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function onInputChange(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function focusInput(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function blurInput(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function openMenu(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function focusValue(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function focusOption(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function getTheme(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Te):objectSpread2_objectSpread2(objectSpread2_objectSpread2({},Te),this.props.theme):Te}},{key:"getCommonProps",value:function getCommonProps(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function hasValue(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function hasOptions(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function isClearable(){var e=this.props,isClearable=e.isClearable,t=e.isMulti;return void 0===isClearable?t:isClearable}},{key:"isOptionDisabled",value:function isOptionDisabled(e,t){return _isOptionDisabled(this.props,e,t)}},{key:"isOptionSelected",value:function isOptionSelected(e,t){return _isOptionSelected(this.props,e,t)}},{key:"filterOption",value:function filterOption(e,t){return _filterOption(this.props,e,t)}},{key:"formatOptionLabel",value:function formatOptionLabel(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 formatGroupLabel(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function startListeningComposition(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function stopListeningComposition(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function startListeningToTouch(){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 stopListeningToTouch(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function renderInput(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,u=e.menuIsOpen,l=e.required,c=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,m=this.commonProps,h=r||this.getElementId("input"),b=objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(c,_extends({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},b)):o.createElement(DummyInput,_extends({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,p=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,m=c.inputValue,h=c.placeholder,b=this.state,v=b.selectValue,g=b.focusedValue,y=b.isFocused;if(!this.hasValue()||!p)return m?null:o.createElement(u,_extends({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return v.map((function(t,s){var u=t===g,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,_extends({},l,{components:{Container:r,Label:i,Remove:a},isFocused:u,isDisabled:d,key:c,index:s,removeProps:{onClick:function onClick(){return e.removeValue(t)},onTouchEnd:function onTouchEnd(){return e.removeValue(t)},onMouseDown:function onMouseDown(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var S=v[0];return o.createElement(s,_extends({},l,{data:S,isDisabled:d}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function renderClearIndicator(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,_extends({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,_extends({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,_extends({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,_extends({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function renderMenu(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,b=f.isLoading,v=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,S=f.menuIsOpen,O=f.menuPlacement,C=f.menuPosition,w=f.menuPortalTarget,I=f.menuShouldBlockScroll,x=f.menuShouldScrollIntoView,_=f.noOptionsMessage,P=f.onMenuScrollToTop,M=f.onMenuScrollToBottom;if(!S)return null;var E,V=function render(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,u=t.label,l=t.value,f=d===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),v={id:b,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(c,_extends({},p,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:b,label:u,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return o.createElement(n,_extends({},p,{key:u,data:i,options:a,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(b){var j=v({inputValue:h});if(null===j)return null;E=o.createElement(u,p,j)}else{var D=_({inputValue:h});if(null===D)return null;E=o.createElement(l,p,D)}var R={minMenuHeight:g,maxMenuHeight:y,menuPlacement:O,menuPosition:C,menuShouldScrollIntoView:x},L=o.createElement(T,_extends({},p,R),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return o.createElement(i,_extends({},p,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),o.createElement(ScrollManager,{captureEnabled:m,onTopArrive:P,onBottomArrive:M,lockEnabled:I},(function(t){return o.createElement(a,_extends({},p,{innerRef:function innerRef(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:u,focusedOption:d}),E)})))}));return w||"fixed"===C?o.createElement(s,_extends({},p,{appendTo:w,controlElement:this.controlRef,menuPlacement:O,menuPosition:C}),L):L}},{key:"renderFormField",value:function renderFormField(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(Ee,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var p=u[0]?this.getOptionValue(u[0]):"";return o.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return o.createElement(le,_extends({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function render(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,_extends({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),o.createElement(t,_extends({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:c}),o.createElement(i,_extends({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,_extends({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=t.instancePrefix,l=e.options,c=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,m=y(c),h={};if(n&&(c!==n.value||l!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var b=p?function buildFocusableOptions(e,t){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(e,t))}(e,m):[],v=p?buildFocusableOptionsWithIds(buildCategorizedOptions(e,m),"".concat(u,"-option")):[],g=o?function getNextFocusedValue(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,S=function getNextFocusedOption(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);h={selectValue:m,focusedOption:S,focusedOptionId:De(v,S),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,w=a&&s;return a&&!w&&(C={value:valueTernary(f,m,m[0]||null),options:m,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},h),O),{},{prevProps:e,ariaSelection:C,prevWasFocused:w})}}]),Select}(o.Component);Ae.defaultProps=je;var He=(0,o.forwardRef)((function(e,t){var n=function useStateManager(e){var t=e.defaultInputValue,n=void 0===t?"":t,i=e.defaultMenuIsOpen,a=void 0!==i&&i,s=e.defaultValue,u=void 0===s?null:s,l=e.inputValue,c=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,h=e.value,b=_objectWithoutProperties(e,r),v=_slicedToArray((0,o.useState)(void 0!==l?l:n),2),g=v[0],y=v[1],S=_slicedToArray((0,o.useState)(void 0!==c?c:a),2),O=S[0],C=S[1],w=_slicedToArray((0,o.useState)(void 0!==h?h:u),2),I=w[0],x=w[1],_=(0,o.useCallback)((function(e,t){"function"==typeof p&&p(e,t),x(e)}),[p]),P=(0,o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),M=(0,o.useCallback)((function(){"function"==typeof m&&m(),C(!0)}),[m]),E=(0,o.useCallback)((function(){"function"==typeof f&&f(),C(!1)}),[f]),V=void 0!==l?l:g,T=void 0!==c?c:O,j=void 0!==h?h:I;return objectSpread2_objectSpread2(objectSpread2_objectSpread2({},b),{},{inputValue:V,menuIsOpen:T,onChange:_,onInputChange:P,onMenuClose:E,onMenuOpen:M,value:j})}(e);return o.createElement(Ae,_extends({ref:t},n))})),Ne=He}}]);
2
+ "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8590],{73790:(e,t,n)=>{var o=n(43129),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function getStatics(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function hoistNonReactStatics(e,t,n){if("string"!=typeof t){if(f){var o=d(t);o&&o!==f&&hoistNonReactStatics(e,o,n)}var r=l(t);c&&(r=r.concat(c(t)));for(var a=getStatics(e),s=getStatics(t),m=0;m<r.length;++m){var h=r[m];if(!(i[h]||n&&n[h]||s&&s[h]||a&&a[h])){var b=p(t,h);try{u(e,h,b)}catch(e){}}}}return e}},23222:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function z(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case b:case h:case u:return e;default:return t}}case r:return t}}}function A(e){return z(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=b,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||z(e)===c},t.isConcurrentMode=A,t.isContextConsumer=function(e){return z(e)===l},t.isContextProvider=function(e){return z(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return z(e)===d},t.isFragment=function(e){return z(e)===i},t.isLazy=function(e){return z(e)===b},t.isMemo=function(e){return z(e)===h},t.isPortal=function(e){return z(e)===r},t.isProfiler=function(e){return z(e)===s},t.isStrictMode=function(e){return z(e)===a},t.isSuspense=function(e){return z(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===S||e.$$typeof===v)},t.typeOf=z},43129:(e,t,n)=>{e.exports=n(23222)},58590:(e,t,n)=>{function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function toPropertyKey(e){var t=function toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_typeof(t)?t:t+""}function _defineProperty(e,t,n){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(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 objectSpread2_objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _objectWithoutProperties(e,t){if(null==e)return{};var n,o,r=function _objectWithoutPropertiesLoose(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{ZP:()=>Ne});var o=n(87363),r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _extends(){return _extends=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},_extends.apply(null,arguments)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!e})()}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i,a,s=n(35037),u=(n(55251),n(67267)),l=(n(64970),n(73790),function jsx(e,t){var n=arguments;if(null==t||!s.h.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=s.E,i[1]=(0,s.c)(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)});i=l||(l={}),a||(a=i.JSX||(i.JSX={}));function css(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}var c=n(61533);const p=Math.min,d=Math.max,f=Math.round,m=Math.floor,createCoords=e=>({x:e,y:e});function rectToClientRect(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=floating_ui_utils_dom_getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function floating_ui_utils_dom_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=getNearestOverflowAncestor(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=getWindow(r);if(i){const e=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(r)?r:[],e&&n?getOverflowAncestors(e):[])}return t.concat(r,getOverflowAncestors(r,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=floating_ui_utils_dom_getComputedStyle(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=isHTMLElement(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=f(n)!==i||f(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=getCssDimensions(t);let a=(i?f(n.width):n.width)/o,s=(i?f(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const h=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function getBoundingClientRect(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=unwrapElement(e);let a=createCoords(1);t&&(o?isElement(o)&&(a=getScale(o)):a=getScale(e));const s=function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}(i,n,o)?getVisualOffsets(i):createCoords(0);let u=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,c=r.width/a.x,p=r.height/a.y;if(i){const e=getWindow(i),t=o&&isElement(o)?getWindow(o):o;let n=e,r=getFrameElement(n);for(;r&&o&&t!==n;){const e=getScale(r),t=r.getBoundingClientRect(),o=floating_ui_utils_dom_getComputedStyle(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,p*=e.y,u+=i,l+=a,n=getWindow(r),r=getFrameElement(n)}}return rectToClientRect({width:c,height:p,x:u,y:l})}function autoUpdate(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,l=unwrapElement(e),c=r||i?[...l?getOverflowAncestors(l):[],...getOverflowAncestors(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=l&&s?function observeMove(e,t){let n,o=null;const r=getDocumentElement(e);function cleanup(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function refresh(i,a){void 0===i&&(i=!1),void 0===a&&(a=1),cleanup();const{left:s,top:u,width:l,height:c}=e.getBoundingClientRect();if(i||t(),!l||!c)return;const f={rootMargin:-m(u)+"px "+-m(r.clientWidth-(s+l))+"px "+-m(r.clientHeight-(u+c))+"px "+-m(s)+"px",threshold:d(0,p(1,a))||1};let h=!0;function handleObserve(e){const t=e[0].intersectionRatio;if(t!==a){if(!h)return refresh();t?refresh(!1,t):n=setTimeout((()=>{refresh(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(handleObserve,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(handleObserve,f)}o.observe(e)}(!0),cleanup}(l,n):null;let h,b=-1,v=null;a&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),l&&!u&&v.observe(l),v.observe(t));let g=u?getBoundingClientRect(e):null;return u&&function frameLoop(){const t=getBoundingClientRect(e);!g||t.x===g.x&&t.y===g.y&&t.width===g.width&&t.height===g.height||n();g=t,h=requestAnimationFrame(frameLoop)}(),n(),()=>{var e;c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(h)}}var b=o.useLayoutEffect,v=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],g=function noop(){};function applyPrefixToName(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function classNames(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(applyPrefixToName(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var y=function cleanValue(e){return function isArray(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===_typeof(e)&&null!==e?[e]:[]},S=function cleanCommonProps(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,objectSpread2_objectSpread2({},_objectWithoutProperties(e,v))},O=function getStyleProps(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function isDocumentElement(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function getScrollTop(e){return isDocumentElement(e)?window.pageYOffset:e.scrollTop}function scrollTo(e,t){isDocumentElement(e)?window.scrollTo(0,t):e.scrollTop=t}function easeOutCubic(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function animatedScrollTo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g,r=getScrollTop(e),i=t-r,a=10,s=0;function animateScroll(){var t=easeOutCubic(s+=a,r,i,n);scrollTo(e,t),s<n?window.requestAnimationFrame(animateScroll):o(e)}animateScroll()}function scrollIntoView(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?scrollTo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&scrollTo(e,Math.max(t.offsetTop-r,0))}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var C=!1,w={get passive(){return C=!0}},I="undefined"!=typeof window?window:{};I.addEventListener&&I.removeEventListener&&(I.addEventListener("p",g,w),I.removeEventListener("p",g,!1));var x=C;function notNullish(e){return null!=e}function valueTernary(e,t,n){return e?t:n}var _=["children","innerProps"],P=["children","innerProps"];function getMenuPlacement(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function getScrollParent(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,f=p.height,m=p.top,h=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:function normalizedHeight(e){return isDocumentElement(e)?window.innerHeight:e.clientHeight}(u),v=getScrollTop(u),g=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),S=h-y,O=b-m,C=S+v,w=c-v-m,I=d-b+v+g,x=v+m-y,_=160;switch(r){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(w>=f&&!a)return i&&animatedScrollTo(u,I,_),{placement:"bottom",maxHeight:t};if(!a&&w>=o||a&&O>=o)return i&&animatedScrollTo(u,I,_),{placement:"bottom",maxHeight:a?O-g:w-g};if("auto"===r||a){var P=t,M=a?S:C;return M>=o&&(P=Math.min(M-g-s,t)),{placement:"top",maxHeight:P}}if("bottom"===r)return i&&scrollTo(u,I),{placement:"bottom",maxHeight:t};break;case"top":if(S>=f)return{placement:"top",maxHeight:t};if(C>=f&&!a)return i&&animatedScrollTo(u,x,_),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&S>=o){var E=t;return(!a&&C>=o||a&&S>=o)&&(E=a?S-y:C-y),i&&animatedScrollTo(u,x,_),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}var M,E=function coercePlacement(e){return"auto"===e?"bottom":e},V=(0,o.createContext)(null),T=function MenuPlacer(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,u=e.theme,l=((0,o.useContext)(V)||{}).setPortalPlacement,c=(0,o.useRef)(null),p=_slicedToArray((0,o.useState)(r),2),d=p[0],f=p[1],m=_slicedToArray((0,o.useState)(null),2),h=m[0],v=m[1],g=u.spacing.controlHeight;return b((function(){var e=c.current;if(e){var t="fixed"===a,o=getMenuPlacement({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(o.maxHeight),v(o.placement),null==l||l(o.placement)}}),[r,i,a,s,n,l,g]),t({ref:c,placerProps:objectSpread2_objectSpread2(objectSpread2_objectSpread2({},e),{},{placement:h||E(i),maxHeight:d})})},j=function Menu(e){var t=e.children,n=e.innerRef,o=e.innerProps;return l("div",_extends({},O(e,"menu",{menu:!0}),{ref:n},o),t)},D=function noticeCSS(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return objectSpread2_objectSpread2({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},R=D,L=D,F=["size"],k=["innerProps","isRtl","size"];var H={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},N=function Svg(e){var t=e.size,n=_objectWithoutProperties(e,F);return l("svg",_extends({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:H},n))},W=function CrossIcon(e){return l(N,_extends({size:20},e),l("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},U=function DownChevron(e){return l(N,_extends({size:20},e),l("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},B=function baseCSS(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return objectSpread2_objectSpread2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},$=B,G=B,Y=function keyframes(){var e=css.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function toString(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(M||(M=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),K=function LoadingDot(e){var t=e.delay,n=e.offset;return l("span",{css:css({animation:"".concat(Y," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},q=function Control(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return l("div",_extends({ref:r},O(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},X=["data"],J=function Group(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,p=e.selectProps;return l("div",_extends({},O(e,"group",{group:!0}),s),l(i,_extends({},a,{selectProps:p,theme:c,getStyles:o,getClassNames:r,cx:n}),u),l("div",null,t))},Z=["innerRef","isDisabled","isHidden","inputClassName"],Q={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ee={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":objectSpread2_objectSpread2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Q)},te=function inputStyle(e){return objectSpread2_objectSpread2({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Q)},ne=function MultiValueGeneric(e){var t=e.children,n=e.innerProps;return l("div",n,t)};var oe=function MultiValue(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,p=n.Remove;return l(u,{data:o,innerProps:objectSpread2_objectSpread2(objectSpread2_objectSpread2({},O(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},l(c,{data:o,innerProps:objectSpread2_objectSpread2({},O(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),l(p,{data:o,innerProps:objectSpread2_objectSpread2(objectSpread2_objectSpread2({},O(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},re={ClearIndicator:function ClearIndicator(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||l(W,null))},Control:q,DropdownIndicator:function DropdownIndicator(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||l(U,null))},DownChevron:U,CrossIcon:W,Group:J,GroupHeading:function GroupHeading(e){var t=S(e);t.data;var n=_objectWithoutProperties(t,X);return l("div",_extends({},O(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function IndicatorsContainer(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function IndicatorSeparator(e){var t=e.innerProps;return l("span",_extends({},t,O(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function Input(e){var t=e.cx,n=e.value,o=S(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,u=_objectWithoutProperties(o,Z);return l("div",_extends({},O(e,"input",{"input-container":!0}),{"data-value":n||""}),l("input",_extends({className:t({input:!0},s),ref:r,style:te(a),disabled:i},u)))},LoadingIndicator:function LoadingIndicator(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=_objectWithoutProperties(e,k);return l("div",_extends({},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),l(K,{delay:0,offset:n}),l(K,{delay:160,offset:!0}),l(K,{delay:320,offset:!n}))},Menu:j,MenuList:function MenuList(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return l("div",_extends({},O(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function MenuPortal(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,u=(0,o.useRef)(null),p=(0,o.useRef)(null),d=_slicedToArray((0,o.useState)(E(a)),2),f=d[0],m=d[1],h=(0,o.useMemo)((function(){return{setPortalPlacement:m}}),[]),v=_slicedToArray((0,o.useState)(null),2),g=v[0],y=v[1],S=(0,o.useCallback)((function(){if(r){var e=function getBoundingClientObj(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[r,s,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);b((function(){S()}),[S]);var C=(0,o.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),r&&u.current&&(p.current=autoUpdate(r,u.current,S,{elementResize:"ResizeObserver"in window}))}),[r,S]);b((function(){C()}),[C]);var w=(0,o.useCallback)((function(e){u.current=e,C()}),[C]);if(!t&&"fixed"!==s||!g)return null;var I=l("div",_extends({ref:w},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return l(V.Provider,{value:h},t?(0,c.createPortal)(I,t):I)},LoadingMessage:function LoadingMessage(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=_objectWithoutProperties(e,P);return l("div",_extends({},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function NoOptionsMessage(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=_objectWithoutProperties(e,_);return l("div",_extends({},O(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:oe,MultiValueContainer:ne,MultiValueLabel:ne,MultiValueRemove:function MultiValueRemove(e){var t=e.children,n=e.innerProps;return l("div",_extends({role:"button"},n),t||l(W,{size:14}))},Option:function Option(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return l("div",_extends({},O(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function Placeholder(e){var t=e.children,n=e.innerProps;return l("div",_extends({},O(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function SelectContainer(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return l("div",_extends({},O(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function SingleValue(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return l("div",_extends({},O(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function ValueContainer(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return l("div",_extends({},O(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},ie=Number.isNaN||function ponyfill(e){return"number"==typeof e&&e!=e};function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],r=t[n],!(o===r||ie(o)&&ie(r)))return!1;var o,r;return!0}for(var ae={name:"7pg0cj-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"},se=function A11yText(e){return l("span",_extends({css:ae},e))},ue={guidance:function guidance(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" 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";default:return""}},onChange:function onChange(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function onFocus(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function getArrayIndex(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(o,n),".")}return""},onFilter:function onFilter(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},le=function LiveRegion(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,c=e.id,p=e.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,m=u.inputValue,h=u.isMulti,b=u.isOptionDisabled,v=u.isSearchable,g=u.menuIsOpen,y=u.options,S=u.screenReaderStatus,O=u.tabSelectsValue,C=u.isLoading,w=u["aria-label"],I=u["aria-live"],x=(0,o.useMemo)((function(){return objectSpread2_objectSpread2(objectSpread2_objectSpread2({},ue),d||{})}),[d]),_=(0,o.useMemo)((function(){var e="";if(t&&x.onChange){var n=t.option,o=t.options,r=t.removedValue,i=t.removedValues,a=t.value,u=r||n||function asOption(e){return Array.isArray(e)?null:e}(a),l=u?f(u):"",c=o||i||void 0,p=c?c.map(f):[],d=objectSpread2_objectSpread2({isDisabled:u&&b(u,s),label:l,labels:p},t);e=x.onChange(d)}return e}),[t,x,b,s,f]),P=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&x.onFocus){var a={focused:t,label:f(t),isDisabled:b(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:p};e=x.onFocus(a)}return e}),[n,r,f,b,x,i,s,p]),M=(0,o.useMemo)((function(){var e="";if(g&&y.length&&!C&&x.onFilter){var t=S({count:i.length});e=x.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,g,x,y,S,C]),E="initial-input-focus"===(null==t?void 0:t.action),V=(0,o.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":g?"menu":"input";e=x.guidance({"aria-label":w,context:t,isDisabled:n&&b(n,s),isMulti:h,isSearchable:v,tabSelectsValue:O,isInitialFocus:E})}return e}),[w,n,r,h,b,v,g,x,s,O,E]),T=l(o.Fragment,null,l("span",{id:"aria-selection"},_),l("span",{id:"aria-focused"},P),l("span",{id:"aria-results"},M),l("span",{id:"aria-guidance"},V));return l(o.Fragment,null,l(se,{id:c},E&&T),l(se,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!E&&T))},ce=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pe=new RegExp("["+ce.map((function(e){return e.letters})).join("")+"]","g"),de={},fe=0;fe<ce.length;fe++)for(var me=ce[fe],he=0;he<me.letters.length;he++)de[me.letters[he]]=me.base;var be=function stripDiacritics(e){return e.replace(pe,(function(e){return de[e]}))},ve=function memoizeOne(e,t){void 0===t&&(t=areInputsEqual);var n=null;function memoized(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return memoized.clear=function clear(){n=null},memoized}(be),ge=function trimString(e){return e.replace(/^\s+|\s+$/g,"")},ye=function defaultStringify(e){return"".concat(e.label," ").concat(e.value)},Se=["innerRef"];function DummyInput(e){var t=e.innerRef,n=function removeProps(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=_slicedToArray(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=_slicedToArray(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(_objectWithoutProperties(e,Se),"onExited","in","enter","exit","appear");return l("input",_extends({ref:t},n,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Oe=["boxSizing","height","overflow","paddingRight","position"],Ce={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.cancelable&&e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var we=!("undefined"==typeof window||!window.document||!window.document.createElement),Ie=0,xe={capture:!1,passive:!1};var _e=function blurSelectInput(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Pe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ScrollManager(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function useScrollCapture(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,o.useRef)(!1),u=(0,o.useRef)(!1),l=(0,o.useRef)(0),c=(0,o.useRef)(null),p=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,l=o.scrollTop,p=o.scrollHeight,d=o.clientHeight,f=c.current,m=t>0,h=p-d-l,b=!1;h>t&&s.current&&(r&&r(e),s.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=p,b=!0,s.current=!0):!m&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,b=!0,u.current=!0),b&&function cancelScroll(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,a]),d=(0,o.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,o.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,o.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),h=(0,o.useCallback)((function(e){if(e){var t=!!x&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,d]),b=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,d]);return(0,o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){b(e)}}}),[t,h,b]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function useScrollLock(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)((function(e){if(we){var t=document.body,n=t&&t.style;if(r&&Oe.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Ie<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Ce).forEach((function(e){var t=Ce[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&isTouchDevice()&&(t.addEventListener("touchmove",preventTouchMove,xe),e&&(e.addEventListener("touchstart",preventInertiaScroll,xe),e.addEventListener("touchmove",allowTouchMove,xe))),Ie+=1}}),[r]),u=(0,o.useCallback)((function(e){if(we){var t=document.body,n=t&&t.style;Ie=Math.max(Ie-1,0),r&&Ie<1&&Oe.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&isTouchDevice()&&(t.removeEventListener("touchmove",preventTouchMove,xe),e&&(e.removeEventListener("touchstart",preventInertiaScroll,xe),e.removeEventListener("touchmove",allowTouchMove,xe)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return l(o.Fragment,null,n&&l("div",{onClick:_e,css:Pe}),t((function targetRef(e){i(e),a(e)})))}var Me={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ee=function RequiredInput(e){var t=e.name,n=e.onFocus;return l("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Me,value:"",onChange:function onChange(){}})};function testPlatform(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function isMac(){return testPlatform(/^Mac/i)}function isIOS(){return function isIPhone(){return testPlatform(/^iPhone/i)}()||function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}()}var Ve={clearIndicator:G,container:function containerCSS(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function css(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return objectSpread2_objectSpread2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:$,group:function groupCSS(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function groupHeadingCSS(e,t){var n=e.theme,o=n.colors,r=n.spacing;return objectSpread2_objectSpread2({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function indicatorsContainerCSS(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function indicatorSeparatorCSS(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return objectSpread2_objectSpread2({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function inputCSS(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return objectSpread2_objectSpread2(objectSpread2_objectSpread2({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ee),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function loadingIndicatorCSS(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return objectSpread2_objectSpread2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:L,menu:function menuCSS(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return objectSpread2_objectSpread2((_defineProperty(n={label:"menu"},function alignToControl(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),_defineProperty(n,"position","absolute"),_defineProperty(n,"width","100%"),_defineProperty(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function menuListCSS(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return objectSpread2_objectSpread2({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function menuPortalCSS(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function multiValueCSS(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return objectSpread2_objectSpread2({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function multiValueLabelCSS(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return objectSpread2_objectSpread2({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function multiValueRemoveCSS(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return objectSpread2_objectSpread2({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:R,option:function optionCSS(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return objectSpread2_objectSpread2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function placeholderCSS(e,t){var n=e.theme,o=n.spacing,r=n.colors;return objectSpread2_objectSpread2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function css(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return objectSpread2_objectSpread2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function valueContainerCSS(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return objectSpread2_objectSpread2({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Te={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}},je={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function createFilter(e){return function(t,n){if(t.data.__isNew__)return!0;var o=objectSpread2_objectSpread2({ignoreCase:!0,ignoreAccents:!0,stringify:ye,trim:!0,matchFrom:"any"},e),r=o.ignoreCase,i=o.ignoreAccents,a=o.stringify,s=o.trim,u=o.matchFrom,l=s?ge(n):n,c=s?ge(a(t)):a(t);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=ve(l),c=be(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1}}(),formatGroupLabel:function formatGroupLabel(e){return e.label},getOptionLabel:function getOptionLabel(e){return e.label},getOptionValue:function getOptionValue(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function isOptionDisabled(e){return!!e.isDisabled},loadingMessage:function loadingMessage(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function noOptionsMessage(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function screenReaderStatus(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function toCategorizedOption(e,t,n,o){return{type:"option",data:t,isDisabled:_isOptionDisabled(e,t,n),isSelected:_isOptionSelected(e,t,n),label:Re(e,t),value:Le(e,t),index:o}}function buildCategorizedOptions(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return toCategorizedOption(e,n,t,o)})).filter((function(t){return isFocusable(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=toCategorizedOption(e,n,t,o);return isFocusable(e,i)?i:void 0})).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,_toConsumableArray(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function buildFocusableOptionsWithIds(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,_toConsumableArray(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function isFocusable(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Fe(e)||!i)&&_filterOption(e,{label:a,value:s,data:r},o)}var De=function getFocusedOptionId(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Re=function getOptionLabel(e,t){return e.getOptionLabel(t)},Le=function getOptionValue(e,t){return e.getOptionValue(t)};function _isOptionDisabled(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _isOptionSelected(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Le(e,t);return n.some((function(t){return Le(e,t)===o}))}function _filterOption(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Fe=function shouldHideSelectedOptions(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ke=1,Ae=function(e){!function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}(Select,e);var t=function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}(Select);function Select(e){var n;if(function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Select),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=function isAppleDevice(){return isMac()||isIOS()}(),n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var o=n.props,r=o.onChange,i=o.name;t.name=i,n.ariaOnChange(e,t),r(e,t)},n.setValue=function(e,t,o){var r=n.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(n.setState({inputIsHiddenAfterUpdate:!a}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:o})},n.selectOption=function(e){var t=n.props,o=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=n.state.selectValue,s=r&&n.isOptionSelected(e,a),u=n.isOptionDisabled(e,a);if(s){var l=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void n.ariaOnChange(e,{action:"select-option",option:e,name:i});r?n.setValue([].concat(_toConsumableArray(a),[e]),"select-option",e):n.setValue(e,"select-option")}o&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,o=n.state.selectValue,r=n.getOptionValue(e),i=o.filter((function(e){return n.getOptionValue(e)!==r})),a=valueTernary(t,i,i[0]||null);n.onChange(a,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(valueTernary(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,o=t[t.length-1],r=t.slice(0,t.length-1),i=valueTernary(e,r,r[0]||null);o&&n.onChange(i,{action:"pop-value",removedValue:o})},n.getFocusedOptionId=function(e){return De(n.state.focusableOptionsWithIds,e)},n.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return classNames.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return Re(n.props,e)},n.getOptionValue=function(e){return Le(n.props,e)},n.getStyles=function(e,t){var o=n.props.unstyled,r=Ve[e](t,o);r.boxSizing="border-box";var i=n.props.styles[e];return i?i(r,t):r},n.getClassNames=function(e,t){var o,r;return null===(o=(r=n.props.classNames)[e])||void 0===o?void 0:o.call(r,t)},n.getElementId=function(e){return"".concat(n.state.instancePrefix,"-").concat(e)},n.getComponents=function(){return function defaultComponents(e){return objectSpread2_objectSpread2(objectSpread2_objectSpread2({},re),e.components)}(n.props)},n.buildCategorizedOptions=function(){return buildCategorizedOptions(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:objectSpread2_objectSpread2({value:e},t)})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,o=t.isMulti,r=t.menuIsOpen;n.focusInput(),r?(n.setState({inputIsHiddenAfterUpdate:!o}),n.onMenuClose()):n.openMenu("first"),e.preventDefault()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.preventDefault(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&isDocumentElement(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches,o=t&&t.item(0);o&&(n.initialTouchX=o.clientX,n.initialTouchY=o.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches,o=t&&t.item(0);if(o){var r=Math.abs(o.clientX-n.initialTouchX),i=Math.abs(o.clientY-n.initialTouchY);n.userIsDragging=r>5||i>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=n.props.inputValue,o=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(o,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){if(!n.blockOptionHover&&n.state.focusedOption!==e){var t=n.getFocusableOptions().indexOf(e);n.setState({focusedOption:e,focusedOptionId:t>-1?n.getFocusedOptionId(e):null})}},n.shouldHideSelectedOptions=function(){return Fe(n.props)},n.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),n.focus()},n.onKeyDown=function(e){var t=n.props,o=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,m=f.focusedOption,h=f.focusedValue,b=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;n.focusValue("previous");break;case"ArrowRight":if(!o||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)n.removeValue(h);else{if(!r)return;o?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!l||!p||!m||d&&n.isOptionSelected(m,b))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(n.isComposing)return;n.selectOption(m);break}return;case"Escape":l?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:a}),n.onMenuClose()):s&&i&&n.clearValue();break;case" ":if(a)return;if(!l){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":l?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":l?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!l)return;n.focusOption("pageup");break;case"PageDown":if(!l)return;n.focusOption("pagedown");break;case"Home":if(!l)return;n.focusOption("first");break;case"End":if(!l)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++ke),n.state.selectValue=y(e.value),e.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),r=n.buildFocusableOptions(),i=r.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=r[i],n.state.focusedOptionId=De(o,r[i])}return n}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(Select,[{key:"componentDidMount",value:function componentDidMount(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&scrollIntoView(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function componentDidUpdate(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function onMenuOpen(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function onMenuClose(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function onInputChange(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function focusInput(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function blurInput(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function openMenu(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function focusValue(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function focusOption(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function getTheme(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Te):objectSpread2_objectSpread2(objectSpread2_objectSpread2({},Te),this.props.theme):Te}},{key:"getCommonProps",value:function getCommonProps(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function hasValue(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function hasOptions(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function isClearable(){var e=this.props,isClearable=e.isClearable,t=e.isMulti;return void 0===isClearable?t:isClearable}},{key:"isOptionDisabled",value:function isOptionDisabled(e,t){return _isOptionDisabled(this.props,e,t)}},{key:"isOptionSelected",value:function isOptionSelected(e,t){return _isOptionSelected(this.props,e,t)}},{key:"filterOption",value:function filterOption(e,t){return _filterOption(this.props,e,t)}},{key:"formatOptionLabel",value:function formatOptionLabel(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 formatGroupLabel(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function startListeningComposition(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function stopListeningComposition(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function startListeningToTouch(){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 stopListeningToTouch(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function renderInput(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,u=e.menuIsOpen,l=e.required,c=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,m=this.commonProps,h=r||this.getElementId("input"),b=objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(c,_extends({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},b)):o.createElement(DummyInput,_extends({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,p=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,m=c.inputValue,h=c.placeholder,b=this.state,v=b.selectValue,g=b.focusedValue,y=b.isFocused;if(!this.hasValue()||!p)return m?null:o.createElement(u,_extends({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return v.map((function(t,s){var u=t===g,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,_extends({},l,{components:{Container:r,Label:i,Remove:a},isFocused:u,isDisabled:d,key:c,index:s,removeProps:{onClick:function onClick(){return e.removeValue(t)},onTouchEnd:function onTouchEnd(){return e.removeValue(t)},onMouseDown:function onMouseDown(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var S=v[0];return o.createElement(s,_extends({},l,{data:S,isDisabled:d}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function renderClearIndicator(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,_extends({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,_extends({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,_extends({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,_extends({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function renderMenu(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,b=f.isLoading,v=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,S=f.menuIsOpen,O=f.menuPlacement,C=f.menuPosition,w=f.menuPortalTarget,I=f.menuShouldBlockScroll,x=f.menuShouldScrollIntoView,_=f.noOptionsMessage,P=f.onMenuScrollToTop,M=f.onMenuScrollToBottom;if(!S)return null;var E,V=function render(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,u=t.label,l=t.value,f=d===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),v={id:b,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(c,_extends({},p,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:b,label:u,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return o.createElement(n,_extends({},p,{key:u,data:i,options:a,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(b){var j=v({inputValue:h});if(null===j)return null;E=o.createElement(u,p,j)}else{var D=_({inputValue:h});if(null===D)return null;E=o.createElement(l,p,D)}var R={minMenuHeight:g,maxMenuHeight:y,menuPlacement:O,menuPosition:C,menuShouldScrollIntoView:x},L=o.createElement(T,_extends({},p,R),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return o.createElement(i,_extends({},p,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),o.createElement(ScrollManager,{captureEnabled:m,onTopArrive:P,onBottomArrive:M,lockEnabled:I},(function(t){return o.createElement(a,_extends({},p,{innerRef:function innerRef(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:u,focusedOption:d}),E)})))}));return w||"fixed"===C?o.createElement(s,_extends({},p,{appendTo:w,controlElement:this.controlRef,menuPlacement:O,menuPosition:C}),L):L}},{key:"renderFormField",value:function renderFormField(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(Ee,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var p=u[0]?this.getOptionValue(u[0]):"";return o.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return o.createElement(le,_extends({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function render(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,_extends({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),o.createElement(t,_extends({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:c}),o.createElement(i,_extends({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,_extends({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=t.instancePrefix,l=e.options,c=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,m=y(c),h={};if(n&&(c!==n.value||l!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var b=p?function buildFocusableOptions(e,t){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(e,t))}(e,m):[],v=p?buildFocusableOptionsWithIds(buildCategorizedOptions(e,m),"".concat(u,"-option")):[],g=o?function getNextFocusedValue(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,S=function getNextFocusedOption(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);h={selectValue:m,focusedOption:S,focusedOptionId:De(v,S),focusableOptionsWithIds:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,w=a&&s;return a&&!w&&(C={value:valueTernary(f,m,m[0]||null),options:m,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({},h),O),{},{prevProps:e,ariaSelection:C,prevWasFocused:w})}}]),Select}(o.Component);Ae.defaultProps=je;var He=(0,o.forwardRef)((function(e,t){var n=function useStateManager(e){var t=e.defaultInputValue,n=void 0===t?"":t,i=e.defaultMenuIsOpen,a=void 0!==i&&i,s=e.defaultValue,u=void 0===s?null:s,l=e.inputValue,c=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,h=e.value,b=_objectWithoutProperties(e,r),v=_slicedToArray((0,o.useState)(void 0!==l?l:n),2),g=v[0],y=v[1],S=_slicedToArray((0,o.useState)(void 0!==c?c:a),2),O=S[0],C=S[1],w=_slicedToArray((0,o.useState)(void 0!==h?h:u),2),I=w[0],x=w[1],_=(0,o.useCallback)((function(e,t){"function"==typeof p&&p(e,t),x(e)}),[p]),P=(0,o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),M=(0,o.useCallback)((function(){"function"==typeof m&&m(),C(!0)}),[m]),E=(0,o.useCallback)((function(){"function"==typeof f&&f(),C(!1)}),[f]),V=void 0!==l?l:g,T=void 0!==c?c:O,j=void 0!==h?h:I;return objectSpread2_objectSpread2(objectSpread2_objectSpread2({},b),{},{inputValue:V,menuIsOpen:T,onChange:_,onInputChange:P,onMenuClose:E,onMenuOpen:M,value:j})}(e);return o.createElement(Ae,_extends({ref:t},n))})),Ne=He}}]);