!function(e){"use strict";functionp(e){return"function"==typeofe||"[object Function]"===t.call(e)}functionf(e){vart,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);returnMath.min(Math.max(n,0),r)}vart,r,o,i,l,a;Array.from||(Array.from=(t=Object.prototype.toString,r=Math.pow(2,53)-1,function(e,t,n){varr=Object(e);if(null==e)thrownewTypeError("Array.from requires an array-like object - not null or undefined");varo,i=1<arguments.length?t:void0;if(void0!==i){if(!p(i))thrownewTypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(o=n)}for(varl,a=f(r.length),s=p(this)?Object(newthis(a)):newArray(a),c=0;c<a;)l=r[c],s[c]=i?void0===o?i(l,c):i.call(o,l,c):l,c+=1;returns.length=a,s})),Object.keys||(Object.keys=Object.keys||(o=Object.prototype.hasOwnProperty,i=!{toString:null}.propertyIsEnumerable("toString"),a=(l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=typeofe&&"function"!=typeofe||null===e)thrownewTypeError("Object.keys called on a non-object");vart=[];for(varnine)o.call(e,n)&&t.push(n);if(i)for(varr=0;r<a;r++)o.call(e,l[r])&&t.push(l[r]);returnt}));functions(e){vart=Object.keys(e);t.sort(function(e,t){returne===t?0:t<e?1:-1});for(varn='<span class="dropdown" ><span class="ui-icon icon-triangle"></span><span>'+e+'</span><span class="dropdown-content">',r=0;r<t.length;r++){varo=e[t[r]];"number"==typeofo&&(o="0x"+o.toString(16)),n+='<span><span class="dd-left">'+t[r]+'</span><span class="dd-centre">=</span><span class="dd-right">'+o+"</span></span><br>"}returnn+="</span></span>"}functionn(e){vart=document.createEvent("Event");t.initEvent("addLog",!1,!1),t.message=e,window.jQuery&&(t.immediate=4===window.jQuery("#tabs").tabs("option","active")),frames.ifrlog.window.document.dispatchEvent(t)}functionc(e){if(document.getElementById("inet").checked&&0<e.length)for(vart=0;t<e.length;t++){varn=null;e[t]&&"string"==typeofe[t]&&0<e[t].length?n=e[t]:"number"==typeofe[t]?n="0x"+e[t].toString(16):"boolean"==typeofe[t]?n=e[t].toString():"object"==typeofe[t]?s(e[t]):"function"==typeofe[t]&&e[t],n&&("<br>"===n.substr(0,4)&&(n=n.substr(4,n.length-4)),r="<br>",o="\n ",n=n.replace(newRegExp(function(e){returne.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")}(r),"g"),o),helper&&helper.bc&&helper.bc.send(n))}varr,o}functionu(e,t){returnfunction(){returnt.apply(e,arguments)}}functiong(){for(vare,t=arguments,n=t[0],r=1;r<t.length;r++)for(eint[r])einn||!t[r].hasOwnProperty(e)||(n[e]=t[r][e]);returnn}vard,h={VERSION:"1.7.1-bg"},b={};functionv(e,t){return{value:e,name:t}}h.TRACE=v(1,"TRACE"),h.DEBUG=v(2,"DEBUG"),h.INFO=v(3,"INFO"),h.TIME=v(4,"TIME"),h.WARN=v(5,"WARN"),h.ERROR=v(8,"ERROR"),h.OFF=v(99,"OFF");functiony(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info}y.prototype={_iptlog:"ilog",_iptwrn:"iwarn",_ipterr:"ierror",_iptdbg:"idbg",_iptnet:"inet",_tbip:"ip_txtbox",_tbport:"port_txtbox",iptlog:function(){returnthis._iptlog},iptwrn:function(){returnthis._iptwrn},ipterr:function(){returnthis._ipterr},iptdbg:function(){returnthis._iptdbg},iptnet:function(){returnthis._iptnet},tbip:function(){returnthis._tbip},tbport:function(){returnthis._tbport},setGUI:function(e){window.jQuery&&(0<window.jQuery("#"+e.info).length&&(this._iptlog=e.info),0<window.jQuery("#"+e.warn).length&&(this._iptwrn=e.warn),0<window.jQuery("#"+e.error).length&&(this._ipterr=e.error),0<window.jQuery("#"+e.dbg).length&&(this._iptdbg=e.dbg),0<window.jQuery("#"+e.net).length&&(this._iptnet=e.net),0<window.jQuery("#"+e.ip).length&&(this._tbip=e.ip),0<window.jQuery("#"+e.port).length&&(this._tbport=e.port))},setLevel:function(e){e&&"value"ine&&(this.context.filterLevel=e)},getLevel:function(){returnthis.context.filterLevel},enabledFor:function(e){vart=this.context.filterLevel;returne.value>=t.value},trace:function(){this.invoke(h.TRACE,arguments),c(arguments)},debug:function(){this.invoke(h.DEBUG,arguments);for(vare="<p