Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
User : User ( 0)
PHP Version : 7.4.6
Disable Function : NONE
Directory :  C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/Scans.js
//{"name":"Scans","version":"1.2.836","created":"2021-09-06T10:44:08.580Z"}
import t from"./ractive.js";import{EventEmitter as e,eventer as n,serviceRequest as s,napiTracker as a,moduleManager as i,windowApi as o,burgerTracker as c}from"./napi.js";import{productModel as r,soundService as l,napiUtils as d,features as u,ipmService as h,settingsService as p}from"./napiExtensions.js";import{logger as f,stringUtils as m,svelte3Adapter as g,Router as b,deepExtend as w}from"./libs.js";import{nls as v,moment as _}from"./i18n.js";const S="{7C4966F0-D502-412D-A636-ACCC39A24BB2}",y=["auto","delete","repair","chest","nothing"],x={QUICK:"quick",FULL:"full",FOLDER:"folder",EXPLORER:"explorer"},k=["Label","Job","SchedulerEnabled","SchedType","SchedDays","SchedTime","ScanAreas"],T={RUNNING:"running",READY:"ready",PAUSED:"paused",CANCELED:"canceled",DONE:"done",SUSPENDED:"suspended",RESOLVING:"resolving"};class C extends e{constructor(t){super(),this.setData(t),this._status={},this._changed=!1,this._scanStatusListenerOff=null,this._latestSessionId=-1}setData(t){(t=t||{}).type=t.type||t.scanType,this._scanData=t,this._scanId=t.id,this._scanType=t.type}getData(){return JSON.parse(JSON.stringify(this._scanData))}startScan(t={}){if(this._status.status===T.RUNNING)return Promise.resolve(this._status.sessionId);{let e;return e="folder"===this._scanType&&t.path?{guid:this._scanId,path:t.path}:this._scanId,this._scanStatusListenerOff=n.on("scans.onStatusChanged.ASW_NOTIF_SESSION_CHANGED",(t=>{const e=t.find((t=>t.id===this._scanId));e&&(this._latestSessionId=e.sessionId||this._latestSessionId,this.startPolling(this._latestSessionId)),this._scanStatusListenerOff&&this._scanStatusListenerOff(),this._scanStatusListenerOff=null})),s("app.scanViruses.Start",e).then((t=>{if(null==t)return this.getStatus().then((t=>(this.startPolling(t.sessionId,!0),t.sessionId)));{const e=t.session;return this.startPolling(e,!0),e}}))}}stopScan(){return this._status.status===T.RUNNING?s("app.scanViruses.Stop",this._scanId).catch((t=>console.error("Stopping scan "+this._scanId+" failed; error:",t))):Promise.resolve()}isInstalled(){return"boottime"!==this._scanType||r.isInstalled("VpsBoot32")}startPolling(t,e=!1){this.stopPolling();let n=e?10:0;const s=e=>{clearTimeout(this.pollingTimer),this.pollingTimer=setTimeout((()=>{this.getStatus(t).then((e=>{if(n-- >0&&[T.CANCELED,T.DONE].includes(e.status))return t=this._latestSessionId,void s(1e3);n=0,this.emit("change",e),e.status===T.RUNNING?s(1e3):(this.stopPolling(),this._scanStatusListenerOff&&this._scanStatusListenerOff(),this._latestSessionId=-1)})).catch((t=>{this.emit("error",t)}))}),e)};return this.pollingTimer||s(1e3),this.getStatus(t)}stopPolling(){return clearTimeout(this.pollingTimer),delete this.pollingTimer,Promise.resolve()}getStatus(t){return s("app.scanViruses.GetStatus",{scanId:this._scanId,session:t}).then((t=>(this._status=t,t)))}getThreats(t){return s("app.scanViruses.GetResult",{scanId:this._scanId,session:t}).then((t=>t.page))}resolveThreats(t,e){return s("app.scanViruses.Resolve",{scanId:this._scanId,session:t,actions:e})}loadProp(t){return s("app.settings.Get",this.getPropPath(t))}saveProp(t,e){const n=this.getPropPath(t),a=Object.assign({value:e},n);return this._changed=!0,s("app.settings.Set",a).then((()=>{k.includes(t)&&this.updateData()}))}saveProps(t){const e=t.map((t=>{const e=this.getPropPath(t.name),n=Object.assign({value:t.value},e);return s("app.settings.Set",n)}));return this._changed=!0,Promise.all(e).then((()=>{t.some((t=>k.includes(t.name)))&&this.updateData()}))}getPropPath(t){return{name:"avcfg://settings/***TaskGUID***/"+t,objectId:this._scanId}}getPropTestAttr(t,e){return void 0!==e?{name:"avcfg://settings/***TaskGUID***/"+t,param:e,objectId:this._scanId}:{name:"avcfg://settings/***TaskGUID***/"+t,objectId:this._scanId}}getId(){return this._scanId}isChanged(){return this._changed}updateData(){Promise.all([s("app.scans.GetScanProps",{id:this._scanId}),this.loadProp("ScanAreas")]).then((t=>{const e=t[1].value.split(";"),n={id:this._scanId,job:t[0].job,label:t[0].label,scanAreas:e,schedule:t[0].schedule,type:t[0].scanType};this.setData(n),this.emit("dataChange",n)}))}}const D=f.createLogger("scans.serviceProxy");const A=new class extends e{constructor(){super(),this._MAIN_SCANS=["full","folder","boottime"],this._scanList=null,this._scans={},this._scanHistory={},this._runningScanIds=[],this._runningScanTypes=[],this._getHistoryPromise=null,this._scansPromise=null,this._runningScansPromise=null,this._brandedComponents={},this._isTheOne=!1,this._onScanDataChangeRef=this._onScanDataChange.bind(this),n.on("scans.onStatusChanged.ASW_NOTIF_SESSION_CHANGED",this.updateRunningScans.bind(this)),n.on("app.settings.onStatusChanged",this._loadAndUpdateScans.bind(this,!0)),this._loadAndUpdateScans(!0),this.loadRunningScans().then((t=>this.updateRunningScans(t)))}_loadAndUpdateScans(t){return D.debug("_loadAndUpdateScans"),D.debug("...update",t),D.debug("...scan promise already exists",Boolean(this._scansPromise)),D.debug("...scan list",this._scanList),this._scanList&&!t?(D.debug("scan list already loaded"),Promise.resolve(this._scanList)):this._scansPromise&&!t?(D.debug("scan promise exists.. waiting for it"),this._scansPromise):(this._scanList=null,this._scansPromise=s("app.scanViruses.GetScans").then((t=>{this._scansPromise=null;const e=[];return this._scanList=t,t.forEach((t=>{e.push(t.id);let n=this._scans[t.id];n?n.setData(t):(n=new C(t),n.on("dataChange",this._onScanDataChangeRef),this._scans[t.id]=n)})),Object.keys(this._scans).forEach((t=>{e.includes(t)||delete this._scans[t]})),D.debug("scans",this._scans),D.debug("scanList",this._scanList),this.emit("scans",this._scanList),Promise.resolve(this._scanList)})).catch((t=>{this._scansPromise=null,D.error("getting scans failed",t)})))}_scanHistoryUpdate(t){const e={};t.forEach((t=>{const n=Object.assign({},t);e[n.scanId]||(e[n.scanId]={}),e[n.scanId][n.sessionId]=n})),this._scanHistory=e}loadRunningScans(){return this._runningScansPromise||(this._runningScansPromise=s("app.scans.GetStatus").then((t=>(this._runningScansPromise=null,t.runningScans))).catch((t=>{this._runningScansPromise=null,D.error("getting running scans failed",t)}))),this._runningScansPromise}updateRunningScans(t){this._runningScanIds=t.map((t=>t.id)),this._runningScanTypes=t.map((t=>t.type)),this._runningScans=t,this.getScans().then((t=>{t.forEach((t=>{const e=this._runningScanIds.includes(t.id);e&&(this.removeScanAsDone(t.id),this.emit("scanStarted",t.id)),this.emit("running."+t.id,e),this.emit("running."+t.type,e)}))})),this.isSmartScanRunning().then((t=>this.emit("running.smartScan",t)))}getScans(){return D.debug("getScans"),this._loadAndUpdateScans()}getScan(t){return D.debug("getScan",t),t?this.getScans().then((()=>this._scans[t]?(D.debug("scan already exists",this._scans[t]),this._scans[t]):(D.debug("scan does not exists.. creating a new one"),s("app.scans.GetScanProps",{id:t}).then((e=>""===e.label||"????"===e.label?Promise.reject("scan "+t+" not found"):(e.id=t,new C(e))))))):Promise.reject("missing scanId")}getRunningScanIds(){return this._runningScansPromise?this._runningScansPromise.then((()=>this._runningScanIds)):Promise.resolve(this._runningScanIds)}getRunningScanTypes(){return this._runningScansPromise?this._runningScansPromise.then((()=>this._runningScanTypes)):Promise.resolve(this._runningScanTypes)}getRunningScans(){return this._runningScansPromise?this._runningScansPromise.then((()=>this._runningScans)):Promise.resolve(this._runningScans)}createScan(){return s("app.scanViruses.CreateScanOnly").then((t=>t))}deleteScan(t){return this.getScans().then((e=>s("app.scanViruses.DeleteScan",{id:t}).then((()=>{const n=e.findIndex((e=>e.id===t));e.splice(n,1),delete this._scans[t],this.emit("scans",e)})).catch((t=>{throw t}))))}unscheduleScan(t){return this.getScan(t).then((t=>t.saveProp("SchedulerEnabled",0)))}getScanHistory(){return this.getHistory().then((t=>(this._scanHistoryUpdate(t),t.sort(((t,e)=>e.startTime-t.startTime))))).catch((t=>{console.error("Getting scan history failed; error:",t)}))}getScanHistoryDetail(t,e){return void 0===this._scanHistory[t]||void 0===this._scanHistory[t][e]?this.getHistory().then((n=>(this._scanHistoryUpdate(n),this._scanHistory[t]&&this._scanHistory[t][e]))).catch((t=>{console.error("Getting scan history failed; error:",t)})):Promise.resolve(this._scanHistory[t]&&this._scanHistory[t][e])}getRunScans(){return this.getHistory().then((t=>{this._scanHistoryUpdate(t);const e={};return t.forEach((t=>{e[t.scanId]=!0})),e})).catch((t=>{console.error("Getting scan history failed; error:",t)}))}getScanRoute(t={}){let e;return e=t.scan?Promise.resolve(t.scan):t.scanId?this.getScans().then((e=>e.find((e=>e.id===t.scanId)))):t.scanType?"custom"===t.scanType?Promise.reject('"custom" scan type is not accepted'):this.getScans().then((e=>e.find((e=>e.type===t.scanType)))):Promise.reject("no scan identificator"),e.then((e=>{if(!e)return;let n;return"SmartScan"===e.job?n="#SmartScan/scan/"+e.id:(n="#Scans/scan/"+e.id,t.scanPath&&(n+="/path/"+t.scanPath)),n}))}openScan(t){this.getScanRoute({scan:t}).then((t=>window.location.hash=t))}openScanSettings(t){this._MAIN_SCANS.includes(t.scanType)?window.location.hash="Settings/Scans/"+t.scanType:window.location.hash="Scans/customScans/"+t.scanId+"/settings"}openScanScheduleDialog(t){this._MAIN_SCANS.includes(t.scanType)?console.warn("schedule dialog not supported for",t):window.location.hash="Scans/customScans/"+t.scanId+"/settings"}isCustomScan(t){return s("app.scans.GetScanProps",{id:t}).then((t=>"custom"===t.scanType))}isScanStoredAsDone(t){return this._getScansStoredAsDone().indexOf(t)>-1}storeScanAsDone(t){const e=this._getScansStoredAsDone();e.indexOf(t)<0&&(e.push(t),localStorage.scansDone=JSON.stringify(e))}removeScanAsDone(t){const e=this._getScansStoredAsDone();if(e.indexOf(t)>-1){const n=e.filter((e=>e!==t));localStorage.scansDone=JSON.stringify(n)}}isSmartScanRunning(){return this.getRunningScanIds().then((t=>!(!t.includes("smart_scan")&&!this._runningScans.find((t=>"SmartScan"===t.job)))))}getSmartScanStatus(){return s("app.smartScan.GetStatus")}setBrandedComponents(t){this._brandedComponents=t}getBrandedComponent(t){if(t)return this._brandedComponents[t]}hasSmartScanReport(){return this.getSmartScanStatus().then((t=>"scan_report"===t.statusPrimary))}_getScansStoredAsDone(){return localStorage.scansDone&&JSON.parse(localStorage.scansDone)||[]}_onScanDataChange(t){D.debug("_onScanDataChange",t),this.getScans().then((e=>{e.find(((n,s)=>{if(n.id===t.id)return e[s]=t,D.debug("..scan list updated",e),this.emit("scans",e),!0}))}))}getHistory(){return this._getHistoryPromise||(this._getHistoryPromise=s("app.scanViruses.GetHistory").then((t=>(this._getHistoryPromise=null,t.forEach((t=>{t.startTimeMs=1e3*t.startTime})),t)))),this._getHistoryPromise}hasVerdictIssue(t){if(!t)return;const e=t.found_resolved,n=t.found_unresolved,s=t.found_resolved_with_error;return e||n||s}dontShowResultAfterRestart(t,e){return s("app.scanViruses.Skip",{scanId:t,session:e})}setIsTheOne(){this._isTheOne=!0}getIsTheOne(){return this._isTheOne}};const I=/^\d+(px|%)?$/,P=/^\d+$/i,E=t.extend({template:{v:3,t:[{t:7,e:"span",a:{class:"smartTextTrim__container",style:["width: ",{t:2,r:"width"}]},f:[{t:7,e:"span",a:{"data-content-start":[{t:2,r:"textPartA"}],"data-content-end":[{t:2,r:"textPartB"}]}}]}]},css:".smartTextTrim__container {\n  display: inline-block;\n  position: relative;\n  top: 5px;\n  direction: ltr;\n}\n.smartTextTrim__container span:before,\n.smartTextTrim__container span:after {\n  display: inline-block;\n  max-width: 50%;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.smartTextTrim__container span:before {\n  content: attr(data-content-start);\n  text-overflow: clip;\n}\n.smartTextTrim__container span:after {\n  content: attr(data-content-end);\n  direction: rtl;\n  unicode-bidi: bidi-override;\n}\n",data:()=>({text:"",width:"",textPartA:"",textPartB:""}),oninit(){this.observe("text",((t,e)=>{t&&t!==e&&(this.set("text",t),this._splitText())})),this._setWidth()},_reverseText(t){if(t){const e=function(t){const e={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","<":">",">":"<"};return void 0!==e[t]?e[t]:t};return t.split("").reverse().map(e).join("")}return""},_splitText(){const t=this.get("text");try{const e=Math.floor(t.length/2);this.set({textPartA:t.substr(0,e),textPartB:this._reverseText(t.substr(e))})}catch(e){this.set({textPartA:"",textPartB:""}),console.error("SmartTextTrim failed on splitText, error:",e)}},_setWidth(){const t=this.get("width");I.test(t)?P.test(t)&&this.set("width",t+"px"):(console.info("SmartTextTrim was initialized with nonInteger value:",t,"setting to default value:","100%"),this.set("width","100%"))}});var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var R,L={exports:{}},O={},$={exports:{}};R=$,function(){var t={langLocaleCode:"bg",cultureCode:"bg",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"И",million:"А",billion:"M",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"лв.",code:"BGN"}};R.exports&&(R.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&this.numbro.culture("bg",t)}.call("undefined"==typeof window?N:window);var F={exports:{}};!function(t){(function(){var e={langLocaleCode:"cs-CZ",cultureCode:"cs-CZ",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"Kč",position:"postfix",spaceSeparated:!0,code:"CZK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(F);var M={exports:{}};!function(t){(function(){var e={langLocaleCode:"da-DK",cultureCode:"da-DK",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",position:"postfix",code:"DKK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(M);var W={exports:{}};!function(t){(function(){var e={langLocaleCode:"de-AT",cultureCode:"de-AT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(W);var B={exports:{}};!function(t){(function(){var e={langLocaleCode:"de-CH",cultureCode:"de-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix",code:"CHF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(B);var U={exports:{}};!function(t){(function(){var e={langLocaleCode:"de-DE",cultureCode:"de-DE",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0,code:"EUR"},defaults:{currencyFormat:",4"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(U);var H={exports:{}};!function(t){(function(){var e={langLocaleCode:"de-LI",cultureCode:"de-LI",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix",code:"CHF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(H);var j={exports:{}};!function(t){(function(){var e={langLocaleCode:"el",cultureCode:"el",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"χ",million:"ε",billion:"δ",trillion:"τ"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("el",e)}).call("undefined"==typeof window?N:window)}(j);var G={exports:{}};!function(t){(function(){var e={langLocaleCode:"en-AU",cultureCode:"en-AU",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"AUD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(G);var V={exports:{}};!function(t){(function(){var e={langLocaleCode:"en-GB",cultureCode:"en-GB",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"£",position:"prefix",code:"GBP"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(V);var K={exports:{}};!function(t){(function(){var e={langLocaleCode:"en-IE",cultureCode:"en-IE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"€",code:"EUR"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("en-gb",e)}).call("undefined"==typeof window?N:window)}(K);var z={exports:{}};!function(t){(function(){var e={langLocaleCode:"en-NZ",cultureCode:"en-NZ",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"NZD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(z);var q={exports:{}};!function(t){(function(){var e={langLocaleCode:"en-ZA",cultureCode:"en-ZA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"R",position:"prefix",code:"ZAR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(q);var Z={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-AR",cultureCode:"es-AR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"postfix",code:"ARS"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Z);var J={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-CL",cultureCode:"es-CL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"prefix",code:"CLP"},defaults:{currencyFormat:"$0,0"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(J);var Y={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-CO",cultureCode:"es-CO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Y);var X={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-CR",cultureCode:"es-CR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"₡",position:"postfix",code:"CRC"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(X);var Q={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-ES",cultureCode:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Q);var tt={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-MX",cultureCode:"es-MX",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"postfix",code:"MXN"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(tt);var et={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-NI",cultureCode:"es-NI",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"C$",position:"prefix",code:"NIO"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(et);var nt={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-PE",cultureCode:"es-PE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"S/.",position:"prefix",code:"PEN"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(nt);var st={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-PR",cultureCode:"es-PR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"prefix",code:"USD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(st);var at={exports:{}};!function(t){(function(){var e={langLocaleCode:"es-SV",cultureCode:"es-SV",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===e||3===e?"er":2===e?"do":7===e||0===e?"mo":8===e?"vo":9===e?"no":"to"},currency:{symbol:"$",position:"prefix",code:"SVC"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(at);var it={exports:{}};!function(t){(function(){var e={langLocaleCode:"et-EE",cultureCode:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(it);var ot={exports:{}};!function(t){(function(){var e={langLocaleCode:"fa-IR",cultureCode:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼",code:"IRR"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(ot);var ct={exports:{}};!function(t){(function(){var e={langLocaleCode:"fi-FI",cultureCode:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(ct);var rt={exports:{}};!function(t){(function(){var e={langLocaleCode:"fil-PH",cultureCode:"fil-PH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"₱",code:"PHP"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(rt);var lt={exports:{}};!function(t){(function(){var e={langLocaleCode:"fr-CA",cultureCode:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(t){return 1===t?"er":"ème"},currency:{symbol:"$",position:"postfix",spaceSeparated:!0,code:"USD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(lt);var dt={exports:{}};!function(t){(function(){var e={langLocaleCode:"fr-CH",cultureCode:"fr-CH",delimiters:{thousands:" ",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){return 1===t?"er":"ème"},currency:{symbol:"CHF",position:"postfix",code:"CHF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(dt);var ut={exports:{}};!function(t){(function(){var e={langLocaleCode:"fr-FR",cultureCode:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){return 1===t?"er":"ème"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(ut);var ht={exports:{}};!function(t){(function(){var e={langLocaleCode:"he-IL",cultureCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix",code:"ILS"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"₪ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"₪ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(ht);var pt={exports:{}};!function(t){(function(){var e={langLocaleCode:"hu-HU",cultureCode:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft",position:"postfix",code:"HUF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(pt);var ft={exports:{}};!function(t){(function(){var e={langLocaleCode:"id",cultureCode:"id",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"r",million:"j",billion:"m",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Rp",code:"IDR"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("id",e)}).call("undefined"==typeof window?N:window)}(ft);var mt={exports:{}};!function(t){(function(){var e={langLocaleCode:"it-CH",cultureCode:"it-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"°"},currency:{symbol:"CHF",code:"CHF"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("it-CH",e)}).call("undefined"==typeof window?N:window)}(mt);var gt={exports:{}};!function(t){(function(){var e={langLocaleCode:"it-IT",cultureCode:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(gt);var bt={exports:{}};!function(t){(function(){var e={langLocaleCode:"ja-JP",cultureCode:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix",code:"JPY"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(bt);var wt={exports:{}};!function(t){(function(){var e={langLocaleCode:"ko-KR",cultureCode:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩",code:"KPW"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(wt);var vt={exports:{}};!function(t){(function(){var e={langLocaleCode:"lv-LV",cultureCode:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(vt);var _t={exports:{}};!function(t){(function(){var e={langLocaleCode:"nb-NO",cultureCode:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"t"},currency:{symbol:"kr",position:"postfix",code:"NOK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(_t);var St={exports:{}};!function(t){(function(){var e={langLocaleCode:"nb",cultureCode:"nb",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",code:"NOK"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("nb",e)}).call("undefined"==typeof window?N:window)}(St);var yt={exports:{}};!function(t){(function(){var e={langLocaleCode:"nl-BE",cultureCode:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(t){var e=t%100;return 0!==t&&e<=1||8===e||e>=20?"ste":"de"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(yt);var xt={exports:{}};!function(t){(function(){var e={langLocaleCode:"nl-NL",cultureCode:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(t){var e=t%100;return 0!==t&&e<=1||8===e||e>=20?"ste":"de"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(xt);var kt={exports:{}};!function(t){var e;e={langLocaleCode:"nn",cultureCode:"nn",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",code:"NOK"}},t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.language&&window.numbro.language("nn",e)}(kt);var Tt={exports:{}};!function(t){(function(){var e={langLocaleCode:"pl-PL",cultureCode:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" zł",position:"postfix",code:"PLN"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Tt);var Ct={exports:{}};!function(t){(function(){var e={langLocaleCode:"pt-BR",cultureCode:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix",code:"BRL"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Ct);var Dt={exports:{}};!function(t){(function(){var e={langLocaleCode:"pt-PT",cultureCode:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Dt);var At={exports:{}};!function(t){(function(){var e={langLocaleCode:"ro-RO",cultureCode:"ro-RO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mii",million:"mil",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" lei",position:"postfix",code:"RON"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(At);var It={exports:{}};!function(t){(function(){var e={langLocaleCode:"ro",cultureCode:"ro",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mie",million:"mln",billion:"mld",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RON",code:"RON"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("ro",e)}).call("undefined"==typeof window?N:window)}(It);var Pt={exports:{}};!function(t){(function(){var e={langLocaleCode:"ru-RU",cultureCode:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб.",position:"postfix",code:"RUB"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Pt);var Et={exports:{}};!function(t){(function(){var e={langLocaleCode:"ru-UA",cultureCode:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴",position:"postfix",code:"UAH"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Et);var Nt={exports:{}};!function(t){(function(){var e={langLocaleCode:"sk-SK",cultureCode:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0,code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Nt);var Rt={exports:{}};!function(t){var e;e={langLocaleCode:"sl",cultureCode:"sl",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}},t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sl",e)}(Rt);var Lt={exports:{}};!function(t){var e;e={langLocaleCode:"sr-Cyrl-RS",cultureCode:"sr-Cyrl-RS",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RSD",code:"RSD"}},t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sr-Cyrl-RS",e)}(Lt);var Ot={exports:{}};!function(t){(function(){var e={langLocaleCode:"sv-SE",cultureCode:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},currency:{symbol:"kr",position:"postfix",code:"SEK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Ot);var $t={exports:{}};!function(t){(function(){var e={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix",code:"THB"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}($t);var Ft={exports:{}};!function(t){(function(){var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n={langLocaleCode:"tr-TR",cultureCode:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(t){if(0===t)return"'ıncı";var n=t%10;return e[n]||e[t%100-n]||e[t>=100?100:null]},currency:{symbol:"₺",position:"postfix",code:"TRY"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=n),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(n.cultureCode,n)}).call("undefined"==typeof window?N:window)}(Ft);var Mt={exports:{}};!function(t){(function(){var e={langLocaleCode:"uk-UA",cultureCode:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴",position:"postfix",code:"UAH"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Mt);var Wt={exports:{}};!function(t){(function(){var e={langLocaleCode:"zh-CN",cultureCode:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix",code:"CNY"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(Wt);var Bt={exports:{}};!function(t){var e;e={langLocaleCode:"zh-MO",cultureCode:"zh-MO",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"MOP",code:"MOP"}},t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-MO",e)}(Bt);var Ut={exports:{}};!function(t){(function(){var e={langLocaleCode:"zh-SG",cultureCode:"zh-SG",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"$",code:"SGD"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-SG",e)}).call("undefined"==typeof window?N:window)}(Ut);var Ht,jt={exports:{}};!function(t){(function(){var e={langLocaleCode:"zh-TW",cultureCode:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$",code:"TWD"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?N:window)}(jt),(Ht=O).bg=$.exports,Ht["cs-CZ"]=F.exports,Ht["da-DK"]=M.exports,Ht["de-AT"]=W.exports,Ht["de-CH"]=B.exports,Ht["de-DE"]=U.exports,Ht["de-LI"]=H.exports,Ht.el=j.exports,Ht["en-AU"]=G.exports,Ht["en-GB"]=V.exports,Ht["en-IE"]=K.exports,Ht["en-NZ"]=z.exports,Ht["en-ZA"]=q.exports,Ht["es-AR"]=Z.exports,Ht["es-CL"]=J.exports,Ht["es-CO"]=Y.exports,Ht["es-CR"]=X.exports,Ht["es-ES"]=Q.exports,Ht["es-MX"]=tt.exports,Ht["es-NI"]=et.exports,Ht["es-PE"]=nt.exports,Ht["es-PR"]=st.exports,Ht["es-SV"]=at.exports,Ht["et-EE"]=it.exports,Ht["fa-IR"]=ot.exports,Ht["fi-FI"]=ct.exports,Ht["fil-PH"]=rt.exports,Ht["fr-CA"]=lt.exports,Ht["fr-CH"]=dt.exports,Ht["fr-FR"]=ut.exports,Ht["he-IL"]=ht.exports,Ht["hu-HU"]=pt.exports,Ht.id=ft.exports,Ht["it-CH"]=mt.exports,Ht["it-IT"]=gt.exports,Ht["ja-JP"]=bt.exports,Ht["ko-KR"]=wt.exports,Ht["lv-LV"]=vt.exports,Ht["nb-NO"]=_t.exports,Ht.nb=St.exports,Ht["nl-BE"]=yt.exports,Ht["nl-NL"]=xt.exports,Ht.nn=kt.exports,Ht["pl-PL"]=Tt.exports,Ht["pt-BR"]=Ct.exports,Ht["pt-PT"]=Dt.exports,Ht["ro-RO"]=At.exports,Ht.ro=It.exports,Ht["ru-RU"]=Pt.exports,Ht["ru-UA"]=Et.exports,Ht["sk-SK"]=Nt.exports,Ht.sl=Rt.exports,Ht["sr-Cyrl-RS"]=Lt.exports,Ht["sv-SE"]=Ot.exports,Ht["th-TH"]=$t.exports,Ht["tr-TR"]=Ft.exports,Ht["uk-UA"]=Mt.exports,Ht["zh-CN"]=Wt.exports,Ht["zh-MO"]=Bt.exports,Ht["zh-SG"]=Ut.exports,Ht["zh-TW"]=jt.exports,function(t){(function(){var e,n=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],a={general:{scale:1024,suffixes:s,marker:"bd"},binary:{scale:1024,suffixes:n,marker:"b"},decimal:{scale:1e3,suffixes:s,marker:"d"}},i=[a.general,a.binary,a.decimal],o={},c=o,r="en-US",l=null,d="0,0",u="0$",h=t.exports;function p(t){this._value=t}function f(t){return 0===t?1:Math.floor(Math.log(Math.abs(t))/Math.LN10)+1}function m(t){var e,n="";for(e=0;e<t;e++)n+="0";return n}function g(t,e,n,s){var a,i,o=Math.pow(10,e);return t.toString().indexOf("e")>-1?"-"===(i=function(t,e){var n,s,a,i,o,c;return n=(c=t.toString()).split("e")[0],i=c.split("e")[1],s=n.split(".")[0],a=n.split(".")[1]||"",+i>0?c=s+a+m(i-a.length):(o=+s<0?"-0":"0",e>0&&(o+="."),c=o+(m(-1*i-1)+Math.abs(s)+a).substr(0,e)),+i>0&&e>0&&(c+="."+m(e)),c}(t,e)).charAt(0)&&+i>=0&&(i=i.substr(1)):i=(n(t+"e+"+e)/o).toFixed(e),s&&(a=new RegExp("0{1,"+s+"}$"),i=i.replace(a,"")),i}function b(t,e,n){var s=e.replace(/\{[^\{\}]*\}/g,"");return s.indexOf("$")>-1?v(t,o[r].currency.symbol,e,n):s.indexOf("%")>-1?function(t,e,n){var s,a="",i=100*t._value;e.indexOf(" %")>-1?(a=" ",e=e.replace(" %","")):e=e.replace("%","");(s=S(i,e,n)).indexOf(")")>-1?((s=s.split("")).splice(-1,0,a+"%"),s=s.join("")):s=s+a+"%";return s}(t,e,n):s.indexOf(":")>-1?function(t){var e=Math.floor(t._value/60/60),n=Math.floor((t._value-60*e*60)/60),s=Math.round(t._value-60*e*60-60*n);return e+":"+(n<10?"0"+n:n)+":"+(s<10?"0"+s:s)}(t):S(t._value,e,n)}function w(t,e){var a,i,c,d,u,h=e,p=!1;if(e.indexOf(":")>-1)t._value=function(t){var e=t.split(":"),n=0;3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1]));return Number(n)}(e);else if(e===l)t._value=0;else{for("."!==o[r].delimiters.decimal&&(e=e.replace(/\./g,"").replace(o[r].delimiters.decimal,".")),a=new RegExp("[^a-zA-Z]"+o[r].abbreviations.thousand+"(?:\\)|(\\"+o[r].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+o[r].abbreviations.million+"(?:\\)|(\\"+o[r].currency.symbol+")?(?:\\))?)?$"),c=new RegExp("[^a-zA-Z]"+o[r].abbreviations.billion+"(?:\\)|(\\"+o[r].currency.symbol+")?(?:\\))?)?$"),d=new RegExp("[^a-zA-Z]"+o[r].abbreviations.trillion+"(?:\\)|(\\"+o[r].currency.symbol+")?(?:\\))?)?$"),u=1;u<n.length&&!p;++u)e.indexOf(n[u])>-1?p=Math.pow(1024,u):e.indexOf(s[u])>-1&&(p=Math.pow(1e3,u));var f=e.replace(/[^0-9\.]+/g,"");""===f?t._value=NaN:(t._value=(p||1)*(h.match(a)?Math.pow(10,3):1)*(h.match(i)?Math.pow(10,6):1)*(h.match(c)?Math.pow(10,9):1)*(h.match(d)?Math.pow(10,12):1)*(e.indexOf("%")>-1?.01:1)*((e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1)*Number(f),t._value=p?Math.ceil(t._value):t._value)}return t._value}function v(t,e,n,s){var a,i,c=n,l=c.indexOf("$"),d=c.indexOf("("),u=c.indexOf("+"),h=c.indexOf("-"),p="",f="";if(-1===c.indexOf("$")?"infix"===o[r].currency.position?(f=e,o[r].currency.spaceSeparated&&(f=" "+f+" ")):o[r].currency.spaceSeparated&&(p=" "):c.indexOf(" $")>-1?(p=" ",c=c.replace(" $","")):c.indexOf("$ ")>-1?(p=" ",c=c.replace("$ ","")):c=c.replace("$",""),i=S(t._value,c,s,f),-1===n.indexOf("$"))switch(o[r].currency.position){case"postfix":i.indexOf(")")>-1?((i=i.split("")).splice(-1,0,p+e),i=i.join("")):i=i+p+e;break;case"infix":break;case"prefix":i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),a=Math.max(d,h)+1,i.splice(a,0,e+p),i=i.join("")):i=e+p+i;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else l<=1?i.indexOf("(")>-1||i.indexOf("+")>-1||i.indexOf("-")>-1?(a=1,(l<d||l<u||l<h)&&(a=0),(i=i.split("")).splice(a,0,e+p),i=i.join("")):i=e+p+i:i.indexOf(")")>-1?((i=i.split("")).splice(-1,0,p+e),i=i.join("")):i=i+p+e;return i}function _(t,e,n){var s,a,i,o=e[0],c=Math.abs(t);if(c>=n){for(s=1;s<e.length;++s)if(a=Math.pow(n,s),i=Math.pow(n,s+1),c>=a&&c<i){o=e[s],t/=a;break}o===e[0]&&(t/=Math.pow(n,e.length-1),o=e[e.length-1])}return{value:t,suffix:o}}function S(t,e,n,s){var a,c,d,u,h,p,b,w,v,S,y,x,k,T,C,D=!1,A=!1,I=!1,P="",E=!1,N=!1,R=!1,L=!1,O=!1,$="",F="",M=Math.abs(t),W="",B=!1,U=!1;if(0===t&&null!==l)return l;if(!isFinite(t))return""+t;if(0===e.indexOf("{")){var H=e.indexOf("}");if(-1===H)throw Error('Format should also contain a "}"');S=e.slice(1,H),e=e.slice(H+1)}else S="";if(e.indexOf("}")===e.length-1&&e.length){var j=e.indexOf("{");if(-1===j)throw Error('Format should also contain a "{"');y=e.slice(j+1,-1),e=e.slice(0,j+1)}else y="";for(k=null===(C=-1===e.indexOf(".")?e.match(/([0-9]+).*/):e.match(/([0-9]+)\..*/))?-1:C[1].length,-1!==e.indexOf("-")&&(B=!0),e.indexOf("(")>-1?(D=!0,e=e.slice(1,-1)):e.indexOf("+")>-1&&(A=!0,e=e.replace(/\+/g,"")),e.indexOf("a")>-1&&(w=e.split(".")[0].match(/[0-9]+/g)||["0"],w=parseInt(w[0],10),E=e.indexOf("aK")>=0,N=e.indexOf("aM")>=0,R=e.indexOf("aB")>=0,L=e.indexOf("aT")>=0,O=E||N||R||L,e.indexOf(" a")>-1?(P=" ",e=e.replace(" a","")):e=e.replace("a",""),h=0===(h=(d=f(t))%3)?3:h,w&&0!==M&&(p=3*~~((Math.min(w,d)-h)/3),M/=Math.pow(10,p)),d!==w&&(M>=Math.pow(10,12)&&!O||L?(P+=o[r].abbreviations.trillion,t/=Math.pow(10,12)):M<Math.pow(10,12)&&M>=Math.pow(10,9)&&!O||R?(P+=o[r].abbreviations.billion,t/=Math.pow(10,9)):M<Math.pow(10,9)&&M>=Math.pow(10,6)&&!O||N?(P+=o[r].abbreviations.million,t/=Math.pow(10,6)):(M<Math.pow(10,6)&&M>=Math.pow(10,3)&&!O||E)&&(P+=o[r].abbreviations.thousand,t/=Math.pow(10,3))),u=f(t),w&&u<w&&-1===e.indexOf(".")&&(e+="[.]",e+=m(w-u))),T=0;T<i.length;++T)if(a=i[T],e.indexOf(a.marker)>-1){e.indexOf(" "+a.marker)>-1&&($=" "),e=e.replace($+a.marker,""),t=(c=_(t,a.suffixes,a.scale)).value,$+=c.suffix;break}if(e.indexOf("o")>-1&&(e.indexOf(" o")>-1?(F=" ",e=e.replace(" o","")):e=e.replace("o",""),o[r].ordinal&&(F+=o[r].ordinal(t))),e.indexOf("[.]")>-1&&(I=!0,e=e.replace("[.]",".")),v=e.split(".")[1],x=e.indexOf(","),v){var G=[];if(-1!==v.indexOf("*")?(G=(W=t.toString()).split(".")).length>1&&(W=g(t,G[1].length,n)):W=v.indexOf("[")>-1?g(t,(v=(v=v.replace("]","")).split("["))[0].length+v[1].length,n,v[1].length):g(t,v.length,n),b=(G=W.split("."))[0],G.length>1&&G[1].length)W=(s?P+s:o[r].delimiters.decimal)+G[1];else W="";I&&0===Number(W.slice(1))&&(W="")}else b=g(t,0,n);return b.indexOf("-")>-1&&(b=b.slice(1),U=!0),b.length<k&&(b=m(k-b.length)+b),x>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+o[r].delimiters.thousands)),0===e.indexOf(".")&&(b=""),S+(e.indexOf("(")<e.indexOf("-")?(D&&U?"(":"")+(B&&U||!D&&U?"-":""):(B&&U||!D&&U?"-":"")+(D&&U?"(":""))+(!U&&A&&0!==t?"+":"")+b+W+(F||"")+(P&&!s?P:"")+($||"")+(D&&U?")":"")+y}function y(t,e){o[t]=e}function x(t){r=t;var n=o[t].defaults;n&&n.format&&e.defaultFormat(n.format),n&&n.currencyFormat&&e.defaultCurrencyFormat(n.currencyFormat)}function k(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)}function T(){var t=Array.prototype.slice.call(arguments);return t.reduce((function(t,e){var n=k(t),s=k(e);return n>s?n:s}),-1/0)}(e=function(t){return t=e.isNumbro(t)?t.value():"string"==typeof t||"number"==typeof t?e.fn.unformat(t):NaN,new p(Number(t))}).version="1.11.1",e.isNumbro=function(t){return t instanceof p},e.setLanguage=function(t,e){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var n=t,s=t.split("-")[0],a=null;c[n]||(Object.keys(c).forEach((function(t){a||t.split("-")[0]!==s||(a=t)})),n=a||e||"en-US"),x(n)},e.setCulture=function(t,e){var n=t,s=t.split("-")[1],a=null;o[n]||(s&&Object.keys(o).forEach((function(t){a||t.split("-")[1]!==s||(a=t)})),n=a||e||"en-US"),x(n)},e.language=function(t,n){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!t)return r;if(t&&!n){if(!c[t])throw new Error("Unknown language : "+t);x(t)}return!n&&c[t]||y(t,n),e},e.culture=function(t,n){if(!t)return r;if(t&&!n){if(!o[t])throw new Error("Unknown culture : "+t);x(t)}return!n&&o[t]||y(t,n),e},e.languageData=function(t){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!t)return c[r];if(!c[t])throw new Error("Unknown language : "+t);return c[t]},e.cultureData=function(t){if(!t)return o[r];if(!o[t])throw new Error("Unknown culture : "+t);return o[t]},e.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),e.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),c},e.cultures=function(){return o},e.zeroFormat=function(t){l="string"==typeof t?t:null},e.defaultFormat=function(t){d="string"==typeof t?t:"0.0"},e.defaultCurrencyFormat=function(t){u="string"==typeof t?t:"0$"},e.validate=function(t,n){var s,a,i,o,c,r,l,d;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",t)),(t=(t=t.trim()).replace(/^[+-]?/,"")).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.cultureData(n)}catch(u){l=e.cultureData(e.culture())}return i=l.currency.symbol,c=l.abbreviations,s=l.delimiters.decimal,a="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,(null===(d=t.match(/^[^\d\.\,]+/))||(t=t.substr(1),d[0]===i))&&((null===(d=t.match(/[^\d]+$/))||(t=t.slice(0,-1),d[0]===c.thousand||d[0]===c.million||d[0]===c.billion||d[0]===c.trillion))&&(r=new RegExp(a+"{2}"),!t.match(/[^\d.,]/g)&&(!((o=t.split(s)).length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(r):""===o[0]?!o[0].match(r)&&!!o[1].match(/^\d+$/):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(r)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(r)&&!!o[1].match(/^\d+$/)))))},e.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),e.loadCulturesInNode()},e.loadCulturesInNode=function(){var t=O;for(var n in t)n&&e.culture(n,t[n])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(t,e){if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,s,a=this.length>>>0,i=!1;for(1<arguments.length&&(s=e,i=!0),n=0;a>n;++n)this.hasOwnProperty(n)&&(i?s=t(s,this[n],n,this):(s=this[n],i=!0));if(!i)throw new TypeError("Reduce of empty array with no initial value");return s}),e.fn=p.prototype={clone:function(){return e(this)},format:function(t,e){return b(this,t||d,void 0!==e?e:Math.round)},formatCurrency:function(t,e){return v(this,o[r].currency.symbol,t||u,void 0!==e?e:Math.round)},formatForeignCurrency:function(t,e,n){return function(t,e,n,s){return v(t,e,n,s)}(this,t,e||u,void 0!==n?n:Math.round)},unformat:function(t){if("number"==typeof t)return t;if("string"==typeof t){var e=w(this,t);return isNaN(e)?void 0:e}},binaryByteUnits:function(){return _(this._value,a.binary.suffixes,a.binary.scale).suffix},byteUnits:function(){return _(this._value,a.general.suffixes,a.general.scale).suffix},decimalByteUnits:function(){return _(this._value,a.decimal.suffixes,a.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(t){return this._value=Number(t),this},add:function(t){var e=T.call(null,this._value,t);return this._value=[this._value,t].reduce((function(t,n){return t+e*n}),0)/e,this},subtract:function(t){var e=T.call(null,this._value,t);return this._value=[t].reduce((function(t,n){return t-e*n}),this._value*e)/e,this},multiply:function(t){return this._value=[this._value,t].reduce((function(t,e){var n=T(t,e),s=t*n;return s*=e*n,s/=n*n}),1),this},divide:function(t){return this._value=[this._value,t].reduce((function(t,e){var n=T(t,e);return t*n/(e*n)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},"undefined"!=typeof process&&void 0===process.browser&&process.title&&(-1!==process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&e.loadCulturesInNode(),h?t.exports=e:"undefined"==typeof ender&&(this.numbro=e)}).call("undefined"==typeof window?N:window)}(L);const Gt=L.exports;function Vt(t){return t&&Object.keys(t).length}function Kt(t){const e=1e3*t.launchTime,n=t.days;let s,a;switch(t.type){case"Once":a=v("scans.schedule.once",_(e).format("L"),_(e).format("LT"));break;case"Daily":if(n&&n.length)if(7===n.length)a=v("scans.schedule.daily",_.utc(e).format("LT"));else{const t=n.map((function(t){return _().isoWeekday(t-1).format("dd")}));a=v("scans.schedule.specificDays",t.join(", "),_.utc(e).format("LT"))}break;case"Weekly":s=parseInt(e/864e5),a=v("scans.schedule.weekly",_.weekdays(!0,s),_.utc(e).format("LT"));break;case"Monthly":a=v("scans.schedule.monthly",_.utc(e).format("Do"),_.utc(e).format("LT"))}return a}const zt=Object.freeze({__proto__:null,isScanScheduled:Vt,getScanScheduledTimeString:Kt}),qt=f.createLogger("scans.customScans");const Zt={ThreatsList:function(e){return t.extend({template:e,twoway:!1,data:()=>({scanId:null,sessionId:null,showActions:null,cta:null,preselectAll:null,loading:!0,threats:[],selectedThreatsIds:[],selectableThreats:[],resolving:!1,allResolved:!1,progress:0,THREAT_ACTIONS:y}),computed:{allResolved:function(){return!this.get("resolving")&&this.get("threats").length>0&&0===this.get("selectableThreats").length},resolvedWithError:function(){return this.get("threats").filter((t=>"err"===t.statusCode)).length},selectableThreatsCount:function(){let t;return t=this.get("allResolved")?this.get("threats").length:this.get("selectableThreats").length,t}},oninit(){A.getScan(this.get("scanId")).then((t=>{this._teardowning||(this._scan=t,this.loadThreats())})),this._setListeners()},_updateData(){this.fire("data",{loading:this.get("loading"),threatsCount:this.get("selectableThreatsCount"),threatsCountTotal:this.get("threats").length,allResolved:this.get("allResolved"),resolvedWithError:this.get("resolvedWithError")})},_setListeners(){this.on("selectAllThreats",((t,e)=>{const n=this.get("selectableThreats");if(this.set("selectedThreatsIds",[]),e||t.node.checked){const t=n.map((t=>t.id));this.set("selectedThreatsIds",t)}this._updateData()})),this.on("selectThreat",((t,e)=>{const n=this.get("selectedThreatsIds");t.node.checked?n.includes(e.id)||n.push(e.id):n.splice(n.indexOf(e.id),1),this.set("selectedThreatsIds",n),this._updateData()})),this.deselectAll=function(){this.set("selectedThreatsIds",[]),this._updateData()},this._deselectAllBind=this.deselectAll.bind(this),window.addEventListener("kin-deselectAll",this._deselectAllBind),this.on("doAction",((t,e)=>{this.set("resolving",!0);const n=this.get("scanId"),s=this.get("sessionId"),a=this.get("selectedThreatsIds"),i=this.get("threats"),o=[];A.dontShowResultAfterRestart(n,s).catch((()=>{})),i.forEach((t=>{a.includes(t.id)?o.push({id:t.id,action:e}):""===t.statusCode&&o.push({id:t.id,action:"nothing"})})),setTimeout((()=>{this._scan.resolveThreats(s,o).then((()=>{this.set("progress",100),this._updateData(),setTimeout((()=>{this.set("preselectAll",!1),this.loadThreats()}),400)}))}),1e3),this._updateData()}))},_isThreatSelectable:t=>"ok"!==t.statusCode&&"err"!==t.statusCode&&"warning"!==t.statusCode,loadThreats(){return this._scan.getThreats(this.get("sessionId")).then((t=>{const e=t.filter((t=>this._isThreatSelectable(t))),n=this.get("preselectAll")?e.map((t=>t.id)):[];this.set({threats:t,selectableThreats:e,selectedThreatsIds:n,resolving:!1,loading:!1,progress:0}),this._updateData()})).catch((t=>{console.error("Getting threats failed; error: "+t)}))},onteardown(){this._teardowning=!0,window.removeEventListener("kin-deselectAll",this._deselectAllBind),this._deselectAllBind=void 0}})}({v:3,t:[{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"kin-table",a:{datalength:[{t:2,r:"threats.length"}],selecteditems:[{t:2,x:{r:["selectedThreatsIds.length","threats.length"],s:"_0||_1"}}],inactive:[{t:2,r:"resolving"}],loading:[{t:2,r:"loading"}]},f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"kin_table__header -threatslist"},f:[{t:7,e:"input",v:{click:"selectAllThreats"},a:{type:"checkbox",class:["checkbox ",{t:4,f:["-checked"],n:50,x:{r:["allResolved","selectableThreatsCount","selectedThreatsIds.length"],s:"_0||(_1===_2&&_2>0)"}}],disabled:[{t:2,x:{r:["selectableThreatsCount.length","allResolved"],s:"_0===0||_1"}}],checked:[{t:2,x:{r:["allResolved","selectedThreatsIds.length"],s:"_0||_1>0"}}],title:[{t:2,x:{r:["nls"],s:'_0("global.selectAllItems")'}}]},m:[{t:4,f:['aria-checked="mixed"'],n:50,x:{r:["allResolved","selectableThreatsCount","selectedThreatsIds.length"],s:"!_0&&_1!==_2&&_2>0"}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("scans.threatName")'}}]}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("viruschest.tableHeader.infectedFile")'}}]}," ",{t:7,e:"div"}]}," ",{t:4,f:[{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"div",a:{role:"row",class:["kin_table__row -threatslist ",{t:2,x:{r:["selectedThreatsIds","./id","./statusCode"],s:'_0.includes(_1)||_2==="ok"?"-selected":""'}}," ",{t:2,x:{r:["./statusCode"],s:'_0==="err"||_0==="warning"?"-disabled":""'}}],"data-test":["table-row-",{t:2,r:"@index"}],"aria-rowindex":[{t:2,r:"@index"}]},f:[{t:7,e:"input",a:{class:"checkbox",type:"checkbox",checked:[{t:2,x:{r:["selectedThreatsIds","./id","./statusCode"],s:'_0.includes(_1)||_2==="ok"'}}],disabled:[{t:2,x:{r:["./statusCode"],s:"!!_0"}}],id:["scn-threatlist-item-",{t:2,r:"@index"}],title:[{t:2,x:{r:["nls","global.selectItem"],s:"_0(_1)"}}]},v:{click:{n:"selectThreat",d:[{t:2,r:"."}]}}}," ",{t:7,e:"div",a:{class:"kin_table__icon"},f:[{t:7,e:"Icon",a:{name:"virus"}}," ",{t:4,f:[{t:7,e:"kin-icon",a:{class:"scn_sub-icon",name:"badge-critical",size:"16"}}],n:50,x:{r:["./statusCode"],s:'_0!=="ok"'}},{t:4,n:51,f:[{t:7,e:"kin-icon",a:{class:"scn_sub-icon",name:"badge-ok",size:"16"}}],x:{r:["./statusCode"],s:'_0!=="ok"'}}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"label",a:{slot:"tooltip-activator",for:["scn-threatlist-item-",{t:2,r:"@index"}],class:"g-ltr"},f:[{t:2,r:"./threat"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,r:"./threat"}]}]}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator",class:"g-ltr"},f:[{t:2,r:"./path"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,r:"./path"}]}]}]}," ",{t:7,e:"div",a:{class:"kin_table__end"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p text -secondary"},f:[{t:7,e:"span",a:{class:"spinner -tiny g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("global.resolvingEllipsis")'}}]}],n:50,x:{r:["resolving","selectedThreatsIds","./id"],s:"_0&&_1.includes(_2)"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["./statusCode"],s:'_0==="ok"'},f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator",class:"color-ok -text"},f:[{t:3,x:{r:["nls","./action"],s:'_0("detection.status."+_1)'}}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:3,x:{r:["nls","./action"],s:'_0("detection.status."+_1)'}}]}]}]},{t:4,n:50,x:{r:["./statusCode"],s:'(!(_0==="ok"))&&(_0==="err"||_0==="warning")'},f:[" ",{t:7,e:"kin-tooltip",f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-action-info",size:"20",id:["error-tooltip-",{t:2,r:"@index"}]}}]}," ",{t:7,e:"div",a:{slot:"tooltip",class:"p -small"},f:[{t:2,x:{r:["nls"],s:'_0("detection.status.resolved.error.tooltip")'}}]}]}]}],x:{r:["resolving","selectedThreatsIds","./id"],s:"_0&&_1.includes(_2)"}}]}]}],n:52,r:"threats"}]}],n:50,x:{r:["threats.length"],s:"_0>0"}}]}]}," ",{t:4,f:[{t:7,e:"div",a:{slot:"view-actions"},f:[{t:8,r:"actions"}]}],n:50,x:{r:["loading"],s:"!_0"}}],p:{actions:[{t:4,f:[{t:7,e:"div",f:[{t:7,e:"Progress",a:{asymptotic:"true",percentage:[{t:2,r:"progress"}],cssCls:"kin_actions__progress"}}," ",{t:7,e:"h4",a:{class:"h4"},f:[{t:3,x:{r:["nls","selectedThreatsIds.length"],s:'_0("scans.ss2.resolveInProgress.desc",_1)'}}]}]}],n:50,r:"resolving"},{t:4,n:51,f:[{t:4,f:[{t:7,e:"div",f:[{t:7,e:"kin-button",v:{click:"threatsResolved"},a:{size:"small","data-test":"scn_progress_doneBtn"},f:[{t:2,x:{r:["nls","cta"],s:'_0(_1==="done"?"global.done":"global.next")'}}]}]}],n:50,r:"allResolved"},{t:4,n:51,f:[{t:4,n:50,x:{r:["selectedThreatsIds.length"],s:"_0===0"},f:[{t:7,e:"div",a:{class:"kin_actions__left"},f:[{t:3,x:{r:["nls","selectedThreatsIds.length"],s:'_0("viruschest.threatsSelected",_1)'}}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-button",v:{click:{n:"selectAllThreats",d:[{t:2,x:{r:[],s:"true"}}]}},a:{size:"small","data-test":"scn_table_mainCTA"},f:[{t:3,x:{r:["nls"],s:'_0("global.selectAll")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"scn_progress_skipBtn"},v:{click:"threatsSkip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}]},{t:4,n:50,x:{r:["selectedThreatsIds.length"],s:"!(_0===0)"},f:[" ",{t:7,e:"div",a:{class:"kin_actions__left"},f:[{t:3,x:{r:["nls","selectedThreatsIds.length"],s:'_0("viruschest.threatsSelected",_1)'}}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-button",v:{click:{n:"doAction",a:"auto"}},a:{size:"small","data-test":"scn_table_mainCTA"},f:[{t:2,x:{r:["nls","selectableThreatsCount","selectedThreatsIds.length"],s:'_0(_1===_2?"global.resolveAll":"global.resolveSelected")'}}]}," ",{t:4,f:[{t:7,e:"kin-dropdown",f:[{t:7,e:"div",a:{slot:"dropdown-activator"},f:[{t:7,e:"kin-button",a:{type:"secondary",size:"small",icononly:"true"},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-menu-more",size:"16"}}]}]}," ",{t:7,e:"div",f:[{t:4,f:[{t:4,f:[{t:7,e:"kin-dropdown-item",v:{click:{n:"doAction",d:[{t:2,r:"."}]}},a:{"data-test":["scn_action-",{t:2,r:"."}]},f:[{t:2,x:{r:["nls","."],s:'_0("scans.threatAction."+_1)'}}]}],n:50,x:{r:["."],s:'_0!=="auto"&&_0!="nothing"'}}],n:52,r:"THREAT_ACTIONS"}]}]}],n:50,r:"showActions"}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"scn_progress_skipBtn"},v:{click:"threatsSkip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],n:50,r:"showSkipOnSelected"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:3,x:{r:["nls"],s:'_0("global.escToDeselect")'}}]}],r:"showSkipOnSelected"}]}],r:"allResolved"}],r:"resolving"}]}}),Scan:function(e){return t.extend({template:e,css:".scn_shutdown {\n  position: absolute;\n  height: 36px;\n  display: flex;\n  align-content: center;\n  left: 40px;\n  bottom: -10px;\n}\n.scn_shutdown__label {\n  max-width: 250px;\n}\n.scn_page__title {\n  display: block;\n  max-width: 100%;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.scn_loader {\n  text-align: center;\n  position: absolute;\n  left: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  overflow: visible;\n  z-index: 2;\n  top: 0;\n  bottom: 128px;\n  right: 0;\n}\n.scn_loader__banner {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  height: 128px;\n}\n.scn_one-scan__progress {\n  margin-top: 7vh;\n  margin-bottom: 3rem;\n}\n",components:{SmartTextTrim:E},data:()=>({stripHtml:m.stripHtml,section:null,moduleId:null,scanId:null,sessionId:null,path:null,scanData:null,scanStatus:null,scanProgress:0,scanProblemsCount:0,showShutdownMachine:!1,shutdownMachine:!1,allResolved:!1,resolvedWithError:-1,threatsCount:-1,threatsLoaded:!1,scanStopped:!1,modalDialog:null}),computed:{pageStatus:function(){switch(this.get("scanStatus")){case T.RUNNING:case T.PAUSED:case T.SUSPENDED:return"scanning";case T.CANCELED:case T.DONE:case T.READY:case T.RESOLVING:return"report";default:return"load"}},kinPageHeading:function(){const t=this.get("pageStatus");if("report"===t){const t=this.get("threatsCount"),e=this.get("allResolved"),n=this.get("resolvedWithError");return e?n>0?v("scans.ss2.resolvedWithError.title",n):v("scans.ss2.allResolved.title"):t>0?v("scans.ss2.results.title",t):""}if("scanning"===t){const t=this.get("scanData");return"custom"===t.type?m.escapeHtml(t.label):v("scans.scanning.title",v("scans.scanType."+t.type))}return""},customBreadcrumbs:function(){return[{title:this.get("scanData.label")}]}},oninit(){this.components.ThreatsList=A.getBrandedComponent("ThreatsList"),this.listeners=[],this.on("Modal.close",(()=>{this.set("modalDialog",null)})),this.on("stopScan",(()=>{this.scan?this.scan.stopScan().then((()=>{this.set({scanStatus:T.CANCELED,scanStopped:!0}),this.update(),this.setTempShutDownMachine(!1),A.storeScanAsDone(this.scan.getId())})):this.goBack()})),this.on("done ThreatsList.threatsResolved",(()=>{const t=this.get("scanId"),e=this.get("sessionId");A.storeScanAsDone(t),A.dontShowResultAfterRestart(t,e).catch((()=>{})),this.fire("goBack")})),this.on("ThreatsList.threatsSkip",(()=>{this.set("modalDialog","confirmSkipModal")})),this.on("ThreatsList.data",(({threatsCount:t,loading:e,allResolved:n,resolvedWithError:s})=>{"report"===this.get("pageStatus")&&this.set({threatsCount:t,threatsLoaded:!e,allResolved:n,resolvedWithError:s})})),this.on("runScanAgain",(()=>{this.scan&&(this.set({scanStatus:T.RUNNING}),this.set({sessionId:null,scanProgress:0,scanProblemsCount:0,scanStopped:!1,threatsLoaded:!1,allResolved:!1,threatsCount:-1,resolvedWithError:-1}),this.startScan())})),this.on("shutdownMachineChanged",(t=>{this.setTempShutDownMachine(t.node.checked)})),this.on("backClick",this.backClicked.bind(this)),this.observe("pageStatus",(()=>{const t=this.get("scanStatus");if((t===T.DONE||t===T.CANCELED)&&this.firstReport){const e=t===T.DONE?"results":"stopped";a.view("Scans/scan/"+this.get("scanData.type")+"/"+e),a.event("Virus Scan","Number of Issues",this.get("scanData.type")+"-"+this.get("scanProblemsCount"),"Scans/scan/"+this.get("scanData.type")+"/"+e),this.firstReport=!1}})),this.initScan()},backClicked(){if("report"!==this.get("pageStatus")||this.get("scanStopped"))return void this.fire("goBack");const t=0===this.get("threatsCount"),e=this.get("allResolved");t||e?this.fire("done"):e||this.set("modalDialog","confirmLeaveModal")},initShutDownCheckbox(t){this.getTempShutDownMachine().then((e=>{void 0!==e&&"performance"!==this.get("scanId")?t?this.set({showShutdownMachine:!0,selected:e}):this.getShutDownMachine().then((n=>{this.set({showShutdownMachine:!0,selected:n||e}),n===e||t||this.setTempShutDownMachine(n)})).catch((()=>{this.set({showShutdownMachine:!0,selected:e})})):this.set({showShutdownMachine:!1})})).catch((()=>{this.set({showShutdownMachine:!1})}))},getTempShutDownMachine(){return s("app.settings.Get",{name:"avcfg://settings/***TaskGUID***/TempShutDownMachine",objectId:this.get("scanId")}).then((t=>{if(t)return!!+t.value}))},getShutDownMachine(){return s("app.settings.Get",{name:"avcfg://settings/***TaskGUID***/ShutDownMachine",objectId:this.get("scanId")}).then((t=>{if(t)return!!+t.value}))},setTempShutDownMachine(t){return s("app.settings.Set",{name:"avcfg://settings/***TaskGUID***/TempShutDownMachine",objectId:this.get("scanId"),value:t?"1":"0"})},initScan(){const t=this.get("scanId"),e=this.get("sessionId");A.getScan(t).then((n=>{this.scan=n,this.set("scanData",this.scan.getData()),this.listeners.push(this.scan.on("change",(t=>{t.status===T.DONE&&this.get("scanStatus")!==t.status&&this.playDone(),this.set({scanStatus:t.status,scanProgress:t.progress,scanProblemsCount:t.problemsCount,scanLastScanned:t.lastScanned})}))),this.scan.getStatus(e).then((n=>{this.initShutDownCheckbox(n.status===T.RUNNING),null!=e&&(e<n.sessionId||n.status!==T.RUNNING)?s("app.scanViruses.GetResult",{scanId:t,session:e}).then((t=>{this.set({scanStatus:T.DONE,scanProgress:100,scanProblemsCount:t.totalCount}),this.screenReady(),this.playDone()})).catch((t=>{console.error("Getting scan results failed; error: ",t),this.screenError(v("global.error"))})):(A.isScanStoredAsDone(n.scanId)||this.get("path")?(A.removeScanAsDone(n.scanId),n.status=T.READY):0===n.problemsCount&&(A.storeScanAsDone(n.scanId),[T.DONE,T.CANCELED].includes(n.status)&&this.skipScanResult(n.scanId)&&(n.status=T.READY)),null!=e&&n.sessionId===e&&n.status===T.READY&&(n.status=T.DONE,this.playDone()),n.status===T.READY||n.status===T.CANCELED?this.startScan():(this.firstReport=!0,this.scan.startPolling(e),this.screenReady()))})).catch((()=>{this.goBack()}))})).catch((e=>{console.error("Loading scan "+t+" failed; error:",e),this.goBack()}))},skipScanResult:t=>["{7C4966F0-D502-412D-A636-ACCC39A24BB2}","{C6156735-F7A2-4387-94A7-0479004A7310}"].includes(t),startScan(){this.scan&&(a.view("Scans/scan/"+this.get("scanData.type")+"/start"),this.scanStartTs=Date.now(),this.scan.startScan({path:this.get("path")}).then((t=>{this.set("sessionId",t),this.firstReport=!0,this.screenReady()})).catch((()=>{A.storeScanAsDone(this.get("scanId")),this.goBack()})))},goBack(){this.fire("goBack")},playDone(){(!this.scanStartTs||Date.now()-this.scanStartTs>1e4)&&(l.play("done"),delete this.scanStartTs)},onteardown(){this.scan&&this.scan.stopPolling(),this.listeners.forEach((t=>{t()}))}})}({v:3,t:[{t:7,e:"Screen",f:[{t:7,e:"Page",a:{heading:[{t:2,r:"kinPageHeading"}],cssCls:"-center-header",loading:[{t:2,x:{r:["pageStatus"],s:'_0==="load"'}}],backEvent:"true"},v:{backClick:"backClick"},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{section:[{t:2,r:"section"}],moduleId:[{t:2,r:"moduleId"}],customBreadcrumbs:[{t:2,r:"customBreadcrumbs"}]}}]}," ",{t:7,e:"div",a:{slot:"page-content",class:[{t:4,f:["kin_page-content -scan"],n:50,x:{r:["pageStatus"],s:'_0==="scanning"'}}]},f:[{t:4,f:[{t:8,r:"Progress"}],n:50,x:{r:["pageStatus"],s:'_0==="scanning"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["pageStatus"],s:'_0==="report"'},f:[{t:8,r:"ScanReport"}]}],x:{r:["pageStatus"],s:'_0==="scanning"'}}]}]}]}," ",{t:4,f:[{t:7,e:"Modal",a:{title:[{t:2,x:{r:["nls"],s:'_0("scans.leaveModal.title")'}}],subtitle:[{t:2,x:{r:["nls"],s:'_0("scans.leaveModal.desc")'}}]},f:[{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"kin-button",v:{click:"done"},a:{type:"critical"},f:[{t:2,x:{r:["nls"],s:'_0("scans.leaveModal.ignore")'}}]}," ",{t:7,e:"kin-button",a:{type:"secondary",class:" g-margin-left--5"},v:{click:"Modal.close"},f:[{t:2,x:{r:["nls"],s:'_0("scans.leaveModal.dontExit")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="confirmLeaveModal"'}},{t:4,f:[{t:7,e:"Modal",a:{title:[{t:2,x:{r:["nls"],s:'_0("scans.skipModal.title")'}}],subtitle:[{t:2,x:{r:["nls"],s:'_0("scans.skipModal.desc")'}}]},f:[{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"kin-button",v:{click:"done"},a:{type:"critical"},f:[{t:2,x:{r:["nls"],s:'_0("global.skip")'}}]}," ",{t:7,e:"kin-button",a:{class:"g-margin-left--5",type:"secondary"},v:{click:"Modal.close"},f:[{t:2,x:{r:["nls"],s:'_0("scans.skipModal.dontSkip")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="confirmSkipModal"'}}," "],p:{Progress:[{t:4,f:[{t:7,e:"div",a:{class:"kin_scan"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text -center"},f:[{t:4,f:[{t:2,x:{r:["nls","scanData.label"],s:'_0("scans.runningScan",_1)'}}],n:50,x:{r:["scanData.type"],s:'_0==="custom"||_0==="quick"||_0==="menu"'}},{t:4,n:51,f:[{t:2,x:{r:["nls","scanData.type"],s:'_0("scans.scanType."+_1+".caption")'}}],x:{r:["scanData.type"],s:'_0==="custom"||_0==="quick"||_0==="menu"'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__progress"},f:[{t:7,e:"kin-progress",a:{percentage:[{t:2,r:"scanProgress"}],dotted:"true"}}]}," ",{t:7,e:"div",a:{class:"kin_scan__subtitle -overlay"},f:[{t:4,f:[{t:7,e:"SmartTextTrim",a:{text:[{t:2,r:"scanLastScanned"}],width:"60%"}}],n:50,r:"scanLastScanned"}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",a:{type:"secondary","data-test":"scn_progress_stopBtn"},v:{click:"stopScan"},f:[{t:2,x:{r:["nls"],s:'_0("global.stopScan")'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"scn_shutdown"},f:[{t:7,e:"input",a:{id:"tempShutDownMachine",type:"checkbox",class:"checkbox",checked:[{t:2,r:"selected"}]},v:{change:"shutdownMachineChanged"}}," ",{t:7,e:"label",a:{for:"tempShutDownMachine",class:"scn_shutdown__label span -secondary -small g-align--left g-margin-left--5"},f:[{t:2,x:{r:["nls"],s:'_0("scans.settings.shutDownAfterScan")'}}]}]}],n:50,r:"showShutdownMachine"}]}]}],n:50,x:{r:["scanProgress"],s:"_0<100"}}],ScanReport:[{t:4,f:[{t:7,e:"div",a:{class:"scn_loader"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"kin-icon",a:{name:"circle-critical",class:"kin_scan__icon",size:"96"}}," ",{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanStopped.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanStopped.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",v:{click:"runScanAgain"},a:{"data-test":"scn_progress_scanAgainBtn"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanStopped.scanAgain")'}}]}," ",{t:7,e:"kin-button",a:{type:"secondary",class:"g-margin-left--10","data-test":"scn_progress_doneBtn"},v:{click:"done"},f:[{t:3,x:{r:["nls"],s:'_0("global.goBack")'}}]}]}]}],n:50,r:"scanStopped"},{t:4,n:51,f:[{t:4,n:50,x:{r:["threatsLoaded","threatsCount"],s:"_0&&_1===0"},f:[{t:7,e:"div",a:{class:"scn_loader"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"kin-icon",a:{name:"circle-ok",class:"kin_scan__icon",size:"96"}}," ",{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",v:{click:"done"},a:{"data-test":"scn_progress_doneBtn"},f:[{t:3,x:{r:["nls"],s:'_0("global.done")'}}]}]}]}," ",{t:7,e:"div",a:{class:"scn_loader__banner"},f:[{t:7,e:"Ipm",a:{id:"157"}}]}]},{t:4,n:50,x:{r:["threatsLoaded","threatsCount"],s:"!(_0&&_1===0)"},f:[" ",{t:7,e:"kin-view",a:{actionbar:"true"},f:[{t:4,f:[{t:7,e:"div",a:{slot:"description",class:"kin_description__text -center"},f:[{t:4,f:[{t:4,f:[{t:2,x:{r:["nls","resolvedWithError"],s:'_0("scans.ss2.resolvedWithError.subtitle",_1)'}}],n:50,r:"resolvedWithError"},{t:4,n:51,f:[{t:2,x:{r:["nls"],s:'_0("scans.ss2.allResolved.subtitle")'}}],r:"resolvedWithError"}],n:50,r:"allResolved"},{t:4,n:51,f:[{t:2,x:{r:["nls"],s:'_0("scans.ss2.results.subtitle")'}}],r:"allResolved"}]}],n:50,r:"threatsLoaded"}," ",{t:7,e:"ThreatsList",a:{scanId:[{t:2,r:"scanId"}],sessionId:[{t:2,r:"sessionId"}],cta:"done"}}]}]}],r:"scanStopped"}]}}),BoottimeScan:function(e){return t.extend({template:e,data:()=>({scanId:null,label:"Boottime Scan",installing:!1,installed:r.isInstalled("VpsBoot32"),scheduled:!1}),computed:{customBreadcrumbs:function(){return[{title:this.get("label")}]}},oninit(){this.installer=r.getInstaller("VpsBoot32"),A.getScan(this.get("scanId")).then((t=>{const e=t.getData();this.set("label",e.label),this.set("scheduled",e.boottimeScanScheduled),this.installer.getStatus().then((t=>{"installing"===t.task&&(this.set("installing",!0),this.setInstalledObserver()),this.screenReady()})).catch((()=>{this.screenReady()}))})).catch((()=>{this.screenError()})),this.on("Modal.close",(()=>(window.location.hash="#Scans",!1))),this.on("toggleBoottime",(()=>{s("app.scanViruses.ScheduleBoottimeScan",!this.get("scheduled")).then((()=>{this.toggle("scheduled")}))})),this.on("scheduleScan",(()=>{s("app.scanViruses.ScheduleBoottimeScan",!0).then((()=>{this.set("scheduled",!0)}))})),this.on("unscheduleScan",(()=>{s("app.scanViruses.ScheduleBoottimeScan",!1).then((()=>{this.set("scheduled",!1)}))})),this.on("installScan",(()=>{this.set("installing",!0),this.installer.install().then(this.setInstalledObserver.bind(this)).catch((()=>{this.set("installing",!1)}))}))},onteardown(){this.installer.close()},setInstalledObserver(){this.installer.once("done",(t=>{"installed"===t&&this.set("installed",!0),this.set("installing",!1)}))}})}({v:3,t:[{t:7,e:"Page",a:{cssCls:"-center-header",heading:[{t:2,x:{r:["nls"],s:'_0("scans.scanType.boottime")'}}],backHash:"#Scans",settingsUrl:"#Settings/Scans/boottime"},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{section:"security",moduleId:"scans",customBreadcrumbs:[{t:2,r:"customBreadcrumbs"}]}}]}," ",{t:7,e:"div",a:{slot:"page-content",class:"kin_page-content -center"},f:[{t:7,e:"p",a:{class:"kin_description__text scn_boot-time__desc"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.desc")'}}]}," ",{t:7,e:"div",a:{class:"scn_install"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"circle-ok",size:"32",class:"g-margin-bottom--10"}}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.installed.info")'}}]}],n:50,r:"installed"},{t:4,n:51,f:[{t:4,n:50,x:{r:["installing"],s:"_0"},f:[{t:7,e:"Progress",a:{percentage:"unknown",cssCls:"-standalone"}}," ",{t:7,e:"p",a:{class:"p g-margin-top--15"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.installing.info")'}}]}]},{t:4,n:50,x:{r:["installing"],s:"!(_0)"},f:[" ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.install.info")'}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--10"},f:[{t:7,e:"button",a:{class:"a","data-test":"scn_boot-install"},v:{click:"installScan"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.install")'}}]}]}]}],r:"installed"}]}," ",{t:7,e:"div",a:{class:"scn_boot-time__cta"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p -margins"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.scheduled.info")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:7,e:"button",v:{click:"unscheduleScan"},a:{class:"a","data-test":"scn_boot-unschedule"},f:[{t:3,x:{r:["nls"],s:'_0("scans.boottime.unschedule")'}}]}]}],n:50,r:"scheduled"},{t:4,n:51,f:[{t:7,e:"kin-button",v:{click:"scheduleScan"},a:{size:"large","data-test":"scnBootSchedule"},f:[{t:2,x:{r:["nls"],s:'_0("scans.boottime.schedule")'}}]}],r:"scheduled"}]}]}]}]}),ScanHistoryDetail:function(e){return t.extend({template:e,components:{},data:()=>({scanId:null,sessionId:null,scanData:null,scanTitle:null,loadingScan:!0,loadingThreats:!0}),oninit(){this.components.ThreatsList=A.getBrandedComponent("ThreatsList"),this.on("ThreatsList.data",(t=>{this.set("loadingThreats",t.loading)})),A.getScanHistoryDetail(this.get("scanId"),this.get("sessionId")).then((t=>{if(t){const e=t.label+" ("+_(t.startTimeMs).format("LLL")+")";this.set({scanTitle:e,scanData:t})}this.set("loadingScan",!1)}))}})}({v:3,t:[{t:7,e:"kin-view",a:{loading:[{t:2,x:{r:["loadingScan","loadingThreats"],s:"_0||_1"}}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text"},f:[{t:2,r:"scanTitle"}]}]}," ",{t:4,f:[{t:7,e:"ThreatsList",a:{scanId:[{t:2,r:"scanData.scanId"}],sessionId:[{t:2,r:"scanData.sessionId"}],showActions:"true",cta:"done"}}],n:50,r:"scanData"}]}]}),ScanHistoryRow:function(e){return t.extend({template:e,data:()=>({scan:null,isExpanded:!1,numbro:Gt}),computed:{hasIssue:function(){const t=this.get("scan")||{};if("object"!=typeof t.scanVerdict)return"virus"===t.scanVerdict;const e=t.scanVerdict.found_resolved,n=t.scanVerdict.found_unresolved,s=t.scanVerdict.found_resolved_with_error;return e||n||s},hasIssueScanError:function(){const t=this.get("scan")||{};return"object"!=typeof t.scanVerdict?"error"===t.scanVerdict:t.scanVerdict.found_scanned_with_error},hasIssueUnresolved:function(){const t=this.get("scan")||{};return"object"!=typeof t.scanVerdict?"virus"===t.scanVerdict:!0===t.scanVerdict.found_unresolved},hasIssueError:function(){const t=this.get("scan")||{};return"object"==typeof t.scanVerdict&&!0===t.scanVerdict.found_resolved_with_error}},oninit(){this.on("toggleExpansion",(()=>{this.toggle("isExpanded")})),this.on("runScanAgain",((t,e)=>{window.location.hash="Scans/scan/"+e}))}})}({v:3,t:[{t:4,f:[{t:7,e:"div",a:{role:"row",class:"kin_table__row scn_history__row","data-test":["table-row-",{t:2,r:"@index"}]},f:[{t:7,e:"div",a:{class:"kin_table__icon"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"icon-m-virus",size:"24"}}," ",{t:4,f:[{t:7,e:"kin-icon",a:{class:"scn_sub-icon",name:"badge-critical",size:"16"}}],n:50,x:{r:["hasIssueUnresolved","hasIssueError","hasIssueScanError","hasIssue"],s:"_0||_1||(_2&&!_3)"}},{t:4,n:51,f:[{t:7,e:"kin-icon",a:{class:"scn_sub-icon",name:"badge-ok",size:"16"}}],x:{r:["hasIssueUnresolved","hasIssueError","hasIssueScanError","hasIssue"],s:"_0||_1||(_2&&!_3)"}}],n:50,x:{r:["hasIssue","hasIssueScanError"],s:"_0||_1"}}]}," ",{t:7,e:"div",a:{class:"kin_table__name"},f:[{t:2,r:"label"}]}," ",{t:7,e:"div",f:[{t:2,x:{r:["moment","scan.startTimeMs"],s:'_0(_1).format("LLL")'}}]}," ",{t:7,e:"div",a:{class:"kin_table__actions"},f:[{t:4,f:[{t:7,e:"kin-tooltip",a:{class:"g-margin-right--10"},f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-action-info",size:"24"}}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p -small"},f:[{t:2,x:{r:["nls"],s:'_0("scans.scanHistory.unresolved.tooltip")'}}]}],n:50,r:"hasIssueError"}," ",{t:4,f:[{t:7,e:"p",a:{class:"p -small"},f:[{t:4,f:[{t:4,f:[{t:3,x:{r:["nls","scan.infectedCount","scan.label"],s:'_0("scans.scanHistory.threatsFound.scanNotComplete",_1,_2)'}}],n:50,x:{r:["scan.type"],s:'_0==="custom"'}},{t:4,n:51,f:[{t:3,x:{r:["scan.infectedCount","nls","scan.type"],s:'_1("scans.scanHistory.threatsFound.scanNotComplete",_0,_1("scans.scanType."+_2))'}}],x:{r:["scan.type"],s:'_0==="custom"'}}],n:50,r:"hasIssue"},{t:4,n:51,f:[{t:4,f:[{t:3,x:{r:["nls","scan.label"],s:'_0("scans.scanHistory.scanNotComplete",_1)'}}],n:50,x:{r:["scan.type"],s:'_0==="custom"'}},{t:4,n:51,f:[{t:3,x:{r:["nls","scan.type"],s:'_0("scans.scanHistory.scanNotComplete",_0("scans.scanType."+_1))'}}],x:{r:["scan.type"],s:'_0==="custom"'}}],r:"hasIssue"}]}],n:50,r:"hasIssueScanError"}]}]}],n:50,x:{r:["hasIssueError","hasIssueScanError"],s:"_0||_1"}}," ",{t:7,e:"kin-button",v:{click:"toggleExpansion"},a:{"data-test":"scn_history-row-details-button",type:"blank",size:"tiny",icononly:0,title:[{t:2,x:{r:["isExpanded","nls"],s:'_0?_1("global.clickToHide"):_1("global.clickToExpand")'}}]},f:[{t:7,e:"kin-icon",a:{name:[{t:2,x:{r:["isExpanded"],s:'_0?"icon-s-controls-arrow-up":"icon-s-controls-arrow-down"'}}],size:"14"}}]}]}]}," ",{t:4,f:[{t:7,e:"div",a:{role:"row",class:"kin_table__row -details scn_history__row","data-test":["table-row-details-",{t:2,r:"@index"}],"aria-rowindex":[{t:2,r:"@index"}]},f:[{t:4,f:[{t:7,e:"kin-button",v:{click:{n:"showThreats",d:[{t:2,r:"scan.scanId"},",",{t:2,r:"scan.sessionId"}]}},a:{type:"secondary",class:"scn_history__report","data-test":"scn_history-report-button"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.detailedReport")'}}]}],n:50,r:"hasIssue"}," ",{t:7,e:"div"}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.runTime")'}},":"]}," ",{t:7,e:"div",f:[{t:2,x:{r:["moment","scan.runTime"],s:'_0.duration(_1*1000,"milliseconds").humanize()'}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.testedFiles")'}},":"]}," ",{t:7,e:"div",f:[{t:2,r:"scan.filesCount"}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.testedFolders")'}},":"]}," ",{t:7,e:"div",f:[{t:2,r:"scan.foldersCount"}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.testedBytes")'}},":"]}," ",{t:7,e:"div",f:[{t:2,x:{r:["numbro","scan.bytesCount"],s:'_0(_1).format("0.0 b")'}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.infectedFiles")'}},":"]}," ",{t:7,e:"div",f:[{t:2,r:"scan.infectedCount"}]}," ",{t:7,e:"div"}]}],n:50,r:"isExpanded"}],n:53,r:"scan"}]}),CustomScans:function(e){return t.extend({template:e,components:{},data:()=>({scansLoading:!0,scans:[]}),oninit(){qt.debug("oninit"),this.components.CustomScanRow=A.getBrandedComponent("CustomScanRow"),this.runScans={},this.initialize(),this.listeners=[A.on("scans",this.updateScans.bind(this))],this.listeners.push(A.on("scanStarted",(t=>{this.runScans[t]=!0,this.get("scans").find(((e,n)=>{e.id===t&&this.set("scans["+n+"].showResult",!0)}))}))),this.on("configureScan",(()=>{A.openScanSettings({scanId:this.get("scan.id"),scanType:this.get("scan.type")})})),this.on("scheduleScan",(()=>{A.openScanScheduleDialog({scanId:this.get("scan.id"),scanType:this.get("scan.type")})})),this.on("deleteScan",(()=>{A.deleteScan(this.get("scan.id"))})),this.on("createScan",(()=>{window.location.hash="Scans/customScans/new/settings"}))},onteardown(){this.listeners.forEach((t=>{t()}))},initialize(){qt.debug("initialize"),Promise.all([A.getScans(),A.getRunScans()]).then((t=>{function e(){this.updateScans(t[0]),this.set("scansLoading",!1)}qt.debug("scans",t[0]),qt.debug("run scans",t[1]),this.runScans=t[1],t[0].find((function(t){return"SmartScan"===t.job}))?s("app.smartScan.GetStatus").then((n=>{"scan_report"===n.statusPrimary&&t[0].forEach((t=>{"SmartScan"===t.job&&(this.runScans[t.id]=!0)})),e.call(this)})):e.call(this)})).catch((t=>{qt.error("Scans: loading custom scans failed",t)}))},updateScans(t){qt.debug("updating scans",t),this.merge("scans",t.filter((t=>{if("custom"===t.type||"quick"===t.type||Vt(t.schedule))return t.showResult=this.runScans[t.id]&&!A.isScanStoredAsDone(t.id),!0})),{compare:"id"})}})}({v:3,t:[{t:7,e:"Page",a:{heading:[{t:3,x:{r:["nls"],s:'_0("scans.customScans")'}}],cssCls:"scn",backHash:"#Scans"},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{section:"security",moduleId:"scans",maxLevel:"1"}}]}," ",{t:7,e:"div",a:{slot:"page-content"},f:[{t:7,e:"kin-view",a:{loading:[{t:2,r:"scansLoading"}]},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text"},f:[{t:3,x:{r:["nls"],s:'_0("scans.customScans.desc")'}}]}]}," ",{t:7,e:"div",a:{slot:"cta"},f:[{t:7,e:"kin-button",v:{click:"createScan"},a:{"data-test":"scn_scan-custom-new"},f:[{t:3,x:{r:["nls"],s:'_0("scans.customScans.create")'}}]}]}," ",{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"kin-table",a:{datalength:[{t:2,r:"scans.length"}]},f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"scn_custom__row"},f:[{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanName")'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanLaunch")'}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}]}," ",{t:4,f:[{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"CustomScanRow",a:{scan:[{t:2,r:"."}]}}],n:52,r:"scans"}]}],n:50,x:{r:["scans","scans.length"],s:"_0&&_1"}},{t:4,n:51,f:[{t:7,e:"div",a:{slot:"table-empty-icon",class:"svg -empty-table"}}," ",{t:7,e:"div",a:{slot:"table-empty"},f:[{t:3,x:{r:["nls"],s:'_0("scans.customScans.noScans")'}}]}],x:{r:["scans","scans.length"],s:"_0&&_1"}}]}]}]}]}]}]}),CustomScanRow:function(e){return t.extend({template:e,data:()=>({scan:null,running:!1}),computed:{scheduledTime:function(){const t=this.get("scan.schedule");return Vt(t)?Kt(t):""}},oninit(){this.on("startScan",(()=>{A.openScan(this.get("scan"))})),this.on("configureScan",(()=>{A.openScanSettings({scanId:this.get("scan.id"),scanType:this.get("scan.type")})})),this.on("scheduleScan",(()=>{A.openScanScheduleDialog({scanId:this.get("scan.id"),scanType:this.get("scan.type")})})),this.on("deleteScan",(()=>{const t=this.get("scan");"custom"===t.type||"quick"===t.type?A.deleteScan(t.id):A.unscheduleScan(t.id)})),this.runningObserverOff=A.on("running."+this.get("scan.id"),(t=>{this.set("running",t)})),A.getRunningScanIds().then((t=>{this.set("running",t.includes(this.get("scan.id")))}))},onteardown(){this.runningObserverOff&&this.runningObserverOff()}})}({v:3,t:[{t:7,e:"div",a:{role:"row",class:"kin_table__row scn_custom__row","data-test":["table-row-",{t:2,r:"@index"}],"aria-rowindex":[{t:2,r:"@index"}]},f:[{t:7,e:"div",a:{class:"kin_table__name","data-test":"scn_scan-custom-name"},f:[{t:2,r:"scan.label"}]}," ",{t:7,e:"div",a:{"data-test":"scn_scan-custom-launch"},f:[{t:2,r:"scheduledTime"}]}," ",{t:7,e:"div",a:{class:"kin_table__end"},f:[{t:7,e:"kin-button",a:{size:"small",processing:[{t:2,r:"running"}],type:"secondary","data-test":"scn_scan-custom-start"},v:{click:"startScan"},f:[{t:7,e:"span",f:[{t:4,f:[{t:2,x:{r:["nls"],s:'_0("global.running")'}}],n:50,r:"running"},{t:4,n:51,f:[{t:2,x:{r:["nls","scan.showResult"],s:'_0(_1?"scans.seeResults":"global.scanNow")'}}],r:"running"}]}]}]}," ",{t:7,e:"div",a:{class:"kin_table__actions"},f:[{t:4,f:[{t:7,e:"kin-dropdown",f:[{t:7,e:"span",a:{slot:"dropdown-activator"},f:[{t:7,e:"kin-button",a:{icononly:0,type:"blank",size:"tiny",title:[{t:2,x:{r:["nls"],s:'_0("global.moreOptions")'}}],"data-test":"kin_table-item-options"},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-menu-more",size:"14"}}]}]}," ",{t:7,e:"div",f:[{t:4,f:[{t:7,e:"kin-dropdown-item",v:{click:"configureScan"},a:{"data-test":"scn_scan-custom-settings"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanSettings")'}}]}],n:50,x:{r:["scan.type"],s:'_0==="custom"||_0==="quick"'}}," ",{t:7,e:"kin-dropdown-item",v:{click:"deleteScan"},a:{"data-test":"scn_scan-custom-delete"},f:[{t:3,x:{r:["nls"],s:'_0("scans.deleteScan")'}}]}]}]}],n:50,x:{r:["running"],s:"!_0"}}]}]}]})},Jt={v:3,t:[{t:4,f:[{t:8,x:{r:["getPage"],s:"_0()"}}," ",{t:4,f:[{t:8,x:{r:["getOverlay"],s:"_0()"}}],n:50,r:"overlay"}],n:50,r:"initialized"}]};var Yt=".scn_count {\n  margin: 5px 5px 0 0;\n  position: absolute;\n  top: 3px;\n  right: 3px;\n}\n";const Xt=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"eightpack__2"},f:[" ",{t:7,e:"a",a:{href:[{t:2,r:"data.url"}],class:"cube -full -blank","data-test":["scn_scan-",{t:2,r:"data.scanType"},"-start"]},f:[{t:7,e:"Icon",a:{name:["scan-",{t:2,r:"data.scanType"}],cssCls:"cube__icon"}}," ",{t:4,f:[{t:7,e:"kin-button",a:{type:"secondary",fake:"true",size:"small",processing:"true"},f:[{t:3,x:{r:["nls"],s:'_0("global.running")'}}]}],n:50,r:"running"},{t:4,n:51,f:[{t:7,e:"kin-button",a:{type:"secondary",fake:"true",size:"small"},f:[{t:3,x:{r:["data.scanType","nls"],s:'_0==="boottime"?_1("scans.openNow"):_1("global.scanNow")'}}]}],r:"running"}," ",{t:7,e:"span",a:{class:"cube__label"},f:[{t:3,x:{r:["nls","data.scanType"],s:'_0("scans.scanType."+_1)'}}," ",{t:7,e:"span",a:{class:"cube__desc"},f:[{t:3,x:{r:["nls","data.scanType"],s:'_0("scans.scanType."+_1+".caption")'}}]}]}]}]}]},css:Yt,data:()=>({data:null,running:!1}),oninit(){this.observe("data",(t=>{t&&(this.removeListeners(),this.runningObserverOff=A.on("running."+t.scanId,(t=>{this.set("running",t)})),A.getRunningScanIds().then((e=>{this.set("running",e.includes(t.scanId))})))}))},removeListeners(){this.runningObserverOff&&this.runningObserverOff()},onteardown(){this.removeListeners()}}),Qt=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"eightpack__2"},f:[" ",{t:7,e:"a",a:{href:[{t:2,r:"data.url"}],class:"cube -full -blank","data-test":["scn_scan-",{t:2,r:"data.name"},"-start"]},f:[{t:7,e:"Icon",a:{name:["scan-",{t:2,r:"data.icon"}],cssCls:"cube__icon"}}," ",{t:4,f:[{t:7,e:"kin-button",a:{type:"secondary",processing:"true",fake:"true",size:"small"},f:[{t:3,x:{r:["nls"],s:'_0("global.running")'}}]}],n:50,r:"running"},{t:4,n:51,f:[{t:7,e:"kin-button",a:{type:"secondary",fake:"true",size:"small"},f:[{t:3,x:{r:["nls"],s:'_0("scans.openNow")'}}]}],r:"running"}," ",{t:7,e:"span",a:{class:"cube__label"},f:[{t:3,x:{r:["nls","data.name"],s:'_0("scans."+_1)'}}," ",{t:7,e:"span",a:{class:"cube__desc"},f:[{t:3,x:{r:["nls","data.name"],s:'_0("scans."+_1+".caption")'}}]}]}," ",{t:4,f:[{t:7,e:"span",a:{class:"badge -small cube__badge","data-test":"scn_custom-count"},f:[{t:2,r:"data.count"}]}],n:50,r:"data.count"}]}]}]},css:Yt,data:()=>({data:null,runningTypes:{}}),computed:{running:function(){const t=this.get("runningTypes");return Object.keys(t).some((e=>t[e]))}},oninit(){const t=this.get("data.scanTypes");this.runningObserverOffs=[],t.forEach((t=>{this.runningObserverOffs.push(A.on("running."+t,(e=>{this.set("runningTypes."+t,e)})))})),A.getRunningScanTypes().then((e=>{const n={};t.forEach((t=>{n[t]=e.includes(t)})),this.set("runningTypes",n)}))},onteardown(){this.runningObserverOffs&&this.runningObserverOffs.length&&this.runningObserverOffs.forEach((t=>{t()}))}}),te={full:0,folder:1,boottime:2,custom:3,quick:3},ee=["custom","quick"],ne=t.extend({template:{v:3,t:[{t:7,e:"Page",a:{heading:[{t:3,x:{r:["nls"],s:'_0("scans")'}}],cssCls:"scn",settingsUrl:"#Settings/Scans",backHash:"#security"},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{section:"security",moduleId:"scans",customBreadcrumbs:[{t:2,r:"customBreadcrumbs"}]}}]}," ",{t:7,e:"div",a:{slot:"page-content"},f:[{t:7,e:"kin-view",f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text"},f:[{t:3,x:{r:["nls"],s:'_0("scans.module.desc")'}}]}]}," ",{t:7,e:"div",a:{slot:"cta"},f:[{t:4,f:[{t:7,e:"kin-button",a:{link:"#SmartScan",processing:"true","data-test":"smartScan_open",title:[{t:3,x:{r:["nls"],s:'_0("dashboard.smartScanShowProgress")'}}]},f:[{t:3,x:{r:["nls"],s:'_0("dashboard.smartScanRunning")'}}]}],n:50,r:"isSmartScanRunning"},{t:4,n:51,f:[{t:4,n:50,x:{r:["isSmartScanDone"],s:"_0"},f:[{t:7,e:"p",a:{class:"kin_cta__text p -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("dashboard.smartScanFinished")'}}]}," ",{t:7,e:"kin-button",a:{link:"#SmartScan","data-test":"smartScan_open"},f:[{t:3,x:{r:["nls"],s:'_0("dashboard.smartScanShowResults")'}}]}]},{t:4,n:50,x:{r:["isSmartScanDone"],s:"!(_0)"},f:[" ",{t:7,e:"kin-button",a:{link:"#SmartScan",size:"large","data-test":"smartScan_open"},f:[{t:2,x:{r:["nls"],s:'_0("scans.startSmartScan")'}}]}]}],r:"isSmartScanRunning"}," ",{t:7,e:"div",a:{class:"kin_cta__links"},f:[{t:4,f:[{t:7,e:"a",a:{href:"#RescueDisk",class:"a -small -secondary","data-test":"avr_go-to-rescuedisk",title:[{t:3,x:{r:["nls"],s:'_0("rescuedisk")'}}]},f:[{t:7,e:"Icon",a:{name:"rescuedisk"}},{t:3,x:{r:["nls"],s:'_0("rescuedisk")'}}]}],n:50,r:"showRescueDisk"}," ",{t:7,e:"a",a:{href:"#Scans/scanHistory",class:"a -small -secondary","data-test":"avr_show-scan-history",title:[{t:3,x:{r:["nls"],s:'_0("antivirus.viewScanHistory")'}}]},f:[{t:7,e:"Icon",a:{name:"history"}},{t:3,x:{r:["nls"],s:'_0("antivirus.viewScanHistory")'}}]}]}]}," ",{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"h3",a:{class:"h3 g-margin-top--60 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("scans.otherScans")'}}]}," ",{t:7,e:"div",a:{class:"eightpack"},f:[{t:4,f:[{t:4,f:[{t:7,e:"ScanListTile",a:{data:[{t:2,r:"."}]}}],n:50,x:{r:[".","scanTypes"],s:"_0&&_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["."],s:"_0"},f:[{t:7,e:"ScanTile",a:{data:[{t:2,r:"."}]}}]}],x:{r:[".","scanTypes"],s:"_0&&_1"}}],n:52,r:"scanTiles"}]}]}]}]}]}]},components:{ScanTile:Xt,ScanListTile:Qt},data:()=>({scanTiles:[null,null,null,{name:"customScans",icon:"custom",scanTypes:ee,url:"#Scans/customScans",count:0}],isSmartScanRunning:!1,isSmartScanDone:!1,customBreadcrumbs:[],showRescueDisk:!1}),oninit(){A.getScans().then((t=>{this.updateScans(t),this.screenReady()})).catch((()=>{this.screenError()})),this._scansOff=A.on("scans",this.updateScans.bind(this)),this._smartscanRunningOff=A.on("running.smartScan",(t=>this.set("isSmartScanRunning",t))),A.isSmartScanRunning().then((t=>this.set("isSmartScanRunning",t))),this.observe("isSmartScanRunning",(t=>{t||A.getSmartScanStatus().then((t=>{this.set("isSmartScanDone","scan_report"===t.statusPrimary)}))})),this.rescuediskChangeOff=n.on("product.change.feature.rescuedisk",this.updateRescueDiskVisibility.bind(this)),this.updateRescueDiskVisibility()},onteardown(){this._scansOff&&this._scansOff(),this._smartscanRunningOff&&this._smartscanRunningOff(),this.rescuediskChangeOff&&this.rescuediskChangeOff()},updateScans(t){this.set("scanTiles."+te.custom+".count",0),t.forEach(this.setScanTile.bind(this))},setScanTile(t){const e=te[t.type];let n,s="#Scans/";if(null!=e)if(ee.includes(t.type))n=this.get("scanTiles."+e+".count")+1,this.set("scanTiles."+e+".count",n);else{switch(t.type){case"full":case"folder":s+="scan/"+t.id;break;case"boottime":s+="boottimeScan/"+t.id}this.set("scanTiles."+e,{scanId:t.id,scanType:t.type,schedule:t.schedule,boottimeScanScheduled:t.boottimeScanScheduled,url:s})}},updateRescueDiskVisibility(){let t=r.isInstalled("RescueDisk"),e=r.isLicensed("RescueDisk");null==t&&(t=!0),null==e&&(e=!0),this.set("showRescueDisk",t&&e||!t&&!e)}}),se=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Scan",a:{scanId:[{t:2,r:"scanId"}],sessionId:[{t:2,r:"sessionId"}],path:[{t:2,r:"path"}],section:"security",moduleId:"scans"}}],n:50,r:"loaded"}]},components:{},data:()=>({scanId:null,sessionId:null,path:null,loaded:!1}),onrender(){this.components.Scan=A.getBrandedComponent("Scan"),this.set("loaded",!0)},oninit(){this.listener=this.on("*.goBack",(()=>{window.location.hash="#Scans"}))},onteardown(){this.listener.cancel(),delete this.listener}}),ae={title:"scans",desc:"scans.settings.desc",scans:{full:"scans.scanType.full",folder:"scans.scanType.folder",explorer:"scans.scanType.explorer",boottime:"scans.scanType.boottime"},sensitivity:"global.sensitivity",scanPup:"settings.pup",scanPupDesc:"settings.pup.desc",scanTools:"settings.pup.tools",scanToolsDesc:"settings.pup.tools.desc",scanLinks:"scans.settings.scanLinks",scanLinksDesc:"scans.settings.scanLinksDesc",scanFullFiles:"scans.settings.scanFullFiles",scanFullFilesDesc:"scans.settings.scanFullFilesDesc",priority:{label:"scans.settings.priority",high:"scans.settings.priority.high",medium:"scans.settings.priority.medium",low:"scans.settings.priority.low"},scanPackers:{label:"scans.settings.scanPackers.label",mostCommonTypes:"scans.settings.scanPackers.mostCommonTypes",mostCommonTypesDesc:"scans.settings.scanPackers.mostCommonTypes.desc",allTypes:"scans.settings.scanPackers.allTypes",allTypesDesc:"scans.settings.scanPackers.allTypes.desc",dontScanArchives:"scans.settings.scanPackers.dontScanArchives",dontScanArchivesDesc:"scans.settings.scanPackers.dontScanArchives.desc"},unpackArchives:"scans.settings.unpackArchives",scanAreas:{label:"scans.settings.scanAreas",allHardDisks:"scans.settings.scanAreas.allHardDisks",systemDisk:"scans.settings.scanAreas.systemDisk",allRemovableMedia:"scans.settings.scanAreas.allRemovableMedia",rootkits:"scans.settings.scanAreas.rootkits",uefi:"scans.settings.scanAreas.uefi",cdDvd:"scans.settings.scanAreas.cdDvd",memory:"scans.settings.scanAreas.memory",startup:"scans.settings.scanAreas.startup"},useAutomaticActions:"scans.settings.useAutomaticActions",actions:{fix:"scans.settings.actions.fix",fixDesc:"scans.settings.actions.fix.desc",chest:"scans.settings.actions.chest",delete:"global.delete"},shutDownAfterScan:"scans.settings.shutDownAfterScan",generateReport:"scans.settings.generateReport",generateReportDesc:"scans.settings.generateReport.desc",scanTypes:{label:"scans.settings.scanTypes",content:"scans.settings.scanTypes.content",contentDesc:"scans.settings.scanTypes.content.desc",extensions:"scans.settings.scanTypes.extensions",extensionsDesc:"scans.settings.scanTypes.extensions.desc",allFiles:"scans.settings.scanTypes.allFiles"},viewExceptions:"scans.settings.viewExceptions"},ie=f.createLogger("scans.settings.scan"),oe=d.supportedSince("21.1");function ce(t){const e={sensitivity:{id:"stg-scans-"+t+"-sensitivity",desc:v(ae.sensitivity),options:[{value:"40",label:v("settings.sensitivity.low")},{value:"80",label:v("settings.sensitivity.medium")},{value:"100",label:v("settings.sensitivity.high")}],track:{subject:"Sensitivity",valueMap:{40:"Low",80:"Medium",100:"High"}},search:ae.sensitivity},scanPup:{id:"stg-scans-"+t+"-scanPup",label:v(ae.scanPup),desc:v(ae.scanPupDesc),track:{subject:"Scan PUP"},search:{title:ae.scanPup,desc:ae.scanPupDesc}},scanLinks:{id:"stg-scans-"+t+"-scanLinks",label:v(ae.scanLinks),desc:v(ae.scanLinksDesc),track:{subject:"Scan links"},search:{title:ae.scanLinks,desc:ae.scanLinksDesc}},scanFullFiles:{id:"stg-scans-"+t+"-scanFullFiles",label:v(ae.scanFullFiles),desc:v(ae.scanFullFilesDesc),track:{subject:"Scan whole files"},search:{title:ae.scanFullFiles,desc:ae.scanFullFilesDesc}},priority:{id:"stg-scans-"+t+"-priority",label:v(ae.priority.label),options:[{label:v(ae.priority.high),value:"2"},{label:v(ae.priority.medium),value:"1"},{label:v(ae.priority.low),value:"0"}],track:{subject:"Priority",valueMap:{2:"High",1:"Medium",0:"Low"}},search:ae.priority.label},scanPackers:{id:"stg-scans-"+t+"-scanPackers",label:v(ae.scanPackers.label),options:[{label:v(ae.scanPackers.mostCommonTypes),desc:v(ae.scanPackers.mostCommonTypesDesc),value:"EXE;WinExec;Drop;Install;Streams",recommended:t!==x.FOLDER&&t!==x.EXPLORER},{label:v(ae.scanPackers.allTypes),desc:v(ae.scanPackers.allTypesDesc),value:"All",recommended:t===x.FOLDER||t===x.EXPLORER},{label:v(ae.scanPackers.dontScanArchives),desc:v(ae.scanPackers.dontScanArchivesDesc),value:""}],track:{subject:"Scan packers and archives",valueMap:{"EXE;WinExec;Drop;Install;Streams":"Most common types","":"Do not scan archives"}},search:{title:ae.scanPackers.label,others:[ae.scanPackers.mostCommonTypes,ae.scanPackers.mostCommonTypesDesc,ae.scanPackers.allTypes,ae.scanPackers.allTypesDesc,ae.scanPackers.dontScanArchives,ae.scanPackers.dontScanArchivesDesc]}},scanTypes:{id:"stg-scans-"+t+"-scanTypes",label:v(ae.scanTypes.label),options:[{label:v(ae.scanTypes.content),desc:v(ae.scanTypes.contentDesc),value:"Content",recommended:t!==x.FOLDER&&t!==x.EXPLORER},{label:v(ae.scanTypes.extensions),desc:v(ae.scanTypes.extensionsDesc),value:"Extensions"},{label:v(ae.scanTypes.allFiles),value:"AllFiles",recommended:t===x.FOLDER||t===x.EXPLORER}],track:{subject:"Scan types"},search:{title:ae.scanTypes.label,others:[ae.scanTypes.content,ae.scanTypes.contentDesc,ae.scanTypes.extensions,ae.scanTypes.extensionsDesc,ae.scanTypes.allFiles]}},useAutomaticActions:{id:"stg-scans-"+t+"-useAutomaticActions",label:v(ae.useAutomaticActions),track:{subject:"Use automatic actions"},search:{title:ae.useAutomaticActions,others:[ae.actions.fix,ae.actions.fixDesc,ae.actions.chest,ae.actions.delete]}},automaticActions:{id:"stg-scans-"+t+"-automaticActions",options:[{label:v(ae.actions.fix),desc:v(ae.actions.fixDesc),value:"fix",recommended:!0},{label:v(ae.actions.chest),value:"trezor"},{label:v(ae.actions.delete),value:"delete"}],track:{subject:"Automatic actions"}},shutdown:{id:"stg-scans-"+t+"-shutDownAfterScan",label:v(ae.shutDownAfterScan),track:{subject:"Shutdown after scan"},search:ae.shutDownAfterScan},generateReport:{id:"stg-scans-"+t+"-generateReport",label:v(ae.generateReport),descAsPromise:()=>i.importModule("Settings","common").then((t=>t.getReportDestination())).then((t=>v(ae.generateReportDesc,t,"NAPI.request('app.utils.BrowseFolder', '"+t.replace(/\\/g,"\\\\")+"')"))),track:{subject:"Generate report file"},search:{title:ae.generateReport,desc:ae.generateReportDesc}}};return oe&&Object.assign(e,{scanTools:{id:"stg-scans-"+t+"-scanTools",label:v(ae.scanTools),desc:v(ae.scanToolsDesc),track:{subject:"Scan Tools"},search:{title:ae.scanTools,desc:ae.scanToolsDesc}}}),t===x.FULL&&Object.assign(e,{scanAreas:{id:t+"Scan_scanAreas",label:v(ae.scanAreas.label),options:[{label:v(ae.scanAreas.allHardDisks),value:"AllHarddisks",recommended:!0},{label:v(ae.scanAreas.systemDisk),value:"SystemDisk"}],track:{subject:"Scan areas"},search:{title:ae.scanAreas.label,others:[ae.scanAreas.allHardDisks,ae.scanAreas.systemDisk,ae.scanAreas.allRemovableMedia,ae.scanAreas.rootkits,ae.scanAreas.uefi,ae.scanAreas.cdDvd,ae.scanAreas.memory]}},scanAllRemovableMedia:{id:t+"Scan_scanAllRemovableMedia",label:v(ae.scanAreas.allRemovableMedia),track:{subject:"Scan all removable media"}},scanRootkits:{id:t+"Scan_scanRootkits",label:v(ae.scanAreas.rootkits),track:{subject:"Scan rootkits"}},scanUEFI:{id:t+"Scan_scanUEFI",label:v(ae.scanAreas.uefi),track:{subject:"Scan UEFI"}},scanCdDvd:{id:t+"Scan_scanCdDvd",label:v(ae.scanAreas.cdDvd),track:{subject:"Scan CD/DVD"}},scanMemory:{id:t+"Scan_scanMemory",label:v(ae.scanAreas.memory),track:{subject:"Scan quick memory"}}}),t!==x.FOLDER&&Object.assign(e,{viewExceptions:{id:"settings-scans-"+t+"-viewExceptions",label:v(ae.viewExceptions),testAttr:"openGlobalExceptions",search:ae.viewExceptions}}),e}const re=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:["g-margin-bottom--20 ",{t:2,x:{r:["isTheOne"],s:'_0?"g-display--none":""'}}]},f:[{t:7,e:"SettingsRange",a:{property:[{t:2,r:"properties.sensitivity"}]}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanPup"}]},f:[{t:4,f:[{t:7,e:"div",a:{class:["settings__indent ",{t:2,x:{r:["isTheOne"],s:'_0?"g-display--none":""'}}]},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanTools"}]},f:[]}]}],n:50,r:"scanToolsSupported"}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanLinks"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanFullFiles"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"properties.priority"}],labelSmall:0}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--20",id:[{t:2,r:"properties.scanAreas.id"},"__container"]},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.scanAreas"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanAllRemovableMedia"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanRootkits"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanUEFI"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanCdDvd"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanMemory"}]}}]}]}],n:50,x:{r:["scanType","SCAN_TYPE.FULL"],s:"_0===_1"}}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.scanPackers"}]}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.scanTypes"}]}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.useAutomaticActions"}]},f:[{t:7,e:"div",a:{class:"settings__indent"},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.automaticActions"}]}}]}]}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.shutdown"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.generateReport"}]}}," ",{t:4,f:[{t:7,e:"button",a:{class:"a -small",id:[{t:2,r:"properties.viewExceptions.id"}],"data-test":[{t:2,r:"properties.viewExceptions.testAttr"}]},v:{click:"openGlobalExceptions"},f:[{t:2,r:"properties.viewExceptions.label"}]}],n:50,r:"properties.viewExceptions"}],n:50,x:{r:["loading"],s:"!_0"}}]},data:()=>({SCAN_TYPE:x,scanId:null,scanType:null,loading:!0,properties:null,dontSave:null,propertiesToSave:{},scanToolsSupported:oe,isTheOne:A.getIsTheOne()}),oninit(){this.listeners=[],this.listeners.push(this.observe("properties.scanPup.value",(t=>{this.set("properties.scanTools.disabled",!t)}))),this.listeners.push(this.observe("properties.useAutomaticActions.value",(t=>{this.set("properties.automaticActions.disabled",!t)}),{init:!1})),this.listeners.push(this.on("openGlobalExceptions",(()=>{location.hash="Settings/exceptions"}))),A.getScan(this.get("scanId")).then((t=>{this.scan=t,this.get("scanType")||this.set("scanType",t.getData().type),this.setProperties(),this.set("loading",!1)})).catch((t=>{ie.error("getting scan failed",t)}))},onteardown(){for(;this.listeners.length;)this.listeners.pop().cancel()},setProperties(){const t=this.get("scanId"),e=this.get("scanType"),n=ce(e),s={sensitivity:{load:this.loadScanProp.bind(this,"TaskSensitivity"),change:this.changeScanProp.bind(this,"TaskSensitivity")},scanPup:{load:()=>this.loadScanProp("ScanPUP").then((t=>({locked:t.locked,value:t.value>0}))),change:t=>{const e=this.get("isTheOne")?2:1;return this.changeScanProp("ScanPUP",t?e:0)},changeEvent:"scan."+t+".scanPup"},scanLinks:{load:this.loadScanProp.bind(this,"ScanLinks"),change:this.changeScanProp.bind(this,"ScanLinks")},scanFullFiles:{load:this.loadScanProp.bind(this,"ScanFullFiles"),change:this.changeScanProp.bind(this,"ScanFullFiles")},priority:{load:this.loadScanProp.bind(this,"Priority"),change:this.changeScanProp.bind(this,"Priority")},scanPackers:{load:this.getScanPackers.bind(this),change:this.changeScanProp.bind(this,"ScanPackers"),testAttr:this.scan.getPropTestAttr("ScanPackers")},scanTypes:{load:this.getScanTypes.bind(this),change:this.changeScanTypes.bind(this),testAttr:[this.scan.getPropTestAttr("ScanTypes"),this.scan.getPropTestAttr("ScanType")]},useAutomaticActions:{load:this.loadScanProp.bind(this,"AutomaticallyApplyActionsDuringScan"),change:this.changeScanProp.bind(this,"AutomaticallyApplyActionsDuringScan")},automaticActions:{load:this.loadScanProp.bind(this,"VirusAction"),change:this.changeAutomaticActions.bind(this),testAttr:[this.scan.getPropTestAttr("VirusAction"),this.scan.getPropTestAttr("SuspiciousAction"),this.scan.getPropTestAttr("PUPAction")]},shutdown:{load:this.loadScanProp.bind(this,"ShutDownMachine"),change:this.changeScanProp.bind(this,"ShutDownMachine")},generateReport:{load:this.loadGenerateReport.bind(this),change:this.changeGenerateReport.bind(this),testAttr:this.scan.getPropTestAttr("Report")}};oe&&Object.assign(s,{scanTools:{load:()=>{const t=this.get("propertiesToSave.ScanPUP");let e;return e=this.get("dontSave")&&void 0!==t?Promise.resolve({locked:s.scanPup.locked,value:t}):this.loadScanProp("ScanPUP"),e.then((t=>({locked:t.locked,value:2==t.value})))},change:t=>this.changeScanProp("ScanPUP",t?2:1),updateOnEvent:"settings.change.scan."+t+".scanPup"}}),e===x.FULL&&Object.assign(s,{scanAreas:{load:this.getScanAreaForRadio.bind(this,["AllHarddisks","SystemDisk"]),change:this.changeScanArea.bind(this,["AllHarddisks","SystemDisk"]),testAttr:[this.scan.getPropTestAttr("ScanAreas","AllHarddisks"),this.scan.getPropTestAttr("ScanAreas","SystemDisk")]},scanAllRemovableMedia:{load:this.getScanArea.bind(this,["AllMedia"]),change:this.changeScanArea.bind(this,["AllMedia"]),testAttr:this.scan.getPropTestAttr("ScanAreas","AllMedia")},scanRootkits:{load:this.getScanArea.bind(this,["*RTK-FULL"]),change:this.changeScanArea.bind(this,["*RTK-FULL"]),testAttr:this.scan.getPropTestAttr("ScanAreas","*RTK-FULL")},scanUEFI:{load:this.getScanArea.bind(this,["*RTK-UEFI"]),change:this.changeScanArea.bind(this,["*RTK-UEFI"]),testAttr:this.scan.getPropTestAttr("ScanAreas","*RTK-UEFI")},scanCdDvd:{load:this.getScanArea.bind(this,["MediaCDDVD"]),change:this.changeScanArea.bind(this,["MediaCDDVD"]),testAttr:this.scan.getPropTestAttr("ScanAreas","MediaCDDVD")},scanMemory:{load:this.getScanArea.bind(this,["QuickStartupMem"]),change:this.changeScanArea.bind(this,["QuickStartupMem"]),testAttr:this.scan.getPropTestAttr("ScanAreas","QuickStartupMem")}}),Object.keys(n).forEach((t=>{s[t]=s[t]||{},Object.assign(s[t],n[t])})),this.set("properties",s)},getScanPackers(){const t="ScanPackers";return this.scan.loadProp(t).then((e=>(["","All"].includes(e.value)||(e.value="EXE;WinExec;Drop;Install;Streams"),this.handleNewScanCreation(t,e.value),e)))},getScanAreas(t){const e="ScanAreas";return this.getScanAreasPromise&&!t||(this.getScanAreasPromise=this.scan.loadProp(e).then((t=>(this.scanAreas={locked:t.locked,areas:{}},t.value.replace(/"/g,"").split(";").forEach((t=>{this.scanAreas.areas[t]=!0})),delete this.getScanAreasPromise,this.handleNewScanCreation(e,t.value),this.scanAreas)))),this.getScanAreasPromise},changeScanAreas(){const t=Object.keys(this.scanAreas.areas).map((t=>'"'+t+'"')).join(";");return this.changeScanProp("ScanAreas",t)},getScanAreaForRadio(t,e){return this.getScanAreas(e).then((e=>({locked:e.locked,value:t.find((t=>e.areas[t]))})))},getScanArea(t,e){return this.getScanAreas(e).then((e=>({locked:e.locked,value:t.every((t=>e.areas[t]))})))},changeScanArea(t,e){return t.forEach((t=>{t===e||!0===e?this.scanAreas.areas[t]=!0:delete this.scanAreas.areas[t]})),this.changeScanAreas()},getScanTypes(){return Promise.all([this.loadScanProp("ScanTypes"),this.loadScanProp("ScanType")]).then((t=>{const e=t[0]||{},n=t[1]||{};let s="";return s="AllFiles"===e.value?e.value:n.value,{value:s,locked:e.locked||n.locked}}))},changeScanTypes(t){let e="",n="";return"AllFiles"===t?e=t:(n=t,"Extensions"===t&&(e="exe;bat;com")),Promise.all([this.changeScanProp("ScanTypes",e),this.changeScanProp("ScanType",n)])},changeAutomaticActions(t){return Promise.all([this.changeScanProp("VirusAction",t),this.changeScanProp("SuspiciousAction",t),this.changeScanProp("PUPAction",t)])},loadGenerateReport(){const t="Report";return this.scan.loadProp(t).then((e=>(this.handleNewScanCreation(t,e.value),{locked:e.locked,value:"None"!==e.value})))},changeGenerateReport(t){return this.changeScanProp("Report",t?"TXT":"None")},loadScanProp(t){return this.scan.loadProp(t).then((e=>(this.handleNewScanCreation(t,e.value),e)))},changeScanProp(t,e){return this.get("dontSave")?(this.set("propertiesToSave."+t,e),this.fire("scanPropertyToSave",t,e),Promise.resolve()):this.scan.saveProp(t,e)},handleNewScanCreation(t,e){this.get("isNewScan")&&this.fire("scanPropertyToSave",t,e)}}),le=f.createLogger("scans.customScanSettings"),de=/"/g,ue=["SystemDisk","*RTK-SUPERQUICK","QuickStartup"],he=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Modal",a:{title:[{t:2,r:"modalTitle"}],scrollable:0,cssCls:"scn_settings"},f:[{t:7,e:"div",a:{class:"scn_settings__modal_content modal"},f:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"kin-loading"}]}]}],n:50,r:"loading"},{t:4,n:51,f:[{t:8,r:"scanSettingsContent"}],r:"loading"}]}," ",{t:7,e:"div",a:{class:"modal__footer"},f:[{t:4,f:[{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"savingInProgress"}],processing:[{t:2,r:"savingInProgress"}],"data-test":"scans_custom_save"},v:{click:"save"},f:[{t:2,x:{r:["nls","isNewScan"],s:'_0(_1?"global.create":"global.save")'}}]}," ",{t:7,e:"kin-button",a:{class:" g-margin-left--5",type:"secondary","data-test":"scans_custom_cancel"},v:{click:"cancel"},f:[{t:2,x:{r:["nls"],s:'_0("global.cancel")'}}]}],n:50,x:{r:["loading"],s:"!_0"}}]}]}],n:50,x:{r:["windowType"],s:'_0==="modal"'}},{t:4,n:51,f:[{t:7,e:"Overlay",a:{type:"page",title:[{t:2,x:{r:["nls"],s:'_0("settings")'}}],txt:["{close:'",{t:2,x:{r:["nls"],s:'_0("global.close")'}},"'}"]},f:[{t:7,e:"kin-view",a:{loading:[{t:2,r:"loading"}],actionbar:"true",csscls:"-actions"},f:[{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"h2",a:{class:"h2 g-margin-top--10"},f:[{t:2,r:"modalTitle"}]}," ",{t:4,f:[{t:8,r:"scanSettingsContent"}],n:50,x:{r:["loading"],s:"!_0"}}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:7,e:"div",f:[{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"savingInProgress"}],processing:[{t:2,r:"savingInProgress"}],"data-test":"scans_custom_save"},v:{click:"save"},f:[{t:2,x:{r:["nls","isNewScan"],s:'_0(_1?"global.create":"global.save")'}}]}," ",{t:7,e:"kin-button",a:{type:"secondary","data-test":"scans_custom_cancel"},v:{click:"cancel"},f:[{t:2,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}]}]}],x:{r:["windowType"],s:'_0==="modal"'}}],p:{scanSettingsContent:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"label"}],labelSmall:0,placeholderText:[{t:2,x:{r:["nls"],s:'_0("scans.scanName.placeholder")'}}],cssCls:""}}," ",{t:7,e:"div",a:{class:"scn_settings_schedule_flex"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p -secondary -small g-margin-bottom--5"},f:[{t:2,x:{r:["nls"],s:'_0("scans.scanType")'}}]}," ",{t:7,e:"p",a:{class:" g-margin-bottom--5"},f:[{t:2,x:{r:["nls","scanType.storedValue"],s:'_0("scans.scanType."+_1)'}}]}],n:50,x:{r:["isNewScan","scanType.storedValue"],s:"!_0&&_1"}},{t:4,n:51,f:[{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"scanType"}],labelSmall:0,wrapCssCls:"scn_settings_schedule_inputInRow"}}],x:{r:["isNewScan","scanType.storedValue"],s:"!_0&&_1"}}," ",{t:7,e:"div",a:{class:"scn_inputs__row"},f:[{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"schedule.frequency"}],labelSmall:0,wrapCssCls:"scn_settings_schedule_inputInRow"}}," ",{t:4,f:[{t:4,f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"schedule.date"}],labelSmall:0,wrapCssCls:"scn_settings_schedule_inputInRow"}}],n:50,x:{r:["schedule.frequency.storedValue"],s:'_0==="Once"'}}," ",{t:4,f:[{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"schedule.dayOfWeek"}],labelSmall:0,wrapCssCls:"scn_settings_schedule_inputInRow"}}],n:50,x:{r:["schedule.frequency.storedValue"],s:'_0==="Weekly"'}}," ",{t:4,f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"schedule.dayOfMonth"}],labelSmall:0,wrapCssCls:"scn_settings_schedule_inputInRow"}}],n:50,x:{r:["schedule.frequency.storedValue"],s:'_0==="Monthly"'}}," ",{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"schedule.time"}],labelSmall:0,wrapCssCls:"scn_settings_schedule_inputInRow"}}],n:50,x:{r:["schedule.frequency.storedValue","schedule.frequency.disabled"],s:"_0&&!_1"}}]}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--10"},f:[{t:7,e:"kin-button",a:{"data-test":"scn_scan-custom-add-folders",id:"scn_scan-custom-add-folders"},v:{click:"addFolders"},f:[{t:3,x:{r:["nls"],s:'_0("global.chooseFolder")'}}]}]}," ",{t:4,f:[{t:7,e:"table",a:{class:"table -small -fixed g-margin-top--10"},f:[{t:7,e:"colgroup",f:[{t:7,e:"col",a:{width:"90%"}}," ",{t:7,e:"col",a:{width:"10%"}}]}," ",{t:4,f:[{t:7,e:"tr",f:[{t:7,e:"td",f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:2,r:"."}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,r:"."}]}]}]}," ",{t:7,e:"td",a:{class:"table__delete"},f:[{t:7,e:"kin-tooltip",f:[{t:7,e:"kin-button",a:{slot:"tooltip-activator","data-test":"scans_custom-scan-settings-folder-remove",type:"blank",size:"tiny",icononly:0},v:{click:{n:"removeFolder",d:[{t:2,r:"index"}]}},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-bin",size:"14"}}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:3,x:{r:["nls"],s:'_0("global.remove")'}}]}]}]}]}],n:52,i:"index",r:"folders"}]}],n:50,r:"folders.length"},{t:4,n:51,f:[{t:7,e:"p",a:{class:["g-margin-top--10 g-margin-bottom--20 p -small ",{t:2,x:{r:["isFolderError"],s:'_0?"color-critical -text":"-secondary"'}}]},f:[{t:2,x:{r:["nls"],s:'_0("global.noFolderAdded")'}}]}],r:"folders.length"}],n:50,x:{r:["scanType.storedValue"],s:'_0==="folder"'}}," ",{t:4,f:[{t:7,e:"div",a:{class:"scn_settings_info_flex g-margin-bottom--10"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-action-info",size:"24"}},{t:7,e:"p",a:{class:"p -small g-margin-left--5"},f:[{t:3,x:{r:["nls"],s:'_0("scans.settings.info")'}}]}]}],n:50,x:{r:["schedule.frequency.storedValue","schedule.frequency.disabled"],s:"_0&&!_1"}}," ",{t:4,f:[{t:4,f:[{t:7,e:"a",a:{href:"",class:"g-margin-top--20 scn_show-hide__no-decoration"},v:{click:"toggleAdvancedSettingsExpanded"},f:[{t:2,x:{r:["advancedSettingsExpanded","nls"],s:'_0?_1("global.hide"):_1("global.show")'}}," ",{t:3,x:{r:["nls"],s:'_0("settings.advanced").toLowerCase()'}}," ",{t:7,e:"kin-icon",a:{class:"g-margin-left--10",name:[{t:2,x:{r:["advancedSettingsExpanded"],s:'_0?"icon-s-controls-arrow-up":"icon-s-controls-arrow-down"'}}],size:"16"}}]}],n:50,r:"advancedSettingsExpandable"}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["advancedSettingsExpanded"],s:'_0?"g-margin-top--20":"g-display--none"'}}]},f:[{t:4,f:[{t:7,e:"kin-loading",a:{size:"small",inline:"true"}}],n:50,r:"advancedSettingsLoading"}," ",{t:4,f:[{t:7,e:"ScanSettings",a:{scanId:[{t:2,r:"advancedSettingsScanId"}],scanType:[{t:2,r:"scanType.storedValue"}],isNewScan:[{t:2,r:"isNewScan"}],dontSave:"true"}}],n:50,x:{r:["advancedSettingsScanId","advancedSettingsLoading"],s:"_0&&!_1"}}]}],n:50,x:{r:["scanType.value"],s:'_0!=="smartscan"'}}]}},components:{ScanSettings:re},data:()=>({scanId:null,loading:!0,advancedSettingsLoading:!0,scan:null,isCustomScan:!0,isNewScan:!1,isFolderError:!1,folders:[],label:null,scanType:null,schedule:null,savingInProgress:!1,windowType:"overlay",advancedSettingsExpanded:!0,advancedSettingsExpandable:!1,advancedSettingsScanId:null}),onconstruct(){this._componentsPromise=i.importModule("Settings","ractiveComponents").then((t=>{for(const e in t)this.components[e]=t[e]}))},computed:{modalTitle:function(){const t=this.get("label")?.value||"";return this._isNewScan?v("scans.customScan.modal.title"):t}},oninit(){this._propsToSave={},this._scheduleChanged=!1,this.listeners=[this.observe("scanId",(t=>{"new"===t?(this.set("label.disabled",!1),this.set("scanType.disabled",!1)):A.isCustomScan(t).then((t=>{this.set("label.disabled",!t),this.set("scanType.disabled",!t)}))})),this.observe("scanType.value",(t=>{t!==this.get("scanType.storedValue")&&this.set("advancedSettingsLoading",!0)})),this.observe("scanType.storedValue",((t,e)=>{null!=t&&this.set("advancedSettingsLoading",!1),t!==x.FOLDER||this._isNewScan||e||this.getScanAreas(!0).then((t=>{this.set("folders",t)}))})),this.on("addFolders",this.addFolders.bind(this)),this.on("removeFolder",(t=>{this.removeFolder(t.context)})),this.on("toggleAdvancedSettingsExpanded",(t=>{t.original.preventDefault(),this.toggle("advancedSettingsExpanded")})),this.on("cancel",(t=>{this.fire("close")})),this.on("ScanSettings.scanPropertyToSave",((t,e)=>{this.addPropToSave(t,e)})),this.on("save",(t=>{if(!this.isLabelValid())return;if(!this.isFolderValid())return;this.set("savingInProgress",!0);const e=[];for(const n in this._propsToSave)e.push({name:n,value:this._propsToSave[n]});e.length?this._isNewScan?this.createNewScan(e):this.saveScan(this.scan,e):this.fire("close")}))];let t=this.get("scanId");"new"===t?(this.set("advancedSettingsScanId",S),t=S,this._isNewScan=!0,this.set("isNewScan",this._isNewScan)):this.set("advancedSettingsScanId",t),Promise.all([A.getScan(t),this._componentsPromise]).then((t=>{this.scan=t[0],this.setProperties(),this.set("loading",!1),this._isNewScan&&"overlay"===this.get("windowType")&&this.focusLabelInput()})).catch((t=>{le.error("loading scan failed",t)}))},onteardown(){for(;this.listeners.length;)this.listeners.pop().cancel()},createNewScan(t){this.set("loading",!0),A.createScan().then((e=>{A.getScan(e).then((e=>{this.saveScan(e,t)}))}))},focusLabelInput(){const t=this.get("label");0===t.value.length&&(this._scanNameInput||(this._scanNameInput=this.find("#"+t.id)),this._scanNameInput.focus())},focusAddFolderButton(){const t=this.find("#scn_scan-custom-add-folders");t&&t.focus()},isLabelValid(){const t=this.get("label.value").length;return t||this.focusLabelInput(),t},isFolderValid(){const t=this.get("scanType.storedValue"),e=this.get("folders"),n=t===x.FOLDER&&(!e||"Interactive"===e||Array.isArray(e)&&e.length<1);return this.set("isFolderError",n),n&&this.focusAddFolderButton(),!n},saveScan(t,e){if(t.getId()===S)return console.error("Cannot save default scan as custom",S),void this.fire("close");t.saveProps(e).then((()=>{this._scheduleChanged?this.getScheduleTiming(!0).then(this.saveScheduleTiming.bind(this)).then((()=>s("app.scanViruses.ReloadScheduler"))).then((()=>{this.fire("close")})):this.fire("close")})).catch((t=>{console.error("Failed to save Custom scan settings",t),this.fire("close")}))},addPropToSave(t,e){this._propsToSave[t]=e},removePropsToSave(t){for(const e of t)delete this._propsToSave[e]},setProperties(){const t=[{label:v("scans.scanType.full"),value:x.FULL},{label:v("scans.scanType.folder"),value:x.FOLDER},{label:v("scans.scanType.quick"),value:x.QUICK}];u.smartscan.isSchedulingAllowed()&&t.push({label:v("scans.scanType.smartscan"),value:"smartscan"}),this.set({label:{id:"scans-custom-settings-label",label:v("scans.scanName"),load:this.getScanLabel.bind(this),change:this.changeScanProp.bind(this,"Label"),required:!0,testAttr:"scn_scan-custom-scan-name",maxLength:60},scanType:{id:"scans-custom-settings-scanType",label:v("scans.scanType"),load:this.getScanType.bind(this),change:this.changeScanType.bind(this),options:t,testAttr:"scn_scan-custom-scan-type"},schedule:{frequency:{id:"scans-custom-settings-schedule-frequency",label:v("scans.schedule.frequency"),load:this.getScheduleFrequency.bind(this),change:this.changeScheduleFrequency.bind(this),options:[{label:v("scans.schedule.never.label"),value:""},{label:v("scans.schedule.once.label"),value:"Once"},{label:v("scans.schedule.daily.label"),value:"Daily"},{label:v("scans.schedule.weekly.label"),value:"Weekly"},{label:v("scans.schedule.monthly.label"),value:"Monthly"}],testAttr:"scn_scan-custom-scan-frequency"},date:{id:"scans-custom-settings-schedule-date",label:v("scans.schedule.date"),type:"date",load:this.getScheduleDate.bind(this),change:this.changeScheduleDate.bind(this),required:!0,testAttr:"scn_scan-custom-scan-schedule-date"},dayOfWeek:{id:"scans-custom-settings-schedule-dayOfWeek",label:v("scans.schedule.dayOfWeek"),load:this.getScheduleDay.bind(this),change:this.changeScheduleDay.bind(this),options:_.weekdays(!0).map(((t,e)=>({label:t,value:e+1}))),testAttr:"scn_scan-custom-scan-schedule-day-of-week"},dayOfMonth:{id:"scans-custom-settings-schedule-dayOfMonth",label:v("scans.schedule.dayOfMonth"),load:this.getScheduleDay.bind(this),change:this.changeScheduleDayOfMonth.bind(this),required:!0,testAttr:"scn_scan-custom-scan-schedule-day-of-month"},time:{id:"scans-custom-settings-schedeule-time",label:v("scans.schedule.time"),type:"time",load:this.getScheduleTime.bind(this),change:this.changeScheduleTime.bind(this),required:!0,testAttr:"scn_scan-custom-scan-schedule-time"}}})},getScanLabel(){return this._isNewScan?Promise.resolve({locked:!1,value:""}):this.scan.loadProp("Label")},getScanType(t){return this.scan.loadProp("Job").then((e=>"SmartScan"===e.value?{locked:e.locked,value:"smartscan"}:this.getScanAreas(t).then((t=>{let e;return e=ue.every((e=>t.includes(e)))?x.QUICK:t.includes("AllHarddisks")||t.includes("SystemDisk")?x.FULL:x.FOLDER,{locked:!1,value:e}}))))},changeScanProp(t,e){return this.addPropToSave(t,e),Promise.resolve()},changeScanType(t){this.removePropsToSave(["ScanType","TaskSensitivity","UseCodeEmulation","Job","ScanAreas"]);let e=[];const n={ScanType:"Content",TaskSensitivity:"80",UseCodeEmulation:"1",Job:"Scan"};switch(t){case x.QUICK:e=ue,n.ScanType="Extensions",n.TaskSensitivity="40",n.UseCodeEmulation="0";break;case"smartscan":n.Job="SmartScan"}for(const s in n)this.addPropToSave(s,n[s]);return this.saveScanAreas(e),Promise.resolve()},getScheduleFrequency(){return this.scan.loadProp("SchedulerEnabled").then((t=>"1"==t.value)).then((t=>t?this.scan.loadProp("SchedType"):{locked:!1,value:""}))},changeScheduleFrequency(t){return this.addPropToSave("SchedulerEnabled",t?"1":"0"),t&&(this.addPropToSave("SchedType",t),this.addPropToSave("SchedDays","127"),this.addPropToSave("SchedTime","0")),this.getScheduleTiming(!0).then((t=>{this._scheduleChanged=!0,this.saveScheduleTiming(t)}))},getScheduleDate(t){return this.getScheduleTiming(t).then((t=>({locked:!1,value:t.date})))},changeScheduleDate(t){return this.saveScheduleTiming({date:t}),Promise.resolve()},getScheduleDay(t){return this.getScheduleTiming(t).then((t=>({locked:!1,value:t.day})))},changeScheduleDay(t){return this.saveScheduleTiming({day:t}),Promise.resolve()},changeScheduleDayOfMonth(t){return+t>31?Promise.reject("invalid date "+t):this.changeScheduleDay(t)},getScheduleTime(t){return this.getScheduleTiming(t).then((t=>({locked:!1,value:t.time})))},changeScheduleTime(t){return this.saveScheduleTiming({time:t}),Promise.resolve()},getScheduleTiming(t){return!t&&this.scheduleTimingPromise||(this.scheduleTimingPromise=this.scan.loadProp("SchedTime")),this.scheduleTimingPromise.then((t=>{const e=new Date(1e3*t.value);let n;return e.getTime()?(n={},"Once"===this.get("schedule.frequency.value")?(n.date=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),n.time=e.getHours()+":"+e.getMinutes()):(n.day=e.getUTCDate(),n.time=e.getUTCHours()+":"+e.getUTCMinutes())):n=this.getDefaultScheduleTiming(),this.addZerosToScheduleTiming(n)}))},saveScheduleTiming(t){const e=this.get("schedule.frequency.value"),n="Once"!==e;let s;switch(t.time=t.time||this.get("schedule.time.value"),e){case"Once":t.date=t.date||this.get("schedule.date.value");break;case"Daily":t.date="1970-01-01";break;case"Weekly":s=t.day||this.get("schedule.dayOfWeek.value"),t.date="1970-01-"+s;break;case"Monthly":s=t.day||this.get("schedule.dayOfMonth.value"),t.date="1970-01-"+s;break;default:return}this.addZerosToScheduleTiming(t);const a=new Date(t.date+"T"+t.time+(n?"Z":""));isNaN(a)&&console.error("invalid date or time: "+JSON.stringify(t)),this.addPropToSave("SchedTime",a/1e3),this._scheduleChanged=!0},getDefaultScheduleTiming(){const t=new Date;return{day:1,date:t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate(),time:t.getHours()+":"+t.getMinutes()}},addZerosToScheduleTiming:t=>(t.time=t.time.split(":").map((t=>("0"+t).slice(-2))).join(":"),t.date&&(t.date=t.date.split("-").map((t=>1===t.length?"0"+t:t)).join("-")),t),addFolders(){s("app.utils.SelectFolders",{alsoFiles:!1}).then((t=>{if("ok"===t.dialogReturnCode){const e=this.get("folders");t.paths.split(";").forEach((t=>{t=t.replace(de,""),e.includes(t)||e.push(t)})),this.saveScanAreas(e)}}))},removeFolder(t){const e=this.get("folders"),n=e.findIndex((e=>e===t));e.splice(n,1),this.saveScanAreas(e)},getScanAreas(t){return!t&&this.scanAreasPromise||(this.scanAreasPromise=this.scan.loadProp("ScanAreas")),this.scanAreasPromise.then((t=>{let e=[];return t&&t.value&&(e=t.value.split(";").map((t=>t.replace(de,"")))),e}))},saveScanAreas(t){const e=t.map((t=>'"'+t+'"')).join(";");this.addPropToSave("ScanAreas",e)}}),pe=t.extend({template:{v:3,t:[{t:7,e:"Page",a:{heading:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory")'}}],cssCls:"scn",backHash:[{t:2,r:"backHash"}]},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{section:"security",moduleId:"scans",customBreadcrumbs:[{t:2,r:"breadcrumbCustomLinks"}]}}]}," ",{t:7,e:"div",a:{slot:"page-content"},f:[{t:4,f:[{t:7,e:"ScanHistoryDetail",a:{scanId:[{t:2,r:"scanId"}],sessionId:[{t:2,r:"sessionId"}]}}],n:50,x:{r:["scanHistoryDetailLoaded","scanId","sessionId"],s:"_0&&_1&&_2"}},{t:4,n:51,f:[{t:7,e:"kin-view",a:{loading:[{t:2,r:"loading"}]},f:[{t:4,f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.desc")'}}]}]}],n:50,r:"scans.length"},{t:4,n:51,f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.noScans")'}}]}]}],r:"scans.length"}," ",{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"kin-table",a:{datalength:[{t:2,r:"scans.length"}]},f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"scn_history__row"},f:[{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanName")'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("scans.scanHistory.dateScanned")'}}]}," ",{t:7,e:"div"}]}," ",{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"ScanHistoryRow",a:{scan:[{t:2,r:"."}]}}],n:52,r:"scans"}]}," ",{t:7,e:"div",a:{slot:"table-empty-icon",class:"svg -empty-table"}}]}]}]}],x:{r:["scanHistoryDetailLoaded","scanId","sessionId"],s:"_0&&_1&&_2"}}]}]}]},components:{},data:()=>({loading:!0,scans:null,scanId:null,sessionId:null,scanTitle:null,scanHistoryDetailLoaded:!1}),computed:{backHash:function(){return this.get("scanId")&&this.get("sessionId")?"#Scans/scanHistory":"#Scans"},breadcrumbCustomLinks:function(){const t=[{title:v("scans.scanHistory"),url:"#Scans/scanHistory"}],e=this.get("scanId"),n=this.get("sessionId");return e&&n&&t.push({title:this.get("scanTitle"),url:"#Scans/scanHistory/"+e+"/"+n}),t}},onrender(){this.components.ScanHistoryDetail=A.getBrandedComponent("ScanHistoryDetail"),this.components.ScanHistoryRow=A.getBrandedComponent("ScanHistoryRow"),this.set("scanHistoryDetailLoaded",!0)},oninit(){this._scan=null;const t=this.get("scanId"),e=this.get("sessionId");t&&e?A.getScanHistoryDetail(t,e).then((t=>{t&&this.set("scanTitle",t.label)})).catch((t=>{console.error("getScanHistoryDetail error",t)})):A.getScanHistory().then((t=>{this.set("scans",t),this.set("loading",!1)})).catch((t=>{console.error("getScanHistory error",t)})),this.listeners=[this.on("ScanHistoryRow.showThreats",((t,e,n)=>{location.hash="#Scans/scanHistory/"+e+"/"+n,this.set({scanId:e,sessionId:n})})),this.on("ThreatsList.threatsResolved ThreatsList.threatsSkip",(()=>{this.set({scanId:null,sessionId:null}),location.hash="#Scans/scanHistory"}))]},onteardown(){for(;this.listeners.length;)this.listeners.pop().cancel()}}),fe=t.extend({template:{v:3,t:[{t:7,e:"Page",a:{heading:[{t:2,x:{r:["scanStopped","scanState","SCAN_STATES.scanned","nls"],s:'_0||_1===_2?"":_3("tuneup.performanceScan.title")'}}],csscls:"-center-all",backevent:"true"},f:[{t:7,e:"div",a:{slot:"page-content",class:"kin_page-content -scan"},f:[{t:7,e:"div",a:{class:"kin_scan"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:4,f:[{t:7,e:"p",a:{class:"kin_description__text -center"},f:[{t:2,x:{r:["nls"],s:'_0("tuneup.scanning.desc")'}}]}],n:50,x:{r:["scanState","SCAN_STATES.scanning"],s:"_0===_1"}}]}," ",{t:7,e:"div",a:{id:"performance",emptyCta:"done"}}]}]}]}]},data:()=>({SCAN_STATES:null,scanSate:null,scanStopped:null}),oninit(){i.init().then((()=>{Promise.all([i.importModule("Tuneup","PerformanceScan"),i.importModule("Tuneup","ServiceProxy")]).then((([t,e])=>{this.set({SCAN_STATES:e.SCAN_STATES}),this.performanceScan=g(t,{target:document.getElementById("performance")}),this.performanceScan.set("emptyCta","done"),this.performanceScan.fire("startScan"),this.performanceScan.on("resolve goBack skip",(()=>{location.hash="#Dashboard"})),this.performanceScan.on("update",(t=>{this.set({scanState:t})})),this.performanceScan.on("scanStopped",(t=>{this.set({scanStopped:t})}))}))}))},onteardown(){this.performanceScan&&this.performanceScan.teardown&&this.performanceScan.teardown()}});function me(){}function ge(t){return t()}function be(){return Object.create(null)}function we(t){t.forEach(ge)}function ve(t){return"function"==typeof t}function _e(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Se(t,e,n,s){if(t){const a=ye(t,e,n,s);return t[0](a)}}function ye(t,e,n,s){return t[1]&&s?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](s(e))):n.ctx}function xe(t,e,n,s,a,i,o){const c=function(t,e,n,s){if(t[2]&&s){const a=t[2](s(n));if(void 0===e.dirty)return a;if("object"==typeof a){const t=[],n=Math.max(e.dirty.length,a.length);for(let s=0;s<n;s+=1)t[s]=e.dirty[s]|a[s];return t}return e.dirty|a}return e.dirty}(e,s,a,i);if(c){const a=ye(e,n,s,o);t.p(a,c)}}function ke(t,e){t.appendChild(e)}function Te(t,e,n){t.insertBefore(e,n||null)}function Ce(t){t.parentNode.removeChild(t)}function De(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Ae(t){return document.createElement(t)}function Ie(t){return document.createTextNode(t)}function Pe(){return Ie(" ")}function Ee(){return Ie("")}function Ne(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function Re(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Le(t,e,n){e in t?t[e]=n:Re(t,e,n)}function Oe(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $e(t,e,n,s){t.style.setProperty(e,n,s?"important":"")}function Fe(t,e,n){t.classList[n?"add":"remove"](e)}let Me;function We(t){Me=t}function Be(){if(!Me)throw new Error("Function called outside component initialization");return Me}function Ue(t){Be().$$.on_mount.push(t)}function He(t){Be().$$.on_destroy.push(t)}function je(){const t=Be();return(e,n)=>{const s=t.$$.callbacks[e];if(s){const a=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);s.slice().forEach((e=>{e.call(t,a)}))}}}const Ge=[],Ve=[],Ke=[],ze=[],qe=Promise.resolve();let Ze=!1;function Je(t){Ke.push(t)}let Ye=!1;const Xe=new Set;function Qe(){if(!Ye){Ye=!0;do{for(let t=0;t<Ge.length;t+=1){const e=Ge[t];We(e),tn(e.$$)}for(We(null),Ge.length=0;Ve.length;)Ve.pop()();for(let t=0;t<Ke.length;t+=1){const e=Ke[t];Xe.has(e)||(Xe.add(e),e())}Ke.length=0}while(Ge.length);for(;ze.length;)ze.pop()();Ze=!1,Ye=!1,Xe.clear()}}function tn(t){if(null!==t.fragment){t.update(),we(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Je)}}const en=new Set;let nn;function sn(){nn={r:0,c:[],p:nn}}function an(){nn.r||we(nn.c),nn=nn.p}function on(t,e){t&&t.i&&(en.delete(t),t.i(e))}function cn(t,e,n,s){if(t&&t.o){if(en.has(t))return;en.add(t),nn.c.push((()=>{en.delete(t),s&&(n&&t.d(1),s())})),t.o(e)}}const rn="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ln(t){t&&t.c()}function dn(t,e,n,s){const{fragment:a,on_mount:i,on_destroy:o,after_update:c}=t.$$;a&&a.m(e,n),s||Je((()=>{const e=i.map(ge).filter(ve);o?o.push(...e):we(e),t.$$.on_mount=[]})),c.forEach(Je)}function un(t,e){const n=t.$$;null!==n.fragment&&(we(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function hn(t,e){-1===t.$$.dirty[0]&&(Ge.push(t),Ze||(Ze=!0,qe.then(Qe)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function pn(t,e,n,s,a,i,o=[-1]){const c=Me;We(t);const r=t.$$={fragment:null,ctx:null,props:i,update:me,not_equal:a,bound:be(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:be(),dirty:o,skip_bound:!1};let l=!1;if(r.ctx=n?n(t,e.props||{},((e,n,...s)=>{const i=s.length?s[0]:n;return r.ctx&&a(r.ctx[e],r.ctx[e]=i)&&(!r.skip_bound&&r.bound[e]&&r.bound[e](i),l&&hn(t,e)),n})):[],r.update(),l=!0,we(r.before_update),r.fragment=!!s&&s(r.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);r.fragment&&r.fragment.l(t),t.forEach(Ce)}else r.fragment&&r.fragment.c();e.intro&&on(t.$$.fragment),dn(t,e.target,e.anchor,e.customElement),Qe()}We(c)}class fn{$destroy(){un(this,1),this.$destroy=me}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var mn=/^\s+|\s+$/g,gn=/^[-+]0x[0-9a-f]+$/i,bn=/^0b[01]+$/i,wn=/^0o[0-7]+$/i,vn=parseInt,_n="object"==typeof N&&N&&N.Object===Object&&N,Sn="object"==typeof self&&self&&self.Object===Object&&self,yn=_n||Sn||Function("return this")(),xn=Object.prototype.toString,kn=Math.max,Tn=Math.min,Cn=function(){return yn.Date.now()};function Dn(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function An(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==xn.call(t)}(t))return NaN;if(Dn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Dn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(mn,"");var n=bn.test(t);return n||wn.test(t)?vn(t.slice(2),n?2:8):gn.test(t)?NaN:+t}var In=function(t,e,n){var s,a,i,o,c,r,l=0,d=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=s,i=a;return s=a=void 0,l=e,o=t.apply(i,n)}function f(t){return l=t,c=setTimeout(g,e),d?p(t):o}function m(t){var n=t-r;return void 0===r||n>=e||n<0||u&&t-l>=i}function g(){var t=Cn();if(m(t))return b(t);c=setTimeout(g,function(t){var n=e-(t-r);return u?Tn(n,i-(t-l)):n}(t))}function b(t){return c=void 0,h&&s?p(t):(s=a=void 0,o)}function w(){var t=Cn(),n=m(t);if(s=arguments,a=this,r=t,n){if(void 0===c)return f(r);if(u)return c=setTimeout(g,e),p(r)}return void 0===c&&(c=setTimeout(g,e)),o}return e=An(e)||0,Dn(n)&&(d=!!n.leading,i=(u="maxWait"in n)?kn(An(n.maxWait)||0,e):i,h="trailing"in n?!!n.trailing:h),w.cancel=function(){void 0!==c&&clearTimeout(c),l=0,s=r=a=c=void 0},w.flush=function(){return void 0===c?o:b(Cn())},w};const{window:Pn}=rn;function En(t,e,n){const s=t.slice();return s[49]=e[n],s}function Nn(t,e,n){const s=t.slice();return s[52]=e[n],s}function Rn(t,e,n){const s=t.slice();return s[55]=e[n],s[57]=n,s}const Ln=t=>({}),On=t=>({});function $n(t){let e,n,s,a,i,o,c,r,l,d,u,h,p,f,m,g,b,w,_,S,y,x,k,T=t[0].icon&&Fn(t),C=t[0].title&&Un(t);const D=t[30].default,A=Se(D,t,t[29],null);let I=t[0].text&&Hn(t),P=t[0].actionText&&jn(t);const E=t[30]["custom-content"],N=Se(E,t,t[29],On);let R=!t[3]&&t[0].actions&&t[0].actions.length&&Gn(t),L=t[3]&&Yn(t),O=t[0].dontShowAgain&&Qn(t),$=t[0].details&&t[0].details.length&&ts(t),F=t[2]&&ss(t),M=(t[11]||t[14]>1)&&bs(t);return{c(){e=Ae("div"),n=Ae("div"),s=Ae("h1"),s.innerHTML='<span class="logo -white -width-70"></span>',a=Pe(),i=Ae("div"),o=Ae("button"),c=Pe(),r=Ae("div"),T&&T.c(),l=Pe(),C&&C.c(),d=Pe(),A&&A.c(),u=Pe(),I&&I.c(),h=Pe(),P&&P.c(),p=Pe(),N&&N.c(),f=Pe(),R&&R.c(),m=Pe(),L&&L.c(),g=Pe(),O&&O.c(),b=Pe(),$&&$.c(),w=Pe(),F&&F.c(),_=Pe(),M&&M.c(),Re(s,"class","nui_logo"),Re(o,"class","nui_controls__item -close nui_caption_client g-cursor--pointer"),Re(o,"title",v("global.closeModalWindow")),Re(i,"class","nui_controls"),Re(n,"class","nui_titlebar -toaster nui_caption"),Re(r,"class","sve_toaster__main"),Fe(r,"-auto-v-scroll",t[10]),Re(e,"class",S="sve_toaster -detection "+(t[0].color?"-"+t[0].color:"")),$e(e,"width",t[1]+"px")},m(v,S){var D;Te(v,e,S),ke(e,n),ke(n,s),ke(n,a),ke(n,i),ke(i,o),ke(e,c),ke(e,r),T&&T.m(r,null),ke(r,l),C&&C.m(r,null),ke(r,d),A&&A.m(r,null),ke(r,u),I&&I.m(r,null),ke(r,h),P&&P.m(r,null),ke(r,p),N&&N.m(r,null),ke(r,f),R&&R.m(r,null),ke(r,m),L&&L.m(r,null),ke(r,g),O&&O.m(r,null),ke(r,b),$&&$.m(r,null),ke(e,w),F&&F.m(e,null),ke(e,_),M&&M.m(e,null),y=!0,x||(k=[Ne(o,"click",t[19]),(D=t[24].call(null,e),D&&ve(D.destroy)?D.destroy:me)],x=!0)},p(t,n){t[0].icon?T?T.p(t,n):(T=Fn(t),T.c(),T.m(r,l)):T&&(T.d(1),T=null),t[0].title?C?C.p(t,n):(C=Un(t),C.c(),C.m(r,d)):C&&(C.d(1),C=null),A&&A.p&&536870912&n[0]&&xe(A,D,t,t[29],n,null,null),t[0].text?I?I.p(t,n):(I=Hn(t),I.c(),I.m(r,h)):I&&(I.d(1),I=null),t[0].actionText?P?P.p(t,n):(P=jn(t),P.c(),P.m(r,p)):P&&(P.d(1),P=null),N&&N.p&&536870912&n[0]&&xe(N,E,t,t[29],n,Ln,On),!t[3]&&t[0].actions&&t[0].actions.length?R?R.p(t,n):(R=Gn(t),R.c(),R.m(r,m)):R&&(R.d(1),R=null),t[3]?L?L.p(t,n):(L=Yn(t),L.c(),L.m(r,g)):L&&(L.d(1),L=null),t[0].dontShowAgain?O?O.p(t,n):(O=Qn(t),O.c(),O.m(r,b)):O&&(O.d(1),O=null),t[0].details&&t[0].details.length?$?$.p(t,n):($=ts(t),$.c(),$.m(r,null)):$&&($.d(1),$=null),1024&n[0]&&Fe(r,"-auto-v-scroll",t[10]),t[2]?F?F.p(t,n):(F=ss(t),F.c(),F.m(e,_)):F&&(F.d(1),F=null),t[11]||t[14]>1?M?M.p(t,n):(M=bs(t),M.c(),M.m(e,null)):M&&(M.d(1),M=null),(!y||1&n[0]&&S!==(S="sve_toaster -detection "+(t[0].color?"-"+t[0].color:"")))&&Re(e,"class",S),(!y||2&n[0])&&$e(e,"width",t[1]+"px")},i(t){y||(on(A,t),on(N,t),y=!0)},o(t){cn(A,t),cn(N,t),y=!1},d(t){t&&Ce(e),T&&T.d(),C&&C.d(),A&&A.d(t),I&&I.d(),P&&P.d(),N&&N.d(t),R&&R.d(),L&&L.d(),O&&O.d(),$&&$.d(),F&&F.d(),M&&M.d(),x=!1,we(k)}}}function Fn(t){let e;function n(t,e){return t[0].icon.base64data?Wn:Mn}let s=n(t),a=s(t);return{c(){e=Ae("div"),a.c(),Re(e,"class","sve_toaster__icon__container")},m(t,n){Te(t,e,n),a.m(e,null)},p(t,i){s===(s=n(t))&&a?a.p(t,i):(a.d(1),a=s(t),a&&(a.c(),a.m(e,null)))},d(t){t&&Ce(e),a.d()}}}function Mn(t){let e,n,s,a,i,o,c,r=t[0].icon.color&&Bn(t);return{c(){e=Ae("kin-icon"),s=Pe(),a=Ae("kin-icon"),o=Pe(),r&&r.c(),c=Ee(),Le(e,"illustration","true"),Le(e,"name",n="ok"==t[0].icon.color?"i-detection-ok":"critical"==t[0].icon.color?"i-detection-critical":""),Le(e,"size","144"),Le(e,"width","264"),Le(e,"class","sve_toaster__icon__bg"),Le(a,"class","sve_toaster__icon"),Le(a,"name",i=t[0].icon.name),Le(a,"size","72")},m(t,n){Te(t,e,n),Te(t,s,n),Te(t,a,n),Te(t,o,n),r&&r.m(t,n),Te(t,c,n)},p(t,s){1&s[0]&&n!==(n="ok"==t[0].icon.color?"i-detection-ok":"critical"==t[0].icon.color?"i-detection-critical":"")&&Le(e,"name",n),1&s[0]&&i!==(i=t[0].icon.name)&&Le(a,"name",i),t[0].icon.color?r?r.p(t,s):(r=Bn(t),r.c(),r.m(c.parentNode,c)):r&&(r.d(1),r=null)},d(t){t&&Ce(e),t&&Ce(s),t&&Ce(a),t&&Ce(o),r&&r.d(t),t&&Ce(c)}}}function Wn(t){let e,n,s;return{c(){e=Ae("img"),Re(e,"class","kin-img"),Re(e,"height","60"),e.src!==(n="data:image/png;base64,"+t[0].icon.base64data)&&Re(e,"src",n),Re(e,"alt",s=t[0].title)},m(t,n){Te(t,e,n)},p(t,a){1&a[0]&&e.src!==(n="data:image/png;base64,"+t[0].icon.base64data)&&Re(e,"src",n),1&a[0]&&s!==(s=t[0].title)&&Re(e,"alt",s)},d(t){t&&Ce(e)}}}function Bn(t){let e,n;return{c(){e=Ae("kin-icon"),Le(e,"class","sve_toaster__icon__status"),Le(e,"name",n="ok"==t[0].icon.color?"icon-s-fill-secured":"icon-s-fill-unsecured"),Le(e,"size","32")},m(t,n){Te(t,e,n)},p(t,s){1&s[0]&&n!==(n="ok"==t[0].icon.color?"icon-s-fill-secured":"icon-s-fill-unsecured")&&Le(e,"name",n)},d(t){t&&Ce(e)}}}function Un(t){let e,n=t[0].title+"";return{c(){e=Ae("h2"),Re(e,"class","sve_toaster__title h2")},m(t,s){Te(t,e,s),e.innerHTML=n},p(t,s){1&s[0]&&n!==(n=t[0].title+"")&&(e.innerHTML=n)},d(t){t&&Ce(e)}}}function Hn(t){let e,n=t[0].text+"";return{c(){e=Ae("p"),Re(e,"class","sve_toaster__text p")},m(t,s){Te(t,e,s),e.innerHTML=n},p(t,s){1&s[0]&&n!==(n=t[0].text+"")&&(e.innerHTML=n)},d(t){t&&Ce(e)}}}function jn(t){let e,n,s=t[0].actionText+"";return{c(){e=Ae("p"),n=Ie(s),Re(e,"class","sve_toaster__text p -small -secondary")},m(t,s){Te(t,e,s),ke(e,n)},p(t,e){1&e[0]&&s!==(s=t[0].actionText+"")&&Oe(n,s)},d(t){t&&Ce(e)}}}function Gn(t){let e,n,s,a,i,o,c,r,l,d,u,h,p=t[0].actions[0].label+"",f=null!=t[9]&&Vn(t),m=1===t[0].actions.length&&t[14]>1&&t[15]&&Kn(t);function g(t,e){return 2!==t[0].actions.length||t[0].hideSecondAction?t[0].actions.length>2||t[0].hideSecondAction&&t[0].actions.length>1?zn:void 0:qn}let b=g(t),w=b&&b(t),v=t[0].errorText&&Jn(t);return{c(){e=Ae("div"),n=Ae("kin-button"),s=Ae("span"),a=Ie(p),i=Pe(),f&&f.c(),c=Pe(),m&&m.c(),r=Pe(),w&&w.c(),l=Pe(),v&&v.c(),d=Ee(),Le(n,"processing",t[8]),Le(n,"data-test",o="dd_primary_"+t[0].actions[0].labelTest||"dd_primary_btn"),Re(e,"class","sve_toaster__btns")},m(o,p){Te(o,e,p),ke(e,n),ke(n,s),ke(s,a),ke(s,i),f&&f.m(s,null),ke(e,c),m&&m.m(e,null),ke(e,r),w&&w.m(e,null),Te(o,l,p),v&&v.m(o,p),Te(o,d,p),u||(h=Ne(n,"click",t[31]),u=!0)},p(t,i){1&i[0]&&p!==(p=t[0].actions[0].label+"")&&Oe(a,p),null!=t[9]?f?f.p(t,i):(f=Vn(t),f.c(),f.m(s,null)):f&&(f.d(1),f=null),256&i[0]&&Le(n,"processing",t[8]),1&i[0]&&o!==(o="dd_primary_"+t[0].actions[0].labelTest||"dd_primary_btn")&&Le(n,"data-test",o),1===t[0].actions.length&&t[14]>1&&t[15]?m?m.p(t,i):(m=Kn(t),m.c(),m.m(e,r)):m&&(m.d(1),m=null),b===(b=g(t))&&w?w.p(t,i):(w&&w.d(1),w=b&&b(t),w&&(w.c(),w.m(e,null))),t[0].errorText?v?v.p(t,i):(v=Jn(t),v.c(),v.m(d.parentNode,d)):v&&(v.d(1),v=null)},d(t){t&&Ce(e),f&&f.d(),m&&m.d(),w&&w.d(),t&&Ce(l),v&&v.d(t),t&&Ce(d),u=!1,h()}}}function Vn(t){let e,n,s;return{c(){e=Ie("("),n=Ie(t[9]),s=Ie(")")},m(t,a){Te(t,e,a),Te(t,n,a),Te(t,s,a)},p(t,e){512&e[0]&&Oe(n,t[9])},d(t){t&&Ce(e),t&&Ce(n),t&&Ce(s)}}}function Kn(t){let e,n,s,a,i,o,c,r=v("detection.action.closeAll")+"";return{c(){e=Ae("kin-button"),n=Ie(r),s=Ie("\n\t\t\t\t\t\t\t("),a=Ie(t[14]),i=Ie(")"),Le(e,"class","g-margin-left--10"),Le(e,"kin-disabled",t[8]),Le(e,"data-test","closeAll"),Le(e,"type","secondary")},m(r,l){Te(r,e,l),ke(e,n),ke(e,s),ke(e,a),ke(e,i),o||(c=Ne(e,"click",t[19]),o=!0)},p(t,n){16384&n[0]&&Oe(a,t[14]),256&n[0]&&Le(e,"kin-disabled",t[8])},d(t){t&&Ce(e),o=!1,c()}}}function zn(t){let e,n,s,a,i,o,c,r,l=v("global.moreOptions")+"",d=t[0].actions,u=[];for(let h=0;h<d.length;h+=1)u[h]=Zn(Rn(t,d,h));return{c(){e=Ae("kin-dropdown"),n=Ae("div"),s=Ae("kin-button"),a=Ie(l),i=Pe(),o=Ae("kin-icon"),c=Pe(),r=Ae("div");for(let t=0;t<u.length;t+=1)u[t].c();Le(o,"class","g-margin-left--5"),Le(o,"name","icon-s-controls-arrow-down"),Le(o,"size","16"),Le(s,"type","secondary"),Le(s,"data-test","dd_dropdown_btn"),Re(n,"slot","dropdown-activator"),Le(e,"class","g-margin-left--10")},m(t,l){Te(t,e,l),ke(e,n),ke(n,s),ke(s,a),ke(s,i),ke(s,o),ke(e,c),ke(e,r);for(let e=0;e<u.length;e+=1)u[e].m(r,null)},p(t,e){if(8388609&e[0]){let n;for(d=t[0].actions,n=0;n<d.length;n+=1){const s=Rn(t,d,n);u[n]?u[n].p(s,e):(u[n]=Zn(s),u[n].c(),u[n].m(r,null))}for(;n<u.length;n+=1)u[n].d(1);u.length=d.length}},d(t){t&&Ce(e),De(u,t)}}}function qn(t){let e,n,s,a,i,o=t[0].actions[1].label+"";return{c(){e=Ae("kin-button"),n=Ie(o),Le(e,"class","g-margin-left--10"),Le(e,"kin-disabled",t[8]),Le(e,"data-test",s="dd_secondary_"+t[0].actions[1].labelTest||"dd_secondary_btn"),Le(e,"type","secondary")},m(s,o){Te(s,e,o),ke(e,n),a||(i=Ne(e,"click",t[32]),a=!0)},p(t,a){1&a[0]&&o!==(o=t[0].actions[1].label+"")&&Oe(n,o),256&a[0]&&Le(e,"kin-disabled",t[8]),1&a[0]&&s!==(s="dd_secondary_"+t[0].actions[1].labelTest||"dd_secondary_btn")&&Le(e,"data-test",s)},d(t){t&&Ce(e),a=!1,i()}}}function Zn(t){let e,n=0!==t[57]&&function(t){let e,n,s,a,i,o,c=t[55].label+"";function r(){return t[33](t[57])}return{c(){e=Ae("kin-dropdown-item"),n=Ie(c),s=Pe(),Le(e,"data-test",a="dd_dropdown_"+t[55].labelTest||"dd_dropdown_"+t[57])},m(t,a){Te(t,e,a),ke(e,n),ke(e,s),i||(o=Ne(e,"click",r),i=!0)},p(s,i){t=s,1&i[0]&&c!==(c=t[55].label+"")&&Oe(n,c),1&i[0]&&a!==(a="dd_dropdown_"+t[55].labelTest||"dd_dropdown_"+t[57])&&Le(e,"data-test",a)},d(t){t&&Ce(e),i=!1,o()}}}(t);return{c(){n&&n.c(),e=Ee()},m(t,s){n&&n.m(t,s),Te(t,e,s)},p(t,e){0!==t[57]&&n.p(t,e)},d(t){n&&n.d(t),t&&Ce(e)}}}function Jn(t){let e,n,s=t[0].errorText+"";return{c(){e=Ae("p"),n=Ie(s),Re(e,"class","g-margin-top--5 g-margin-bottom--10 p -small -secondary -text color-danger")},m(t,s){Te(t,e,s),ke(e,n)},p(t,e){1&e[0]&&s!==(s=t[0].errorText+"")&&Oe(n,s)},d(t){t&&Ce(e)}}}function Yn(t){let e,n,s,a=(t[5]||t[4]&&t[4].text)&&Xn(t);return{c(){e=Ae("div"),n=Ae("kin-progress"),s=Pe(),a&&a.c(),Le(n,"percentage","-1"),Re(e,"class","sve_toaster__progress")},m(t,i){Te(t,e,i),ke(e,n),ke(e,s),a&&a.m(e,null)},p(t,n){t[5]||t[4]&&t[4].text?a?a.p(t,n):(a=Xn(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},d(t){t&&Ce(e),a&&a.d()}}}function Xn(t){let e,n,s=(t[5]||t[4].text)+"";return{c(){e=Ae("p"),n=Ie(s),Re(e,"class","g-margin-top--10 p -small -secondary")},m(t,s){Te(t,e,s),ke(e,n)},p(t,e){48&e[0]&&s!==(s=(t[5]||t[4].text)+"")&&Oe(n,s)},d(t){t&&Ce(e)}}}function Qn(t){let e,n,s,a,i,o,c,r=t[0].dontShowAgain.label+"";return{c(){e=Ae("p"),n=Ae("input"),s=Pe(),a=Ae("label"),i=Ie(r),Re(n,"type","checkbox"),Re(n,"id","detection_dontShowAgain"),Re(n,"class","checkbox"),Re(a,"for","detection_dontShowAgain"),Re(a,"class","g-margin-left--5"),Re(e,"class","sve_toaster__text p  g-margin-top--10")},m(r,l){Te(r,e,l),ke(e,n),ke(e,s),ke(e,a),ke(a,i),o||(c=Ne(n,"click",t[34]),o=!0)},p(t,e){1&e[0]&&r!==(r=t[0].dontShowAgain.label+"")&&Oe(i,r)},d(t){t&&Ce(e),o=!1,c()}}}function ts(t){let e,n,s;function a(t,e){return t[2]?ns:es}let i=a(t),o=i(t);return{c(){e=Ae("button"),o.c(),Re(e,"class","span -small -secondary g-cursor--pointer g-margin-top--10"),Re(e,"data-test","btn_toggleDetails")},m(a,i){Te(a,e,i),o.m(e,null),n||(s=Ne(e,"click",t[20]),n=!0)},p(t,n){i===(i=a(t))&&o?o.p(t,n):(o.d(1),o=i(t),o&&(o.c(),o.m(e,null)))},d(t){t&&Ce(e),o.d(),n=!1,s()}}}function es(t){let e,n,s,a=v("global.showDetails")+"";return{c(){e=Ie(a),n=Pe(),s=Ae("kin-icon"),Le(s,"name","icon-s-controls-arrow-down"),Le(s,"size","16")},m(t,a){Te(t,e,a),Te(t,n,a),Te(t,s,a)},p:me,d(t){t&&Ce(e),t&&Ce(n),t&&Ce(s)}}}function ns(t){let e,n,s,a=v("global.hideDetails")+"";return{c(){e=Ie(a),n=Pe(),s=Ae("kin-icon"),Le(s,"name","icon-s-controls-arrow-up"),Le(s,"size","16")},m(t,a){Te(t,e,a),Te(t,n,a),Te(t,s,a)},p:me,d(t){t&&Ce(e),t&&Ce(n),t&&Ce(s)}}}function ss(t){let e,n,s,a,i,o=t[0].details,c=[];for(let u=0;u<o.length;u+=1)c[u]=cs(Nn(t,o,u));let r=t[4]&&rs(t),l=t[6]&&ds(t),d=t[7]&&us(t);return{c(){e=Ae("div"),n=Ae("dl");for(let t=0;t<c.length;t+=1)c[t].c();s=Ee(),r&&r.c(),a=Ee(),l&&l.c(),i=Ee(),d&&d.c(),Re(n,"class","desclist -short"),Re(e,"class","sve_toaster__details")},m(t,o){Te(t,e,o),ke(e,n);for(let e=0;e<c.length;e+=1)c[e].m(n,null);ke(n,s),r&&r.m(n,null),ke(n,a),l&&l.m(n,null),ke(n,i),d&&d.m(n,null)},p(t,e){if(1&e[0]){let a;for(o=t[0].details,a=0;a<o.length;a+=1){const i=Nn(t,o,a);c[a]?c[a].p(i,e):(c[a]=cs(i),c[a].c(),c[a].m(n,s))}for(;a<c.length;a+=1)c[a].d(1);c.length=o.length}t[4]?r?r.p(t,e):(r=rs(t),r.c(),r.m(n,a)):r&&(r.d(1),r=null),t[6]?l?l.p(t,e):(l=ds(t),l.c(),l.m(n,i)):l&&(l.d(1),l=null),t[7]?d?d.p(t,e):(d=us(t),d.c(),d.m(n,null)):d&&(d.d(1),d=null)},d(t){t&&Ce(e),De(c,t),r&&r.d(),l&&l.d(),d&&d.d()}}}function as(t){let e,n,s,a=t[52].title+"";function i(t,e){return"scoreMeter"===t[52].type&&4>t[52].value?os:is}let o=i(t),c=o(t);return{c(){e=Ae("dt"),n=Ie(a),c.c(),s=Ee()},m(t,a){Te(t,e,a),ke(e,n),c.m(t,a),Te(t,s,a)},p(t,e){1&e[0]&&a!==(a=t[52].title+"")&&Oe(n,a),o===(o=i(t))&&c?c.p(t,e):(c.d(1),c=o(t),c&&(c.c(),c.m(s.parentNode,s)))},d(t){t&&Ce(e),c.d(t),t&&Ce(s)}}}function is(t){let e,n,s,a=t[52].value+"";return{c(){e=Ae("dd"),n=Ie(a),Re(e,"data-test",s=t[52].testValue)},m(t,s){Te(t,e,s),ke(e,n)},p(t,i){1&i[0]&&a!==(a=t[52].value+"")&&Oe(n,a),1&i[0]&&s!==(s=t[52].testValue)&&Re(e,"data-test",s)},d(t){t&&Ce(e)}}}function os(t){let e,n,s,a,i,o,c,r,l;return{c(){e=Ae("dd"),n=Ae("div"),s=Ae("div"),a=Pe(),i=Ae("div"),o=Pe(),c=Ae("div"),l=Pe(),Re(n,"class",r="scoremeter -val-"+t[52].value)},m(t,r){Te(t,e,r),ke(e,n),ke(n,s),ke(n,a),ke(n,i),ke(n,o),ke(n,c),ke(e,l)},p(t,e){1&e[0]&&r!==(r="scoremeter -val-"+t[52].value)&&Re(n,"class",r)},d(t){t&&Ce(e)}}}function cs(t){let e,n=t[52].value&&as(t);return{c(){n&&n.c(),e=Ee()},m(t,s){n&&n.m(t,s),Te(t,e,s)},p(t,s){t[52].value?n?n.p(t,s):(n=as(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Ce(e)}}}function rs(t){let e,n,s,a,i,o=t[4].text+"",c=t[4].action&&ls(t);return{c(){e=Ae("dt"),e.textContent=`${v("global.status")}`,n=Ae("dd"),s=Ie(o),a=Pe(),c&&c.c(),i=Pe(),Re(n,"data-test","status")},m(t,o){Te(t,e,o),Te(t,n,o),ke(n,s),ke(n,a),c&&c.m(n,null),ke(n,i)},p(t,e){16&e[0]&&o!==(o=t[4].text+"")&&Oe(s,o),t[4].action?c?c.p(t,e):(c=ls(t),c.c(),c.m(n,i)):c&&(c.d(1),c=null)},d(t){t&&Ce(e),t&&Ce(n),c&&c.d()}}}function ls(t){let e,n,s,a,i,o,c=t[4].actionLabel+"";return{c(){e=Ie("| "),n=Ae("button"),s=Ie(c),Re(n,"class","a"),Re(n,"data-test",a="scn_"+t[4].actionLabelGa)},m(a,c){Te(a,e,c),Te(a,n,c),ke(n,s),i||(o=Ne(n,"click",t[21]),i=!0)},p(t,e){16&e[0]&&c!==(c=t[4].actionLabel+"")&&Oe(s,c),16&e[0]&&a!==(a="scn_"+t[4].actionLabelGa)&&Re(n,"data-test",a)},d(t){t&&Ce(e),t&&Ce(n),i=!1,o()}}}function ds(t){let e,n,s,a,i,o,c,r,l=t[6].text+"";return{c(){e=Ae("dt"),e.textContent=`${v("global.option")}`,n=Ae("dd"),s=Ae("button"),a=Ie(l),o=Pe(),Re(s,"class","a"),Re(s,"data-test",i="scn_"+t[6].actionLabelGa),Re(n,"data-test","option")},m(i,l){Te(i,e,l),Te(i,n,l),ke(n,s),ke(s,a),ke(n,o),c||(r=Ne(s,"click",t[22]),c=!0)},p(t,e){64&e[0]&&l!==(l=t[6].text+"")&&Oe(a,l),64&e[0]&&i!==(i="scn_"+t[6].actionLabelGa)&&Re(s,"data-test",i)},d(t){t&&Ce(e),t&&Ce(n),c=!1,r()}}}function us(t){let e,n=t[7],s=[];for(let a=0;a<n.length;a+=1)s[a]=gs(En(t,n,a));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=Ee()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);Te(t,e,n)},p(t,a){if(33554560&a[0]){let i;for(n=t[7],i=0;i<n.length;i+=1){const o=En(t,n,i);s[i]?s[i].p(o,a):(s[i]=gs(o),s[i].c(),s[i].m(e.parentNode,e))}for(;i<s.length;i+=1)s[i].d(1);s.length=n.length}},d(t){De(s,t),t&&Ce(e)}}}function hs(t){let e;return{c(){e=Ae("dt"),e.textContent=`${v("global.options")}`},m(t,n){Te(t,e,n)},p:me,d(t){t&&Ce(e)}}}function ps(t){let e,n,s=t[49].title+"";return{c(){e=Ae("dt"),n=Ie(s)},m(t,s){Te(t,e,s),ke(e,n)},p(t,e){128&e[0]&&s!==(s=t[49].title+"")&&Oe(n,s)},d(t){t&&Ce(e)}}}function fs(t){let e,n,s,a,i,o,c,r,l,d=t[49].label+"";function u(){return t[35](t[49])}return{c(){e=Ae("input"),a=Pe(),i=Ae("label"),o=Ie(d),Re(e,"type","checkbox"),Re(e,"class","checkbox"),e.checked=n=t[49].value,Re(e,"id",s="form_checkbox_"+t[49].valueName),Re(i,"for",c="form_checkbox_"+t[49].valueName),Re(i,"class","g-margin-left--5")},m(t,n){Te(t,e,n),Te(t,a,n),Te(t,i,n),ke(i,o),r||(l=Ne(e,"click",u),r=!0)},p(a,r){t=a,128&r[0]&&n!==(n=t[49].value)&&(e.checked=n),128&r[0]&&s!==(s="form_checkbox_"+t[49].valueName)&&Re(e,"id",s),128&r[0]&&d!==(d=t[49].label+"")&&Oe(o,d),128&r[0]&&c!==(c="form_checkbox_"+t[49].valueName)&&Re(i,"for",c)},d(t){t&&Ce(e),t&&Ce(a),t&&Ce(i),r=!1,l()}}}function ms(t){let e,n,s,a=t[49].label+"";return{c(){e=Ae("label"),n=Ie(a),Re(e,"for",s="form_checkbox_"+t[49].valueName)},m(t,s){Te(t,e,s),ke(e,n)},p(t,i){128&i[0]&&a!==(a=t[49].label+"")&&Oe(n,a),128&i[0]&&s!==(s="form_checkbox_"+t[49].valueName)&&Re(e,"for",s)},d(t){t&&Ce(e)}}}function gs(t){let e,n,s;function a(t,e){return t[49].title?ps:hs}let i=a(t),o=i(t),c="checkbox"===t[49].type&&fs(t),r="label"===t[49].type&&ms(t);return{c(){o.c(),e=Ae("dd"),c&&c.c(),n=Pe(),r&&r.c(),s=Pe()},m(t,a){o.m(t,a),Te(t,e,a),c&&c.m(e,null),ke(e,n),r&&r.m(e,null),ke(e,s)},p(t,l){i===(i=a(t))&&o?o.p(t,l):(o.d(1),o=i(t),o&&(o.c(),o.m(e.parentNode,e))),"checkbox"===t[49].type?c?c.p(t,l):(c=fs(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),"label"===t[49].type?r?r.p(t,l):(r=ms(t),r.c(),r.m(e,s)):r&&(r.d(1),r=null)},d(t){o.d(t),t&&Ce(e),c&&c.d(),r&&r.d()}}}function bs(t){let e,n,s,a,i=t[11]&&ws(t),o=t[14]>1&&vs(t);return{c(){e=Ae("div"),n=Ae("div"),i&&i.c(),s=Pe(),a=Ae("div"),o&&o.c(),Re(e,"class","sve_toaster__footer")},m(t,c){Te(t,e,c),ke(e,n),i&&i.m(n,null),ke(e,s),ke(e,a),o&&o.m(a,null)},p(t,e){t[11]?i?i.p(t,e):(i=ws(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),t[14]>1?o?o.p(t,e):(o=vs(t),o.c(),o.m(a,null)):o&&(o.d(1),o=null)},d(t){t&&Ce(e),i&&i.d(),o&&o.d()}}}function ws(t){let e,n,s,a,i,o,c,r,l,d,u,h,p=t[12]?"/"+t[12]:"";return{c(){e=Ae("span"),n=Ie(t[11]),s=Ie(p),a=Pe(),i=Ae("kin-tooltip"),o=Ae("span"),o.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',c=Pe(),r=Ae("div"),l=Ae("h4"),l.textContent=`${v("detection.alertid.title")}`,d=Pe(),u=Ae("p"),u.textContent=`${v("detection.alertid.desc")}`,h=Ae("p"),Re(e,"class","span -small -secondary"),Re(e,"data-test","dd_alertid_text"),Re(o,"slot","tooltip-activator"),Re(l,"class","h4 -margins"),Re(u,"class","p -small"),Re(r,"slot","tooltip"),Le(i,"severity","highlight")},m(t,p){Te(t,e,p),ke(e,n),ke(e,s),Te(t,a,p),Te(t,i,p),ke(i,o),ke(i,c),ke(i,r),ke(r,l),ke(r,d),ke(r,u),ke(r,h)},p(t,e){2048&e[0]&&Oe(n,t[11]),4096&e[0]&&p!==(p=t[12]?"/"+t[12]:"")&&Oe(s,p)},d(t){t&&Ce(e),t&&Ce(a),t&&Ce(i)}}}function vs(t){let e,n,s,a,i,o,c,r,l,d,u,h,p,f=t[13]+1+"";return{c(){e=Ae("span"),e.textContent=`${v("detection.more.detections")}`,n=Pe(),s=Ae("kin-button"),a=Ae("kin-icon"),i=Pe(),o=Ie(f),c=Ie("\n\t\t\t\t\t\t/\n\t\t\t\t\t\t"),r=Ae("kin-button"),l=Ie(t[14]),d=Pe(),u=Ae("kin-icon"),Re(e,"class","span -small -secondary"),Le(a,"name","icon-s-controls-arrow-left"),Le(a,"size","16"),Le(a,"rtlflip","true"),Le(s,"type","blank"),Le(s,"size","small"),Le(s,"class","sve_toaster__paginator g-margin-left--5"),Le(s,"data-test","dd_prev_btn"),Le(u,"name","icon-s-controls-arrow-right"),Le(u,"size","16"),Le(u,"rtlflip","true"),Le(r,"type","blank"),Le(r,"size","small"),Le(r,"class","sve_toaster__paginator"),Le(r,"data-test","dd_next_btn")},m(f,m){Te(f,e,m),Te(f,n,m),Te(f,s,m),ke(s,a),ke(s,i),ke(s,o),Te(f,c,m),Te(f,r,m),ke(r,l),ke(r,d),ke(r,u),h||(p=[Ne(s,"click",t[17]),Ne(r,"click",t[18])],h=!0)},p(t,e){8192&e[0]&&f!==(f=t[13]+1+"")&&Oe(o,f),16384&e[0]&&Oe(l,t[14])},d(t){t&&Ce(e),t&&Ce(n),t&&Ce(s),t&&Ce(c),t&&Ce(r),h=!1,we(p)}}}function _s(t){let e,n,s,a,i=t[0]&&$n(t);return{c(){i&&i.c(),e=Ee()},m(o,c){i&&i.m(o,c),Te(o,e,c),n=!0,s||(a=Ne(Pn,"keydown",t[16]),s=!0)},p(t,n){t[0]?i?(i.p(t,n),1&n[0]&&on(i,1)):(i=$n(t),i.c(),on(i,1),i.m(e.parentNode,e)):i&&(sn(),cn(i,1,1,(()=>{i=null})),an())},i(t){n||(on(i),n=!0)},o(t){cn(i),n=!1},d(t){i&&i.d(t),t&&Ce(e),s=!1,a()}}}function Ss(t,e,n){let s,i,c,r,d,u,h,{$$slots:p={},$$scope:f}=e;const m=je();let g,b,w,v,S,y,{windowWidth:x=600}=e,{config:k=null}=e,{windowClose:T=null}=e,C=!1,D=null,A=null,I=!1,P=!1,E=!1,N=!1;function R(t=!1){const e=k&&k.closeResponse;T?T(e):(m("close",e),(t||u<=1)&&o.close())}function L(t){O(k.actions[t],t)}function O(t,e){const s=t.action&&t.action(),i=Date.now();if(A&&A(),null==s)null==t.nextConfig?R():$(t.nextConfig,i,t.minDuration);else{const a=1===e&&2===k.actions.length&&!k.hideSecondAction;t.status||0!==e&&!a?(n(4,g=t.status),n(5,b=void 0),n(6,w=t.option),n(3,I=!0)):n(8,P=!0),s.then((e=>{$(e,i,t.minDuration)})).catch((e=>{$(e,i,t.minDuration)}))}t.labelGa&&a.event("DetectionDialog","Click",t.labelGa)}function $(t,e,s){const a=Math.max(s-(Date.now()-e),0);if(D&&D(),a>0){const e=window.setTimeout((()=>{!t&&u>0?R():n(0,k=t),D&&D()}),a);D=()=>{window.clearTimeout(e),D=null}}else!t&&u>0?R():n(0,k=t)}function F(t){t?(n(3,I=k.progress),n(4,g=k.status),n(5,b=k.progressStatusText),n(6,w=k.option),n(7,v=k.formItems),n(8,P=!1),function(){if(A&&A(),k.actions&&k.actions.length&&k.actions[0].countdown){n(9,S=k.actions[0].countdown);const t=window.setInterval((function(){S?n(9,S--,S):O(k.actions[0],0)}),1e3);A=function(){window.clearInterval(t),n(9,S=null),A=null}}}()):R()}function M(t){const e=Math.max(400,t.scrollHeight);N&&(N=!1,n(10,E=e>window.screen.availHeight)),o.resize(x,Math.min(e,window.screen.availHeight))}function W(t){t.value=!t.value,m("formItemUpdated",t)}Ue((()=>{l.play("threat")})),He((()=>{D&&D(),A&&A(),y&&y.cancel()}));return t.$$set=t=>{"windowWidth"in t&&n(1,x=t.windowWidth),"config"in t&&n(0,k=t.config),"windowClose"in t&&n(26,T=t.windowClose),"$$scope"in t&&n(29,f=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty[0]&&F(k),1&t.$$.dirty[0]&&n(27,s=k&&k.trackerTitle),134217728&t.$$.dirty[0]&&function(t){const e=o.getUrlParams();null!=t&&a.view(e.module+"_"+e.view+(t?"_"+t:""))}(s),1&t.$$.dirty[0]&&n(28,i=k&&k.detectionInfo||{}),268435456&t.$$.dirty[0]&&n(11,c=i.id||""),268435456&t.$$.dirty[0]&&n(12,r=i.timestamp&&_(i.timestamp).format("YYMMDD.HHmmZZ")||""),268435456&t.$$.dirty[0]&&n(13,d=i.index||0),268435456&t.$$.dirty[0]&&n(14,u=i.total||0),268435456&t.$$.dirty[0]&&n(15,h=i.showCloseAllBtn||!1)},[k,x,C,I,g,b,w,v,P,S,E,c,r,d,u,h,function(t){const e=k.actions;e&&e.length&&e.some(((e,n)=>{if(e.shortcut&&e.shortcut.code===t.code&&!!e.shortcut.ctrlKey===t.ctrlKey&&!!e.shortcut.shiftKey===t.shiftKey&&!!e.shortcut.altKey===t.altKey&&!!e.shortcut.metaKey===t.metaKey)return O(e,n),!0}))},function(){m("prev")},function(){m("next")},function(){!function(t=!1){a.event("DetectionDialog","Close"),m("ignore"),R(t)}(!0)},function(){n(2,C=!C),N=!0},function(){const t=g.actionLabelGa,e=g.action;t&&a.event("DetectionDialog","Click",t),"function"==typeof e?e():console.error("[SvelteComponents] {DetectionDialog} StatusAction is not function")},function(){const t=w.actionLabelGa,e=w.action;t&&a.event("DetectionDialog","Click",t),"function"==typeof e?e():console.error("[SvelteComponents] {DetectionDialog} OptionAction is not function")},L,function(t){M(t),y=In(M.bind(this,t),25);const e=new MutationObserver(y);return e.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),{destroy:e.disconnect.bind(e)}},W,T,s,i,f,p,()=>L(0),()=>L(1),t=>L(t),t=>k.dontShowAgain.action(t.target.checked),t=>W(t)]}class ys extends fn{constructor(t){super(),pn(this,t,Ss,_s,_e,{windowWidth:1,config:0,windowClose:26},[-1,-1])}}const xs={FileSystemShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.FileSystemShield",actionText:"detection.whatToDo",actionButton:{action:"chest",label:"detection.action.chest",shortcut:{code:"KeyM",ctrlKey:!0},progressText:"detection.action.chest.progress",labelTest:"btn_chest"},anotherButton:[{action:"block",label:"detection.action.keepBlocking",shortcut:{code:"KeyB",ctrlKey:!0},labelTest:"btn_keepBlocking"},{action:"ignore",label:"detection.action.exception",shortcut:{code:"KeyE",ctrlKey:!0},progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.FileSystemShield",actionText:"detection.scanPromo",actionButton:{action:"scan",shortcut:{code:"KeyS",ctrlKey:!0},label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",shortcut:{code:"KeyG",ctrlKey:!0},label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},WebShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.WebShield",actionText:"detection.whatToDo",actionButton:{action:"abort",label:"detection.action.abortConnection",shortcut:{code:"KeyA",ctrlKey:!0},progressText:"detection.action.abortConnection.progress",labelTest:"btn_abort"},anotherButton:[{action:"ignore",label:"detection.action.exception",shortcut:{code:"KeyE",ctrlKey:!0},progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.connectionBlocked"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.WebShield",actionText:"detection.scanPromo",actionButton:{action:"scan",shortcut:{code:"KeyS",ctrlKey:!0},label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.abort"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",shortcut:{code:"KeyG",ctrlKey:!0},label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},BehaviorShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.BehaviorShield",actionText:"detection.whatToDo",actionButton:{action:"chest",shortcut:{code:"KeyM",ctrlKey:!0},label:"detection.action.chest",labelTest:"btn_chest"},anotherButton:[{action:"ignore",shortcut:{code:"KeyE",ctrlKey:!0},label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.BehaviorShield",actionText:"detection.scanPromo",actionButton:{action:"scan",shortcut:{code:"KeyS",ctrlKey:!0},label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",shortcut:{code:"KeyG",ctrlKey:!0},label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},EmailShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.EmailShield",actionText:"detection.whatToDo",actionButton:{action:"chest",label:"detection.action.chest",shortcut:{code:"KeyM",ctrlKey:!0},progressText:"detection.action.chest.progress",labelTest:"btn_chest"},anotherButton:[{action:"block",label:"detection.action.keepBlocking",shortcut:{code:"KeyB",ctrlKey:!0},labelTest:"btn_block"},{action:"ignore",label:"detection.action.allowDownload",shortcut:{code:"KeyE",ctrlKey:!0},labelTest:"btn_ignore"}],statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.EmailShield",actionText:"detection.scanPromo",actionButton:{action:"scan",shortcut:{code:"KeyS",ctrlKey:!0},label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest"}}};const ks={FileSystemShield:{error:{name:"icon-m-scan-folder",color:"critical"},ok:{name:"icon-m-scan-folder",color:"ok"}},WebShield:{error:{name:"icon-s-web",color:"critical"},ok:{name:"icon-s-web",color:"ok"}},BehaviorShield:{error:{name:"icon-l-behavior-shield",color:"critical"},ok:{name:"icon-l-behavior-shield",color:"ok"}},EmailShield:{error:{name:"icon-l-email-shield",color:"critical"},ok:{name:"icon-l-email-shield",color:"ok"}}};const Ts={detectionDialogActions:{"1B":{action:"detection.abtest.1b.action",text:"detection.abtest.1b.text",openElement:95},"1C":{action:"detection.abtest.1c.action",text:"detection.abtest.1c.text",openElement:95},"1D":{action:"detection.abtest.1d.action",text:"detection.abtest.1d.text",openElement:95},"1B2":{action:"detection.abtest.1b.action",text:"detection.abtest.1b.text",openElement:160,target:"overlay"},"1C2":{action:"detection.abtest.1c.action",text:"detection.abtest.1c.text",openElement:160,target:"overlay"},"1D2":{action:"detection.abtest.1d.action",text:"detection.abtest.1d.text",openElement:160,target:"overlay"}}};function Cs(t){let e,n;return e=new ys({props:{config:t[0]}}),e.$on("prev",t[1]),e.$on("next",t[2]),e.$on("close",t[3]),{c(){ln(e.$$.fragment)},m(t,s){dn(e,t,s),n=!0},p(t,n){const s={};1&n[0]&&(s.config=t[0]),e.$set(s)},i(t){n||(on(e.$$.fragment,t),n=!0)},o(t){cn(e.$$.fragment,t),n=!1},d(t){un(e,t)}}}function Ds(t){let e,n,s=t[0]&&Cs(t);return{c(){s&&s.c(),e=Ee()},m(t,a){s&&s.m(t,a),Te(t,e,a),n=!0},p(t,n){t[0]?s?(s.p(t,n),1&n[0]&&on(s,1)):(s=Cs(t),s.c(),on(s,1),s.m(e.parentNode,e)):s&&(sn(),cn(s,1,1,(()=>{s=null})),an())},i(t){n||(on(s),n=!0)},o(t){cn(s),n=!1},d(t){s&&s.d(t),t&&Ce(e)}}}const As=/[/|\\]/g,Is=/\|>|\|&gt|\|&gt;/g;function Ps(t,e){let n;if("WebShield"===e){const e=document.createElement("a");e.href=t,n=e.hostname||t.substring(0,60)}else n="EmailShield"===e?t.split(Is).pop():t.split(As).pop();return n}function Es(t,e,i){let c,r;const l=f.createLogger("scans.virusDetectionDialog"),d=o.getUrlParams(),u={FileSystemShield:v("shields.file"),WebShield:v("shields.web"),EmailShield:v("shields.email"),BehaviorShield:v("shields.behavior")};let p,m="",g={},b=[],w=0,_=null,S=!1;function y(t={}){return t.abTest?"fn"===t.type?function(){return"overlay"===t.abTest.target?s("app.utils.SendMainWindowEvent",{event:"nui.mainLayout.ipmOverlay",args:{id:t.abTest.openElement,params:t.params}}):h.openWindow(t.abTest.openElement,t.params)}:v(t.abTest[t.type]):t.original}function x(t){if(t.windowId!==d.windowId)return;t.timestamp=t.timestamp||new Date;const e=b.findIndex((e=>e.id===t.id));e>-1?(Object.assign(b[e],t),w===e&&D(t)):b.push(t),i(0,_=k())}function k(t=b[w].userAction){let e,n;if(l.info("getConfig"),e=g.askForAction?Object.assign({},xs[g.shield].ask):Object.assign({},xs[g.shield].auto),t&&"ignore"===t&&(e=Object.assign({},xs[g.shield].exception)),0===Object.keys(e).length)return;S&&"scan"===e.actionButton.action&&(e.actionText="detection.noScan",e.actionButton={action:"close",shortcut:{code:"KeyG",ctrlKey:!0},label:"detection.action.gotIt",labelTest:"btn_close"}),e.title=[`${e.title}.${g.severity}`,e.title],e.text=[`${e.text}.${g.severity}`,e.text],n="WebShield"===g.shield?t&&"ignore"===t?v(e.text,g.fileName):v(e.text,g.threatName,g.fileName):g.actionFailed?v("detection.auto.text.FileSystemShield.block",g.fileName,g.threatName):v(e.text,g.fileName,g.threatName);const s={color:e.color,icon:"red"===e.icon?ks[g.shield].error:ks[g.shield].ok,title:v(e.title),text:n,actionText:y({type:"text",abTest:g.abTest,original:e.actionText?v(e.actionText):""}),actions:[],hideSecondAction:!0,details:A(),status:{text:I(e)},detectionInfo:{id:(b[w]||{}).alertId||"",timestamp:(b[w]||{}).timestamp||"",index:w,total:b.length,showCloseAllBtn:!b.some((t=>t.ask&&!t.userAction))}};return s.icon.color={green:"ok",ok:"ok",red:"critical",critical:"critical"}[e.color]||s.icon.color,t&&"ignore"===t&&(s.status.actionLabel=v("detection.threat.exception.openList"),s.status.action=T),e.actionButton&&("scan"===e.actionButton.action?s.actions.push({label:y({type:"action",abTest:g.abTest,original:v(e.actionButton.label)}),labelTest:e.actionButton.labelTest,labelGa:e.actionButton.action,action:y({type:"fn",abTest:g.abTest,original:E,params:g.ipmParams})}):"close"===e.actionButton.action?s.actions.push({label:v(e.actionButton.label),labelTest:e.actionButton.labelTest,labelGa:e.actionButton.action}):s.actions.push({label:v(e.actionButton.label),labelTest:e.actionButton.labelTest,action:()=>C(e.actionButton.action),status:{text:e.actionButton.progressText?v(e.actionButton.progressText):""},minDuration:1e3,labelGa:e.actionButton.action})),e.anotherButton&&e.anotherButton.forEach((t=>{s.actions.push({label:v(t.label),labelTest:t.labelTest,action:()=>C(t.action),status:{text:t.progressText?v(t.progressText):""},minDuration:1e3,labelGa:t.action})})),"chest"!==g.action||"WebShield"===g.shield||g.actionFailed||(s.status.actionLabel=v("scans.detection.openVirusChest"),s.status.action=P,s.status.actionLabelGa="openVirusChest"),"FileSystemShield"===g.shield&&(s.option={text:v("detection.option.reportFalsePositive"),action:N,actionLabelGa:"FalsePositive"}),s}function T(){return s("app.windowManager.ShowMainWindow",{route:"#Settings/exceptions"}).catch((t=>{l.error("[Virus Detection] show exceptions failed,",JSON.stringify(t))}))}function C(t){l.info("doAction: action = "+t),"scan"===t&&(S=!0);const e={id:r,data:{showAgain:!0,sendForAnalysis:!0}};return"ignore"===t&&(e.data.showAgain=!1),s("app.av.detections.Set",e).then((()=>s("app.av.detections.UserChoice",{id:r,userChoice:t}))).then((()=>{if("ignore"===t){let t="avcfg://exclusions/Global/ExcludeFiles",e=g.filePath;return"WebShield"===g.shield&&(t="avcfg://exclusions/Global/ExcludeUrls",e=function(t){const e=t.match(/(^(?:(\w{2,})?:\/\/)?(?:[^@/\n]+@)?(\[[^\]]{2,}\]|[^:/?\n]+))/);return e&&e.length>1?e[1]+"/*":t}(g.filePath)),s("app.utils.AddExclusion",{property:t,exclusion:`"${e}"`})}})).catch((()=>s("virusDetection.SetFormValues",{action:t,submitForAnalysis:!0}))).then((()=>"block"===t?null:(g.action=t,g.askForAction=!1,i(7,c.action=t,c),i(7,c.userAction=t,c),i(7,c.ask=!1,c),k(t)))).catch((t=>{l.error("setting form values failed",t)}))}function D(t){const e={p_vir:t.name};l.info("data loaded");const n=v(["",`detection.threat.type.${t.severityID}.${t.typeID}`]);g={chestId:t.chestId,threatName:t.name,filePath:t.path,fileName:Ps(t.path,t.shield),processPath:t.process,action:t.ask?"block":"chest",actionFailed:!t.action,actions:[],type:t.type,severity:t.severity,threatType:n||void 0,shield:t.shield,askForAction:t.ask,statusText:t.localizedAction,abTest:navigator.onLine?Ts.detectionDialogActions[m]:null,ipmParams:e}}function A(){return l.info("getting details"),[{title:v("scans.threatName"),value:g.threatName,testValue:"threatName"},{title:v("global.threatType"),value:g.threatType,testValue:"threatType"},{title:"WebShield"===g.shield?v("global.url"):v("global.filePath"),value:g.filePath,testValue:"file"},{title:v("scans.detectionProcess"),value:g.processPath,testValue:"process"},{title:v("global.detectedBy"),value:u[g.shield],testValue:"detectedBy_"+g.shield}]}function I(t){return g.actionFailed?v("detection.status.block"):t.statusText?v(t.statusText):g.statusText}function P(){return s("app.settings.Get","avdef://config/GuiCache/MenuItemsDisabled").then((t=>t&&-1!=t.indexOf("viruschest")?s("av.command","show_chest"):s("app.windowManager.ShowMainWindow",{route:"#VirusChest"})))}function E(){return S=!0,s("app.windowManager.ShowMainWindow",{route:"#SmartScan"})}function N(){s("app.virusChest.GetStatus").then((t=>t.Items.find((t=>t.itemUID===g.chestId)))).then((t=>{let e;e=t?JSON.stringify([t]):JSON.stringify([{filePath:g.filePath}]),o.open({url:location.origin+"/MainWindow.html/?module=Feedback&view=analysis&threats="+encodeURIComponent(e)+"&analysisType=1",windowType:"window",showTitlebar:!1})}))}function R(){i(6,w=Math.max(w-1,0)),D(b[w]),i(0,_=k())}return Ue((()=>{l.info("oninit"),p=n.on("app.av.detections.onStatusChanged",x),s("app.smartScan.SendBurgerEvent",{event:"1.1.15.6"}),(l.info("loading data"),s("app.settings.Get","avdef://config/multidetections/enable").then((t=>{const e=[t,s("app.settings.Get","avdef://config/GuiCache/ABTest_DetectionDialog")];return t?e.push(s("app.av.detections.GetEntireStatus",{windowId:d.windowId}).catch((()=>s("virusDetection.GetFormValues")))):e.push(s("app.av.detections.GetStatus",{id:d.id}).catch((()=>s("virusDetection.GetFormValues")))),Promise.all(e)})).then((([t,e,n])=>{m=e;const s=t?n.detections[0]:n;if(!s)return o.close();t?i(5,b=n.detections.map((t=>(t.timestamp=t.timestamp||new Date,t)))):(n.timestamp=n.timestamp||new Date,b.push(n)),D(s)}))).then((()=>{i(0,_=k()),o.init({width:600,height:420}),a.view("Scans_detection_"+g.shield)})).catch((t=>(l.error("getting status failed",t),a.view("Scans_detection_"+(g&&g.shield)+"_load_failed."),o.close())))})),He((()=>{p&&p()})),t.$$.update=()=>{96&t.$$.dirty[0]&&i(7,c=b&&b[w]||{}),128&t.$$.dirty[0]&&(r=c.id||d.id)},[_,R,function(){i(6,w=Math.min(w+1,b.length-1)),D(b[w]),i(0,_=k())},function(){if(b.splice(w,1),0==b.length)return o.close();R()},!0,b,w,c]}class Ns extends fn{constructor(t){super(),pn(this,t,Es,Ds,_e,{handlesWindowInit:4},[-1,-1])}get handlesWindowInit(){return this.$$.ctx[4]}}const Rs={error:{name:"icon-l-behavior-shield",color:"critical"},ok:{name:"icon-l-behavior-shield",color:"ok"}};function Ls(t){let e,n;return e=new ys({props:{config:t[0]}}),{c(){ln(e.$$.fragment)},m(t,s){dn(e,t,s),n=!0},p(t,n){const s={};1&n&&(s.config=t[0]),e.$set(s)},i(t){n||(on(e.$$.fragment,t),n=!0)},o(t){cn(e.$$.fragment,t),n=!1},d(t){un(e,t)}}}function Os(t){let e,n,s=t[0]&&Ls(t);return{c(){s&&s.c(),e=Ee()},m(t,a){s&&s.m(t,a),Te(t,e,a),n=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&on(s,1)):(s=Ls(t),s.c(),on(s,1),s.m(e.parentNode,e)):s&&(sn(),cn(s,1,1,(()=>{s=null})),an())},i(t){n||(on(s),n=!0)},o(t){cn(s),n=!1},d(t){s&&s.d(t),t&&Ce(e)}}}const $s=/[/|\\]/g;function Fs(t,e,a){const i=f.createLogger("idp.detectionDialog"),c=o.getUrlParams().id,r={};let l;function d(t){r.processName=t.processName,r.targetFile=t.targetFile,r.infectionTranslated=function(t){const e="%s_cmd";t.includes(e)&&(t=t.replace(e,""),t=v("scans.idp.detection.commandLineDetection",t));return t}(t.infection),r.showAction=t.showAction,r.restoreAvailable=t.restoreAvailable,r.alertId=t.alertId,r.timestamp=new Date}function u(){i.info("getConfig");const t={hideTitlebarClose:r.showAction,color:r.showAction?"red":"green",icon:r.showAction?Rs.error:Rs.ok,actions:[],hideSecondAction:!0,details:[{title:v("scans.threatName"),value:r.infectionTranslated,testValue:"threatName"},{title:v("global.filePath"),value:r.targetFile,testValue:"filePath"},{title:v("scans.detectionProcess"),value:r.processName,testValue:"process"},{title:v("global.detectedBy"),value:v("shields.behavior"),testValue:"detectedBy_BehaviorShield"}],detectionInfo:{id:r.alertId,timestamp:r.timestamp,index:0,total:0,showCloseAllBtn:!1}};return r.showAction?(t.title=v("scans.detection.action.block.title"),t.text=v("scans.idp.detection.text",w(),r.infectionTranslated),t.actionText=v("scans.detection.whatWouldYouLikeToDo"),t.actions=[{label:v("scans.detection.action.chest.label"),labelTest:"btn_chest",action:b.bind(this,"block"),status:{text:v("scans.detection.action.chest.progressText")},shortcut:{code:"KeyM",ctrlKey:!0},minDuration:2e3},{label:v("scans.idp.action.allow.label"),labelTest:"btn_ignore",action:b.bind(this,"allow"),status:{text:v("scans.detection.action.ignore.progressText")},cssCls:"-critical",shortcut:{code:"KeyE",ctrlKey:!0},minDuration:2e3}]):(t.title=v("scans.detection.action.chest.title"),r.restoreAvailable?t.text=v("scans.detection.action.chest.resultText",w(),r.infectionTranslated):t.text=v("detection.auto.text.FileSystemShield.block",w(),r.infectionTranslated),t.actionText=v("scans.detection.scanPromo"),t.actions=[{label:v("scans.detection.action.scan.label"),labelTest:"btn_scan",shortcut:{code:"KeyS",ctrlKey:!0},action:()=>s("app.smartScan.GetStatus").then((t=>{if("scanning"!==t.statusPrimary)return s("app.windowManager.ShowMainWindow",{route:"#SmartScan"}).then((()=>{o.close()}))}))}],r.restoreAvailable?t.status={text:v("detection.status.chest"),actionLabel:v("scans.detection.openVirusChest"),action:h.bind(this)}:t.status={text:v("detection.status.block")}),t}function h(){return o.openMainWindow({route:"#VirusChest"}).then((()=>{o.close()}))}function p(){return s("app.windowManager.ShowMainWindow",{route:"#Settings/exceptions"}).catch((t=>{i.error("[BehaviorShield Detection] show exceptions failed,",JSON.stringify(t))}))}function g(t,e){i.info("getDoneConfig");const n=u();return n.hideTitlebarClose=!1,!0===e.restartRequired?(n.color="red",n.icon=Rs.error,n.title=v("scans.detection.restart.title"),n.text=v("scans.detection.restart.text",w()),n.actionText=v("scans.detection.restart.actionText"),n.actions=[{label:v("scans.detection.restart.actionLabel"),labelTest:"btn_restart",shortcut:{code:"KeyR",ctrlKey:!0},action:()=>s("app.system.Restart",{rebootType:"RebootFromUI"}).then((()=>{o.close()}))}]):0!==e.errorCode?(n.color="red",n.icon=Rs.error,n.title=v("scans.detection.not.removed.title"),n.text=v("scans.detection.not.removed.text",w()),n.actionText=v("scans.detection.not.removed.actionText"),n.actions=[{label:v("scans.detection.action.scan.label"),labelTest:"btn_scan",shortcut:{code:"KeyS",ctrlKey:!0},action:()=>s("app.windowManager.ShowMainWindow",{route:"Scans/scan/{7C4966F0-D502-412D-A636-ACCC39A24BB2}"}).then((()=>{o.close()}))}]):"allow"===t?(n.title=v("scans.detection.action.ignore.title"),n.text=v("scans.detection.action.ignore.text",w()),n.actionText=v("scans.detection.action.ignore.actionText"),n.color="green",n.icon=Rs.ok,n.actions=[{label:v("global.gotIt"),labelTest:"global.gotIt",cssCls:"",shortcut:{code:"KeyG",ctrlKey:!0},minDuration:500}],n.status={text:v("detection.threat.exception.moved"),actionLabel:v("detection.threat.exception.openList"),action:p.bind(this)}):(n.color="green",n.icon=Rs.ok,n.title=v("scans.detection.action.chest.title"),r.restoreAvailable?n.text=v("scans.detection.action.chest.resultText",w(),r.infectionTranslated):n.text=v("detection.auto.text.FileSystemShield.block",w(),r.infectionTranslated),n.actionText=v("scans.detection.scanPromo"),n.actions=[{label:v("scans.detection.action.scan.label"),labelTest:"btn_scan",shortcut:{code:"KeyS",ctrlKey:!0},action:()=>s("app.smartScan.GetStatus").then((t=>{if("scanning"!==t.statusPrimary)return s("app.windowManager.ShowMainWindow",{route:"#SmartScan"}).then((()=>{o.close()}))}))}],r.restoreAvailable?n.status={text:v("detection.status.chest"),actionLabel:v("scans.detection.openVirusChest"),action:h.bind(this)}:n.status={text:v("detection.status.block")}),n}function b(t){return new Promise(((e,a)=>{const o=n.on("app.av.detections.onStatusChanged",(n=>{o(),c!==n.id||"resolved"!==n.state&&"removed"!==n.state||(d(n),e(g(t,n)))}));s("app.av.detections.UserChoice",{id:c,userChoice:t}).catch((t=>{i.error("app.av.detections.UserChoice failed with error"+t),a(t)}))}))}function w(){const t=r.targetFile||r.processName;if(!t)return"";let e=t.split($s).pop();return e=m.escapeHtml(function(t){return t.slice(0,30)+(t.length>30?"...":"")}(e)),e}return(i.info("loadData"),s("app.av.detections.GetStatus",{id:c}).then((t=>(d(t),t))).catch((t=>{i.error("app.av.detections.GetStatus",t),o.close()}))).then((t=>{null!=t.errorCode?a(0,l=g("block",t)):a(0,l=u()),o.init({width:600,height:420})})),[l,!0]}class Ms extends fn{constructor(t){super(),pn(this,t,Fs,Os,_e,{handlesWindowInit:1})}get handlesWindowInit(){return this.$$.ctx[1]}}function Ws(t){let e,n;return e=new ys({props:{config:t[0],windowClose:t[1]}}),e.$on("formItemUpdated",t[2]),{c(){ln(e.$$.fragment)},m(t,s){dn(e,t,s),n=!0},p(t,n){const s={};1&n&&(s.config=t[0]),e.$set(s)},i(t){n||(on(e.$$.fragment,t),n=!0)},o(t){cn(e.$$.fragment,t),n=!1},d(t){un(e,t)}}}function Bs(t){let e,n,s=t[0]&&Ws(t);return{c(){s&&s.c(),e=Ee()},m(t,a){s&&s.m(t,a),Te(t,e,a),n=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&on(s,1)):(s=Ws(t),s.c(),on(s,1),s.m(e.parentNode,e)):s&&(sn(),cn(s,1,1,(()=>{s=null})),an())},i(t){n||(on(s),n=!0)},o(t){cn(s),n=!1},d(t){s&&s.d(t),t&&Ce(e)}}}function Us(t,e){return t.slice(0,e)+(t.length>e?"...":"")}function Hs(t){return t.split(/[/|\\]/g).pop()}function js(t,e,a){const i=f.createLogger("antirootkit.detectionDialog"),c=o.getUrlParams().id;let r={},l="",d=!1,u={},h=null;function p(){b("ignore").finally((()=>{o.close()}))}function m(){return o.openMainWindow({route:"#SmartScan"}).then((()=>{p()}))}function g(){return o.openMainWindow({route:"Scans/boottimeScan"}).then((()=>{p()}))}function b(t){return new Promise(((e,a)=>{const o=t,u={id:c,data:{showAgain:!0}};"createException"===t&&(t="ignore",u.data.showAgain=!1),r.showSendForAnalysis&&(u.data.sendForAnalysis=h),s("app.av.detections.Set",u).then((()=>{s("app.av.detections.UserChoice",{id:c,userChoice:t}).then((()=>{d=!0}))})).catch((t=>{i.error("doAction Failed, error:",t),a(t)}));const p=n.on("app.av.detections.onStatusChanged",(t=>{p(),"resolved"===t.state&&"ignore"!==o?e(function(t,e){i.info("getDoneConfig: status",r);const n=Hs(r.data[0].file),s=r.data.length,a="rootkit"===l,o={icon:Rs.ok,color:"green",formItems:null};if(0!==e)o.color="red",o.title=v("scans.detection.not.removed.title"),o.text=v("scans.detection.not.removed.text.short",n),o.actionText=v("scans.detection.not.removed.actionText"),o.actions=[{label:v("scans.detection.action.scan.label"),action:()=>{a?g():m()},labelTest:"btn_scan"}];else switch(t){case"createException":o.title=v("scans.detection.action.ignore.title"),o.text=s>1?v("scans.antirootkit.detection.rootkit.moreFiles.movedToExceptionList1",n)+v("scans.antirootkit.detection.rootkit.moreFiles.movedToExceptionList2",s-1):v("scans.antirootkit.detection.rootkit.movedToExceptionList",n),o.status={text:v("scans.detection.action.ignore.title")},o.actionText=v("scans.antirootkit.detection.rootkit.movedToExceptionList.actionText",s),o.actions=[{label:v("global.gotIt"),labelTest:"btn_close"}];break;case"delete":o.title=v("scans.antirootkit.detection.rootkit.title.deleted",s),o.text=s>1?v("scans.antirootkit.detection.rootkit.moreFiles.deleted1",n)+" "+v("scans.antirootkit.detection.rootkit.moreFiles.deleted2",s-1):v("scans.antirootkit.detection.rootkit.deleted",n),o.status={text:v("global.deleted")},o.actionText=v("scans.detection.scanPromo"),o.actions=[{label:v("scans.detection.action.scan.label"),action:()=>{a?g():m()},labelTest:"btn_scan"}]}if(h){const t=[];t.push({type:"label",title:v("global.options"),label:v("scans.antirootkit.detection.sentForAnalysis"),valueName:"sendForAnalysis",value:h}),o.formItems=t}return o}(o,t.errorCode)):a()}))}))}return s("app.av.detections.GetStatus",{id:c}).then((t=>{"show"===t.state?(!function(t){r=t}(t),function(t){l=t.data[0].type}(t),a(0,u=function(){switch(i.info("getConfig: status",r),l){case"rootkit":case"susp":return function(){const t=r.data.length,e=v("scans.antiRootkit"),n=[],s=Hs(r.data[0].file);let a="";Array.isArray(r.data)&&r.data.length&&(a=r.data.map((t=>t.file)));const i=[{title:v("scans.threatName"),value:r.data[0].virus},{title:v("global.filePath"),value:a},{title:v("global.detectedBy"),value:e}];r.showSendForAnalysis&&(h=!0,n.push({type:"checkbox",title:v("global.options"),label:v("scans.detection.action.sendToAnalyse"),valueName:"sendForAnalysis",value:h}));let o;o=t>1?"<strong>"+s+"</strong> "+v("scans.antirootkit.detection.rootkit.moreFiles.desc",t-1):v("scans.antirootkit.detection.rootkit.desc",s);return{icon:Rs.error,color:"red",title:v("scans.antirootkit.detection.rootkit.title",t),text:o,actionText:v("scans.detection.whatWouldYouLikeToDo"),actions:[{label:v("global.delete"),action:b.bind(this,"delete"),minDuration:2e3,status:{text:v("detection.action.exception.deleting")},labelTest:"btn_delete"},{label:v("detection.action.ignoreForNow"),action:b.bind(this,"ignore"),labelTest:"btn_ignoreForNow"},{label:v("scans.detection.action.ignore.label"),action:b.bind(this,"createException"),minDuration:2e3,status:{text:v("detection.action.exception.progress")},labelTest:"btn_createException"}],details:i,status:{text:v("global.detected")},formItems:n}}();case"arpot":return function(){const t=function(t){const e=[];for(let n of t.split("\n"))n=Us(n,256),e.push(n);return e.join("<br>")}(r.data[0].origin),e=r.data[0].virus,n=Hs(r.data[0].file),s=[{title:v("scans.threatName"),value:e,testValue:"threatName"},{title:v("global.filePath"),value:r.data[0].file,testValue:"file"},{title:v("scans.antirootkit.detection.origin"),value:t},{title:v("global.detectedBy"),value:v("scans.antiExploit"),testValue:"detectedBy_AntiExploitShield"}];return{icon:Rs.ok,color:"green",title:v("detection.threat.secured"),text:e?v("scans.antirootkit.detection.arpot.desc",n,e):v("scans.antirootkit.detection.arpot.noVirus.desc",n),actionText:v("scans.detection.whatWouldYouLikeToDo"),actions:[{label:v("scans.detection.action.scan.label"),action:()=>{m()},labelTest:"btn_scan"}],details:s,status:{text:v("global.detected")}}}()}}()),o.init({width:600,height:420})):o.close(),i.debug("config set",u)})).catch((t=>{i.error("Loading status failed",t)})),[u,()=>{d?o.close():p()},function(t){const e=t.detail;"sendForAnalysis"===e.valueName&&(h=e.value)},!0]}class Gs extends fn{constructor(t){super(),pn(this,t,js,Bs,_e,{handlesWindowInit:3})}get handlesWindowInit(){return this.$$.ctx[3]}}function Vs(t){let e,n;return e=new ys({props:{config:t[0]}}),{c(){ln(e.$$.fragment)},m(t,s){dn(e,t,s),n=!0},p(t,n){const s={};1&n&&(s.config=t[0]),e.$set(s)},i(t){n||(on(e.$$.fragment,t),n=!0)},o(t){cn(e.$$.fragment,t),n=!1},d(t){un(e,t)}}}function Ks(t){let e,n,s=t[0]&&Vs(t);return{c(){s&&s.c(),e=Ee()},m(t,a){s&&s.m(t,a),Te(t,e,a),n=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&on(s,1)):(s=Vs(t),s.c(),on(s,1),s.m(e.parentNode,e)):s&&(sn(),cn(s,1,1,(()=>{s=null})),an())},i(t){n||(on(s),n=!0)},o(t){cn(s),n=!1},d(t){s&&s.d(t),t&&Ce(e)}}}function zs(t,e,n){const a=f.createLogger("scans.unresolvedScanDetection"),i=o.getUrlParams();let c={};function r(t,e){o.openMainWindow({route:`Scans/scanHistory/${t}/${e}`}).then((()=>{o.close({reason:o.CLOSE_REASONS.navigateToOtherWindow})}))}return s("app.av.detections.GetStatus",{id:i.id}).then((t=>(a.info("status",t),function(t){if(!t)return Promise.reject("no status");return s("app.scanViruses.GetResult",{scanId:t.scan_id,session:t.session_id}).then((e=>e&&e.totalCount?{color:"red",icon:{name:"icon-m-tools-scan",color:"critical"},title:v("detection.unresolvedScan.title",e.totalCount),text:v("detection.unresolvedScan.desc"),actions:[{label:v("scans.seeResults"),action:r.bind(this,t.scan_id,t.session_id),labelGa:"seeResults",labelTest:"btn_seeResults"}]}:Promise.reject("no scan threats")))}(t)))).then((t=>{n(0,c=t),o.init({width:600,height:420})})).catch((t=>{a.error("unresolvedScanDetection failed with error",t),o.close()})),[c,!0]}class qs extends fn{constructor(t){super(),pn(this,t,zs,Ks,_e,{handlesWindowInit:1})}get handlesWindowInit(){return this.$$.ctx[1]}}const Zs={toasterView:!0,toasterClose:!0},Js=f.createLogger("scans.toasters.scanProgress"),Ys=t.components.Toaster.extend({windowClose:o.close,asyncLoad:!0,gaTrack:a,data:()=>({scanLabel:null,scanProgress:null,scanRunning:null,scanProblemsCount:null,buttonLabel:v("scans.toasters.scanProgress.buttonLabel"),buttonLabelGA:"Details",windowHeight:250,burgerToasterTracker:Zs}),computed:{text:function(){let t=null;const e=this.get("scanProblemsCount"),n=this.get("scanRunning");return n?t="<br/>"+v("scans.toasters.scanProgress.title.running",this.get("scanLabel")):!n&&e?t=v("scans.toasters.scanProgress.title.finished",this.get("scanLabel"))+"<br/>"+v("scans.toasters.scanProgress.text.issues",e):n||e||(t=v("scans.toasters.scanProgress.title.finished",this.get("scanLabel"))+"<br/>"+v("scans.toasters.scanProgress.text.noIssues")),t},severity:function(){let t=null;return this.get("scanProblemsCount")?t="danger":this.get("scanRunning")||(t="ok"),t},icon:function(){let t=null;return this.get("scanRunning")?t=null:this.get("scanProblemsCount")?t="circle-critical":this.get("scanProblemsCount")||(t="circle-ok"),t},progress:function(){return this.get("scanRunning")?this.get("scanProgress"):null}},oninit(){this._super(),this.trackedOnce=!1,this.scanId=this.get("params.scanId"),this.sessionId=this.get("params.sessionId"),Js.info("oninit; scanId: "+this.scanId),this.on("doAction",this.openScanDetail.bind(this)),this.on("doAreaAction",this.openScanDetail.bind(this)),this.initScan().then((()=>{this.ready()})).catch((t=>{Js.error("initializing scan ("+this.scanId+") failed",t),o.close({reason:o.CLOSE_REASONS.error})}))},initScan(){return s("app.scans.GetScanProps",{id:this.scanId}).then((t=>(Js.info("scan data ("+this.scanId+") received"),Js.debug("scan data: "+JSON.stringify(t)),this.scan=new C({id:this.scanId,type:t.scanType}),this.set("scanLabel",t.label),this.scan.getStatus(this.sessionId).then((t=>{this.updateData(t),this.scan.on("change",this.updateData.bind(this)),this.scan.startPolling(this.sessionId)})))))},updateData(t){Js.debug("data: "+JSON.stringify(t));const e=t.status,n=this.scan.getData().type;if(!this.trackedOnce&&e!==T.RUNNING){const s=e===T.DONE?"done":"stopped";a.view("Scans/scan/"+n+"/"+s),a.event("Virus Scan","Number of Issues",n+"-"+t.problemsCount,"Scans/scan/"+n+"/"+s),this.trackedOnce=!0}this.set({scanRunning:e===T.RUNNING,scanProgress:t.progress,scanProblemsCount:t.problemsCount}),this.adjustWindowHeight&&setTimeout((()=>{this.adjustWindowHeight()}),10)},openScanDetail(){Js.info("opening details"),c.toaster.click({label:"Details"}),s("app.windowManager.ShowMainWindow",{route:"Scans/scan/"+this.scanId+(null==this.sessionId?"":"/"+this.sessionId)}).then((function(){o.close({reason:o.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(t){Js.error("opening details failed",t)}))}});const Xs="avcfg://settings/Common/BootTimeScanAreas",Qs="avcfg://settings/Common/BootTimeScanPUP",ta=d.supportedSince("21.1");function ea(){const t={sensitivity:{id:"settings-scans-boottime-sensitivity",desc:v(ae.sensitivity),path:"avcfg://settings/Common/BootTimeScanSensitivity",options:[{value:"40",label:v("settings.sensitivity.low")},{value:"80",label:v("settings.sensitivity.medium")},{value:"100",label:v("settings.sensitivity.high")}],track:{subject:"Sensitivity",valueMap:{40:"Low",80:"Medium",100:"High"}},search:ae.sensitivity},scanPup:{id:"settings-scans-boottime-scanPup",label:v(ae.scanPup),desc:v(ae.scanPupDesc),path:Qs,load:null,change:null,changeEvent:"scan.boottime.scanPup",track:{subject:"Scan PUP"},search:{title:ae.scanPup,desc:ae.scanPupDesc}},scanPackers:{label:v(ae.unpackArchives),path:"avcfg://settings/Common/BootTimeScanPackers",track:{subject:"Unpack archives"},search:ae.unpackArchives},scanAreas:{id:"settings-scans-boottime-scanAreas",label:v(ae.scanAreas.label),path:Xs,options:[{label:v(ae.scanAreas.allHardDisks),value:"AllHarddisks"},{label:v(ae.scanAreas.systemDisk),value:"SystemDisk",recommended:!0}],load:null,change:null,track:{subject:"Scan areas"},search:{title:ae.scanAreas.label,others:[ae.scanAreas.allHardDisks,ae.scanAreas.systemDisk,ae.scanAreas.startup]}},scanStartup:{id:"settings-scans-boottime-scanStartup",label:v(ae.scanAreas.startup),load:null,change:null,track:{subject:"Scan auto start programs"},testAttr:null},useAutomaticActions:{id:"settings-scans-boottime-useAutomaticActions",label:v(ae.useAutomaticActions),path:"avcfg://settings/Common/BootTimeScanDefaultAction",load:null,change:null,track:{subject:"Use automatic actions"},search:{title:ae.useAutomaticActions,others:[ae.actions.fix,ae.actions.fixDesc,ae.actions.chest,ae.actions.delete]}},automaticActions:{id:"settings-scans-boottime-automaticActions",path:"avcfg://settings/Common/BootTimeScanDefaultAction",options:[{label:v(ae.actions.fix),desc:v(ae.actions.fixDesc),value:"fix",recommended:!0},{label:v(ae.actions.chest),value:"chest"},{label:v(ae.actions.delete),value:"delete"}],track:{subject:"Automatic action"}}};return ta&&Object.assign(t,{scanTools:{id:"settings-scans-boottime-scanTools",label:v(ae.scanTools),desc:v(ae.scanToolsDesc),load:null,change:null,updateOnEvent:"settings.change.scan.boottime.scanPup",track:{subject:"Scan Tools"},search:{title:ae.scanTools,desc:ae.scanToolsDesc}}}),t}const na=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"g-margin-bottom--20"},f:[{t:7,e:"SettingsRange",a:{property:[{t:2,r:"properties.sensitivity"}]}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanPup"}]},f:[{t:4,f:[{t:7,e:"div",a:{class:"settings__indent"},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanTools"}]}}]}],n:50,r:"scanToolsSupported"}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanPackers"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--20",id:[{t:2,r:"properties.scanAreas.id"},"__container"]},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.scanAreas"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.scanStartup"}]}}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.useAutomaticActions"}]},f:[{t:7,e:"div",a:{class:"settings__indent"},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.automaticActions"}]}}]}]}]}]},data:()=>({properties:null,scanToolsSupported:ta}),oninit(){this.listeners=[],this.listeners.push(this.observe("properties.scanPup.value",(t=>{this.set("properties.scanTools.disabled",!t)}))),this.listeners.push(this.observe("properties.useAutomaticActions.value",(t=>{this.set("properties.automaticActions.disabled",!t)}))),this.scan=new C({id:"{CC13CA7D-229B-4D0A-8D27-E26129CDDF10}",type:"boottime"});const t=ea();t.scanPup.load=this.loadScanPup.bind(this),t.scanPup.change=this.changeScanPup.bind(this),t.scanTools&&(t.scanTools.load=this.loadScanTools.bind(this),t.scanTools.change=this.changeScanTools.bind(this)),t.scanAreas.load=this.loadScanArea.bind(this,["AllHarddisks","SystemDisk"]),t.scanAreas.change=this.changeScanArea.bind(this,["AllHarddisks","SystemDisk"]),t.scanStartup.load=this.loadScanArea.bind(this,"Startup"),t.scanStartup.change=this.changeScanArea.bind(this,"Startup"),t.scanStartup.testAttr=this.scan.getPropTestAttr("ScanAreas","Startup"),t.useAutomaticActions.load=this.loadUseAutomaticActions.bind(this),t.useAutomaticActions.change=this.changeUseAutomaticActions.bind(this),this.set("properties",t)},onteardown(){for(;this.listeners.length;)this.listeners.pop().cancel()},loadScanPup:()=>p.get(Qs).then((t=>({locked:t.locked,value:t.value>0}))),changeScanPup:t=>p.set(Qs,t?1:0),loadScanTools:()=>p.get(Qs).then((t=>({locked:t.locked,value:2==t.value}))),changeScanTools:t=>p.set(Qs,t?2:1),loadScanAreas(t){return this.loadScanAreasPromise&&!t||(this.loadScanAreasPromise=p.get(Xs).then((t=>(this.scanAreas={locked:t.locked,areas:{}},t.value.replace(/"/g,"").split(";").forEach((t=>{this.scanAreas.areas[t]=!0})),delete this.loadScanAreasPromise,this.scanAreas)))),this.loadScanAreasPromise},changeScanAreas(){const t=Object.keys(this.scanAreas.areas).map((t=>'"'+t+'"')).join(";");return p.set(Xs,t)},loadScanArea(t,e){return this.loadScanAreas(e).then((e=>{let n;return n=Array.isArray(t)?t.find((t=>e.areas[t])):Boolean(e.areas[t]),{locked:e.locked,value:n}}))},changeScanArea(t,e){return Array.isArray(t)?t.forEach((t=>{t===e?this.scanAreas.areas[t]=!0:delete this.scanAreas.areas[t]})):e?this.scanAreas.areas[t]=!0:delete this.scanAreas.areas[t],this.changeScanAreas()},loadUseAutomaticActions(){const t=this.get("properties.automaticActions");return p.get(t.path).then((t=>({locked:t.locked,value:"ask"!==t.value})))},changeUseAutomaticActions(t){return p.set(this.get("properties.useAutomaticActions.path"),t?"fix":"ask")}}),sa={fullScan:{id:"settings-scans-full",type:"tab",title:v(ae.scans.full),hash:"Settings/Scans/full",compo:re,compoParams:{scanId:"{7C4966F0-D502-412D-A636-ACCC39A24BB2}",scanType:"full"},testAttr:"full",search:{title:ae.scans.full,subroute:"full",items:ce("full")}},folderScan:{id:"settings-scans-folder",type:"tab",title:v(ae.scans.folder),hash:"Settings/Scans/folder",compo:re,compoParams:{scanId:"{C6156735-F7A2-4387-94A7-0479004A7310}",scanType:"folder"},testAttr:"folder",search:{title:ae.scans.folder,subroute:"folder",items:ce("folder")}},explorerScan:{id:"settings-scans-explorer",type:"tab",title:v(ae.scans.explorer),hash:"Settings/Scans/explorer",compo:re,compoParams:{scanId:"{2243A056-84B3-4327-8E46-5FE41F72EE91}",scanType:"explorer"},testAttr:"explorer",search:{title:ae.scans.explorer,subroute:"explorer",items:ce("explorer")}},boottimeScan:{id:"settings-scans-boottime",type:"tab",title:v(ae.scans.boottime),hash:"Settings/Scans/boottime",compo:na,testAttr:"boottime",search:{title:ae.scans.boottime,subroute:"boottime",items:ea()}}},aa={title:ae.title,desc:ae.desc,subpages:[sa.fullScan,sa.folderScan,sa.explorerScan,sa.boottimeScan]},ia=t.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{noInstall:"true",noEnable:"true",title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}]},f:[{t:7,e:"SettingsTabs",a:{tabs:[{t:2,r:"tabs"}],selectedTabId:[{t:2,r:"selectedTabId"}]}}]}]},router:new b,data:()=>({STRINGS:ae,selectedTabId:null,tabs:[sa.fullScan,sa.folderScan,sa.explorerScan,sa.boottimeScan]}),oninit(){this.router.on("/",this.handleRoute.bind(this)),this.router.on("/:scan",this.handleRoute.bind(this))},onteardown(){this.router.removeAllListeners()},handleRoute(t){t&&t.scan?this.set("selectedTabId","settings-scans-"+t.scan):window.location.hash=this.get("tabs.0.hash")}}),oa=[{label:v("geek.scan.full"),id:"{7C4966F0-D502-412D-A636-ACCC39A24BB2}"},{label:v("geek.scan.targeted"),id:"{C6156735-F7A2-4387-94A7-0479004A7310}"},{label:"Explorer Scan",id:"{2243A056-84B3-4327-8E46-5FE41F72EE91}"},{label:v("geek.scan.quick"),id:"{EC4ECEDA-3E3B-4027-ABFE-29A5122D64D6}"}],ca=[{label:"Automatic action to be performed during the scan",path:{name:"avcfg://settings/***TaskGUID***/VirusAction"},type:"select",options:[{label:"Fix automatically",value:"fix"},{label:v("geek.move.to.chest"),value:"trezor"},{label:"Repair",value:"repair"},{label:"Abort connection",value:"abort"},{label:"Ask",value:"interactive"},{label:"Delete",value:"delete"},{label:"Nothing",value:""}]},{label:"Processing of infected archives",path:{name:"avcfg://settings/***TaskGUID***/ActionOnPackedFile"},type:"select",options:[{label:"Try to remove only the packed file from the archive; if it fails, do nothing",value:"onlyfile"},{label:"Try to remove only the packed file; if it fails, remove the whole containing archive",value:"filearchive"},{label:"Always remove the whole archive",value:"wholearchive"}]},{label:"Speed up scanning by using persistent cache",desc:"This option will increase the scan speed by consulting the persistent cache before scanning each file.",path:{name:"avcfg://settings/***TaskGUID***/ConsultUsn"},type:"checkbox"},{label:"Store data about scanned files in the persistent cache",desc:"This option tells the engine to populate the persistent cache during the scan. Turning this option on will slow down the scan.",path:{name:"avcfg://settings/***TaskGUID***/PopulateUsn"},type:"checkbox"},{label:"Speed up scanning by reading files in the order they are stored on the disk",desc:"This option will tell the engine to scan files in the order they are actually stored on the disk. This minimizes the number of seek operations the drive has to make which usually speeds up the whole scan. This option is only effective on NTFS volumes.",path:{name:"avcfg://settings/***TaskGUID***/ScanFilesOrdered"},type:"checkbox"},{label:"Report file name",path:{name:"avcfg://settings/***TaskGUID***/ReportName"},type:"text"},{label:"Report file type",path:{name:"avcfg://settings/***TaskGUID***/Report"},type:"select",options:[{label:"Plain text (ANSI)",value:"TXT"},{label:"Plain text (Unicode)",value:"UTXT"},{label:"XML",value:"XML"}]},{label:"If report file exists",path:{name:"avcfg://settings/***TaskGUID***/OverwriteReport"},type:"select",options:[{label:"Append",value:"0"},{label:"Overwrite",value:"1"}]},{label:"Reported items",desc:"Possible values: Infected, HardErrors, SoftErrors, OK, Skipped. Values are separated by semicolon (e.g. OK;Skipped). There may be also values Start and Stop but they have no effect.",path:{name:"avcfg://settings/***TaskGUID***/ReportRecords"},type:"text"}],ra=[{label:"Do not start the scan if running on batteries",path:{name:"avcfg://settings/***TaskGUID***/DoNotStartOnBatteries"},type:"checkbox"},{label:"Pause the scan if batteries mode begins",path:{name:"avcfg://settings/***TaskGUID***/PauseOnBatteries"},type:"checkbox"}],la=[{label:"Boot-Time Scan: Automatic action to be performed during the scan",path:"avcfg://settings/Common/BootTimeScanDefaultAction",type:"select",options:[{label:"Auto",value:"fix"},{label:v("geek.move.to.chest"),value:"chest"},{label:"Repair",value:"repair"},{label:"Ask",value:"ask"},{label:"Delete",value:"delete"},{label:"Nothing",value:"ignore"}]},{path:"avcfg://settings/Scanner/RawBootTimeScan",label:v("geek.scan.raw.boottime.label"),desc:"Without the raw disk access, the Boot-Time Scan will not be able to detect some rootkits.",type:"checkbox"},{path:"avcfg://settings/Scanner/SkipSignatureChecks",label:"Skip checking of digital signatures of infected files",desc:"The information from digital signatures can be used to prevent false alarms.",type:"checkbox"},{path:"avcfg://settings/Common/CleanUpScanLogs",label:"Delete scan logs",type:"checkbox"},{path:"avcfg://settings/UserInterface/AutoDelete",label:"Delete scan logs older than",type:"number",minValue:0,unit:"days"},{path:"avcfg://settings/Common/CleanUpScanLogsTemp",label:"Delete temporary scan logs",type:"checkbox"},{path:"avcfg://settings/Common/AutoDeleteSessions",label:"Delete temporary scan logs older than",type:"number",minValue:0,unit:"days"},{id:"scans_cleanHistory",label:"Clean scan history",type:"button",action:s.bind(null,"app.scans.CleanHistory")}];function da(){return s("app.scanViruses.GetScans").then((t=>{const e=t.filter((t=>"custom"===t.type)),n=oa.concat(e),s=[];return n.forEach((t=>{let e;e="custom"===t.type?ca.concat(ra):ca,e.forEach((e=>{const n=w({},e);n.label=t.label+": "+n.label,n.path.objectId=t.id,s.push(n)}))})),s.concat(la)})).catch((t=>(console.error("loading scans to get all scan geek properties failed",t),la)))}const ua=function(e){return t.extend({router:new b,template:Jt,css:".scn_settings__modal_content {\n  padding-top: 0 !important;\n  text-align: left;\n}\n.scn_settings__modal_content .stg_input__wrapper .input {\n  width: 100%;\n}\n.scn_settings__modal_content .scn_inputs__row {\n  display: grid;\n  grid-template-columns: 34.5% 34.5% 31%;\n}\n.scn_settings__modal_content .scn_inputs__row .settings__row {\n  width: 90%;\n}\n.scn_settings__modal_content .scn_inputs__row .settings__row:nth-child(3) {\n  width: 100%;\n}\n.scn_settings__modal_content .scn_settings_schedule_flex .settings__row .input {\n  width: 100%;\n}\n.scn_boot__desc {\n  width: 49rem;\n  margin: auto;\n}\n.scn_boot__table [slot=table-body] {\n  width: 49rem !important;\n  margin: 0 auto 3rem !important;\n}\n.scn_boot__row {\n  grid-template-columns: auto 13rem;\n  height: 4.8rem;\n}\n.scn {\n  text-align: var(--page-header-align);\n}\n.scn .scn_nowrap {\n  white-space: nowrap;\n}\n.scn.-overlay {\n  text-align: initial;\n}\n.scn_icon {\n  font-size: 80px;\n  margin-bottom: 4vh;\n  margin-top: 1vh;\n}\n.scn_cta {\n  margin-top: 4vh;\n  height: 50px;\n}\n.scn_cta__progress {\n  max-width: 300px;\n  margin: 5px auto 8px;\n}\n.scn_cta__finished {\n  position: relative;\n  top: -5px;\n}\n.scn_header__border {\n  width: 1px;\n  background-color: rgba(255,255,255,0.3);\n  display: inline-block;\n  height: 15px;\n  vertical-align: middle;\n}\n.scn .scn_count {\n  margin: 5px 5px 0 0;\n  background: rgba(255,255,255,0.7);\n  color: #353f59;\n  position: absolute;\n  top: 3px;\n  right: 3px;\n}\n.scn .scn_settings {\n  margin-top: 8px;\n}\n.scn .scn_settings__btn {\n  margin: 0 16px;\n}\n.scn .scn_settings_schedule_flex {\n  display: flex;\n  justify-content: flex-start;\n}\n.scn .scn_settings_schedule_inputInRow {\n  display: flex;\n  flex-direction: column;\n  padding-right: 1rem;\n  justify-content: flex-end;\n}\n.scn_settings_info_flex {\n  display: flex;\n  flex-flow: row nowrap;\n  align-items: center;\n}\n.scn_scheduled {\n  position: absolute;\n  margin-left: -8px;\n  opacity: 0.5;\n}\n.scn_table__name {\n  width: 40%;\n}\n.scn_table__name.-pane {\n  width: auto;\n  padding-top: 10px;\n  padding-bottom: 18px;\n}\n.scn_table__name.-pane dd {\n  margin: 0;\n  padding-left: 4px;\n}\n.scn_custom__row {\n  grid-template-columns: 30% 45% 20% 5%;\n}\n.scn_history__row {\n  grid-template-columns: 6% 30% 49% 15%;\n}\n.scn_history__row .scn_history__report {\n  position: absolute;\n  right: 0.5rem;\n  bottom: 1rem;\n}\n.scn_boot-time__cta {\n  min-height: 6rem;\n  display: flex;\n  flex-flow: column;\n  justify-content: flex-end;\n}\n.scn_boot-time__desc {\n  width: 46rem;\n}\n.scn_install {\n  background-color: rgba(255,255,255,0.05);\n  padding: 1rem 4rem;\n  margin: 5rem 0;\n  box-shadow: 0 0 90px -10px rgba(0,0,0,0.2);\n  border-radius: 1.2rem;\n  display: flex;\n  width: 80%;\n  flex-flow: column;\n  justify-content: center;\n  align-items: center;\n  min-height: 16rem;\n}\n.stg__tooltip {\n  max-width: 500px;\n}\n.stg_language__row {\n  text-align: start;\n  padding: 8px;\n  margin: 0 20px;\n  border-top: 1px solid rgba(255,255,255,0.15);\n}\n.stg_update__row {\n  min-height: 6.5rem;\n  border-bottom: solid 1px transparent;\n}\n.stg_update__form {\n  margin-top: 1rem;\n}\n.stg_update__form .input__label.-inline {\n  width: 20%;\n}\n.stg_update__form .input {\n  width: 79%;\n}\n.stg_geek__field {\n  position: relative;\n}\n.stg_geek__field input[type='text'],\n.stg_geek__field input[type='number'],\n.stg_geek__field select {\n  width: 100%;\n}\n.stg_item__disabled {\n  pointer-events: none;\n  opacity: 0.5;\n}\n.kin_table__header.-threatslist,\n.kin_table__row.-threatslist {\n  grid-template-columns: 3.5rem 6% 25% auto 25%;\n}\n.scn_sub-icon {\n  position: absolute;\n  top: 2.2rem;\n  left: 55%;\n}\n.scn_show-hide__no-decoration {\n  text-decoration: none;\n}\n.scn_show-hide__no-decoration:visited {\n  color: var(--ds-on-background);\n}\n[dir=rtl] .scn .scn_settings_schedule_inputInRow {\n  padding-right: 0;\n  padding-left: 1rem;\n}\n[dir=rtl] .scn_history__row .scn_history__report {\n  left: 0.5rem;\n  right: initial;\n}\n",components:{Main:ne,Scan:se,CustomScanSettings:he,ScanHistory:pe,Performance:fe},partials:{Main:"<Main />",ScanHistory:"<ScanHistory />",Performance:"<Performance />"},data:()=>({initialized:!1,page:null,overlay:null,customScanSettingsConfig:null,getPage:function(){return this.get("page")},getOverlay:function(){return this.get("overlay")}}),oninit(){A.setBrandedComponents(e),this.components.BoottimeScan=A.getBrandedComponent("BoottimeScan"),this.components.CustomScans=A.getBrandedComponent("CustomScans"),this.router.on("/",this._handleRoute.bind(this)),this.router.on("/:level1",this._handleRoute.bind(this)),this.router.on("/:level1/:level2",this._handleRoute.bind(this)),this.router.on("/:level1/:level2/:level3",this._handleRoute.bind(this)),this.router.on("/:level1/:level2/path/:path",this._handleRoute.bind(this)),this.router.on("/:level1/:level2/:level3/path/:path",this._handleRoute.bind(this)),this.listener=this.on("Overlay.close Modal.close CustomScanSettings.close",(()=>{this.get("customScanSettingsConfig.backHash")?window.location.hash=this.get("customScanSettingsConfig.backHash"):"modal"===this.get("customScanSettingsConfig.windowType")?(window.location.hash="#Scans",setTimeout((()=>{const t=document.querySelector("#one-custom-scans");t&&t.scrollIntoView()}),500)):window.location.hash=this.lastPageHash||"#Scans/customScans"}))},onteardown(){this.router.removeAllListeners(),this.listener.cancel(),delete this.listener},_handleRoute(t){let e,n,s;const a=this.get("customScanSettingsConfig");let i="";if(a)for(const[o,c]of Object.entries(a))i+=`${o}= "${c}"`;switch(t&&t.level1&&t.level1.toLowerCase()){case"scan":s="Scan"+t.level2+(t.level3?"-"+t.level3:"")+(t.path?"-"+t.path:""),e=this._makePartial(s,"<Scan scanId="+t.level2+" sessionId="+t.level3+" path="+t.path+" />");break;case"boottimescan":e=this._makePartial("BoottimeScan","<BoottimeScan scanId="+(t.level2||"boottime")+" />");break;case"customscans":t.level2&&"settings"===t.level3?n=this._makePartial("CustomScanSettings"+t.level2,"<CustomScanSettings "+i+" scanId="+t.level2+" />"):e=this._makePartial("CustomScans","<CustomScans />");break;case"scanhistory":e=t.level2&&t.level3?this._makePartial("ScanHistory"+t.level2+t.level3,"<ScanHistory scanId="+t.level2+" sessionId="+t.level3+" />"):"ScanHistory";break;case"performance":e="Performance";break;default:e="Main"}e&&(this.lastPageHash=window.location.hash,this.set("page",e)),this.set("overlay",n),this.set("initialized",!0)},_makePartial(t,e){return this.partials[t]||(this.partials[t]=e),t}})}(Zt),ha=function(e,n,i){return t.extend({template:e,components:{ThreatsList:n},css:"[slot='table-header'],\n.kin_table__row {\n  grid-template-columns: 3.5rem 5% 30% auto 30%;\n}\n.scn_sub-icon {\n  position: absolute;\n  top: 2.2rem;\n  left: 2.5rem;\n}\n[dir='rtl'] .scn_sub-icon {\n  right: 2.5rem;\n  left: auto;\n}\n",twoway:!1,scannerId:void 0,data:()=>({stripHtml:m.stripHtml,scannerData:{progress:void 0,status:void 0,issuesCount:void 0},loading:!0,lastScanned:"",scanId:"{D93EF81A-B92F-27FE-AF54-9278EA8BF910}",showThreats:!1,allResolved:null,threatsCount:null,threatsCountTotal:null,resolvedWithError:null}),lastScannedBuffer:[],_intervalLastScanned:void 0,_intervalScanViruses:void 0,_lastScannedCounter:0,oninit(){a.view("SmartScan/Resolve/Scans"),this._startPollingForPath(),this.on("stop",(()=>{this.fire("trackSmartScanStop"),this.fire("stopScan")})),this.on("updateScannerData",(t=>{this.set("scannerData",{progress:t.progress,status:t.status,issuesCount:t.issuesCount}),"done"===t.status&&(this._clearPollingForPath(),t.issuesCount>0?this.set("showThreats",!0):this.dispatchIpmParams())})),this.on("ThreatsList.threatsResolved",(()=>{this.fire("trackSmartScanClick",{label:"continue"}),this.dispatchIpmParams(),this.fire("nextScanner")})),this.on("next",(()=>{this.fire("trackSmartScanClick",{label:"continue"}),this.fire("nextScanner")})),this.on("ThreatsList.threatsSkip",(()=>{let t;this.fire("trackSmartScanClick",{label:"skip"}),this.dispatchIpmParams(),i&&(t={title:v("scans.smartScan.skipModal.title",this.get("threatsCount")),desc:v("scans.smartScan.skipModal.desc"),confirm:v("scans.smartScan.skipModal.confirm"),cancel:v("global.cancel")}),this.fire("skipScanner",{scannerId:this.scannerId,customSkipModal:t})})),this.on("ThreatsList.data",(t=>{this.set({loading:t.loading,threatsCount:t.threatsCount,threatsCountTotal:t.threatsCountTotal,allResolved:t.allResolved})})),this.observe("allResolved",(t=>{t&&this.fire("allIssuesResolved",this.scannerId)}),{init:!1})},dispatchIpmParams(){const t=this.get("threatsCount")||0,e=this.get("threatsCountTotal")||0,n=this.get("allResolved"),s={p_ssuv:n?0:t,p_ssrv:n?e:e-t};this.fire("saveScannerIpmParams",s)},_startPollingForPath(){this._intervalScanViruses=setInterval((()=>{s("app.scanViruses.GetStatus",{scanId:"{D93EF81A-B92F-27FE-AF54-9278EA8BF910}"}).then((t=>{if("done"===t.status)return clearInterval(this._intervalScanViruses),void this._clearIntervalLastScanned();this._pushLastScanned(t.lastScanned),this._startIntervalLastScanned()}))}),400)},_pushLastScanned(t){if(!t)return this._clearIntervalLastScanned(),this.lastScannedBuffer=[],void this.set("lastScanned","");t=this.normalizePath(t),this.lastScannedBuffer.indexOf(t)>-1?this._clearIntervalLastScanned():(6===this.lastScannedBuffer.length?this.lastScannedBuffer.shift():this.set("lastScanned",t),this.lastScannedBuffer.push(t))},_startIntervalLastScanned(){this._intervalLastScanned||6!==this.lastScannedBuffer.length||(this._intervalLastScanned=setInterval((()=>{this.set("lastScanned",this.lastScannedBuffer[this._lastScannedCounter++%6])}),400/6))},_clearIntervalLastScanned(){clearInterval(this._intervalLastScanned),this._intervalLastScanned=void 0},normalizePath:t=>"string"!=typeof t?"":t=(t=t.replace(/\\+/g,"\\")).replace(/([a-z]:)?(\\)/g,(function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),_clearPollingForPath(){clearInterval(this._intervalScanViruses),this._clearIntervalLastScanned()},onteardown(){this._clearPollingForPath()}})}({v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 smr_progress__title","data-test":"ss_scanViruses_progress"},f:[{t:3,x:{r:["nls","scannerData.progress"],s:'_0("scans.ss2.progress.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:7,e:"SmartTextTrim",a:{text:[{t:2,r:"lastScanned"}],ellipsisInMiddle:"true",width:"75%"}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",a:{type:"secondary","data-test":"ss_scanViruses_stop"},v:{click:"stop"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}]}],n:50,x:{r:["scannerData.status"],s:'_0!=="done"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["scannerData.issuesCount"],s:"_0===0"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanViruses_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",v:{click:"nextScanner"},a:{"data-test":"ss_scanViruses_next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["scannerData.issuesCount"],s:"!(_0===0)"},f:[" ",{t:7,e:"kin-view",a:{csscls:"-center",loading:[{t:2,r:"loading"}]},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:4,f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:7,e:"span",a:{class:"color-ok -text","data-test":"ss_scanViruses_titleResolved"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.allResolved.title")'}}]}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.allResolved.subtitle")'}}]}],n:50,r:"allResolved"},{t:4,n:51,f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanViruses_title"},f:[{t:3,x:{r:["nls","threatsCount"],s:'_0("scans.ss2.results.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scans.ss2.results.subtitle")'}}]}],r:"allResolved"}]}," ",{t:4,f:[{t:7,e:"ThreatsList",a:{scanId:[{t:2,r:"scanId"}],sessionId:[{t:2,r:"sessionId"}],showSkipOnSelected:"true",preselectAll:"true"}}],n:50,r:"showThreats"}]}]}],x:{r:["scannerData.status"],s:'_0!=="done"'}}]},Zt.ThreatsList);export default ua;export{ha as SmartScanV2,Gs as antirootkitDetectionDialog,Ns as detection,Ms as idpDetectionDialog,qs as pendingUnresolvedScanDetection,Ys as scanProgressToaster,A as serviceProxy,ia as settings,da as settingsGeek,aa as settingsSearchStrings,zt as utils};const pa={name:"Scans",version:"1.2.836",created:"2021-09-06T10:44:08.580Z"};export{pa as metadata};