!function(){"use strict";window.ctEvents;var e=window.ctFrontend,t=function(){var e=document.querySelector('#main > [class*="ct-container"] > article[id] > .entry-content');if(e){var t=e.getBoundingClientRect();document.querySelector(".ct-read-progress-bar").style.setProperty("--scroll","".concat(Math.max(0,Math.min(100,100*pageYOffset/(t.top+t.height+pageYOffset-innerHeight))),"%"))}};(0,e.registerDynamicChunk)("blocksy_adv_cpt_read_progress",{mount:function(e){e.registered||(e.registered=!0,t(),document.addEventListener("scroll",(function(){return t()})))}})}();