// source --> https://insperia.ru/wp-content/plugins/wp-reading-progress/wp-reading-progress.min.js?ver=1.6.0 
function ruigehond006(){function u(a){n=window.innerHeight;"undefined"!==typeof ruigehond006_c.mark_it_zero&&(r=Math.max(n-(t(a)+window.scrollY),0));v=l?l.offsetHeight:0;if(!document.getElementById("ruigehond006_bar")){document.body.insertAdjacentHTML("beforeend",'<div id="ruigehond006_wrap"><div id="ruigehond006_inner"><div id="ruigehond006_bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" tabindex="-1"></div></div></div>');const c=document.getElementById("ruigehond006_bar");
c.style.backgroundColor=ruigehond006_c.bar_color;ruigehond006_c.hasOwnProperty("aria_label")&&c.setAttribute("aria-label",ruigehond006_c.aria_label);"bottom"===ruigehond006_c.bar_attach&&(document.getElementById("ruigehond006_wrap").style.bottom="0",document.getElementById("ruigehond006_inner").style.bottom="0")}p(a);setTimeout(function(){p(a);document.getElementById("ruigehond006_inner").style.height||requestAnimationFrame(function(){document.getElementById("ruigehond006_inner").style.height=ruigehond006_c.bar_height})},
502)}function p(a){const c=a.scrollHeight-r,b=Math.max(Math.min(100*(n-t(a)-r)/c,100),0);requestAnimationFrame(function(){const h=document.getElementById("ruigehond006_bar");h.style.width=b+"%";h.setAttribute("aria-valuenow",Math.trunc(b).toString());"bottom"!==ruigehond006_c.bar_attach&&x()})}function x(){const a=document.getElementById("ruigehond006_wrap"),c=document.getElementById("ruigehond006_inner");(q=y())?requestAnimationFrame(function(){q.querySelector("#ruigehond006_wrap")||("undefined"!==
typeof ruigehond006_c.stick_relative?a.style.position="relative":(a.style.position="absolute",a.style.top="inherit"),q.insertAdjacentElement("beforeend",a));const b=(q.getBoundingClientRect().bottom-a.getBoundingClientRect().top).toFixed(2);b!==k&&(console.warn(`set cor from ${k} to ${b}`),c.style.transform=`translateY(${b}px)`,k=b)}):z(a,c)}function y(){let a,c;let b,h;if(0===m.length){var g=ruigehond006_c.bar_attach.split(",");b=0;for(h=g.length;b<h;++b){var e=g[b].trim();if(0===e.indexOf("#")&&
-1===e.indexOf(" "))m.push(document.getElementById(e.slice(1)));else if(e=document.querySelectorAll(e))for(c=0,a=e.length;c<a;++c)m.push(e[c])}}b=0;for(h=m.length;b<h;++b)if((g=m[b])&&((e=g.offsetHeight)||g.offsetWidth||g.getClientRects().length)&&0<(e+=t(g))&&e<n)return g;return null}function t(a){const c=window.scrollY;let b=0;for(;a;){b+=a.offsetTop;if(0<c&&"fixed"===(a.style.position||window.getComputedStyle(a).position).toLowerCase())return b;a=a.offsetParent}return b-c}function z(a,c){if(l||
"fixed"!==a.style.position){k="0";if(l&&"fixed"===(l.style.position||window.getComputedStyle(l).position).toLowerCase()&&(k=parseFloat(v).toFixed(2)+"px",k===a.style.top))return;requestAnimationFrame(function(){a.style.position="fixed";a.style.top=k;c.style.transform="translateY(0)";document.body.insertAdjacentElement("beforeend",a)})}}let n=0,r=0,q=null,v=0,f,d,w,k=0,m=[];const l=document.getElementById("wpadminbar");"undefined"!==typeof ruigehond006_c&&(f=document.querySelectorAll(ruigehond006_c.post_identifier),
d=1===f.length?f[0]:document.getElementById("post-"+ruigehond006_c.post_id)||document.body,ruigehond006_c.include_comments||(1===(f=d.querySelectorAll(".entry-content:not(.comment-content)")).length?d=f[0]:1===(f=d.querySelectorAll(".post-content:not(.comment-content)")).length?d=f[0]:1===(f=d.querySelectorAll(".main-content:not(.comment-content)")).length&&(d=f[0])),u(d),window.addEventListener("load",function(){p(d)}),window.addEventListener("scroll",function(){p(d)},{passive:!0}),window.addEventListener("resize",
function(){clearTimeout(w);w=setTimeout(function(){u(d)},372)}))}"complete"===document.readyState?setTimeout(ruigehond006,351):window.addEventListener("load",function(){setTimeout(ruigehond006,351)});