/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(e=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1),($=jQuery)(document).ready(function(){$.fn.restoreScrolling=function(){return $("html").off("wheel.modal mousewheel.modal"),this};var t,e=$("#mobile-header .col-has-toggle-menu-element").data("meanmenu");$(".header-toggle-menu-wrap .menu-top-menu-container").meanmenu({meanMenuContainer:".header-toggle-menu-wrap .main-navigation",meanScreenWidth:"1023",meanRevealPosition:e}),$(window).width()<1024&&(e=".main-navigation",1023 li:last").focus().blur():jQuery(".meanclose").trigger("click"))},keyup:function(e){e.stopPropagation(),9==e.keyCode&&(t.cancelKeyup?t.cancelKeyup=!1:t.click.apply(this,arguments))}},jQuery(document).on("click","li",t.click).on("keydown","li",t.keydown).on("keyup","li",t.keyup),jQuery(".mean-bar li").each(function(e){this.tabIndex=e})),$(".site-header .search-toggle").on("click",function(){var e,t;$(".site-header .header-search-section").toggleClass("active"),setTimeout(function(){$('.header-search-section form input[type="search"]').focus()},500),(e=$('.header-search-section input[type="submit"]:not([disabled]), .header-search-section input:not([disabled]) '))[0],t=e[e.length-1],$(".header-search-section").on("keydown",function(e){"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey&&document.activeElement===t?(e.preventDefault(),$('.header-search-section form input[type="search"]').focus()):document.activeElement===t&&$(".header-search-section").removeClass("active"))})}),$(document).on("keyup",function(e){27===e.keyCode&&$(".header-search-section").hasClass("active")&&$(".header-search-section").removeClass("active")}),$(".back-to-top").hide(),$(".back-to-top").on("click",function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},"slow")}),$(window).scroll(function(){400<$(window).scrollTop()?$(".back-to-top").fadeIn():$(".back-to-top").fadeOut()}),BLOGIN_AARAMBHA.sticky_sidebar&&$(".has-sticky-sidebar .have-sidebar #primary, .has-sticky-sidebar .have-sidebar #secondary").theiaStickySidebar({additionalMarginTop:30});let n=document.getElementById("theme-toggle");n&&((e=localStorage.getItem("theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"))&&document.documentElement.setAttribute("data-theme",e),n.onclick=function(){let e="light"===document.documentElement.getAttribute("data-theme")?"dark":"light";document.documentElement.setAttribute("data-theme",e),localStorage.setItem("theme",e)})});