(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_Speechify Chrome Extension"]="13.4.1"}catch(l){}})();
import{F as b,ca as S,nf as x,qa as l}from"./chunk-XMRXO6YU.js";import{f as p}from"./chunk-ODCFEFOB.js";import{b as f}from"./chunk-6I7EUWRH.js";import{b as u,g as i,n as o}from"./chunk-CLPINNGF.js";var g=u((j,h)=>{o();i();function R(t,e,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),e!==void 0&&(t=t>=e?t:e)),t}h.exports=R});var v=u((K,k)=>{o();i();var U=g(),c=p();function W(t,e,n){return n===void 0&&(n=e,e=void 0),n!==void 0&&(n=c(n),n=n===n?n:0),e!==void 0&&(e=c(e),e=e===e?e:0),U(c(t),e,n)}k.exports=W});o();i();var E,y=200,_=.05,T=[{min:.5,max:1,time:3},{min:1.1,max:1.5,time:4},{min:1.6,max:2,time:5},{min:2.1,max:2.5,time:10},{min:2.6,max:3,time:20},{min:3.1,max:3.5,time:20},{min:3.6,max:4,time:25},{min:4.1,max:4.5,time:25}],D=600,M=t=>Math.round(t/50)*50,A=t=>Math.round(t*10)/10,L=t=>{let e=A(t),n=T.find(d=>e>=d.min&&e<=d.max);if(!n)return D;let m=y*e,C=Math.round(m*n.time);return M(C)};async function w(){E?.(),E=x.on("consumed",async()=>{let{autoSpeedUp:t,playbackSpeed:e}=await S(),n=await b();if(!t||!n)return;let m=L(e);n>=m&&await P(e)})}var P=async t=>l(t+_,f,!0);o();i();var X=`
  scrollbar-gutter: stable both-edges;

  &::-webkit-scrollbar {
    width: 8px;
    opacity: 0;
    transition: opacity 200ms ease-in-out;
  }

  &:hover::-webkit-scrollbar {
    opacity: 1;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #343537;
    border-radius: 9999px;
  }


  &::-webkit-scrollbar-track {
    background-color: transparent;
  }
`;o();i();export{L as a,w as b,v as c,X as d};
//# sourceMappingURL=chunk-EVHRVMJT.js.map
