Loading
function(e,r,n){n.d(r,{A:()=>o});var a=n(64700),t=n(451988),l=n(821956),i=n(652215);function o(e){let[r,n]=a.useState(!1),o=a.useRef(null);return a.useEffect(()=>{let r=()=>{if(null==e||!("expiresAt"in e)||null==e.expiresAt)return void n(!1);let a=(0,l.bS)(e);n(a);let s=1e3*e.expiresAt-Date.now();if(!a&&s>0){let e=new t.Ep;e.start(Math.min(i.mnr,s),()=>r()),o.current=e}};return r(),()=>o.current?.stop()},[e]),a.useEffect(()=>{r&&o.current?.stop()},[r]),r?void 0:e}}