jQuery(document).ready(function(i){({$sticky:i(".pmc-sticky-sidebar"),$footer:i("footer"),$top_bar:i("#wpadminbar"),update_sticky_sidebar_position:{},init:function(){var t=this;"undefined"!=typeof pmc_sticky_sidebar_js&&"footer_selector"in pmc_sticky_sidebar_js&&(t.$footer=i(pmc_sticky_sidebar_js.footer_selector)),"undefined"!=typeof pmc_sticky_sidebar_js&&"top_bar_selector"in pmc_sticky_sidebar_js&&(t.$top_bar=i(pmc_sticky_sidebar_js.top_bar_selector)),this.update_sticky_sidebar_position=_.debounce(function(){t.start_scroll()},300),i(window).on("scroll",t.update_sticky_sidebar_position)},reset_scroll:function(){this.$sticky.trigger("resetScroll"),this.$sticky.trigger("detach.ScrollToFixed"),this.$sticky.attr("style","")},start_scroll:function(){var t=this;t.reset_scroll(),t.$sticky.scrollToFixed({marginTop:function(){return(t.$top_bar.outerHeight()||0)+10},removeOffsets:!0,limit:function(){return t.$footer.offset().top-t.$sticky.outerHeight(!0)-10},fixed:function(){i(window).off("scroll",t.update_sticky_sidebar_position)},postAbsolute:function(){t.$sticky.attr("style","")},unfixed:function(){t.$sticky.hasClass("scroll-to-fixed-fixed")&&(t.$sticky.parent().attr("style","position: relative;"),t.$sticky.attr("style","position: absolute; z-index:unset; top: unset; bottom: 5px;"))}})}}).init()});