PageSourceSearch

https://polarjournal.net/wp-content/cache/min/1/wp-content/plugins…/js/frontend.js?ver=1789568343

js polarjournal.net collected 2026-10-02 06:35:20 UTC 6,250 bytes, 1 lines download raw bytes

1function e(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a,c,i=[],s=!0,l=!1;try{if(a=(o=o.call(e)).next,0===t);else for(;!(s=(n=a.call(o)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=o.return&&(c=o.return(),Object(c)!==c))return}finally{if(l)throw r}}return i}}(e,o)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}document.addEventListener("DOMContentLoaded",function(){PostViewsCounterPro={promise:null,args:{},crawlerDetect:null,init:function(e){if(this.args=e,"undefined"!=typeof PostViewsCounterCrawlerDetect&&(e.blockAI||e.blockBots)){if(this.crawlerDetect=new PostViewsCounterCrawlerDetect,e.blockBots&&this.crawlerDetect.isCrawler())return void console.log("PVC Pro: Crawler detected, skipping view count.");if(e.blockAI&&(this.crawlerDetect.isAIBot()||this.crawlerDetect.isLikelyBot()))return void console.log("PVC Pro: AI Bot detected, skipping view count.")}if(this.loadViews(),!0===e.contentActive&&e.content.hasOwnProperty("type")&&0!=e.content.type){var t={subtype:e.content.subtype,referrer:document.referrer},o="pvc_visits".concat("post"===e.content.type?"":"_".concat(e.content.type)).concat(!1!==e.multisite?"_".concat(parseInt(e.multisite)):"");"cookieless"===e.dataStorage&&this.isLocalStorageAvailable()?(t.storage_type="cookieless",t.storage_data=this.readStorageData(o)):(t.storage_type="cookies",t.storage_data=this.readCookieData(o)),"rest_api"===e.mode?this.promise=this.request(e.requestURL,t,"POST",{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","Cache-Control":"no-store","X-WP-Nonce":e.nonce},o):(t.action="pvcp-check-post",t.pvcp_nonce=e.nonce,t.content=e.content.data,t.type=e.content.type,this.promise=this.request(e.requestURL,t,"POST",{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","Cache-Control":"no-store"},o))}},request:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c={method:n,headers:r,mode:"same-origin",cache:"no-cache",credentials:"same-origin",keepalive:!0};switch(n){case"HEAD":case"GET":break;default:c.body=this.prepareRequestData(t)}var i=this;return fetch(e,c).then(function(e){if(!e.ok)throw Error(e.statusText);return e.json()}).then(function(e){try{"object"===o(e)&&null!==e?"success"in e&&!1===e.success?(console.log("PVC Pro: Request error."),console.log(e.data)):("cookieless"===i.args.dataStorage?i.saveStorageData.call(i,a,e.storage,e.type):i.saveCookieData(a,e.storage),i.triggerEvent("pvcCheckPost",e)):(console.log("PVC Pro: Invalid object."),console.log(e))}catch(t){console.log("PVC Pro: Invalid JSON data."),console.log(t)}}).catch(function(e){console.log("PVC Pro: Invalid response."),console.log(e)})},prepareRequestData:function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&").replace(/%20/g,"+")},triggerEvent:function(e,t){var o=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(o)},saveStorageData:function(e,t,o){window.localStorage.setItem(e,o in t?JSON.stringify(t[o]):"")},readStorageData:function(e){var t=null;return null===(t=window.localStorage.getItem(e))&&(t=""),t},saveCookieData:function(e,t){if(t.hasOwnProperty("name")){var o="";"https:"===document.location.protocol&&(o=";secure");for(var n=0;n<t.name.length;n++){var r=new Date,a=parseInt(t.expiry[n]);a?a*=1e3:a=r.getTime()+864e5,r.setTime(a),document.cookie=t.name[n]+"="+t.value[n]+";expires="+r.toUTCString()+";path=/"+("/"===this.args.path?"":this.args.path)+";domain="+this.args.domain+o+";SameSite=Lax"}}},readCookieData:function(t){var o=[];return document.cookie.split(";").forEach(function(n){var r=e(n.split("="),2),a=r[0],c=r[1],i=a.trim();new RegExp("".concat(t,"\\[\\d+\\]")).test(i)&&o.push(c)}),o.join("a")},isLocalStorageAvailable:function(){var e;try{return(e=window.localStorage).setItem("__pvcStorageTest",0),e.removeItem("__pvcStorageTest"),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&e&&0!==e.length}},loadViews:function(){var e=this,t=document.getElementsByClassName("post-views"),o={};if(0!==t.length)for(var n=function(){var n=t[r],a=n.className;if(!a.includes("load-dynamic"))return 1;var c=new RegExp("[a-zA-Z]+-[0-9]+.*?"),i=a.match(c),s="",l=0;
1if(null!=i){var u=i[0].split("-");s=u[0],l=u[1],o["".concat(s,"-").concat(l)]=n;var p={action:"pvcp-views-count",pvcp_nonce:e.args.nonceCount,type:s,ID:l},d={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8","Cache-Control":"no-store"},body:e.prepareRequestData(p),mode:"same-origin",cache:"no-cache",credentials:"same-origin",keepalive:!1};n.classList.add("loading"),e.promise=fetch(e.args.adminAjax,d).then(function(e){if(!e.ok)throw Error(e.statusText);return e.text()}).then(function(e){try{if("string"==typeof e&&null!==e){var t="".concat(p.type,"-").concat(p.ID);if(t in o){var n=o[t].querySelector(".post-views-count");n&&(n.innerText=e)}else console.log("Invalid DOM element")}else console.log("Invalid string")}catch(r){console.log("Invalid JSON data")}}).catch(function(e){console.log("Invalid response"),console.log(e)}).finally(function(){var e="".concat(p.type,"-").concat(p.ID);e in o&&(o[e].classList.add("loaded"),o[e].classList.remove("loading"))})}},r=0;r<t.length;r++)n()}},PostViewsCounterPro.init(pvcpArgsFrontend)})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.