(function(){"use strict";window.kadenceProSticky={getOffset:function(a){if(a instanceof HTMLElement){var b=a.getBoundingClientRect();return{top:b.top+window.pageYOffset,left:b.left+window.pageXOffset}}return{top:null,left:null}},stickHeadItem:function(a){var b=parseInt(window.kadenceProSticky.getOffset(document.getElementById("wrapper")).top),c=parseInt(window.kadenceProSticky.getOffset(a).top),d=function(){var d=a.parentNode;d.style.height=a.offsetHeight+"px",Math.max(0,window.scrollY)===Math.floor(c-b)?(a.style.top=b+"px",a.classList.add("item-is-fixed"),a.classList.add("item-at-start"),a.classList.remove("item-is-stuck"),d.classList.add("child-is-fixed")):Math.max(0,window.scrollY)>Math.floor(c-b)?(a.style.top=b+"px",a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start"),d.classList.add("child-is-fixed")):a.classList.contains("item-is-fixed")&&(a.classList.remove("item-is-fixed"),a.classList.remove("item-at-start"),a.classList.remove("item-is-stuck"),a.style.height=null,a.style.top=null,d.classList.remove("child-is-fixed"))};window.addEventListener("resize",d,!1),window.addEventListener("scroll",d,!1),window.addEventListener("load",d,!1),window.addEventListener("kadence-update-sticky",d,!1),d()},stickTransHeadItem:function(a){var b=window.kadenceProSticky.getOffset(document.body).top,c=window.kadenceProSticky.getOffset(a).top,d=function(){var d=a.parentNode;d.style.height=a.offsetHeight+"px",Math.max(0,window.scrollY)===Math.floor(c-b)?(a.style.top=b+"px",a.classList.add("item-is-fixed"),a.classList.add("item-at-start"),a.classList.remove("item-is-stuck"),d.classList.add("child-is-fixed")):Math.max(0,window.scrollY)>Math.floor(c-b)?(a.style.top=b+"px",a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start"),d.classList.add("child-is-fixed")):a.classList.contains("item-is-fixed")&&(a.classList.remove("item-is-fixed"),a.classList.remove("item-at-start"),a.classList.remove("item-is-stuck"),a.style.height=null,a.style.top=null,d.classList.remove("child-is-fixed"))};window.addEventListener("resize",d,!1),window.addEventListener("scroll",d,!1),window.addEventListener("load",d,!1),window.addEventListener("kadence-update-sticky",d,!1),d()},stickScrollItem:function(a){var b=function(){var b=window.kadenceProSticky.getOffset(document.getElementById("wrapper")).top,c=a.getAttribute("data-scroll-offset");window.scrollY>=c?(a.style.top=b+"px",a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start")):a.classList.contains("item-is-fixed")&&(a.classList.remove("item-is-fixed"),a.classList.remove("item-at-start"),a.classList.remove("item-is-stuck"),a.style.height=null,a.style.top=null)};window.addEventListener("resize",b,!1),window.addEventListener("scroll",b,!1),window.addEventListener("load",b,!1),b()},stickScrollFooterItem:function(a){var b=function(){var b=parseInt(a.getAttribute("data-scroll-offset"));window.scrollY>=b?(a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start")):a.classList.contains("item-is-fixed")&&(a.classList.remove("item-is-fixed"),a.classList.remove("item-at-start"),a.classList.remove("item-is-stuck"))};window.addEventListener("resize",b,!1),window.addEventListener("scroll",b,{passive:!0}),window.addEventListener("load",b,!1),b()},stickScrollFooterItemSpace:function(a){var b=function(){var b=a.parentNode;b.style.height=a.offsetHeight+"px";var c=parseInt(a.getAttribute("data-scroll-offset"));window.scrollY>=c?(a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start")):a.classList.contains("item-is-fixed")&&(a.classList.remove("item-is-fixed"),a.classList.remove("item-at-start"),a.classList.remove("item-is-stuck"))};window.addEventListener("resize",b,!1),window.addEventListener("scroll",b,!1),window.addEventListener("load",b,!1),b()},stickFootItem:function(a){var b=function(){a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start")};window.addEventListener("resize",b,!1),b()},stickFootItemBelow:function(a){var b=function(){var b=a.parentNode;b.style.height=a.offsetHeight+"px",a.classList.add("item-is-fixed"),a.classList.add("item-is-stuck"),a.classList.remove("item-at-start")};window.addEventListener("resize",b,!1),b()},initStickyHeadItems:function(){var a=document.querySelectorAll(".kadence-pro-fixed-above");if(a.length)for(let b=0;b