USR_PREFS_CK_NAME="undefined"!=typeof USR_PREFS_CK_NAME?USR_PREFS_CK_NAME:"lwaio_consent_preferences",ACTED_CONSENT_CK_NAME="undefined"!=typeof ACTED_CONSENT_CK_NAME?ACTED_CONSENT_CK_NAME:"lwaio_consent_acted",EXP_CK_NAME="undefined"!=typeof EXP_CK_NAME?EXP_CK_NAME:"1 Year",function(e){"use strict";let t={set:function(e,t,o,i=""){let s="";if(o){let e=new Date;e.setTime(e.getTime()+24*o*60*60*1e3),s="; expires="+e.toGMTString()}i&&(i="; domain="+i),document.cookie=e+"="+t+s+"; path=/"+i},read:function(e){let t=e+"=",o=document.cookie.split(";"),i=o.length;for(let e=0;e<i;e++){let i=o[e];for(;" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},exists:function(e){return null!==this.read(e)},getallcookies:function(){let e=document.cookie.split(";"),t={},o=e.length;for(let i=0;i<o;i++){let o=e[i].split("=");t[(o[0]+"").trim()]=unescape(o[1])}return t},erase:function(e,t){t?this.set(e,"",-10,t):this.set(e,"",-10)}},o={bar_config:{},show_config:{},allowed_categories:[],set:function(e){if("function"!=typeof JSON.parse)return void console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it");this.settings=JSON.parse(e.settings),EXP_CK_NAME=this.settings.cookie_expiry,this.bar_elm=jQuery(this.settings.notify_div_id),this.show_again_elm=jQuery(this.settings.show_again_div_id),this.details_elm=this.bar_elm.find(".lwaio_messagebar_detail"),this.main_button=jQuery("#cookie_action_accept"),this.main_link=jQuery("#cookie_action_link"),this.reject_button=jQuery("#cookie_action_reject"),this.settings_button=jQuery("#cookie_action_settings"),this.save_button=jQuery("#cookie_action_save"),this.confirm_button=jQuery("#cookie_action_confirm"),this.cancel_button=jQuery("#cookie_action_cancel"),this.accept_all_button=jQuery("#cookie_action_accept_all"),this.configBar(),this.toggleBar(),this.attachEvents(),this.configButtons(),this.settings.auto_scroll&&window.addEventListener("scroll",o.acceptOnScroll,!1);let i=JSON.parse(t.read(USR_PREFS_CK_NAME)),s=t.read(ACTED_CONSENT_CK_NAME),n="";n=new CustomEvent("LwAioCookieConsentOnLoad",{detail:{lwaio_consent_preferences:i,lwaio_consent_acted:s}}),window.dispatchEvent(n)},attachEvents:function(){jQuery(".lwaio_action_button").click(function(e){e.preventDefault();let i="",s="",n="",a="",c=jQuery(this).attr("data-lwaio_action");if("accept_all"==c)o.enableAllCookies(),o.accept_all_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAcceptAll",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("accept"==c)o.accept_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("reject"==c){o.reject_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),a=t.read(ACTED_CONSENT_CK_NAME),t.erase(USR_PREFS_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnReject",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i);let e=t.getallcookies();"object"==typeof e&&null!==e&&jQuery.each(e,function(e,o){e!=ACTED_CONSENT_CK_NAME&&t.erase(e,"."+window.location.host)}),o.logConsent(c)}else"settings"==c?(o.bar_elm.slideUp(o.settings.animate_speed_hide),o.show_again_elm.slideUp(o.settings.animate_speed_hide)):"close"==c?o.displayHeader():"show_settings"==c?o.show_details():"hide_settings"==c?o.hide_details():"close_banner"==c&&(o.hideHeader(),o.accept_close(),"yes"!=(a=t.read(ACTED_CONSENT_CK_NAME))&&(s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i)))}),jQuery(".group-switch-buttons input").each(function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),"necessary"==e||jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio-consent-show-again",function(t){t.preventDefault(),jQuery(o.settings.notify_div_id).find("p.lwaio").show(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").show(),o.displayHeader(),e(this).hide()}),jQuery(document).on("click",".group-switch-buttons input",function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio_consent_tabs_overview",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_about").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_about").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_about").hide(),jQuery("#lwaio_consent_overview").show()}),jQuery(document).on("click","#lwaio_consent_tabs_about",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_overview").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_overview").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_overview").hide(),jQuery("#lwaio_consent_about").show()}),jQuery(document).on("click","#lwaio_consent_overview_cookie_container_types a",function(e){e.preventDefault();let t=jQuery(this),i=t.parent();i.find("a").removeClass("lwaio_consent_overview_cookie_container_type_selected"),i.find("a").css("border-right-color",o.settings.border_color),i.find("a").css("background-color",o.settings.background_color),t.addClass("lwaio_consent_overview_cookie_container_type_selected"),t.css("border-right-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color);let s=jQuery(this).attr("data-target"),n=i.siblings("#lwaio_consent_overview_cookie_container_type_details");n.find(".lwaio_consent_cookie_type_details").hide(),n.find("#"+s).show()})},configButtons:function(){this.settings_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.main_button.css("color",this.settings.button_link_color),this.main_button.css("background-color",this.settings.primary_color),this.accept_all_button.css("color",this.settings.button_link_color),this.accept_all_button.css("background-color",this.settings.primary_color),this.confirm_button.css("color",this.settings.button_link_color),this.confirm_button.css("background-color",this.settings.primary_color),this.main_link.css("color",this.settings.secondary_color),this.reject_button.css("display","inline-block"),this.reject_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.cancel_button.css("color",this.settings.button_link_color),this.cancel_button.css("display","inline-block"),this.cancel_button.css("background-color",this.settings.secondary_color),this.save_button.css("color",this.settings.button_link_color),this.save_button.css("background-color",this.settings.primary_color),this.details_elm.find("table.lwaio_consent_cookie_type_table tr").css("border-color",o.settings.border_color),this.details_elm.find(".lwaio_consent_cookie_type_intro").css("border-color",o.settings.border_color),this.details_elm.find("a").each(function(){jQuery(this).css("border-color",o.settings.border_color),jQuery(this).css("background-color",o.settings.background_color)}),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("border-right-color",o.settings.border_active_color),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("background-color",o.settings.background_active_color),this.details_elm.find("#lwaio_consent").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("border-bottom-color",o.settings.border_active_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("background-color",o.settings.background_active_color)},configBar:function(){this.bar_config={"background-color":this.settings.background,color:this.settings.text,"border-top":"1px solid "+this.settings.secondary_color},this.show_config={width:"auto","background-color":this.settings.background,color:this.settings.text,position:"fixed",opacity:this.settings.opacity,bottom:"0","border-top":"1px solid "+this.settings.secondary_color},"right"==this.settings.show_again_position?this.show_config.right=this.settings.show_again_margin+"%":this.show_config.left=this.settings.show_again_margin+"%",this.bar_config.position="fixed",this.bar_config.opacity=this.settings.opacity,this.bar_elm.find(".lwaio_messagebar_content").css("max-width","800px"),"bottom"==this.settings.banner_position?this.bar_config.bottom="0":this.bar_config.top="0",this.bar_elm.css(this.bar_config).hide(),this.show_again_elm.css(this.show_config).hide()},toggleBar:function(){t.exists(ACTED_CONSENT_CK_NAME)?this.hideHeader():(this.displayHeader(),this.settings.auto_hide&&setTimeout(function(){o.accept_close()},this.settings.auto_hide_delay))},accept_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},accept_all_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},reject_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),o.disableAllCookies(),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.decline_reload&&window.location.reload(!0),!1},logConsent:function(e){this.settings.logging_on&&jQuery.ajax({url:log_obj.ajax_url,type:"POST",data:{action:"lwaio_log_consent_action",lwaio_user_action:e,cookie_list:t.getallcookies()},success:function(e){}})},disableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="no",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!1);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},enableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="yes",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!0);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},show_details:function(){this.details_elm.show(),this.bar_elm.css("opacity",1),this.details_elm.css("border-top-color",o.settings.border_color),this.settings_button.attr("data-lwaio_action","hide_settings")},hide_details:function(){this.details_elm.hide(),this.bar_elm.css("opacity",o.settings.opacity),this.settings_button.attr("data-lwaio_action","show_settings")},displayHeader:function(e,t){this.bar_elm.show(),e&&(jQuery(o.settings.notify_div_id).find("p.lwaio").hide(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").hide()),this.show_again_elm.slideUp(this.settings.animate_speed_hide)},hideHeader:function(e){this.bar_elm.slideUp(this.settings.animate_speed_hide),e||this.show_again_elm.slideDown(this.settings.animate_speed_hide)},acceptOnScroll:function(){let i=e(window).scrollTop()/(e(document).height()-e(window).height());Math.round(100*i)>o.settings.auto_scroll_offset&&!t.exists(ACTED_CONSENT_CK_NAME)&&(o.accept_close(),window.removeEventListener("scroll",o.acceptOnScroll,!1),1==o.settings.auto_scroll_reload&&window.location.reload())}},i={blockingStatus:!0,scriptsLoaded:!1,set:function(e){"function"==typeof JSON.parse?this.cookies=JSON.parse(e.cookies):console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it")},removeCookieByCategory:function(){if(1==i.blockingStatus)for(let e in i.cookies){let s=i.cookies[e],n=s.lwaio_category_slug;if(-1===o.allowed_categories.indexOf(n)){let e=s.data;if(e&&0!=e.length)for(let o in e){let i=e[o];t.erase(i.name)}}}},runScripts:function(){let e=["iframe","IFRAME","EMBED","embed","OBJECT","object","IMG","img"],s=function(e){n.renderScripts(),a.renderSrcElement(),e(),i.scriptsLoaded=!0},n={scriptsDone:function(){let e=document.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),window.document.dispatchEvent(e)},seq:function(e,t,o){void 0===o&&(o=0),e[o](function(){++o===e.length?t():n.seq(e,t,o)})},insertScript:function(e,s){let n=["data-wpl-class","data-wpl-label","data-wpl-placeholder","data-wpl-script-type","data-wpl-src"],a=e.getAttribute("data-wpl-script-type"),c=e.getAttribute("data-wpl-element-position"),r=e.getAttribute("data-wpl-block"),l=document.createElement("script");l.type="text/plain",e.async&&(l.async=e.async),e.defer&&(l.defer=e.defer),e.src?(l.onload=s,l.onerror=s,l.src=e.src):l.textContent=e.innerText;let _=jQuery(e).prop("attributes"),d=_.length;for(let e=0;e<d;++e)"id"!==_[e].nodeName&&-1!==n.indexOf(_[e].nodeName)&&l.setAttribute(_[e].nodeName,_[e].value);!0===i.blockingStatus?("yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(a)||null==t.read(ACTED_CONSENT_CK_NAME)&&"false"===r)&&(l.setAttribute("data-wpl-consent","accepted"),l.type="text/javascript"):l.type="text/javascript",e.type!=l.type&&("head"===c?(document.head.appendChild(l),e.src||s(),e.parentNode.removeChild(e)):(document.body.appendChild(l),e.src||s(),e.parentNode.removeChild(e)))},renderScripts:function(){let e=document.querySelectorAll('script[data-wpl-class="wpl-blocker-script"]');if(e.length>0){let t,o=[];Array.prototype.forEach.call(e,function(e){t=e.getAttribute("type");e.tagName;o.push(function(t){n.insertScript(e,t)})}),n.seq(o,n.scriptsDone)}}},a={renderSrcElement:function(){let s=document.querySelectorAll('[data-wpl-class="wpl-blocker-script"]'),n=s.length;for(let a=0;a<n;a++){let n=s[a],c=n.tagName;if(-1!==e.indexOf(c)){let e=n.getAttribute("data-wpl-script-type"),s=n.getAttribute("data-wpl-block");!0===i.blockingStatus?"yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(e)||null!=t.read(ACTED_CONSENT_CK_NAME)&&"false"===s?this.replaceSrc(n):this.addPlaceholder(n):this.replaceSrc(n)}}},addPlaceholder:function(e){if(0===jQuery(e).prev(".wpl-iframe-placeholder").length){let t=e.getAttribute("data-wpl-placeholder"),o=e.getAttribute("width"),i=e.getAttribute("height");null==o&&(o=e.offsetWidth),null==i&&(i=e.offsetHeight);let s=/px/,n='<div style="width:'+(o=s.test(o)?o:o+"px")+"; height:"+(i=s.test(i)?i:i+"px")+';" class="wpl-iframe-placeholder"><div class="wpl-inner-text">'+t+"</div></div>";"IMG"!==e.tagName&&jQuery(n).insertBefore(e),e.removeAttribute("src"),e.style.display="none"}},replaceSrc:function(e){if(!e.hasAttribute("src")){let t=e.getAttribute("data-wpl-src");e.setAttribute("src",t),jQuery(e).prev(".wpl-iframe-placeholder").length>0&&jQuery(e).prev(".wpl-iframe-placeholder").remove(),e.style.display="block"}}};(function(){jQuery(document).on("click",".wpl_manage_current_consent",function(){o.displayHeader()})})(),s(i.removeCookieByCategory)}};e(document).ready(function(){"undefined"!=typeof lwaiobar_settings&&o.set({settings:lwaiobar_settings}),"undefined"!=typeof lwaios_list&&(i.set({cookies:lwaios_list}),i.runScripts())}),e(document).ready(function(){e(".lwaio-column").click(function(){e(".lwaio-column",this),e(this).children(".lwaio-columns").hasClass("active-group")||(e(".lwaio-columns").removeClass("active-group"),e(this).children(".lwaio-columns").addClass("active-group")),e(this).siblings(".description-container").hasClass("hide")&&(e(".description-container").addClass("hide"),e(this).siblings(".description-container").removeClass("hide"))})})}(jQuery);
(function($, elementor){
"use strict";
var JetMenuWidget={
init: function(){
var widgets={
'jet-mega-menu.default':JetMenuWidget.widgetMegaMenu,
'jet-custom-menu.default':JetMenuWidget.widgetCustomMenu,
'jet-mobile-menu.default':JetMenuWidget.widgetMobileMenu,
};
$.each(widgets, function(widget, callback){
elementor.hooks.addAction('frontend/element_ready/' + widget, callback);
});
},
widgetMegaMenu: function($scope){
let $megaMenu=$scope.find('.jet-mega-menu--location-elementor'),
$mobileMenu=$scope.find('.jet-mobile-menu');
if(JetMenuWidget.shouldSetIpadProCookie()){
document.cookie="is_ipad_pro=true; path=/";
location.reload();
return;
}
if($megaMenu[0]){
let settings=$megaMenu.data('settings');
$megaMenu.JetMegaMenu({
menuId: settings.menuId,
menuUniqId: settings.menuUniqId,
rollUp: settings.rollUp,
layout: settings.layout,
subEvent: settings.subEvent,
mouseLeaveDelay: settings.mouseLeaveDelay,
subTrigger: settings.subTrigger,
breakpoint: settings.breakpoint,
megaWidthType: settings.megaWidthType,
megaWidthSelector: settings.megaWidthSelector,
megaAjaxLoad: settings.megaAjaxLoad,
signatures: settings.signatures,
classes: {
instance: 'jet-mega-menu',
menuContainer: 'jet-mega-menu-container',
menuList: 'jet-mega-menu-list',
menuItem: 'jet-mega-menu-item',
menuItemLink: 'jet-mega-menu-item__link',
subMenuContainer: 'jet-mega-menu-sub-menu',
subMenuList: 'jet-mega-menu-sub-menu__list',
megaContainer: 'jet-mega-menu-mega-container',
}});
requestAnimationFrame(()=> {
window.dispatchEvent(new Event('resize') );
});
}
if($mobileMenu[0]){
let menuInstanceId=$mobileMenu.attr('id'),
menuId=$mobileMenu.data('menu-id')||false,
menuOptions=$mobileMenu.data('menu-options')||{};
window.jetMenu.createMobileRenderInstance(menuInstanceId, menuId, menuOptions);
}},
widgetCustomMenu: function($scope){
var $target=$scope.find('.jet-custom-nav'),
instance=null,
trigger=$target.data('trigger'),
targetType=trigger==='click' ? $target.data('target')||'item':null,
menuItem=null,
menuItemSelector=trigger==='click'&&targetType==='sub_icon'
? '.jet-dropdown-arrow'
: '.jet-custom-nav__item > a';
if(! $target.length){
return;
}
if(JetMenuWidget.mobileAndTabletcheck()){
$scope.on('touchstart', '.jet-custom-nav__item > a, .jet-custom-nav__item > a .jet-dropdown-arrow', touchStartItem);
$scope.on('touchend', '.jet-custom-nav__item > a, .jet-custom-nav__item > a .jet-dropdown-arrow', touchEndItem);
}else{
if(trigger==='click'){
$scope.on('click', menuItemSelector, toggleSubMenu);
$scope.on('mouseleave', '.jet-custom-nav__item', mouseLeaveHandler);
}else{
$scope.on('mouseenter mouseover', '.jet-custom-nav__item', mouseEnterHandler);
$scope.on('mouseleave', '.jet-custom-nav__item', mouseLeaveHandler);
}}
function toggleSubMenu(event){
const $this=$(event.currentTarget).closest('.jet-custom-nav__item');
if(! $this.hasClass('menu-item-has-children') ){
return;
}
event.preventDefault();
event.stopPropagation();
const isOpen=$this.hasClass('hover-state');
if($this.hasClass('hover-state') ){
$this.removeClass('hover-state');
}else{
$this.addClass('hover-state');
$this.siblings().removeClass('hover-state');
}
if($this.is('[aria-haspopup="true"]') ){
$this.attr('aria-expanded', isOpen ? 'false':'true');
}
$this.find('.jet-dropdown-arrow[aria-haspopup="true"]').attr('aria-expanded', isOpen ? 'false':'true');
}
function mouseEnterHandler(event){
menuItem=$(event.target).parents('.jet-custom-nav__item');
if(menuItem.is('[aria-haspopup="true"]') ){
menuItem.attr('aria-expanded', 'true');
}
menuItem.addClass('hover-state');
}
function mouseLeaveHandler(event){
const $this=$(event.currentTarget).closest('.jet-custom-nav__item');
const relatedTarget=event.relatedTarget;
if($this.has(relatedTarget).length > 0){
return;
}
menuItem=$this;
menuItem.removeClass('hover-state');
if($this.is('[aria-haspopup="true"]') ){
$this.attr('aria-expanded', 'false');
}
$this.find('.jet-dropdown-arrow[aria-haspopup="true"]').attr('aria-expanded', 'false');
}
function touchStartItem(event){
var $this=$(event.currentTarget).closest('.jet-custom-nav__item');
$this.data('offset', $this.offset().top);
$this.data('windowOffset', $(window).scrollTop());
}
function touchEndItem(event){
var $currentTarget,
$this,
$siblingsItems,
$link,
linkHref,
subMenu,
offset,
windowOffset;
event.preventDefault();
event.stopPropagation();
$currentTarget=$(event.currentTarget);
$this=$currentTarget.closest('.jet-custom-nav__item');
$siblingsItems=$this.siblings('.jet-custom-nav__item.menu-item-has-children');
$link=$('> a', $this);
linkHref=$link.attr('href');
subMenu=$('.jet-custom-nav__sub:first, .jet-custom-nav__mega-sub:first', $this);
offset=$this.data('offset');
windowOffset=$this.data('windowOffset');
if(offset!==$this.offset().top||windowOffset!==$(window).scrollTop()){
return false;
}
if($currentTarget.hasClass('jet-dropdown-arrow') ){
if(!subMenu[0]){
return false;
}
const isOpen=$this.hasClass('hover-state');
if(! $this.hasClass('hover-state') ){
$this.addClass('hover-state');
$siblingsItems.removeClass('hover-state').each(function(){
const $sibling=$(this);
if($sibling.is('[aria-haspopup="true"]') ){
$sibling.attr('aria-expanded', 'false');
}
$sibling.find('> a > .jet-dropdown-arrow[aria-haspopup="true"]').attr('aria-expanded', 'false');
});
$siblingsItems.removeClass('hover-state');
$('.jet-custom-nav__item.menu-item-has-children', $siblingsItems).removeClass('hover-state');
}else{
$this.removeClass('hover-state');
$('.jet-custom-nav__item.menu-item-has-children', $this).removeClass('hover-state');
}
if($this.is('[aria-haspopup="true"]') ){
$this.attr('aria-expanded', isOpen ? 'false':'true');
}
$this.find('> a > .jet-dropdown-arrow[aria-haspopup="true"]').attr('aria-expanded', isOpen ? 'false':'true');
}
if($currentTarget.hasClass('jet-custom-nav__item-link') ){
if('#'===linkHref){
if(! $this.hasClass('hover-state') ){
$this.addClass('hover-state');
$siblingsItems.removeClass('hover-state');
$('.jet-custom-nav__item.menu-item-has-children', $siblingsItems).removeClass('hover-state');
}else{
$this.removeClass('hover-state');
$('.jet-custom-nav__item.menu-item-has-children', $this).removeClass('hover-state');
}}else{
window.location=linkHref;
return false;
}}
}
var initSubMenuPosition=false;
function setSubMenuPosition(){
if(initSubMenuPosition){
$target.find('.jet-custom-nav__sub.inverse-side').removeClass('inverse-side');
initSubMenuPosition=false;
}
var subMenu=$('.jet-custom-nav__sub', $target),
$body=$('body'),
maxWidth=$body.outerWidth(true),
isMobile='mobile'===elementor.getCurrentDeviceMode();
if(isMobile){
return;
}
if(subMenu[0]){
subMenu.each(function(){
var $this=$(this),
subMenuOffsetLeft=$this.offset().left,
subMenuOffsetRight=subMenuOffsetLeft + $this.outerWidth(true),
subMenuPosition=$this.closest('.jet-custom-nav').hasClass('jet-custom-nav--dropdown-left-side') ? 'left-side':'right-side';
if('right-side'===subMenuPosition){
if(subMenuOffsetRight >=maxWidth){
$this.addClass('inverse-side');
$this.find('.jet-custom-nav__sub').addClass('inverse-side');
initSubMenuPosition=true;
}else if(subMenuOffsetLeft < 0){
$this.removeClass('inverse-side');
$this.find('.jet-custom-nav__sub').removeClass('inverse-side');
}}else{
if(subMenuOffsetLeft < 0){
$this.addClass('inverse-side');
$this.find('.jet-custom-nav__sub').addClass('inverse-side');
initSubMenuPosition=true;
}else if(subMenuOffsetRight >=maxWidth){
$this.removeClass('inverse-side');
$this.find('.jet-custom-nav__sub').removeClass('inverse-side');
}}
});
}}
setSubMenuPosition();
$(window).on('resize.JetCustomMenu orientationchange.JetCustomMenu', setSubMenuPosition);
var initMaxMegaMenuWidth=false;
function setMaxMegaMenuWidth(){
var megaMenu=$('.jet-custom-nav__mega-sub', $target),
$body=$('body'),
maxWidth=$body.outerWidth(true),
isMobile='mobile'===elementor.getCurrentDeviceMode();
if(initMaxMegaMenuWidth){
megaMenu.css({
'maxWidth': ''
});
initMaxMegaMenuWidth=false;
}
if(isMobile){
return;
}
if(megaMenu[0]){
megaMenu.each(function(){
var $this=$(this),
megaMenuTranslateX=$this.css('transform').replace(/,/g, "").split(" ")[4]||0,
megaMenuOffsetLeft=$this.offset().left - megaMenuTranslateX,
megaMenuOffsetRight=megaMenuOffsetLeft + $this.outerWidth(true),
megaMenuPosition=$this.closest('.jet-custom-nav').hasClass('jet-custom-nav--dropdown-left-side') ? 'left-side':'right-side';
if('right-side'===megaMenuPosition){
if(megaMenuOffsetRight >=maxWidth){
$this.css({
'maxWidth': maxWidth - megaMenuOffsetLeft - 10
});
initMaxMegaMenuWidth=true;
}}else{
if(megaMenuOffsetLeft < 0){
$this.css({
'maxWidth': megaMenuOffsetRight - 10
});
initMaxMegaMenuWidth=true;
}}
});
}}
setMaxMegaMenuWidth();
$(window).on('resize.JetCustomMenu orientationchange.JetCustomMenu', setMaxMegaMenuWidth);
},
widgetMobileMenu: function($scope){
let $target=$scope.find('.jet-mobile-menu'),
menuInstanceId=$target.attr('id'),
menuId=$target.data('menu-id')||false,
menuOptions=$target.data('menu-options')||{};
if(! $target[0]){
return;
}
window.jetMenu.createMobileRenderInstance(menuInstanceId, menuId, menuOptions);
},
shouldSetIpadProCookie: function(){
const isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);
const isMacLike=navigator.userAgent.includes('Macintosh');
const hasTouch='ontouchend' in window||navigator.maxTouchPoints > 1;
const cookieNotSet=document.cookie.indexOf('is_ipad_pro=true')===-1;
return isSafari&&isMacLike&&hasTouch&&cookieNotSet;
},
mobileAndTabletcheck: function(){
var check=false;
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check=true;})(navigator.userAgent||navigator.vendor||window.opera);
return check;
}};
$(window).on('elementor/frontend/init', JetMenuWidget.init);
}(jQuery, window.elementorFrontend) );
(e=>{("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define(e):e()})(function(){function e(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})}function c(e){return e&&void 0!==e.length}function n(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function i(n,o){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,a._immediateFn(function(){var e,t=1===n._state?o.onFulfilled:o.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void s(o.promise,e)}r(o.promise,e)}else(1===n._state?r:s)(o.promise,n._value)})):n._deferreds.push(o)}function r(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,l(t);if("function"==typeof n)return d((o=n,i=e,function(){o.apply(i,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var o,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,r(t,e))},function(e){n||(n=!0,s(t,e))})}catch(e){n||(n=!0,s(t,e))}}var t=setTimeout,o=(a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(o,e){var t=new this.constructor(n);return i(this,new function(e,t,n){this.onFulfilled="function"==typeof o?o:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(0,e,t)),t},a.prototype.finally=e,a.all=function(t){return new a(function(i,a){if(!c(t))return a(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return i([]);for(var s=r.length,e=0;r.length>e;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if("function"==typeof o)return o.call(e,function(e){t(n,e)},a)}r[n]=e,0==--s&&i(r)}catch(e){a(e)}}(e,r[e])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(i){return new a(function(e,t){if(!c(i))return t(new TypeError("Promise.race accepts an array"));for(var n=0,o=i.length;n<o;n++)a.resolve(i[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},(()=>{if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")})());"Promise"in o?o.Promise.prototype.finally||(o.Promise.prototype.finally=e):o.Promise=a}),((F,H)=>{var O={addedScripts:{},addedStyles:{},addedAssetsPromises:[],init:function(){var e={"jet-tabs.default":O.tabsInit,"jet-accordion.default":O.accordionInit,"jet-image-accordion.default":O.imageAccordionInit,"jet-switcher.default":O.switcherInit};F.each(e,function(e,t){H.hooks.addAction("frontend/element_ready/"+e,t)}),elementorFrontend.hooks.addAction("frontend/element_ready/loop-carousel.post",function(o,e){e(window).on("load",function(){var e=o.find(".swiper").data("swiper"),t=o.find(".jet-toggle__control"),n=o.find(".jet-switcher__control-instance");e&&(t||n)&&e.on("slideChange",function(){t.off("click.jetAccordion"),n.off("click.jetSwitcher"),O.initLoopCarouselHandlers(o)})})})},initLoopCarouselHandlers:function(e){e.find(".elementor-widget-jet-accordion, .elementor-widget-jet-switcher").each(function(){var e=F(this),t=e.data("element_type");t&&("widget"===t&&(t=e.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",e,F)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",e,F),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+t,e,F))})},tabsInit:async function(n){var o,i,a,e,t,u=F(".jet-tabs",n).first(),h=(u.data("id"),F(window)),s=F(".jet-tabs__control-wrapper",u).first(),c=F(".jet-tabs__content-wrapper",u).first(),l=F(".jet-tabs__control",s),f=F("> .jet-tabs__content",c),d=F.extend(u.data("settings")||{},O.getElementorElementSettings(n)),r=[],g=null,p=window.location.hash||!1,w=!!p&&p.replace("#","").split("&"),m=(d.tabsPosition,[]),v=[],_=elementorFrontend.getCurrentDeviceMode(),p=H.config.responsive.activeBreakpoints,j=u.data("swiper-settings")||{},b="desktop";if(v.desktop=""!=d.tabs_position?d.tabs_position:"top",m.desktop="jet-tabs-position-"+v.desktop,Object.keys(p).reverse().forEach(function(e){"widescreen"===e?(v[e]=d["tabs_position_"+e]&&""!=d["tabs_position_"+e]?d["tabs_position_"+e]:"top",m[e]="jet-tabs-position-"+v[e]):(v[e]=d["tabs_position_"+e]&&""!=d["tabs_position_"+e]?d["tabs_position_"+e]:v[b],m[e]="jet-tabs-position-"+v[e],b=e)}),!u.hasClass(m[_])){for(var[y,C]of Object.entries(m))u.removeClass(C);u.addClass(m[_])}"click"===d.event?l.on("click.jetTabs",function(){var e=F(this),t=+e.data("tab")-1,e=e.data("template-id");clearInterval(g),d.ajaxTemplate&&e&&P(t),E(t)}):"ontouchend"in window||"ontouchstart"in window?(l.on("touchstart",function(e){o=F(window).scrollTop()}),l.on("touchend",function(e){var t=F(this),n=+t.data("tab")-1,t=t.data("template-id");if(o!==F(window).scrollTop())return!1;clearInterval(g),d.ajaxTemplate&&t&&P(n),E(n)})):l.on("mouseenter",function(e){var t=F(this),n=+t.data("tab")-1,t=t.data("template-id");clearInterval(g),d.ajaxTemplate&&t&&P(n),E(n)}),h.load(function(){var e=f.eq([d.activeIndex]).outerHeight(!0);"yes"!=d.no_active_tabs&&(e+=parseInt(c.css("border-top-width"))+parseInt(c.css("border-bottom-width")),c.css("min-height",e))}),"left"!==v[_]&&"right"!==v[_]&&(i=F(".jet-tabs__content.active-content",n))[0]&&new MutationObserver((e,t)=>{for(var n of e)"childList"===n.type&&(i.closest(".jet-tabs__content-wrapper").css("min-height","auto"),n=i.outerHeight(!0),n+=parseInt(i.css("border-top-width"))+parseInt(i.css("border-bottom-width")),i.closest(".jet-tabs__content-wrapper").css("min-height",n))}).observe(i[0],{childList:!0,subtree:!0});let x={slidesPerView:"auto",centeredSlides:j.centeredSlides||!1,loop:j.loop||!1,loopFillGroupWithBlank:!0,speed:300,navigation:{nextEl:u.find(".swiper-button-next")[0],prevEl:u.find(".swiper-button-prev")[0]},keyboard:!0,allowTouchMove:!0,slideToClickedSlide:!1,autoplay:!!d.autoSwitch&&{delay:d.autoSwitchDelay,disableOnInteraction:!1,stopOnLastSlide:!0}},T=n.find(".jet-tabs-swiper"),I=d.autoSwitchDelay?+d.autoSwitchDelay+(T.length?x.speed:0):0;function S(){a.autoplay&&a.autoplay.running&&(a.autoplay.stop(),clearInterval(g))}if(T.length){let i=T.find(".jet-tabs-swiper-container");function k(e){var t=parseInt(e.getAttribute("data-swiper-slide-index"),10);i.find(".swiper-slide.active-tab").removeClass("active-tab"),F(e).addClass("active-tab"),E(t),S(),clearInterval(g)}function A(){var e=i.find(".swiper-slide");e.off("mouseenter touchend"),e.on("mouseenter",function(){S(),k(this)}),e.on("touchend",function(){if(o!==F(window).scrollTop())return!1;k(this)})}"fixed"===j.slidesPerView&&i.find(".swiper-slide").css("width",j.itemWidth),i.length&&i.hasClass("swiper")&&(a=await new window.elementorFrontend.utils.swiper(i[0],x),p=-1===d.activeIndex?0:d.activeIndex,a.slideToLoop(p,0,!1),d.autoSwitch&&-1===d.activeIndex&&(a.autoplay.stop(),setTimeout(()=>a.autoplay.start(),I)),a.on("reachEnd",function(){if(d.autoSwitch&&a.isEnd&&!j.loop){let n=i.find(".swiper-slide").last()[0],o=new MutationObserver(e=>{for(var t of e)"attributes"===t.type&&n.classList.contains("active-tab")&&(o.disconnect(),setTimeout(()=>{a.slideTo(0,x.speed,!0),a.autoplay.start()},I))});o.observe(n,{attributes:!0,attributeFilter:["class"]})}}),j.loop&&("click"===d.event?a.on("click",function(){a.clickedSlide&&k(a.clickedSlide)}):"hover"===d.event&&(A(),a.on("transitionEnd",function(){A()}))),i.on("click",function(){S(),clearInterval(g)}),"hover"===d.event&&i.on("mouseenter",function(){S()}),a.on("autoplay",function(){i.find(".swiper-slide").removeClass("active-tab");var e=a.realIndex;i.find('.swiper-slide[data-swiper-slide-index="'+e+'"]').addClass("active-tab")}),a.on("navigationPrev",S),a.on("navigationNext",S),a.on("touchStart",S))}function E(e){var t=l.eq(e),o=f.eq(e),i="auto",n=s.outerHeight(!0),a=elementorFrontend.getCurrentDeviceMode(),r=0;l.removeClass("active-tab"),t.addClass("active-tab"),l.attr("aria-expanded","false"),t.attr("aria-expanded","true"),f.removeClass("active-content"),"stretch"===s.css("align-self")&&(s.each(function(){r+=F(this).outerHeight(!0)}),n=r),i=o.outerHeight(!0),i+=parseInt(c.css("border-top-width"))+parseInt(c.css("border-bottom-width")),o.addClass("active-content"),f.attr("aria-hidden","true"),o.attr("aria-hidden","false"),"left"===v[a]||"right"===v[a]?i<n?(u.css({"min-height":"auto"}),c.css({"min-height":n}),u.css({"min-height":n})):i<c.outerHeight(!0)&&(c.css({"min-height":i}),u.css({"min-height":i})):(c.css({"min-height":i}),(t=c)[0]&&new MutationObserver((e,t)=>{for(var n of e)"childList"===n.type&&(i=o.outerHeight(!0),i+=parseInt(c.css("border-top-width"))+parseInt(c.css("border-bottom-width")),c.css({"min-height":i}))}).observe(t[0],{childList:!0,subtree:!0})),h.trigger("jet-tabs/tabs/show-tab-event/before",{target:u,tabIndex:e}),setTimeout(function(){h.trigger("jet-tabs/tabs/show-tab-event/after",{target:u,tabIndex:e}),!0===d.switchScrolling&&F("html, body").animate({scrollTop:c.offset().top-d.switchScrollingOffset.size},300)},500)}function P(c){var l=f.eq(c),e=l.data("template-loaded")||!1,t=l.data("template-id"),d=F(".jet-tabs-loader",l),n={id:t,dev:window.JetTabsSettings.devMode};e||!1===t||(h.trigger("jet-tabs/ajax-load-template/before",{toggleIndex:c,target:u,contentHolder:l}),l.data("template-loaded",!0),window.JetTabsSettings.isSelfRequest&&(n.jet_tabs_self=1,n["no-cache"]="true",n.timeStamp=Date.now()),F.ajax({type:"GET",url:window.JetTabsSettings.templateApiUrl,dataType:"json",data:n,success:function(t,e,n){var o,i,a=t.template_content,r=t.template_scripts,s=t.template_styles;for(o in r)O.addedAssetsPromises.push(O.loadScriptAsync(o,r[o]));for(i in s)O.addedAssetsPromises.push(O.loadStyle(i,s[i]));Promise.all(O.addedAssetsPromises).then(function(e){d.remove(),l.append(a),O.elementorFrontendInit(l),h.trigger("jet-tabs/ajax-load-template/after",{toggleIndex:c,target:u,contentHolder:l,responce:t})},function(e){console.log("Script Loaded Error")})}}))}d.autoSwitch&&(e=d.activeIndex,t=l.length,g=setInterval(function(){e<t-1?e++:e=0,d.ajaxTemplate&&P(e),E(e)},I)),d.ajaxTemplate&&P(d.activeIndex),F(window).on("resize.jetTabs orientationchange.jetTabs",O.debounce(50,function(){_=elementorFrontend.getCurrentDeviceMode();for(var[e,t]of Object.entries(m))u.removeClass(t);u.addClass(m[_])})),F(".jet-tabs__control",n).keydown(function(e){var t,n,o=F(this),e=e.which||e.keyCode;if((13==e||32==e)&&!o.hasClass("active-tab"))return o.click(),!1;37==e&&(t=o.prev().data("tab"),n=o.prev().data("template-id"),(null!=t?(clearInterval(g),d.ajaxTemplate&&n&&P(t-1),E(t-1),o.prev()):o).focus()),39==e&&(t=o.next().data("tab"),n=o.next().data("template-id"),(null!=t?(clearInterval(g),d.ajaxTemplate&&n&&P(t-1),E(t-1),o.next()):o).focus())}),w&&l.each(function(e){var t=F(this),n=t.attr("id"),o=t.data("template-id"),i=e;w.forEach(function(e,t){e===n&&(d.ajaxTemplate&&o&&P(i),E(i))})}),l.each(function(){r.push('a[href*="#'+F(this).attr("id")+'"]')}),F(document).on("click.jetTabAnchor",r.join(","),function(e){var t=F(this.hash);t.closest(n)[0]&&(t=t.data("tab")-1,d.ajaxTemplate&&P(t),E(t))})},switcherInit:function(n){var t,i=F(".jet-switcher",n).first(),a=(i.data("id"),F(window)),e=F(".jet-switcher__control-wrapper",i).first(),r=F(".jet-switcher__content-wrapper",i).first(),o=F("> .jet-switcher__control-instance",e),s=F("> .jet-switcher__control-instance > .jet-switcher__control, > .jet-switcher__control",e),c=F("> .jet-switcher__content",r),l=(F("> .jet-switcher__content--disable",r),F("> .jet-switcher__content--enable",r),i.hasClass("jet-switcher--disable"));i.data("settings");function d(e){var t,n,o;r.css({height:r.outerHeight(!0)}),i.toggleClass("jet-switcher--disable jet-switcher--enable"),t=(l=!i.hasClass("jet-switcher--disable"))?s.eq(1):s.eq(0),n=l?c.eq(1):c.eq(0),c.removeClass("active-content"),o=n.outerHeight(!0),o+=parseInt(r.css("border-top-width"))+parseInt(r.css("border-bottom-width")),n.addClass("active-content"),s.attr("aria-expanded","false"),t.attr("aria-expanded","true"),c.attr("aria-hidden","true"),n.attr("aria-hidden","false"),r.css({height:o}),a.trigger("jet-tabs/switcher/show-case-event/before",{target:i,caseIndex:e}),setTimeout(function(){a.trigger("jet-tabs/switcher/show-case-event/after",{target:i,caseIndex:e}),r.css({height:"auto"})},500)}"ontouchend"in window||"ontouchstart"in window?(o.on("touchstart",function(e){t=F(window).scrollTop()}),o.on("touchend",function(e){if(t!==F(window).scrollTop())return!1;d()})):o.on("click.jetSwitcher",function(){d()}),F(window).on("resize.jetSwitcher orientationchange.jetSwitcher",function(){r.css({height:"auto"})}),F(".jet-switcher__control",n).keydown(function(e){var t=F(this),e=e.which||e.keyCode;if(13!=e&&32!=e||(d(),F('[aria-expanded="true"]',n).focus()),37==e)if(0!=t.prev().length&&t.prev().hasClass("jet-switcher__control")&&i.hasClass("jet-switcher--preset-1"))t.prev().focus(),d();else if(i.hasClass("jet-switcher--preset-2")){if(t.hasClass("jet-switcher__control--disable"))return!1;t.hasClass("jet-switcher__control--enable")&&(F(".jet-switcher__control--disable",n).focus(),d())}if(39==e)if(0!=t.next().length&&t.next().hasClass("jet-switcher__control")&&i.hasClass("jet-switcher--preset-1"))t.next().focus(),d();else if(i.hasClass("jet-switcher--preset-2"))if(t.hasClass("jet-switcher__control--disable"))F(".jet-switcher__control--enable",n).focus(),d();else if(t.hasClass("jet-switcher__control--enable"))return!1})},accordionInit:function(n){var l,d,o,h=F(".jet-accordion",n).first(),f=(h.data("id"),F(window)),e=F("> .jet-accordion__inner > .jet-toggle > .jet-toggle__control",h),u=h.data("settings"),g=F("> .jet-accordion__inner > .jet-toggle",h),t=[],i=window.location.hash||!1,a=!!i&&i.replace("#","").split("&");function p(c){var e=g.eq(c),l=F("> .jet-toggle__content",e),d=F("> .jet-toggle__content > .jet-toggle__content-inner",e),e=l.data("template-loaded")||!1,t=l.data("template-id"),u=F(".jet-tabs-loader",d);e||!1===t||(f.trigger("jet-tabs/ajax-load-template/before",{toggleIndex:c,target:h,contentHolder:l}),l.data("template-loaded",!0),F.ajax({type:"GET",url:window.JetTabsSettings.templateApiUrl,dataType:"json",data:{id:t,dev:window.JetTabsSettings.devMode},success:function(t,e,n){var o,i,a=t.template_content,r=t.template_scripts,s=t.template_styles;for(o in r)O.addedAssetsPromises.push(O.loadScriptAsync(o,r[o]));for(i in s)O.addedAssetsPromises.push(O.loadStyle(i,s[i]));Promise.all(O.addedAssetsPromises).then(function(e){u.remove(),d.append(a),O.elementorFrontendInit(d),f.trigger("jet-tabs/ajax-load-template/after",{toggleIndex:c,target:h,contentHolder:l,responce:t})},function(e){console.log("Script Loaded Error")})}}))}g.each(function(){F(this).hasClass("active-toggle")&&u.ajaxTemplate&&p(F(this).find(".jet-toggle__control").data("toggle")-1)}),F(window).on("resize.jetAccordion orientationchange.jetAccordion",function(){var e=F("> .jet-accordion__inner > .active-toggle",h);F("> .jet-toggle__content",e).css({height:"auto"})}),F(".jet-toggle__control",n).keydown(function(e){var t=F(this),e=e.which||e.keyCode;if(13==e||32==e)return t.click(),!1;37==e&&0!=t.closest(".jet-accordion__item").prev().length&&t.closest(".jet-accordion__item").prev().find(".jet-toggle__control").focus(),39==e&&0!=t.closest(".jet-accordion__item").next().length&&t.closest(".jet-accordion__item").next().find(".jet-toggle__control").focus()}),e.on("click.jetAccordion",function(){var e=F(this),a=e.closest(".jet-toggle"),r=+e.data("toggle")-1;elementorFrontend.getCurrentDeviceMode();if(u.collapsible){var i=F("> .jet-toggle__control",a),t=F("> .jet-toggle__content",a);if(i.length&&t.length){let e="active-toggle";var s=a.hasClass(e),i=i[0].getBoundingClientRect().top+window.scrollY;let t=null,n=null,o=null;g.each(function(){this!==a[0]&&this.classList.contains(e)&&(t=this,n=this.querySelector(".jet-toggle__control"),o=this.querySelector(".jet-toggle__content"))});var c=o?.scrollHeight||0;if(!s&&n&&o)if(t.classList.remove(e),o.style.height="0",n.setAttribute("aria-expanded","false"),c)if(n.getBoundingClientRect().top+window.scrollY<i){let t=i-c;window.scrollY>t&&requestAnimationFrame(()=>{let e=0;!0===u.switchScrolling&&(e=u.switchScrollingOffset.size),window.scrollTo({top:t-e,behavior:"auto"})})}g.each(function(e){var t=F(this),n=F("> .jet-toggle__control",t),o=F("> .jet-toggle__content",t),i=F("> .jet-toggle__content > .jet-toggle__content-inner",t).outerHeight();i+=parseInt(o.css("border-top-width"))+parseInt(o.css("border-bottom-width")),e!==r||a.hasClass("active-toggle")?t.hasClass("active-toggle")&&(o.css({height:o.outerHeight()}),t.removeClass("active-toggle"),n.attr("aria-expanded","false"),d&&clearTimeout(d),d=setTimeout(function(){o.css({height:0})},5)):(t.addClass("active-toggle"),o.css({height:i}),n.attr("aria-expanded","true"),u.ajaxTemplate&&p(r),f.trigger("jet-tabs/accordion/show-toggle-event/before",{target:h,toggleIndex:r}),l&&clearTimeout(l),l=setTimeout(function(){f.trigger("jet-tabs/accordion/show-toggle-event/after",{target:h,toggleIndex:r}),o.css({height:"auto"}),!0===u.switchScrolling&&F("html, body").animate({scrollTop:t.offset().top-u.switchScrollingOffset.size},u.switchScrollingDelay)},500))})}}else{var t=F("> .jet-toggle__content",a),n=F("> .jet-toggle__content > .jet-toggle__content-inner",a).outerHeight();n+=parseInt(t.css("border-top-width"))+parseInt(t.css("border-bottom-width")),o&&clearTimeout(o),o=setTimeout(function(){a.toggleClass("active-toggle"),a.hasClass("active-toggle")?(t.css({height:n}),e.attr("aria-expanded","true"),u.ajaxTemplate&&p(r),f.trigger("jet-tabs/accordion/show-toggle-event/before",{target:h,toggleIndex:r}),l&&clearTimeout(l),l=setTimeout(function(){f.trigger("jet-tabs/accordion/show-toggle-event/after",{target:h,toggleIndex:r}),t.css({height:"auto"}),!0===u.switchScrolling&&!0!==u.collapsible&&F("html, body").animate({scrollTop:e.offset().top-u.switchScrollingOffset.size},u.switchScrollingDelay)},200)):(t.css({height:t.outerHeight()}),e.attr("aria-expanded","false"),d&&clearTimeout(d),d=setTimeout(function(){t.css({height:0})},5))},200)}}),a&&e.each(function(e){var n=F(this),o=n.attr("id");a.forEach(function(e,t){e===o&&n.trigger("click.jetAccordion")})}),e.each(function(){t.push('a[href*="#'+F(this).attr("id")+'"]')}),F(document).on("click.jetAccordionAnchor",t.join(","),function(e){var t=F(this.hash);t.closest(n)[0]&&t.trigger("click.jetAccordion")})},imageAccordionInit:function(e){var t,e=F(".jet-image-accordion",e);e.length&&(t=e.data("settings"),new jetImageAccordion(e,t).init())},loadScriptAsync:function(o,i){return O.addedScripts.hasOwnProperty(o)?o:i?(O.addedScripts[o]=i,new Promise(function(e,t){var n=document.createElement("script");n.src=i,n.async=!0,n.onload=function(){e(o)},document.head.appendChild(n)})):void 0},loadStyle:function(o,i){return O.addedStyles.hasOwnProperty(o)&&O.addedStyles[o]===i?o:i?(O.addedStyles[o]=i,new Promise(function(e,t){var n=document.createElement("link");n.id=o,n.rel="stylesheet",n.href=i,n.type="text/css",n.media="all",n.onload=function(){e(o)},document.head.appendChild(n)})):void 0},elementorFrontendInit:function(e){e.find("[data-element_type]").each(function(){var t=F(this),e=t.data("element_type");if(e)try{"widget"===e&&(e=t.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",t,F)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",t,F),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+e,t,F)}catch(e){return console.log(e),t.remove(),!1}})},getElementorElementSettings:function(e){return window.elementorFrontend&&window.elementorFrontend.isEditMode()&&e.hasClass("elementor-element-edit-mode")?O.getEditorElementSettings(e):e.data("settings")||{}},getEditorElementSettings:function(e){var e=e.data("model-cid");return e&&H.hasOwnProperty("config")&&H.config.hasOwnProperty("elements")&&H.config.elements.hasOwnProperty("data")&&(e=H.config.elements.data[e])?e.toJSON():{}},debounce:function(t,n){var o;return function(e){o&&clearTimeout(o),o=setTimeout(function(){n.call(this,e),o=null},t)}}};window.jetImageAccordion=function(e,n){var o,i=this,a=e,r=F(".jet-image-accordion__item",a),s=r.length,n=n||{};n=F.extend({orientation:"vertical",activeSize:{size:50,unit:"%"},duration:500,activeItem:-1},n),o=n.activeItem,this.layoutBuild=function(){r.css({"transition-duration":n.duration+"ms"}),r.each(function(e){e===o&&(F(this).addClass("active-accordion"),i.layoutRender())}),F(".jet-image-accordion__image-instance",r).imagesLoaded().progress(function(e,t){var t=F(t.img),n=t.closest(".jet-image-accordion__item"),n=F(".jet-image-accordion__item-loader",n);t.addClass("loaded"),n.fadeTo(250,0,function(){F(this).remove()})}),i.layoutRender(),i.addEvents()},this.layoutRender=function(e){var t=n.activeSize.size,t=((100/s).toFixed(2),t/((100-t)/(s-1)));F(".jet-image-accordion__item:not(.active-accordion)",a).css({"flex-grow":1}),F(".active-accordion",a).css({"flex-grow":t})},this.addEvents=function(){var t=F(window).scrollTop();"ontouchend"in window||"ontouchstart"in window?(r.on("touchstart.jetImageAccordion",function(e){t=F(window).scrollTop()}),r.on("touchend.jetImageAccordion",function(e){e.stopPropagation();e=F(this);if(t!==F(window).scrollTop())return!1;e.hasClass("active-accordion")?r.removeClass("active-accordion"):(r.removeClass("active-accordion"),e.addClass("active-accordion")),i.layoutRender()})):(r.on("mouseenter",function(e){var t=F(this);t.hasClass("active-accordion")||(r.removeClass("active-accordion"),t.addClass("active-accordion")),i.layoutRender()}),F(".jet-image-accordion__item",a).keydown(function(e){var t=F(this),e=e.which||e.keyCode;13!=e&&32!=e||(t.hasClass("active-accordion")?(r.removeClass("active-accordion"),-1!==o&&r.eq(o).addClass("active-accordion"),i.layoutRender()):(r.removeClass("active-accordion"),t.addClass("active-accordion")),i.layoutRender()),37==e&&0!=t.prev().length&&(r.removeClass("active-accordion"),t.prev().focus(),t.prev().addClass("active-accordion"),i.layoutRender()),39==e&&0!=t.next().length&&(r.removeClass("active-accordion"),t.next().focus(),t.next().addClass("active-accordion"),i.layoutRender())})),a.on("mouseleave.jetImageAccordion",function(e){r.removeClass("active-accordion"),-1!==o&&r.eq(o).addClass("active-accordion"),i.layoutRender()})},this.init=function(){i.layoutBuild()}},jQuery(document).on("jet-filter-content-rendered",function(){jQuery(window).trigger("elementor/frontend/init")}),F(window).on("elementor/frontend/init",O.init),window.JetTabs=O})(jQuery,window.elementorFrontend);