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/SecurityNetwork.js
//{"name":"SecurityNetwork","version":"1.2.952","created":"2021-09-06T10:50:04.523Z"}
import{serviceRequest as e,eventer as t,onlineChecker as n,debugMode as s,napiTracker as i,windowApi as o,burgerTracker as l}from"./napi.js";import{logger as c,trapTabNavigation as r,TabableToggler as a,TabTrapper as u,Router as d}from"./libs.js";import p,{nls as m,moment as h,format as v}from"./i18n.js";import{productModel as g,ipmService as f,settingsService as _,abTests as k}from"./napiExtensions.js";import{svelteComponents as w}from"./Settings.js";function $(){}const b=e=>e;function y(e){return e()}function I(){return Object.create(null)}function C(e){e.forEach(y)}function N(e){return"function"==typeof e}function E(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function x(e,...t){if(null==e)return $;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function S(e){let t;return x(e,(e=>t=e))(),t}function T(e,t,n){e.$$.on_destroy.push(x(t,n))}function O(e,t,n,s){if(e){const i=A(e,t,n,s);return e[0](i)}}function A(e,t,n,s){return e[1]&&s?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](s(t))):n.ctx}function D(e,t,n,s,i,o,l){const c=function(e,t,n,s){if(e[2]&&s){const i=e[2](s(n));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],n=Math.max(t.dirty.length,i.length);for(let s=0;s<n;s+=1)e[s]=t.dirty[s]|i[s];return e}return t.dirty|i}return t.dirty}(t,s,i,o);if(c){const i=A(t,n,s,l);e.p(i,c)}}function H(e){return e&&N(e.destroy)?e.destroy:$}const L="undefined"!=typeof window;let M=L?()=>window.performance.now():()=>Date.now(),R=L?e=>requestAnimationFrame(e):$;const z=new Set;function P(e){z.forEach((t=>{t.c(e)||(z.delete(t),t.f())})),0!==z.size&&R(P)}function q(e){let t;return 0===z.size&&R(P),{promise:new Promise((n=>{z.add(t={c:e,f:n})})),abort(){z.delete(t)}}}function U(e,t){e.appendChild(t)}function W(e,t,n){e.insertBefore(t,n||null)}function V(e){e.parentNode.removeChild(e)}function j(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function B(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function G(e){return document.createTextNode(e)}function K(){return G(" ")}function Y(){return G("")}function J(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function X(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Z(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Q(e,t,n){t in e?e[t]=n:Z(e,t,n)}function ee(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function te(e,t,n,s){e.style.setProperty(t,n,s?"important":"")}function ne(e,t,n){e.classList[n?"add":"remove"](t)}function se(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}class ie{constructor(e=null){this.a=e,this.e=this.n=null}m(e,t,n=null){this.e||(this.e=B(t.nodeName),this.t=t,this.h(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)W(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(V)}}const oe=new Set;let le,ce=0;function re(e,t,n,s,i,o,l,c=0){const r=16.666/s;let a="{\n";for(let g=0;g<=1;g+=r){const e=t+(n-t)*o(g);a+=100*g+`%{${l(e,1-e)}}\n`}const u=a+`100% {${l(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${c}`,p=e.ownerDocument;oe.add(p);const m=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(B("style")).sheet),h=p.__svelte_rules||(p.__svelte_rules={});h[d]||(h[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const v=e.style.animation||"";return e.style.animation=`${v?`${v}, `:""}${d} ${s}ms linear ${i}ms 1 both`,ce+=1,d}function ae(e,t){const n=(e.style.animation||"").split(", "),s=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=n.length-s.length;i&&(e.style.animation=s.join(", "),ce-=i,ce||R((()=>{ce||(oe.forEach((e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}})),oe.clear())})))}function ue(e){le=e}function de(){if(!le)throw new Error("Function called outside component initialization");return le}function pe(e){de().$$.on_mount.push(e)}function me(e){de().$$.on_destroy.push(e)}function he(){const e=de();return(t,n)=>{const s=e.$$.callbacks[t];if(s){const i=se(t,n);s.slice().forEach((t=>{t.call(e,i)}))}}}const ve=[],ge=[],fe=[],_e=[],ke=Promise.resolve();let we=!1;function $e(e){fe.push(e)}let be=!1;const ye=new Set;function Ie(){if(!be){be=!0;do{for(let e=0;e<ve.length;e+=1){const t=ve[e];ue(t),Ce(t.$$)}for(ue(null),ve.length=0;ge.length;)ge.pop()();for(let e=0;e<fe.length;e+=1){const t=fe[e];ye.has(t)||(ye.add(t),t())}fe.length=0}while(ve.length);for(;_e.length;)_e.pop()();we=!1,be=!1,ye.clear()}}function Ce(e){if(null!==e.fragment){e.update(),C(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach($e)}}let Ne;function Ee(){return Ne||(Ne=Promise.resolve(),Ne.then((()=>{Ne=null}))),Ne}function xe(e,t,n){e.dispatchEvent(se(`${t?"intro":"outro"}${n}`))}const Se=new Set;let Te;function Oe(){Te={r:0,c:[],p:Te}}function Ae(){Te.r||C(Te.c),Te=Te.p}function De(e,t){e&&e.i&&(Se.delete(e),e.i(t))}function He(e,t,n,s){if(e&&e.o){if(Se.has(e))return;Se.add(e),Te.c.push((()=>{Se.delete(e),s&&(n&&e.d(1),s())})),e.o(t)}}const Le={duration:0};const Me="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Re(e){e&&e.c()}function ze(e,t,n,s){const{fragment:i,on_mount:o,on_destroy:l,after_update:c}=e.$$;i&&i.m(t,n),s||$e((()=>{const t=o.map(y).filter(N);l?l.push(...t):C(t),e.$$.on_mount=[]})),c.forEach($e)}function Pe(e,t){const n=e.$$;null!==n.fragment&&(C(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function qe(e,t){-1===e.$$.dirty[0]&&(ve.push(e),we||(we=!0,ke.then(Ie)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ue(e,t,n,s,i,o,l=[-1]){const c=le;ue(e);const r=e.$$={fragment:null,ctx:null,props:o,update:$,not_equal:i,bound:I(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:I(),dirty:l,skip_bound:!1};let a=!1;if(r.ctx=n?n(e,t.props||{},((t,n,...s)=>{const o=s.length?s[0]:n;return r.ctx&&i(r.ctx[t],r.ctx[t]=o)&&(!r.skip_bound&&r.bound[t]&&r.bound[t](o),a&&qe(e,t)),n})):[],r.update(),a=!0,C(r.before_update),r.fragment=!!s&&s(r.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);r.fragment&&r.fragment.l(e),e.forEach(V)}else r.fragment&&r.fragment.c();t.intro&&De(e.$$.fragment),ze(e,t.target,t.anchor,t.customElement),Ie()}ue(c)}class We{$destroy(){Pe(this,1),this.$destroy=$}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ve=[];function je(e,t){return{subscribe:Be(e,t).subscribe}}function Be(e,t=$){let n;const s=[];function i(t){if(E(e,t)&&(e=t,n)){const t=!Ve.length;for(let n=0;n<s.length;n+=1){const t=s[n];t[1](),Ve.push(t,e)}if(t){for(let e=0;e<Ve.length;e+=2)Ve[e][0](Ve[e+1]);Ve.length=0}}}return{set:i,update:function(t){i(t(e))},subscribe:function(o,l=$){const c=[o,l];return s.push(c),1===s.length&&(n=t(i)||$),o(e),()=>{const e=s.indexOf(c);-1!==e&&s.splice(e,1),0===s.length&&(n(),n=null)}}}}function Fe(e,t,n){const s=!Array.isArray(e),i=s?[e]:e,o=t.length<2;return je(n,(e=>{let n=!1;const l=[];let c=0,r=$;const a=()=>{if(c)return;r();const n=t(s?l[0]:l,e);o?e(n):r=N(n)?n:$},u=i.map(((e,t)=>x(e,(e=>{l[t]=e,c&=~(1<<t),n&&a()}),(()=>{c|=1<<t}))));return n=!0,a(),function(){C(u),r()}}))}const Ge="#Settings/SecurityNetwork",Ke=100,Ye={avast:{id:201,api:"public.AvastSecureLine"},avg:{id:202,api:"public.AVGSecureVPN"}}[g.getBrand()];const Je=new class{getMyNetwork(){return e("app.anen.get_status",1).then((e=>Array.isArray(e)&&e[0]?e[0]:null))}getNetworks(){return e("app.anen.get_status",0).then((e=>Array.isArray(e)?e:null))}getNetworkType(t){return e("app.anen.storage.app.value.get",{network_id:t,app_id:"hns_general",key:"network_type"}).catch((()=>"unknown"))}getHnsInit(){return e("asw.hns.init",{protocol_version:6}).then((e=>{const t={protocol:e.protocol_version,networkInfo:{name:e.network_name?e.network_name:"",signal:e.wifi_quality,encryption:e.wifi_encryption,auth:e.wifi_auth,scanType:e.scan_type}};return e.scan&&(e.scan_id||"NewNetwork"===e.scan.start_type)&&(t.scanning={scanId:e.scan_id,category:e.scan.category,startType:e.scan.start_type,type:e.scan.type}),t}))}getLastScan(){return e("asw.hns.devices",{name:"CURRENT_SCAN",type:"full"}).then((e=>!(!e||"no_data"===e.status||!e.protocol_version)&&e))}stopScan(){return e("asw.hns.cancel")}isScanRunning(){return e("asw.hns.progress_r").then((e=>Boolean(e.scan_id)))}startScan(t){return e("asw.hns.start",{scan_type:t}).then((e=>!(!e||"ok"!==e.status)||Promise.reject()))}openVpn(){return e("app."+g.getProductId()+".lis.open.ui",{id:"svpn"})}isSecurelineRunning(){return e(Ye.api+".GetState",{}).then((e=>e&&"connected"===e.vpnStatus)).catch((()=>!1))}isSecurelineInstalled(){return e("app."+g.getProductId()+".lis.get.install",{ids:["svpn"]}).then((e=>e&&e.products&&e.products.svpn&&e.products.svpn.installed)).catch((()=>!1))}isVpnDisabled(){return e("app.settings.Get","avdef://config/GuiCache/VpnDisabled").then((e=>Boolean(e))).catch((()=>!1))}isOtherVpnInstalled(){return e("app.settings.Get","avcfg://settings/Common/VpnIdList").then((e=>((e=e||"").split(","),e.some((function(e){return e!=Ye.id}))))).catch((()=>!1))}updateDevice(t){return e("asw.hns.command",t)}},Xe=je(void 0,(function(e){Je.getMyNetwork().then((t=>e(t))).catch((()=>e(null)));const n=t.on("app.anen.network.changed",(()=>Je.getMyNetwork().then((t=>e(t))).catch((()=>e(null)))));return function(){n()}})),Ze=Fe(Xe,((e,t)=>{void 0!==e&&t(e&&e.network_id?e.network_id:null)})),Qe=Fe(Xe,((e,t)=>{if(void 0===e)return;let n=0;e&&e.connectivity&&(e.connectivity.ipv4&&(n=e.connectivity.ipv4),e.connectivity.ipv6&&e.connectivity.ipv6>n&&(n=e.connectivity.ipv6)),t(n)})),et=Fe(Ze,((e,n)=>{if(void 0===e)return;function s(){Je.getHnsInit().then((e=>n(e))).catch((()=>n(null)))}s();const i=[];return i.push(t.on("asw.hns.progress",(e=>{e&&100===e.progress&&s()}))),i.push(t.on("hnsReloadStatus",(()=>{s()}))),function(){i.forEach((e=>{e()}))}}),void 0);let tt=0;const nt=Fe(et,((e,t)=>{var n;void 0!==e&&(tt++,e&&e.networkInfo.scanType?t(!0):(n=tt,Je.getLastScan().then((e=>{n===tt&&t(Boolean(e))})).catch((()=>{n===tt&&t(null)}))))}),void 0),st=Be(void 0,(e=>{Je.isScanRunning().then((t=>e(t?"running":""))).catch((()=>e(null)));const n=t.on("asw.hns.progress",(e=>{st.update((t=>"stopping"!==t?e.progress>=0&&e.progress<100?"running":"":t))}));return function(){st.stopper&&clearTimeout(st.stopper),n()}}));st.stopping=function(){st.stopper&&clearTimeout(st.stopper),st.set("stopping"),st.stopper=setTimeout((function(){st.set("")}),5e3)};const it=je(void 0,(e=>{function n(){Je.isSecurelineRunning().then((t=>e(t)))}n();const s=t.on(Ye.api+".OnStateChanged",(e=>{e&&e.data&&e.data.vpnStatus&&n()}));return function(){s()}})),ot=je(void 0,(e=>{function n(){Je.isSecurelineInstalled().then((t=>e(t)))}n();const s=t.on("app."+g.getProductId()+".lis.install.event",(e=>{e&&"finish"===e.step&&n()}));return function(){s()}})),lt=je(void 0,(e=>{Je.isOtherVpnInstalled().then((t=>e(t)))})),ct=je(void 0,(e=>{function n(){e(g.isLicensed("SecureDnsShield"))}n();const s=t.on("app.setup.ProgramUpdateFinished",(()=>{n()}));return function(){s()}})),rt=je(void 0,(e=>{Je.isVpnDisabled().then((t=>e(t)))})),at=je(void 0,(n=>{const s=g.getBrand()||"avast",i=e=>({installed:g.isInstalled(e),licensed:g.isLicensed(e),enabled:g.isEnabled(e)}),o={firewall:i("Firewall"),secureDns:i("SecureDnsShield"),ras:i("RemoteAccessShield"),vpn:{installed:null,enabled:null,otherVpn:null}},l=[];return n(o),e("app."+s+".lis.get.install",{ids:["svpn"]}).then((e=>{o.vpn.installed=e?.products.svpn?.installed,n(o)})),e("app.settings.Get","avcfg://settings/Common/VpnIdList").then((e=>{if(""!==(e=(e||"")+"")){const t=(e=e.split(",")).some((function(e){return e!=Ye.id}));o.vpn.otherVpn=t,n(o)}})),l.push(t.on("product.change.feature",(()=>{o.firewall=i("Firewall"),o.secureDns=i("SecureDnsShield"),o.ras=i("RemoteAccessShield"),n(o)}))),()=>{l.forEach((e=>{e()}))}}));const ut={UNKNOWN:{icon:"icon-m-devices-unknown",group:"OTHER"},ROUTER:{icon:"icon-m-devices-router",group:"IT"},PC:{icon:"icon-m-desktop",group:"IT",protocol:5},GENERIC_COMPUTER:{icon:"icon-m-desktop",group:"IT",protocol:6},MOBILE_PHONE:{icon:"icon-m-devices-mobile",group:"MOBILE"},TABLET:{icon:"icon-m-devices-tablet",group:"MOBILE"},TV:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},NAS:{icon:"icon-m-devices-storage",group:"IT"},PRINTER:{icon:"icon-m-devices-printer",group:"IT"},APPLIANCE:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},IP_PHONE:{icon:"icon-m-devices-mobile",group:"IT"},NETWORK_NODE:{icon:"icon-m-devices-router",group:"IT"},GAME_CONSOLE:{icon:"icon-m-devices-videogame",group:"ENTERTAINMENT"},GAME_HANDHELD:{icon:"icon-m-devices-videogame",group:"ENTERTAINMENT"},MEDIA_BOX:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT"},MEDIA_DISPLAY:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},LIGHTING:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},ENTRY_CONTROL:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},HVAC_CONTROL:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},POWER_CONTROL:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},INDUSTRIAL:{icon:"icon-m-devices-generic-iot",group:"OTHER"},MEDICAL:{icon:"icon-m-devices-generic-iot",group:"OTHER"},WEARABLE:{icon:"icon-m-devices-smartwatch",group:"MOBILE"},VEHICLE:{icon:"icon-m-devices-car",group:"OTHER"},DRONE:{icon:"icon-m-devices-generic-iot",group:"OTHER"},THERMOSTAT:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},SENSOR:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},CAMERA:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT",protocol:5},PHOTO_CAMERA:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT",protocol:6},VIDEO_CAMERA:{icon:"icon-m-devices-camera",group:"ENTERTAINMENT"},SECURITY_CAMERA:{icon:"icon-m-devices-security-camera",group:"HOUSEHOLD"},AUDIO:{icon:"icon-m-devices-speaker",group:"ENTERTAINMENT"},POS:{icon:"icon-m-devices-generic-iot",group:"IT"},ATM:{icon:"icon-m-devices-generic-iot",group:"OTHER"},VENDING_MACHINE:{icon:"icon-m-devices-generic-iot",group:"OTHER"},INTERACTIVE_SURFACE:{icon:"icon-m-devices-tablet",group:"ENTERTAINMENT"},HMD:{icon:"icon-m-devices-generic-iot",group:"OTHER"},REMOTE_CONTROL:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},HID:{icon:"icon-m-devices-generic-iot",group:"IT"},DVR:{icon:"icon-m-devices-generic-iot",group:"IT"},IOT_HUB:{icon:"icon-m-devices-generic-iot",group:"IT"},VOICE_ASSISTANT:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SECURITY_BOX:{icon:"icon-m-devices-generic-iot",group:"IT"},TOY:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT"},WELLNESS:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},TOOTHBRUSH:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},HEATING:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},VENTILATION:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},AIR_CONDITIONING:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},POWER_OUTLET:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},POWER_SWITCH:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},HOUSE_CONTROL:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SECURITY_ALARM:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SECURITY_SENSOR:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SAFE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},LOCK:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},HOBBY_MANUFACTURING:{icon:"icon-m-devices-generic-iot",group:"OTHER"},UTILITY_METER:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},AUTONOMOUS_APPLIANCE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},WASTE_MANAGEMENT:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},IRRIGATION:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},FOOTWEAR:{icon:"icon-m-devices-smartwatch",group:"OTHER"},CLOTHING:{icon:"icon-m-devices-smartwatch",group:"OTHER"},PARKING_MONITOR:{icon:"icon-m-devices-generic-iot",group:"OTHER"},GENERIC_MOBILE_DEVICE:{icon:"icon-m-devices-mobile",group:"MOBILE"},GENERIC_MEDIA:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},GENERIC_WORK_APPLIANCE:{icon:"icon-m-devices-printer",group:"IT"},GENERIC_HOME_APPLIANCE:{icon:"icon-m-devices-home-appliance",group:"HOUSEHOLD"},GENERIC_HOME_AUTOMATION:{icon:"icon-m-devices-home-appliance",group:"HOUSEHOLD"},GENERIC_SURVEILLANCE:{icon:"icon-m-devices-security-camera",group:"HOUSEHOLD"},GENERIC_NETWORK_ELEMENT:{icon:"icon-m-devices-router",group:"IT"},GENERIC_IOT:{icon:"icon-m-devices-router",group:"HOUSEHOLD"},WIFI_REPEATER:{icon:"icon-m-devices-router",group:"IT"},BABY_MONITOR:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},VIDEO_DISC_PLAYER:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},AV_RECEIVER:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},PROJECTOR:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},PVR:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},RADIO:{icon:"icon-m-devices-speaker",group:"ENTERTAINMENT"},REFRIGERATOR:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},WASHING_MACHINE:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},DRYER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},DISHWASHER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},MICROWAVE_OVEN:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},OVEN:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},COOKER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},HOOD:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},KETTLE:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},COFFEE_MAKER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},BODY_SCALE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},BOTTLE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},MUG:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},WEATHER_STATION:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},TOILET:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},CLOCK:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},FEEDER:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},PRINTER_3D:{icon:"icon-m-devices-printer",group:"OTHER"},DESKTOP_PC:{icon:"icon-m-devices-desktop",group:"IT"},LAPTOP_PC:{icon:"icon-m-devices-desktop",group:"IT"},SERVER_COMPUTER:{icon:"icon-m-devices-desktop",group:"IT"},SINGLE_BOARD_COMPUTER:{icon:"icon-m-devices-desktop",group:"IT"}};const dt={UNKNOWN:"icon-s-status-attention",RESOLVING_HIJACK:"icon-m-tools-real-site",WEAK_DEVICE_PASSWORD:"icon-m-tools-passwords",WEAK_WIFI_PASSWORD:"icon-m-tools-passwords",WEAK_WIFI_CRYPTO:"icon-m-tools-passwords",WEAK_WIFI_WPS:"icon-s-status-attention",OPEN_PORT:"icon-s-status-attention",GENERIC_EXPLOITABLE:"icon-s-status-attention",GENERIC_MISCONFIGURED:"icon-s-status-attention",UNSANITIZED_INPUT:"icon-s-status-attention",READ_FILE:"icon-s-status-attention",EXPOSED_SECRET:"icon-s-status-attention",FACTORY_BACKDOOR:"icon-s-status-attention",SESSION_MANIPULATION:"icon-s-status-attention",BUFFER_OVERRUN:"icon-s-status-attention",SQL_INJECTION:"icon-s-status-attention",XSS:"icon-s-status-attention",CSRF:"icon-s-status-attention",FILE_INCLUSION:"icon-s-status-attention",PATH_TRAVERSAL:"icon-s-status-attention",PRIVILEGE_ESCALATION:"icon-s-status-attention",ENCODING_ABUSE:"icon-s-status-attention",RACE_CONDITION:"icon-s-status-attention",RESOURCE_EXHAUSTION:"icon-s-status-attention",WEAK_CRYPTO_ENTROPY:"icon-s-status-attention",WEAK_CRYPTO_ALGO:"icon-s-status-attention"},pt=/^(.+)_\*$/,mt=["DNS_HIJACK","OPEN_PORT_OUTER","WIFI_CRYPTO_NONE","WIFI_CRYPTO_WEAK","WIFI_PW_WEAK"],ht=["LINK","DEVICE_UI_LINK"],vt=["LOCAL_SETTINGS","AVAST_PRODUCT_LOCAL"];class gt{constructor(e){this.data=e,this.icon=dt[this.data.category]||dt.UNKNOWN}static findFirstTranslationReverse(e,t,n){if("FOLLOW_GUIDE"===e)return e;n=n||"";const s=e.split(".");for(let i,o,l=s.length-1;l>=0;l--){if(t&&(i="network.issue."+s[l]+t+n,o=m(i),i!==o))return o;if(i="network.issue."+s[l]+n,o=m(i),i!==o)return o}return""}getTitle(e){const t="public"===e?".public":"";return gt.findFirstTranslationReverse(this.data.description[0],t,".title")}getRowTitle(e){return"public"===e&&mt.some((function(e){return-1!==this.data.description[0].indexOf(e)}),this)?gt.findFirstTranslationReverse(this.data.description[0],".public",".title.row"):this.getTitle(e)}getDescription(e){const t="public"===e?".public":"";return gt.findFirstTranslationReverse(this.data.description[0],t)}getRisks(){return this.data.risks.map((e=>gt.findFirstTranslationReverse(e)))}getSolutions(e,t,n){let s;const i=[];return n&&(s=this.getSpecialSolution(e,t))&&i.push(s),i.length||(Array.isArray(this.data.solutions)&&this.data.solutions.forEach((e=>{i.push(gt.findFirstTranslationReverse(e))})),(s=this.getSpecialSolution(e,t))&&i.push(s)),i}getSolutionsWithOffers(e){const t=[],n={USE_VPN:"vpn",USE_FIREWALL:"firewall",USE_RAS:"ras",USE_SECUREDNS:"secureDns"},s={};let i=this.data.solutions||[];return"public"===e&&(i=i.filter((e=>vt.some((t=>e.includes(t)))))),i.forEach((e=>{const i=e.split(".").pop();void 0!==n[i]?s[n[i]]={tip:gt.findFirstTranslationReverse(i)}:t.push(gt.findFirstTranslationReverse(e))})),[t,s]}getSpecialSolution(e,t){if("public"===e)return gt.findFirstTranslationReverse(this.data.description[0],".public","."+t)}getCategoryDetails(e){let t;const n=this.data[e+"_details"];return n&&(t=n.map((e=>{let t=pt.exec(e);if(t){t=t[1];let e,n=0;const s=[];for(;(e=this.data.details[t+"_"+n])&&n<10;)s.push(e),n++;return[t,s]}return[e,this.data.details[e]]}))),t&&"solutions"===e&&(t=t.filter((e=>ht.includes(e[0])))),t}isOneOfVulnerabilities(e){"string"==typeof e&&(e=[e]);let t=[this.data.category,this.data.unique_name];return this.data.description.forEach((e=>{t=t.concat(e.split("."))})),e.find((e=>-1!==t.indexOf(e)))}isNetworkWideIssue(){return this.data&&this.data.details&&"TRUE"===this.data.details.IS_NETWORK_WIDE}getSupportArticleId(){let e;return this.data&&(this.data.details&&(e=this.data.details.SUPPORT_ARTICLE_ID),e=e||this.data.catalog_name),e}}function ft(e,t){const n=[];for(let s=0;s<e.length;s+=t)n.push(e.substr(s,t));return n}function _t(e,t,n){return ft(e,t).join(n)}function kt(e,t,n){return function(e,t){return ft(e,t=t||2).map((function(e){return parseInt(e,16)}))}(e,t).join(n)}const wt={marks:e=>e.replace(/\(R\)/gi,"®").replace(/\(TM\)/gi,"™"),mac:e=>e?e.indexOf(":")>-1?e:e?_t(e,2,":"):"":"",ip:e=>e?8===e.length?kt(e,2,"."):_t(e,4,":"):""};class $t{constructor(e){this.data={},this.update(e),this._inited=!0}update(e){let t;if(Object.assign(this.data,e),!this._inited||void 0!==e.vulnerabilities||void 0!==e.interfaces||void 0!==e.services){if(this.data.kv||(this.data.kv={}),t={issues:[],deviceId:this.data.device_id,issueId:0,macs:[],ports:[]},this.data.vulnerabilities&&this.data.vulnerabilities.length&&this.data.vulnerabilities.forEach((function(e){e.deviceId=t.deviceId,e.issueId=t.issueId++,t.issues.push(new gt(e))})),this.data.interfaces&&this.data.interfaces.length&&this.data.interfaces.forEach((function(e){e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach((function(n){$t.groupByMacs(t,e,n,t.macs)}))})),this.data.services&&this.data.services.length&&(this.services=[],this.data.services.forEach((e=>{this.services.push({port:e.port,service_type:e.service_type,transport_protocol:e.transport_protocol}),e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach((function(n){$t.groupByPorts(t,e,n,t.ports)}))}))),this.issues=t.issues,this.computeIssues(),this.mac=$t.getMac(this),t=this.data.interfaces.find((e=>e.ip&&e.ip.length<16)),t?this.ip=t.ip:this.data.interfaces[0]&&this.data.interfaces[0].ip?this.ip=this.data.interfaces[0].ip:this.ip="",t=[],this.data.interfaces&&this.data.interfaces.length){t={},this.data.interfaces.forEach((function(e){t[e.mac]?t[e.mac].ips.push(e.ip):(t[e.mac]=e,t[e.mac].ips=[e.ip])}));for(const e in t)t[e].ips=t[e].ips.sort((function(e,t){return e<t?-1:e>t?1:0}));t=Object.keys(t).map((function(e){return t[e]}))}this.interfaces=t}return this.os=this.data.kv.DISPLAY_OS,void 0===e.is_shadow&&(this.data.is_shadow=!1),this.model=this.data.model||this.data.kv.DISPLAY_MODEL||"",this.data.kv.DISPLAY_VENDOR?this.vendor=this.data.kv.DISPLAY_VENDOR:this.data.kv.DEVICE_MANUFACTURER?this.vendor=this.data.kv.DEVICE_MANUFACTURER:this.vendor="",this.nameModel="",this.data.name?this.name=this.data.name:this.data.kv.DISPLAY_NAME?this.name=this.data.kv.DISPLAY_NAME:this.data.kv.NETBIOS_NAME?this.name=this.data.kv.NETBIOS_NAME:this.data.kv.DNS_NAME?this.name=this.data.kv.DNS_NAME:this.vendor?(this.name=this.vendor,this.model&&(this.nameModel=this.name+" ("+this.model+")")):this.name="",this.nameModel||(this.nameModel=this.name),this.data.type?this.type=this.data.type:ut[this.data.device_class]?this.type=this.data.device_class:this.type="UNKNOWN",this.icon=this.data.device_roles&&-1!==this.data.device_roles.indexOf("SELF")?ut.GENERIC_COMPUTER.icon:ut[this.type].icon,this}static groupByMacs(e,t,n,s){s[t.mac]&&-1!==s[t.mac].indexOf(n.catalog_name)||(s[t.mac]?s[t.mac].push(n.catalog_name):s[t.mac]=[n.catalog_name],n.deviceId=e.deviceId,n.issueId=e.issueId++,e.issues.push(new gt(n)))}static groupByPorts(e,t,n,s){s[t.port]&&-1!==s[t.port].indexOf(n.catalog_name)||(s[t.port]?s[t.port].push(n.catalog_name):s[t.port]=[n.catalog_name],n.deviceId=e.deviceId,n.issueId=e.issueId++,n.port=t.port,n.serviceType=t.service_type,e.issues.push(new gt(n)))}static getMac(e){return e.data&&e.data.interfaces?wt.mac(e.data.interfaces[0].mac):""}computeIssues(){this.isVulnerable=this.issues.some((e=>!e.state)),this.skippedIssuesCount=0,this.rescanIssuesCount=0,this.issues.forEach((e=>{"skipped"===e.state?this.skippedIssuesCount++:"resolved"===e.state&&this.rescanIssuesCount++}))}setIssueState(e,t){this.issues[e].state=t,this.computeIssues()}getSkippedIssuesCount(){let e=0;return this.issues.forEach((t=>{"skipped"===t.state&&e++})),e}getIssues(){const e=[];for(let t=0;t<this.issues.length;t++)e.push({deviceId:this.data.device_id,pos:t});return e}}class bt{constructor(){this.state=Be(),this.progress=Be(),this.devices=Be(),this.resultType=Be(),this.scanListeners=[],this.updatedDevices=[],this.emptyScan(),this.prepareScan()}destroy(){this.stopListenScan(),this.emptyScan()}emptyScan(){this.stopListenScan(),this.state.set(""),this.devices.set({}),this.progress.set(""),this.ran=!1,this.type="",this.protocol="",this.time="",this.resultType.set(""),this.canceled=!1,this.networkChanged=!1,this.networkId="",this.forgotDevices=[],this.skippedIssues=[],this.stashUpdatedDevices=[]}start(e,t=!1){return e?(this.emptyScan(),this.prepareScan(),this.startCanceled=!1,Je.startScan(e).then((()=>{const t=this.createScanStartTime();localStorage.setItem("hns["+this.networkId+"]lastScanTime",t),localStorage.setItem("hns["+this.networkId+"]lastScanType",e),this.protocol=S(et).protocol,this.time=t,this.type=e,this.progress.set(0),this.state.set("running"),this.listenScan()})).catch((n=>{if(t)throw n;return It().then((e=>{this.emptyScan(),this.prepareScan(),this.type=e.type,this.protocol=e.protocol,this.time=e.time,this.progress.set(S(e.progress)),this.state.set("running"),this.listenScan()})).catch((()=>(Je.stopScan(),new Promise(((t,n)=>{setTimeout((()=>{this.startCanceled?n("canceled"):this.start(e,!0).then(t).catch(n)}),5e3)})))))}))):Promise.reject()}startCancel(){this.startCanceled=!0}rescan(){return this.type?this.start(this.type):Promise.reject()}stop(){this.canceled=!0,Je.stopScan(),this.done()}skip(){this.state.set("skipped")}done(){this.stopListenScan(),this.applyDeviceUpdates(),this.devices.update((e=>(Object.values(e).forEach((e=>{if(e.issues){const t=this.skippedIssues[e.mac];if(t)for(const[n,s]of Object.entries(t))e.issues.some(((t,i)=>{if((n===t.data.serviceType||"none"===n&&!t.data.serviceType)&&s.includes(t.data.unique_name))return e.setIssueState(i,"skipped"),!0}))}})),e))),"public"===this.type?this.resultType.set("issues"):this.resultType.set("devices"),this.networkId!==S(Ze)&&(this.networkChanged=!0),this.progress.set(100),this.state.set("done")}finish(){this.state.set("finished")}listenScan(){this.scanListeners.length||(this.deviceUpdates={},this.deviceUpdateTimer=setInterval((()=>{this.applyDeviceUpdates()}),1e3),this.scanListeners=[t.on("asw.hns.progress",(e=>{const t=Math.min(e.progress,100);100===t?this.done():this.progress.set(t)})),t.on("asw.hns.reportdevice",(e=>{this.deviceUpdates[e.device.device_id]=e.device}))])}stopListenScan(){this.deviceUpdateTimer&&(this.deviceUpdateTimer=clearInterval(this.deviceUpdateTimer),this.scanListeners.forEach((e=>e())),this.scanListeners=[])}applyDeviceUpdates(e){e&&(this.deviceUpdates=e),this.deviceUpdates&&(this.updatedDevices=Object.keys(this.deviceUpdates),this.updatedDevices.length&&(this.devices.update((e=>{for(const[t,n]of Object.entries(this.deviceUpdates)){let s=this.forgotDevices.indexOf($t.getMac(n));-1===s||n.is_shadow||(this.forgotDevices.splice(s,1),localStorage.setItem("hns["+this.networkId+"]forgotDevices",this.forgotDevices.join(",")),s=-1),-1===s&&(e[t]?e[t].update(n):e[t]=new $t(n))}return e})),this.stashUpdatedDevices=this.updatedDevices,this.updatedDevices=[],this.deviceUpdates={}))}getUpdatedDevices(){const e=this.stashUpdatedDevices;return this.stashUpdatedDevices=[],e}getIssues(){let e=[];return Object.values(S(this.devices)).forEach((t=>{e=e.concat(t.getIssues())})),e}getDevicesWithIssues(){const e=[];for(const[t,n]of Object.entries(S(this.devices)))n.issues.length&&e.push(t);return e}isMyDevice(e){return e.data.device_roles&&-1!==e.data.device_roles.indexOf("SELF")}isMyRouter(e){return e.data.device_roles&&-1!==e.data.device_roles.indexOf("INTERNET_GATEWAY")}getMyDeviceId(){for(const[e,t]of Object.entries(S(this.devices)))if(this.isMyDevice(t))return e}getMyRouterId(){for(const[e,t]of Object.entries(S(this.devices)))if(!t.data.is_shadow&&this.isMyRouter(t))return e}getDevicesAroundMe(){const e=[];for(const[t,n]of Object.entries(S(this.devices)))n.data.is_shadow||this.isMyDevice(n)||this.isMyRouter(n)||e.push(t);return e}getShadowDevices(){const e=[];for(const[t,n]of Object.entries(S(this.devices)))n.data.is_shadow&&e.push(t);return e}forgetDevice(e){const t=S(this.devices)[e].mac;-1===this.forgotDevices.indexOf(t)&&(this.forgotDevices.push(t),localStorage.setItem("hns["+this.networkId+"]forgotDevices",this.forgotDevices.toString()),this.skippedIssues[t]&&(delete this.skippedIssues[t],localStorage.setItem("hns["+this.networkId+"]skippedIssues",JSON.stringify(this.skippedIssues))))}skipIssue(e,t){const n=S(this.devices)[e].mac,s=t.data.serviceType||"none";this.skippedIssues[n]||(this.skippedIssues[n]={}),this.skippedIssues[n][s]||(this.skippedIssues[n][s]=[]),-1===this.skippedIssues[n][s].indexOf(t.data.unique_name)&&this.skippedIssues[n][s].push(t.data.unique_name),localStorage.setItem("hns["+this.networkId+"]skippedIssues",JSON.stringify(this.skippedIssues))}resolveIssue(e,t){const n=S(this.devices)[e].mac,s=t.data.serviceType||"none";if(this.skippedIssues[n]&&this.skippedIssues[n][s]){const e=this.skippedIssues[n][s].indexOf(t.data.unique_name);-1!==e&&(this.skippedIssues[n][s].splice(e,1),localStorage.setItem("hns["+this.networkId+"]skippedIssues",JSON.stringify(this.skippedIssues)))}}getSkippedIssuesCount(){let e=0;return Object.values(S(this.devices)).forEach((t=>{e+=t.getSkippedIssuesCount()})),e}createScanStartTime(){return h().format("ll LTS")}prepareScan(){this.networkId=S(Ze),this.forgotDevices=localStorage.getItem("hns["+this.networkId+"]forgotDevices"),this.forgotDevices=this.forgotDevices?this.forgotDevices.split(","):[],this.skippedIssues=localStorage.getItem("hns["+this.networkId+"]skippedIssues"),this.skippedIssues=this.skippedIssues?JSON.parse(this.skippedIssues):{}}getDevices4watcher(){return Object.values(S(this.devices))}static getScanTypeFromStartType(e){switch(e){case"Home":return"home";case"Public":return"public";case"Full":return S(et).networkInfo.scanType||"home"}return""}}function yt(){return Promise.all([Je.getHnsInit(),Je.getLastScan()]).then((([e,t])=>{if(localStorage.getItem("DEBUG_HNS")&&(localStorage.setItem("hnsLastResult",JSON.stringify(t)),localStorage.getItem("hnsResult")&&(t=JSON.parse(localStorage.getItem("hnsResult")),console.log("-----\nHNS - override last scan result with data from hnsResult in localstorage\n-----"))),!t)return Promise.reject("no data from backend");const n=new bt;return n.ran=!0,n.type=e.networkInfo.scanType,n.protocol=t.protocol_version,n.time=h(t.time,"DD/MM/YYYY HH:mm:ss").format("ll LTS")||t.time,t.devices&&(n.deviceUpdates={},t.devices.forEach((function(e){this[e.device_id]=e}),n.deviceUpdates)),n.done(),n}))}function It(){return Je.getHnsInit().then((e=>{if(!e.scanning||!e.scanning.scanId)return Promise.reject("NO_SCAN");const t=bt.getScanTypeFromStartType(e.scanning.startType);if(!t)return Promise.reject("TYPE");const n=new bt;return n.type=t,n.protocol=e.protocol,n.time="USER_TRIGGERED"===e.scanning.category&&localStorage.getItem("hns["+n.networkId+"]lastScanTime")||n.createScanStartTime(),n.progress.set(e.progress),n.state.set("running"),n.listenScan(),n}))}let Ct;var Nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Et="object"==typeof Nt&&Nt&&Nt.Object===Object&&Nt,xt="object"==typeof self&&self&&self.Object===Object&&self;function St(e){let t,n,s,i,o,l,c,r;const a=e[15].default,u=O(a,e,e[14],null);return{c(){t=B("div"),n=B("div"),s=B("iframe"),l=K(),c=B("div"),u&&u.c(),s.src!==(i=e[2])&&Z(s,"src",i),Z(s,"data-test",o="ipm-elm-"+e[0]),Z(s,"title",e[1]),Z(n,"class","sve_ipm"),te(n,"display",e[4]?"block":"none"),Z(c,"data-slot",""),te(c,"display",e[4]?"none":"block"),Z(t,"class","svelte wrap")},m(i,o){W(i,t,o),U(t,n),U(n,s),e[16](s),U(t,l),U(t,c),u&&u.m(c,null),r=!0},p(e,t){(!r||4&t[0]&&s.src!==(i=e[2]))&&Z(s,"src",i),(!r||1&t[0]&&o!==(o="ipm-elm-"+e[0]))&&Z(s,"data-test",o),(!r||2&t[0])&&Z(s,"title",e[1]),(!r||16&t[0])&&te(n,"display",e[4]?"block":"none"),u&&u.p&&16384&t[0]&&D(u,a,e,e[14],t,null,null),(!r||16&t[0])&&te(c,"display",e[4]?"none":"block")},i(e){r||(De(u,e),r=!0)},o(e){He(u,e),r=!1},d(n){n&&V(t),e[16](null),u&&u.d(n)}}}Et||xt||Function("return this")();const Tt=7e3;function Ot(o,l,r){let a,u;T(o,n,(e=>r(13,u=e)));let{$$slots:d={},$$scope:p}=l;const m=[0,1,2,3,4,5,10,15,30,60];let{id:h}=l,{opmUrl:v}=l,{title:g}=l,{params:k={}}=l,{condition:w=!0}=l,{timeout:$=Tt}=l,{route:b}=l;const y=c.createLogger("component.ipm"),I=he(),C="true"===localStorage.getItem("automationDisableIpm"),N=[];let E,x,S,O,A,D,H,L=null;function M(){!S&&L&&e("opm.message_shown",{message_id:L})}function R(t){E&&t&&t.data&&("windowLoaded"!==t.data.action||""===t.data.elmId||t.data.elmId!=h&&t.data.placement!=h||(y.info("ipm content loaded"),q(),P(Math.round((performance.now()-A)/1e3)),h==parseInt(h)&&e("app.ipm_tracking.track",{elem_id:parseInt(h),response_time:-1},s.isEnabled()),I("success",h)))}function z(e){if(y.info("updateFrame",{isIframe:E,ipmUrl:x}),r(11,S=null),e&&e.url&&L!==e.msg_id&&(M(),L=e.msg_id),!E)return;let t;q(),t=e&&e.url?Promise.resolve(f.extendUrlWithParams(e.url,k)):v?Promise.resolve(f.extendUrlWithParams(v,k)):f.getUrl(h,k),t.then((e=>{let t;"object"==typeof e?(t=e.url,L=e.msgId):t=e,A=performance.now(),y.info("loading ipm url: "+t),x!==t&&(D=setTimeout((()=>{P("timeout"),U("timeout")}),$),r(2,x=t))})).catch((e=>U(e)))}function P(e){_.getValueCached("avdef://config/GuiCache/TrackIpmLoadTime",!0).then((t=>{t&&i.timing("IPM loading","timeout"===e?66666:e,h,function(e){if("timeout"===e)return"timeout";{const t=m.find((t=>t<=e)),n=m.find((t=>t>e));return n?`${t}-${n}s`:`> ${t}s`}}(e))}))}function q(){D&&clearTimeout(D)}function U(e){console.warn("Ipm component error:",e,"for id:",h),I("error",e)}return pe((()=>{z()})),me((()=>{q(),N.forEach((e=>e())),window.removeEventListener("message",R),window.removeEventListener("beforeunload",M)})),window.addEventListener("beforeunload",M,!1),window.addEventListener("message",R,!1),N.push(t.on("ASW_NOTIF_RELOAD_IPM",(()=>z())),t.on("ipm.reload."+h,(e=>z(e)))),o.$$set=e=>{"id"in e&&r(0,h=e.id),"opmUrl"in e&&r(5,v=e.opmUrl),"title"in e&&r(1,g=e.title),"params"in e&&r(6,k=e.params),"condition"in e&&r(7,w=e.condition),"timeout"in e&&r(8,$=e.timeout),"route"in e&&r(9,b=e.route),"$$scope"in e&&r(14,p=e.$$scope)},o.$$.update=()=>{12288&o.$$.dirty[0]&&null!=u&&(u?!1===H&&(y.debug("went online"),z()):(y.debug("went offline"),q(),U("offline")),r(12,H=u)),2176&o.$$.dirty[0]&&r(10,E=!S&&!C&&w),1544&o.$$.dirty[0]&&null!=b&&E&&(y.debug("change of route: "+b),O.contentWindow&&O.contentWindow.postMessage&&O.contentWindow.postMessage("route:"+b,"*")),1028&o.$$.dirty[0]&&r(4,a=E&&x)},[h,g,x,O,a,v,k,w,$,b,E,S,H,u,p,d,function(e){ge[e?"unshift":"push"]((()=>{O=e,r(3,O)}))}]}class At extends We{constructor(e){super(),Ue(this,e,Ot,St,E,{id:0,opmUrl:5,title:1,params:6,condition:7,timeout:8,route:9},[-1,-1])}}const Dt=e=>({}),Ht=e=>({}),Lt=e=>({}),Mt=e=>({}),Rt=e=>({}),zt=e=>({}),Pt=e=>({}),qt=e=>({});function Ut(e){let t,n,s;return{c(){t=B("div"),Z(t,"class","sve_modal__overlay__close")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[16]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Wt(e){let t,n,s,i;return{c(){t=B("button"),n=B("kin-icon"),Q(n,"name","icon-s-controls-close"),Q(n,"size","12"),Z(t,"class","sve_modal__close"),Z(t,"data-test","close"),Z(t,"title",m("global.closeModalWindow"))},m(o,l){W(o,t,l),U(t,n),s||(i=J(t,"click",e[17]),s=!0)},p:$,d(e){e&&V(t),s=!1,i()}}}function Vt(e){let t,n,s,i,o=e[0]&&jt(e),l=e[1]&&Bt(e);const c=e[15]["modal-header"],r=O(c,e,e[14],qt);return{c(){t=B("div"),o&&o.c(),n=K(),l&&l.c(),s=K(),r&&r.c(),Z(t,"class","sve_modal__header")},m(e,c){W(e,t,c),o&&o.m(t,null),U(t,n),l&&l.m(t,null),U(t,s),r&&r.m(t,null),i=!0},p(e,i){e[0]?o?o.p(e,i):(o=jt(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[1]?l?l.p(e,i):(l=Bt(e),l.c(),l.m(t,s)):l&&(l.d(1),l=null),r&&r.p&&16384&i&&D(r,c,e,e[14],i,Pt,qt)},i(e){i||(De(r,e),i=!0)},o(e){He(r,e),i=!1},d(e){e&&V(t),o&&o.d(),l&&l.d(),r&&r.d(e)}}}function jt(e){let t,n;return{c(){t=B("h2"),n=G(e[0]),Z(t,"class","sve_modal__title")},m(e,s){W(e,t,s),U(t,n)},p(e,t){1&t&&ee(n,e[0])},d(e){e&&V(t)}}}function Bt(e){let t,n;return{c(){t=B("p"),n=G(e[1]),Z(t,"class","sve_modal__subtitle")},m(e,s){W(e,t,s),U(t,n)},p(e,t){2&t&&ee(n,e[1])},d(e){e&&V(t)}}}function Ft(e){let t,n;const s=e[15]["modal-footer"],i=O(s,e,e[14],Mt);return{c(){t=B("div"),i&&i.c(),Z(t,"class","sve_modal__footer")},m(e,s){W(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&16384&t&&D(i,s,e,e[14],t,Lt,Mt)},i(e){n||(De(i,e),n=!0)},o(e){He(i,e),n=!1},d(e){e&&V(t),i&&i.d(e)}}}function Gt(e){let t,n,s;const i=e[15]["modal-ipm"],o=O(i,e,e[14],Ht);return{c(){t=B("div"),o&&o.c(),Z(t,"class","sve_modal__ipm"),Z(t,"style",n=`${e[9]} margin-top: 0;`)},m(e,n){W(e,t,n),o&&o.m(t,null),s=!0},p(e,l){o&&o.p&&16384&l&&D(o,i,e,e[14],l,Dt,Ht),(!s||512&l&&n!==(n=`${e[9]} margin-top: 0;`))&&Z(t,"style",n)},i(e){s||(De(o,e),s=!0)},o(e){He(o,e),s=!1},d(e){e&&V(t),o&&o.d(e)}}}function Kt(e){let t,n,s,i,o,l,c,a,u,d,p,m,h,v,g,f=e[4]&&Ut(e),_=e[4]&&Wt(e),k=!e[7]&&Vt(e);const w=e[15]["modal-content"],$=O(w,e,e[14],zt);let b=!e[7]&&Ft(e),y=e[6]&&Gt(e);return{c(){t=B("div"),f&&f.c(),n=K(),s=B("div"),_&&_.c(),i=K(),k&&k.c(),o=K(),l=B("div"),$&&$.c(),c=K(),b&&b.c(),a=K(),y&&y.c(),Z(l,"class","sve_modal__content"),Z(s,"class","sve_modal"),Z(s,"style",u=`${e[8]}`),Z(t,"class",d="sve_modal__overlay "+e[5]),Z(t,"data-test",e[3]),Z(t,"role","dialog"),Z(t,"aria-labelledby",p=e[0]?e[0]:e[2]),Z(t,"aria-describedby",m=e[1]?e[1]:"")},m(u,d){W(u,t,d),f&&f.m(t,null),U(t,n),U(t,s),_&&_.m(s,null),U(s,i),k&&k.m(s,null),U(s,o),U(s,l),$&&$.m(l,null),U(s,c),b&&b.m(s,null),U(s,a),y&&y.m(s,null),h=!0,v||(g=[J(window,"keydown",e[11],!0),H(r.call(null,t))],v=!0)},p(e,[l]){e[4]?f?f.p(e,l):(f=Ut(e),f.c(),f.m(t,n)):f&&(f.d(1),f=null),e[4]?_?_.p(e,l):(_=Wt(e),_.c(),_.m(s,i)):_&&(_.d(1),_=null),e[7]?k&&(Oe(),He(k,1,1,(()=>{k=null})),Ae()):k?(k.p(e,l),128&l&&De(k,1)):(k=Vt(e),k.c(),De(k,1),k.m(s,o)),$&&$.p&&16384&l&&D($,w,e,e[14],l,Rt,zt),e[7]?b&&(Oe(),He(b,1,1,(()=>{b=null})),Ae()):b?(b.p(e,l),128&l&&De(b,1)):(b=Ft(e),b.c(),De(b,1),b.m(s,a)),e[6]?y?(y.p(e,l),64&l&&De(y,1)):(y=Gt(e),y.c(),De(y,1),y.m(s,null)):y&&(Oe(),He(y,1,1,(()=>{y=null})),Ae()),(!h||256&l&&u!==(u=`${e[8]}`))&&Z(s,"style",u),(!h||32&l&&d!==(d="sve_modal__overlay "+e[5]))&&Z(t,"class",d),(!h||8&l)&&Z(t,"data-test",e[3]),(!h||5&l&&p!==(p=e[0]?e[0]:e[2]))&&Z(t,"aria-labelledby",p),(!h||2&l&&m!==(m=e[1]?e[1]:""))&&Z(t,"aria-describedby",m)},i(e){h||(De(k),De($,e),De(b),De(y),h=!0)},o(e){He(k),He($,e),He(b),He(y),h=!1},d(e){e&&V(t),f&&f.d(),_&&_.d(),k&&k.d(),$&&$.d(e),b&&b.d(),y&&y.d(),v=!1,C(g)}}}function Yt(e,t,n){let{$$slots:s={},$$scope:i}=t;const o=he();let l,{title:c=null}=t,{subtitle:r=null}=t,{hiddenTitle:a=null}=t,{testId:u=""}=t,{closable:d=!0}=t,{cssCls:p=""}=t,{ipm:m=!1}=t,{customContent:h=!1}=t,{width:v}=t,{ipmHeight:g}=t,f="",_="";pe((()=>{l=document.activeElement})),me((()=>{document.body.contains(l)&&l.focus()}));return e.$$set=e=>{"title"in e&&n(0,c=e.title),"subtitle"in e&&n(1,r=e.subtitle),"hiddenTitle"in e&&n(2,a=e.hiddenTitle),"testId"in e&&n(3,u=e.testId),"closable"in e&&n(4,d=e.closable),"cssCls"in e&&n(5,p=e.cssCls),"ipm"in e&&n(6,m=e.ipm),"customContent"in e&&n(7,h=e.customContent),"width"in e&&n(12,v=e.width),"ipmHeight"in e&&n(13,g=e.ipmHeight),"$$scope"in e&&n(14,i=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&v&&n(8,f=`width: ${v}px;`),8256&e.$$.dirty&&m&&g&&n(9,_=`height: ${g}px;`)},[c,r,a,u,d,p,m,h,f,_,o,function(e){"Escape"===e.code&&(o("close"),e.preventDefault(),e.stopPropagation())},v,g,i,s,()=>o("close"),()=>o("close")]}class Jt extends We{constructor(e){super(),Ue(this,e,Yt,Kt,E,{title:0,subtitle:1,hiddenTitle:2,testId:3,closable:4,cssCls:5,ipm:6,customContent:7,width:12,ipmHeight:13})}}const{document:Xt}=Me;const Zt=e=>({}),Qt=e=>({}),en=e=>({}),tn=e=>({}),nn=e=>({}),sn=e=>({}),on=e=>({}),ln=e=>({}),cn=e=>({}),rn=e=>({}),an=e=>({}),un=e=>({});function dn(e){let t,n,s,i,o;const l=[mn,pn],c=[];function r(e,t){return""!=e[0]?0:1}return t=r(e),n=c[t]=l[t](e),{c(){n.c(),s=K(),i=B("kin-loading"),Q(i,"fullscreen","true"),Q(i,"class","svelte-13u5uhu")},m(e,n){c[t].m(e,n),W(e,s,n),W(e,i,n),o=!0},p(e,i){let o=t;t=r(e),t===o?c[t].p(e,i):(Oe(),He(c[o],1,1,(()=>{c[o]=null})),Ae(),n=c[t],n?n.p(e,i):(n=c[t]=l[t](e),n.c()),De(n,1),n.m(s.parentNode,s))},i(e){o||(De(n),o=!0)},o(e){He(n),o=!1},d(e){c[t].d(e),e&&V(s),e&&V(i)}}}function pn(e){let t,n;const s=e[16]["page-title"],i=O(s,e,e[15],un);return{c(){t=B("div"),i&&i.c(),Z(t,"class","kin_loading__title svelte-13u5uhu"),te(t,"color","transparent")},m(e,s){W(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&D(i,s,e,e[15],t,an,un)},i(e){n||(De(i,e),n=!0)},o(e){He(i,e),n=!1},d(e){e&&V(t),i&&i.d(e)}}}function mn(e){let t;return{c(){t=B("h1"),Z(t,"class","kin_loading__title svelte-13u5uhu"),te(t,"color","transparent")},m(n,s){W(n,t,s),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:$,o:$,d(e){e&&V(t)}}}function hn(e){let t,n;const s=e[16]["page-title"],i=O(s,e,e[15],ln);return{c(){t=B("div"),i&&i.c(),Z(t,"class","kin_header__title svelte-13u5uhu")},m(e,s){W(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&D(i,s,e,e[15],t,on,ln)},i(e){n||(De(i,e),n=!0)},o(e){He(i,e),n=!1},d(e){e&&V(t),i&&i.d(e)}}}function vn(e){let t;return{c(){t=B("h1"),Z(t,"class","kin_header__title svelte-13u5uhu")},m(n,s){W(n,t,s),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:$,o:$,d(e){e&&V(t)}}}function gn(e){let t,n,s;const i=e[16].controls,o=O(i,e,e[15],sn);let l=e[4]&&e[5]&&fn(e);return{c(){t=B("div"),o&&o.c(),n=K(),l&&l.c(),Z(t,"class","kin_header__controls svelte-13u5uhu")},m(e,i){W(e,t,i),o&&o.m(t,null),U(t,n),l&&l.m(t,null),s=!0},p(e,n){o&&o.p&&32768&n&&D(o,i,e,e[15],n,nn,sn),e[4]&&e[5]?l?l.p(e,n):(l=fn(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},i(e){s||(De(o,e),s=!0)},o(e){He(o,e),s=!1},d(e){e&&V(t),o&&o.d(e),l&&l.d()}}}function fn(e){let t,n;return{c(){t=B("div"),n=G(e[5]),Z(t,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-13u5uhu")},m(e,s){W(e,t,s),U(t,n)},p(e,t){32&t&&ee(n,e[5])},d(e){e&&V(t)}}}function _n(e){let t,n,s,i;return{c(){t=B("button"),n=B("kin-icon"),Q(n,"name","icon-s-controls-arrow-left"),Q(n,"size","20"),Q(n,"class","svelte-13u5uhu"),Z(t,"class","kin_back-btn svelte-13u5uhu"),Z(t,"title",m("global.goBack"))},m(o,l){W(o,t,l),U(t,n),s||(i=J(t,"click",e[17]),s=!0)},p:$,d(e){e&&V(t),s=!1,i()}}}function kn(e){let t,n,s;return{c(){t=B("a"),n=B("kin-icon"),Q(n,"name","icon-s-controls-arrow-left"),Q(n,"size","20"),Q(n,"class","svelte-13u5uhu"),Z(t,"class","kin_back-btn svelte-13u5uhu"),Z(t,"href",s=e[9]||"#Dashboard"),Z(t,"title",m("global.goBack"))},m(e,s){W(e,t,s),U(t,n)},p(e,n){512&n&&s!==(s=e[9]||"#Dashboard")&&Z(t,"href",s)},d(e){e&&V(t)}}}function wn(e){let t,n;return{c(){t=B("a"),n=B("kin-icon"),Q(n,"name","icon-s-settings-button"),Q(n,"size","20"),Q(n,"class","svelte-13u5uhu"),Z(t,"class","kin_settings-btn svelte-13u5uhu"),Z(t,"href",e[1]),Z(t,"title",m("settings"))},m(e,s){W(e,t,s),U(t,n)},p(e,n){2&n&&Z(t,"href",e[1])},d(e){e&&V(t)}}}function $n(e){let t,n,s,i;const o=e[16]["page-content"],l=O(o,e,e[15],Qt);return{c(){t=B("div"),l&&l.c(),Z(t,"class","kin_page__content svelte-13u5uhu"),ne(t,"-disabled",e[4])},m(o,c){W(o,t,c),l&&l.m(t,null),n=!0,s||(i=H(e[13].call(null,t)),s=!0)},p(e,n){l&&l.p&&32768&n&&D(l,o,e,e[15],n,Zt,Qt),16&n&&ne(t,"-disabled",e[4])},i(e){n||(De(l,e),n=!0)},o(e){He(l,e),n=!1},d(e){e&&V(t),l&&l.d(e),s=!1,i()}}}function bn(e){let t,n;const s=e[16].upsell,i=O(s,e,e[15],tn);return{c(){t=B("div"),i&&i.c(),Z(t,"class","kin_page__content svelte-13u5uhu")},m(e,s){W(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&D(i,s,e,e[15],t,en,tn)},i(e){n||(De(i,e),n=!0)},o(e){He(i,e),n=!1},d(e){e&&V(t),i&&i.d(e)}}}function yn(e){let t,n,s,i,o,l,c,r,a,u,d,p,m,h,v,g,f,_=e[10]&&dn(e);const k=e[16].breadcrumbs,w=O(k,e,e[15],rn),$=[vn,hn],b=[];function y(e,t){return e[0]?0:1}r=y(e),a=b[r]=$[r](e);let I=!e[3]&&gn(e);function C(e,t){return e[7]&&!e[8]?kn:e[8]?_n:void 0}let N=C(e),E=N&&N(e),x=e[1]&&!e[3]&&wn(e);const S=[bn,$n],T=[];function A(e,t){return e[3]?0:1}return h=A(e),v=T[h]=S[h](e),{c(){t=B("div"),_&&_.c(),n=K(),s=B("div"),i=B("header"),o=B("div"),w&&w.c(),l=K(),c=B("div"),a.c(),u=K(),I&&I.c(),d=K(),E&&E.c(),p=K(),x&&x.c(),m=K(),v.c(),Z(o,"class","kin_header__crumbs crumbs svelte-13u5uhu"),Z(c,"class","kin_header__content svelte-13u5uhu"),Z(i,"class","kin_header svelte-13u5uhu"),Z(s,"class","svelte-13u5uhu"),ne(s,"invisible",e[10]),Z(t,"class",g="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-13u5uhu")},m(e,a){W(e,t,a),_&&_.m(t,null),U(t,n),U(t,s),U(s,i),U(i,o),w&&w.m(o,null),U(i,l),U(i,c),b[r].m(c,null),U(c,u),I&&I.m(c,null),U(i,d),E&&E.m(i,null),U(i,p),x&&x.m(i,null),U(s,m),T[h].m(s,null),f=!0},p(e,[o]){e[10]?_?(_.p(e,o),1024&o&&De(_,1)):(_=dn(e),_.c(),De(_,1),_.m(t,n)):_&&(Oe(),He(_,1,1,(()=>{_=null})),Ae()),w&&w.p&&32768&o&&D(w,k,e,e[15],o,cn,rn);let l=r;r=y(e),r===l?b[r].p(e,o):(Oe(),He(b[l],1,1,(()=>{b[l]=null})),Ae(),a=b[r],a?a.p(e,o):(a=b[r]=$[r](e),a.c()),De(a,1),a.m(c,u)),e[3]?I&&(Oe(),He(I,1,1,(()=>{I=null})),Ae()):I?(I.p(e,o),8&o&&De(I,1)):(I=gn(e),I.c(),De(I,1),I.m(c,null)),N===(N=C(e))&&E?E.p(e,o):(E&&E.d(1),E=N&&N(e),E&&(E.c(),E.m(i,p))),e[1]&&!e[3]?x?x.p(e,o):(x=wn(e),x.c(),x.m(i,null)):x&&(x.d(1),x=null);let d=h;h=A(e),h===d?T[h].p(e,o):(Oe(),He(T[d],1,1,(()=>{T[d]=null})),Ae(),v=T[h],v?v.p(e,o):(v=T[h]=S[h](e),v.c()),De(v,1),v.m(s,null)),1024&o&&ne(s,"invisible",e[10]),(!f||2116&o&&g!==(g="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-13u5uhu"))&&Z(t,"class",g)},i(e){f||(De(_),De(w,e),De(a),De(I),De(v),f=!0)},o(e){He(_),He(w,e),He(a),He(I),He(v),f=!1},d(e){e&&V(t),_&&_.d(),w&&w.d(e),b[r].d(),I&&I.d(),E&&E.d(),x&&x.d(),T[h].d()}}}function In(e,t,n){let{$$slots:s={},$$scope:i}=t,{heading:o}=t,{settingsUrl:l}=t,{cssCls:c}=t,{upsell:r=!1}=t,{inactive:u=!1}=t,{inactiveMsg:d}=t,{layout:p}=t,{back:m=!0}=t,{backEvent:h=!1}=t,{backHash:v}=t,{loading:g=!1}=t;const f=he();let _,k="ltr";pe((()=>{n(11,k=document.body.dir)})),me((()=>{n(11,k=null)}));return e.$$set=e=>{"heading"in e&&n(0,o=e.heading),"settingsUrl"in e&&n(1,l=e.settingsUrl),"cssCls"in e&&n(2,c=e.cssCls),"upsell"in e&&n(3,r=e.upsell),"inactive"in e&&n(4,u=e.inactive),"inactiveMsg"in e&&n(5,d=e.inactiveMsg),"layout"in e&&n(6,p=e.layout),"back"in e&&n(7,m=e.back),"backEvent"in e&&n(8,h=e.backEvent),"backHash"in e&&n(9,v=e.backHash),"loading"in e&&n(10,g=e.loading),"$$scope"in e&&n(15,i=e.$$scope)},e.$$.update=()=>{16400&e.$$.dirty&&_&&_.set(!u)},[o,l,c,r,u,d,p,m,h,v,g,k,f,function(e){return n(14,_=new a(e)),{destroy:()=>{_.destroy(),n(14,_=null)}}},_,i,s,()=>f("backClick")]}class Cn extends We{constructor(e){var t;super(),Xt.getElementById("svelte-13u5uhu-style")||((t=B("style")).id="svelte-13u5uhu-style",t.textContent=".invisible.svelte-13u5uhu.svelte-13u5uhu{display:none}.svelte-13u5uhu.svelte-13u5uhu,.svelte-13u5uhu.svelte-13u5uhu:before,.svelte-13u5uhu.svelte-13u5uhu:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.kin_page.svelte-13u5uhu.svelte-13u5uhu{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--page-background);overflow:hidden}.kin_loading__title.svelte-13u5uhu.svelte-13u5uhu{position:absolute;opacity:0.01}.kin_header.svelte-13u5uhu.svelte-13u5uhu{padding:1.5rem var(--page-padding) 0;height:var(--header-height);position:relative;text-align:var(--page-header-align)}.kin_header__crumbs.svelte-13u5uhu.svelte-13u5uhu,.kin_header__content.svelte-13u5uhu.svelte-13u5uhu{position:absolute;left:var(--page-padding);right:var(--page-padding)}.kin_header__crumbs.svelte-13u5uhu.svelte-13u5uhu{display:var(--breadcrumbs-vis)}.kin_header__content.svelte-13u5uhu.svelte-13u5uhu{bottom:1.1rem}.kin_header__title.svelte-13u5uhu.svelte-13u5uhu,.kin_header__controls.svelte-13u5uhu.svelte-13u5uhu{display:inline-block;vertical-align:middle;position:relative}.kin_header__title.svelte-13u5uhu.svelte-13u5uhu{margin-top:0;margin-bottom:0;padding:0;line-height:1.1;font-size:var(--font-size-header);font-weight:var(--font-weight-h1);max-width:100%}.kin_header__tooltip.svelte-13u5uhu.svelte-13u5uhu{position:absolute;width:24rem;margin-top:calc(var(--switch-height) + 1.5rem);padding-top:1.2rem;padding-bottom:1.2rem;z-index:20;transform:translateX(-50%);left:50%}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu{position:absolute;left:0;top:var(--back-button-top);border:0;background-color:var(--ds-on-background-extra-light);transition:background-color 0.2s, width 0.2s;cursor:pointer;color:inherit;text-decoration:none;width:4.8rem;height:var(--back-button-height);border-radius:0 var(--back-button-height) var(--back-button-height) 0;display:flex;align-items:center;justify-content:center;z-index:9}.kin_back-btn.svelte-13u5uhu kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu kin-icon.svelte-13u5uhu{opacity:0.75}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu:focus,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu:focus,.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu:hover,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu:hover{width:5.6rem;background-color:var(--ds-on-background-light);outline:0}.kin_back-btn.svelte-13u5uhu:focus kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu:focus kin-icon.svelte-13u5uhu,.kin_back-btn.svelte-13u5uhu:hover kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu:hover kin-icon.svelte-13u5uhu{opacity:1}.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu{left:auto;right:0;border-radius:var(--back-button-height) 0 0 var(--back-button-height)}.kin_settings-btn__tooltip.svelte-13u5uhu.svelte-13u5uhu{display:none;position:absolute;right:105%}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu{display:var(--back-btn-vis)}.kin_back-btn.-static.svelte-13u5uhu.svelte-13u5uhu{position:fixed;top:6.4rem}.kin_page__content.svelte-13u5uhu.svelte-13u5uhu{position:absolute;top:var(--header-height);right:0;bottom:0;left:0;display:block}.kin_page__content.-disabled.svelte-13u5uhu.svelte-13u5uhu{opacity:0.2;pointer-events:none}.kin_upsell.svelte-13u5uhu.svelte-13u5uhu{top:var(--header-height);bottom:0;left:0;right:0;position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center}.kin_upsell__icon.svelte-13u5uhu.svelte-13u5uhu{font-size:18rem;margin-bottom:2rem}.kin_upsell__cta.svelte-13u5uhu.svelte-13u5uhu{margin-top:1rem}.kin_page.-no-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{display:none}.kin_page.-no-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:0}.kin_page.-cover-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{position:absolute;width:100%;z-index:1}.kin_page.-cover-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:0}.kin_page.-large-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-large)}.kin_page.-large-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-large-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-large)}.kin_page.-medium-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-medium)}.kin_page.-medium-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-medium-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-medium)}.kin_page.-tabs-page.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-tabs);text-align:center}.kin_page.-tabs-page.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block;text-align:center}.kin_page.-tabs-page.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:block;text-align:center;padding:0}.kin_page.-tabs-page.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-tabs);text-align:center}.kin_page.-center-header.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu,.kin_page.-center-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block;text-align:center}.kin_page.-center.svelte-13u5uhu.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu.svelte-13u5uhu{text-align:center}.kin_page.-center.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:none}.kin_page.-center.svelte-13u5uhu .kin_header__title.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-center-all.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{display:flex;align-items:center;justify-content:center;text-align:center}.kin_page.-flex-between.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:none}.kin_page.-flex-between.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-flex-between.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{display:flex;align-items:center;justify-content:space-between;text-align:center}.kin_page.-profile.svelte-13u5uhu .kin_header.svelte-13u5uhu{position:static;height:auto;text-align:start}.kin_page.-profile.svelte-13u5uhu .kin_header__content.svelte-13u5uhu{position:static}.kin_page.-profile.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{position:static;display:block;padding:0;max-height:none}.kin_page.-profile.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{max-height:none;max-width:100%}.kin_page.-profile.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:calc(var(--header-height) + 6rem)}.kin_page.-detail.svelte-13u5uhu .kin_header.svelte-13u5uhu{text-align:center;height:calc(var(--header-height-large) + 4rem)}.kin_page.-detail.svelte-13u5uhu .kin_header__content.svelte-13u5uhu{display:block}.kin_page.-detail.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{max-height:none;display:block;font-weight:var(--font-weight-h1);padding:0 8%}.kin_page.-detail.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{padding:1rem 0 0;position:static;display:block;max-height:none}.kin_page.-detail.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:calc(var(--header-height-large) + 4rem)}.kin_page.-rtl.svelte-13u5uhu .kin_header__tooltip.svelte-13u5uhu{transform:translateX(50%);left:auto;right:50%}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu,.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu{transform:scale(-1)}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu:hover,.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu:hover{transform:scale(-1.1)}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu{left:auto;right:0}.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu{right:auto;left:0}",U(Xt.head,t)),Ue(this,e,In,yn,E,{heading:0,settingsUrl:1,cssCls:2,upsell:3,inactive:4,inactiveMsg:5,layout:6,back:7,backEvent:8,backHash:9,loading:10})}get heading(){return this.$$.ctx[0]}set heading(e){this.$set({heading:e}),Ie()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(e){this.$set({settingsUrl:e}),Ie()}get cssCls(){return this.$$.ctx[2]}set cssCls(e){this.$set({cssCls:e}),Ie()}get upsell(){return this.$$.ctx[3]}set upsell(e){this.$set({upsell:e}),Ie()}get inactive(){return this.$$.ctx[4]}set inactive(e){this.$set({inactive:e}),Ie()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(e){this.$set({inactiveMsg:e}),Ie()}get layout(){return this.$$.ctx[6]}set layout(e){this.$set({layout:e}),Ie()}get back(){return this.$$.ctx[7]}set back(e){this.$set({back:e}),Ie()}get backEvent(){return this.$$.ctx[8]}set backEvent(e){this.$set({backEvent:e}),Ie()}get backHash(){return this.$$.ctx[9]}set backHash(e){this.$set({backHash:e}),Ie()}get loading(){return this.$$.ctx[10]}set loading(e){this.$set({loading:e}),Ie()}}const{document:Nn}=Me;const En=e=>({}),xn=e=>({}),Sn=e=>({}),Tn=e=>({}),On=e=>({}),An=e=>({}),Dn=e=>({}),Hn=e=>({});function Ln(e){let t;return{c(){t=B("kin-loading"),Q(t,"fullscreen","true")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Mn(e){let t,n,s,i,o,l,c,r,a,u,d,p,m,h,v,g,f=("true"===e[1]||!0===e[1])&&Ln();const _=e[15].description,k=O(_,e,e[14],Hn),w=e[15].cta,$=O(w,e,e[14],An),b=e[15]["view-content"],y=O(b,e,e[14],Tn),I=e[15]["view-actions"],N=O(I,e,e[14],xn);return{c(){t=B("div"),f&&f.c(),n=K(),s=B("div"),i=B("div"),k&&k.c(),o=K(),l=B("div"),$&&$.c(),c=K(),r=B("div"),y&&y.c(),d=K(),p=B("div"),N&&N.c(),Z(i,"class","kin_description svelte-1kq23zh"),te(i,"opacity",e[3]),ne(i,"-no-events",e[3]<.1),Z(l,"class","kin_cta svelte-1kq23zh"),te(l,"opacity",e[4]),ne(l,"-no-events",e[4]<.1),Z(r,"class","kin_view__content svelte-1kq23zh"),s.hidden=a="true"===e[1]||!0===e[1],Z(s,"class","svelte-1kq23zh"),Z(t,"class",u="kin_view "+(e[2]&&"ltr"!=e[2]?"-"+e[2]:"")+" "+e[0]+" svelte-1kq23zh"),ne(t,"-actions",!0===e[5]||e[6]),Z(p,"class","kin_actions svelte-1kq23zh"),p.hidden=m=e[7]||!(!0===e[5]||e[6])},m(a,u){W(a,t,u),f&&f.m(t,null),U(t,n),U(t,s),U(s,i),k&&k.m(i,null),U(s,o),U(s,l),$&&$.m(l,null),U(s,c),U(s,r),y&&y.m(r,null),W(a,d,u),W(a,p,u),N&&N.m(p,null),h=!0,v||(g=[H(e[9].call(null,r)),J(t,"scroll",e[10]),J(t,"content-scrollto",e[11]),J(t,"kin-view:fire-scrolling",e[12]),H(e[8].call(null,t))],v=!0)},p(e,[o]){"true"===e[1]||!0===e[1]?f||(f=Ln(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),k&&k.p&&16384&o&&D(k,_,e,e[14],o,Dn,Hn),(!h||8&o)&&te(i,"opacity",e[3]),8&o&&ne(i,"-no-events",e[3]<.1),$&&$.p&&16384&o&&D($,w,e,e[14],o,On,An),(!h||16&o)&&te(l,"opacity",e[4]),16&o&&ne(l,"-no-events",e[4]<.1),y&&y.p&&16384&o&&D(y,b,e,e[14],o,Sn,Tn),(!h||2&o&&a!==(a="true"===e[1]||!0===e[1]))&&(s.hidden=a),(!h||5&o&&u!==(u="kin_view "+(e[2]&&"ltr"!=e[2]?"-"+e[2]:"")+" "+e[0]+" svelte-1kq23zh"))&&Z(t,"class",u),101&o&&ne(t,"-actions",!0===e[5]||e[6]),N&&N.p&&16384&o&&D(N,I,e,e[14],o,En,xn),(!h||224&o&&m!==(m=e[7]||!(!0===e[5]||e[6])))&&(p.hidden=m)},i(e){h||(De(k,e),De($,e),De(y,e),De(N,e),h=!0)},o(e){He(k,e),He($,e),He(y,e),He(N,e),h=!1},d(e){e&&V(t),f&&f.d(),k&&k.d(e),$&&$.d(e),y&&y.d(e),e&&V(d),e&&V(p),N&&N.d(e),v=!1,C(g)}}}function Rn(e,t,n){let s,i,{$$slots:o={},$$scope:l}=t,{csscls:c=""}=t,{loading:r=!1}=t,{actionbar:a=null}=t;const u=he();let d=!1,p="ltr",m=1,h=1,v=!1,g=null,f=null;function _(e){n(5,v=e.detail.isVisible),u("propUpdate",{keyPath:"isAction",value:v})}return pe((()=>{n(2,p=document.body.dir),s||i||window.addEventListener("kin-isActionBarVisible",_)})),me((()=>{s||i||window.removeEventListener("kin-isActionBarVisible",_),n(2,p=null);let e=g?.querySelector("kin-table");e?.$destroy(),e=null,g=null,f=null})),e.$$set=e=>{"csscls"in e&&n(0,c=e.csscls),"loading"in e&&n(1,r=e.loading),"actionbar"in e&&n(13,a=e.actionbar),"$$scope"in e&&n(14,l=e.$$scope)},e.$$.update=()=>{8192&e.$$.dirty&&n(6,s=!0===a||"true"===a),8192&e.$$.dirty&&n(7,i=!1===a||"false"===a)},[c,r,p,m,h,v,s,i,function(e){g=e},function(e){f=e},function(){const e=f?f.offsetTop:0,t=g?g.scrollTop:0;t>e?(n(3,m=0),n(4,h=0)):(n(3,m=.01*(100-4*t)),n(4,h=.01*(100-1.5*t))),d&&g?.dispatchEvent(new CustomEvent("kinview-scroll",{detail:{scrollPos:t,slotPos:e}}))},function(e){g&&g.scrollTo({top:e.detail.scrollTo,left:0,behavior:"smooth"})},function(){d=!0},a,l,o]}class zn extends We{constructor(e){var t;super(),Nn.getElementById("svelte-1kq23zh-style")||((t=B("style")).id="svelte-1kq23zh-style",t.textContent=".kin_description.svelte-1kq23zh.svelte-1kq23zh{display:block;position:sticky;top:0;z-index:9;text-align:var(--page-header-align)}.kin_description.-no-events.svelte-1kq23zh.svelte-1kq23zh{pointer-events:none}.kin_cta.svelte-1kq23zh.svelte-1kq23zh{display:block;text-align:var(--page-header-align)}.kin_cta.-no-events.svelte-1kq23zh.svelte-1kq23zh{pointer-events:none}.kin_cta__links.svelte-1kq23zh.svelte-1kq23zh{position:absolute;right:0;top:50%;transform:translateY(-50%)}.kin_view.svelte-1kq23zh.svelte-1kq23zh{display:block;position:absolute;top:0;right:0;bottom:0;left:0;padding:0 calc(var(--page-padding) - var(--page-scrollbar-width)) 2rem var(--page-padding);overflow-y:scroll;overflow-x:hidden}.kin_view__content.svelte-1kq23zh.svelte-1kq23zh{position:relative}.kin_view__icon.svelte-1kq23zh.svelte-1kq23zh{font-size:20rem;width:100%;margin-top:14vh;text-align:center;color:var(--color-graphics)}.kin_view.-actions.svelte-1kq23zh.svelte-1kq23zh{bottom:var(--action-bar-height);-webkit-mask-image:none}.kin_view.-center.svelte-1kq23zh.svelte-1kq23zh{text-align:center}.kin_view.-center.svelte-1kq23zh .kin_description.svelte-1kq23zh,.kin_view.-center.svelte-1kq23zh .kin_cta.svelte-1kq23zh,.kin_view.-center.svelte-1kq23zh .kin_view__content.svelte-1kq23zh{text-align:center}.kin_view.-center.svelte-1kq23zh .kin_description.svelte-1kq23zh{margin-left:auto;margin-right:auto}.kin_view.-tab-pane.svelte-1kq23zh.svelte-1kq23zh{padding-top:2rem}.kin_view.-detail.svelte-1kq23zh.svelte-1kq23zh{transform:scale(1)}.kin_view.-detail.svelte-1kq23zh .kin_cta.svelte-1kq23zh,.kin_view.-detail.svelte-1kq23zh .kin_description.svelte-1kq23zh{text-align:center}.kin_view.-detail.svelte-1kq23zh .kin_view__content.svelte-1kq23zh{padding-left:10%;padding-right:10%}.kin_actions.svelte-1kq23zh.svelte-1kq23zh{position:absolute;right:0;bottom:0;left:0;height:var(--action-bar-height);padding:1rem var(--page-padding);background-color:var(--action-bar-background);border-top:solid 1px var(--action-bar-border);box-shadow:var(--action-bar-shadow);font-size:var(--action-bar-font);z-index:9}.kin_view.-rtl.svelte-1kq23zh.svelte-1kq23zh{padding-left:calc(var(--page-padding) - var(--page-scrollbar-width));padding-right:var(--page-padding)}[hidden].svelte-1kq23zh.svelte-1kq23zh{visibility:hidden !important}",U(Nn.head,t)),Ue(this,e,Rn,Mn,E,{csscls:0,loading:1,actionbar:13})}}function Pn(e){let t,n,s,i,o=(e[0]?m("global.feeling.disconnected.title"):"")+"";return{c(){t=B("p"),n=G(o),s=K(),i=G(e[1]),Z(t,"slot","description")},m(e,o){W(e,t,o),U(t,n),U(t,s),U(t,i)},p(e,t){1&t&&o!==(o=(e[0]?m("global.feeling.disconnected.title"):"")+"")&&ee(n,o),2&t&&ee(i,e[1])},d(e){e&&V(t)}}}function qn(e){let t;return{c(){t=B("div"),t.innerHTML='<div class="svg -disconnected sve_offline-page__icon"></div>',Z(t,"slot","view-content")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Un(e){let t,n,s;return n=new zn({props:{csscls:"-center",$$slots:{"view-content":[qn],description:[Pn]},$$scope:{ctx:e}}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"slot","page-content")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};7&t&&(s.$$scope={dirty:t,ctx:e}),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function Wn(e){let t,n;return t=new Cn({props:{layout:"center-header",heading:e[0]?e[0]:m("global.feeling.disconnected.title"),$$slots:{"page-content":[Un]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.heading=e[0]?e[0]:m("global.feeling.disconnected.title")),7&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Vn(e,t,n){let{text:s=""}=t,{desc:i=m("global.feeling.disconnected.desc")}=t;return e.$$set=e=>{"text"in e&&n(0,s=e.text),"desc"in e&&n(1,i=e.desc)},[s,i]}class jn extends We{constructor(e){super(),Ue(this,e,Vn,Wn,E,{text:0,desc:1})}}function Bn(e){const t=e-1;return t*t*t+1}function Fn(e,{delay:t=0,duration:n=400,easing:s=Bn,x:i=0,y:o=0,opacity:l=0}={}){const c=getComputedStyle(e),r=+c.opacity,a="none"===c.transform?"":c.transform,u=r*(1-l);return{delay:t,duration:n,easing:s,css:(e,t)=>`\n\t\t\ttransform: ${a} translate(${(1-e)*i}px, ${(1-e)*o}px);\n\t\t\topacity: ${r-u*t}`}}const{document:Gn}=Me;function Kn(e){let t;return{c(){t=B("kin-loading"),Q(t,"fullscreen","true")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Yn(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,y,I,E=e[1]&&Kn();const x=e[13].default,S=O(x,e,e[12],null);return{c(){t=B("div"),n=B("div"),s=B("header"),i=B("button"),o=B("kin-icon"),c=K(),r=B("div"),r.textContent=`${m("global.close")}`,a=K(),u=B("div"),E&&E.c(),d=K(),p=B("div"),S&&S.c(),f=K(),_=B("div"),Q(o,"name","icon-s-controls-close"),Q(o,"size","14"),Z(i,"class","sve_overlay__cross nui_caption_client nui_caption_client-overlay"),Z(i,"title",l=e[4].close),Z(i,"data-test","sve_overlay_close"),Z(r,"class","sve_overlay__title nui_caption_client nui_caption_client-overlay"),Z(s,"class","sve_overlay__titlebar"),Z(p,"data-slot",""),Z(p,"class","svelte-1stpe6u"),ne(p,"invisible",e[1]),Z(u,"class","sve_overlay__contents"),Z(n,"class","sve_overlay__holder"),Z(n,"data-test","sve_overlay"),Z(n,"role","dialog"),Z(n,"aria-label",h=e[2]?e[2]:""),Z(_,"class","sve_overlay__close"),Z(t,"class",k="sve_overlay "+(e[3]?"-"+e[3]:"")+" "+("rtl"===e[0]?"-rtl":"")+" svelte-1stpe6u"),ne(t,"-adapted",e[5])},m(l,m){W(l,t,m),U(t,n),U(n,s),U(s,i),U(i,o),U(s,c),U(s,r),U(n,a),U(n,u),E&&E.m(u,null),U(u,d),U(u,p),S&&S.m(p,null),U(t,f),U(t,_),w=!0,y||(I=[J(window,"keydown",e[9]),J(window,"vNextVisibilityChanged",e[8]),J(window,"kin-isActionBarVisible",e[8]),J(i,"click",e[7]),J(r,"click",e[7]),J(_,"click",e[7]),H(e[10].call(null,t))],y=!0)},p(s,[o]){e=s,(!w||16&o&&l!==(l=e[4].close))&&Z(i,"title",l),e[1]?E||(E=Kn(),E.c(),E.m(u,d)):E&&(E.d(1),E=null),S&&S.p&&4096&o&&D(S,x,e,e[12],o,null,null),2&o&&ne(p,"invisible",e[1]),(!w||4&o&&h!==(h=e[2]?e[2]:""))&&Z(n,"aria-label",h),(!w||9&o&&k!==(k="sve_overlay "+(e[3]?"-"+e[3]:"")+" "+("rtl"===e[0]?"-rtl":"")+" svelte-1stpe6u"))&&Z(t,"class",k),41&o&&ne(t,"-adapted",e[5])},i(t){w||(De(S,t),$e((()=>{g&&g.end(1),v||(v=function(e,t,n){let s,i,o=t(e,n),l=!1,c=0;function r(){s&&ae(e,s)}function a(){const{delay:t=0,duration:n=300,easing:a=b,tick:u=$,css:d}=o||Le;d&&(s=re(e,0,1,n,t,a,d,c++)),u(0,1);const p=M()+t,m=p+n;i&&i.abort(),l=!0,$e((()=>xe(e,!0,"start"))),i=q((t=>{if(l){if(t>=m)return u(1,0),xe(e,!0,"end"),r(),l=!1;if(t>=p){const e=a((t-p)/n);u(e,1-e)}}return l}))}let u=!1;return{start(){u||(ae(e),N(o)?(o=o(),Ee().then(a)):a())},invalidate(){u=!1},end(){l&&(r(),l=!1)}}}(n,Fn,{duration:400,x:e[6]})),v.start()})),w=!0)},o(t){He(S,t),v&&v.invalidate(),g=function(e,t,n){let s,i=t(e,n),o=!0;const l=Te;function c(){const{delay:t=0,duration:n=300,easing:c=b,tick:r=$,css:a}=i||Le;a&&(s=re(e,1,0,n,t,c,a));const u=M()+t,d=u+n;$e((()=>xe(e,!1,"start"))),q((t=>{if(o){if(t>=d)return r(0,1),xe(e,!1,"end"),--l.r||C(l.c),!1;if(t>=u){const e=c((t-u)/n);r(1-e,e)}}return o}))}return l.r+=1,N(i)?Ee().then((()=>{i=i(),c()})):c(),{end(t){t&&i.tick&&i.tick(1,0),o&&(s&&ae(e,s),o=!1)}}}(n,Fn,{duration:400,x:e[6]}),w=!1},d(e){e&&V(t),E&&E.d(),S&&S.d(e),e&&g&&g.end(),y=!1,C(I)}}}function Jn(e,t,n){let{$$slots:s={},$$scope:i}=t;const l=he();let c=!0,r=500,{loading:a=!1}=t,{dir:d="ltr"}=t,{title:p=""}=t,{type:h=""}=t,{txt:v={close:m("global.closeOverlayPage")}}=t,{focuser:g}=t,{cssAnimFallback:f=!1}=t;function _(){setTimeout(o.setCaption,1e3)}function k(){l("close")}return d=document.body.dir,"rtl"===d&&(r*=-1),pe((()=>{_()})),e.$$set=e=>{"loading"in e&&n(1,a=e.loading),"dir"in e&&n(0,d=e.dir),"title"in e&&n(2,p=e.title),"type"in e&&n(3,h=e.type),"txt"in e&&n(4,v=e.txt),"focuser"in e&&n(11,g=e.focuser),"cssAnimFallback"in e&&n(5,f=e.cssAnimFallback),"$$scope"in e&&n(12,i=e.$$scope)},e.$$.update=()=>{8&e.$$.dirty&&_()},[d,a,p,h,v,f,r,k,function(e){c=!e.detail.isVisible},function(e){!c||"Escape"!==e.key&&27!==e.keyCode||(k(),e.preventDefault(),e.stopPropagation())},function(e){const t=new u(e);return n(11,g=t.getFocuser()),{destroy:t.destroy.bind(t)}},g,i,s]}class Xn extends We{constructor(e){var t;super(),Gn.getElementById("svelte-1stpe6u-style")||((t=B("style")).id="svelte-1stpe6u-style",t.textContent=".invisible.svelte-1stpe6u{visibility:hidden}",U(Gn.head,t)),Ue(this,e,Jn,Yn,E,{loading:1,dir:0,title:2,type:3,txt:4,focuser:11,cssAnimFallback:5})}}function Zn(e){let t,n,s,i;return{c(){t=B("div"),n=B("kin-icon"),Q(n,"name",e[4]),Z(t,"class",s="sve_toaster__theme "+(e[3]?"color-"+e[3]:"color-dark -bg")),Z(t,"style",i=e[5]?"font-size:"+e[5]:"")},m(e,s){W(e,t,s),U(t,n)},p(e,o){16&o&&Q(n,"name",e[4]),8&o&&s!==(s="sve_toaster__theme "+(e[3]?"color-"+e[3]:"color-dark -bg"))&&Z(t,"class",s),32&o&&i!==(i=e[5]?"font-size:"+e[5]:"")&&Z(t,"style",i)},d(e){e&&V(t)}}}function Qn(e){let t,n;return{c(){t=B("kin-icon"),Q(t,"name",e[4]),Q(t,"class",n="g-margin-bottom--20 "+(e[3]?"color-"+e[3]+" -text":""))},m(e,n){W(e,t,n)},p(e,s){16&s&&Q(t,"name",e[4]),8&s&&n!==(n="g-margin-bottom--20 "+(e[3]?"color-"+e[3]+" -text":""))&&Q(t,"class",n)},d(e){e&&V(t)}}}function es(e){let t,n;return{c(){t=B("h2"),n=G(e[6]),Z(t,"class","sve_toaster__title h3")},m(e,s){W(e,t,s),U(t,n)},p(e,t){64&t&&ee(n,e[6])},d(e){e&&V(t)}}}function ts(e){let t,n;function s(e,t){return e[10]?ss:ns}let i=s(e),o=i(e),l=e[8]&&is(e);return{c(){t=B("p"),o.c(),n=K(),l&&l.c(),Z(t,"class","sve_toaster__text p -small")},m(e,s){W(e,t,s),o.m(t,null),U(t,n),l&&l.m(t,null)},p(e,c){i===(i=s(e))&&o?o.p(e,c):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n))),e[8]?l?l.p(e,c):(l=is(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&V(t),o.d(),l&&l.d()}}}function ns(e){let t;return{c(){t=G(e[7])},m(e,n){W(e,t,n)},p(e,n){128&n&&ee(t,e[7])},d(e){e&&V(t)}}}function ss(e){let t,n;return{c(){n=Y(),t=new ie(n)},m(s,i){t.m(e[7],s,i),W(s,n,i)},p(e,n){128&n&&t.p(e[7])},d(e){e&&V(n),e&&t.d()}}}function is(e){let t,n,s,i,o;return{c(){t=G(" "),n=B("button"),s=G(e[8]),Z(n,"class","a g-font--capital")},m(l,c){W(l,t,c),W(l,n,c),U(n,s),i||(o=J(n,"click",e[14]),i=!0)},p(e,t){256&t&&ee(s,e[8])},d(e){e&&V(t),e&&V(n),i=!1,o()}}}function os(e){let t;function n(e,t){return e[11]<0||100<e[11]?cs:ls}let s=n(e),i=s(e);return{c(){t=B("div"),i.c(),Z(t,"class","sve_toaster__progress")},m(e,n){W(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i.d()}}}function ls(e){let t,n,s,i,o;return{c(){t=B("kin-progress"),n=K(),s=B("p"),i=G(e[11]),o=G("%"),Q(t,"percentage",e[11]),Q(t,"csscls","-standalone"),Z(s,"class","p")},m(e,l){W(e,t,l),W(e,n,l),W(e,s,l),U(s,i),U(s,o)},p(e,n){2048&n&&Q(t,"percentage",e[11]),2048&n&&ee(i,e[11])},d(e){e&&V(t),e&&V(n),e&&V(s)}}}function cs(e){let t;return{c(){t=B("kin-progress"),Q(t,"percentage",e[11]),Q(t,"csscls","-standalone -unknown")},m(e,n){W(e,t,n)},p(e,n){2048&n&&Q(t,"percentage",e[11])},d(e){e&&V(t)}}}function rs(e){let t,n,s,i;return{c(){t=B("kin-button"),n=G(e[9]),Q(t,"class","sve_toaster__btn")},m(o,l){W(o,t,l),U(t,n),s||(i=J(t,"click",e[15]),s=!0)},p(e,t){512&t&&ee(n,e[9])},d(e){e&&V(t),s=!1,i()}}}function as(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w=e[1]&&Zn(e),$=e[4]&&!e[1]&&Qn(e),b=e[6]&&es(e),y=e[7]&&ts(e),I=(e[11]||0===e[11])&&os(e);const N=e[23].default,E=O(N,e,e[22],null);let x=e[9]&&rs(e);return{c(){t=B("div"),n=B("div"),s=B("h1"),s.innerHTML='<span class="logo -white -width-70"></span>',i=K(),o=B("div"),l=B("button"),c=K(),r=B("div"),w&&w.c(),a=K(),$&&$.c(),u=K(),b&&b.c(),d=K(),y&&y.c(),p=K(),I&&I.c(),h=K(),E&&E.c(),v=K(),x&&x.c(),Z(s,"class","nui_logo"),Z(l,"class","nui_controls__item -close nui_caption_client"),Z(l,"title",m("global.closeModalWindow")),Z(o,"class","nui_controls"),Z(n,"class","nui_titlebar -toaster nui_caption"),Z(r,"class",g="nui_main -toaster\n\t\t"+(e[2]?"color-"+e[2]+" -bg":"")+"\n\t\t"+(e[1]?e[1]+"-toaster-icon":"")+"\n\t"),Z(t,"class","sve_toaster"),te(t,"width",e[0]+"px")},m(m,g){W(m,t,g),U(t,n),U(n,s),U(n,i),U(n,o),U(o,l),U(t,c),U(t,r),w&&w.m(r,null),U(r,a),$&&$.m(r,null),U(r,u),b&&b.m(r,null),U(r,d),y&&y.m(r,null),U(r,p),I&&I.m(r,null),U(r,h),E&&E.m(r,null),U(r,v),x&&x.m(r,null),f=!0,_||(k=[J(l,"click",e[13]),H(e[16].call(null,n)),H(e[17].call(null,r)),J(t,"click",e[12])],_=!0)},p(e,[n]){e[1]?w?w.p(e,n):(w=Zn(e),w.c(),w.m(r,a)):w&&(w.d(1),w=null),e[4]&&!e[1]?$?$.p(e,n):($=Qn(e),$.c(),$.m(r,u)):$&&($.d(1),$=null),e[6]?b?b.p(e,n):(b=es(e),b.c(),b.m(r,d)):b&&(b.d(1),b=null),e[7]?y?y.p(e,n):(y=ts(e),y.c(),y.m(r,p)):y&&(y.d(1),y=null),e[11]||0===e[11]?I?I.p(e,n):(I=os(e),I.c(),I.m(r,h)):I&&(I.d(1),I=null),E&&E.p&&4194304&n&&D(E,N,e,e[22],n,null,null),e[9]?x?x.p(e,n):(x=rs(e),x.c(),x.m(r,null)):x&&(x.d(1),x=null),(!f||6&n&&g!==(g="nui_main -toaster\n\t\t"+(e[2]?"color-"+e[2]+" -bg":"")+"\n\t\t"+(e[1]?e[1]+"-toaster-icon":"")+"\n\t"))&&Z(r,"class",g),(!f||1&n)&&te(t,"width",e[0]+"px")},i(e){f||(De(E,e),f=!0)},o(e){He(E,e),f=!1},d(e){e&&V(t),w&&w.d(),$&&$.d(),b&&b.d(),y&&y.d(),I&&I.d(),E&&E.d(e),x&&x.d(),_=!1,C(k)}}}function us(e,t,n){let s,{$$slots:c={},$$scope:r}=t,{windowWidth:a=360}=t,{windowHeight:u=360}=t,{theme:d}=t,{skin:p}=t,{severity:m}=t,{icon:h}=t,{iconSize:v}=t,{title:g}=t,{text:f}=t,{progress:_}=t,{textActionLabel:k}=t,{buttonLabel:w}=t,{burgerToasterTracker:$}=t,{handleClose:b}=t,{allowHtml:y}=t;const I=he();let C,N,E;var x;function S(){n(18,u=N.scrollHeight+C.scrollHeight),o.resize(a,u)}return x=()=>{S(),E=new MutationObserver(S.bind(this)),E.observe(N,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),$?.toasterView&&l.toaster.view()},de().$$.after_update.push(x),me((()=>{E&&E.disconnect()})),e.$$set=e=>{"windowWidth"in e&&n(0,a=e.windowWidth),"windowHeight"in e&&n(18,u=e.windowHeight),"theme"in e&&n(1,d=e.theme),"skin"in e&&n(2,p=e.skin),"severity"in e&&n(3,m=e.severity),"icon"in e&&n(4,h=e.icon),"iconSize"in e&&n(5,v=e.iconSize),"title"in e&&n(6,g=e.title),"text"in e&&n(7,f=e.text),"progress"in e&&n(19,_=e.progress),"textActionLabel"in e&&n(8,k=e.textActionLabel),"buttonLabel"in e&&n(9,w=e.buttonLabel),"burgerToasterTracker"in e&&n(20,$=e.burgerToasterTracker),"handleClose"in e&&n(21,b=e.handleClose),"allowHtml"in e&&n(10,y=e.allowHtml),"$$scope"in e&&n(22,r=e.$$scope)},e.$$.update=()=>{524288&e.$$.dirty&&n(11,s=Number.isNaN(parseInt(_))?_:parseInt(_))},[a,d,p,m,h,v,g,f,k,w,y,s,function(){i.event("Toaster","Click","Area"),I("areaAction")},function(){i.event("Toaster","Close"),$?.toasterClose&&l.toaster.close(),b?I("close"):o.close()},function(){I("doTextAction")},function(){I("doAction")},function(e){C=e},function(e){N=e},u,_,$,b,r,c]}class ds extends We{constructor(e){super(),Ue(this,e,us,as,E,{windowWidth:0,windowHeight:18,theme:1,skin:2,severity:3,icon:4,iconSize:5,title:6,text:7,progress:19,textActionLabel:8,buttonLabel:9,burgerToasterTracker:20,handleClose:21,allowHtml:10})}}const ps=je(void 0,(function(t){1==localStorage.deviceWatcherEnabled?t(!0):Promise.all([e("app.settings.Get","avcfg://settings/Hns/DeviceWatcherEnabled"),e("app.settings.Get","avdef://config/GuiCache/DeviceWatcher")]).then((e=>t(1==e[0]&&1==e[1]))).catch((()=>t(!1)))})),ms=Be(void 0,(function(){const t=[];return t.push(ps.subscribe((n=>{void 0!==n&&(n?t.push(Ze.subscribe((t=>{if(void 0!==t){let t=!1;S(ps)?e("asw.device_watcher.status").then((e=>(e.status&&"ok"===e.status&&(t=e.check),!1))).catch((()=>{})).finally((()=>{ms.set(t)})):ms.set(t)}}))):ms.set(!1))}))),function(){t.forEach((e=>e()))}}));const hs=new class{constructor(){this._dwEnabled=ps.subscribe((e=>{void 0!==e&&(this._dwEnabled=e)})),this.removedNets=new Set(localStorage.getItem("hns.removedNets")?localStorage.getItem("hns.removedNets").split(","):null)}start(t,n){const s={};return this._dwEnabled?(t&&(s.network_id=t),n&&(s.devices=n),new Promise((e=>{n||t&&t!==S(Ze)?e():Je.getLastScan().then((t=>{s.devices=t&&t.devices?t.devices:[],e()}))})).then((()=>e("asw.device_watcher.start",s).then((()=>{t&&t!==S(Ze)||ms.set(!0);const e=t||S(Ze);this.removedNets.has(e)&&(this.removedNets.delete(e),localStorage.setItem("hns.removedNets",Array.from(this.removedNets).join(","))),localStorage.setItem("hns["+e+"watcherSet]","1")}))))):Promise.reject()}stop(t){const n={};return this._dwEnabled?(t&&(n.network_id=t),e("asw.device_watcher.stop",n).then((()=>{t&&t!==S(Ze)||ms.set(!1)}))):Promise.reject()}toggleMyNetwork(e){return S(ms)?this.stop():this.start(null,e)}getWatchedNetworks(){return this._dwEnabled?e("asw.device_watcher.networks").then((e=>Array.isArray(e)?e:[])).catch((()=>[])):Promise.resolve([])}getNetworks(e){return Je.getNetworks().then((t=>t?(e?t.forEach((e=>{this.removedNets.has(e.network_id)&&(e.removedNet=!0)})):t=t.filter((e=>!this.removedNets.has(e.network_id))),t):[])).catch((()=>[]))}removeNet(e){return!this.removedNets.has(e)&&(this.stop(e),this.removedNets.add(e),localStorage.setItem("hns.removedNets",Array.from(this.removedNets).join(",")),!0)}autoStart4firstTime(e,t){return e&&!localStorage.getItem("hns["+e+"watcherSet]")?this.start(e,t):Promise.reject()}};function vs(e){let t;function n(e,t){return e[0]?fs:gs}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function gs(e){let t,n,s,i,o,l,c,r,a,u;return{c(){t=B("div"),n=B("input"),s=K(),i=B("label"),i.textContent=`${m("network.watcher.toggle")}`,o=K(),l=B("p"),l.textContent=`${m("network.watcher.desc")}`,c=K(),r=B("kin-icon"),Z(n,"type","checkbox"),Z(n,"class","checkbox"),n.checked=e[2],Z(n,"id","hns-device-watcher"),Z(i,"class","checkbox__label"),Z(i,"for","hns-device-watcher"),Z(l,"class","checkbox__desc settings__indent"),Q(r,"name","icon-m-tools-wifi-inspector"),Q(r,"size","48"),Q(r,"class","hns_checkbox__row__icon svelte-veo8xz"),Z(t,"class","checkbox__row hns_checkbox__row svelte-veo8xz")},m(d,p){W(d,t,p),U(t,n),U(t,s),U(t,i),U(t,o),U(t,l),U(t,c),U(t,r),a||(u=J(n,"click",X(e[3])),a=!0)},p(e,t){4&t&&(n.checked=e[2])},d(e){e&&V(t),a=!1,u()}}}function fs(e){let t,n,s,i,o,l;return{c(){t=B("div"),n=B("input"),s=K(),i=B("label"),i.textContent=`${m("network.notify.newdevice")}`,Z(n,"type","checkbox"),Z(n,"class","checkbox"),n.checked=e[2],Z(n,"id","hns-device-watcher2"),Z(i,"class","checkbox__label"),Z(i,"for","hns-device-watcher2"),Z(t,"class","hns_tooltip__checkbox svelte-veo8xz")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=J(n,"click",X(e[3])),o=!0)},p(e,t){4&t&&(n.checked=e[2])},d(e){e&&V(t),o=!1,l()}}}function _s(e){let t,n=e[1]&&vs(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,[s]){e[1]?n?n.p(e,s):(n=vs(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:$,o:$,d(e){n&&n.d(e),e&&V(t)}}}function ks(e,t,n){let s,o;T(e,ms,(e=>n(2,s=e))),T(e,ps,(e=>n(1,o=e)));let l,{devices:c}=t,{networkId:r}=t,{inTooltip:a}=t,{autoWatch:u}=t;return e.$$set=e=>{"devices"in e&&n(4,c=e.devices),"networkId"in e&&n(5,r=e.networkId),"inTooltip"in e&&n(0,a=e.inTooltip),"autoWatch"in e&&n(6,u=e.autoWatch)},e.$$.update=()=>{114&e.$$.dirty&&o&&u&&hs.autoStart4firstTime(r,c).catch((()=>{}))},[a,o,s,function(){l||(l=!0,hs.toggleMyNetwork(c).finally((()=>l=!1)),i.event("HNS","Watcher",!s))},c,r,u]}class ws extends We{constructor(e){var t;super(),document.getElementById("svelte-veo8xz-style")||((t=B("style")).id="svelte-veo8xz-style",t.textContent=".hns_checkbox__row.svelte-veo8xz{padding:2rem 6rem 2rem 0;position:relative;margin:4rem auto;max-width:80%;border-top:solid 1px var(--table-border)}.hns_checkbox__row__icon.svelte-veo8xz{position:absolute;top:2rem;right:0}.hns_tooltip__checkbox.svelte-veo8xz{display:flex;margin-top:10px}",U(document.head,t)),Ue(this,e,ks,_s,E,{devices:4,networkId:5,inTooltip:0,autoWatch:6})}}function $s(e){let t,n;return t=new Cn({props:{cssCls:"hns",layout:"detail",settingsUrl:Ge,backHash:"#security",$$slots:{"page-content":[Ps],"page-title":[ys]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};65787&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function bs(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",back:"false",loading:e[3],$$slots:{"page-content":[qs]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};8&n&&(s.loading=e[3]),65536&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ys(e){let t,n,s,i;return{c(){t=B("div"),n=B("h1"),n.textContent=`${m("network")}`,s=K(),i=B("p"),i.textContent=`${m("network.dash.desc")}`,Z(n,"class","kin_header__title h1 -margins"),Z(i,"class","p -center -secondary"),Z(t,"slot","page-title")},m(e,o){W(e,t,o),U(t,n),U(t,s),U(t,i)},p:$,d(e){e&&V(t)}}}function Is(e){let t,n,s,i,o,l,c,r,a,u,d;function p(e,t){return"stopping"===e[6]?Es:"running"===e[6]?Ns:Cs}let m=p(e),h=m(e),v=e[7]&&xs(e),g=e[1]&&e[1].networkInfo&&Ss(e);return{c(){t=B("div"),n=B("kin-button"),s=B("span"),h.c(),l=K(),v&&v.c(),c=K(),g&&g.c(),r=Y(),Q(n,"size","large"),Q(n,"data-test","scan_network-btn"),Q(n,"processing",i="running"===e[6]||"stopping"===e[6]),Q(n,"kin-disabled",o="stopping"===e[6]),Z(t,"class","g-margin-bottom--20 g-margin-top--40")},m(i,o){W(i,t,o),U(t,n),U(n,s),h.m(s,null),U(t,l),v&&v.m(t,null),W(i,c,o),g&&g.m(i,o),W(i,r,o),a=!0,u||(d=J(n,"click",e[8]),u=!0)},p(e,l){m===(m=p(e))&&h?h.p(e,l):(h.d(1),h=m(e),h&&(h.c(),h.m(s,null))),(!a||64&l&&i!==(i="running"===e[6]||"stopping"===e[6]))&&Q(n,"processing",i),(!a||64&l&&o!==(o="stopping"===e[6]))&&Q(n,"kin-disabled",o),e[7]?v?v.p(e,l):(v=xs(e),v.c(),v.m(t,null)):v&&(v.d(1),v=null),e[1]&&e[1].networkInfo?g?(g.p(e,l),2&l&&De(g,1)):(g=Ss(e),g.c(),De(g,1),g.m(r.parentNode,r)):g&&(Oe(),He(g,1,1,(()=>{g=null})),Ae())},i(e){a||(De(g),a=!0)},o(e){He(g),a=!1},d(e){e&&V(t),h.d(),v&&v.d(),e&&V(c),g&&g.d(e),e&&V(r),u=!1,d()}}}function Cs(e){let t,n=m("network.scan")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Ns(e){let t,n=m("network.scan.runs")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Es(e){let t,n=m("network.scan.stopping")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function xs(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("network.last.result")}`,Q(t,"type","secondary"),Q(t,"class","g-margin-left--20"),Q(t,"size","large")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[9]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Ss(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k=m("network.connect.devices")+"",w=m("network.connected.to")+"",$=e[1].networkInfo.name+"",b=e[4]&&Ts(e),y=e[1].networkInfo.encryption&&Os(e),I=e[1].networkInfo.signal&&As(e),C="home"===e[1].networkInfo.scanType&&Rs();return{c(){t=B("div"),n=G(k),s=B("br"),i=K(),o=G(w),l=K(),c=B("strong"),r=G($),a=K(),u=B("kin-tooltip"),d=B("span"),d.innerHTML='<kin-icon name="circle-question" size="18"></kin-icon>',p=K(),h=B("div"),b&&b.c(),v=K(),y&&y.c(),g=K(),I&&I.c(),f=K(),C&&C.c(),Z(c,"data-test","hns_network-name"),Z(d,"slot","tooltip-activator"),Z(h,"slot","tooltip")},m(e,m){W(e,t,m),U(t,n),U(t,s),U(t,i),U(t,o),U(t,l),U(t,c),U(c,r),U(t,a),U(t,u),U(u,d),U(u,p),U(u,h),b&&b.m(h,null),U(h,v),y&&y.m(h,null),U(h,g),I&&I.m(h,null),U(h,f),C&&C.m(h,null),_=!0},p(e,t){(!_||2&t)&&$!==($=e[1].networkInfo.name+"")&&ee(r,$),e[4]?b?b.p(e,t):(b=Ts(e),b.c(),b.m(h,v)):b&&(b.d(1),b=null),e[1].networkInfo.encryption?y?y.p(e,t):(y=Os(e),y.c(),y.m(h,g)):y&&(y.d(1),y=null),e[1].networkInfo.signal?I?I.p(e,t):(I=As(e),I.c(),I.m(h,f)):I&&(I.d(1),I=null),"home"===e[1].networkInfo.scanType?C?2&t&&De(C,1):(C=Rs(),C.c(),De(C,1),C.m(h,null)):C&&(Oe(),He(C,1,1,(()=>{C=null})),Ae())},i(e){_||(De(C),_=!0)},o(e){He(C),_=!1},d(e){e&&V(t),b&&b.d(),y&&y.d(),I&&I.d(),C&&C.d()}}}function Ts(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g=e[4].ip+"",f=e[4].isp+"";return{c(){t=B("p"),t.textContent=`${m("network.info.ip")}`,n=K(),s=B("p"),i=G(g),o=K(),l=B("p"),l.textContent=`${m("network.info.location")}`,c=K(),r=B("p"),a=G(e[5]),u=K(),d=B("p"),d.textContent=`${m("network.info.isp")}`,p=K(),h=B("p"),v=G(f),Z(t,"class","p -small"),Z(s,"class","p -small -margins"),Z(l,"class","p -small"),Z(r,"class","p -small -margins"),Z(d,"class","p -small"),Z(h,"class","p -small -margins")},m(e,m){W(e,t,m),W(e,n,m),W(e,s,m),U(s,i),W(e,o,m),W(e,l,m),W(e,c,m),W(e,r,m),U(r,a),W(e,u,m),W(e,d,m),W(e,p,m),W(e,h,m),U(h,v)},p(e,t){16&t&&g!==(g=e[4].ip+"")&&ee(i,g),32&t&&ee(a,e[5]),16&t&&f!==(f=e[4].isp+"")&&ee(v,f)},d(e){e&&V(t),e&&V(n),e&&V(s),e&&V(o),e&&V(l),e&&V(c),e&&V(r),e&&V(u),e&&V(d),e&&V(p),e&&V(h)}}}function Os(e){let t,n,s,i,o,l,c=e[1].networkInfo.encryption+"",r=e[1].networkInfo.auth+"";return{c(){t=B("p"),t.textContent=`${m("network.info.security")}`,n=K(),s=B("p"),i=G(c),o=G("/"),l=G(r),Z(t,"class","p -small"),Z(s,"class","p -small -margins g-font--uppercase")},m(e,c){W(e,t,c),W(e,n,c),W(e,s,c),U(s,i),U(s,o),U(s,l)},p(e,t){2&t&&c!==(c=e[1].networkInfo.encryption+"")&&ee(i,c),2&t&&r!==(r=e[1].networkInfo.auth+"")&&ee(l,r)},d(e){e&&V(t),e&&V(n),e&&V(s)}}}function As(e){let t,n,s;function i(e,t){return e[1].networkInfo.signal>80?Ms:e[1].networkInfo.signal>60?Ls:e[1].networkInfo.signal>40?Hs:Ds}let o=i(e),l=o(e);return{c(){t=B("p"),t.textContent=`${m("network.info.signal")}`,n=K(),s=B("div"),l.c(),Z(t,"class","p -small"),Z(s,"class","g-margin-bottom--10")},m(e,i){W(e,t,i),W(e,n,i),W(e,s,i),l.m(s,null)},p(e,t){o!==(o=i(e))&&(l.d(1),l=o(e),l&&(l.c(),l.m(s,null)))},d(e){e&&V(t),e&&V(n),e&&V(s),l.d()}}}function Ds(e){let t;return{c(){t=B("kin-progress"),Q(t,"percentage","25"),Q(t,"csscls","hns_network__signal -critical")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Hs(e){let t;return{c(){t=B("kin-progress"),Q(t,"percentage","50"),Q(t,"csscls","hns_network__signal -attention")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Ls(e){let t;return{c(){t=B("kin-progress"),Q(t,"percentage","75"),Q(t,"csscls","hns_network__signal -ok")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Ms(e){let t;return{c(){t=B("kin-progress"),Q(t,"percentage","100"),Q(t,"csscls","hns_network__signal -ok")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Rs(e){let t,n;return t=new ws({props:{inTooltip:!0}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function zs(e){let t,n,s=e[0]&&Is(e);return{c(){t=B("div"),s&&s.c(),Z(t,"slot","view-content")},m(e,i){W(e,t,i),s&&s.m(t,null),n=!0},p(e,n){e[0]?s?(s.p(e,n),1&n&&De(s,1)):(s=Is(e),s.c(),De(s,1),s.m(t,null)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){e&&V(t),s&&s.d()}}}function Ps(e){let t,n,s;return n=new zn({props:{loading:e[3],csscls:"-center",$$slots:{"view-content":[zs]},$$scope:{ctx:e}}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"slot","page-content")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};8&t&&(s.loading=e[3]),65779&t&&(s.$$scope={dirty:t,ctx:e}),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function qs(e){let t,n,s,i,o,l,c,r,a,u,d,p;return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("div"),o=B("h1"),o.textContent=`${m("network.vpn.turn.off.title")}`,l=K(),c=B("p"),c.textContent=`${m("network.vpn.turn.off.desc")}`,r=K(),a=B("div"),u=B("kin-button"),u.textContent=`${m("network.vpn.turn.off")}`,Q(n,"name","circle-attention"),Q(n,"class","kin_scan__icon"),Q(n,"size","96"),Z(o,"class","h1 kin_scan__title -overlay"),Z(c,"class","kin_scan__subtitle -overlay"),Z(i,"class","kin_scan__result"),Q(u,"size","large"),Z(a,"class","kin_scan__actions"),Z(t,"slot","page-content")},m(m,h){W(m,t,h),U(t,n),U(t,s),U(t,i),U(i,o),U(i,l),U(i,c),U(t,r),U(t,a),U(a,u),d||(p=J(u,"click",e[10]),d=!0)},p:$,d(e){e&&V(t),d=!1,p()}}}function Us(e){let t,n,s,i;const o=[bs,$s],l=[];function c(e,t){return e[2]?0:1}return t=c(e),n=l[t]=o[t](e),{c(){n.c(),s=Y()},m(e,n){l[t].m(e,n),W(e,s,n),i=!0},p(e,[i]){let r=t;t=c(e),t===r?l[t].p(e,i):(Oe(),He(l[r],1,1,(()=>{l[r]=null})),Ae(),n=l[t],n?n.p(e,i):(n=l[t]=o[t](e),n.c()),De(n,1),n.m(s.parentNode,s))},i(e){i||(De(n),i=!0)},o(e){He(n),i=!1},d(e){l[t].d(e),e&&V(s)}}}function Ws(e,t,n){let s,o,l,c,r;T(e,st,(e=>n(6,s=e))),T(e,et,(e=>n(1,o=e))),T(e,Ze,(e=>n(11,l=e))),T(e,it,(e=>n(2,c=e))),T(e,nt,(e=>n(7,r=e)));const a=he();let u,d,p,m,h=!0,v="";const g=Ze.subscribe((e=>{void 0!==e&&(null===e?n(4,d=!1):fetch("https://ip-info.ff.avast.com/v2/info").then((e=>e.json())).then((e=>{n(4,d=e),n(5,v=`\n\t\t\t\t\t\t\t${d.postalCode&&d.city?d.postalCode+", ":""}\n\t\t\t\t\t\t\t${d.city?d.city+", ":""}\n\t\t\t\t\t\t\t${d.countryName?d.countryName+", ":""}\n\t\t\t\t\t\t\t${d.continent?d.continent:""}\n\t\t\t\t\t\t`)})).catch((()=>n(4,d=!1))))}));return me((()=>{m&&clearTimeout(m),g()})),e.$$.update=()=>{2055&e.$$.dirty&&(u||void 0===o||void 0===l||void 0===c||(n(0,u=!0),i.view("HNS/LP_"+o.networkInfo.scanType||"home_public"),c&&i.view("HNS-VPN_running"),n(3,h=!1)))},[u,o,c,h,d,v,s,r,function(){p||"stopping"===s||("running"===s?It().then((e=>a("showScan",e))).catch((e=>{"TYPE"===e?(st.stopping(),Je.stopScan(),m=setTimeout((()=>{a("scanNetwork")}),5e3)):a("scanNetwork")})):(i.event("HNS","Click","OpenStartScanModal"),a("scanNetwork")))},function(){p||(p=!0,i.event("HNS","Click","LastScanResult"),yt().then((e=>a("showScan",e))).finally((()=>p=!1)))},function(){i.event("HNS","Click","VpnTurnOff"),Je.openVpn()},l]}class Vs extends We{constructor(e){super(),Ue(this,e,Ws,Us,E,{})}}function js(e,t,n){const s=e.slice();return s[13]=t[n],s}function Bs(e,t,n){const s=e.slice();return s[16]=t[n],s}function Fs(e,t,n){const s=e.slice();return s[19]=t[n],s[21]=n,s}function Gs(e,t,n){const s=e.slice();return s[19]=t[n],s[21]=n,s}function Ks(e){let t,n=m("network.device.name.unknown")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Ys(e){let t,n=e[0].nameModel+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p(e,s){1&s&&n!==(n=e[0].nameModel+"")&&ee(t,n)},d(e){e&&V(t)}}}function Js(e){let t,n,s,i,o,l=m("network.shadow.lastscan")+"";return{c(){t=G(l),n=K(),s=B("button"),s.textContent=`${m("network.shadow.forget")}`,Z(s,"class","a")},m(l,c){W(l,t,c),W(l,n,c),W(l,s,c),i||(o=J(s,"click",e[5]),i=!0)},p:$,d(e){e&&V(t),e&&V(n),e&&V(s),i=!1,o()}}}function Xs(e){let t,n,s;return{c(){t=B("kin-icon"),n=K(),s=B("span"),s.textContent=`${m("network.device.vulnerable")}`,Q(t,"name","icon-s-fill-unsecured"),Q(t,"size","16"),Z(s,"class","-text g-margin-left--5")},m(e,i){W(e,t,i),W(e,n,i),W(e,s,i)},p:$,d(e){e&&V(t),e&&V(n),e&&V(s)}}}function Zs(e){let t,n,s,i,o,l,c;function r(e,t){return e[0].nameModel?Ys:Ks}let a=r(e),u=a(e);function d(e,t){return e[0].isVulnerable?Xs:e[0].data.is_shadow?Js:void 0}let p=d(e),m=p&&p(e);return{c(){t=B("div"),n=B("h2"),s=B("kin-icon"),o=K(),u.c(),l=K(),c=B("p"),m&&m.c(),Q(s,"name",i=e[0].icon),Q(s,"size","36"),Q(s,"class","g-margin-right--10"),Z(n,"class","h2"),Z(c,"class","p -small g-margin-top--5"),Z(t,"slot","page-title"),Z(t,"data-test","hns_device-name")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(n,o),u.m(n,null),U(t,l),U(t,c),m&&m.m(c,null)},p(e,t){1&t&&i!==(i=e[0].icon)&&Q(s,"name",i),a===(a=r(e))&&u?u.p(e,t):(u.d(1),u=a(e),u&&(u.c(),u.m(n,null))),p===(p=d(e))&&m?m.p(e,t):(m&&m.d(1),m=p&&p(e),m&&(m.c(),m.m(c,null)))},d(e){e&&V(t),u.d(),m&&m.d()}}}function Qs(e){let t,n,s=e[0].issues,i=[];for(let l=0;l<s.length;l+=1)i[l]=ti(Gs(e,s,l));let o=e[0].skippedIssuesCount&&ni(e);return{c(){t=B("div");for(let e=0;e<i.length;e+=1)i[e].c();n=K(),o&&o.c(),Z(t,"class","g-margin-top--20 g-margin-bottom--20")},m(e,s){W(e,t,s);for(let n=0;n<i.length;n+=1)i[n].m(t,null);U(t,n),o&&o.m(t,null)},p(e,l){if(259&l){let o;for(s=e[0].issues,o=0;o<s.length;o+=1){const c=Gs(e,s,o);i[o]?i[o].p(c,l):(i[o]=ti(c),i[o].c(),i[o].m(t,n))}for(;o<i.length;o+=1)i[o].d(1);i.length=s.length}e[0].skippedIssuesCount?o?o.p(e,l):(o=ni(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&V(t),j(i,e),o&&o.d()}}}function ei(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w=e[19].getTitle(e[1])+"";function $(){return e[10](e[21])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),l=B("kin-icon"),c=K(),r=B("div"),a=B("strong"),u=G(w),d=B("br"),p=K(),h=B("span"),h.textContent=`${m("network.issue.resolve.soon")}`,v=K(),g=B("div"),f=B("kin-button"),f.textContent=`${m("network.issue.howtofix")}`,Q(s,"name",i=e[19].icon),Q(s,"size","24"),Q(s,"class","hns_remedy__icon svelte-1s774rs"),Q(l,"name","icon-s-fill-unsecured"),Q(l,"size","16"),Q(l,"class","row__icon__status"),Z(n,"class","row__icon"),Z(a,"class","-text color-white"),Z(r,"class","row__main"),Q(f,"size","small"),Q(f,"data-test","hns_seehowtofix-btn"),Z(g,"class","row__actions"),Z(t,"class","row -hoverable -borderless hns_remedy svelte-1s774rs"),Z(t,"data-test","hns_vuln-row")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(n,o),U(n,l),U(t,c),U(t,r),U(r,a),U(a,u),U(r,d),U(r,p),U(r,h),U(t,v),U(t,g),U(g,f),_||(k=J(t,"click",$),_=!0)},p(t,n){e=t,1&n&&i!==(i=e[19].icon)&&Q(s,"name",i),3&n&&w!==(w=e[19].getTitle(e[1])+"")&&ee(u,w)},d(e){e&&V(t),_=!1,k()}}}function ti(e){let t,n=!e[0].issues[e[21]].state&&ei(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){e[0].issues[e[21]].state?n&&(n.d(1),n=null):n?n.p(e,s):(n=ei(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&V(t)}}}function ni(e){let t,n,s,i,o=m("network.ignored.problems",e[0].skippedIssuesCount)+"",l=e[0].issues,c=[];for(let r=0;r<l.length;r+=1)c[r]=ii(Fs(e,l,r));return{c(){t=B("h5"),n=G(o),s=K();for(let e=0;e<c.length;e+=1)c[e].c();i=Y(),Z(t,"class","h6 kin_table__row -title")},m(e,o){W(e,t,o),U(t,n),W(e,s,o);for(let t=0;t<c.length;t+=1)c[t].m(e,o);W(e,i,o)},p(e,t){if(1&t&&o!==(o=m("network.ignored.problems",e[0].skippedIssuesCount)+"")&&ee(n,o),259&t){let n;for(l=e[0].issues,n=0;n<l.length;n+=1){const s=Fs(e,l,n);c[n]?c[n].p(s,t):(c[n]=ii(s),c[n].c(),c[n].m(i.parentNode,i))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}},d(e){e&&V(t),e&&V(s),j(c,e),e&&V(i)}}}function si(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$=e[19].getTitle(e[1])+"";function b(){return e[11](e[21])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),l=B("kin-icon"),c=K(),r=B("div"),a=B("strong"),u=G($),d=B("br"),p=K(),h=B("span"),h.textContent=`${m("network.issue.resolve.soon")}`,v=K(),g=B("div"),f=B("kin-button"),f.textContent=`${m("network.issue.howtofix")}`,_=K(),Q(s,"name",i=e[19].icon),Q(s,"size","24"),Q(s,"class","hns_remedy__icon svelte-1s774rs"),Q(l,"name","icon-s-fill-unsecured"),Q(l,"size","16"),Q(l,"class","row__icon__status"),Z(n,"class","row__icon"),Z(a,"class","-text color-white"),Z(r,"class","row__main"),Q(f,"size","small"),Z(g,"class","row__actions"),Z(t,"class","row -hoverable -borderless hns_remedy svelte-1s774rs")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(n,o),U(n,l),U(t,c),U(t,r),U(r,a),U(a,u),U(r,d),U(r,p),U(r,h),U(t,v),U(t,g),U(g,f),U(t,_),k||(w=J(t,"click",b),k=!0)},p(t,n){e=t,1&n&&i!==(i=e[19].icon)&&Q(s,"name",i),3&n&&$!==($=e[19].getTitle(e[1])+"")&&ee(u,$)},d(e){e&&V(t),k=!1,w()}}}function ii(e){let t,n="skipped"===e[0].issues[e[21]].state&&si(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){"skipped"===e[0].issues[e[21]].state?n?n.p(e,s):(n=si(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&V(t)}}}function oi(e){let t,n,s,i;return{c(){t=B("kin-button"),n=B("kin-icon"),Q(n,"name","icon-m-action-pen"),Q(n,"size","18"),Q(t,"title",m("global.edit")),Q(t,"icononly",""),Q(t,"type","blank"),Q(t,"size","small")},m(o,l){W(o,t,l),U(t,n),s||(i=J(t,"click",e[9]),s=!0)},p:$,d(e){e&&V(t),s=!1,i()}}}function li(e){let t;return{c(){t=G("-")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function ci(e){let t,n=wt.mac(e[0].mac)+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p(e,s){1&s&&n!==(n=wt.mac(e[0].mac)+"")&&ee(t,n)},d(e){e&&V(t)}}}function ri(e){let t,n,s,i,o,l=e[0].os+"";return{c(){t=B("div"),n=B("div"),n.textContent=`${m("network.scan.props.os")}`,s=K(),i=B("div"),o=G(l),Z(t,"class","row -details -compact")},m(e,l){W(e,t,l),U(t,n),U(t,s),U(t,i),U(i,o)},p(e,t){1&t&&l!==(l=e[0].os+"")&&ee(o,l)},d(e){e&&V(t)}}}function ai(e){let t,n,s,i,o,l=e[0].vendor+"";return{c(){t=B("div"),n=B("div"),n.textContent=`${m("network.scan.props.vendor")}`,s=K(),i=B("div"),o=G(l),Z(t,"class","row -details -compact")},m(e,l){W(e,t,l),U(t,n),U(t,s),U(t,i),U(i,o)},p(e,t){1&t&&l!==(l=e[0].vendor+"")&&ee(o,l)},d(e){e&&V(t)}}}function ui(e){let t,n,s,i,o,l=e[0].model+"";return{c(){t=B("div"),n=B("div"),n.textContent=`${m("network.scan.props.model")}`,s=K(),i=B("div"),o=G(l),Z(t,"class","row -details -compact")},m(e,l){W(e,t,l),U(t,n),U(t,s),U(t,i),U(i,o)},p(e,t){1&t&&l!==(l=e[0].model+"")&&ee(o,l)},d(e){e&&V(t)}}}function di(e){let t,n,s,i,o,l=e[0].data.kv.DNS_NAME+"";return{c(){t=B("div"),n=B("div"),n.textContent=`${m("network.scan.props.dnsname")}`,s=K(),i=B("div"),o=G(l),Z(t,"class","row -details -compact")},m(e,l){W(e,t,l),U(t,n),U(t,s),U(t,i),U(i,o)},p(e,t){1&t&&l!==(l=e[0].data.kv.DNS_NAME+"")&&ee(o,l)},d(e){e&&V(t)}}}function pi(e){let t,n,s,i,o=e[0].interfaces,l=[];for(let c=0;c<o.length;c+=1)l[c]=vi(Bs(e,o,c));return{c(){t=B("section"),n=B("div"),s=B("h5"),s.textContent=`${m("network.scan.props.interfaces")}`,i=K();for(let e=0;e<l.length;e+=1)l[e].c();Z(s,"class","h6 row__title"),Z(n,"class","row -details -compact"),Z(t,"class","g-margin-top--40")},m(e,o){W(e,t,o),U(t,n),U(n,s),U(t,i);for(let n=0;n<l.length;n+=1)l[n].m(t,null)},p(e,n){if(1&n){let s;for(o=e[0].interfaces,s=0;s<o.length;s+=1){const i=Bs(e,o,s);l[s]?l[s].p(i,n):(l[s]=vi(i),l[s].c(),l[s].m(t,null))}for(;s<l.length;s+=1)l[s].d(1);l.length=o.length}},d(e){e&&V(t),j(l,e)}}}function mi(e){let t,n,s,i,o,l=e[16].kv.ADAPTER_NAME+"";return{c(){t=B("div"),n=B("div"),n.textContent=`${m("network.scan.props.name")}`,s=K(),i=B("div"),o=G(l),Z(t,"class","row -details -compact")},m(e,l){W(e,t,l),U(t,n),U(t,s),U(t,i),U(i,o)},p(e,t){1&t&&l!==(l=e[16].kv.ADAPTER_NAME+"")&&ee(o,l)},d(e){e&&V(t)}}}function hi(e){let t,n,s,i,o,l=e[16].ip+"";return{c(){t=B("div"),n=B("div"),n.textContent=`${m("network.scan.props.ip")}`,s=K(),i=B("div"),o=G(l),Z(t,"class","row -details -compact")},m(e,l){W(e,t,l),U(t,n),U(t,s),U(t,i),U(i,o)},p(e,t){1&t&&l!==(l=e[16].ip+"")&&ee(o,l)},d(e){e&&V(t)}}}function vi(e){let t,n,s,i,o,l,c,r,a=wt.mac(e[16].mac)+"",u=e[16].kv&&e[16].kv.ADAPTER_NAME&&mi(e),d=e[16].ip&&hi(e);return{c(){u&&u.c(),t=K(),d&&d.c(),n=K(),s=B("div"),i=B("div"),i.textContent=`${m("network.scan.props.mac")}`,o=K(),l=B("div"),c=G(a),r=K(),Z(s,"class","row -details -compact")},m(e,a){u&&u.m(e,a),W(e,t,a),d&&d.m(e,a),W(e,n,a),W(e,s,a),U(s,i),U(s,o),U(s,l),U(l,c),U(s,r)},p(e,s){e[16].kv&&e[16].kv.ADAPTER_NAME?u?u.p(e,s):(u=mi(e),u.c(),u.m(t.parentNode,t)):u&&(u.d(1),u=null),e[16].ip?d?d.p(e,s):(d=hi(e),d.c(),d.m(n.parentNode,n)):d&&(d.d(1),d=null),1&s&&a!==(a=wt.mac(e[16].mac)+"")&&ee(c,a)},d(e){u&&u.d(e),e&&V(t),d&&d.d(e),e&&V(n),e&&V(s)}}}function gi(e){let t,n,s,i,o,l,c,r,a,u,d,p=e[0].services,h=[];for(let m=0;m<p.length;m+=1)h[m]=fi(js(e,p,m));return{c(){t=B("section"),n=B("div"),s=B("h5"),s.textContent=`${m("network.scan.props.services")}`,i=K(),o=B("div"),l=B("div"),l.textContent=`${m("network.serviceType")}`,c=K(),r=B("div"),r.textContent=`${m("network.port")}`,a=K(),u=B("div"),u.textContent=`${m("network.scan.props.transportProtocol")}`,d=K();for(let e=0;e<h.length;e+=1)h[e].c();Z(s,"class","h6 row__title"),Z(n,"class","row -details -compact"),Z(l,"class","hns_services__type svelte-1s774rs"),Z(r,"class","hns_services__port svelte-1s774rs"),Z(u,"class","hns_services__protocol svelte-1s774rs"),Z(o,"class","row -details -compact"),Z(t,"class","g-margin-top--40")},m(e,p){W(e,t,p),U(t,n),U(n,s),U(t,i),U(t,o),U(o,l),U(o,c),U(o,r),U(o,a),U(o,u),U(t,d);for(let n=0;n<h.length;n+=1)h[n].m(t,null)},p(e,n){if(1&n){let s;for(p=e[0].services,s=0;s<p.length;s+=1){const i=js(e,p,s);h[s]?h[s].p(i,n):(h[s]=fi(i),h[s].c(),h[s].m(t,null))}for(;s<h.length;s+=1)h[s].d(1);h.length=p.length}},d(e){e&&V(t),j(h,e)}}}function fi(e){let t,n,s,i,o,l,c,r,a,u,d=(e[13].service_type||"-")+"",p=(e[13].port||"-")+"",h=(null!=e[13].transport_protocol?m("network.scan.props.transportProtocol."+e[13].transport_protocol):"")+"";return{c(){t=B("div"),n=B("div"),s=G(d),i=K(),o=B("div"),l=G(p),c=K(),r=B("div"),a=G(h),u=K(),Z(n,"class","hns_services__type svelte-1s774rs"),Z(o,"class","hns_services__port svelte-1s774rs"),Z(r,"class","hns_services__protocol svelte-1s774rs"),Z(t,"class","row -details -compact")},m(e,d){W(e,t,d),U(t,n),U(n,s),U(t,i),U(t,o),U(o,l),U(t,c),U(t,r),U(r,a),U(t,u)},p(e,t){1&t&&d!==(d=(e[13].service_type||"-")+"")&&ee(s,d),1&t&&p!==(p=(e[13].port||"-")+"")&&ee(l,p),1&t&&h!==(h=(null!=e[13].transport_protocol?m("network.scan.props.transportProtocol."+e[13].transport_protocol):"")+"")&&ee(a,h)},d(e){e&&V(t)}}}function _i(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$,b,y,I,C,N,E,x,S,T,O,A,D,H,L,M,R,z,P,q,j,F,Y,J=m("network.device.types."+e[0].type)+"",X=(e[0].name||m("network.device.name.unknown"))+"",te=e[0].ip+"",ne=e[0].issues&&Qs(e),se=!e[0].data.is_shadow&&!e[2]&&oi(e);function ie(e,t){return e[0].mac?ci:li}let oe=ie(e),le=oe(e),ce=e[0].os&&ri(e),re=e[0].vendor&&ai(e),ae=e[0].model&&ui(e),ue=e[0].data.kv.DNS_NAME&&di(e),de=e[0].interfaces.length&&pi(e),pe=e[0].services&&e[0].services.length&&gi(e);return{c(){t=B("div"),ne&&ne.c(),n=K(),s=B("section"),i=B("div"),o=B("h5"),o.textContent=`${m("global.details")}`,l=K(),se&&se.c(),c=K(),r=B("div"),a=B("div"),a.textContent=`${m("network.device.type")}`,u=K(),d=B("div"),p=B("kin-icon"),v=K(),g=G(J),f=K(),_=B("div"),k=B("div"),k.textContent=`${m("network.device.name")}`,w=K(),$=B("div"),b=G(X),y=K(),I=B("section"),C=B("div"),N=B("h5"),N.textContent=`${m("network.technicalInfo")}`,E=K(),x=B("div"),S=B("div"),S.textContent=`${m("network.scan.props.ip")}`,T=K(),O=B("div"),A=G(te),D=K(),H=B("div"),L=B("div"),L.textContent=`${m("network.scan.props.mac")}`,M=K(),R=B("div"),le.c(),z=K(),ce&&ce.c(),P=K(),re&&re.c(),q=K(),ae&&ae.c(),j=K(),ue&&ue.c(),F=K(),de&&de.c(),Y=K(),pe&&pe.c(),Z(o,"class","h6 row__title"),Z(i,"class","row -details -compact"),Q(p,"name",h=e[0].icon),Q(p,"size","24"),Z(r,"class","row -details -compact"),Z(_,"class","row -details -compact"),Z(s,"class","g-margin-top--30"),Z(N,"class","h6 row__title"),Z(C,"class","row -details -compact"),Z(x,"class","row -details -compact"),Z(H,"class","row -details -compact"),Z(I,"class","g-margin-top--40"),Z(t,"slot","view-content")},m(e,m){W(e,t,m),ne&&ne.m(t,null),U(t,n),U(t,s),U(s,i),U(i,o),U(i,l),se&&se.m(i,null),U(s,c),U(s,r),U(r,a),U(r,u),U(r,d),U(d,p),U(d,v),U(d,g),U(s,f),U(s,_),U(_,k),U(_,w),U(_,$),U($,b),U(t,y),U(t,I),U(I,C),U(C,N),U(I,E),U(I,x),U(x,S),U(x,T),U(x,O),U(O,A),U(I,D),U(I,H),U(H,L),U(H,M),U(H,R),le.m(R,null),U(I,z),ce&&ce.m(I,null),U(I,P),re&&re.m(I,null),U(I,q),ae&&ae.m(I,null),U(I,j),ue&&ue.m(I,null),U(t,F),de&&de.m(t,null),U(t,Y),pe&&pe.m(t,null)},p(e,s){e[0].issues?ne?ne.p(e,s):(ne=Qs(e),ne.c(),ne.m(t,n)):ne&&(ne.d(1),ne=null),e[0].data.is_shadow||e[2]?se&&(se.d(1),se=null):se?se.p(e,s):(se=oi(e),se.c(),se.m(i,null)),1&s&&h!==(h=e[0].icon)&&Q(p,"name",h),1&s&&J!==(J=m("network.device.types."+e[0].type)+"")&&ee(g,J),1&s&&X!==(X=(e[0].name||m("network.device.name.unknown"))+"")&&ee(b,X),1&s&&te!==(te=e[0].ip+"")&&ee(A,te),oe===(oe=ie(e))&&le?le.p(e,s):(le.d(1),le=oe(e),le&&(le.c(),le.m(R,null))),e[0].os?ce?ce.p(e,s):(ce=ri(e),ce.c(),ce.m(I,P)):ce&&(ce.d(1),ce=null),e[0].vendor?re?re.p(e,s):(re=ai(e),re.c(),re.m(I,q)):re&&(re.d(1),re=null),e[0].model?ae?ae.p(e,s):(ae=ui(e),ae.c(),ae.m(I,j)):ae&&(ae.d(1),ae=null),e[0].data.kv.DNS_NAME?ue?ue.p(e,s):(ue=di(e),ue.c(),ue.m(I,null)):ue&&(ue.d(1),ue=null),e[0].interfaces.length?de?de.p(e,s):(de=pi(e),de.c(),de.m(t,Y)):de&&(de.d(1),de=null),e[0].services&&e[0].services.length?pe?pe.p(e,s):(pe=gi(e),pe.c(),pe.m(t,null)):pe&&(pe.d(1),pe=null)},d(e){e&&V(t),ne&&ne.d(),se&&se.d(),le.d(),ce&&ce.d(),re&&re.d(),ae&&ae.d(),ue&&ue.d(),de&&de.d(),pe&&pe.d()}}}function ki(e){let t,n,s;return n=new zn({props:{csscls:"-detail",$$slots:{"view-content":[_i]},$$scope:{ctx:e}}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"slot","page-content")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};8388615&t&&(s.$$scope={dirty:t,ctx:e}),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function wi(e){let t,n;return t=new Jt({props:{closable:!0,$$slots:{"modal-footer":[bi],"modal-content":[$i]},$$scope:{ctx:e}}}),t.$on("close",e[6]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};8388624&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function $i(e){let t,n,s,i,o,l,c,r,a,u=m("network.shadow.forget.desc")+"",d=e[4].networkInfo.name+"";return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("p"),i.textContent=`${m("network.shadow.forget")}?`,o=K(),l=B("p"),c=G(u),r=K(),a=G(d),Q(n,"name","circle-attention"),Q(n,"size","80"),Q(n,"class","g-margin-bottom--20"),Z(i,"class","sve_modal__title"),Z(l,"class","g-margin-bottom--50"),Z(t,"slot","modal-content")},m(e,u){W(e,t,u),U(t,n),U(t,s),U(t,i),U(t,o),U(t,l),U(l,c),U(l,r),U(l,a)},p(e,t){16&t&&d!==(d=e[4].networkInfo.name+"")&&ee(a,d)},d(e){e&&V(t)}}}function bi(e){let t,n,s,i,o,l;return{c(){t=B("div"),n=B("kin-button"),n.textContent=`${m("network.forget")}`,s=K(),i=B("kin-button"),i.textContent=`${m("network.cancel")}`,Q(i,"type","secondary"),Q(i,"class","g-margin-left--20"),Z(t,"slot","modal-footer")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=[J(n,"click",e[7]),J(i,"click",e[6])],o=!0)},p:$,d(e){e&&V(t),o=!1,C(l)}}}function yi(e){let t,n,s,i;t=new Cn({props:{layout:"center-header",back:!1,cssCls:"hns_detail",$$slots:{"page-content":[ki],"page-title":[Zs]},$$scope:{ctx:e}}});let o=e[3]&&wi(e);return{c(){Re(t.$$.fragment),n=K(),o&&o.c(),s=Y()},m(e,l){ze(t,e,l),W(e,n,l),o&&o.m(e,l),W(e,s,l),i=!0},p(e,[n]){const i={};8388615&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[3]?o?(o.p(e,n),8&n&&De(o,1)):(o=wi(e),o.c(),De(o,1),o.m(s.parentNode,s)):o&&(Oe(),He(o,1,1,(()=>{o=null})),Ae())},i(e){i||(De(t.$$.fragment,e),De(o),i=!0)},o(e){He(t.$$.fragment,e),He(o),i=!1},d(e){Pe(t,e),e&&V(n),o&&o.d(e),e&&V(s)}}}function Ii(e,t,n){let s;function o(e){a("showIssue",{deviceId:l.data.device_id,pos:e})}T(e,et,(e=>n(4,s=e)));let{device:l}=t,{scanType:c}=t,{disabled:r=!1}=t;const a=he();let u;return e.$$set=e=>{"device"in e&&n(0,l=e.device),"scanType"in e&&n(1,c=e.scanType),"disabled"in e&&n(2,r=e.disabled)},[l,c,r,u,s,function(){i.event("HNS","Click","ForgetDeviceShow"),n(3,u=!0)},function(){i.event("HNS","Click","ForgetDeviceClose"),n(3,u=!1)},function(){i.event("HNS","Click","ForgetDeviceConfirm"),a("forgetDevice"),n(3,u=!1)},o,function(){a("editDevice")},e=>o(e),e=>o(e)]}class Ci extends We{constructor(e){var t;super(),document.getElementById("svelte-1s774rs-style")||((t=B("style")).id="svelte-1s774rs-style",t.textContent=".sve_overlay.-page .hns_detail{--header-height:9rem}.hns_remedy.svelte-1s774rs{padding:1.5rem 2.4rem;margin:0.5rem 0 1rem}.hns_remedy__icon.svelte-1s774rs{border-radius:5rem;border:solid var(--icon-stroke-small) currentColor;padding:1rem;margin:0 1rem 0 0}.hns_services__type.svelte-1s774rs{width:50%}.hns_services__protocol.svelte-1s774rs,.hns_services__port.svelte-1s774rs{width:25%;text-align:end}",U(document.head,t)),Ue(this,e,Ii,yi,E,{device:0,scanType:1,disabled:2})}}function Ni(e){let t,n;return t=new Jt({props:{title:m("network.scan.choose"),closable:!0,$$slots:{"modal-content":[xi],"modal-header":[Ei]},$$scope:{ctx:e}}}),t.$on("close",e[6]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};131&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Ei(e){let t,n,s,i,o,l,c,r=m("network.connected.to")+"",a=e[1].networkInfo.name+"";return{c(){t=B("div"),n=B("p"),s=G(r),i=K(),o=B("strong"),l=G(a),c=G("."),Z(n,"class","sve_modal__subtitle"),Z(t,"slot","modal-header"),Z(t,"data-test","scan_type-mdl-hdrttl")},m(e,r){W(e,t,r),U(t,n),U(n,s),U(n,i),U(n,o),U(o,l),U(n,c)},p(e,t){2&t&&a!==(a=e[1].networkInfo.name+"")&&ee(l,a)},d(e){e&&V(t)}}}function xi(e){let t,n,s,i,o,l;return{c(){t=B("div"),n=B("kin-tile"),s=K(),i=B("kin-tile"),Q(n,"data-test","hns_scan-home"),Q(n,"label",m("network.home.title")),Q(n,"size","large"),Q(n,"icon","icon-l-scan-home"),Q(n,"class","g-margin--20"),Q(n,"kin-disabled",e[0]),Q(i,"data-test","hns_scan-public"),Q(i,"label",m("network.public.title")),Q(i,"size","large"),Q(i,"icon","icon-l-scan-public"),Q(i,"class","g-margin--20"),Q(i,"kin-disabled",e[0]),Z(t,"slot","modal-content")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=[J(n,"click",e[4]),J(i,"click",e[5])],o=!0)},p(e,t){1&t&&Q(n,"kin-disabled",e[0]),1&t&&Q(i,"kin-disabled",e[0])},d(e){e&&V(t),o=!1,C(l)}}}function Si(e){let t,n,s=e[1]&&Ni(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,[n]){e[1]?s?(s.p(e,n),2&n&&De(s,1)):(s=Ni(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function Ti(e,t,n){let s;T(e,et,(e=>n(1,s=e)));let{disabled:o}=t;const l=he();function c(e){i.event("HNS","Click","StartScan_"+e),l("startScan",e)}return e.$$set=e=>{"disabled"in e&&n(0,o=e.disabled)},[o,s,l,c,()=>c("home"),()=>c("public"),()=>l("close")]}class Oi extends We{constructor(e){super(),Ue(this,e,Ti,Si,E,{disabled:0})}}function Ai(e,t,n){const s=e.slice();return s[17]=t[n],s}function Di(e,t,n){const s=e.slice();return s[20]=t[n],s}function Hi(e){let t,n;return t=new Jt({props:{closable:!0,cssCls:"-full -headless -footless",$$slots:{"modal-content":[zi]},$$scope:{ctx:e}}}),t.$on("close",e[6]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};8388619&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Li(e){let t,n,s,i,o,l,c,r,a,u=e[20].name+"";function d(){return e[10](e[20])}return{c(){t=B("button"),n=B("kin-icon"),i=K(),o=B("p"),l=G(u),c=K(),Q(n,"name",s=ut[e[20].id].icon),Q(n,"size","32"),Q(n,"class","svelte-v476ur"),Z(o,"class","p -secondary -small"),Z(t,"class","hns_edit__type hns_tile svelte-v476ur"),ne(t,"-active",e[1].type===e[20].id),ne(t,"-hidden",e[20].hidden)},m(e,s){W(e,t,s),U(t,n),U(t,i),U(t,o),U(o,l),U(t,c),r||(a=J(t,"click",d),r=!0)},p(i,o){e=i,2&o&&s!==(s=ut[e[20].id].icon)&&Q(n,"name",s),2&o&&u!==(u=e[20].name+"")&&ee(l,u),2&o&&ne(t,"-active",e[1].type===e[20].id),2&o&&ne(t,"-hidden",e[20].hidden)},d(e){e&&V(t),r=!1,a()}}}function Mi(e){let t,n=(!e[20].protocol||e[20].protocol===e[0].protocol)&&Li(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){e[20].protocol&&e[20].protocol!==e[0].protocol?n&&(n.d(1),n=null):n?n.p(e,s):(n=Li(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&V(t)}}}function Ri(e){let t,n,s,i,o,l,c=e[17].name+"",r=e[17].cats,a=[];for(let u=0;u<r.length;u+=1)a[u]=Mi(Di(e,r,u));return{c(){t=B("div"),n=B("h5"),s=G(c),i=K(),o=B("div");for(let e=0;e<a.length;e+=1)a[e].c();l=K(),Z(n,"class","h6"),Z(o,"class","hns_edit__section svelte-v476ur"),Z(t,"class","svelte-v476ur"),ne(t,"-hidden",e[17].hidden)},m(e,c){W(e,t,c),U(t,n),U(n,s),U(t,i),U(t,o);for(let t=0;t<a.length;t+=1)a[t].m(o,null);U(t,l)},p(e,n){if(2&n&&c!==(c=e[17].name+"")&&ee(s,c),3&n){let t;for(r=e[17].cats,t=0;t<r.length;t+=1){const s=Di(e,r,t);a[t]?a[t].p(s,n):(a[t]=Mi(s),a[t].c(),a[t].m(o,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=r.length}2&n&&ne(t,"-hidden",e[17].hidden)},d(e){e&&V(t),j(a,e)}}}function zi(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$,b=e[1].groups,y=[];for(let m=0;m<b.length;m+=1)y[m]=Ri(Ai(e,b,m));return{c(){t=B("div"),n=B("div"),s=B("h2"),s.textContent=`${m("network.device.edit")}`,i=K(),o=B("kin-input"),c=K(),r=B("kin-input"),u=K(),d=B("div"),p=B("kin-button"),p.textContent=`${m("network.device.save")}`,h=K(),v=B("div"),g=B("div"),f=B("kin-input"),k=K();for(let e=0;e<y.length;e+=1)y[e].c();Z(s,"class","h2 g-margin-bottom--30"),Q(o,"label",m("network.editDeviceName")),Q(o,"class","g-margin-bottom--20"),Q(o,"value",l=e[1].name),Q(r,"label",m("network.scan.props.model")),Q(r,"value",a=e[1].model),Q(p,"type","secondary"),Q(p,"class","g-margin-top--30"),Z(n,"class","hns_edit__form svelte-v476ur"),Q(f,"label",m("network.search.type.label")),Q(f,"class","g-margin-bottom--30"),Q(f,"value",_=e[1].filter),Q(f,"type","search"),Z(g,"class","hns_edit__filter svelte-v476ur"),Z(v,"class","hns_edit__types svelte-v476ur"),Z(t,"slot","modal-content"),Z(t,"class","hns_edit svelte-v476ur")},m(l,a){W(l,t,a),U(t,n),U(n,s),U(n,i),U(n,o),U(n,c),U(n,r),U(n,u),U(n,d),U(d,p),U(t,h),U(t,v),U(v,g),U(g,f),U(v,k);for(let e=0;e<y.length;e+=1)y[e].m(v,null);e[11](v),w||($=[J(o,"input",e[8]),J(r,"input",e[9]),J(p,"click",e[5]),J(f,"input",e[4])],w=!0)},p(e,t){if(2&t&&l!==(l=e[1].name)&&Q(o,"value",l),2&t&&a!==(a=e[1].model)&&Q(r,"value",a),2&t&&_!==(_=e[1].filter)&&Q(f,"value",_),3&t){let n;for(b=e[1].groups,n=0;n<b.length;n+=1){const s=Ai(e,b,n);y[n]?y[n].p(s,t):(y[n]=Ri(s),y[n].c(),y[n].m(v,null))}for(;n<y.length;n+=1)y[n].d(1);y.length=b.length}},d(n){n&&V(t),j(y,n),e[11](null),w=!1,C($)}}}function Pi(e){let t,n,s=e[2]&&Hi(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,[n]){e[2]?s?(s.p(e,n),4&n&&De(s,1)):(s=Hi(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function qi(e,t,n){function s(e){if(d&&clearTimeout(d),e){const e=a.filter.toUpperCase();n(1,a.groups=a.groups.map((t=>{let n=!1;return t.cats.forEach((t=>{t.hidden=-1===t.value.indexOf(e),t.hidden||(n=!0)})),t.hidden=!n,t})),a)}else d=setTimeout((function(){s(!0)}),500)}function o(){n(2,u=!1)}let{device:l}=t,{scan:c}=t;const r=he(),a={};let u,d,h;return e.$$set=e=>{"device"in e&&n(7,l=e.device),"scan"in e&&n(0,c=e.scan)},e.$$.update=()=>{128&e.$$.dirty&&l&&function(){if(i.event("HNS","Click","DeviceDetailEdit"),c.protocol){if(n(1,a.filter="",a),n(1,a.name=l.nameModel,a),n(1,a.type=l.type,a),n(1,a.model=l.model,a),a.groups)s(!0);else{const e={};for(const[t,n]of Object.entries(ut)){const s=m("network.device.types."+t),i={id:t,name:s,value:s.toUpperCase(),protocol:n.protocol};e[n.group]=e[n.group]||[],e[n.group].push(i)}n(1,a.groups=Object.entries(e).map((function(e){return{name:m("network.device.gtypes."+e[0]),cats:e[1].sort(((e,t)=>e.name.localeCompare(t.name,p.locale)))}})),a),a.groups.sort(((e,t)=>e.name.localeCompare(t.name,p.locale)))}n(2,u=!0),setTimeout((()=>{const e=h.querySelector(".hns_edit__type.-active");e&&e.offsetTop-100>h.clientHeight&&h.scrollTo(0,e.offsetTop-100)}),1)}else o()}()},[c,a,u,h,function(e){n(1,a.filter=e.target.value,a),s()},function(){l.nameModel!==a.name&&i.event("HNS","Click","DeviceName"),l.type!==a.type&&i.event("HNS","Click","DeviceType"),l.model!==a.model&&i.event("HNS","Click","DeviceModel"),n(1,a.name=a.name.trim(),a),n(1,a.model=a.model.trim(),a),""!==a.name&&(Je.updateDevice({type:"device",method:"update",mac:l.mac,name:a.name,device_class:a.type,model:a.model}),r("save",{name:a.name,device_class:a.type,model:a.model}),o())},function(){o()},l,e=>n(1,a.name=e.target.value,a),e=>n(1,a.model=e.target.value,a),e=>n(1,a.type=e.id,a),function(e){ge[e?"unshift":"push"]((()=>{h=e,n(3,h)}))}]}class Ui extends We{constructor(e){var t;super(),document.getElementById("svelte-v476ur-style")||((t=B("style")).id="svelte-v476ur-style",t.textContent=".hns_edit.svelte-v476ur.svelte-v476ur{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.hns_edit__form.svelte-v476ur.svelte-v476ur,.hns_edit__types.svelte-v476ur.svelte-v476ur{position:absolute;top:0;bottom:0;padding:5rem calc(var(--scrollbar-width) + 2rem) 2rem;overflow:auto}.hns_edit__form.svelte-v476ur.svelte-v476ur{right:0;left:50%;display:flex;flex-direction:column;justify-content:center}.hns_edit__types.svelte-v476ur.svelte-v476ur{right:50%;left:0;text-align:start;padding-top:0;border-radius:var(--modal-radius);box-shadow:inset 0 0 0 50rem rgba(255,255,255,0.08)}.hns_edit__types.svelte-v476ur .-hidden.svelte-v476ur{display:none}.hns_edit__filter.svelte-v476ur.svelte-v476ur{position:sticky;top:0;padding-top:3rem;margin:0 -1px;background-color:var(--modal-bg);box-shadow:inset 0 0 0 50rem rgba(255,255,255,0.08);z-index:1}.hns_edit__section.svelte-v476ur.svelte-v476ur{display:flex;flex-wrap:wrap;margin:1rem 0 3rem}.hns_edit__type.svelte-v476ur.svelte-v476ur{width:25%;word-break:normal}.hns_tile.svelte-v476ur.svelte-v476ur{text-align:center;padding:1.2rem 0.4rem 0.4rem;min-height:9.5rem;cursor:pointer;overflow:hidden;border-radius:var(--cube-radius);display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;word-break:break-word}.hns_tile.svelte-v476ur kin-icon.svelte-v476ur{margin-bottom:0.6rem}.hns_tile.svelte-v476ur.svelte-v476ur:hover{background-color:rgba(255,255,255,0.1)}.hns_tile.-active.svelte-v476ur.svelte-v476ur{background-color:rgba(0,0,0,0.3)}",U(document.head,t)),Ue(this,e,qi,Pi,E,{device:7,scan:0})}}function Wi(e,t,n){const s=e.slice();return s[14]=t[n],s[16]=n,s}function Vi(e){let t,n,s,i,o,l,c,r,a,u=(e[3]?e[3]:m("network.property."+e[0]))+"";function d(e,t){return e[7]?Gi:Fi}let p=d(e),h=p(e);return{c(){t=B("tr"),n=B("td"),s=K(),i=B("td"),o=B("span"),l=B("span"),c=G(u),r=K(),a=B("span"),h.c(),Z(n,"class","svelte-h22bqd"),Z(l,"class","g-margin-right--10"),Z(o,"class","hns_property__wrap svelte-h22bqd"),Z(i,"class","svelte-h22bqd"),Z(t,"class","hns_property svelte-h22bqd")},m(e,u){W(e,t,u),U(t,n),U(t,s),U(t,i),U(i,o),U(o,l),U(l,c),U(o,r),U(o,a),h.m(a,null)},p(e,t){9&t&&u!==(u=(e[3]?e[3]:m("network.property."+e[0]))+"")&&ee(c,u),p===(p=d(e))&&h?h.p(e,t):(h.d(1),h=p(e),h&&(h.c(),h.m(a,null)))},d(e){e&&V(t),h.d()}}}function ji(e){let t;function n(e,t){return e[2]?Xi:Ji}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function Bi(e){let t,n,s,i,o,l,c,r,a,u,d=m("network.property."+e[0])+"";function p(e,t){return e[5]?to:eo}let h=p(e),v=h(e);return{c(){t=B("tr"),n=B("td"),s=K(),i=B("td"),o=B("span"),l=G(d),c=K(),r=B("input"),u=K(),v.c(),Z(n,"class","svelte-h22bqd"),Z(o,"class","g-margin-right--10"),Z(r,"class","hns_property__input svelte-h22bqd"),r.readOnly=!0,r.value=e[1],Z(r,"type",a=e[5]?"text":"password"),Z(i,"class","svelte-h22bqd"),Z(t,"class","hns_property svelte-h22bqd")},m(e,a){W(e,t,a),U(t,n),U(t,s),U(t,i),U(i,o),U(o,l),U(i,c),U(i,r),U(i,u),v.m(i,null)},p(e,t){1&t&&d!==(d=m("network.property."+e[0])+"")&&ee(l,d),2&t&&r.value!==e[1]&&(r.value=e[1]),32&t&&a!==(a=e[5]?"text":"password")&&Z(r,"type",a),h===(h=p(e))&&v?v.p(e,t):(v.d(1),v=h(e),v&&(v.c(),v.m(i,null)))},d(e){e&&V(t),v.d()}}}function Fi(e){let t;return{c(){t=G(e[1])},m(e,n){W(e,t,n)},p(e,n){2&n&&ee(t,e[1])},d(e){e&&V(t)}}}function Gi(e){let t,n,s=e[1],i=[];for(let l=0;l<s.length;l+=1)i[l]=Ki(Wi(e,s,l));let o=e[1].length>3&&!e[6]&&Yi(e);return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=K(),o&&o.c(),n=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),o&&o.m(e,s),W(e,n,s)},p(e,l){if(66&l){let n;for(s=e[1],n=0;n<s.length;n+=1){const o=Wi(e,s,n);i[n]?i[n].p(o,l):(i[n]=Ki(o),i[n].c(),i[n].m(t.parentNode,t))}for(;n<i.length;n+=1)i[n].d(1);i.length=s.length}e[1].length>3&&!e[6]?o?o.p(e,l):(o=Yi(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(e){j(i,e),e&&V(t),o&&o.d(e),e&&V(n)}}}function Ki(e){let t,n,s=e[14]+"";return{c(){t=B("span"),n=G(s),Z(t,"class","hns_property__item -item-"+e[16]+" svelte-h22bqd"),ne(t,"-show-all",e[6])},m(e,s){W(e,t,s),U(t,n)},p(e,i){2&i&&s!==(s=e[14]+"")&&ee(n,s),64&i&&ne(t,"-show-all",e[6])},d(e){e&&V(t)}}}function Yi(e){let t,n,s;return{c(){t=B("button"),t.textContent=`${m("network.property.moreItems")}`,Z(t,"class","a")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[12]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Ji(e){let t,n,s,i,o=("DEVICE_UI_LINK"===e[0]?m("network.goToRouter"):e[1])+"";return{c(){t=B("button"),n=G(o),Z(t,"data-test","hns_vuln-resolve"),Z(t,"class","a")},m(o,l){W(o,t,l),U(t,n),s||(i=J(t,"click",e[11]),s=!0)},p(e,t){3&t&&o!==(o=("DEVICE_UI_LINK"===e[0]?m("network.goToRouter"):e[1])+"")&&ee(n,o)},d(e){e&&V(t),s=!1,i()}}}function Xi(e){let t,n,s,i;function o(e,t){return"DEVICE_UI_LINK"===e[0]?Qi:Zi}let l=o(e),c=l(e);return{c(){t=B("kin-button"),n=B("span"),c.c(),Q(t,"data-test","hns_vuln-resolve")},m(o,l){W(o,t,l),U(t,n),c.m(n,null),s||(i=J(t,"click",e[10]),s=!0)},p(e,t){l===(l=o(e))&&c?c.p(e,t):(c.d(1),c=l(e),c&&(c.c(),c.m(n,null)))},d(e){e&&V(t),c.d(),s=!1,i()}}}function Zi(e){let t,n=m("network.resolve")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Qi(e){let t,n=m(e[4]?"network.goToRouter":"network.goToDevice")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p(e,s){16&s&&n!==(n=m(e[4]?"network.goToRouter":"network.goToDevice")+"")&&ee(t,n)},d(e){e&&V(t)}}}function eo(e){let t,n,s;return{c(){t=B("kin-button"),t.innerHTML='<kin-icon name="icon-m-eye" size="16"></kin-icon>',Q(t,"type","blank"),Q(t,"size","small"),Q(t,"icononly","true"),Q(t,"class","hns_property__show svelte-h22bqd"),Q(t,"title","Show")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[9]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function to(e){let t,n,s;return{c(){t=B("kin-button"),t.innerHTML='<kin-icon name="icon-m-eye" size="16"></kin-icon>',Q(t,"type","blank"),Q(t,"size","small"),Q(t,"icononly","true"),Q(t,"class","hns_property__show -hide svelte-h22bqd"),Q(t,"title","Hide")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[9]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function no(e){let t;function n(e,t){return"PASSWORD"===e[0]||"USERNAME"===e[0]?Bi:"LINK"===e[0]||"DEVICE_UI_LINK"===e[0]?ji:Vi}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,[o]){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},i:$,o:$,d(e){i.d(e),e&&V(t)}}}function so(e,t,n){let s,l,{id:c}=t,{value:r}=t,{button:a}=t,{title:u}=t,{special:d}=t,p=!1;function m(e){o.browse(e),h("resolve"),"DEVICE_UI_LINK"===c&&i.event("HNS","Click",d?"GoToRouter":"GoToDevice")}const h=he();return e.$$set=e=>{"id"in e&&n(0,c=e.id),"value"in e&&n(1,r=e.value),"button"in e&&n(2,a=e.button),"title"in e&&n(3,u=e.title),"special"in e&&n(4,d=e.special)},e.$$.update=()=>{2&e.$$.dirty&&n(7,s=Array.isArray(r))},[c,r,a,u,d,p,l,s,m,function(){n(5,p=!p)},()=>m(r),()=>m(r),()=>n(6,l=!0)]}class io extends We{constructor(e){var t;super(),document.getElementById("svelte-h22bqd-style")||((t=B("style")).id="svelte-h22bqd-style",t.textContent=".hns_property.svelte-h22bqd.svelte-h22bqd{margin:0.3rem 0;display:table-row}.hns_property.svelte-h22bqd td.svelte-h22bqd{color:var(--color-text-secondary);vertical-align:middle;padding:0.2rem 0;position:relative}.hns_property__wrap.svelte-h22bqd.svelte-h22bqd{display:flex;justify-content:flex-start}.hns_property__item.svelte-h22bqd.svelte-h22bqd{display:none}.hns_property__item.-item-0.svelte-h22bqd.svelte-h22bqd,.hns_property__item.-item-1.svelte-h22bqd.svelte-h22bqd,.hns_property__item.-item-2.svelte-h22bqd.svelte-h22bqd,.hns_property__item.-item-3.svelte-h22bqd.svelte-h22bqd,.hns_property__item.-item-4.svelte-h22bqd.svelte-h22bqd,.hns_property__item.-show-all.svelte-h22bqd.svelte-h22bqd{display:block}.hns_property__input.svelte-h22bqd.svelte-h22bqd{background-color:transparent;padding:0.5rem 0;border:0;display:inline-block;color:inherit;font-family:var(--font);font-size:var(--font-size);height:1.6rem;width:auto}.hns_property__value.svelte-h22bqd.svelte-h22bqd{padding:0.5rem 1rem;text-align:start}.hns_property__show.svelte-h22bqd.svelte-h22bqd{position:absolute;top:50%;right:-3rem;transform:translateY(-50%)}.hns_property__show.-hide.svelte-h22bqd.svelte-h22bqd::after{content:'/';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;font-size:23px;display:flex;justify-content:center;align-items:baseline}",U(document.head,t)),Ue(this,e,so,no,E,{id:0,value:1,button:2,title:3,special:4})}}function oo(e,t,n){const s=e.slice();return s[21]=t[n],s}function lo(e,t,n){const s=e.slice();return s[21]=t[n],s}function co(e,t,n){const s=e.slice();return s[28]=t[n],s[23]=n,s}function ro(e,t,n){const s=e.slice();return s[21]=t[n],s[23]=n,s}function ao(e,t,n){const s=e.slice();return s[31]=t[n],s[23]=n,s}function uo(e,t,n){const s=e.slice();return s[21]=t[n],s[23]=n,s}function po(e){let t,n,s=e[0]&&e[4]&&mo(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,n){e[0]&&e[4]?s?(s.p(e,n),17&n[0]&&De(s,1)):(s=mo(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function mo(e){let t,n;return t=new Jt({props:{closable:!0,cssCls:"-full -ipm",ipm:e[1].ipm,title:e[4],$$slots:{"modal-ipm":[Uo],"modal-footer":[Po],"modal-content":[Ao],"modal-header":[vo]},$$scope:{ctx:e}}}),t.$on("close",e[14]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};2&n[0]&&(s.ipm=e[1].ipm),16&n[0]&&(s.title=e[4]),235&n[0]|4&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ho(e){let t,n,s;return{c(){t=B("p"),n=B("span"),s=G(e[5]),Z(n,"class","span -secondary"),Z(t,"class","g-margin-top--10")},m(e,i){W(e,t,i),U(t,n),U(n,s)},p(e,t){32&t[0]&&ee(s,e[5])},d(e){e&&V(t)}}}function vo(e){let t,n=(e[5]||e[7])&&ho(e);return{c(){t=B("div"),n&&n.c(),Z(t,"slot","modal-header")},m(e,s){W(e,t,s),n&&n.m(t,null)},p(e,s){e[5]||e[7]?n?n.p(e,s):(n=ho(e),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(e){e&&V(t),n&&n.d()}}}function go(e){let t,n,s,i,o,l=m("network.risk.potentional")+"";return{c(){t=B("button"),n=G(l),Z(t,"role","tab"),Z(t,"aria-selected",s="risk"===e[3]),Z(t,"class","tab"),ne(t,"-active","risk"===e[3])},m(s,l){W(s,t,l),U(t,n),i||(o=J(t,"click",e[16]),i=!0)},p(e,n){8&n[0]&&s!==(s="risk"===e[3])&&Z(t,"aria-selected",s),8&n[0]&&ne(t,"-active","risk"===e[3])},d(e){e&&V(t),i=!1,o()}}}function fo(e){let t,n=e[6],s=[];for(let i=0;i<n.length;i+=1)s[i]=$o(ao(e,n,i));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();t=Y()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);W(e,t,n)},p(e,i){if(321&i[0]){let o;for(n=e[6],o=0;o<n.length;o+=1){const l=ao(e,n,o);s[o]?s[o].p(l,i):(s[o]=$o(l),s[o].c(),s[o].m(t.parentNode,t))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(e){j(s,e),e&&V(t)}}}function _o(e){let t,n,s,i=e[31]+"",o=!e[23]&&e[0].data.catalog_name&&wo(e);return{c(){n=K(),s=B("span"),o&&o.c(),t=new ie(n),Z(s,"class","g-margin-left--5")},m(e,l){t.m(i,e,l),W(e,n,l),W(e,s,l),o&&o.m(s,null)},p(e,n){64&n[0]&&i!==(i=e[31]+"")&&t.p(i),!e[23]&&e[0].data.catalog_name?o?o.p(e,n):(o=wo(e),o.c(),o.m(s,null)):o&&(o.d(1),o=null)},d(e){e&&t.d(),e&&V(n),e&&V(s),o&&o.d()}}}function ko(e){let t,n,s;return{c(){t=B("button"),t.textContent=`${m("network.issue.follow.guide")}`,Z(t,"class","a g-margin-left--5")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[17]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function wo(e){let t,n,s,i,o,l,c=m("network.issue.props.id")+"",r=e[0].data.catalog_name+"";return{c(){t=G(c),n=K(),s=B("button"),i=G(r),Z(s,"class","a")},m(c,r){W(c,t,r),W(c,n,r),W(c,s,r),U(s,i),o||(l=J(s,"click",e[18]),o=!0)},p(e,t){1&t[0]&&r!==(r=e[0].data.catalog_name+"")&&ee(i,r)},d(e){e&&V(t),e&&V(n),e&&V(s),o=!1,l()}}}function $o(e){let t,n,s,i,o,l,c,r,a,u,d,p=m("network.tip")+"",h=e[23]+1+"";function v(e,t){return"FOLLOW_GUIDE"===e[31]?ko:_o}let g=v(e),f=g(e);return{c(){t=B("tr"),n=B("td"),s=B("div"),i=G(p),o=K(),l=B("span"),c=G(h),r=K(),a=B("td"),u=B("p"),f.c(),d=K(),Z(l,"class","hns_tips__number svelte-man0ih"),Z(s,"class","badge -small -tip hns_tips__badge svelte-man0ih"),Z(n,"class","svelte-man0ih"),Z(u,"class","p -secondary -small"),Z(a,"class","svelte-man0ih"),Z(t,"class","hns_tips__row svelte-man0ih")},m(e,p){W(e,t,p),U(t,n),U(n,s),U(s,i),U(s,o),U(s,l),U(l,c),U(t,r),U(t,a),U(a,u),f.m(u,null),U(t,d)},p(e,t){g===(g=v(e))&&f?f.p(e,t):(f.d(1),f=g(e),f&&(f.c(),f.m(u,null)))},d(e){e&&V(t),f.d()}}}function bo(e){let t,n,s=e[0].getCategoryDetails("solutions"),i=[];for(let l=0;l<s.length;l+=1)i[l]=yo(ro(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),n=!0},p(e,n){if(1&n[0]){let l;for(s=e[0].getCategoryDetails("solutions"),l=0;l<s.length;l+=1){const o=ro(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=yo(o),i[l].c(),De(i[l],1),i[l].m(t.parentNode,t))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){j(i,e),e&&V(t)}}}function yo(e){let t,n,s=e[23]&&function(e){let t,n;return t=new io({props:{id:e[21][0],value:e[21][1],special:e[21].issueOnGateway}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),1&n[0]&&(s.special=e[21].issueOnGateway),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,t){e[23]&&s.p(e,t)},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function Io(e){let t,n,s,i,o,l,c,r,a,u,d,p=m("network.tip.risk")+"",h=e[23]+1+"",v=e[28]+"";return{c(){t=B("tr"),n=B("td"),s=B("div"),i=G(p),o=K(),l=B("span"),c=G(h),r=K(),a=B("td"),u=B("p"),d=G(v),Z(l,"class","hns_tips__number svelte-man0ih"),Z(s,"class","badge -small -critical hns_tips__badge svelte-man0ih"),Z(n,"class","svelte-man0ih"),Z(u,"class","p -secondary -small"),Z(a,"class","svelte-man0ih"),Z(t,"class","hns_tips__row svelte-man0ih")},m(e,p){W(e,t,p),U(t,n),U(n,s),U(s,i),U(s,o),U(s,l),U(l,c),U(t,r),U(t,a),U(a,u),U(u,d)},p(e,t){128&t[0]&&v!==(v=e[28]+"")&&ee(d,v)},d(e){e&&V(t)}}}function Co(e){let t,n,s=e[0].getCategoryDetails("risks"),i=[];for(let l=0;l<s.length;l+=1)i[l]=No(lo(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),n=!0},p(e,n){if(1&n[0]){let l;for(s=e[0].getCategoryDetails("risks"),l=0;l<s.length;l+=1){const o=lo(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=No(o),i[l].c(),De(i[l],1),i[l].m(t.parentNode,t))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){j(i,e),e&&V(t)}}}function No(e){let t,n;return t=new io({props:{id:e[21][0],value:e[21][1]}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Eo(e){let t,n,s,i,o=e[0].data.serviceType&&xo(e),l=e[0].data.port&&So(e),c=e[0].data.description_details&&To(e);return{c(){o&&o.c(),t=K(),l&&l.c(),n=K(),c&&c.c(),s=Y()},m(e,r){o&&o.m(e,r),W(e,t,r),l&&l.m(e,r),W(e,n,r),c&&c.m(e,r),W(e,s,r),i=!0},p(e,i){e[0].data.serviceType?o?(o.p(e,i),1&i[0]&&De(o,1)):(o=xo(e),o.c(),De(o,1),o.m(t.parentNode,t)):o&&(Oe(),He(o,1,1,(()=>{o=null})),Ae()),e[0].data.port?l?(l.p(e,i),1&i[0]&&De(l,1)):(l=So(e),l.c(),De(l,1),l.m(n.parentNode,n)):l&&(Oe(),He(l,1,1,(()=>{l=null})),Ae()),e[0].data.description_details?c?(c.p(e,i),1&i[0]&&De(c,1)):(c=To(e),c.c(),De(c,1),c.m(s.parentNode,s)):c&&(Oe(),He(c,1,1,(()=>{c=null})),Ae())},i(e){i||(De(o),De(l),De(c),i=!0)},o(e){He(o),He(l),He(c),i=!1},d(e){o&&o.d(e),e&&V(t),l&&l.d(e),e&&V(n),c&&c.d(e),e&&V(s)}}}function xo(e){let t,n;return t=new io({props:{title:m("network.property.serviceType"),value:e[0].data.serviceType}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.value=e[0].data.serviceType),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function So(e){let t,n;return t=new io({props:{title:m("network.property.port"),value:e[0].data.port}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.value=e[0].data.port),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function To(e){let t,n,s=e[0].getCategoryDetails("description"),i=[];for(let l=0;l<s.length;l+=1)i[l]=Oo(oo(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),n=!0},p(e,n){if(1&n[0]){let l;for(s=e[0].getCategoryDetails("description"),l=0;l<s.length;l+=1){const o=oo(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=Oo(o),i[l].c(),De(i[l],1),i[l].m(t.parentNode,t))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){j(i,e),e&&V(t)}}}function Oo(e){let t,n;return t=new io({props:{id:e[21][0],value:e[21][1]}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Ao(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$,b,y,I,C,N,E,x,S,T=m("network.risk.tips")+"",O=e[7]&&go(e),A=e[6]&&fo(e),D=e[0].data.solutions_details&&e[0].data.solutions_details.length>1&&bo(e),H=e[7],L=[];for(let m=0;m<H.length;m+=1)L[m]=Io(co(e,H,m));let M=e[0].data.risks_details&&Co(e),R=(e[0].data.serviceType||e[0].data.port||e[0].data.description_details)&&Eo(e);return{c(){t=B("div"),n=B("div"),s=B("div"),i=B("button"),o=G(T),c=K(),O&&O.c(),r=K(),a=B("div"),u=B("div"),d=B("table"),p=B("tbody"),A&&A.c(),h=K(),v=B("tr"),g=K(),D&&D.c(),_=K(),k=B("div"),w=B("table"),$=B("tbody");for(let e=0;e<L.length;e+=1)L[e].c();b=K(),y=B("tr"),I=K(),M&&M.c(),C=K(),R&&R.c(),Z(i,"role","tab"),Z(i,"aria-selected",l="tips"===e[3]),Z(i,"class","tab"),ne(i,"-active","tips"===e[3]),Z(s,"class","tab__wrap"),Z(v,"class","hns_tips__separator svelte-man0ih"),Z(d,"class","hns_tips svelte-man0ih"),Z(u,"style",f="tips"!==e[3]?"display: none":""),Z(y,"class","hns_tips__separator svelte-man0ih"),Z(w,"class","hns_tips svelte-man0ih"),Z(k,"style",N="risks"!==e[3]?"display: none":""),Z(a,"class","tab__pane"),Z(n,"class","tab__block"),Z(t,"slot","modal-content")},m(l,m){W(l,t,m),U(t,n),U(n,s),U(s,i),U(i,o),U(s,c),O&&O.m(s,null),U(n,r),U(n,a),U(a,u),U(u,d),U(d,p),A&&A.m(p,null),U(p,h),U(p,v),U(p,g),D&&D.m(p,null),U(a,_),U(a,k),U(k,w),U(w,$);for(let e=0;e<L.length;e+=1)L[e].m($,null);U($,b),U($,y),U($,I),M&&M.m($,null),U($,C),R&&R.m($,null),E=!0,x||(S=J(i,"click",e[15]),x=!0)},p(e,t){if((!E||8&t[0]&&l!==(l="tips"===e[3]))&&Z(i,"aria-selected",l),8&t[0]&&ne(i,"-active","tips"===e[3]),e[7]?O?O.p(e,t):(O=go(e),O.c(),O.m(s,null)):O&&(O.d(1),O=null),e[6]?A?A.p(e,t):(A=fo(e),A.c(),A.m(p,h)):A&&(A.d(1),A=null),e[0].data.solutions_details&&e[0].data.solutions_details.length>1?D?(D.p(e,t),1&t[0]&&De(D,1)):(D=bo(e),D.c(),De(D,1),D.m(p,null)):D&&(Oe(),He(D,1,1,(()=>{D=null})),Ae()),(!E||8&t[0]&&f!==(f="tips"!==e[3]?"display: none":""))&&Z(u,"style",f),128&t[0]){let n;for(H=e[7],n=0;n<H.length;n+=1){const s=co(e,H,n);L[n]?L[n].p(s,t):(L[n]=Io(s),L[n].c(),L[n].m($,b))}for(;n<L.length;n+=1)L[n].d(1);L.length=H.length}e[0].data.risks_details?M?(M.p(e,t),1&t[0]&&De(M,1)):(M=Co(e),M.c(),De(M,1),M.m($,C)):M&&(Oe(),He(M,1,1,(()=>{M=null})),Ae()),e[0].data.serviceType||e[0].data.port||e[0].data.description_details?R?(R.p(e,t),1&t[0]&&De(R,1)):(R=Eo(e),R.c(),De(R,1),R.m($,null)):R&&(Oe(),He(R,1,1,(()=>{R=null})),Ae()),(!E||8&t[0]&&N!==(N="risks"!==e[3]?"display: none":""))&&Z(k,"style",N)},i(e){E||(De(D),De(M),De(R),E=!0)},o(e){He(D),He(M),He(R),E=!1},d(e){e&&V(t),O&&O.d(),A&&A.d(),D&&D.d(),j(L,e),M&&M.d(),R&&R.d(),x=!1,S()}}}function Do(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("global.close")}`,Q(t,"type","secondary")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[14]),n=!0)},p:$,i:$,o:$,d(e){e&&V(t),n=!1,s()}}}function Ho(e){let t,n,s=e[0].getCategoryDetails("solutions"),i=[];for(let l=0;l<s.length;l+=1)i[l]=Mo(uo(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),n=!0},p(e,n){if(1025&n[0]){let l;for(s=e[0].getCategoryDetails("solutions"),l=0;l<s.length;l+=1){const o=uo(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=Mo(o),i[l].c(),De(i[l],1),i[l].m(t.parentNode,t))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){j(i,e),e&&V(t)}}}function Lo(e){let t,n,s,i,o=e[1].solveBtnText+"";return{c(){t=B("kin-button"),n=G(o),Q(t,"data-test","hns_vuln-resolve")},m(o,l){W(o,t,l),U(t,n),s||(i=J(t,"click",e[11]),s=!0)},p(e,t){2&t[0]&&o!==(o=e[1].solveBtnText+"")&&ee(n,o)},i:$,o:$,d(e){e&&V(t),s=!1,i()}}}function Mo(e){let t,n,s=!e[23]&&function(e){let t,n;return t=new io({props:{id:e[21][0],value:e[21][1],button:!0,special:e[21].issueOnGateway}}),t.$on("resolve",e[10]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),1&n[0]&&(s.special=e[21].issueOnGateway),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,t){e[23]||s.p(e,t)},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function Ro(e){let t,n,s,i,o,l,c,r,a="skipped"!==e[0].state&&zo(e);return{c(){t=B("kin-dropdown"),n=B("div"),n.innerHTML='<kin-button type="secondary" icononly="true"><kin-icon name="icon-s-controls-menu-more" size="16"></kin-icon></kin-button>',s=K(),i=B("div"),a&&a.c(),o=K(),l=B("kin-dropdown-item"),l.textContent=`${m("network.rescan")}`,Z(n,"slot","dropdown-activator"),Z(n,"data-test","hns_vuln-menu-more")},m(u,d){W(u,t,d),U(t,n),U(t,s),U(t,i),a&&a.m(i,null),U(i,o),U(i,l),c||(r=J(l,"click",e[13]),c=!0)},p(e,t){"skipped"!==e[0].state?a?a.p(e,t):(a=zo(e),a.c(),a.m(i,o)):a&&(a.d(1),a=null)},d(e){e&&V(t),a&&a.d(),c=!1,r()}}}function zo(e){let t,n,s;return{c(){t=B("kin-dropdown-item"),t.textContent=`${m("network.issue.ignore")}`,Q(t,"data-test","hns_vuln-ignore")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[12]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Po(e){let t,n,s,i,o;const l=[Lo,Ho,Do],c=[];function r(e,t){return e[1].solveBtnText?0:e[0].data.solutions_details&&e[0].data.solutions_details.length?1:"public"===e[1].scanType?2:-1}~(n=r(e))&&(s=c[n]=l[n](e));let a="public"!==e[1].scanType&&Ro(e);return{c(){t=B("div"),s&&s.c(),i=K(),a&&a.c(),Z(t,"slot","modal-footer")},m(e,s){W(e,t,s),~n&&c[n].m(t,null),U(t,i),a&&a.m(t,null),o=!0},p(e,o){let u=n;n=r(e),n===u?~n&&c[n].p(e,o):(s&&(Oe(),He(c[u],1,1,(()=>{c[u]=null})),Ae()),~n?(s=c[n],s?s.p(e,o):(s=c[n]=l[n](e),s.c()),De(s,1),s.m(t,i)):s=null),"public"!==e[1].scanType?a?a.p(e,o):(a=Ro(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},i(e){o||(De(s),o=!0)},o(e){He(s),o=!1},d(e){e&&V(t),~n&&c[n].d(),a&&a.d()}}}function qo(e){let t,n,s;return n=new At({props:{id:e[1].ipm}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"class","hns_ipm_issue svelte-man0ih")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};2&t[0]&&(s.id=e[1].ipm),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function Uo(e){let t,n,s=e[1].ipm&&qo(e);return{c(){t=B("div"),s&&s.c(),Z(t,"slot","modal-ipm")},m(e,i){W(e,t,i),s&&s.m(t,null),n=!0},p(e,n){e[1].ipm?s?(s.p(e,n),2&n[0]&&De(s,1)):(s=qo(e),s.c(),De(s,1),s.m(t,null)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){e&&V(t),s&&s.d()}}}function Wo(e){let t,n,s="loading"!==e[2]&&po(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,n){"loading"!==e[2]?s?(s.p(e,n),4&n[0]&&De(s,1)):(s=po(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function Vo(t,n,s){function o(t,n){return i.event("HNS-"+a.scanType,"Click","showVulnerabilityDetails"),e("app.utils.GetUrlParameters",202).then((s=>e("app.windowManager.ShowModaless",{url:s+"&p_scr=hns/"+t.toLowerCase()+(n?"&p_sln="+n:""),width:window.innerWidth||800,height:window.innerHeight||500})))}function l(e){d!==e&&("risks"===d?i.event("HNS-"+a.scanType,"Click","closeRisks"):"risks"===e&&i.event("HNS-"+a.scanType,"Click","showRisks"),s(3,d=e))}function c(){s(0,r=!1)}let{issue:r}=n,{details:a}=n;const u=he();let d,p,m,h,v,g="loading";k.getTest("ABTest_HNS1").then((e=>s(2,g=e)));return t.$$set=e=>{"issue"in e&&s(0,r=e.issue),"details"in e&&s(1,a=e.details)},t.$$.update=()=>{7&t.$$.dirty[0]&&"loading"!==g&&r&&(l("tips"),s(5,m=r.getDescription(a.scanType)),s(6,h=r.getSolutions(a.scanType,a.resolveType,g)),s(7,v=r.getRisks()),s(4,p=r.getTitle(a.scanType)))},[r,a,g,d,p,m,h,v,o,l,function(){c(),u("resolved",a)},function(){c(),u("resolve",a)},function(){i.event("HNS-"+a.scanType,"Click","ignoreIssue"),c(),u("skip",a)},function(){c(),u("rescan")},function(){i.event("HNS-"+a.type,"Click","close"),c()},()=>l("tips"),()=>l("risks"),()=>o(r.data.catalog_name,"guide"),()=>o(r.data.catalog_name)]}class jo extends We{constructor(e){var t;super(),document.getElementById("svelte-man0ih-style")||((t=B("style")).id="svelte-man0ih-style",t.textContent=".hns_tips.svelte-man0ih.svelte-man0ih{text-align:start}.hns_tips__row.svelte-man0ih td.svelte-man0ih{padding:0.5rem 0}.hns_tips__badge.svelte-man0ih.svelte-man0ih{white-space:nowrap;margin:0.2rem 1rem;letter-spacing:1px}.hns_tips__number.svelte-man0ih.svelte-man0ih{min-width:0.8rem;text-align:end;display:inline-block}.hns_tips__separator.svelte-man0ih.svelte-man0ih{height:2rem}.hns_ipm_issue.svelte-man0ih.svelte-man0ih{height:95px;position:relative;overflow:hidden}",U(document.head,t)),Ue(this,e,Vo,Wo,E,{issue:0,details:1},[-1,-1])}}function Bo(e,t,n){const s=e.slice();return s[34]=t[n],s}function Fo(e,t,n){const s=e.slice();return s[37]=t[n],s}function Go(e,t,n){const s=e.slice();return s[40]=t[n],s[42]=n,s}function Ko(e,t,n){const s=e.slice();return s[43]=t[n],s}function Yo(e,t,n){const s=e.slice();return s[46]=t[n],s}function Jo(e,t,n){const s=e.slice();return s[49]=t[n],s}function Xo(e){let t,n;return t=new Jt({props:{closable:!0,cssCls:"-full hns_issue_detail",$$slots:{"modal-ipm":[Rl],"modal-content":[Ll],"modal-header":[tl]},$$scope:{ctx:e}}}),t.$on("close",e[14]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};4095&n[0]|2097152&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Zo(e){let t;return{c(){t=B("span"),t.textContent=`${m("network.issue.networkWide")}`,Z(t,"class","color-attention -text")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Qo(e){let t,n=m("network.device.name.unknown")+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function el(e){let t,n=e[2].nameModel+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p(e,s){4&s[0]&&n!==(n=e[2].nameModel+"")&&ee(t,n)},d(e){e&&V(t)}}}function tl(e){let t,n,s,i,o,l,c,r,a,u,d,p,m,h,v,g=e[11]&&Zo();function f(e,t){return e[2].nameModel?el:Qo}let _=f(e),k=_(e);return{c(){t=B("div"),n=B("div"),s=B("div"),i=B("div"),o=B("kin-icon"),c=K(),r=B("kin-icon"),a=K(),u=B("div"),d=B("div"),p=G(e[6]),m=K(),g&&g.c(),h=K(),v=B("div"),k.c(),Q(o,"class","hns_device_icon"),Q(o,"name",l=e[2].icon),Q(o,"size","40"),Q(r,"class","hns_status_icon svelte-t2tk28"),Q(r,"name","icon-s-fill-unsecured"),Q(r,"size","16"),Z(i,"class","hns_issue_icon svelte-t2tk28"),Z(s,"class","hns_col_badge svelte-t2tk28"),Z(d,"class","g-font--bold g-margin-bottom--5"),Z(v,"class","g-margin-bottom--10"),Z(u,"class","hns_col_content svelte-t2tk28"),Z(n,"class","hns_header svelte-t2tk28"),Z(t,"slot","modal-header")},m(e,l){W(e,t,l),U(t,n),U(n,s),U(s,i),U(i,o),U(i,c),U(i,r),U(n,a),U(n,u),U(u,d),U(d,p),U(d,m),g&&g.m(d,null),U(u,h),U(u,v),k.m(v,null)},p(e,t){4&t[0]&&l!==(l=e[2].icon)&&Q(o,"name",l),64&t[0]&&ee(p,e[6]),e[11]?g?g.p(e,t):(g=Zo(),g.c(),g.m(d,null)):g&&(g.d(1),g=null),_===(_=f(e))&&k?k.p(e,t):(k.d(1),k=_(e),k&&(k.c(),k.m(v,null)))},d(e){e&&V(t),g&&g.d(),k.d()}}}function nl(e){let t,n,s,i,o,l,c=m("network.issue.props.id")+"",r=e[0].data.catalog_name+"";return{c(){t=G(c),n=K(),s=B("button"),i=G(r),Z(s,"class","a link")},m(c,r){W(c,t,r),W(c,n,r),W(c,s,r),U(s,i),o||(l=J(s,"click",e[18]),o=!0)},p(e,t){1&t[0]&&r!==(r=e[0].data.catalog_name+"")&&ee(i,r)},d(e){e&&V(t),e&&V(n),e&&V(s),o=!1,l()}}}function sl(e){let t,n,s,i,o=e[0].data.catalog_name&&il();return{c(){o&&o.c(),t=K(),n=B("button"),n.textContent=`${m("network.issue.ignore")}`,Z(n,"class","a link")},m(l,c){o&&o.m(l,c),W(l,t,c),W(l,n,c),s||(i=J(n,"click",e[12]),s=!0)},p(e,n){e[0].data.catalog_name?o||(o=il(),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null)},d(e){o&&o.d(e),e&&V(t),e&&V(n),s=!1,i()}}}function il(e){let t;return{c(){t=G("|")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function ol(e){let t,n=e[8],s=[];for(let i=0;i<n.length;i+=1)s[i]=ll(Jo(e,n,i));return{c(){t=B("ul");for(let e=0;e<s.length;e+=1)s[e].c();Z(t,"class","hns_list svelte-t2tk28")},m(e,n){W(e,t,n);for(let i=0;i<s.length;i+=1)s[i].m(t,null)},p(e,i){if(256&i[0]){let o;for(n=e[8],o=0;o<n.length;o+=1){const l=Jo(e,n,o);s[o]?s[o].p(l,i):(s[o]=ll(l),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(e){e&&V(t),j(s,e)}}}function ll(e){let t,n,s,i,o=e[49]+"";return{c(){t=B("li"),n=B("p"),s=G(o),i=K(),Z(n,"class","p")},m(e,o){W(e,t,o),U(t,n),U(n,s),U(t,i)},p(e,t){256&t[0]&&o!==(o=e[49]+"")&&ee(s,o)},d(e){e&&V(t)}}}function cl(e){let t,n,s=e[9],i=[];for(let l=0;l<s.length;l+=1)i[l]=rl(Yo(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),n=!0},p(e,n){if(512&n[0]){let l;for(s=e[9],l=0;l<s.length;l+=1){const o=Yo(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=rl(o),i[l].c(),De(i[l],1),i[l].m(t.parentNode,t))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){j(i,e),e&&V(t)}}}function rl(e){let t,n;return t=new io({props:{id:e[46][0],value:e[46][1]}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};512&n[0]&&(s.id=e[46][0]),512&n[0]&&(s.value=e[46][1]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function al(e){let t,n,s,i,o=e[0].data.serviceType&&ul(e),l=e[0].data.port&&dl(e),c=e[0].data.description_details&&pl(e);return{c(){o&&o.c(),t=K(),l&&l.c(),n=K(),c&&c.c(),s=Y()},m(e,r){o&&o.m(e,r),W(e,t,r),l&&l.m(e,r),W(e,n,r),c&&c.m(e,r),W(e,s,r),i=!0},p(e,i){e[0].data.serviceType?o?(o.p(e,i),1&i[0]&&De(o,1)):(o=ul(e),o.c(),De(o,1),o.m(t.parentNode,t)):o&&(Oe(),He(o,1,1,(()=>{o=null})),Ae()),e[0].data.port?l?(l.p(e,i),1&i[0]&&De(l,1)):(l=dl(e),l.c(),De(l,1),l.m(n.parentNode,n)):l&&(Oe(),He(l,1,1,(()=>{l=null})),Ae()),e[0].data.description_details?c?(c.p(e,i),1&i[0]&&De(c,1)):(c=pl(e),c.c(),De(c,1),c.m(s.parentNode,s)):c&&(Oe(),He(c,1,1,(()=>{c=null})),Ae())},i(e){i||(De(o),De(l),De(c),i=!0)},o(e){He(o),He(l),He(c),i=!1},d(e){o&&o.d(e),e&&V(t),l&&l.d(e),e&&V(n),c&&c.d(e),e&&V(s)}}}function ul(e){let t,n;return t=new io({props:{title:m("network.property.serviceType"),value:e[0].data.serviceType}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.value=e[0].data.serviceType),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function dl(e){let t,n;return t=new io({props:{title:m("network.property.port"),value:e[0].data.port}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.value=e[0].data.port),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function pl(e){let t,n,s=e[0].getCategoryDetails("description"),i=[];for(let l=0;l<s.length;l+=1)i[l]=ml(Ko(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),n=!0},p(e,n){if(1&n[0]){let l;for(s=e[0].getCategoryDetails("description"),l=0;l<s.length;l+=1){const o=Ko(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=ml(o),i[l].c(),De(i[l],1),i[l].m(t.parentNode,t))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){j(i,e),e&&V(t)}}}function ml(e){let t,n;return t=new io({props:{id:e[43][0],value:e[43][1]}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[43][0]),1&n[0]&&(s.value=e[43][1]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function hl(e){let t,n,s,i,o,l,c,r,a=e[3].length&&vl(e),u=e[5]&&e[5].length&&!e[1].solveBtnText&&Cl(e),d=e[4].length&&!e[10]&&El(e);return{c(){t=B("div"),n=B("div"),s=B("span"),s.textContent=`${m("network.risk.tips")}`,i=K(),o=B("div"),a&&a.c(),l=K(),u&&u.c(),c=K(),d&&d.c(),Z(s,"class","hns_badge svelte-t2tk28"),Z(n,"class","hns_col_badge svelte-t2tk28"),Z(o,"class","hns_col_content svelte-t2tk28"),Z(t,"class","hns_tips svelte-t2tk28")},m(e,p){W(e,t,p),U(t,n),U(n,s),U(t,i),U(t,o),a&&a.m(o,null),U(o,l),u&&u.m(o,null),U(o,c),d&&d.m(o,null),r=!0},p(e,t){e[3].length?a?a.p(e,t):(a=vl(e),a.c(),a.m(o,l)):a&&(a.d(1),a=null),e[5]&&e[5].length&&!e[1].solveBtnText?u?(u.p(e,t),34&t[0]&&De(u,1)):(u=Cl(e),u.c(),De(u,1),u.m(o,c)):u&&(Oe(),He(u,1,1,(()=>{u=null})),Ae()),e[4].length&&!e[10]?d?d.p(e,t):(d=El(e),d.c(),d.m(o,null)):d&&(d.d(1),d=null)},i(e){r||(De(u),r=!0)},o(e){He(u),r=!1},d(e){e&&V(t),a&&a.d(),u&&u.d(),d&&d.d()}}}function vl(e){let t,n,s=e[11]&&gl(),i=e[3],o=[];for(let l=0;l<i.length;l+=1)o[l]=Il(Go(e,i,l));return{c(){s&&s.c(),t=K(),n=B("ul");for(let e=0;e<o.length;e+=1)o[e].c();Z(n,"class","hns_list svelte-t2tk28")},m(e,i){s&&s.m(e,i),W(e,t,i),W(e,n,i);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(e,l){if(e[11]?s?s.p(e,l):(s=gl(),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),8201&l[0]){let t;for(i=e[3],t=0;t<i.length;t+=1){const s=Go(e,i,t);o[t]?o[t].p(s,l):(o[t]=Il(s),o[t].c(),o[t].m(n,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}},d(e){s&&s.d(e),e&&V(t),e&&V(n),j(o,e)}}}function gl(e){let t;return{c(){t=B("div"),t.textContent=`${m("network.solution.protectEveryDevice")}`,Z(t,"class","p g-font--bold")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function fl(e){let t,n,s=e[40].tip+"";return{c(){n=Y(),t=new ie(n)},m(e,i){t.m(s,e,i),W(e,n,i)},p(e,n){8&n[0]&&s!==(s=e[40].tip+"")&&t.p(s)},d(e){e&&V(n),e&&t.d()}}}function _l(e){let t,n,s;return{c(){t=B("button"),t.textContent=`${m("network.issue.follow.guide")}`,Z(t,"class","a link")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function kl(e){let t;function n(e,t){return e[40].cta?$l:e[40].solution?wl:void 0}let s=n(e),i=s&&s(e);return{c(){i&&i.c(),t=Y()},m(e,n){i&&i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i&&i.d(1),i=s&&s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i&&i.d(e),e&&V(t)}}}function wl(e){let t,n,s=e[40].solution+"";return{c(){t=B("span"),n=G(s),Z(t,"class","g-margin-right--20")},m(e,s){W(e,t,s),U(t,n)},p(e,t){8&t[0]&&s!==(s=e[40].solution+"")&&ee(n,s)},d(e){e&&V(t)}}}function $l(e){let t;function n(e,t){return e[40].primary?yl:bl}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function bl(e){let t,n,s,i,o,l,c=e[40].solution+"";function r(){return e[21](e[40])}return{c(){t=B("kin-button"),n=G(c),s=K(),i=B("kin-icon"),Q(i,"class","hns_btn_icon color-ok -text svelte-t2tk28"),Q(i,"name","switch-arrow"),Q(i,"size","20"),Q(t,"size","small"),Q(t,"type","blank")},m(e,c){W(e,t,c),U(t,n),U(t,s),U(t,i),o||(l=J(t,"click",r),o=!0)},p(t,s){e=t,8&s[0]&&c!==(c=e[40].solution+"")&&ee(n,c)},d(e){e&&V(t),o=!1,l()}}}function yl(e){let t,n,s,i,o=e[40].solution+"";function l(){return e[20](e[40])}return{c(){t=B("kin-button"),n=G(o),Q(t,"size","small"),Q(t,"class","g-margin-right--20")},m(e,o){W(e,t,o),U(t,n),s||(i=J(t,"click",l),s=!0)},p(t,s){e=t,8&s[0]&&o!==(o=e[40].solution+"")&&ee(n,o)},d(e){e&&V(t),s=!1,i()}}}function Il(e){let t,n,s,i,o,l;function c(e,t){return"FOLLOW_GUIDE"===e[40].tip?_l:fl}let r=c(e),a=r(e),u=e[40].cta&&kl(e);return{c(){t=B("li"),n=B("div"),s=B("p"),a.c(),i=K(),o=B("div"),u&&u.c(),l=K(),Z(s,"class","p hns_tip svelte-t2tk28"),Z(o,"class","hns_solution svelte-t2tk28"),Z(n,"class","hns_tip_solution svelte-t2tk28")},m(e,c){W(e,t,c),U(t,n),U(n,s),a.m(s,null),U(n,i),U(n,o),u&&u.m(o,null),U(t,l)},p(e,t){r===(r=c(e))&&a?a.p(e,t):(a.d(1),a=r(e),a&&(a.c(),a.m(s,null))),e[40].cta?u?u.p(e,t):(u=kl(e),u.c(),u.m(o,null)):u&&(u.d(1),u=null)},d(e){e&&V(t),a.d(),u&&u.d()}}}function Cl(e){let t,n,s=e[5],i=[];for(let l=0;l<s.length;l+=1)i[l]=Nl(Fo(e,s,l));const o=e=>He(i[e],1,1,(()=>{i[e]=null}));return{c(){t=B("div");for(let e=0;e<i.length;e+=1)i[e].c();Z(t,"class","g-margin-top--10 g-margin-left--20")},m(e,s){W(e,t,s);for(let n=0;n<i.length;n+=1)i[n].m(t,null);n=!0},p(e,n){if(32&n[0]){let l;for(s=e[5],l=0;l<s.length;l+=1){const o=Fo(e,s,l);i[l]?(i[l].p(o,n),De(i[l],1)):(i[l]=Nl(o),i[l].c(),De(i[l],1),i[l].m(t,null))}for(Oe(),l=s.length;l<i.length;l+=1)o(l);Ae()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)De(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)He(i[t]);n=!1},d(e){e&&V(t),j(i,e)}}}function Nl(e){let t,n;return t=new io({props:{id:e[37][0],value:e[37][1],button:!0,special:e[37].issueOnGateway}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};32&n[0]&&(s.id=e[37][0]),32&n[0]&&(s.value=e[37][1]),32&n[0]&&(s.special=e[37].issueOnGateway),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function El(e){let t,n,s=e[11]&&xl(),i=e[4],o=[];for(let l=0;l<i.length;l+=1)o[l]=Dl(Bo(e,i,l));return{c(){s&&s.c(),t=K(),n=B("ul");for(let e=0;e<o.length;e+=1)o[e].c();Z(n,"class","hns_list g-margin-bottom--10 svelte-t2tk28")},m(e,i){s&&s.m(e,i),W(e,t,i),W(e,n,i);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(e,l){if(e[11]?s?s.p(e,l):(s=xl(),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),16&l[0]){let t;for(i=e[4],t=0;t<i.length;t+=1){const s=Bo(e,i,t);o[t]?o[t].p(s,l):(o[t]=Dl(s),o[t].c(),o[t].m(n,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}},d(e){s&&s.d(e),e&&V(t),e&&V(n),j(o,e)}}}function xl(e){let t;return{c(){t=B("div"),t.textContent=`${m("network.solution.protectYourPc")}`,Z(t,"class","p g-font--bold")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Sl(e){let t,n,s=e[34].solution+"";return{c(){t=B("span"),n=G(s),Z(t,"class","g-margin-right--20")},m(e,s){W(e,t,s),U(t,n)},p(e,t){16&t[0]&&s!==(s=e[34].solution+"")&&ee(n,s)},d(e){e&&V(t)}}}function Tl(e){let t;function n(e,t){return e[34].primary?Al:Ol}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function Ol(e){let t,n,s,i,o,l,c=e[34].solution+"";function r(){return e[23](e[34])}return{c(){t=B("kin-button"),n=G(c),s=K(),i=B("kin-icon"),Q(i,"class","hns_btn_icon color-ok -text svelte-t2tk28"),Q(i,"name","switch-arrow"),Q(i,"size","20"),Q(t,"size","small"),Q(t,"type","blank")},m(e,c){W(e,t,c),U(t,n),U(t,s),U(t,i),o||(l=J(t,"click",r),o=!0)},p(t,s){e=t,16&s[0]&&c!==(c=e[34].solution+"")&&ee(n,c)},d(e){e&&V(t),o=!1,l()}}}function Al(e){let t,n,s,i,o=e[34].solution+"";function l(){return e[22](e[34])}return{c(){t=B("kin-button"),n=G(o),Q(t,"size","small"),Q(t,"class","g-margin-right--20")},m(e,o){W(e,t,o),U(t,n),s||(i=J(t,"click",l),s=!0)},p(t,s){e=t,16&s[0]&&o!==(o=e[34].solution+"")&&ee(n,o)},d(e){e&&V(t),s=!1,i()}}}function Dl(e){let t,n,s,i,o,l,c=e[34].tip+"";function r(e,t){return e[34].cta?Tl:e[34].solution?Sl:void 0}let a=r(e),u=a&&a(e);return{c(){t=B("li"),n=B("div"),s=B("p"),i=K(),o=B("div"),u&&u.c(),l=K(),Z(s,"class","p hns_tip svelte-t2tk28"),Z(o,"class","hns_solution svelte-t2tk28"),Z(n,"class","hns_tip_solution svelte-t2tk28")},m(e,r){W(e,t,r),U(t,n),U(n,s),s.innerHTML=c,U(n,i),U(n,o),u&&u.m(o,null),U(t,l)},p(e,t){16&t[0]&&c!==(c=e[34].tip+"")&&(s.innerHTML=c),a===(a=r(e))&&u?u.p(e,t):(u&&u.d(1),u=a&&a(e),u&&(u.c(),u.m(o,null)))},d(e){e&&V(t),u&&u.d()}}}function Hl(e){let t,n,s,i,o,l;return{c(){t=B("div"),n=B("div"),n.innerHTML='<kin-icon name="icon-s-fill-secured" size="24" class="hns_protected_icon svelte-t2tk28"></kin-icon>',s=K(),i=B("div"),o=B("div"),l=G(e[10]),Z(n,"class","hns_col_badge svelte-t2tk28"),Z(o,"class","p g-font--bold"),Z(i,"class","hns_col_content svelte-t2tk28"),Z(t,"class","hns_tips svelte-t2tk28")},m(e,c){W(e,t,c),U(t,n),U(t,s),U(t,i),U(i,o),U(o,l)},p(e,t){1024&t[0]&&ee(l,e[10])},d(e){e&&V(t)}}}function Ll(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w=e[0].data.catalog_name&&nl(e),$="skipped"!==e[0].state&&sl(e),b=e[8]&&e[8].length&&ol(e),y=e[9]&&e[9].length&&cl(e),I="home"===e[1].scanType&&(e[0].data.serviceType||e[0].data.port||e[0].data.description_details)&&al(e),C=(e[3].length||e[5]&&e[5].length&&!e[1].solveBtnText||e[4].length&&!e[10])&&hl(e),N=e[10]&&Hl(e);return{c(){t=B("div"),n=B("div"),s=B("div"),i=G(e[7]),o=K(),w&&w.c(),l=K(),$&&$.c(),c=K(),r=B("div"),a=B("div"),u=B("span"),u.textContent=`${m("network.issue.section.risk")}`,d=K(),p=B("div"),b&&b.c(),h=K(),v=B("div"),y&&y.c(),g=K(),I&&I.c(),f=K(),C&&C.c(),_=K(),N&&N.c(),Z(s,"class","p -secondary"),Z(n,"class","hns_issue_description svelte-t2tk28"),Z(u,"class","hns_badge svelte-t2tk28"),Z(a,"class","hns_col_badge svelte-t2tk28"),Z(v,"class","hns_details svelte-t2tk28"),Z(p,"class","hns_col_content svelte-t2tk28"),Z(r,"class","hns_risks svelte-t2tk28"),Z(t,"slot","modal-content")},m(e,m){W(e,t,m),U(t,n),U(n,s),U(s,i),U(s,o),w&&w.m(s,null),U(s,l),$&&$.m(s,null),U(t,c),U(t,r),U(r,a),U(a,u),U(r,d),U(r,p),b&&b.m(p,null),U(p,h),U(p,v),y&&y.m(v,null),U(v,g),I&&I.m(v,null),U(t,f),C&&C.m(t,null),U(t,_),N&&N.m(t,null),k=!0},p(e,n){(!k||128&n[0])&&ee(i,e[7]),e[0].data.catalog_name?w?w.p(e,n):(w=nl(e),w.c(),w.m(s,l)):w&&(w.d(1),w=null),"skipped"!==e[0].state?$?$.p(e,n):($=sl(e),$.c(),$.m(s,null)):$&&($.d(1),$=null),e[8]&&e[8].length?b?b.p(e,n):(b=ol(e),b.c(),b.m(p,h)):b&&(b.d(1),b=null),e[9]&&e[9].length?y?(y.p(e,n),512&n[0]&&De(y,1)):(y=cl(e),y.c(),De(y,1),y.m(v,g)):y&&(Oe(),He(y,1,1,(()=>{y=null})),Ae()),"home"===e[1].scanType&&(e[0].data.serviceType||e[0].data.port||e[0].data.description_details)?I?(I.p(e,n),3&n[0]&&De(I,1)):(I=al(e),I.c(),De(I,1),I.m(v,null)):I&&(Oe(),He(I,1,1,(()=>{I=null})),Ae()),e[3].length||e[5]&&e[5].length&&!e[1].solveBtnText||e[4].length&&!e[10]?C?(C.p(e,n),1082&n[0]&&De(C,1)):(C=hl(e),C.c(),De(C,1),C.m(t,_)):C&&(Oe(),He(C,1,1,(()=>{C=null})),Ae()),e[10]?N?N.p(e,n):(N=Hl(e),N.c(),N.m(t,null)):N&&(N.d(1),N=null)},i(e){k||(De(y),De(I),De(C),k=!0)},o(e){He(y),He(I),He(C),k=!1},d(e){e&&V(t),w&&w.d(),$&&$.d(),b&&b.d(),y&&y.d(),I&&I.d(),C&&C.d(),N&&N.d()}}}function Ml(e){let t,n,s;return n=new At({props:{id:e[1].ipm}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"class","hns_ipm_issue")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};2&t[0]&&(s.id=e[1].ipm),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function Rl(e){let t,n,s=e[1].ipm&&Ml(e);return{c(){t=B("div"),s&&s.c(),Z(t,"slot","modal-ipm")},m(e,i){W(e,t,i),s&&s.m(t,null),n=!0},p(e,n){e[1].ipm?s?(s.p(e,n),2&n[0]&&De(s,1)):(s=Ml(e),s.c(),De(s,1),s.m(t,null)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){e&&V(t),s&&s.d()}}}function zl(e){let t,n,s=e[0]&&Xo(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,n){e[0]?s?(s.p(e,n),1&n[0]&&De(s,1)):(s=Xo(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function Pl(t,n,s){let l;T(t,at,(e=>s(17,l=e)));const c=["HNS-DNS-HIJACK","HNS-WEAK-WIFI-ENC","HNS-WEAK-WIFI-PASSWORD","HNS-WEAK-PASS","HNS-WAN-ACCESS","HNS-DOUBLEPULSAR-INFECTION","CVE-2017-14491","CVE-2017-0143","CVE-2014-9223","CVE-2014-7169","CVE-2014-4019"];let{issue:r}=n,{details:a}=n,{device:u}=n;const d=he();let p,h,_,k,w=[],$=[],b=[],y=null,I=!1,C=!1,N=!1;const E=g.getBrand()||"avast";function x(t,n){if(c.includes(t)){i.event("HNS3","Click","showVulnerabilityDetails");let s=202;return(n||"HNS-WEAK-RDP-SETTINGS"===t)&&(s=79),e("app.utils.GetUrlParameters",s).then((i=>{const l=encodeURIComponent((79===s?"":"hns/")+t.toLowerCase()),c=n?encodeURIComponent(n):null,r=i+"&p_scr="+l+(c?"&p_sln="+c:"");if(79!==s)return e("app.windowManager.ShowModaless",{url:r,width:window.innerWidth||800,height:window.innerHeight||500});o.browse(r+"&action=2")}))}var s;s=t,o.browse("https://www.google.com/search?q="+encodeURIComponent(s))}function S(){s(0,r=!1)}function O(t){i.event("HNS3","Click",t+"-turnOn"),"firewall"===t?g.enableFeature("Firewall"):"secureDns"===t?g.enableFeature("SecureDnsShield"):"ras"===t?g.enableFeature("RemoteAccessShield"):"vpn"===t&&e("app."+E+".lis.open.ui",{id:"svpn"})}function A(e){i.event("HNS3","Click",e+"-install"),"firewall"===e?g.install("Firewall"):"secureDns"===e?g.install("SecureDnsShield"):"ras"===e?g.install("RemoteAccessShield"):"vpn"===e&&f.openWindow(199)}function D(){i.event("HNS3","Click","AV-switchLicense"),location.hash="#MyLicenses",S()}function H(e,t){i.event("HNS3","Click",t+"-upsell"),f.openWindow(e,{p_scr:"hns"}),i.ipm(e)}e("app.lif.activations.GetAvailableProducts",{sourceType:4}).then((e=>{e.forEach((e=>{!e.is_free&&e.days_to_expiration>=0&&(["SecureLine","SecureVpn"].includes(e.app_type)&&s(16,C=!0),["avast","avg"].includes(e.app_type)&&s(15,I=!0))}))}));return t.$$set=e=>{"issue"in e&&s(0,r=e.issue),"details"in e&&s(1,a=e.details),"device"in e&&s(2,u=e.device)},t.$$.update=()=>{if(229435&t.$$.dirty[0]&&r&&a){s(6,p=r.getTitle(a.scanType)),s(7,h=r.getDescription(a.scanType)),s(8,w=r.getRisks()||[]),s(9,_=r.getCategoryDetails("risks")||[]),s(5,k=r.getCategoryDetails("solutions")||[]),s(11,N=r.isNetworkWideIssue());const e=r.getSolutionsWithOffers(a.scanType);s(4,b=[]);const t=e[0],n=e[1],c=Object.keys(n).length;let u;const g=[];if(1===c)["firewall","secureDns","ras"].forEach((e=>{n[e]&&(n[e].ctaPrimary=!1,l[e].enabled?(n[e].tip=m("network.solution."+e+".turnOn"),n[e].solution="",n[e].cta=null,g.push(e)):l[e].installed?(n[e].tip=m("network.solution."+e+".turnOn"),n[e].solution=m("network.solution."+e+".turnOn.cta"),n[e].cta=()=>O(e),n[e].track=e+"-turnOn"):l[e].licensed?(n[e].tip=m("network.solution."+e+".install"),n[e].solution=m("network.solution."+e+".install.cta"),n[e].cta=()=>A(e),n[e].track=e+"-install"):I?(n[e].tip=m("network.solution."+e+".upsell"),n[e].solution=m("network.solution.switchSubscription.cta"),n[e].cta=()=>D(),n[e].track="AV-switchLicense"):(n[e].tip=m("network.solution."+e+".upsell"),n[e].solution=m("network.solution.upgradeSecurity.cta"),n[e].cta=()=>H(98,"AV"),n[e].track="AV-upsell",n[e].primary=!0))})),n.vpn&&(n.vpn.primary=!1,l.vpn.installed?(n.vpn.tip=m("network.solution.vpn.turnOn"),n.vpn.solution=m("network.solution.vpn.turnOn.cta"),n.vpn.cta=()=>O("vpn"),n.vpn.track="vpn-turnOn"):l.vpn.otherVpn?(n.vpn.tip=m("network.solution.vpn.turnOnOther"),n.vpn.solution="",n.vpn.cta=null):C?(n.vpn.tip=m("network.solution.vpn.install"),n.vpn.solution=m("network.solution.vpn.install.cta"),n.vpn.cta=()=>A("vpn"),n.vpn.track="vpn-install"):(n.vpn.tip=m("network.solution.vpn.upsell"),n.vpn.solution=m("network.solution.vpn.upsell.cta"),n.vpn.cta=()=>H(451,"vpn"),n.vpn.track="vpn-upsell",n.vpn.primary=!0));else if(c>1){let e=!0;n.vpn&&(n.vpn.primary=!1,l.vpn.installed?(n.vpn.tip=m("network.solution.vpn.turnOn"),n.vpn.solution=m("network.solution.vpn.turnOn.cta"),n.vpn.cta=()=>O("vpn"),n.vpn.track="vpn-turnOn"):l.vpn.otherVpn?(n.vpn.tip=m("network.solution.vpn.turnOnOther"),n.vpn.solution="",n.vpn.cta=null):C?(n.vpn.tip=m("network.solution.vpn.install"),n.vpn.solution=m("network.solution.vpn.install.cta"),n.vpn.cta=()=>A("vpn"),n.vpn.track="vpn-install"):I?(n.vpn.tip=m("network.solution.vpn.upsell"),n.vpn.solution=m("network.solution.vpn.upsell.cta"),n.vpn.cta=()=>H(451,"vpn"),n.vpn.track="vpn-upsell",n.vpn.primary=!0):(n.vpn.tip=m("network.solution.vpn.upsell"),n.vpn.solution=null,n.vpn.cta=null,e=!1));let t=!0;["firewall","secureDns","ras"].forEach((e=>{n[e]&&(n[e].primary=!1,l[e].enabled?(n[e].tip=m("network.solution."+e+".turnOn"),n[e].solution="",n[e].cta=null,g.push(e)):l[e].installed?(n[e].tip=m("network.solution."+e+".turnOn"),n[e].solution=m("network.solution."+e+".turnOn.cta"),n[e].cta=()=>O(e),n[e].track=e+"-turnOn"):l[e].licensed?(n[e].tip=m("network.solution."+e+".install"),n[e].solution=m("network.solution."+e+".install.cta"),n[e].cta=()=>A(e),n[e].track=e+"-install"):(n[e].tip=m("network.solution."+e+".upsell"),n[e].solution=null,n[e].cta=null,t=!1))})),t?e||(n.vpn.tip=m("network.solution.vpn.upsell"),n.vpn.solution=m("network.solution.vpn.upsell.cta"),n.vpn.cta=()=>H(451,"vpn"),n.vpn.track="vpn-upsell",n.vpn.primary=!0):e?(u=I?{solution:m("network.solution.switchSubscription.cta"),cta:()=>D(),track:"AV-switchLicense",primary:!1}:{solution:m("network.solution.upgradeSecurity.cta"),cta:()=>H(98,"AV"),track:"AV-upsell",primary:!0},Object.keys(n).forEach((e=>{null===n[e].solution&&null===n[e].cta&&(n[e].solution=u.solution,n[e].cta=u.cta,n[e].primary=u.primary,u.track&&(n[e].track=u.track))}))):u={tip:m("network.solution.upgradeUltimate"),solution:m("network.solution.upgradeUltimate.cta"),cta:()=>H(452,"ULT"),track:"ULT-upsell",primary:!0,isUltimate:!0}}s(3,$=t.map((e=>({tip:e,solution:null,cta:null,primary:!1})))),Object.keys(n).forEach((e=>{b.push(n[e])})),u&&u.isUltimate&&s(4,b=[u]),s(5,k=k.filter((e=>!(["LINK","DEVICE_UI_LINK"].includes(e[0])&&$.length&&!$[0].cta)||("DEVICE_UI_LINK"===e[0]?s(3,$[0].solution=a.issueOnGateway?m("network.goToRouter"):m("network.goToDevice"),$):s(3,$[0].solution=m("network.resolve"),$),s(3,$[0].cta=()=>function(e){const t=e[1],n=e[0];i.event("HNS3","Click",n),o.browse(t),d("resolve")}(e),$),s(3,$[0].track=e[0],$),!1))));let f=0;if(f+=b.filter((e=>!!e.cta)).length,f+=$.filter((e=>!!e.cta)).length,f+=k.length,1===f&&(s(4,b=b.map((e=>(e.cta&&(e.primary=!0),e)))),s(3,$=$.map((e=>(e.cta&&(e.primary=!0),e))))),b.forEach((e=>{e.track&&i.view("HNS3-tips-button-"+e.track)})),$.forEach((e=>{e.track&&i.view("HNS3-tips-button-"+e.track)})),g.length){const e=g.map((e=>{switch(e){case"vpn":return m("global.vpn.short.brand");case"firewall":return m("firewall");case"secureDns":return m("secureDNS");case"ras":return m("remoteAccessShield");default:return m(e)}}));s(10,y=m("network.solution.protected",v.getArrayConcat(e)))}else s(10,y=null)}},[r,a,u,$,b,k,p,h,w,_,y,N,function(){i.event("HNS3","Click","ignoreIssue"),S(),d("skip",a)},x,function(){i.event("HNS3","Click","close"),S()},I,C,l,()=>x(r.data.catalog_name),()=>x(r.getSupportArticleId(),"guide"),e=>e.cta(),e=>e.cta(),e=>e.cta(),e=>e.cta()]}class ql extends We{constructor(e){var t;super(),document.getElementById("svelte-t2tk28-style")||((t=B("style")).id="svelte-t2tk28-style",t.textContent=".avs .hns_issue_detail .sve_modal__header{padding-left:0;padding-bottom:0}.avs .hns_issue_detail .sve_modal__content{padding:0}.avs .hns_issue_detail .sve_modal__footer{display:none}.hns_issue_icon.svelte-t2tk28.svelte-t2tk28{position:relative;display:inline-block}.hns_issue_icon.svelte-t2tk28 .hns_status_icon.svelte-t2tk28{position:absolute;top:2.4rem;left:2.4rem}.hns_issue_description.svelte-t2tk28.svelte-t2tk28{margin-left:8rem;margin-right:2rem;padding-bottom:2rem;text-align:left}.hns_list.svelte-t2tk28.svelte-t2tk28{list-style:inherit;margin-left:2rem}.hns_details.svelte-t2tk28.svelte-t2tk28{margin-left:2rem}.hns_header.svelte-t2tk28.svelte-t2tk28,.hns_risks.svelte-t2tk28.svelte-t2tk28,.hns_tips.svelte-t2tk28.svelte-t2tk28{display:flex;text-align:left}.hns_header.svelte-t2tk28 .hns_col_badge.svelte-t2tk28,.hns_risks.svelte-t2tk28 .hns_col_badge.svelte-t2tk28,.hns_tips.svelte-t2tk28 .hns_col_badge.svelte-t2tk28{min-width:8rem;padding:1.5rem 1rem;text-align:right;flex-shrink:0}.hns_header.svelte-t2tk28 .hns_col_content.svelte-t2tk28,.hns_risks.svelte-t2tk28 .hns_col_content.svelte-t2tk28,.hns_tips.svelte-t2tk28 .hns_col_content.svelte-t2tk28{padding:1.5rem 0;flex-grow:1}.hns_risks.svelte-t2tk28 .hns_badge.svelte-t2tk28,.hns_tips.svelte-t2tk28 .hns_badge.svelte-t2tk28{display:inline-block;padding:0.4rem 0.8rem;border-radius:0.4rem;text-transform:uppercase;font-weight:bold}.hns_risks.svelte-t2tk28.svelte-t2tk28,.hns_tips.svelte-t2tk28.svelte-t2tk28{position:relative;z-index:1}.hns_risks.svelte-t2tk28.svelte-t2tk28:before,.hns_tips.svelte-t2tk28.svelte-t2tk28:before{position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0;content:'';opacity:0.05}.hns_risks.svelte-t2tk28.svelte-t2tk28{border-left:0.3rem solid var(--color-critical)}.hns_risks.svelte-t2tk28.svelte-t2tk28:before{background:var(--color-critical)}.hns_risks.svelte-t2tk28 .hns_badge.svelte-t2tk28{background-color:var(--color-critical);color:var(--color-text)}.hns_tips.svelte-t2tk28.svelte-t2tk28{border-left:0.3rem solid var(--color-ok)}.hns_tips.svelte-t2tk28.svelte-t2tk28:before{background:var(--color-ok)}.hns_tips.svelte-t2tk28 .hns_badge.svelte-t2tk28{background-color:var(--color-ok);color:var(--modal-bg)}.hns_tip_solution.svelte-t2tk28.svelte-t2tk28{display:flex;align-items:center}.hns_tip_solution.svelte-t2tk28 .hns_tip.svelte-t2tk28{max-width:75%}.hns_tip_solution.svelte-t2tk28 .hns_solution.svelte-t2tk28{flex-shrink:0;flex-grow:1;text-align:right;margin:0.5rem 2rem;min-width:25%}.hns_btn_icon.svelte-t2tk28.svelte-t2tk28{transform:scaleX(-1);margin-left:0.5rem}.hns_protected_icon.svelte-t2tk28.svelte-t2tk28{position:relative;top:-0.5rem;--color-ok-text:var(--modal-bg)}",U(document.head,t)),Ue(this,e,Pl,zl,E,{issue:0,details:1,device:2},[-1,-1])}}function Ul(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",back:!1,loading:e[1],$$slots:{"page-content":[Vl]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};2&n&&(s.loading=e[1]),128&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Wl(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",back:!1,loading:e[1],$$slots:{"page-content":[Bl]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};2&n&&(s.loading=e[1]),141&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Vl(e){let t,n,s,i,o,l,c,r,a,u,d,p;return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("div"),o=B("h1"),o.textContent=`${m("network.scan.netChanged.rescan")}`,l=K(),c=B("div"),r=B("kin-button"),r.textContent=`${m("network.scan.again")}`,a=K(),u=B("kin-button"),u.textContent=`${m("global.done")}`,Q(n,"name","circle-attention"),Q(n,"class","kin_scan__icon"),Q(n,"size","96"),Z(o,"class","h1 kin_scan__title -overlay"),Z(i,"class","kin_scan__result"),Q(r,"size","large"),Q(u,"size","large"),Q(u,"type","secondary"),Q(u,"class","g-margin-left--10"),Q(u,"data-test","hns_done-global"),Z(c,"class","kin_scan__actions"),Z(t,"slot","page-content")},m(m,h){W(m,t,h),U(t,n),U(t,s),U(t,i),U(i,o),U(t,l),U(t,c),U(c,r),U(c,a),U(c,u),d||(p=[J(r,"click",e[4]),J(u,"click",e[5])],d=!0)},p:$,d(e){e&&V(t),d=!1,C(p)}}}function jl(e){let t,n;return t=new ws({props:{autoWatch:!0,devices:e[2],networkId:e[0].networkId}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.devices=e[2]),1&n&&(s.networkId=e[0].networkId),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Bl(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k=m(e[3]?"network.scan.stopping":"network.scan.again")+"",w="home"===e[0].type&&jl(e);return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("div"),o=B("h1"),o.textContent=`${m("network.scan.stopped")}`,l=K(),c=B("p"),c.textContent=`${m("network.scan.stopped.desc")}`,r=K(),w&&w.c(),a=K(),u=B("div"),d=B("kin-button"),p=G(k),h=K(),v=B("kin-button"),v.textContent=`${m("global.done")}`,Q(n,"name","circle-critical"),Q(n,"class","kin_scan__icon"),Q(n,"size","96"),Z(o,"class","h1 kin_scan__title -overlay"),Z(c,"class","kin_scan__subtitle -overlay"),Z(i,"class","kin_scan__result"),Q(d,"size","large"),Q(d,"processing",e[3]),Q(d,"kin-disabled",e[3]),Q(v,"size","large"),Q(v,"type","secondary"),Q(v,"class","g-margin-left--10"),Q(v,"data-test","hns_done-global"),Z(u,"class","kin_scan__actions"),Z(t,"slot","page-content")},m(m,k){W(m,t,k),U(t,n),U(t,s),U(t,i),U(i,o),U(i,l),U(i,c),U(t,r),w&&w.m(t,null),U(t,a),U(t,u),U(u,d),U(d,p),U(u,h),U(u,v),g=!0,f||(_=[J(d,"click",e[4]),J(v,"click",e[5])],f=!0)},p(e,n){"home"===e[0].type?w?(w.p(e,n),1&n&&De(w,1)):(w=jl(e),w.c(),De(w,1),w.m(t,a)):w&&(Oe(),He(w,1,1,(()=>{w=null})),Ae()),(!g||8&n)&&k!==(k=m(e[3]?"network.scan.stopping":"network.scan.again")+"")&&ee(p,k),(!g||8&n)&&Q(d,"processing",e[3]),(!g||8&n)&&Q(d,"kin-disabled",e[3])},i(e){g||(De(w),g=!0)},o(e){He(w),g=!1},d(e){e&&V(t),w&&w.d(),f=!1,C(_)}}}function Fl(e){let t,n,s,i;const o=[Wl,Ul],l=[];function c(e,t){return e[0].canceled?0:e[0].ran?1:-1}return~(t=c(e))&&(n=l[t]=o[t](e)),{c(){n&&n.c(),s=Y()},m(e,n){~t&&l[t].m(e,n),W(e,s,n),i=!0},p(e,[i]){let r=t;t=c(e),t===r?~t&&l[t].p(e,i):(n&&(Oe(),He(l[r],1,1,(()=>{l[r]=null})),Ae()),~t?(n=l[t],n?n.p(e,i):(n=l[t]=o[t](e),n.c()),De(n,1),n.m(s.parentNode,s)):n=null)},i(e){i||(De(n),i=!0)},o(e){He(n),i=!1},d(e){~t&&l[t].d(e),e&&V(s)}}}function Gl(e,t,n){let{scan:s}=t,{loading:i}=t,{devices4watcher:o}=t,{scanStopping:l}=t;const c=he();return e.$$set=e=>{"scan"in e&&n(0,s=e.scan),"loading"in e&&n(1,i=e.loading),"devices4watcher"in e&&n(2,o=e.devices4watcher),"scanStopping"in e&&n(3,l=e.scanStopping)},[s,i,o,l,function(){c("rescan")},function(){c("scanFinish")}]}class Kl extends We{constructor(e){super(),Ue(this,e,Gl,Fl,E,{scan:0,loading:1,devices4watcher:2,scanStopping:3})}}function Yl(e){let t,n,s,i,o,l,c,r,a,u,d;return{c(){t=F("svg"),n=F("style"),s=G(".st0 {\n\topacity: 0.3;\n\tfill: #53a0fd;\n}\n\n#progressLine-1 { opacity: .2 }\n.animate > #progressLine-1 { animation: fade 3s linear 2.5s infinite }\n\n#progressLine-2 { opacity: .2 }\n.animate > #progressLine-2 { animation: fade 3s linear 2s infinite }\n\n#progressLine-3 { opacity: .2 }\n.animate > #progressLine-3 { animation: fade 3s linear 1.5s infinite }\n\n#progressLine-4 { opacity: .2 }\n.animate > #progressLine-4 { animation: fade 3s linear 1s infinite }\n\n#progressLine-5 { opacity: .2 }\n.animate > #progressLine-5 { animation: fade 3s linear 0.5s infinite }\n\n@keyframes fade {\n\t0% {opacity: 0.2}\n\t20% {opacity: 1}\n\t40% {opacity: 0.2}\n}\n\t"),i=F("path"),o=F("path"),l=F("path"),c=F("path"),r=F("path"),Z(n,"type","text/css"),Z(i,"id","progressLine-5"),Z(i,"class","st0"),Z(i,"d","M341.25,113.171l1.021-0.553c9.639,10.85,15.51,25.119,15.51,40.74\n\tc0,16.081-6.22,30.73-16.37,41.691l-1.033-0.56c10.08-10.78,16.268-25.243,16.268-41.131\n\tC356.646,137.931,350.815,123.845,341.25,113.171z M236.073,153.358c0-15.427,5.831-29.513,15.396-40.187l-1.02-0.553\n\tc-9.639,10.85-15.51,25.119-15.51,40.74c0,15.835,6.025,30.289,15.902,41.192l1.028-0.557\n\tC242.064,183.268,236.073,169,236.073,153.358z"),Z(o,"id","progressLine-4"),Z(o,"class","st0"),Z(o,"d","M199.535,222.355l-1.006,0.545c-13.999-19.636-22.241-43.645-22.241-69.543\n\tc0-25.687,8.112-49.513,21.903-69.06l1.003,0.543c-13.707,19.382-21.772,43.024-21.772,68.516\n\tC177.422,179.061,185.62,202.884,199.535,222.355z M415.295,153.357c0,25.942-8.354,49.966-22.505,69.536l1.006,0.545\n\tc14.234-19.735,22.634-43.944,22.634-70.081c0-25.687-8.112-49.513-21.903-69.059l-1.003,0.544\n\tC407.231,104.223,415.295,127.866,415.295,153.357z"),Z(l,"id","progressLine-3"),Z(l,"class","st0"),Z(l,"d","M445.372,56.743l1.001-0.542c18.191,27.991,28.774,61.36,28.774,97.158\n\tc0,36.245-10.852,69.998-29.461,98.201l-1.001-0.542c18.524-28.041,29.327-61.609,29.327-97.659\n\tC474.012,117.756,463.477,84.571,445.372,56.743z M118.706,153.358c0-35.603,10.535-68.787,28.64-96.616l-1-0.542\n\tc-18.191,27.991-28.774,61.36-28.774,97.158c0,36.008,10.71,69.556,29.096,97.648l1-0.542\n\tC129.368,222.535,118.706,189.171,118.706,153.358z"),Z(c,"id","progressLine-2"),Z(c,"class","st0"),Z(c,"d","M94.846,279.091l-0.999,0.541c-23.489-37.51-36.068-80.924-36.068-126.275\n\tc0-45.151,12.471-88.379,35.76-125.775l0.999,0.541c-23.201,37.231-35.625,80.275-35.625,125.234\n\tC58.913,198.517,71.445,241.746,94.846,279.091z M533.804,153.357c0,45.385-12.653,88.823-36.28,126.296l0.999,0.541\n\tc23.715-37.638,36.416-81.26,36.416-126.837c0-45.151-12.472-88.379-35.76-125.775l-0.999,0.541\n\tC521.38,65.355,533.804,108.399,533.804,153.357z"),Z(r,"id","progressLine-1"),Z(r,"class","st0"),Z(r,"d","M592.718,153.357c0,55.356-15.093,108.385-43.301,154.42l-0.999-0.541\n\tc28.119-45.869,43.164-98.714,43.164-153.878c0-54.737-14.809-107.194-42.509-152.816L550.073,0\n\tC577.862,45.786,592.718,98.427,592.718,153.357z M43.952,306.673C16.055,260.935,1.134,208.296,1.134,153.357\n\tc0-54.737,14.809-107.194,42.509-152.815L42.644,0C14.856,45.787,0,98.428,0,153.357c0,55.131,14.968,107.954,42.953,153.857\n\tL43.952,306.673z"),Z(t,"version","1.1"),Z(t,"xmlns","http://www.w3.org/2000/svg"),Z(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),Z(t,"xml:space","preserve"),Z(t,"id","Layer_1"),Z(t,"x","0px"),Z(t,"y","0px"),Z(t,"viewBox","0 0 592.718 307.776"),ne(t,"animate",e[0])},m(p,m){W(p,t,m),U(t,n),U(n,s),U(t,i),U(t,o),U(t,l),U(t,c),U(t,r),u||(d=H(a=Jl.call(null,t,e[1])),u=!0)},p(e,[n]){a&&N(a.update)&&2&n&&a.update.call(null,e[1]),1&n&&ne(t,"animate",e[0])},i:$,o:$,d(e){e&&V(t),u=!1,d()}}}function Jl(e,t){if(t)for(const n of e.getElementsByClassName("st0"))n.style.fill=t}function Xl(e,t,n){let{animate:s}=t,{scanAnimColor:i}=t;return e.$$set=e=>{"animate"in e&&n(0,s=e.animate),"scanAnimColor"in e&&n(1,i=e.scanAnimColor)},[s,i]}class Zl extends We{constructor(e){super(),Ue(this,e,Xl,Yl,E,{animate:0,scanAnimColor:1})}}function Ql(e,t,n){const s=e.slice();return s[14]=t[n],s[16]=n,s}function ec(e){let t;function n(e,t){return e[5]?sc:nc}let s=n(e),i=s(e);return{c(){t=B("p"),i.c(),Z(t,"class","p kin_scan__subtitle -overlay")},m(e,n){W(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i.d()}}}function tc(e){let t;function n(e,t){return e[4]?oc:ic}let s=n(e),i=s(e);return{c(){t=B("p"),i.c(),Z(t,"class","p kin_scan__subtitle -overlay")},m(e,n){W(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i.d()}}}function nc(e){let t,n,s=m("network.scan.devices")+"";return{c(){t=G(s),n=G("...")},m(e,s){W(e,t,s),W(e,n,s)},p:$,d(e){e&&V(t),e&&V(n)}}}function sc(e){let t,n,s=m("network.scan.devices.found",e[5])+"";return{c(){t=G(s),n=G("...")},m(e,s){W(e,t,s),W(e,n,s)},p(e,n){32&n&&s!==(s=m("network.scan.devices.found",e[5])+"")&&ee(t,s)},d(e){e&&V(t),e&&V(n)}}}function ic(e){let t,n,s=m("network.scan.issues")+"";return{c(){t=G(s),n=G("...")},m(e,s){W(e,t,s),W(e,n,s)},p:$,d(e){e&&V(t),e&&V(n)}}}function oc(e){let t,n,s=m("network.scan.issues.found",e[4])+"";return{c(){t=G(s),n=G("...")},m(e,s){W(e,t,s),W(e,n,s)},p(e,n){16&n&&s!==(s=m("network.scan.issues.found",e[4])+"")&&ee(t,s)},d(e){e&&V(t),e&&V(n)}}}function lc(e){let t,n,s,i,o,l,c;function r(e,t){return(null==l||258&t)&&(l=!!e[11].includes(e[1][e[14]].data.device_status)),l?rc:cc}let a=r(e,-1),u=a(e);return{c(){t=B("div"),n=B("kin-icon"),i=K(),o=B("h5"),u.c(),c=K(),Q(n,"name",s=e[1][e[14]].icon),Q(n,"size","32"),Q(n,"class","svelte-p2qvdi"),Z(o,"class","p -secondary -small"),Z(t,"class","hns_map__device hns_tile svelte-p2qvdi"),ne(t,"-fade",e[7][e[16]])},m(e,s){W(e,t,s),U(t,n),U(t,i),U(t,o),u.m(o,null),U(t,c)},p(e,i){258&i&&s!==(s=e[1][e[14]].icon)&&Q(n,"name",s),a===(a=r(e,i))&&u?u.p(e,i):(u.d(1),u=a(e),u&&(u.c(),u.m(o,null))),128&i&&ne(t,"-fade",e[7][e[16]])},d(e){e&&V(t),u.d()}}}function cc(e){let t,n=m("network.scan.found",e[1][e[14]].nameModel)+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p(e,s){258&s&&n!==(n=m("network.scan.found",e[1][e[14]].nameModel)+"")&&ee(t,n)},d(e){e&&V(t)}}}function rc(e){let t,n=m("network.scan."+e[1][e[14]].data.device_status,e[1][e[14]].nameModel)+"";return{c(){t=G(n)},m(e,n){W(e,t,n)},p(e,s){258&s&&n!==(n=m("network.scan."+e[1][e[14]].data.device_status,e[1][e[14]].nameModel)+"")&&ee(t,n)},d(e){e&&V(t)}}}function ac(e){let t,n=e[14]&&lc(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){e[14]?n?n.p(e,s):(n=lc(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&V(t)}}}function uc(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_=m("network.scanningNetwork",e[9].networkInfo.name,e[3])+"";function k(e,t){return"public"===e[2].type?tc:ec}let w=k(e),$=w(e);r=new Zl({props:{animate:e[3]<100,scanAnimColor:e[6]}});let b=e[8],y=[];for(let m=0;m<b.length;m+=1)y[m]=ac(Ql(e,b,m));return{c(){t=B("div"),n=B("div"),s=B("div"),i=B("h2"),o=K(),$.c(),l=K(),c=B("div"),Re(r.$$.fragment),a=K(),u=B("div");for(let e=0;e<y.length;e+=1)y[e].c();d=K(),p=B("section"),h=B("kin-button"),h.textContent=`${m("global.stopScan")}`,Z(i,"class","h1 kin_scan__title -overlay"),Z(s,"class","hns_map__title svelte-p2qvdi"),Z(c,"class","hns_map__bg svelte-p2qvdi"),Q(h,"type","secondary"),Q(h,"size","large"),Q(h,"data-test","scn_progress_stopBtn"),Z(p,"class","kin_scan__actions"),Z(n,"class","hns_map svelte-p2qvdi"),Z(t,"slot","page-content")},m(m,k){W(m,t,k),U(t,n),U(n,s),U(s,i),i.innerHTML=_,U(s,o),$.m(s,null),U(n,l),U(n,c),ze(r,c,null),U(n,a),U(n,u);for(let e=0;e<y.length;e+=1)y[e].m(u,null);U(n,d),U(n,p),U(p,h),v=!0,g||(f=J(h,"click",e[10]),g=!0)},p(e,t){(!v||520&t)&&_!==(_=m("network.scanningNetwork",e[9].networkInfo.name,e[3])+"")&&(i.innerHTML=_),w===(w=k(e))&&$?$.p(e,t):($.d(1),$=w(e),$&&($.c(),$.m(s,null)));const n={};if(8&t&&(n.animate=e[3]<100),64&t&&(n.scanAnimColor=e[6]),r.$set(n),2434&t){let n;for(b=e[8],n=0;n<b.length;n+=1){const s=Ql(e,b,n);y[n]?y[n].p(s,t):(y[n]=ac(s),y[n].c(),y[n].m(u,null))}for(;n<y.length;n+=1)y[n].d(1);y.length=b.length}},i(e){v||(De(r.$$.fragment,e),v=!0)},o(e){He(r.$$.fragment,e),v=!1},d(e){e&&V(t),$.d(),Pe(r),j(y,e),g=!1,f()}}}function dc(e){let t,n;return t=new Cn({props:{cssCls:"hns",layout:"no-header",back:!1,loading:e[0],$$slots:{"page-content":[uc]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.loading=e[0]),132094&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function pc(e,t,n){let s;T(e,et,(e=>n(9,s=e)));let{loading:o}=t,{devices:l}=t,{scan:c}=t,{progress:r}=t,{issueCount:a}=t,{deviceCount:u}=t,{scanAnimColor:d}=t;const p=he(),m=["vuln_scan_in_progress","vuln_scan_completed"],h=new Array(12),v=new Array(12);let g=0;return i.view("HNS-"+c.type+"_progress"),e.$$set=e=>{"loading"in e&&n(0,o=e.loading),"devices"in e&&n(1,l=e.devices),"scan"in e&&n(2,c=e.scan),"progress"in e&&n(3,r=e.progress),"issueCount"in e&&n(4,a=e.issueCount),"deviceCount"in e&&n(5,u=e.deviceCount),"scanAnimColor"in e&&n(6,d=e.scanAnimColor)},e.$$.update=()=>{4102&e.$$.dirty&&"home"===c.type&&l&&c.getUpdatedDevices().forEach((e=>{const t=l[e];t&&(t.nameModel&&!t.nameShown||m.includes(t.data.device_status))&&(t.nameShown=!0,n(7,h[g]=!1,h),n(8,v[g]=e,v),n(7,h[g]=!0,h),n(12,g++,g),12===g&&n(12,g=0))}))},[o,l,c,r,a,u,d,h,v,s,function(){p("scanStop")},m,g]}class mc extends We{constructor(e){var t;super(),document.getElementById("svelte-p2qvdi-style")||((t=B("style")).id="svelte-p2qvdi-style",t.textContent=".hns_map.svelte-p2qvdi.svelte-p2qvdi{top:0;right:0;bottom:0;left:0;position:absolute;text-align:center}.hns_map__title.svelte-p2qvdi.svelte-p2qvdi{position:absolute;top:45%;width:100%;padding:0 4rem}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi{position:absolute;width:20rem;height:auto;padding:0;transform:translateX(-50%);opacity:0;pointer-events:none}.hns_map__device.-fade.svelte-p2qvdi.svelte-p2qvdi{animation:svelte-p2qvdi-map 5s linear}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(1){left:50%;top:68%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(2){left:80%;top:30%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(3){left:20%;top:68%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(4){left:50%;top:30%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(5){left:80%;top:68%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(6){left:20%;top:30%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(7){left:65%;top:58%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(8){left:35%;top:18%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(9){left:65%;top:18%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(10){left:35%;top:58%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(11){left:11%;top:18%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(12){left:89%;top:55%}.hns_map__bg.svelte-p2qvdi.svelte-p2qvdi{width:85%;position:absolute;left:7.5%;right:7.5%;top:50%;transform:translateY(-50%);transition:opacity 2s;pointer-events:none}.hns_tile.svelte-p2qvdi.svelte-p2qvdi{text-align:center;padding:1.2rem 0.4rem 0.4rem;min-height:9.5rem;cursor:pointer;overflow:hidden;border-radius:var(--cube-radius);display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;word-break:break-word}.hns_tile.svelte-p2qvdi kin-icon.svelte-p2qvdi{margin-bottom:0.6rem}.hns_tile.svelte-p2qvdi.svelte-p2qvdi:hover{background-color:rgba(255,255,255,0.1)}@-moz-keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-webkit-keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-o-keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",U(document.head,t)),Ue(this,e,pc,dc,E,{loading:0,devices:1,scan:2,progress:3,issueCount:4,deviceCount:5,scanAnimColor:6})}}function hc(e){let t,n;return t=new ws({props:{autoWatch:!0,devices:e[2],networkId:e[1].networkId}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.devices=e[2]),2&n&&(s.networkId=e[1].networkId),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function vc(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g="home"===e[1].type&&hc(e);return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("div"),o=B("h1"),o.textContent=`${m("network.scan.skipped")}`,l=K(),c=B("p"),c.textContent=`${m("network.scan.skipped.desc")}`,r=K(),g&&g.c(),a=K(),u=B("section"),d=B("kin-button"),d.textContent=`${m("global.done")}`,Q(n,"name","circle-critical"),Q(n,"class","kin_scan__icon"),Q(n,"size","96"),Z(o,"class","h1 kin_scan__title -overlay"),Z(c,"class","kin_scan__subtitle -overlay hns_subtitle svelte-1jaafd"),Z(i,"class","kin_scan__result"),Q(d,"size","large"),Q(d,"data-test","hns_done-global"),Z(u,"class","kin_scan__actions"),Z(t,"slot","page-content")},m(m,f){W(m,t,f),U(t,n),U(t,s),U(t,i),U(i,o),U(i,l),U(i,c),U(t,r),g&&g.m(t,null),U(t,a),U(t,u),U(u,d),p=!0,h||(v=J(d,"click",e[3]),h=!0)},p(e,n){"home"===e[1].type?g?(g.p(e,n),2&n&&De(g,1)):(g=hc(e),g.c(),De(g,1),g.m(t,a)):g&&(Oe(),He(g,1,1,(()=>{g=null})),Ae())},i(e){p||(De(g),p=!0)},o(e){He(g),p=!1},d(e){e&&V(t),g&&g.d(),h=!1,v()}}}function gc(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",back:!1,loading:e[0],$$slots:{"page-content":[vc]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.loading=e[0]),38&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function fc(e,t,n){let{loading:s}=t,{scan:i}=t,{devices4watcher:o}=t;const l=he();return e.$$set=e=>{"loading"in e&&n(0,s=e.loading),"scan"in e&&n(1,i=e.scan),"devices4watcher"in e&&n(2,o=e.devices4watcher)},[s,i,o,function(){l("scanFinish")}]}class _c extends We{constructor(e){var t;super(),document.getElementById("svelte-1jaafd-style")||((t=B("style")).id="svelte-1jaafd-style",t.textContent=".hns_subtitle.svelte-1jaafd{max-width:80%;margin-right:auto;margin-left:auto}",U(document.head,t)),Ue(this,e,fc,gc,E,{loading:0,scan:1,devices4watcher:2})}}function kc(e){let t,n,s,i,o,l,c,r,a,u,d,p,h=m("network.wifi.protecting")+"",v=e[4].networkInfo.name+"",g="home"===e[1].type&&$c(e);return{c(){t=B("kin-icon"),n=K(),s=B("h2"),s.textContent=`${m("network.scan.finished")}`,i=K(),o=B("p"),l=G(h),c=K(),r=B("strong"),a=G(v),u=K(),g&&g.c(),d=Y(),Q(t,"name","circle-ok"),Q(t,"size","128"),Q(t,"class","g-margin-bottom--20"),Z(s,"class","h2 -margins"),Z(o,"class","p -secondary -small")},m(e,m){W(e,t,m),W(e,n,m),W(e,s,m),W(e,i,m),W(e,o,m),U(o,l),U(o,c),U(o,r),U(r,a),W(e,u,m),g&&g.m(e,m),W(e,d,m),p=!0},p(e,t){(!p||16&t)&&v!==(v=e[4].networkInfo.name+"")&&ee(a,v),"home"===e[1].type?g?(g.p(e,t),2&t&&De(g,1)):(g=$c(e),g.c(),De(g,1),g.m(d.parentNode,d)):g&&(Oe(),He(g,1,1,(()=>{g=null})),Ae())},i(e){p||(De(g),p=!0)},o(e){He(g),p=!1},d(e){e&&V(t),e&&V(n),e&&V(s),e&&V(i),e&&V(o),e&&V(u),g&&g.d(e),e&&V(d)}}}function wc(e){let t,n,s;function i(e,t){return e[3]?Cc:e[5]&&!e[3]?Ic:e[6]?yc:bc}let o=i(e),l=o(e);return{c(){t=B("kin-icon"),n=K(),l.c(),s=Y(),Q(t,"name","circle-ok"),Q(t,"size","128"),Q(t,"class","g-margin-bottom--20")},m(e,i){W(e,t,i),W(e,n,i),l.m(e,i),W(e,s,i)},p(e,t){o===(o=i(e))&&l?l.p(e,t):(l.d(1),l=o(e),l&&(l.c(),l.m(s.parentNode,s)))},i:$,o:$,d(e){e&&V(t),e&&V(n),l.d(e),e&&V(s)}}}function $c(e){let t,n;return t=new ws({props:{autoWatch:!0,devices:e[2],networkId:e[1].networkId}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.devices=e[2]),2&n&&(s.networkId=e[1].networkId),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function bc(e){let t,n,s,i=m("network.looks.safe",e[4].networkInfo.name)+"",o=m("network.no.vuls")+"";return{c(){t=B("h2"),n=K(),s=B("p"),Z(t,"class","h2 -margins"),Z(s,"class","p -secondary -small hns_public__novuls")},m(e,l){W(e,t,l),t.innerHTML=i,W(e,n,l),W(e,s,l),s.innerHTML=o},p(e,n){16&n&&i!==(i=m("network.looks.safe",e[4].networkInfo.name)+"")&&(t.innerHTML=i)},d(e){e&&V(t),e&&V(n),e&&V(s)}}}function yc(e){let t;return{c(){t=B("h2"),t.textContent=`${m("network.vpn.protected")}`,Z(t,"class","h2 -margins")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function Ic(e){let t,n,s,i,o,l,c,r,a,u=m("network.vpn.maximized")+"";return{c(){t=B("h2"),t.textContent=`${m("network.smart.choice")}`,n=K(),s=B("p"),i=G(u),o=B("br"),l=K(),c=B("button"),c.textContent=`${m("network.vpn.turniton")}`,Z(t,"class","h2 -margins"),Z(c,"class","a"),Z(s,"class","p -secondary -small")},m(u,d){W(u,t,d),W(u,n,d),W(u,s,d),U(s,i),U(s,o),U(s,l),U(s,c),r||(a=J(c,"click",e[8]),r=!0)},p:$,d(e){e&&V(t),e&&V(n),e&&V(s),r=!1,a()}}}function Cc(e){let t,n,s,i,o,l,c,r=m("network.vpn.protecting")+"",a=e[4].networkInfo.name+"";return{c(){t=B("h2"),t.textContent=`${m("network.vpn.protected")}`,n=K(),s=B("p"),i=G(r),o=K(),l=B("strong"),c=G(a),Z(t,"class","h2 -margins"),Z(s,"class","p -secondary -small")},m(e,r){W(e,t,r),W(e,n,r),W(e,s,r),U(s,i),U(s,o),U(s,l),U(l,c)},p(e,t){16&t&&a!==(a=e[4].networkInfo.name+"")&&ee(c,a)},d(e){e&&V(t),e&&V(n),e&&V(s)}}}function Nc(e){let t,n,s,i,o,l,c,r,a;const u=[wc,kc],d=[];function p(e,t){return"public"===e[1].type?0:1}return n=p(e),s=d[n]=u[n](e),{c(){t=B("div"),s.c(),i=K(),o=B("div"),l=B("kin-button"),l.textContent=`${m("global.done")}`,Q(l,"size","large"),Q(l,"data-test","hns_done-global"),Z(o,"class","hns_cta svelte-1vqd2hk"),Z(t,"slot","page-content")},m(s,u){W(s,t,u),d[n].m(t,null),U(t,i),U(t,o),U(o,l),c=!0,r||(a=J(l,"click",e[7]),r=!0)},p(e,o){let l=n;n=p(e),n===l?d[n].p(e,o):(Oe(),He(d[l],1,1,(()=>{d[l]=null})),Ae(),s=d[n],s?s.p(e,o):(s=d[n]=u[n](e),s.c()),De(s,1),s.m(t,i))},i(e){c||(De(s),c=!0)},o(e){He(s),c=!1},d(e){e&&V(t),d[n].d(),r=!1,a()}}}function Ec(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",settingsUrl:Ge,backHash:"#security",loading:e[0],$$slots:{"page-content":[Nc]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.loading=e[0]),1150&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function xc(e,t,n){let s,o,l,c;T(e,it,(e=>n(3,s=e))),T(e,et,(e=>n(4,o=e))),T(e,ot,(e=>n(5,l=e))),T(e,lt,(e=>n(6,c=e)));let{loading:r}=t,{scan:a}=t,{devices4watcher:u}=t;const d=he();return a.ran||(i.view("HNS-"+a.type+"_end"),i.event("HNS-"+a.type,"Scan","Exit")),e.$$set=e=>{"loading"in e&&n(0,r=e.loading),"scan"in e&&n(1,a=e.scan),"devices4watcher"in e&&n(2,u=e.devices4watcher)},[r,a,u,s,o,l,c,function(){d("scanFinish")},function(){d("go2secureline")}]}class Sc extends We{constructor(e){var t;super(),document.getElementById("svelte-1vqd2hk-style")||((t=B("style")).id="svelte-1vqd2hk-style",t.textContent=".hns_cta.svelte-1vqd2hk{position:absolute;bottom:4rem;text-align:center;left:0;right:0}",U(document.head,t)),Ue(this,e,xc,Ec,E,{loading:0,scan:1,devices4watcher:2})}}function Tc(e,t,n){const s=e.slice();return s[30]=t[n],s}function Oc(e,t,n){const s=e.slice();return s[30]=t[n],s}function Ac(e,t,n){const s=e.slice();return s[30]=t[n],s}function Dc(e){let t,n;return t=new Cn({props:{cssCls:"hns -large-header -center-header",back:!1,$$slots:{"page-content":[vr],controls:[Uc],"page-title":[Rc]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};16383&n[0]|64&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Hc(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",settingsUrl:Ge,backHash:"#security",loading:e[2],$$slots:{"page-content":[fr]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};4&n[0]&&(s.loading=e[2]),3072&n[0]|64&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Lc(e){let t,n,s,i=m("network.no.problems")+"";return{c(){t=B("kin-icon"),n=K(),s=G(i),Q(t,"name","circle-ok"),Q(t,"size","38"),Q(t,"data-test","hns_results-ok")},m(e,i){W(e,t,i),W(e,n,i),W(e,s,i)},p:$,d(e){e&&V(t),e&&V(n),e&&V(s)}}}function Mc(e){let t,n,s,i=m("network.issues.found",e[1])+"";return{c(){t=B("kin-icon"),n=K(),s=G(i),Q(t,"name","circle-critical"),Q(t,"size","38"),Q(t,"data-test","hns_results-vulns")},m(e,i){W(e,t,i),W(e,n,i),W(e,s,i)},p(e,t){2&t[0]&&i!==(i=m("network.issues.found",e[1])+"")&&ee(s,i)},d(e){e&&V(t),e&&V(n),e&&V(s)}}}function Rc(e){let t,n;function s(e,t){return e[1]?Mc:Lc}let i=s(e),o=i(e);return{c(){t=B("div"),n=B("h2"),o.c(),Z(n,"data-test","hns_main-results-header"),Z(t,"slot","page-title")},m(e,s){W(e,t,s),U(t,n),o.m(n,null)},p(e,t){i===(i=s(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n,null)))},d(e){e&&V(t),o.d()}}}function zc(e){let t,n,s;return{c(){t=B("button"),t.textContent=`${m("network.scan.go2devices")}`,Z(t,"class","a")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[15]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Pc(e){let t,n=!e[4]&&qc(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){e[4]?n&&(n.d(1),n=null):n?n.p(e,s):(n=qc(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&V(t)}}}function qc(e){let t,n,s;return{c(){t=B("button"),t.textContent=`${m("network.rescan")}`,Z(t,"class","a")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Uc(e){let t,n,s,i=m("network.scanned.network",e[10].networkInfo.name,e[0].time)+"";function o(e,t){return"public"===e[0].type?Pc:zc}let l=o(e),c=l(e);return{c(){t=B("div"),n=G(i),s=K(),c.c(),Z(t,"slot","controls"),Z(t,"class","p -secondary g-margin-top--10")},m(e,i){W(e,t,i),U(t,n),U(t,s),c.m(t,null)},p(e,s){1025&s[0]&&i!==(i=m("network.scanned.network",e[10].networkInfo.name,e[0].time)+"")&&ee(n,i),l===(l=o(e))&&c?c.p(e,s):(c.d(1),c=l(e),c&&(c.c(),c.m(t,null)))},d(e){e&&V(t),c.d()}}}function Wc(e){let t,n,s=e[1]>e[5]&&Vc(e),i=e[5]&&Xc(e);return{c(){s&&s.c(),t=K(),i&&i.c(),n=Y()},m(e,o){s&&s.m(e,o),W(e,t,o),i&&i.m(e,o),W(e,n,o)},p(e,o){e[1]>e[5]?s?s.p(e,o):(s=Vc(e),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),e[5]?i?i.p(e,o):(i=Xc(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(e){s&&s.d(e),e&&V(t),i&&i.d(e),e&&V(n)}}}function Vc(e){let t,n,s=e[8],i=[];for(let l=0;l<s.length;l+=1)i[l]=Fc(Ac(e,s,l));let o=e[6]&&Gc(e);return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=K(),o&&o.c(),n=Y()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);W(e,t,s),o&&o.m(e,s),W(e,n,s)},p(e,l){if(66305&l[0]){let n;for(s=e[8],n=0;n<s.length;n+=1){const o=Ac(e,s,n);i[n]?i[n].p(o,l):(i[n]=Fc(o),i[n].c(),i[n].m(t.parentNode,t))}for(;n<i.length;n+=1)i[n].d(1);i.length=s.length}e[6]?o?o.p(e,l):(o=Gc(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(e){j(i,e),e&&V(t),o&&o.d(e),e&&V(n)}}}function jc(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w=e[9][e[30].deviceId].issues[e[30].pos].getRowTitle(e[0].type)+"",$="home"===e[0].type&&Bc(e);function b(){return e[23](e[30])}function y(){return e[24](e[30])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),l=B("kin-icon"),c=K(),r=B("div"),$&&$.c(),a=K(),d=K(),p=B("div"),h=B("button"),v=B("span"),v.textContent=`${m("network.show.details")}`,g=B("kin-icon"),Q(s,"name",i=e[9][e[30].deviceId].icon),Q(s,"size","24"),Q(l,"name","icon-s-fill-unsecured"),Q(l,"size","16"),Q(l,"class","row__icon__status"),Z(n,"class","row__icon hns_problems__icon svelte-ddz07g"),Z(n,"data-test","hns_results-vuln"),u=new ie(null),Z(r,"class","row__main"),Z(v,"class","row__show-on-hover span -small"),Q(g,"name","icon-s-controls-arrow-right"),Q(g,"size","16"),Q(g,"rtlflip","true"),Q(g,"class","hns_problems__status svelte-ddz07g"),Z(h,"class","a -fake"),Z(h,"title",f=e[9][e[30].deviceId].nameModel+" - "+m("network.show.details")),Z(p,"class","row__actions"),Z(t,"class","row -hoverable"),Z(t,"data-test","hns_vuln-row")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(n,o),U(n,l),U(t,c),U(t,r),$&&$.m(r,null),U(r,a),u.m(w,r),U(t,d),U(t,p),U(p,h),U(h,v),U(h,g),_||(k=[J(h,"click",b),J(t,"click",y)],_=!0)},p(t,n){e=t,768&n[0]&&i!==(i=e[9][e[30].deviceId].icon)&&Q(s,"name",i),"home"===e[0].type?$?$.p(e,n):($=Bc(e),$.c(),$.m(r,a)):$&&($.d(1),$=null),769&n[0]&&w!==(w=e[9][e[30].deviceId].issues[e[30].pos].getRowTitle(e[0].type)+"")&&u.p(w),768&n[0]&&f!==(f=e[9][e[30].deviceId].nameModel+" - "+m("network.show.details"))&&Z(h,"title",f)},d(e){e&&V(t),$&&$.d(),_=!1,C(k)}}}function Bc(e){let t,n,s,i=e[9][e[30].deviceId].nameModel+"";return{c(){t=B("strong"),n=G(i),s=G(" ")},m(e,i){W(e,t,i),U(t,n),W(e,s,i)},p(e,t){768&t[0]&&i!==(i=e[9][e[30].deviceId].nameModel+"")&&ee(n,i)},d(e){e&&V(t),e&&V(s)}}}function Fc(e){let t,n=!e[9][e[30].deviceId].issues[e[30].pos].state&&jc(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){e[9][e[30].deviceId].issues[e[30].pos].state?n&&(n.d(1),n=null):n?n.p(e,s):(n=jc(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&V(t)}}}function Gc(e){let t,n,s,i,o=m("network.rescan.needed",e[6])+"",l=e[8],c=[];for(let r=0;r<l.length;r+=1)c[r]=Jc(Oc(e,l,r));return{c(){t=B("h5"),n=G(o),s=K();for(let e=0;e<c.length;e+=1)c[e].c();i=Y(),Z(t,"class","h6 kin_table__row -title")},m(e,o){W(e,t,o),U(t,n),W(e,s,o);for(let t=0;t<c.length;t+=1)c[t].m(e,o);W(e,i,o)},p(e,t){if(64&t[0]&&o!==(o=m("network.rescan.needed",e[6])+"")&&ee(n,o),66305&t[0]){let n;for(l=e[8],n=0;n<l.length;n+=1){const s=Oc(e,l,n);c[n]?c[n].p(s,t):(c[n]=Jc(s),c[n].c(),c[n].m(i.parentNode,i))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}},d(e){e&&V(t),e&&V(s),j(c,e),e&&V(i)}}}function Kc(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$=e[9][e[30].deviceId].issues[e[30].pos].getRowTitle(e[0].type)+"",b="home"===e[0].type&&Yc(e);function y(){return e[25](e[30])}function I(){return e[26](e[30])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),l=B("kin-icon"),c=K(),r=B("div"),b&&b.c(),a=K(),d=K(),p=B("div"),h=B("button"),v=B("span"),v.textContent=`${m("network.show.details")}`,g=B("kin-icon"),_=K(),Q(s,"name",i=e[9][e[30].deviceId].icon),Q(s,"size","24"),Q(l,"name","icon-s-fill-unsecured"),Q(l,"size","16"),Q(l,"class","row__icon__status"),Z(n,"class","row__icon hns_problems__icon svelte-ddz07g"),Z(n,"data-test","hns_results-vuln"),u=new ie(null),Z(r,"class","row__main"),Z(v,"class","row__show-on-hover span -small"),Q(g,"name","icon-s-controls-arrow-right"),Q(g,"size","16"),Q(g,"rtlflip","true"),Q(g,"class","hns_problems__status svelte-ddz07g"),Z(h,"class","a -fake"),Z(h,"title",f=e[9][e[30].deviceId].nameModel+" - "+m("network.show.details")),Z(p,"class","row__actions"),Z(t,"class","row -hoverable")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(n,o),U(n,l),U(t,c),U(t,r),b&&b.m(r,null),U(r,a),u.m($,r),U(t,d),U(t,p),U(p,h),U(h,v),U(h,g),U(t,_),k||(w=[J(h,"click",y),J(t,"click",I)],k=!0)},p(t,n){e=t,768&n[0]&&i!==(i=e[9][e[30].deviceId].icon)&&Q(s,"name",i),"home"===e[0].type?b?b.p(e,n):(b=Yc(e),b.c(),b.m(r,a)):b&&(b.d(1),b=null),769&n[0]&&$!==($=e[9][e[30].deviceId].issues[e[30].pos].getRowTitle(e[0].type)+"")&&u.p($),768&n[0]&&f!==(f=e[9][e[30].deviceId].nameModel+" - "+m("network.show.details"))&&Z(h,"title",f)},d(e){e&&V(t),b&&b.d(),k=!1,C(w)}}}function Yc(e){let t,n,s,i=e[9][e[30].deviceId].nameModel+"";return{c(){t=B("strong"),n=G(i),s=G(" ")},m(e,i){W(e,t,i),U(t,n),W(e,s,i)},p(e,t){768&t[0]&&i!==(i=e[9][e[30].deviceId].nameModel+"")&&ee(n,i)},d(e){e&&V(t),e&&V(s)}}}function Jc(e){let t,n="resolved"===e[9][e[30].deviceId].issues[e[30].pos].state&&Kc(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){"resolved"===e[9][e[30].deviceId].issues[e[30].pos].state?n?n.p(e,s):(n=Kc(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&V(t)}}}function Xc(e){let t,n,s,i,o=m("network.ignored.problems",e[5])+"",l=e[8],c=[];for(let r=0;r<l.length;r+=1)c[r]=er(Tc(e,l,r));return{c(){t=B("h5"),n=G(o),s=K();for(let e=0;e<c.length;e+=1)c[e].c();i=Y(),Z(t,"class","h6 kin_table__row -title")},m(e,o){W(e,t,o),U(t,n),W(e,s,o);for(let t=0;t<c.length;t+=1)c[t].m(e,o);W(e,i,o)},p(e,t){if(32&t[0]&&o!==(o=m("network.ignored.problems",e[5])+"")&&ee(n,o),66305&t[0]){let n;for(l=e[8],n=0;n<l.length;n+=1){const s=Tc(e,l,n);c[n]?c[n].p(s,t):(c[n]=er(s),c[n].c(),c[n].m(i.parentNode,i))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}},d(e){e&&V(t),e&&V(s),j(c,e),e&&V(i)}}}function Zc(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k=e[9][e[30].deviceId].issues[e[30].pos].getRowTitle(e[0].type)+"",w="home"===e[0].type&&Qc(e);function $(){return e[27](e[30])}function b(){return e[28](e[30])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),l=B("div"),w&&w.c(),c=K(),a=K(),u=B("div"),d=B("button"),p=B("span"),p.textContent=`${m("network.show.details")}`,h=B("kin-icon"),g=K(),Q(s,"name",i=e[9][e[30].deviceId].icon),Q(s,"size","24"),Z(n,"class","row__icon hns_problems__icon svelte-ddz07g"),Z(n,"data-test","hns_results-vuln"),r=new ie(null),Z(l,"class","row__main"),Z(p,"class","row__show-on-hover span -small"),Q(h,"name","icon-s-controls-arrow-right"),Q(h,"size","16"),Q(h,"rtlflip","true"),Q(h,"class","hns_problems__status svelte-ddz07g"),Z(d,"class","a -fake"),Z(d,"title",v=e[9][e[30].deviceId].nameModel+" - "+m("network.show.details")),Z(u,"class","row__actions"),Z(t,"class","row -hoverable")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(t,o),U(t,l),w&&w.m(l,null),U(l,c),r.m(k,l),U(t,a),U(t,u),U(u,d),U(d,p),U(d,h),U(t,g),f||(_=[J(d,"click",$),J(t,"click",b)],f=!0)},p(t,n){e=t,768&n[0]&&i!==(i=e[9][e[30].deviceId].icon)&&Q(s,"name",i),"home"===e[0].type?w?w.p(e,n):(w=Qc(e),w.c(),w.m(l,c)):w&&(w.d(1),w=null),769&n[0]&&k!==(k=e[9][e[30].deviceId].issues[e[30].pos].getRowTitle(e[0].type)+"")&&r.p(k),768&n[0]&&v!==(v=e[9][e[30].deviceId].nameModel+" - "+m("network.show.details"))&&Z(d,"title",v)},d(e){e&&V(t),w&&w.d(),f=!1,C(_)}}}function Qc(e){let t,n,s,i=e[9][e[30].deviceId].nameModel+"";return{c(){t=B("strong"),n=G(i),s=G(" ")},m(e,i){W(e,t,i),U(t,n),W(e,s,i)},p(e,t){768&t[0]&&i!==(i=e[9][e[30].deviceId].nameModel+"")&&ee(n,i)},d(e){e&&V(t),e&&V(s)}}}function er(e){let t,n="skipped"===e[9][e[30].deviceId].issues[e[30].pos].state&&Zc(e);return{c(){n&&n.c(),t=Y()},m(e,s){n&&n.m(e,s),W(e,t,s)},p(e,s){"skipped"===e[9][e[30].deviceId].issues[e[30].pos].state?n?n.p(e,s):(n=Zc(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&V(t)}}}function tr(e){let t,n=e[1]&&Wc(e);return{c(){t=B("div"),n&&n.c(),Z(t,"slot","view-content"),Z(t,"class","hns_problems svelte-ddz07g")},m(e,s){W(e,t,s),n&&n.m(t,null)},p(e,s){e[1]?n?n.p(e,s):(n=Wc(e),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(e){e&&V(t),n&&n.d()}}}function nr(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("global.done")}`,Q(t,"size","small"),Q(t,"data-test","hns_done-global")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[21]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function sr(e){let t,n,s,i,o;function l(e,t){return e[7]?lr:or}let c=l(e),r=c(e);return{c(){r.c(),t=K(),n=B("div"),s=B("button"),s.textContent=`${m("global.skipForNow")}`,Z(s,"class","a"),Z(n,"class","kin_actions__right")},m(l,c){r.m(l,c),W(l,t,c),W(l,n,c),U(n,s),i||(o=J(s,"click",e[19]),i=!0)},p(e,n){c===(c=l(e))&&r?r.p(e,n):(r.d(1),r=c(e),r&&(r.c(),r.m(t.parentNode,t)))},d(e){r.d(e),e&&V(t),e&&V(n),i=!1,o()}}}function ir(e){let t;function n(e,t){return e[1]&&!e[7]?ur:ar}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function or(e){let t,n,s,i,o,l;return{c(){t=B("div"),n=B("p"),n.textContent=`${m("network.fix.first.problem")}`,s=K(),i=B("kin-button"),i.textContent=`${m("network.issue.howtofix")}`,Z(n,"class","g-margin-bottom--5"),Q(i,"size","small"),Z(t,"class","g-align--center")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=J(i,"click",e[18]),o=!0)},p:$,d(e){e&&V(t),o=!1,l()}}}function lr(e){let t;function n(e,t){return e[6]?rr:cr}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function cr(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("global.done")}`,Q(t,"size","small"),Q(t,"data-test","hns_done-global")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[21]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function rr(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("network.rescan")}`,Q(t,"size","small")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function ar(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("global.done")}`,Q(t,"size","small"),Q(t,"data-test","hns_done-global")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[21]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function ur(e){let t,n,s,i,o,l,c,r,a;function u(e,t){return e[11]&&!e[12]?mr:e[13]?pr:e[11]||e[13]?void 0:dr}let d=u(e),p=d&&d(e);return{c(){t=B("div"),p&&p.c(),n=K(),s=B("kin-button"),i=G(e[3]),o=K(),l=B("div"),c=B("button"),c.textContent=`${m("global.skipForNow")}`,Q(s,"size","small"),Q(s,"data-test","vpn_resolve"),Z(t,"class","g-align--center"),Z(c,"class","a"),Z(c,"data-test","scan_skip-all-btn"),Z(l,"class","kin_actions__right")},m(u,d){W(u,t,d),p&&p.m(t,null),U(t,n),U(t,s),U(s,i),W(u,o,d),W(u,l,d),U(l,c),r||(a=[J(s,"click",e[17]),J(c,"click",e[19])],r=!0)},p(e,s){d===(d=u(e))&&p?p.p(e,s):(p&&p.d(1),p=d&&d(e),p&&(p.c(),p.m(t,n))),8&s[0]&&ee(i,e[3])},d(e){e&&V(t),p&&p.d(),e&&V(o),e&&V(l),r=!1,C(a)}}}function dr(e){let t;return{c(){t=B("p"),t.textContent=`${m("network.vpn.turn.on.buy")}`,Z(t,"class","g-margin-bottom--5")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function pr(e){let t;return{c(){t=B("p"),t.textContent=`${m("network.vpn.other.turn.on")}`,Z(t,"class","g-margin-bottom--5")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function mr(e){let t;return{c(){t=B("p"),t.textContent=`${m("network.vpn.turn.on.desc")}`,Z(t,"class","g-margin-bottom--5")},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function hr(e){let t;function n(e,t){return"public"===e[0].type?ir:e[1]?sr:nr}let s=n(e),i=s(e);return{c(){t=B("div"),i.c(),Z(t,"slot","view-actions")},m(e,n){W(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i.d()}}}function vr(e){let t,n,s;return n=new zn({props:{actionbar:"true",csscls:"-center",loading:e[2],$$slots:{"view-actions":[hr],"view-content":[tr]},$$scope:{ctx:e}}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"slot","page-content")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};4&t[0]&&(s.loading=e[2]),15339&t[0]|64&t[1]&&(s.$$scope={dirty:t,ctx:e}),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function gr(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("network.vpn.get")}`,Q(t,"class","g-margin-right--10"),Q(t,"data-test","hns_get-vpn")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[14]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function fr(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g=m("network.looks.safe",e[10].networkInfo.name)+"",f=m("network.no.vuls")+"",_=m("global.done")+"",k=!e[11]&&gr(e);return{c(){t=B("div"),n=B("div"),s=K(),i=B("h2"),o=K(),l=B("p"),c=K(),r=B("div"),k&&k.c(),a=K(),u=B("kin-button"),d=G(_),Z(n,"class","svg -wifi-safe hns_image svelte-ddz07g"),Z(n,"data-test","hns_wifi-safe-image"),Z(i,"class","h2 -margins"),Z(l,"class","p -secondary -small hns_public__novuls svelte-ddz07g"),Q(u,"type",p=e[11]?"":"secondary"),Q(u,"data-test","hns_done-global"),Z(r,"class","hns_cta svelte-ddz07g"),Z(t,"slot","page-content")},m(p,m){W(p,t,m),U(t,n),U(t,s),U(t,i),i.innerHTML=g,U(t,o),U(t,l),l.innerHTML=f,U(t,c),U(t,r),k&&k.m(r,null),U(r,a),U(r,u),U(u,d),h||(v=J(u,"click",e[22]),h=!0)},p(e,t){1024&t[0]&&g!==(g=m("network.looks.safe",e[10].networkInfo.name)+"")&&(i.innerHTML=g),e[11]?k&&(k.d(1),k=null):k?k.p(e,t):(k=gr(e),k.c(),k.m(r,a)),2048&t[0]&&p!==(p=e[11]?"":"secondary")&&Q(u,"type",p)},d(e){e&&V(t),k&&k.d(),h=!1,v()}}}function _r(e){let t,n,s,i;const o=[Hc,Dc],l=[];function c(e,t){return"public"!==e[0].type||e[1]?1:0}return t=c(e),n=l[t]=o[t](e),{c(){n.c(),s=Y()},m(e,n){l[t].m(e,n),W(e,s,n),i=!0},p(e,i){let r=t;t=c(e),t===r?l[t].p(e,i):(Oe(),He(l[r],1,1,(()=>{l[r]=null})),Ae(),n=l[t],n?n.p(e,i):(n=l[t]=o[t](e),n.c()),De(n,1),n.m(s.parentNode,s))},i(e){i||(De(n),i=!0)},o(e){He(n),i=!1},d(e){l[t].d(e),e&&V(s)}}}function kr(e,t,n){let s,i,o,l;function c(e,t){k("showIssue",{deviceId:e,pos:t})}T(e,et,(e=>n(10,s=e))),T(e,ot,(e=>n(11,i=e))),T(e,it,(e=>n(12,o=e))),T(e,lt,(e=>n(13,l=e)));let{scan:r}=t,{issueCount:a}=t,{loading:u}=t,{solveText:d}=t,{scanStopping:p}=t,{issuesSkippedCount:m}=t,{issuesSolvedCount:h}=t,{allIssuesSolved:v}=t,{issues:g}=t,{devices:_}=t;const k=he();return e.$$set=e=>{"scan"in e&&n(0,r=e.scan),"issueCount"in e&&n(1,a=e.issueCount),"loading"in e&&n(2,u=e.loading),"solveText"in e&&n(3,d=e.solveText),"scanStopping"in e&&n(4,p=e.scanStopping),"issuesSkippedCount"in e&&n(5,m=e.issuesSkippedCount),"issuesSolvedCount"in e&&n(6,h=e.issuesSolvedCount),"allIssuesSolved"in e&&n(7,v=e.allIssuesSolved),"issues"in e&&n(8,g=e.issues),"devices"in e&&n(9,_=e.devices)},[r,a,u,d,p,m,h,v,g,_,s,i,o,l,function(){f.openWindow(451,{p_scr:"hns"})},function(){k("showDevices")},c,function(){k("resolve")},function(){k("showNextIssue")},function(){k("skipAllIssuesShow")},function(){k("rescan")},function(){k("scanDone")},function(){k("scanFinish")},e=>c(e.deviceId,e.pos),e=>c(e.deviceId,e.pos),e=>c(e.deviceId,e.pos),e=>c(e.deviceId,e.pos),e=>c(e.deviceId,e.pos),e=>c(e.deviceId,e.pos)]}class wr extends We{constructor(e){var t;super(),document.getElementById("svelte-ddz07g-style")||((t=B("style")).id="svelte-ddz07g-style",t.textContent=".hns_problems.svelte-ddz07g{padding-top:3rem}.hns_problems__icon.svelte-ddz07g{background-color:rgba(255,255,255,0.1);padding:1rem;border-radius:5rem}.hns_problems__status.svelte-ddz07g{width:2.5rem;display:inline-block;text-align:end}.hns_public__novuls.svelte-ddz07g{margin-bottom:5rem;padding-bottom:3rem}.hns_cta.svelte-ddz07g{position:absolute;bottom:4rem;text-align:center;left:0;right:0}.hns_image.svelte-ddz07g{font-size:100;margin-bottom:5rem}",U(document.head,t)),Ue(this,e,kr,_r,E,{scan:0,issueCount:1,loading:2,solveText:3,scanStopping:4,issuesSkippedCount:5,issuesSolvedCount:6,allIssuesSolved:7,issues:8,devices:9},[-1,-1])}}function $r(e,t,n){const s=e.slice();return s[30]=t[n],s}function br(e,t,n){const s=e.slice();return s[30]=t[n],s}function yr(e){let t,n,s,i=m("network.scan.vuln.no")+"";return{c(){t=B("kin-icon"),n=K(),s=G(i),Q(t,"name","circle-ok"),Q(t,"size","38"),Q(t,"data-test","hns_results-ok")},m(e,i){W(e,t,i),W(e,n,i),W(e,s,i)},p:$,d(e){e&&V(t),e&&V(n),e&&V(s)}}}function Ir(e){let t,n,s,i=m("network.scan.vuln.devices",e[3])+"";return{c(){t=B("kin-icon"),n=K(),s=G(i),Q(t,"name","circle-critical"),Q(t,"size","38"),Q(t,"data-test","hns_results-vulns")},m(e,i){W(e,t,i),W(e,n,i),W(e,s,i)},p(e,t){8&t[0]&&i!==(i=m("network.scan.vuln.devices",e[3])+"")&&ee(s,i)},d(e){e&&V(t),e&&V(n),e&&V(s)}}}function Cr(e){let t,n;function s(e,t){return e[3]?Ir:yr}let i=s(e),o=i(e);return{c(){t=B("div"),n=B("h2"),o.c(),Z(t,"slot","page-title")},m(e,s){W(e,t,s),U(t,n),o.m(n,null)},p(e,t){i===(i=s(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n,null)))},d(e){e&&V(t),o.d()}}}function Nr(e){let t,n,s;return{c(){t=B("button"),t.textContent=`${m("network.rescan")}`,Z(t,"class","a"),Z(t,"data-test","network_rescan-btn")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Er(e){let t,n,s,i=m("network.scanned.network",e[13].networkInfo.name,e[0].time)+"",o=!e[4]&&Nr(e);return{c(){t=B("p"),n=G(i),s=K(),o&&o.c(),Z(t,"slot","controls"),Z(t,"class","p -secondary g-margin-top--10")},m(e,i){W(e,t,i),U(t,n),U(t,s),o&&o.m(t,null)},p(e,s){8193&s[0]&&i!==(i=m("network.scanned.network",e[13].networkInfo.name,e[0].time)+"")&&ee(n,i),e[4]?o&&(o.d(1),o=null):o?o.p(e,s):(o=Nr(e),o.c(),o.m(t,null))},d(e){e&&V(t),o&&o.d()}}}function xr(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$,b,y,I=(e[1][e[6]].nameModel||m("network.device.name.unknown"))+"",N=e[14](e[1][e[6]])+"",E=e[1][e[6]].issues.length&&Sr();return{c(){t=B("div"),n=B("h5"),n.textContent=`${m("network.computer")}`,s=K(),i=B("div"),o=B("div"),l=B("kin-icon"),r=K(),E&&E.c(),a=K(),u=B("div"),d=B("p"),p=G(I),h=K(),v=B("div"),g=K(),f=B("div"),_=B("button"),k=B("span"),k.textContent=`${m("network.show.details")}`,w=B("kin-icon"),Z(n,"class","h6"),Z(t,"role","row"),Z(t,"class","kin_table__row -title svelte-1wge2r3"),Q(l,"name",c=e[1][e[6]].icon),Q(l,"size","24"),Z(o,"class","kin_table__icon"),Z(d,"class","g-ellipsis"),Z(v,"class","p -small"),Z(k,"class","kin_table__show-on-hover"),Q(w,"name","icon-s-controls-arrow-right"),Q(w,"size","16"),Q(w,"rtlflip","true"),Q(w,"class","hns_problems__status svelte-1wge2r3"),Z(_,"class","a -fake"),Z(_,"title",$=(e[1][e[6]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details")),Z(f,"class","kin_table__end"),Z(i,"role","row"),Z(i,"class","kin_table__row -clickable svelte-1wge2r3"),Z(i,"data-test","computer_show-details")},m(c,m){W(c,t,m),U(t,n),W(c,s,m),W(c,i,m),U(i,o),U(o,l),U(o,r),E&&E.m(o,null),U(i,a),U(i,u),U(u,d),U(d,p),U(i,h),U(i,v),v.innerHTML=N,U(i,g),U(i,f),U(f,_),U(_,k),U(_,w),b||(y=[J(_,"click",e[21]),J(i,"click",e[22])],b=!0)},p(e,t){66&t[0]&&c!==(c=e[1][e[6]].icon)&&Q(l,"name",c),e[1][e[6]].issues.length?E||(E=Sr(),E.c(),E.m(o,null)):E&&(E.d(1),E=null),66&t[0]&&I!==(I=(e[1][e[6]].nameModel||m("network.device.name.unknown"))+"")&&ee(p,I),66&t[0]&&N!==(N=e[14](e[1][e[6]])+"")&&(v.innerHTML=N),66&t[0]&&$!==($=(e[1][e[6]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details"))&&Z(_,"title",$)},d(e){e&&V(t),e&&V(s),e&&V(i),E&&E.d(),b=!1,C(y)}}}function Sr(e){let t;return{c(){t=B("kin-icon"),Q(t,"name","icon-s-fill-unsecured"),Q(t,"size","16"),Q(t,"class","hns_devices__icon__status svelte-1wge2r3"),Q(t,"data-test","hns_results-vuln")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Tr(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$,b,y,I=(e[1][e[7]].nameModel||m("network.device.name.unknown"))+"",N=e[14](e[1][e[7]])+"",E=e[1][e[7]].issues.length&&Or();return{c(){t=B("div"),n=B("h5"),n.textContent=`${m("network.scan.heading.router")}`,s=K(),i=B("div"),o=B("div"),l=B("kin-icon"),r=K(),E&&E.c(),a=K(),u=B("div"),d=B("p"),p=G(I),h=K(),v=B("div"),g=K(),f=B("div"),_=B("button"),k=B("span"),k.textContent=`${m("network.show.details")}`,w=B("kin-icon"),Z(n,"class","h6"),Z(t,"role","row"),Z(t,"class","kin_table__row -title svelte-1wge2r3"),Q(l,"name",c=e[1][e[7]].icon),Q(l,"size","24"),Z(o,"class","kin_table__icon"),Z(d,"class","g-ellipsis"),Z(v,"class","p -small"),Z(k,"class","kin_table__show-on-hover"),Q(w,"name","icon-s-controls-arrow-right"),Q(w,"size","16"),Q(w,"rtlflip","true"),Q(w,"class","hns_problems__status svelte-1wge2r3"),Z(_,"class","a -fake"),Z(_,"title",$=(e[1][e[7]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details")),Z(f,"class","kin_table__end"),Z(i,"role","row"),Z(i,"class","kin_table__row -clickable svelte-1wge2r3"),Z(i,"data-test","router_show-details")},m(c,m){W(c,t,m),U(t,n),W(c,s,m),W(c,i,m),U(i,o),U(o,l),U(o,r),E&&E.m(o,null),U(i,a),U(i,u),U(u,d),U(d,p),U(i,h),U(i,v),v.innerHTML=N,U(i,g),U(i,f),U(f,_),U(_,k),U(_,w),b||(y=[J(_,"click",e[23]),J(i,"click",e[24])],b=!0)},p(e,t){130&t[0]&&c!==(c=e[1][e[7]].icon)&&Q(l,"name",c),e[1][e[7]].issues.length?E||(E=Or(),E.c(),E.m(o,null)):E&&(E.d(1),E=null),130&t[0]&&I!==(I=(e[1][e[7]].nameModel||m("network.device.name.unknown"))+"")&&ee(p,I),130&t[0]&&N!==(N=e[14](e[1][e[7]])+"")&&(v.innerHTML=N),130&t[0]&&$!==($=(e[1][e[7]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details"))&&Z(_,"title",$)},d(e){e&&V(t),e&&V(s),e&&V(i),E&&E.d(),b=!1,C(y)}}}function Or(e){let t;return{c(){t=B("kin-icon"),Q(t,"name","icon-s-fill-unsecured"),Q(t,"size","16"),Q(t,"class","hns_devices__icon__status svelte-1wge2r3"),Q(t,"data-test","hns_results-vuln")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Ar(e){let t,n,s,i,o,l=m("network.other.devices",e[9].length)+"",c=e[9],r=[];for(let a=0;a<c.length;a+=1)r[a]=Hr(br(e,c,a));return{c(){t=B("div"),n=B("h5"),s=G(l),i=K();for(let e=0;e<r.length;e+=1)r[e].c();o=Y(),Z(n,"class","h6"),Z(t,"role","row"),Z(t,"class","kin_table__row -title svelte-1wge2r3")},m(e,l){W(e,t,l),U(t,n),U(n,s),W(e,i,l);for(let t=0;t<r.length;t+=1)r[t].m(e,l);W(e,o,l)},p(e,t){if(512&t[0]&&l!==(l=m("network.other.devices",e[9].length)+"")&&ee(s,l),82434&t[0]){let n;for(c=e[9],n=0;n<c.length;n+=1){const s=br(e,c,n);r[n]?r[n].p(s,t):(r[n]=Hr(s),r[n].c(),r[n].m(o.parentNode,o))}for(;n<r.length;n+=1)r[n].d(1);r.length=c.length}},d(e){e&&V(t),e&&V(i),j(r,e),e&&V(o)}}}function Dr(e){let t;return{c(){t=B("kin-icon"),Q(t,"name","icon-s-fill-unsecured"),Q(t,"size","16"),Q(t,"class","hns_devices__icon__status svelte-1wge2r3"),Q(t,"data-test","hns_results-vuln")},m(e,n){W(e,t,n)},d(e){e&&V(t)}}}function Hr(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$,b=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+"",y=e[14](e[1][e[30]])+"",I=e[1][e[30]].issues.length&&Dr();function N(){return e[25](e[30])}function E(){return e[26](e[30])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),I&&I.c(),l=K(),c=B("div"),r=B("p"),a=G(b),u=K(),d=B("div"),p=K(),h=B("div"),v=B("button"),g=B("span"),g.textContent=`${m("network.show.details")}`,f=B("kin-icon"),k=K(),Q(s,"name",i=e[1][e[30]].icon),Q(s,"size","24"),Z(n,"class","kin_table__icon"),Z(r,"class","g-ellipsis"),Z(d,"class","p -small"),Z(g,"class","kin_table__show-on-hover"),Q(f,"name","icon-s-controls-arrow-right"),Q(f,"size","16"),Q(f,"rtlflip","true"),Q(f,"class","hns_problems__status svelte-1wge2r3"),Z(v,"class","a -fake"),Z(v,"title",_=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details")),Z(h,"class","kin_table__end"),Z(t,"role","row"),Z(t,"class","kin_table__row -clickable svelte-1wge2r3"),Z(t,"data-test","device_show-details")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(n,o),I&&I.m(n,null),U(t,l),U(t,c),U(c,r),U(r,a),U(t,u),U(t,d),d.innerHTML=y,U(t,p),U(t,h),U(h,v),U(v,g),U(v,f),U(t,k),w||($=[J(v,"click",N),J(t,"click",E)],w=!0)},p(t,o){e=t,514&o[0]&&i!==(i=e[1][e[30]].icon)&&Q(s,"name",i),e[1][e[30]].issues.length?I||(I=Dr(),I.c(),I.m(n,null)):I&&(I.d(1),I=null),514&o[0]&&b!==(b=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+"")&&ee(a,b),514&o[0]&&y!==(y=e[14](e[1][e[30]])+"")&&(d.innerHTML=y),514&o[0]&&_!==(_=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details"))&&Z(v,"title",_)},d(e){e&&V(t),I&&I.d(),w=!1,C($)}}}function Lr(e){let t,n,s,i,o,l=m("network.shadow.devices",e[8].length)+"",c=e[8],r=[];for(let a=0;a<c.length;a+=1)r[a]=Mr($r(e,c,a));return{c(){t=B("div"),n=B("h5"),s=G(l),i=K();for(let e=0;e<r.length;e+=1)r[e].c();o=Y(),Z(n,"class","h6"),Z(t,"role","row"),Z(t,"class","kin_table__row -title svelte-1wge2r3")},m(e,l){W(e,t,l),U(t,n),U(n,s),W(e,i,l);for(let t=0;t<r.length;t+=1)r[t].m(e,l);W(e,o,l)},p(e,t){if(256&t[0]&&l!==(l=m("network.shadow.devices",e[8].length)+"")&&ee(s,l),65794&t[0]){let n;for(c=e[8],n=0;n<c.length;n+=1){const s=$r(e,c,n);r[n]?r[n].p(s,t):(r[n]=Mr(s),r[n].c(),r[n].m(o.parentNode,o))}for(;n<r.length;n+=1)r[n].d(1);r.length=c.length}},d(e){e&&V(t),e&&V(i),j(r,e),e&&V(o)}}}function Mr(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k,w,$=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+"";function b(){return e[27](e[30])}function y(){return e[28](e[30])}return{c(){t=B("div"),n=B("div"),s=B("kin-icon"),o=K(),l=B("div"),c=B("p"),r=G($),a=K(),u=B("div"),d=K(),p=B("div"),h=B("button"),v=B("span"),v.textContent=`${m("network.show.details")}`,g=B("kin-icon"),_=K(),Q(s,"name",i=e[1][e[30]].icon),Q(s,"size","24"),Z(n,"class","kin_table__icon"),Z(c,"class","g-ellipsis"),Z(v,"class","kin_table__show-on-hover"),Q(g,"name","icon-s-controls-arrow-right"),Q(g,"size","16"),Q(g,"rtlflip","true"),Q(g,"class","hns_problems__status svelte-1wge2r3"),Z(h,"class","a -fake"),Z(h,"title",f=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details")),Z(p,"class","kin_table__end"),Z(t,"role","row"),Z(t,"class","kin_table__row -hoverable svelte-1wge2r3"),Z(t,"data-test","device_show-details")},m(e,i){W(e,t,i),U(t,n),U(n,s),U(t,o),U(t,l),U(l,c),U(c,r),U(t,a),U(t,u),U(t,d),U(t,p),U(p,h),U(h,v),U(h,g),U(t,_),k||(w=[J(h,"click",b),J(t,"click",y)],k=!0)},p(t,n){e=t,258&n[0]&&i!==(i=e[1][e[30]].icon)&&Q(s,"name",i),258&n[0]&&$!==($=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+"")&&ee(r,$),258&n[0]&&f!==(f=(e[1][e[30]].nameModel||m("network.device.name.unknown"))+" - "+m("network.show.details"))&&Z(h,"title",f)},d(e){e&&V(t),k=!1,C(w)}}}function Rr(e){let t,n,s,i,o,l,c=e[6]&&xr(e),r=e[7]&&Tr(e),a=e[9].length&&Ar(e),u=e[8].length&&Lr(e);return{c(){t=B("div"),n=B("kin-table"),s=B("div"),c&&c.c(),i=K(),r&&r.c(),o=K(),a&&a.c(),l=K(),u&&u.c(),Z(s,"slot","table-body"),Q(n,"class","hns_devices svelte-1wge2r3"),Z(t,"slot","view-content")},m(e,d){W(e,t,d),U(t,n),U(n,s),c&&c.m(s,null),U(s,i),r&&r.m(s,null),U(s,o),a&&a.m(s,null),U(s,l),u&&u.m(s,null)},p(e,t){e[6]?c?c.p(e,t):(c=xr(e),c.c(),c.m(s,i)):c&&(c.d(1),c=null),e[7]?r?r.p(e,t):(r=Tr(e),r.c(),r.m(s,o)):r&&(r.d(1),r=null),e[9].length?a?a.p(e,t):(a=Ar(e),a.c(),a.m(s,l)):a&&(a.d(1),a=null),e[8].length?u?u.p(e,t):(u=Lr(e),u.c(),u.m(s,null)):u&&(u.d(1),u=null)},d(e){e&&V(t),c&&c.d(),r&&r.d(),a&&a.d(),u&&u.d()}}}function zr(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("global.done")}`,Q(t,"size","small"),Q(t,"data-test","scan_done-btn")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Pr(e){let t,n,s,i,o;function l(e,t){return e[11]?Ur:qr}let c=l(e),r=c(e);return{c(){r.c(),t=K(),n=B("div"),s=B("button"),s.textContent=`${m("global.skipForNow")}`,Z(s,"class","a"),Z(s,"data-test","scan_skip-all-btn"),Z(n,"class","kin_actions__right")},m(l,c){r.m(l,c),W(l,t,c),W(l,n,c),U(n,s),i||(o=J(s,"click",e[18]),i=!0)},p(e,n){c===(c=l(e))&&r?r.p(e,n):(r.d(1),r=c(e),r&&(r.c(),r.m(t.parentNode,t)))},d(e){r.d(e),e&&V(t),e&&V(n),i=!1,o()}}}function qr(e){let t;function n(e,t){return 1===e[3]?Vr:Wr}let s=n(e),i=s(e);return{c(){t=B("div"),i.c(),Z(t,"class","g-align--center")},m(e,n){W(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i.d()}}}function Ur(e){let t;function n(e,t){return e[12]?Br:jr}let s=n(e),i=s(e);return{c(){i.c(),t=Y()},m(e,n){i.m(e,n),W(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&V(t)}}}function Wr(e){let t,n,s,i,o;return{c(){t=B("p"),t.textContent=`${m("network.issue.look")}`,n=K(),s=B("kin-button"),s.textContent=`${m("network.show.problems")}`,Z(t,"class","g-margin-bottom--5"),Q(s,"size","small"),Q(s,"data-test","scan_show-issues-btn")},m(l,c){W(l,t,c),W(l,n,c),W(l,s,c),i||(o=J(s,"click",e[15]),i=!0)},p:$,d(e){e&&V(t),e&&V(n),e&&V(s),i=!1,o()}}}function Vr(e){let t,n,s,i,o,l,c=m("network.fix.device.problem",e[1][e[2][0].deviceId].nameModel)+"";return{c(){t=B("p"),n=G(c),s=K(),i=B("kin-button"),i.textContent=`${m("network.issue.howtofix")}`,Z(t,"class","g-margin-bottom--5"),Q(i,"size","small"),Q(i,"data-test","scan_fix-issues-btn")},m(c,r){W(c,t,r),U(t,n),W(c,s,r),W(c,i,r),o||(l=J(i,"click",e[17]),o=!0)},p(e,t){6&t[0]&&c!==(c=m("network.fix.device.problem",e[1][e[2][0].deviceId].nameModel)+"")&&ee(n,c)},d(e){e&&V(t),e&&V(s),e&&V(i),o=!1,l()}}}function jr(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("global.done")}`,Q(t,"size","small"),Q(t,"data-test","scan_done-btn")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Br(e){let t,n,s;return{c(){t=B("kin-button"),t.textContent=`${m("network.rescan")}`,Q(t,"size","small"),Q(t,"data-test","network_rescan-btn")},m(i,o){W(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:$,d(e){e&&V(t),n=!1,s()}}}function Fr(e){let t;function n(e,t){return e[10]?Pr:zr}let s=n(e),i=s(e);return{c(){t=B("div"),i.c(),Z(t,"slot","view-actions")},m(e,n){W(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i.d()}}}function Gr(e){let t,n,s;return n=new zn({props:{loading:e[5],csscls:"-center -actions",actionbar:"true",$$slots:{"view-actions":[Fr],"view-content":[Rr]},$$scope:{ctx:e}}}),{c(){t=B("div"),Re(n.$$.fragment),Z(t,"slot","page-content")},m(e,i){W(e,t,i),ze(n,t,null),s=!0},p(e,t){const s={};32&t[0]&&(s.loading=e[5]),8142&t[0]|16&t[1]&&(s.$$scope={dirty:t,ctx:e}),n.$set(s)},i(e){s||(De(n.$$.fragment,e),s=!0)},o(e){He(n.$$.fragment,e),s=!1},d(e){e&&V(t),Pe(n)}}}function Kr(e){let t,n;return t=new Cn({props:{cssCls:"hns -large-header -center-header",back:!1,$$slots:{"page-content":[Gr],controls:[Er],"page-title":[Cr]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};16383&n[0]|16&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Yr(e,t,n){let s;function i(e){k("showDevice",e)}T(e,et,(e=>n(13,s=e)));let{scan:o}=t,{devices:l}=t,{issues:c}=t,{issuedDevicesCount:r}=t,{scanStopping:a}=t,{loading:u}=t,{myDeviceId:d}=t,{myRouterId:p}=t,{shadowDevices:h}=t,{devicesAroundMe:v}=t,{issueCount:g}=t,{allIssuesSolved:f}=t,{issuesSolvedCount:_}=t;const k=he();return e.$$set=e=>{"scan"in e&&n(0,o=e.scan),"devices"in e&&n(1,l=e.devices),"issues"in e&&n(2,c=e.issues),"issuedDevicesCount"in e&&n(3,r=e.issuedDevicesCount),"scanStopping"in e&&n(4,a=e.scanStopping),"loading"in e&&n(5,u=e.loading),"myDeviceId"in e&&n(6,d=e.myDeviceId),"myRouterId"in e&&n(7,p=e.myRouterId),"shadowDevices"in e&&n(8,h=e.shadowDevices),"devicesAroundMe"in e&&n(9,v=e.devicesAroundMe),"issueCount"in e&&n(10,g=e.issueCount),"allIssuesSolved"in e&&n(11,f=e.allIssuesSolved),"issuesSolvedCount"in e&&n(12,_=e.issuesSolvedCount)},[o,l,c,r,a,u,d,p,h,v,g,f,_,s,function(e){return e.issues.length?e.rescanIssuesCount?m("network.device.rescan"):e.skippedIssuesCount===e.issues.length?m("network.device.problems.ignored"):'<kin-icon name="icon-s-fill-unsecured" size="16" data-test="hns_results-vuln"></kin-icon><span class="g-margin-left--5">'+m("network.device.vulnerable")+"</span>":""},function(){k("showIssues")},i,function(){k("showNextIssue")},function(){k("skipAllIssuesShow")},function(){k("rescan")},function(){k("scanDone")},()=>i(d),()=>i(d),()=>i(p),()=>i(p),e=>i(e),e=>i(e),e=>i(e),e=>i(e)]}class Jr extends We{constructor(e){var t;super(),document.getElementById("svelte-1wge2r3-style")||((t=B("style")).id="svelte-1wge2r3-style",t.textContent=".hns_devices.svelte-1wge2r3 .kin_table__row.svelte-1wge2r3{grid-template-columns:4rem 38% auto 25%}.hns_devices__icon__status.svelte-1wge2r3.svelte-1wge2r3{position:absolute;top:55%;left:50%}.hns_problems__status.svelte-1wge2r3.svelte-1wge2r3{width:2.5rem;display:inline-block;text-align:end}",U(document.head,t)),Ue(this,e,Yr,Kr,E,{scan:0,devices:1,issues:2,issuedDevicesCount:3,scanStopping:4,loading:5,myDeviceId:6,myRouterId:7,shadowDevices:8,devicesAroundMe:9,issueCount:10,allIssuesSolved:11,issuesSolvedCount:12},[-1,-1])}}function Xr(e){let t,n;return t=new Sc({props:{loading:e[9],devices4watcher:e[22],scan:e[0]}}),t.$on("scanFinish",e[44]),t.$on("go2secureline",e[41]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};512&n[0]&&(s.loading=e[9]),4194304&n[0]&&(s.devices4watcher=e[22]),1&n[0]&&(s.scan=e[0]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Zr(e){let t,n,s,i;const o=[ia,sa,na,ta],l=[];function c(e,t){return e[0].networkChanged?0:e[21]?"devices"!==e[19]||(!e[1]||e[13])&&e[1]?"issues"===e[19]?3:-1:2:1}return~(t=c(e))&&(n=l[t]=o[t](e)),{c(){n&&n.c(),s=Y()},m(e,n){~t&&l[t].m(e,n),W(e,s,n),i=!0},p(e,i){let r=t;t=c(e),t===r?~t&&l[t].p(e,i):(n&&(Oe(),He(l[r],1,1,(()=>{l[r]=null})),Ae()),~t?(n=l[t],n?n.p(e,i):(n=l[t]=o[t](e),n.c()),De(n,1),n.m(s.parentNode,s)):n=null)},i(e){i||(De(n),i=!0)},o(e){He(n),i=!1},d(e){~t&&l[t].d(e),e&&V(s)}}}function Qr(e){let t,n;return t=new _c({props:{loading:e[9],scan:e[0],devices4watcher:e[22]}}),t.$on("scanFinish",e[44]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};512&n[0]&&(s.loading=e[9]),1&n[0]&&(s.scan=e[0]),4194304&n[0]&&(s.devices4watcher=e[22]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ea(e){let t,n;return t=new mc({props:{loading:e[9],devices:e[20],scan:e[0],progress:e[18],issueCount:e[3],deviceCount:e[21],scanAnimColor:e[2]}}),t.$on("scanStop",e[45]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};512&n[0]&&(s.loading=e[9]),1048576&n[0]&&(s.devices=e[20]),1&n[0]&&(s.scan=e[0]),262144&n[0]&&(s.progress=e[18]),8&n[0]&&(s.issueCount=e[3]),2097152&n[0]&&(s.deviceCount=e[21]),4&n[0]&&(s.scanAnimColor=e[2]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ta(e){let t,n,s=e[7]&&oa(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,n){e[7]?s?(s.p(e,n),128&n[0]&&De(s,1)):(s=oa(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function na(e){let t,n,s=e[7]&&la(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,n){e[7]?s?(s.p(e,n),128&n[0]&&De(s,1)):(s=la(e),s.c(),De(s,1),s.m(t.parentNode,t)):s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae())},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function sa(e){let t,n;return t=new Kl({props:{scan:e[0],loading:e[9],devices4watcher:e[22],scanStopping:e[29]}}),t.$on("rescan",e[42]),t.$on("scanFinish",e[44]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.scan=e[0]),512&n[0]&&(s.loading=e[9]),4194304&n[0]&&(s.devices4watcher=e[22]),536870912&n[0]&&(s.scanStopping=e[29]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ia(e){let t,n;return t=new Cn({props:{cssCls:"hns -no-header -center-all",back:"false",loading:e[9],$$slots:{"page-content":[ca]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};512&n[0]&&(s.loading=e[9]),128&n[0]|256&n[2]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function oa(e){let t,n;return t=new wr({props:{scan:e[0],issueCount:e[3],loading:e[9],scanStopping:e[29],issuesSkippedCount:e[5],issues:e[16],devices:e[20],issuesSolvedCount:e[4],allIssuesSolved:e[28],solveText:e[40]()}}),t.$on("resolve",e[38]),t.$on("showDevices",e[51]),t.$on("showIssue",e[35]),t.$on("scanFinish",e[44]),t.$on("scanDone",e[43]),t.$on("showNextIssue",e[36]),t.$on("skipAllIssuesShow",e[47]),t.$on("rescan",e[42]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.scan=e[0]),8&n[0]&&(s.issueCount=e[3]),512&n[0]&&(s.loading=e[9]),536870912&n[0]&&(s.scanStopping=e[29]),32&n[0]&&(s.issuesSkippedCount=e[5]),65536&n[0]&&(s.issues=e[16]),1048576&n[0]&&(s.devices=e[20]),16&n[0]&&(s.issuesSolvedCount=e[4]),268435456&n[0]&&(s.allIssuesSolved=e[28]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function la(e){let t,n;return t=new Jr({props:{scan:e[0],issues:e[16],issuedDevicesCount:e[17],scanStopping:e[29],loading:e[9],myDeviceId:e[23],devices:e[20],myRouterId:e[24],shadowDevices:e[26],devicesAroundMe:e[25],issueCount:e[3],allIssuesSolved:e[28],issuesSolvedCount:e[4]}}),t.$on("showDevice",e[30]),t.$on("scanDone",e[43]),t.$on("showIssues",e[50]),t.$on("showNextIssue",e[36]),t.$on("skipAllIssuesShow",e[47]),t.$on("rescan",e[42]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.scan=e[0]),65536&n[0]&&(s.issues=e[16]),131072&n[0]&&(s.issuedDevicesCount=e[17]),536870912&n[0]&&(s.scanStopping=e[29]),512&n[0]&&(s.loading=e[9]),8388608&n[0]&&(s.myDeviceId=e[23]),1048576&n[0]&&(s.devices=e[20]),16777216&n[0]&&(s.myRouterId=e[24]),67108864&n[0]&&(s.shadowDevices=e[26]),33554432&n[0]&&(s.devicesAroundMe=e[25]),8&n[0]&&(s.issueCount=e[3]),268435456&n[0]&&(s.allIssuesSolved=e[28]),16&n[0]&&(s.issuesSolvedCount=e[4]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ca(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_,k=m("network.scan.netChanged.desc",e[7].networkInfo.name)+"",w=m("network.scan.netChanged.rescan")+"";return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("div"),o=B("h1"),o.textContent=`${m("network.scan.netChanged")}`,l=K(),c=B("p"),r=G(k),a=B("br"),u=G(w),d=K(),p=B("div"),h=B("kin-button"),h.textContent=`${m("network.scan.again")}`,v=K(),g=B("kin-button"),g.textContent=`${m("global.done")}`,Q(n,"name","circle-attention"),Q(n,"class","kin_scan__icon"),Q(n,"size","96"),Z(o,"class","h1 kin_scan__title -overlay"),Z(c,"class","kin_scan__subtitle -overlay"),Z(i,"class","kin_scan__result"),Q(h,"size","large"),Q(g,"size","large"),Q(g,"type","secondary"),Q(g,"class","g-margin-left--10"),Q(g,"data-test","hns_done-global"),Z(p,"class","kin_scan__actions"),Z(t,"slot","page-content")},m(m,k){W(m,t,k),U(t,n),U(t,s),U(t,i),U(i,o),U(i,l),U(i,c),U(c,r),U(c,a),U(c,u),U(t,d),U(t,p),U(p,h),U(p,v),U(p,g),f||(_=[J(h,"click",e[49]),J(g,"click",e[44])],f=!0)},p(e,t){128&t[0]&&k!==(k=m("network.scan.netChanged.desc",e[7].networkInfo.name)+"")&&ee(r,k)},d(e){e&&V(t),f=!1,C(_)}}}function ra(e){let t,n,s;var i=e[8];function o(e){return{props:{issue:e[10],details:e[11],device:e[20][e[11].deviceId]}}}return i&&(t=new i(o(e)),t.$on("resolve",e[38]),t.$on("resolved",e[39]),t.$on("skip",e[37])),{c(){t&&Re(t.$$.fragment),n=Y()},m(e,i){t&&ze(t,e,i),W(e,n,i),s=!0},p(e,s){const l={};if(1024&s[0]&&(l.issue=e[10]),2048&s[0]&&(l.details=e[11]),1050624&s[0]&&(l.device=e[20][e[11].deviceId]),i!==(i=e[8])){if(t){Oe();const e=t;He(e.$$.fragment,1,0,(()=>{Pe(e,1)})),Ae()}i?(t=new i(o(e)),t.$on("resolve",e[38]),t.$on("resolved",e[39]),t.$on("skip",e[37]),Re(t.$$.fragment),De(t.$$.fragment,1),ze(t,n.parentNode,n)):t=null}else i&&t.$set(l)},i(e){s||(t&&De(t.$$.fragment,e),s=!0)},o(e){t&&He(t.$$.fragment,e),s=!1},d(e){e&&V(n),t&&Pe(t,e)}}}function aa(e){let t,n;return t=new Jt({props:{closable:!0,$$slots:{"modal-footer":[ma],"modal-content":[pa]},$$scope:{ctx:e}}}),t.$on("close",e[48]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};64&n[0]|256&n[2]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ua(e){let t,n,s,i,o,l,c=m("network.issue.checkVpn")+"";return{c(){t=B("kin-button"),n=G(c),s=K(),i=B("kin-icon"),Q(i,"class","hns_btn_icon color-ok -text svelte-1n7tjjk"),Q(i,"name","switch-arrow"),Q(i,"size","20"),Q(t,"size","small"),Q(t,"type","blank"),Q(t,"data-test","hns_get-vpn")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=J(t,"click",e[52]),o=!0)},p:$,d(e){e&&V(t),o=!1,l()}}}function da(e){let t,n,s,i,o,l,c=m("network.issue.action.open.secureline")+"";return{c(){t=B("kin-button"),n=G(c),s=K(),i=B("kin-icon"),Q(i,"class","hns_btn_icon color-ok -text svelte-1n7tjjk"),Q(i,"name","switch-arrow"),Q(i,"size","20"),Q(t,"size","small"),Q(t,"type","blank"),Q(t,"data-test","hns_get-vpn")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=J(t,"click",e[41]),o=!0)},p:$,d(e){e&&V(t),o=!1,l()}}}function pa(e){let t,n,s,i,o,l,c,r,a,u,d,p=m("network.issue.considerVpn")+"";function h(e,t){return e[6]?da:ua}let v=h(e),g=v(e);return{c(){t=B("div"),n=B("kin-icon"),s=K(),i=B("p"),i.textContent=`${m("network.vuln.skip")}`,o=K(),l=B("p"),l.textContent=`${m("network.issue.resolveit")}`,c=K(),r=B("div"),a=G(p),u=K(),d=B("div"),g.c(),Q(n,"name","circle-critical"),Q(n,"size","40"),Q(n,"class","g-margin-bottom--10"),Z(i,"class","sve_modal__title"),Z(l,"class","sve_modal__subtitle"),Z(d,"class","g-margin-top--20"),Z(r,"class","hns_block_highlight svelte-1n7tjjk"),Z(t,"slot","modal-content")},m(e,p){W(e,t,p),U(t,n),U(t,s),U(t,i),U(t,o),U(t,l),U(t,c),U(t,r),U(r,a),U(r,u),U(r,d),g.m(d,null)},p(e,t){v===(v=h(e))&&g?g.p(e,t):(g.d(1),g=v(e),g&&(g.c(),g.m(d,null)))},d(e){e&&V(t),g.d()}}}function ma(e){let t,n,s,i,o,l;return{c(){t=B("div"),n=B("kin-button"),n.textContent=`${m("global.skip")}`,s=K(),i=B("kin-button"),i.textContent=`${m("global.stop")}`,Q(n,"type","critical"),Q(n,"data-test","modal_confirm"),Q(i,"type","secondary"),Q(i,"class","g-margin-left--10"),Q(i,"data-test","skip_all-issues"),Z(t,"slot","modal-footer")},m(c,r){W(c,t,r),U(t,n),U(t,s),U(t,i),o||(l=[J(n,"click",e[46]),J(i,"click",e[48])],o=!0)},p:$,d(e){e&&V(t),o=!1,C(l)}}}function ha(e){let t,n,s,i;const o=[ga,va],l=[];function c(e,t){return e[1]?0:1}return t=c(e),n=l[t]=o[t](e),{c(){n.c(),s=Y()},m(e,n){l[t].m(e,n),W(e,s,n),i=!0},p(e,i){let r=t;t=c(e),t===r?l[t].p(e,i):(Oe(),He(l[r],1,1,(()=>{l[r]=null})),Ae(),n=l[t],n?n.p(e,i):(n=l[t]=o[t](e),n.c()),De(n,1),n.m(s.parentNode,s))},i(e){i||(De(n),i=!0)},o(e){He(n),i=!1},d(e){l[t].d(e),e&&V(s)}}}function va(e){let t,n,s;return t=new Xn({props:{type:"page",title:m("global.details"),$$slots:{default:[fa]},$$scope:{ctx:e}}}),t.$on("close",e[31]),{c(){Re(t.$$.fragment),n=G(">")},m(e,i){ze(t,e,i),W(e,n,i),s=!0},p(e,n){const s={};135266304&n[0]|256&n[2]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){s||(De(t.$$.fragment,e),s=!0)},o(e){He(t.$$.fragment,e),s=!1},d(e){Pe(t,e),e&&V(n)}}}function ga(e){let t,n,s,i,o,l,c;return i=new Ci({props:{device:e[20][e[27]]}}),i.$on("forgetDevice",e[34]),i.$on("showIssue",e[35]),i.$on("editDevice",e[32]),{c(){t=B("button"),n=B("kin-icon"),s=K(),Re(i.$$.fragment),Q(n,"name","icon-s-controls-arrow-left"),Q(n,"size","20"),Q(n,"rtlflip","true"),Z(t,"id","layout_backBtn"),Z(t,"class","nui_layout-back hns_back svelte-1n7tjjk"),Z(t,"title",m("global.back"))},m(r,a){W(r,t,a),U(t,n),W(r,s,a),ze(i,r,a),o=!0,l||(c=J(t,"click",e[31]),l=!0)},p(e,t){const n={};135266304&t[0]&&(n.device=e[20][e[27]]),i.$set(n)},i(e){o||(De(i.$$.fragment,e),o=!0)},o(e){He(i.$$.fragment,e),o=!1},d(e){e&&V(t),e&&V(s),Pe(i,e),l=!1,c()}}}function fa(e){let t,n,s;return t=new Ci({props:{device:e[20][e[27]]}}),t.$on("forgetDevice",e[34]),t.$on("showIssue",e[35]),t.$on("editDevice",e[32]),{c(){Re(t.$$.fragment),n=K()},m(e,i){ze(t,e,i),W(e,n,i),s=!0},p(e,n){const s={};135266304&n[0]&&(s.device=e[20][e[27]]),t.$set(s)},i(e){s||(De(t.$$.fragment,e),s=!0)},o(e){He(t.$$.fragment,e),s=!1},d(e){Pe(t,e),e&&V(n)}}}function _a(e){let t,n,s,i,o,l,c,r,a;const u=[ea,Qr,Zr,Xr],d=[];function p(e,t){return"running"===e[15]?0:"skipped"===e[15]?1:"done"===e[15]?2:"finished"===e[15]?3:-1}~(t=p(e))&&(n=d[t]=u[t](e));let m=e[10]&&e[11]&&e[8]&&ra(e);o=new Ui({props:{device:e[14],scan:e[0]}}),o.$on("save",e[33]);let h=e[12]&&aa(e),v=e[13]&&ha(e);return{c(){n&&n.c(),s=K(),m&&m.c(),i=K(),Re(o.$$.fragment),l=K(),h&&h.c(),c=K(),v&&v.c(),r=Y()},m(e,n){~t&&d[t].m(e,n),W(e,s,n),m&&m.m(e,n),W(e,i,n),ze(o,e,n),W(e,l,n),h&&h.m(e,n),W(e,c,n),v&&v.m(e,n),W(e,r,n),a=!0},p(e,l){let a=t;t=p(e),t===a?~t&&d[t].p(e,l):(n&&(Oe(),He(d[a],1,1,(()=>{d[a]=null})),Ae()),~t?(n=d[t],n?n.p(e,l):(n=d[t]=u[t](e),n.c()),De(n,1),n.m(s.parentNode,s)):n=null),e[10]&&e[11]&&e[8]?m?(m.p(e,l),3328&l[0]&&De(m,1)):(m=ra(e),m.c(),De(m,1),m.m(i.parentNode,i)):m&&(Oe(),He(m,1,1,(()=>{m=null})),Ae());const g={};16384&l[0]&&(g.device=e[14]),1&l[0]&&(g.scan=e[0]),o.$set(g),e[12]?h?(h.p(e,l),4096&l[0]&&De(h,1)):(h=aa(e),h.c(),De(h,1),h.m(c.parentNode,c)):h&&(Oe(),He(h,1,1,(()=>{h=null})),Ae()),e[13]?v?(v.p(e,l),8192&l[0]&&De(v,1)):(v=ha(e),v.c(),De(v,1),v.m(r.parentNode,r)):v&&(Oe(),He(v,1,1,(()=>{v=null})),Ae())},i(e){a||(De(n),De(m),De(o.$$.fragment,e),De(h),De(v),a=!0)},o(e){He(n),He(m),He(o.$$.fragment,e),He(h),He(v),a=!1},d(e){~t&&d[t].d(e),e&&V(s),m&&m.d(e),e&&V(i),Pe(o,e),e&&V(l),h&&h.d(e),e&&V(c),v&&v.d(e),e&&V(r)}}}function ka(e,t,n){let s,o,l,c,r,a,u,d,p,h;T(e,lt,(e=>n(54,l=e))),T(e,it,(e=>n(55,c=e))),T(e,ot,(e=>n(6,r=e))),T(e,ct,(e=>n(56,a=e))),T(e,rt,(e=>n(57,u=e))),T(e,st,(e=>n(58,d=e))),T(e,et,(e=>n(7,p=e)));let v=!0;function k(e,t){const s=v?"HNS3":"HNS";i.event(s+"-"+J.type,"Click","ShowIssue"),i.view(s+"-"+J.type+"_issue-detail");const o=W[e].issues[t],a={deviceId:e,pos:t};a.scanType=J.type,a.issueOnGateway=J.isMyRouter(W[e]),a.resolveType=b(e,t),a.solveBtnText=$(e,t),a.ipm=!1,"home"!==J.type||!M||l||c||r||(a.ipm=418),n(11,S=a),n(10,x=o)}function w(e,t){const n=b(e,t);if("vpn"===n)if(r&&!c)i.event("HNS-"+J.type,"Click","openVpn"),y();else if(l)C();else{const e=451;i.event("HNS-"+J.type,"Click","IPM "+e),f.openWindow(e)}else"dns"===n&&(a?location.hash="SecureDNS":(i.event("HNS-"+J.type,"Click","IPM 343"),f.openWindow(343)))}function $(e,t){const n=b(e,t);return"vpn"===n?m(r&&!c?"network.issue.action.open.secureline":l?"network.vpn.other.btn":"network.issue.action.buy.secureline"):"dns"===n?m(a?"network.issue.action.open.securedns":"network.issue.action.buy.securedns"):void 0}function b(e,t){if(g.isAfbEdition())return!1;let n;if(n=null!=e?null!=t?[W[e].issues[t]]:W[e].issues:L.map((e=>W[e.deviceId].issues[e.pos])),n.find((e=>e.data.risks.includes("RESOLVING_HIJACK")))){if("home"===J.type)return"dns";if("public"===J.type)return!l||r&&!u?"vpn":"dns"}return!("public"!==J.type||!l&&u)&&"vpn"}function y(){Je.openVpn()}function I(){te.forEach((e=>e())),te.length=0}function C(){J.ran?N():J.finish()}function N(){ee("page")}_.getValue("avdef://config/GuiCache/EnableHNS3").then((e=>{"0"===e?(n(8,h=jo),v=!1):n(8,h=ql)}));let E,x,S,O,A,D,H,L,M,R,z,P,q,U,W,V,j,B,F,G,K,Y,{scan:J}=t,{showModuleInOverlay:X}=t,{scanAnimColor:Z}=t,Q=!0;const ee=he(),te=[];return me((()=>{I()})),e.$$set=e=>{"scan"in e&&n(0,J=e.scan),"showModuleInOverlay"in e&&n(1,X=e.showModuleInOverlay),"scanAnimColor"in e&&n(2,Z=e.scanAnimColor)},e.$$.update=()=>{193&e.$$.dirty[0]|130023424&e.$$.dirty[1]&&(E||void 0===r||void 0===c||void 0===l||void 0===u||void 0===a||void 0===p||(n(53,E=!0),J?n(9,Q=!1):ee("page"))),56&e.$$.dirty[0]&&n(28,s=R+z===M),e.$$.dirty[0],e.$$.dirty[1],134217728&e.$$.dirty[1]&&n(29,o="stopping"===d),1&e.$$.dirty[0]&&void 0!==J&&(I(),te.push(J.state.subscribe((e=>n(15,H=e)))),te.push(J.resultType.subscribe((e=>n(19,U=e)))),te.push(J.devices.subscribe((e=>{e&&(n(20,W=e),"public"===J.type?(n(24,F=J.getMyRouterId()),n(16,L=F?W[F].getIssues():[])):(n(16,L=J.getIssues()),n(17,P=J.getDevicesWithIssues().length)),n(21,V=Object.keys(e).length),n(3,M=L.length))}))),te.push(J.progress.subscribe((e=>{n(18,q=e||0),100===q&&(n(4,R=0),n(5,z=0),"public"===J.type?(n(24,F=J.getMyRouterId()),F&&n(5,z=W[F].getSkippedIssuesCount()),(c||l&&!M)&&J.finish()):(n(5,z=J.getSkippedIssuesCount()),n(23,B=J.getMyDeviceId()),n(24,F=J.getMyRouterId()),n(25,G=J.getDevicesAroundMe()),n(26,K=J.getShadowDevices()),n(22,j=J.getDevices4watcher())),J.ran||(i.view("HNS-"+J.type+"_results"),M&&M-z>0?(i.view("HNS-"+J.type+"_issues"),i.ipm(419)):i.ipm(420),i.event("HNS-"+J.type,"Number of issues",M),i.event("HNS-"+J.type,"Number of devices",V),i.event("HNS-"+J.type,"Type of issues",L.map((e=>W[e.deviceId].issues[e.pos].data.catalog_name)).join(","))),J.networkChanged&&i.view("HNS-"+J.type+"_networkChanged"),localStorage.getItem("DEBUG_HNS")&&console.log("100F",{issuesSolvedCount:R,issuesSkippedCount:z,issueCount:M,deviceCount:V,issuedDevicesCount:P,myRouterId:F})),localStorage.getItem("DEBUG_HNS")&&(window.hns={devices:W,issues:L})}))))},[J,X,Z,M,R,z,r,p,h,Q,x,S,O,A,D,H,L,P,q,U,W,V,j,B,F,G,K,Y,s,o,function(e){i.view("HNS-"+J.type+"_device-detail"),n(27,Y=e.detail),n(13,A=!0)},function(){n(13,A=!1)},function(){n(14,D=W[Y])},function(e){n(20,W[Y]=W[Y].update(e.detail),W)},function(){const e=K.indexOf(Y);-1!==e&&(n(13,A=!1),J.forgetDevice(Y),K.splice(e,1),delete W[Y])},function(e){k(e.detail.deviceId,e.detail.pos)},function(){const e=L.find((e=>!W[e.deviceId].issues[e.pos].state));e?k(e.deviceId,e.pos):C()},function(e){var t,s;t=e.detail.deviceId,s=e.detail.pos,W[t].issues[s].state||(W[t].setIssueState(s,"skipped"),n(20,W),n(5,z++,z),J.skipIssue(t,W[t].issues[s]))},function(e){e&&e.detail?w(e.detail.deviceId,e.detail.pos):w()},function(e){var t,s;t=e.detail.deviceId,s=e.detail.pos,"resolved"!==W[t].issues[s].state&&("skipped"===W[t].issues[s].state&&n(5,z--,z),W[t].setIssueState(s,"resolved"),n(20,W),n(4,R++,R),J.resolveIssue(t,W[t].issues[s]))},$,y,function(){n(13,A=!1),"stopping"!==d&&(i.event("HNS-"+J.type,"Click","RescanNetwork"),J.rescan())},C,N,function(){i.event("HNS-"+J.type,"Click","StopScan"),st.stopping(),J.stop()},function(){i.event("HNS-"+J.type,"Click","SkipAllIssues"),J.skip(),n(12,O=!1)},function(){n(12,O=!0)},function(){n(12,O=!1)},function(){ee("scanNetwork")},function(){J.resultType.set("issues")},function(){J.resultType.set("devices")},function(){f.openWindow(451,{p_scr:"hns"})},E,l,c,a,u,d]}class wa extends We{constructor(e){var t;super(),document.getElementById("svelte-1n7tjjk-style")||((t=B("style")).id="svelte-1n7tjjk-style",t.textContent=".hns_back.svelte-1n7tjjk{position:relative;margin-top:-6.2rem;margin-left:-5rem}.hns_block_highlight.svelte-1n7tjjk{background:rgba(0,0,0,0.2);margin:2rem 5rem 0;padding:2.5rem}.hns_btn_icon.svelte-1n7tjjk{transform:scaleX(-1);margin-left:0.5rem}",U(document.head,t)),Ue(this,e,ka,_a,E,{scan:0,showModuleInOverlay:1,scanAnimColor:2},[-1,-1,-1])}}function $a(e){let t,n;return t=new Vs({}),t.$on("showScan",e[9]),t.$on("scanNetwork",e[11]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p:$,i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ba(e){let t,n;return t=new wa({props:{scan:e[3],showModuleInOverlay:e[0],scanAnimColor:e[1]}}),t.$on("page",e[8]),t.$on("scanNetwork",e[11]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};8&n&&(s.scan=e[3]),1&n&&(s.showModuleInOverlay=e[0]),2&n&&(s.scanAnimColor=e[1]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function ya(e){let t,n;return t=new jn({props:{text:m("network")}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p:$,i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Ia(e){let t,n;return t=new Oi({props:{disabled:e[5]}}),t.$on("startScan",e[10]),t.$on("close",e[12]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};32&n&&(s.disabled=e[5]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Ca(e){let t,n,s,i;const o=[Ea,Na],l=[];function c(e,t){return e[0]?0:1}return t=c(e),n=l[t]=o[t](e),{c(){n.c(),s=Y()},m(e,n){l[t].m(e,n),W(e,s,n),i=!0},p(e,i){let r=t;t=c(e),t===r?l[t].p(e,i):(Oe(),He(l[r],1,1,(()=>{l[r]=null})),Ae(),n=l[t],n?n.p(e,i):(n=l[t]=o[t](e),n.c()),De(n,1),n.m(s.parentNode,s))},i(e){i||(De(n),i=!0)},o(e){He(n),i=!1},d(e){l[t].d(e),e&&V(s)}}}function Na(e){let t,n,s;return t=new Xn({props:{type:"page",title:m("global.details"),$$slots:{default:[xa]},$$scope:{ctx:e}}}),t.$on("close",e[13]),{c(){Re(t.$$.fragment),n=G(">")},m(e,i){ze(t,e,i),W(e,n,i),s=!0},p(e,n){const s={};16777280&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){s||(De(t.$$.fragment,e),s=!0)},o(e){He(t.$$.fragment,e),s=!1},d(e){Pe(t,e),e&&V(n)}}}function Ea(e){let t,n,s,i,o,l,c;return i=new Ci({props:{device:e[6],disabled:"true"}}),{c(){t=B("button"),n=B("kin-icon"),s=K(),Re(i.$$.fragment),Q(n,"name","icon-s-controls-arrow-left"),Q(n,"size","20"),Q(n,"rtlflip","true"),Z(t,"id","layout_backBtn"),Z(t,"class","nui_layout-back hns_back"),Z(t,"title",m("global.back"))},m(r,a){W(r,t,a),U(t,n),W(r,s,a),ze(i,r,a),o=!0,l||(c=J(t,"click",e[13]),l=!0)},p(e,t){const n={};64&t&&(n.device=e[6]),i.$set(n)},i(e){o||(De(i.$$.fragment,e),o=!0)},o(e){He(i.$$.fragment,e),o=!1},d(e){e&&V(t),e&&V(s),Pe(i,e),l=!1,c()}}}function xa(e){let t,n,s;return t=new Ci({props:{device:e[6],disabled:"true"}}),{c(){Re(t.$$.fragment),n=K()},m(e,i){ze(t,e,i),W(e,n,i),s=!0},p(e,n){const s={};64&n&&(s.device=e[6]),t.$set(s)},i(e){s||(De(t.$$.fragment,e),s=!0)},o(e){He(t.$$.fragment,e),s=!1},d(e){Pe(t,e),e&&V(n)}}}function Sa(e){let t,n,s,i,o,l;const c=[ya,ba,$a],r=[];function a(e,t){return e[7]?0:"scan"===e[2]?1:2}t=a(e),n=r[t]=c[t](e);let u=e[4]&&Ia(e),d=null!==e[6]&&Ca(e);return{c(){n.c(),s=K(),u&&u.c(),i=K(),d&&d.c(),o=Y()},m(e,n){r[t].m(e,n),W(e,s,n),u&&u.m(e,n),W(e,i,n),d&&d.m(e,n),W(e,o,n),l=!0},p(e,[l]){let p=t;t=a(e),t===p?r[t].p(e,l):(Oe(),He(r[p],1,1,(()=>{r[p]=null})),Ae(),n=r[t],n?n.p(e,l):(n=r[t]=c[t](e),n.c()),De(n,1),n.m(s.parentNode,s)),e[4]?u?(u.p(e,l),16&l&&De(u,1)):(u=Ia(e),u.c(),De(u,1),u.m(i.parentNode,i)):u&&(Oe(),He(u,1,1,(()=>{u=null})),Ae()),null!==e[6]?d?(d.p(e,l),64&l&&De(d,1)):(d=Ca(e),d.c(),De(d,1),d.m(o.parentNode,o)):d&&(Oe(),He(d,1,1,(()=>{d=null})),Ae())},i(e){l||(De(n),De(u),De(d),l=!0)},o(e){He(n),He(u),He(d),l=!1},d(e){r[t].d(e),e&&V(s),u&&u.d(e),e&&V(i),d&&d.d(e),e&&V(o)}}}function Ta(e,s,o){let l,r,a,u;function p(e){e?(_&&_.destroy(),o(3,_=e),o(2,f="scan")):o(2,f="")}function m(e){i.event("HNS-"+e,"Click","StartScan"),o(5,y=!0),function(e){const t=new bt;return Ct=t,t.start(e).then((()=>t))}(e).then((e=>p(e))).catch((t=>{"canceled"!==t&&v.error("cant start scan of type("+e+")",t)})).finally((()=>{o(4,k=!1)}))}function h(){o(4,k=!0),o(5,y=!1)}T(e,n,(e=>o(15,r=e))),T(e,Qe,(e=>o(16,a=e))),T(e,et,(e=>o(17,u=e)));const v=c.createLogger("network.app"),g=new d;g.on("/",(()=>o(2,f=""))),g.on("/device/:device",(e=>function(e){try{const t=JSON.parse(atob(e));t&&t.device?(o(6,I=new $t(t.device)),location.hash="#SecurityNetwork"):o(6,I=null)}catch(t){o(6,I=null),console.error("HNS showDeviceDetail failed: "+JSON.stringify(t))}return o(2,f="")}(e.device))),g.on("/startScan",(()=>h())),g.on("/lastScanResults",(()=>yt().then((e=>p(e))).catch((e=>v.error("cant get last scan results on /lastScanResults page",e))))),g.on("/runningScan",(()=>It().then((e=>p(e))).catch((e=>v.error("cant hook to scan on /runningScan page",e))).finally((()=>window.location.hash="SecurityNetwork"))));let f,_,k,w,{showModuleInOverlay:$}=s,{scanAnimColor:b}=s,y=!1,I=null;return me((()=>{w&&clearTimeout(w),g.removeAllListeners(),_&&_.destroy()})),e.$$set=e=>{"showModuleInOverlay"in e&&o(0,$=e.showModuleInOverlay),"scanAnimColor"in e&&o(1,b=e.scanAnimColor)},e.$$.update=()=>{98304&e.$$.dirty&&o(7,l=!r.online&&a<=Ke),131072&e.$$.dirty&&u&&u.scanning&&"NewNetwork"===u.scanning.startType&&(Je.stopScan(),st.stopping(),w=setTimeout((()=>{t.emit("hnsReloadStatus")}),5e3))},[$,b,f,_,k,y,I,l,function(e){var t;t=e.detail,o(2,f=t)},function(e){p(e.detail)},function(e){m(e.detail)},h,function(){Ct&&Ct.startCancel(),o(4,k=!1),i.event("HNS","Click","CloseScanTypeModal")},function(){o(6,I=null)},g,r,a,u]}function Oa(e,t,n){const s=e.slice();return s[14]=t[n],s[16]=n,s}function Aa(e){let t;function n(e,t){return e[2]?Ha:e[0]&&e[0].length?Da:void 0}let s=n(e),i=s&&s(e);return{c(){t=B("div"),i&&i.c()},m(e,n){W(e,t,n),i&&i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i&&i.d(1),i=s&&s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&V(t),i&&i.d()}}}function Da(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g,f,_=e[0],k=[];for(let m=0;m<_.length;m+=1)k[m]=Ra(Oa(e,_,m));return{c(){t=B("p"),t.textContent=`${m(qa.notifyMeWhen)}`,n=K(),s=B("table"),i=B("colgroup"),i.innerHTML='<col width="5%"/> \n\t\t\t\t\t\t\t<col width="60%"/> \n\t\t\t\t\t\t\t<col width="30%"/> \n\t\t\t\t\t\t\t<col width="5%"/>',o=K(),l=B("tr"),c=B("th"),r=K(),a=B("th"),a.textContent=`${m(qa.visitedNets)}`,u=K(),d=B("th"),d.textContent=`${m(qa.notifyNew)}`,p=K(),h=B("th"),v=K(),g=B("th"),f=K();for(let e=0;e<k.length;e+=1)k[e].c();Z(t,"class","p -small -secondary -margins g-margin-top--15"),Z(s,"class","table -small -fixed")},m(e,m){W(e,t,m),W(e,n,m),W(e,s,m),U(s,i),U(s,o),U(s,l),U(l,c),U(l,r),U(l,a),U(l,u),U(l,d),U(l,p),U(l,h),U(l,v),U(l,g),U(s,f);for(let t=0;t<k.length;t+=1)k[t].m(s,null)},p(e,t){if(25&t){let n;for(_=e[0],n=0;n<_.length;n+=1){const i=Oa(e,_,n);k[n]?k[n].p(i,t):(k[n]=Ra(i),k[n].c(),k[n].m(s,null))}for(;n<k.length;n+=1)k[n].d(1);k.length=_.length}},d(e){e&&V(t),e&&V(n),e&&V(s),j(k,e)}}}function Ha(e){let t;return{c(){t=B("kin-loading"),Q(t,"fullscreen",!0)},m(e,n){W(e,t,n)},p:$,d(e){e&&V(t)}}}function La(e){let t,n,s,i,o,l,c,r,a,u=m("domain"===e[14].type?qa.netDomain:qa.netPublic)+"",d=m("domain"===e[14].type?qa.notifyTipDomain:qa.notifyTipPublic)+"";return{c(){t=B("kin-tooltip"),n=B("div"),s=G(u),i=K(),o=B("kin-icon"),l=K(),c=B("div"),r=B("p"),a=G(d),Q(o,"name","icon-m-action-info"),Q(o,"size","16"),Z(n,"slot","tooltip-activator"),Z(r,"class","p -small"),Z(c,"slot","tooltip"),Q(t,"class","sta_info")},m(e,u){W(e,t,u),U(t,n),U(n,s),U(n,i),U(n,o),U(t,l),U(t,c),U(c,r),U(r,a)},p(e,t){1&t&&u!==(u=m("domain"===e[14].type?qa.netDomain:qa.netPublic)+"")&&ee(s,u),1&t&&d!==(d=m("domain"===e[14].type?qa.notifyTipDomain:qa.notifyTipPublic)+"")&&ee(a,d)},d(e){e&&V(t)}}}function Ma(e){let t,n,s,i,o;function l(){return e[8](e[16])}return{c(){t=B("kin-switch"),Q(t,"checked",n=e[14].watched),Q(t,"processing",s=e[14].updating)},m(e,n){W(e,t,n),i||(o=J(t,"click",l),i=!0)},p(i,o){e=i,1&o&&n!==(n=e[14].watched)&&Q(t,"checked",n),1&o&&s!==(s=e[14].updating)&&Q(t,"processing",s)},d(e){e&&V(t),i=!1,o()}}}function Ra(e){let t,n,s,i,o,l,c,r,a,u,d,p,h,v,g=e[14].network_suggested_name+"";function f(e,t){return"home"===e[14].type?Ma:La}let _=f(e),k=_(e);function w(){return e[9](e[16])}return{c(){t=B("tr"),n=B("td"),n.innerHTML='<kin-icon name="icon-m-wifi" size="16"></kin-icon>',s=K(),i=B("td"),o=G(g),l=K(),c=B("td"),k.c(),r=K(),a=B("td"),u=B("kin-button"),d=B("kin-icon"),p=K(),Q(d,"name","icon-s-controls-bin"),Q(d,"size","14"),Q(u,"size","tiny"),Q(u,"type","blank"),Q(u,"icononly",""),Q(u,"title",m("global.remove")),Z(a,"class","table__delete")},m(e,m){W(e,t,m),U(t,n),U(t,s),U(t,i),U(i,o),U(t,l),U(t,c),k.m(c,null),U(t,r),U(t,a),U(a,u),U(u,d),U(t,p),h||(v=J(u,"click",w),h=!0)},p(t,n){e=t,1&n&&g!==(g=e[14].network_suggested_name+"")&&ee(o,g),_===(_=f(e))&&k?k.p(e,n):(k.d(1),k=_(e),k&&(k.c(),k.m(c,null)))},d(e){e&&V(t),k.d(),h=!1,v()}}}function za(e){let t,n,s,i,o,l;t=new e[6]({props:{property:e[7].scanNewNetsAutomatically}}),s=new e[6]({props:{property:e[7].rescanHomeNetsAutomatically}});let c=e[1]&&Aa(e);return{c(){Re(t.$$.fragment),n=K(),Re(s.$$.fragment),i=K(),c&&c.c(),o=Y()},m(e,r){ze(t,e,r),W(e,n,r),ze(s,e,r),W(e,i,r),c&&c.m(e,r),W(e,o,r),l=!0},p(e,t){e[1]?c?c.p(e,t):(c=Aa(e),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null)},i(e){l||(De(t.$$.fragment,e),De(s.$$.fragment,e),l=!0)},o(e){He(t.$$.fragment,e),He(s.$$.fragment,e),l=!1},d(e){Pe(t,e),e&&V(n),Pe(s,e),e&&V(i),c&&c.d(e),e&&V(o)}}}function Pa(e){let t,n;return t=new e[5]({props:{component:"WifiInspector",title:m(qa.title),desc:m(qa.desc),noEnable:!0,$$slots:{default:[za]},$$scope:{ctx:e}}}),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,[n]){const s={};131079&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}const qa={title:"network",desc:"network.settings.desc",scanNewNetsAutomatically:"network.settings.scanNewNetsAutomatically",rescanHomeNetsAutomatically:"network.settings.rescanHomeNetsAutomatically",notifyMeWhen:"network.settings.notifyMeWhen",monitoringOn:"network.settings.monitoringOn",monitoringOff:"network.settings.monitoringOff",visitedNets:"network.settings.visitedNets",notifyNew:"network.settings.notifyNew",notifyTipPublic:"network.settings.notifyTip.public",netPublic:"network.settings.netPublic",notifyTipDomain:"network.settings.notifyTip.domain",netDomain:"network.settings.netDomain"};function Ua(){return{scanNewNetsAutomatically:{label:m(qa.scanNewNetsAutomatically),path:"avcfg://settings/Hns/EnabledNetworkChanged",track:{subject:"Scan new networks automatically"},search:qa.scanNewNetsAutomatically},rescanHomeNetsAutomatically:{label:m(qa.rescanHomeNetsAutomatically),path:"avcfg://settings/Hns/EnabledTimer",track:{subject:"Rescan home networks automatically"},search:qa.rescanHomeNetsAutomatically}}}function Wa(){return{title:qa.title,desc:qa.desc,items:Object.assign({},Ua(),{notifyMeWhen:{title:qa.notifyMeWhen,others:[qa.monitoringOn,qa.monitoringOff,qa.visitedNets,qa.notifyNew,qa.notifyTipPublic,qa.netPublic,qa.notifyTipDomain,qa.netDomain]}})}}function Va(e,n,s){let i;function o(){return hs.getNetworks(!0).then((e=>Promise.all(e.map((e=>(e.watched=-1!==m.findIndex((t=>t.network_id===e.network_id)),e.watched?Promise.resolve("home"):e.removedNet?Promise.resolve("public"):Je.getNetworkType(e.network_id))))).then((t=>{s(0,h=e.map(((e,n)=>(e.anenType=t[n],e.type=d[e.anenType],e)))),s(0,h=h.filter((e=>!e.removedNet||e.watched))),s(0,h=h.sort((function(e,t){return e===t?0:"home"===e?1:-1})))})))).catch((()=>s(0,h=null)))}function l(e){h[e].updating||(s(0,h[e].updating=!0,h),h[e].watched?hs.stop(h[e].network_id).then((()=>{s(0,h[e].watched=!1,h),s(0,h[e].updating=!1,h),t.emit("Settings.gaTrack","Network watcher",0)})):hs.start(h[e].network_id).then((()=>{s(0,h[e].watched=!0,h),s(0,h[e].updating=!1,h),t.emit("Settings.gaTrack","Network watcher",1)})))}function c(e){const n=h[e].network_id;hs.removeNet(n)&&(s(0,h=h.filter((e=>e.network_id!==n))),t.emit("Settings.gaTrack","Network removed"))}T(e,ps,(e=>s(1,i=e)));const{Container:r,Checkbox:a}=w,u=Ua(),d={unknown:"public",home:"home",public:"public",temporary:"public",administered:"domain"},p=[];let m,h,v=!0;me((()=>{p.forEach((e=>e()))}));return e.$$.update=()=>{2&e.$$.dirty&&i&&(p.push(Ze.subscribe((()=>o()))),hs.getWatchedNetworks().then((e=>(m=e,o()))).finally((()=>{s(2,v=!1)})))},[h,i,v,l,c,r,a,u,e=>l(e),e=>c(e)]}class ja extends We{constructor(e){super(),Ue(this,e,Va,Pa,E,{})}}function Ba(e){let t,n;return t=new ds({props:{buttonLabel:m("network.scanResults.showNetwork"),icon:e[2],text:m("network.newDevicesInNetwork",e[1]),windowHeight:"250",burgerToasterTracker:e[3]}}),t.$on("doAction",e[4]),t.$on("doAreaAction",e[4]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.icon=e[2]),2&n&&(s.text=m("network.newDevicesInNetwork",e[1])),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Fa(e){let t,n,s=!e[0]&&Ba(e);return{c(){s&&s.c(),t=Y()},m(e,i){s&&s.m(e,i),W(e,t,i),n=!0},p(e,[n]){e[0]?s&&(Oe(),He(s,1,1,(()=>{s=null})),Ae()):s?(s.p(e,n),1&n&&De(s,1)):(s=Ba(e),s.c(),De(s,1),s.m(t.parentNode,t))},i(e){n||(De(s),n=!0)},o(e){He(s),n=!1},d(e){s&&s.d(e),e&&V(t)}}}function Ga(t,n,s){let i=!0,r="",a=ut.UNKNOWN.icon;const u=c.createLogger("network.toasters.newDevice");const d=o.getUrlParams(),p=parseInt(d.deviceId,10);return new Promise((t=>{if(Number.isInteger(p))return e("app.device_watcher.get_new_device_toaster_data",{deviceId:p}).then((e=>{if(e&&e.device){const t=new $t(e.device);s(1,r=t.nameModel),s(2,a=t.icon)}t()})).catch((()=>t()));t()})).finally((()=>s(0,i=!1))),[i,r,a,{toasterView:!0,toasterClose:!0},function(){l.toaster.click({label:"Details"}),e("app.windowManager.ShowMainWindow",{route:"SecurityNetwork"}).then((function(){e("app.windowManager.FocusMainWindow"),o.close({reason:o.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(e){u.error("opening details failed",e)}))}]}class Ka extends We{constructor(e){super(),Ue(this,e,Ga,Fa,E,{})}}function Ya(e){let t,n;return t=new ds({props:{allowHtml:!0,buttonLabel:m("scans.toasters.scanProgress.buttonLabel"),text:e[0],severity:e[1],icon:e[2],progress:e[3],windowHeight:"250",burgerToasterTracker:e[4]}}),t.$on("doAction",e[5]),t.$on("areaAction",e[5]),{c(){Re(t.$$.fragment)},m(e,s){ze(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.text=e[0]),2&n&&(s.severity=e[1]),4&n&&(s.icon=e[2]),8&n&&(s.progress=e[3]),t.$set(s)},i(e){n||(De(t.$$.fragment,e),n=!0)},o(e){He(t.$$.fragment,e),n=!1},d(e){Pe(t,e)}}}function Ja(t,n,s){let i,r,a,u,d,p,h,v;const g=[];me((()=>{d&&d.destroy(),g.forEach((e=>e()))}));const f=c.createLogger("network.toasters.newDevice");f.info("oninit");const _=m("global.scanquick");return It().then((e=>{d=e,s(6,p=!0),g.push(d.devices.subscribe((e=>{s(7,h=d.getIssues().length)}))),g.push(d.progress.subscribe((e=>{s(8,v=e),100===v&&s(6,p=!1)})))})).catch((e=>{f.error("cant hook to scan",e)})),t.$$.update=()=>{192&t.$$.dirty&&s(0,i=function(e,t){let n="";return t?n="<br/>"+m("scans.toasters.scanProgress.title.running",_):!t&&e?n=m("scans.toasters.scanProgress.title.finished",_)+"<br/>"+m("scans.toasters.scanProgress.text.issues",e):t||e||(n=m("scans.toasters.scanProgress.title.finished",_)+"<br/>"+m("scans.toasters.scanProgress.text.noIssues")),n}(h,p)),320&t.$$.dirty&&s(3,u=p?v:"")},s(1,r=function(e,t){let n="";return e?n="danger":t||(n="ok"),n}()),s(2,a=function(e,t){let n="";return t?n="":e?n="circle-critical":e||(n="circle-ok"),n}()),[i,r,a,u,{toasterView:!0,toasterClose:!0},function(){l.toaster.click({label:"Details"}),f.info("opening details"),e("app.windowManager.ShowMainWindow",{route:"SecurityNetwork/runningScan"}).then((()=>{e("app.windowManager.FocusMainWindow"),o.close({reason:o.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(e){f.error("opening details failed",e)}))},p,h,v]}class Xa extends We{constructor(e){super(),Ue(this,e,Ja,Ya,E,{})}}export default class extends We{constructor(e){super(),Ue(this,e,Ta,Sa,E,{router:14,showModuleInOverlay:0,scanAnimColor:1})}get router(){return this.$$.ctx[14]}}export{Ka as newdevice,Xa as scanProgressToaster,ja as settings,Wa as settingsSearchStrings};const Za={name:"SecurityNetwork",version:"1.2.952",created:"2021-09-06T10:50:04.523Z"};export{Za as metadata};