'use strict';Registry.require(["promise","helper"],function(){var d=rea.FEATURES,r=Registry.get("helper"),x=Registry.get("promise"),f,a=d.RUNTIME.BROWSER_VERSION,k=!0;f=d.RUNTIME.CHROME?64<=a?2018:59<=a?2017:47<=a?2015:5:d.RUNTIME.SAFARI?11<=a?2018:10<=a?2017:6<=a?2015:6<=a?5:3:d.RUNTIME.EDGE?16<=a?2017:2016:d.RUNTIME.FIREFOX?58<=a?2018:52<=a?2017:2016:5;var t={};d.RUNTIME.CHROME&&77>a?(k=!1,console.warn("hint: disable inline ESLint config due to web worker CSP issues","https://bugs.chromium.org/p/chromium/issues/detail?id=777076",
"https://bugs.chromium.org/p/chromium/issues/detail?id=159303")):d.RUNTIME.EDGE?(k=!1,console.warn("hint: disable inline ESLint config due to web worker CSP issues")):window.Worker||(k=!1,console.warn("hint: disable inline ESLint config because web workers are unavailable and this extension's CSP doesn't allow unsafe eval, which is required for ESLint's dynamic reconfigration"));var p={env:{es6:2015<=f,browser:!0},parserOptions:{ecmaVersion:f,sourceType:"script",ecmaFeatures:{globalReturn:!0}},rules:{curly:[1,
"multi-line"],"dot-location":0,"dot-notation":[1,{allowKeywords:!0}],"no-caller":1,"no-case-declarations":2,"no-div-regex":0,"no-empty-pattern":2,"no-eq-null":0,"no-eval":1,"no-extra-bind":1,"no-fallthrough":1,"no-implicit-globals":2,"no-implied-eval":1,"no-lone-blocks":1,"no-loop-func":1,"no-multi-spaces":1,"no-multi-str":1,"no-native-reassign":1,"no-octal-escape":2,"no-octal":2,"no-proto":1,"no-redeclare":2,"no-return-assign":1,"no-sequences":1,"no-undef":1,"no-useless-call":1,"no-useless-concat":1,
"no-with":1}},l={};r.each("uneval unsafeWindow TM_info GM_info GM GM_addStyle GM_deleteValue GM_listValues GM_getValue GM_download GM_log GM_registerMenuCommand GM_unregisterMenuCommand GM_openInTab GM_setValue GM_addValueChangeListener GM_removeValueChangeListener GM_xmlhttpRequest GM_getTab GM_setTab GM_saveTab GM_getTabs GM_setClipboard GM_notification GM_getResourceText GM_getResourceURL".split(" "),function(a){l[a]=!0});p.globals=l;var b,e={},m;Registry.register("hinter","6095",
{hint:function(a,g,f){var n=x(),u=n.promise(),v=f||t,h;g?(h=g,h.globals=l):h=p;if(window.Worker&&!d.RUNTIME.SAFARI){var w=function(){b=new Worker("worker/lint.js");b.onmessage=function(a){a=a.data;var c=a.id,b,d;c&&(b=e[c])&&(d=b.d)&&(delete e[c],(b=a.results)?(k||(b=b.map(function(a){var b;a.message&&(b=a.message.match(/Configuration for rule "([^"]+)"[\s\S]*evaluate a string as JavaScript[\s\S]*/))&&(a.message='Rule "'+b[1]+'": ESLint inline configuration is not supported by this browser.',a.severity=
1);return a})),d.resolve(b)):d.reject(a.error||"Unknown error"));q(c)};b.postMessage({method:"base_uri",value:rea.extension.getURL("/")});m=null},q=function(a){b||w();if(a)m=null;else if(m)return;var c,d=Date.now();Object.keys(e).forEach(function(a){e[a].ts<=d&&(c=e[a],d=c.ts)});c&&(m=c.id,b.postMessage({method:c.method,id:c.id,config:c.c,options:c.o,text:c.t}))};u.abort=function(){b&&(b.terminate(),b=null,q())};b||w();g=r.createUUID();e[g]={method:"lint",id:g,d:n,t:a,c:h,o:v,ts:Date.now()};q()}else Registry.vendor("vendor/eslint/eslint",
function(){try{var b=(new window.eslint).verify(a,h,v);n.resolve(b||[])}catch(c){n.reject(c)}});return u},globals:l,config:p,options:t,autoHintMaxLength:5E4})});
