"use strict";$((function(){if(window.history&&window.history.pushState&&window.history.replaceState){window.addEventListener("popstate",(function(n){n.state&&(t(),"undefined"==typeof n.state.content?a(n.state.url,!1):r(n.state),window.dispatchEvent(e.complete))}));var e={before:new Event("pjax:before"),success:new Event("pjax:success"),complete:new Event("pjax:complete"),error:new Event("pjax:error")};$(document).on("click","a[target!=_blank][rel!=gallery][class!=toc-link]",(function(){var e=$(this).attr("href");return void 0===e||(!!e.includes("javascript:")||(a(decodeURI(e),!0),!1))}))}function t(){var e=document.getElementById("kratos-blog-post").offsetTop,t=document.getElementById("kratos-desktop-topnav").offsetHeight,n=t?e-t:0;$("body,html").animate({scrollTop:n},600)}function n(e,t,n){var o=e.querySelector('meta[property="'+t+'"]');if(o)n?o.setAttribute("content",n):o.parentNode&&o.parentNode.removeChild(o);else{if(!n)return;(o=e.createElement("meta")).setAttribute("property",t),o.setAttribute("content",n),e.head.appendChild(o)}}function o(e,t){var n=e.querySelector('meta[property="'+t+'"]');return n?n.getAttribute("content"):null}function r(e,t){if(document.title=e.title||"Untitled",t){var o=document.getElementById("main");"function"==typeof o.replaceWith?o.replaceWith(t.getElementById("main")):document.getElementById("main").innerHTML=e.content}else document.getElementById("main").innerHTML=e.content;for(var r=document.getElementById("main").getElementsByTagName("script"),i=0;i