!function(){"use strict";if(window.saOttoData){const e=navigator.userAgent,t=/bot|crawl|spider|slurp|mediapartners/i.test(e);if(t){const{page_url:a,otto_uuid:o,context:n}=window.saOttoData,r=async(a,o,n)=>{try{if(t){const t={otto_uuid:o,url:a,user_agent:e,context:n};try{const e=performance.getEntriesByType("resource"),a=e.reduce((e,t)=>e+(t.responseEnd-t.startTime),0),o=e.length>0?(a/e.length).toFixed(2):null,n=e.reduce((e,t)=>e+(t.transferSize||0),0),r=(n/1024).toFixed(2);o&&(t.average_response_time=o),r&&(t.total_download_size_kb=r)}catch(e){}const a=await fetch("https://sa.searchatlas.com/api/v2/otto-page-crawl-logs/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)return}}catch(e){}};"requestIdleCallback"in window?requestIdleCallback(()=>{r(a,o,n)},{timeout:2e3}):setTimeout(()=>{r(a,o,n)},100)}}}();