jQuery(function(t){if("undefined"!=typeof ezTOC){function e(){if(0!==t(".ez-toc-widget-container.ez-toc-affix").length){var e=30;void 0!==ezTOC.scroll_offset&&(e=parseInt(ezTOC.scroll_offset)),t(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:e})}if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},void 0!==ezTOC.visibility_hide_by_default){var i=t("a.ez-toc-toggle,a.ez-toc-widget-sticky-toggle"),o=ezTOC.visibility_hide_by_default;t.each(i,function(e,i){var c=t(this),s=t(c).parents("#ez-toc-container,#ez-toc-widget-container,#ez-toc-widget-sticky-container").find("ul.ez-toc-list,ul.ez-toc-widget-sticky-list");Cookies?(1==Cookies.get("ezTOC_hidetoc-"+e)?t(c).data("visible",!1):t(c).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+e)):(t(c).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+e)),o&&t(c).data("visible",!1),t(c).data("visible")||s.hide(),t(c).on("click",function(i){i.preventDefault();let c=document.querySelector("#ez-toc-container");if(c)c.classList.toggle("toc_close");else{let a=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");a.classList.toggle("toc_close")}t(this).data("visible")?(t(this).data("visible",!1),Cookies&&(o?Cookies.set("ezTOC_hidetoc-"+e,null,{path:"/"}):Cookies.set("ezTOC_hidetoc-"+e,"1",{expires:30,path:"/"})),s.hide("fast")):(t(this).data("visible",!0),Cookies&&(o?Cookies.set("ezTOC_hidetoc-"+e,"1",{expires:30,path:"/"}):Cookies.set("ezTOC_hidetoc-"+e,null,{path:"/"})),s.show("fast"))})})}var c,s,a,l=t("span.ez-toc-section").toArray(),n=(c=l,c.reduce(function(e,i){var o;return e[i.id]=t('.ez-toc-widget-container .ez-toc-list a[href="#'+t(o=i).attr("id")+'"]'),e},{})),r=t.map(n,function(t,e){return t}),d=(s=5,void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(s=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30),a=t("#wpadminbar"),a.length&&(s+=a.height()),s);function h(){var e,i,o,c,s,a=(e=d,i=l,o=t(window).scrollTop()+e+1,c=i[0],s=o-t(c).offset().top,i.forEach(function(e){var i=o-t(e).offset().top;i>0&&i'+u+""),p=t("#ez-toc-height-test"),y=p.height(),p.remove(),y-z.children("ul").first().height()),t("#ez-toc-active-height").remove(),t('").appendTo("head")}}function f(){t(window).off("load resize scroll",h)}l.length>0&&t(".ez-toc-widget-container").length&&t(window).on("load resize scroll",h)}ezTOC.init=function(){e()},e()}});