(() => {
  function block() {
    // if (
    //   window.outerHeight - window.innerHeight > 200 ||
    //   window.outerWidth - window.innerWidth > 200
    // ) {
    //   document.body.innerHTML = '检测到非法调试,请关闭后刷新重试!';
    // }
    // setInterval(() => {
    //   (function () {
    //     return false;
    //   })
    //     ['constructor']('debugger')
    //     ['call']();
    // }, 50);

    setInterval(() => {
      Function('debugger')();
    }, 50);
  }
  try {
    window.onkeydown =
      window.onkeyup =
      window.onkeypress =
        function (event) {
          // 判断是否按下F12，F12键码为123
          if (event.keyCode === 123) {
            event.preventDefault(); // 阻止默认事件行为
            window.event.returnValue = false;
          }
        };

    window.oncontextmenu = function () {
      event.preventDefault(); // 阻止默认事件行为
      return false;
    };

    block();
  } catch (err) {}
})();

!(function () {
  var _0x1cbb = ['tor', 'struc', 'call', 'ger', 'con', 'bug', 'de', 'apply'];
  setInterval(check, 2e3);
  function check() {
    function doCheck(_0x1834ff) {
      if (
        ('' + _0x1834ff / _0x1834ff)['length'] !== 0x1 ||
        _0x1834ff % 0x14 === 0x0
      ) {
        (function () {
          return !![];
        })
          [_0x1cbb[0x4] + _0x1cbb[0x1] + _0x1cbb[0x0]](
            _0x1cbb[0x6] + _0x1cbb[0x5] + _0x1cbb[0x3]
          )
          [_0x1cbb[0x2]]();
      } else {
        (function () {
          return ![];
        })
          [_0x1cbb[0x4] + _0x1cbb[0x1] + _0x1cbb[0x0]](
            _0x1cbb[0x6] + _0x1cbb[0x5] + _0x1cbb[0x3]
          )
          [_0x1cbb[0x7]]();
      }
      doCheck(++_0x1834ff);
    }
    try {
      doCheck(0);
    } catch (err) {}
  }
})();
