Registry.registerRaw("page.js","5946",function(){return{backup:function(a,x,q,F){var d={safeWindow:{},safeDocument:{},eval:eval,Context:{D:F},exec_fn:function(a,b,d){g(new c.Function(a),b,d)},exec_csp:function(a,b,c){var G="__u__"+(19831206*d.Context.M_r()+1);d.Message.send("csp",{id:G,src:a});d.exec_script(G,b,c)},exec_script:function(b,d,c){var G=a[b];delete a[b];g(G,d,c)}},g,b,A,I,u,J,M,ba,w,C,n,ha,c=d.safeWindow;(function(){var e=function(a){var b=function(b){return g(a,b,g(A.wrappedJSObject,
arguments,[1]))};b.wrappedJSObject=a;return b},ga=function(a,b){for(var d;null!==a&&void 0!==a&&!(d=w(a,b));)a=ba(a);return d},B={i_N:C=function(){return function(a){return!("prototype"in a)}}(),i_SS:n=function(){return function(a,b,d){var c=ga(a,b);if(!c||!c.set||C(c.set))return a[b]=d,!0}}(),i_SG:ha=function(){return function(a,b){var d=ga(a,b);if(!d||!d.get||C(d.get))return a[b]}}(),F_a:g=function(){"use strict";var b=a.Function.apply;return function(a,d,c){var e;ha(a,"apply")===b?e=a.apply(d,c):
n(a,q,b)&&(e=a[q](d,c),delete a[q]);return e}}(),E_u:function(b,c){if(d.exec_eval){var e="__u__"+(19831206*d.Context.M_r()+1),g=e+"_";a[g]=c;var w=d.Context.F_c(d.Context.eval,a,"(function() {"+b+'}).apply(window["'+g+'"])');delete a[e];delete a[g];return w}d.exec_csp(b,c)},E_c:function(a,b){d.exec_eval?g(new c.Function(a),b):d.exec_csp(a,b)},F_c:e(a.Function.call),F_b:b=e(a.Function.bind),F_tS:e(a.Function.toString),A_fE:u=e(a.Array.prototype.forEach),A_sl:A=e(a.Array.prototype.slice),A_sp:e(a.Array.prototype.splice),
A_sh:e(a.Array.prototype.shift),A_j:e(a.Array.prototype.join),A_pu:I=e(a.Array.prototype.push),A_po:e(a.Array.prototype.pop),A_m:e(a.Array.prototype.map),A_c:e(a.Array.prototype.concat),A_f:e(a.Array.prototype.filter),A_iO:e(a.Array.prototype.indexOf),O_k:a.Object.keys,O_dP:a.Object.defineProperties,O_dPy:a.Object.defineProperty,O_gOPN:a.Object.getOwnPropertyNames,O_gOPD:w=a.Object.getOwnPropertyDescriptor,O_gOPDs:a.Object.getOwnPropertyDescriptors||function(a){var b={},d;for(d in a)b[d]=B.O_gOPD(a,
d);return b},O_gPO:ba=a.Object.getPrototypeOf,O_tS:e(a.Object.prototype.toString),J_p:M=a.JSON.parse,J_s:J=a.JSON.stringify,c_l:a.console.log.bind(a.console),c_i:a.console.info.bind(a.console),c_w:a.console.warn.bind(a.console),c_e:a.console.error.bind(a.console),c_d:a.console.debug.bind(a.console),M_f:a.Math.floor,M_r:a.Math.random,M_m:a.Math.max,N_tS:e(a.Number.prototype.toString),P_r:a.Promise?a.Promise.resolve.bind(a.Promise):void 0,P_t:a.Promise?e(a.Promise.prototype.then):void 0,P_c:a.Promise?
e(a.Promise.prototype.catch):void 0,R_rAAB:a.FileReader?e(a.FileReader.prototype.readAsArrayBuffer):void 0,S_fCC:a.String.fromCharCode,S_m:e(a.String.prototype.match),S_su:e(a.String.prototype.substr),S_se:e(a.String.prototype.search),S_sp:e(a.String.prototype.split),S_r:e(a.String.prototype.replace),S_cCA:e(a.String.prototype.charCodeAt),S_tLC:e(a.String.prototype.toLowerCase),S_tUC:e(a.String.prototype.toUpperCase),D_pFS:e(a.DOMParser.prototype.parseFromString),X_o:e(a.XMLHttpRequest.prototype.open),
X_sRH:e(a.XMLHttpRequest.prototype.setRequestHeader),X_oMT:e(a.XMLHttpRequest.prototype.overrideMimeType),X_gARH:e(a.XMLHttpRequest.prototype.getAllResponseHeaders),X_gRH:e(a.XMLHttpRequest.prototype.getResponseHeader),X_s:e(a.XMLHttpRequest.prototype.send),X_a:e(a.XMLHttpRequest.prototype.abort),D_n:a.Date.now};Object.keys(B).forEach(function(a){d.Context[a]=B[a]});"String Array Object Number parseInt JSON Math Date Event MutationEvent console location Error Uint8Array Blob FileReader DOMParser XMLHttpRequest Function RegExp frames self top document location Promise".split(" ").forEach(function(b){c[b]=
a[b]});["postMessage","addEventListener","removeEventListener","setTimeout","setInterval","clearTimeout","clearInterval","alert","prompt","confirm","encodeURIComponent",function(a){return a.a+a.b}({a:"decodeURI",b:"Component"}),"encodeURI","decodeURI","escape","unescape","atob","btoa","close"].forEach(function(b){var d=a[b];c[b]=function(){return g(d,a,arguments)}});d.createSafeDocument=function(a){"getElementById createEvent createElement dispatchEvent addEventListener removeEventListener".split(" ").forEach(function(b){var c=
a[b];d.safeDocument[b]=function(){return g(c,a,arguments)}})};d.createSafeDocument(x)})();try{d.Message=function(a,b){var d=function(){return g(b.dispatchEvent,b,arguments)},c=function(){return g(b.addEventListener,b,arguments)},w=function(){return g(b.removeEventListener,b,arguments)},q=function(a,d){var c=b.createEvent("MutationEvent");c.initMutationEvent(a,!1,!1,null,null,null,J(d),c.ADDITION);return c},A=function(a,b){var d;a&&(d=F[a])&&(d(b),delete F[a])},n,x,p,H,Q=1,F={},C=[],V=function(a){var b=
M(a.attrName);"message.response"==b.m?A(b.r,b.a):n&&!1===n(b,b.r?function(a){a=q(p,{m:"message.response",a:a,r:b.r});d(a)}:function(){})&&I(C,a)};return{init:function(a){H||(H=a);p="2C_"+H;x="2P_"+H;c(x,V,!1)},send:function(a,b,c){if(c){var e=++Q;F[Q]=c;c=e}else c=null;a=q(p,{m:a,a:b,r:c});d(a)},onMessage:{setListener:function(a,b){n=a;b||(u(C,function(a){V(a)}),C=null)}},cleanup:function(){V&&w(x,V,!1);V=null}}}(c,d.safeDocument),d.Message.init(q),d.Message.onMessage.setListener(function(c){if(d)if("load"==
c.m)d.Context.pageLoaded=!0;else if("DOMContentLoaded"==c.m)d.Context.domContentLoaded=!0;else if("cleanup"==c.m)d.Message.cleanup(),d=null;else if("next"==c.m)if(c.a.id)d.exec_script(c.a.id,d),d.exec_eval=!1;else{if(void 0===d.exec_eval)try{d.exec_eval=b(d.eval,a)("true")}catch(g){d.exec_eval=!1}d.exec_eval?d.exec_fn(c.a.src,d):d.exec_csp(c.a.src,d)}else return!1},!0)}catch(e){}},next:function(a,x,q,F,d,g,b,A,I,u,J,M,ba,w,C){var n="";A&&(n+="var V = true;\n");u&&(n+="var EV = true;\n");I&&(n+="var ENV = true;\n");
u="";if(ba||"complete"==document.readyState)u+="Context.pageLoaded |= true;\nContext.domContentLoaded |= true;\n";else if(w||"interactive"==document.readyState)u+="Context.domContentLoaded |= true;\n";return['var backup = this;\n(function TM_back() {var Context = backup.Context;\nvar copy = function(src) {"use strict";var props = Context.O_gOPN(src);for (var kk, ii=0; (kk=props[ii]) !== undefined; ii++) {Context[kk] = src[kk];};};copy(backup);with (Context) {(function() {"use strict";copy({Context: Context,V:',
A?"true":"false",",ENV:",I?"true":"false",",TS:",J?"true":"false",",D:",M?"true":"false",",use:",g,",windowProps:",F,",scripts:",x,",powers:",q,",_content: false,flags:",d,',write_listeners: []});var cleanup = function(evt) {Message.cleanup();safeWindow.removeEventListener("unload", cleanup, false);};safeWindow.addEventListener("unload", cleanup, false);Context.write_listeners.push(function(d) {Context.createSafeDocument(d);Message.init();});',n+("var logLevel = "+b+";\n")+('var contextId = "'+a+
'";\n')+"var Event = function() {};var Window = function() {};Window.prototype = {};"+u+"("+C+")(Context, contextId);\n","})();};})()"].join("")},environment:function(a,x){var q=a.V,F=a.EV,d=a.D,g=a.Message,b=a.safeWindow,A=window,I=a.safeDocument,u=a.flags,J=a.i_N,M=a.i_SS,ba=a.i_SG,w=a.F_a,C=a.F_c,n=a.F_b,ha=a.F_tS,c=a.A_fE,e=a.A_sl,ga=a.A_sp,B=a.A_pu,G=a.A_po,sa=a.A_sh,U=a.A_j,ta=a.A_f,ma=a.A_iO,Da=a.A_c,p=a.O_k,H=a.O_dP,Q=a.O_dPy,Ca=a.O_gOPN,Ea=a.O_gOPD,V=a.O_gOPDs,Ba=a.O_tS,ua=a.J_p,qa=a.J_s,
y=a.c_l,Fa=a.c_i,N=a.c_w,ia=a.c_e,O=a.c_d,Ga=a.M_f,va=a.M_r,wa=a.M_m,Ha=a.P_r,Ia=a.P_t,Ja=a.P_c,ca=a.S_fCC,na=a.S_m,xa=a.S_su,ya=a.S_sp,W=a.S_r,da=a.S_se,za=a.S_cCA,ja=a.S_tLC,Ka=a.S_tUC,La=a.R_rAAB,Ma=a.D_pFS,Na=a.X_o,Oa=a.X_sRH,Pa=a.X_oMT,Qa=a.X_gARH,Ra=a.X_gRH,Sa=a.X_s,Ta=a.X_a,Ua=a.N_tS,oa=a.D_n,pa=b.Promise||function(){N("There is no browser Promise support!")};a.domContentLoaded|=0;a.pageLoaded|=0;a.domNodeInserted|=0;a.props={};var ea=function(){var L=[],X=function(a){if(document.body)a&&(a(),
a=null);else{var b=["load","DOMNodeInserted","DOMContentLoaded"],d=function(){c(b,function(a){I.removeEventListener(a,d,!1)});X(a)};c(b,function(a){I.addEventListener(a,d,!1)})}},e=function(d){B(L,function(){b.setTimeout(d,1)});a.domContentLoaded&&r.runListeners()},r={runListeners:function(){for(var a;a=sa(L);)a()},run:function(b){var c=function(){Va.create(b)};"document-start"==b.script.options.run_at?(d&&O('env: run "'+b.script.name+'" ASAP -> document-start'),c()):"document-body"==b.script.options.run_at?
(d&&O('env: schedule "'+b.script.name+'" for document-body'),X(c)):"context-menu"==b.script.options.run_at?(d&&O('env: run "'+b.script.name+'" ASAP -> context-menu'),c()):"document-end"==b.script.options.run_at?(d&&O('env: schedule "'+b.script.name+'" for document-end'),B(L,c),a.domContentLoaded&&r.runListeners()):(d&&O('env: schedule "'+b.script.name+'" for document-idle'),e(c))}};return r}();(q||d)&&O("env: initialized (content, id:"+xa(x,0,10)+"..., "+b.location.origin+b.location.pathname+") ");
var Y={createUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*va()|0;return Ua("x"==a?b:b&3|8,16)})},toType:function(a){return na(Ba(a,{}),new b.RegExp("\\s([a-z|A-Z]+)"))[1]}},K={UTF8:{encode:function(a){return b.unescape(b.encodeURIComponent(a))},decode:function(a){return b.decodeURIComponent(b.escape(a))}},Base64:{encode:function(a){for(var d="",c=0;c<a.length;c++)d+=ca(za(a,c)&255);return b.btoa(d)},decode:function(a){return b.atob(a)}},str2arrbuf:function(a){for(var d=
new b.Uint8Array(a.length),c=0;c<a.length;c++)d[c]=za(a,c);return d.buffer},arrbuf2str:function(a){var d="";a=new b.Uint8Array(a);for(var c=0;c<a.length;c+=32687)d+=w(ca,null,a.subarray(c,c+32687));return d}},P=function(){var a={},b,e=function(b){var d=[],e=[],f=function(){p=e=d=null;delete a[b]},p={postMessage:function(a){g.send("port.message",{response_id:b,value:a})},onMessage:{addListener:function(a){B(d,a)}},onDisconnect:{addListener:function(a){B(e,a)}},disconnect:function(){g.send("port.message",
{response_id:b,disconnect:!0});f()}};a[b]={message:function(a){d&&c(d,function(b){b(a)})},disconnect:function(a){e&&c(e,function(b){b(a)});f()}};return p};return{message:function(c){var f;c.connect?b&&b(c.destination,e(c.response_id)):(f=a[c.response_id])?c.disconnect?f.disconnect():f.message(c.value):d&&N("ports: unkown id",c.response_id,c)},connect:function(a){var b=Y.createUUID();g.send("port.message",{response_id:b,connect:!0,destination:a});return e(b)},onConnect:{addListener:function(a){b=a}}}}(),
ra=function(){var a={objs:{},push:function(b,c){0!==c&&1!==c&&(c=0);var d=Ga(19831206*va()+1);a.objs[d]={fn:b,prio:c};return d},remove:function(b){delete a.objs[b]},get:function(b){for(var d=[],e=0;1>=e;e++)c(p(a.objs),function(c){a.objs[c].prio!==e||void 0!==b&&c!=b||B(d,a.objs[c].fn)});return void 0===b?d:d[0]},finalize:function(b){if(void 0===b){b=a.get();for(var c=0;c<b.length;c++)b[c]()}else return a.objs[b]&&(c=a.objs[b].fn(),delete a.objs[b]),c}};return a}(),f=u.statistics?function(a,c){b.setTimeout(function(){g.send("api",
{name:a,type:c},null)},1)}:function(){},aa=function(){var a=function(a,b){f("GM_openInTab");var c=null,e=!1,g=null,p,w=function(){var a=[];return{run:function(b){b&&B(a,b);if(c)for(;a.length;)G(a)()}}}(),q=P.connect("openInTab");q.onMessage.addListener(function(a){a.tabId?e?q&&q.postMessage({close:!0}):(c=a.tabId,w.run()):a.name?p=a.name:a.closed&&(e=!0,g&&(g(),g=void 0))});q.onDisconnect.addListener(function(){q=null});q.postMessage({method:"openTab",url:a,options:b});var y={};H(y,{close:{value:function(){f("GM_openInTab.close");
e?d&&O("env: attempt to close already closed tab!"):(e=!0,q&&q.postMessage({close:!0}))}},closed:{get:function(){f("GM_openInTab.closed");return e}},onclose:{get:function(){return g},set:function(a){f("GM_openInTab.onclose=");g=a}},name:{get:function(){return p},set:function(a){w.run(function(){f("GM_openInTab.name=");q&&q.postMessage({name:a})})}}});return y},e=function(a,c){f("GM_download");var d="Object"===Y.toType(a)?a:{url:a,name:c},e=function(a,c){c=c||{};a&&b.setTimeout(function(){w(a,c,[c])},
1)},g=P.connect("download");g.onMessage.addListener(function(a){try{a.load?d.onload&&e(d.onload,a.data):a.progress?d.onprogress&&e(d.onprogress,a.data):a.timeout?d.ontimeout&&e(d.ontimeout,a.data):d.onerror&&e(d.onerror,a.data)}catch(b){y("env: Error: TM_download - ",b,d)}});g.onDisconnect.addListener(function(){g=null});g.postMessage({details:d});return{abort:function(){if(g)return g.postMessage({cancel:!0}),g.disconnect(),g=null,!0}}},A={};return{log:function(){f("GM_log");w(y,this,arguments)},
addStyle:function(a,b){f("GM_addStyle");var c=Y.createUUID();g.send("addStyle",{css:a,id:c},b?function(){b()}:null);return I.getElementById(c)},closeTab:function(a){f("window.close");g.send("closeTab",null,a?function(){a()}:null)},focusTab:function(a){f("window.focus");g.send("focusTab",null,a?function(){a()}:null)},setClipboard:function(a,b,c){f("GM_setClipboard");g.send("setClipboard",{content:a,info:b,id:x},c?function(){c()}:null)},syntaxCheck:function(a,b){g.send("syntaxCheck",{code:a},function(a){b(a)})},
of:function(r){var D=r.script,n=function(){var a=[],t=r.storage,k=0,h=function(a,c){if("string"===typeof a){var k=a[0];a=xa(a,1);switch(k){case "b":return"true"===a;case "n":return b.Number(a);case "x":return K.UTF8.decode(K.Base64.decode(a));case "o":try{return ua(a)}catch(d){y("values: parseValueFromStorage: "+d)}return c;default:return a}}else return c},e=function(b,k,t,l){k!=t&&c(a,function(a){if(a&&a.key==b&&a.cb)try{a.cb(b,h(k),h(t),l)}catch(c){d&&N('values: change listener of "'+b+'" failed with: '+
c.message)}})},m=function(a){l.postMessage({method:"saveStorageKey",uuid:D.uuid,key:a,value:t.data[a],id:x,ts:t.ts})},l=P.connect("values");l.onMessage.addListener(function(a){a.storage&&c(p(a.storage.data),function(b){var c=t.data[b];t.data[b]=a.storage.data[b];var k=t.data[b];q&&y("values: message - config key "+b+": "+c+" -> "+k);e(b,c,k,!0)});a.removed&&(t[a.removed]=void 0)});l.onDisconnect.addListener(function(){d&&y("values: port disconnected")});l.postMessage({method:"addStorageListener",
uuid:D.uuid,id:x});return{set:function(a,b){f("GM_setValue");var c=t.data[a];t.ts=oa();var k=t.data,d;a:{d=b;var T=(typeof d)[0];switch(T){case "o":try{d=T+qa(d)}catch(h){y(h);d=void 0;break a}break;case "s":var z=ca(8232),v=ca(8233);if(-1!==da(d,z)||-1!==da(d,v))T="x",d=K.Base64.encode(K.UTF8.encode(d));d=T+d;break;default:d=T+d}}k[a]=d;m(a);e(a,c,t.data[a],!1)},get:function(a,b){f("GM_getValue");return h(t.data[a],b)},remove:function(a){f("GM_deleteValue");var b=t.data[a];t.ts=oa();delete t.data[a];
m(a);e(a,b,t.data[a],!1)},list:function(){f("GM_listValues");return p(t.data)},registerChangeListener:function(b,c){f("GM_addValueChangeListener");var d=++k;B(a,{id:d,key:b,cb:c});return d},unregisterChangeListener:function(b){f("GM_removeValueChangeListener");a=ta(a,function(a){return a.id!==b?!0:!1})}}}(),F=function(){return{getText:function(a){f("GM_getResourceText");for(var b=0;b<D.resources.length;b++){var c=D.resources[b];if(c.name==a&&!c.failed){try{if(null!==c.content)return K.UTF8.decode(c.content)}catch(d){}return""}}return null},
getURL:function(a){f("GM_getResourceURL");for(var b=0;b<D.resources.length;b++){var c=D.resources[b];if(c.name==a&&!c.failed){if(null===c.content)return"";try{return"data:"+(c.meta||"application")+";base64,"+K.Base64.encode(c.content)}catch(d){}return c.url}}return null}}}(),C=function(){return{set:function(a,b){f("GM_setTab");g.send("tabs",{action:"set",uuid:D.uuid,tab:a},b?function(){b()}:null)},get:function(a){f("GM_getTab");g.send("tabs",{action:"get",uuid:D.uuid},a?function(b){a(b||{})}:null)},
getAll:function(a){f("GM_getTabs");g.send("tabs",{action:"list",uuid:D.uuid},a?function(b){a(b||{})}:null)}}}(),H=function(a){f("GM_xmlhttpRequest");var d=!1,k=a.context;delete a.context;var h=function(){var a={};c(p(b.XMLHttpRequest.__proto__),function(b){a[b]=!0});var d=function(){};c(p(b.XMLHttpRequest),function(c){a[c]||(d[c]=b.XMLHttpRequest[c])});return d}(),e=function(){d=!0},m=function(a,c,z){c=c||{};!a||d&&!z||b.setTimeout(function(){c.__proto__=h;w(a,c,[c])},1)};"object"===typeof a.url&&
a.url.href&&(a.url=a.url.href);var l=function(a,c){var d=new b.FileReader;d.onload=function(){c(K.arrbuf2str(d.result))};La(d,a)},S=function(a,c){var d,v,k,h=Y.toType(a);if("Blob"===h||"File"===h)l(a,function(b){c({type:h,value:b,meta:a.type,name:a.name,lastModified:a.lastModified})});else if("FormData"===h)if(v=a.keys&&a.getAll?a.keys():null){var e,t={};for(d=[];!(e=v.next()).done;)B(d,e.value);k=function(){if(d.length){var b=G(d),v=a.getAll(b);-1===da(b,/\[\]$/)&&(v=v[0]);S(v,function(a){t[b]=a;
k()})}else c({type:"FormData",value:t})};k()}else c({error:h});else if(!(h=Y.toType(a))||"Array"!==h&&"Object"!==h)c({value:a});else{var m,E,T=0;v=0;"Object"===h?(d=p(a),E=function(a){return a<d.length?d[a]:null},m={}):(E=function(b){return b<a.length?b:null},m=[]);k=function(){var d=E(T);null===d?c({type:h,value:m}):S(a[d],function(a){a.error?c(a):(m[d]=a,T++,1024>v++?k():(v=0,b.setTimeout(k,1)))})};k()}},E=function(a){var b={};a&&a.split("\n").forEach(function(a){(a=a.match(/^([^:]+): ?(.*)/))&&
(b[a[1].toLowerCase()]=a[2]||"")});return b},g=function(a,c,d,v){if("text"==d)a="document"==c?a.document:a;else if("arraybuffer"==c)a=K.str2arrbuf(a);else if("blob"==c)a=new b.Blob([K.str2arrbuf(a)],{type:v});else if("json"==c)a=ua(a);else if("document"==c){if(a.error){N("GM_xmlhttpRequest:",a.error);return}c=new b.DOMParser;return Ma(c,a.document,a.contentType)}return a},la=!0;(function(b){if(a.url){var c=a.url.substr(0,5);if(-1!=["data:","blob:"].indexOf(c))return la=!1,b()}if(!a.data)return b();
S(a.data,function(c){c.error?(la=!1,N("GM_xmlhttpRequest:","unable to handle data type "+c.error+". Going to use default xhr as fallback.")):(a.binary&&(c.type="Blob"),a.data=c,a.data_type="typified");b()})})(function(){"use strict";if(!d)if(la){var h=P.connect("xhr"),l=[];a.headers&&c(p(a.headers),function(b){"cookie"===ja(b)&&(a.cookie=a.headers[b],delete a.headers[b])});h.postMessage({method:"xhr",details:a,callbacks:{onloadstart:!!a.onloadstart,onload:!!a.onload,onreadystatechange:!!a.onreadystatechange,
onerror:!0,ontimeout:!!a.ontimeout,onprogress:!!a.onprogress,onpartial:!0},id:x,url:b.location.href,uuid:D.uuid});h.onMessage.addListener(function(b){b.data&&k&&(b.data.context=k);if(b.data&&b.onload){l.length&&(b.data.response_data=U(l,""),l=null);if(b.data.response_data){var d=b.data.response_data,h=b.data;c(["response_data"],function(a){delete b.data[a]});var z={response:function(b,c){f("GM_xmlhttpRequest.response["+(a.responseType||"unknown")+"]");var d=a.responseType?ja(a.responseType):"",h=
"binary/octet-stream";c&&(h=E(c.responseHeaders)["content-type"]||h);return g(b,d,null,h)},responseText:function(b){f("GM_xmlhttpRequest.responseText");var c=a.responseType?ja(a.responseType):"";return g(b,c,"text")},responseXML:function(a){f("GM_xmlhttpRequest.responseXML");return g({document:a,contentType:"text/xml"},"document")}};c(p(z),function(a){Q(b.data,a,{get:function(){try{return z[a](d,h)}catch(b){N("GM_xmlhttpRequest:",b)}}})})}m(a.onreadystatechange,b.data);m(a.onload,b.data)}else if(b.onreadystatechange)4!=
b.data.readyState&&m(a.onreadystatechange,b.data);else if(b.onpartial)B(l,b.data.partial);else if(b.onerror)b.exception&&ia(b.exception),m(a.onerror,b.data);else{var e=ta(["onloadstart","onprogress","ontimeout"],function(a){return!!b[a]})[0]||"onerror";m(a[e],b.data)}});q&&h.onDisconnect.addListener(function(){y("env: GM_xmlhttpRequest.onDisconnect! :)")});e=function(){f("GM_xmlhttpRequest.abort");h&&(h.disconnect(),h=null,d=!0,m(a.onabort,null,!0))}}else{var z=new b.XMLHttpRequest;void 0===a.async&&
(a.async=!0);Na(z,a.method,a.url,a.async,a.user,a.password);a.headers&&c(p(a.headers),function(b){Oa(z,b,a.headers[b])});a.overrideMimeType&&Pa(z,a.overrideMimeType);a.responseType&&(z.responseType=a.responseType);c("abort error load loadstart progress readystatechange timeout".split(" "),function(b){var c="abort"==b;z["on"+b]=function(){var d="",h=a.url;if(2<z.readyState&&(d=Qa(z),4==z.readyState)){d&&(d=W(d,/TM-finalURL[0-9a-zA-Z]*\: .*[\r\n]{1,2}/,""));var l;try{l=Ra(z,"TM-finalURL"+u.short_id)}catch(e){}l&&
(h=l)}d={readyState:z.readyState,status:"",statusText:"",responseHeaders:d,finalUrl:h,context:k};4==z.readyState&&(z.responseType?d.response=z.response:(d.responseText=z.responseText,d.responseXML=z.responseXML),d.status=z.status,d.statusText=z.statusText);m(a["on"+b],d,c)}});Sa(z,a.data);e=function(){f("GM_xmlhttpRequest.abort");Ta(z);d=!0}}});return{abort:function(){e()}}},M=function(a){var b={};c(p(a),function(c){b[c]=a[c]});b.id=x;f("GM_notification");b.text||b.highlight?g.send("notification",
b,function(a){if(b.onclick&&a.clicked)b.onclick();if(b.ondone)b.ondone(!0===a.clicked)}):N("GM_notification: neither a message text nor hightlight options were given!")},I,O=function(){if(I)return I;var a=r.script,b={observers:1,id:1,enabled:1,hash:1,fileURL:1},d={script:{}};c(p(a),function(c){b[c]||(d.script[c]=a[c])});var h=a.options.updateURL||a.options.fileURL;d.script["run-at"]=a.options.override.run_at||a.options.run_at;d.script.excludes=a.options.override.orig_excludes;d.script.includes=a.options.override.orig_includes;
d.script.matches=a.options.override.orig_matches;d.script.grant=a.grant;d.script.unwrap=!1;d.scriptMetaStr=r.header;d.scriptSource=r.code;d.scriptWillUpdate=!!h;d.scriptUpdateURL=h;d.version=u.version;d.scriptHandler="Tampermonkey";d.isIncognito=u.inIncognitoContext;d.downloadMode=u.downloadMode;return I=d},J,E=function(a,b){f("GM_webRequest");var c=function(){J==d&&(J=null);d=null};J&&J.disconnect();var d=J=P.connect("webRequest");b&&d.onMessage.addListener(function(a){b(a.type,a.message||"ok",a.details)});
d.onDisconnect.addListener(c);d.postMessage({rules:a,uuid:D.uuid});return{abort:function(){f("GM_webRequest.abort");d&&d.disconnect();c()}}},S=function(){var a=0,c={},d={register:function(h,e,m){f("GM_registerMenuCommand");var l=P.connect("registerMenuCommand");l.onMessage.addListener(function(a){"run"===a&&b.setTimeout(e,1)});l.onDisconnect.addListener(function(){d.unregister(E)});l.postMessage({method:"register",name:h,uuid:D.uuid,accessKey:m});q&&y("env: registerMenuCommand "+ha(e));var E=++a;
c[E]=l.disconnect;return E},unregister:function(a){f("GM_unregisterMenuCommand");q&&y("env: unregisterMenuCommand "+a);var b;if(b=c[a])b(),delete c[a]}};return d}(),la=function(){"use strict";var a=function(a,c){return{action:a,uuid:D.uuid,url:b.location.href,details:c}};return{set:function(b,c){f("GM_cookie.set");g.send("cookie",a("set",b),c?function(a){c(a.error)}:null)},delete:function(b,c){f("GM_cookie.delete");g.send("cookie",a("delete",b),c?function(a){c(a.error)}:null)},list:function(b,c){f("GM_cookie.list");
g.send("cookie",a("list",b),c?function(a){c(a.cookies,a.error)}:null)}}}();A[r.script.uuid]=A[r.script.uuid]||{getInfo:O,registerMenuCommand:S.register,unregisterMenuCommand:S.unregister,download:e,webRequest:E,openInTab:a,setValue:n.set,getValue:n.get,deleteValue:n.remove,listValues:n.list,addValueChangeListener:n.registerChangeListener,removeValueChangeListener:n.unregisterChangeListener,getResourceText:F.getText,getResourceURL:F.getURL,notification:M,xmlhttpRequest:H,cookie:la,setTab:C.set,getTab:C.get,
getTabs:C.getAll};return A[r.script.uuid]}}}(),Va=function(){var L=function(a,b,d,e){var g=V(b);c(p(g),function(c){var d=g[c];if(!d||!d.get||J(d.get)||e)"function"===typeof b[c]?a[c]=n(b[c],b):function(){Q(a,c,{get:function(){"use strict";return b[c]}})}()});c(p(d),function(b){a[b]=d[b]});return a},x=function(a,d,e,g){var f={attrChange:0,attrName:null,bubbles:!0,cancelBubble:!1,cancelable:!1,clipboardData:void 0,currentTarget:null,defaultPrevented:!1,eventPhase:0,newValue:null,prevValue:null,relatedNode:null,
returnValue:!0,srcElement:null,target:null,timeStamp:oa()};e="string"===typeof e?new b.Function(e):e;var k=new Event;c(p(f),function(a){k[a]=f[a]});c(p(d),function(a){k[a]=d[a]});k.type=a;w(e,g,[k])},I=function(a,b,d,e){void 0===e&&(e=function(a,b){return b});c(Da(["GM_info","GM.info"],b),function(b){var c,h=d[b];h&&(c=e(b,h))&&(a[b]=c)})},r=function(a,b){void 0===b&&(b=100);return b&&a&&(a==document||r(a.parentNode,b-1))},D=function(){var b=null;return function(d){b||(b={instance:d,is_open:!1},c(["write",
"writeln","open","close"],function(e){b[e]=d[e];d[e]=function(){var f=!1;-1!=ma(["write","writeln","open"],e)?b.is_open?f=!0:b.is_open=!0:"close"===e&&(b.is_open=!1);!f&&b.is_open&&g.send("document.write");var t=document.documentElement,k=w(b[e],d,arguments);if(!f&&b.is_open)return t!==document.documentElement&&(b.instance!==d&&(b=null,D(document)),c(a.write_listeners,function(a){a(document)})),k}}))}}(),K={},G=[],P=function(c,e,g){if(!c.__addEventListener){H(c,{__addEventListener:{value:c.addEventListener,
enumerable:!1,configurable:!1},__removeEventListener:{value:c.removeEventListener,enumerable:!1,configurable:!1}});var f=[],t=function(a){for(var b=0;b<f.length;b++)if(f[b].fn===a)return b};c.removeEventListener=function(a,b,c){c=!!c;var d,e,k;if(void 0!==(d=t(b))&&(e=f[d].listeners)){if(k=e[a+"-"+c])this.__removeEventListener(a,k,c),delete e[a+"-"+c];Ca(e).length||ga(f,d,1)}else return w(this.__removeEventListener,this,arguments)};var k=function(a,c,d,e){if(c){var k=G.length;c=b.parseInt(U(["DOMContentLoaded"==
d?1:2,e?1:2,e?c:3-c,oa()],"0"));for(d=0;d<G.length;d++)if(e=G[d],!e||!e.prio||e.prio>c){k=d;break}ga(G,k,0,{prio:c,fn:a})}else B(G,{fn:a})};c.addEventListener=function(c,p,m){(q||F)&&y("env: addEventListener "+c);if(p&&(1==e&&"load"==c||"DOMContentLoaded"==c||"DOMNodeInserted"==c)){m=!!m;var l,E=!0,n=this;try{try{throw new b.Error;}catch(R){var r=/tms_[0-9a-f_]+/,fa=R.stack||R.stacktrace;if(fa)for(var A=ya(fa,"\n"),Aa,fa=0;fa<A.length&&(!(Aa=na(A[fa],r))||!(l=K[Aa[0]]));fa++);else{var z=function(a,
c){void 0===c&&(c=10);if(0===c)return null;if(a.caller){var e,v;try{return v=ha(a.caller),na(v,new b.RegExp("^function[^(]+"))&&(void 0).length&&(e=na((void 0)[0],r))?e[0]:z(a.caller,c-1)}catch(h){d&&N("env: unable to detect caller context",h)}}return null},v;if(v=z(arguments.callee))l=K[v]}}}catch(R){d&&ia("env: Error: event "+c,R)}l&&"document-idle"!==l.run_at&&(l=null,"load"==c?a.pageLoaded&&(l=function(){var a=p,c=n,d=n.document||n;(q||F)&&y("env: postLoadEvent!");d=d||document;x("load",{attrName:"null",
newValue:"null",prevValue:"null",eventPhase:b.Event.AT_TARGET,attrChange:b.MutationEvent.ADDITION,target:d,relatedNode:d,srcElement:d},a,c)},E=!1,k(l,e,c,m)):"DOMContentLoaded"==c&&a.domContentLoaded&&(l=function(){var a=p,c=n,d=n.document||n;(q||F)&&y("env: postDomEventListener!");d=d||document;x("DOMContentLoaded",{attrName:"null",newValue:"null",prevValue:"null",eventPhase:b.Event.AT_TARGET,attrChange:b.MutationEvent.ADDITION,target:d,relatedNode:d,srcElement:d},a,c)},E=!1,k(l,e,c,m)),l&&(b.setTimeout(function(){if(G.length){var a=
sa(G);a&&a.fn&&a.fn()}},1),E=!1));E&&(l=function(a){return ka(C,[p,this,g(a)],0,!0,n)},void 0===(E=t(p))&&(E=f.length,B(f,{fn:p,listeners:{}})),f[E].listeners[c+"-"+m]=l,this.__addEventListener(c,l,m))}else return w(this.__addEventListener,this,arguments)};B(ra,function(){c.removeEventListener=c.__removeEventListener;c.addEventListener=c.__addEventListener})}},ca=function(a){a.__evaluate||(H(a,{__evaluate:{value:a.evaluate,enumerable:!1,configurable:!1}}),a.evaluate=function(a,b,c,d,e){q&&y("env: document.evaluate "+
a);b||(b=this);var h;if("undefined"!=typeof XPathResult){var f=a,g=null;try{h=this.__evaluate(f,b,c,d,e)}catch(p){g=p}var l=!1;try{l|=!!h.snapshotLength}catch(p){}try{l|=!!h.singleNodeValue}catch(p){}if(l||"."==a[0]||r(b))q&&y("env: queried document for "+f);else{q&&y("env: query added elem for "+f);f=("/"==a[0]?".":"./")+a;try{h=this.__evaluate(f,b,c,d,e)}catch(p){}}q&&y("env: query returned ",h,g);if(!l&&g)throw g;}else q&&y("env: XPathResult == undefined, but selectNodes via ",a),h=b.selectNodes(a);
return h},B(ra,function(){a.evaluate=a.__evaluate}))},ka=function(a,c,d,e,f){var k=c[d],h=typeof k;e&&"string"===h?c[d]=new b.Function(k):f&&"function"===h&&(c[d]=function(){return w(k,f,arguments)});return w(a,A,c)},ea=function(d,e){var f=["eval"],g={};c(p(d),function(a){d[a].context_prop&&(g[(a.split(".")||[])[1]]=!0)});var t=function(a,d,e,m){var l=function(b){return b===d?a:b},t=function(a,b,c,d){c||(c=a);var e=a[b];a=function(){"use strict";var a=w(e,c,arguments);d&&(a=d(a));return a};a.__proto__=
e;a.prototype=e.prototype;return a},q=function(c){var d,e=c.substr(2),l;Q(a,c,{get:function(){return d},set:function(c){"use strict";(d=c)&&!l?(l=function(){if("function"===typeof d)return w(d,a,arguments)},b.addEventListener(e,l,!0)):!d&&l&&(b.removeEventListener(e,l,!0),l=null)}})},E=function(b,c,e,f){var g,m={};m.get="function"===typeof c?c:function(){"use strict";f&&f.get_cb&&w(f.get_cb,this,[arguments,E]);return void 0===g?l(d[b]):g};"function"===typeof e?m.set=e:c||(m.set=function(a){g=a});Q(a,b,
m)};c(p(m),function(a){e[a]=e[a]||!1!==m[a]});var S=u.sandbox_allow_getters,y=u.detect_constructors_by_keys;c(p(e),function(b){var c,v,R,r,B,u,Z,D,L,x,G,I,C,F;try{var H;(H=Ea(d,b))&&H.get&&(B=!J(H.get));try{if(!(v=m[b])||v.needs_grant&&!0!==g[b])if((c=e[b])&&c.event)C=!0;else if(H&&H.get)if(B)if(S)Z=!0;else return;else Z=function(){"use strict";return l(w(H.get,A))};else"function"===(r=typeof(R=d[b]))?c.proto?u=!0:(H.enumerable||!(y&&p(R).length||!J(R)))&&-1==ma(f,b)&&"bind"in R?G=!0:x=!0:"number"===
r||"string"===r?Z=!0:x=!0;else if(v.wrap)u=!0,I=v.that;else if(v.direct)x=!0;else if(v.enhance)F=v.enhance;else if(v.get||v.set)Z=v.get,D=v.set,L=v.opts}catch(K){Z=D=!0}if(F)a[b]=F;else if(!B||S)C?q(b):Z||D?E(b,Z,D,L):u?a[b]=t(d,b,I,l):x?a[b]=l(d[b]):G&&(a[b]=n(d[b],d))}catch(K){N("env: error while creating a new sandbox["+b+"]: "+K.message)}});return a};return function(){var d=new Window,f={setTimeout:{enhance:function(){"use strict";return ka(b.setTimeout,arguments,0,!0,d)}},setInterval:{enhance:function(){"use strict";
return ka(b.setInterval,arguments,0,!0,d)}},close:{needs_grant:!0,get:function(){"use strict";return b.self==b.top?function(a){return aa.closeTab(a)}:b.close}},focus:{needs_grant:!0,get:function(){return function(a){"use strict";return aa.focusTab(a)}}},location:{get:!0,set:function(a){"use strict";b.location.href=a}},name:{get:function(){"use strict";return ba(A,"name")},set:function(a){"use strict";M(A,"name",a)}},document:{get:function(){"use strict";var a=b.document;e(a);return a}},clearInterval:{get:function(){"use strict";
return b.clearInterval}},clearTimeout:{get:function(){"use strict";return b.clearTimeout}},addEventListener:{enhance:function(){"use strict";return ka(b.addEventListener,arguments,1,!0)}},removeEventListener:{enhance:function(){"use strict";return ka(b.removeEventListener,arguments,1,!0)}}};(function(){var a=wa(b.frames.length,7);f.length={get:!0,opts:{get_cb:function(c,d){"use strict";for(var e=b.frames.length,f=a;f<e;f++)d(b.String(f),{get:!0});a=wa(e,a)}}};for(var c=0;c<a;c++)f[b.String(c)]={get:!0}})();c(p(b),
function(a){b[a]!=A&&(f[a]=f[a]||{enhance:b[a]})});var g=t(d,A,a.windowProps,f),m={context:g,filter:function(a){"use strict";return a==A?g:a},filterEvent:function(a){var b={},c;for(c in a)if("function"===typeof a[c])b[c]=function(){var b=c;return function(){return w(a[b],a,arguments)}}();else{var d=m.filter(a[c]);b[c]=d}return b}};return m}()},da=function(){return L({},b.console,{debug:O,log:y,info:Fa,warn:N,error:ia},!1)},ja=function(e,f,g,q,t,k,h){var n=null,m=function(){return"[Tampermonkey property]"};
try{var l=q.sandboxes[e.uuid],r=["context","fapply"],y=[void 0,void 0],D=q.elements[e.uuid];c(p(D),function(a){var b=D[a];b.overwrite?(B(r,a),B(y,b.value)):b.context_prop||(B(r,a),B(y,"context."+a),b.getter?Q(l,a,{get:b.getter}):l[a]=b.value);b.protect&&l[a]&&M(l[a],"toString",m)});var A,n=U(["(function(context, fapply, console) {","with (context) {","(function(module) {",'"use strict";',"try {\n",u.measure_scripts?'console.time("'+(A="SCRIPT RUN TIME["+e.name.replace(/\W+/g," ")+"]")+'");\n':"","fapply(module, context, [",
U(y,","),"]);",u.measure_scripts?'console.timeEnd("'+A+'");\n':"","} catch (e) {","if (e.message && e.stack) {","console.error(\"ERROR: Execution of script '",W(e.name,new b.RegExp("[\"']","g"),"\\$1"),"' failed! \" + e.message);",'console.log(e.stack.replace(/(\\\\(eval at )?<anonymous>[: ]?)|([\\s.]*at Object.tms_[\\s\\S.]*)/g, ""));',"} else {","console.error(e);","}","}\n","})","(function ",k,"(",U(r,","),") {",u.enforce_strict_mode?'"use strict";\n':"",g,f,"\n","})","}","})(this.context, this.fapply, this.console);\n",
h?"//# sourceURL="+h+"\n":""],""),L={context:l,fapply:w,console:da()};t?t(n,L):a.E_c(n,L)}catch(x){aa.syntaxCheck(U([g,f],""),function(a){var v="";if(a.errors){var h=ya(g,"\n").length-1,k="";a.errors&&c(p(a.errors),function(b){if((b=a.errors[b])&&0<=b.line&&b.reason){var c=b.line;k+=U([c>h?"script:":"require:"," (",b.code,") ",W(b.reason,/.$/,"")," on line: ",c>h?c-h:c," at character: ",b.character,"\n"],"")}});v="JSHINT output:\n"+k}else v=f;var l=x.stack?W(x.stack,/(\\(eval at )?<anonymous>[: ]?)|([\s.]*at Object.tms_[\s\S.]*)/g,
""):"";d||a.errors?ia('Syntax error @ "'+e.name+'"!\n##########################\n'+v+"##########################\n\n"+l):ia('Syntax error @ "'+e.name+'"!\n\n',l);b.setTimeout(function(){throw x;},1)})}};return{create:function(g){var n=g.script,r={},x=-1!==ma(n.grant,"none")?function(b,c){a.E_u(b,c)}:null,t=n.namespace+"_"+!!x;void 0===a.props[t]&&(a.props[t]={sandboxes:{},elements:{}},B(ra,function(){a.props[t]=null}));r.CDATA={value:function(a){f("CDATA");this.src=a;this.toXMLString=this.toString=
function(){return this.src}}};r.uneval={value:function(a){f("window.uneval");try{return"\\$1 = "+qa(a)+";"}catch(b){y(b)}}};r.define={value:void 0};r.module={value:void 0};r.exports={value:void 0};var k={},h={},u={},m=aa.of(g);f(n.options.run_at||"<default>","run_at");if(x)f("none","grant");else{f("sandbox","grant");r.window={value:"context",overwrite:!0};var l={window:A};c(p(l),function(a){var b="unsafe"+W(a,/^(.)/g,function(a){return Ka(a)});r[b]={value:l[a]};-1!=ma(n.grant,b)&&f(b,"grant")});r.console=
{value:da()};r.cloneInto={value:function(a){f("compat.cloneInto");return a}};r.exportFunction={value:function(a,b,c){f("compat.exportFunction");c&&void 0!==c.defineAs&&(b[c.defineAs]=a);return a}};r.createObjectIn={value:function(a,b){f("compat.createObjectIn");var c={};b&&void 0!==b.defineAs&&(a[b.defineAs]=c);return c}};k.addStyle=aa.addStyle;k.deleteValue=m.deleteValue;k.listValues=m.listValues;k.getValue=m.getValue;k.setValue=m.setValue;k.log=aa.log;k.registerMenuCommand=m.registerMenuCommand;
k.unregisterMenuCommand=m.unregisterMenuCommand;k.openInTab=m.openInTab;k.addValueChangeListener=m.addValueChangeListener;k.removeValueChangeListener=m.removeValueChangeListener;u.xmlhttpRequest=m.xmlhttpRequest;u.download=m.download;k.webRequest=m.webRequest;u.setClipboard=aa.setClipboard;k.getTab=m.getTab;k.setTab=m.setTab;k.saveTab=m.setTab;k.getTabs=m.getTabs;k.getResourceText=m.getResourceText;u.getResourceURL=m.getResourceURL;var L=function(a){return function(){var b=Ha(w(a,this,arguments));
M(b,"then",function(a){return Ia(b,a)});M(b,"catch",function(a){return Ja(b,a)});return b}},F=function(a,b){var d,e=new pa(function(e,f){var g={},h=b.onload,k=b.ontimeout,l=b.onerror;c(p(b),function(a){g[a]=b[a]});g.onerror=function(a){f(a);l&&w(l,this,arguments)};g.ontimeout=function(a){f(a);k&&w(k,this,arguments)};g.onload=function(a){e(a);h&&w(h,this,arguments)};var m=a(g).abort;!0===d?m():d=m});M(e,"abort",function(){d?d():d=!0});return e};c(p(u),function(a){h["GM_"+a]={value:u[a]}});h["GM.getResourceUrl"]=
{getter:function(){return L(u.getResourceURL)}};h["GM.xmlHttpRequest"]={value:function(a){return F(u.xmlhttpRequest,a)}};h["GM.download"]={value:function(a){return F(u.download,a)}};h["GM.setClipboard"]={value:function(a,b){return new pa(function(c){u.setClipboard(a,b,c)})}};h.GM_notification={value:function(a,b,d,e){var f=null,g=["timeout","text","image","title","highlight"],h=null,k={};"object"===typeof a&&(h=a);h?(c(g,function(a){k[a]=h[a]}),f=h.ondone,e=h.onclick,"function"===typeof b&&(f=b)):
(k.image=d,k.title=b,k.text=a);k.text&&(k.image=k.image||n.icon64||n.icon,k.title=k.title||n.name);k.onclick=e;k.ondone=f;m.notification(k)}};h["GM.notification"]={value:function(a){return"object"!==typeof a?N("GM.notification(details): received no details"):new pa(function(b,d){c(p(a),function(a){});m.notification(a)})}};h.GM_cookie={value:function(){var a=m.cookie,b=function(b,c,d){return(a[b]||function(){})(c,d)};c(p(a),function(c){b[c]=a[c]});return b}()};h["GM.cookie"]={value:function(){var a=
function(a,b){return new pa(function(c,d){"list"==a?h.GM_cookie.value(a,b,function(a,b){b?d(b):c(a)}):h.GM_cookie.value(a,b,function(a){a?d(a):c()})})};c(p(m.cookie),function(b){a[b]=function(c){return a(b,c)}});return a}()};c(p(k),function(a){var b=k[a];h["GM_"+a]={value:b};h["GM."+a]={getter:function(){return L(b)}}});h["window.close"]={context_prop:!0};h["window.focus"]={context_prop:!0}}h.GM_info=h["GM.info"]={getter:m.getInfo};var G={};r.GM={value:G,protect:!0};I(r,n.grant,h,function(a,b){if("GM."===
a.substr(0,3))a=a.split(".")[1],Q(G,a,{get:b.getter?b.getter:function(){return b.value}});else return b.protect=!0,b});n.options.compat_prototypes&&((q||d)&&y("env: option: add toSource"),b.Object.prototype.toSource||H(b.Object.prototype,{toSource:{value:function(){f("Object.toSource");var a=Y.toType(this);if("String"===a)return'(String("'+W(this,new b.RegExp('"',"g"),'\\"')+'"))';if("Number"===a)return'(Number("'+b.Number(this)+'"))';if("Array"===a){for(var a="(new Array(",c=0;c<this.length;c++){var d=
Y.toType(this[c]),a="Null"===d?a+"null":"Undefined"===d?a+"undefined":a+this[c].toSource();c+1<this.length&&(a+=",")}return a+"))"}return'JSON.parse(unescape("'+b.escape(qa(this))+'"))'},enumerable:!1,writable:!0,configurable:!0}}),(q||d)&&y("env: option: add some array generics"),c("indexOf lastIndexOf filter forEach every map some slice".split(" "),function(a){if("function"!==typeof b.Array[a]){var c={};c[a]={value:function(c){f("Array."+a);return w(b.Array.prototype[a],c,w(e.wrappedJSObject,arguments,
[1]))},enumerable:!1,writable:!0,configurable:!0};H(b.Array,c)}}));var C,J="";if(x)C=new Window;else{var X=ea(r,function(a){ca(a);D(a);P(a,2,X.filterEvent)});C={run_at:n.options.run_at,uuid:n.uuid};J="tms_"+W(n.uuid,/-/g,"_");K[J]=C;P(X.context,1,X.filterEvent);C=X.context}a.props[t].sandboxes[n.uuid]=C;a.props[t].elements[n.uuid]=r;(q||d)&&O("env: execute script "+n.name+" @ the "+(x?"un":"")+"safe context now!");ja(n,g.code,g.requires,a.props[t],x,J,g.source_url)}}}();(function(){if(u.external_connect){var a;
if(a=A.external){var b=function(a,b){g.send("external.message",a,function(a){b&&b(a)})};try{H(a,{Tampermonkey:{get:function(){return{getVersion:function(a){b({method:"getVersion"},a)},isInstalled:function(a,c,d){"function"===typeof c&&(d=c,c=null);b({method:"isInstalled",script:{name:a,namespace:c}},d)}}},configurable:!0}})}catch(c){}}}})();g.onMessage.setListener(function(b){var c=b.a;"load"==b.m?(a.pageLoaded=!0,ea.runListeners()):"DOMContentLoaded"==b.m?(a.domContentLoaded=!0,ea.runListeners()):
"setForeignAttr"==b.m?A[c.attr]=c.value:"port.message"==b.m?P.message(c):"executeScript"==b.m?ea.run(b.a):"cleanup"==b.m?g.cleanup():d&&y("env: unkown method",b)});d&&y("Tampermonkey started");c(a.scripts,function(a){ea.run(a)})}}}());
