D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
advisor
/
js
/
Filename :
headerIndicator.js
back
Copy
define(["plesk-ui-library"],(e=>{return n={4120:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function o(e){return function(t){return b(t,e)}}function a(e){if(j(e))throw new Error("config must have a baseURL");function t(e,t){return p[e]=t,h}function n(e,t,n,r){return a(l({url:t,params:n=void 0===n?{}:n,method:e},r=void 0===r?{}:r))}function r(e,t,n,r){return a(l({url:t,method:e,data:n=void 0===n?null:n},r=void 0===r?{}:r))}function a(e){return n=function(){var t,n,r;return function(e,t){function n(n){return function(u){var s=[n,u];if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(a=o[2&s[0]?"return":s[0]?"throw":"next"])&&!(a=a.call(o,s[1])).done)return a;switch(o=0,(s=a?[0,a.value]:s)[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(a=0<(a=i.trys).length&&a[a.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3]))i.label=s[1];else if(6===s[0]&&i.label<a[1])i.label=a[1],a=s;else{if(!(a&&i.label<a[2])){a[2]&&i.ops.pop(),i.trys.pop();continue}i.label=a[2],i.ops.push(s)}}s=t.call(e,i)}catch(u){s=[6,u],o=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var r,o,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},u={next:n(0),throw:n(1),return:n(2)};return"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}(this,(function(o){switch(o.label){case 0:if(e.headers=S({},p,e.headers),0<m.length&&c((function(t){return t(e)}),m),!(0<v.length))return[3,6];t=0,o.label=1;case 1:return t<v.length?!(a=n=v[t](e))||"object"!=typeof a&&"function"!=typeof a||"function"!=typeof a.then?[3,3]:[4,n]:[3,6];case 2:return o.sent(),[3,5];case 3:return[4,n(e)];case 4:o.sent(),o.label=5;case 5:return t++,[3,1];case 6:return r=u(R(I(new Date)),E),[2,h.request(e).then(r).catch(r)]}var a}))},new(t=(t=void 0)||Promise)((function(e,r){function o(e){try{i(n.next(e))}catch(e){r(e)}}function a(e){try{i(n.throw(e))}catch(e){r(e)}}function i(n){n.done?e(n.value):new t((function(e){e(n.value)})).then(o,a)}i((n=n.apply(void 0,[])).next())}));var t,n}var p=l(U,e.headers||{}),h=(e=l(L,f("headers",e)),C.create(e)),y=[],m=[],v=[],g=[],E=function(e){return y.forEach((function(t){try{t(e)}catch(t){}})),e},R=w((function(e,t){e=I(new Date)-e;var n=(o=t instanceof Error||C.isCancel(t))?t.response:t,r=n&&n.status||null,o=o?b(t):O(r),a=X(r),i=(t=t.config||null,{duration:e,problem:o,ok:a,status:r,headers:n&&n.headers||null,config:t,data:n&&n.data||null});return 0<g.length&&c((function(e){return e(i)}),g),i})),b=function(e){return"Network Error"===e.message?H:C.isCancel(e)?q:N([[A,function(){return O(Y(e.response))}],[o(K),d(D)],[o(F),d(B)],[x,d(G)]])(e.code)},O=function(e){return N([[A,d(G)],[X,d(M)],[V,d(k)],[W,d(P)],[x,d(G)]])(e)};return{axiosInstance:h,monitors:y,addMonitor:function(e){y.push(e)},requestTransforms:m,asyncRequestTransforms:v,responseTransforms:g,addRequestTransform:function(e){return m.push(e)},addAsyncRequestTransform:function(e){return v.push(e)},addResponseTransform:function(e){return g.push(e)},setHeader:t,setHeaders:function(e){return c((function(n){return t(n,e[n])}),s(e)),h},deleteHeader:function(e){return delete p[e],h},headers:p,setBaseURL:function(e){return h.defaults.baseURL=e,h},getBaseURL:function(){return h.defaults.baseURL},get:i(n,["get"]),delete:i(n,["delete"]),head:i(n,["head"]),post:i(r,["post"]),put:i(r,["put"]),patch:i(r,["patch"]),link:i(n,["link"]),unlink:i(n,["unlink"])}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(6942)),u=r(n(4603)),s=r(n(368)),c=r(n(5636)),f=r(n(2650)),l=r(n(780)),p=r(n(2478)),d=r(n(4115)),h=r(n(3710)),y=r(n(7430)),m=r(n(8426)),v=r(n(7877)),g=r(n(6573)),E=r(n(2157)),R=r(n(8766)),b=r(n(1949)),O=r(n(8524)),w=r(n(3087)),x=r(n(3007)),T=r(n(9443)),_=r(n(9105)),A=r(n(3657)),N=r(n(7794)),C=r(n(9669)),S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I=N([[A,_],[T(Number),_],[x,function(e){return Number(e)}]]),j=(n=w((function(e,t,n){var r=T(Number);return r(e)&&r(t)&&r(n)&&O(n,e)&&O(t,n)})),R([A,E,g(v("baseURL")),g(m(String,"baseURL")),y(E,"baseURL")])),U={Accept:"application/json","Content-Type":"application/json"},L={timeout:0},M=null,k="CLIENT_ERROR",P="SERVER_ERROR",D="TIMEOUT_ERROR",B="CONNECTION_ERROR",H="NETWORK_ERROR",G="UNKNOWN_ERROR",q="CANCEL_ERROR",K=["ECONNABORTED"],F=["ENOTFOUND","ECONNREFUSED","ECONNRESET"],X=n(200,299),V=n(400,499),W=n(500,599),Y=h(A,d(void 0),p("status"));_={DEFAULT_HEADERS:U,NONE:M,CLIENT_ERROR:k,SERVER_ERROR:P,TIMEOUT_ERROR:D,CONNECTION_ERROR:B,NETWORK_ERROR:H,UNKNOWN_ERROR:G,create:a},t.DEFAULT_HEADERS=U,t.NONE=M,t.CLIENT_ERROR=k,t.SERVER_ERROR=P,t.TIMEOUT_ERROR=D,t.CONNECTION_ERROR=B,t.NETWORK_ERROR=H,t.UNKNOWN_ERROR=G,t.CANCEL_ERROR=q,t.create=a,t.default=_},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),a=n(5327),i=n(4109),u=n(7985),s=n(5061),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(4657);e.exports=function(e){return new Promise((function(t,f){var l,p,d=e.data,h=e.headers,y=(r.isFormData(d)&&delete h["Content-Type"],new XMLHttpRequest),m="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in y||u(e.url)||(y=new window.XDomainRequest,m="onload",v=!0,y.onprogress=function(){},y.ontimeout=function(){}),e.auth&&(l=e.auth.username||"",p=e.auth.password||"",h.Authorization="Basic "+c(l+":"+p)),y.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,y[m]=function(){var n;y&&(4===y.readyState||v)&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&(n="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?y.response:y.responseText,status:1223===y.status?204:y.status,statusText:1223===y.status?"No Content":y.statusText,headers:n,config:e,request:y},o(t,f,n),y=null)},y.onerror=function(){f(s("Network Error",e,null,y)),y=null},y.ontimeout=function(){f(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()&&(l=n(4372),p=(e.withCredentials||u(e.url))&&e.xsrfCookieName?l.read(e.xsrfCookieName):void 0)&&(h[e.xsrfHeaderName]=p),"setRequestHeader"in y&&r.forEach(h,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:y.setRequestHeader(t,e)})),e.withCredentials&&(y.withCredentials=!0),e.responseType)try{y.responseType=e.responseType}catch(l){if("json"!==e.responseType)throw l}"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){y&&(y.abort(),f(e),y=null)})),void 0===d&&(d=null),y.send(d)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),a=n(321),i=n(5655);function u(e){e=new a(e);var t=o(a.prototype.request,e);return r.extend(t,a.prototype,e),r.extend(t,e),t}var s=u(i);s.Axios=a,s.create=function(e){return u(r.merge(i,e))},s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.all=function(e){return Promise.all(e)},s.spread=n(8713),e.exports=s,e.exports.default=s},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise((function(e){t=e}));var t,n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(5655),o=n(4867),a=n(782),i=n(3572),u=n(1793),s=n(7303);function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!u(e.url)&&(e.url=s(e.baseURL,e.url));var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=c},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,a){return e=new Error(e),r(e,t,n,o,a)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),a=n(6502),i=n(5655);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),a={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,s={adapter:u="undefined"==typeof XMLHttpRequest&&"undefined"==typeof process?u:n(5448),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(i(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(a)})),e.exports=s},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},4657:e=>{"use strict";function t(){this.message="String contains an invalid character"}(t.prototype=new Error).code=5,t.prototype.name="InvalidCharacterError",e.exports=function(e){for(var n,r,o=String(e),a="",i=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.charAt(0|i)||(u="=",i%1);a+=u.charAt(63&n>>8-i%1*8)){if(255<(r=o.charCodeAt(i+=.75)))throw new t;n=n<<8|r}return a}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){var a;return t&&(n=n?n(t):r.isURLSearchParams(t)?t.toString():(a=[],r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)&&(t+="[]"),r.isArray(e)||(e=[e]),r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),a.join("&")))&&(e+=(-1===e.indexOf("?")?"?":"&")+n),e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(a)&&u.push("domain="+a),!0===i&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){return(e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)")))?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},7985:(e,t,n)=>{"use strict";var r,o,a,i=n(4867);function u(e){return o&&(a.setAttribute("href",e),e=a.href),a.setAttribute("href",e),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}e.exports=i.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),r=u(window.location.href),function(e){return(e=i.isString(e)?u(e):e).protocol===r.protocol&&e.host===r.host}):function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){var t,n,o={};return e&&r.forEach(e.split("\n"),(function(e){n=e.indexOf(":"),t=r.trim(e.substr(0,n)).toLowerCase(),n=r.trim(e.substr(n+1)),t&&(o[t]=o[t]?o[t]+", "+n:n)})),o}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=(n=n(8738),Object.prototype.toString);function a(e){return"[object Array]"===o.call(e)}function i(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function s(e,t){if(null!=e)if("object"==typeof e||a(e)||(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:n,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:i,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return i(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:s,merge:function e(){var t={};function n(n,r){t[r]="object"==typeof t[r]&&"object"==typeof n?e(t[r],n):n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return t},extend:function(e,t,n){return s(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},5706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7096),o=(Object.defineProperty(t,"lowOwlIcon",{enumerable:!0,get:function(){return s(r).default}}),n(8090)),a=(Object.defineProperty(t,"mediumOwlIcon",{enumerable:!0,get:function(){return s(o).default}}),n(7115)),i=(Object.defineProperty(t,"highOwlIcon",{enumerable:!0,get:function(){return s(a).default}}),n(3731)),u=(Object.defineProperty(t,"veryHighOwlIcon",{enumerable:!0,get:function(){return s(i).default}}),n(7074));function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"maxOwlIcon",{enumerable:!0,get:function(){return s(u).default}})},8413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTTP_CODE={GATEWAY_TIME_OUT:504},t.NETWORK_ERROR="NETWORK_ERROR"},2766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIUM_RATING=50,t.HIGH_RATING=80,t.VERY_HIGH_RATING=95,t.TOP_COUNT=3,t.PER_PAGE=100,t.FAST_LINK_MAX_COUNT=5,t.POLL_TIMEOUT=4e3,t.COLUMN_TYPE_HTML="html",t.SELECT_ALL="all",t.RANK_LEVEL={HIGH:"high",LOW:"low",MEDIUM:"medium",VERY_HIGH:"veryHigh",MAX:"max"},t.PREFIX="ext-advisor",t.SUCCESS="success",t.ERROR="error",t.DANGER="danger"},5424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTO_EXECUTE_TASK="apply-all",t.SWITCH_DOMAIN_PHP_TASK="ext-advisor-switch-domain-php",t.SECURE_DOMAIN_TASK="ext-advisor-secure-domain",t.SWITCH_WORDPRESS_TO_HTTPS_TASK="ext-advisor-switch-wordpress-to-https",t.TASK_STATUS_ERROR="error",t.TASK_STATUS_DONE="done"},3133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RECOMMENDATION="recommendation",t.UPDATE="update",t.SECURITY="security",t.SEO="seo",t.PERFORMANCE="performance",t.REPUTATION="reputation",t.BACKUP="backup"},5921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_CONTEXT_PREFIX="/main/index",t.DOMAIN_CONTEXT_PREFIX="/domain/index",t.FACEBOOK_PAGE_URL="https://www.facebook.com/groups/plesk/",t.FORUM_PAGE_URL="https://talk.plesk.com",t.APP_GET_DATA="application/get-app-data",t.GET_RECOMMENDATION_URL="recommendation/get-recommendation",t.STEP_EXECUTE_URL="step/execute",t.GET_RECOMMENDATION_STEPS_URL="recommendation/get-steps",t.RECOMMENDATION_TOGGLE_VISIBILITY_URL="recommendation/toggle-visibility",t.GET_RECOMMENDATION_DATA_URL="recommendation/get-data",t.SHOW_HIDDEN_RECOMMENDATIONS_URL="recommendation/show-hidden",t.START_AUTO_EXECUTE_TASK="common/start-auto-execute-task",t.GET_SECURE_DOMAIN_URL="common/get-secure-domain-url",t.GET_TOTAL_RATING_URL="rating/get-total"},5761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getResponseAttr=t.waitDomElement=t.checkApiError=t.getIndicatorData=t.getIntent=t.getRankLevel=t.autoExecuteTaskCheckClause=t.getKey=t.getAllCategories=t.getCategoryRecommendations=t.makeActionCreator=t.prepareInitialState=void 0;var r=n(2766),o=n(3133),a=n(5424),i=n(8413),u=n(1852),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5706));t.prepareInitialState=function(e,t){return Object.keys(e).forEach((function(n){t&&void 0!==t[n]&&(e[n]=t[n])})),e},t.makeActionCreator=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var a={type:e};return n.forEach((function(e,t){a[n[t]]=r[t]})),a}},t.getCategoryRecommendations=function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).filter((function(t){return-1!==t.categories.indexOf(e)})).sort((function(e,t){return e.totalRating<t.totalRating?1:e.totalRating>t.totalRating?-1:0}))},t.getAllCategories=function(e,t){var n=t?[o.RECOMMENDATION]:[];return e.forEach((function(e){e.categories.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}))})),n},t.getKey=function(){return Math.random().toString(36).substring(7)},t.autoExecuteTaskCheckClause=function(e){var t=e.taskData&&e.taskData.status,n=[a.TASK_STATUS_ERROR,a.TASK_STATUS_DONE];return(!t||-1!==n.indexOf(t))&&e.relatedLongTasksCompleted};var c=t.getRankLevel=function(e){return e<=r.MEDIUM_RATING?r.RANK_LEVEL.LOW:e>r.MEDIUM_RATING&&e<=r.HIGH_RATING?r.RANK_LEVEL.MEDIUM:e>r.HIGH_RATING&&e<=r.VERY_HIGH_RATING?r.RANK_LEVEL.HIGH:!(e>r.VERY_HIGH_RATING&&e<100)&&1<arguments.length&&void 0!==arguments[1]&&arguments[1]?r.RANK_LEVEL.MAX:r.RANK_LEVEL.VERY_HIGH},f=t.getIntent=function(e){return e<=r.MEDIUM_RATING?"danger":e>r.MEDIUM_RATING&&e<=r.HIGH_RATING?"warning":"success"};t.getIndicatorData=function(e,t){e=t?Math.floor(100*e/t):0;var n=(t=c(e,!0))+"LevelTitle",r=t+"LevelMessage",o=f(e);return{percentRank:e,title:n,message:r,icon:s[t+"OwlIcon"],intent:o}},t.checkApiError=function(e){if(!e)throw new Error("Invalid response");var t=e.ok,n=e.data;if(e=e.problem,!t){if(e===i.NETWORK_ERROR)throw new u.NetworkError("Network Error");throw new Error(n&&n.message?n.message:"Unknown error")}},t.waitDomElement=function(e){function t(e,a,i){n<=o&&i();var u=document.querySelector(e);u?a(u):(o+=r,setTimeout((function(){t(e,a,i)}),r))}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1e3,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:100,o=0;return new Promise((function(n,r){t(e,n,r)}))},t.getResponseAttr=function(e,t){return e&&e.data&&e.data[t]?e.data[t]:2<arguments.length&&void 0!==arguments[2]?arguments[2]:null}},1852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkError=void 0;var r=n(4120),o=r&&r.__esModule?r:{default:r},a=n(8413),i=n(2766);t.NetworkError=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){if(this instanceof n)return e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e)),Object.setPrototypeOf(e,n.prototype),e;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n}(Error),t.default={instance:null,init:function(e){var t=e.baseUrl,n=e.locale;(e=o.default.create({baseURL:t,headers:{"Cache-Control":"no-cache",Credentials:"same-origin","Content-Type":"application/json"}})).addResponseTransform((function(e){var t,r,o;"string"!=typeof(t=e).data||-1===t.data.indexOf("login_up")&&-1===t.data.indexOf("login.php")||location.reload(),t=n,r=e.ok,o=e.status,r||o===a.HTTP_CODE.GATEWAY_TIME_OUT&&(e.data={status:i.ERROR,message:t["common.error.timeout"]})})),this.instance=e}}},4837:(e,t,n)=>{(e.exports=n(9252)(!0)).push([e.id,".main-header-navbar-nav .main-header-navbar-nav__item--advisor-1 > a {\n position: relative;\n padding-right: 13px;\n}\n.main-header-navbar-nav .main-header-navbar-nav__item--advisor-1 span.label {\n position: absolute;\n right: -3px;\n}\n","",{version:3,sources:["/home/ext-advisor/src/frontend/assets/styles/content-include/indicator.less"],names:[],mappings:"AAAA;EACE,mBAAmB;EACnB,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,YAAY;CACb",file:"indicator.less",sourcesContent:[".main-header-navbar-nav .main-header-navbar-nav__item--advisor-1 > a {\n position: relative;\n padding-right: 13px;\n}\n.main-header-navbar-nav .main-header-navbar-nav__item--advisor-1 span.label {\n position: absolute;\n right: -3px;\n}\n"],sourceRoot:""}])},9252:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];return r?t&&"function"==typeof btoa?(e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),t=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})),[n].concat(t).concat([e]).join("\n")):[n].join("\n"):n}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},7115:e=>{e.exports="/modules/advisor/images/high-owl-icon.png"},7096:e=>{e.exports="/modules/advisor/images/low-owl-icon.png"},7074:e=>{e.exports="/modules/advisor/images/max-owl-icon.png"},8090:e=>{e.exports="/modules/advisor/images/medium-owl-icon.png"},3731:e=>{e.exports="/modules/advisor/images/very-high-owl-icon.png"},8738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||"function"==typeof(n=e).readFloatLE&&"function"==typeof n.slice&&t(n.slice(0,0))||!!e._isBuffer);var n}},3007:(e,t,n)=>{n=n(4115),e.exports=n(!0)},4115:(e,t,n)=>{n=n(6224),e.exports=n((function(e){return function(){return e}}))},8766:(e,t,n)=>{var r=n(6224),o=n(2220),a=n(1186),i=n(4585),u=n(793);e.exports=r((function(e){return o(u(a,0,i("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}))},7693:(e,t,n)=>{var r=n(4011),o=n(9002),a=n(9488),i=n(1894);e.exports=o((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:a((function(e,n){return r(e,i(n,t))}),[],e)}))},3195:(e,t,n)=>{var r=n(7455);n=n(9002),e.exports=n((function(e,t){return r(e.length,(function(){return e.apply(t,arguments)}))}))},6573:(e,t,n)=>{var r=n(4041);n=n(2184),e.exports=r(n)},7794:(e,t,n)=>{var r=n(7455),o=n(6224),a=n(1894),i=n(1186),u=n(793);e.exports=o((function(e){var t=u(i,0,a((function(e){return e[0].length}),e));return r(t,(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))}))},1949:(e,t,n)=>{var r=n(4281);n=n(9002),e.exports=n(r)},3087:(e,t,n)=>{var r=n(6224),o=n(2220);e.exports=r((function(e){return o(e.length,e)}))},2220:(e,t,n)=>{var r=n(7455),o=n(6224),a=n(9002),i=n(2738);e.exports=a((function(e,t){return 1===e?o(t):r(e,i(e,[],t))}))},2650:(e,t,n)=>{n=n(9002),e.exports=n((function(e,t){var n,r={};for(n in t)r[n]=t[n];return delete r[e],r}))},8403:(e,t,n)=>{var r=n(6224),o=n(7587),a=n(219),i=n(8291),u=n(190);e.exports=r((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():a(e)?[]:u(e)?"":i(e)?{}:o(e)?function(){return arguments}():void 0}))},1481:(e,t,n)=>{var r=n(9002),o=n(4023);e.exports=r((function(e,t){return o(e,t,[],[])}))},5636:(e,t,n)=>{var r=n(3542);n=n(9002),e.exports=n(r("forEach",(function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t})))},8524:(e,t,n)=>{n=n(9002),e.exports=n((function(e,t){return t<=e}))},7877:(e,t,n)=>{var r=n(9002);n=n(7684),e.exports=r(n)},5713:(e,t,n)=>{n=n(9002),e.exports=n((function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}))},9105:(e,t,n)=>{var r=n(6224);n=n(339),e.exports=r(n)},3710:(e,t,n)=>{var r=n(6370),o=n(2220);e.exports=r((function(e,t,n){return o(Math.max(e.length,t.length,n.length),(function(){return(e.apply(this,arguments)?t:n).apply(this,arguments)}))}))},7455:e=>{e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,a){return t.apply(this,arguments)};case 6:return function(e,n,r,o,a,i){return t.apply(this,arguments)};case 7:return function(e,n,r,o,a,i,u){return t.apply(this,arguments)};case 8:return function(e,n,r,o,a,i,u,s){return t.apply(this,arguments)};case 9:return function(e,n,r,o,a,i,u,s,c){return t.apply(this,arguments)};case 10:return function(e,n,r,o,a,i,u,s,c,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},4118:e=>{e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},2512:(e,t,n)=>{n=n(4778),e.exports="function"==typeof Object.assign?Object.assign:n},3542:(e,t,n)=>{var r=n(219);e.exports=function(e,t){return function(){var n,o=arguments.length;return 0===o?t():r(n=arguments[o-1])||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,o-1))}}},4011:e=>{e.exports=function(e,t){for(var n=(e=e||[]).length,r=(t=t||[]).length,o=[],a=0;a<n;)o[o.length]=e[a],a+=1;for(a=0;a<r;)o[o.length]=t[a],a+=1;return o}},4281:(e,t,n)=>{var r=n(6069);e.exports=function(e,t){return 0<=r(t,e,0)}},7994:(e,t,n)=>{var r=n(7455),o=n(9002);e.exports=function(e){return o((function(t,n){return r(Math.max(0,t.length-n.length),(function(){return t.apply(this,e(n,arguments))}))}))}},6224:(e,t,n)=>{var r=n(6464);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},9002:(e,t,n)=>{var r=n(6224),o=n(6464);e.exports=function(e){return function t(n,a){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r((function(t){return e(n,t)}));default:return o(n)&&o(a)?t:o(n)?r((function(t){return e(t,a)})):o(a)?r((function(t){return e(n,t)})):e(n,a)}}}},6370:(e,t,n)=>{var r=n(6224),o=n(9002),a=n(6464);e.exports=function(e){return function t(n,i,u){switch(arguments.length){case 0:return t;case 1:return a(n)?t:o((function(t,r){return e(n,t,r)}));case 2:return a(n)&&a(i)?t:a(n)?o((function(t,n){return e(t,i,n)})):a(i)?o((function(t,r){return e(n,t,r)})):r((function(t){return e(n,i,t)}));default:return a(n)&&a(i)&&a(u)?t:a(n)&&a(i)?o((function(t,n){return e(t,n,u)})):a(n)&&a(u)?o((function(t,n){return e(t,i,n)})):a(i)&&a(u)?o((function(t,r){return e(n,t,r)})):a(n)?r((function(t){return e(t,i,u)})):a(i)?r((function(t){return e(n,t,u)})):a(u)?r((function(t){return e(n,i,t)})):e(n,i,u)}}}},2738:(e,t,n)=>{var r=n(7455),o=n(6464);e.exports=function e(t,n,a){return function(){for(var i,u=[],s=0,c=t,f=0;f<n.length||s<arguments.length;)f<n.length&&(!o(n[f])||arguments.length<=s)?i=n[f]:(i=arguments[s],s+=1),o(u[f]=i)||--c,f+=1;return c<=0?a.apply(this,u):r(c,e(t,u,a))}}},4793:(e,t,n)=>{var r=n(219),o=n(9082);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var a=Array.prototype.slice.call(arguments,0),i=a.pop();if(!r(i)){for(var u=0;u<e.length;){if("function"==typeof i[e[u]])return i[e[u]].apply(i,a);u+=1}if(o(i))return t.apply(null,a)(i)}return n.apply(this,arguments)}}},4023:(e,t,n)=>{var r=n(4118),o=n(4931),a=n(7684),i=n(5713),u=n(368),s=n(6433);e.exports=function e(t,n,c,f){if(!i(t,n)){if(s(t)!==s(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(s(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===o(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t==typeof n&&i(t.valueOf(),n.valueOf()))break;return!1;case"Date":if(i(t.valueOf(),n.valueOf()))break;return!1;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(e(r(t.entries()),r(n.entries()),c,f))break;return!1;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=u(t);if(l.length!==u(n).length)return!1;for(var p=c.length-1;0<=p;){if(c[p]===t)return f[p]===n;--p}for(c.push(t),f.push(n),p=l.length-1;0<=p;){var d=l[p];if(!a(d,n)||!e(n[d],t[d],c,f))return!1;--p}c.pop(),f.pop()}return!0}},4931:e=>{e.exports=function(e){return null==(e=String(e).match(/^function (\w*)/))?"":e[1]}},7684:e=>{e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},339:e=>{e.exports=function(e){return e}},6069:(e,t,n)=>{var r=n(1481);e.exports=function(e,t,n){var o,a;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t)for(o=1/t;n<e.length;){if(0===(a=e[n])&&1/a==o)return n;n+=1}else{if(t==t)return e.indexOf(t,n);for(;n<e.length;){if("number"==typeof(a=e[n])&&a!=a)return n;n+=1}}return-1;case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(r(e[n],t))return n;n+=1}return-1}},7587:(e,t,n)=>{var r=n(7684);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},219:e=>{e.exports=Array.isArray||function(e){return null!=e&&0<=e.length&&"[object Array]"===Object.prototype.toString.call(e)}},3219:(e,t,n)=>{var r=n(6224),o=n(219),a=n(190);e.exports=r((function(e){return!!o(e)||!!e&&"object"==typeof e&&!a(e)&&(1===e.nodeType?!!e.length:0===e.length||0<e.length&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}))},8291:e=>{e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},6464:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},190:e=>{e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},9082:e=>{e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},6692:e=>{e.exports=function(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}},4778:(e,t,n)=>{var r=n(7684);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n<o;){var a=arguments[n];if(null!=a)for(var i in a)r(i,a)&&(t[i]=a[i]);n+=1}return t}},6015:e=>{e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},9488:(e,t,n)=>{var r,o=n(3219),a=n(9874),i=n(3195);function u(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](i(e["@@transducer/step"],e),t))}e.exports=(r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",function(e,t,n){if("function"==typeof e&&(e=a(e)),o(n)){for(var i=e,c=t,f=n,l=0,p=f.length;l<p;){if((c=i["@@transducer/step"](c,f[l]))&&c["@@transducer/reduced"]){c=c["@@transducer/value"];break}l+=1}return i["@@transducer/result"](c)}if("function"==typeof n["fantasy-land/reduce"])return s(e,t,n,"fantasy-land/reduce");if(null!=n[r])return u(e,t,n[r]());if("function"==typeof n.next)return u(e,t,n);if("function"==typeof n.reduce)return s(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})},3714:e=>{e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},2894:(e,t,n)=>{var r=n(9002);function o(e,t){this.xf=t,this.f=e}n=n(3714),e.exports=(o.prototype["@@transducer/init"]=n.init,o.prototype["@@transducer/result"]=n.result,o.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},r((function(e,t){return new o(e,t)})))},9874:e=>{function t(e){this.f=e}e.exports=(t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(e){return new t(e)})},9443:(e,t,n)=>{n=n(9002),e.exports=n((function(e,t){return null!=t&&t.constructor===e||t instanceof e}))},2157:(e,t,n)=>{var r=n(6224),o=n(8403),a=n(1481);e.exports=r((function(e){return null!=e&&a(e,o(e))}))},3657:(e,t,n)=>{n=n(6224),e.exports=n((function(e){return null==e}))},368:(e,t,n)=>{var r,o,a,i=n(6224),u=n(7684),s=n(7587);e.exports=(r=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],a=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),"function"!=typeof Object.keys||a?i((function(e){if(Object(e)!==e)return[];var t,n,i=[],c=a&&s(e);for(t in e)!u(t,e)||c&&"length"===t||(i[i.length]=t);if(r)for(n=o.length-1;0<=n;)u(t=o[n],e)&&!function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1}(i,t)&&(i[i.length]=t),--n;return i})):i((function(e){return Object(e)!==e?[]:Object.keys(e)})))},4041:(e,t,n)=>{var r=n(6224),o=n(1272);e.exports=r((function(e){return o(e.length,e)}))},1272:(e,t,n)=>{var r=n(9002),o=n(9488),a=n(7693),i=n(2220),u=n(1894);e.exports=r((function(e,t){var n=i(e,t);return i(e,(function(){return o(a,u(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}))},1894:(e,t,n)=>{var r=n(9002),o=n(4793),a=n(6692),i=n(9488),u=n(2894),s=n(2220),c=n(368);e.exports=r(o(["fantasy-land/map","map"],u,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return s(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return i((function(n,r){return n[r]=e(t[r]),n}),{},c(t));default:return a(e,t)}})))},1186:(e,t,n)=>{n=n(9002),e.exports=n((function(e,t){return e<t?t:e}))},780:(e,t,n)=>{var r=n(2512);n=n(9002),e.exports=n((function(e,t){return r({},e,t)}))},2184:(e,t,n)=>{n=n(6224),e.exports=n((function(e){return!e}))},6942:(e,t,n)=>{var r=n(4011);n=n(7994),e.exports=n(r)},4603:(e,t,n)=>{var r=n(7455),o=n(6015),a=n(793),i=n(3656);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,a(o,arguments[0],i(arguments)))}},4585:(e,t,n)=>{var r=n(9002),o=n(1894),a=n(2478);e.exports=r((function(e,t){return o(a(e),t)}))},2478:(e,t,n)=>{n=n(9002),e.exports=n((function(e,t){return t[e]}))},8426:(e,t,n)=>{var r=n(6370),o=n(9443);e.exports=r((function(e,t,n){return o(e,n[t])}))},7430:(e,t,n)=>{n=n(6370),e.exports=n((function(e,t,n){return e(n[t])}))},793:(e,t,n)=>{var r=n(6370);n=n(9488),e.exports=r(n)},1753:(e,t,n)=>{var r=n(3542);n=n(6370),e.exports=n(r("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})))},3656:(e,t,n)=>{var r=n(3542),o=n(6224);n=n(1753),e.exports=o(r("tail",n(1,1/0)))},6433:(e,t,n)=>{n=n(6224),e.exports=n((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}))},704:(e,t,n)=>{var r=n(4837),o=("string"==typeof r&&(r=[[e.id,r,""]]),{hmr:!0});o.transform=void 0,n(6723)(r,o),r.locals&&(e.exports=r.locals)},6723:(e,t,n)=>{var r,o,a,i={},u=(r=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?r.apply(this,arguments):o}),s=(a={},function(e){if(void 0===a[e]){var t=function(e){return document.querySelector(e)}.call(this,e);if(t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}),c=null,f=0,l=[],p=n(1947);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(E(r.parts[a],t))}else{var u=[];for(a=0;a<r.parts.length;a++)u.push(E(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:u}}}}function h(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0];a={css:a[1],media:a[2],sourceMap:a[3]},r[i]?r[i].parts.push(a):n.push(r[i]={id:i,parts:[a]})}return n}function y(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");r=s(e.insertInto+" "+e.insertAt.before),n.insertBefore(t,r)}}function m(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=l.indexOf(e)))&&l.splice(e,1)}function v(e){var t=document.createElement("style");return e.attrs.type="text/css",g(t,e.attrs),y(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function E(e,t){var n,r,o,a,i;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}return o=t.singleton?(a=f++,n=c=c||v(t),r=O.bind(null,n,a,!1),O.bind(null,n,a,!0)):e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=t,i=document.createElement("link"),a.attrs.type="text/css",a.attrs.rel="stylesheet",g(i,a.attrs),y(a,i),r=function(e,t,n){var r=n.css,o=(n=n.sourceMap,void 0===t.convertToAbsoluteUrls&&n);(t.convertToAbsoluteUrls||o)&&(r=p(r)),n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t=new Blob([r],{type:"text/css"}),o=e.href,e.href=URL.createObjectURL(t),o&&URL.revokeObjectURL(o)}.bind(null,n=i,t),function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css;if((t=t.media)&&e.setAttribute("media",t),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){m(n)}),r(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||r(e=t):o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=u()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(u=i[a.id]).refs--,r.push(u)}var u;for(e&&d(h(e,t),t),o=0;o<r.length;o++)if(0===(u=r[o]).refs){for(var s=0;s<u.parts.length;s++)u.parts[s]();delete i[u.id]}}},R=[];var R,b=function(e,t){return R[e]=t,R.filter(Boolean).join("\n")};function O(e,t,n,r){n=n?"":r.css,e.styleSheet?e.styleSheet.cssText=b(t,n):(r=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r))}},1947:e=>{e.exports=function(e){var t,n,r="undefined"!=typeof window&&window.location;if(r)return e&&"string"==typeof e?(t=r.protocol+"//"+r.host,n=t+r.pathname.replace(/\/[^\/]*$/,"/"),e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,r){return r=r.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t})),/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r)?e:(e=0===r.indexOf("//")?r:0===r.indexOf("/")?t+r:n+r.replace(/^\.\//,""),"url("+JSON.stringify(e)+")")}))):e;throw new Error("fixUrls requires window.location")}},9594:t=>{"use strict";t.exports=e}},r={},o={},(()=>{"use strict";var e=o,n=(Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,r=[],o=!0,a=void(t=!1);try{for(var i,u=e[Symbol.iterator]();!(o=(i=u.next()).done)&&(r.push(i.value),!n||r.length!==n);o=!0);}catch(e){t=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(t)throw a}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")}),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=t(9594),u=t(5761),s=t(2766),c=t(5921),f=t(1852),l=f&&f.__esModule?f:{default:f};function p(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}t(704);var d=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e,t=this,r=n;if(!(t instanceof r))throw new TypeError("Cannot call a class as a function");for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=e=p(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(a)))).state={percentRank:null,scoreRank:{current:0,total:0}},e.loadRating=function(){l.default.instance.get(c.GET_TOTAL_RATING_URL,{ignoreContext:!0}).then((function(t){t=t.data,e.updateRank(t),e.updateItemTooltip()}))},e.updateRank=function(t){t=Object.values(t);var n=0,r=0;t.forEach((function(e){n+=e.current,r+=e.total})),e.setState({scoreRank:{total:Math.round(r),current:Math.round(n)},percentRank:r?Math.round(100*n/r):0})},e.updateItemTooltip=function(){var t,n,r=e.props.wrapper;r&&(t=(n=e.state.scoreRank).current,n=n.total,r.setAttribute("data-description","Your current rating is "+t+" of "+n),Jsw.Tooltip.init(r,{text:r.getAttribute("data-description")}))},e.getLabelType=function(){var t=e.state.percentRank,n=(r=e.props).mediumRating,r=r.highRating;return t?t<=n?"danger":n<t&&t<=r?"warning":null:null},p(e,r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),function(e,t,n){t&&a(e.prototype,t)}(n,[{key:"componentDidMount",value:function(){var e=this;this.loadRating(),Jsw.Observer.append((function(t){e.updateRank(t.ratings),e.updateItemTooltip()}),"update-header-indicator")}},{key:"render",value:function(){var e=this.getLabelType();return e?(0,i.createElement)("span",{className:"label label-"+e},"!"):null}}]),n}(i.Component);d.propTypes={mediumRating:i.PropTypes.number.isRequired,highRating:i.PropTypes.number.isRequired,wrapper:i.PropTypes.any.isRequired},e.default=function(e){(0,u.waitDomElement)(".main-header-navbar-nav__item--advisor-1").then((function(e){var t=e.getElementsByTagName("a"),r=e;return(t.length&&(r=n(t,1)[0]),t=document.createElement("span")).className=s.PREFIX+"-header-indicator-container",r.append(t),{container:t,wrapper:e}})).catch((function(){return{container:null,wrapper:null}})).then((function(t){var n=t.container;t=t.wrapper,n&&(l.default.init(e),(0,i.render)((0,i.createElement)(d,r({},e,{wrapper:t})),n))}))}})(),o;function t(e){var o=r[e];return void 0!==o||(o=r[e]={id:e,exports:{}},n[e](o,o.exports,t)),o.exports}var n,r,o}));