';else if(0===b.length)r.innerHTML='
';else{b.sort(function(e,t){return e.searchTextCount!==t.searchTextCount?t.searchTextCount-e.searchTextCount:e.hitCount!==t.hitCount?t.hitCount-e.hitCount:t.id-e.id});var t='';b.forEach(function(e){t+=e.item}),t+="
",r.innerHTML=t}};$(".search-icon").click(t),n.addEventListener("keypress",function(e){13===e.keyCode&&t()}),$(".local-search-pop-overlay").remove(),$("body").css("overflow",""),proceedsearch()}})};$(".popup-trigger").click(function(e){e.stopPropagation(),!1===isfetched?searchFunc(path,"local-search-input","local-search-result"):proceedsearch()}),$(".popup-btn-close").click(onPopupClose),$(".popup").click(function(e){e.stopPropagation()}),$(document).on("keyup",function(e){27===e.which&&$(".search-popup").is(":visible")&&onPopupClose()})