1/* 2 swiped-events.js - v@version@ 3 Pure JavaScript swipe events 4 https://github.com/john-doherty/swiped-events 5 @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element 6 @author John Doherty <www.johndoherty.info> 7 @license MIT 8*/ 9(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};if("undefined"!=typeof WPD.dom&&1<WPD.dom.version)return!1;WPD.dom=function(){if("undefined"==typeof WPD.dom.fn||"undefined"==typeof WPD.dom.fn.a)WPD.dom.fn={a:[],is_wpd_dom:!0,length:0,get:function(b){return"undefined"==typeof b?this.a.slice():"undefined"!=typeof this.a[b]?this.a[b]:null},_:function(b){return"<"===b.charAt(0)?WPD.dom._fn.createElementsFromHTML(b):Array.prototype.slice.call(document.querySelectorAll(b))},$:function(b, 10c){let a=this.copy(this,!0);a.a="undefined"!=typeof c?c.find(b).get():"string"==typeof b?a._(b):[b];a.length=a.a.length;return a},extend:function(){for(let b=1;b<arguments.length;b++)for(let c in arguments[b])arguments[b].hasOwnProperty(c)&&(arguments[0][c]=arguments[b][c]);return arguments[0]},copy:function(b,c){let a,d,e;if("object"!=typeof b||null===b)return b;a=new b.constructor;for(d in b)b.hasOwnProperty(d)&&(e=typeof b[d],a[d]=c&&"object"===e&&null!==b[d]?this.copy(b[d]):b[d]);return a},parent:function(b){let c= 11this.get(0),a=this.copy(this,!0);a.a=[];null!=c&&(c=c.parentElement,"undefined"!=typeof b?c.matches(b)&&(a.a=[c]):a.a=null==c?[]:[c]);return a},first:function(){let b=this.copy(this,!0);b.a="undefined"!=typeof b.a[0]?[b.a[0]]:[];b.length=b.a.length;return b},last:function(){let b=this.copy(this,!0);b.a=0<b.a.length?[b.a[b.a.length-1]]:[];b.length=b.a.length;return b},prev:function(b){let c=this.copy(this,!0);if("undefined"==typeof b)c.a="undefined"!=typeof c.a[0]&&null!=c.a[0].previousElementSibling? 12[c.a[0].previousElementSibling]:[];else if("undefined"!=typeof c.a[0]){let a=c.a[0].previousElementSibling;for(c.a=[];null!=a;){if(a.matches(b)){c.a=[a];break}a=a.previousElementSibling}}c.length=c.a.length;return c},next:function(b){let c=this.copy(this,!0);if("undefined"==typeof b)c.a="undefined"!=typeof c.a[0]&&null!=c.a[0].nextElementSibling?[c.a[0].nextElementSibling]:[];else if("undefined"!=typeof c.a[0]){let a=c.a[0].nextElementSibling;for(c.a=[];null!=a;){if(a.matches(b)){c.a=[a];break}a= 13a.nextElementSibling}}c.length=c.a.length;return c},closest:function(b){let c=this.get(0),a=this.copy(this,!0);a.a=[];if("string"===typeof b){if(null!==c&&"undefined"!=typeof c.matches&&""!==b){if(!c.matches(b))for(;(c=c.parentElement)&&!c.matches(b););a.a=null==c?[]:[c]}}else if(null!==c&&"undefined"!=typeof c.matches&&"undefined"!=typeof b.matches){if(c!==b)for(;(c=c.parentElement)&&c!==b;);a.a=null==c?[]:[c]}a.length=a.a.length;return a},add:function(b){if("undefined"!==typeof b.nodeType)-1==this.a.indexOf(b)&& 14this.a.push(b);else if("undefined"!==typeof b.n){let c=this;b.n.forEach(function(a){-1==c.a.indexOf(a)&&c.a.push(a)})}return this},find:function(b){let c=this.copy(this,!0);c.a=[];this.forEach(function(a){null!==a&&"undefined"!=typeof a.querySelectorAll&&(c.a=c.a.concat(Array.prototype.slice.call(a.querySelectorAll(b))))});c.length=c.a.length;return c},forEach:function(b){this.a.forEach(function(c,a,d){b.apply(c,[c,a,d])});return this},each:function(b){return this.forEach(b)},hasClass:function(b){let c= 15this.get(0);return null!=c?c.classList.contains(b):!1},addClass:function(b){let c=arguments;1==c.length&&(c=b.split(" "));this.forEach(function(a){a.classList.add.apply(a.classList,c)});return this},removeClass:function(b){let c=arguments;1==c.length&&(c=b.split(" "));this.forEach(function(a){a.classList.remove.apply(a.classList,c)});return this},is:function(b){let c=this.get(0);return null!=c?c.matches(b):!1},val:function(b){let c=this.get(0);if(null!=c)if(1==arguments.length)if("select-multiple"== 16c.type){b="string"===typeof b?b.split(","):b;for(let a=0,d=c.options.length,e;a<d;a++)e=c.options[a],-1!=b.indexOf(e.value)?e.selected=!0:e.selected=!1}else c.value=b;else return"select-multiple"==c.type?Array.prototype.map.call(c.selectedOptions,function(a){return a.value}):c.value;return this},attr:function(b,c){let a,d=arguments,e=this;this.forEach(function(g){2==d.length?(g.setAttribute(b,c),a=e):"object"===typeof b?Object.keys(b).forEach(function(h){g.setAttribute(h,b[h])}):a=g.getAttribute(b)}); 17return a},removeAttr:function(b){this.forEach(function(c){c.removeAttribute(b)});return this},prop:function(b,c){let a,d=arguments;this.forEach(function(e){2==d.length?e[b]=c:a="undefined"!=typeof e[b]?e[b]:null});return 2==d.length?this:a},data:function(b,c){let a=this.get(0),d=b.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return null!=a?2==arguments.length?(a.dataset[d]=c,this):"undefined"==typeof a.dataset[d]?"":a.dataset[d]:""},html:function(b){let c=this.get(0);return null!=c? 181==arguments.length?(c.innerHTML=b,this):c.innerHTML:""},text:function(b){let c=this.get(0);return null!=c?1==arguments.length?(c.textContent=b,this):c.textContent:""},css:function(b,c){let a=this.get(),d;for(let e=0;e<a.length;e++)if(d=a[e],1==arguments.length)if("object"==typeof b)Object.keys(b).forEach(function(g){d.style[g]=b[g]});else return window.getComputedStyle(d)[b];else d.style[b]=c;return this},position:function(){let b=this.get(0);return null!=b?{top:b.offsetTop,left:b.offsetLeft}:{top:0, 19left:0}},offset:function(){let b=this.get(0);return null!=b?WPD.dom._fn.hasFixedParent(b)?b.getBoundingClientRect():WPD.dom._fn.absolutePosition(b):{top:0,left:0}},outerWidth:function(b){b=b||!1;let c=this.get(0);if(null!=c)return b?parseInt(c.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(c.offsetWidth)}
19,outerHeight:function(b){return b?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height"))}, 20width:function(){return this.outerWidth()},height:function(){return this.outerHeight()},on:function(){let b=arguments,c=function(e,g){let h;if("mouseenter"==g.type||"mouseleave"==g.type||"hover"==g.type){var f=document.elementFromPoint(g.clientX,g.clientY);if(!f.matches(e[1]))for(;(f=f.parentElement)&&!f.matches(e[1]););null!=f&&(h=WPD.dom(f))}else h=WPD.dom(g.target).closest(e[1]);if(null!=h&&0<h.closest(this).length){f=[];f.push(g);if("undefined"!=typeof e[4])for(g=4;g<e.length;g++)f.push(e[g]); 21e[2].apply(h.get(0),f)}},a=function(e,g){let h=[];h.push(g);if("undefined"!=typeof e[3])for(g=3;g<e.length;g++)h.push(e[g]);e[1].apply(this,h)},d=b[0].split(" ");for(let e=0;e<d.length;e++){let g=d[e];"string"==typeof b[1]?this.forEach(function(h){if(!WPD.dom._fn.hasEventListener(h,g,b[2])){let f=c.bind(h,b);h.addEventListener(g,f,b[3]);h._wpd_el="undefined"==typeof h._wpd_el?[]:h._wpd_el;h._wpd_el.push({type:g,selector:b[1],func:f,trigger:b[2],args:b[3]})}}):this.forEach(function(h){if(!WPD.dom._fn.hasEventListener(h, 22g,b[1])){let f=a.bind(h,b);h.addEventListener(g,f,b[2]);h._wpd_el="undefined"==typeof h._wpd_el?[]:h._wpd_el;h._wpd_el.push({type:g,func:f,trigger:b[1],args:b[2]})}})}return this},off:function(b,c){this.forEach(function(a){if("undefined"!=typeof a._wpd_el)if("undefined"===typeof b){let d;for(;d=a._wpd_el.pop();)a.removeEventListener(d.type,d.func,d.args)}else b.split(" ").forEach(function(d){if("undefined"==typeof c){let e;for(;e=a._wpd_el.pop();)a.removeEventListener(d,e.func,e.args)}else a._wpd_el.forEach(function(e, 23g){e.type==d&&e.trigger==c&&a.removeEventListener(d,e.func,e.args)})})});return this},trigger:function(b,c,a,d){a=a||!1;d=d||!1;this.forEach(function(e){if(d&&"undefined"!=typeof jQuery)jQuery(e).trigger(b,c);else if(a){let g=new Event(b);g.detail=c;e.dispatchEvent(g)}if("undefined"!=typeof e._wpd_el)e._wpd_el.forEach(function(g){if(g.type==b){let h=new Event(b);g.trigger.apply(e,[h].concat(c))}});else{let g=!1,h=e;for(;;){h=h.parentElement;if(null==h)break;"undefined"!=typeof h._wpd_el&&h._wpd_el.forEach(function(f){if("undefined"!== 24typeof f.selector){var l=WPD.dom(h).find(f.selector);0<l.length&&0<=l.get().indexOf(e)&&f.type==b&&(l=new Event(b),f.trigger.apply(e,[l].concat(c)),g=!0)}});if(g)break}}});return this},clone:function(){let b=this.get(0);null!=b?(this.a=[b.cloneNode(!0)],this.length=this.a.length):this.a=[];this.length=this.a.length;return this},remove:function(b){if("undefined"!=typeof b)return b.parentElement.removeChild(b);this.forEach(function(c){if(null!=c.parentElement)return c.parentElement.removeChild(c)}); 25this.a=[];this.length=this.a.length;return null},detach:function(){let b=this,c=[];this.forEach(function(a){a=b.remove(a);null!=a&&c.push(a)});this.a=c;this.length=this.a.length;return this},prepend:function(b){"string"==typeof b&&(b=WPD.dom._fn.createElementsFromHTML(b));b=Array.isArray(b)?b:[b];this.forEach(function(c){b.forEach(function(a){"undefined"!=typeof a.is_wpd_dom?a.forEach(function(d){c.insertBefore(d,c.children[0])}):c.insertBefore(a,c.children[0])})});return this},append:function(b){"string"== 26typeof b&&(b=WPD.dom._fn.createElementsFromHTML(b));b=Array.isArray(b)?b:[b];this.forEach(function(c){b.forEach(function(a){null!=a&&("undefined"!=typeof a.is_wpd_dom?a.forEach(function(d){c.appendChild(d)}):c.appendChild(a))})});return this},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){let c=16*Math.random()|0;return("x"==b?c:c&3|8).toString(16)})}},WPD.dom._fn={hasFixedParent:function(b){do if("fixed"==window.getComputedStyle(b).position)return!0;while(b= 27b.parentElement);return!1},hasEventListener:function(b,c,a){if("undefined"==typeof b._wpd_el)return!1;for(let d=0;d<b._wpd_el.length;d++)if(b._wpd_el[d].trigger==a&&b._wpd_el[d].type==c)return!0;return!1},allDescendants:function(b){let c=[],a=this;Array.isArray(b)||(b=[b]);b.forEach(function(d){for(let e=0;e<d.childNodes.length;e++){let g=d.childNodes[e];c.push(g);c=c.concat(a.allDescendants(g))}});return c},createElementsFromHTML:function(b){let c=document.createElement("template");c.innerHTML=b; 28return Array.prototype.slice.call(c.content.childNodes)},absolutePosition:function(b){let c=document.body.getBoundingClientRect();b=b.getBoundingClientRect();let a=window.getComputedStyle(document.body).position,d=document.documentElement.offsetTop,e=document.documentElement.offsetLeft;if("relative"==a||"absolute"==a)e=d=0;return{top:b.top-c.top+d,left:b.left-c.left+e}},plugin:function(b,c){WPD.dom.fn[b]=function(a){return"undefined"!=typeof a&&c[a]?c[a].apply(this,Array.prototype.slice.call(arguments, 291)):this.each(function(d){d["wpd_dom_"+b]=Object.create(c).init(a,d)})}}},WPD.dom.version=1;return 1<=arguments.length?WPD.dom.fn.$.apply(WPD.dom.fn,arguments):WPD.dom.fn};WPD.dom();document.dispatchEvent(new Event("wpd-dom-core-loaded"))})(); 30(function(){WPD.dom.fn._animate={easing:{linear:function(b){return b},easeInOutQuad:function(b){return.5>b?2*b*b:1-Math.pow(-2*b+2,2)/2},easeOutQuad:function(b){return 1-(1-b)*(1-b)}}};WPD.dom.fn.animate=function(b,c,a){let d=this;c=c||200;a=a||"linear";this.forEach(function(e){let g,h=0,f,l={},k={},m,n,p;m=d.prop("_wpd_dom_animations");m=null==m?[]:m;!1===b?m.forEach(function(q){clearInterval(q)}):(p="undefined"!=typeof d._animate.easing[a]?d._animate.easing[a]:d._animate.easing.easeInOutQuad,Object.keys(b).forEach(function(q){-1< 31q.indexOf("scroll")?l[q]=e[q]:l[q]=parseInt(window.getComputedStyle(e)[q]);k[q]=b[q]-l[q]}),g=c/1E3*60,n=setInterval(function(){h++;h>
31g?clearInterval(n):(f=p(h/g),Object.keys(k).forEach(function(q){-1<q.indexOf("scroll")?e[q]=l[q]+k[q]*f:e.style[q]=l[q]+k[q]*f+"px"}))},1E3/60),m.push(n),d.prop("_wpd_dom_animations",m))});return this};document.dispatchEvent(new Event("wpd-dom-animate-loaded"))})(); 32(function(){let b=WPD.dom;WPD.dom.fn.unhighlight=function(c){let a={className:"highlight",element:"span"};b.extend(a,c);return this.find(a.element+"."+a.className).each(function(){let d=this.parentNode;d.replaceChild(this.firstChild,this);d.normalize()})};WPD.dom.fn.highlight=function(c,a){function d(h,f,l,k,m){m=""==m?".exhghttt":m;if(3===h.nodeType){if(f=h.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(f))return l=document.createElement(l||"span"),l.className=k||"highlight",k=/\.|,|\s/.test(f[0].charAt(0))? 33f.index+1:f.index,h=h.splitText(k),h.splitText(f[1].length),k=h.cloneNode(!0),l.appendChild(k),h.parentNode.replaceChild(l,h),1}else if(1===h.nodeType&&h.childNodes&&!/(script|style)/i.test(h.tagName)&&0< !b(h).closest(m).length&&(h.tagName!==l.toUpperCase()||h.className!==k))for(let n=0;n<h.childNodes.length;n++)n+=d(h.childNodes[n],f,l,k,m);return 0}let e={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};b.fn.extend(e,a);c.constructor===String&&(c=[c]);c=c.filter(function(h){return""!= 34h});c.forEach(function(h,f,l){l[f].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")});if(0==c.length)return this;a=e.caseSensitive?"":"i";c="("+c.join("|")+")";e.wordsOnly&&(c="(?:,|^|\\s)"+c+"(?:,|$|\\s)");let g=new RegExp(c,a);return this.each(function(h){d(h,g,e.element,e.className,e.excludeParents)})}})(); 35(function(){WPD.dom.fn.serialize=function(){let b=this.get(0);if(b&&"FORM"===b.nodeName){var c,a,d=[];for(c=b.elements.length-1;0<=c;--c)if(""!==b.elements[c].name)switch(b.elements[c].nodeName){case "INPUT":switch(b.elements[c].type){case "text":case "hidden":case "password":case "button":case "reset":case "submit":d.push(b.elements[c].name+"="+encodeURIComponent(b.elements[c].value));break;case "checkbox":case "radio":b.elements[c].checked&&d.push(b.elements[c].name+"="+encodeURIComponent(b.elements[c].value))}break; 36case "TEXTAREA":d.push(b.elements[c].name+"="+encodeURIComponent(b.elements[c].value));break;case "SELECT":switch(b.elements[c].type){case "select-one":d.push(b.elements[c].name+"="+encodeURIComponent(b.elements[c].value));break;case "select-multiple":for(a=b.elements[c].options.length-1;0<=a;--a)b.elements[c].options[a].selected&&d.push(b.elements[c].name+"="+encodeURIComponent(b.elements[c].options[a].value))}break;case "BUTTON":switch(b.elements[c].type){case "reset":case "submit":case "button":d.push(b.elements[c].name+ 37"="+encodeURIComponent(b.elements[c].value))}}return d.join("&")}};WPD.dom.fn.serializeForAjax=function(b,c){let a=[],d;for(d in b)if(b.hasOwnProperty(d)){let e=c?c+"["+d+"]":d,g=b[d];a.push(null!==g&&"object"===typeof g?WPD.dom.fn.serializeForAjax(g,e):encodeURIComponent(e)+"="+encodeURIComponent(g))}return a.join("&")};document.dispatchEvent(new Event("wpd-dom-serialize-loaded"))})(); 38(function(){WPD.dom.fn.inViewPort=function(b,c){var a=this.get(0);let d;if(null==a)return!1;b="undefined"==typeof b?0:b;c="undefined"==typeof c?window:document.querySelector(c);var e=a.getBoundingClientRect();a=e.top;let g=e.bottom,h=e.left,f=e.right;null==c&&(c=window);c===window?(e=window.innerWidth||0,d=window.innerHeight||0):(e=c.clientWidth,d=c.clientHeight,c=c.getBoundingClientRect(),a-=c.top,g-=c.top,h-=c.left,f-=c.left);b=~~Math.round(parseFloat(b));return 0>=f||h>=e?!1:0<b?a>=b&&g<d-b:(0< 39g&&a<=d-b)|(0>=a&&g>b)};document.dispatchEvent(new Event("wpd-dom-viewport-loaded"))})(); 40(function(){WPD.dom.fn.ajax=function(b){b=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},b);if("cors"!=b.cors){var c="ajax_cb_"+this.uuidv4().replaceAll("-","");WPD.dom.fn[c]=function(){b.success.apply(this,arguments);delete WPD.dom.fn[b.data.fn]};b.data.callback="WPD.dom.fn."+c;b.data.fn=c;c=document.createElement("script");c.type="text/javascript";
40c.src=b.url+"?"+this.serializeForAjax(b.data); 41c.onload=function(){this.remove()};document.body.appendChild(c)}else return c=new XMLHttpRequest,c.onreadystatechange=function(){null!=b.success&&4==this.readyState&&200==this.status&&b.success(this.responseText);null!=b.fail&&4==this.readyState&&400<=this.status&&b.fail(this)},c.open(b.method.toUpperCase(),b.url,!0),c.setRequestHeader("Content-type",b.contentType),c.setRequestHeader("Accept",b.accept),c.send(this.serializeForAjax(b.data)),c};document.dispatchEvent(new Event("wpd-dom-xhttp-loaded"))})(); 42window.WPD=window.WPD||{}; 43window.WPD.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){let c="";let a,d,e,g,h,f=0;for(b=this._utf8_encode(b);f<b.length;){var l=b.charCodeAt(f++);a=b.charCodeAt(f++);d=b.charCodeAt(f++);e=l>>2;l=(l&3)<<4|a>>4;g=(a&15)<<2|d>>6;h=d&63;isNaN(a)?g=h=64:isNaN(d)&&(h=64);c=c+this._keyStr.charAt(e)+this._keyStr.charAt(l)+this._keyStr.charAt(g)+this._keyStr.charAt(h)}return c},decode:function(b){let c="";let a,d,e,g=0;for(b=b.replace(/[^A-Za-z0-9\+\/=]/g, 44"");g<b.length;){var h=this._keyStr.indexOf(b.charAt(g++));var f=this._keyStr.indexOf(b.charAt(g++));d=this._keyStr.indexOf(b.charAt(g++));e=this._keyStr.indexOf(b.charAt(g++));h=h<<2|f>>4;f=(f&15)<<4|d>>2;a=(d&3)<<6|e;c+=String.fromCharCode(h);64!=d&&(c+=String.fromCharCode(f));64!=e&&(c+=String.fromCharCode(a))}return c=this._utf8_decode(c)},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");let c="";for(let a=0;a<b.length;a++){let d=b.charCodeAt(a);128>d?c+=String.fromCharCode(d):(127<d&&2048> 45d?c+=String.fromCharCode(d>>6|192):(c+=String.fromCharCode(d>>12|224),c+=String.fromCharCode(d>>6&63|128)),c+=String.fromCharCode(d&63|128))}return c},_utf8_decode:function(b){let c="",a=0,d,e,g;for(;a<b.length;)d=b.charCodeAt(a),128>d?(c+=String.fromCharCode(d),a++):191<d&&224>d?(e=b.charCodeAt(a+1),c+=String.fromCharCode((d&31)<<6|e&63),a+=2):(e=b.charCodeAt(a+1),g=b.charCodeAt(a+2),c+=String.fromCharCode((d&15)<<12|(e&63)<<6|g&63),a+=3);return c}}; 46(function(){window.WPD=window.WPD||{};WPD.Hooks=WPD.Hooks||{};let b=WPD.Hooks;b.filters=b.filters||{};b.addFilter=function(c,a,d){b.filters[c]=b.filters[c]||[];b.filters[c].push({priority:"undefined"===typeof d?10:d,callback:a})};b.removeFilter=function(c,a){"undefined"!=typeof b.filters[c]&&("undefined"==typeof a?b.filters[c]=[]:b.filters[c].forEach(function(d,e){d.callback===a&&b.filters[c].splice(e,1)}))};b.applyFilters=function(c){let a=[],d=Array.prototype.slice.call(arguments),e=arguments[1]; 47"undefined"!==typeof b.filters[c]&&0<b.filters[c].length&&(b.filters[c].forEach(function(g){a[g.priority]=a[g.priority]||[];a[g.priority].push(g.callback)}),d.splice(0,2),a.forEach(function(g){g.forEach(function(h){e=h.apply(null,[e].concat(d))})}));return e}})();window.WPD=window.WPD||{}; 48window.WPD.intervalUntilExecute=function(b,c,a,d){let e,g=0,h="function"===typeof c?c():c;a="undefined"==typeof a?100:a;d="undefined"==typeof d?50:d;if(!1===h)e=setInterval(function(){h="function"===typeof c?c():c;g++;if(g>d)return clearInterval(e),!1;if(!1!==h)return clearInterval(e),b(h)},a);else return b(h)}; 49(function(b,c){function a(k,m,n){for(;k&&k!==c.documentElement;){var p=k.getAttribute(m);if(p)return p;k=k.parentNode}return n}"function"!==typeof b.CustomEvent&&(b.CustomEvent=function(k,m){m=m||{bubbles:!1,cancelable:!1,detail:void 0};var n=c.createEvent("CustomEvent");n.initCustomEvent(k,m.bubbles,m.cancelable,m.detail);return n},b.CustomEvent.prototype=b.Event.prototype);c.addEventListener("touchstart",function(k){"true"!==k.target.getAttribute("data-swipe-ignore")&&(l=k.target,f=Date.now(),d= 50k.touches[0].clientX,e=k.touches[0].clientY,h=g=0)},!1);c.addEventListener("touchmove",function(k){if(d&&e){var m=k.touches[0].clientY;g=d-k.touches[0].clientX;h=e-m}},!1);c.addEventListener("touchend",function(k){if(l===k.target){var m=parseInt(a(l,"data-swipe-threshold","20"),10),n=parseInt(a(l,"data-swipe-timeout","500"),10),p=Date.now()-f,q="";k=k.changedTouches||k.touches||[];Math.abs(g)>Math.abs(h)?Math.abs(g)>m&&p<n&&(q=0<g?"swiped-left":"swiped-right"):Math.abs(h)>m&&p<n&&(q=0<h?"swiped-up": 51"swiped-down");""!==q&&(m={dir:q.replace(/swiped-/,""),xStart:parseInt(d,10),xEnd:parseInt((k[0]||{}).clientX||-1,10),yStart:parseInt(e,10),yEnd:parseInt((k[0]||{}).clientY||-1,10)},l.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:m})),l.dispatchEvent(new CustomEvent(q,{bubbles:!0,cancelable:!0,detail:m})));f=e=d=null}},!1);var d=null,e=null,g=null,h=null,f=null,l=null})(window,document); 52(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};window.WPD.ajaxsearchpro=new function(){this.prevState=null;this.firstIteration=!0;this.helpers={};this.plugin={}}})();WPD.dom._fn.plugin("ajaxsearchpro",window.WPD.ajaxsearchpro.plugin); 53(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{addAnimation:function(){let c=this,a=0,d=1,e=!0;if(0<c.call_num||c._no_animations)return c.n.results.find(".item, .asp_group_header").removeClass("opacityZero").removeClass("asp_an_"+c.animOptions.items),!1;c.n.results.find(".item, .asp_group_header").each(function(){let g=this;1===d&&(e=b(g).inViewPort(0));if(1<d&&e&&!b(g).inViewPort(0)||80<d)return b(g).removeClass("opacityZero"),!0;"isotopic"==c.o.resultstype&&d>c.il.itemsPerPage?b(g).removeClass("opacityZero"): 54(setTimeout(function(){b(g).addClass("asp_an_"+c.animOptions.items);b(g).removeClass("opacityZero")},a+25),a+=45,d++)})},removeAnimation:function(){let c=this;this.n.items.each(function(){b(this).removeClass("asp_an_"+c.animOptions.items)})}})})(WPD.dom); 55(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{autocomplete:function(){let c=this,a=c.n.text.val();if(""==c.n.text.val())c.n.textAutocomplete.val("");else{var d=c.n.textAutocomplete.val();if(""==d||0!=d.indexOf(a))c.n.textAutocomplete.val(""),c.n.text.val().length>=c.o.autocomplete.trigger_charcount&&(d={action:"ajaxsearchpro_autocomplete",asid:c.o.id,sauto:c.n.text.val(),asp_inst_id:c.o.rid,options:b("form",c.n.searchsettings).serialize()},c.postAuto=b.fn.ajax({url:ASP.ajaxurl,method:"POST", 56data:d,success:function(e){0<e.length&&(e=b("<textarea />").html(e).text(),e=e.replace(/^\s*[\r\n]/gm,""),e=a+e.substr(a.length));c.n.textAutocomplete.val(e)}}))}},autocompleteGoogleOnly:function(){let c=this,a=c.n.text.val();if(""==c.n.text.val())c.n.textAutocomplete.val("");else{var d=c.n.textAutocomplete.val();if(""==d||0!=d.indexOf(a)){c.n.textAutocomplete.val("");var e=c.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(g){0<b('input[name="'+g+'"]',c.n.searchsettings).length&& 571<b('input[name="'+g+'"]',c.n.searchsettings).val().length&&(e=b('input[name="'+g+'"]',c.n.searchsettings).val())});c.n.text.val().length>=c.o.autocomplete.trigger_charcount&&b.fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:a,hl:e,n
57olabels:"t",client:"hp",ds:""},success:function(g){0<g[1].length&&(g=g[1][0][0].replace(/(<([^>]+)>)/ig,""),g=b("<textarea />").html(g).text(),g=g.substr(a.length),c.n.textAutocomplete.val(a+g))}})}}}})})(WPD.dom); 58(function(b){let c=WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{openCompact:function(){let a=this;a.n.search.is("[asp-compact-w]")||(a.n.probox.attr("asp-compact-w",a.n.probox.width()),a.n.search.attr("asp-compact-w",a.n.search.width()));a.n.search.css({width:a.n.search.width()+"px"});a.n.probox.css({width:"auto"});setTimeout(function(){a.n.search.find(".probox>div:not(.promagnifier)").removeClass("hiddend")},80);clearTimeout(a.timeouts.compactBeforeOpen);a.timeouts.compactBeforeOpen= 59setTimeout(function(){let d;d="phone"==c.deviceType()?a.o.compact.width_phone:"tablet"==c.deviceType()?a.o.compact.width_tablet:a.o.compact.width;d=c.Hooks.applyFilters("asp_compact_width",d,a.o.id,a.o.iid);d=c.wp_hooks_apply_filters("asp_compact_width",d,a.o.id,a.o.iid);d=isNaN(d)?d:d+"px";a.n.search.css({"max-width":d,width:d});1==a.o.compact.overlay&&(a.n.search.css("z-index",999999),a.n.searchsettings.css("z-index",999999),a.n.resultsDiv.css("z-index",999999),a.n.trythis.css("z-index",999998), 60b("#asp_absolute_overlay").css({opacity:1,width:"100%",height:"100%","z-index":999990}));a.n.search.attr("asp-compact","open")},50);clearTimeout(a.timeouts.compactAfterOpen);a.timeouts.compactAfterOpen=setTimeout(function(){a.resize();a.n.trythis.css({display:"block"});1==a.o.compact.enabled&&"static"!=a.o.compact.position&&a.n.trythis.css({top:a.n.search.offset().top+a.n.search.outerHeight(!0)+"px",left:a.n.search.offset().left+"px"});a.n.text.trigger("focus");a.scrolling()},500)},closeCompact:function(){let a= 61this;clearTimeout(a.timeouts.compactBeforeOpen);clearTimeout(a.timeouts.compactAfterOpen);a.timeouts.compactBeforeOpen=setTimeout(function(){a.n.search.attr("asp-compact","closed")},50);a.n.search.find(".probox>div:not(.promagnifier)").addClass("hiddend");a.n.search.css({width:"auto"});a.n.probox.css({width:a.n.probox.attr("asp-compact-w")});a.n.trythis.css({left:a.n.search.position().left,display:"none"});1==a.o.compact.overlay&&(a.n.search.css("z-index",""),a.n.searchsettings.css("z-index",""), 62a.n.resultsDiv.css("z-index",""),a.n.trythis.css("z-index",""),b("#asp_absolute_overlay").css({opacity:0,width:0,height:0,"z-index":0}))}})})(WPD.dom); 63(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{setFilterStateInput:function(a){let d=this;"undefined"==typeof a&&(a=65);let e=function(){JSON.stringify(d.originalFormData)!=JSON.stringify(c.formData(b("form",d.n.searchsettings)))?d.n.searchsettings.find("input[name=filters_initial]").val(0):d.n.searchsettings.find("input[name=filters_initial]").val(1)};0==a?e():setTimeout(function(){e()},a)},resetSearchFilters:function(){c.formData(b("form",this.n.searchsettings), 64this.originalFormData);0<this.noUiSliders.length&&this.noUiSliders.forEach(function(a){if("undefined"!=typeof a.noUiSlider){let d=[];b(a).parent().find(".asp_slider_hidden").forEach(function(e){d.push(b(e).val())});0<d.length&&a.noUiSlider.set(d)}});"undefined"!=typeof this.select2jQuery&&this.select2jQuery(this.n.searchsettings.get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");this.n.text.val("");this.n.proloading.css("display","none");this.hideLoader();this.searchAbort(); 65this.setFilterStateInput(0)}})})(WPD.dom); 66(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{gaPageview:function(c){let a=this.gaGetTrackingID();if("undefined"==typeof ASP.analytics||"pageview"!=ASP.analytics.method)return!1;if(""!=ASP.analytics.string){let d="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga?ga:!1,e="function"==typeof gtag?gtag:!1;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));let g=this.o.homeurl.replace(window.location.origin, 67"");!1!==e?!1!==a&&e("config",a,{page_path:g+ASP.analytics.string.replace("{asp_term}",c)}):!1!==d&&(!1!==a&&d("create",a,"auto"),d("send","pageview",{page:g+ASP.analytics.string.replace("{asp_term}",c),title:"Ajax Search"}))}},gaEvent:function(c,a){let d=this.gaGetTrackingID();if("undefined"==typeof ASP.analytics||"event"!=ASP.analytics.method)return!1;let e="function"==typeof gtag?gtag:!1,g="function"==typeof window.__gaTracker?window.__gaTracker:"function"==typeof window.ga?window.ga:!1;if(!1=== 68e&&!1===g)return!1;if("undefined"!=typeof ASP.analytics.event[c]&&1==ASP.analytics.event[c].active){let h={search_id:this.o.id,search_name:this.o.name,phrase:this.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},f={event_category:ASP.analytics.event[c].category,event_label:ASP.analytics.event[c].label,value:ASP.analytics.event[c].value};a=b.fn.extend(h,a);
68Object.keys(a).forEach(function(l){let k=a[l];k=String(k).replace(/[\s\n\r]+/g," ").trim();Object.keys(f).forEach(function(m){f[m]= 69f[m].replace(new RegExp("{"+l+"}","gmi"),k)})});!1===e?!1!==d?d.forEach(function(l){g("create",l,"auto");g("send","event",f.event_category,ASP.analytics.event[c].action,f.event_label,f.value)}):g("send","event",f.event_category,ASP.analytics.event[c].action,f.event_label,f.value):!1!==d?d.forEach(function(l){f.send_to=l;e("event",ASP.analytics.event[c].action,f)}):e("event",ASP.analytics.event[c].action,f)}},gaGetTrackingID:function(){if("undefined"==typeof ASP.analytics)return!1;if("undefined"!= 70typeof ASP.analytics.tracking_id&&""!=ASP.analytics.tracking_id)return[ASP.analytics.tracking_id];if(!1===("function"==typeof window.gtag?window.gtag:!1)&&"undefined"!=typeof window.ga&&"undefined"!=typeof window.ga.getAll){let c=[];window.ga.getAll().forEach(function(a){c.push(a.get("trackingId"))});return 0<c.length?c:!1}return!1},stat_addKeyword:function(c,a){b.fn.ajax({url:ASP.ajaxurl,method:"POST",data:{action:"ajaxsearchpro_addkeyword",id:c,keyword:a},success:function(d){}})}})})(WPD.dom); 71(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{liveLoad:function(a,d,e,g){function h(m){var n=new DOMParser;let p=n.parseFromString(m,"text/html"),q=b(p);k.o.statistics&&k.stat_addKeyword(k.o.id,k.n.text.val());if(""!=m&&0<q.length&&0<q.find(a).length){m=m.replace(/&asp_force_reset_pagination=1/gmi,"");m=m.replace(/%26asp_force_reset_pagination%3D1/gmi,"");m=m.replace(/&asp_force_reset_pagination=1/gmi,"");m=c.Hooks.applyFilters("asp_live_load_html", 72m,k.o.id,k.o.iid);m=c.wp_hooks_apply_filters("asp_live_load_html",m,k.o.id,k.o.iid);q=b(n.parseFromString(m,"text/html"));l.get(0).parentNode.replaceChild(q.find(a).get(0),l.get(0));l=b(a).first();e&&(document.title=p.title,history.pushState({},null,d));!1!==a.indexOf("asp_es_")&&"undefined"!=typeof elementorFrontend&&"undefined"!=typeof elementorFrontend.init&&(n=l.parent().data("widget_type"),""!=n&&"undefined"!=typeof jQuery&&elementorFrontend.hooks.doAction("frontend/element_ready/"+n,jQuery(l.parent().get(0))), 73k.fixElementorPostPagination(d),k.n.s.trigger("asp_elementor_results",[k.o.id,k.o.iid,l],!0,!0));b(a).first().find(".woocommerce-ordering").on("change","select.orderby",function(){b(this).closest("form").trigger("submit")});if(1==k.o.singleHighlight)b(a).find("a").on("click",function(){localStorage.removeItem("asp_phrase_highlight");""!=c.unqoutePhrase(k.n.text.val())&&localStorage.setItem("asp_phrase_highlight",JSON.stringify({phrase:c.unqoutePhrase(k.n.text.val()),id:k.o.id}))});ASP.initialize(); 74k.lastSuccesfulSearch=b("form",k.n.searchsettings).serialize()+k.n.text.val().trim();k.lastSearchData=m}else 0==q.find(a).length&&!1!==a.indexOf("asp_es_")&&(l.html(""),k.lastSuccesfulSearch=b("form",k.n.searchsettings).serialize()+k.n.text.val().trim(),k.lastSearchData=m,k.n.s.trigger("asp_elementor_results",[k.o.id,k.o.iid,l],!0,!0));k.n.s.trigger("asp_search_end",[k.o.id,k.o.iid,k.n.text.val(),m],!0,!0);k.gaEvent("search_end",{results_count:"unknown"});k.gaPageview(k.n.text.val());k.hideLoader(); 75l.css("opacity",1);k.searching=!1;""!=k.n.text.val()&&k.n.proclose.css({display:"block"})}if("body"==a||"html"==a)return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;""==ASP.pageHTML&&"undefined"===typeof ASP._ajax_page_html&&(ASP._ajax_page_html=!0,b.fn.ajax({url:location.href,method:"GET",success:function(m){ASP.pageHTML=m},dataType:"html"}));e="undefined"==typeof e?!0:e;g="undefined"==typeof g?!1:g;let f=".search-content #content #Content div[role=main] main[role=main] div.theme-content div.td-ss-main-content main.l-content #primary".split(" "); 76"#main"!=a&&f.unshift("#main");if(1>b(a).length&&(f.forEach(function(m,n){if(0<b(n).length)return a=n,!1}),1>b(a).length))return console.log("Ajax Search Pro: The live search selector does not exist on the page."),!1;-1<a.indexOf("asp_es_")&&(a+=" .elementor-widget-container");let l=b(a).first(),k=this;k.searchAbort();l.css("opacity",.4);g||1!=k.n.searchsettings.find("input[name=filters_initial]").val()||""!=k.n.text.val()?k.post=b.fn.ajax({url:d,method:"GET",success:function(m){h(m)},dataType:"html", 77fail:function(m){l.css("opacity",1);m.aborted||(l.html("This request has failed. Please check your connection."),k.hideLoader(),k.searching=!1,k.n.proclose.css({display:"block"}))}}):window.WPD.intervalUntilExecute(function(){h(ASP.pageHTML)},function(){return""!=ASP.pageHTML})},getCurrentLiveURL:function(){var a="asp_ls="+c.nicePhrase(this.n.text.val());let d="&",e=window.location.href;e=-1<e.indexOf("asp_ls=")?e.slice(0,e.indexOf("asp_ls=")):e;e=-1<e.indexOf("asp_ls&")?e.slice(0,e.indexOf("asp_ls&")): 78e;e=-1<e.indexOf("p_asid=")?e.slice(0,e.indexOf("p_asid=")):e;e=-1<e.indexOf("asp_")?e.slice(0,e.indexOf("asp_")):e;-1===e.indexOf("?")&&(d="?");
78a=e+d+a+"&asp_active=1&asp_force_reset_pagination=1&p_asid="+this.o.id+"&p_asp_data=1&"+b("form",this.n.searchsettings).serialize();return a=a.replace("?&","?")},fixElementorPostPagination:function(a){let d=this,e=b(".asp_es_"+d.o.id);if(0<e.length){let g=a.indexOf("?");if(0<=g){let h=a.substring(g+1);if(h&&(h=h.replace(/&asp_force_reset_pagination=1/gmi, 79""),e.find(".elementor-pagination a, .elementor-widget-container .woocommerce-pagination a").each(function(){let f=b(this).attr("href");0>f.indexOf("asp_ls=")&&0>f.indexOf("asp_ls&")&&(0>f.indexOf("?")?b(this).attr("href",f+"?"+h):b(this).attr("href",f+"&"+h))}),0<e.length))e.find(".elementor-pagination a, .elementor-widget-container .woocommerce-pagination a").on("click",function(f){f.preventDefault();f.stopImmediatePropagation();f.stopPropagation();d.showLoader();d.liveLoad(".asp_es_"+d.o.id,b(this).attr("href"), 80!1,!0)})}}}})})(WPD.dom); 81(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showMoreResLoader:function(){this.n.resultsDiv.addClass("asp_more_res_loading")},showLoader:function(c){c="undefined"!==typeof c?c:!1;if("none"!=this.o.loaderLocation){this.n.search.hasClass("hiddend")||"results"==this.o.loaderLocation||this.n.proloading.css({display:"block"});if(!1!==c)return!1;(!this.n.search.hasClass("hiddend")||"search"==this.o.loaderLocation)&&(this.n.search.hasClass("hiddend")||"both"!=this.o.loaderLocation&&"results"!= 82this.o.loaderLocation)||this.usingLiveLoader||(0<this.n.resultsDiv.find(".asp_results_top").length&&this.n.resultsDiv.find(".asp_results_top").css("display","none"),this.showResultsBox(),b(".asp_res_loader",this.n.resultsDiv).removeClass("hiddend"),this.n.results.css("display","none"),this.n.showmore.css("display","none"),this.hidePagination())}},hideLoader:function(){this.n.proloading.css({display:"none"});b(".asp_res_loader",this.n.resultsDiv).addClass("hiddend");this.n.results.css("display",""); 83this.n.resultsDiv.removeClass("asp_more_res_loading")}})})(WPD.dom); 84(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{fixClonedSelf:function(){let c=this.o.iid,a=this.o.rid;for(;!ASP.instances.set(this)&&!(++this.o.iid,50<this.o.iid););c!=this.o.iid&&(this.o.rid=this.o.id+"_"+this.o.iid,this.n.search.get(0).id="ajaxsearchpro"+this.o.rid,this.n.search.removeClass("asp_m_"+a).addClass("asp_m_"+this.o.rid),this.n.searchsettings.get(0).id=this.n.searchsettings.get(0).id.replace("settings"+a,"settings"+this.o.rid),this.n.searchsettings.hasClass("asp_s_"+a)?this.n.searchsettings.removeClass("asp_s_"+ 85a).addClass("asp_s_"+this.o.rid).data("instance",this.o.iid):this.n.searchsettings.removeClass("asp_sb_"+a).addClass("asp_sb_"+this.o.rid).data("instance",this.o.iid),this.n.resultsDiv.get(0).id=this.n.resultsDiv.get(0).id.replace("prores"+a,"prores"+this.o.rid),this.n.resultsDiv.removeClass("asp_r_"+a).addClass("asp_r_"+this.o.rid).data("instance",this.o.iid),this.n.container.find(".asp_init_data").data("instance",this.o.iid),this.n.container.find(".asp_init_data").get(0).id=this.n.container.find(".asp_init_data").get(0).id.replace("asp_init_id_"+ 86a,"asp_init_id_"+this.o.rid),this.n.prosettings.data("opened",0))},destroy:function(){let c=this;Object.keys(c.n).forEach(function(a){c.n[a].off()});c.n.searchsettings.remove();c.n.resultsDiv.remove();c.n.trythis.remove();c.n.search.remove();c.n.container.remove();c.documentEventHandlers.forEach(function(a){b(a.node).off(a.event,a.handler)})}})})(WPD.dom); 87(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{isRedirectToFirstResult:function(){return(0<b(".asp_res_url",this.n.resultsDiv).length||0<b(".asp_es_"+this.o.id+" a").length||this.o.resPage.useAjax&&0<b(this.o.resPage.selector+"a").length)&&(1==this.o.redirectOnClick&&"click"==this.ktype&&"first_result"==this.o.trigger.click||1==this.o.redirectOnEnter&&("input"==this.ktype||"keyup"==this.ktype)&&13==this.keycode&&"first_result"==this.o.trigger.return|| 88"button"==this.ktype&&"first_result"==this.o.sb.redirect_action)},doRedirectToFirstResult:function(){let a,d;a="click"==this.ktype?this.o.trigger.click_location:"button"==this.ktype?this.o.sb.redirect_location:this.o.trigger.return_location;0<b(".asp_res_url",this.n.resultsDiv).length?d=b(b(".asp_res_url",this.n.resultsDiv).get(0)).attr("href"):0<b(".asp_es_"+this.o.id+" a").length?d=b(b(".asp_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&0<b(this.o.resPage.selector+"a").length&& 89(d=b(b(this.o.resPage.selector+"a").get(0)).attr("href"));""!=d&&("same"==a?location.href=d:c.openInNewTab(d),this.hideLoader(),this.hideResults());return!1},doRedirectToResults:function(a){let d;if(!this.reportSettingsValidity())return this.showNextInvalidFacetMessage(),!1;d="click"==a?this.o.trigger.click_location:"button"==a?this.o.sb.redirect_location:this.o.trigger.return_location;a=this.getRedirectURL(a);if(this.o.overridewpdefault){if(1==this.o.resPage.useAjax)return this.hideResults(),this.liveLoad(a, 90this.o.resPage.selector),this.showLoader(),0==this.o.blocking&&this.hideSettings(),!1;"post"==this.o.override_method?c.submitToUrl(a,"post",{asp_active:1,p_asid:this.o.id,p_asp_data:b("form",this.n.searchsettings).serialize()},d):"same"==d?location.href=a:c.openInNewTab(a)}else c.submitToUrl(a,"post",{np_asid:this.o.id,np_asp_data:b("form",this.n.searchsettings).serialize()},d);this.n.proloading.css("display","none");this.hideLoader();0==this.o.blocking&&this.hideSettings();this.hideResults();this.searchAbort()}, 91getRedirectURL:function(a){a="undefined"!==typeof a?a:"enter";var d="click"==a?this.o.trigger.click:"button"==a?this.o.sb.redirect_action:this.o.trigger.return;"results_page"==d?a="?s="+c.nicePhrase(this.n.text.val()):"woo_results_page"==d?a="?post_type=product&s="+c.nicePhrase(this.n.text.val()):(a="button"==a?"elementor_page"==d?this.o.sb.elementor_url:this.o.sb.redirect_url:"elementor_page"==d?this.o.trigger.elementor_url:this.o.trigger.redirect_url,a=this.parseCustomRedirectURL(a,this.n.text.val())); 921<this.o.homeurl.indexOf("?")&&0===a.indexOf("?")&&(a=a.replace("?","&"));if(this.o.overridewpdefault&&"post"!=this.o.override_method){let e="&";-1!==this.o.homeurl.indexOf("?")&&"elementor_page"!=d||-1!==a.indexOf("?")||(e="?");a=a+e+"asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+b("form",this.n.searchsettings).serialize();d="elementor_page"==d?a:this.o.homeurl+a}else d="elementor_page"==d?a:this.o.homeurl+a;d=d.replace("https://","https:///");d=d.replace("http://","http:///");d=d.replace(/\/\//g, 93"/");d=c.Hooks.applyFilters("asp_redirect_url",d,this.o.id,this.o.iid);return d=c.wp_hooks_apply_filters("asp_redirect_url",d,this.o.id,this.o.iid)},parseCustomRedirectURL:function(a,d){let e=this,g=a.replace(/{phrase}/g,c.nicePhrase(d));a=g.match(/{(.*?)}/g);null!==a&&a.forEach(function(h){h=h.replace(/[{}]/g,"");var f=b('input[type=radio][name*="aspf['+h+'_"]:checked',e.n.searchsettings);0==f.length&&(f=b('input[type=text][name*="aspf['+h+'_"]',e.n.searchsettings));0==f.length&&(f=b('input[type=hidden][name*="aspf['+ 94h+'_"]',e.n.searchsettings));0==f.length&&(f=b('select[name*="aspf['+h+'_"]:not([multiple])',e.n.searchsettings));0==f.length&&(f=b('input[type=radio][name*="termset['+h+'"]:checked',e.n.searchsettings));0==f.length&&(f=b('input[type=text][name*="termset['+h+'"]',e.n.searchsettings));0==f.length&&(f=b('input[type=hidden][name*="termset['+h+'"]',e.n.searchsettings));0==f.length&&(f=b('select[name*="termset['+h+'"]:not([multiple])',e.n.searchsettings));if(0==f.length)return!0;f=f.val();g=g.replace("{"+ 95h+"}",""+f)});return g}})})(WPD.dom); 96(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showResults:function(){let a=this;"horizontal"==a.o.resultstype?a.createHorizontalScroll():"vertical"==a.o.resultstype&&a.createVerticalScroll();switch(a.o.resultstype){case "horizontal":a.showHorizontalResults();break;case "vertical":a.showVerticalResults();break;case "polaroid":a.showPolaroidResults();break;case "isotopic":a.showIsotopicResults();break;default:a.showHorizontalResults()}a.showAnimatedImages();a.hideLoader(); 97a.n.proclose.css({display:"block"});c.isMobile()&&a.o.mobile.hide_keyboard&&!a.resultsOpened&&document.activeElement.blur();a.o.settingsHideOnRes&&0==a.o.blocking&&a.hideSettings();"undefined"!=typeof WPD.lazy&&setTimeout(function(){WPD.lazy(".asp_lazy")},100);a.is_scroll&&"undefined"!==typeof a.scroll.recalculate&&setTimeout(function(){a.scroll.recalculate()},500);
97a.n.resultsDiv.find(".item").on("mouseenter",function(){b(".item",a.n.resultsDiv).removeClass("hovered");b(this).addClass("hovered")}); 98a.n.resultsDiv.find(".item").on("mouseleave",function(){b(".item",a.n.resultsDiv).removeClass("hovered")});a.fixAccessibility();a.resultsOpened=!0},hideResults:function(a){let d=this;a="undefined"==typeof a?!0:a;if(!d.resultsOpened)return!1;d.n.resultsDiv.removeClass(d.resAnim.showClass).addClass(d.resAnim.hideClass);setTimeout(function(){d.n.resultsDiv.css(d.resAnim.hideCSS)},d.resAnim.duration);d.n.proclose.css({display:"none"});c.isMobile()&&a&&document.activeElement.blur();d.resultsOpened=!1; 99"undefined"!=typeof d.ptstack&&delete d.ptstack;d.hideArrowBox();d.n.s.trigger("asp_results_hide",[d.o.id,d.o.iid],!0,!0)},updateResults:function(a){if(""===a.replace(/^\s*[\r\n]/gm,"")||b(a).hasClass("asp_nores")||0<b(a).find(".asp_nores").length)this.n.showmore.css("display","none"),b("span",this.n.showmore).html("");else if("isotopic"==this.o.resultstype&&0<this.call_num&&null!=this.isotopic&&"undefined"!=typeof this.isotopic.appended&&0<this.n.items.length){a=b(a);let d=this.n.items.last(),e= 100parseInt(this.n.items.last().attr("data-itemnum"));a.get().forEach(function(g){b(g).attr("data-itemnum",++e).css({width:d.css("width"),height:d.css("height")})});this.n.resdrg.append(a);this.isotopic.appended(a.get());this.n.items=0<b(".item",this.n.resultsDiv).length?b(".item",this.n.resultsDiv):b(".photostack-flip",this.n.resultsDiv)}else 0<this.call_num&&"vertical"==this.o.resultstype?this.n.resdrg.html(this.n.resdrg.html()+'<div class="asp_v_spacer"></div>'+a):this.n.resdrg.html(this.n.resdrg.html()+ 101a)},showResultsBox:function(){this.n.s.trigger("asp_results_show",[this.o.id,this.o.iid],!0,!0);this.n.resultsDiv.css({display:"block",height:"auto"});this.n.results.find(".item, .asp_group_header").addClass(this.animationOpacity);this.n.resultsDiv.css(this.resAnim.showCSS);this.n.resultsDiv.removeClass(this.resAnim.hideClass).addClass(this.resAnim.showClass);this.fixResultsPosition(!0)},scrollToResults:function(){var a=Math.floor(.1*window.innerHeight);if(!(!this.resultsOpened||1!=this.o.scrollToResults.enabled|| 1020<this.search.closest(".asp_preview_data").length||1==this.o.compact.enabled||this.n.resultsDiv.inViewPort(a))){a="hover"==this.o.resultsposition?this.n.probox.offset().top-20:this.n.resultsDiv.offset().top-20;a+=this.o.scrollToResults.offset;var d=b("#wpadminbar");0<d.length&&(a-=d.height());window.scrollTo({top:0>a?0:a,behavior:"smooth"})}},showAnimatedImages:function(){this.n.items.each(function(){let a=b(this).find(".asp_image[data-src]"),d=a.data("src");if("undefined"!=typeof d&&null!=d&&""!== 103d&&-1<d.indexOf(".gif")&&0==a.find("canvas").length){a.prepend(b('<div class="asp_item_canvas"><canvas></canvas></div>').get(0));let e=b(this).find("canvas").get(0),g=b(this).find(".asp_item_canvas"),h=e.getContext("2d"),f=new Image;f.crossOrigin="anonymous";f.onload=function(){b(e).attr({width:f.width,height:f.height});h.drawImage(f,0,0,f.width,f.height);g.css({"background-image":"url("+e.toDataURL()+")"})};f.src=d}})},updateInfoHeader:function(a){let d,e=this.n.resultsDiv.find(".asp_results_top"), 104g=this.n.text.val().trim();0<e.length&&(0>=this.n.items.length?e.css("display","none"):(""!==g&&""!==this.resInfoBoxTxt?d=this.resInfoBoxTxt:""===g&&""!==this.resInfoBoxTxtNoPhrase&&(d=this.resInfoBoxTxtNoPhrase),""!==d?(d=d.replace("{phrase}",this.n.text.val()),d=d.replace("{results_count}",this.n.items.length),d=d.replace("{results_count_total}",a),e.html(d),e.css("display","block")):e.css("display","none")))}})})(WPD.dom); 105(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showHorizontalResults:function(){this.n.resultsDiv.css("display","block");this.fixResultsPosition(!0);this.n.items.css("opacity",this.animationOpacity);"hover"==this.o.resultsposition&&this.n.resultsDiv.css("width",this.n.search.width()-(this.n.resultsDiv.outerWidth(!0)-this.n.resultsDiv.width())+"px");if(0<this.n.items.length&&this.o.scrollBar.horizontal.enabled){let a=parseInt(this.n.items.css("marginLeft")), 106d=this.n.items.outerWidth()+2*a;this.n.results.css("overflowX","auto");this.n.resdrg.css("width",this.n.items.length*d+2*a+"px")}else this.n.results.css("overflowX","hidden"),this.n.resdrg.css("width","auto");1==this.o.highlight&&b("div.item",this.n.resultsDiv).highlight(this.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:1==this.o.highlightWholewords});if(1>this.call_num){let a=this.is_scroll&&"undefined"!==typeof this.scroll.recalculate?b(this.scroll.getScrollElement()): 107this.n.results;a.get(0).scrollLeft=0;if(this.o.scrollBar.horizontal.enabled){let d=0,e=Date.now();a.off("mousewheel");a.on("mousewheel",function(g){let h="undefined"!=typeof g.deltaFactor?g.deltaFactor:65,f=0<g.deltaY?1:-1;var l=Date.now()-e;l=100<l?1:3-2*l/100;d!=g.deltaY&&(l=1);b(this).animate(!1).animate({scrollLeft:this.scrollLeft+f*h*2*l},250,"easeOutQuad");d=g.deltaY;e=Date.now();c.isScrolledToRight(a.get(0))&&1==f||c.isScrolledToLeft(a.get(0))&&-1==f||g.preventDefault()})}}this.showResultsBox(); 108this.addAnimation();this.searching=!1}})})(WPD.dom); 109(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showIsotopicResults:function(){if(1==this._no_animations)return this.showResultsBox(),this.addAnimation(),this.searching=!1,!0;this.preProcessIsotopicResults();this.showResultsBox();0<this.n.items.length&&(this.n.results.css({height:"auto"}),1==this.o.highlight&&b("div.item",this.n.resultsDiv).highlight(this.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords})); 1100==this.call_num&&this.calculateIsotopeRows();this.showPagination();this.isotopicPagerScroll();if(0==this.n.items.length)this.n.results.css({height:"11110px"}),this.n.results.css({height:"auto"}),this.n.resdrg.css({height:"auto"});else if("undefined"!==typeof rpp_isotope){if(null!=this.isotopic&&"undefined"!=typeof this.isotopic.destroy&&0==this.call_num&&this.isotopic.destroy(),0==this.call_num||null==this.isotopic)this.isotopic=new rpp_isotope("#ajaxsearchprores"+this.o.rid+" .resdrg",{isOriginLeft:!b("body").hasClass("rtl"), 111itemSelector:"div.item",layoutMode:"masonry",filter:this.filterFns.number,masonry:{gutter:this.o.isotopic.gutter}})}else return!1;this.addAnimation();this.initOverlayEvent();this.searching=!1},preProcessIsotopicResults:function(){let a=this,d=0,e="";a.o.isotopic.showOverlay&&0<a.n.aspItemOverlay.length&&(e=a.n.aspItemOverlay.get(0).outerHTML);
111a.n.items.forEach(function(g){let h="";var f=0<b(g).find(".asp_image").length,l=b(g).find(".asp_image");f&&(f=l.data("src"),l=a.o.isotopic.blurOverlay&&!c.isMobile()? 112"aspblur":"no_aspblur",h=b("<div data-src='"+f+"' ></div>"),"undefined"==typeof WPD.lazy&&h.css({"background-image":"url("+f+")"}),h.css({filter:"url(#"+l+")","-webkit-filter":"url(#"+l+")","-moz-filter":"url(#"+l+")","-o-filter":"url(#"+l+")","-ms-filter":"url(#"+l+")"}).addClass("asp_item_overlay_img asp_lazy"),h=h.get(0).outerHTML);b(g).prepend(h+e+"");b(g).attr("data-itemnum",d);d++})},isotopicPagerScroll:function(){if(0>=b("nav>ul li.asp_active",this.n.resultsDiv).length)return!1;var a=b("nav>ul li.asp_active", 113this.n.resultsDiv).offset().left;let d=b("nav>ul li.asp_active",this.n.resultsDiv).outerWidth(!0),e=b("nav>a.asp_next",this.n.resultsDiv).offset().left;var g=b("nav>a.asp_prev",this.n.resultsDiv).offset().left;0>=d||(g=Math.ceil((g-a+2*d)/d),0<g?0==b("nav>ul li.asp_active",this.n.resultsDiv).prev().length?b("nav>ul",this.n.resultsDiv).css({left:d+"px"}):b("nav>ul",this.n.resultsDiv).css({left:b("nav>ul",this.n.resultsDiv).position().left+d*g+"px"}):(a=0==b("nav>ul li.asp_active",this.n.resultsDiv).next().length? 114Math.ceil((a-e+d)/d):Math.ceil((a-e+2*d)/d),0<a&&b("nav>ul",this.n.resultsDiv).css({left:b("nav>ul",this.n.resultsDiv).position().left-d*a+"px"})))},showPagination:function(a){a="undefined"!==typeof a?a:!1;if(!this.o.isotopic.pagination)return null!=this.isotopic&&a&&this.isotopic.arrange({transitionDuration:0,filter:this.filterFns.number}),!1;(1>this.call_num||a)&&b("nav.asp_navigation ul li",this.n.resultsDiv).remove();b("nav.asp_navigation",this.n.resultsDiv).css("display","none");if(0<this.n.items.length){var d= 1151;0<this.call_num&&!a&&(d=this.n.resultsDiv.find("nav.asp_navigation ul li").length+1);let e=Math.ceil(this.n.items.length/this.il.itemsPerPage);if(1<e){let g=a&&0<this.il.lastVisibleItem?Math.ceil(this.il.lastVisibleItem/this.il.itemsPerPage):1;for(g=0>=g?1:g;d<=e;d++)d==g?b("nav.asp_navigation ul",this.n.resultsDiv).append("<li class='asp_active'><span>"+d+"</span></li>"):b("nav.asp_navigation ul",this.n.resultsDiv).append("<li><span>"+d+"</span></li>");b("nav.asp_navigation",this.n.resultsDiv).css("display", 116"block");a?b("nav.asp_navigation ul li.asp_active",this.n.resultsDiv).trigger("click_trigger"):b("nav.asp_navigation ul li.asp_active",this.n.resultsDiv).trigger("click")}else null!=this.isotopic&&a&&this.isotopic.arrange({transitionDuration:0,filter:this.filterFns.number})}},hidePagination:function(){b("nav.asp_navigation",this.n.resultsDiv).css("display","none")},visiblePagination:function(){return"none"!=b("nav.asp_navigation",this.n.resultsDiv).css("display")},calculateIsotopeRows:function(){let a= 117this;let d;var e=parseFloat(a.n.results.width());if("desktop"===c.deviceType()){var g=c.getWidthFromCSSValue(a.o.isotopic.itemWidth,e);d=c.getWidthFromCSSValue(a.o.isotopic.itemHeight,e)}else"tablet"===c.deviceType()?(g=c.getWidthFromCSSValue(a.o.isotopic.itemWidthTablet,e),d=c.getWidthFromCSSValue(a.o.isotopic.itemHeightTablet,e)):(g=c.getWidthFromCSSValue(a.o.isotopic.itemWidthPhone,e),d=c.getWidthFromCSSValue(a.o.isotopic.itemHeightPhone,e));let h=a.o.isotopic.gutter,f=Math.floor(e/g);0>=f&&(f= 1181);Math.abs(e/f-g)>Math.abs(e/(f+1)-g)&&f++;e=e/f-(f-1)*h/f;g=e/g*d;a.il.columns=f;a.il.itemsPerPage=f*a.il.rows;a.il.lastVisibleItem=0;a.n.results.find(".asp_isotopic_item").forEach(function(l,k){"none"!=b(l).css("display")&&(a.il.lastVisibleItem=k)});isNaN(a.il.columns)||isNaN(a.il.itemsPerPage)||(a.n.resultsDiv.data("colums",a.il.columns),a.n.resultsDiv.data("itemsperpage",a.il.itemsPerPage));a.currentPage=1;a.n.items.css({width:Math.floor(e)+"px",height:Math.floor(g)+"px"})}})})(WPD.dom); 119(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showPolaroidResults:function(){b(".photostack>nav",this.n.resultsDiv).remove();let c=b("figure",this.n.resultsDiv);this.n.resultsDiv.css({display:"block",height:"auto"});this.showResultsBox();if(0<c.length)if(this.n.results.css({height:this.o.prescontainerheight}),1==this.o.highlight&&b("figcaption",this.n.resultsDiv).highlight(this.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords}),"undefined"!== 120typeof Photostack)this.ptstack=new Photostack(this.n.results.get(0),{callback:function(a){}});else return!1;0==c.length&&(this.n.results.css({height:"11110px"}),this.n.results.css({height:"auto"}));this.addAnimation();this.fixResultsPosition(!0);this.searching=!1;this.initPolaroidEvents(c)},initPolaroidEvents:function(c){let a=this,d=1;c.each(function(){1<d&&b(this).removeClass("photostack-current");b(this).attr("idx",d);d++});c.on("click",function(e){b(this).hasClass("photostack-current")||(e.preventDefault(), 121e=b(this).attr("idx"),b(".photostack>nav span:nth-child("+e+")",a.n.resultsDiv).trigger("click",[],!0))});c.on("mousewheel",function(e){e.preventDefault();1<=(0<e.deltaY?1:-1)?0<b(".photostack>nav span.current",a.n.resultsDiv).next().length?b(".photostack>nav span.current",a.n.resultsDiv).next().trigger("click",[],!0):b(".photostack>nav span:nth-child(1)",a.n.resultsDiv).trigger("click",[],!0):0<b(".photostack>nav span.current",a.n.resultsDiv).prev().length?b(".photostack>nav span.current",a.n.resultsDiv).prev().trigger("click", 122[],!0):b(".photostack>nav span:nth-last-child(1)",a.n.resultsDiv).trigger("click",[],!0)});a.n.resultsDiv.on("swiped-left",function(){0<b(".photostack>nav span.current",a.n.resultsDiv).next().length?b(".photostack>nav span.current",a.n.resultsDiv).next().trigger("click",[],!0):b(".photostack>nav span:nth-child(1)",a.n.resultsDiv).trigger("click",[],!0)});a.n.resultsDiv.on("swiped-right",function(){0<b(".photostack>nav span.current",a.n.resultsDiv).prev().length?b(".photostack>nav span.current",a.n.resultsDiv).prev().trigger("click", 123[],!0):b(".photostack>nav span:nth-last-child(1)",a.n.resultsDiv).trigger("click",[],!0)})}})})(WPD.dom); 124(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showVerticalResults:function(){this.showResultsBox();if(0<this.n.items.length){let a=this.n.items.length<this.o.itemscount?this.n.items.length:this.o.itemscount;a=0>=a?9999:a;var c=b(".asp_group_header",this.n.resultsDiv);if(0==this.o.itemscount||this.n.items.length<=this.o.itemscount)this.n.results.css({height:"auto"});else if(1>this.call_num&&this.n.results.css({height:"30px"}),1>this.call_num){let d=0,e=0,g=0,h=0;this.n.items.each(function(){e+= 125b(this).outerHeight(!0);b(this).outerHeight(!0)>h&&(h=b(this).outerHeight(!0));d++});g=h*a;g>e&&(g=e);d=1>d?1:d;e=e/d*a;0<c.length&&c.each(function(f,l){f=Array.prototype.slice.call(f.parentNode.children).indexOf(f);f-l-Math.floor(f/3)<a&&(g+=b(this).outerHeight(!0))});this.n.results.css({height:g+"px"})}
125this.n.items.last().addClass("asp_last_item");this.n.results.find(".asp_group_header").prev(".item").addClass("asp_last_item");1==this.o.highlight&&b("div.item",this.n.resultsDiv).highlight(this.n.text.val().split(" "), 126{element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords})}this.resize();0==this.n.items.length&&this.n.results.css({height:"auto"});this.n.results.css({overflowY:"auto"});1>this.call_num&&((this.is_scroll&&"undefined"!==typeof this.scroll.recalculate?b(this.scroll.getScrollElement()):this.n.results).get(0).scrollTop=0);if(this.o.preventBodyScroll){let a;c=b("body");let d=c.css("overflow"),e="undefined"===typeof c.attr("style");this.n.results.off("touchstart");this.n.results.off("touchend"); 127this.n.results.on("touchstart",function(){clearTimeout(a);b("body").css("overflow","hidden")}).on("touchend",function(){clearTimeout(a);a=setTimeout(function(){e?b("body").removeAttr("style"):b("body").css("overflow",d)},300)})}this.addAnimation();this.fixResultsPosition(!0);this.searching=!1}})})(WPD.dom); 128(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{createResultsScroll:function(a){let d=this,e,g=d.n.results;a="undefined"==typeof a?"vertical":a;0<d.o.itemscount&&d.is_scroll&&"undefined"===typeof d.scroll.recalculate&&(d.scroll=new asp_SimpleBar(d.n.results.get(0),{direction:b("body").hasClass("rtl")?"rtl":"ltr",autoHide:d.o.scrollBar.vertical.autoHide}),g=g.add(d.scroll.getScrollElement()));g.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger")); 129d.o.show_more.infinite&&(clearTimeout(e),e=setTimeout(function(){d.checkAndTriggerInfiniteScroll(a)},60))})},createVerticalScroll:function(){this.createResultsScroll("vertical")},createHorizontalScroll:function(){this.createResultsScroll("horizontal")},checkAndTriggerInfiniteScroll:function(a){var d=b(".item",this.n.resultsDiv);a="undefined"==typeof a?"window":a;if(0==this.n.showmore.length||"none"==this.n.showmore.css("display"))return!1;if("window"==a||"horizontal"==a){if("isotopic"==this.o.resultstype&& 130"none"!=b("nav.asp_navigation",this.n.resultsDiv).css("display"))return!1;a=d.last().inViewPort(0,".asp_r_"+this.o.rid);let e=d.last().inViewPort(0);!this.searching&&0<d.length&&a&&e&&this.n.showmore.find("a.asp_showmore").trigger("click")}else"vertical"==a?(d=0<this.n.resultsDiv.find(".asp_simplebar-content-wrapper").length?this.n.resultsDiv.find(".asp_simplebar-content-wrapper"):this.n.results,c.isScrolledToBottom(d.get(0),20)&&this.n.showmore.find("a.asp_showmore").trigger("click")):"isotopic"== 131a&&!this.searching&&0<d.length&&this.n.resultsDiv.find("nav.asp_navigation ul li").last().hasClass("asp_active")&&this.n.showmore.find("a.asp_showmore").trigger("click")}})})(WPD.dom); 132(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{isDuplicateSearchTriggered:function(){for(let a=0;25>a;a++)if(this.o.id+"_"+a!=this.o.rid&&!1!==ASP.instances.get(this.o.id,a))return ASP.instances.get(this.o.id,a).searching;return!1},searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let d=this;"undefined"==typeof a&&(a=50);d.n.text.val().length<d.o.charcount||(d.searchAbort(),clearTimeout(d.timeouts.searchWithCheck), 133d.timeouts.searchWithCheck=setTimeout(function(){d.search()},a))},search:function(a,d,e,g,h){let f=this,l=!1;if(f.isDuplicateSearchTriggered())return!1;e="undefined"==typeof e?!1:e;g="undefined"==typeof g?!1:g;h="undefined"==typeof h?!1:h;let k={action:"ajaxsearchpro_search",aspp:f.n.text.val(),asid:f.o.id,asp_inst_id:f.o.rid,options:b("form",f.n.searchsettings).serialize()};k=c.Hooks.applyFilters("asp_search_data",k,f.o.id,f.o.iid);k=c.wp_hooks_apply_filters("asp_search_data",k,f.o.id,f.o.iid);f.hideArrowBox(); 134f.isAutoP||f.reportSettingsValidity()||(h||(f.showNextInvalidFacetMessage(),f.scrollToNextInvalidFacetMessage()),l=!0);f.isAutoP&&(k.autop=1,f.isAutoP=!1);if(!e&&!g&&JSON.stringify(k)===JSON.stringify(f.lastSearchData)){f.resultsOpened||f.usingLiveLoader||f.showResults();if(f.isRedirectToFirstResult())return f.doRedirectToFirstResult(),!1;l=!0}if(l)return f.hideLoader(),f.searchAbort(),!1;f.n.s.trigger("asp_search_start",[f.o.id,f.o.iid,f.n.text.val()],!0,!0);f.searching=!0;f.n.proclose.css({display:"none"}); 135f.showLoader(e);0==f.o.blocking&&0==f.o.trigger.facet&&f.hideSettings();e?(f.call_num++,k.asp_call_num=f.call_num,f.autopStartedTheSearch&&(k.options+="&"+b.fn.serializeForAjax(f.autopData),--k.asp_call_num)):(f.call_num=0,f.autopStartedTheSearch=!!k.autop);
135g=b('form[name="asp_data"]');0<g.length&&(k.asp_preview_options=g.serialize());"undefined"!=typeof a&&!1!==a&&(k.options+="&force_count="+parseInt(a));"undefined"!=typeof d&&!1!==d&&(k.options+="&force_order="+parseInt(d));f.gaEvent("search_start"); 1360<b(".asp_es_"+f.o.id).length?f.liveLoad(".asp_es_"+f.o.id,f.getCurrentLiveURL(),!1):f.o.resPage.useAjax?f.liveLoad(f.o.resPage.selector,f.getRedirectURL()):f.post=b.fn.ajax({url:ASP.ajaxurl,method:"POST",data:k,success:function(m){f.gaPageview(f.n.text.val());f.searching=!1;m=m.replace(/^\s*[\r\n]/gm,"");let n=m.match(/!!ASPSTART_HTML!!(.*[\s\S]*)!!ASPEND_HTML!!/);m=m.match(/!!ASPSTART_DATA!!(.*[\s\S]*)!!ASPEND_DATA!!/);if(null==n||"object"!=typeof n||"undefined"==typeof n[1])return f.hideLoader(), 137alert('Ajax Search Pro Error:\r\n\r\nPlease look up "The response data is missing" from the documentation at\r\n\r\n documentation.ajaxsearchpro.com'),!1;n=n[1];n=c.Hooks.applyFilters("asp_search_html",n,f.o.id,f.o.iid);n=c.wp_hooks_apply_filters("asp_search_html",n,f.o.id,f.o.iid);m=JSON.parse(m[1]);f.n.s.trigger("asp_search_end",[f.o.id,f.o.iid,f.n.text.val(),m],!0,!0);
137f.autopStartedTheSearch&&("undefined"!=typeof k.autop?(f.autopData.not_in={},f.autopData.not_in_count=0,Array.isArray(m.results)&& 138m.results.forEach(function(p){"undefined"==typeof f.autopData.not_in[p.content_type]&&(f.autopData.not_in[p.content_type]=[]);f.autopData.not_in[p.content_type].push(p.id);++f.autopData.not_in_count})):m.full_results_count+=f.autopData.not_in_count);e?(f.updateResults(n),f.results_num+=m.results_count):(f.n.resdrg.html(""),f.n.resdrg.html(n),f.results_num=m.results_count,f.o.statistics&&f.stat_addKeyword(f.o.id,f.n.text.val()));b(".asp_keyword",f.n.resdrg).on("click",function(){f.n.text.val(c.decodeHTMLEntities(b(this).text())); 139f.n.textAutocomplete.val("");0!=f.o.redirectOnClick&&0!=f.o.redirectOnEnter&&1!=f.o.trigger.type||f.search()});f.n.items=0<b(".item",f.n.resultsDiv).length?b(".item",f.n.resultsDiv):b(".photostack-flip",f.n.resultsDiv);f.gaEvent("search_end",{results_count:f.n.items.length});if(f.isRedirectToFirstResult())return f.doRedirectToFirstResult(),!1;f.hideLoader();f.showResults();f.scrollToResults();f.lastSuccesfulSearch=b("form",f.n.searchsettings).serialize()+f.n.text.val().trim();f.lastSearchData=k;f.updateInfoHeader(m.full_results_count); 1400<f.n.showmore.length&&(0<b("span",f.n.showmore).length&&0<m.results_count&&0<m.full_results_count-f.results_num?(f.n.showmore.css("display","block"),b("span",f.n.showmore).html("("+(m.full_results_count-f.results_num)+")"),b("a",f.n.showmore).attr("href",""),b("a",f.n.showmore).off(),b("a",f.n.showmore).on(f.clickTouchend,function(p){p.preventDefault();p.stopImmediatePropagation();if("ajax"==f.o.show_more.action){if(f.searching)return!1;f.showMoreResLoader();f.search(!1,!1,!0)}else b(this).off(), 141"results_page"==f.o.show_more.action?p="?s="+c.nicePhrase(f.n.text.val()):"woo_results_page"==f.o.show_more.action?p="?post_type=product&s="+c.nicePhrase(f.n.text.val()):(p="elementor_page"==f.o.show_more.action?f.parseCustomRedirectURL(f.o.show_more.elementor_url,f.n.text.val()):f.parseCustomRedirectURL(f.o.show_more.url,f.n.text.val()),p=b("<textarea />").html(p).text()),"elementor_page"!=f.o.show_more.action&&1<f.o.homeurl.indexOf("?")&&0==p.indexOf("?")&&(p=p.replace("?","&")),p="elementor_page"== 142f.o.show_more.action?p:f.o.homeurl+p,f.o.overridewpdefault?"post"==f.o.override_method?c.submitToUrl(p,"post",{asp_active:1,p_asid:f.o.id,p_asp_data:b("form",f.n.searchsettings).serialize()},f.o.show_more.location):(p=p+"&asp_active=1&p_asid="+f.o.id+"&p_asp_data=1&"+b("form",f.n.searchsettings).serialize(),"same"==f.o.show_more.location?location.href=p:c.openInNewTab(p)):c.submitToUrl(p,"post",{np_asid:f.o.id,np_asp_data:b("form",f.n.searchsettings).serialize()},f.o.show_more.location)})):(f.n.showmore.css("display", 143"none"),b("span",f.n.showmore).html("")))},fail:function(m){m.aborted||(f.n.resdrg.html(""),f.n.resdrg.html('<div class="asp_nores">The request failed. Please check your connection! Status: '+m.status+"</div>"),f.n.items=0<b(".item",f.n.resultsDiv).length?b(".item",f.n.resultsDiv):b(".photostack-flip",f.n.resultsDiv),f.results_num=0,f.searching=!1,f.hideLoader(),f.showResults(),f.scrollToResults())}})}})})(WPD.dom); 144(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{showSettings:function(a){let d=this;a="undefined"==typeof a?!0:a;d.n.s.trigger("asp_settings_show",[d.o.id,d.o.iid],!0,!0);a?(d.n.searchsettings.css(d.settAnim.showCSS),d.n.searchsettings.removeClass(d.settAnim.hideClass).addClass(d.settAnim.showClass)):d.n.searchsettings.css({display:"block",visibility:"visible",opacity:1});null==d.settScroll&&d.is_scroll&&(d.settScroll=[],b(".asp_sett_scroll",d.n.searchsettings).each(function(e, 145g){let h=this;setTimeout(function(){d.settScroll[g]=new asp_SimpleBar(b(h).get(0),{direction:b("body").hasClass("rtl")?"rtl":"ltr",autoHide:d.o.scrollBar.settings.autoHide})},15)}));if(!("masonry"!=d.o.fss_layout||null!=d.sIsotope||c.isMobile()&&c.detectIOS()))if("undefined"!==typeof rpp_isotope)setTimeout(function(){let e=d.n.searchsettings.attr("id");d.n.searchsettings.css("width","100%");d.sIsotope=new rpp_isotope("#"+e+" form",{isOriginLeft:!b("body").hasClass("rtl"),itemSelector:"fieldset",layoutMode:"masonry", 146transitionDuration:0,masonry:{columnWidth:d.n.searchsettings.find("fieldset:not(.hiddend)").outerWidth()}})},20);else return!1;"undefined"!=typeof d.select2jQuery&&d.select2jQuery(d.n.searchsettings.get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");d.n.prosettings.data("opened",1);d.fixSettingsPosition(!0);d.fixAccessibility()},hideSettings:function(){let a=this;a.n.s.trigger("asp_settings_hide",[a.o.id,a.o.iid],!0,!0);a.n.searchsettings.removeClass(a.settAnim.showClass).addClass(a.settAnim.hideClass); 147setTimeout(function(){a.n.searchsettings.css(a.settAnim.hideCSS)},a.settAnim.duration);a.n.prosettings.data("opened",0);null!=a.sIsotope&&setTimeout(function(){a.sIsotope.destroy();a.sIsotope=null},a.settAnim.duration);"undefined"!=typeof a.select2jQuery&&"undefined"!=typeof a.select2jQuery.fn.asp_select2&&a.select2jQuery(a.n.searchsettings.get(0)).find(".asp_gochosen,.asp_goselect2").asp_select2("close");a.hideArrowBox()},reportSettingsValidity:function(){let a=!0;if("hidden"==this.n.searchsettings.css("visibility"))return!0; 148this.n.searchsettings.find("fieldset.asp_required").each(function(){let d=b(this),e=!0;d.find("input[type=text]:not(.asp_select2-search__field)").each(function(){""==b(this).val()&&(e=!1)});d.find("select").each(function(){if(null==b(this).val()||""==b(this).val()||b(this).closest("fieldset").is(".asp_filter_tax, .as
148p_filter_content_type")&&"-1"==b(this).val())e=!1});0<d.find("input[type=checkbox]").length&&(0===d.find("input[type=checkbox]:checked").length?e=!1:1===d.find("input[type=checkbox]:checked").length&& 149""===d.find("input[type=checkbox]:checked").val()&&(e=!1));0<d.find("input[type=radio]").length&&(0===d.find("input[type=radio]:checked").length&&(e=!1),e&&d.find("input[type=radio]").each(function(){b(this).prop("checked")&&(""==b(this).val()||b(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&"-1"==b(this).val())&&(e=!1)}));e?d.removeClass("asp-invalid"):(d.addClass("asp-invalid"),a=!1)});a||this.n.searchsettings.find("button.asp_s_btn").prop("disabled",!0);this.n.searchsettings.find("button.asp_s_btn").prop("disabled", 150!1);return a},showArrowBox:function(a,d){let e=this;var g=b("body");let h=g.find(".asp_arrow_box");0===h.length&&(g.append("<div class='asp_arrow_box'></div>"),h=g.find(".asp_arrow_box"),h.on("mouseout",function(){e.hideArrowBox()}));g=b(a).offset().top-window.scrollY;var f=!1;let l=a;for(;l;)if(l=l.parentElement,null!=l&&"fixed"==window.getComputedStyle(l).position){f=!0;break}f?(h.css("position","fixed"),f=0):(h.css("position","absolute"),f=window.scrollY);h.html(d);h.css("display","block");d=a.getBoundingClientRect().left+ 151b(a).outerWidth()/2-h.outerWidth()/2+"px";100<g?(h.removeClass("asp_arrow_box_bottom"),h.css({top:f+a.getBoundingClientRect().top-h.outerHeight()-4+"px",left:d})):(h.addClass("asp_arrow_box_bottom"),h.css({top:f+a.getBoundingClientRect().bottom+4+"px",left:d}))},hideArrowBox:function(){b("body").find(".asp_arrow_box").css("display","none")},showNextInvalidFacetMessage:function(){0<this.n.searchsettings.find(".asp-invalid").length&&this.showArrowBox(this.n.searchsettings.find(".asp-invalid").first().get(0), 152this.n.searchsettings.find(".asp-invalid").first().data("asp_invalid_msg"))},scrollToNextInvalidFacetMessage:function(){if(0<this.n.searchsettings.find(".asp-invalid").length){var a=this.n.searchsettings.find(".asp-invalid").first();if(!a.inViewPort(0))if("undefined"!=typeof a.get(0).scrollIntoView)a.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});else{a=a.offset().top-20;let d=b("#wpadminbar");0<d.length&&(a-=d.height());a=0>a?0:a;window.scrollTo({top:a,behavior:"smooth"})}}}, 153settingsCheckboxToggle:function(a,d){d="undefined"==typeof d?!0:d;let e=a,g=a.find('input[type="checkbox"]');a=parseInt(a.data("lvl"))+1;let h=0;for(;;){e=e.next();if(0<e.length&&"undefined"!=typeof e.data("lvl")&&parseInt(e.data("lvl"))>=a)d&&e.find('input[type="checkbox"]').prop("checked",g.prop("checked")),this.o.settings.hideChildren&&(g.prop("checked")?e.removeClass("hiddend"):e.addClass("hiddend"));else break;h++;if(400<h)break}}})})(WPD.dom); 154(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{searchFor:function(a){this.n.text.val(a);this.n.textAutocomplete.val("");this.search(!1,!1,!1,!0)},searchRedirect:function(a){a=this.parseCustomRedirectURL(this.o.trigger.redirect_url,a);1<this.o.homeurl.indexOf("?")&&0==a.indexOf("?")&&(a=a.replace("?","&"));this.o.overridewpdefault?"post"==this.o.override_method?c.submitToUrl(this.o.homeurl+a,"post",{asp_active:1,p_asid:this.o.id,p_asp_data:b("form", 155this.n.searchsettings).serialize()}):location.href=this.o.homeurl+a+"&asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+b("form",this.n.searchsettings).serialize():c.submitToUrl(this.o.homeurl+a,"post",{np_asid:this.o.id,np_asp_data:b("form",this.n.searchsettings).serialize()})},toggleSettings:function(a){"undefined"!=typeof a?"show"==a?this.showSettings():this.hideSettings():1==this.n.prosettings.data("opened")?this.hideSettings():this.showSettings()},closeResults:function(a){"undefined"!=typeof a&& 156a&&(this.n.text.val(""),this.n.textAutocomplete.val(""));this.hideResults();this.n.proloading.css("display","none");this.hideLoader();this.searchAbort()},getStateURL:function(){let a=location.href,d;a=a.split("p_asid");a=a[0];a=a.replace("&asp_active=1","");a=a.replace("?asp_active=1","");a="?"==a.slice(-1)?a.slice(0,-1):a;a="&"==a.slice(-1)?a.slice(0,-1):a;d=1<a.indexOf("?")?"&":"?";return a+d+"p_asid="+this.o.id+"&p_asp_data=1&"+b("form",this.n.searchsettings).serialize()},resetSearch:function(){this.resetSearchFilters()}, 157filtersInitial:function(){return 1==this.n.searchsettings.find("input[name=filters_initial]").val()},filtersChanged:function(){return 1==this.n.searchsettings.find("input[name=filters_changed]").val()}})})(WPD.dom); 158(function(b){b.fn.extend(window.WPD.ajaxsearchpro.helpers,{Hooks:window.WPD.Hooks,deviceType:function(){let c=window.innerWidth;return 640>=c?"phone":1024>=c?"tablet":"desktop"},detectIOS:function(){return"undefined"!=typeof window.navigator&&"undefined"!=typeof window.navigator.userAgent?null!=window.navigator.userAgent.match(/(iPod|iPhone|iPad)/):!1},detectIE:function(){var c=window.navigator.userAgent;let a=c.indexOf("MSIE ");c=c.indexOf("Trident/");return 0<a||0<c?!0:!1},isMobile:function(){try{return document.createEvent("TouchEvent"), 159!0}catch(c){return!1}},isTouchDevice:function(){return"ontouchstart"in window},whichjQuery:function(c){let a=!1;"undefined"!=typeof window.$&&("undefined"===typeof c?a=window.$:"undefined"!=typeof window.$.fn[c]&&(a=window.$));!1===a&&"undefined"!=typeof window.jQuery&&(a=window.jQuery,"undefined"===typeof c?a=window.jQuery:"undefined"!=typeof window.jQuery.fn[c]&&(a=window.jQuery));return a},formData:function(c,a){let d=this,e=c.find("input,textarea,select,button").get();if(1===arguments.length)return a= 160{},e.forEach(function(g){g.name&&!g.disabled&&(g.checked||/select|textarea/i.test(g.nodeName)||/text/i.test(g.type)||b(g).hasClass("hasDatepicker")||b(g).hasClass("asp_slider_hidden"))&&(void 0==a[g.name]&&(a[g.name]=[]),b(g).hasClass("hasDatepicker")?a[g.name].push(b(g).parent().find(".asp_datepicker_hidden").val()):a[g.name].push(b(g).val()))}),JSON.stringify(a);"object"!=typeof a&&(a=JSON.parse(a));e.forEach(function(g){if(g.name)if(a[g.name]){let h=a[g.name],f=b(g);"[object Array]"!==Object.prototype.toString.call(h)&& 161(h=[h]);if("checkbox"==g.type||"radio"==g.type){let l=f.val(),k=!1;for(let m=0;m<h.length;m++)if(h[m]==l){k=!0;break}f.prop("checked",k)}else f.val(h[0]),(b(g).hasClass("asp_gochosen")||b(g).hasClass("asp_goselect2"))&&WPD.intervalUntilExecute(function(l){l(g).trigger("change.asp_select2")},function(){return d.whichjQuery("asp_select2")},50,3),b(g).hasClass("hasDatepicker")&&WPD.intervalUntilExecute(function(l){let k=h[0],m=l(f.get(0)).datepicker("option","dateFormat");l(f.get(0)).datepicker("option", 162"dateFormat","yy-mm-dd");l(f.get(0)).datepicker("setDate",k);l(f.get(0)).datepicker("option","dateFormat",m);l(f.get(0)).trigger("selectnochange")},function(){return d.whichjQuery("datepicker")},50,3)}else"checkbox"!=g.type&&"radio"!=g.type||b(g).prop("checked",!1)});return c},submitToUrl:function(c,a,d,e){let g;g=b('<form style="display: none;" />');g.attr("action",c);g.attr("method",a);b("body").append(g);
162"undefined"!==typeof d&&null!==d&&Object.keys(d).forEach(function(h){let f=d[h],l=b('<input type="hidden" />'); 163l.attr("name",h);l.attr("value",f);g.append(l)});"undefined"!=typeof e&&"new"==e&&g.attr("target","_blank");g.get(0).submit()},openInNewTab:function(c){Object.assign(document.createElement("a"),{target:"_blank",href:c}).click()},isScrolledToBottom:function(c,a){return c.scrollHeight-c.scrollTop-b(c).outerHeight()<a},getWidthFromCSSValue:function(c,a){c+="";c=-1<c.indexOf("px")?parseInt(c,10):-1<c.indexOf("%")?"undefined"!=typeof a&&null!=a?Math.floor(parseInt(c,10)/100*a):parseInt(c,10):parseInt(c, 16410);return 100>c?100:c},nicePhrase:function(c){return encodeURIComponent(c).replace(/%20/g,"+")},unqoutePhrase:function(c){return c.replace(/["']/g,"")},decodeHTMLEntities:function(c){let a=document.createElement("div");c&&"string"===typeof c&&(c=c.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),c=c.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=c,c=a.textContent,a.textContent="");return c},isScrolledToRight:function(c){return c.scrollWidth-b(c).outerWidth()===c.scrollLeft},isScrolledToLeft:function(c){return 0=== 165c.scrollLeft},wp_hooks_apply_filters:function(){return"undefined"!=typeof wp&&"undefined"!=typeof wp.hooks&&"undefined"!=typeof wp.hooks.applyFilters?wp.hooks.applyFilters.apply(null,arguments):"undefined"!=typeof arguments[1]?arguments[1]:!1}})})(WPD.dom); 166(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{detectAndFixFixedPositioning:function(){let a=!1,d=this.n.search.get(0);for(;d;)if(d=d.parentElement,null!=d&&"fixed"==window.getComputedStyle(d).position){a=!0;break}a||"fixed"==this.n.search.css("position")?("absolute"==this.n.resultsDiv.css("position")&&this.n.resultsDiv.css("position","fixed"),this.o.blocking||this.n.searchsettings.css("position","fixed")):("fixed"==this.n.resultsDiv.css("position")&& 167this.n.resultsDiv.css("position","absolute"),this.o.blocking||this.n.searchsettings.css("position","absolute"))},fixAccessibility:function(){this.n.searchsettings.find("input.asp_select2-search__field").attr("aria-label","Select2 search")},fixTryThisPosition:function(){this.n.trythis.css({left:this.n.search.position().left})},fixResultsPosition:function(a){a="undefined"==typeof a?!1:a;var d=this.n.resultsDiv.css("position");if("fixed"==d||"absolute"==d)if(1==a||"visible"==this.n.resultsDiv.css("visibility"))if(a= 168this.n.search.offset(),"undefined"!=typeof a){let e=0;d="phone"==c.deviceType()?this.o.results.width_phone:"tablet"==c.deviceType()?this.o.results.width_tablet:this.o.results.width;"auto"==d&&(d=240>this.n.search.outerWidth()?240:this.n.search.outerWidth());this.n.resultsDiv.css("width",isNaN(d)?d:d+"px");"right"==this.o.resultsSnapTo?e=parseInt(d)-this.n.search.outerWidth():"center"==this.o.resultsSnapTo&&(e=Math.floor((parseInt(d)-parseInt(this.n.search.outerWidth()))/2));this.n.resultsDiv.css({top:a.top+ 169this.n.search.outerHeight(!0)-0+"px",left:a.left-e+"px"})}},fixSettingsPosition:function(a){if((1==("undefined"==typeof a?!1:a)||0!=this.n.prosettings.data("opened"))&&1!=this.o.blocking){let e;this.n.searchsettings.css("position");this.fixSettingsWidth();var d="none"!=this.n.prosettings.css("display")?this.n.prosettings:this.n.promagnifier;e=d.offset();a=e.top+d.height()-2+"px";d=("left"==this.o.settingsimagepos?e.left:e.left+d.width()-this.n.searchsettings.width())+"px";this.n.searchsettings.css({display:"block", 170top:a,left:d})}},fixSettingsWidth:function(){if(!this.o.blocking&&"masonry"!=this.o.fss_layout&&(this.n.searchsettings.css({width:"100%"}),10<this.n.searchsettings.width()%b("fieldset",this.n.searchsettings).outerWidth(!0))){let a=Math.floor(this.n.searchsettings.width()/b("fieldset",this.n.searchsettings).outerWidth(!0));a=0>=a?1:a;this.n.searchsettings.css({width:a*b("fieldset",this.n.searchsettings).outerWidth(!0)+8+"px"})}},hideOnInvisibleBox:function(){1!=this.o.detectVisibility||0!=this.o.compact.enabled|| 171this.n.search.hasClass("hiddend")||!this.n.search.is(":hidden")&&this.n.search.is(":visible")||(this.hideSettings(),this.hideResults())}})})(WPD.dom); 172(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initAutocompleteEvent:function(){let a=this,d;if(1==a.o.autocomplete.enabled&&!c.isMobile()||1==a.o.autocomplete.mobile&&c.isMobile())a.n.text.on("keyup",function(e){a.keycode=e.keyCode||e.which;a.ktype=e.type;let g=39;b("body").hasClass("rtl")&&(g=37);a.keycode==g&&""!=a.n.textAutocomplete.val()?(e.preventDefault(),a.n.text.val(a.n.textAutocomplete.val()),0!=a.o.trigger.type&&(a.searchAbort(),a.search())): 173(clearTimeout(d),null!=a.postAuto&&a.postAuto.abort(),1==a.o.autocomplete.googleOnly?a.autocompleteGoogleOnly():d=setTimeout(function(){a.autocomplete();d=null},a.o.trigger.autocomplete_delay))})}})})(WPD.dom); 174(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initMagnifierEvents:function(){let a=this;a.n.promagnifier.on("click",function(d){let e=a.n.search.attr("asp-compact")||"closed";a.keycode=d.keyCode||d.which;a.ktype=d.type;if(1==a.o.compact.enabled&&("closed"==e||1==a.o.compact.closeOnMagnifier&&"open"==e))return!1;a.gaEvent("magnifier");if(a.n.text.val().length>=a.o.charcount&&1==a.o.redirectOnClick&&"first_result"!=a.o.trigger.click)return a.doRedirectToResults("click"), 175clearTimeout(void 0),!1;if("ajax_search"!=a.o.trigger.click&&"first_result"!=a.o.trigger.click)return!1;a.searchAbort();clearTimeout(a.timeouts.search);a.n.proloading.css("display","none");a.timeouts.search=setTimeout(function(){b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader?a.search():a.isRedirectToFirstResult()?a.doRedirectToFirstResult():a.n.proclose.css("display","block")},a.o.trigger.delay)})},initButtonEvents:function(){let a= 176this;a.n.searchsettings.find("button.asp_s_btn").on("click",function(d){a.ktype="button";d.preventDefault();if(a.n.text.val().length>=a.o.charcount){if("ajax_search"!=a.o.sb.redirect_action)if("first_result"!=a.o.sb.redirect_action)a.doRedirectToResults("button");else{if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.search()}else b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search();clearTimeout(a.timeouts.search)}}); 177a.n.searchsettings.find("button.asp_r_btn").on("click",function(d){let e=c.formData(b("form",a.n.searchsettings)),g=a.n.text.val();d.preventDefault();a.resetSearchFilters();"live"!=a.o.rb.action||JSON.stringify(e)==JSON.stringify(c.formData(b("form",a.n.searchsettings)))&&""==g?"close"==a.o.rb.action&&a.hideResults():a.search(!1,!1,!1,!0,!0)})}})})(WPD.dom); 178(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initCompactEvents:function(){let c=this;c.n.promagnifier.on("click",function(){let a=c.n.search.attr("asp-compact")||"closed";c.hideSettings();c.hideResults();"closed"==a?(c.openCompact(),c.n.text.trigger("focus")):1==c.o.compact.closeOnMagnifier&&(c.closeCompact(),c.searchAbort(),c.n.proloading.css("display","none"))})}})})(WPD.dom); 179(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initDatePicker:function(){let a=this;WPD.intervalUntilExecute(function(d){function e(g,h,f,l,k){g=null!=f?d(f):d("#"+h.id);h=d(".asp_datepicker_hidden",d(g).parent()).val();f="";
179if(null==g.datepicker("getDate"))d(".asp_datepicker_hidden",d(g).parent()).val("");else{f=String(g.datepicker("getDate"));var m=new Date(f.match(/(.*?)00:/)[1].trim());f=String(m.getFullYear());let n=("0"+(m.getMonth()+1)).slice(-2); 180m=("0"+String(m.getDate())).slice(-2);f=f+"-"+n+"-"+m;d(".asp_datepicker_hidden",d(g).parent()).val(f)}"undefined"!=typeof k&&null!=l||f==h||b(g.get(0)).trigger("change")}d(".asp_datepicker, .asp_datepicker_field",a.n.searchsettings.get(0)).each(function(){let g=d(".asp_datepicker_format",d(this).parent()).val(),h=this,f=d(this).val();d(this).removeClass("hasDatepicker");d(this).datepicker({changeMonth:!0,changeYear:!0,dateFormat:"yy-mm-dd",onSelect:e,beforeShow:function(){d("#ui-datepicker-div").addClass("asp-ui")}}); 181""==f?d(this).datepicker("setDate",""):d(this).datepicker("setDate",f);d(this).datepicker("option","dateFormat",g);e(null,null,h,!0);d(this).on("selectnochange",function(){e(null,null,h,!0)});d(this).on("keyup",function(){null==d(h).datepicker("getDate")&&d(".asp_datepicker_hidden",d(h).parent()).val("");d(h).datepicker("hide")})});if(c.isMobile()&&c.detectIOS())d(window).on("pageshow",function(g){g.originalEvent.persisted&&setTimeout(function(){d(".asp_datepicker, .asp_datepicker_field",a.n.searchsettings.get(0)).each(function(){let h= 182d(this).datepicker("option","dateFormat");d(this).datepicker("option","dateFormat","yy-mm-dd");d(this).datepicker("setDate",d(this).next(".asp_datepicker_hidden").val());d(this).datepicker("option","dateFormat",h)})},100)})},function(){return c.whichjQuery("datepicker")})}})})(WPD.dom); 183(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initFacetEvents:function(){let c=this,a=null;b(".asp_custom_f input[type=text]:not(.asp_select2-search__field):not(.asp_datepicker_field):not(.asp_datepicker)",c.n.searchsettings).on("keydown",function(d){let e=d.keyCode||d.which,g=this;c.ktype=d.type;13==e&&(d.preventDefault(),d.stopImmediatePropagation());clearTimeout(a);a=setTimeout(function(){c.gaEvent("facet_change",{option_label:b(g).closest("fieldset").find("legend").text(),option_value:b(g).val()})}, 1841400);c.n.searchsettings.find("input[name=filters_changed]").val(1);c.setFilterStateInput(65);0!=c.o.trigger.facet&&c.searchWithCheck(240)});0!=c.o.trigger.facet&&(b("select",c.n.searchsettings).on("change slidechange",function(d){c.ktype=d.type;c.n.searchsettings.find("input[name=filters_changed]").val(1);c.gaEvent("facet_change",{option_label:b(this).closest("fieldset").find("legend").text(),option_value:b(this).find("option:checked").get().map(function(e){return e.text}).join()});c.setFilterStateInput(65); 185c.searchWithCheck(80);null!=c.sIsotope&&c.sIsotope.arrange()}),b("input:not([type=checkbox]):not([type=text]):not([type=radio])",c.n.searchsettings).on("change slidechange",function(d){c.ktype=d.type;c.n.searchsettings.find("input[name=filters_changed]").val(1);c.gaEvent("facet_change",{option_label:b(this).closest("fieldset").find("legend").text(),option_value:b(this).val()});c.setFilterStateInput(65);c.searchWithCheck(80)}),b("input[type=radio]",c.n.searchsettings).on("change slidechange",function(d){c.ktype= 186d.type;c.n.searchsettings.find("input[name=filters_changed]").val(1);c.gaEvent("facet_change",{option_label:b(this).closest("fieldset").find("legend").text(),option_value:b(this).closest("label").text()});c.setFilterStateInput(65);c.searchWithCheck(80)}),b("input[type=checkbox]",c.n.searchsettings).on("asp_chbx_change",function(d){c.ktype=d.type;c.n.searchsettings.find("input[name=filters_changed]").val(1);c.gaEvent("facet_change",{option_label:b(this).closest("fieldset").find("legend").text(),option_value:b(this).closest(".asp_option").find(".asp_option_label").text()+ 187(b(this).prop("checked")?"(checked)":"(unchecked)")});c.setFilterStateInput(65);c.searchWithCheck(80)}),b("input.asp_datepicker, input.asp_datepicker_field",c.n.searchsettings).on("change",function(d){c.ktype=d.type;c.n.searchsettings.find("input[name=filters_changed]").val(1);c.gaEvent("facet_change",{option_label:b(this).closest("fieldset").find("legend").text(),option_value:b(this).val()});c.setFilterStateInput(65);c.searchWithCheck(80)}),b('div[id*="-handles"]',c.n.searchsettings).each(function(d){c.ktype= 188d.type;if("undefined"!=typeof this.noUiSlider)this.noUiSlider.on("change",function(e){c.gaEvent("facet_change",{option_label:b("undefined"!=typeof this.target?this.target:this).closest("fieldset").find("legend").text(),option_value:e});c.n.searchsettings.find("input[name=filters_changed]").val(1);c.setFilterStateInput(65);c.searchWithCheck(80)})}))}})})(WPD.dom); 189(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initInputEvents:function(){this._initFocusInput();this.o.trigger.type&&this._initSearchInput();this._initEnterEvent();this._initFormEvent()},_initFocusInput:function(){let a=this;a.n.text.on("click",function(d){d.stopPropagation();d.stopImmediatePropagation();b(this).trigger("focus");a.gaEvent("focus");if(b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch)return a.resultsOpened|| 190a.usingLiveLoader||(a._no_animations=!0,a.showResults(),a._no_animations=!1),!1});a.n.text.on("focus input",function(d){a.searching||(""!=b(this).val()?a.n.proclose.css("display","block"):a.n.proclose.css({display:"none"}))})},_initSearchInput:function(){let a=this,d=a.n.text.val();a.n.text.on("input",function(e){a.keycode=e.keyCode||e.which;a.ktype=e.type;if(c.detectIE()){if(d==a.n.text.val())return!1;d=a.n.text.val()}a.hideArrowBox();if(a.n.text.val().length<a.o.charcount)return a.n.proloading.css("display", 191"none"),0==a.o.blocking&&a.hideSettings(),a.hideResults(!1),a.searchAbort(),clearTimeout(a.timeouts.search),!1;a.searchAbort();clearTimeout(a.timeouts.search);a.n.proloading.css("display","none");a.timeouts.search=setTimeout(function(){b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader?a.search():a.isRedirectToFirstResult()?a.doRedirectToFirstResult():a.n.proclose.css("display","block")},a.o.trigger.delay)})},_initEnterEvent:function(){let a= 192this,d,e=!1;a.n.text.on("keyup",function(g){a.keycode=g.keyCode||g.which;a.ktype=g.type;if(13==a.keycode){clearTimeout(d);d=setTimeout(function(){e=!1},300);if(e)return!1;e=!0}g=b(this).hasClass("orig");a.n.text.val().length>=a.o.charcount&&g&&13==a.keycode&&(a.gaEvent("return"),1==a.o.redirectOnEnter?"first_result"!=a.o.trigger.return?a.doRedirectToResults(a.ktype):a.search():"ajax_search"==a.o.trigger.return&&
192(b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch&& 193a.resultsOpened||a.search()),clearTimeout(a.timeouts.search))})},_initFormEvent:function(){let a=this;b(a.n.text.closest("form").get(0)).on("submit",function(d,e){d.preventDefault();c.isMobile()?a.o.redirectOnEnter?(d=new Event("keyup"),d.keyCode=d.which=13,this.n.text.get(0).dispatchEvent(d)):(a.search(),document.activeElement.blur()):"undefined"!=typeof e&&"ajax"==e&&a.search()})}})})(WPD.dom); 194(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initIsotopicPagination:function(){let a=this;a.n.resultsDiv.on(a.clickTouchend+" click_trigger","nav>a",function(d){d.preventDefault();d.stopImmediatePropagation();d=b(this).closest("nav").find("li.asp_active");"next"==(b(this).hasClass("asp_prev")?"prev":"next")?0<d.next("li").length?d.next("li").trigger("click"):b(this).closest("nav").find("li").first().trigger("click"):0<d.prev("li").length?d.prev("li").trigger("click"): 195b(this).closest("nav").find("li").last().trigger("click")});a.n.resultsDiv.on(a.clickTouchend+" click_trigger","nav>ul li",function(d){d.preventDefault();d.stopImmediatePropagation();let e=d.type,g=this;d=1;c.isMobile()&&(a.n.text.trigger("blur"),d=300);setTimeout(function(){a.currentPage=parseInt(b(g).find("span").html(),10);b("nav>ul li",a.n.resultsDiv).removeClass("asp_active");b("nav",a.n.resultsDiv).each(function(h){b(b(h).find("ul li").get(a.currentPage-1)).addClass("asp_active")});"click_trigger"=== 196e?a.isotopic.arrange({transitionDuration:0,filter:a.filterFns.number}):a.isotopic.arrange({transitionDuration:400,filter:a.filterFns.number});a.isotopicPagerScroll();a.removeAnimation();"undefined"!=typeof WPD.lazy&&document.dispatchEvent(new Event("wpd-lazy-trigger"));a.n.resultsDiv.trigger("nav_switch")},d)})},initOverlayEvent:function(){let a=this;"isotopic"==a.o.resultstype&&a.o.isotopic.showOverlay&&(c.detectIOS()||(a.n.resultsDiv.find("div.item").on("mouseenter",function(){b(this).find(".asp_item_overlay").css("opacity", 1971);0<b(this).find(".asp_image").length&&(a.o.isotopic.blurOverlay&&b(this).find(".asp_item_overlay_img").css("opacity",1),a.o.isotopic.hideContent&&b(this).find(".asp_content").css("bottom",-b(this).find(".asp_content").outerHeight()+"px"))}),a.n.resultsDiv.find("div.item").on("mouseleave",function(){b(this).find(".asp_item_overlay").css("opacity",0);0<b(this).find(".asp_image").length&&(a.o.isotopic.blurOverlay&&b(this).find(".asp_item_overlay_img").css("opacity",0),a.o.isotopic.hideContent&&b(this).find(".asp_content").css("bottom", 198"0px"))}),a.n.resultsDiv.find("div.asp_item_inner").on("mouseenter",function(){b(this).addClass("animated pulse")}),a.n.resultsDiv.find("div.asp_item_inner").on("mouseleave",function(){b(this).removeClass("animated pulse")})),a.n.resultsDiv.find(".asp_isotopic_item").on("click",function(d){if(!a.dragging){let e=b(this).find(".asp_content a"),g=e.attr("href");""!==g&&(d.preventDefault(),2==d.which||"_blank"==e.attr("target")?c.openInNewTab(g):location.href=g)}}))}})})(WPD.dom); 199(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initNavigationEvents:function(){let c=this,a=function(d){let e=d.keyCode||d.which;if(0<b(".item",c.n.resultsDiv).length&&"none"!=c.n.resultsDiv.css("display")&&"vertical"==c.o.resultstype){if(40==e||38==e){var g=c.n.resultsDiv.find(".item.hovered");c.n.text.trigger("blur");0==g.length?c.n.resultsDiv.find(".item").first().addClass("hovered"):(40==e&&(0==g.next(".item").length?c.n.resultsDiv.find(".item").removeClass("hovered").first().addClass("hovered"): 200g.removeClass("hovered").next(".item").addClass("hovered")),38==e&&(0==g.prev(".item").length?c.n.resultsDiv.find(".item").removeClass("hovered").last().addClass("hovered"):g.removeClass("hovered").prev(".item").addClass("hovered")));d.stopPropagation();d.preventDefault();c.n.resultsDiv.find(".resdrg .item.hovered").inViewPort(50,".asp_r_"+c.o.rid)||(g=c.n.resultsDiv.find(".resdrg .item.hovered").get(0),null!=g&&"undefined"!=typeof g.scrollIntoView&&g.scrollIntoView({behavior:"smooth",block:"start", 201inline:"nearest"}))}13==e&&0<b(".item.hovered",c.n.resultsDiv).length&&(d.stopPropagation(),d.preventDefault(),b(".item.hovered a.asp_res_url",c.n.resultsDiv).get(0).click())}};c.documentEventHandlers.push({node:document,event:"keydown",handler:a});b(document).on("keydown",a)}})})(WPD.dom); 202(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initNoUIEvents:function(){let c=this,a=c.n.searchsettings,d;a.find("div[class*=noui-slider-json]").each(function(e,g){let h=b(this).data("aspnoui");if("undefined"===typeof h)return!1;h=WPD.Base64.decode(h);if("undefined"===typeof h||""==h)return!1;let f=JSON.parse(h);
202Object.keys(f.links).forEach(function(l){f.links[l].target="#"+a.get(0).id+" "+f.links[l].target});if(0<b(f.node,a).length){d=b(f.node,a).get(0);e=b(e).parent().find(".asp_slider_hidden"); 203f.main.start=1<e.length?[e.first().val(),e.last().val()]:[e.first().val()];if("undefined"!==typeof noUiSlider)"undefined"!=typeof d.noUiSlider&&d.noUiSlider.destroy(),d.innerHTML="",noUiSlider.create(d,f.main);else return!1;c.noUiSliders[g]=d;d.noUiSlider.on("update",function(l,k){let m=l[k];k?f.links.forEach(function(n){let p=wNumb(n.wNumb);"upper"==n.handle&&(b(n.target,a).is("input")?b(n.target,a).val(m):b(n.target,a).html(p.to(parseFloat(m))));b(f.node,a).on("slide",function(q){q.preventDefault()})}): 204f.links.forEach(function(n){let p=wNumb(n.wNumb);"lower"==n.handle&&(b(n.target,a).is("input")?b(n.target,a).val(m):b(n.target,a).html(p.to(parseFloat(m))));b(f.node,a).on("slide",function(q){q.preventDefault()})})})}})}})})(WPD.dom); 205(function(b){let c=window.WPD.ajaxsearchpro,a=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initOtherEvents:function(){let d=this;if(a.isMobile()&&a.detectIOS())d.n.text.on("touchstart",function(){d.savedScrollTop=window.scrollY;d.savedContainerTop=d.n.search.offset().top});d.n.proclose.on(d.clickTouchend,function(g){g.preventDefault();g.stopImmediatePropagation();d.n.text.val("");d.n.textAutocomplete.val("");d.hideResults();d.n.text.trigger("focus");d.n.proloading.css("display", 206"none");d.hideLoader();d.searchAbort();0<b(".asp_es_"+d.o.id).length?(d.showLoader(),d.liveLoad(".asp_es_"+d.o.id,d.getCurrentLiveURL(),!1)):d.o.resPage.useAjax&&(d.showLoader(),d.liveLoad(d.o.resPage.selector,d.getRedirectURL()))});if(a.isMobile()){var e=function(){d.orientationChange();setTimeout(function(){d.orientationChange()},600)};d.documentEventHandlers.push({node:window,event:"orientationchange",handler:e});b(window).on("orientationchange",e)}else e=function(){d.resize()},d.documentEventHandlers.push({node:window, 207event:"resize",handler:e}),b(window).on("resize",e,{passive:!0});e=function(){d.scrolling(!1)};d.documentEventHandlers.push({node:window,event:"scroll",handler:e});b(window).on("scroll",e,{passive:!0});if(a.isMobile()&&""!=d.o.mobile.menu_selector)b(d.o.mobile.menu_selector).on("touchend",function(){let g=this;setTimeout(function(){let h=b(g).find("input.orig");h=0==h.length?b(g).next().find("input.orig"):h;h=0==h.length?b(g).parent().find("input.orig"):h;h=0==h.length?d.n.text:h;d.n.search.is(":visible")&& 208h.get(0).focus()},300)});a.detectIOS()&&a.isMobile()&&a.isTouchDevice()&&16>parseInt(d.n.text.css("font-size"))&&(d.n.text.data("fontSize",d.n.text.css("font-size")).css("font-size","16px"),d.n.textAutocomplete.css("font-size","16px"),b("body").append("<style>#ajaxsearchpro"+d.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>"))},orientationChange:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition(); 209"isotopic"==this.o.resultstype&&"visible"==this.n.resultsDiv.css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},resize:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition();this.hideArrowBox();"isotopic"==this.o.resultstype&&"visible"==this.n.resultsDiv.css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(d){this.detectAndFixFixedPositioning(); 210this.hideOnInvisibleBox();this.fixSettingsPosition(d);this.fixResultsPosition(d)},initTryThisEvents:function(){let d=this;d.n.trythis.find("a").on("click touchend",function(e){e.preventDefault();e.stopImmediatePropagation();d.o.compact.enabled&&"closed"==(d.n.search.attr("asp-compact")||"closed")&&d.n.promagnifier.trigger("click");document.activeElement.blur();d.n.textAutocomplete.val("");d.n.text.val(b(this).html());d.gaEvent("try_this");setTimeout(function(){d.n.text.trigger("input")},50)})},initPrevState:function(){let d= 211this;c.firstIteration&&null==c.prevState&&(c.prevState=localStorage.getItem("asp-"+WPD.Base64.encode(location.href)),null!=c.prevState&&(c.prevState=JSON.parse(c.prevState),c.prevState.settings=WPD.Base64.decode(c.prevState.settings)));null!=c.prevState&&"undefined"!=typeof c.prevState.id&&c.prevState.id==d.o.id&&c.prevState.instance==d.o.iid&&(""!=c.prevState.phrase&&(d.triggerPrevState=!0,d.n.text.val(c.prevState.phrase)),a.formData(b("form",d.n.searchsettings))!=c.prevState.settings&&(d.triggerPrevState= 212!0,d.settingsChanged=!0,a.formData(b("form",d.n.searchsettings),c.prevState.settings)),null!==c.prevState.settingsOriginal&&(d.originalFormData=WPD.Base64.decode(c.prevState.settingsOriginal),d.setFilterStateInput(0)));localStorage.removeItem("asp-"+WPD.Base64.encode(location.href));let e=function(){var g=d.n.text.val();if(""!=g||d.settingsChanged)g={id:d.o.id,instance:d.o.iid,phrase:g,settingsOriginal:"undefined"===typeof d.originalFormData?null:WPD.Base64.encode(d.originalFormData),settings:WPD.Base64.encode(a.formData(b("form", 213d.n.searchsettings)))},localStorage.setItem("asp-"+WPD.Base64.encode(location.href),JSON.stringify(g))};b(".asp_es_"+d.o.id).on("click","a",e);d.n.resultsDiv.on("click",".results .item",e);d.documentEventHandlers.push({node:document.body,event:"asp_memorize_state_"+d.o.id,handler:e});b("body").on("asp_memorize_state_"+d.o.id,e)},initSelect2:function(){let d=this;window.WPD.intervalUntilExecute(function(e){"undefined"!==typeof e.fn.asp_select2&&(d.select2jQuery=e,b("select.asp_gochosen, select.asp_goselect2", 214d.n.searchsettings).each(function(){b(this).removeAttr("data-asp_select2-id");b(this).find('option[value=""]').val("____temp_empty____");d.select2jQuery(this).asp_select2({width:"100%",theme:"flat",allowClear:0<b(this).find('option[value=""]').length,language:{noResults:function(){return d.o.select2.nores}}});d.select2jQuery(this).on("change",function(){b(this).trigger("change")});b(this).find('option[value="____temp_empty____"]').val("")}
214))},function(){return a.whichjQuery("asp_select2")})}})})(WPD.dom); 215(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initResultsEvents:function(){let c=this;c.n.resultsDiv.css({opacity:"0"});let a=function(d){let e=d.keyCode||d.which,g=d.type;if(0==b(d.target).closest(".asp_w").length&&(0!=c.o.blocking||c.dragging||0!=b(d.target).closest(".ui-datepicker").length||0!=b(d.target).closest(".noUi-handle").length||0!=b(d.target).closest(".asp_select2").length||0!=b(d.target).closest(".asp_select2-container").length||c.hideSettings(),c.hideOnInvisibleBox(),c.hideArrowBox(), 216"click"!=g||"touchend"!=g||3!=e)){if(c.o.compact.enabled)d=c.n.search.attr("asp-compact")||"closed",1!=c.o.compact.closeOnDocument||"open"!=d||c.resultsOpened||(c.closeCompact(),c.searchAbort(),c.hideLoader());else if(0==c.resultsOpened||1!=c.o.closeOnDocClick)return;c.dragging||(c.hideLoader(),c.searchAbort(),c.hideResults())}};c.documentEventHandlers.push({node:document,event:c.clickTouchend,handler:a});b(document).on(c.clickTouchend,a);"isotopic"==c.o.resultstype&&(c.n.resultsDiv.on("swiped-left", 217function(){c.visiblePagination()&&c.n.resultsDiv.find("a.asp_next").trigger("click")}),c.n.resultsDiv.on("swiped-right",function(){c.visiblePagination()&&c.n.resultsDiv.find("a.asp_prev").trigger("click")}))}})})(WPD.dom); 218(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initSettingsEvents:function(){let a=this;a.n.searchsettings.on("click",function(){a.settingsChanged=!0});a.n.searchsettings.on(a.clickTouchend,function(d){"undefined"==typeof d.target||b(d.target).hasClass("noUi-handle")?"click"==d.type&&d.stopImmediatePropagation():d.stopImmediatePropagation()});a.n.prosettings.on("click",function(){0==a.n.prosettings.data("opened")?a.showSettings():a.hideSettings()}); 219c.isMobile()?("open"==a.o.mobile.force_sett_state||"none"==a.o.mobile.force_sett_state&&1==a.o.settingsVisible)&&a.showSettings(!1):1==a.o.settingsVisible&&a.showSettings(!1);b('.asp_option_cat input[type="checkbox"]',a.n.searchsettings).on("asp_chbx_change",function(){a.settingsCheckboxToggle(b(this).closest(".asp_option_cat"))});b(".asp_option_cat",a.n.searchsettings).each(function(d){a.settingsCheckboxToggle(b(d),!1)})}})})(WPD.dom); 220(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{monitorTouchMove:function(){let c=this;c.dragging=!1;b("body").on("touchmove",function(){c.dragging=!0}).on("touchstart",function(){c.dragging=!1})}})})(WPD.dom); 221(function(b){let c=window.WPD.ajaxsearchpro;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initAutop:function(){let a=this;if(null!=c.prevState&&!a.o.compact.enabled&&a.triggerPrevState)return a.searchWithCheck(800),c.prevState=null,!1;if("disabled"==a.o.autop.state)return!1;let d=window.location.href;if(-1<d.indexOf("asp_ls=")||-1<d.indexOf("asp_ls&"))return!1;let e=a.o.show_more.enabled&&"ajax"==a.o.show_more.action?!1:a.o.autop.count;window.WPD.intervalUntilExecute(function(){a.isAutoP=!0;"phrase"== 222a.o.autop.state?(a.n.text.val(a.o.autop.phrase),a.search(e)):"latest"==a.o.autop.state?a.search(e,1):a.search(e,2)},function(){return!window.ASP.css_async||"undefined"!=typeof window.ASP.css_loaded})}})})(WPD.dom); 223(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initCompact:function(){let c=this;1==c.o.compact.enabled&&"fixed"!=c.o.compact.position&&(c.o.compact.overlay=0);1==c.o.compact.enabled&&c.n.trythis.css({display:"none"});1==c.o.compact.enabled&&"fixed"==c.o.compact.position&&window.WPD.intervalUntilExecute(function(){b("body").append(c.n.search.detach());b("body").append(c.n.trythis.detach());c.n.search.css({top:c.n.search.position().top+"px"})},"fixed"==c.n.search.css("position"))}})})(WPD.dom); 224(function(b){b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initEtc:function(){let c=this,a=null;c.n.trythis.css({visibility:"visible"});b("div.asp_option",c.n.searchsettings).on(c.mouseupTouchend,function(d){d.preventDefault();d.stopImmediatePropagation();if(c.dragging)return!1;b(this).find('input[type="checkbox"]').prop("checked",!b(this).find('input[type="checkbox"]').prop("checked"));clearTimeout(a);let e=this;a=setTimeout(function(){b(e).find('input[type="checkbox"]').trigger("asp_chbx_change")}, 22550)});b("div.asp_option label",c.n.searchsettings).on("click",function(d){d.preventDefault()});b("fieldset.asp_checkboxes_filter_box",c.n.searchsettings).each(function(){let d=!0;b(this).find('.asp_option:not(.asp_option_selectall) input[type="checkbox"]').each(function(){if(1==b(this).prop("checked"))return d=!1});d&&b(this).find('.asp_option_selectall input[type="checkbox"]').prop("checked",!1).removeAttr("data-origvalue")});b("fieldset",c.n.searchsettings).each(function(){b(this).find(".asp_option:not(.hiddend)").last().addClass("asp-o-last")}); 226b('.asp_option_cat input[type="checkbox"], .asp_option_cff input[type="checkbox"]',c.n.searchsettings).on("asp_chbx_change",function(){let d=b(this).data("targetclass");"string"==typeof d&&""!=d&&b("input."+d,c.n.searchsettings).prop("checked",b(this).prop("checked"))});c.n.resultsDiv.on("click",".results .item",function(){c.gaEvent("result_click",{result_title:b(this).find("a.asp_res_url").text(),result_url:b(this).find("a.asp_res_url").attr("href")});1==c.o.singleHighlight&&(localStorage.removeItem("asp_phrase_highlight"), 227""!=c.n.text.val().replace(/["']/g,"")&&localStorage.setItem("asp_phrase_highlight",JSON.stringify({phrase:c.n.text.val().replace(/["']/g,""),id:c.o.id})))});c.fixElementorPostPagination(location.href);c.il={columns:3,rows:c.o.isotopic.pagination?c.o.isotopic.rows:1E4,itemsPerPage:6,lastVisibleItem:-1};c.filterFns={number:function(d,e){if("undefined"===typeof e||"object"===typeof d)e=d;d=b(e).attr("data-itemnum");const g=c.currentPage,h=c.il.itemsPerPage;d%(c.il.columns*c.il.rows)<c.il.columns*(c.il.rows- 2281)?b(e).addClass("asp_gutter_bottom"):b(e).removeClass("asp_gutter_bottom");return parseInt(d,10)<h*g&&parseInt(d,10)>=h*(g-1)}}},initInfiniteScroll:function(){let c=this;if(c.o.show_more.infinite&&"polaroid"!=c.o.resultstype){let a,d;d=function(){clearTimeout(a);a=setTimeout(function(){c.checkAndTriggerInfiniteScroll("window")},80)};c.documentEventHandlers.push({node:window,event:"scroll",handler:d});b(window).on("scroll",d);c.n.results.on("scroll",d);let e;c.n.resultsDiv.on("nav_switch",function(){clearTimeout(e); 229e=setTimeout(function(){c.checkAndTriggerInfiniteScroll("isotopic")},800)})}},hooks:function(){let c=this;c.n.s.on("asp_elementor_results",function(a,d){c.o.id==d&&"function"==typeof jetpackLazyImagesModule&&setTimeout(function(){jetpackLazyImagesModule()},300)})}})})(WPD.dom); 230(function(b){let c=window.WPD.ajaxsearchpro,a=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{init:function(d,e){this.autopStartedTheSearch=this.isAutoP=this.triggerPrevState=this.searching=!1;this.autopData={};this.resultsOpened=this.settingsChanged=!1;this.postAuto=this.post=null;this.scroll={};this.savedContainerTop=this.savedScrollTop=0;this.is_scroll="undefined"!=typeof asp_SimpleBar;this.disableMobileScroll=!1;this.clickTouchend="click touchend";this.mouseupTouchend= 231"mouseup touchend";this.noUiSliders=[];
231this.timeouts={compactBeforeOpen:null,compactAfterOpen:null,search:null,searchWithCheck:null};this.documentEventHandlers=[];this.settScroll=null;this.currentPage=1;this.sIsotope=this.isotopic=null;this.lastSuccesfulSearch="";this.lastSearchData={};this._no_animations=!1;this.results_num=this.call_num=0;this.o=b.fn.extend({},d);this.n={};this.n.search=b(e);this.initNodeVariables();"undefined"!=typeof ASP.scrollbar&&0==ASP.scrollbar&&(this.is_scroll=!1);"horizontal"== 232this.o.resultstype&&0==this.o.scrollBar.horizontal.enabled&&(this.is_scroll=!1);a.isMobile()?this.animOptions=this.o.animations.mob:this.animOptions=this.o.animations.pc;this.animationOpacity=0>this.animOptions.items.indexOf("In")?"opacityOne":"opacityZero";this.resInfoBoxTxt=0<this.n.resultsDiv.find(".asp_results_top p.asp_rt_phrase").length?this.n.resultsDiv.find(".asp_results_top p.asp_rt_phrase").html():"";this.resInfoBoxTxtNoPhrase=0<this.n.resultsDiv.find(".asp_results_top p.asp_rt_nophrase").length? 233this.n.resultsDiv.find(".asp_results_top p.asp_rt_nophrase").html():"";this.o.resPage.useAjax=this.o.compact.enabled?0:this.o.resPage.useAjax;a.isMobile()&&(this.o.trigger.type=this.o.mobile.trigger_on_type,this.o.trigger.click=this.o.mobile.click_action,this.o.trigger.click_location=this.o.mobile.click_action_location,this.o.trigger.return=this.o.mobile.return_action,this.o.trigger.return_location=this.o.mobile.return_action_location,this.o.trigger.redirect_url=this.o.mobile.redirect_url,this.o.trigger.elementor_url= 234this.o.mobile.elementor_url);this.o.redirectOnClick="ajax_search"!=this.o.trigger.click&&"nothing"!=this.o.trigger.click;this.o.redirectOnEnter="ajax_search"!=this.o.trigger.return&&"nothing"!=this.o.trigger.return;if(this.usingLiveLoader=this.o.resPage.useAjax&&0<b(this.o.resPage.selector).length||0<b(".asp_es_"+this.o.id).length)this.o.trigger.type=this.o.resPage.trigger_type,this.o.trigger.facet=this.o.resPage.trigger_facet,this.o.resPage.trigger_magnifier&&(this.o.redirectOnClick=0,this.o.trigger.click= 235"ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=0,this.o.trigger.click="ajax_search");this.o.trigger.redirect_url=a.decodeHTMLEntities(this.o.trigger.redirect_url);this.o.trigger.elementor_url=a.decodeHTMLEntities(this.o.trigger.elementor_url);this.n.textAutocomplete.val("");1==this.o.compact.overlay&&0==b("#asp_absolute_overlay").length&&b("body").append("<div id='asp_absolute_overlay'></div>");1==ASP.js_retain_popstate&&this.initPrevState();"undefined"!==typeof this.initCompact&& 236this.initCompact();this.detectAndFixFixedPositioning();this.monitorTouchMove();this.initSettingsAnimations();this.initResultsAnimations();this.initEvents();this.initAutop();this.initEtc();this.initInfiniteScroll();this.fixAccessibility();this.hooks();c.firstIteration=!1;"undefined"===typeof this.originalFormData&&(this.originalFormData=a.formData(b("form",this.n.searchsettings)));this.n.s.trigger("asp_init_search_bar",[this.o.id,this.o.iid],!0,!0);return this},initNodeVariables:function(){this.n.s= 237this.n.search;this.n.container=this.n.search.closest(".asp_w_container");this.o.id=this.n.search.data("id");this.o.iid=this.n.search.data("instance");this.o.rid=this.o.id+"_"+this.o.iid;this.o.name=this.n.search.data("name");this.n.searchsettings=b(".asp_ss",this.n.container);this.n.resultsDiv=b(".asp_r",this.n.container);this.n.probox=b(".probox",this.n.search);this.n.proinput=b(".proinput",this.n.search);this.n.text=b(".proinput input.orig",this.n.search);this.n.textAutocomplete=b(".proinput input.autocomplete", 238this.n.search);this.n.loading=b(".proinput .loading",this.n.search);this.n.proloading=b(".proloading",this.n.search);this.n.proclose=b(".proclose",this.n.search);this.n.promagnifier=b(".promagnifier",this.n.search);this.n.prosettings=b(".prosettings",this.n.search);this.fixClonedSelf();this.n.settingsAppend=b("#wpdreams_asp_settings_"+this.o.id);this.o.blocking=this.n.searchsettings.hasClass("asp_sb");"undefined"!==typeof this.initSettingsBox&&this.initSettingsBox();this.n.trythis=b("#asp-try-"+this.o.rid); 239this.n.resultsAppend=b("#wpdreams_asp_results_"+this.o.id);this.initResultsBox();this.n.hiddenContainer=b(".asp_hidden_data",this.n.container);this.n.aspItemOverlay=b(".asp_item_overlay",this.n.hiddenContainer);this.n.showmore=b(".showmore",this.n.resultsDiv);this.n.items=0<b(".item",this.n.resultsDiv).length?b(".item",this.n.resultsDiv):b(".photostack-flip",this.n.resultsDiv);this.n.results=b(".results",this.n.resultsDiv);"polaroid"==this.o.resultstype&&this.n.results.addClass("photostack");this.n.resdrg= 240b(".resdrg",this.n.resultsDiv)},initEvents:function(){"undefined"!==typeof this.initSettingsEvents&&this.initSettingsEvents();this.initResultsEvents();this.initOtherEvents();this.initTryThisEvents();this.initButtonEvents();this.initMagnifierEvents();this.initInputEvents();1==this.o.compact.enabled&&this.initCompactEvents();"undefined"!==typeof this.initAutocompleteEvent&&this.initAutocompleteEvent();"undefined"!==typeof this.initNavigationEvents&&(this.initNavigationEvents(),this.initIsotopicPagination()); 241"undefined"!==typeof this.initNoUIEvents&&(this.initNoUIEvents(),this.initDatePicker(),this.initSelect2(),this.initFacetEvents())}})})(WPD.dom); 242(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initResultsBox:function(){c.isMobile()&&1==this.o.mobile.force_res_hover?(this.o.resultsposition="hover",this.n.resultsDiv=this.n.resultsDiv.clone(),b("body").append(this.n.resultsDiv),this.n.resultsDiv.css({position:"absolute"}),this.detectAndFixFixedPositioning()):"hover"==this.o.resultsposition&&0>=this.n.resultsAppend.length?(this.n.resultsDiv=this.n.resultsDiv.clone(),b("body").append(this.n.resultsDiv)): 243(this.o.resultsposition="block",this.n.resultsDiv.css({position:"static"}),0<this.n.resultsAppend.length&&(0<this.n.resultsAppend.find(".asp_w").length?(this.n.resultsDiv=this.n.resultsAppend.find(".asp_w"),this.n.showmore=b(".showmore",this.n.resultsDiv),this.n.items=0<b(".item",this.n.resultsDiv).length?b(".item",this.n.resultsDiv):b(".photostack-flip",this.n.resultsDiv),this.n.results=b(".results",this.n.resultsDiv),this.n.resdrg=b(".resdrg",this.n.resultsDiv)):(this.n.resultsDiv=this.n.resultsDiv.clone(), 244this.n.resultsAppend.append(this.n.resultsDiv))));this.n.resultsDiv.get(0).id=this.n.resultsDiv.get(0).id.replace("__original__","")},initResultsAnimations:function(){let a=this.n.resultsDiv.css("position");this.resAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":this.animOptions.results.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:this.animOptions.results.dur+"ms"};"fade"==this.animOptions.results.anim&&(this.resAnim.showClass= 245"asp_an_fadeIn",this.resAnim.hideClass="asp_an_fadeOut");
245"fadedrop"!=this.animOptions.results.anim||"fixed"!=a&&"absolute"!=a?"fadedrop"==this.animOptions.results.anim&&(this.resAnim.showClass="asp_an_fadeIn",this.resAnim.hideClass="asp_an_fadeOut"):(this.resAnim.showClass="asp_an_fadeInDrop",this.resAnim.hideClass="asp_an_fadeOutDrop");this.n.resultsDiv.css({"-webkit-animation-duration":this.settAnim.duration+"ms","animation-duration":this.settAnim.duration+"ms"})}})})(WPD.dom); 246(function(b){let c=window.WPD.ajaxsearchpro.helpers;b.fn.extend(window.WPD.ajaxsearchpro.plugin,{initSettingsBox:function(){let a=this,d=function(e){let g=a.n.searchsettings.get(0);a.n.searchsettings=a.n.searchsettings.clone();e.append(a.n.searchsettings);b(g).find("*[id]").forEach(function(h){0>h.id.indexOf("__original__")&&(h.id="__original__"+h.id)});a.n.searchsettings.find("*[id]").forEach(function(h){-1<h.id.indexOf("__original__")&&(h.id=h.id.replace("__original__",""))})};1==a.o.compact.enabled&& 247"fixed"==a.o.compact.position||c.isMobile()&&1==a.o.mobile.force_sett_hover?(a.n.searchsettings.attr("id",a.n.searchsettings.attr("id").replace("probsettings","prosettings")),a.n.searchsettings.removeClass("asp_sb asp_sb_"+a.o.id+" asp_sb_"+a.o.rid).addClass("asp_s asp_s_"+a.o.id+" asp_s_"+a.o.rid),a.o.blocking=!1,d(b("body")),a.n.searchsettings.css({position:"absolute"}),a.o.blocking=!1,a.detectAndFixFixedPositioning()):0<a.n.settingsAppend.length?0<a.n.settingsAppend.find(".asp_w").length?a.n.searchsettings= 248a.n.settingsAppend.find(".asp_w"):(0==a.o.blocking&&(a.n.searchsettings.attr("id",a.n.searchsettings.attr("id").replace("prosettings","probsettings")),a.n.searchsettings.removeClass("asp_s asp_s_"+a.o.id+" asp_s_"+a.o.rid).addClass("asp_sb asp_sb_"+a.o.id+" asp_sb_"+a.o.rid),a.o.blocking=!0),d(a.n.settingsAppend)):0==a.o.blocking&&d(b("body"));a.n.searchsettings.get(0).id=a.n.searchsettings.get(0).id.replace("__original__","")},initSettingsAnimations:function(){this.settAnim={showClass:"",showCSS:{visibility:"visible", 249display:"block",opacity:1,"animation-duration":this.animOptions.settings.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:this.animOptions.settings.dur+"ms"};"fade"==this.animOptions.settings.anim&&(this.settAnim.showClass="asp_an_fadeIn",this.settAnim.hideClass="asp_an_fadeOut");"fadedrop"!=this.animOptions.settings.anim||this.o.blocking?"fadedrop"==this.animOptions.settings.anim&&(this.settAnim.showClass="asp_an_fadeIn",this.settAnim.hideClass="asp_an_fadeOut"): 250(this.settAnim.showClass="asp_an_fadeInDrop",this.settAnim.hideClass="asp_an_fadeOutDrop");this.n.searchsettings.css({"-webkit-animation-duration":this.settAnim.duration+"ms","animation-duration":this.settAnim.duration+"ms"})}})})(WPD.dom); 251(function(b){b(".ajaxsearchprotop").each(function(){let c=b(this).data("aspdata"),a=c.id;if(0==c.action)b("a",this).on("click",function(d){d.preventDefault()});else if(2==c.action)b("a",this).on("click",function(d){d.preventDefault();ASP.api(a,"searchFor",b(this).html());b("html").animate({scrollTop:b("div[id*=ajaxsearchpro"+a+"_]").first().offset().top-40},500)});else if(1==c.action)b("a",this).on("click",function(d){if(ASP.api(a,"exists"))return d.preventDefault(),ASP.api(a,"searchRedirect",b(this).html())})})})(WPD.dom); 252window.ASP="undefined"!==typeof window.ASP?window.ASP:{}; 253window.ASP.api=function(){let b=function(d,e,g,h){d=ASP.instances.get(d,e);return!1!==d&&d[g].apply(d,[h])},c=function(d,e,g){if(!isNaN(parseFloat(e))&&isFinite(e))return d=ASP.instances.get(d,e),!1!==d&&d[g].apply(d);d=ASP.instances.get(d);return!1!==d&&d.forEach(function(h){h[e].apply(h,[g])})},a=function(d,e){if("exists"==e)return ASP.instances.exist(d);d=ASP.instances.get(d);return!1!==d&&d.forEach(function(g){g[e].apply(g)})};if(4==arguments.length)return b.apply(this,arguments);if(3==arguments.length)return c.apply(this, 254arguments);if(2==arguments.length)return a.apply(this,arguments);0==arguments.length&&(console.log("Usage: ASP.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))}; 255window._ASP_load=function(){let b=WPD.dom;window.ASP.instances={instances:[],get:function(c,a){this.clean();if("undefined"===typeof c||0==c)return this.instances;if("undefined"===typeof a){a=[];for(var d=0;d<this.instances.length;d++)this.instances[d].o.id==c&&a.push(this.instances[d]);return 0<a.length?a:!1}
255for(d=0;d<this.instances.length;d++)if(this.instances[d].o.id==c&&this.instances[d].o.iid==a)return this.instances[d];return!1},set:function(c){if(this.exist(c.o.id,c.o.iid))return!1;this.instances.push(c); 256return!0},exist:function(c,a){this.clean();for(let d=0;d<this.instances.length;d++)if(this.instances[d].o.id==c&&("undefined"===typeof a||this.instances[d].o.iid==a))return!0;return!1},clean:function(){let c=[],a=this;this.instances.forEach(function(d,e){0==b(".asp_m_"+d.o.rid).length&&c.push(e)});c.forEach(function(d){"undefined"!==typeof a.instances[d]&&(a.instances[d].destroy(),a.instances.splice(d,1))})},destroy:function(c,a){let d=this.get(c,a);if(!1!==d)if(Array.isArray(d))d.forEach(function(e){e.destroy()}), 257this.instances=[];else{let e=0;this.instances.forEach(function(g,h){g.o.id==c&&g.o.iid==a&&(e=h)});d.destroy();this.instances.splice(e,1)}}};window.ASP.initialized=!1;window.ASP.initializeById=function(c,a){let d=".asp_init_data";a="undefined"==typeof a?!1:a;"undefined"!==typeof c&&"object"!=typeof c&&(d="div[id*=asp_init_id_"+c+"]");let e=0;b(d).forEach(function(g){let h=b(g).closest(".asp_w_container").find(".asp_m");
257if(0==h.length||"undefined"!=typeof h.get(0).hasAsp)return++e,!0;if(!a&&!h.inViewPort(-100))return!0; 258g=b(g).data("aspdata");if("undefined"===typeof g)return!0;g=WPD.Base64.decode(g);if("undefined"===typeof g||""==g)return!0;g=JSON.parse(g);h.get(0).hasAsp=!0;++e;return h.ajaxsearchpro(g)});b(d).length==e&&(document.removeEventListener("scroll",ASP.initializeById),document.removeEventListener("resize",ASP.initializeById))};window.ASP.initialize=function(c){if("undefined"==typeof this.version)return!1;ASP.script_async_load?(document.addEventListener("scroll",ASP.initializeById,{passive:!0}),document.addEventListener("resize", 259ASP.initializeById,{passive:!0}),ASP.initializeById(c),setTimeout(function(){ASP.initializeById(c,!0)},4E3)):ASP.initializeById(c,!0);if(this.highlight.enabled){let a=localStorage.getItem("asp_phrase_highlight");localStorage.removeItem("asp_phrase_highlight");null!=a&&(a=JSON.parse(a),this.highlight.data.forEach(function(d){if(d.id==a.id){var e=""!=d.selector&&0<b(d.selector).length?d.selector:"article";e=0<b(e).length?e:"body";b(e).highlight(a.phrase,{element:"span",className:"asp_single_highlighted_"+ 260a.id,wordsOnly:d.whole,excludeParents:".asp_w, .asp-try"});e=b(".asp_single_highlighted_"+a.id);if(d.scroll&&0<e.length){e=e.offset().top-120;let g=b("#wpadminbar");0<g.length&&(e-=g.height());e+=d.scroll_offset;e=0>e?0:e;b("html").animate({scrollTop:e},500)}return!1}}))}this.initialized=!0};window.ASP.ready=function(){let c=this,a=b("body"),d,e,g;c.initialize();if("undefined"!=typeof ASP.detect_ajax&&1==ASP.detect_ajax){let h=new MutationObserver(function(){clearTimeout(d);d=setTimeout(function(){c.initialize()}, 261500)});function f(){let l=document.querySelector("body");l?h.observe(l,{subtree:!0,childList:!0}):window.setTimeout(f,500)}f()}b(window).on("resize",function(){clearTimeout(e);e=setTimeout(function(){c.initializeById()},200)});a.on("click touchend","#menu-item-search, .fa-search, .fa, .fas, .fusion-flyout-menu-toggle, .fusion-main-menu-search-open, #search_button, .mini-search.popup-search, .icon-search, .menu-item-search-dropdown, .mobile-menu-button, .td-icon-search, .tdb-search-icon, .side_menu_button, .search_button, .raven-search-form-toggle, [data-elementor-open-lightbox], .elementor-button-link, .elementor-button, i[class*=-search], a[class*=-search]", 262function(){clearTimeout(g);g=setTimeout(function(){c.initializeById({},!0)},300)});if("undefined"!=typeof jQuery)jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){c.initializeById({},!0)},10)})};window.ASP.loadScriptStack=function(c){let a;0<c.length&&(a=document.createElement("script"),a.src=c.shift().src,a.onload=function(){0<c.length?window.ASP.loadScriptStack(c):window.ASP.ready()},document.body.appendChild(a))};window.ASP.init=function(){ASP.script_async_load?window.ASP.loadScriptStack(ASP.additional_scripts): 263"undefined"!==typeof WPD.ajaxsearchpro&&window.ASP.ready()};window.ASP.css_async&&"undefined"==typeof window.ASP.css_loaded||window.WPD.intervalUntilExecute(window.ASP.init,function(){return"undefined"!=typeof window.ASP.version&&"undefined"!=b.fn.ajaxsearchpro})};(function(){"undefined"!=typeof WPD&&"undefined"!=typeof WPD.dom?window._ASP_load():document.addEventListener("wpd-dom-core-loaded",window._ASP_load)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.