(()=>{(()=>{"use strict";let m=document.querySelector("html"),y=document.querySelector("body"),h=[];if(wpa.lang&&(m.getAttribute("lang")||(m.setAttribute("lang",wpa.lang),(wpa.errors||wpa.tracking)&&(h.push("html-lang"),console.log("HTML language set by WP Accessibility")))),wpa.dir&&!m.getAttribute("dir")&&wpa.dir!=="ltr"&&(m.setAttributeattr("dir",wpa.dir),(wpa.errors||wpa.tracking)&&(h.push("html-lang-direction"),console.log("HTML language direction set by WP Accessibility"))),wpa.continue){let c=document.querySelectorAll(".wp-block-post-excerpt__more-link");c.length!==0&&c.forEach(t=>{if(!t.hasAttribute("aria-describedby")){let o=t.closest(".wp-block-post"),d=o.getAttribute("class");d=d.replaceAll(" ","-");let i=o.querySelector(".wp-block-post-title");i&&(i.hasAttribute("id")?d=i.getAttribute("id"):i.setAttribute("id",d),t.setAttribute("aria-describedby",d),(wpa.errors||wpa.tracking)&&console.log("Continue Reading link description set by WP Accessibility"))}})}let A=document.querySelector('meta[name="viewport"]');if(A&&wpa.viewport){let c=A.getAttribute("content"),t=A.getAttribute("content");c.search(/user-scalable=no/g)&&(t=c.replace("user-scalable=no","user-scalable=yes"),A.setAttribute("content",t),(wpa.errors||wpa.tracking)&&t!=c&&(h.push("viewport-scalable"),console.log("Viewport made scalable by WP Accessibility"))),c.search(/maximum-scale=1/g)&&(t=c.replace("maximum-scale=1","maximum-scale=5"),t=t.replace("maximum-scale=0","maximum-scale=5"),A.setAttribute("content",t),(wpa.errors||wpa.tracking)&&t!=c&&(h.push("viewport-maxscale"),console.log("Viewport maximum scale set by WP Accessibility")))}if(wpa.skiplinks.enabled&&(y.insertAdjacentHTML("afterbegin",wpa.skiplinks.output),(wpa.errors||wpa.tracking)&&(h.push("skiplinks"),console.log("Skip links added by WP Accessibility"))),wpa.current){let c=document.querySelectorAll(".current-menu-item a, .current_page_item a");c.length!==0&&(c.forEach(t=>{t.setAttribute("aria-current","page")}),(wpa.errors||wpa.tracking)&&(h.push("aria-current"),console.log("ARIA current added by WP Accessibility")))}if(wpa.labels&&["s","author","email","url","comment"].forEach(t=>{let o,d,i,a,e,r,u,s,n,l;t=="comment"?o=document.querySelectorAll("textarea[name="+t+"]"):o=document.querySelectorAll("input[name="+t+"]:not(#adminbar-search)"),o.length!==0&&o.forEach(b=>{b.length!==0&&(d=b.getAttribute("id"),i=b.closest("label"),a=b.getAttribute("aria-label"),e=b.getAttribute("aria-labelledby"),r={},e&&(r=document.getElementById(e)),u=!(a==null||a==""||typeof a>"u"),s=!(e==null||e==""||typeof e>"u"),(!u&&!s||!u&&s&&!r)&&(d?(n=document.querySelector("label[for="+d+"]"),n&&(l=n.innerText,n&&!l&&(n.innerText=wpa.wpalabels[t],(wpa.errors||wpa.tracking)&&(h.push(["empty-label",wpa.wpalabels[t]]),console.log("Empty label on "+wpa.wpalabels[t]+" added by WP Accessibility")))),!n&&!i&&(b.insertAdjacentHTML("beforebegin","<label for='"+d+"' class='wpa-screen-reader-text'>"+wpa.wpalabels[t]+"</label>"),(wpa.errors||wpa.tracking)&&(h.push(["explicit-label",wpa.wpalabels[t]]),console.log("Explicit label on "+wpa.wpalabels[t]+" added by WP Accessibility")))):i||(b.setAttribute("id","wpa_label_"+t),b.insertAdjacentHTML("beforebegin","<label for='wpa_label_"+t+"' class='wpa-screen-reader-text'>"+wpa.wpalabels[t]+"</label>"),(wpa.errors||wpa.tracking)&&(h.push(["implicit-label",wpa.wpalabels[t]]),console.log("Implicit label on "+wpa.wpalabels[t]+" added by WP Accessibility")))))})}),wpa.titles){let c=0,t=0,o=0,d=!1,i=document.querySelectorAll("img, a, input, textarea, select, button");i.length!==0&&(i.forEach(a=>{let e=a.getAttribute("title");if(a.classList.contains("nturl")&&(d=!0),e&&e!=="")switch(a.tagName){case"IMG":let r=a.getAttribute("alt");e=a.getAttribute("title"),!r||r===""?(a.setAttribute("alt",e),a.removeAttribute("title")):e===r&&a.removeAttribute("title"),c++;break;case"A":case"BUTTON":let u=L(a);if(!u||u===""){let E=a.getAttribute("aria-label");(!E||E==="")&&(a.setAttribute("aria-label",e),d||a.removeAttribute("title"))}else a.removeAttribute("title");t++;break;case"INPUT":case"SELECT":case"TEXTAREA":let s=a.getAttribute("aria-label"),n=a.getAttribute("aria-labelledby"),l=n?document.getElementById(n):!1,b=a.getAttribute("id"),g=b?document.querySelector('label[for="'+b+'"]'):!1,w=a.closest("label"),f=!!(s&&s!==""),p=!!(g&&L(g)!==""),x=!!(w&&L(w)!==""),k=!!(l&&L(l)!=="");f||p||x||k||a.setAttribute("aria-label",e),a.removeAttribute("title"),o++;break}}),(wpa.errors||wpa.tracking)&&(c>0&&(h.push(["images-titles",c]),console.log(c+" title attributes removed from images by WP Accessibility")),t>0&&(h.push(["control-titles",t]),console.log(t+" title attributes removed from links and buttons by WP Accessibility")),o>0&&(h.push(["input-titles",o]),console.log(o+" title attributes removed from input fields by WP Accessibility"))))}if(wpa.target){let c=document.querySelectorAll("a:not(.wpa-allow-target)"),t=0;c.length!==0&&(c.forEach(o=>{let d=o.getAttribute("target"),i=o.getAttribute("href");if(d)if(i.startsWith("#"))o.removeAttribute("target");else try{new URL(i).hostname.includes("facebook")||(o.removeAttribute("target"),t++)}catch(a){console.log("href value is not a URL or a fragment:",i)}}),t>0&&(wpa.errors||wpa.tracking)&&(h.push(["link-targets",t]),console.log(t+" target attributes removed from links by WP Accessibility")))}if(wpa.tabindex){let c=document.querySelectorAll("input,a[href],select,textarea,button"),t=0;c.length!==0&&(c.forEach(e=>{e.getAttribute("tabindex")&&(e.removeAttribute("tabindex"),t++)}),t>0&&(wpa.errors||wpa.tracking)&&(h.push(["control-tabindex",t]),console.log(t+" tabindex attributes removed from links, buttons and inputs by WP Accessibility")));let o=document.querySelectorAll('[role="button"]:not([tabindex]):not(a):not(button)'),d=document.querySelectorAll('a[role="button"]:not([tabindex]):not([href])'),i=document.querySelectorAll('[role="link"]:not([tabindex]):not(a)'),a=document.querySelectorAll("a:not([href]):not([tabindex])");o.length!==0&&(o.forEach(e=>{e.setAttribute("tabindex","0"),e.classList.add("wpa-focusable")}),o.length>0&&(wpa.errors||wpa.tracking)&&(h.push(["button-add-tabindex",o.length]),console.log(o.length+" tabindex attributes added to divs with the button role by WP Accessibility"))),d!==0&&(d.forEach(e=>{e.setAttribute("tabindex","0"),e.classList.add("wpa-focusable")}),d.length>0&&(wpa.errors||wpa.tracking)&&(h.push(["link-add-tabindex",d.length]),console.log(d.length+" tabindex attributes added to anchor elements with the button role and no href value by WP Accessibility"))),i!==0&&(i.forEach(e=>{e.setAttribute("tabindex","0"),e.classList.add("wpa-focusable")}),i.length>0&&(wpa.errors||wpa.tracking)&&(h.push(["fakelink-add-tabindex",i.length]),console.log(i.length+" tabindex attributes added to elements with the link role not using the a element by WP Accessibility"))),a!==0&&(a.forEach(e=>{e.setAttribute("tabindex","0"),e.classList.add("wpa-focusable")}),a.length>0&&(wpa.errors||wpa.tracking)&&(h.push(["links-add-tabindex",a.length]),console.log(a.length+" tabindex attributes added to a with no href attribute by WP Accessibility")))}if(wpa.url!=="disabled"){let o=function(e,r,u="event"){e=JSON.stringify(e);let s=new FormData;s.append("action",wpa.action),s.append("security",wpa.security),s.append("stats",e),s.append("post_id",wpa.post_id),s.append("title",r),s.append("type",u),fetch(wpa.ajaxurl,{method:"POST",body:s})};class c{constructor(r){var u=Array.prototype.forEach,s=Array.prototype.map;this.each=function(n,l,b){if(n!=null){if(u&&n.forEach===u)n.forEach(l,b);else if(n.length===+n.length){for(var g=0,w=n.length;g<w;g++)if(JSON.stringify(l.call(b,n[g],g,n))==="{}")return}else for(var f in n)if(n.hasOwnProperty(f)&&JSON.stringify(l.call(b,n[f],f,n))==="{}")return}},this.map=function(n,l,b){var g=[];return n==null?g:s&&n.map===s?n.map(l,b):(this.each(n,function(w,f,p){g[g.length]=l.call(b,w,f,p)}),g)},r&&(this.hasher=r)}get(){let r=[];r.push(navigator.userAgent),r.push([screen.height,screen.width,screen.colorDepth].join("x")),r.push(new Date().getTimezoneOffset()),r.push(!!window.sessionStorage),r.push(!!window.localStorage);var u=this.map(navigator.plugins,function(s){var n=this.map(s,function(l){return[l.type,l.suffixes].join("~")}).join(",");return[s.name,s.description,n].join("::")},this).join(";");return r.push(u),this.hasher?this.hasher(r.join("###"),31):this.murmurhash3_32_gc(r.join("###"),31)}murmurhash3_32_gc(r,u){let s,n,l,b,g,w,f,p;for(s=r.length&3,n=r.length-s,l=u,g=3432918353,w=461845907,p=0;p<n;)f=r.charCodeAt(p)&255|(r.charCodeAt(++p)&255)<<8|(r.charCodeAt(++p)&255)<<16|(r.charCodeAt(++p)&255)<<24,++p,f=(f&65535)*g+(((f>>>16)*g&65535)<<16)&4294967295,f=f<<15|f>>>17,f=(f&65535)*w+(((f>>>16)*w&65535)<<16)&4294967295,l^=f,l=l<<13|l>>>19,b=(l&65535)*5+(((l>>>16)*5&65535)<<16)&4294967295,l=(b&65535)+27492+(((b>>>16)+58964&65535)<<16);switch(f=0,s){case 3:f^=(r.charCodeAt(p+2)&255)<<16;case 2:f^=(r.charCodeAt(p+1)&255)<<8;case 1:f^=r.charCodeAt(p)&255,f=(f&65535)*g+(((f>>>16)*g&65535)<<16)&4294967295,f=f<<15|f>>>17,f=(f&65535)*w+(((f>>>16)*w&65535)<<16)&4294967295,l^=f}return l^=r.length,l^=l>>>16,l=(l&65535)*2246822507+(((l>>>16)*2246822507&65535)<<16)&4294967295,l^=l>>>13,l=(l&65535)*3266489909+(((l>>>16)*3266489909&65535)<<16)&4294967295,l^=l>>>16,l>>>0}}let t=new c().get(),d=document.querySelector(".toggle-contrast");d&&d.addEventListener("click",function(){let e;this.getAttribute("data-id")=="is_normal_contrast"?e={contrast:"disabled"}:e={contrast:"enabled"},o(e,t)});let i=document.querySelector(".toggle-fontsize");i&&i.addEventListener("click",function(){let e;this.getAttribute("data-id")=="is_normal_fontsize"?e={fontsize:"disabled"}:e={fontsize:"enabled"},o(e,t)}),v(".wpa-ld button").then(e=>{e.addEventListener("click",function(r){if(e.getAttribute("aria-expanded")==="true"){let l={longdesc:e.closest("div").getAttribute("class").replace("wpa-ld wp-image-","")};o(l,t)}})});let a=document.querySelectorAll(".wpa-alt button");a.length>0&&a.forEach(e=>{e.addEventListener("click",function(r){if(e.getAttribute("aria-expanded")==="true"){let l={alttext:e.closest("div").getAttribute("class").replace("wpa-alt wp-image-","")};o(l,t)}})}),wpa.tracking&&h.length>=1&&o(h,wpa.url,"view")}if(wpa.underline.enabled){let c=document.querySelectorAll(wpa.underline.target+":not(nav "+wpa.underline.target+"):not(#wpadminbar a), .wpa-focusable[role=link]");c.length>0&&c.forEach(t=>{let o=t.style.outlineWidth,d=t.style.outlineOffset,i=t.style.color,a=t.style.outlineColor;t.style.textDecoration="underline",t.addEventListener("mouseenter",function(){this.style.textDecoration="none"}),t.addEventListener("mouseleave",function(){this.style.textDecoration="underline"}),t.addEventListener("focusin",function(){let e="2px";o=="2px"&&(e="4px"),this.style.outlineWidth=e,this.style.outlineColor=i,this.style.outlineOffset="2px"}),t.addEventListener("focusout",function(){this.style.outlineWidth=o,this.style.outlineColor=a,this.style.outlineOffset=d})})}if(wpa.videos){let c=matchMedia("(prefers-reduced-motion)"),t="false",o=document.querySelectorAll("video[autoplay]:not([controls])");o.length>0&&o.forEach(d=>{c.matches&&(d.pause(),t="true");let i=d.parentElement,a=document.createElement("button"),e=document.createElement("span"),r=document.createElement("span");a.setAttribute("type","button"),a.classList.add("wpa-video"),a.setAttribute("aria-pressed",t),e.classList.add("dashicons-controls-pause","dashicons"),e.setAttribute("aria-hidden","true"),r.classList.add("screen-reader-text"),r.innerText=wpa.pause,a.append(e,r),i.append(a),a.addEventListener("click",function(){let u=this.getAttribute("aria-pressed");console.log(u),u==="true"?(d.play(),this.setAttribute("aria-pressed","false")):(d.pause(),this.setAttribute("aria-pressed","true"))})})}if(wpa.alt){let c=wpa.altSelector?wpa.altSelector:'.hentry img[alt]:not([alt=""]), .comment-content img[alt]:not([alt=""]), #content img[alt]:not([alt=""]),.entry-content img[alt]:not([alt=""])',t=document.querySelectorAll(c),o=(d,i)=>{d.parentElement.insertBefore(i,d),i.appendChild(d)};t.forEach(d=>{let i=d,a=i.closest("a"),e=i.closest("button"),r=!!a,u=!!e,s=i.width,n=i.height;if((s||n)&&(s=s||56,n=n||56,n*s<150*300))return;let l=i.getAttribute("alt"),b=[...i.classList];i.setAttribute("class","");let g=document.createElement("div");g.classList.add("wpa-alt"),o(r||u?r?a:e:i,g),b.forEach(p=>{g.classList.add(p)}),g.insertAdjacentHTML("afterbegin",'<button aria-expanded="false" type="button" class="wpa-toggle">alt</button>'),g.insertAdjacentHTML("beforeend",'<div class="wpa-alt-text"></div>');let w=g.querySelector(".wpa-alt-text");w.style.display="none",w.innerText=l,g.querySelector("button").addEventListener("click",function(p){w.checkVisibility()?(this.setAttribute("aria-expanded","false"),w.style.display="none"):(this.setAttribute("aria-expanded","true"),w.style.display="block")})})}if(wpa.ldType){let o=function(i){let a=i.getAttribute("class"),e=i.getAttribute("id"),r;e&&e.includes("longdesc")?r=e.replace("longdesc-return-",""):((a===null||a==="")&&(parent=i.closest(".wpa-alt"),a=parent.getAttribute("class").replace("wpa-alt ","")),r=a.replace("wp-image-",""));let u=wpa.restUrl+"/"+r;fetch(u).then(s=>s.json()).then(s=>{let n=s.description.rendered;if(n=n.replace(/(<([^>]+)>)/gi,"").trim(),n!==""){let l=new URL(wpa.ldHome);l.searchParams.set("longdesc",r),l.searchParams.set("p",r),l.toString(),d(i,r,l,n)}}).catch(s=>{console.log(s)})},d=function(i,a,e,r){let u=document.createElement("div");u.classList.add("wpa-ld");let s=i.getAttribute("alt");s===""&&(s="<code>"+i.getAttribute("src").replace(wpa.ldHome,"")+"</code>");let n=document.body.className.split(/\s+/),l="";n.forEach(p=>{p.match(/postid-/gi)&&(l=p.replace("postid-","",p)),p.match(/page-id-/gi)&&(l=p.replace("page-id-","",p))});let b=new URL(e);b.searchParams.set("referrer",l),b.toString(),[...i.classList].forEach(p=>{u.classList.add(p)}),c(i,u),i.setAttribute("alt",""),i.setAttribute("class","");let w=document.createElement("a");w.setAttribute("href",b),w.classList.add("longdesc-link");let f=document.createElement("span");if(f.classList.add("screen-reader-text"),f.textContent=" of "+s,w.textContent="Description",w.appendChild(f),wpa.ldType==="link")u.insertAdjacentElement("beforeend",w);else{u.insertAdjacentHTML("beforeend",'<button aria-expanded="false" class="wpa-toggle">'+wpa.ldText+"</button>"),u.insertAdjacentHTML("beforeend",'<div class="longdesc"></div>');let p=u.querySelector(".longdesc");p.style.display="none",fetch(e).then(x=>{if(x.ok)return x.text();p.insertAdjacentHTML("beforeend",r)}).then(x=>{let E=new DOMParser().parseFromString(x,"text/html");p.insertAdjacentElement("beforeend",E.querySelector("#desc_"+a))}),u.querySelector("button").addEventListener("click",function(x){p.checkVisibility()?(this.setAttribute("aria-expanded","false"),p.style.display="none"):(this.setAttribute("aria-expanded","true"),p.style.display="block")})}},c=(i,a)=>{i.parentElement.insertBefore(a,i),a.appendChild(i)},t=document.querySelectorAll("img[longdesc]");if(wpa.ldType==="link"){t.length>0&&t.forEach(a=>{let e=document.createElement("div");e.classList.add("wpa-ld");let r=a.getAttribute("longdesc"),u=a.getAttribute("alt"),s=[...a.classList];c(a,e),s.forEach(b=>{e.classList.add(b)}),a.setAttribute("class","");let n=document.createElement("a");n.setAttribute("href",r),n.classList.add("longdesc-link");let l=document.createElement("span");l.classList.add("screen-reader-text"),l.textContent=" of "+u,n.textContent="Description",n.appendChild(l),a.insertAdjacentElement("afterend",n)});let i=document.querySelectorAll("figure.is-style-longdesc");i.length>0&&i.forEach(a=>{let e=a.querySelector("img");o(e)})}else{t.length>0&&t.forEach(a=>{o(a)});let i=document.querySelectorAll("figure.is-style-longdesc");i.length>0&&i.forEach(a=>{let e=a.querySelector("img");o(e)})}}})();function L(m){let y="";if(m.nodeType===3||m.nodeType===4)y=m.nodeValue;else if(m.nodeType===1&&(m.tagName.toLowerCase()=="img"||m.tagName.toLowerCase()=="area"||m.tagName.toLowerCase()=="input"&&m.getAttribute("type")&&m.getAttribute("type").toLowerCase()=="image"))y=m.getAttribute("alt")||"";else if(m.nodeType===1&&!m.tagName.match(/^(script|style)$/i)){let h=m.childNodes;for(let A=0,c=h.length;A<c;A++){let t=m.getAttribute("aria-label");y+=t||L(h[A])+" "}}return y}function v(m){return new Promise(y=>{if(document.querySelector(m))return y(document.querySelector(m));let h=new MutationObserver(A=>{document.querySelector(m)&&(h.disconnect(),y(document.querySelector(m)))});h.observe(document.body,{childList:!0,subtree:!0})})}})();
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=116)}({116:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},f=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var h=function(){return new f},p=h();p.addAction,p.addFilter,p.removeAction,p.removeFilter,p.hasAction,p.hasFilter,p.removeAllActions,p.removeAllFilters,p.doAction,p.applyFilters,p.currentAction,p.currentFilter,p.doingAction,p.doingFilter,p.didAction,p.didFilter,p.actions,p.filters;function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.isEditMode=!1,window.eael=window.ea={hooks:h(),isEditMode:!1,elementStatusCheck:function(e){return!(!window.eaElementList||!(e in window.eaElementList))||(window.eaElementList=y(y({},window.eaElementList),{},g({},e,!0)),!1)},debounce:function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},eael.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&eael.hooks.doAction("eventCalendar.reinit"),s.length&&eael.hooks.doAction("testimonialSlider.reinit"),l.length&&eael.hooks.doAction("teamMemberCarousel.reinit"),c.length&&eael.hooks.doAction("postCarousel.reinit"),u.length&&eael.hooks.doAction("logoCarousel.reinit"),d.length&&eael.hooks.doAction("twitterCarousel.reinit")}));var w,b=function(e){void 0===window.eaelPreventResizeOnClick&&window.dispatchEvent(new Event("resize")),(e="object"===v(e)?e:jQuery(e)).find(".swiper-wrapper").each((function(){var e=jQuery(this).css("transform");jQuery(this).css("transform",e)}))};eael.hooks.addAction("ea-advanced-tabs-triggered","ea",b),eael.hooks.addAction("ea-advanced-accordion-triggered","ea",b),jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.eael.isEditMode=elementorFrontend.isEditMode(),eael.hooks.doAction("init"),eael.isEditMode&&eael.hooks.doAction("editMode.init")})),function(e){eael.getToken=function(){localize.nonce&&!eael.noncegenerated&&e.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce,eael.noncegenerated=!0)}})},eael.sanitizeURL=function(e){if(e.startsWith("/")||e.startsWith("#"))return e;try{var t=new URL(e);if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(t.protocol))throw new Error("Invalid protocol");return t.toString()}catch(e){return console.error("Error sanitizing URL:",e.message),"#"}};var t=!0;window.addEventListener("hashchange",(function(){if(t){var n=window.location.hash.substr(1);"undefined"!==(n="safari"===n?"eael-safari":n)&&n&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(n)&&e("#"+n).trigger("click")}})),e("a").on("click",(function(n){var r,o=e(this).attr("href");(r=(o=void 0===o?"":o).startsWith("#"))||(r=(o=o.replace(localize.page_permalink,"")).startsWith("#")),r&&(t=!1,setTimeout((function(){t=!0}),100));try{if(o.startsWith("#!")){var i=o.replace("#!","#");e(i).trigger("click")}else if(r&&(e(o).hasClass("eael-tab-item-trigger")||e(o).hasClass("eael-accordion-header"))&&(e(o).trigger("click"),void 0!==o&&o)){var a=e(o).closest(".eael-advance-tabs");if(a.length>0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r<i)?n.val(i):r>0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(e(this).length<1)return!1;var n=e(this).offset().top,r=n+e(this).outerHeight()/t,o=e(window).scrollTop(),i=o+e(window).height()/t;return r>o&&n<i},e(document).ready((function(){var e=new URLSearchParams(location.search);if(e.has("popup-selector")&&(e.has("eael-lostpassword")||e.has("eael-resetpassword"))){var t=e.get("popup-selector");t.length&&/^[A-Za-z.#][A-Za-z0-9_:.#\s-]*$/.test(t)&&(t=t.replace(/_/g," "),setTimeout((function(){jQuery(t).trigger("click")}),300))}})),e(document).on("click",".eael-onpage-edit-template",(function(){var t=e(this),n=t.data("eael-template-id"),r=t.data("page-id"),o=t.data("mode");"edit"===o?(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(n)}).then((function(){t.data("mode","save"),t.find("span").text("Save & Back"),t.find("i").addClass("eicon-arrow-left").removeClass("eicon-edit"),t.closest(".eael-onpage-edit-template-wrapper").addClass("eael-onpage-edit-activate").parent().addClass("eael-widget-otea-active"),parent.window.$e.internal("panel/state-ready")}))):"save"===o&&(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(r),mode:"save",shouldScroll:!1}).then((function(){parent.window.$e.internal("panel/state-ready"),t.data("mode","edit")})))}))}(jQuery)}});
window.paElementsHandler={isElementAlreadyExists:function(n){return!!(window.paElementList&&n in window.paElementList)||!(window.paElementList={...window.paElementList,[n]:!0})}};
(function(){var statifyReq;try{statifyReq=new XMLHttpRequest();statifyReq.open('POST',statify_ajax.url,!0);statifyReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded;');statifyReq.send('_ajax_nonce='+statify_ajax.nonce+'&action=statify_track'+'&statify_referrer='+encodeURIComponent(document.referrer)+'&statify_target='+encodeURIComponent(location.pathname+location.search))}catch(e){}}());