5e6});let e=[];r.ondataavailable=A=>{e.push(A.data)};let a=t.timerElement;a&&(a.hidden=!1,a.innerText="00:00");function n(){if(B){if(a){let e=Math.floor((Date.now()-B)/1e3);a.innerText=Math.floor(e/60).toString().padStart(2,"0")+":"+(e%60).toString().padStart(2,"0")}setTimeout(n,1e3)}}r.onstop=()=>{a&&(a.hidden=!0),Q(new Blob(e,{type:"video/webm"}),".webm")},r.start(),B=Date.now(),setTimeout(n,1e3)}(),e.preventDefault()}o?F|=a:F&=~a};g.onkeydown=e,g.onkeyup=e}async function f(r,B){a&&(a(),a=null);let g=r.by