(function(){var K={993:(function(D,u){(function(k,P){typeof u=="object"&&typeof D=="object"?D.exports=P():typeof define=="function"&&define.amd?define("DoMini",[],P):typeof u=="object"?u.DoMini=P():k.DoMini=P()})(window,(()=>(()=>{"use strict";var k={d:(t,i)=>{for(var s in i)k.o(i,s)&&!k.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:(t,i)=>Object.prototype.hasOwnProperty.call(t,i)},P={};let m;k.d(P,{default:()=>A}),window.DoMini===void 0?(m=function(t,i){return arguments[2]!==void 0?this.constructor.call(this,t,i):arguments.length!==1||typeof arguments[0]!="function"?new m(t,i,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[m]):window.addEventListener("DOMContentLoaded",(()=>{arguments[0].apply(this,[m])})))},m.prototype=m.fn={constructor:function(t,i){if(this.length=0,i!==void 0){if(i instanceof m)return i.find(t);if(this.isValidNode(i)||typeof i=="string")return m(i).find(t)}else if(typeof t=="string"&&t!=="")this.push(...this._(t));else{if(t instanceof m)return t;this.isValidNode(t)&&this.push(t)}return this},_:function(t){return t.charAt(0)==="<"?m._fn.createElementsFromHTML(t):[...document.querySelectorAll(t)]},isValidNode:t=>t instanceof Element||t instanceof Document||t instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},m.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],m._fn={},m.version="0.2.8"):m=window.DoMini;const c=m;c.fn.get=function(t){return t===void 0?Array.from(this):this[t]},c.fn.extend=function(){for(let t=1;t0&&this.forEach((function(s){s.classList.add.apply(s.classList,i)})),this},c.fn.removeClass=function(t){if(t!==void 0){let i=t;typeof t=="string"&&(i=t.split(" ")),i=i.filter((function(s){return s.trim()!==""})),i.length>0&&this.forEach((function(s){s.classList.remove.apply(s.classList,i)}))}else this.forEach((function(i){i.classList.length>0&&i.classList.remove.apply(i.classList,i.classList)}));return this},c.fn.isVisible=function(){let t,i=this.get(0),s=!0;for(;i!==null;){if(t=window.getComputedStyle(i),t.display==="none"||t.visibility==="hidden"||parseInt(t.opacity)===0){s=!1;break}i=i.parentElement}return s},c.fn.val=function(t){let i;if(arguments.length===1){for(const s of this)if(s.type==="select-multiple"){t=typeof t=="string"?t.split(","):t;for(let l,v=0,y=s.options.length;v0?t?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},c.fn.noPaddingWidth=function(t){return t=t||!1,this.length>0?t?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},c.fn.innerWidth=function(){let t=this.get(0);if(t!=null){let i=window.getComputedStyle(t);return this.outerWidth()-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}return 0},c.fn.innerHeight=function(){let t=this.get(0);if(t!=null){let i=window.getComputedStyle(t);return this.outerHeight()-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomtWidth)}return 0},c.fn.width=function(){return this.outerWidth()},c.fn.height=function(){return this.outerHeight()},c.fn.on=function(){let t=arguments,i=function(l,v){let y;if(v.type==="mouseenter"||v.type==="mouseleave"||v.type==="mouseover"){let f=document.elementFromPoint(v.clientX,v.clientY);if(!f.matches(l[1]))for(;(f=f.parentElement)&&!f.matches(l[1]););f!=null&&(y=c(f))}else y=c(v.target).closest(l[1]);if(y!=null&&y.closest(this).length>0){let f=[];if(f.push(v),l[4]!==void 0)for(let w=4;w0)if(t===void 0){let l;for(;l=s._domini_events.pop();)s.removeEventListener(l.type,l.func,l.args);s._domini_events=[]}else t.split(" ").forEach((function(l){let v,y=[];for(;v=s._domini_events.pop();)v.type!==l||i!==void 0&&v.trigger!==i?y.push(v):s.removeEventListener(l,v.func,v.args);s._domini_events=y}))})),this},c.fn.offForced=function(){let t=this;return this.forEach((function(i,s){let l=i.cloneNode(!0);i.parentNode.replaceChild(l,i),t[s]=l})),this},c.fn.trigger=function(t,i,s,l){return s=s||!1,l=l||!1,this.forEach((function(v){let y=!1;if(l&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(v,"events")!==void 0&&jQuery._data(v,"events")[t]!==void 0&&(jQuery(v).trigger(t,i),y=!0),!y&&s){let f=new Event(t);f.detail=i,v.dispatchEvent(f)}if(v._domini_events!==void 0)v._domini_events.forEach((function(f){if(f.type===t){let w=new Event(t);f.trigger.apply(v,[w].concat(i))}}));else{let f=!1,w=v;for(;w=w.parentElement,w!=null&&(w._domini_events!==void 0&&w._domini_events.forEach((function(p){if(p.selector!==void 0){let d=c(w).find(p.selector);if(d.length>0&&d.get().indexOf(v)>=0&&p.type===t){let b=new Event(t);p.trigger.apply(v,[b].concat(i)),f=!0}}})),!f););}})),this},c.fn.clear=function(){for(const t of this)delete t._domini_events;return this},c.fn.clone=function(){let t=[];for(const i of this)t.push(i.cloneNode(!0));return c().add(t)},c.fn.detach=function(t){let i=this,s=[];t!==void 0&&(i=this.find(t));for(const l of i)l.parentElement!=null&&s.push(l.parentElement.removeChild(l));return c().add(s)},c.fn.remove=function(t){return this.detach(t).off().clear()},c.fn.prepend=function(t){if((t=c._fn.elementArrayFromAny(t)).length>0)for(const i of this)for(const s of t)i.insertBefore(s,i.children[0]);return this},c.fn.append=function(t){if((t=c._fn.elementArrayFromAny(t)).length>0)for(const i of this)for(const s of t)i.appendChild(s);return this},c.fn.is=function(t){let i=!1;for(const s of this)if(s.matches(t)){i=!0;break}return i},c.fn.parent=function(t){let i=[];for(const s of this){let l=s.parentElement;typeof t=="string"&&(l==null||l.matches(t)||(l=null)),i.push(l)}return c().add(i)},c.fn.copy=function(t,i){let s,l,v;if(typeof t!="object"||t===null)return s=t,s;for(l in s=new t.constructor,t)t.hasOwnProperty(l)&&(v=typeof t[l],i&&v==="object"&&t[l]!==null?s[l]=this.copy(t[l]):s[l]=t[l]);return s},c.fn.first=function(){return c(this[0])},c.fn.last=function(){return c(this[this.length-1])},c.fn.prev=function(t){let i=[];for(const s of this){let l;if(typeof t=="string")for(l=s.previousElementSibling;l!=null;){if(l.matches(t)){i.push(l);break}l=l.previousElementSibling}else i.push(s.previousElementSibling)}return c(null).add(i)},c.fn.next=function(t){let i=[];for(const s of this){let l;if(typeof t=="string")for(l=s.nextElementSibling;l!=null;){if(l.matches(t)){i.includes(l)||i.push(l);break}l=l.nextElementSibling}else i.push(s.nextElementSibling)}return c(null).add(i)},c.fn.closest=function(t){let i=[];for(let s of this)if(typeof t=="string"&&t!==""){for(;!s.matches(t)&&(s=s.parentElement););i.includes(s)||i.push(s)}else{if((t=t instanceof c?t.get(0):t)instanceof Element)for(;s!==t&&(s=s.parentElement););else s=null;i.includes(s)||i.push(s)}return c().add(i)},c.fn.add=function(t){let i=c._fn.elementArrayFromAny(t);for(const s of i)Array.from(this).includes(s)||this.push(s);return this},c.fn.find=function(t){const i=new c;if(typeof t=="string"){let s=[];this.get().forEach((function(l){const v=l.querySelectorAll?.(t)??[];s=s.concat(Array.from(v))})),s.length>0&&i.add(s)}return i},c._fn.bodyTransform=function(){let t=0,i=0;if(typeof WebKitCSSMatrix<"u"){let s=window.getComputedStyle(document.body);if(s.transform!==void 0){let l=new WebKitCSSMatrix(s.transform);l.m41!=="undefined"&&(t=l.m41),l.m42!=="undefined"&&(i=l.m42)}}return{x:t,y:i}},c._fn.bodyTransformY=function(){return this.bodyTransform().y},c._fn.bodyTransformX=function(){return this.bodyTransform().x},c._fn.hasFixedParent=function(t){if(c._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(t).position=="fixed")return!0;while(t=t.parentElement);return!1},c._fn.hasEventListener=function(t,i,s){if(t._domini_events===void 0)return!1;for(let l=0;li instanceof Element))}return t},c._fn.ElementArrayFromAny=c._fn.elementArrayFromAny,c._fn.absolutePosition=function(t){if(!t.getClientRects().length)return{top:0,left:0};let i=t.getBoundingClientRect(),s=t.ownerDocument.defaultView;return{top:i.top+s.pageYOffset,left:i.left+s.pageXOffset}},c._fn.plugin=function(t,i){c.fn[t]=function(s){return s!==void 0&&i[s]?i[s].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach((function(l){l["domini_"+t]=Object.create(i).init(s,l)}))}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const C=c;c.fn.animate=function(t,i,s){i=i||200,s=s||"easeInOutQuad";for(const l of this){let v,y,f,w,p,d=0,b=60,x={},E={};if(f=this.prop("_domini_animations"),f=f??[],t===!1)f.forEach((function(T){clearInterval(T)}));else{let T=function(){d++,d>v?clearInterval(w):(y=p(d/v),Object.keys(E).forEach((function(L){L.indexOf("scroll")>-1?l[L]=x[L]+E[L]*y:l.style[L]=x[L]+E[L]*y+"px"})))};p=c.fn.animate.easing[s]??c.fn.animate.easing.easeInOutQuad,Object.keys(t).forEach((function(L){L.indexOf("scroll")>-1?(x[L]=l[L],E[L]=t[L]-x[L]):(x[L]=parseInt(window.getComputedStyle(l)[L]),E[L]=t[L]-x[L])})),v=i/1e3*b,w=setInterval(T,1e3/b),f.push(w),this.prop("_domini_animations",f)}}return this},c.fn.animate.easing={linear:function(t){return t},easeInOutQuad:function(t){return t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2},easeOutQuad:function(t){return 1-(1-t)*(1-t)}},c.fn.unhighlight=function(t){let i={className:"highlight",element:"span"};return c.fn.extend(i,t),this.find(i.element+"."+i.className).forEach((function(){let s=this.parentNode;s.replaceChild(this.firstChild,this),s.normalize()}))},c.fn.highlight=function(t,i){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const s=c,l={...this.defaults,...i};if(t.constructor===String&&(t=[t]),(t=t.filter((function(p){return p!==""}))).forEach((function(p,d,b){b[d]=p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")})),t.length===0)return this;let v=l.caseSensitive?"":"i",y="("+t.join("|")+")";l.wordsOnly&&(y="(?:,|^|\\s)"+y+"(?:,|$|\\s)");let f=new RegExp(y,v);function w(p,d,b,x,E){if(E=E===""?s.fn.highlight.defaults:E,p.nodeType===3){if(!s(p.parentNode).is(E)){let T=p.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(d);if(T){let L,I=document.createElement(b||"span");I.className=x||"highlight",L=/\.|,|\s/.test(T[0].charAt(0))?T.index+1:T.index;let N=p.splitText(L);N.splitText(T[1].length);let H=N.cloneNode(!0);return I.appendChild(H),N.parentNode.replaceChild(I,N),1}}}else if(p.nodeType===1&&p.childNodes&&!/(script|style)/i.test(p.tagName)&&!s(p).closest(E).length>0&&(p.tagName!==b.toUpperCase()||p.className!==x))for(let T=0;T=0;i-=1)if(t.elements[i].name!=="")switch(t.elements[i].nodeName){case"INPUT":switch(t.elements[i].type){case"checkbox":case"radio":t.elements[i].checked&&l.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value));break;case"file":break;default:l.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value))}break;case"TEXTAREA":l.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value));break;case"SELECT":switch(t.elements[i].type){case"select-one":l.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value));break;case"select-multiple":for(s=t.elements[i].options.length-1;s>=0;s-=1)t.elements[i].options[s].selected&&l.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].options[s].value))}break;case"BUTTON":switch(t.elements[i].type){case"reset":case"submit":case"button":l.push(t.elements[i].name+"="+encodeURIComponent(t.elements[i].value))}}return l.join("&")},c.fn.serializeObject=function(t,i){let s,l=[];for(s in t)if(t.hasOwnProperty(s)){let v=i?i+"["+s+"]":s,y=t[s];l.push(y!==null&&typeof y=="object"?c.fn.serializeObject(y,v):encodeURIComponent(v)+"="+encodeURIComponent(y))}return l.join("&")},c.fn.inViewPort=function(t,i){let s,l,v=this.get(0);if(v==null)return!1;t=t===void 0?0:t,i=i===void 0?window:typeof i=="string"?document.querySelector(i):i;let y=v.getBoundingClientRect(),f=y.top,w=y.bottom,p=y.left,d=y.right,b=!1;if(i==null&&(i=window),i===window)s=window.innerWidth||0,l=window.innerHeight||0;else{s=i.clientWidth,l=i.clientHeight;let x=i.getBoundingClientRect();f-=x.top,w-=x.top,p-=x.left,d-=x.left}return t=~~Math.round(parseFloat(t)),d<=0||p>=s||(b=t>0?f>=t&&w0&&f<=l-t)|(f<=0&&w>t)),b},c.fn.ajax=function(t){if((t=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},t)).cors==="cors"){let i=new XMLHttpRequest;return i.onreadystatechange=function(){t.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&t.success(this.responseText),t.fail!=null&&this.readyState===4&&this.status>=400&&t.fail(this)},i.open(t.method.toUpperCase(),t.url,!0),i.setRequestHeader("Content-type",t.contentType),i.setRequestHeader("Accept",t.accept),i.send(this.serializeObject(t.data)),i}{let i="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(l){let v=16*Math.random()|0;return(l==="x"?v:3&v|8).toString(16)})).replaceAll("-","");c.fn[i]=function(){t.success.apply(this,arguments),delete c.fn[t.data.fn]},t.data.callback="DoMini.fn."+i,t.data.fn=i;let s=document.createElement("script");s.type="text/javascript",s.src=t.url+"?"+this.serializeObject(t.data),s.onload=function(){this.remove()},document.body.appendChild(s)}};const A=C;return P.default})()))}),806:(function(D,u,k){"use strict";k.r(u),k.d(u,{Base64:function(){return P}});const P={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(m){return btoa(this._utf8_encode(m))},decode:function(m){return this._utf8_decode(atob(m.replace(/[^A-Za-z0-9\+\/\=]/g,"")))},_utf8_encode:function(m){m=m.replace(/\r\n/g,` `);let c="";for(let C=0;C127&&A<2048?(c+=String.fromCharCode(A>>6|192),c+=String.fromCharCode(A&63|128)):(c+=String.fromCharCode(A>>12|224),c+=String.fromCharCode(A>>6&63|128),c+=String.fromCharCode(A&63|128))}return c},_utf8_decode:function(m){let c="",C=0,A=0,t,i;for(;C191&&A<224?(t=m.charCodeAt(C+1),c+=String.fromCharCode((A&31)<<6|t&63),C+=2):(t=m.charCodeAt(C+1),i=m.charCodeAt(C+2),c+=String.fromCharCode((A&15)<<12|(t&63)<<6|i&63),C+=3);return c}}}),665:(function(D,u,k){"use strict";k.r(u),k.d(u,{formData:function(){return t},isSafari:function(){return C},openInNewTab:function(){return s},recursiveCheckVisibility:function(){return l},scrollToFirstVisibleElement:function(){return v},submitToUrl:function(){return i},whichjQuery:function(){return A}});var P=k(993),m=k.n(P),c=k(919);const C=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),A=y=>{let f=!1;return typeof window.$<"u"&&(typeof y>"u"||typeof window.$.fn[y]<"u")&&(f=window.$),f===!1&&typeof window.jQuery<"u"&&(f=window.jQuery,(typeof y>"u"||typeof window.jQuery.fn[y]<"u")&&(f=window.jQuery)),f},t=function(y,f){let w=y.find("input,textarea,select,button").get();if(arguments.length===1){const p={};return w.forEach(function(d){d.name&&!d.disabled&&(d.checked||/select|textarea/i.test(d.nodeName)||/text/i.test(d.type)||m()(d).hasClass("hasDatepicker")||m()(d).hasClass("asp_slider_hidden"))&&(p[d.name]===void 0&&(p[d.name]=[]),m()(d).hasClass("hasDatepicker")?p[d.name].push(m()(d).parent().find(".asp_datepicker_hidden").val()):p[d.name].push(m()(d).val()))}),JSON.stringify(p)}else if(f!==void 0){const p=typeof f!="object"?JSON.parse(f):f;return w.forEach(function(d){if(d.name)if(p[d.name]){let b=p[d.name],x=m()(d);if(Object.prototype.toString.call(b)!=="[object Array]"&&(b=[b]),d.type==="checkbox"||d.type==="radio"){let E=x.val(),T=!1;for(let L=0;L'),d.attr("action",y),d.attr("method",f),m()("body").append(d),typeof w<"u"&&w!==null&&Object.keys(w).forEach(function(b){let x=w[b],E=m()('');E.attr("name",b),E.attr("value",x),d.append(E)}),p=="new"&&d.attr("target","_blank"),d.get(0).submit()},s=function(y){Object.assign(document.createElement("a"),{target:"_blank",href:y}).click()},l=function(y){if(typeof y.checkVisibility>"u")return!0;let f=y,w=!0;for(;f!==null;){if(!f.checkVisibility({opacityProperty:!0,visibilityProperty:!0,contentVisibilityAuto:!0})){w=!1;break}f=f.parentElement}return w},v=function(y,f=0){for(const w of y)if(l(w))return window.scrollTo({top:w.getBoundingClientRect().top-120+window.pageYOffset+f,behavior:"smooth"}),!0;return!1}}),451:(function(D,u,k){"use strict";k.r(u),k.d(u,{detectIOS:function(){return m},deviceType:function(){return P},isMobile:function(){return c},isTouchDevice:function(){return C}});const P=()=>{let A=window.innerWidth;return A<=640?"phone":A<=1024?"tablet":"desktop"},m=()=>typeof window.navigator<"u"&&typeof window.navigator.userAgent<"u"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1,c=()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}},C=()=>"ontouchstart"in window}),91:(function(D,u,k){"use strict";k.r(u),k.d(u,{Hooks:function(){return P}});const P={filters:{},addFilter:function(m,c,C=10,A=null){this.filters[m]=this.filters[m]||[],this.filters[m].push({priority:C,scope:A,callback:c})},removeFilter:function(m,c){if(typeof this.filters[m]<"u")if(typeof c>"u")this.filters[m]=[];else{const C=this;this.filters[m].forEach(function(A,t){A.callback===c&&C.filters[m].splice(t,1)})}},applyFilters:function(m){let c=[],C=Array.prototype.slice.call(arguments),A=arguments[1];return typeof this.filters[m]<"u"&&this.filters[m].length>0&&(this.filters[m].forEach(function(t){c[t.priority]=c[t.priority]||[],c[t.priority].push({scope:t.scope,callback:t.callback})}),C.splice(0,2),c.forEach(function(t){t.forEach(function(i){A=i.callback.apply(i.scope,[A].concat(C))})})),A}}}),685:(function(D,u,k){"use strict";const P={},m=k(271);m.keys().forEach(c=>{if(c==="./index.ts")return;const C=m(c);Object.keys(C).forEach(A=>{P[A]=C[A]})}),window.WPD.utils=P}),919:(function(D,u,k){"use strict";k.r(u),k.d(u,{intervalUntilExecute:function(){return P}});function P(m,c,C=100,A=50){let t,i=0,s=typeof c=="function"?c():c;if(s===!1)t=setInterval(function(){if(s=typeof c=="function"?c():c,i++,i>A)return clearInterval(t),!1;if(s!==!1)return clearInterval(t),m(s)},C);else return m(s)}}),627:(function(D,u,k){"use strict";k.r(u),k.d(u,{buildRestUrl:function(){return C},isNumeric:function(){return A},md5:function(){return P},nicePhrase:function(){return c},parse_str:function(){return m}});function P(t){const i=new TextEncoder().encode(t),s=i.length,l=(s+8>>>6<<6)+64,v=new Uint8Array(l);v.set(i),v[s]=128;const y=new DataView(v.buffer);y.setUint32(l-8,s<<3>>>0,!0),y.setUint32(l-4,s>>>29,!0);let f=1732584193,w=4023233417,p=2562383102,d=271733878;const b=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],x=[3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745];for(let T=0;T>>0,Q=d;d=p,p=w,w=w+(V<>>32-b[R])>>>0,f=Q}f=f+I>>>0,w=w+N>>>0,p=p+H>>>0,d=d+M>>>0}const E=T=>[T&255,T>>>8&255,T>>>16&255,T>>>24&255].map(L=>L.toString(16).padStart(2,"0")).join("");return E(f)+E(w)+E(p)+E(d)}function m(t){const i=p=>decodeURIComponent(p.replace(/\+/g,"%20")),s=p=>{const d=[];let b=0;for(let x=0;x{let d=p;for(let b=0;b{let d=-1;for(const b in p)/^\d+$/.test(b)&&Number(b)>d&&(d=Number(b));return String(d+1)},y=p=>{const d=Object.keys(p);if(!d.length)return!1;const b=d.filter(x=>/^\d+$/.test(x)).map(Number).sort((x,E)=>x-E);return b.length!==d.length?!1:b.every((x,E)=>x===E)},f=p=>{if(typeof p!="object"||p===null)return p;if(y(p)){const b=[];return Object.keys(p).map(Number).sort((x,E)=>x-E).forEach(x=>{b[x]=f(p[String(x)])}),b}const d={};for(const b in p)Object.prototype.hasOwnProperty.call(p,b)&&(d[b]=f(p[b]));return d},w={};for(const p of String(t).replace(/^&/,"").replace(/&$/,"").split("&")){const[d,...b]=p.split("=");let x=i(d??"").trimStart();const E=b.length===0?"":i(b.join("=")),T=x.indexOf("\0");if(T>-1&&(x=x.slice(0,T)),!x||x[0]==="[")continue;const L=s(x);L[0]=l(L[0]);let I=w,N=w,H="";for(let M=0;M`${encodeURIComponent(f)}=${encodeURIComponent(w)}`).join("&")}function A(t){if(typeof t=="number"&&!isNaN(t))return!0;if(typeof t=="string"){const i=t.trim();if(i==="")return!1;const s=Number(i);return!isNaN(s)&&i===String(s).trim()}return!1}}),271:(function(D,u,k){var P={"./base64.ts":806,"./browser.ts":665,"./device.ts":451,"./hooks-filters.ts":91,"./index.ts":685,"./interval-until-execute.ts":919,"./other.ts":627};function m(C){var A=c(C);return k(A)}function c(C){if(!k.o(P,C)){var A=new Error("Cannot find module '"+C+"'");throw A.code="MODULE_NOT_FOUND",A}return P[C]}m.keys=function(){return Object.keys(P)},m.resolve=c,D.exports=m,m.id=271})},J={};function j(D){var u=J[D];if(u!==void 0)return u.exports;var k=J[D]={exports:{}};return K[D].call(k.exports,k,k.exports,j),k.exports}(function(){j.n=function(D){var u=D&&D.__esModule?function(){return D.default}:function(){return D};return j.d(u,{a:u}),u}})(),(function(){j.d=function(D,u){for(var k in u)j.o(u,k)&&!j.o(D,k)&&Object.defineProperty(D,k,{enumerable:!0,get:u[k]})}})(),(function(){j.o=function(D,u){return Object.prototype.hasOwnProperty.call(D,u)}})(),(function(){j.r=function(D){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(D,"__esModule",{value:!0})}})();var Z={};(function(){"use strict";var D=j(993),u=j.n(D);window.WPD=window.WPD||{},window.WPD.global={utils:{}},window.WPD.dom=u(),window.DoMini=u(),window.WPD.domini=window.WPD.dom,window.WPD.DoMini=window.WPD.dom;var k=j(685);window._asl_instances_storage=window._asl_instances_storage||[];var m={instances:window._asl_instances_storage,get:function(e,n){if(this.clean(),typeof e>"u"||e===0)return this.instances;if(typeof n>"u"){let o=[];for(let r=0;r0?o:!1}else for(let o=0;o"u")return!0;if(this.instances[o].o.iid===n)return!0}return!1},clean:function(){let e=[],n=this;this.instances.forEach(function(o,r){u()(".asl_m_"+o.o.rid).length===0&&e.push(r)}),e.forEach(function(o){typeof n.instances[o]<"u"&&(n.instances[o].destroy(),n.instances.splice(o,1))})},destroy:function(e,n){let o=this.get(e,n);if(o!==!1)if(Array.isArray(o))o.forEach(function(r){r.destroy()}),this.instances=[];else{let r=0;this.instances.forEach(function(a,h){a.o.id===e&&a.o.iid===n&&(r=h)}),o.destroy(),this.instances.splice(r,1)}}};function c(){"use strict";const e=function(r,a,h,g){let _=m.get(r,a);if(_!==!1&&!Array.isArray(_)){const S=_[h];typeof S=="function"&&S.bind(_).apply(_,[g])}},n=function(r,a,h){let g;if(typeof a=="number"&&isFinite(a)){if(g=m.get(r,a),g!==!1&&!Array.isArray(g)){const _=g[h];if(typeof _=="function")return _.bind(g).apply(h)}}else if(typeof a=="string")return g=m.get(r),g!==!1&&Array.isArray(g)&&g.forEach(function(_){const S=_[a];typeof S=="function"&&S.bind(g).apply(_,[h])})},o=function(r,a){let h;return a==="exists"?m.exist(r):(h=m.get(r),h!==!1&&Array.isArray(h)&&h.forEach(function(g){const _=g[a];typeof _=="function"&&_.bind(g).apply(g)}))};if(arguments.length===4)return e.apply(this,arguments);if(arguments.length===3)return n.apply(this,arguments);if(arguments.length===2)return o.apply(this,arguments);arguments.length===0&&(console.log("Usage: ASL.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))}var A=e=>{let n=!1;const o=()=>document.readyState==="complete"||document.readyState==="interactive"||document.readyState==="loaded",r=()=>{window.removeEventListener("DOMContentLoaded",h),document.removeEventListener("readystatechange",g)},a=()=>{n||(n=!0,e(),r())},h=()=>{a()},g=()=>{o()&&a()};o()?a():(window.addEventListener("DOMContentLoaded",h),document.addEventListener("readystatechange",g))},t=j(665),i=j(627);window.ASL={...window.ASL,instances:m,instance_args:[],api:c,initialized:!1,initCache:function(e=!1){if(this.initialized&&!e)return;const n=window.ASL;n.cache.list=new Set,n.cache.timestamp=new Date().getTime(),!(!n.cache.enabled||n.cache.type!=="super_file")&&fetch((0,i.buildRestUrl)(n.rest_url,"ajax-search-lite/results_cache/keyset",{t:n.cache.timestamp}),{method:"GET"}).then(o=>o.json()).then(o=>{n.cache.list=new Set(o)}).catch(o=>{console.log(o)})},initializeAllSearches:function(){this.getInstances().forEach(function(n,o){u().fn._(".asl_m_"+o).forEach(function(r){return typeof r.hasAsp<"u"?!0:(r.hasAsp=!0,u()(r).ajaxsearchlite(n))})})},initializeSearchByID:function(e,n=0){const o=this.getInstance(e),r=n===0?".asl_m_"+e:".asl_m_"+e+"_"+n;u().fn._(r).forEach(function(a){return typeof a.hasAsp<"u"?!0:(a.hasAsp=!0,u()(a).ajaxsearchlite(o))})},getInstances:function(){return u().fn._(".asl_init_data").forEach(e=>{const n=parseInt(e.dataset.aslId||"");typeof e.dataset.settings<"u"&&(this.instance_args[n]=JSON.parse(e.dataset.settings))}),this.instance_args},getInstance:function(e){return typeof this.instance_args[e]<"u"?this.instance_args[e]:this.getInstances()[e]},initialize:function(e){if(typeof window.ASL.version>"u")return!1;if(window.ASL.script_async_load||window.ASL.init_only_in_viewport){const n=document.querySelectorAll(".asl_w_container");if(n.length){const o=new IntersectionObserver(r=>{r.forEach(a=>{if(a.isIntersecting){const h=parseInt(a.target.dataset.id??"0"),g=parseInt(a.target.dataset.instance??"0");this.initializeSearchByID(h,g),o.unobserve(a.target)}})});n.forEach(function(r){const a=r;typeof a._is_observed<"u"||(a._is_observed=!0,o.observe(a))})}}else typeof e>"u"?this.initializeAllSearches():this.initializeSearchByID(e);return this.initCache(),this.initializeMutateDetector(),this.initializeHighlight(),this.initializeOtherEvents(),this.initialized=!0,!0},initializeHighlight:function(){if(window.ASL.highlight.enabled)for(const e of window.ASL.highlight.data){let n=e.selector!==""&&u()(e.selector).length>0?e.selector:"article",o;n=u()(n).length>0?n:"body";const r=new URLSearchParams(location.search);if(o=r.get("s")??r.get("asl_highlight")??r.get("asl_s")??r.get("asl_ls")??"",u()(n).unhighlight({className:"asl_single_highlighted"}),o===null||(o=o.trim(),o===""))return;const a=o.trim().split(" ").map(h=>h.trim()).filter(h=>h.length>=e.minWordLength);u()(n).highlight([o.trim()],{element:"span",className:"asl_single_highlighted asl_single_highlighted_exact",wordsOnly:e.whole,excludeParents:".asl_w, .asl-try"}),a.length>0&&u()(n).highlight(a,{element:"span",className:"asl_single_highlighted",wordsOnly:e.whole,excludeParents:".asl_w, .asl-try, .asl_single_highlighted"}),e.scroll&&((0,t.scrollToFirstVisibleElement)(u()(".asl_single_highlighted_exact").get(),e.scroll_offset)||(0,t.scrollToFirstVisibleElement)(u()(".asl_single_highlighted").get(),e.scroll_offset))}},initializeOtherEvents:function(){let e,n;const o=u()("body");n="#menu-item-search, .fa-search, .fa, .fas",n=n+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open",n=n+", #search_button",n=n+", .mini-search.popup-search",n=n+", .icon-search",n=n+", .menu-item-search-dropdown",n=n+", .mobile-menu-button",n=n+", .td-icon-search, .tdb-search-icon",n=n+", .side_menu_button, .search_button",n=n+", .raven-search-form-toggle",n=n+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button",n=n+", i[class*=-search], a[class*=-search]",o.on("click touchend",n,()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},300)}),typeof window.jQuery<"u"&&window.jQuery(document).on("elementor/popup/show",()=>{setTimeout(()=>{this.initializeAllSearches()},10)})},initializeMutateDetector:function(){let e;if(typeof window.ASL.detect_ajax<"u"&&window.ASL.detect_ajax){const n=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},500)}),o=document.querySelector("body");if(o==null)return;n.observe(o,{subtree:!0,childList:!0})}},loadScriptStack:function(e){let n;if(e.length>0){const o=e.shift();if(o===void 0)return;n=document.createElement("script"),n.src=o.src,n.onload=()=>{e.length>0?this.loadScriptStack(e):this.ready()},document.body.appendChild(n)}},ready:function(){const e=this;A(()=>{e.initialize()})},init:function(){window.ASL.script_async_load?this.loadScriptStack(window.ASL.additional_scripts):typeof window.WPD.AjaxSearchLite<"u"&&this.ready()}};class s{call_num=0;settingsInitialized=!1;resultsInitialized=!1;searching=!1;post=void 0;postAuto=void 0;lastSuccesfulSearch="";lastSearchData={};ktype="";keycode=0;_usingLiveLoader=void 0;nodes={};documentEventHandlers=[];resultsOpened=!1;savedScrollTop=0;savedContainerTop=0;clickTouchend="click touchend";mouseupTouchend="mouseup touchend";dragging=!1;settingsChanged=!1;isAutoP=!1;resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};timeouts={searchWithCheck:void 0,search:void 0};o={id:1,iid:1,rid:"1_1",name:"Search name",homeurl:"",resultstype:"vertical",resultsposition:"hover",itemscount:10,charcount:0,minWordLength:2,highlight:!0,blocking:!1,detectVisibility:!1,redirectOnClick:!0,redirectOnEnter:!0,highlightWholewords:!0,singleHighlight:!1,settingsVisible:0,scrollToResults:{enabled:1,offset:0},resultareaclickable:0,autocomplete:{enabled:1,lang:"en",trigger_charcount:0},mobile:{menu_selector:"#mobile-menu",force_res_hover:0},trigger:{click:"ajax_search",click_location:"same",update_href:!1,return:"ajax_search",return_location:"same",facet:1,type:1,redirect_url:"/search",delay:300},animations:{pc:{settings:{anim:"fadedrop",dur:300},results:{anim:"fadedrop",dur:300},items:"voidanim"},mob:{settings:{anim:"fadedrop",dur:300},results:{anim:"fadedrop",dur:300},items:"voidanim"}},autop:{state:"disabled",phrase:"",count:10},resPage:{useAjax:0,selector:".search-results",trigger_type:1,trigger_facet:1,trigger_magnifier:1,trigger_return:1},resultsSnapTo:"left",results:{width:"auto",width_tablet:"auto",width_phone:"auto"},settingsimagepos:"left",closeOnDocClick:!0,overridewpdefault:!1,override_method:"get"}}window.WPD.global.AslPlugin=s;var l;s.prototype.setFilterStateInput=function(e){let n=this;typeof e>"u"&&(e=65);let o=function(){JSON.stringify(n.originalFormData)!=JSON.stringify((0,t.formData)(n.n("searchsettings").find("form")))?n.n("searchsettings").find("input[name=filters_initial]").val(0):n.n("searchsettings").find("input[name=filters_initial]").val(1)};e==0?o():setTimeout(function(){o()},e)};var v=null,y;const f=window.ASL;s.prototype.gaPageview=function(e){let n=this,o=n.gaGetTrackingID();if(typeof f.analytics>"u"||f.analytics.method!="pageview")return!1;if(f.analytics.string!=""){let r=typeof window.__gaTracker=="function"?window.__gaTracker:typeof window.ga=="function"?window.ga:!1,a=typeof window.gtag=="function"?window.gtag:!1,h=n.o.homeurl.replace(window.location.origin,"");if(a!==!1)o!==!1&&o.forEach(function(g){a("config",g,{page_path:h+f.analytics.string.replace("{asl_term}",e)})});else if(r!==!1){let g={page:h+f.analytics.string.replace("{asl_term}",e),title:"Ajax Search"};o!==!1?o.forEach(function(_){r("create",_,"auto"),r("send","pageview",g)}):r("send","pageview",g)}}},s.prototype.gaEvent=function(e,n){let o=this,r=o.gaGetTrackingID();if(typeof f.analytics>"u"||f.analytics.method!="event")return!1;let a=typeof window.gtag=="function"?window.gtag:!1,h=typeof window.__gaTracker=="function"?window.__gaTracker:typeof window.ga=="function"?window.ga:!1;if(a===!1&&h===!1&&typeof window.dataLayer>"u")return!1;if(typeof f.analytics.event[e]<"u"&&f.analytics.event[e].active){let g={search_id:o.o.id,search_name:o.o.name,phrase:o.n("text").val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},_={event_category:f.analytics.event[e].category,event_label:f.analytics.event[e].label,value:f.analytics.event[e].value,send_to:""};const S={...g,...n};Object.keys(S).forEach(function(F){let z=S[F];z=String(z).replace(/[\s\n\r]+/g," ").trim(),Object.keys(_).forEach(function($){let W=new RegExp("{"+F+"}","gmi");_[$]=_[$].replace(W,z)})}),h!==!1?r!==!1?r.forEach(function(F){h("create",F,"auto"),h("send","event",_.event_category,f.analytics.event[e].action,_.event_label,_.value)}):h("send","event",_.event_category,f.analytics.event[e].action,_.event_label,_.value):a!==!1?r!==!1?r.forEach(function(F){_.send_to=F,a("event",f.analytics.event[e].action,_)}):a("event",f.analytics.event[e].action,_):window?.dataLayer?.push!==void 0&&window.dataLayer.push({event:"gaEvent",eventCategory:_.event_category,eventAction:f.analytics.event[e].action,eventLabel:_.event_label})}},s.prototype.gaGetTrackingID=function(){let e=!1;if(typeof f.analytics>"u")return e;if(typeof f.analytics.tracking_id<"u"&&f.analytics.tracking_id!="")return[f.analytics.tracking_id];if((typeof window.gtag=="function"?window.gtag:!1)===!1&&typeof window.ga<"u"&&typeof window.ga.getAll<"u"){let o=[];return window.ga.getAll().forEach(function(r){o.push(r.get("trackingId"))}),o.length>0?o:!1}return e};var w=null,p=j(919),d=j(91),b;const x=window.ASL;s.prototype.getLiveLoadAltSelectors=function(){return[".search-content","#content #posts-container","#content","#Content","div[role=main]","main[role=main]","div.theme-content","div.td-ss-main-content","main#page-content","main.l-content","#primary","#main-content",".main-content",".search section .bde-post-loop",".archive section .bde-post-loop",".search section .bde-post-list",".archive section .bde-post-list","main .wp-block-query","main"]},s.prototype.usingLiveLoader=function(){const e=this;if(e._usingLiveLoader!==void 0)return e._usingLiveLoader;const n=e.o,o="asp_es_"+n.id,r=this.getLiveLoadAltSelectors().join(",");if(document.getElementsByClassName(o).length)return e._usingLiveLoader=!0;const a=["resPage"];return e._usingLiveLoader=a.some(h=>{const g=n[h];return g.useAjax&&(document.querySelector(g.selector)||r&&document.querySelector(r))}),e._usingLiveLoader},s.prototype.liveLoad=function(e,n,o,r){if(e=="body"||e=="html")return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;x.pageHTML==""&&(x._ajax_page_html||(x._ajax_page_html=!0,u().fn.ajax({url:location.href,method:"GET",success:function(S){x.pageHTML=S},dataType:"html"})));function a(S){S=d.Hooks.applyFilters("asl/live_load/raw_data",S,_);let F=new DOMParser,z=F.parseFromString(S,"text/html"),$=u()(z);if(S!=""&&$.length>0&&$.find(e).length>0){S=S.replace(/&asl_force_reset_pagination=1/gmi,""),S=S.replace(/%26asl_force_reset_pagination%3D1/gmi,""),S=S.replace(/&asl_force_reset_pagination=1/gmi,""),(0,t.isSafari)()&&(S=S.replace(/srcset/gmi,"nosrcset")),S=d.Hooks.applyFilters("asl/live_load/html",S,_.o.id,_.o.iid),$=u()(F.parseFromString(S,"text/html"));let W=$.find(e).get(0);if(W=d.Hooks.applyFilters("asl/live_load/replacement_node",W,_,g.get(0),S),W!=null){const X=g.get(0);X!==void 0&&g.get(0)?.parentNode?.replaceChild(W,X)}g=u()(e).first(),o&&(document.title=z.title,history.pushState({},"",n)),u()(e).first().find(".woocommerce-ordering").on("change","select.orderby",function(){u()(this).closest("form").trigger("submit")}),_.addHighlightString(u()(e).find("a")),d.Hooks.applyFilters("asl/live_load/finished",n,_,e,g.get(0)),x.initialize(),_.lastSuccesfulSearch=_.n("searchsettings").find("form").serialize()+_.n("text").val().trim(),_.lastSearchData=S}_.n("s").trigger("asl_search_end",[_.o.id,_.o.iid,_.n("text").val(),S],!0,!0),_.gaEvent?.("search_end",{results_count:"unknown"}),_.gaPageview?.(_.n("text").val()),_.hideLoader(),g.css("opacity",1),_.searching=!1,_.n("text").val()!=""&&_.n("proclose").css({display:"block"})}o=typeof o>"u"?this.o.trigger.update_href:o,r=typeof r>"u"?!1:r;let h=this.getLiveLoadAltSelectors();if(e!="#main"&&h.unshift("#main"),u()(e).length<1&&(h.forEach(function(S){if(u()(S).length>0)return e=S,!1}),u()(e).length<1))return console.log("Ajax Search Lite: The live search selector does not exist on the page."),!1;e=d.Hooks.applyFilters("asl/live_load/selector",e,this);let g=u()(e).first(),_=this;_.searchAbort(),g.css("opacity",.4),d.Hooks.applyFilters("asl/live_load/start",n,_,e,g.get(0)),!r&&_.n("searchsettings").find("input[name=filters_initial]").val()==1&&_.n("text").val()==""?(0,p.intervalUntilExecute)(function(){a(x.pageHTML)},function(){return x.pageHTML!=""}):(_.searching=!0,_.post=u().fn.ajax({url:n,method:"GET",success:function(S){a(S)},dataType:"html",fail:function(S){g.css("opacity",1),!(S.status===0&&S.readyState===S.UNSENT)&&(g.html("This request has failed. Please check your connection."),_.hideLoader(),_.searching=!1,_.n("proclose").css({display:"block"}))}}))},s.prototype.getCurrentLiveURL=function(){let e=this,n="asl_ls="+(0,i.nicePhrase)(e.n("text").val()),o="&",r=window.location.href;r=r.indexOf("asl_ls=")>-1?r.slice(0,r.indexOf("asl_ls=")):r,r=r.indexOf("asl_ls&")>-1?r.slice(0,r.indexOf("asl_ls&")):r,r=r.indexOf("p_asid=")>-1?r.slice(0,r.indexOf("p_asid=")):r,r=r.indexOf("asl_")>-1?r.slice(0,r.indexOf("asl_")):r,r.indexOf("?")===-1&&(o="?");let a=r+o+n+"&asl_active=1&asl_force_reset_pagination=1&p_asid="+e.o.id+"&p_asl_data=1&"+e.n("searchsettings").find("form").serialize();return a=a.replace("?&","?"),a};var E=null,T;s.prototype.showLoader=function(){this.n("proloading").css({display:"block"})},s.prototype.hideLoader=function(){let e=this;e.n("proloading").css({display:"none"}),e.n("results").css("display","")};var L=null,I;const N=window.ASL;s.prototype.loadASLFonts=function(){N.font_url!==!1&&(new FontFace("aslsicons2","url("+N.font_url+")",{style:"normal",weight:"normal",display:"swap"}).load().then(function(n){document.fonts.add(n)}).catch(function(n){}),N.font_url=!1)},s.prototype.updateHref=function(){if(this.o.trigger.update_href&&!this.usingLiveLoader()){let e=this.getStateURL()+(this.resultsOpened?"&asl_s=":"&asl_ls=")+this.n("text").val();history.replaceState("","",e.replace(location.origin,""))}},s.prototype.fixClonedSelf=function(){let e=this,n=e.o.iid,o=e.o.rid;for(;!N.instances.set(e)&&(++e.o.iid,!(e.o.iid>50)););if(n!=e.o.iid){e.o.rid=e.o.id+"_"+e.o.iid;const r=e.n("search").get(0);r!==void 0&&(r.id="ajaxsearchlite"+e.o.rid,e.n("search").removeClass("asl_m_"+o).addClass("asl_m_"+e.o.rid).data("instance",e.o.iid));const a=e.n("searchsettings").get(0);a!==void 0&&(a.id=a.id.replace("settings"+o,"settings"+e.o.rid)),e.n("searchsettings").hasClass("asl_s_"+o)?e.n("searchsettings").removeClass("asl_s_"+o).addClass("asl_s_"+e.o.rid).data("instance",e.o.iid):e.n("searchsettings").removeClass("asl_sb_"+o).addClass("asl_sb_"+e.o.rid).data("instance",e.o.iid);const h=e.n("resultsDiv").get(0);h!==void 0&&(h.id=h.id.replace("prores"+o,"prores"+e.o.rid),e.n("resultsDiv").removeClass("asl_r_"+o).addClass("asl_r_"+e.o.rid).data("instance",e.o.iid));const g=e.n("container").find(".asl_init_data").get(0);g!==void 0&&(e.n("container").find(".asl_init_data").data("instance",e.o.iid),g.id=g.id.replace("asl_init_id_"+o,"asl_init_id_"+e.o.rid)),e.n("prosettings").data("opened",0)}},s.prototype.destroy=function(){let e=this;Object.keys(e.nodes).forEach(function(n){e.nodes[n].off?.()}),e.n("searchsettings").remove?.(),e.n("resultsDiv").remove?.(),e.n("search").remove?.(),e.n("container").remove?.(),e.documentEventHandlers.forEach(function(n){u()(n.node).off(n.event,n.handler)})};var H=null,M;s.prototype.isRedirectToFirstResult=function(){return!!((this.n("resultsDiv").find(".asl_res_url").length>0||u()(".asl_es_"+this.o.id+" a").length>0||this.o.resPage.useAjax&&u()(this.o.resPage.selector+"a").length>0)&&(this.o.redirectOnClick&&this.ktype=="click"&&this.o.trigger.click=="first_result"||this.o.redirectOnEnter&&(this.ktype=="input"||this.ktype=="keyup")&&this.keycode==13&&this.o.trigger.return=="first_result"))},s.prototype.doRedirectToFirstResult=function(){let e,n="";return this.ktype=="click"?e=this.o.trigger.click_location:e=this.o.trigger.return_location,this.n("resultsDiv").find(".asl_res_url").length>0?n=u()(this.n("resultsDiv").find(".asl_res_url").get(0)).attr("href"):u()(".asl_es_"+this.o.id+" a").length>0?n=u()(u()(".asl_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&u()(this.o.resPage.selector+"a").length>0&&(n=u()(u()(this.o.resPage.selector+"a").get(0)).attr("href")),n!==""&&(e=="same"?window.location.href=n:(0,t.openInNewTab)(n),this.hideLoader(),this.hideResults()),!1},s.prototype.doRedirectToResults=function(e){let n;e=="click"?n=this.o.trigger.click_location:n=this.o.trigger.return_location;let o=this.getRedirectURL(e);if(this.o.overridewpdefault){if(this.o.resPage.useAjax)return this.hideResults(),this.liveLoad(this.o.resPage.selector,o),this.showLoader(),!1;this.o.override_method=="post"?(0,t.submitToUrl)(o,"post",{asl_active:1,p_asl_data:this.n("searchsettings").find("form").serialize()},n):n=="same"?location.href=o:(0,t.openInNewTab)(o)}else(0,t.submitToUrl)(o,"post",{np_asl_data:this.n("searchsettings").find("form").serialize()},n);this.n("proloading").css("display","none"),this.hideLoader(),this.hideResults(),this.searchAbort()},s.prototype.getRedirectURL=function(e="enter"){let n,o,r,a;if(e=="click"?o=this.o.trigger.click:o=this.o.trigger.return,o=="results_page"||o=="ajax_search"?n="?s="+(0,i.nicePhrase)(this.n("text").val()):o=="woo_results_page"?n="?post_type=product&s="+(0,i.nicePhrase)(this.n("text").val()):(a=this.o.trigger.redirect_url,n=a.replace(/{phrase}/g,(0,i.nicePhrase)(this.n("text").val()))),this.o.homeurl.indexOf("?")>1&&n.indexOf("?")===0&&(n=n.replace("?","&")),this.o.overridewpdefault&&this.o.override_method!="post"){let h="&";this.o.homeurl.indexOf("?")===-1&&n.indexOf("?")===-1&&(h="?");let g=n+h+"asl_active=1&p_asl_data=1&"+this.n("searchsettings").find("form").serialize();r=this.o.homeurl+g}else r=this.o.homeurl+n;return r=r.replace("https://","https:///"),r=r.replace("http://","http:///"),r=r.replace(/\/\//g,"/"),r=d.Hooks.applyFilters("asl/redirect/url",r,this.o.id,this.o.iid),r};var R=null,O=j(451),U;s.prototype.showResults=function(){let e=this;e.initResults(),e.showVerticalResults(),e.hideLoader(),e.n("proclose").css({display:"block"}),e.n("showmore")!=null&&(e.n("items").length>0?e.n("showmore").css({display:"block"}):e.n("showmore").css({display:"none"})),e.resultsOpened=!0},s.prototype.hideResults=function(e=!0){let n=this;if(!n.resultsOpened)return!1;n.n("resultsDiv").removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass),setTimeout(function(){n.n("resultsDiv").css(n.resAnim.hideCSS)},n.resAnim.duration),n.n("proclose").css({display:"none"}),(0,O.isMobile)()&&e&&document.activeElement?.blur(),n.resultsOpened=!1,n.n("s").trigger("asl_results_hide",[n.o.id,n.o.iid],!0,!0)},s.prototype.showResultsBox=function(){let e=this;e.n("s").trigger("asl_results_show",[e.o.id,e.o.iid],!0,!0),e.n("resultsDiv").css({display:"block",height:"auto"}),e.n("resultsDiv").css(e.resAnim.showCSS),e.n("resultsDiv").removeClass(e.resAnim.hideClass).addClass(e.resAnim.showClass),e.fixResultsPosition(!0)},s.prototype.addHighlightString=function(e){let n=this,o=n.n("text").val().replace(/["']/g,"");e=typeof e>"u"?n.n("items").find("a.asl_res_url"):e,n.o.singleHighlight&&o!=""&&e.length>0&&e.forEach(function(r){try{const a=new URL(u()(r).attr("href"));a.searchParams.set("asl_highlight",o),a.searchParams.set("p_asid",String(n.o.id)),u()(r).attr("href",a.href)}catch{}})},s.prototype.scrollToResults=function(){let e=this,n=Math.floor(window.innerHeight*.1),o;if(!e.resultsOpened||!e.o.scrollToResults.enabled||e.n("resultsDiv").inViewPort(n))return;e.o.resultsposition=="hover"?o=e.n("probox").offset().top-20:o=e.n("resultsDiv").offset().top-20,o=o+e.o.scrollToResults.offset;let r=u()("#wpadminbar");r.length>0&&(o-=r.height()),o=o<0?0:o,window.scrollTo({top:o,behavior:"smooth"})};var V=null;const Q=window.ASL;let G;const q=[];function ee(e,n,o,r,a=0,h=0){!Q.statistics?.enabled||!Q.rest_url||(q.push({phrase:e,page:1,asp_id:n,device_type:o,found_results:r,user_id:a,suggested:0,cached:h}),clearTimeout(G),G=setTimeout(()=>{const g=[...q];q.length=0,fetch((0,i.buildRestUrl)(Q.rest_url,"ajax-search-lite/statistics/searches/add"),{headers:{"Content-Type":"application/json"},method:"POST",credentials:"same-origin",body:JSON.stringify(g)}).catch(()=>{})},1e3))}var se;const Y=window.ASL;s.prototype.searchAbort=function(){let e=this;e.post!=null&&e.post.abort()},s.prototype.searchWithCheck=function(e=50){let n=this;n.n("text").val().length0)e.liveLoad(".asl_es_"+e.o.id,e.getCurrentLiveURL(),!1);else if(e.o.resPage.useAjax)e.liveLoad(e.o.resPage.selector,e.getRedirectURL());else{const o=()=>{e.post=u().fn.ajax({url:Y.ajaxurl,method:"POST",data:n,success:function(r){let a;try{a=JSON.parse(r).html??""}catch{const g=r.replace(/^\s*[\r\n]/gm,"").match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/);if(g===null){e.hideLoader(),console.warn("The response inner data is missing!");return}a=g[1]}if(a=d.Hooks.applyFilters("asl/search/html",a),e.n("resdrg").html(""),e.n("resdrg").html(a),e.n("resdrg").find(".asl_keyword").on("click",function(){e.n("text").val(u()(this).html()),e.n("container").find("input.orig").val(u()(this).html()).trigger("keydown"),e.n("container").find("form").trigger("submit",["ajax"]),e.search()}),e.nodes.items=e.n("resultsDiv").find(".item"),e.addHighlightString(),e.gaEvent?.("search_end",{results_count:e.n("items").length}),e.gaPageview?.(e.n("text").val()),e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;e.hideLoader(),e.showResults(),e.scrollToResults(),e.lastSuccesfulSearch=e.n("searchsettings").find("form").serialize()+e.n("text").val().trim(),e.lastSearchData=n,e.updateHref(),e.n("items").length==0?e.n("showmore")!=null&&e.n("showmore").css("display","none"):e.n("showmore")!=null&&(e.n("showmore").css("display","block"),e.n("showmore").find("span").off(),e.n("showmore").find("span").on("click",function(){let h=e.o.trigger.click,g;h=="results_page"?g="?s="+(0,i.nicePhrase)(e.n("text").val()):h=="woo_results_page"?g="?post_type=product&s="+(0,i.nicePhrase)(e.n("text").val()):g=e.o.trigger.redirect_url.replace("{phrase}",(0,i.nicePhrase)(e.n("text").val())),e.o.overridewpdefault?e.o.override_method=="post"?(0,t.submitToUrl)(e.o.homeurl+g,"post",{asl_active:1,p_asl_data:e.n("searchsettings").find("form").serialize()}):location.href=e.o.homeurl+g+"&asl_active=1&p_asid="+e.o.id+"&p_asl_data=1&"+e.n("searchsettings").find("form").serialize():(0,t.submitToUrl)(e.o.homeurl+g,"post",{np_asl_data:e.n("searchsettings").find("form").serialize()})})),d.Hooks.applyFilters("asl/search/end",e,n)},fail:function(r){e.n("resdrg").html(""),e.n("resdrg").html('
The request failed. Please check your connection! Status: '+r.status+"
"),e.nodes.items=e.n("resultsDiv").find(".item"),e.hideLoader(),e.showResults(),e.scrollToResults()}})};if(window.ASL.cache.enabled&&window.ASL.cache.type==="super_file"){const r=(0,i.parse_str)(n.options),a=(0,i.md5)(0+e.n("text").val()+JSON.stringify(r)+"0").slice(0,14);if(window.ASL.cache.list.has(a)){fetch(window.ASL.cache.url+a+".json?t="+Y.cache.timestamp).then(h=>{if(!h.ok)throw new Error("Cache response not ok");return h.json()}).then(h=>{const g=d.Hooks.applyFilters("asl/search/html",h.html??"");if(e.n("resdrg").html(""),e.n("resdrg").html(g),e.nodes.items=e.n("resultsDiv").find(".item"),e.addHighlightString(),e.gaEvent?.("search_end",{results_count:e.n("items").length}),ee(e.n("text").val(),e.o.id,e.n("searchsettings").find("input[name=device]").val()||"desktop",h.full_results_count??0,Y.statistics?.uid??0,1),e.isRedirectToFirstResult()){e.doRedirectToFirstResult();return}e.hideLoader(),e.showResults(),e.scrollToResults(),e.lastSuccesfulSearch=e.n("searchsettings").find("form").serialize()+e.n("text").val().trim(),e.lastSearchData=n,e.updateHref()}).catch(()=>{window.ASL.initCache(!0),o()});return}}o()}};var oe=null,re;s.prototype.searchFor=function(e){typeof e<"u"&&this.n("text").val(e),this.n("textAutocomplete").val(""),this.search()},s.prototype.toggleSettings=function(e){typeof e<"u"?e=="show"?this.showSettings():this.hideSettings():parseInt(this.n("prosettings").data("opened"))===1?this.hideSettings():this.showSettings()},s.prototype.closeResults=function(e){typeof e<"u"&&e&&(this.n("text").val(""),this.n("textAutocomplete").val("")),this.hideResults(),this.n("proloading").css("display","none"),this.hideLoader(),this.searchAbort()},s.prototype.getStateURL=function(){let e,n;return e=location.href.split("p_asid")[0],e=e.replace("&asl_active=1",""),e=e.replace("?asl_active=1",""),e=e.slice(-1)=="?"?e.slice(0,-1):e,e=e.slice(-1)=="&"?e.slice(0,-1):e,n=e.indexOf("?")>1?"&":"?",e+n+"p_asid="+this.o.id+"&p_asl_data=1&"+this.n("searchsettings").find("form").serialize()},s.prototype.filtersInitial=function(){return this.n("searchsettings").find("input[name=filters_initial]").val()==1},s.prototype.filtersChanged=function(){return this.n("searchsettings").find("input[name=filters_changed]").val()==1};var ae=null,le;s.prototype.detectAndFixFixedPositioning=function(){let e=this,n=!1,o=e.n("search").get(0);for(;o;)if(o=o.parentElement,o!=null&&window.getComputedStyle(o).position==="fixed"){n=!0;break}n||e.n("search").css("position")=="fixed"?(e.n("resultsDiv").css("position")=="absolute"&&e.n("resultsDiv").css({position:"fixed","z-index":2147483647}),e.o.blocking||e.n("searchsettings").css({position:"fixed","z-index":2147483647})):(e.n("resultsDiv").css("position")=="fixed"&&e.n("resultsDiv").css("position","absolute"),e.o.blocking||e.n("searchsettings").css("position","absolute"))},s.prototype.fixResultsPosition=function(e=!1){let n=this,o=u()("body"),r=0,a=n.n("resultsDiv").css("position");if((u()._fn.bodyTransformY()!=0||o.css("position")!="static")&&(r=o.offset().top),u()._fn.bodyTransformY()!=0&&a=="fixed"&&(a="absolute",n.n("resultsDiv").css("position","absolute")),a=="fixed"&&(r=0),!(a!="fixed"&&a!="absolute")&&(e||n.n("resultsDiv").css("visibility")=="visible")){let h=n.n("search").offset(),g=0;if((u()._fn.bodyTransformX()!=0||o.css("position")!="static")&&(g=o.offset().left),typeof h<"u"){let _,S=0;(0,O.deviceType)()==="phone"?_=n.o.results.width_phone:(0,O.deviceType)()=="tablet"?_=n.o.results.width_tablet:_=n.o.results.width,_=="auto"&&(_=n.n("search").outerWidth()<240?240:n.n("search").outerWidth()),n.n("resultsDiv").css("width",(0,i.isNumeric)(_)?_+"px":_),n.o.resultsSnapTo=="right"?S=n.n("resultsDiv").outerWidth()-n.n("search").outerWidth():n.o.resultsSnapTo=="center"&&(S=Math.floor((n.n("resultsDiv").outerWidth()-parseInt(String(n.n("search").outerWidth())))/2)),n.n("resultsDiv").css({top:h.top+n.n("search").outerHeight(!0)-r+"px",left:h.left-S-g+"px"})}}},s.prototype.fixSettingsPosition=function(e=!1){let n=this,o=u()("body"),r=0,a=n.n("searchsettings").css("position");if((u()._fn.bodyTransformY()!=0||o.css("position")!="static")&&(r=o.offset().top),u()._fn.bodyTransformY()!=0&&a=="fixed"&&(a="absolute",n.n("searchsettings").css("position","absolute")),a=="fixed"&&(r=0),e||n.n("prosettings").data("opened")!=="0"){let h,g,_,S,F=0;(u()._fn.bodyTransformX()!=0||o.css("position")!="static")&&(F=o.offset().left),n.fixSettingsWidth(),n.n("prosettings").css("display")!="none"?h=n.n("prosettings"):h=n.n("promagnifier"),g=h.offset(),_=g.top+h.height()-2-r+"px",S=n.o.settingsimagepos=="left"?g.left:g.left+h.width()-n.n("searchsettings").width(),S=S-F+"px",n.n("searchsettings").css({display:"block",top:_,left:S})}},s.prototype.fixSettingsWidth=function(){},s.prototype.hideOnInvisibleBox=function(){let e=this;e.o.detectVisibility&&!e.n("search").hasClass("hiddend")&&(e.n("search").is(":hidden")||!e.n("search").is(":visible"))&&(e.hideSettings?.(),e.hideResults())};var ce=null,ue;s.prototype.initMagnifierEvents=function(){let e=this,n;e.n("promagnifier").on("click",function(o){if(e.keycode=o.keyCode||o.which,e.ktype=o.type,e.gaEvent?.("magnifier"),e.n("text").val().length>=e.o.charcount&&e.o.redirectOnClick&&e.o.trigger.click!=="first_result")return e.doRedirectToResults("click"),clearTimeout(n),!1;if(!(e.o.trigger.click=="ajax_search"||e.o.trigger.click=="first_result"))return!1;e.searchAbort(),clearTimeout(e.timeouts.search),e.n("proloading").css("display","none"),e.timeouts.search=setTimeout(function(){e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()!=e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader()?e.search():e.isRedirectToFirstResult()?e.doRedirectToFirstResult():e.n("proclose").css("display","block")},e.o.trigger.delay)})};var de=null;s.prototype.initInputEvents=function(){let e=this,n=!1,o=function(){e.n("text").off("mousedown touchstart keydown",o),n||(e._initFocusInput(),e.o.trigger.type&&e._initSearchInput(),e._initEnterEvent(),e._initFormEvent(),e.initAutocompleteEvent?.(),n=!0)};e.n("text").on("mousedown touchstart keydown",o,{passive:!0})},s.prototype._initFocusInput=function(){let e=this;e.n("text").on("click",function(n){if(n.stopPropagation(),n.stopImmediatePropagation(),u()(this).trigger("focus",[]),e.gaEvent?.("focus"),e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()==e.lastSuccesfulSearch)return!e.resultsOpened&&!e.usingLiveLoader()&&e.showResults(),!1}),e.n("text").on("focus input",function(n){e.searching||(u()(this).val()!=""?e.n("proclose").css("display","block"):e.n("proclose").css({display:"none"}))})},s.prototype._initSearchInput=function(){let e=this;e.n("text").on("input",function(n){if(e.keycode=n.keyCode||n.which,e.ktype=n.type,e.updateHref(),e.n("text").val().length=e.o.charcount&&a&&e.keycode==13&&(e.gaEvent?.("return"),e.o.redirectOnEnter?e.o.trigger.return!="first_result"?e.doRedirectToResults(e.ktype):e.search():e.o.trigger.return=="ajax_search"&&(e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()!=e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader())&&e.search(),clearTimeout(e.timeouts.search))})},s.prototype._initFormEvent=function(){let e=this;u()(e.n("text").closest("form").get(0)).on("submit",function(n,o){if(n.preventDefault(),(0,O.isMobile)())if(e.o.redirectOnEnter){let r=new Event("keyup");r.keyCode=r.which=13,e.n("text").get(0).dispatchEvent(r)}else e.search(),document?.activeElement?.blur();else typeof o<"u"&&o=="ajax"&&e.search()})},s.prototype.initNavigationEvents=function(){let e=this,n=function(o){let r=o.keyCode||o.which;if(u()(".item",e.n("resultsDiv")).length>0&&e.n("resultsDiv").css("display")!="none"&&e.o.resultstype=="vertical"){if(r==40||r==38){let a=e.n("resultsDiv").find(".item.hovered");if(e.n("text").trigger("blur",[]),a.length==0?e.n("resultsDiv").find(".item").first().addClass("hovered"):(r==40&&(a.next(".item").length==0?e.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):a.removeClass("hovered").next(".item").addClass("hovered")),r==38&&(a.prev(".item").length==0?e.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):a.removeClass("hovered").prev(".item").addClass("hovered"))),o.stopPropagation(),o.preventDefault(),!e.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,e.n("resultsDiv").get(0))){let h=e.n("resultsDiv").find(".resdrg .item.hovered").get(0);h!=null&&typeof h.scrollIntoView<"u"&&h.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}r==13&&e.n("resultsDiv").find(".item.hovered").length>0&&(o.stopPropagation(),o.preventDefault(),e.n("resultsDiv").find(".item.hovered a.asl_res_url").get(0).click())}};e.documentEventHandlers.push({node:document,event:"keydown",handler:n}),u()(document).on("keydown",n)},s.prototype.initOtherEvents=function(){let e=this,n,o;(0,O.isMobile)()&&(0,O.detectIOS)()&&e.n("text").on("touchstart",function(){e.savedScrollTop=window.scrollY,e.savedContainerTop=e.n("search").offset().top}),e.n("proclose").on(e.clickTouchend,function(r){r.preventDefault(),r.stopImmediatePropagation(),e.n("text").val(""),e.n("textAutocomplete").val(""),e.hideResults(),e.n("text").trigger("focus",[]),e.n("proloading").css("display","none"),e.hideLoader(),e.searchAbort(),u()(".asl_es_"+e.o.id).length>0?(e.showLoader(),e.liveLoad(".asl_es_"+e.o.id,e.getCurrentLiveURL(),!1)):e.o.resPage.useAjax&&(e.showLoader(),e.liveLoad(e.o.resPage.selector,e.getRedirectURL())),e.n("text").get(0).focus()}),(0,O.isMobile)()?(n=function(){e.orientationChange(),setTimeout(function(){e.orientationChange()},600)},e.documentEventHandlers.push({node:window,event:"orientationchange",handler:n}),u()(window).on("orientationchange",n)):(n=function(){e.resize()},e.documentEventHandlers.push({node:window,event:"resize",handler:n}),u()(window).on("resize",n,{passive:!0})),o=function(){e.scrolling(!1)},e.documentEventHandlers.push({node:window,event:"scroll",handler:o}),u()(window).on("scroll",o,{passive:!0}),(0,O.isMobile)()&&e.o.mobile.menu_selector!=""&&u()(e.o.mobile.menu_selector).on("touchend",function(){let r=this;setTimeout(function(){let a=u()(r).find("input.orig");a=a.length==0?u()(r).next().find("input.orig"):a,a=a.length==0?u()(r).parent().find("input.orig"):a,a=a.length==0?e.n("text"):a,e.n("search").inViewPort()&&a.get(0).focus()},300)}),(0,O.detectIOS)()&&(0,O.isMobile)()&&(0,O.isTouchDevice)()&&parseInt(e.n("text").css("font-size"))<16&&(e.n("text").data("fontSize",e.n("text").css("font-size")).css("font-size","16px"),e.n("textAutocomplete").css("font-size","16px"),u()("body").append(""))},s.prototype.orientationChange=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition()},s.prototype.resize=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition()},s.prototype.scrolling=function(e){let n=this;n.detectAndFixFixedPositioning(),n.hideOnInvisibleBox(),n.fixSettingsPosition(e),n.fixResultsPosition(e)};var fe;s.prototype.initResultsEvents=function(){let e=this;e.n("resultsDiv").css({opacity:"0"});let n=function(o){let r=o.keyCode||o.which,a=o.type;if(u()(o.target).closest(".asl_w").length==0&&(e.hideOnInvisibleBox(),a!="click"||a!="touchend"||r!=3)){if(!e.resultsOpened||!e.o.closeOnDocClick)return;e.dragging||(e.hideLoader(),e.searchAbort(),e.hideResults())}};e.documentEventHandlers.push({node:document,event:e.clickTouchend,handler:n}),u()(document).on(e.clickTouchend,n),e.n("resultsDiv").on("click",".results .item",function(){e.gaEvent?.("result_click",{result_title:u()(this).find("a.asl_res_url").text(),result_url:u()(this).find("a.asl_res_url").attr("href")})})};var he=null,pe;s.prototype.monitorTouchMove=function(){let e=this;e.dragging=!1,u()("body").on("touchmove",function(){e.dragging=!0}).on("touchstart",function(){e.dragging=!1})};var ge=null,me;s.prototype.init=function(e,n){return this.o={...this.o,...e},this.nodes={},this.nodes.search=u()(n),this.initNodeVariables(),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=!1,this.o.trigger.click="ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=!1,this.o.trigger.return="ajax_search")),this.monitorTouchMove(),this.initEvents(),this.n("s").trigger("asl_init_search_bar",[this.o.id,this.o.iid],!0,!0),this},s.prototype.n=function(e){if(typeof this.nodes[e]<"u")return this.nodes[e];switch(e){case"s":this.nodes[e]=this.nodes.search;break;case"container":this.nodes[e]=this.nodes.search.closest(".asl_w_container");break;case"searchsettings":this.nodes[e]=this.n("container").find(".asl_s");break;case"resultsDiv":this.nodes[e]=this.n("container").find(".asl_r");break;case"probox":this.nodes[e]=this.nodes.search.find(".probox");break;case"proinput":this.nodes[e]=this.nodes.search.find(".proinput");break;case"text":this.nodes[e]=this.nodes.search.find(".proinput input.orig");break;case"textAutocomplete":this.nodes[e]=this.nodes.search.find(".proinput input.autocomplete");break;case"proloading":this.nodes[e]=this.nodes.search.find(".proloading");break;case"proclose":this.nodes[e]=this.nodes.search.find(".proclose");break;case"promagnifier":this.nodes[e]=this.nodes.search.find(".promagnifier");break;case"prosettings":this.nodes[e]=this.nodes.search.find(".prosettings");break;case"settingsAppend":this.nodes[e]=u()("#wpdreams_asl_settings_"+this.o.id);break;case"resultsAppend":this.nodes[e]=u()("#wpdreams_asl_results_"+this.o.id);break;case"trythis":this.nodes[e]=u()("#asp-try-"+this.o.rid);break;case"hiddenContainer":this.nodes[e]=this.n("container").find(".asl_hidden_data");break;case"aspItemOverlay":this.nodes[e]=this.n("hiddenContainer").find(".asl_item_overlay");break;case"showmore":this.nodes[e]=this.n("resultsDiv").find(".showmore");break;case"items":this.nodes[e]=this.n("resultsDiv").find(".item").length>0?this.n("resultsDiv").find(".item"):this.n("resultsDiv").find(".photostack-flip");break;case"results":this.nodes[e]=this.n("resultsDiv").find(".results");break;case"resdrg":this.nodes[e]=this.n("resultsDiv").find(".resdrg");break}return this.nodes[e]},s.prototype.initNodeVariables=function(){let e=this;e.o.id=parseInt(e.nodes.search.data("id")),e.o.iid=parseInt(e.nodes.search.data("instance")),e.o.rid=e.o.id+"_"+e.o.iid,e.fixClonedSelf()},s.prototype.initEvents=function(){this.initSettingsSwitchEvents?.(),this.initOtherEvents(),this.initMagnifierEvents(),this.initInputEvents()};var _e=null,ve;s.prototype.initResults=function(){this.resultsInitialized||(this.initResultsBox(),this.initResultsEvents(),this.initNavigationEvents?.())},s.prototype.initResultsBox=function(){let e=this;e.initResultsAnimations(),(0,O.isMobile)()&&e.o.mobile.force_res_hover==1?(e.o.resultsposition="hover",e.nodes.resultsDiv=e.n("resultsDiv").clone(),u()("body").append(e.nodes.resultsDiv),e.nodes.resultsDiv.css({position:"absolute"}),e.detectAndFixFixedPositioning()):e.o.resultsposition=="hover"&&e.n("resultsAppend").length<=0?(e.nodes.resultsDiv=e.n("resultsDiv").clone(),u()("body").append(e.n("resultsDiv"))):(e.o.resultsposition="block",e.n("resultsDiv").css({position:"static"}),e.n("resultsAppend").length>0&&(e.n("resultsAppend").find(".asl_w").length>0?e.nodes.resultsDiv=e.n("resultsAppend").find(".asl_w"):(e.nodes.resultsDiv=e.n("resultsDiv").clone(),e.nodes.resultsAppend.append(e.n("resultsDiv"))))),e.nodes.showmore=e.n("resultsDiv").find(".showmore"),e.nodes.items=e.n("resultsDiv").find(".item").length>0?e.n("resultsDiv").find(".item"):e.n("resultsDiv").find(".photostack-flip"),e.nodes.results=e.n("resultsDiv").find(".results"),e.nodes.resdrg=e.n("resultsDiv").find(".resdrg"),e.n("resultsDiv").get(0).id=e.n("resultsDiv").get(0).id.replace("__original__",""),e.detectAndFixFixedPositioning(),e.resultsInitialized=!0},s.prototype.initResultsAnimations=function(){this.n("resultsDiv").css({"-webkit-animation-duration":this.resAnim.duration+"ms","animation-duration":this.resAnim.duration+"ms"})};var ye=null,we;s.prototype.autocompleteGoogleOnly=function(){const e=this,n=String(e.n("text").val());if(e.n("text").val()==""){e.n("textAutocomplete").val("");return}let o=String(e.n("textAutocomplete").val());if(o!=""&&o.indexOf(n)==0)return;e.n("textAutocomplete").val("");let r=e.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(a){e.n("searchsettings").find('input[name="'+a+'"]').length>0&&String(e.n("searchsettings").find('input[name="'+a+'"]').val()).length>1&&(r=String(e.n("searchsettings").find('input[name="'+a+'"]').val()))}),String(e.n("text").val()).length>=e.o.autocomplete.trigger_charcount&&u().fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:n,hl:r,nolabels:"t",client:"hp",ds:""},success:function(a){if(a[1].length>0){let h=a[1][0][0].replace(/(<([^>]+)>)/ig,"");h=u()("