govuk_publishing_components 12.13.0 → 12.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js +37 -0
  3. data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +6 -5
  4. data/app/assets/javascripts/govuk_publishing_components/components/copy-to-clipboard.js +15 -15
  5. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +2 -4
  6. data/app/assets/javascripts/govuk_publishing_components/components/initial-focus.js +8 -8
  7. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +3 -3
  8. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss +16 -0
  10. data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +24 -0
  11. data/app/views/govuk_publishing_components/components/docs/accessible_autocomplete.yml +42 -0
  12. data/config/initializers/assets.rb +1 -0
  13. data/lib/govuk_publishing_components/version.rb +1 -1
  14. data/node_modules/accessible-autocomplete/CHANGELOG.md +269 -0
  15. data/node_modules/accessible-autocomplete/CONTRIBUTING.md +150 -0
  16. data/node_modules/accessible-autocomplete/LICENSE.txt +20 -0
  17. data/node_modules/accessible-autocomplete/Procfile +1 -0
  18. data/node_modules/accessible-autocomplete/README.md +416 -0
  19. data/node_modules/accessible-autocomplete/accessibility-criteria.md +42 -0
  20. data/node_modules/accessible-autocomplete/app.json +15 -0
  21. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.css +1 -0
  22. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +2 -0
  23. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +1 -0
  24. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +2 -0
  25. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +1 -0
  26. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +2 -0
  27. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +1 -0
  28. data/node_modules/accessible-autocomplete/examples/form.html +671 -0
  29. data/node_modules/accessible-autocomplete/examples/index.html +616 -0
  30. data/node_modules/accessible-autocomplete/examples/preact/index.html +346 -0
  31. data/node_modules/accessible-autocomplete/examples/react/index.html +347 -0
  32. data/node_modules/accessible-autocomplete/package.json +192 -0
  33. data/node_modules/accessible-autocomplete/preact.js +1 -0
  34. data/node_modules/accessible-autocomplete/react.js +1 -0
  35. data/node_modules/accessible-autocomplete/scripts/check-staged.js +14 -0
  36. data/node_modules/accessible-autocomplete/src/autocomplete.css +141 -0
  37. data/node_modules/accessible-autocomplete/src/autocomplete.js +524 -0
  38. data/node_modules/accessible-autocomplete/src/dropdown-arrow-down.js +11 -0
  39. data/node_modules/accessible-autocomplete/src/status.js +80 -0
  40. data/node_modules/accessible-autocomplete/src/wrapper.js +60 -0
  41. data/node_modules/accessible-autocomplete/test/functional/dropdown-arrow-down.js +44 -0
  42. data/node_modules/accessible-autocomplete/test/functional/index.js +485 -0
  43. data/node_modules/accessible-autocomplete/test/functional/wrapper.js +267 -0
  44. data/node_modules/accessible-autocomplete/test/integration/index.js +188 -0
  45. data/node_modules/accessible-autocomplete/test/karma.config.js +42 -0
  46. data/node_modules/accessible-autocomplete/test/wdio.config.js +80 -0
  47. data/node_modules/accessible-autocomplete/webpack.config.babel.js +193 -0
  48. data/node_modules/preact/LICENSE +21 -0
  49. data/node_modules/preact/README.md +580 -0
  50. data/node_modules/preact/debug.js +112 -0
  51. data/node_modules/preact/debug.js.map +1 -0
  52. data/node_modules/preact/debug/index.js +121 -0
  53. data/node_modules/preact/devtools.js +403 -0
  54. data/node_modules/preact/devtools.js.map +1 -0
  55. data/node_modules/preact/devtools/devtools.js +395 -0
  56. data/node_modules/preact/devtools/index.js +4 -0
  57. data/node_modules/preact/dist/preact.d.ts +891 -0
  58. data/node_modules/preact/dist/preact.dev.js +718 -0
  59. data/node_modules/preact/dist/preact.dev.js.map +1 -0
  60. data/node_modules/preact/dist/preact.js +408 -0
  61. data/node_modules/preact/dist/preact.js.flow +13 -0
  62. data/node_modules/preact/dist/preact.js.map +1 -0
  63. data/node_modules/preact/dist/preact.min.js +2 -0
  64. data/node_modules/preact/dist/preact.min.js.map +1 -0
  65. data/node_modules/preact/dist/preact.mjs +715 -0
  66. data/node_modules/preact/dist/preact.mjs.map +1 -0
  67. data/node_modules/preact/package.json +218 -0
  68. data/node_modules/preact/src/clone-element.js +18 -0
  69. data/node_modules/preact/src/component.js +90 -0
  70. data/node_modules/preact/src/constants.js +17 -0
  71. data/node_modules/preact/src/dom/index.js +138 -0
  72. data/node_modules/preact/src/h.js +86 -0
  73. data/node_modules/preact/src/options.js +22 -0
  74. data/node_modules/preact/src/preact.d.ts +891 -0
  75. data/node_modules/preact/src/preact.js +26 -0
  76. data/node_modules/preact/src/preact.js.flow +13 -0
  77. data/node_modules/preact/src/render-queue.js +28 -0
  78. data/node_modules/preact/src/render.js +22 -0
  79. data/node_modules/preact/src/util.js +19 -0
  80. data/node_modules/preact/src/vdom/component-recycler.js +48 -0
  81. data/node_modules/preact/src/vdom/component.js +296 -0
  82. data/node_modules/preact/src/vdom/diff.js +336 -0
  83. data/node_modules/preact/src/vdom/index.js +54 -0
  84. data/node_modules/preact/src/vnode.js +9 -0
  85. data/node_modules/preact/typings.json +5 -0
  86. metadata +78 -2
