!function(){"use strict";window.ctEvents;var e=window.ctFrontend;const t=function(){let e=document.querySelector('#main > [class*="ct-container"] > article[id] > .entry-content');if(!e)return;const t=e.getBoundingClientRect();document.querySelector(".ct-read-progress-bar").style.setProperty("--scroll",`${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()}))}})}();