View file File name : single-autopost-infinite.min.js Content :!function(o){var n=o(window),c=[],p=[],i=!1,g=0,h={top:0,right:0,bottom:0,left:0};function s(){++g;var i,s,l,u,d,e=n.scrollTop(),t=n.scrollLeft(),r=t+n.width(),a=e+n.height(),e=(i=e+h.top,s=r+h.right,l=a+h.bottom,u=t+h.left,d=o(),o.each(c,function(e,t){var r=t.offset().top,a=t.offset().left,o=a+t.width(),n=r+t.height();s<a||o<u||l<r||n<i||d.push(t)}),d);o.each(e,function(e,t){"number"!=typeof t.data("scrollSpy:ticks")&&t.triggerHandler("scrollSpy:enter"),t.data("scrollSpy:ticks",g)}),o.each(p,function(e,t){var r=t.data("scrollSpy:ticks");"number"==typeof r&&r!==g&&(t.triggerHandler("scrollSpy:exit"),t.data("scrollSpy:ticks",null))}),p=e}function t(){n.trigger("scrollSpy:winSize")}var f=Date.now||function(){return(new Date).getTime()};function l(r,a,o){function n(){d=!1===o.leading?0:f(),u=null,l=r.apply(i,s),i=s=null}var i,s,l,u=null,d=0;o=o||{};return function(){var e=f(),t=(d||!1!==o.leading||(d=e),a-(e-d));return i=this,s=arguments,t<=0?(clearTimeout(u),u=null,d=e,l=r.apply(i,s),i=s=null):u||!1===o.trailing||(u=setTimeout(n,t)),l}}o.scrollSpy=function(e,t){(e=o(e)).each(function(e,t){c.push(o(t))}),h.top=(t=t||{throttle:100}).offsetTop||0,h.right=t.offsetRight||0,h.bottom=t.offsetBottom||0,h.left=t.offsetLeft||0;function r(){o(document).ready(a)}var a=l(s,t.throttle||100);return i||(n.on("scroll",r),n.on("resize",r),i=!0),setTimeout(r,0),e},o.winSizeSpy=function(e){return o.winSizeSpy=function(){return n},n.on("resize",l(t,(e=e||{throttle:100}).throttle||100))},o.fn.scrollSpy=function(e){return o.scrollSpy(o(this),e)}}(jQuery),function(e){"use strict";var t=e.History=e.History||{},a=e.jQuery;if(void 0!==t.Adapter)throw new Error("History.js Adapter has already been loaded...");t.Adapter={bind:function(e,t,r){a(e).bind(t,r)},trigger:function(e,t,r){a(e).trigger(t,r)},extractEventData:function(e,t,r){return t&&t.originalEvent&&t.originalEvent[e]||r&&r[e]||void 0},onDomLoad:function(e){a(e)}},void 0!==t.init&&t.init()}(window),function(o,r){"use strict";var s=o.console||r,l=o.document,a=o.navigator,n=!1,i=o.setTimeout,u=o.clearTimeout,d=o.setInterval,c=o.clearInterval,p=o.JSON,g=o.alert,h=o.History=o.History||{},f=o.history;try{(n=o.sessionStorage).setItem("TEST","1"),n.removeItem("TEST")}catch(e){n=!1}if(p.stringify=p.stringify||p.encode,p.parse=p.parse||p.decode,void 0!==h.init)throw new Error("History.js Core has already been loaded...");h.init=function(e){return void 0!==h.Adapter&&(void 0!==h.initCore&&h.initCore(),void 0!==h.initHtml4&&h.initHtml4(),!0)},h.initCore=function(e){if(void 0!==h.initCore.initialized)return!1;var t;if(h.initCore.initialized=!0,h.options=h.options||{},h.options.hashChangeInterval=h.options.hashChangeInterval||100,h.options.safariPollInterval=h.options.safariPollInterval||500,h.options.doubleCheckInterval=h.options.doubleCheckInterval||500,h.options.disableSuid=h.options.disableSuid||!1,h.options.storeInterval=h.options.storeInterval||1e3,h.options.busyDelay=h.options.busyDelay||250,h.options.debug=h.options.debug||!1,h.options.initialTitle=h.options.initialTitle||l.title,h.options.html4Mode=h.options.html4Mode||!1,h.options.delayInit=h.options.delayInit||!1,h.intervalList=[],h.clearAllIntervals=function(){var e,t=h.intervalList;if(null!=t){for(e=0;e<t.length;e++)c(t[e]);h.intervalList=null}},h.debug=function(){h.options.debug&&h.log.apply(h,arguments)},h.log=function(){var e,t,r,a,o,n=!(void 0===s||void 0===s.log||void 0===s.log.apply),i=l.getElementById("log");for(n?(e=(a=Array.prototype.slice.call(arguments)).shift(),(void 0!==s.debug?s.debug:s.log).apply(s,[e,a])):e="\n"+arguments[0]+"\n",t=1,r=arguments.length;t<r;++t){if("object"==typeof(o=arguments[t])&&void 0!==p)try{o=p.stringify(o)}catch(e){}e+="\n"+o+"\n"}return i?(i.value+=e+"\n-----\n",i.scrollTop=i.scrollHeight-i.clientHeight):n||g(e),!0},h.getInternetExplorerMajorVersion=function(){return h.getInternetExplorerMajorVersion.cached=void 0!==h.getInternetExplorerMajorVersion.cached?h.getInternetExplorerMajorVersion.cached:function(){for(var e=3,t=l.createElement("div"),r=t.getElementsByTagName("i");(t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e")&&r[0];);return 4<e&&e}()},h.isInternetExplorer=function(){return h.isInternetExplorer.cached=void 0!==h.isInternetExplorer.cached?h.isInternetExplorer.cached:Boolean(h.getInternetExplorerMajorVersion())},h.options.html4Mode?h.emulated={pushState:!0,hashChange:!0}:h.emulated={pushState:!Boolean(o.history&&o.history.pushState&&o.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(a.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(a.userAgent))),hashChange:Boolean(!("onhashchange"in o||"onhashchange"in l)||h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8)},h.enabled=!h.emulated.pushState,h.bugs={setHash:Boolean(!h.emulated.pushState&&"Apple Computer, Inc."===a.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(a.userAgent)),safariPoll:Boolean(!h.emulated.pushState&&"Apple Computer, Inc."===a.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(a.userAgent)),ieDoubleCheck:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<7)},h.isEmptyObject=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},h.cloneObject=function(e){e=e?(e=p.stringify(e),p.parse(e)):{};return e},h.getRootUrl=function(){var e=l.location.protocol+"//"+(l.location.hostname||l.location.host);return l.location.port&&(e+=":"+l.location.port),e+="/"},h.getBaseHref=function(){var e=l.getElementsByTagName("base"),t="";return(t=(t=1===e.length?e[0].href.replace(/[^\/]+$/,""):t).replace(/\/+$/,""))&&(t+="/"),t},h.getBaseUrl=function(){return h.getBaseHref()||h.getBasePageUrl()||h.getRootUrl()},h.getPageUrl=function(){return((h.getState(!1,!1)||{}).url||h.getLocationHref()).replace(/\/+$/,"").replace(/[^\/]+$/,function(e,t,r){return/\./.test(e)?e:e+"/"})},h.getBasePageUrl=function(){return h.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(e,t,r){return/[^\/]$/.test(e)?"":e}).replace(/\/+$/,"")+"/"},h.getFullUrl=function(e,t){var r=e,a=e.substring(0,1);return t=void 0===t||t,(r=/[a-z]+\:\/\//.test(e)?r:"/"===a?h.getRootUrl()+e.replace(/^\/+/,""):"#"===a?h.getPageUrl().replace(/#.*/,"")+e:"?"===a?h.getPageUrl().replace(/[\?#].*/,"")+e:t?h.getBaseUrl()+e.replace(/^(\.\/)+/,""):h.getBasePageUrl()+e.replace(/^(\.\/)+/,"")).replace(/\#$/,"")},h.getShortUrl=function(e){var t=h.getBaseUrl(),r=h.getRootUrl(),e=(e=h.emulated.pushState?e.replace(t,""):e).replace(r,"/");return e=(e=h.isTraditionalAnchor(e)?"./"+e:e).replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},h.getLocationHref=function(e){return(e=e||l).URL===e.location.href?e.location.href:e.location.href===decodeURIComponent(e.URL)?e.URL:(!e.location.hash||decodeURIComponent(e.location.href.replace(/^[^#]+/,""))!==e.location.hash)&&(-1!=e.URL.indexOf("#")||-1==e.location.href.indexOf("#"))&&e.URL||e.location.href},h.store={},h.idToState=h.idToState||{},h.stateToId=h.stateToId||{},h.urlToId=h.urlToId||{},h.storedStates=h.storedStates||[],h.savedStates=h.savedStates||[],h.normalizeStore=function(){h.store.idToState=h.store.idToState||{},h.store.urlToId=h.store.urlToId||{},h.store.stateToId=h.store.stateToId||{}},h.getState=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var r=h.getLastSavedState();return!r&&t&&(r=h.createStateObject()),e&&((r=h.cloneObject(r)).url=r.cleanUrl||r.url),r},h.getIdByState=function(e){var t,r=h.extractId(e.url);if(!r)if(t=h.getStateString(e),void 0!==h.stateToId[t])r=h.stateToId[t];else if(void 0!==h.store.stateToId[t])r=h.store.stateToId[t];else{for(;;)if(r=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),void 0===h.idToState[r]&&void 0===h.store.idToState[r])break;h.stateToId[t]=r,h.idToState[r]=e}return r},h.normalizeState=function(e){var t;return void 0!==(e=e&&"object"==typeof e?e:{}).normalized?e:(e.data&&"object"==typeof e.data||(e.data={}),(t={normalized:!0}).title=e.title||"",t.url=h.getFullUrl(e.url||h.getLocationHref()),t.hash=h.getShortUrl(t.url),t.data=h.cloneObject(e.data),t.id=h.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,e=!h.isEmptyObject(t.data),(t.title||e)&&!0!==h.options.disableSuid&&(t.hash=h.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=h.getFullUrl(t.hash),(h.emulated.pushState||h.bugs.safariPoll)&&h.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},h.createStateObject=function(e,t,r){return h.normalizeState({data:e,title:t,url:r})},h.getStateById=function(e){return e=String(e),h.idToState[e]||h.store.idToState[e]||r},h.getStateString=function(e){e={data:h.normalizeState(e).data,title:e.title,url:e.url};return p.stringify(e)},h.getStateId=function(e){return h.normalizeState(e).id},h.getHashByState=function(e){return h.normalizeState(e).hash},h.extractId=function(e){e=-1!=e.indexOf("#")?e.split("#")[0]:e,e=/(.*)\&_suid=([0-9]+)$/.exec(e);e&&e[1];return(e?String(e[2]||""):"")||!1},h.isTraditionalAnchor=function(e){return!/[\/\?\.]/.test(e)},h.extractState=function(e,t){var r,a,o=null;return t=t||!1,o=(o=(r=h.extractId(e))?h.getStateById(r):o)||(a=h.getFullUrl(e),o=(r=h.getIdByUrl(a)||!1)?h.getStateById(r):o)||!t||h.isTraditionalAnchor(e)?o:h.createStateObject(null,null,a)},h.getIdByUrl=function(e){return h.urlToId[e]||h.store.urlToId[e]||r},h.getLastSavedState=function(){return h.savedStates[h.savedStates.length-1]||r},h.getLastStoredState=function(){return h.storedStates[h.storedStates.length-1]||r},h.hasUrlDuplicate=function(e){var t=h.extractState(e.url);return t&&t.id!==e.id},h.storeState=function(e){return h.urlToId[e.url]=e.id,h.storedStates.push(h.cloneObject(e)),e},h.isLastSavedState=function(e){var t=!1;return t=h.savedStates.length?e.id===h.getLastSavedState().id:t},h.saveState=function(e){return!h.isLastSavedState(e)&&(h.savedStates.push(h.cloneObject(e)),!0)},h.getStateByIndex=function(e){return void 0===e?h.savedStates[h.savedStates.length-1]:e<0?h.savedStates[h.savedStates.length+e]:h.savedStates[e]},h.getCurrentIndex=function(){return h.savedStates.length<1?0:h.savedStates.length-1},h.getHash=function(e){e=h.getLocationHref(e);return h.getHashByUrl(e)},h.unescapeHash=function(e){e=h.normalizeHash(e);return decodeURIComponent(e)},h.normalizeHash=function(e){return e.replace(/[^#]*#/,"").replace(/#.*/,"")},h.setHash=function(e,t){return!1!==t&&h.busy()?(h.pushQueue({scope:h,callback:h.setHash,args:arguments,queue:t}),!1):(h.busy(!0),(t=h.extractState(e,!0))&&!h.emulated.pushState?h.pushState(t.data,t.title,t.url,!1):h.getHash()!==e&&(h.bugs.setHash?(t=h.getPageUrl(),h.pushState(null,null,t+"#"+e,!1)):l.location.hash=e),h)},h.escapeHash=function(e){e=h.normalizeHash(e),e=o.encodeURIComponent(e);return e=h.bugs.hashEscape?e:e.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")},h.getHashByUrl=function(e){e=String(e).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return h.unescapeHash(e)},h.setTitle=function(e){var t,r=e.title;r||(t=h.getStateByIndex(0))&&t.url===e.url&&(r=t.title||h.options.initialTitle);try{l.getElementsByTagName("title")[0].innerHTML=r.replace("<","<").replace(">",">").replace(" & "," & ")}catch(e){}return l.title=r,h},h.queues=[],h.busy=function(e){var r;return void 0!==e?h.busy.flag=e:void 0===h.busy.flag&&(h.busy.flag=!1),h.busy.flag||(u(h.busy.timeout),h.busy.timeout=i(r=function(){var e,t;if(!h.busy.flag)for(e=h.queues.length-1;0<=e;--e)0!==(t=h.queues[e]).length&&(t=t.shift(),h.fireQueueItem(t),h.busy.timeout=i(r,h.options.busyDelay))},h.options.busyDelay)),h.busy.flag},h.busy.flag=!1,h.fireQueueItem=function(e){return e.callback.apply(e.scope||h,e.args||[])},h.pushQueue=function(e){return h.queues[e.queue||0]=h.queues[e.queue||0]||[],h.queues[e.queue||0].push(e),h},h.queue=function(e,t){return"function"==typeof e&&(e={callback:e}),void 0!==t&&(e.queue=t),h.busy()?h.pushQueue(e):h.fireQueueItem(e),h},h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h},h.stateChanged=!1,h.doubleChecker=!1,h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h},h.doubleCheckClear=function(){return h.doubleChecker&&(u(h.doubleChecker),h.doubleChecker=!1),h},h.doubleCheck=function(e){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&(h.doubleChecker=i(function(){return h.doubleCheckClear(),h.stateChanged||e(),!0},h.options.doubleCheckInterval)),h},h.safariStatePoll=function(){var e=h.extractState(h.getLocationHref());if(!h.isLastSavedState(e))return e||h.createStateObject(),h.Adapter.trigger(o,"popstate"),h},h.back=function(e){return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),f.go(-1),!0)},h.forward=function(e){return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.forward,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),f.go(1),!0)},h.go=function(e,t){var r;if(0<e)for(r=1;r<=e;++r)h.forward(t);else{if(!(e<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;e<=r;--r)h.back(t)}return h},h.emulated.pushState?(t=function(){},h.pushState=h.pushState||t,h.replaceState=h.replaceState||t):(h.onPopState=function(e,t){var r,a=!1;return h.doubleCheckComplete(),(r=h.getHash())?((r=h.extractState(r||h.getLocationHref(),!0))?h.replaceState(r.data,r.title,r.url,!1):(h.Adapter.trigger(o,"anchorchange"),h.busy(!1)),h.expectedStateId=!1):(a=(a=(r=h.Adapter.extractEventData("state",e,t)||!1)?h.getStateById(r):h.expectedStateId?h.getStateById(h.expectedStateId):h.extractState(h.getLocationHref()))||h.createStateObject(null,null,h.getLocationHref()),h.expectedStateId=!1,h.isLastSavedState(a)?(h.busy(!1),!1):(h.storeState(a),h.saveState(a),h.setTitle(a),h.Adapter.trigger(o,"statechange"),h.busy(!1),!0))},h.Adapter.bind(o,"popstate",h.onPopState),h.pushState=function(e,t,r,a){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==a&&h.busy())return h.pushQueue({scope:h,callback:h.pushState,args:arguments,queue:a}),!1;h.busy(!0);a=h.createStateObject(e,t,r);return h.isLastSavedState(a)?h.busy(!1):(h.storeState(a),h.expectedStateId=a.id,f.pushState(a.id,a.title,a.url),h.Adapter.trigger(o,"popstate")),!0},h.replaceState=function(e,t,r,a){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==a&&h.busy())return h.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:a}),!1;h.busy(!0);a=h.createStateObject(e,t,r);return h.isLastSavedState(a)?h.busy(!1):(h.storeState(a),h.expectedStateId=a.id,f.replaceState(a.id,a.title,a.url),h.Adapter.trigger(o,"popstate")),!0}),n)try{h.store=p.parse(n.getItem("History.store"))||{}}catch(e){h.store={}}else h.store={};h.normalizeStore(),h.Adapter.bind(o,"unload",h.clearAllIntervals),h.saveState(h.storeState(h.extractState(h.getLocationHref(),!0))),n&&(h.onUnload=function(){var t,e,r;try{t=p.parse(n.getItem("History.store"))||{}}catch(e){t={}}for(e in t.idToState=t.idToState||{},t.urlToId=t.urlToId||{},t.stateToId=t.stateToId||{},h.idToState)h.idToState.hasOwnProperty(e)&&(t.idToState[e]=h.idToState[e]);for(e in h.urlToId)h.urlToId.hasOwnProperty(e)&&(t.urlToId[e]=h.urlToId[e]);for(e in h.stateToId)h.stateToId.hasOwnProperty(e)&&(t.stateToId[e]=h.stateToId[e]);h.store=t,h.normalizeStore(),r=p.stringify(t);try{n.setItem("History.store",r)}catch(e){if(e.code!==DOMException.QUOTA_EXCEEDED_ERR)throw e;n.length&&(n.removeItem("History.store"),n.setItem("History.store",r))}},h.intervalList.push(d(h.onUnload,h.options.storeInterval)),h.Adapter.bind(o,"beforeunload",h.onUnload),h.Adapter.bind(o,"unload",h.onUnload)),h.emulated.pushState||(h.bugs.safariPoll&&h.intervalList.push(d(h.safariStatePoll,h.options.safariPollInterval)),"Apple Computer, Inc."!==a.vendor&&"Mozilla"!==(a.appCodeName||""))||(h.Adapter.bind(o,"hashchange",function(){h.Adapter.trigger(o,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(o,"hashchange")}))},h.options&&h.options.delayInit||h.init()}(window),function(l){"use strict";var u="#main.site-main",d="h1.entry-title",c="nav.post-navigation",p="div#comments",g="yes",n=window.location.href,h=0,f=!1,o=astra.show_comments||"Show Comments",S=astra.edit_post_url||"",s=astra.site_url||"";function y(e){e=l(e);0!==e.length&&e.each(function(e){var t,r,a=l(this);0===a.find(".ast-show-comments-data").length&&(t=a.find(".comments-count-wrapper"),r='<div class="ast-show-comments-data">',a.find(".comment-respond").hide(),0<t.length&&(t.hide(),a.find(".ast-comment-list").hide(),r+='<div class="ast-show-comments-count"><h3 class="comments-title">'+t.find(".comments-title").text()+"</h3></div>"),r=r+'<div class="ast-show-comments button ast-button">'+o+"</div></div>",a.find(".no-comments").hide(),a.prepend(r))})}function v(){l(".post-divider").off("scrollSpy:enter",e),l(".post-divider").off("scrollSpy:exit",t),l(".post-divider").on("scrollSpy:enter",e),l(".post-divider").on("scrollSpy:exit",t),l(".post-divider").scrollSpy()}function e(){r(l(this))}function t(){r(l(this))}function r(e){var e=l(e),t=e.attr("data-url"),r=e.attr("data-title"),a=e.attr("data-post-id"),o=e.offset(),i=l(document).scrollTop();if(o.top-i<200&&n!=t&&(n=t,History.pushState(null,r,t),0<l("#wp-admin-bar-edit").length&&""!=S&&(o=S.replace("{{id}}",a),l("#wp-admin-bar-edit a").attr("href",o)),l("body").trigger("asta-post-changed",[r,t,a,h,f])),0===e.nextAll(".post-divider").length&&!f){var s=l(c).find('a[rel="prev"]').attr("href");if(s&&s!==window.location.href){i=-1<s.indexOf("?")?s+"&partial-prev=1":s+"?partial-prev=1",l(c).remove();let n=new XMLHttpRequest;n.open("GET",s,!0),n.send(),n.onload=function(){var e=n.response;let t=(new DOMParser).parseFromString(e,"text/html"),r=t.querySelector("article.ast-article-single")?t.querySelector("article.ast-article-single").getAttribute("id"):"";r=""!=r?r.replace("post-",""):"";var a,e=t.getElementById("uag-style-"+r+"-css"),o=t.getElementById("uagb-style-frontend-"+r);""!==r&&e&&(e=e.href,(a=document.createElement("link")).rel="stylesheet",a.id="uag-style-"+r+"-css",a.href=e,a.media="all",document.head.appendChild(a)),""!==r&&o&&((e=document.createElement("style")).id="uagb-style-frontend-"+r,e.textContent=o.innerText,document.head.appendChild(e))},l.get(i,function(e){var t=l("<div>"+e+"</div>");e=t.html();var e=l('<hr style="height: 0" class="ast-single-previous-hr post-divider" data-url="'+s+'"/>'+e),r=e.find(d),t=l(t).find("article").attr("id");void 0!==t&&""!==t&&(t=t.replace("post-","")),l(u).append(e),"yes"===g&&y(p),l('hr[data-url="'+s+'"]').attr("data-title",r.text()).attr("data-post-id",t),v(),h+=1,l("body").trigger("astra-post-loaded",[r.text(),s,t,h])})}}}l(document).ready(function(){var e,t=!1;(t="undefined"!=typeof wp?void 0!==wp.customize:t)||-1<window.location.href.indexOf("#comments")||("yes"===g&&y(p),void 0!==(e=(t=l(u)).find(".ast-article-single").attr("id"))&&""!==e&&(e=e.replace("post-","")),t.prepend('<hr style="height: 0" class="post-divider" data-title="'+window.document.title+'" data-url="'+window.location.href+'" data-post-id="'+e+'"/>'),v(),l("body").on("click",".ast-show-comments",function(e){var t=l(this).closest(".ast-show-comments-data");t.hide(),t.siblings().show()}),l("body").on("asta-post-changed",function(e,t,r,a,o,n){var i;"undefined"==typeof pageTracker&&"undefined"==typeof _gaq&&"undefined"==typeof ga&&"undefined"==typeof __gaTracker||(i=new RegExp(s,"gi"),r=r.replace(i,""),"undefined"!=typeof pageTracker&&null!==pageTracker&&pageTracker._trackPageview(r),"undefined"!=typeof _gaq&&null!==_gaq&&_gaq.push(["_trackPageview",r]),"undefined"!=typeof ga&&null!==ga&&ga("send","pageview",r),"undefined"!=typeof __gaTracker&&null!==__gaTracker&&__gaTracker("send","pageview",r),"undefined"!=typeof gtag&&null!==gtag&>ag("event","page_view",{page_title:t,page_path:r}))}))})}(jQuery);