let WP_Statistics_CheckTime=6e4,WP_Statistics_Dnd_Active=parseInt(navigator.msDoNotTrack||window.doNotTrack||navigator.doNotTrack,10),hasTrackerInitializedOnce=!1,referred=encodeURIComponent(document.referrer),wpStatisticsUserOnline={init:function(){hasTrackerInitializedOnce||(hasTrackerInitializedOnce=!0,"undefined"==typeof WP_Statistics_Tracker_Object?console.log("Variable WP_Statistics_Tracker_Object not found on the page source. Please ensure that you have excluded the /wp-content/plugins/wp-statistics/assets/js/tracker.js file from your cache and then clear your cache."):(this.checkHitRequestConditions(),this.keepUserOnline()))},checkHitRequestConditions:function(){!WP_Statistics_Tracker_Object.option.cacheCompatibility||WP_Statistics_Tracker_Object.option.dntEnabled&&1===WP_Statistics_Dnd_Active||this.sendHitRequest()},sendHitRequest:async function(){try{var e=Date.now(),t=`${WP_Statistics_Tracker_Object.hitRequestUrl}&referred=${referred}&_=`+e;(await fetch(t,{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}})).ok||console.error("Hit request failed!")}catch(e){console.error("An error occurred on sending hit request:",e)}},sendOnlineUserRequest:function(){try{var e=Date.now(),t=`${WP_Statistics_Tracker_Object.keepOnlineRequestUrl}&referred=${referred}&_=`+e,n=new XMLHttpRequest;n.open("GET",t),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.send(null)}catch(e){}},keepUserOnline:function(){setInterval(function(){(!WP_Statistics_Tracker_Object.option.dntEnabled||WP_Statistics_Tracker_Object.option.dntEnabled&&1!==WP_Statistics_Dnd_Active)&&this.sendOnlineUserRequest()}.bind(this),WP_Statistics_CheckTime)}};document.addEventListener("DOMContentLoaded",function(){"disabled"!=WP_Statistics_Tracker_Object.option.consentLevel&&!WP_Statistics_Tracker_Object.option.trackAnonymously&&WP_Statistics_Tracker_Object.option.isWpConsentApiActive&&!wp_has_consent(WP_Statistics_Tracker_Object.option.consentLevel)||wpStatisticsUserOnline.init(),document.addEventListener("wp_listen_for_consent_change",function(e){var t,n=e.detail;for(t in n)n.hasOwnProperty(t)&&t===WP_Statistics_Tracker_Object.option.consentLevel&&"allow"===n[t]&&(wpStatisticsUserOnline.init(),WP_Statistics_Tracker_Object.option.trackAnonymously)&&wpStatisticsUserOnline.checkHitRequestConditions()})});