(function(f){f.rea={globals:window,extend:function(a){var b=function(a,d){for(var c in a)if(a.hasOwnProperty(c))if(Object.getOwnPropertyDescriptor(a,c).get)d.__defineGetter__(c,a.__lookupGetter__(c));else{var e=a[c],g=typeof e;"undefined"!=g&&(null===e?d[c]=e:"object"==g?(d[c]=d[c]||{},b(e,d[c])):"array"==g?(d[c]=d[c]||[],b(e,d[c])):d[c]=e)}};b(a,f.rea)}};f.rea.extend({page:{reload:function(){window.location.reload()},eval:function(a){var b=document.createElementNS(document.lookupNamespaceURI(null)||
"http://www.w3.org/1999/xhtml","script");b.textContent=a;(document.head||document.body||document.documentElement||document).appendChild(b);b.parentNode.removeChild(b)}},content:{onReady:function(a){var b=function(){"prerender"!==document.webkitVisibilityState&&(document.removeEventListener("webkitvisibilitychange",b,!1),a())};"prerender"!==document.webkitVisibilityState?a():document.addEventListener("webkitvisibilitychange",b,!1)}},runtime:function(){var a={};a.__defineGetter__("lastError",function(){return chrome.runtime.lastError});
a.__defineGetter__("id",function(){return chrome.runtime.id});a.__defineGetter__("short_id",function(){return a.id.replace(/[^0-9a-zA-Z]/g,"").substr(0,4)});return a}(),extension:{getURL:function(a){return chrome.runtime.getURL(a)},sendMessage:function(a,b){return chrome.runtime.sendMessage(a,b)},onMessage:{addListener:function(a){return chrome.runtime.onMessage.addListener(a)}},connect:function(a){return chrome.runtime.connect({name:a})}}});f.rea.extend(function(){var a=20,b=!1,f=!1,d=!1;try{b=-1!=
navigator.userAgent.search("OPR/"),f=-1!=navigator.userAgent.search("Mac OS X")}catch(e){}try{a=parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])}catch(e){}try{d=-1!=navigator.userAgent.search(/Android|Mobile/)}catch(e){}var c={CONSTANTS:{STORAGE:{SCHEMA:"#schema",TYPE:"#storage",CONFIG:"#config",SESSION:"#session",VERSION:"#version",LEGACY_VERSION:"TM_version",LAST_START:"#laststart",UPDATE:"#update",BEGGING:"#begging"},PREFIX:{SCRIPT_UID:"@uid#",COND:"@re#",STORE:"@st#",SCRIPT:"@source#",
EXTERNAL:"@ext#",META:"@meta#"}},RUNTIME:{BROWSER:b?"opera":"chrome",CHROME:!b,OPERA:b,MOBILE:d,BROWSER_VERSION:a,FAST_EXEC_SUPPORT:!0,DETECT_CONSTRUCTORS_BY_KEYS:60<=a,ALLOWS_FILE_SCHEME_ACCESS:null,MAX_SCRIPTS:1E3,WEBREQUEST_XHR_SUPPORT:!0,WEBREQUETS_WEBSOCKET:58<=a,CAN_SAVEAS_ZIP:!0,CONTEXT_MENU:!0,INCOGNITO_MODE:!0},ACTIONMENU:{CLOSE_ALLOWED:!0,MIN_DELAY:f?150:0},OPTIONPAGE:{CLOSE_ALLOWED:!1},DB:{USE:null,DEFAULT:"chromeStorage"},XMLHTTPREQUEST:{RETRIES:0,PARTIAL_SIZE:16777216,COOKIE_PASSTHROUGH:!1},
SCRIPT_DOWNLOAD:{TIMEOUT:60},PINGPONG:{RETRIES:10},MISC:{TIMEOUT:1,IDLE_TIMEOUT:30,DISTURBANCE_ALLOWED:60},HTML5:{LOCALSTORAGE:null},REQUESTS:{HAS_SENDER_ID:!0,INTERNAL_PAGE_PROTOCOL:"chrome-extension:",SENDS_ORIGIN:!0,GET_INTERNAL_PATH_REGEXP:function(a,b){var d=/(\/|\.|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g;return new RegExp((c.REQUESTS.INTERNAL_PAGE_PROTOCOL+"//"+rea.runtime.id+"/").replace(d,"\\$1")+"([a-zA-Z"+(a?"\\/":"")+"]*)"+(b||"").replace(d,"\\$1"))},GET_INTERNAL_PAGE_REGEXP:function(){return c.REQUESTS.GET_INTERNAL_PATH_REGEXP(!1,
".html")}},OPTIONS:{HAS_CSP:!0,NATIVE_SCRIPT_IMPORT:!0,CAN_DOWNLOAD:!0}};return{FEATURES:c}}())})(window);
