(s=>{s.fn.jetStickySection=function(t){var e={topSpacing:0,zIndex:"",stopper:s(".sticky-stopper"),stickyClass:!1},y=s.extend({},e,t);var g="number"==typeof y.zIndex;var k=0<y.stopper.length||"number"==typeof y.stopper;return this.each(function(){var i=s(this),n=y.topSpacing,r=y.zIndex,c=y.stopper,p=s(window),h=!1,a=!1,f=i.hasClass("elementor-section"),l=i.hasClass("e-parent"),d=s("<div></div>").addClass("sticky-placeholder");function u(){i.css({position:"",top:"",left:"",right:"",width:"",transform:"","z-index":""})}function t(){var t,e,s,o;h||(e=0<d.parent().length,s=i.outerHeight(),t=(f||l?i.parent():e?d:i).outerWidth(),t={height:s,width:t=t||i.outerWidth(),left:(e?d:i).offset().left,top:s=(e?d:i).offset().top,pushPoint:s-n},e=p.scrollTop(),s=c,d.width(t.width).height(t.height),k&&("number"!=typeof y.stopper?s=y.stopper.offset().top-t.height-n:"number"==typeof y.stopper&&(s=y.stopper-t.height-n)),a=t.pushPoint<e?(y.stickyClass&&i.addClass(y.stickyClass),o={position:"fixed",top:n,width:t.width},f||l||(o.left=t.left),i.after(d).css(o),g&&i.css({zIndex:r}),k&&s<e&&i.css({top:s-e+n}),a||i.trigger("jetStickySection:stick"),!0):(y.stickyClass&&i.removeClass(y.stickyClass),u(),d.remove(),a&&i.trigger("jetStickySection:unstick"),!1))}p.innerHeight()>i.outerHeight()&&(i.on("jetStickySection:activated",t),p.on("scroll",t),p.on("touchmove",t),p.on("resize",t),i.on("jetStickySection:detach",function(){h=!0,p.off("scroll",t),p.off("touchmove",t),p.off("resize",t),y.stickyClass&&i.removeClass(y.stickyClass),u(),d.remove()}))})}})(jQuery);