PageSourceSearch

https://cdn.schiffsovereign.com/wp-content/litespeed/js/f1fbf6cb7642bc8087435cf322abf34a.js?ver=bf34a

js schiffsovereign.com collected 2026-10-02 03:39:40 UTC 98,798 bytes, 6 lines download raw bytes

1(function(){if(window.WPD=typeof window.WPD!="undefined"?window.WPD:{},typeof WPD.dom!="undefined")return!1;WPD.dom=function(){return(typeof WPD.dom.fn=="undefined"||typeof WPD.dom.fn.a=="undefined")&&(WPD.dom.fn={a:[],is_wpd_dom:!0,length:0,get:function(a){return typeof a=="undefined"?this.a.slice():typeof this.a[a]!="undefined"?this.a[a]:null},_:function(a){return a.charAt(0)==="<"?WPD.dom._fn.createElementsFromHTML(a):Array.prototype.slice.call(document.querySelectorAll(a))},$:function(a,b){let c=this.copy(this,!0);return c.a=typeof b!="undefined"?b!==null?b.find(a).get():[]:typeof a=="string"?c._(a):a!==null?[a]:[],c.length=c.a.length,c},extend:function(){for(let a=1;a<arguments.length;a++)for(let b in arguments[a])arguments[a].hasOwnProperty(b)&&(arguments[0][b]=arguments[a][b]);return arguments[0]},copy:function(a,b){let c,d,e;if(typeof a!="object"||a===null)return a;c=new a.constructor;for(d in a)a.hasOwnProperty(d)&&(e=typeof a[d],c[d]=b&&e==="object"&&a[d]!==null?this.copy(a[d]):a[d]);return c},parent:function(a){let b=this.get(0),c=this.copy(this,!0);return c.a=[],b!=null&&(b=b.parentElement,typeof a!="undefined"?b.matches(a)&&(c.a=[b]):c.a=b==null?[]:[b]),c},first:function(){let a=this.copy(this,!0);return a.a=typeof a.a[0]!="undefined"?[a.a[0]]:[],a.length=a.a.length,a},last:function(){let a=this.copy(this,!0);return a.a=0<a.a.length?[a.a[a.a.length-1]]:[],a.length=a.a.length,a},prev:function(a){let b=this.copy(this,!0);if(typeof a=="undefined")b.a=typeof b.a[0]!="undefined"&&b.a[0].previousElementSibling!=null?[b.a[0].previousElementSibling]:[];else if(typeof b.a[0]!="undefined"){let c=b.a[0].previousElementSibling;for(b.a=[];c!=null;){if(c.matches(a)){b.a=[c];break}c=c.previousElementSibling}}return b.length=b.a.length,b},next:function(a){let b=this.copy(this,!0);if(typeof a=="undefined")b.a=typeof b.a[0]!="undefined"&&b.a[0].nextElementSibling!=null?[b.a[0].nextElementSibling]:[];else if(typeof b.a[0]!="undefined"){let c=b.a[0].nextElementSibling;for(b.a=[];c!=null;){if(c.matches(a)){b.a=[c];break}c=c.nextElementSibling}}return b.length=b.a.length,b},closest:function(a){let b=this.get(0),c=this.copy(this,!0);if(c.a=[],typeof a=="string"){if(b!==null&&typeof b.matches!="undefined"&&a!==""){if(!b.matches(a))for(;(b=b.parentElement)&&!b.matches(a););c.a=b==null?[]:[b]}}else if(b!==null&&typeof b.matches!="undefined"&&typeof a.matches!="undefined"){if(b!==a)for(;(b=b.parentElement)&&b!==a;);c.a=b==null?[]:[b]}return c.length=c.a.length,c},add:function(a){if(typeof a!="undefined"){if(typeof a.nodeType!="undefined")this.a.indexOf(a)==-1&&this.a.push(a);else if(typeof a.a!="undefined"){let b=this;a.a.forEach(function(c){b.a.indexOf(c)==-1&&b.a.push(c)})}}return this},find:function(a){let b=this.copy(this,!0);return b.a=[],this.forEach(function(c){c!==null&&typeof c.querySelectorAll!="undefined"&&(b.a=b.a.concat(Array.prototype.slice.call(c.querySelectorAll(a))))}),b.length=b.a.length,b},forEach:function(a){return this.a.forEach(function(b,c,d){a.apply(b,[b,c,d])}),this},each:function(a){return this.forEach(a)},hasClass:function(a){let b=this.get(0);return b!=null?b.classList.contains(a):!1},addClass:function(a){let b=a;return typeof a=="string"&&(b=a.split(" ")),b=b.filter(function(c){return c.trim()!==""}),0<b.length&&this.forEach(function(c){c.classList.add.apply(c.classList,b)}),this},removeClass:function(a){if(typeof a!="undefined"){let b=a;typeof a=="string"&&(b=a.split(" ")),b=b.filter(function(c){return c.trim()!==""}),0<b.length&&this.forEach(function(c){c.classList.remove.apply(c.classList,b)})}else this.forEach(function(b){0<b.classList.length&&b.classList.remove.apply(b.classList,b.classList)});return this},is:function(a){let b=this.get(0);return b!=null?b.matches(a):!1},val:function(a){let b=this.get(0);if(b!=null)if(arguments.length==1)if(b.type=="select-multiple"){a=typeof a=="string"?a.split(","):a;for(let c=0,d=b.options.length,e;c<d;c++)e=b.options[c],e.selected=a.indexOf(e.value)!=-1}else b.value=a;else return b.type=="select-multiple"?Array.prototype.map.call(b.selectedOptions,function(c){return c.value}):b.value;return this},isVisible:function(){let a=this.get(0),b=!0,c;for(;a!==null;){if(c=window.getComputedStyle(a),c.display=="none"||c.visibility=="hidden"||c.opacity==0){b=!1;break}a=a.parentElement}return b},attr:function(a,b){let c,d=arguments,e=this;return this.forEach(function(f){d.length==2?(f.setAttribute(a,b),c=e):typeof a=="object"?Object.keys(a).forEac
1h(function(g){f.setAttribute(g,a[g])}):c=f.getAttribute(a)}),c},removeAttr:function(a){return this.forEach(function(b){b.removeAttribute(a)}),this},prop:function(a,b){let c,d=arguments;return this.forEach(function(e){d.length==2?e[a]=b:c=typeof e[a]!="undefined"?e[a]:null}),d.length==2?this:c},data:function(a,b){let c=this.get(0),d=a.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return c!=null?arguments.length==2?(c.dataset[d]=b,this):typeof c.dataset[d]=="undefined"?"":c.dataset[d]:""},html:function(a){let b=this.get(0);return b!=null?arguments.length==1?(b.innerHTML=a,this):b.innerHTML:""},text:function(a){let b=this.get(0);return b!=null?arguments.length==1?(b.textContent=a,this):b.textContent:""},css:function(a,b){let c=this.get(),d;for(let e=0;e<c.length;e++)if(d=c[e],arguments.length==1)if(typeof a=="object")Object.keys(a).forEach(function(f){d.style[f]=a[f]});else return window.getComputedStyle(d)[a];else d.style[a]=b;return this},position:function(){let a=this.get(0);return a!=null?{top:a.offsetTop,left:a.offsetLeft}:{top:0,left:0}},offset:function(){let a=this.get(0);return a!=null?WPD.dom._fn.hasFixedParent(a)?a.getBoundingClientRect():WPD.dom._fn.absolutePosition(a):{top:0,left:0}},outerWidth:function(a){a=a||!1;let b=this.get(0);if(b!=null)return a?parseInt(b.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(b.offsetWidth)},outerHeight:function(a){return a?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height"))},innerWidth:function(){var a=this.get(0);return a!=null?(a=window.getComputedStyle(a),this.outerWidth()-parseFloat(a.borderLeftWidth)-parseFloat(a.borderRightWidth)):0},width:function(){return this.outerWidth()},height:function(){return this.outerHeight()},on:function(){let a=arguments,b=function(d,e){let f;if(e.type=="mouseenter"||e.type=="mouseleave"||e.type=="hover"){var g=document.elementFromPoint(e.clientX,e.clientY);if(!g.matches(d[1]))for(;(g=g.parentElement)&&!g.matches(d[1]););g!=null&&(f=WPD.dom(g))}else f=WPD.dom(e.target).closest(d[1]);if(f!=null&&0<f.closest(this).length){if(g=[],g.push(e),typeof d[4]!="undefined")for(e=4;e<d.length;e++)g.push(d[e]);d[2].apply(f.get(0),g)}},c=a[0].split(" ");for(let d=0;d<c.length;d++){let e=c[d];if(typeof a[1]=="string")this.forEach(function(f){if(!WPD.dom._fn.hasEventListener(f,e,a[2])){let g=b.bind(f,a);f.addEventListener(e,g,a[3]),f._wpd_el=typeof f._wpd_el=="undefined"?[]:f._wpd_el,f._wpd_el.push({type:e,selector:a[1],func:g,trigger:a[2],args:a[3]})}});else for(let f=0;f<c.length;f++){let g=c[f];this.forEach(function(h){WPD.dom._fn.hasEventListener(h,g,a[1])||(h.addEventListener(g,a[1],a[2]),h._wpd_el=typeof h._wpd_el=="undefined"?[]:h._wpd_el,h._wpd_el.push({type:g,func:a[1],trigger:a[1],args:a[2]}))})}}return this},off:function(a,b){return this.forEach(function(c){if(typeof c._wpd_el!="undefined"&&0<c._wpd_el.length)if(typeof a=="undefined"){let d;for(;d=c._wpd_el.pop();)c.removeEventListener(d.type,d.func,d.args);c._wpd_el=[]}else a.split(" ").forEach(function(d){if(typeof b=="undefined"){let e;for(;e=c._wpd_el.pop();)c.removeEventListener(d,e.func,e.args);c._wpd_el=[]}else{let e=[];c._wpd_el.forEach(function(f){f.type==d&&f.trigger==b?c.removeEventListener(d,f.func,f.args):e.push(f)}),c._wpd_el=e}})}),this},offForced:function(){let a=this;return this.forEach(function(b,c){let d=b.cloneNode(!0);b.parentNode.replaceChild(d,b),a.a[c]=d}),this},trigger:function(a,b,c,d){return c=c||!1,d=d||!1,this.forEach(function(e){var f=!1;if(d&&typeof jQuery!="undefined"&&typeof jQuery._data!="undefined"&&typeof jQuery._data(e,"events")!="undefined"&&typeof jQuery._data(e,"events")[a]!="undefined"&&(jQuery(e).trigger(a,b),f=!0),!f&&c&&(f=new Event(a),f.detail=b,e.dispatchEvent(f)),typeof e._wpd_el!="undefined")e._wpd_el.forEach(function(g){if(g.type==a){let h=new Event(a);g.trigger.apply(e,[h].concat(b))}});else{let g=!1,h=e;for(;h=h.parentElement,!(h==null||(typeof h._wpd_el!="undefined"&&h._wpd_el.forEach(function(l){if(typeof l.selector!="undefined"){var k=WPD.dom(h).find(l.selector);0<k.length&&0<=k.get().indexOf(e)&&l.type==a&&(k=new Event(a),l.trigger.apply(e,[k].concat(b)),g=!0)}}),g)););}}),this},clone:function(){let a=this.get(0);return a!=null?(this.a=[a.cloneNode(!0)],this.length=this.a.length):this.a=[],this.length=this.a.length,this},remove:function(a){return typeof a!="undefined"?a.parentElement.removeChild(a):(this.forEach(function(b){if(b.parentElement!=null)return b.parentElement.removeChild(b)}),this.a=[],this.length=this.a.length,null)},detach:function(){let a=this,b=[];
1return this.forEach(function(c){c=a.remove(c),c!=null&&b.push(c)}),this.a=b,this.length=this.a.length,this},prepend:function(a){return typeof a=="string"&&(a=WPD.dom._fn.createElementsFromHTML(a)),a=Array.isArray(a)?a:[a],this.forEach(function(b){a.forEach(function(c){typeof c.is_wpd_dom!="undefined"?c.forEach(function(d){b.insertBefore(d,b.children[0])}):b.insertBefore(c,b.children[0])})}),this},append:function(a){return typeof a=="string"&&(a=WPD.dom._fn.createElementsFromHTML(a)),a=Array.isArray(a)?a:[a],this.forEach(function(b){a.forEach(function(c){c!=null&&(typeof c.is_wpd_dom!="undefined"?c.forEach(function(d){b.appendChild(d)}):b.appendChild(c.cloneNode(!0)))})}),this},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return(a=="x"?b:b&3|8).toString(16)})}},WPD.dom._fn={bodyTransform:function(){let a=0,b=0;if(typeof WebKitCSSMatrix!="undefined"){var c=window.getComputedStyle(document.body);typeof c.transform!="undefined"&&(c=new WebKitCSSMatrix(c.transform),c.m41!="undefined"&&(a=c.m41),c.m42!="undefined"&&(b=c.m42))}return{x:a,y:b}},bodyTransformY:function(){return this.bodyTransform().y},bodyTransformX:function(){return this.bodyTransform().x},hasFixedParent:function(a){if(WPD.dom._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(a).position=="fixed")return!0;while(a=a.parentElement);return!1},hasEventListener:function(a,b,c){if(typeof a._wpd_el=="undefined")return!1;for(let d=0;d<a._wpd_el.length;d++)if(a._wpd_el[d].trigger==c&&a._wpd_el[d].type==b)return!0;return!1},allDescendants:function(a){let b=[],c=this;return Array.isArray(a)||(a=[a]),a.forEach(function(d){for(let e=0;e<d.childNodes.length;e++){let f=d.childNodes[e];b.push(f),b=b.concat(c.allDescendants(f))}}),b},createElementsFromHTML:function(a){let b=document.createElement("template");return b.innerHTML=a.replace(/(\r\n|\n|\r)/gm,""),Array.prototype.slice.call(b.content.childNodes)},absolutePosition:function(a){if(!a.getClientRects().length)return{top:0,left:0};let b=a.getBoundingClientRect();return a=a.ownerDocument.defaultView,{top:b.top+a.pageYOffset,left:b.left+a.pageXOffset}},plugin:function(a,b){WPD.dom.fn[a]=function(c){return typeof c!="undefined"&&b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):this.each(function(d){d["wpd_dom_"+a]=Object.create(b).init(c,d)})}}},WPD.dom.version=1),1<=arguments.length?WPD.dom.fn.$.apply(WPD.dom.fn,arguments):WPD.dom.fn},WPD.dom(),document.dispatchEvent(new Event("wpd-dom-core-loaded"))})(),(function(){if(typeof WPD.dom.fn.animate!="undefined")return!1;WPD.dom.fn._animate={easing:{linear:function(a){return a},easeInOutQuad:function(a){return .5>a?2*a*a:1-Math.pow(-2*a+2,2)/2},easeOutQuad:function(a){return 1-(1-a)*(1-a)}}},WPD.dom.fn.animate=function(a,b,c){let d=this;return b=b||200,c=c||"linear",this.forEach(function(e){let f,g=0,h,l={},k={},m,p,q;m=d.prop("_wpd_dom_animations"),m=m==null?[]:m,a===!1?m.forEach(function(n){clearInterval(n)}):(q=typeof d._animate.easing[c]!="undefined"?d._animate.easing[c]:d._animate.easing.easeInOutQuad,Object.keys(a).forEach(function(n){-1<n.indexOf("scroll")?l[n]=e[n]:l[n]=parseInt(window.getComputedStyle(e)[n]),k[n]=a[n]-l[n]}),f=b/1e3*60,p=setInterval(function(){g++,g>f?clearInterval(p):(h=q(g/f),Object.keys(k).forEach(function(n){-1<n.indexOf("scroll")?e[n]=l[n]+k[n]*h:e.style[n]=l[n]+k[n]*h+"px"}))},1e3/60),m.push(p),d.prop("_wpd_dom_animations",m))}),this},document.dispatchEvent(new Event("wpd-dom-animate-loaded"))})(),(function(){let a=WPD.dom;if(typeof WPD.dom.fn.unhighlight!="undefined")return!1;WPD.dom.fn.unhighlight=function(b){let c={className:"highlight",element:"span"};return a.fn.extend(c,b),this.find(c.element+"."+c.className).each(function(){let d=this.parentNode;d.replaceChild(this.firstChild,this),d.normalize()})},WPD.dom.fn.highlight=function(b,c){function d(g,h,l,k,m){if(m=m==""?".exhghttt":m,g.nodeType===3){if(h=g.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(h))return l=document.createElement(l||"span"),l.className=k||"highlight",k=/\.|,|\s/.test(h[0].charAt(0))?h.index+1:h.index,g=g.splitText(k),g.splitText(h[1].length),k=g.cloneNode(!0),l.appendChild(k),g.parentNode.replaceChild(l,g),1}else if(g.nodeType===1&&g.childNodes&&!/(script|style)/i.test(g.tagName)&&0<!a(g).closest(m).length&&(g.tagName!==l.toUpperCase()||g.className!==k))for(let p=0;p<g.childNodes.length;p++)p+=d(g.childNodes[p],h,l,k,m);return 0}let e={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};if(a.fn.extend(e,c),b.constructor===String&&(b=[b]),b=b.filter(function(g){return g!=""}),b.forEach(function(g,h,l){l[h]=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),b.length==0)return this;c=e.caseSensitive?"":"i",b="("+b.join("|")+")",e.wordsOnly&&(b="(?:,|^|\\s)"+b+"(?:,|$|\\s)");let f=new RegExp(b,c);return this.each(function(g){d(g,f,e.element,e.className,e.excludeParents)})}})(),(function(){if(typeof WPD.dom.fn.serialize!="undefined")return!1;WPD.dom.fn.serialize=function(){let a=this.get(0);if(a&&a.nodeName==="FORM"){var b,c,d=[];for(b=a.elements.length-1;0<=b;--b)if(a.elements[b].name!=="")switch(a.elements[b].nodeName){case"INPUT":switch(a.elements[b].type){case"text":case"hidden":case"password":case"button":case"reset":case"submit":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case"checkbox":case"radio":a.elements[b].checked&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value))}break;case"TEXTAREA":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case"SELECT":switch(a.elements[b].type){case"select-one":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case"select-multiple":for(c=a.elements[b].options.length-1;0<=c;--c)a.elements[b].options[c].selected&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].options[c].value))}break;case"BUTTON":switch(a.elements[b].type){case"reset":case"submit":case"button":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value))}}return d.join("&")}},WPD.dom.fn.serializeForAjax=function(a,b){let c=[],d;for(d in a)if(a.hasOwnProperty(d)){let e=b?b+"["+d+"]":d,f=a[d];c.push(f!==null&&typeof f=="object"?WPD.dom.fn.serializeForAjax(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return c.join("&")},document.dispatchEvent(new Event("wpd-dom-serialize-loaded"))})(),(function(){if(typeof WPD.dom.fn.inViewPort!="undefined")return!1;WPD.dom.fn.inViewPort=function(a,b){var c=this.get(0);let d;if(c==null)return!1;a=typeof a=="undefined"?0:a,b=typeof b=="undefined"?window:typeof b=="string"?document.querySelector(b):b;var e=c.getBoundingClientRect();c=e.top;let f=e.bottom,g=e.left,h=e.right;return b==null&&(b=window),b===window?(e=window.innerWidth||0,d=window.innerHeight||0):(e=b.clientWidth,d=b.clientHeight,b=b.getBoundingClientRect(),c-=b.top,f-=b.top,g-=b.left,h-=b.left),a=~~Math.round(parseFloat(a)),0>=h||g>=e?!1:0<a?c>=a&&f<d-a:(0<f&&c<=d-a)|(0>=c&&f>a)},document.dispatchEvent(new Event("wpd-dom-viewport-loaded"))})(),(function(){if(typeof WPD.dom.fn.ajax!="undefined")return!1;
1WPD.dom.fn.ajax=function(a){if(a=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},a),a.cors!="cors"){var b="ajax_cb_"+this.uuidv4().replaceAll("-","");WPD.dom.fn[b]=function(){a.success.apply(this,arguments),delete WPD.dom.fn[a.data.fn]},a.data.callback="WPD.dom.fn."+b,a.data.fn=b,b=document.createElement("script"),b.type="text/javascript",b.src=a.url+"?"+this.serializeForAjax(a.data),b.onload=function(){this.remove()},document.body.appendChild(b)}else return b=new XMLHttpRequest,b.onreadystatechange=function(){a.success!=null&&this.readyState==4&&this.status==200&&a.success(this.responseText),a.fail!=null&&this.readyState==4&&400<=this.status&&a.fail(this)},b.open(a.method.toUpperCase(),a.url,!0),b.setRequestHeader("Content-type",a.contentType),b.setRequestHeader("Accept",a.accept),b.send(this.serializeForAjax(a.data)),b},document.dispatchEvent(new Event("wpd-dom-xhttp-loaded"))})(),window.WPD=window.WPD||{},window.WPD.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){let b="",c,d,e,f,g,h=0;for(a=this._utf8_encode(a);h<a.length;){var l=a.charCodeAt(h++);c=a.charCodeAt(h++),d=a.charCodeAt(h++),e=l>>2,l=(l&3)<<4|c>>4,f=(c&15)<<2|d>>6,g=d&63,isNaN(c)?f=g=64:isNaN(d)&&(g=64),b=b+this._keyStr.charAt(e)+this._keyStr.charAt(l)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return b},decode:function(a){let b="",c,d,e,f=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");f<a.length;){var g=this._keyStr.indexOf(a.charAt(f++)),h=this._keyStr.indexOf(a.charAt(f++));d=this._keyStr.indexOf(a.charAt(f++)),e=this._keyStr.indexOf(a.charAt(f++)),g=g<<2|h>>4,h=(h&15)<<4|d>>2,c=(d&3)<<6|e,b+=String.fromCharCode(g),d!=64&&(b+=String.fromCharCode(h)),e!=64&&(b+=String.fromCharCode(c))}return b=this._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/\r\n/g,`
2`);let b="";for(let c=0;c<a.length;c++){let d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){let b="",c=0,d,e,f;for(;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCo
2deAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}},(function(){window.WPD=window.WPD||{},WPD.Hooks=WPD.Hooks||{};let a=WPD.Hooks;a.filters=a.filters||{},a.addFilter=function(b,c,d,e){a.filters[b]=a.filters[b]||[],a.filters[b].push({priority:typeof d=="undefined"?10:d,scope:typeof e=="undefined"?null:e,callback:c})},a.removeFilter=function(b,c){typeof a.filters[b]!="undefined"&&(typeof c=="undefined"?a.filters[b]=[]:a.filters[b].forEach(function(d,e){d.callback===c&&a.filters[b].splice(e,1)}))},a.applyFilters=function(b){let c=[],d=Array.prototype.slice.call(arguments),e=arguments[1];return typeof a.filters[b]!="undefined"&&0<a.filters[b].length&&(a.filters[b].forEach(function(f){c[f.priority]=c[f.priority]||[],c[f.priority].push({scope:f.scope,callback:f.callback})}),d.splice(0,2),c.forEach(function(f){f.forEach(function(g){e=g.callback.apply(g.scope,[e].concat(d))})})),e}})(),window.WPD=window.WPD||{},window.WPD.intervalUntilExecute=function(a,b,c,d){let e,f=0,g=typeof b=="function"?b():b;if(c=typeof c=="undefined"?100:c,d=typeof d=="undefined"?50:d,g===!1)e=setInterval(function(){if(g=typeof b=="function"?b():b,f++,f>d)return clearInterval(e),!1;if(g!==!1)return clearInterval(e),a(g)},c);else return a(g)},(function(a,b){function c(k,m,p){for(;k&&k!==b.documentElement;){var q=k.getAttribute(m);if(q)return q;k=k.parentNode}return p}typeof a.CustomEvent!="function"&&(a.CustomEvent=function(k,m){m=m||{bubbles:!1,cancelable:!1,detail:void 0};var p=b.createEvent("CustomEvent");return p.initCustomEvent(k,m.bubbles,m.cancelable,m.detail),p},a.CustomEvent.prototype=a.Event.prototype),b.addEventListener("touchstart",function(k){k.target.getAttribute("data-swipe-ignore")!=="true"&&(l=k.target,h=Date.now(),d=k.touches[0].clientX,e=k.touches[0].clientY,g=f=0)},!1),b.addEventListener("touchmove",function(k){if(d&&e){var m=k.touches[0].clientY;f=d-k.touches[0].clientX,g=e-m}},!1),b.addEventListener("touchend",function(k){if(l===k.target){var m=parseInt(c(l,"data-swipe-threshold","20"),10),p=parseInt(c(l,"data-swipe-timeout","500"),10),q=Date.now()-h,n="";k=k.changedTouches||k.touches||[],Math.abs(f)>Math.abs(g)?Math.abs(f)>m&&q<p&&(n=0<f?"swiped-left":"swiped-right"):Math.abs(g)>m&&q<p&&(n=0<g?"swiped-up":"swiped-down"),n!==""&&(m={dir:n.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(n,{bubbles:!0,cancelable:!0,detail:m}))),h=e=d=null}},!1);var d=null,e=null,f=null,g=null,h=null,l=null})(window,document),(function(){window.WPD=typeof window.WPD!="undefined"?window.WPD:{},window.WPD.ajaxsearchpro=new function(){this.firstIteration=!0,this.helpers={},this.plugin={},this.addons={addons:[],add:function(c){this.addons.indexOf(c)==-1&&(c=this.addons.push(c),this.addons[c-1].init())},remove:function(c){this.addons.filter(function(d){return d.name==c?(typeof d.destroy!="undefined"&&d.destroy(),!1):!0})}}}})(),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{addAnimation:function(){let d=this,a=0,b=1,g=!0;if(0<d.call_num||d._no_animations)return d.n("results").find(".item, .asp_group_header").removeClass("opacityZero").removeClass("asp_an_"+d.animOptions.items),!1;d.n("results").find(".item, .asp_group_header").each(function(){let f=this;if(b===1&&(g=c(f).inViewPort(0)),1<b&&g&&!c(f).inViewPort(0)||80<b)return c(f).removeClass("opacityZero"),!0;d.o.resultstype=="isotopic"&&b>d.il.itemsPerPage?c(f).removeClass("opacityZero"):(setTimeout(function(){c(f).addClass("asp_an_"+d.animOptions.items),c(f).removeClass("opacityZero")},a+25),a+=45,b++)})},removeAnimation:function(){let d=this;this.n("items").each(function(){c(this).removeClass("asp_an_"+d.animOptions.items)})}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{setFilterStateInput:function(a){let b=this;typeof a=="undefined"&&(a=65);let g=function(){JSON.stringify(b.originalFormData)!=JSON.stringify(d.formData(c("form",b.n("searchsettings"))))?b.n("searchsettings").find("input[name=filters_initial]").val(0):b.n("searchsettings").find("input[name=filters_initial]").val(1)};a==0?g():setTimeout(function(){g()},a)},resetSearchFilters:function(){d.formData(c("form",this.n("searchsettings")),this.originalFormData),this.resetNoUISliderFilters(),typeof this.select2jQuery!="undefined"&&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(),this.setFilterStateInput(0)},resetNoUISliderFilters:function(){0<this.noUiSliders.length&&this.noUiSliders.forEac
2h(function(a){if(typeof a.noUiSlider!="undefined"){let b=[];c(a).parent().find(".asp_slider_hidden").forEach(function(g){b.push(c(g).val())}),0<b.length&&a.noUiSlider.set(b)}})}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{showMoreResLoader:function(){this.n("resultsDiv").addClass("asp_more_res_loading")},showLoader:function(d){if(d=typeof d!="undefined"?d:!1,this.o.loaderLocation!="none"){if(this.n("search").hasClass("hiddend")||this.o.loaderLocation=="results"||this.n("proloading").css({display:"block"}),d!==!1)return!1;(!this.n("search").hasClass("hiddend")||this.o.loaderLocation=="search")&&(this.n("search").hasClass("hiddend")||this.o.loaderLocation!="both"&&this.o.loaderLocation!="results")||this.usingLiveLoader()||(0<this.n("resultsDiv").find(".asp_results_top").length&&this.n("resultsDiv").find(".asp_results_top").css("display","none"),this.showResultsBox(),c(".asp_res_loader",this.n("resultsDiv")).removeClass("hiddend"),this.n("results").css("display","none"),this.n("showmoreContainer").css("display","none"),typeof this.hidePagination!="undefined"&&this.hidePagination())}},hideLoader:function(){this.n("proloading").css({display:"none"}),c(".asp_res_loader",this.n("resultsDiv")).addClass("hiddend"),this.n("results").css("display",""),this.n("resultsDiv").removeClass("asp_more_res_loading")}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{loadASPFonts:function(){ASP.font_url!==!1&&(this.fontsLoaded=!0,new FontFace("asppsicons2","url("+ASP.font_url+")",{style:"normal",weight:"normal","font-display":"swap"}).load().then(function(d){document.fonts.add(d)}).catch(function(d){}),ASP.font_url=!1)},updateHref:function(d){d=d||window.location.hash,this.o.trigger.update_href&&!this.usingLiveLoader()&&(window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),d=this.getStateURL()+(this.resultsOpened?"&asp_s=":"&asp_ls=")+this.n("text").val()+d,history.replaceState("","",d.replace(location.origin,"")))},stat_addKeyword:function(d,a){c.fn.ajax({url:ASP.ajaxurl,method:"POST",data:{action:"ajaxsearchpro_addkeyword",id:d,keyword:a},success:function(b){}})},fixClonedSelf:function(){let d=this.o.iid,a=this.o.rid;for(;!ASP.instances.set(this)&&(++this.o.iid,!(50<this.o.iid)););d!=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).data("instance",this.o.iid),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_"+a).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_"+a,"asp_init_id_"+this.o.rid),this.n("prosettings").data("opened",0))},destroy:function(){let d=this;if(Object.keys(d.nodes).forEach(function(l){let k,r;(r=(k=d.nodes[l]).off)==null||r.call(k)}),typeof d.n("searchsettings").get(0).referenced!="undefined"?(--d.n("searchsettings").get(0).referenced,0>d.n("searchsettings").get(0).referenced&&d.n("searchsettings").remove()):d.n("searchsettings").remove(),typeof d.n("resultsDiv").get(0).referenced!="undefined"){if(--d.n("resultsDiv").get(0).referenced,0>d.n("resultsDiv").get(0).referenced){let l,k;(k=(l=d.n("resultsDiv")).remove)==null||k.call(l)}}else{let l,k;(k=(l=d.n("resultsDiv")).remove)==null||k.call(l)}let a,b;(b=(a=d.n("trythis")).remove)==null||b.call(a);let g,f;(f=(g=d.n("search")).remove)==null||f.call(g);let h,e;(e=(h=d.n("container")).remove)==null||e.call(h),d.documentEventHandlers.forEac
2h(function(l){c(l.node).off(l.event,l.handler)})}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{isRedirectToFirstResult:function(){return(0<c(".asp_res_url",this.n("resultsDiv")).length||0<c(".asp_es_"+this.o.id+" a").length||this.o.resPage.useAjax&&0<c(this.o.resPage.selector+"a").length)&&(this.o.redirectOnClick==1&&this.ktype=="click"&&this.o.trigger.click=="first_result"||this.o.redirectOnEnter==1&&(this.ktype=="input"||this.ktype=="keyup")&&this.keycode==13&&this.o.trigger.return=="first_result"||this.ktype=="button"&&this.o.sb.redirect_action=="first_result")},doRedirectToFirstResult:function(){let a,b;return a=this.ktype=="click"?this.o.trigger.click_location:this.ktype=="button"?this.o.sb.redirect_location:this.o.trigger.return_location,0<c(".asp_res_url",this.n("resultsDiv")).length?b=c(c(".asp_res_url",this.n("resultsDiv")).get(0)).attr("href"):0<c(".asp_es_"+this.o.id+" a").length?b=c(c(".asp_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&0<c(this.o.resPage.selector+"a").length&&(b=c(c(this.o.resPage.selector+"a").get(0)).attr("href")),b!=""&&(a=="same"?location.href=b:d.openInNewTab(b),this.hideLoader(),this.hideResults()),!1},doRedirectToResults:function(a){var b;if(typeof this.reportSettingsValidity!="undefined"&&!this.reportSettingsValidity())return(b=this.showNextInvalidFacetMessage)==null||b.call(this),!1;if(b=a=="click"?this.o.trigger.click_location:a=="button"?this.o.sb.redirect_location:this.o.trigger.return_location,a=this.getRedirectURL(a),this.o.overridewpdefault){if(this.o.resPage.useAjax==1){if(this.hideResults(),this.liveLoad(this.o.resPage.selector,a),this.showLoader(),this.att("blocking")==0){let g;(g=this.hideSettings)==null||g.call(this)}return!1}this.o.override_method=="post"?d.submitToUrl(a,"post",{asp_active:1,p_asid:this.o.id,p_asp_data:c("form",this.n("searchsettings")).serialize()},b):b=="same"?location.href=a:d.openInNewTab(a)}else d.submitToUrl(a,"post",{np_asid:this.o.id,np_asp_data:c("form",this.n("searchsettings")).serialize()},b);if(this.n("proloading").css("display","none"),this.hideLoader(),this.att("blocking")==0){let g;(g=this.hideSettings)==null||g.call(this)}this.hideResults(),this.searchAbort()},getRedirectURL:function(a){a=typeof a!="undefined"?a:"enter";var b=a=="click"?this.o.trigger.click:a=="button"?this.o.sb.redirect_action:this.o.trigger.return;if(b=="results_page"?a="?s="+d.nicePhrase(this.n("text").val()):b=="woo_results_page"?a="?post_type=product&s="+d.nicePhrase(this.n("text").val()):(a=a=="button"?b=="elementor_page"?this.o.sb.elementor_url:this.o.sb.redirect_url:b=="elementor_page"?this.o.trigger.elementor_url:this.o.trigger.redirect_url,a=d.decodeHTMLEntities(a),a=this.parseCustomRedirectURL(a,this.n("text").val())),1<this.o.homeurl.indexOf("?")&&a.indexOf("?")===0&&(a=a.replace("?","&")),this.o.overridewpdefault&&this.o.override_method!="post"){let g="&";this.o.homeurl.indexOf("?")!==-1&&b!="elementor_page"||a.indexOf("?")!==-1||(g="?"),a=a+g+"asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+c("form",this.n("searchsettings")).serialize(),b=b=="elementor_page"?a:this.o.homeurl+a}else b=b=="elementor_page"?a:this.o.homeurl+a;return b=b.replace("https://","https:///"),b=b.replace("http://","http:///"),b=b.replace(/\/\//g,"/"),b=d.Hooks.applyFilters("asp_redirect_url",b,this.o.id,this.o.iid),b=d.wp_hooks_apply_filters("asp_redirect_url",b,this.o.id,this.o.iid)},parseCustomRedirectURL:function(a,b){let g=this,f=d.decodeHTMLEntities(a).replace(/{phrase}/g,d.nicePhrase(b));return a=f.match(/{(.*?)}/g),a!==null&&a.forEach(function(h){h=h.replace(/[{}]/g,"");var e=c('input[type=radio][name*="aspf['+h+'_"]:checked',g.n("searchsettings"));if(e.length==0&&(e=c('input[type=text][name*="aspf['+h+'_"]',g.n("searchsettings"))),e.length==0&&(e=c('input[type=hidden][name*="aspf['+h+'_"]',g.n("searchsettings"))),e.length==0&&(e=c('select[name*="aspf['+h+'_"]:not([multiple])',g.n("searchsettings"))),e.length==0&&(e=c('input[type=radio][name*="termset['+h+'"]:checked',g.n("searchsettings"))),e.length==0&&(e=c('input[type=text][name*="termset['+h+'"]',g.n("searchsettings"))),e.length==0&&(e=c('input[type=hidden][name*="termset['+h+'"]',g.n("searchsettings"))),e.length==0&&(e=c('select[name*="termset['+h+'"]:not([multiple])',g.n("searchsettings"))),e.length==0)return!0;e=e.val(),f=f.replace("{"+h+"}",""+e)}),f}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{showResults:function(){let a=this;switch(d.Hooks.applyFilters("asp/results/show/start",a),a.initResults(),a.o.resultstype=="horizontal"?a.createHorizontalScroll():a.o.resultstype=="vertical"&&a.createVerticalScroll(),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()}
2if(a.showAnimatedImages(),a.hideLoader(),a.n("proclose").css({display:"block"}),d.isMobile()&&a.o.mobile.hide_keyboard&&!a.resultsOpened&&document.activeElement.blur(),a.o.settingsHideOnRes&&a.att("blocking")==0){let b;(b=a.hideSettings)==null||b.call(a)}typeof WPD.lazy!="undefined"&&setTimeout(function(){WPD.lazy(".asp_lazy")},100),a.eh.resulsDivHoverMouseEnter=a.eh.resulsDivHoverMouseEnter||function(){c(".item",a.n("resultsDiv")).removeClass("hovered"),c(this).addClass("hovered")},a.eh.resulsDivHoverMouseLeave=a.eh.resulsDivHoverMouseLeave||function(){c(".item",a.n("resultsDiv")).removeClass("hovered")},a.n("resultsDiv").find(".item").on("mouseenter",a.eh.resulsDivHoverMouseEnter),a.n("resultsDiv").find(".item").on("mouseleave",a.eh.resulsDivHoverMouseLeave),a.fixSettingsAccessibility(),a.resultsOpened=!0,d.Hooks.addFilter("asp/results/show/end",a)},hideResults:function(a){let b=this;if(a=typeof a=="undefined"?!0:a,b.initResults(),!b.resultsOpened)return!1;b.n("resultsDiv").removeClass(b.resAnim.showClass).addClass(b.resAnim.hideClass),setTimeout(function(){b.n("resultsDiv").css(b.resAnim.hideCSS)},b.resAnim.duration),b.n("proclose").css({display:"none"}),d.isMobile()&&a&&document.activeElement.blur(),b.resultsOpened=!1,typeof b.ptstack!="undefined"&&delete b.ptstack;let g;(g=b.hideArrowBox)==null||g.call(b),b.n("s").trigger("asp_results_hide",[b.o.id,b.o.iid],!0,!0)},updateResults:function(a){if(a.replace(/^\s*[\r\n]/gm,"")===""||c(a).hasClass("asp_nores")||0<c(a).find(".asp_nores").length)this.n("showmoreContainer").css("display","none"),c("span",this.n("showmore")).html("");else if(this.o.resultstype=="isotopic"&&0<this.call_num&&this.isotopic!=null&&typeof this.isotopic.appended!="undefined"&&0<this.n("items").length){a=c(a);let b=this.n("items").last(),g=parseInt(this.n("items").last().attr("data-itemnum"));a.get().forEach(function(f){c(f).attr("data-itemnum",++g).css({width:b.css("width"),height:b.css("height")})}),this.n("resdrg").append(a),this.isotopic.appended(a.get()),this.nodes.items=0<c(".item",this.n("resultsDiv")).length?c(".item",this.n("resultsDiv")):c(".photostack-flip",this.n("resultsDiv"))}else 0<this.call_num&&this.o.resultstype=="vertical"?this.n("resdrg").html(this.n("resdrg").html()+'<div class="asp_v_spacer"></div>'+a):this.n("resdrg").html(this.n("resdrg").html()+a)},showResultsBox:function(){this.initResults(),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)},addHighlightString:function(a){let b=this,g=b.n("text").val().replace(/["']/g,"");a=typeof a=="undefined"?b.n("items").find("a.asp_res_url"):a,b.o.singleHighlight==1&&g!=""&&0<a.length&&a.forEach(function(){try{const f=new URL(c(this).attr("href"));f.searchParams.set("asp_highlight",g),f.searchParams.set("p_asid",b.o.id),c(this).attr("href",f.href)}catch(f){}})},scrollToResults:function(){var a=Math.floor(.1*window.innerHeight);if(!(!this.resultsOpened||0<this.call_num||this.o.scrollToResults.enabled!=1||0<this.n("search").closest(".asp_preview_data").length||this.o.compact.enabled==1||this.n("resultsDiv").inViewPort(a))){a=this.o.resultsposition=="hover"?this.n("probox").offset().top-20:this.n("resultsDiv").offset().top-20,a+=this.o.scrollToResults.offset;var b=c("#wpadminbar");0<b.length&&(a-=b.height()),window.scrollTo({top:0>a?0:a,behavior:"smooth"})}},scrollToResult:function(a){a=c(a),a.length&&!a.inViewPort(40)&&a.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},showAnimatedImages:function(){this.n("items").each(function(){let a=c(this).find(".asp_image[data-src]"),b=a.data("src");if(typeof b!="undefined"&&b!=null&&b!==""&&-1<b.indexOf(".gif")&&a.find("canvas").length==0){a.prepend(c('<div class="asp_item_canvas"><canvas></canvas></div>').get(0));let g=c(this).find("canvas").get(0),f=c(this).find(".asp_item_canvas"),h=g.getContext("2d"),e=new Image;e.crossOrigin="anonymous",e.onload=function(){c(g).attr({width:e.width,height:e.height}),h.drawImage(e,0,0,e.width,e.height),f.css({"background-image":"url("+g.toDataURL()+")"})},e.src=b}})},updateNoResultsHeader:function(){let a=this,b=a.n("resdrg").find(".asp_nores"),g;0<b.length&&(b=b.detach()),g=a.n("resultsDiv").find(".asp_nores"),0<g.length&&g.remove(),0<b.length&&(a.n("resultsDiv").prepend(b),a.n("resultsDiv").find(".asp_keyword").on("click",function(){a.n("text").val(d.decodeHTMLEntities(c(this).text())),a.n("textAutocomplete").val(""),a.o.redirectOnClick!=0&&a.o.redirectOnEnter!=0&&a.o.trigger.type!=1||a.search()}))},updateInfoHeader:function(a){let b,g=this.n("resultsDiv").find(".asp_results_top"),f=this.n("text").val().trim();0<g.length&&(0>=this.n("items").length||0<this.n("resultsDiv").find(".asp_nores").length?g.css("display","none"):(typeof this.resInfoBoxTxt=="undefined"&&(this.resInfoBoxTxt=0<this.n("resultsDiv").find(".asp_results_top .asp_rt_phrase").length?this.n("resultsDiv").find(".asp_results_top .asp_rt_phrase").html():"",this.resInfoBoxTxtNoPhrase=0<this.n("resultsDiv").find(".asp_results_top .asp_rt_nophrase").length?this.n("resultsDiv").find(".asp_results_top .asp_rt_nophrase").html():""),f!==""&&this.resInfoBoxTxt!==""?b=this.resInfoBoxTxt:f===""&&this.resInfoBoxTxtNoPhrase!==""&&(b=this.resInfoBoxTxtNoPhrase),b!==""?(b=b.replaceAll("{phrase}",d.escapeHtml(this.n("text").val())),b=b.replaceAll("{results_count}",this.n("items").length),b=b.replaceAll("{results_count_total}",a),g.html(b),g.css("display","block")):g.css("display","none")))}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{createResultsScroll:function(a){let b=this,g,f=b.n("results");a=typeof a=="undefined"?"vertical":a,f.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger")),b.o.show_more.infinite&&(clearTimeout(g),g=setTimeout(function(){b.checkAndTriggerInfiniteScroll(a)},60))})},createVerticalScroll:function(){this.createResultsScroll("vertical")},createHorizontalScroll:function(){this.createResultsScroll("horizontal")},checkAndTriggerInfiniteScroll:function(a){var b=c(".item",this.n("resultsDiv"));if(a=typeof a=="undefined"?"window":a,this.n("showmore").length==0||this.n("showmoreContainer").css("display")=="none")return!1;if(a=="window"||a=="horizontal"){if(this.o.resultstype=="isotopic"&&c("nav.asp_navigation",this.n("resultsDiv")).css("display")!="none")return!1;a=b.last().inViewPort(0,this.n("resultsDiv").get(0));let g=b.last().inViewPort(0);!this.searching&&0<b.length&&a&&g&&this.n("showmore").find("a.asp_showmore").trigger("click")}else a=="vertical"?(b=this.n("results"),d.isScrolledToBottom(b.get(0),20)&&this.n("showmore").find("a.asp_showmore").trigger("click")):a=="isotopic"&&!this.searching&&0<b.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),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{isDuplicateSearchTriggered:function(){for(let a=0;25>a;a++)if(this.o.id+"_"+a!=this.o.rid&&ASP.instances.get(this.o.id,a)!==!1)return ASP.instances.get(this.o.id,a).searching;return!1},searchAbort:function(){this.post!=null&&(this.post.abort(),this.isAutoP=!1)},searchWithCheck:function(a){let b=this;typeof a=="undefined"&&(a=50),b.n("text").val().length<b.o.charcount||(b.searchAbort(),clearTimeout(b.timeouts.searchWithCheck),b.timeouts.searchWithCheck=setTimeout(function(){b.search()},a))},search:function(a,b,g,f,h){let e=this,l=!1;
2if(e.isDuplicateSearchTriggered())return!1;g=typeof g=="undefined"?!1:g,f=typeof f=="undefined"?!1:f,h=typeof h=="undefined"?!1:h;let k={action:"ajaxsearchpro_search",aspp:e.n("text").val(),asid:e.o.id,asp_inst_id:e.o.rid,options:c("form",e.n("searchsettings")).serialize()};k=d.Hooks.applyFilters("asp_search_data",k,e.o.id,e.o.iid),k=d.wp_hooks_apply_filters("asp_search_data",k,e.o.id,e.o.iid);let r;if((r=e.hideArrowBox)==null||r.call(e),typeof e.reportSettingsValidity!="undefined"&&!e.isAutoP&&!e.reportSettingsValidity()){if(!h){let p;(p=e.showNextInvalidFacetMessage)==null||p.call(e);let q;(q=e.scrollToNextInvalidFacetMessage)==null||q.call(e)}l=!0}if(e.isAutoP&&(k.autop=1),!g&&!f&&JSON.stringify(k)===JSON.stringify(e.lastSearchData)){if(e.resultsOpened||e.usingLiveLoader()||e.showResults(),e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;l=!0}if(l)return e.hideLoader(),e.searchAbort(),!1;if(e.n("s").trigger("asp_search_start",[e.o.id,e.o.iid,e.n("text").val()],!0,!0),e.searching=!0,e.n("proclose").css({display:"none"}),e.showLoader(g),e.att("blocking")==0&&e.o.trigger.facet==0){let p;(p=e.hideSettings)==null||p.call(e)}g?(e.call_num++,k.asp_call_num=e.call_num,e.autopStartedTheSearch&&(k.options+="&"+c.fn.serializeForAjax(e.autopData),--k.asp_call_num)):(e.call_num=0,e.autopStartedTheSearch=!!k.autop),f=c('form[name="asp_data"]'),0<f.length&&(k.asp_preview_options=f.serialize()),typeof a!="undefined"&&a!==!1&&(k.options+="&force_count="+parseInt(a)),typeof b!="undefined"&&b!==!1&&(k.options+="&force_order="+parseInt(b));let u;(u=e.gaEvent)==null||u.call(e,"search_start"),0<c(".asp_es_"+e.o.id).length?e.liveLoad(".asp_es_"+e.o.id,e.getCurrentLiveURL(),e.o.trigger.update_href):e.o.resPage.useAjax?e.liveLoad(e.o.resPage.selector,e.getRedirectURL()):e.o.wooShop.useAjax?e.liveLoad(e.o.wooShop.selector,e.getLiveURLbyBaseLocation(e.o.wooShop.url)):e.o.taxArchive.useAjax?e.liveLoad(e.o.taxArchive.selector,e.getLiveURLbyBaseLocation(e.o.taxArchive.url)):e.o.cptArchive.useAjax?e.liveLoad(e.o.cptArchive.selector,e.getLiveURLbyBaseLocation(e.o.cptArchive.url)):e.post=c.fn.ajax({url:ASP.ajaxurl,method:"POST",data:k,success:function(p){e.searching=!1,p=p.replace(/^\s*[\r\n]/gm,"");let q=p.match(/___ASPSTART_HTML___(.*[\s\S]*)___ASPEND_HTML___/),n=p.match(/___ASPSTART_DATA___(.*[\s\S]*)___ASPEND_DATA___/);if(q==null||typeof q!="object"||typeof q[1]=="undefined")return e.hideLoader(),alert(`Ajax Search Pro Error:\r
3\r
4Please look up "The response data is missing" from the documentation at\r
5\r
6 documentation.ajaxsearchpro.com`),!1;if(q=q[1],q=d.Hooks.applyFilters("asp_search_html",q,e.o.id,e.o.iid),q=d.wp_hooks_apply_filters("asp_search_html",q,e.o.id,e.o.iid),n=JSON.parse(n[1]),e.n("s").trigger("asp_search_end",[e.o.id,e.o.iid,e.n("text").val(),n],!0,!0),e.autopStartedTheSearch)if(typeof k.autop!="undefined"){if(e.autopData.not_in={},e.autopData.not_in_count=0,typeof n.results!="undefined"){let m=[];typeof n.results.groups!="undefined"?Object.keys(n.results.groups).forEach(function(t){typeof n.results.groups[t].items!="undefined"&&(t=n.results.groups[t].items,Array.isArray(t)&&t.forEach(function(w){m.push(w)}))}):m=Array.isArray(n.results)?n.results:m,m.forEach(function(t){typeof e.autopData.not_in[t.content_type]=="undefined"&&(e.autopData.not_in[t.content_type]=[]),e.autopData.not_in[t.content_type].push(t.id),++e.autopData.not_in_count})}}else n.full_results_count+=e.autopData.not_in_count;g?(e.updateResults(q),e.results_num+=n.results_count):(e.initResults(),e.n("resdrg").html(""),e.n("resdrg").html(q),e.results_num=n.results_count,e.o.statistics&&e.stat_addKeyword(e.o.id,e.n("text").val())),e.updateNoResultsHeader(),e.nodes.items=0<c(".item",e.n("resultsDiv")).length?c(".item",e.n("resultsDiv")):c(".photostack-flip",e.n("resultsDiv")),e.addHighlightString();let v;if((v=e.gaEvent)==null||v.call(e,"search_end",{results_count:e.n("items").length}),e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;
6e.hideLoader(),e.showResults(),window.location.hash!=""&&-1<window.location.hash.indexOf("#asp-res-")&&0<c(window.location.hash).length?e.scrollToResult(window.location.hash):e.scrollToResults(),e.lastSuccesfulSearch=c("form",e.n("searchsettings")).serialize()+e.n("text").val().trim(),e.lastSearchData=k,e.updateInfoHeader(n.full_results_count),e.updateHref(),0<e.n("showmore").length&&(0<c("span",e.n("showmore")).length&&0<n.results_count&&0<n.full_results_count-e.results_num?(e.n("showmore").data("text")==""&&e.n("showmore").data("text",e.n("showmore").html()),e.n("showmore").html(e.n("showmore").data("text").replaceAll("{phrase}",d.escapeHtml(e.n("text").val()))),e.n("showmoreContainer").css("display","block"),e.n("showmore").css("display","block"),c("span",e.n("showmore")).html("("+(n.full_results_count-e.results_num)+")"),p=c("a",e.n("showmore")),p.attr("href",""),p.off(),p.on(e.clickTouchend,function(m){if(m.preventDefault(),m.stopImmediatePropagation(),e.o.show_more.action=="ajax"){if(e.searching)return!1;e.showMoreResLoader(),e.search(!1,!1,!0)}else c(this).off(),e.o.show_more.action=="results_page"?m="?s="+d.nicePhrase(e.n("text").val()):e.o.show_more.action=="woo_results_page"?m="?post_type=product&s="+d.nicePhrase(e.n("text").val()):(m=e.o.show_more.action=="elementor_page"?e.parseCustomRedirectURL(e.o.show_more.elementor_url,e.n("text").val()):e.parseCustomRedirectURL(e.o.show_more.url,e.n("text").val()),m=c("<textarea />").html(m).text()),e.o.show_more.action!="elementor_page"&&1<e.o.homeurl.indexOf("?")&&m.indexOf("?")==0&&(m=m.replace("?","&")),m=e.o.show_more.action=="elementor_page"?m:e.o.homeurl+m,e.o.overridewpdefault?e.o.override_method=="post"?d.submitToUrl(m,"post",{asp_active:1,p_asid:e.o.id,p_asp_data:c("form",e.n("searchsettings")).serialize()},e.o.show_more.location):(m=m+"&asp_active=1&p_asid="+e.o.id+"&p_asp_data=1&"+c("form",e.n("searchsettings")).serialize(),e.o.show_more.location=="same"?location.href=m:d.openInNewTab(m)):d.submitToUrl(m,"post",{np_asid:e.o.id,np_asp_data:c("form",e.n("searchsettings")).serialize()},e.o.show_more.location)})):(e.n("showmoreContainer").css("display","none"),c("span",e.n("showmore")).html(""))),e.isAutoP=!1},fail:function(p){p.aborted||(e.n("resdrg").html(""),e.n("resdrg").html('<div class="asp_nores">The request failed. Please check your connection! Status: '+p.status+"</div>"),e.nodes.item=0<c(".item",e.n("resultsDiv")).length?c(".item",e.n("resultsDiv")):c(".photostack-flip",e.n("resultsDiv")),e.results_num=0,e.searching=!1,e.hideLoader(),e.showResults(),e.scrollToResults(),e.isAutoP=!1)}})}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{searchFor:function(a){typeof a!="undefined"&&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("?")&&a.indexOf("?")==0&&(a=a.replace("?","&")),this.o.overridewpdefault?this.o.override_method=="post"?d.submitToUrl(this.o.homeurl+a,"post",{asp_active:1,p_asid:this.o.id,p_asp_data:c("form",this.n("searchsettings")).serialize()}):location.href=this.o.homeurl+a+"&asp_active=1&p_asid="+this.o.id+"&p_asp_data=1&"+c("form",this.n("searchsettings")).serialize():d.submitToUrl(this.o.homeurl+a,"post",{np_asid:this.o.id,np_asp_data:c("form",this.n("searchsettings")).serialize()})},toggleSettings:function(a){if(typeof a!="undefined")if(a=="show"){let b;(b=this.showSettings)==null||b.call(this)}else{let b;(b=this.hideSettings)==null||b.call(this)}else if(this.n("prosettings").data("opened")==1){let b;(b=this.hideSettings)==null||b.call(this)}else{let b;(b=this.showSettings)==null||b.call(this)}},closeResults:function(a){typeof a!="undefined"&&a&&(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,b;return 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,b=1<a.indexOf("?")?"&":"?",a+b+"p_asid="+this.o.id+"&p_asp_data=1&"+c("form",this.n("searchsettings")).serialize()},resetSearch:function(){this.resetSearchFilters()},filtersInitial:function(){return this.n("searchsettings").find("input[name=filters_initial]").val()==1},filtersChanged:function(){return this.n("searchsettings").find("input[name=filters_changed]").val()==1}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.helpers,{Hooks:window.WPD.Hooks,deviceType:function(){let d=window.innerWidth;return 640>=d?"phone":1024>=d?"tablet":"desktop"},detectIOS:function(){return typeof window.navigator!="undefined"&&typeof window.navigator.userAgent!="undefined"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1},detectIE:function(){var d=window.navigator.userAgent;let a=d.indexOf("MSIE ");return d=d.indexOf("Trident/"),0<a||0<d},isMobile:function(){try{return document.createEvent("TouchEvent"),!0}catch(d){return!1}},isTouchDevice:function(){return"ontouchstart"in window},isSafari:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},escapeHtml:function(d){return d.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")},whichjQuery:function(d){let a=!1;return typeof window.$!="undefined"&&(typeof d=="undefined"||typeof window.$.fn[d]!="undefined")&&(a=window.$),a===!1&&typeof window.jQuery!="undefined"&&(a=window.jQuery,(typeof d=="undefined"||typeof window.jQuery.fn[d]!="undefined")&&(a=window.jQuery)),a},formData:function(d,a){let b=this,g=d.find("input,textarea,select,button").get();return arguments.length===1?(a={},g.forEach(function(f){f.name&&!f.disabled&&(f.checked||/select|textarea/i.test(f.nodeName)||/text/i.test(f.type)||c(f).hasClass("hasDatepicker")||c(f).hasClass("asp_slider_hidden"))&&(a[f.name]==null&&(a[f.name]=[]),c(f).hasClass("hasDatepicker")?a[f.name].push(c(f).parent().find(".asp_datepicker_hidden").val()):a[f.name].push(c(f).val()))}),JSON.stringify(a)):(typeof a!="object"&&(a=JSON.parse(a)),g.forEach(function(f){if(f.
6name)if(a[f.name]){let h=a[f.name],e=c(f);if(Object.prototype.toString.call(h)!=="[object Array]"&&(h=[h]),f.type=="checkbox"||f.type=="radio"){let l=e.val(),k=!1;for(let r=0;r<h.length;r++)if(h[r]==l){k=!0;break}e.prop("checked",k)}else e.val(h[0]),c(f).hasClass("asp_gochosen")||c(f).hasClass("asp_goselect2")?WPD.intervalUntilExecute(function(l){l(f).trigger("change.asp_select2")},function(){return b.whichjQuery("asp_select2")},50,3):c(f).hasClass("hasDatepicker")&&WPD.intervalUntilExecute(function(l){let k=h[0],r=l(e.get(0)).datepicker("option","dateFormat");l(e.get(0)).datepicker("option","dateFormat","yy-mm-dd"),l(e.get(0)).datepicker("setDate",k),l(e.get(0)).datepicker("option","dateFormat",r),l(e.get(0)).trigger("selectnochange")},function(){return b.whichjQuery("datepicker")},50,3)}else f.type!="checkbox"&&f.type!="radio"||c(f).prop("checked",!1)}),d)},submitToUrl:function(d,a,b,g){let f;f=c('<form style="display: none;" />'),f.attr("action",d),f.attr("method",a),c("body").append(f),typeof b!="undefined"&&b!==null&&Object.keys(b).forEach(function(h){let e=b[h],l=c('<input type="hidden" />');l.attr("name",h),l.attr("value",e),f.append(l)}),typeof g!="undefined"&&g=="new"&&f.attr("target","_blank"),f.get(0).submit()},openInNewTab:function(d){Object.assign(document.createElement("a"),{target:"_blank",href:d}).click()},isScrolledToBottom:function(d,a){return d.scrollHeight-d.scrollTop-c(d).outerHeight()<a},getWidthFromCSSValue:function(d,a){return d+="",d=-1<d.indexOf("px")?parseInt(d,10):-1<d.indexOf("%")&&typeof a!="undefined"&&a!=null?Math.floor(parseInt(d,10)/100*a):parseInt(d,10),100>d?100:d},nicePhrase:function(d){return encodeURIComponent(d).replace(/%20/g,"+")},unqoutePhrase:function(d){return d.replace(/["']/g,"")},inputToFloat(d){return d.replace(/^[.]/g,"").replace(/[^0-9.-]/g,"").replace(/^[-]/g,"x").replace(/[-]/g,"").replace(/[x]/g,"-").replace(/(\..*?)\..*/g,"$1")},addThousandSeparators(d,a){return a!=""?(a=a||",",String(d).replace(/(?:^|[^.\d])\d+/g,function(b){return b.replace(/\B(?=(?:\d{3})+\b)/g,a)})):d},decodeHTMLEntities:function(d){let a=document.createElement("div");return d&&typeof d=="string"&&(d=d.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),d=d.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=d,d=a.textContent,a.textContent=""),d},isScrolledToRight:function(d){return d.scrollWidth-c(d).outerWidth()===d.scrollLeft},isScrolledToLeft:function(d){return d.scrollLeft===0},wp_hooks_apply_filters:function(){return typeof wp!="undefined"&&typeof wp.hooks!="undefined"&&typeof wp.hooks.applyFilters!="undefined"?wp.hooks.applyFilters.apply(null,arguments):typeof arguments[1]!="undefined"?arguments[1]:!1}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{detectAndFixFixedPositioning:function(){let a=!1,b=this.n("search").get(0);for(;b;)if(b=b.parentElement,b!=null&&window.getComputedStyle(b).position=="fixed"){a=!0;break}a||this.n("search").css("position")=="fixed"?(this.n("resultsDiv").css("position")=="absolute"&&this.n("resultsDiv").css({position:"fixed","z-index":2147483647}),this.att("blocking")||this.n("searchsettings").css({position:"fixed","z-index":2147483647})):(this.n("resultsDiv").css("position")=="fixed"&&this.n("resultsDiv").css("position","absolute"),this.att("blocking")||this.n("searchsettings").css("position","absolute"))},fixSettingsAccessibility: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=typeof a=="undefined"?!1:a;var b=c("body");let g=0;var f=this.n("resultsDiv").css("position");if((c._fn.bodyTransformY()!=0||b.css("position")!="static")&&(g=b.offset().top),c._fn.bodyTransformY()!=0&&f=="fixed"&&(f="absolute",this.n("resultsDiv").css("position","absolute")),f=="fixed"&&(g=0),(f=="fixed"||f=="absolute")&&(a==1||this.n("resultsDiv").css("visibility")=="visible")&&(a=this.n("search").offset(),f=0,(c._fn.bodyTransformX()!=0||b.css("position")!="static")&&(f=b.offset().left),typeof a!="undefined")){let h=0;b=d.deviceType()=="phone"?this.o.results.width_phone:d.deviceType()=="tablet"?this.o.results.width_tablet:this.o.results.width,b=="auto"&&(b=240>this.n("search").outerWidth()?240:this.n("search").outerWidth()),this.n("resultsDiv").css("width",isNaN(b)?b:b+"px"),this.o.resultsSnapTo=="right"?h=this.n("resultsDiv").outerWidth()-this.n("search").outerWidth():this.o.resultsSnapTo=="center"&&(h=Math.floor((this.n("resultsDiv").outerWidth()-parseInt(this.n("search").outerWidth()))/2)),this.n("resultsDiv").css({top:a.top+this.n("search").outerHeight(!0)-g+"px",left:a.left-h-f+"px"})}},fixSettingsPosition:function(a){a=typeof a=="undefined"?!1:a;var b=c("body"),g=0,f=this.n("searchsettings").css("position");(c._fn.bodyTransformY()!=0||b.css("position")!="static")&&(g=b.offset().top),c._fn.bodyTransformY()!=0&&f=="fixed"&&(f="absolute",this.n("searchsettings").css("position","absolute")),f=="fixed"&&(g=0),(a==1||this.n("prosettings").data("opened")!=0)&&this.att("blocking")!=1&&(a=0,(c._fn.bodyTransformX()!=0||b.css("position")!="static")&&(a=b.offset().left),this.fixSettingsWidth(),b=this.n("prosettings").css("display")!="none"?this.n("prosettings"):this.n("promagnifier"),f=b.offset(),g=f.top+b.height()-2-g+"px",b=this.o.settingsimagepos=="left"?f.left:f.left+b.width()-this.n("searchsettings").width(),b=b-a+"px",this.n("searchsettings").css({display:"block",top:g,left:b}))},fixSettingsWidth:function(){if(!this.att("blocking")&&this.o.fss_layout!="masonry"&&(this.n("searchsettings").css({width:"100%"}),10<this.n("searchsettings").width()%c("fieldset",this.n("searchsettings")).outerWidth(!0))){let a=Math.floor(this.n("searchsettings").width()/c("fieldset",this.n("searchsettings")).outerWidth(!0));a=0>=a?1:a,this.n("searchsettings").css({width:a*c("fieldset",this.n("searchsettings")).outerWidth(!0)+8+"px"})}},hideOnInvisibleBox:function(){if(this.o.detectVisibility==1&&this.o.compact.enabled==0&&!this.n("search").hasClass("hiddend")&&!this.n("search").isVisible()){let a;(a=this.hideSettings)==null||a.call(this),this.hideResults()}}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initMagnifierEvents:function(){let a=this;a.n("promagnifier").on("click",function(b){let g=a.n("search").attr("data-asp-compact")||"closed";if(a.keycode=b.keyCode||b.which,a.ktype=b.type,a.o.compact.enabled==1&&(g=="closed"||a.o.compact.closeOnMagnifier==1&&g=="open"))return!1;let f;if((f=a.gaEvent)==null||f.call(a,"magnifier"),a.n("text").val().length>=a.o.charcount&&a.o.redirectOnClick==1&&a.o.trigger.click!="first_result")return a.doRedirectToResults("click"),clearTimeout(void 0),!1;if(a.o.trigger.click!="ajax_search"&&a.o.trigger.click!="first_result")return!1;a.searchAbort(),clearTimeout(a.timeouts.search),a.n("proloading").css("display","none"),a.n("text").val().length>=a.o.charcount&&(a.timeouts.search=setTimeout(function(){c("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=this;a.n("searchsettings").find("button.asp_s_btn").on("click",function(b){if(a.ktype="button",b.preventDefault(),a.n("text").val().length>=a.o.charcount){if(a.o.sb.redirect_action!="ajax_search")if(a.o.sb.redirect_action!="first_result")a.doRedirectToResults("button");else{if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.search()}else c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search();clearTimeout(a.timeouts.search)}}),a.n("searchsettings").find("button.asp_r_btn").on("click",function(b){let g=d.formData(c("form",a.n("searchsettings"))),f=a.n("text").val();b.preventDefault(),a.resetSearchFilters(),a.o.rb.action!="live"||JSON.stringify(g)==JSON.stringify(d.formData(c("form",a.n("searchsettings"))))&&f==""?a.o.rb.action=="close"&&a.hideResults():a.search(!1,!1,!1,!0,!0)})}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initInputEvents:function(){let a=this,b=!1,g=function(){if(a.n("text").off("mousedown touchstart keydown",g),!b){a._initFocusInput(),a.o.trigger.type&&a._initSearchInput(),a._initEnterEvent(),a._initFormEvent();let f;(f=a.initAutocompleteEvent)==null||f.call(a),b=!0}};a.n("text").on("mousedown touchstart keydown",g,{passive:!0})},_initFocusInput:function(){let a=this;a.n("text").on("click",function(b){b.stopPropagation(),b.stopImmediatePropagation(),c(this).trigger("focus");let g;if((g=a.gaEvent)==null||g.call(a,"focus"),c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()==a.lastSuccesfulSearch)return a.resultsOpened||a.usingLiveLoader()||
6(a._no_animations=!0,a.showResults(),a._no_animations=!1),!1}),a.n("text").on("focus input",function(){a.searching||(c(this).val()!=""?a.n("proclose").css("display","block"):a.n("proclose").css({display:"none"}))})},_initSearchInput:function(){let a=this,b=a.n("text").val();a.n("text").on("input",function(g){if(a.keycode=g.keyCode||g.which,a.ktype=g.type,d.detectIE()){if(b==a.n("text").val())return!1;b=a.n("text").val()}if(a.updateHref(),!a.o.trigger.type)return a.searchAbort(),clearTimeout(a.timeouts.search),a.hideLoader(),!1;let f;if((f=a.hideArrowBox)==null||f.call(a),a.n("text").val().length<a.o.charcount){if(a.n("proloading").css("display","none"),a.att("blocking")==0){let h;(h=a.hideSettings)==null||h.call(a)}return 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(){c("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=this,b,g=!1;a.n("text").on("keyup",function(f){if(a.keycode=f.keyCode||f.which,a.ktype=f.type,a.keycode==13){if(clearTimeout(b),b=setTimeout(function(){g=!1},300),g)return!1;g=!0}if(f=c(this).hasClass("orig"),a.n("text").val().length>=a.o.charcount&&f&&a.keycode==13){let h;(h=a.gaEvent)==null||h.call(a,"return"),a.o.redirectOnEnter==1?a.o.trigger.return!="first_result"?a.doRedirectToResults(a.ktype):a.search():a.o.trigger.return=="ajax_search"&&(c("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search()),clearTimeout(a.timeouts.search)}})},_initFormEvent:function(){let a=this;c(a.n("text").closest("form").get(0)).on("submit",function(b,g){b.preventDefault(),d.isMobile()?a.o.redirectOnEnter?(b=new Event("keyup"),b.keyCode=b.which=13,this.n("text").get(0).dispatchEvent(b)):(a.search(),document.activeElement.blur()):typeof g!="undefined"&&g=="ajax"&&a.search()})}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initNavigationEvents:function(){let d=this,a=function(b){let g=b.keyCode||b.which;if(0<c(".item",d.n("resultsDiv")).length&&d.n("resultsDiv").css("display")!="none"&&d.o.resultstype=="vertical"){if(g==40||g==38){var f=d.n("resultsDiv").find(".item.hovered");d.n("text").trigger("blur"),f.length==0?d.n("resultsDiv").find(".item").first().addClass("hovered"):(g==40&&(f.next(".item").length==0?d.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):f.removeClass("hovered").next(".item").addClass("hovered")),g==38&&(f.prev(".item").length==0?d.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):f.removeClass("hovered").prev(".item").addClass("hovered"))),b.stopPropagation(),b.preventDefault(),d.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,d.n("resultsDiv").get(0))||(f=d.n("resultsDiv").find(".resdrg .item.hovered").get(0),f!=null&&typeof f.scrollIntoView!="undefined"&&f.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))}g==13&&0<c(".item.hovered",d.n("resultsDiv")).length&&(b.stopPropagation(),b.preventDefault(),c(".item.hovered a.asp_res_url",d.n("resultsDiv")).get(0).click())}};d.documentEventHandlers.push({node:document,event:"keydown",handler:a}),c(document).on("keydown",a)}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initOtherEvents:function(){let a=this;if(d.isMobile()&&d.detectIOS()&&a.n("text").on("touchstart",function(){a.savedScrollTop=window.scrollY,a.savedContainerTop=a.n("search").offset().top}),a.o.focusOnPageload&&c(window).on("load",function(){a.n("text").get(0).focus()},{options:{once:!0}}),a.n("proclose").on(a.clickTouchend,function(g){if(g.preventDefault(),g.stopImmediatePropagation(),a.n("text").val(""),a.n("textAutocomplete").val(""),a.hideResults(),a.n("text").trigger("focus"),a.n("proloading").css("display","none"),a.hideLoader(),a.searchAbort(),0<c(".asp_es_"+a.o.id).length)a.showLoader(),a.liveLoad(".asp_es_"+a.o.id,a.getCurrentLiveURL(),a.o.trigger.update_href);else{g=["resPage","wooShop","taxArchive","cptArchive"];for(let f=0;f<g.length;f++)if(a.o[g[f]].useAjax){a.showLoader(),a.liveLoad(a.o[g[f]].selector,a.getCurrentLiveURL());break}}a.n("text").get(0).focus()}),d.isMobile()){var b=function(){a.orientationChange(),setTimeout(function(){a.orientationChange()},600)};a.documentEventHandlers.push({node:window,event:"orientationchange",handler:b}),c(window).on("orientationchange",b)}else b=function(){a.resize()},a.documentEventHandlers.push({node:window,event:"resize",handler:b}),c(window).on("resize",b,{passive:!0});b=function(){a.scrolling(!1)},a.documentEventHandlers.push({node:window,event:"scroll",handler:b}),c(window).on("scroll",b,{passive:!0}),d.isMobile()&&a.o.mobile.menu_selector!=""&&c(a.o.mobile.menu_selector).on("touchend",function(){let g=this;setTimeout(function(){let f=c(g).find("input.orig");f=f.length==0?c(g).next().find("input.orig"):f,f=f.length==0?c(g).parent().find("input.orig"):f,f=f.length==0?a.n("text"):f,a.n("search").inViewPort()&&f.get(0).focus()},300)}),d.detectIOS()&&d.isMobile()&&d.isTouchDevice()&&16>parseInt(a.n("text").css("font-size"))&&(a.n("text").data("fontSize",a.n("text").css("font-size")).css("font-size","16px"),a.n("textAutocomplete").css("font-size","16px"),c("body").append("<style>#ajaxsearchpro"+a.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>"))},orientationChange:function(){this.detectAndFixFixedPositioning(),this.fixSettingsPosition(),this.fixResultsPosition(),this.fixTryThisPosition(),this.o.resultstype=="isotopic"&&this.n("resultsDiv").css("visibility")=="visible"&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},resize:function(){this.detectAndFixFixedPositioning(),this.fixSettingsPosition(),this.fixResultsPosition(),this.fixTryThisPosition();let a;(a=this.hideArrowBox)==null||a.call(this),this.o.resultstype=="isotopic"&&this.n("resultsDiv").css("visibility")=="visible"&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(a){this.detectAndFixFixedPositioning(),this.hideOnInvisibleBox(),this.fixSettingsPosition(a),this.fixResultsPosition(a)},initTryThisEvents:function(){let a=this;0<a.n("trythis").find("a").length&&(a.n("trythis").find("a").on("click touchend",function(b){b.preventDefault(),b.stopImmediatePropagation(),a.o.compact.enabled&&(a.n("search").attr("data-asp-compact")||"closed")=="closed"&&a.n("promagnifier").trigger("click"),document.activeElement.blur(),a.n("textAutocomplete").val(""),a.n("text").val(c(this).html());let g;(g=a.gaEvent)==null||g.call(a,"try_this"),a.o.trigger.type&&a.searchWithCheck(80)}),a.n("trythis").css({visibility:"visible"}))},initSelect2:function(){let a=this;window.WPD.intervalUntilExecute(function(b){typeof b.fn.asp_select2!="undefined"&&(a.select2jQuery=b,c("select.asp_gochosen, select.asp_goselect2",a.n("searchsettings")).each(function(){c(this).removeAttr("data-asp_select2-id"),c(this).find('option[value=""]').val("__any__"),a.select2jQuery(this).asp_select2({width:"100%",theme:"flat",allowClear:0<c(this).find('option[value=""]').length,language:{noResults:function(){return a.o.select2.nores}}}),a.select2jQuery(this).on("change",function(){c(this).trigger("change")})}))},function(){return d.whichjQuery("asp_select2")})}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initResultsEvents:function(){let d=this;d.n("resultsDiv").css({opacity:"0"});let a=function(b){let g=b.keyCode||b.which,f=b.type;if(c(b.target).closest(".asp_w").length==0){d.hideOnInvisibleBox();let h;if((h=d.hideArrowBox)==null||h.call(d),f!="click"||f!="touchend"||g!=3){if(d.o.compact.enabled)b=d.n("search").attr("data-asp-compact")||"closed",d.o.compact.closeOnDocument!=1||b!="open"||d.resultsOpened||(d.closeCompact(),d.searchAbort(),d.hideLoader());else if(d.resultsOpened==0||d.o.closeOnDocClick!=1)return;d.dragging||(d.hideLoader(),d.searchAbort(),d.hideResults())}}};d.documentEventHandlers.push({node:document,event:d.clickTouchend,handler:a}),c(document).on(d.clickTouchend,a),d.n("resultsDiv").on("click",".results .item",function(){c(this).attr("id")!=""&&d.updateHref("#"+c(this).attr("id"));let b;(b=d.gaEvent)==null||b.call(d,"result_click",{result_title:c(this).find("a.asp_res_url").text(),result_url:c(this).find("a.asp_res_url").attr("href")})}),d.o.resultstype=="isotopic"&&(d.n("resultsDiv").on("swiped-left",function(){d.visiblePagination()&&d.n("resultsDiv").find("a.asp_next").trigger("click")}),d.n("resultsDiv").on("swiped-right",function(){d.visiblePagination()&&d.n("resultsDiv").find("a.asp_prev").trigger("click")}))}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{monitorTouchMove:function(){let d=this;d.dragging=!1,c("body").on("touchmove",function(){d.dragging=!0}).on("touchstart",function(){d.dragging=!1})}})})(WPD.dom),(function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initAutop:function(){if(this.o.autop.state=="disabled")return!1;var d=window.location.href;if(-1<d.indexOf("asp_ls=")||-1<d.indexOf("asp_ls&"))return!1;d=this.o.show_more.enabled&&this.o.show_more.action=="ajax"?!1:this.o.autop.count,this.isAutoP=!0,this.o.compact.enabled==1&&this.openCompact(),this.o.autop.state=="phrase"?(this.o.is_results_page||this.n("text").val(this.o.autop.phrase),this.search(d)):this.o.autop.state=="latest"?this.search(d,1):this.search(d,2)}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initEtc:function(){let a=this;a.il={columns:3,rows:a.o.isotopic.pagination?a.o.isotopic.rows:1e4,itemsPerPage:6,lastVisibleItem:-1},a.filterFns={number:function(b,g){(typeof g=="undefined"||typeof b=="object")&&(g=b),b=c(g).attr("data-itemnum");const f=a.currentPage,h=a.il.itemsPerPage;return b%(a.il.columns*a.il.rows)<a.il.columns*(a.il.rows-1)?c(g).addClass("asp_gutter_bottom"):c(g).removeClass("asp_gutter_bottom"),parseInt(b,10)<h*f&&parseInt(b,10)>=h*(f-1)}},d.Hooks.applyFilters("asp/init/etc",a)},initInfiniteScroll:function(){let a=this;if(a.o.show_more.infinite&&a.o.resultstype!="polaroid"){let b,g;g=function(){clearTimeout(b),b=setTimeout(function(){a.checkAndTriggerInfiniteScroll("window")},80)},a.documentEventHandlers.push({node:window,event:"scroll",handler:g}),c(window).on("scroll",g),a.n("results").on("scroll",g);let f;a.n("resultsDiv").on("nav_switch",function(){clearTimeout(f),f=setTimeout(function(){a.checkAndTriggerInfiniteScroll("isotopic")},800)})}},hooks:function(){let a=this;a.n("s").on("asp_elementor_results",function(b,g){a.o.id==g&&typeof jetpackLazyImagesModule=="function"&&setTimeout(function(){jetpackLazyImagesModule()},300)})}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro,a=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{init:function(b,g){if(this.autopStartedTheSearch=this.isAutoP=this.triggerPrevState=this.searching=!1,this.autopData={},this.fontsLoaded=this.resultsOpened=this.settingsChanged=this.resultsInitialized=this.settingsInitialized=!1,this.postAuto=this.post=null,this.savedContainerTop=this.savedScrollTop=0,this.disableMobileScroll=!1,this.clickTouchend="click touchend",this.mouseupTouchend="mouseup touchend",this.noUiSliders=[],this.timeouts={compactBeforeOpen:null,compactAfterOpen:null,
6search:null,searchWithCheck:null},this.eh={},this.documentEventHandlers=[],this.currentPage=1,this.currentPageURL=location.href,this.sIsotope=this.isotopic=null,this.lastSuccesfulSearch="",this.lastSearchData={},this._no_animations=!1,this.results_num=this.call_num=0,this.o=c.fn.extend({},b),this.dynamicAtts={},this.nodes={},this.nodes.search=c(g),a.isMobile()?this.animOptions=this.o.animations.mob:this.animOptions=this.o.animations.pc,this.initNodeVariables(),this.animationOpacity=0>this.animOptions.items.indexOf("In")?"opacityOne":"opacityZero",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=this.o.mobile.elementor_url),this.o.redirectOnClick=this.o.trigger.click!="ajax_search"&&this.o.trigger.click!="nothing",this.o.redirectOnEnter=this.o.trigger.return!="ajax_search"&&this.o.trigger.return!="nothing",this.usingLiveLoader()&&(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="ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=0,this.o.trigger.return="ajax_search")),this.o.compact.overlay==1&&c("#asp_absolute_overlay").length==0&&c("body").append("<div id='asp_absolute_overlay'></div>"),this.usingLiveLoader()){let f;(f=this.initLiveLoaderPopState)==null||f.call(this)}return typeof this.initCompact!="undefined"&&this.initCompact(),this.monitorTouchMove(),this.initEvents(),this.initAutop(),this.initEtc(),this.hooks(),d.firstIteration=!1,this.n("s").trigger("asp_init_search_bar",[this.o.id,this.o.iid],!0,!0),this},n:function(b){if(typeof this.nodes[b]=="undefined")switch(b){case"s":this.nodes[b]=this.nodes.search;break;case"container":this.nodes[b]=this.nodes.search.closest(".asp_w_container");break;case"searchsettings":this.nodes[b]=c(".asp_ss",this.n("container"));break;case"resultsDiv":this.nodes[b]=c(".asp_r",this.n("container"));break;case"probox":this.nodes[b]=c(".probox",this.nodes.search);break;case"proinput":this.nodes[b]=c(".proinput",this.nodes.search);break;case"text":this.nodes[b]=c(".proinput input.orig",this.nodes.search);break;case"textAutocomplete":this.nodes[b]=c(".proinput input.autocomplete",this.nodes.search);break;case"proloading":this.nodes[b]=c(".proloading",this.nodes.search);break;case"proclose":this.nodes[b]=c(".proclose",this.nodes.search);break;case"promagnifier":this.nodes[b]=c(".promagnifier",this.nodes.search);break;case"prosettings":this.nodes[b]=c(".prosettings",this.nodes.search);break;case"settingsAppend":this.nodes[b]=c("#wpdreams_asp_settings_"+this.o.id);break;case"resultsAppend":this.nodes[b]=c("#wpdreams_asp_results_"+this.o.id);break;case"trythis":this.nodes[b]=c("#asp-try-"+this.o.rid);break;case"hiddenContainer":this.nodes[b]=c(".asp_hidden_data",this.n("container"));break;case"aspItemOverlay":this.nodes[b]=c(".asp_item_overlay",this.n("hiddenContainer"));break;case"showmoreContainer":this.nodes[b]=c(".asp_showmore_container",this.n("resultsDiv"));break;case"showmore":this.nodes[b]=c(".showmore",this.n("resultsDiv"));break;case"items":this.nodes[b]=0<c(".item",this.n("resultsDiv")).length?c(".item",this.n("resultsDiv")):c(".photostack-flip",this.n("resultsDiv"));break;case"results":this.nodes[b]=c(".results",this.n("resultsDiv"));break;case"resdrg":this.nodes[b]=c(".resdrg",this.n("resultsDiv"))}return this.nodes[b]},att:function(b){return typeof this.dynamicAtts[b]=="undefined"&&b==="blocking"&&(this.dynamicAtts[b]=this.n("searchsettings").hasClass("asp_sb")),this.dynamicAtts[b]},initNodeVariables:function(){this.o.id=this.nodes.search.data("id"),this.o.iid=this.nodes.search.data("instance"),this.o.rid=this.o.id+"_"+this.o.iid,this.fixClonedSelf()},initEvents:function(){let b;(b=this.initSettingsSwitchEvents)==null||b.call(this),this.initOtherEvents(),this.initTryThisEvents(),this.initMagnifierEvents(),this.initInputEvents(),this.o.compact.enabled==1&&this.initCompactEvents()}})})(WPD.dom),(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initResults:function(){if(!this.resultsInitialized){if(this.initResultsBox(),this.initResultsEvents(),this.o.resultstype=="vertical"){let a;(a=this.initNavigationEvents)==null||a.call(this)}if(this.o.resultstype=="isotopic"){let a;(a=this.initIsotopicPagination)==null||a.call(this)}}},initResultsBox:function(){this.initResultsAnimations(),d.isMobile()&&this.o.mobile.force_res_hover==1?(this.o.resultsposition="hover",this.nodes.resultsDiv=this.n("resultsDiv").clone(),c("body").append(this.nodes.resultsDiv),this.n("resultsDiv").css({position:"absolute"})):this.o.resultsposition=="hover"&&0>=this.n("resultsAppend").length?(this.nodes.resultsDiv=this.n("resultsDiv").clone(),c("body").append(this.nodes.resultsDiv)):(this.o.resultsposition="block",this.n("resultsDiv").css({position:"static"}),0<this.n("resultsAppend").length&&(0<this.n("resultsAppend").find(".asp_r_"+this.o.id).length?(this.nodes.resultsDiv=this.n("resultsAppend").find(".asp_r_"+this.o.id),typeof this.nodes.resultsDiv.get(0).referenced!="undefined"?++this.nodes.resultsDiv.get(0).referenced:this.nodes.resultsDiv.get(0).referenced=1):(this.nodes.resultsDiv=this.nodes.resultsDiv.clone(),this.nodes.resultsAppend.append(this.nodes.resultsDiv)))),this.nodes.showmore=c(".showmore",this.nodes.resultsDiv),this.nodes.items=0<c(".item",this.n("resultsDiv")).length?c(".item",this.nodes.resultsDiv):c(".photostack-flip",this.nodes.resultsDiv),this.nodes.results=c(".results",this.nodes.resultsDiv),this.nodes.resdrg=c(".resdrg",this.nodes.resultsDiv),this.nodes.resultsDiv.get(0).id=this.nodes.resultsDiv.get(0).id.replace("__original__",""),this.detectAndFixFixedPositioning(),this.initInfiniteScroll(),this.resultsInitialized=!0},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"},this.animOptions.results.anim=="fade"&&(this.resAnim.showClass="asp_an_fadeIn",this.resAnim.hideClass="asp_an_fadeOut"),this.animOptions.results.anim!="fadedrop"||a!="fixed"&&a!="absolute"?this.animOptions.results.anim=="fadedrop"&&(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.resAnim.duration+"ms","animation-duration":this.resAnim.duration+"ms"})}})})(WPD.dom),(function(c){c(".ajaxsearchprotop").each(function(){let d=JSON.parse(c(this).data("aspdata")),a=d.id;d.action==0?c("a",c(this)).on("click",function(b){b.preventDefault()}):d.action==2?c("a",c(this)).on("click",function(b){b.preventDefault(),ASP.api(a,"searchFor",c(this).html()),c("html").animate({scrollTop:c("div[id*=ajaxsearchpro"+a+"_]").first().offset().top-40},500)}
6):d.action==1&&c("a",c(this)).on("click",function(b){if(ASP.api(a,"exists"))return b.preventDefault(),ASP.api(a,"searchRedirect",c(this).html())})})})(WPD.dom),window.ASP=typeof window.ASP!="undefined"?window.ASP:{},window.ASP.api=function(){let c=function(b,g,f,h){return b=ASP.instances.get(b,g),b!==!1&&b[f].apply(b,[h])},d=function(b,g,f){return!isNaN(parseFloat(g))&&isFinite(g)?(b=ASP.instances.get(b,g),b!==!1&&b[f].apply(b)):(b=ASP.instances.get(b),b!==!1&&b.forEach(function(h){h[g].apply(h,[f])}))},a=function(b,g){return g=="exists"?ASP.instances.exist(b):(b=ASP.instances.get(b),b!==!1&&b.forEach(function(f){f[g].apply(f)}))};if(arguments.length==4)return c.apply(this,arguments);if(arguments.length==3)return d.apply(this,arguments);if(arguments.length==2)return a.apply(this,arguments);arguments.length==0&&(console.log("Usage: ASP.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))},(function(a){a.fn.extend(window.WPD.ajaxsearchpro.plugin,{showVerticalResults:function(){if(this.showResultsBox(),0<this.n("items").length){let b=this.n("items").length<this.o.itemscount?this.n("items").length:this.o.itemscount;b=0>=b?9999:b;var e=a(".asp_group_header",this.n("resultsDiv"));if(this.o.itemscount==0||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 c=0,d=0,f=0,h=0;this.n("items").each(function(){d+=a(this).outerHeight(!0),a(this).outerHeight(!0)>h&&(h=a(this).outerHeight(!0)),c++}),f=h*b,f>d&&(f=d),c=1>c?1:c,d=d/c*b,0<e.length&&e.each(function(g,k){g=Array.prototype.slice.call(g.parentNode.children).indexOf(g),g-k-Math.floor(g/3)<b&&(f+=a(this).outerHeight(!0))}),this.n("results").css({height:f+"px"})}this.n("items").last().addClass("asp_last_item"),this.n("results").find(".asp_group_header").prev(".item").addClass("asp_last_item"),this.o.highlight==1&&a("div.item",this.n("resultsDiv")).highlight(this.n("text").val().split(" "),{element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords})}if(this.resize(),this.n("items").length==0&&this.n("results").css({height:"auto"}),1>this.call_num&&(this.n("results").get(0).scrollTop=0),this.o.preventBodyScroll){let b;e=a("body");let c=e.css("overflow"),d=typeof e.attr("style")=="undefined";this.n("results").off("touchstart"),this.n("results").off("touchend"),this.n("results").on("touchstart",function(){clearTimeout(b),a("body").css("overflow","hidden")}).on("touchend",function(){clearTimeout(b),b=setTimeout(function(){d?a("body").removeAttr("style"):a("body").css("overflow",c)},300)})}this.addAnimation(),this.fixResultsPosition(!0),this.searching=!1}})})(WPD.dom),(function(g){g.fn.extend(window.WPD.ajaxsearchpro.plugin,{gaEvent:function(a,c){let h=this.gaGetTrackingID();if(typeof ASP.analytics=="undefined"||ASP.analytics.method!="event")return!1;let d=typeof gtag=="function"?gtag:!1;if(d===!1&&typeof window.dataLayer=="undefined")return!1;if(typeof ASP.analytics.event[a]!="undefined"&&ASP.analytics.event[a].active==1){let l={search_id:this.o.id,search_name:this.n("search").data("name"),phrase:this.n("text").val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},b={event_category:ASP.analytics.event[a].category,event_label:ASP.analytics.event[a].label,value:ASP.analytics.event[a].value};c=g.fn.extend(l,c),Object.keys(c).forEach(function(e){let f=c[e];f=String(f).replace(/[\s\n\r]+/g," ").trim(),Object.keys(b).forEach(function(k){b[k]=b[k].replace(new RegExp("{"+e+"}","gmi"),f)})}),d!==!1?h!==!1?h.forEach(function(e){b.send_to=e,d("event",ASP.analytics.event[a].action,b)}):d("event",ASP.analytics.event[a].action,b):typeof window.dataLayer.push!="undefined"&&window.dataLayer.push({event:"asp_event",event_name:ASP.analytics.event[a].action,event_category:b.event_category,event_label:b.event_label,event_value:b.value})}},gaGetTrackingID:function(){if(typeof ASP.analytics=="undefined")return!1;if(typeof ASP.analytics.tracking_id!="undefined"&&ASP.analytics.tracking_id!="")return[ASP.analytics.tracking_id];if((typeof window.gtag=="function"?window.gtag:!1)===!1&&typeof window.ga!="undefined"&&typeof window.ga.getAll!="undefined"){let a=[];
6return window.ga.getAll().forEach(function(c){a.push(c.get("trackingId"))}),0<a.length?a:!1}return!1}})})(WPD.dom),(function(d){let h=window.WPD.ajaxsearchpro.helpers;d.fn.extend(window.WPD.ajaxsearchpro.plugin,{liveLoad:function(b,e,c,n,r){function q(l){let f=h.Hooks.applyFilters("asp/live_load/raw_data",l,a);var m=new DOMParser;let t=m.parseFromString(f,"text/html"),p=d(t);a.o.statistics&&a.stat_addKeyword(a.o.id,a.n("text").val()),f!=""&&0<p.length&&0<p.find(g).length&&(f=f.replace(/&asp_force_reset_pagination=1/gmi,""),f=f.replace(/%26asp_force_reset_pagination%3D1/gmi,""),f=f.replace(/&#038;asp_force_reset_pagination=1/gmi,""),h.isSafari()&&(f=f.replace(/srcset/gmi,"nosrcset")),f=h.Hooks.applyFilters("asp_live_load_html",f,a.o.id,a.o.iid),f=h.wp_hooks_apply_filters("asp_live_load_html",f,a.o.id,a.o.iid),p=d(m.parseFromString(f,"text/html")),m=p.find(g).get(0),m=h.Hooks.applyFilters("asp/live_load/replacement_node",m,a,k.get(0),f),m!=null&&k.get(0).parentNode.replaceChild(m,k.get(0)),k=d(g).first(),c&&(document.title=t.title,history.pushState({},null,e)),d(g).first().find(".woocommerce-ordering select.orderby").on("change",function(){0<d(this).closest("form").length&&d(this).closest("form").get(0).submit()}),a.addHighlightString(d(g).find("a")),h.Hooks.applyFilters("asp/live_load/finished",e,a,g,k.get(0)),ASP.initialize(),a.lastSuccesfulSearch=d("form",a.n("searchsettings")).serialize()+a.n("text").val().trim(),a.lastSearchData=f,a.setLiveLoadCache(l,b)),a.n("s").trigger("asp_search_end",[a.o.id,a.o.iid,a.n("text").val(),f],!0,!0);let u,v;(v=(u=a).gaEvent)==null||v.call(u,"search_end",{results_count:"unknown"}),a.hideLoader(),k.css("opacity",1),a.searching=!1,a.n("text").val()!=""&&a.n("proclose").css({display:"block"})}let g=b;if(g=="body"||g=="html")return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;let a=this;ASP.pageHTML!=""&&a.setLiveLoadCache(ASP.pageHTML,b),c=typeof c=="undefined"?!0:c,n=typeof n=="undefined"?!1:n;let w=".search-content #content #Content div[role=main] main[role=main] div.theme-content div.td-ss-main-content main.l-content #primary".split(" ");if(g!="#main"&&w.unshift("#main"),1>d(g).length&&(w.forEach(function(l,f){if(0<d(l).length)return g=l,!1}),1>d(g).length))return console.log("Ajax Search Pro: The live search selector does not exist on the page."),!1;g=h.Hooks.applyFilters("asp/live_load/selector",g,this);let k=d(g).first();a.searchAbort(),k.css("opacity",.4),e=h.Hooks.applyFilters("asp/live_load/url",e,a,g,k.get(0)),h.Hooks.applyFilters("asp/live_load/start",e,a,g,k.get(0)),n||a.n("searchsettings").find("input[name=filters_initial]").val()!=1||a.n("text").val()!=""?typeof r!="undefined"?q(r.html):(a.searching=!0,a.post=d.fn.ajax({url:e,method:"GET",success:function(l){q(l),a.isAutoP=!1},dataType:"html",fail:function(l){k.css("opacity",1),l.aborted||(k.html("This request has failed. Please check your connection."),a.hideLoader(),a.searching=!1,a.n("proclose").css({display:"block"}),a.isAutoP=!1)}})):window.WPD.intervalUntilExecute(function(){q(ASP.pageHTML)},function(){return ASP.pageHTML!=""})},usingLiveLoader:function(){return this._usingLiveLoader=typeof this._usingLiveLoader=="undefined"?0<d(".asp_es_"+this.o.id).length||this.o.resPage.useAjax&&0<d(this.o.resPage.selector).length||this.o.wooShop.useAjax&&0<d(this.o.wooShop.selector).length||this.o.cptArchive.useAjax&&0<d(this.o.cptArchive.selector).length||this.o.taxArchive.useAjax&&0<d(this.o.taxArchive.selector).length:this._usingLiveLoader},getLiveURLbyBaseLocation(b){let e="asp_ls="+h.nicePhrase(this.n("text").val()),c="&";return b.indexOf("?")===-1&&(c="?"),b=b+c+e+"&asp_active=1&asp_force_reset_pagination=1&p_asid="+this.o.id+"&p_asp_data=1&"+d("form",this.n("searchsettings")).serialize(),b=b.replace("?&","?"),b=b.replace("&&","&")},getCurrentLiveURL:function(){var b="asp_ls="+h.nicePhrase(this.n("text").val());let e="&",c=window.location.href;return c=-1<c.indexOf("asp_ls=")?c.slice(0,c.indexOf("asp_ls=")):c,c=-1<c.indexOf("asp_ls&")?c.slice(0,c.indexOf("asp_ls&")):c,c=-1<c.indexOf("p_asid=")?c.slice(0,c.indexOf("p_asid=")):c,c=-1<c.indexOf("asp_")?c.slice(0,c.indexOf("asp_")):c,c.indexOf("?")===-1&&(e="?"),b=c+e+b+"&asp_active=1&as
6p_force_reset_pagination=1&p_asid="+this.o.id+"&p_asp_data=1&"+d("form",this.n("searchsettings")).serialize(),b=b.replace("?&","?"),b=b.replace("&&","&")},initLiveLoaderPopState:function(){let b=this;b.liveLoadCache=[],window.addEventListener("popstate",e=>{e=b.getLiveLoadCache(),e!==!1&&(b.n("text").val(e.phrase),h.formData(d("form",b.n("searchsettings")),e.settings),b.resetNoUISliderFilters(),b.liveLoad(e.selector,document.location.href,!1,!1,e))}),ASP.pageHTML==""&&typeof ASP._ajax_page_html=="undefined"&&(ASP._ajax_page_html=!0,d.fn.ajax({url:b.currentPageURL,method:"GET",success:function(e){ASP.pageHTML=e},dataType:"html"}))},setLiveLoadCache:function(b,e){this.liveLoadCache.filter(c=>c.href==document.location.href).length==0&&this.liveLoadCache.push({href:b==ASP.pageHTML?this.currentPageURL:document.location.href,phrase:b==ASP.pageHTML?"":this.n("text").val(),selector:e,html:b,settings:b==ASP.pageHTML?this.originalFormData:h.formData(d("form",this.n("searchsettings")))})},getLiveLoadCache:function(){let b=this.liveLoadCache.filter(e=>e.href==document.location.href);return 0<b.length?b[0]:!1}})})(WPD.dom),WPD.dom._fn.plugin("ajaxsearchpro",window.WPD.ajaxsearchpro.plugin),window._ASP_load=function(){let e=WPD.dom;window.ASP.instances={instances:[],get:function(a,b){if(this.clean(),typeof a=="undefined"||a==0)return this.instances;if(typeof b=="undefined"){b=[];for(var c=0;c<this.instances.length;c++)this.instances[c].o.id==a&&b.push(this.instances[c]);return 0<b.length?b:!1}for(c=0;c<this.instances.length;c++)if(this.instances[c].o.id==a&&this.instances[c].o.iid==b)return this.instances[c];return!1},set:function(a){return this.exist(a.o.id,a.o.iid)?!1:(this.instances.push(a),!0)},exist:function(a,b){this.clean();for(let c=0;c<this.instances.length;c++)if(this.instances[c].o.id==a&&(typeof b=="undefined"||this.instances[c].o.iid==b))return!0;return!1},clean:function(){let a=[],b=this;this.instances.forEach(function(c,d){e(".asp_m_"+c.o.rid).length==0&&a.push(d)}),a.forEach(function(c){typeof b.instances[c]!="undefined"&&(b.instances[c].destroy(),b.instances.splice(c,1))})},destroy:function(a,b){let c=this.get(a,b);if(c!==!1)if(Array.isArray(c))c.forEach(function(d){d.destroy()}),this.instances=[];else{let d=0;this.instances.forEach(function(f,g){f.o.id==a&&f.o.iid==b&&(d=g)}),c.destroy(),this.instances.splice(d,1)}}},window.ASP.initialized=!1,window.ASP.initializeSearchByID=function(a){let b=ASP.getInstances();if(typeof a!="undefined"&&typeof a!="object")if(typeof b[a]!="undefined"){let c=[];c[a]=b[a],b=c}else return!1;b.forEach(function(c,d){e.fn._(".asp_m_"+d).forEach(function(f){return typeof f.hasAsp!="undefined"?!0:(f.hasAsp=!0,e(f).ajaxsearchpro(c))})})},window.ASP.getInstances=function(){window.ASP_INSTANCES=typeof window.ASP_INSTANCES!="undefined"?window.ASP_INSTANCES:[];let a=window.ASP_INSTANCES;return e.fn._(".asp_init_data").forEach(function(b){let c=b.dataset.aspId,d;if(typeof b.dataset.aspdata!="undefined"&&(d=WPD.Base64.decode(b.dataset.aspdata)),typeof d=="undefined"||d=="")return!0;a[c]=JSON.parse(d)}),a},window.ASP.initialize=function(a){if(typeof ASP.version=="undefined")return!1;if(window.IntersectionObserver)if(ASP.script_async_load||ASP.init_only_in_viewport){if(a=document.querySelectorAll(".asp_w_container, .asp_m"),a.length){let b=new IntersectionObserver(function(c){c.forEach(function(d){d.isIntersecting&&(ASP.initializeSearchByID(d.target.dataset.id),b.unobserve(d.target))})});a.forEach(function(c){b.observe(c)})}ASP.getInstances().forEach(function(b,c){b.compact.enabled==1&&b.compact.position=="fixed"&&ASP.initializeSearchByID(c)})}else ASP.initializeSearchByID(a);else ASP.initializeSearchByID(a);ASP.initializeMutateDetector(),ASP.initializeHighlight(),ASP.initializeOtherEvents(),ASP.initialized=!0},window.ASP.initializeHighlight=function(){if(this.highlight.enabled){let c=this.highlight.data;var a=c.selector!=""&&0<e(c.selector).length?c.selector:"article";a=0<e(a).length?a:"body";var b=new URLSearchParams(location.search);return b=b.get("s")||b.get("asp_highlight"),e(a).unhighlight({className:"asp_single_highlighted_"+c.id}),b!==null&&b.trim()!=""&&(e(a).highlight(b.trim().split(" "),{element:"span",className:"asp_single_highlighted_"+c.id,wordsOnly:c.whole,excludeParents:".asp_w, .asp-try"}),a=e(".asp_single_highlighted_"+c.id),c.scroll&&0<a.length&&(a=a.offset().top-120,b=e("#wpadminbar"),0<b.length&&(a-=b.height()),a+=c.scroll_offset,a=0>a?0:a,e("html").animate({scrollTop:a},500))),!1}},window.ASP.initializeOtherEvents=function(){let a,b=this;e("body").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]",function(){clearTimeout(a),a=setTimeout(function(){b.initializeSearchByID()},300)}),typeof jQuery!="undefined"&&jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){b.initializeSearchByID()},10)})},window.ASP.initializeMutateDetector=function(){let a;typeof ASP.detect_ajax!="undefined"&&ASP.detect_ajax==1&&new MutationObserver(function(){clearTimeout(a),a=setTimeout(function(){ASP.initializeSearchByID()},500)}).observe(document.querySelector("body"),{subtree:!0,childList:!0})},window.ASP.ready=function(){document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?this.initialize():e(document).on("DOMContentLoaded",this.initialize)},window.ASP.loadScriptStack=function(a){let b;0<a.length&&(b=document.createElement("script"),b.src=a.shift().src,b.onload=function(){0<a.length?window.ASP.loadScriptStack(a):window.ASP.ready()},document.body.appendChild(b))},window.ASP.init=function(){ASP.script_async_load?window.ASP.loadScriptStack(ASP.additional_scripts):typeof WPD.ajaxsearchpro!="undefined"&&window.ASP.ready()},window.WPD.intervalUntilExecute(window.ASP.init,function(){return typeof window.ASP.version!="undefined"&&e.fn.ajaxsearchpro!="undefined"})},(function(){navigator.userAgent.indexOf("Chrome-Lighthouse")===-1&&(typeof WPD!="undefined"&&typeof WPD.dom!="undefined"?window._ASP_load():document.addEventListener("wpd-dom-core-loaded",window._ASP_load))})(),(function(c){let k=window.WPD.ajaxsearchpro.helpers;window.WPD.ajaxsearchpro.addons.add(new function(){this.name="Elementor Widget Fixes",this.init=function(){k.Hooks.addFilter("asp/init/etc",this.fixElementorPostPagination,10,this),k.Hooks.addFilter("asp/live_load/selector",this.fixSelector,10,this),k.Hooks.addFilter("asp/live_load/url",this.url,10,this),k.Hooks.addFilter("asp/live_load/start",this.start,10,this),k.Hooks.addFilter("asp/live_load/replacement_node",this.fixElementorLoadMoreResults,10,this),k.Hooks.addFilter("asp/live_load/finished",this.finished,10,this)},this.fixSelector=function(a){return-1<a.indexOf("asp_es_")&&(a+=" .elementor-widget-container"),a},this.url=function(a,d,e,b){return 0<=a.indexOf("asp_force_reset_pagination=1")&&(a=a.replace(/\?product\-page=[0-9]+&/,"?")),a},this.start=function(a,d,e,b){c("form",d.n("searchsettings")).serialize()+d.n("text").val().trim()==d.lastSuccesfulSearch&&0<c(b).find(".e-load-more-spinner").length&&c(b).css("opacity",1)},this.finished=function(a,d,e,b){b=c(b),e.indexOf("asp_es_")!==!1&&typeof elementorFrontend!="undefined"&&typeof elementorFrontend.init!="undefined"&&b.find(".asp_elementor_nores").length==0&&(e=b.parent().data("widget_type"),e!=""&&typeof jQuery!="undefined"&&elementorFrontend.hooks.doAction("frontend/element_ready/"+e,jQuery(b.parent().get(0))),this.fixElementorPostPagination(d,a),d.o.scrollToResults.enabled&&this.scrollToResultsIfNeeded(b),d.n("s").trigger("asp_elementor_results",[d.o.id,d.o.iid,b.parent().get(0)],!0,!0))},this.scrollToResultsIfNeeded=function(a){a=a.find(".elementor-post, .product").first(),a.length&&!a.inViewPort(40)&&a.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},this.fixElementorPostPagination=function(a,d){let e=this,b=c(".asp_es_"+a.o.id);if(d=typeof d=="undefined"?location.href:d,0<b.length){e.elementorHideSpinner(b.get(0));var g=d.indexOf("?");if(0<=g){let h=d.substring(g+1);h&&(h=h.replace(/&asp_force_reset_pagination=1/gmi,""),0<b.find(".e-load-more-anchor").length&&b.find(".elementor-pagination a").length==0?(g=function(f){if(f.preventDefault(),f.stopPropagation(),!a.searching){f=b.data("page")==""?2:parseInt(b.data("page"))+1;let l=h.split("&page=");b.data("page",f),a.showLoader(),e.elementorShowSpinner(b.get(0)),a.liveLoad(".asp_es_"+a.o.id,d.split("?")[0]+"?"+l[0]+"&page="+f,!1,!0)}},b.find(".e-load-more-anchor").next(".elementor-button-wrapper").find("a").attr("href",""),b.find(".e-load-more-anchor").next(".elementor-button-wrapper").offForced().on("click",g),b.find(".asp_e_load_more_anchor").on("asp_e_load_more",g)):(b.find(".elementor-pagination a, .elementor-widget-container .woocommerce-pagination a").each(function(){let f=c(this).attr("href");0>f.indexOf("asp_ls=")&&0>f.indexOf("asp_ls&")?0>f.indexOf("?")?c(this).attr("href",f+"?"+h):c(this).attr("href",f+"&"+h):c(this).attr("href",c(this).attr("href").replace(/&asp_force_reset_pagination=1/gmi,""))}),b.find(".elementor-pagination a, .elementor-widget-container .woocommerce-pagination a").on("click",function(f){f.preventDefault(),f.stopImmediatePropagation(),f.stopPropagation(),a.showLoader(),a.liveLoad(".asp_es_"+a.o.id,c(this).attr("href"),!1,
6!0)})))}}return a},this.fixElementorLoadMoreResults=function(a,d,e,b){b=c(e).closest("div[data-settings]").data("settings");let g=c(e).find(".asp_e_load_more_anchor");if(b!=null&&b!=""&&(b=JSON.parse(b),b.pagination_type=="load_more_infinite_scroll"&&g.length==0&&(c(".e-load-more-anchor").css("display","none"),c(e).append('<div class="asp_e_load_more_anchor"></div>'),g=c(e).find(".asp_e_load_more_anchor"),b=function(){g.inViewPort(50)&&(g.trigger("asp_e_load_more"),g.remove())},d.documentEventHandlers.push({node:window,event:"scroll",handler:b}),c(window).on("scroll",b)),0<c(a).find(".e-load-more-spinner").length)){c(e).removeClass("e-load-more-pagination-loading"),d=c("form",d.n("searchsettings")).serialize()+d.n("text").val().trim()!=d.lastSuccesfulSearch,b=c(e).find(".e-load-more-anchor").next(".elementor-button-wrapper");let h=c(e).find(".e-load-more-message");if(a=c(a).find("article"),0<a.length&&0<a.parent().length&&0<c(e).find("article").parent().length){a=a.get(0).innerHTML;let f=c(e).data("asp-previous-data");f==""||d?(c(e).find("article").parent().get(0).innerHTML=a,c(e).data("asp-previous-data",a),b.css("display","block"),h.css("display","none")):f==a?(b.css("display","none"),h.css("display","block"),g.remove()):(c(e).find("article").parent().get(0).innerHTML+=a,c(e).data("asp-previous-data",a))}else b.css("display","none"),h.css("display","block"),g.remove();return null}return a},this.elementorShowSpinner=function(a){c(a).addClass("e-load-more-pagination-loading"),c(a).find(".e-load-more-spinner>*").addClass("eicon-animation-spin"),c(a).css("opacity",1)},this.elementorHideSpinner=function(a){c(a).removeClass("e-load-more-pagination-loading"),c(a).find(".eicon-animation-spin").removeClass("eicon-animation-spin")}})})(WPD.dom);

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.