$(()=>{const r=document.querySelector("#nine_gaming_games"),u=r.querySelectorAll("a"),t=document.querySelector("#filter_input"),f=document.querySelector("#filter_categories"),e=document.querySelector("#load_more_input"),n={name:null,category:null},i=()=>{Array.prototype.slice.call(u).forEach(t=>{const i=t.dataset.game.toLowerCase(),r=t.dataset.category,u=r.split(".");u.forEach(r=>{const u=!n.category||n.category===r,f=!n.name||i.indexOf(n.name)>=0;t.hidden=!(u&&f)})}),e.dataset.active=!n.name&&!n.category},o=(n,t,i)=>{var r;return function(){var u=this,f=arguments;clearTimeout(r);r=setTimeout(function(){r=null;i||n.apply(u,f)},t);i&&!r&&n.apply(u,f)}};$(t).keyup(o(function(){n.name=t.value.toLowerCase();i()},250));$(f).on("click",".category-filter-link",function(){const t=$(this);t.siblings().removeClass("active");t.addClass("active");n.category=this.dataset.category;i()})});