!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).autocomplete=t()}(this,function(){"use strict";return function(a){var u,o,d=document,l=d.createElement("div"),s=l.style,e=navigator.userAgent,t=-1!==e.indexOf("Firefox")&&-1!==e.indexOf("Mobile"),i=a.debounceWaitMs||0,n=t?"input":"keyup",c=[],v="",r=2,f=a.showOnFocus,p=0;if(void 0!==a.minLength&&(r=a.minLength),!a.input)throw new Error("input undefined");var m=a.input;function h(){o&&window.clearTimeout(o)}function g(){return!!l.parentNode}function E(){p++,c=[],v="",u=void 0,function(){var e=l.parentNode;e&&e.removeChild(l)}()}function w(){for(;l.firstChild;)l.removeChild(l.firstChild);var o=function(e,t){var n=d.createElement("div");return n.textContent=e.label||"",n};a.render&&(o=a.render);var i=function(e,t){var n=d.createElement("div");return n.textContent=e,n};a.renderGroup&&(i=a.renderGroup);var r=d.createDocumentFragment(),f="#9?$";if(c.forEach(function(t){if(t.group&&t.group!==f){f=t.group;var e=i(t.group,v);e&&(e.className+=" group",r.appendChild(e))}var n=o(t,v);n&&(n.addEventListener("click",function(e){a.onSelect(t,m),E(),e.preventDefault(),e.stopPropagation()}),t===u&&(n.className+=" selected"),r.appendChild(n))}),l.appendChild(r),c.length=r||1===e?(h(),o=window.setTimeout(function(){a.fetch(n,function(e){p===t&&e&&(v=n,u=0

16 Mindcap-on-pc Volgorechensk Church-tycoon---church-simulator-on-pc состав-числа-on-pc