From c1a4dd37bb206326f6d66733ff787ff148d37f94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 12:26:35 +0000 Subject: [PATCH] chore(plausible): refresh self-hosted tracker New SRI hash (derived at build): sha384-A/+e8MGB5ruM9qUEz7ST0YKPo2TLEwdHhBIZL1Ii9jqCGKR2ZwLKc6ArNahGzYOV --- public/js/plausible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/plausible.js b/public/js/plausible.js index d1665fcd..38a10a59 100644 --- a/public/js/plausible.js +++ b/public/js/plausible.js @@ -1 +1 @@ -!function(){var t,n,e,i=document.currentScript,o={};function a(t,n,e){window.fetch&&fetch(t,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(n)}).then(function(t){e&&e.callback&&e.callback({status:t.status})}).catch(function(t){e&&e.callback&&e.callback({error:t})})}var c=!1,r=location.href,l={},d=-1,u=0,s=0;function w(){var i=v();if(!t&&(d=3e3)){d=e;var c={n:"engagement",sd:Math.round(e/n*100),d:o.domain,u:r,p:l,e:i,v:34};u=0,s=0,a(o.endpoint,c)}}function p(){"visible"===document.visibilityState&&document.hasFocus()&&0===u?u=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(s=v(),u=0,w())}function v(){return u?s+(Date.now()-u):s}function f(){var t=document.body||{},n=document.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,n.scrollHeight||0,n.offsetHeight||0,n.clientHeight||0)}function h(){var t,e;return t=window.innerHeight,e=window.scrollY,n<=t?n:e+t}function g(i,v){var g="pageview"===i;if(g&&c&&(w(),n=f(),e=h()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return m(i,v,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return m(i,v);try{if("true"===window.localStorage.plausible_ignore)return m(i,v,"localStorage flag")}catch(t){}var b={};b.n=i,b.v=34,b.u=location.href,b.d=o.domain,b.r=document.referrer||null,v&&v.meta&&(b.m=JSON.stringify(v.meta)),v&&v.props&&(b.p=v.props),v&&!1===v.interactive&&(b.i=!1),g&&(t=!1,r=b.u,l=b.p,d=-1,s=0,u=Date.now(),c||(document.addEventListener("visibilitychange",p),window.addEventListener("blur",p),window.addEventListener("focus",p),c=!0)),a(o.endpoint,b,v)}function m(n,e,i){i&&o.logging&&console.warn("Ignoring Event: "+i),e&&e.callback&&e.callback(),"pageview"===n&&(t=!0)}!function t(a){o.endpoint=i.getAttribute("data-api")||new URL(i.src).origin+"/api/event",o.domain=i.getAttribute("data-domain"),o.logging=!0,n=f(),e=h(),new ResizeObserver(function(){n=f()}).observe(document.documentElement),document.addEventListener("scroll",function(){var t=h();t>e&&(e=t)}),function(t){function n(n){n&&e===location.pathname||(e=location.pathname,t("pageview"))}var e,i=function(){n(!0)},o=window.history;if(o.pushState){var a=o.pushState;o.pushState=function(){a.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){e||"visible"!==document.visibilityState||n()}):n(),window.addEventListener("pageshow",function(t){t.persisted&&n()})}(g);for(var c=window.plausible&&window.plausible.q||[],r=0;r=3e3)){d=i;var r={n:"engagement",sd:Math.round(i/e*100),d:a.domain,u:n,p:l,e:o,v:36};u=0,s=0,c(a.endpoint,r)}}function p(){"visible"===document.visibilityState&&document.hasFocus()&&0===u?u=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(s=v(),u=0,w())}function v(){return u?s+(Date.now()-u):s}function f(){var t=document.body||{},n=document.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,n.scrollHeight||0,n.offsetHeight||0,n.clientHeight||0)}function h(){var t,n;return t=window.innerHeight,n=window.scrollY,e<=t?e:n+t}function g(o,v){var g="pageview"===o;if(g&&r&&(w(),e=f(),i=h()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return m(o,v,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return m(o,v);try{if("true"===window.localStorage.plausible_ignore)return m(o,v,"localStorage flag")}catch(t){}var b={};b.n=o,b.v=36,b.u=location.href,b.d=a.domain,b.r=document.referrer||null,v&&v.meta&&(b.m=JSON.stringify(v.meta)),v&&v.props&&(b.p=v.props),v&&!1===v.interactive&&(b.i=!1),g&&(t=!1,n=b.u,l=b.p,d=-1,s=0,u=Date.now(),r||(document.addEventListener("visibilitychange",p),window.addEventListener("blur",p),window.addEventListener("focus",p),r=!0)),c(a.endpoint,b,v)}function m(n,e,i){i&&a.logging&&console.warn("Ignoring Event: "+i),e&&e.callback&&e.callback(),"pageview"===n&&(t=!0)}!function t(n){a.endpoint=o.getAttribute("data-api")||new URL(o.src).origin+"/api/event",a.domain=o.getAttribute("data-domain"),a.logging=!0,e=f(),i=h(),new ResizeObserver(function(){e=f()}).observe(document.documentElement),document.addEventListener("scroll",function(){var t=h();t>i&&(i=t)}),function(t){function n(n){n&&e===location.pathname||(e=location.pathname,t("pageview"))}var e,i=function(){n(!0)},o=window.history;if(o.pushState){var a=o.pushState;o.pushState=function(){a.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){e||"visible"!==document.visibilityState||n()}):n(),window.addEventListener("pageshow",function(t){t.persisted&&n()})}(g);for(var c=window.plausible&&window.plausible.q||[],r=0;r