@@ -0,0 +1,42 @@
1
+ # Accessibility Acceptance Criteria
2
+
3
+ Authors: [Theodor Vararu](https://github.com/tvararu), [Léonie Watson](https://github.com/LJWatson), [Ed Horsford](https://github.com/edwardhorsford).
4
+
5
+ ## What's this?
6
+
7
+ This describes the necessary behaviours that an autocomplete needs to meet to be usable by assistive technologies.
8
+
9
+ They are useful if you are evaluating `accessible-autocomplete`, or a different autocomplete solution.
10
+
11
+ ## User story
12
+
13
+ > As an Assistive Technology (AT) user, I want to be able to search using autocomplete, so I can find and choose a matching result easily and accurately.
14
+
15
+ ## Acceptance criteria
16
+
17
+ The field with autocomplete must:
18
+
19
+ 1. Be focusable with a keyboard
20
+ 1. Indicate when it has keyboard focus
21
+ 1. Inform the user that it is an editable field
22
+ 1. Inform the user if there is a pre-filled value
23
+ 1. Inform the user that autocomplete is available
24
+ 1. Explain how to use autocomplete
25
+ 1. Inform the user that content has been expanded
26
+ 1. Inform the user when there are matches, or if there are no matches
27
+ 1. (Optional) Inform the user how many matches are currently available
28
+ 1. Inform the user as the number of matches changes
29
+ 1. Enable the user to navigate the available matches using touch or keyboard
30
+ 1. Inform the user when a match is selected
31
+ 1. (Optional) Inform the user which number the currently selected match is (1 of 3 for example)
32
+ 1. Inform the user if a match is pre-selected
33
+ 1. Enable the user to confirm the selected match
34
+ 1. Inform the user when a match is confirmed
35
+ 1. Return focus to the editable field when a selected match is confirmed
36
+
37
+ Helpful definitions:
38
+
39
+ - `navigate`: When the user selects between matches
40
+ - `selected`: When one of the matches is highlighted, and ready to be confirmed, for example by pressing `enter`
41
+ - `pre-selected`: When an item is selected on the user's behalf without them navigating to it
42
+ - `confirmed`: When one of the matches has been confirmed, and will be submitted as a value of the parent form
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "accessible-autocomplete",
3
+ "scripts": {
4
+ },
5
+ "env": {
6
+ },
7
+ "formation": {
8
+ },
9
+ "addons": [
10
+
11
+ ],
12
+ "buildpacks": [
13
+
14
+ ]
15
+ }
@@ -0,0 +1 @@
1
+ .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;border:2px solid;border-radius:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:0;width:100%}.autocomplete__input{background-color:transparent;position:relative}.autocomplete__hint{color:#bfc1c3;position:absolute}.autocomplete__input--default{padding:4px}.autocomplete__input--focused{outline-offset:0;outline:3px solid #ffbf47}.autocomplete__input--show-all-values{padding:4px 34px 4px 4px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#34384b;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #bfc1c3;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#005ea5;border-color:#005ea5;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:16px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:4px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:19px;line-height:1.31579}}
@@ -0,0 +1,2 @@
1
+ (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=37)}([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,a=e&x.G,s=e&x.S,c=e&x.P,p=e&x.B,f=a?m:s?m[t]||(m[t]={}):(m[t]||{})[g],d=a?v:v[t]||(v[t]={}),h=d[g]||(d[g]={});for(r in a&&(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 a=function a(){},E={},s=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)s.push(arguments[i]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((r=s.pop())&&r.pop!==undefined)for(i=r.length;i--;)s.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var l=new a;return l.nodeName=e,l.children=u,l.attributes=null==t?undefined:t,l.key=null==t?undefined:t.key,E.vnode!==undefined&&E.vnode(l),l}function N(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,N(N({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function l(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(E.debounceRendering||o)(f)}function f(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&V(e)}function k(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function I(e){var t=N({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n!==undefined)for(var r in n)t[r]===undefined&&(t[r]=n[r]);return t}function P(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,d,u):e.removeEventListener(t,d,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(a){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function d(e){return this._listeners[e.type](E.event&&E.event(e)||e)}var M=[],j=0,A=!1,T=!1;function L(){for(var e;e=M.pop();)E.afterMount&&E.afterMount(e),e.componentDidMount&&e.componentDidMount()}function B(e,t,n,r,o,i){j++||(A=null!=o&&o.ownerSVGElement!==undefined,T=null!=e&&!("__preactattr_"in e));var u=F(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--j||(T=!1,i||L()),u}function F(e,t,n,r,o){var i=e,u=A;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&e.splitText!==undefined&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),D(e,!0))),i["__preactattr_"]=!0,i;var l=t.nodeName;if("function"==typeof l)return function d(e,t,n,r){var o=e&&e._component,i=o,u=e,l=o&&e._componentConstructor===t.nodeName,a=l,s=I(t);for(;o&&!a&&(o=o._parentComponent);)a=o.constructor===t.nodeName;o&&a&&(!r||o._component)?(U(o,s,3,n,r),e=o.base):(i&&!l&&(q(i),e=u=null),o=R(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,u=null),U(o,s,1,n,r),e=o.base,u&&e!==u&&(u._component=null,D(u,!1)));return e}(e,t,n,r);if(A="svg"===l||"foreignObject"!==l&&A,l=String(l),(!e||!k(e,l))&&(i=function h(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(l,A),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),D(e,!0)}var a=i.firstChild,s=i["__preactattr_"],c=t.children;if(null==s){s=i["__preactattr_"]={};for(var p=i.attributes,f=p.length;f--;)s[p[f].name]=p[f].value}return!T&&c&&1===c.length&&"string"==typeof c[0]&&null!=a&&a.splitText!==undefined&&null==a.nextSibling?a.nodeValue!=c[0]&&(a.nodeValue=c[0]):(c&&c.length||null!=a)&&function S(e,t,n,r,o){var i,u,l,a,s,c=e.childNodes,p=[],f={},d=0,h=0,m=c.length,v=0,y=t?t.length:0;if(0!==m)for(var _=0;_<m;_++){var b=c[_],g=b["__preactattr_"],x=y&&g?b._component?b._component.__key:g.key:null;null!=x?(d++,f[x]=b):(g||(b.splitText!==undefined?!o||b.nodeValue.trim():o))&&(p[v++]=b)}if(0!==y)for(var _=0;_<y;_++){a=t[_],s=null;var x=a.key;if(null!=x)d&&f[x]!==undefined&&(s=f[x],f[x]=undefined,d--);else if(h<v)for(i=h;i<v;i++)if(p[i]!==undefined&&(w=u=p[i],C=o,"string"==typeof(O=a)||"number"==typeof O?w.splitText!==undefined:"string"==typeof O.nodeName?!w._componentConstructor&&k(w,O.nodeName):C||w._componentConstructor===O.nodeName)){s=u,p[i]=undefined,i===v-1&&v--,i===h&&h++;break}s=F(s,a,n,r),l=c[_],s&&s!==e&&s!==l&&(null==l?e.appendChild(s):s===l.nextSibling?P(l):e.insertBefore(s,l))}var w,O,C;if(d)for(var _ in f)f[_]!==undefined&&D(f[_],!1);for(;h<=v;)(s=p[v--])!==undefined&&D(s,!1)}(i,c,n,r,T||null!=s.dangerouslySetInnerHTML),function m(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||v(e,r,n[r],n[r]=undefined,A);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||v(e,r,n[r],n[r]=t[r],A)}(i,t.attributes,s),A=u,i}function D(e,t){var n=e._component;n?q(n):(null!=e["__preactattr_"]&&e["__preactattr_"].ref&&e["__preactattr_"].ref(null),!1!==t&&null!=e["__preactattr_"]||P(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;D(e,!0),e=t}}var m=[];function R(e,t,n){var r,o=m.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(m[o].constructor===e)return r.nextBase=m[o].nextBase,m.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function U(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,"undefined"==typeof e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===E.syncComponentUpdates&&e.base?l(e):V(e,1,o)),e.__ref&&e.__ref(e))}function V(e,t,n,r){if(!e._disable){var o,i,u,l=e.props,a=e.state,s=e.context,c=e.prevProps||l,p=e.prevState||a,f=e.prevContext||s,d=e.base,h=e.nextBase,m=d||h,v=e._component,y=!1,_=f;if(e.constructor.getDerivedStateFromProps&&(a=N(N({},a),e.constructor.getDerivedStateFromProps(l,a)),e.state=a),d&&(e.props=c,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,a,s)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(l,a,s),e.props=l,e.state=a,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(l,a,s),e.getChildContext&&(s=N(N({},s),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,p));var b,g,x=o&&o.nodeName;if("function"==typeof x){var w=I(o);(i=v)&&i.constructor===x&&w.key==i.__key?U(i,w,1,s,!1):(b=i,e._component=i=R(x,w,s),i.nextBase=i.nextBase||h,i._parentComponent=e,U(i,w,0,s,!1),V(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function B(t,n,r,o,i,u){j++||(A=null!=i&&i.ownerSVGElement!==undefined,T=null!=t&&!("__preactattr_"in t));var l=F(t,n,r,o,u);return i&&l.parentNode!==i&&i.appendChild(l),--j||(T=!1,u||L()),l}(u,o,s,n||!d,m&&m.parentNode,!0));if(m&&g!==m&&i!==v){var O=m.parentNode;O&&g!==O&&(O.replaceChild(g,m),b||(m._component=null,D(m,!1)))}if(b&&q(b),(e.base=g)&&!r){for(var C=e,S=e;S=S._parentComponent;)(C=S).base=g;g._component=C,g._componentConstructor=C.constructor}}for(!d||n?M.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,p,_),E.afterUpdate&&E.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);j||r||L()}}function q(e){E.beforeUnmount&&E.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?q(n):t&&(t["__preactattr_"]&&t["__preactattr_"].ref&&t["__preactattr_"].ref(null),P(e.nextBase=t),m.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return B(n,e,{},!1,t,!1)}N(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=N(N({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),l(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),V(this,2)},render:function b(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:f,options:E};t["default"]=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(40);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(9),i=n(38),u=n(39),l=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(41)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),l=n(17),a=n(10)("src"),r="toString",o=Function[r],s=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(l(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(l(n,a)||u(n,a,e[t]?""+e[t]:s.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[a]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(42),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(21),s=n(24),c=n(43);e.exports=function(l){return function(e,t,n){var r,o=a(e),i=s(o.length),u=c(n,i);if(l&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((l||u in o)&&o[u]===t)return l||u||0;return!l&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),x=n(29),w=n(24),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,_=e||r;return function(e,t,n){for(var r,o,i=x(e),u=g(i),l=b(t,n,3),a=w(u.length),s=0,c=f?_(e,a):d?_(e,0):undefined;s<a;s++)if((y||s in u)&&(o=l(r=u[s],s,i),p))if(f)c[s]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return s;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var r=n(5),o=function a(e){return e&&e.__esModule?e:{"default":e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o["default"],e),e.element)}var u=function u(n){return function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText})}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e&&(e.selected=!0)},n.selectElement.value||n.defaultValue===undefined){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.defaultValue=t.textContent||t.innerText}n.name===undefined&&(n.name=""),n.id===undefined&&(n.selectElement.id===undefined?n.id="":n.id=n.selectElement.id),n.autoselect===undefined&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),i(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var l=i;t["default"]=l},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(20),d=n(45),h=n(46),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var l,a=v(arguments[o++]),s=i?f(a).concat(i(a)):f(a),c=s.length,p=0;p<c;)u.call(a,l=s[p++])&&(n[l]=a[l]);return n}:o},function(e,t,n){var u=n(17),l=n(21),a=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=l(e),o=0,i=[];for(n in r)n!=s&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~a(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(48);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){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},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(36),n(31),n(35),n(30),n(55),n(58);var $=n(5),H=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{"default":e}}function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,l={13:"enter",27:"escape",32:"space",38:"up",40:"down"},z=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var a=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var l=-1===r,a=u&&null===t.focused;if(l&&a){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,l=n.selected,a=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&a||!(c||s)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[l])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,l=n.selected,a=-1!==r;if(clearTimeout(this.$blurInput),!a){var s=o&&f(),c=f()?u:this.templateInputValue(i[l]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:s,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),l=e.target.value,a=0===l.length,s=this.state.query.length!==l.length,c=l.length>=r;this.setState({query:l}),i||!a&&s&&c?o(l,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!a&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(l[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,l=t.name,a=t.placeholder,s=t.required,c=t.showAllValues,p=t.tNoResults,f=t.tStatusQueryTooShort,d=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,_=y.focused,b=y.hovered,g=y.menuOpen,x=y.options,w=y.query,O=y.selected,C=this.hasAutoselect(),S=-1===_,E=0===x.length,N=0!==w.length,k=w.length>=u,I=this.props.showNoOptionsFound&&S&&E&&N&&k,P=n+"__wrapper",M=n+"__input",j=null!==_?" "+M+"--focused":"",A=this.props.showAllValues?" "+M+"--show-all-values":" "+M+"--default",T=n+"__dropdown-arrow-down",L=-1!==_&&null!==_,B=n+"__menu",F=B+"--"+r,D=B+"--"+(g||I?"visible":"hidden"),R=n+"__option",U=n+"__hint",V=this.templateInputValue(x[O]),q=V&&0===V.toLowerCase().indexOf(w.toLowerCase())&&C?w+V.substr(w.length):"",W=z&&q;return c&&"string"==typeof(e=v({className:T}))&&(e=(0,$.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,$.createElement)("div",{className:P,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":g?"true":"false"},(0,$.createElement)(H["default"],{length:x.length,queryLength:w.length,minQueryLength:u,selectedOption:this.templateInputValue(x[O]),selectedOptionIndex:O,tQueryTooShort:f,tNoResults:d,tSelectedOption:h,tResults:m}),W&&(0,$.createElement)("span",null,(0,$.createElement)("input",{className:U,readonly:!0,tabIndex:"-1",value:q})),(0,$.createElement)("input",Q({"aria-activedescendant":!!L&&i+"__option--"+_,"aria-owns":i+"__listbox",autoComplete:"off",className:""+M+j+A,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function K(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:l,placeholder:a,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:s,value:w})),e,(0,$.createElement)("ul",{className:B+" "+F+" "+D,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},x.map(function(e,t){var n=(-1===_?O===t:_===t)&&null===b?" "+R+"--focused":"",r=t%2?" "+R+"--odd":"";return(0,$.createElement)("li",{"aria-selected":_===t,className:""+R+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"})}),I&&(0,$.createElement)("li",{className:R+" "+R+"--no-results"},p())))},e}($.Component);(t["default"]=a).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r["default"]}},function(e,t,r){var o=r(9),i=r(53),u=r(28),l=r(26)("IE_PROTO"),a=function(){},s="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("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[s][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[s]=o(e),n=new a,a[s]=null,n[l]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(8),l=n(9),a=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){l(e);for(var n,r=a(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),l=n(57),a=[].slice,s={};e.exports=Function.bind||function(t){var n=i(this),r=a.call(arguments,1),o=function(){var e=r.concat(a.call(arguments));return this instanceof o?function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(n,e.length,e):l(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var l=n(7),a=n(16),s=n(4),c=n(12),p=n(34);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];s(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(a(String.prototype,t,i),l(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(36);var m=n(5);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,l=e.tNoResults,a=e.tSelectedOption,s=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?a(o,t,i):"",h=null;return h=p?u(r):f?l():s(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(5),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])["default"]});
2
+ //# sourceMappingURL=accessible-autocomplete.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://accessibleAutocomplete/webpack/universalModuleDefinition","webpack://accessibleAutocomplete/webpack/bootstrap","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_export.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_global.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fails.js","webpack://accessibleAutocomplete/../node_modules/preact/dist/preact.mjs","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_core.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_hide.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_an-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_uid.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_defined.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_redefine.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_has.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ctx.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_a-function.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_cof.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-length.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-array.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_wks.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://accessibleAutocomplete/./wrapper.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_library.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.is-array.js","webpack://accessibleAutocomplete/./autocomplete.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_html.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_invoke.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://accessibleAutocomplete/./status.js","webpack://accessibleAutocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","__webpack_exports__","h","cloneElement","Component","render","rerender","options","VNode","stack","EMPTY_CHILDREN","nodeName","attributes","lastSimple","child","simple","children","arguments","length","push","pop","String","vnode","extend","obj","props","defer","Promise","resolve","then","setTimeout","slice","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","debounceRendering","list","renderComponent","isNamedNode","node","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","removeNode","parentNode","removeChild","setAccessor","old","isSvg","style","cssText","test","innerHTML","__html","useCapture","replace","substring","addEventListener","eventProxy","removeEventListener","_listeners","removeAttribute","removeAttributeNS","setAttributeNS","setAttribute","className","this","event","mounts","diffLevel","isSvgMode","hydrating","flushMounts","afterMount","componentDidMount","diff","dom","context","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","prevSvgMode","splitText","_component","nodeValue","document","createTextNode","replaceChild","recollectNodeTree","vnodeName","buildComponentFromVNode","originalComponent","oldDom","isDirectOwner","_componentConstructor","isOwner","_parentComponent","constructor","setComponentProps","base","unmountComponent","createComponent","nextBase","createNode","createElementNS","createElement","firstChild","fc","vchildren","nextSibling","innerDiffNode","isHydrating","j","f","vchild","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","_child","__key","trim","insertBefore","dangerouslySetInnerHTML","diffAttributes","attrs","unmountOnly","ref","removeChildren","lastChild","next","previousSibling","recyclerComponents","Ctor","inst","doRender","splice","state","renderMode","_disable","__ref","getDerivedStateFromProps","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","rendered","cbase","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","toUnmount","childComponent","childProps","baseParent","componentRef","unshift","componentDidUpdate","afterUpdate","_renderCallbacks","beforeUnmount","componentWillUnmount","inner","merge","setState","callback","forceUpdate","preact","version","__e","dP","createDesc","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","assign","is","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","aFunction","fn","that","b","apply","$keys","enumBugKeys","keys","IObject","defined","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","ceil","floor","isNaN","shared","uid","SHARED","store","copyright","FProto","nameRE","configurable","match","$map","map","callbackfn","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","result","Array","isArray","USE_SYMBOL","$indexOf","$native","indexOf","NEGATIVE_ZERO","searchElement","_preact","_autocomplete","_interopRequireDefault","accessibleAutocomplete","element","Error","createSimpleEngine","values","query","syncResults","filter","enhanceSelectElement","configurationOptions","selectElement","availableOptions","option","preserveNullOptions","textContent","innerText","onConfirm","requestedOption","selected","defaultValue","selectedIndex","autoselect","display","valueOf","bitmap","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","speciesConstructor","original","SPECIES","C","$filter","_status","_dropdownArrowDown","keyCodes","13","27","32","38","40","hasPointerEvents","pointerEvents","isIosDevice","navigator","userAgent","Autocomplete","_this","_Component","elementReferences","focused","hovered","clicked","menuOpen","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","clearTimeout","$pollInput","$blurInput","_this2","inputReference","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","keyCode","isPrintableKeyCode","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","dropdownArrowFactory","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","hintClassName","selectedOptionText","hintValue","substr","showHint","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","onMouseLeave","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","DropdownArrowDown","dPs","Empty","createDict","iframeDocument","iframe","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","invoke","arraySlice","factories","partArgs","bound","args","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,GAAAH,GACA,iBAAAC,QACAA,QAAA,0BAAAD,IAEAD,EAAA,0BAAAC,KARA,CASCK,OAAA,WACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAP,QAGA,IAAAC,EAAAI,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAT,QAAA,IAUA,OANAU,EAAAH,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAQ,GAAA,EAGAR,EAAAD,QA0DA,OArDAM,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAd,EAAAe,EAAAC,GACAV,EAAAW,EAAAjB,EAAAe,IACAG,OAAAC,eAAAnB,EAAAe,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAtB,GACA,oBAAAuB,eAAAC,aACAN,OAAAC,eAAAnB,EAAAuB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAAnB,EAAA,cAAiDyB,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GA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niversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"accessibleAutocomplete\"] = factory();\n\telse\n\t\troot[\"accessibleAutocomplete\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 37);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var VNode = function VNode() {};\n\nvar options = {};\n\nvar stack = [];\n\nvar EMPTY_CHILDREN = [];\n\nfunction h(nodeName, attributes) {\n\tvar children = EMPTY_CHILDREN,\n\t lastSimple,\n\t child,\n\t simple,\n\t i;\n\tfor (i = arguments.length; i-- > 2;) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children != null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop !== undefined) {\n\t\t\tfor (i = child.length; i--;) {\n\t\t\t\tstack.push(child[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof child === 'boolean') child = null;\n\n\t\t\tif (simple = typeof nodeName !== 'function') {\n\t\t\t\tif (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length - 1] += child;\n\t\t\t} else if (children === EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t} else {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tvar p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes == null ? undefined : attributes;\n\tp.key = attributes == null ? undefined : attributes.key;\n\n\tif (options.vnode !== undefined) options.vnode(p);\n\n\treturn p;\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\nvar items = [];\n\nfunction enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component) == 1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\nfunction rerender() {\n\tvar p,\n\t list = items;\n\titems = [];\n\twhile (p = list.pop()) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n\nfunction isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\treturn node.splitText !== undefined;\n\t}\n\tif (typeof vnode.nodeName === 'string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor === vnode.nodeName;\n}\n\nfunction isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\nfunction getNodeProps(vnode) {\n\tvar props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tvar defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps !== undefined) {\n\t\tfor (var i in defaultProps) {\n\t\t\tif (props[i] === undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n\nfunction createNode(nodeName, isSvg) {\n\tvar node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\nfunction removeNode(node) {\n\tvar parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nfunction setAccessor(node, name, old, value, isSvg) {\n\tif (name === 'className') name = 'class';\n\n\tif (name === 'key') {} else if (name === 'ref') {\n\t\tif (old) old(null);\n\t\tif (value) value(node);\n\t} else if (name === 'class' && !isSvg) {\n\t\tnode.className = value || '';\n\t} else if (name === 'style') {\n\t\tif (!value || typeof value === 'string' || typeof old === 'string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value === 'object') {\n\t\t\tif (typeof old !== 'string') {\n\t\t\t\tfor (var i in old) {\n\t\t\t\t\tif (!(i in value)) node.style[i] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (var i in value) {\n\t\t\t\tnode.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n\t\t\t}\n\t\t}\n\t} else if (name === 'dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t} else if (name[0] == 'o' && name[1] == 'n') {\n\t\tvar useCapture = name !== (name = name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t} else {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {\n\t\ttry {\n\t\t\tnode[name] = value == null ? '' : value;\n\t\t} catch (e) {}\n\t\tif ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);\n\t} else {\n\t\tvar ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n\n\t\tif (value == null || value === false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);\n\t\t} else if (typeof value !== 'function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nvar mounts = [];\n\nvar diffLevel = 0;\n\nvar isSvgMode = false;\n\nvar hydrating = false;\n\nfunction flushMounts() {\n\tvar c;\n\twhile (c = mounts.pop()) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\tif (!diffLevel++) {\n\t\tisSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n\t\thydrating = dom != null && !('__preactattr_' in dom);\n\t}\n\n\tvar ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\tif (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\n\tif (! --diffLevel) {\n\t\thydrating = false;\n\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tvar out = dom,\n\t prevSvgMode = isSvgMode;\n\n\tif (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\tif (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\tif (dom.nodeValue != vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t} else {\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout['__preactattr_'] = true;\n\n\t\treturn out;\n\t}\n\n\tvar vnodeName = vnode.nodeName;\n\tif (typeof vnodeName === 'function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\tisSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\twhile (dom.firstChild) {\n\t\t\t\tout.appendChild(dom.firstChild);\n\t\t\t}\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\tvar fc = out.firstChild,\n\t props = out['__preactattr_'],\n\t vchildren = vnode.children;\n\n\tif (props == null) {\n\t\tprops = out['__preactattr_'] = {};\n\t\tfor (var a = out.attributes, i = a.length; i--;) {\n\t\t\tprops[a[i].name] = a[i].value;\n\t\t}\n\t}\n\n\tif (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n\t\tif (fc.nodeValue != vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t} else if (vchildren && vchildren.length || fc != null) {\n\t\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n\t\t}\n\n\tdiffAttributes(out, vnode.attributes, props);\n\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tvar originalChildren = dom.childNodes,\n\t children = [],\n\t keyed = {},\n\t keyedLen = 0,\n\t min = 0,\n\t len = originalChildren.length,\n\t childrenLen = 0,\n\t vlen = vchildren ? vchildren.length : 0,\n\t j,\n\t c,\n\t f,\n\t vchild,\n\t child;\n\n\tif (len !== 0) {\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar _child = originalChildren[i],\n\t\t\t props = _child['__preactattr_'],\n\t\t\t key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n\t\t\tif (key != null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = _child;\n\t\t\t} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = _child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen !== 0) {\n\t\tfor (var i = 0; i < vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\tvar key = vchild.key;\n\t\t\tif (key != null) {\n\t\t\t\tif (keyedLen && keyed[key] !== undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t} else if (min < childrenLen) {\n\t\t\t\t\tfor (j = min; j < childrenLen; j++) {\n\t\t\t\t\t\tif (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\t\tif (j === childrenLen - 1) childrenLen--;\n\t\t\t\t\t\t\tif (j === min) min++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child !== dom && child !== f) {\n\t\t\t\tif (f == null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t} else if (child === f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t} else {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (keyedLen) {\n\t\tfor (var i in keyed) {\n\t\t\tif (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n\t\t}\n\t}\n\n\twhile (min <= childrenLen) {\n\t\tif ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n\t}\n}\n\nfunction recollectNodeTree(node, unmountOnly) {\n\tvar component = node._component;\n\tif (component) {\n\t\tunmountComponent(component);\n\t} else {\n\t\tif (node['__preactattr_'] != null && node['__preactattr_'].ref) node['__preactattr_'].ref(null);\n\n\t\tif (unmountOnly === false || node['__preactattr_'] == null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\nfunction removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tvar next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\nfunction diffAttributes(dom, attrs, old) {\n\tvar name;\n\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name] != null) && old[name] != null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\tfor (name in attrs) {\n\t\tif (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n\nvar recyclerComponents = [];\n\nfunction createComponent(Ctor, props, context) {\n\tvar inst,\n\t i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t} else {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor === Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n\nfunction setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t} else if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context !== component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode !== 0) {\n\t\tif (renderMode === 1 || options.syncComponentUpdates !== false || !component.base) {\n\t\t\trenderComponent(component, 1, mountAll);\n\t\t} else {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tif (component.__ref) component.__ref(component);\n}\n\nfunction renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tvar props = component.props,\n\t state = component.state,\n\t context = component.context,\n\t previousProps = component.prevProps || props,\n\t previousState = component.prevState || state,\n\t previousContext = component.prevContext || context,\n\t isUpdate = component.base,\n\t nextBase = component.nextBase,\n\t initialBase = isUpdate || nextBase,\n\t initialChildComponent = component._component,\n\t skip = false,\n\t snapshot = previousContext,\n\t rendered,\n\t inst,\n\t cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode !== 2 && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t} else if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tvar childComponent = rendered && rendered.nodeName,\n\t\t toUnmount,\n\t\t base;\n\n\t\tif (typeof childComponent === 'function') {\n\n\t\t\tvar childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor === childComponent && childProps.key == inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, 1, context, false);\n\t\t\t} else {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, 0, context, false);\n\t\t\t\trenderComponent(inst, 1, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t} else {\n\t\t\tcbase = initialBase;\n\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode === 1) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base !== initialBase && inst !== initialChildComponent) {\n\t\t\tvar baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base !== baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tvar componentRef = component,\n\t\t\t t = component;\n\t\t\twhile (t = t._parentComponent) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.unshift(component);\n\t} else if (!skip) {\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) {\n\t\tcomponent._renderCallbacks.pop().call(component);\n\t}if (!diffLevel && !isChild) flushMounts();\n}\n\nfunction buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tvar c = dom && dom._component,\n\t originalComponent = c,\n\t oldDom = dom,\n\t isDirectOwner = c && dom._componentConstructor === vnode.nodeName,\n\t isOwner = isDirectOwner,\n\t props = getNodeProps(vnode);\n\twhile (c && !isOwner && (c = c._parentComponent)) {\n\t\tisOwner = c.constructor === vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, 3, context, mountAll);\n\t\tdom = c.base;\n\t} else {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, 1, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom !== oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\nfunction unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tvar base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\tvar inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t} else if (base) {\n\t\tif (base['__preactattr_'] && base['__preactattr_'].ref) base['__preactattr_'].ref(null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tif (component.__ref) component.__ref(null);\n}\n\nfunction Component(props, context) {\n\tthis._dirty = true;\n\n\tthis.context = context;\n\n\tthis.props = props;\n\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\nextend(Component.prototype, {\n\tsetState: function setState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\tforceUpdate: function forceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, 2);\n\t},\n\trender: function render() {}\n});\n\nfunction render(vnode, parent, merge) {\n return diff(merge, vnode, {}, false, parent, false);\n}\n\nvar preact = {\n\th: h,\n\tcreateElement: h,\n\tcloneElement: cloneElement,\n\tComponent: Component,\n\trender: render,\n\trerender: rerender,\n\toptions: options\n};\n\nexport default preact;\nexport { h, h as createElement, cloneElement, Component, render, rerender, options };\n//# sourceMappingURL=preact.mjs.map\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","import { createElement, render } from 'preact' /** @jsx createElement */\nimport Autocomplete from './autocomplete'\n\nfunction accessibleAutocomplete (options) {\n if (!options.element) { throw new Error('element is not defined') }\n if (!options.id) { throw new Error('id is not defined') }\n if (!options.source) { throw new Error('source is not defined') }\n if (Array.isArray(options.source)) {\n options.source = createSimpleEngine(options.source)\n }\n render(<Autocomplete {...options} />, options.element)\n}\n\nconst createSimpleEngine = (values) => (query, syncResults) => {\n var matches = values.filter(r => r.toLowerCase().indexOf(query.toLowerCase()) !== -1)\n syncResults(matches)\n}\n\naccessibleAutocomplete.enhanceSelectElement = (configurationOptions) => {\n if (!configurationOptions.selectElement) { throw new Error('selectElement is not defined') }\n\n // Set defaults.\n if (!configurationOptions.source) {\n let availableOptions = [].filter.call(configurationOptions.selectElement.options, option => (option.value || configurationOptions.preserveNullOptions))\n configurationOptions.source = availableOptions.map(option => option.textContent || option.innerText)\n }\n configurationOptions.onConfirm = configurationOptions.onConfirm || (query => {\n const requestedOption = [].filter.call(configurationOptions.selectElement.options, option => (option.textContent || option.innerText) === query)[0]\n if (requestedOption) { requestedOption.selected = true }\n })\n\n if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {\n const option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex]\n configurationOptions.defaultValue = option.textContent || option.innerText\n }\n\n if (configurationOptions.name === undefined) configurationOptions.name = ''\n if (configurationOptions.id === undefined) {\n if (configurationOptions.selectElement.id === undefined) {\n configurationOptions.id = ''\n } else {\n configurationOptions.id = configurationOptions.selectElement.id\n }\n }\n if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true\n\n const element = document.createElement('span')\n\n configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement)\n\n accessibleAutocomplete({\n ...configurationOptions,\n element: element\n })\n\n configurationOptions.selectElement.style.display = 'none'\n configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select'\n}\n\nexport default accessibleAutocomplete\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', { isArray: require('./_is-array') });\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n tNoResults: () => 'No results found',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n this.forceUpdate()\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n dropdownArrow: dropdownArrowFactory\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n </div>\n )\n }\n}\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("preact")):e["Autocomplete"]=t(e["preact"])})(window,function(n){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=31)}([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,n){var m=n(0),v=n(5),y=n(6),g=n(14),b=n(16),O="prototype",w=function(e,t,n){var r,o,u,i,a=e&w.F,s=e&w.G,l=e&w.S,c=e&w.P,p=e&w.B,f=s?m:l?m[t]||(m[t]={}):(m[t]||{})[O],d=s?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in s&&(n=t),n)u=((o=!a&&f&&f[r]!==undefined)?f:n)[r],i=p&&o?b(u,m):c&&"function"==typeof u?b(Function.call,u):u,f&&g(f,r,u,e&w.U),d[r]!=u&&y(d,r,i),c&&h[r]!=u&&(h[r]=u)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},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){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(35);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),u=n(33),i=n(34),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),u)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(0).document,u=r(o)&&r(o.createElement);e.exports=function(e){return u?o.createElement(e):{}}},function(e,t,n){var u=n(0),i=n(6),a=n(15),s=n(9)("src"),r="toString",o=Function[r],l=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(o&&(a(n,s)||i(n,s,e[t]?""+e[t]:l.join(String(t)))),e===u?e[t]=n:r?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var u=n(17);e.exports=function(r,o,e){if(u(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(37),o=n(26);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(19),l=n(22),c=n(38);e.exports=function(a){return function(e,t,n){var r,o=s(e),u=l(o.length),i=c(n,u);if(a&&t!=t){for(;i<u;)if((r=o[i++])!=r)return!0}else for(;i<u;i++)if((a||i in o)&&o[i]===t)return a||i||0;return!a&&-1}}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(0),u="__core-js_shared__",i=o[u]||(o[u]={});(e.exports=function(e,t){return i[e]||(i[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(39)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(42)})},function(e,t,n){var r=n(25)("wks"),o=n(9),u=n(0).Symbol,i="function"==typeof u;(e.exports=function(e){return r[e]||(r[e]=i&&u[e]||(i?u:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(32),n(28),n(45),n(50),n(51),n(52),n(55);var $=n(12),W=o(n(57)),r=o(n(58));function o(e){return e&&e.__esModule?e:{"default":e}}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i,a={13:"enter",27:"escape",32:"space",38:"up",40:"down"},G=((i=document.createElement("x")).style.cssText="pointer-events:auto","auto"===i.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(u(u(t))),t.handleKeyDown=t.handleKeyDown.bind(u(u(t))),t.handleUpArrow=t.handleUpArrow.bind(u(u(t))),t.handleDownArrow=t.handleDownArrow.bind(u(u(t))),t.handleEnter=t.handleEnter.bind(u(u(t))),t.handlePrintableKey=t.handlePrintableKey.bind(u(u(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(u(u(t))),t.handleOptionBlur=t.handleOptionBlur.bind(u(u(t))),t.handleOptionClick=t.handleOptionClick.bind(u(u(t))),t.handleOptionFocus=t.handleOptionFocus.bind(u(u(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(u(u(t))),t.handleInputBlur=t.handleInputBlur.bind(u(u(t))),t.handleInputChange=t.handleInputChange.bind(u(u(t))),t.handleInputFocus=t.handleInputFocus.bind(u(u(t))),t.pollInputElement=t.pollInputElement.bind(u(u(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(u(u(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=null===r,i=t.focused!==r;(i&&!u||null!==o)&&this.elementReferences[r].focus();var a=-1===r,s=i&&null===t.focused;if(a&&s){var l=this.elementReferences[r];l.setSelectionRange(0,l.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,u=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[u])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=n.menuOpen,i=n.options,a=n.selected,s=null===e.relatedTarget&&null===o,l=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||l)){var p=u&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(i[a])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,u=n.options,i=n.query,a=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var l=o&&f(),c=f()?i:this.templateInputValue(u[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:l,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,u=t.showAllValues,i=this.hasAutoselect(),a=e.target.value,s=0===a.length,l=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),u||!s&&l&&c?o(a,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:i&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,u=n.selected;u!==o.length-1&&r&&this.handleOptionFocus(u+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(a[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,u=t.id,i=t.minLength,a=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,p=t.tNoResults,f=t.tStatusQueryTooShort,d=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,g=y.focused,b=y.hovered,O=y.menuOpen,w=y.options,x=y.query,_=y.selected,S=this.hasAutoselect(),I=-1===g,E=0===w.length,j=0!==x.length,C=x.length>=i,M=this.props.showNoOptionsFound&&I&&E&&j&&C,A=n+"__wrapper",P=n+"__input",k=null!==g?" "+P+"--focused":"",F=this.props.showAllValues?" "+P+"--show-all-values":" "+P+"--default",R=n+"__dropdown-arrow-down",q=-1!==g&&null!==g,T=n+"__menu",N=T+"--"+r,D=T+"--"+(O||M?"visible":"hidden"),L=n+"__option",B=n+"__hint",V=this.templateInputValue(w[_]),K=V&&0===V.toLowerCase().indexOf(x.toLowerCase())&&S?x+V.substr(x.length):"",U=G&&K;return c&&"string"==typeof(e=v({className:R}))&&(e=(0,$.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,$.createElement)("div",{className:A,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,$.createElement)(W["default"],{length:w.length,queryLength:x.length,minQueryLength:i,selectedOption:this.templateInputValue(w[_]),selectedOptionIndex:_,tQueryTooShort:f,tNoResults:d,tSelectedOption:h,tResults:m}),U&&(0,$.createElement)("span",null,(0,$.createElement)("input",{className:B,readonly:!0,tabIndex:"-1",value:K})),(0,$.createElement)("input",z({"aria-activedescendant":!!q&&u+"__option--"+g,"aria-owns":u+"__listbox",autoComplete:"off",className:""+P+k+F,id:u,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function Q(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:a,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:l,value:x})),e,(0,$.createElement)("ul",{className:T+" "+N+" "+D,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:u+"__listbox",role:"listbox"},w.map(function(e,t){var n=(-1===g?_===t:g===t)&&null===b?" "+L+"--focused":"",r=t%2?" "+L+"--odd":"";return(0,$.createElement)("li",{"aria-selected":g===t,className:""+L+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:u+"__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"})}),M&&(0,$.createElement)("li",{className:L+" "+L+"--no-results"},p())))},e}($.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(36)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(13)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(18),d=n(40),h=n(41),m=n(27),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,u=d.f,i=h.f;o<r;)for(var a,s=v(arguments[o++]),l=u?f(s).concat(u(s)):f(s),c=l.length,p=0;p<c;)i.call(s,a=l[p++])&&(n[a]=s[a]);return n}:o},function(e,t,n){var i=n(15),a=n(19),s=n(21)(!1),l=n(24)("IE_PROTO");e.exports=function(e,t){var n,r=a(e),o=0,u=[];for(n in r)n!=l&&i(r,n)&&u.push(n);for(;t.length>o;)i(r,n=t[o++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var r=n(23),o=Math.max,u=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):u(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),u=r(43),i=r(26),a=r(24)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=r(13)("iframe"),n=i.length;for(t.style.display="none",r(44).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=o(e),n=new s,s[l]=null,n[a]=e):n=c(),t===undefined?n:u(n,t)}},function(e,t,n){var i=n(7),a=n(8),s=n(18);e.exports=n(3)?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=r.length,u=0;u<o;)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(1),o=n(46)(1);r(r.P+r.F*!n(30)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(16),O=n(10),w=n(27),x=n(22),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,u=w(e),i=O(u),a=b(t,n,3),s=x(i.length),l=0,c=f?g(e,s):d?g(e,0):undefined;l<s;l++)if((y||l in i)&&(o=a(r=i[l],l,u),p))if(f)c[l]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return l;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),u=n(29)("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[u])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(20);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(1),o=n(21)(!1),u=[].indexOf,i=!!u&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(30)(u)),"Array",{indexOf:function(e){return i?u.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,u=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(u)[1]}catch(e){return""}}})},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(53)})},function(e,t,n){"use strict";var u=n(17),i=n(2),a=n(54),s=[].slice,l={};e.exports=Function.bind||function(t){var n=u(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in l)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";l[t]=Function("F,a","return new F("+r.join(",")+")")}return l[t](e,n)}(n,e.length,e):a(n,e,t)};return i(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(56)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var a=n(6),s=n(14),l=n(4),c=n(11),p=n(29);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),u=o[0],i=o[1];l(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,u),a(RegExp.prototype,r,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(28);var m=n(12);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,u=e.selectedOptionIndex,i=e.tQueryTooShort,a=e.tNoResults,s=e.tSelectedOption,l=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,u):"",h=null;return h=p?i(r):f?a():l(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(12),o=function u(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
2
+ //# sourceMappingURL=accessible-autocomplete.preact.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/external {\"amd\":\"preact\",\"commonjs\":\"preact\",\"commonjs2\":\"preact\",\"root\":\"preact\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__12__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","Math","self","Function","__g","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","U","W","R","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","USE_SYMBOL","fails","method","arg","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","forceUpdate","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","keyCode","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","dropdownArrowFactory","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","ref","onMouseLeave","map","option","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","toObject","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","result","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","callbackfn","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,WAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,WAEAJ,EAAA,gBAAAC,EAAAD,EAAA,YARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAU,GAAA,EAGAV,EAAAD,QA0DA,OArDAQ,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAhB,EAAAiB,EAAAC,GACAV,EAAAW,EAAAnB,EAAAiB,IACAG,OAAAC,eAAArB,EAAAiB,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAxB,GACA,oBAAAyB,eAAAC,aACAN,OAAAC,eAAArB,EAAAyB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAArB,EAAA,cAAiD2B,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,iBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAF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K,UAAUE,OAAO","file":"lib/accessible-autocomplete.preact.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"preact\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"preact\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"preact\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"preact\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__12__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 31);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__12__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n tNoResults: () => 'No results found',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n this.forceUpdate()\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n dropdownArrow: dropdownArrowFactory\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("react")):e["Autocomplete"]=t(e["React"])})(window,function(n){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=31)}([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,n){var m=n(0),v=n(5),y=n(6),g=n(14),b=n(16),O="prototype",w=function(e,t,n){var r,o,u,i,a=e&w.F,s=e&w.G,l=e&w.S,c=e&w.P,p=e&w.B,f=s?m:l?m[t]||(m[t]={}):(m[t]||{})[O],d=s?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in s&&(n=t),n)u=((o=!a&&f&&f[r]!==undefined)?f:n)[r],i=p&&o?b(u,m):c&&"function"==typeof u?b(Function.call,u):u,f&&g(f,r,u,e&w.U),d[r]!=u&&y(d,r,i),c&&h[r]!=u&&(h[r]=u)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},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){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(35);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),u=n(33),i=n(34),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),u)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(0).document,u=r(o)&&r(o.createElement);e.exports=function(e){return u?o.createElement(e):{}}},function(e,t,n){var u=n(0),i=n(6),a=n(15),s=n(9)("src"),r="toString",o=Function[r],l=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(o&&(a(n,s)||i(n,s,e[t]?""+e[t]:l.join(String(t)))),e===u?e[t]=n:r?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var u=n(17);e.exports=function(r,o,e){if(u(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(37),o=n(26);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(19),l=n(22),c=n(38);e.exports=function(a){return function(e,t,n){var r,o=s(e),u=l(o.length),i=c(n,u);if(a&&t!=t){for(;i<u;)if((r=o[i++])!=r)return!0}else for(;i<u;i++)if((a||i in o)&&o[i]===t)return a||i||0;return!a&&-1}}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(0),u="__core-js_shared__",i=o[u]||(o[u]={});(e.exports=function(e,t){return i[e]||(i[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(39)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(42)})},function(e,t,n){var r=n(25)("wks"),o=n(9),u=n(0).Symbol,i="function"==typeof u;(e.exports=function(e){return r[e]||(r[e]=i&&u[e]||(i?u:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(32),n(28),n(45),n(50),n(51),n(52),n(55);var $=n(12),W=o(n(57)),r=o(n(58));function o(e){return e&&e.__esModule?e:{"default":e}}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i,a={13:"enter",27:"escape",32:"space",38:"up",40:"down"},G=((i=document.createElement("x")).style.cssText="pointer-events:auto","auto"===i.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(u(u(t))),t.handleKeyDown=t.handleKeyDown.bind(u(u(t))),t.handleUpArrow=t.handleUpArrow.bind(u(u(t))),t.handleDownArrow=t.handleDownArrow.bind(u(u(t))),t.handleEnter=t.handleEnter.bind(u(u(t))),t.handlePrintableKey=t.handlePrintableKey.bind(u(u(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(u(u(t))),t.handleOptionBlur=t.handleOptionBlur.bind(u(u(t))),t.handleOptionClick=t.handleOptionClick.bind(u(u(t))),t.handleOptionFocus=t.handleOptionFocus.bind(u(u(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(u(u(t))),t.handleInputBlur=t.handleInputBlur.bind(u(u(t))),t.handleInputChange=t.handleInputChange.bind(u(u(t))),t.handleInputFocus=t.handleInputFocus.bind(u(u(t))),t.pollInputElement=t.pollInputElement.bind(u(u(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(u(u(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=null===r,i=t.focused!==r;(i&&!u||null!==o)&&this.elementReferences[r].focus();var a=-1===r,s=i&&null===t.focused;if(a&&s){var l=this.elementReferences[r];l.setSelectionRange(0,l.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,u=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[u])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=n.menuOpen,i=n.options,a=n.selected,s=null===e.relatedTarget&&null===o,l=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||l)){var p=u&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(i[a])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,u=n.options,i=n.query,a=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var l=o&&f(),c=f()?i:this.templateInputValue(u[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:l,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,u=t.showAllValues,i=this.hasAutoselect(),a=e.target.value,s=0===a.length,l=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),u||!s&&l&&c?o(a,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:i&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,u=n.selected;u!==o.length-1&&r&&this.handleOptionFocus(u+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(a[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,u=t.id,i=t.minLength,a=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,p=t.tNoResults,f=t.tStatusQueryTooShort,d=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,g=y.focused,b=y.hovered,O=y.menuOpen,w=y.options,x=y.query,_=y.selected,S=this.hasAutoselect(),I=-1===g,E=0===w.length,j=0!==x.length,C=x.length>=i,M=this.props.showNoOptionsFound&&I&&E&&j&&C,A=n+"__wrapper",P=n+"__input",k=null!==g?" "+P+"--focused":"",F=this.props.showAllValues?" "+P+"--show-all-values":" "+P+"--default",R=n+"__dropdown-arrow-down",q=-1!==g&&null!==g,T=n+"__menu",N=T+"--"+r,D=T+"--"+(O||M?"visible":"hidden"),L=n+"__option",B=n+"__hint",V=this.templateInputValue(w[_]),K=V&&0===V.toLowerCase().indexOf(x.toLowerCase())&&S?x+V.substr(x.length):"",U=G&&K;return c&&"string"==typeof(e=v({className:R}))&&(e=(0,$.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,$.createElement)("div",{className:A,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,$.createElement)(W["default"],{length:w.length,queryLength:x.length,minQueryLength:i,selectedOption:this.templateInputValue(w[_]),selectedOptionIndex:_,tQueryTooShort:f,tNoResults:d,tSelectedOption:h,tResults:m}),U&&(0,$.createElement)("span",null,(0,$.createElement)("input",{className:B,readonly:!0,tabIndex:"-1",value:K})),(0,$.createElement)("input",z({"aria-activedescendant":!!q&&u+"__option--"+g,"aria-owns":u+"__listbox",autoComplete:"off",className:""+P+k+F,id:u,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function Q(e){return{onChange:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:a,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:l,value:x})),e,(0,$.createElement)("ul",{className:T+" "+N+" "+D,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:u+"__listbox",role:"listbox"},w.map(function(e,t){var n=(-1===g?_===t:g===t)&&null===b?" "+L+"--focused":"",r=t%2?" "+L+"--odd":"";return(0,$.createElement)("li",{"aria-selected":g===t,className:""+L+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:u+"__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"})}),M&&(0,$.createElement)("li",{className:L+" "+L+"--no-results"},p())))},e}($.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(36)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(13)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(18),d=n(40),h=n(41),m=n(27),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,u=d.f,i=h.f;o<r;)for(var a,s=v(arguments[o++]),l=u?f(s).concat(u(s)):f(s),c=l.length,p=0;p<c;)i.call(s,a=l[p++])&&(n[a]=s[a]);return n}:o},function(e,t,n){var i=n(15),a=n(19),s=n(21)(!1),l=n(24)("IE_PROTO");e.exports=function(e,t){var n,r=a(e),o=0,u=[];for(n in r)n!=l&&i(r,n)&&u.push(n);for(;t.length>o;)i(r,n=t[o++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var r=n(23),o=Math.max,u=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):u(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),u=r(43),i=r(26),a=r(24)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=r(13)("iframe"),n=i.length;for(t.style.display="none",r(44).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=o(e),n=new s,s[l]=null,n[a]=e):n=c(),t===undefined?n:u(n,t)}},function(e,t,n){var i=n(7),a=n(8),s=n(18);e.exports=n(3)?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=r.length,u=0;u<o;)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(1),o=n(46)(1);r(r.P+r.F*!n(30)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(16),O=n(10),w=n(27),x=n(22),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,u=w(e),i=O(u),a=b(t,n,3),s=x(i.length),l=0,c=f?g(e,s):d?g(e,0):undefined;l<s;l++)if((y||l in i)&&(o=a(r=i[l],l,u),p))if(f)c[l]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return l;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),u=n(29)("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[u])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(20);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(1),o=n(21)(!1),u=[].indexOf,i=!!u&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(30)(u)),"Array",{indexOf:function(e){return i?u.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,u=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(u)[1]}catch(e){return""}}})},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(53)})},function(e,t,n){"use strict";var u=n(17),i=n(2),a=n(54),s=[].slice,l={};e.exports=Function.bind||function(t){var n=u(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in l)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";l[t]=Function("F,a","return new F("+r.join(",")+")")}return l[t](e,n)}(n,e.length,e):a(n,e,t)};return i(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(56)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var a=n(6),s=n(14),l=n(4),c=n(11),p=n(29);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),u=o[0],i=o[1];l(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,u),a(RegExp.prototype,r,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(28);var m=n(12);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,u=e.selectedOptionIndex,i=e.tQueryTooShort,a=e.tNoResults,s=e.tSelectedOption,l=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,u):"",h=null;return h=p?i(r):f?a():l(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(12),o=function u(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
2
+ //# sourceMappingURL=accessible-autocomplete.react.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/external {\"amd\":\"react\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__12__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","Math","self","Function","__g","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","U","W","R","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","USE_SYMBOL","fails","method","arg","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","forceUpdate","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","keyCode","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","dropdownArrowFactory","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onChange","onFocus","ref","onMouseLeave","map","option","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","toObject","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","result","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","callbackfn","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,mBAAAC,eAAAC,IACAD,OAAA,UAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,UAEAJ,EAAA,gBAAAC,EAAAD,EAAA,WARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAU,GAAA,EAGAV,EAAAD,QA0DA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AM,sBAClBsC,gBAAiB,SAACxD,EAAgBxI,EAAQiB,GAAzB,OAAsCuH,EAAtC,MAAyDvH,EAAQ,GAAjE,OAAyEjB,EAAzE,kBACjBiM,SAAU,SAACjM,EAAQuT,GAMjB,OAAUvT,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DuT,sECbjE,IAAAtR,EAAA7I,EAAA,MAE0B,SAApBqU,EAAoB0F,GAAA,IAAG7H,EAAH6H,EAAG7H,UAAH,OACxB,EAAArJ,EAAAjD,eAAA,OAAKtB,QAAQ,MAAM2W,MAAM,6BAA6B/I,UAAWA,EAAWgJ,UAAU,UACpF,EAAArS,EAAAjD,eAAA,KAAGuV,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAAxS,EAAAjD,eAAA,WAASwV,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.react.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__12__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 31);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__12__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n tNoResults: () => 'No results found',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n this.forceUpdate()\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n dropdownArrow: dropdownArrowFactory\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
@@ -0,0 +1,671 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Accessible Autocomplete form example</title>
7
+ <style>
8
+ /* Example page specific styling. */
9
+ html {
10
+ color: #111;
11
+ background: #FFF;
12
+ font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
13
+ font-size: 16px;
14
+ line-height: 1.5;
15
+ }
16
+
17
+ body {
18
+ padding-left: 1rem;
19
+ padding-right: 1rem;
20
+ }
21
+
22
+ h1, h2, h3, h4, h5, h6 {
23
+ line-height: normal;
24
+ }
25
+
26
+ label {
27
+ display: block;
28
+ margin-bottom: .5rem;
29
+ }
30
+
31
+ code {
32
+ padding-left: .5em;
33
+ padding-right: .5em;
34
+ background: #EFEFEF;
35
+ font-weight: normal;
36
+ font-family: monospace;
37
+ }
38
+
39
+ main {
40
+ max-width: 40em;
41
+ margin-left: auto;
42
+ margin-right: auto;
43
+ }
44
+
45
+ .autocomplete-wrapper {
46
+ max-width: 20em;
47
+ margin-bottom: 4rem;
48
+ }
49
+
50
+ .submitted--hidden {
51
+ display: none;
52
+ }
53
+ </style>
54
+ <link rel="stylesheet" href="../dist/accessible-autocomplete.min.css">
55
+ </head>
56
+ <body>
57
+ <main>
58
+ <h1>Accessible Autocomplete form example</h1>
59
+
60
+ <div class="submitted submitted--hidden">
61
+ <p>You submitted:</p>
62
+ <ul>
63
+ <li><code>"last-location": <span class="submitted__last-location"></span></code></li>
64
+ <li><code>"passport-location": <span class="submitted__passport-location"></span></code></li>
65
+ </ul>
66
+ <hr />
67
+ </div>
68
+
69
+ <form action="form.html" method="get">
70
+ <label for="last-location">What was the last location you visited?</label>
71
+ <div class="autocomplete-wrapper">
72
+ <select name="last-location" id="last-location">
73
+ <option value="territory:AE-AZ">Abu Dhabi</option>
74
+ <option value="country:AF">Afghanistan</option>
75
+ <option value="territory:AE-AJ">Ajman</option>
76
+ <option value="territory:XQZ">Akrotiri</option>
77
+ <option value="country:AL">Albania</option>
78
+ <option value="country:DZ">Algeria</option>
79
+ <option value="territory:AS">American Samoa</option>
80
+ <option value="country:AD">Andorra</option>
81
+ <option value="country:AO">Angola</option>
82
+ <option value="territory:AI">Anguilla</option>
83
+ <option value="territory:AQ">Antarctica</option>
84
+ <option value="country:AG">Antigua and Barbuda</option>
85
+ <option value="country:AR">Argentina</option>
86
+ <option value="country:AM">Armenia</option>
87
+ <option value="territory:AW">Aruba</option>
88
+ <option value="territory:SH-AC">Ascension</option>
89
+ <option value="country:AU">Australia</option>
90
+ <option value="country:AT">Austria</option>
91
+ <option value="country:AZ">Azerbaijan</option>
92
+ <option value="country:BH">Bahrain</option>
93
+ <option value="territory:UM-81">Baker Island</option>
94
+ <option value="country:BD">Bangladesh</option>
95
+ <option value="country:BB">Barbados</option>
96
+ <option value="country:BY">Belarus</option>
97
+ <option value="country:BE">Belgium</option>
98
+ <option value="country:BZ">Belize</option>
99
+ <option value="country:BJ">Benin</option>
100
+ <option value="territory:BM">Bermuda</option>
101
+ <option value="country:BT">Bhutan</option>
102
+ <option value="country:BO">Bolivia</option>
103
+ <option value="territory:BQ-BO">Bonaire</option>
104
+ <option value="country:BA">Bosnia and Herzegovina</option>
105
+ <option value="country:BW">Botswana</option>
106
+ <option value="territory:BV">Bouvet Island</option>
107
+ <option value="country:BR">Brazil</option>
108
+ <option value="territory:BAT">British Antarctic Territory</option>
109
+ <option value="territory:IO">British Indian Ocean Territory</option>
110
+ <option value="territory:VG">British Virgin Islands</option>
111
+ <option value="country:BN">Brunei</option>
112
+ <option value="country:BG">Bulgaria</option>
113
+ <option value="country:BF">Burkina Faso</option>
114
+ <option value="country:MM">Burma</option>
115
+ <option value="country:BI">Burundi</option>
116
+ <option value="country:KH">Cambodia</option>
117
+ <option value="country:CM">Cameroon</option>
118
+ <option value="country:CA">Canada</option>
119
+ <option value="country:CV">Cape Verde</option>
120
+ <option value="territory:KY">Cayman Islands</option>
121
+ <option value="country:CF">Central African Republic</option>
122
+ <option value="territory:ES-CE">Ceuta</option>
123
+ <option value="country:TD">Chad</option>
124
+ <option value="country:CL">Chile</option>
125
+ <option value="country:CN">China</option>
126
+ <option value="territory:CX">Christmas Island</option>
127
+ <option value="territory:CC">Cocos (Keeling) Islands</option>
128
+ <option value="country:CO">Colombia</option>
129
+ <option value="country:KM">Comoros</option>
130
+ <option value="country:CG">Congo</option>
131
+ <option value="country:CD">Congo (Democratic Republic)</option>
132
+ <option value="territory:CK">Cook Islands</option>
133
+ <option value="country:CR">Costa Rica</option>
134
+ <option value="country:HR">Croatia</option>
135
+ <option value="country:CU">Cuba</option>
136
+ <option value="territory:CW">Curaçao</option>
137
+ <option value="country:CY">Cyprus</option>
138
+ <option value="country:CZ">Czechia</option>
139
+ <option value="country:CS">Czechoslovakia</option>
140
+ <option value="country:DK">Denmark</option>
141
+ <option value="territory:XXD">Dhekelia</option>
142
+ <option value="country:DJ">Djibouti</option>
143
+ <option value="country:DM">Dominica</option>
144
+ <option value="country:DO">Dominican Republic</option>
145
+ <option value="territory:AE-DU">Dubai</option>
146
+ <option value="country:DD">East Germany</option>
147
+ <option value="country:TL">East Timor</option>
148
+ <option value="country:EC">Ecuador</option>
149
+ <option value="country:EG">Egypt</option>
150
+ <option value="country:SV">El Salvador</option>
151
+ <option value="country:GQ">Equatorial Guinea</option>
152
+ <option value="country:ER">Eritrea</option>
153
+ <option value="country:EE">Estonia</option>
154
+ <option value="country:ET">Ethiopia</option>
155
+ <option value="territory:FK">Falkland Islands</option>
156
+ <option value="territory:FO">Faroe Islands</option>
157
+ <option value="country:FJ">Fiji</option>
158
+ <option value="country:FI">Finland</option>
159
+ <option value="country:FR">France</option>
160
+ <option value="territory:GF">French Guiana</option>
161
+ <option value="territory:PF">French Polynesia</option>
162
+ <option value="territory:TF">French Southern Territories</option>
163
+ <option value="territory:AE-FU">Fujairah</option>
164
+ <option value="country:GA">Gabon</option>
165
+ <option value="country:GE">Georgia</option>
166
+ <option value="country:DE">Germany</option>
167
+ <option value="country:GH">Ghana</option>
168
+ <option value="territory:GI">Gibraltar</option>
169
+ <option value="country:GR">Greece</option>
170
+ <option value="territory:GL">Greenland</option>
171
+ <option value="country:GD">Grenada</option>
172
+ <option value="territory:GP">Guadeloupe</option>
173
+ <option value="territory:GU">Guam</option>
174
+ <option value="country:GT">Guatemala</option>
175
+ <option value="territory:GG">Guernsey</option>
176
+ <option value="country:GN">Guinea</option>
177
+ <option value="country:GW">Guinea-Bissau</option>
178
+ <option value="country:GY">Guyana</option>
179
+ <option value="country:HT">Haiti</option>
180
+ <option value="territory:HM">Heard Island and McDonald Islands</option>
181
+ <option value="country:HN">Honduras</option>
182
+ <option value="territory:HK">Hong Kong</option>
183
+ <option value="territory:UM-84">Howland Island</option>
184
+ <option value="country:HU">Hungary</option>
185
+ <option value="country:IS">Iceland</option>
186
+ <option value="country:IN">India</option>
187
+ <option value="country:ID">Indonesia</option>
188
+ <option value="country:IR">Iran</option>
189
+ <option value="country:IQ">Iraq</option>
190
+ <option value="country:IE">Ireland</option>
191
+ <option value="territory:IM">Isle of Man</option>
192
+ <option value="country:IL">Israel</option>
193
+ <option value="country:IT">Italy</option>
194
+ <option value="country:CI">Ivory Coast</option>
195
+ <option value="country:JM">Jamaica</option>
196
+ <option value="country:JP">Japan</option>
197
+ <option value="territory:UM-86">Jarvis Island</option>
198
+ <option value="territory:JE">Jersey</option>
199
+ <option value="territory:UM-67">Johnston Atoll</option>
200
+ <option value="country:JO">Jordan</option>
201
+ <option value="country:KZ">Kazakhstan</option>
202
+ <option value="country:KE">Kenya</option>
203
+ <option value="territory:UM-89">Kingman Reef</option>
204
+ <option value="country:KI">Kiribati</option>
205
+ <option value="country:XK">Kosovo</option>
206
+ <option value="country:KW">Kuwait</option>
207
+ <option value="country:KG">Kyrgyzstan</option>
208
+ <option value="country:LA">Laos</option>
209
+ <option value="country:LV">Latvia</option>
210
+ <option value="country:LB">Lebanon</option>
211
+ <option value="country:LS">Lesotho</option>
212
+ <option value="country:LR">Liberia</option>
213
+ <option value="country:LY">Libya</option>
214
+ <option value="country:LI">Liechtenstein</option>
215
+ <option value="country:LT">Lithuania</option>
216
+ <option value="country:LU">Luxembourg</option>
217
+ <option value="territory:MO">Macao</option>
218
+ <option value="country:MK">Macedonia</option>
219
+ <option value="country:MG">Madagascar</option>
220
+ <option value="country:MW">Malawi</option>
221
+ <option value="country:MY">Malaysia</option>
222
+ <option value="country:MV">Maldives</option>
223
+ <option value="country:ML">Mali</option>
224
+ <option value="country:MT">Malta</option>
225
+ <option value="country:MH">Marshall Islands</option>
226
+ <option value="territory:MQ">Martinique</option>
227
+ <option value="country:MR">Mauritania</option>
228
+ <option value="country:MU">Mauritius</option>
229
+ <option value="territory:YT">Mayotte</option>
230
+ <option value="territory:ES-ML">Melilla</option>
231
+ <option value="country:MX">Mexico</option>
232
+ <option value="country:FM">Micronesia</option>
233
+ <option value="territory:UM-71">Midway Islands</option>
234
+ <option value="country:MD">Moldova</option>
235
+ <option value="country:MC">Monaco</option>
236
+ <option value="country:MN">Mongolia</option>
237
+ <option value="country:ME">Montenegro</option>
238
+ <option value="territory:MS">Montserrat</option>
239
+ <option value="country:MA">Morocco</option>
240
+ <option value="country:MZ">Mozambique</option>
241
+ <option value="country:NA">Namibia</option>
242
+ <option value="country:NR">Nauru</option>
243
+ <option value="territory:UM-76">Navassa Island</option>
244
+ <option value="country:NP">Nepal</option>
245
+ <option value="country:NL">Netherlands</option>
246
+ <option value="territory:NC">New Caledonia</option>
247
+ <option value="country:NZ">New Zealand</option>
248
+ <option value="country:NI">Nicaragua</option>
249
+ <option value="country:NE">Niger</option>
250
+ <option value="country:NG">Nigeria</option>
251
+ <option value="territory:NU">Niue</option>
252
+ <option value="territory:NF">Norfolk Island</option>
253
+ <option value="country:KP">North Korea</option>
254
+ <option value="territory:MP">Northern Mariana Islands</option>
255
+ <option value="country:NO">Norway</option>
256
+ <option value="territory:PS">Occupied Palestinian Territories</option>
257
+ <option value="country:OM">Oman</option>
258
+ <option value="country:PK">Pakistan</option>
259
+ <option value="country:PW">Palau</option>
260
+ <option value="territory:UM-95">Palmyra Atoll</option>
261
+ <option value="country:PA">Panama</option>
262
+ <option value="country:PG">Papua New Guinea</option>
263
+ <option value="country:PY">Paraguay</option>
264
+ <option value="country:PE">Peru</option>
265
+ <option value="country:PH">Philippines</option>
266
+ <option value="territory:PN">Pitcairn, Henderson, Ducie and Oeno Islands</option>
267
+ <option value="country:PL">Poland</option>
268
+ <option value="country:PT">Portugal</option>
269
+ <option value="territory:PR">Puerto Rico</option>
270
+ <option value="country:QA">Qatar</option>
271
+ <option value="territory:AE-RK">Ras al-Khaimah</option>
272
+ <option value="country:RO">Romania</option>
273
+ <option value="country:RU">Russia</option>
274
+ <option value="country:RW">Rwanda</option>
275
+ <option value="territory:RE">Réunion</option>
276
+ <option value="territory:BQ-SA">Saba</option>
277
+ <option value="territory:BL">Saint Barthélemy</option>
278
+ <option value="territory:SH-HL">Saint Helena</option>
279
+ <option value="territory:PM">Saint Pierre and Miquelon</option>
280
+ <option value="territory:MF">Saint-Martin (French part)</option>
281
+ <option value="country:WS">Samoa</option>
282
+ <option value="country:SM">San Marino</option>
283
+ <option value="country:ST">Sao Tome and Principe</option>
284
+ <option value="country:SA">Saudi Arabia</option>
285
+ <option value="country:SN">Senegal</option>
286
+ <option value="country:RS">Serbia</option>
287
+ <option value="country:SC">Seychelles</option>
288
+ <option value="territory:AE-SH">Sharjah</option>
289
+ <option value="country:SL">Sierra Leone</option>
290
+ <option value="country:SG">Singapore</option>
291
+ <option value="territory:BQ-SE">Sint Eustatius</option>
292
+ <option value="territory:SX">Sint Maarten (Dutch part)</option>
293
+ <option value="country:SK">Slovakia</option>
294
+ <option value="country:SI">Slovenia</option>
295
+ <option value="country:SB">Solomon Islands</option>
296
+ <option value="country:SO">Somalia</option>
297
+ <option value="country:ZA">South Africa</option>
298
+ <option value="territory:GS">South Georgia and South Sandwich Islands</option>
299
+ <option value="country:KR">South Korea</option>
300
+ <option value="country:SS">South Sudan</option>
301
+ <option value="country:ES">Spain</option>
302
+ <option value="country:LK">Sri Lanka</option>
303
+ <option value="country:KN">St Kitts and Nevis</option>
304
+ <option value="country:LC">St Lucia</option>
305
+ <option value="country:VC">St Vincent</option>
306
+ <option value="country:SD">Sudan</option>
307
+ <option value="country:SR">Suriname</option>
308
+ <option value="territory:SJ">Svalbard and Jan Mayen</option>
309
+ <option value="country:SZ">Swaziland</option>
310
+ <option value="country:SE">Sweden</option>
311
+ <option value="country:CH">Switzerland</option>
312
+ <option value="country:SY">Syria</option>
313
+ <option value="territory:TW">Taiwan</option>
314
+ <option value="country:TJ">Tajikistan</option>
315
+ <option value="country:TZ">Tanzania</option>
316
+ <option value="country:TH">Thailand</option>
317
+ <option value="country:BS">The Bahamas</option>
318
+ <option value="country:GM">The Gambia</option>
319
+ <option value="country:TG">Togo</option>
320
+ <option value="territory:TK">Tokelau</option>
321
+ <option value="country:TO">Tonga</option>
322
+ <option value="country:TT">Trinidad and Tobago</option>
323
+ <option value="territory:SH-TA">Tristan da Cunha</option>
324
+ <option value="country:TN">Tunisia</option>
325
+ <option value="country:TR">Turkey</option>
326
+ <option value="country:TM">Turkmenistan</option>
327
+ <option value="territory:TC">Turks and Caicos Islands</option>
328
+ <option value="country:TV">Tuvalu</option>
329
+ <option value="country:SU">USSR</option>
330
+ <option value="country:UG">Uganda</option>
331
+ <option value="country:UA">Ukraine</option>
332
+ <option value="territory:AE-UQ">Umm al-Quwain</option>
333
+ <option value="country:AE">United Arab Emirates</option>
334
+ <option value="country:GB" selected>United Kingdom</option>
335
+ <option value="country:US">United States</option>
336
+ <option value="territory:VI">United States Virgin Islands</option>
337
+ <option value="country:UY">Uruguay</option>
338
+ <option value="country:UZ">Uzbekistan</option>
339
+ <option value="country:VU">Vanuatu</option>
340
+ <option value="country:VA">Vatican City</option>
341
+ <option value="country:VE">Venezuela</option>
342
+ <option value="country:VN">Vietnam</option>
343
+ <option value="territory:UM-79">Wake Island</option>
344
+ <option value="territory:WF">Wallis and Futuna</option>
345
+ <option value="territory:EH">Western Sahara</option>
346
+ <option value="country:YE">Yemen</option>
347
+ <option value="country:YU">Yugoslavia</option>
348
+ <option value="country:ZM">Zambia</option>
349
+ <option value="country:ZW">Zimbabwe</option>
350
+ <option value="territory:AX">Åland Islands</option>
351
+ </select>
352
+ </div>
353
+
354
+ <label for="passport-location">What is the location on your passport?</label>
355
+ <div class="autocomplete-wrapper">
356
+ <select name="passport-location" id="passport-location">
357
+ <option value="territory:AE-AZ">Abu Dhabi</option>
358
+ <option value="country:AF">Afghanistan</option>
359
+ <option value="territory:AE-AJ">Ajman</option>
360
+ <option value="territory:XQZ">Akrotiri</option>
361
+ <option value="country:AL">Albania</option>
362
+ <option value="country:DZ">Algeria</option>
363
+ <option value="territory:AS">American Samoa</option>
364
+ <option value="country:AD">Andorra</option>
365
+ <option value="country:AO">Angola</option>
366
+ <option value="territory:AI">Anguilla</option>
367
+ <option value="territory:AQ">Antarctica</option>
368
+ <option value="country:AG">Antigua and Barbuda</option>
369
+ <option value="country:AR">Argentina</option>
370
+ <option value="country:AM">Armenia</option>
371
+ <option value="territory:AW">Aruba</option>
372
+ <option value="territory:SH-AC">Ascension</option>
373
+ <option value="country:AU">Australia</option>
374
+ <option value="country:AT">Austria</option>
375
+ <option value="country:AZ">Azerbaijan</option>
376
+ <option value="country:BH">Bahrain</option>
377
+ <option value="territory:UM-81">Baker Island</option>
378
+ <option value="country:BD">Bangladesh</option>
379
+ <option value="country:BB">Barbados</option>
380
+ <option value="country:BY">Belarus</option>
381
+ <option value="country:BE">Belgium</option>
382
+ <option value="country:BZ">Belize</option>
383
+ <option value="country:BJ">Benin</option>
384
+ <option value="territory:BM">Bermuda</option>
385
+ <option value="country:BT">Bhutan</option>
386
+ <option value="country:BO">Bolivia</option>
387
+ <option value="territory:BQ-BO">Bonaire</option>
388
+ <option value="country:BA">Bosnia and Herzegovina</option>
389
+ <option value="country:BW">Botswana</option>
390
+ <option value="territory:BV">Bouvet Island</option>
391
+ <option value="country:BR">Brazil</option>
392
+ <option value="territory:BAT">British Antarctic Territory</option>
393
+ <option value="territory:IO">British Indian Ocean Territory</option>
394
+ <option value="territory:VG">British Virgin Islands</option>
395
+ <option value="country:BN">Brunei</option>
396
+ <option value="country:BG">Bulgaria</option>
397
+ <option value="country:BF">Burkina Faso</option>
398
+ <option value="country:MM">Burma</option>
399
+ <option value="country:BI">Burundi</option>
400
+ <option value="country:KH">Cambodia</option>
401
+ <option value="country:CM">Cameroon</option>
402
+ <option value="country:CA">Canada</option>
403
+ <option value="country:CV">Cape Verde</option>
404
+ <option value="territory:KY">Cayman Islands</option>
405
+ <option value="country:CF">Central African Republic</option>
406
+ <option value="territory:ES-CE">Ceuta</option>
407
+ <option value="country:TD">Chad</option>
408
+ <option value="country:CL">Chile</option>
409
+ <option value="country:CN">China</option>
410
+ <option value="territory:CX">Christmas Island</option>
411
+ <option value="territory:CC">Cocos (Keeling) Islands</option>
412
+ <option value="country:CO">Colombia</option>
413
+ <option value="country:KM">Comoros</option>
414
+ <option value="country:CG">Congo</option>
415
+ <option value="country:CD">Congo (Democratic Republic)</option>
416
+ <option value="territory:CK">Cook Islands</option>
417
+ <option value="country:CR">Costa Rica</option>
418
+ <option value="country:HR">Croatia</option>
419
+ <option value="country:CU">Cuba</option>
420
+ <option value="territory:CW">Curaçao</option>
421
+ <option value="country:CY">Cyprus</option>
422
+ <option value="country:CZ">Czechia</option>
423
+ <option value="country:CS">Czechoslovakia</option>
424
+ <option value="country:DK">Denmark</option>
425
+ <option value="territory:XXD">Dhekelia</option>
426
+ <option value="country:DJ">Djibouti</option>
427
+ <option value="country:DM">Dominica</option>
428
+ <option value="country:DO">Dominican Republic</option>
429
+ <option value="territory:AE-DU">Dubai</option>
430
+ <option value="country:DD">East Germany</option>
431
+ <option value="country:TL">East Timor</option>
432
+ <option value="country:EC">Ecuador</option>
433
+ <option value="country:EG">Egypt</option>
434
+ <option value="country:SV">El Salvador</option>
435
+ <option value="country:GQ">Equatorial Guinea</option>
436
+ <option value="country:ER">Eritrea</option>
437
+ <option value="country:EE">Estonia</option>
438
+ <option value="country:ET">Ethiopia</option>
439
+ <option value="territory:FK">Falkland Islands</option>
440
+ <option value="territory:FO">Faroe Islands</option>
441
+ <option value="country:FJ">Fiji</option>
442
+ <option value="country:FI">Finland</option>
443
+ <option value="country:FR">France</option>
444
+ <option value="territory:GF">French Guiana</option>
445
+ <option value="territory:PF">French Polynesia</option>
446
+ <option value="territory:TF">French Southern Territories</option>
447
+ <option value="territory:AE-FU">Fujairah</option>
448
+ <option value="country:GA">Gabon</option>
449
+ <option value="country:GE">Georgia</option>
450
+ <option value="country:DE">Germany</option>
451
+ <option value="country:GH">Ghana</option>
452
+ <option value="territory:GI">Gibraltar</option>
453
+ <option value="country:GR">Greece</option>
454
+ <option value="territory:GL">Greenland</option>
455
+ <option value="country:GD">Grenada</option>
456
+ <option value="territory:GP">Guadeloupe</option>
457
+ <option value="territory:GU">Guam</option>
458
+ <option value="country:GT">Guatemala</option>
459
+ <option value="territory:GG">Guernsey</option>
460
+ <option value="country:GN">Guinea</option>
461
+ <option value="country:GW">Guinea-Bissau</option>
462
+ <option value="country:GY">Guyana</option>
463
+ <option value="country:HT">Haiti</option>
464
+ <option value="territory:HM">Heard Island and McDonald Islands</option>
465
+ <option value="country:HN">Honduras</option>
466
+ <option value="territory:HK">Hong Kong</option>
467
+ <option value="territory:UM-84">Howland Island</option>
468
+ <option value="country:HU">Hungary</option>
469
+ <option value="country:IS">Iceland</option>
470
+ <option value="country:IN">India</option>
471
+ <option value="country:ID">Indonesia</option>
472
+ <option value="country:IR">Iran</option>
473
+ <option value="country:IQ">Iraq</option>
474
+ <option value="country:IE">Ireland</option>
475
+ <option value="territory:IM">Isle of Man</option>
476
+ <option value="country:IL">Israel</option>
477
+ <option value="country:IT">Italy</option>
478
+ <option value="country:CI">Ivory Coast</option>
479
+ <option value="country:JM">Jamaica</option>
480
+ <option value="country:JP">Japan</option>
481
+ <option value="territory:UM-86">Jarvis Island</option>
482
+ <option value="territory:JE">Jersey</option>
483
+ <option value="territory:UM-67">Johnston Atoll</option>
484
+ <option value="country:JO">Jordan</option>
485
+ <option value="country:KZ">Kazakhstan</option>
486
+ <option value="country:KE">Kenya</option>
487
+ <option value="territory:UM-89">Kingman Reef</option>
488
+ <option value="country:KI">Kiribati</option>
489
+ <option value="country:XK">Kosovo</option>
490
+ <option value="country:KW">Kuwait</option>
491
+ <option value="country:KG">Kyrgyzstan</option>
492
+ <option value="country:LA">Laos</option>
493
+ <option value="country:LV">Latvia</option>
494
+ <option value="country:LB">Lebanon</option>
495
+ <option value="country:LS">Lesotho</option>
496
+ <option value="country:LR">Liberia</option>
497
+ <option value="country:LY">Libya</option>
498
+ <option value="country:LI">Liechtenstein</option>
499
+ <option value="country:LT">Lithuania</option>
500
+ <option value="country:LU">Luxembourg</option>
501
+ <option value="territory:MO">Macao</option>
502
+ <option value="country:MK">Macedonia</option>
503
+ <option value="country:MG">Madagascar</option>
504
+ <option value="country:MW">Malawi</option>
505
+ <option value="country:MY">Malaysia</option>
506
+ <option value="country:MV">Maldives</option>
507
+ <option value="country:ML">Mali</option>
508
+ <option value="country:MT">Malta</option>
509
+ <option value="country:MH">Marshall Islands</option>
510
+ <option value="territory:MQ">Martinique</option>
511
+ <option value="country:MR">Mauritania</option>
512
+ <option value="country:MU">Mauritius</option>
513
+ <option value="territory:YT">Mayotte</option>
514
+ <option value="territory:ES-ML">Melilla</option>
515
+ <option value="country:MX">Mexico</option>
516
+ <option value="country:FM">Micronesia</option>
517
+ <option value="territory:UM-71">Midway Islands</option>
518
+ <option value="country:MD">Moldova</option>
519
+ <option value="country:MC">Monaco</option>
520
+ <option value="country:MN">Mongolia</option>
521
+ <option value="country:ME">Montenegro</option>
522
+ <option value="territory:MS">Montserrat</option>
523
+ <option value="country:MA">Morocco</option>
524
+ <option value="country:MZ">Mozambique</option>
525
+ <option value="country:NA">Namibia</option>
526
+ <option value="country:NR">Nauru</option>
527
+ <option value="territory:UM-76">Navassa Island</option>
528
+ <option value="country:NP">Nepal</option>
529
+ <option value="country:NL">Netherlands</option>
530
+ <option value="territory:NC">New Caledonia</option>
531
+ <option value="country:NZ">New Zealand</option>
532
+ <option value="country:NI">Nicaragua</option>
533
+ <option value="country:NE">Niger</option>
534
+ <option value="country:NG">Nigeria</option>
535
+ <option value="territory:NU">Niue</option>
536
+ <option value="territory:NF">Norfolk Island</option>
537
+ <option value="country:KP">North Korea</option>
538
+ <option value="territory:MP">Northern Mariana Islands</option>
539
+ <option value="country:NO">Norway</option>
540
+ <option value="territory:PS">Occupied Palestinian Territories</option>
541
+ <option value="country:OM">Oman</option>
542
+ <option value="country:PK">Pakistan</option>
543
+ <option value="country:PW">Palau</option>
544
+ <option value="territory:UM-95">Palmyra Atoll</option>
545
+ <option value="country:PA">Panama</option>
546
+ <option value="country:PG">Papua New Guinea</option>
547
+ <option value="country:PY">Paraguay</option>
548
+ <option value="country:PE">Peru</option>
549
+ <option value="country:PH">Philippines</option>
550
+ <option value="territory:PN">Pitcairn, Henderson, Ducie and Oeno Islands</option>
551
+ <option value="country:PL">Poland</option>
552
+ <option value="country:PT">Portugal</option>
553
+ <option value="territory:PR">Puerto Rico</option>
554
+ <option value="country:QA">Qatar</option>
555
+ <option value="territory:AE-RK">Ras al-Khaimah</option>
556
+ <option value="country:RO">Romania</option>
557
+ <option value="country:RU">Russia</option>
558
+ <option value="country:RW">Rwanda</option>
559
+ <option value="territory:RE">Réunion</option>
560
+ <option value="territory:BQ-SA">Saba</option>
561
+ <option value="territory:BL">Saint Barthélemy</option>
562
+ <option value="territory:SH-HL">Saint Helena</option>
563
+ <option value="territory:PM">Saint Pierre and Miquelon</option>
564
+ <option value="territory:MF">Saint-Martin (French part)</option>
565
+ <option value="country:WS">Samoa</option>
566
+ <option value="country:SM">San Marino</option>
567
+ <option value="country:ST">Sao Tome and Principe</option>
568
+ <option value="country:SA">Saudi Arabia</option>
569
+ <option value="country:SN">Senegal</option>
570
+ <option value="country:RS">Serbia</option>
571
+ <option value="country:SC">Seychelles</option>
572
+ <option value="territory:AE-SH">Sharjah</option>
573
+ <option value="country:SL">Sierra Leone</option>
574
+ <option value="country:SG">Singapore</option>
575
+ <option value="territory:BQ-SE">Sint Eustatius</option>
576
+ <option value="territory:SX">Sint Maarten (Dutch part)</option>
577
+ <option value="country:SK">Slovakia</option>
578
+ <option value="country:SI">Slovenia</option>
579
+ <option value="country:SB">Solomon Islands</option>
580
+ <option value="country:SO">Somalia</option>
581
+ <option value="country:ZA">South Africa</option>
582
+ <option value="territory:GS">South Georgia and South Sandwich Islands</option>
583
+ <option value="country:KR">South Korea</option>
584
+ <option value="country:SS">South Sudan</option>
585
+ <option value="country:ES">Spain</option>
586
+ <option value="country:LK">Sri Lanka</option>
587
+ <option value="country:KN">St Kitts and Nevis</option>
588
+ <option value="country:LC">St Lucia</option>
589
+ <option value="country:VC">St Vincent</option>
590
+ <option value="country:SD">Sudan</option>
591
+ <option value="country:SR">Suriname</option>
592
+ <option value="territory:SJ">Svalbard and Jan Mayen</option>
593
+ <option value="country:SZ">Swaziland</option>
594
+ <option value="country:SE">Sweden</option>
595
+ <option value="country:CH">Switzerland</option>
596
+ <option value="country:SY">Syria</option>
597
+ <option value="territory:TW">Taiwan</option>
598
+ <option value="country:TJ">Tajikistan</option>
599
+ <option value="country:TZ">Tanzania</option>
600
+ <option value="country:TH">Thailand</option>
601
+ <option value="country:BS">The Bahamas</option>
602
+ <option value="country:GM">The Gambia</option>
603
+ <option value="country:TG">Togo</option>
604
+ <option value="territory:TK">Tokelau</option>
605
+ <option value="country:TO">Tonga</option>
606
+ <option value="country:TT">Trinidad and Tobago</option>
607
+ <option value="territory:SH-TA">Tristan da Cunha</option>
608
+ <option value="country:TN">Tunisia</option>
609
+ <option value="country:TR">Turkey</option>
610
+ <option value="country:TM">Turkmenistan</option>
611
+ <option value="territory:TC">Turks and Caicos Islands</option>
612
+ <option value="country:TV">Tuvalu</option>
613
+ <option value="country:SU">USSR</option>
614
+ <option value="country:UG">Uganda</option>
615
+ <option value="country:UA">Ukraine</option>
616
+ <option value="territory:AE-UQ">Umm al-Quwain</option>
617
+ <option value="country:AE">United Arab Emirates</option>
618
+ <option value="country:GB" selected>United Kingdom</option>
619
+ <option value="country:US">United States</option>
620
+ <option value="territory:VI">United States Virgin Islands</option>
621
+ <option value="country:UY">Uruguay</option>
622
+ <option value="country:UZ">Uzbekistan</option>
623
+ <option value="country:VU">Vanuatu</option>
624
+ <option value="country:VA">Vatican City</option>
625
+ <option value="country:VE">Venezuela</option>
626
+ <option value="country:VN">Vietnam</option>
627
+ <option value="territory:UM-79">Wake Island</option>
628
+ <option value="territory:WF">Wallis and Futuna</option>
629
+ <option value="territory:EH">Western Sahara</option>
630
+ <option value="country:YE">Yemen</option>
631
+ <option value="country:YU">Yugoslavia</option>
632
+ <option value="country:ZM">Zambia</option>
633
+ <option value="country:ZW">Zimbabwe</option>
634
+ <option value="territory:AX">Åland Islands</option>
635
+ </select>
636
+ </div>
637
+
638
+ <button type="submit">Submit your answer</button>
639
+ </form>
640
+ </main>
641
+
642
+ <script type="text/javascript" src="../dist/accessible-autocomplete.min.js"></script>
643
+ <script type="text/javascript">
644
+ var selectEl = document.querySelector('#last-location')
645
+ accessibleAutocomplete.enhanceSelectElement({
646
+ autoselect: true,
647
+ defaultValue: selectEl.options[selectEl.options.selectedIndex].innerHTML,
648
+ minLength: 2,
649
+ selectElement: selectEl
650
+ })
651
+
652
+ selectEl = document.querySelector('#passport-location')
653
+ accessibleAutocomplete.enhanceSelectElement({
654
+ autoselect: true,
655
+ defaultValue: selectEl.options[selectEl.options.selectedIndex].innerHTML,
656
+ minLength: 2,
657
+ selectElement: selectEl
658
+ })
659
+
660
+ var queryStringParameters = window.location.search
661
+ var previouslySubmitted = queryStringParameters.length > 0
662
+ if (previouslySubmitted) {
663
+ var submittedEl = document.querySelector('.submitted')
664
+ submittedEl.classList.remove('submitted--hidden')
665
+ var params = new URLSearchParams(document.location.search.split('?')[1])
666
+ document.querySelector('.submitted__last-location').innerHTML = params.get('last-location')
667
+ document.querySelector('.submitted__passport-location').innerHTML = params.get('passport-location')
668
+ }
669
+ </script>
670
+ </body>
671
+ </html>