'use strict';Registry.require(["promise","helper"],function(){var b=rea.FEATURES,p=Registry.get("helper"),u=Registry.get("promise"),a;a=b.RUNTIME.BROWSER_VERSION;a=b.RUNTIME.CHROME?64<=a?2018:59<=a?2017:47<=a?2015:5:b.RUNTIME.SAFARI?11<=a?2018:10<=a?2017:6<=a?2015:6<=a?5:3:b.RUNTIME.EDGE?16<=a?2017:2016:b.RUNTIME.FIREFOX?58<=a?2018:52<=a?2017:2016:5;var d={};b.RUNTIME.CHROME?(d.allowInlineConfig=!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")):b.RUNTIME.EDGE?(d.allowInlineConfig=!1,console.warn("hint: disable inline ESLint config due to web worker CSP issues")):window.Worker||(d.allowInlineConfig=!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 m={env:{es6:2015<=a,browser:!0},parserOptions:{ecmaVersion:a,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}},g={};p.each("CDATA XPathResult xpath uneval escape unescape console JSON unsafeWindow TM_info GM_info GM TM_addStyle TM_deleteValue TM_listValues TM_getValue TM_log TM_registerMenuCommand TM_unregisterMenuCommand TM_openInTab TM_setValue TM_addValueChangeListener TM_removeValueChangeListener TM_xmlhttpRequest TM_getTab TM_setTab TM_saveTab TM_getTabs TM_runNative TM_execUnsafe TM_notification TM_getResourceText TM_getResourceURL 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){g[a]=!0});m.globals=g;var c,e={},h;Registry.register("hinter","5770",{hint:function(a,b,v){var k=u(),q=k.promise(),r=v||d,f;b?(f=b,f.globals=g):f=m;if(window.Worker){var t=function(){c=new Worker("worker/lint.js");c.onmessage=function(a){a=a.data;var l=a.id,b,c;l&&(b=e[l])&&(c=b.d)&&(delete e[l],a.results?c.resolve(a.results):c.reject(a.error||"Unknown error"));n(l)};c.postMessage({method:"base_uri",value:rea.extension.getURL("/")});h=null},n=function(a){c||t();if(a)h=null;
else if(h)return;var b,d=Date.now();Object.keys(e).forEach(function(a){e[a].ts<=d&&(b=e[a],d=b.ts)});b&&(h=b.id,c.postMessage({method:b.method,id:b.id,config:b.c,options:b.o,text:b.t}))};q.abort=function(){c&&(c.terminate(),c=null,n())};c||t();b=p.createUUID();e[b]={method:"lint",id:b,d:k,t:a,c:f,o:r,ts:Date.now()};n()}else Registry.vendor("vendor/eslint/eslint",function(){try{var b=(new window.eslint).verify(a,f,r);k.resolve(b||[])}catch(c){k.reject(c)}});return q},globals:g,config:m,options:d,autoHintMaxLength:5E4})});
