(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["accessibleAutocomplete"]=t():e["accessibleAutocomplete"]=t()})(window,function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=38)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",x=function(e,t,n){var r,o,i,u,l=e&x.F,s=e&x.G,a=e&x.S,c=e&x.P,p=e&x.B,f=s?m:a?m[t]||(m[t]={}):(m[t]||{})[g],d=s?v:v[t]||(v[t]={}),h=d[g]||(d[g]={});for(r in s&&(n=t),n)i=((o=!l&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&_(f,r,i,e&x.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return E});var s=function s(){},E={},a=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2o;)u(r,n=t[o++])&&(~s(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(49);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(37),n(31),n(35),n(30),n(36),n(55),n(58);var G=n(5),J=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t=r;this.setState({query:l}),i||!s&&a&&c?o(l,function(e){var t=0=u,A=this.props.showNoOptionsFound&&k&&I&&M&&P,j=n+"__wrapper",T=n+"__input",D=null!==x?" "+T+"--focused":"",L=this.props.showAllValues?" "+T+"--show-all-values":" "+T+"--default",B=n+"__dropdown-arrow-down",F=-1!==x&&null!==x,R=n+"__menu",U=R+"--"+r,V=R+"--"+(O||A?"visible":"hidden"),q=n+"__option",K=n+"__list",W=n+"__hint",$=this.templateInputValue(C[E]),H=$&&0===$.toLowerCase().indexOf(S.toLowerCase())&&N?S+$.substr(S.length):"",Q=Y&&H;return p&&"string"==typeof(e=_({className:B}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:j,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,G.createElement)(J["default"],{length:C.length,queryLength:S.length,minQueryLength:u,selectedOption:this.templateInputValue(C[E]),selectedOptionIndex:E,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),Q&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:W,readonly:!0,tabIndex:"-1",value:H})),(0,G.createElement)("input",X({"aria-activedescendant":!!F&&i+"__option--"+x,"aria-owns":i+"__listbox",autoComplete:"off",className:""+T+D+L,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:l,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:S},b)),e,(0,G.createElement)("ul",{className:R+" "+U+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},C.map(function(e,t){var n=(-1===x?E===t:x===t)&&null===w?" "+q+"--focused":"",r=t%2?" "+q+"--odd":"";return(0,G.createElement)("li",{"aria-selected":x===t,className:""+q+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+K,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{"aria-selected":"true","aria-label":o.templateSuggestion(e.textContent)+", selected","aria-describedBy":i+"__list-item-description",className:""+q,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)},id:i+"__option--"+t,key:t,onClick:function(e){return o.handleSelectedOptionClick(e,t)},onKeyDown:function(e){return o.handleSelectedOptionKeyDown(e,t)},role:"option",tabIndex:"0"})}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())),c&&(0,G.createElement)("span",{"class":"autocomplete__list-item-description",id:i+"__list-item-description"},y()))},e}(G.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,r){var o=r(9),i=r(53),u=r(28),l=r(26)("IE_PROTO"),s=function(){},a="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("