import{nt as e}from"./vendor-quasar-CU_esu6y.js";var t=e(()=>{if(typeof window>`u`)return;let e=0,t=[],n=performance.now();function r(i){let a=i-n;if(n=i,e>0&&t.push(a),e++,e<=10){requestAnimationFrame(r);return}t.sort((e,t)=>e-t);let o=t.slice(2,-2);if(o.length===0)return;let s=o[Math.floor(o.length/2)];if(typeof s!=`number`||!isFinite(s)||s<=0)return;let c=document.documentElement;c.style.setProperty(`--display-refresh-ms`,`${s.toFixed(2)}ms`);let l=`350ms`;s<8?l=`220ms`:s<14&&(l=`280ms`),c.style.setProperty(`--page-transition-duration`,l),s<10&&c.classList.add(`high-refresh`)}requestAnimationFrame(r)});export{t as default};