!function(){"use strict";window.wp.hooks;const e=(e,t)=>{let r=null;return function(...c){const o=this;window.clearTimeout(r),r=window.setTimeout((()=>{e.apply(o,c)}),t)}};document.querySelectorAll(".widget_ep-facet, .wp-block-elasticpress-facet").forEach((t=>{if(!t.querySelector(".facet-search"))return;const r=t.querySelector(".terms");t.querySelector(".facet-search").addEventListener("keyup",e((e=>{13!==e.keyCode&&((e,t)=>{const{target:r}=e,c=r.value.toLowerCase();t.querySelectorAll(".term").forEach((e=>{const t=e.getAttribute("data-term-slug");e.getAttribute("data-term-name").includes(c)||t.includes(c)?e.classList.remove("hide"):e.classList.add("hide")}))})(e,r)}),200))}))}();