function(){return function(){var c=!0,d=null,e=!1,f=this;var i=window;function j(a,x){this.code=a;this.message=x||"";this.name=k[a]||k[13];var b=Error(this.message);b.name=this.name;this.stack=b.stack||""}var l=Error;function m(){}m.prototype=l.prototype;j.b=l.prototype;j.prototype=new m;
var k={7:"NoSuchElementError",8:"NoSuchFrameError",9:"UnknownCommandError",10:"StaleElementReferenceError",11:"ElementNotVisibleError",12:"InvalidElementStateError",13:"UnknownError",15:"ElementNotSelectableError",19:"XPathLookupError",23:"NoSuchWindowError",24:"InvalidCookieDomainError",25:"UnableToSetCookieError",26:"ModalDialogOpenedError",27:"NoModalDialogOpenError",28:"ScriptTimeoutError",32:"InvalidSelectorError",35:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
j.prototype.toString=function(){return this.name+": "+this.message};function n(a,x){for(var b=0,s=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),y=String(x).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),F=Math.max(s.length,y.length),z=0;0==b&&z<F;z++){var ha=s[z]||"",ia=y[z]||"",ja=RegExp("(\\d*)(\\D*)","g"),ka=RegExp("(\\d*)(\\D*)","g");do{var g=ja.exec(ha)||["","",""],h=ka.exec(ia)||["","",""];if(0==g[0].length&&0==h[0].length)break;b=((0==g[1].length?0:parseInt(g[1],10))<(0==h[1].length?0:parseInt(h[1],10))?-1:(0==g[1].length?0:parseInt(g[1],10))>
(0==h[1].length?0:parseInt(h[1],10))?1:0)||((0==g[2].length)<(0==h[2].length)?-1:(0==g[2].length)>(0==h[2].length)?1:0)||(g[2]<h[2]?-1:g[2]>h[2]?1:0)}while(0==b)}return b};var o,p,q,r;function t(){return f.navigator?f.navigator.userAgent:d}r=q=p=o=e;var u;if(u=t()){var aa=f.navigator;o=0==u.indexOf("Opera");p=!o&&-1!=u.indexOf("MSIE");q=!o&&-1!=u.indexOf("WebKit");r=!o&&!q&&"Gecko"==aa.product}var v=o,w=p,ba=r,ca=q,da=f.navigator,ea=-1!=(da&&da.platform||"").indexOf("Win"),A;
a:{var B="",C;if(v&&f.opera)var D=f.opera.version,B="function"==typeof D?D():D;else if(ba?C=/rv\:([^\);]+)(\)|;)/:w?C=/MSIE\s+([^\);]+)(\)|;)/:ca&&(C=/WebKit\/(\S+)/),C)var fa=C.exec(t()),B=fa?fa[1]:"";if(w){var E,ga=f.document;E=ga?ga.documentMode:void 0;if(E>parseFloat(B)){A=String(E);break a}}A=B}var G={};var H,I,J,K,L,M,N;N=M=L=K=J=I=H=e;var O=t();O&&(-1!=O.indexOf("Firefox")?H=c:-1!=O.indexOf("Camino")?I=c:-1!=O.indexOf("iPhone")||-1!=O.indexOf("iPod")?J=c:-1!=O.indexOf("iPad")?K=c:-1!=O.indexOf("Android")?L=c:-1!=O.indexOf("Chrome")?M=c:-1!=O.indexOf("Safari")&&(N=c));var la=H,ma=I,na=J,oa=K,P=L,pa=M,Q=N;function R(a){return(a=a.exec(t()))?a[1]:""}var qa=function(){if(la)return R(/Firefox\/([0-9.]+)/);if(w||v)return A;if(pa)return R(/Chrome\/([0-9.]+)/);if(Q)return R(/Version\/([0-9.]+)/);if(na||oa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(t());if(a)return a[1]+"."+a[2]}else{if(P)return(a=R(/Android\s+([0-9.]+)/))?a:R(/Version\/([0-9.]+)/);if(ma)return R(/Camino\/([0-9.]+)/)}return""}();var S,ra;function T(a){return U?ra(a):P?0<=n(sa,a):0<=n(qa,a)}var U=function(){if(!ba)return e;var a=f.Components;if(!a)return e;try{if(!a.classes)return e}catch(x){return e}var b=a.classes,a=a.interfaces,s=b["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),b=b["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),y=b.platformVersion,F=b.version;S=function(a){return 0<=s.a(y,""+a)};ra=function(a){return 0<=s.a(F,""+a)};return c}(),V;
if(P){var ta=/Android\s+([0-9\.]+)/.exec(t());V=ta?ta[1]:"0"}else V="0";var sa=V;var W=w&&(U?S(8):w?0<=n(document.documentMode,8):G[8]||(G[8]=0<=n(A,8)))&&!(U?S(9):w?0<=n(document.documentMode,9):G[9]||(G[9]=0<=n(A,9))),ua=Q&&T(4)&&!T(5),va=P&&T(2.2)&&!T(2.3),wa=ea&&Q&&T(4)&&!T(6);
function xa(){switch("browser_connection"){case "appcache":return W?e:i.applicationCache!=d;case "browser_connection":return i.navigator!=d&&i.navigator.onLine!=d;case "database":return ua||va?e:i.openDatabase!=d;case "location":return wa?e:i.navigator!=d&&i.navigator.geolocation!=d;case "local_storage":return W?e:i.localStorage!=d;case "session_storage":return W?e:i.sessionStorage!=d&&i.sessionStorage.clear!=d;default:throw new j(13,"Unsupported API identifier provided as parameter");}};function ya(){if(xa())return i.navigator.onLine;throw new j(13,"Undefined browser connection state");}var X=["_"],Y=f;!(X[0]in Y)&&Y.execScript&&Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());){var $;if($=!X.length)$=void 0!==ya;$?Y[Z]=ya:Y=Y[Z]?Y[Z]:Y[Z]={}};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null}, arguments);}
