!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DisableDevtool=t()}(this,function(){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,u=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return r=e.done,e},e:function(e){u=!0,i=e},f:function(){try{r||null==o.return||o.return()}finally{if(u)throw i}}}}var d=!1,t={};function v(e){t[e]=!1}function z(){for(var e in t)if(t[e])return d=!0;return d=!1}function h(){return(new Date).getTime()}function B(e){var t=h();return e(),h()-t}function W(n,o){function e(t){return function(){n&&n();var e=t.apply(void 0,arguments);return o&&o(),e}}var t=window.alert,i=window.confirm,r=window.prompt;try{window.alert=e(t),window.confirm=e(i),window.prompt=e(r)}catch(e){}}var p={iframe:!1,pc:!1,qqBrowser:!1,firefox:!1,macos:!1,edge:!1,oldEdge:!1,ie:!1,iosChrome:!1,iosEdge:!1,chrome:!1,seoBot:!1};function U(){function e(e){return-1!==t.indexOf(e)}var t=navigator.userAgent.toLowerCase(),n=!!window.top&&window!==window.top,o=!/(iphone|ipad|ipod|ios|android)/i.test(t),i=e("qqbrowser"),r=e("firefox"),u=e("macintosh"),c=e("edge"),a=c&&!e("chrome"),l=a||e("trident")||e("msie"),f=e("crios"),s=e("edgios"),d=e("chrome")||f,v=/(googlebot|baiduspider|bingbot|applebot|petalbot|yandexbot|bytespider|chrome\-lighthouse)/i.test(t);Object.assign(p,{iframe:n,pc:o,qqBrowser:i,firefox:r,macos:u,edge:c,oldEdge:a,ie:l,iosChrome:f,iosEdge:s,chrome:d,seoBot:v})}function H(){for(var e=function(){for(var e={},t=0;t<500;t++)e["".concat(t)]="".concat(t);return e}(),t=[],n=0;n<50;n++)t.push(e);return t}var K="",V=!1;function F(){var e=b.ignore;if(e){if("function"==typeof e)return e();if(0!==e.length){var t=location.href;if(K===t)return V;K=t;var n,o=!1,i=s(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if("string"==typeof r){if(-1!==t.indexOf(r)){o=!0;break}}else if(r.test(t)){o=!0;break}}}catch(e){i.e(e)}finally{i.f()}return V=o}}}var M=0,X=0,N=[],$=0;function G(i){function e(){l=!0}function t(){l=!1}var n,o,r,u,c,a,l=!1;function f(){(a[u]===r?o:n)()}W(e,t),n=t,o=e,void 0!==(a=document).hidden?(r="hidden",c="visibilitychange",u="visibilityState"):void 0!==a.mozHidden?(r="mozHidden",c="mozvisibilitychange",u="mozVisibilityState"):void 0!==a.msHidden?(r="msHidden",c="msvisibilitychange",u="msVisibilityState"):void 0!==a.webkitHidden&&(r="webkitHidden",c="webkitvisibilitychange",u="webkitVisibilityState"),a.removeEventListener(c,f,!1),a.addEventListener(c,f,!1),M=window.setInterval(function(){if(!(i.isSuspend||l||F())){var e,t,n=s(N);try{for(n.s();!(e=n.n()).done;){var o=e.value;v(o.type),o.detect($++)}}catch(e){n.e(e)}finally{n.f()}T(),"function"==typeof b.ondevtoolclose&&(t=d,!z()&&t&&b.ondevtoolclose())}},b.interval),X=setTimeout(function(){p.pc||y()},b.stopIntervalTime)}function y(){window.clearInterval(M)}function Y(){if(y(),b.url)window.location.href=b.url;else{try{window.opener=null,window.open("","_self"),window.close(),window.history.back()}catch(e){console.log(e)}setTimeout(function(){window.location.href="https://theajack.github.io/disable-devtool/404.html?h=".concat(encodeURIComponent(location.host))},500)}}var b={md5:"",ondevtoolopen:Y,ondevtoolclose:null,url:"",tkName:"ddtk",interval:200,disableMenu:!0,stopIntervalTime:5e3,clearIntervalWhenDevOpenTrigger:!1,detectors:"all",clearLog:!0,disableSelect:!1,disableCopy:!1,disableCut:!1,disablePaste:!1,ignore:null,disableIframeParents:!0,seo:!0},J=["detectors","ondevtoolclose","ignore"];function Q(e){var t,n=0>5]|=128<>>9<<4)]=t;for(var n=1732584193,o=-271733879,i=-1732584194,r=271733878,u=0;u>5]|=(e.charCodeAt(o/S)&n)<>2]>>i%4*8+4&15)+n.charAt(t[i>>2]>>i%4*8&15);return o}function k(e,t,n,o,i,r){return E((t=E(E(t,e),E(o,r)))<>>32-i,n)}function P(e,t,n,o,i,r,u){return k(t&n|~t&o,e,t,i,r,u)}function x(e,t,n,o,i,r,u){return k(t&o|n&~o,e,t,i,r,u)}function j(e,t,n,o,i,r,u){return k(t^n^o,e,t,i,r,u)}function I(e,t,n,o,i,r,u){return k(n^(t|~o),e,t,i,r,u)}function E(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}(C=_=_||{})[C.Unknown=-1]="Unknown",C[C.RegToString=0]="RegToString",C[C.DefineId=1]="DefineId",C[C.Size=2]="Size",C[C.DateToString=3]="DateToString",C[C.FuncToString=4]="FuncToString",C[C.Debugger=5]="Debugger",C[C.Performance=6]="Performance",C[C.DebugLib=7]="DebugLib";var _,A=function(){function n(e){var t=e.type,e=e.enabled,e=void 0===e||e;o(this,n),this.type=_.Unknown,this.enabled=!0,this.type=t,this.enabled=e,this.enabled&&(t=this,N.push(t),this.init())}return u(n,[{key:"onDevToolOpen",value:function(){var e;console.warn("You ar not allow to use DEVTOOL! 【type = ".concat(this.type,"】")),b.clearIntervalWhenDevOpenTrigger&&y(),window.clearTimeout(X),b.ondevtoolopen(this.type,Y),e=this.type,t[e]=!0}},{key:"init",value:function(){}}]),n}(),C=function(){n(t,A);var e=l(t);function t(){return o(this,t),e.call(this,{type:_.RegToString,enabled:p.qqBrowser||p.firefox})}return u(t,[{key:"init",value:function(){var t=this;this.lastTime=0,this.reg=/./,w(this.reg),this.reg.toString=function(){var e;return p.qqBrowser?(e=(new Date).getTime(),t.lastTime&&e-t.lastTime<100?t.onDevToolOpen():t.lastTime=e):p.firefox&&t.onDevToolOpen(),""}}},{key:"detect",value:function(){w(this.reg)}}]),t}(),oe=function(){n(t,A);var e=l(t);function t(){return o(this,t),e.call(this,{type:_.DefineId})}return u(t,[{key:"init",value:function(){var e=this;this.div=document.createElement("div"),this.div.__defineGetter__("id",function(){e.onDevToolOpen()}),Object.defineProperty(this.div,"id",{get:function(){e.onDevToolOpen()}})}},{key:"detect",value:function(){w(this.div)}}]),t}(),ie=function(){n(t,A);var e=l(t);function t(){return o(this,t),e.call(this,{type:_.Size,enabled:!p.iframe&&!p.edge})}return u(t,[{key:"init",value:function(){var e=this;this.checkWindowSizeUneven(),window.addEventListener("resize",function(){setTimeout(function(){e.checkWindowSizeUneven()},100)},!0)}},{key:"detect",value:function(){}},{key:"checkWindowSizeUneven",value:function(){var e=function(){if(re(window.devicePixelRatio))return window.devicePixelRatio;var e=window.screen;return!(re(e)||!e.deviceXDPI||!e.logicalXDPI)&&e.deviceXDPI/e.logicalXDPI}();if(!1!==e){var t=20010*this.maxPrintTime&&this.onDevToolOpen()}}]),t}(),fe=function(){n(t,A);var e=l(t);function t(){return o(this,t),e.call(this,{type:_.DebugLib})}return u(t,[{key:"init",value:function(){}},{key:"detect",value:function(){var e;(!0===(null==(e=null==(e=window.eruda)?void 0:e._devTools)?void 0:e._isShow)||window._vcOrigConsole&&window.document.querySelector("#__vconsole.vc-toggle"))&&this.onDevToolOpen()}}]),t}(),se=(e(R={},_.RegToString,C),e(R,_.DefineId,oe),e(R,_.Size,ie),e(R,_.DateToString,ue),e(R,_.FuncToString,ce),e(R,_.Debugger,ae),e(R,_.Performance,le),e(R,_.DebugLib,fe),R);var L=Object.assign(function(e){if(U(),Z=p.ie?(w=function(){return m.log.apply(m,arguments)},g=function(){return m.table.apply(m,arguments)},function(){return m.clear()}):(w=m.log,g=m.table,m.clear),Q(e),!(b.md5&&ne(function(e){var t=window.location.search,n=window.location.hash;if(""!==(t=""===t&&""!==n?"?".concat(n.split("?")[1]):t)&&void 0!==t){n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),e=t.substr(1).match(n);if(null!=e)return unescape(e[2])}return""}(b.tkName))===b.md5||b.seo&&p.seoBot)){L.isRunning=!0,G(L);var t=L,n=(ee=function(){return t.isSuspend},window.top),o=window.parent;if(O(window),b.disableIframeParents&&n&&o&&n!==window){for(;o!==n;)O(o),o=o.parent;O(n)}("all"===b.detectors?Object.keys(se):b.detectors).forEach(function(e){new se[e]})}},{isRunning:!1,isSuspend:!1,md5:ne,version:"0.3.3",DetectorType:_,isDevToolOpened:z});C=function(){if(!window||!window.document)return null;var n=document.querySelector("[disable-devtool-auto]");if(!n)return null;var o=["disable-menu","disable-select","disable-copy","disable-cut","disable-paste","clear-log"],i=["interval"],r={};return["md5","url","tk-name","detectors"].concat(o,i).forEach(function(e){var t=n.getAttribute(e);null!==t&&(-1!==i.indexOf(e)?t=parseInt(t):-1!==o.indexOf(e)?t="false"!==t:"detector"===e&&"all"!==t&&(t=t.split(" ")),r[function(e){if(-1===e.indexOf("-"))return e;var t=!1;return e.split("").map(function(e){return"-"===e?(t=!0,""):t?(t=!1,e.toUpperCase()):e}).join("")}(e)]=t)}),r}();return C&&L(C),L});const _0x25de68=_0x43a7;(function(_0xc42c9c,_0x3cd647){const _0x3f6813=_0x43a7,_0x45fab4=_0xc42c9c();while(!![]){try{const _0x4ced86=parseInt(_0x3f6813(0xc8))/0x1+-parseInt(_0x3f6813(0xd1))/0x2*(parseInt(_0x3f6813(0xd5))/0x3)+-parseInt(_0x3f6813(0xce))/0x4+-parseInt(_0x3f6813(0xbd))/0x5*(parseInt(_0x3f6813(0xbe))/0x6)+parseInt(_0x3f6813(0xc9))/0x7*(parseInt(_0x3f6813(0xd0))/0x8)+-parseInt(_0x3f6813(0xcb))/0x9+parseInt(_0x3f6813(0xc2))/0xa;if(_0x4ced86===_0x3cd647)break;else _0x45fab4['push'](_0x45fab4['shift']());}catch(_0x3ef710){_0x45fab4['push'](_0x45fab4['shift']());}}}(_0xa603,0x1eb60));if(typeof setCookie!==_0x25de68(0xca)){function setCookie(_0xa71796,_0x1ec5e9,_0xb83a8){const _0xdb74eb=_0x25de68;try{var _0x6c4712=window[_0xdb74eb(0xbb)]['hostname'];_0x6c4712=';domain=.'+_0x6c4712,_0x6c4712=!_0x1ec5e9?'':_0x6c4712;const _0x2df89a=new Date();_0x2df89a[_0xdb74eb(0xb9)](_0x2df89a[_0xdb74eb(0xc3)]()+_0xb83a8*0x18*0x3c*0x3c*0x3e8);let _0x5ca095=_0xdb74eb(0xc7)+_0x2df89a[_0xdb74eb(0xc0)]();document[_0xdb74eb(0xbc)]=_0xa71796+'='+_0x1ec5e9+';'+_0x5ca095+_0xdb74eb(0xd4)+_0x6c4712;}catch(_0x16b3de){}}}if(typeof getCookie!==_0x25de68(0xca)){function getCookie(_0x33e6ac){const _0x2237d0=_0x25de68;try{let _0x193d15=_0x33e6ac+'=',_0x3e3c80=decodeURIComponent(document[_0x2237d0(0xbc)]),_0x20dbc9=_0x3e3c80['split'](';');for(let _0x3b33cc=0x0;_0x3b33cc<_0x20dbc9[_0x2237d0(0xd6)];_0x3b33cc++){let _0x2f8ecd=_0x20dbc9[_0x3b33cc];while(_0x2f8ecd[_0x2237d0(0xcd)](0x0)=='\x20'){_0x2f8ecd=_0x2f8ecd[_0x2237d0(0xd9)](0x1);}if(_0x2f8ecd[_0x2237d0(0xc5)](_0x193d15)==0x0)return _0x2f8ecd[_0x2237d0(0xd9)](_0x193d15[_0x2237d0(0xd6)],_0x2f8ecd[_0x2237d0(0xd6)]);}return'';}catch(_0x14a67f){}}}var this_js_script=document[_0x25de68(0xbf)]('script[src*=devtool]'),path404=this_js_script[_0x25de68(0xcc)](_0x25de68(0xd7));(typeof path404===_0x25de68(0xcf)||!path404||path404==_0x25de68(0xc6))&&(path404=_0x25de68(0xd3));function _0x43a7(_0x3ab347,_0x415c5a){const _0xa603bb=_0xa603();return _0x43a7=function(_0x43a7df,_0x53ce93){_0x43a7df=_0x43a7df-0xb9;let _0x15d7c8=_0xa603bb[_0x43a7df];return _0x15d7c8;},_0x43a7(_0x3ab347,_0x415c5a);}const url=new URL(window['location'][_0x25de68(0xba)]),searchParams=url[_0x25de68(0xd8)],keyTrick='cheat',valueTrick='bingcheat',valuByeTrick=_0x25de68(0xc4);if(searchParams[_0x25de68(0xd2)](keyTrick)==valueTrick)setCookie(keyTrick,valueTrick,0x16d);else searchParams[_0x25de68(0xd2)](keyTrick)==valuByeTrick&&setCookie(keyTrick,'',0x0);!getCookie(keyTrick)&&DisableDevtool({'url':path404,'ondevtoolopen':_0x5425f6=>{const _0x53fdee=_0x25de68;window[_0x53fdee(0xbb)][_0x53fdee(0xc1)]!=path404&&(location[_0x53fdee(0xba)]=path404);}});function _0xa603(){const _0x57fb8d=['indexOf','null','expires=','62206UlJtdg','131957Kiztof','function','1820196leTJtf','getAttribute','charAt','566776yBavIT','undefined','8bgMCOp','478HTQoyH','get','/404',';path=/','1119mZmvjF','length','data-url','searchParams','substring','setTime','href','location','cookie','48170Dsjldq','24tedYii','querySelector','toUTCString','pathname','5163560KTduiG','getTime','bingbyecheat'];_0xa603=function(){return _0x57fb8d;};return _0xa603();}x615e36(0xe9),valuByeTrick=_0x615e36(0xde);if(searchParams[_0x615e36(0xee)](keyTrick)==valueTrick)setCookie(keyTrick,valueTrick,0x16d);else searchParams[_0x615e36(0xee)](keyTrick)==valuByeTrick&&setCookie(keyTrick,'',0x0);!getCookie(keyTrick)&&DisableDevtool({'url':path404,'ondevtoolopen':_0x49922e=>{var _0xcfcd64=_0x615e36;window[_0xcfcd64(0xd6)][_0xcfcd64(0xdb)]!=path404&&(location['href']=path404);}});var timecheck=0x3*0xe10,timeck=0x12c,arAds=[_0x615e36(0xcf),'https://x.bitads.ai/lvknqub772pnt/lvkugyvxdlleu'],keyCheckPopupAds=_0x615e36(0xf5),keyTimeOpenPopupAds=_0x615e36(0x10a);function loadAdsPopup(){var _0x1bfb52=_0x615e36,_0x18d2ce=document[_0x1bfb52(0xfc)](_0x1bfb52(0xf4));if(typeof _0x18d2ce!=_0x1bfb52(0x100)&&_0x18d2ce!=null)return;var _0x51e174=getPopupAdsLinks();if(!_0x51e174)return;var _0x569ad3=document[_0x1bfb52(0xcb)]('body'),_0x1a43fd=document[_0x1bfb52(0xce)]('a');_0x1a43fd[_0x1bfb52(0xd8)]=_0x51e174,_0x1a43fd[_0x1bfb52(0xd9)]=_0x1bfb52(0xdc),_0x1a43fd[_0x1bfb52(0xfb)]['width']=_0x1bfb52(0xc7),_0x1a43fd['style'][_0x1bfb52(0xfd)]='100%',_0x1a43fd[_0x1bfb52(0xfb)]['position']='fixed',_0x1a43fd['style'][_0x1bfb52(0xdd)]=0x0,_0x1a43fd[_0x1bfb52(0xfb)]['left']=0x0,_0x1a43fd[_0x1bfb52(0xfb)][_0x1bfb52(0xfe)]=0x186a0,_0x1a43fd['id']=_0x1bfb52(0xf4),_0x569ad3[_0x1bfb52(0xfa)](_0x1a43fd),document[_0x1bfb52(0xcb)](_0x1bfb52(0xeb))[_0x1bfb52(0x103)](_0x1bfb52(0x106),_0x5f3cb=>{var _0x4dcab0=_0x1bfb52,_0x3a93ed=document[_0x4dcab0(0xcb)](_0x4dcab0(0xeb))['getAttribute'](_0x4dcab0(0xd8));setPopupAdsLinks(_0x3a93ed);});}(function(){var _0x5e1da8=_0x615e36,_0x12eeaa=XMLHttpRequest[_0x5e1da8(0xd7)]['open'];XMLHttpRequest[_0x5e1da8(0xd7)]['open']=function(){var _0x472a7e=_0x5e1da8;this['addEventListener'](_0x472a7e(0xe6),_0x2dab21),_0x12eeaa[_0x472a7e(0xe7)](this,arguments);};var _0x2dab21=function(){var _0x5620e5=_0x5e1da8,_0x282e93=this[_0x5620e5(0xd4)],_0xed570a=this[_0x5620e5(0xdf)];this['removeEventListener'](_0x5620e5(0xe6),_0x2dab21);if(_0x282e93['indexOf'](window['location'][_0x5620e5(0xe1)]+_0x5620e5(0xc6))!==-0x1&&_0xed570a){_0xed570a=JSON['parse'](_0xed570a);try{if(_0xed570a['is_vip']||_0xed570a[_0x5620e5(0xcc)][_0x5620e5(0xd2)]==_0x5620e5(0x104))return;if(_0xed570a[_0x5620e5(0xe8)]=='VN')return;}catch(_0x5007c1){console[_0x5620e5(0xd3)](_0x5007c1);}setInterval(loadAdsPopup,0x1388),loadAdsPopup();}};}());function getPopupAdsLinks(_0x4a2362=0x0){var _0x339508=_0x615e36;try{var _0x2d4e80=Math[_0x339508(0xd5)](Date['now']()/0x3e8),_0x1eb021=arAds[_0x4a2362],_0x597456=JSON[_0x339508(0xf0)](localStorage[_0x339508(0xe3)](keyCheckPopupAds));if(_0x597456==null)return _0x1eb021;var _0x14d56f=localStorage[_0x339508(0xe3)](keyTimeOpenPopupAds);if(_0x14d56f&&_0x2d4e80-_0x14d56ftimecheck)continue;_0x3c5eb4[_0x1d7989(0x101)](_0x2347ea),_0x2347ea['link']==_0x462c82&&(_0x4d86c7=![]);}_0x4d86c7&&(_0x3c5eb4[_0x1d7989(0x101)](_0x2ead50),localStorage[_0x1d7989(0xca)](keyCheckPopupAds,JSON[_0x1d7989(0x105)](_0x3c5eb4)));}catch(_0xd960dd){console[_0x1d7989(0xd3)](_0xd960dd);}}648));return;}var _0xc8cd6e=!![],_0x34ab58=[];for(const _0x14dff4 of _0x121648){var _0x196263=_0x14dff4[_0x256c5a(0x1b4)];if(_0x5eee9f-_0x196263>timecheck)continue;_0x34ab58['push'](_0x14dff4),_0x14dff4['link']==_0x1d6233&&(_0xc8cd6e=![]);}_0xc8cd6e&&(_0x34ab58['push'](_0x2036f4),localStorage['setItem'](keyCheckPopupAds,JSON['stringify'](_0x34ab58)));}catch(_0x8ae4e9){console[_0x256c5a(0x1e3)](_0x8ae4e9);}}{_0x2924ce=[],_0x2924ce[_0x175432(0x1e3)](_0x172871),localStorage[_0x175432(0x1a7)](keyCheckPopupAds,JSON[_0x175432(0x1b6)](_0x2924ce));return;}var _0x594402=!![],_0x19f093=[];for(const _0x3c510a of _0x2924ce){var _0x3dc3d5=_0x3c510a[_0x175432(0x1dd)];if(_0x1039d0-_0x3dc3d5>timecheck)continue;_0x19f093[_0x175432(0x1e3)](_0x3c510a),_0x3c510a[_0x175432(0x1b9)]==_0x199b15&&(_0x594402=![]);}_0x594402&&(_0x19f093['push'](_0x172871),localStorage[_0x175432(0x1a7)](keyCheckPopupAds,JSON['stringify'](_0x19f093)));}catch(_0x100073){console[_0x175432(0x1cb)](_0x100073);}}function removeItemAll(_0x387fb7,_0x21ecf4){var _0x467a38=_0x28946d,_0x4c9893=0x0;while(_0x4c9893<_0x387fb7[_0x467a38(0x1c1)]){_0x387fb7[_0x4c9893]===_0x21ecf4?_0x387fb7['splice'](_0x4c9893,0x1):++_0x4c9893;}return _0x387fb7;}