!function(e,t){"use strict";window.VAMTAM_FRONT.elementor=window.VAMTAM_FRONT.elementor||{};var n={domLoaded:function(){this.VamtamMainNavHandler.init(),this.VamtamActionLinksHandler.init(),this.VamtamPopupToggleHandler.init(),this.VamtamPopupsHandler.init()},pageLoaded:function(){this.VamtamPopupsHandler.handleScrollBlockingPopup(),this.VamtamWidgetsHandler.stickyInsideParentFix()},VamtamMainNavHandler:{init:function(){this.fixMenuDrodownScrolling()},fixMenuDrodownScrolling:function(){var t=e(".elementor-location-header .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown.elementor-nav-menu__container").first(),n=t.siblings(".elementor-menu-toggle")[0];if(t.length&&n.length){var o=function(){if(e(n).hasClass("elementor-active")){var i=e("html").hasClass("ios-safari")?t[0].getBoundingClientRect().top+100:t[0].getBoundingClientRect().top;t.css("max-height","calc(100vh - "+i+"px)"),n.removeEventListener("click",o)}};n.addEventListener("click",o)}}},VamtamActionLinksHandler:{init:function(){this.popupActionLinks()},popupActionLinks:function(){var t=this,n=window.VAMTAM.isBelowMaxDeviceWidth(),o=[],i=function(t,n,o){var i=e("#elementor-popup-modal-"+t),r=e(i).find(".dialog-widget-content"),a=window.VAMTAM.adminBarHeight;if(r.length&&n){var s,l=n.getBoundingClientRect();o?e(r).css({top:"",left:""}):(e(r).css({top:l.bottom-a,left:l.left}),s=setInterval(function(){"none"===e(i).css("display")&&(e(r).css({top:"",left:""}),clearInterval(s))},500))}},r=function(e){o.forEach(function(t){e?i(t.id,t.parent,!0):i(t.id,t.parent)})},a=function(){var e=window.VAMTAM.isBelowMaxDeviceWidth();n!==e?(e?r(!0):r(),n=e):e||r()};elementorFrontend.elements.$document.on("click",'a[href^="#elementor-action"]',function(n){var r=e(n.currentTarget).attr("href");if(r){var s,l,c,d=t.utils.getSettingsFromActionLink(r);d&&d.align_with_parent&&(s=d.id,l=n.currentTarget,o.forEach(function(e){e.id===s&&(e.parent=l,c=!0)}),c||o.push({id:s,parent:l}),window.VAMTAM.isMaxDeviceWidth()&&i(d.id,n.currentTarget),window.removeEventListener("resize",a),window.addEventListener("resize",a,!1))}})},utils:{getSettingsFromActionLink:function(e){if(e=decodeURIComponent(e)){var t=e.match(/settings=(.+)/),n={};return t&&(n=JSON.parse(atob(t[1]))),n}},getActionFromActionLink:function(e){if(e=decodeURIComponent(e)){var t=e.match(/action=(.+?)&/);if(t)return t[1]}}}},VamtamPopupToggleHandler:{init:function(){var n=document.querySelectorAll(".vamtam-popup-toggle"),o=[],i=window.VAMTAM.isBelowMaxDeviceWidth();if(!n.length)return;const r=function(t,n,i=!1){var r,a=!0;t&&(i||t.preventDefault(),a=!1),o.forEach(function(e){(n.isSameNode(e.toggle)||n.isSameNode(e.toggleClone))&&(r=e)});var s=r.toggle.getBoundingClientRect(),l=r.innermostEl.getBoundingClientRect();if(i||requestAnimationFrame(()=>{Object.assign(r.toggleClone.style,{top:s.top+"px",left:s.left+"px"}),Object.assign(r.innermostElClone.style,{position:"fixed",top:l.top+"px",left:l.left+"px"})}),a)return;const c=()=>{if(r.modalParent=e(`#elementor-popup-modal-${r.modalId}`),r.modalContent=r.modalParent&&e(r.modalParent).find(".dialog-message.dialog-lightbox-message"),!r.modalSettings){const t=e(r.modalContent).find(`[data-elementor-id="${r.modalId}"]`);t.length&&(r.modalSettings=JSON.parse(e(t).attr("data-elementor-settings")))}};if(c(),r.popupToggleActive){if(!r.toggleClone.classList.contains("is-clickable"))return;if(i&&r.modalId)if("keyup"===t.type){if(r.modalSettings&&"yes"===r.modalSettings.prevent_close_on_esc_key)return}else if("click"===t.type){if(r.modalSettings&&"yes"===r.modalSettings.prevent_close_on_background_click)return;if(r.modalContent.length&&r.modalContent[0]&&(t.target.isSameNode(r.modalContent[0])||r.modalContent[0].contains(t.target)))return}requestAnimationFrame(function(){r.toggle.classList.remove("clone-active"),r.toggleClone.classList.remove("is-active"),r.toggleClone.classList.remove("is-clickable"),r.toggleClone.classList.add("is-closed"),r.popupToggleActive=!1})}else requestAnimationFrame(function(){r.toggleClone.classList.remove("is-closed"),r.toggleClone.classList.add("is-active"),r.toggle.classList.add("clone-active"),r.toggleClone.classList.add("is-clickable"),r.popupToggleActive=!0});!i&&r.modalId&&setTimeout(()=>{c()},1e3)};function a(e,t){e.classList.contains("elementor-widget-button")?s(e,t,"button"):e.classList.contains("elementor-widget-icon")?s(e,t,"icon"):s(e,t)}function s(t,n,o){var i=e(t).find('*:not(:has("*"))').first()[0],r=e(n).find('*:not(:has("*"))').first()[0];switch(o){case"button":l(i,r,o),l(e(t).find(".elementor-button").first()[0],e(n).find(".elementor-button").first()[0],o),l(t,n,o);break;case"icon":l(e(t).find(".elementor-icon svg, .elementor-icon i").first()[0],e(n).find(".elementor-icon svg, .elementor-icon i").first()[0],o),l(t,n,o);break;default:l(i,r),l(t,n)}}function l(e,t,n){if(e&&t){var o=window.getComputedStyle(e,null);if("icon"===n)Object.assign(t.style,{font:""!==o.getPropertyValue("font")?o.getPropertyValue("font"):`${o.getPropertyValue("font-style")} ${o.getPropertyValue("font-variant")} ${o.getPropertyValue("font-weight")} ${o.getPropertyValue("font-size")}/${o.getPropertyValue("line-height")} ${o.getPropertyValue("font-family")}`,width:o.getPropertyValue("width"),height:o.getPropertyValue("height"),color:o.getPropertyValue("color"),fill:o.getPropertyValue("fill"),stroke:o.getPropertyValue("stroke")});else Object.assign(t.style,{font:""!==o.getPropertyValue("font")?o.getPropertyValue("font"):`${o.getPropertyValue("font-style")} ${o.getPropertyValue("font-variant")} ${o.getPropertyValue("font-weight")} ${o.getPropertyValue("font-size")}/${o.getPropertyValue("line-height")} ${o.getPropertyValue("font-family")}`,width:o.getPropertyValue("width"),height:o.getPropertyValue("height"),color:o.getPropertyValue("color")})}}n.forEach(function(n){var i=n.cloneNode(!0),r=e(n).find('*:not(:has("*"))').first()[0],s=e(i).find('*:not(:has("*"))').first()[0],l=e(n).find('a[href^="%23elementor-action"], a[href^="#elementor-action"]'),c=l.length&&window.VAMTAM_FRONT.elementor.urlActions.getSettingsFromActionLink(e(l).attr("href")),d=c&&c.id;i.classList.add("vamtam-popup-toggle-clone");const g=function(t,n,o){var i,r;t.classList.contains("elementor-widget-icon")&&(i=e(t).find(".elementor-icon svg, .elementor-icon").first()[0],r=e(n).find(".elementor-icon svg, .elementor-icon").first()[0]);if(i&&o!==i)return{innermostEl:i,innermostElClone:r}}(n,i,r);g&&(r=g.innermostEl,s=g.innermostElClone),a(n,i),o.push({popupToggleActive:!1,toggle:n,toggleClone:i,innermostEl:r,innermostElClone:s,modalId:d,modalParent:t,modalContent:t,modalSettings:t}),document.body.appendChild(i)}),document.body.addEventListener("click",function(t){var n=!!t.target.classList.contains("vamtam-popup-toggle")&&t.target||t.target.closest(".vamtam-popup-toggle"),o=document.querySelectorAll(".vamtam-popup-toggle-clone.is-active"),i=n&&n.classList.contains("vamtam-popup-toggle-clone");const a=()=>{let o=!1,i=e(t.target).attr("href");o=i?i.startsWith("%23elementor-action")||i.startsWith("#elementor-action"):t.target.closest('a[href^="%23elementor-action"], a[href^="#elementor-action"]'),o&&r(t,n)};!n||i||o.length?o.length&&(o.forEach(function(e){r(t,e,!0)}),n&&!i&&a()):a()}),document.body.addEventListener("keyup",function(e){"Escape"===e.key&&document.querySelectorAll(".vamtam-popup-toggle-clone.is-active").forEach(function(t){r(e,t,!0)})}),window.addEventListener("resize",window.VAMTAM.debounce(function(){const t=document.querySelectorAll(".vamtam-popup-toggle-clone.is-active"),n=window.VAMTAM.isBelowMaxDeviceWidth();i!==n&&(t.forEach(function(t){e(t).click()}),o.forEach(function(e){a(e.toggle,e.toggleClone)}),i=n),t.forEach(function(e){requestAnimationFrame(()=>{e.classList.add("hidden")}),r(null,e),setTimeout(()=>{e.classList.remove("hidden")},700)})},100),!1)}},VamtamPopupsHandler:{init:function(){this.disablePopupAutoFocus(),this.enablePageTransitionsForPopupLinks()},disablePopupAutoFocus:function(){elementorFrontend.elements.$window.on("elementor/popup/show elementor/popup/hide",e=>{setTimeout(()=>{"input"!==document.activeElement.nodeName&&document.activeElement.blur()},100)})},enablePageTransitionsForPopupLinks(){if(!elementorFrontend.config.experimentalFeatures["page-transitions"])return;let e=jQuery("e-page-transition");if(!e.length)return;e=e[0];if(e.getAttribute("triggers"))return;const t=e.onLinkClick;t&&jQuery(document).on("click",'.elementor-popup-modal a:not( [data-elementor-open-lightbox="yes"] )',t.bind(e))},handleScrollBlockingPopup(){const{classList:e}=document.body;if(!e.contains("dialog-prevent-scroll")||!e.contains("vamtam-has-isbp"))return;const t=Array.from(e).find(e=>e.startsWith("vamtam-isbp-"));if(!t)return;const n=t.replace("vamtam-isbp-","");document.getElementById("elementor-popup-modal-"+n)||e.remove("dialog-prevent-scroll","vamtam-has-isbp",t)}},VamtamWidgetsHandler:{stickyInsideParentFix:()=>{const e=document.querySelectorAll('.elementor-sticky[data-settings*=\'"sticky_parent":"yes"\']');e.length&&e.forEach(e=>{window.VAMTAM_FRONT.WidgetsResizeObserver.observe(e,function(){window.VAMTAM.debounce(window.dispatchEvent(new Event("resize")),500)})})}},WidgetsObserver:{observer:null,targetsMap:new Map,init(){this.observer||(this.observer=new IntersectionObserver(this.handleIntersect.bind(this),{root:null,threshold:0,rootMargin:"0px"}))},observe(e,t,n={once:!0}){this.init(),this.targetsMap.has(e)||(this.targetsMap.set(e,{onIntersect:t,options:n}),this.observer.observe(e))},unobserve(e){this.targetsMap.has(e)&&(this.targetsMap.delete(e),this.observer.unobserve(e))},handleIntersect(e){e.forEach(e=>{if(this.targetsMap.has(e.target)){const{onIntersect:t,options:n}=this.targetsMap.get(e.target);e.isIntersecting&&(t(),n.once&&this.unobserve(e.target))}})}},WidgetsResizeObserver:{observer:null,targetsMap:new Map,init(){this.observer||(this.observer=new ResizeObserver(this.handleResize.bind(this)))},observe(e,t){this.init(),this.targetsMap.has(e)||(this.targetsMap.set(e,{onElementResize:t}),this.observer.observe(e))},unobserve(e){this.targetsMap.has(e)&&(this.targetsMap.delete(e),this.observer.unobserve(e))},handleResize(e){e.forEach(e=>{if(this.targetsMap.has(e.target)){const{onElementResize:t}=this.targetsMap.get(e.target);t()}})}}};window.VAMTAM_FRONT.elementor.urlActions=n.VamtamActionLinksHandler.utils,window.VAMTAM_FRONT.WidgetsObserver=n.WidgetsObserver,window.VAMTAM_FRONT.WidgetsResizeObserver=n.WidgetsResizeObserver,e(document).ready(function(){n.domLoaded()}),e(window).on("load",function(){n.pageLoaded()})}(jQuery);