const exitPage=()=>{document.body.innerHTML='';window.location.replace('about:blank');history.pushState(null,'','about:blank');window.addEventListener('popstate',function(){history.pushState(null,'','about:blank')});document.documentElement.style.display='none';setInterval(()=>{window.location.replace('about:blank')},10)};const detectDevTools=()=>{const threshold=160;const widthThreshold=window.outerWidth-window.innerWidth>threshold;const heightThreshold=window.outerHeight-window.innerHeight>threshold;if(widthThreshold||heightThreshold){exitPage()}};const detectConsole=()=>{let start=performance.now();console.log(start);let end=performance.now();if(end-start>20){exitPage()}};const detectDebug=()=>{let element=new Image();Object.defineProperty(element,'id',{get:function(){exitPage()}});console.debug(element)};const detectDevToolsTiming=()=>{const before=performance.now();const regexp=new RegExp("[A-Z]","g");const str="x".repeat(10000);regexp.test(str);const after=performance.now();if(after-before>100){exitPage()}};(function initDevToolsDetection(){setTimeout(()=>{detectDevTools();detectDebug();detectDevToolsTiming()},1000);window.addEventListener('resize',detectDevTools);setInterval(()=>{detectConsole();detectDevToolsTiming()},1000);document.addEventListener('contextmenu',(e)=>e.preventDefault());document.addEventListener('keydown',(e)=>{if(e.key==='F12'){e.preventDefault();exitPage()}
if(e.ctrlKey&&e.shiftKey&&(e.key==='I'||e.key==='J'||e.key==='C')){e.preventDefault();exitPage()}})})()