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/default_av/ |
//{"name":"DarkWebMonitor","version":"1.2.140","created":"2021-03-09T11:54:33.496Z"} import{windowApi as t,napiTracker as e,eventer as n,serviceRequest as i,onlineChecker as s}from"./napi.js";import{nls as o,moment as a}from"./i18n.js";import{lifAccount as l,settingsService as r,ipmService as c}from"./napiExtensions.js";import{TabableToggler as d,trapTabNavigation as u,stringUtils as h}from"./libs.js";import{objectFromEntriesPolyfill as p}from"./plugins.js";function m(){}function k(t){return t()}function g(){return Object.create(null)}function v(t){t.forEach(k)}function b(t){return"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function f(t,...e){if(null==t)return m;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function w(t,e,n){t.$$.on_destroy.push(f(e,n))}function $(t,e,n,i){if(t){const s=y(t,e,n,i);return t[0](s)}}function y(t,e,n,i){return t[1]&&i?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](i(e))):n.ctx}function x(t,e,n,i,s,o,a){const l=function(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],n=Math.max(e.dirty.length,s.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|s[i];return t}return e.dirty|s}return e.dirty}(e,i,s,o);if(l){const s=y(e,n,i,a);t.p(s,l)}}function M(t){return t&&b(t.destroy)?t.destroy:m}function E(t,e){t.appendChild(e)}function I(t,e,n){t.insertBefore(e,n||null)}function C(t){t.parentNode.removeChild(t)}function D(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function L(t){return document.createElement(t)}function W(t){return document.createTextNode(t)}function S(){return W(" ")}function T(){return W("")}function H(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function z(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function A(t,e,n){e in t?t[e]=n:z(t,e,n)}function P(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n,i){t.style.setProperty(e,n,i?"important":"")}function O(t,e,n){t.classList[n?"add":"remove"](e)}class N{constructor(t=null){this.a=t,this.e=this.n=null}m(t,e,n=null){this.e||(this.e=L(e.nodeName),this.t=e,this.h(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)I(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(C)}}let q;function B(t){q=t}function U(){if(!q)throw new Error("Function called outside component initialization");return q}function R(t){U().$$.on_mount.push(t)}function F(t){U().$$.on_destroy.push(t)}function G(){const t=U();return(e,n)=>{const i=t.$$.callbacks[e];if(i){const s=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);i.slice().forEach((e=>{e.call(t,s)}))}}}const J=[],V=[],X=[],Z=[],K=Promise.resolve();let Q=!1;function Y(t){X.push(t)}let tt=!1;const et=new Set;function nt(){if(!tt){tt=!0;do{for(let t=0;t<J.length;t+=1){const e=J[t];B(e),it(e.$$)}for(B(null),J.length=0;V.length;)V.pop()();for(let t=0;t<X.length;t+=1){const e=X[t];et.has(e)||(et.add(e),e())}X.length=0}while(J.length);for(;Z.length;)Z.pop()();Q=!1,tt=!1,et.clear()}}function it(t){if(null!==t.fragment){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const st=new Set;let ot;function at(){ot={r:0,c:[],p:ot}}function lt(){ot.r||v(ot.c),ot=ot.p}function rt(t,e){t&&t.i&&(st.delete(t),t.i(e))}function ct(t,e,n,i){if(t&&t.o){if(st.has(t))return;st.add(t),ot.c.push((()=>{st.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}const dt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ut(t){t&&t.c()}function ht(t,e,n){const{fragment:i,on_mount:s,on_destroy:o,after_update:a}=t.$$;i&&i.m(e,n),Y((()=>{const e=s.map(k).filter(b);o?o.push(...e):v(e),t.$$.on_mount=[]})),a.forEach(Y)}function pt(t,e){const n=t.$$;null!==n.fragment&&(v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function mt(t,e){-1===t.$$.dirty[0]&&(J.push(t),Q||(Q=!0,K.then(nt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function kt(t,e,n,i,s,o,a=[-1]){const l=q;B(t);const r=e.props||{},c=t.$$={fragment:null,ctx:null,props:o,update:m,not_equal:s,bound:g(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:g(),dirty:a,skip_bound:!1};let d=!1;if(c.ctx=n?n(t,r,((e,n,...i)=>{const o=i.length?i[0]:n;return c.ctx&&s(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),d&&mt(t,e)),n})):[],c.update(),d=!0,v(c.before_update),c.fragment=!!i&&i(c.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);c.fragment&&c.fragment.l(t),t.forEach(C)}else c.fragment&&c.fragment.c();e.intro&&rt(t.$$.fragment),ht(t,e.target,e.anchor),nt()}B(l)}class gt{$destroy(){pt(this,1),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const{document:vt}=dt;const bt=t=>({}),_t=t=>({}),ft=t=>({}),wt=t=>({}),$t=t=>({}),yt=t=>({}),xt=t=>({}),Mt=t=>({}),Et=t=>({}),It=t=>({}),Ct=t=>({}),Dt=t=>({});function Lt(t){let e,n,i,s,o;const a=[St,Wt],l=[];function r(t,e){return""!=t[0]?0:1}return e=r(t),n=l[e]=a[e](t),{c(){n.c(),i=S(),s=L("kin-loading"),A(s,"fullscreen","true"),A(s,"class","svelte-kh5tai")},m(t,n){l[e].m(t,n),I(t,i,n),I(t,s,n),o=!0},p(t,s){let o=e;e=r(t),e===o?l[e].p(t,s):(at(),ct(l[o],1,1,(()=>{l[o]=null})),lt(),n=l[e],n?n.p(t,s):(n=l[e]=a[e](t),n.c()),rt(n,1),n.m(i.parentNode,i))},i(t){o||(rt(n),o=!0)},o(t){ct(n),o=!1},d(t){l[e].d(t),t&&C(i),t&&C(s)}}}function Wt(t){let e,n;const i=t[16]["page-title"],s=$(i,t,t[15],Dt);return{c(){e=L("div"),s&&s.c(),z(e,"class","kin_loading__title svelte-kh5tai"),j(e,"color","transparent")},m(t,i){I(t,e,i),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&32768&e&&x(s,i,t,t[15],e,Ct,Dt)},i(t){n||(rt(s,t),n=!0)},o(t){ct(s,t),n=!1},d(t){t&&C(e),s&&s.d(t)}}}function St(t){let e;return{c(){e=L("h1"),z(e,"class","kin_loading__title svelte-kh5tai"),j(e,"color","transparent")},m(n,i){I(n,e,i),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},i:m,o:m,d(t){t&&C(e)}}}function Tt(t){let e,n;const i=t[16]["page-title"],s=$(i,t,t[15],Mt);return{c(){e=L("div"),s&&s.c(),z(e,"class","kin_header__title svelte-kh5tai")},m(t,i){I(t,e,i),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&32768&e&&x(s,i,t,t[15],e,xt,Mt)},i(t){n||(rt(s,t),n=!0)},o(t){ct(s,t),n=!1},d(t){t&&C(e),s&&s.d(t)}}}function Ht(t){let e;return{c(){e=L("h1"),z(e,"class","kin_header__title svelte-kh5tai")},m(n,i){I(n,e,i),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},i:m,o:m,d(t){t&&C(e)}}}function zt(t){let e,n,i;const s=t[16].controls,o=$(s,t,t[15],yt);let a=t[4]&&t[5]&&At(t);return{c(){e=L("div"),o&&o.c(),n=S(),a&&a.c(),z(e,"class","kin_header__controls svelte-kh5tai")},m(t,s){I(t,e,s),o&&o.m(e,null),E(e,n),a&&a.m(e,null),i=!0},p(t,n){o&&o.p&&32768&n&&x(o,s,t,t[15],n,$t,yt),t[4]&&t[5]?a?a.p(t,n):(a=At(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i(t){i||(rt(o,t),i=!0)},o(t){ct(o,t),i=!1},d(t){t&&C(e),o&&o.d(t),a&&a.d()}}}function At(t){let e,n;return{c(){e=L("div"),n=W(t[5]),z(e,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-kh5tai")},m(t,i){I(t,e,i),E(e,n)},p(t,e){32&e&&P(n,t[5])},d(t){t&&C(e)}}}function Pt(t){let e,n,i,s,a;return{c(){e=L("button"),n=L("kin-icon"),A(n,"name","icon-s-controls-arrow-left"),A(n,"size","20"),A(n,"class","svelte-kh5tai"),z(e,"class","kin_back-btn svelte-kh5tai"),z(e,"title",i=o("global.goBack"))},m(i,o){I(i,e,o),E(e,n),s||(a=H(e,"click",t[17]),s=!0)},p:m,d(t){t&&C(e),s=!1,a()}}}function jt(t){let e,n,i,s;return{c(){e=L("a"),n=L("kin-icon"),A(n,"name","icon-s-controls-arrow-left"),A(n,"size","20"),A(n,"class","svelte-kh5tai"),z(e,"class","kin_back-btn svelte-kh5tai"),z(e,"href",i=t[9]||"#Dashboard"),z(e,"title",s=o("global.goBack"))},m(t,i){I(t,e,i),E(e,n)},p(t,n){512&n&&i!==(i=t[9]||"#Dashboard")&&z(e,"href",i)},d(t){t&&C(e)}}}function Ot(t){let e,n,i;return{c(){e=L("a"),n=L("kin-icon"),A(n,"name","icon-s-settings-button"),A(n,"size","20"),A(n,"class","svelte-kh5tai"),z(e,"class","kin_settings-btn svelte-kh5tai"),z(e,"href",t[1]),z(e,"title",i=o("settings"))},m(t,i){I(t,e,i),E(e,n)},p(t,n){2&n&&z(e,"href",t[1])},d(t){t&&C(e)}}}function Nt(t){let e,n,i,s,o;const a=t[16]["page-content"],l=$(a,t,t[15],_t);return{c(){e=L("div"),l&&l.c(),z(e,"class","kin_page__content svelte-kh5tai"),O(e,"-disabled",t[4])},m(a,r){I(a,e,r),l&&l.m(e,null),i=!0,s||(o=M(n=t[13].call(null,e)),s=!0)},p(t,n){l&&l.p&&32768&n&&x(l,a,t,t[15],n,bt,_t),16&n&&O(e,"-disabled",t[4])},i(t){i||(rt(l,t),i=!0)},o(t){ct(l,t),i=!1},d(t){t&&C(e),l&&l.d(t),s=!1,o()}}}function qt(t){let e,n;const i=t[16].upsell,s=$(i,t,t[15],wt);return{c(){e=L("div"),s&&s.c(),z(e,"class","kin_page__content svelte-kh5tai")},m(t,i){I(t,e,i),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&32768&e&&x(s,i,t,t[15],e,ft,wt)},i(t){n||(rt(s,t),n=!0)},o(t){ct(s,t),n=!1},d(t){t&&C(e),s&&s.d(t)}}}function Bt(t){let e,n,i,s,o,a,l,r,c,d,u,h,p,m,k,g,v,b=t[10]&&Lt(t);const _=t[16].breadcrumbs,f=$(_,t,t[15],It),w=[Ht,Tt],y=[];function M(t,e){return t[0]?0:1}r=M(t),c=y[r]=w[r](t);let D=!t[3]&&zt(t);function W(t,e){return t[7]&&!t[8]?jt:t[8]?Pt:void 0}let T=W(t),H=T&&T(t),A=t[1]&&!t[3]&&Ot(t);const P=[qt,Nt],j=[];function N(t,e){return t[3]?0:1}return m=N(t),k=j[m]=P[m](t),{c(){e=L("div"),b&&b.c(),n=S(),i=L("div"),s=L("header"),o=L("div"),f&&f.c(),a=S(),l=L("div"),c.c(),d=S(),D&&D.c(),u=S(),H&&H.c(),h=S(),A&&A.c(),p=S(),k.c(),z(o,"class","kin_header__crumbs crumbs svelte-kh5tai"),z(l,"class","kin_header__content svelte-kh5tai"),z(s,"class","kin_header svelte-kh5tai"),z(i,"class","svelte-kh5tai"),O(i,"invisible",t[10]),z(e,"class",g="kin_page "+("ltr"!=t[11]?"-"+t[11]:"")+" "+(t[6]?"-"+t[6]:"")+" "+t[2]+" svelte-kh5tai")},m(t,c){I(t,e,c),b&&b.m(e,null),E(e,n),E(e,i),E(i,s),E(s,o),f&&f.m(o,null),E(s,a),E(s,l),y[r].m(l,null),E(l,d),D&&D.m(l,null),E(s,u),H&&H.m(s,null),E(s,h),A&&A.m(s,null),E(i,p),j[m].m(i,null),v=!0},p(t,[o]){t[10]?b?(b.p(t,o),1024&o&&rt(b,1)):(b=Lt(t),b.c(),rt(b,1),b.m(e,n)):b&&(at(),ct(b,1,1,(()=>{b=null})),lt()),f&&f.p&&32768&o&&x(f,_,t,t[15],o,Et,It);let a=r;r=M(t),r===a?y[r].p(t,o):(at(),ct(y[a],1,1,(()=>{y[a]=null})),lt(),c=y[r],c?c.p(t,o):(c=y[r]=w[r](t),c.c()),rt(c,1),c.m(l,d)),t[3]?D&&(at(),ct(D,1,1,(()=>{D=null})),lt()):D?(D.p(t,o),8&o&&rt(D,1)):(D=zt(t),D.c(),rt(D,1),D.m(l,null)),T===(T=W(t))&&H?H.p(t,o):(H&&H.d(1),H=T&&T(t),H&&(H.c(),H.m(s,h))),t[1]&&!t[3]?A?A.p(t,o):(A=Ot(t),A.c(),A.m(s,null)):A&&(A.d(1),A=null);let u=m;m=N(t),m===u?j[m].p(t,o):(at(),ct(j[u],1,1,(()=>{j[u]=null})),lt(),k=j[m],k?k.p(t,o):(k=j[m]=P[m](t),k.c()),rt(k,1),k.m(i,null)),1024&o&&O(i,"invisible",t[10]),(!v||2116&o&&g!==(g="kin_page "+("ltr"!=t[11]?"-"+t[11]:"")+" "+(t[6]?"-"+t[6]:"")+" "+t[2]+" svelte-kh5tai"))&&z(e,"class",g)},i(t){v||(rt(b),rt(f,t),rt(c),rt(D),rt(k),v=!0)},o(t){ct(b),ct(f,t),ct(c),ct(D),ct(k),v=!1},d(t){t&&C(e),b&&b.d(),f&&f.d(t),y[r].d(),D&&D.d(),H&&H.d(),A&&A.d(),j[m].d()}}}function Ut(t,e,n){let{$$slots:i={},$$scope:s}=e,{heading:o}=e,{settingsUrl:a}=e,{cssCls:l}=e,{upsell:r=!1}=e,{inactive:c=!1}=e,{inactiveMsg:u}=e,{layout:h}=e,{back:p=!0}=e,{backEvent:m=!1}=e,{backHash:k}=e,{loading:g=!1}=e;const v=G();let b,_="ltr";R((()=>{n(11,_=document.body.dir)}));return t.$$set=t=>{"heading"in t&&n(0,o=t.heading),"settingsUrl"in t&&n(1,a=t.settingsUrl),"cssCls"in t&&n(2,l=t.cssCls),"upsell"in t&&n(3,r=t.upsell),"inactive"in t&&n(4,c=t.inactive),"inactiveMsg"in t&&n(5,u=t.inactiveMsg),"layout"in t&&n(6,h=t.layout),"back"in t&&n(7,p=t.back),"backEvent"in t&&n(8,m=t.backEvent),"backHash"in t&&n(9,k=t.backHash),"loading"in t&&n(10,g=t.loading),"$$scope"in t&&n(15,s=t.$$scope)},t.$$.update=()=>{16400&t.$$.dirty&&b&&b.set(!c)},[o,a,l,r,c,u,h,p,m,k,g,_,v,function(t){return n(14,b=new d(t)),{destroy:b.destroy.bind(b)}},b,s,i,()=>v("backClick")]}class Rt extends gt{constructor(t){var e;super(),vt.getElementById("svelte-kh5tai-style")||((e=L("style")).id="svelte-kh5tai-style",e.textContent=".invisible.svelte-kh5tai.svelte-kh5tai{display:none}.svelte-kh5tai.svelte-kh5tai,.svelte-kh5tai.svelte-kh5tai:before,.svelte-kh5tai.svelte-kh5tai:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.kin_page.svelte-kh5tai.svelte-kh5tai{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--page-background);overflow:hidden}.kin_loading__title.svelte-kh5tai.svelte-kh5tai{position:absolute;opacity:0.01}.kin_header.svelte-kh5tai.svelte-kh5tai{padding:1.5rem var(--page-padding) 0;height:var(--header-height);position:relative;text-align:var(--page-header-align)}.kin_header__crumbs.svelte-kh5tai.svelte-kh5tai,.kin_header__content.svelte-kh5tai.svelte-kh5tai{position:absolute;left:var(--page-padding);right:var(--page-padding)}.kin_header__crumbs.svelte-kh5tai.svelte-kh5tai{display:var(--breadcrumbs-vis)}.kin_header__content.svelte-kh5tai.svelte-kh5tai{bottom:1.1rem}.kin_header__title.svelte-kh5tai.svelte-kh5tai,.kin_header__controls.svelte-kh5tai.svelte-kh5tai{display:inline-block;vertical-align:middle;position:relative}.kin_header__title.svelte-kh5tai.svelte-kh5tai{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-kh5tai.svelte-kh5tai{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-kh5tai.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai{position:absolute;left:0;top:var(--back-button-top);border:0;background-color:rgba(213,211,230,0.1);transition:background-color 0.2s;cursor:pointer;color:inherit;text-decoration:none;width:4rem;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-kh5tai kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai kin-icon.svelte-kh5tai{opacity:0.8}.kin_back-btn.svelte-kh5tai.svelte-kh5tai:hover,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:hover{transform:scale(1.1)}.kin_back-btn.svelte-kh5tai.svelte-kh5tai:focus,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:focus,.kin_back-btn.svelte-kh5tai.svelte-kh5tai:hover,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:hover{background-color:rgba(213,211,230,0.3);outline:0}.kin_back-btn.svelte-kh5tai:focus kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai:focus kin-icon.svelte-kh5tai,.kin_back-btn.svelte-kh5tai:hover kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai:hover kin-icon.svelte-kh5tai{opacity:1}.kin_settings-btn.svelte-kh5tai.svelte-kh5tai{left:auto;right:0;border-radius:var(--back-button-height) 0 0 var(--back-button-height)}.kin_settings-btn__tooltip.svelte-kh5tai.svelte-kh5tai{display:none;position:absolute;right:105%}.kin_back-btn.svelte-kh5tai.svelte-kh5tai{display:var(--back-btn-vis)}.kin_back-btn.-static.svelte-kh5tai.svelte-kh5tai{position:fixed;top:6.4rem}.kin_page__content.svelte-kh5tai.svelte-kh5tai{position:absolute;top:var(--header-height);right:0;bottom:0;left:0;display:block}.kin_page__content.-disabled.svelte-kh5tai.svelte-kh5tai{opacity:0.2;pointer-events:none}.kin_upsell.svelte-kh5tai.svelte-kh5tai{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-kh5tai.svelte-kh5tai{font-size:18rem;margin-bottom:2rem}.kin_upsell__cta.svelte-kh5tai.svelte-kh5tai{margin-top:1rem}.kin_page.-no-header.svelte-kh5tai .kin_header.svelte-kh5tai{display:none}.kin_page.-no-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:0}.kin_page.-cover-header.svelte-kh5tai .kin_header.svelte-kh5tai{position:absolute;width:100%;z-index:1}.kin_page.-cover-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:0}.kin_page.-large-header.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-large)}.kin_page.-large-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-large-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-large)}.kin_page.-medium-header.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-medium)}.kin_page.-medium-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-medium-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-medium)}.kin_page.-tabs-page.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-tabs);text-align:center}.kin_page.-tabs-page.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block;text-align:center}.kin_page.-tabs-page.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:block;text-align:center;padding:0}.kin_page.-tabs-page.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-tabs);text-align:center}.kin_page.-center-header.svelte-kh5tai .kin_header__controls.svelte-kh5tai,.kin_page.-center-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block;text-align:center}.kin_page.-center.svelte-kh5tai.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai.svelte-kh5tai{text-align:center}.kin_page.-center.svelte-kh5tai .kin_header__controls.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:none}.kin_page.-center.svelte-kh5tai .kin_header__title.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-center-all.svelte-kh5tai .kin_page__content.svelte-kh5tai{display:flex;align-items:center;justify-content:center;text-align:center}.kin_page.-flex-between.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:none}.kin_page.-flex-between.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-flex-between.svelte-kh5tai .kin_page__content.svelte-kh5tai{display:flex;align-items:center;justify-content:space-between;text-align:center}.kin_page.-profile.svelte-kh5tai .kin_header.svelte-kh5tai{position:static;height:auto;text-align:start}.kin_page.-profile.svelte-kh5tai .kin_header__content.svelte-kh5tai{position:static}.kin_page.-profile.svelte-kh5tai .kin_header__controls.svelte-kh5tai{position:static;display:block;padding:0;max-height:none}.kin_page.-profile.svelte-kh5tai .kin_header__title.svelte-kh5tai{max-height:none;max-width:100%}.kin_page.-profile.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:calc(var(--header-height) + 6rem)}.kin_page.-detail.svelte-kh5tai .kin_header.svelte-kh5tai{text-align:center;height:calc(var(--header-height-large) + 4rem)}.kin_page.-detail.svelte-kh5tai .kin_header__content.svelte-kh5tai{display:block}.kin_page.-detail.svelte-kh5tai .kin_header__title.svelte-kh5tai{max-height:none;display:block;font-weight:var(--font-weight-h1);padding:0 8%}.kin_page.-detail.svelte-kh5tai .kin_header__controls.svelte-kh5tai{padding:1rem 0 0;position:static;display:block;max-height:none}.kin_page.-detail.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:calc(var(--header-height-large) + 4rem)}.kin_page.-rtl.svelte-kh5tai .kin_header__tooltip.svelte-kh5tai{transform:translateX(50%);left:auto;right:50%}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai,.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai{transform:scale(-1)}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai:hover,.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai:hover{transform:scale(-1.1)}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai{left:auto;right:0}.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai{right:auto;left:0}",E(vt.head,e)),kt(this,t,Ut,Bt,_,{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(t){this.$set({heading:t}),nt()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(t){this.$set({settingsUrl:t}),nt()}get cssCls(){return this.$$.ctx[2]}set cssCls(t){this.$set({cssCls:t}),nt()}get upsell(){return this.$$.ctx[3]}set upsell(t){this.$set({upsell:t}),nt()}get inactive(){return this.$$.ctx[4]}set inactive(t){this.$set({inactive:t}),nt()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(t){this.$set({inactiveMsg:t}),nt()}get layout(){return this.$$.ctx[6]}set layout(t){this.$set({layout:t}),nt()}get back(){return this.$$.ctx[7]}set back(t){this.$set({back:t}),nt()}get backEvent(){return this.$$.ctx[8]}set backEvent(t){this.$set({backEvent:t}),nt()}get backHash(){return this.$$.ctx[9]}set backHash(t){this.$set({backHash:t}),nt()}get loading(){return this.$$.ctx[10]}set loading(t){this.$set({loading:t}),nt()}}p();const Ft=t=>({}),Gt=t=>({}),Jt=t=>({}),Vt=t=>({}),Xt=t=>({}),Zt=t=>({}),Kt=t=>({}),Qt=t=>({});function Yt(t){let e,n,i;return{c(){e=L("div"),z(e,"class","sve_modal__overlay__close")},m(s,o){I(s,e,o),n||(i=H(e,"click",t[14]),n=!0)},p:m,d(t){t&&C(e),n=!1,i()}}}function te(t){let e,n;return{c(){e=L("h2"),n=W(t[0]),z(e,"class","sve_modal__title")},m(t,i){I(t,e,i),E(e,n)},p(t,e){1&e&&P(n,t[0])},d(t){t&&C(e)}}}function ee(t){let e,n;return{c(){e=L("p"),n=W(t[1]),z(e,"class","sve_modal__subtitle")},m(t,i){I(t,e,i),E(e,n)},p(t,e){2&e&&P(n,t[1])},d(t){t&&C(e)}}}function ne(t){let e,n,i,s,a;return{c(){e=L("button"),n=L("kin-icon"),A(n,"name","icon-s-controls-close"),A(n,"size","12"),z(e,"class","sve_modal__close"),z(e,"data-test","close"),z(e,"title",i=o("global.closeModalWindow"))},m(i,o){I(i,e,o),E(e,n),s||(a=H(e,"click",t[15]),s=!0)},p:m,d(t){t&&C(e),s=!1,a()}}}function ie(t){let e,n,i;const s=t[13]["modal-ipm"],o=$(s,t,t[12],Gt);return{c(){e=L("div"),o&&o.c(),z(e,"class","sve_modal__ipm"),z(e,"style",n=`${t[7]} margin-top: 0;`)},m(t,n){I(t,e,n),o&&o.m(e,null),i=!0},p(t,a){o&&o.p&&4096&a&&x(o,s,t,t[12],a,Ft,Gt),(!i||128&a&&n!==(n=`${t[7]} margin-top: 0;`))&&z(e,"style",n)},i(t){i||(rt(o,t),i=!0)},o(t){ct(o,t),i=!1},d(t){t&&C(e),o&&o.d(t)}}}function se(t){let e,n,i,s,o,a,l,r,c,d,h,p,m,k,g,b,_,f,w=t[3]&&Yt(t),y=t[0]&&te(t),D=t[1]&&ee(t);const W=t[13]["modal-header"],T=$(W,t,t[12],Qt);let A=t[3]&&ne(t);const P=t[13]["modal-content"],j=$(P,t,t[12],Zt),O=t[13]["modal-footer"],N=$(O,t,t[12],Vt);let q=t[5]&&ie(t);return{c(){e=L("div"),w&&w.c(),n=S(),i=L("div"),s=L("div"),y&&y.c(),o=S(),D&&D.c(),a=S(),T&&T.c(),l=S(),A&&A.c(),r=S(),c=L("div"),j&&j.c(),d=S(),h=L("div"),N&&N.c(),p=S(),q&&q.c(),z(s,"class","sve_modal__header"),z(c,"class","sve_modal__content"),z(h,"class","sve_modal__footer"),z(i,"class","sve_modal"),z(i,"style",m=`${t[6]}`),z(e,"class",k="sve_modal__overlay "+t[4]),z(e,"data-test",t[2])},m(m,k){I(m,e,k),w&&w.m(e,null),E(e,n),E(e,i),E(i,s),y&&y.m(s,null),E(s,o),D&&D.m(s,null),E(s,a),T&&T.m(s,null),E(i,l),A&&A.m(i,null),E(i,r),E(i,c),j&&j.m(c,null),E(i,d),E(i,h),N&&N.m(h,null),E(i,p),q&&q.m(i,null),b=!0,_||(f=[H(window,"keydown",t[9],!0),M(g=u.call(null,e))],_=!0)},p(t,[l]){t[3]?w?w.p(t,l):(w=Yt(t),w.c(),w.m(e,n)):w&&(w.d(1),w=null),t[0]?y?y.p(t,l):(y=te(t),y.c(),y.m(s,o)):y&&(y.d(1),y=null),t[1]?D?D.p(t,l):(D=ee(t),D.c(),D.m(s,a)):D&&(D.d(1),D=null),T&&T.p&&4096&l&&x(T,W,t,t[12],l,Kt,Qt),t[3]?A?A.p(t,l):(A=ne(t),A.c(),A.m(i,r)):A&&(A.d(1),A=null),j&&j.p&&4096&l&&x(j,P,t,t[12],l,Xt,Zt),N&&N.p&&4096&l&&x(N,O,t,t[12],l,Jt,Vt),t[5]?q?(q.p(t,l),32&l&&rt(q,1)):(q=ie(t),q.c(),rt(q,1),q.m(i,null)):q&&(at(),ct(q,1,1,(()=>{q=null})),lt()),(!b||64&l&&m!==(m=`${t[6]}`))&&z(i,"style",m),(!b||16&l&&k!==(k="sve_modal__overlay "+t[4]))&&z(e,"class",k),(!b||4&l)&&z(e,"data-test",t[2])},i(t){b||(rt(T,t),rt(j,t),rt(N,t),rt(q),b=!0)},o(t){ct(T,t),ct(j,t),ct(N,t),ct(q),b=!1},d(t){t&&C(e),w&&w.d(),y&&y.d(),D&&D.d(),T&&T.d(t),A&&A.d(),j&&j.d(t),N&&N.d(t),q&&q.d(),_=!1,v(f)}}}function oe(t,e,n){let{$$slots:i={},$$scope:s}=e;const o=G();let a,{title:l=null}=e,{subtitle:r=null}=e,{testId:c=""}=e,{closable:d=!0}=e,{cssCls:u=""}=e,{ipm:h=!1}=e,{width:p}=e,{ipmHeight:m}=e,k="",g="";R((()=>{a=document.activeElement})),F((()=>{document.body.contains(a)&&a.focus()}));return t.$$set=t=>{"title"in t&&n(0,l=t.title),"subtitle"in t&&n(1,r=t.subtitle),"testId"in t&&n(2,c=t.testId),"closable"in t&&n(3,d=t.closable),"cssCls"in t&&n(4,u=t.cssCls),"ipm"in t&&n(5,h=t.ipm),"width"in t&&n(10,p=t.width),"ipmHeight"in t&&n(11,m=t.ipmHeight),"$$scope"in t&&n(12,s=t.$$scope)},t.$$.update=()=>{1024&t.$$.dirty&&p&&n(6,k=`width: ${p}px;`),2080&t.$$.dirty&&h&&m&&n(7,g=`height: ${m}px;`)},[l,r,c,d,u,h,k,g,o,function(t){"Escape"===t.code&&(o("close"),t.preventDefault(),t.stopPropagation())},p,m,s,i,()=>o("close"),()=>o("close")]}class ae extends gt{constructor(t){super(),kt(this,t,oe,se,_,{title:0,subtitle:1,testId:2,closable:3,cssCls:4,ipm:5,width:10,ipmHeight:11})}}var le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},re="object"==typeof le&&le&&le.Object===Object&&le,ce="object"==typeof self&&self&&self.Object===Object&&self;re||ce||Function("return this")();function de(t){let e,n,i,s;return{c(){e=L("div"),n=L("kin-icon"),A(n,"name",t[4]),z(e,"class",i="sve_toaster__theme "+(t[3]?"color-"+t[3]:"color-dark -bg")),z(e,"style",s=t[5]?"font-size:"+t[5]:"")},m(t,i){I(t,e,i),E(e,n)},p(t,o){16&o&&A(n,"name",t[4]),8&o&&i!==(i="sve_toaster__theme "+(t[3]?"color-"+t[3]:"color-dark -bg"))&&z(e,"class",i),32&o&&s!==(s=t[5]?"font-size:"+t[5]:"")&&z(e,"style",s)},d(t){t&&C(e)}}}function ue(t){let e,n;return{c(){e=L("kin-icon"),A(e,"name",t[4]),A(e,"class",n="g-margin-bottom--20 "+(t[3]?"color-"+t[3]+" -text":""))},m(t,n){I(t,e,n)},p(t,i){16&i&&A(e,"name",t[4]),8&i&&n!==(n="g-margin-bottom--20 "+(t[3]?"color-"+t[3]+" -text":""))&&A(e,"class",n)},d(t){t&&C(e)}}}function he(t){let e,n;return{c(){e=L("h2"),n=W(t[6]),z(e,"class","sve_toaster__title h3")},m(t,i){I(t,e,i),E(e,n)},p(t,e){64&e&&P(n,t[6])},d(t){t&&C(e)}}}function pe(t){let e,n;function i(t,e){return t[10]?ke:me}let s=i(t),o=s(t),a=t[8]&&ge(t);return{c(){e=L("p"),o.c(),n=S(),a&&a.c(),z(e,"class","sve_toaster__text p -small")},m(t,i){I(t,e,i),o.m(e,null),E(e,n),a&&a.m(e,null)},p(t,l){s===(s=i(t))&&o?o.p(t,l):(o.d(1),o=s(t),o&&(o.c(),o.m(e,n))),t[8]?a?a.p(t,l):(a=ge(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},d(t){t&&C(e),o.d(),a&&a.d()}}}function me(t){let e;return{c(){e=W(t[7])},m(t,n){I(t,e,n)},p(t,n){128&n&&P(e,t[7])},d(t){t&&C(e)}}}function ke(t){let e,n;return{c(){n=T(),e=new N(n)},m(i,s){e.m(t[7],i,s),I(i,n,s)},p(t,n){128&n&&e.p(t[7])},d(t){t&&C(n),t&&e.d()}}}function ge(t){let e,n,i,s,o;return{c(){e=W(" "),n=L("button"),i=W(t[8]),z(n,"class","a g-font--capital")},m(a,l){I(a,e,l),I(a,n,l),E(n,i),s||(o=H(n,"click",t[14]),s=!0)},p(t,e){256&e&&P(i,t[8])},d(t){t&&C(e),t&&C(n),s=!1,o()}}}function ve(t){let e;function n(t,e){return t[11]<0||100<t[11]?_e:be}let i=n(t),s=i(t);return{c(){e=L("div"),s.c(),z(e,"class","sve_toaster__progress")},m(t,n){I(t,e,n),s.m(e,null)},p(t,o){i===(i=n(t))&&s?s.p(t,o):(s.d(1),s=i(t),s&&(s.c(),s.m(e,null)))},d(t){t&&C(e),s.d()}}}function be(t){let e,n,i,s,o;return{c(){e=L("kin-progress"),n=S(),i=L("p"),s=W(t[11]),o=W("%"),A(e,"percentage",t[11]),A(e,"csscls","-standalone"),z(i,"class","p")},m(t,a){I(t,e,a),I(t,n,a),I(t,i,a),E(i,s),E(i,o)},p(t,n){2048&n&&A(e,"percentage",t[11]),2048&n&&P(s,t[11])},d(t){t&&C(e),t&&C(n),t&&C(i)}}}function _e(t){let e;return{c(){e=L("kin-progress"),A(e,"percentage",t[11]),A(e,"csscls","-standalone -unknown")},m(t,n){I(t,e,n)},p(t,n){2048&n&&A(e,"percentage",t[11])},d(t){t&&C(e)}}}function fe(t){let e,n,i,s;return{c(){e=L("button"),n=W(t[9]),z(e,"class","btn sve_toaster__btn")},m(o,a){I(o,e,a),E(e,n),i||(s=H(e,"click",t[15]),i=!0)},p(t,e){512&e&&P(n,t[9])},d(t){t&&C(e),i=!1,s()}}}function we(t){let e,n,i,s,a,l,r,c,d,u,h,p,m,k,g,b,_,f,w,y,D,W=t[1]&&de(t),T=t[4]&&!t[1]&&ue(t),A=t[6]&&he(t),P=t[7]&&pe(t),O=(t[11]||0===t[11])&&ve(t);const N=t[24].default,q=$(N,t,t[23],null);let B=t[9]&&fe(t);return{c(){e=L("div"),n=L("div"),i=L("h1"),i.innerHTML='<span class="logo -white -width-70"></span>',s=S(),a=L("div"),l=L("button"),d=S(),u=L("div"),W&&W.c(),h=S(),T&&T.c(),p=S(),A&&A.c(),m=S(),P&&P.c(),k=S(),O&&O.c(),g=S(),q&&q.c(),b=S(),B&&B.c(),z(i,"class","nui_logo"),z(l,"class","nui_controls__item -close nui_caption_client"),z(l,"title",r=o("global.closeModalWindow")),z(a,"class","nui_controls"),z(n,"class","nui_titlebar -toaster nui_caption"),z(u,"class",_="nui_main -toaster\n\t\t"+(t[2]?"color-"+t[2]+" -bg":"")+"\n\t\t"+(t[1]?t[1]+"-toaster-icon":"")+"\n\t"),z(e,"class","sve_toaster"),j(e,"width",t[0]+"px")},m(o,r){I(o,e,r),E(e,n),E(n,i),E(n,s),E(n,a),E(a,l),E(e,d),E(e,u),W&&W.m(u,null),E(u,h),T&&T.m(u,null),E(u,p),A&&A.m(u,null),E(u,m),P&&P.m(u,null),E(u,k),O&&O.m(u,null),E(u,g),q&&q.m(u,null),E(u,b),B&&B.m(u,null),w=!0,y||(D=[H(l,"click",t[13]),M(c=t[16].call(null,n)),M(f=t[17].call(null,u)),H(e,"click",t[12])],y=!0)},p(t,[n]){t[1]?W?W.p(t,n):(W=de(t),W.c(),W.m(u,h)):W&&(W.d(1),W=null),t[4]&&!t[1]?T?T.p(t,n):(T=ue(t),T.c(),T.m(u,p)):T&&(T.d(1),T=null),t[6]?A?A.p(t,n):(A=he(t),A.c(),A.m(u,m)):A&&(A.d(1),A=null),t[7]?P?P.p(t,n):(P=pe(t),P.c(),P.m(u,k)):P&&(P.d(1),P=null),t[11]||0===t[11]?O?O.p(t,n):(O=ve(t),O.c(),O.m(u,g)):O&&(O.d(1),O=null),q&&q.p&&8388608&n&&x(q,N,t,t[23],n,null,null),t[9]?B?B.p(t,n):(B=fe(t),B.c(),B.m(u,null)):B&&(B.d(1),B=null),(!w||6&n&&_!==(_="nui_main -toaster\n\t\t"+(t[2]?"color-"+t[2]+" -bg":"")+"\n\t\t"+(t[1]?t[1]+"-toaster-icon":"")+"\n\t"))&&z(u,"class",_),(!w||1&n)&&j(e,"width",t[0]+"px")},i(t){w||(rt(q,t),w=!0)},o(t){ct(q,t),w=!1},d(t){t&&C(e),W&&W.d(),T&&T.d(),A&&A.d(),P&&P.d(),O&&O.d(),q&&q.d(t),B&&B.d(),y=!1,v(D)}}}function $e(n,i,s){let{$$slots:o={},$$scope:a}=i,{windowWidth:l=360}=i,{windowHeight:r=360}=i,{theme:c}=i,{skin:d}=i,{severity:u}=i,{icon:h}=i,{iconSize:p}=i,{title:m}=i,{text:k}=i,{textActionLabel:g}=i,{textActionLabelGA:v}=i,{progress:b}=i,{buttonLabel:_}=i,{buttonLabelGA:f}=i,{handleClose:w}=i,{allowHtml:$}=i;const y=G();let x,M,E;var I;function C(){s(18,r=M.scrollHeight+x.scrollHeight),t.resize(l,r)}let D;return I=()=>{C(),E=new MutationObserver(C.bind(this)),E.observe(M,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},U().$$.after_update.push(I),F((()=>{E&&E.disconnect()})),n.$$set=t=>{"windowWidth"in t&&s(0,l=t.windowWidth),"windowHeight"in t&&s(18,r=t.windowHeight),"theme"in t&&s(1,c=t.theme),"skin"in t&&s(2,d=t.skin),"severity"in t&&s(3,u=t.severity),"icon"in t&&s(4,h=t.icon),"iconSize"in t&&s(5,p=t.iconSize),"title"in t&&s(6,m=t.title),"text"in t&&s(7,k=t.text),"textActionLabel"in t&&s(8,g=t.textActionLabel),"textActionLabelGA"in t&&s(19,v=t.textActionLabelGA),"progress"in t&&s(20,b=t.progress),"buttonLabel"in t&&s(9,_=t.buttonLabel),"buttonLabelGA"in t&&s(21,f=t.buttonLabelGA),"handleClose"in t&&s(22,w=t.handleClose),"allowHtml"in t&&s(10,$=t.allowHtml),"$$scope"in t&&s(23,a=t.$$scope)},n.$$.update=()=>{1048576&n.$$.dirty&&s(11,D=Number.isNaN(parseInt(b))?b:parseInt(b))},[l,c,d,u,h,p,m,k,g,_,$,D,function(){e.event("Toaster","Click","Area"),y("areaAction")},function(){e.event("Toaster","Close"),w?y("close"):t.close()},function(){v&&e.event("Toaster","Click",v),y("doTextAction")},function(){f&&e.event("Toaster","Click",f),y("doAction")},function(t){x=t},function(t){M=t},r,v,b,f,w,a,o]}class ye extends gt{constructor(t){super(),kt(this,t,$e,we,_,{windowWidth:0,windowHeight:18,theme:1,skin:2,severity:3,icon:4,iconSize:5,title:6,text:7,textActionLabel:8,textActionLabelGA:19,progress:20,buttonLabel:9,buttonLabelGA:21,handleClose:22,allowHtml:10})}}const xe=[];function Me(t,e=m){let n;const i=[];function s(e){if(_(t,e)&&(t=e,n)){const e=!xe.length;for(let n=0;n<i.length;n+=1){const e=i[n];e[1](),xe.push(e,t)}if(e){for(let t=0;t<xe.length;t+=2)xe[t][0](xe[t+1]);xe.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=m){const l=[o,a];return i.push(l),1===i.length&&(n=e(s)||m),o(t),()=>{const t=i.indexOf(l);-1!==t&&i.splice(t,1),0===i.length&&(n(),n=null)}}}}function Ee(t,e,n){const i=!Array.isArray(t),s=i?[t]:t,o=e.length<2;return{subscribe:Me(n,(t=>{let n=!1;const a=[];let l=0,r=m;const c=()=>{if(l)return;r();const n=e(i?a[0]:a,t);o?t(n):r=b(n)?n:m},d=s.map(((t,e)=>f(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){v(d),r()}})).subscribe}}const Ie="loading",Ce="ready",De="error";let Le,We,Se,Te,He=0;const ze=Me(Ie),Ae=Me({},(function(){const t=()=>{on(Ie,!0),Je(!0).then((t=>{if(t.loggedIn)return en().then((()=>Promise.all([Ke(),Ve()]))).then((([e,n])=>!e[t.email]&&n?sn(t.email):Xe()))})).then((()=>on(Ce))).catch((()=>on(De)))};t();const e=[];return e.push(n.on("app.lif.account.logged_in",(()=>{on(Ie),Je(!0).then((t=>{if(t.loggedIn)return je.set({}),en().then((()=>Promise.all([Ke(!0),Ye(!0)]))).then((([e])=>e[t.email]?Xe(!0):sn(t.email)))})).then((()=>on(Ce))).catch((()=>on(De)))}))),e.push(n.on("app.lif.account.logged_out",(()=>{Ae.set({loggedIn:!1,email:null}),Oe.set({}),je.set({})}))),e.push(n.on("app.dwm.OnDataChanged",(()=>{on(Ie),Promise.all([Ke(!0),Xe(!0)]).then((()=>on(Ce))).catch((()=>on(De)))}))),e.push(n.on("online",(()=>{t()}))),()=>{Le=null,e.forEach((t=>t()))}})),Pe=Me(void 0,(function(){const t=()=>{on(Ie),Ve(!0).then((()=>on(Ce))).catch((()=>on(De)))};t();const e=[];return e.push(n.on("online",(()=>{t()}))),()=>{We=null,e.forEach((t=>t()))}})),je=Me({},(function(){const t=()=>{on(Ie),Je(!0).then((t=>t.loggedIn?Xe(!0):t.email?Ze(t.email):void 0)).then((()=>on(Ce))).catch((()=>on(De)))};t();const e=[];return e.push(n.on("online",(()=>{t()}))),()=>{e.forEach((t=>t())),Se=null}})),Oe=Me({},(function(){const t=()=>{on(Ie),Ke(!0).then((()=>on(Ce))).catch((()=>on(De)))};t();const e=[];return e.push(n.on("online",(()=>{t()}))),()=>{e.forEach((t=>t())),Te=null}})),Ne=Me({},(function(){on(Ie);const t=[];return Qe().then((()=>on(Ce))).catch((()=>on(De))),t.push(n.on("app.lis.install.app.lis.install.event",(()=>{Qe()}))),()=>{t.forEach((t=>t()))}})),qe=Ee(ze,(t=>t)),Be=Ee(Ae,(t=>t)),Ue=Ee(Pe,(t=>t)),Re=Ee(je,(t=>function(t){if(!t.data)return t;const e=[],n=t.breaches,i=t.data,s=t.authEmails;for(const a in i)for(const t in i[a]){i[a][t].forEach((i=>{const o=n[i.breachId];let l=null;for(const t in i.password)if(i.password[t].plaintext){l=i.password[t].value;break}const r={breachId:i.breachId,breachDescription:o.description,siteTitle:o.title,siteDescription:o.siteDescription,siteUrl:a,publishDate:Date.parse(o.publishDate),resolutionState:i.resolutionState,resolutionDate:i.resolutionDate?Date.parse(i.resolutionDate):null,email:t,emailAuthorized:s.includes(t),password:l,resolved:"RESOLVED"===i.resolutionState};e.push(r)}))}const o=function(t,e){return!t.resolved&&e.resolved?-1:t.resolved&&!e.resolved?1:t.publishDate>e.publishDate?-1:t.publishDate<e.publishDate?1:0};return e.sort(o),t.leaks=e,t}(t))),Fe=Ee(Oe,(t=>t)),Ge=Ee(Ne,(t=>t));function Je(t){return!t&&Le||(on(Ie),Le=l.getAccountInfo().then((t=>{const e={loggedIn:t&&t.logged_in,email:t&&t.email};return Ae.set(e),e})).then((t=>(on(Ce),t))).catch((t=>(console.error("Getting account info failed",t),on(De),Promise.reject(t))))),Le}function Ve(t){return!t&&We||(on(Ie),We=an("/v1/query/notification-subscriptions/application/new-breaches").then((t=>{const e=!(!t||!t.enabled);return Pe.set(e),n.emit("dwmMonitoring",e),e})).then((t=>(on(Ce),t))).catch((()=>on(De)))),We}function Xe(t){return!t&&Se||(on(Ie),Se=Je().then((t=>{if(t.loggedIn)return Promise.all([an("/v2/query/site-breaches/authorized-data"),an("/v2/query/site-breaches/unauthorized-data")]).then((([t,e])=>{const i={breaches:Object.assign(e.breaches,t.breaches),data:t.data,summary:Object.assign(e.summary,t.summary),authEmails:Object.keys(t.summary),leaksCount:{}};for(const n in e.data)i.data[n]=Object.assign(e.data[n],t.data[n]||{});let s=0,o=0;const a={};for(const n in i.data)for(const t in i.data[n])for(const e in i.data[n][t])"RESOLVED"!==i.data[n][t][e].resolutionState?(o++,a[t]=a[t]||[],a[t].push(i.data[n][t][e].breachId)):s++;return localStorage.setItem("dwmBreaches",JSON.stringify({lastCheck:Date.now(),leaks:a})),n.emit("dwmLeaksUpdated"),i.leaksCount={total:s+o,resolved:s,unresolved:o},je.set(i),i}));je.set({})})).then((t=>(on(Ce),t))).catch((()=>on(De)))),Se}function Ze(t){return on(Ie),Se=an("/v1/query/site-breaches/unauthorized-data/anonymous",{emailAddresses:[t]}).then((t=>{t.authEmails=[];let e=0;const n={};for(const i in t.data)for(const s in t.data[i])for(const o in t.data[i][s])e++,n[s]=n[s]||[],n[s].push(t.data[i][s][o].breachId);return t.leaksCount={total:e,resolved:0,unresolved:e},je.set(t),r.set("avcfg://settings/common/DWMEmailsEntered",1),t})).then((t=>(on(Ce),t))).catch((()=>on(De))),Se}function Ke(t){return!t&&Te||(on(Ie),Te=an("/v1/query/authorizations/email-address").then((t=>{const e=t.account;return Oe.set(e),Je().then((t=>{t.loggedIn&&r.set("avcfg://settings/common/DWMEmailsEntered",e?Object.keys(e).length:0)})),e})).then((t=>(on(Ce),t))).catch((()=>on(De)))),Te}function Qe(){return i("app.lis.get.all",{ids:["bg"]}).then((t=>{Ne.set({installed:t.products.bg.installed})}))}function Ye(t){return on(Ie),Ve().then((e=>{if(t!==e){return an(t?"/v1/command/subscribe-to-notifications/application/new-breaches":"/v1/command/unsubscribe-from-notifications/application/new-breaches",{},(t=>t instanceof ln&&1===t.status)).then((()=>{var e;return e=t,We=Promise.resolve(e),Pe.set(e),n.emit("dwmMonitoring",t),Promise.all([Ke(),Je()]).then((([e,n])=>t&&!e[n.email]?sn(n.email):e[n.email]?tn(n.email,t):void 0))}))}})).then((()=>on(Ce))).catch((()=>on(De)))}function tn(t,e=!0){return an(e?"/v1/command/subscribe-to-notifications/email":"/v1/command/unsubscribe-from-notifications/email",{emailAddress:t,notifications:["NEW_BREACH_ALERT"]},(t=>t instanceof ln&&(1===t.status||2===t.status)))}function en(){return on(Ie),an("/v1/command/pair-device").then((()=>on(Ce))).catch((()=>on(De)))}function nn(t){return an("/v1/command/resolve-site-breach/email-address",{breachId:t.breachId,emailAddress:t.email}).then((()=>Xe(!0))).then((e=>{var i;t.resolved=!0,t.resolutionDate=Date.now(),i=e,Se=Promise.resolve(i),je.set(i),n.emit("dwmLeakResolved")})).catch((()=>on(De,!1,!1)))}function sn(t,e=!1){return on(Ie),Ke().then((n=>{if(!n[t]||e)return an("/v1/command/request-authorization/email-address/account",{emailAddress:t},(t=>t instanceof ln&&(1===t.status||2===t.status||3===t.status))).then((()=>Ye(!0))).then((()=>tn(t,!0))).then((()=>Promise.all([Xe(!0),Ke(!0)])))})).then((()=>on(Ce))).catch((()=>on(De)))}function on(t,e,n=!0){n&&(t===Ie?He+=1:He-=1),He>0&&t==Ce&&!e||ze.update((n=>n!==De||e?t:n))}function an(t,e,n){const s=Date.now();return i("app.dwm.DoRequest",{endpoint:t,payload:e}).then((n=>{const i=n.response,o=parseInt(n.headers["Vaar-Status"]);return 0!==o?Promise.reject(new ln(o)):(console.groupCollapsed("%c 🕵️♂ DarkWebMonitor %c "+t+" %c in "+(Date.now()-s)+"ms ","background: #000; color: #fff","background: #00b81d; color: #FFF","background: #FFF; color: #009cff"),console.log("❯",e),console.log("❮",i),console.groupEnd(),i)})).catch((i=>{if(console.groupCollapsed("%c 🕵️♂ DarkWebMonitor %c "+t+" %c in "+(Date.now()-s)+"ms ","background: #000; color: #fff","background: #ff0000; color: #FFF","background: #FFF; color: #009cff"),console.log("❯",e),console.log("❮",i),console.groupEnd(),!n||!n(i))return console.error(t,i),Promise.reject(i)}))}class ln{constructor(t){this.status=t}toString(){return"Server return status "+this.status}}const rn={resolved:"resolved",resolving:"resolving",openingSite:"openingSite",changingPassword:"changingPassword"};class cn{constructor(t){this.STATES=rn,this.siteUrl=t.siteUrl,this.breach=Object.assign({},t),this.store=Me({hiddenPassword:this.getHiddenPassword(t.password),isExpanded:!1,showPassword:!1,state:t.resolved?rn.resolved:null,resolutionDate:t.resolutionDate})}getStore(){return this.store}getHiddenPassword(t){let e="************";if(t){e=t.replace(/./g,"*");const n=e.length;n>=3&&(e=e.substr(0,1)+t[1]+e.substr(2,n-3)+t[n-1])}return e}toggleDetail(){this.store.update((t=>(t.isExpanded=!t.isExpanded,t)))}changePassword(){this.setState(rn.openingSite),Promise.all([new Promise((t=>setTimeout(t,1e3))),t.browse("http://"+this.siteUrl)]).finally((()=>{this.setState(rn.changingPassword)}))}showPassword(t){this.store.update((e=>(e.showPassword=t,e)))}resolve(){this.setState(rn.resolving),nn(this.breach).finally((()=>{this.store.update((t=>(t.resolutionDate=Date.now(),t))),this.setState(rn.resolved)}))}setState(t){this.store.update((e=>(e.state=t,e)))}}function dn(t){let e;return{c(){e=L("kin-icon"),A(e,"class","dwm__sub-icon svelte-olalp4"),A(e,"name","badge-critical"),A(e,"size","16"),A(e,"data-test","badge-critical")},m(t,n){I(t,e,n)},d(t){t&&C(e)}}}function un(t){let e;return{c(){e=L("kin-icon"),A(e,"class","dwm__sub-icon svelte-olalp4"),A(e,"name","badge-ok"),A(e,"size","16"),A(e,"data-test","badge-ok")},m(t,n){I(t,e,n)},d(t){t&&C(e)}}}function hn(t){let e,n=o("darkWebMonitor.breach.discovered",a(t[0].publishDate).format("LL"))+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p(t,i){1&i&&n!==(n=o("darkWebMonitor.breach.discovered",a(t[0].publishDate).format("LL"))+"")&&P(e,n)},d(t){t&&C(e)}}}function pn(t){let e,n=o("darkWebMonitor.breach.solved",a(t[0].resolutionDate).format("LL"))+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p(t,i){1&i&&n!==(n=o("darkWebMonitor.breach.solved",a(t[0].resolutionDate).format("LL"))+"")&&P(e,n)},d(t){t&&C(e)}}}function mn(t){let e,n,i;return{c(){e=L("kin-button"),e.innerHTML='<kin-icon name="icon-s-controls-arrow-down" size="16"></kin-icon>',A(e,"type","blank"),A(e,"size","small"),A(e,"icononly","")},m(s,o){I(s,e,o),n||(i=H(e,"click",t[8]),n=!0)},p:m,d(t){t&&C(e),n=!1,i()}}}function kn(t){let e,n,i;return{c(){e=L("kin-button"),e.innerHTML='<kin-icon name="icon-s-controls-arrow-up" size="16"></kin-icon>',A(e,"type","blank"),A(e,"size","small"),A(e,"icononly","")},m(s,o){I(s,e,o),n||(i=H(e,"click",t[7]),n=!0)},p:m,d(t){t&&C(e),n=!1,i()}}}function gn(t){let e,n,i,s,a,l,r,c,d,u,h,p,m,k,g=t[0].email+"",v=t[0].breachDescription&&vn(t);function b(t,e){return t[2].showPassword&&t[0].password?wn:fn}let _=b(t),f=_(t),w=t[0].emailAuthorized&&yn(t);return{c(){e=L("div"),n=L("div"),v&&v.c(),i=S(),s=L("div"),a=L("span"),a.textContent=`${o("darkWebMonitor.breach.detail.account")}`,l=S(),r=L("span"),c=W(g),d=S(),u=L("div"),h=L("span"),h.textContent=`${o("darkWebMonitor.breach.detail.password")}`,p=S(),m=L("span"),f.c(),k=S(),w&&w.c(),z(s,"class","dwm__account_row svelte-olalp4"),z(u,"class","dwm__account_row g-margin-bottom--20 svelte-olalp4"),z(n,"class","dwm__breach_detail svelte-olalp4"),z(e,"class","kin_table__row dwm__breach_row_details dwm__breach_row svelte-olalp4")},m(t,o){I(t,e,o),E(e,n),v&&v.m(n,null),E(n,i),E(n,s),E(s,a),E(s,l),E(s,r),E(r,c),E(n,d),E(n,u),E(u,h),E(u,p),E(u,m),f.m(m,null),E(n,k),w&&w.m(n,null)},p(t,e){t[0].breachDescription?v?v.p(t,e):(v=vn(t),v.c(),v.m(n,i)):v&&(v.d(1),v=null),1&e&&g!==(g=t[0].email+"")&&P(c,g),_===(_=b(t))&&f?f.p(t,e):(f.d(1),f=_(t),f&&(f.c(),f.m(m,null))),t[0].emailAuthorized?w?w.p(t,e):(w=yn(t),w.c(),w.m(n,null)):w&&(w.d(1),w=null)},d(t){t&&C(e),v&&v.d(),f.d(),w&&w.d()}}}function vn(t){let e;function n(t,e){return t[0].breachDescription.length<=Dn||t[1]?_n:bn}let i=n(t),s=i(t);return{c(){e=L("p"),s.c(),z(e,"class","g-margin-bottom--20")},m(t,n){I(t,e,n),s.m(e,null)},p(t,o){i===(i=n(t))&&s?s.p(t,o):(s.d(1),s=i(t),s&&(s.c(),s.m(e,null)))},d(t){t&&C(e),s.d()}}}function bn(t){let e,n,i,s,a,l=h.ellipsis(t[0].breachDescription,Dn)+"";return{c(){e=W(l),n=S(),i=L("button"),i.textContent=`${o("darkWebMonitor.breach.detail.more")}`,z(i,"class","a -small -secondary")},m(o,l){I(o,e,l),I(o,n,l),I(o,i,l),s||(a=H(i,"click",t[9]),s=!0)},p(t,n){1&n&&l!==(l=h.ellipsis(t[0].breachDescription,Dn)+"")&&P(e,l)},d(t){t&&C(e),t&&C(n),t&&C(i),s=!1,a()}}}function _n(t){let e,n=t[0].breachDescription+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p(t,i){1&i&&n!==(n=t[0].breachDescription+"")&&P(e,n)},d(t){t&&C(e)}}}function fn(t){let e,n,i,s,o=t[2].hiddenPassword+"",a=t[0].password&&$n(t);return{c(){e=L("span"),n=W(o),i=S(),a&&a.c(),s=T(),z(e,"class","dwm__account_hiddenPassword svelte-olalp4")},m(t,o){I(t,e,o),E(e,n),I(t,i,o),a&&a.m(t,o),I(t,s,o)},p(t,e){4&e&&o!==(o=t[2].hiddenPassword+"")&&P(n,o),t[0].password?a?a.p(t,e):(a=$n(t),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},d(t){t&&C(e),t&&C(i),a&&a.d(t),t&&C(s)}}}function wn(t){let e,n,i,s,a,l=t[0].password+"";return{c(){e=W(l),n=S(),i=L("button"),i.textContent=`${o("global.hidePassword")}`,z(i,"class","a -small -secondary g-margin-left--10")},m(o,l){I(o,e,l),I(o,n,l),I(o,i,l),s||(a=H(i,"click",t[5]),s=!0)},p(t,n){1&n&&l!==(l=t[0].password+"")&&P(e,l)},d(t){t&&C(e),t&&C(n),t&&C(i),s=!1,a()}}}function $n(t){let e,n,i;return{c(){e=L("button"),e.textContent=`${o("global.showPassword")}`,z(e,"class","a -small -secondary g-margin-left--10")},m(s,o){I(s,e,o),n||(i=H(e,"click",t[5]),n=!0)},p:m,d(t){t&&C(e),n=!1,i()}}}function yn(t){let e;function n(t,e){return t[2].state===t[3].STATES.resolved?In:t[2].state===t[3].STATES.resolving||t[2].state===t[3].STATES.openingSite?En:t[2].state===t[3].STATES.changingPassword?Mn:xn}let i=n(t),s=i(t);return{c(){s.c(),e=T()},m(t,n){s.m(t,n),I(t,e,n)},p(t,o){i===(i=n(t))&&s?s.p(t,o):(s.d(1),s=i(t),s&&(s.c(),s.m(e.parentNode,e)))},d(t){s.d(t),t&&C(e)}}}function xn(t){let e,n,i,s,a,l,r,c,d,u,h,p=o("darkWebMonitor.breach.detail.resolve.passwordChanged.tooltip")+"";return{c(){e=L("kin-button"),e.textContent=`${o("darkWebMonitor.breach.detail.password.change")}`,n=S(),i=L("button"),i.textContent=`${o("darkWebMonitor.breach.detail.resolve.passwordChanged")}`,s=S(),a=L("kin-tooltip"),l=L("div"),l.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',r=S(),c=L("div"),d=L("p"),A(e,"type","secondary"),A(e,"class","g-margin-right--20"),A(e,"data-test","dwm_change-pass"),z(i,"class","a -small -secondary"),z(l,"slot","tooltip-activator"),z(d,"class","p -small"),z(c,"slot","tooltip")},m(o,m){I(o,e,m),I(o,n,m),I(o,i,m),I(o,s,m),I(o,a,m),E(a,l),E(a,r),E(a,c),E(c,d),d.innerHTML=p,u||(h=[H(e,"click",t[12]),H(i,"click",t[13])],u=!0)},p:m,d(t){t&&C(e),t&&C(n),t&&C(i),t&&C(s),t&&C(a),u=!1,v(h)}}}function Mn(t){let e,n,i,s,a,l=o("darkWebMonitor.breach.detail.site.reopen",t[0].siteTitle)+"";return{c(){e=L("kin-button"),e.textContent=`${o("darkWebMonitor.breach.detail.resolve.markPasswordChanged")}`,n=S(),i=L("button"),A(e,"type","secondary"),A(e,"class","g-margin-right--20"),A(e,"data-test","dwm_breach-resolve"),z(i,"class","a -small -secondary")},m(o,r){I(o,e,r),I(o,n,r),I(o,i,r),i.innerHTML=l,s||(a=[H(e,"click",t[10]),H(i,"click",t[11])],s=!0)},p(t,e){1&e&&l!==(l=o("darkWebMonitor.breach.detail.site.reopen",t[0].siteTitle)+"")&&(i.innerHTML=l)},d(t){t&&C(e),t&&C(n),t&&C(i),s=!1,v(a)}}}function En(t){let e;return{c(){e=L("kin-loading")},m(t,n){I(t,e,n)},p:m,d(t){t&&C(e)}}}function In(t){let e,n,i,s=o("darkWebMonitor.breach.detail.resolved")+"";return{c(){e=L("kin-icon"),n=S(),i=W(s),A(e,"name","badge-ok"),A(e,"size","16")},m(t,s){I(t,e,s),I(t,n,s),I(t,i,s)},p:m,d(t){t&&C(e),t&&C(n),t&&C(i)}}}function Cn(t){let e,n,i,s,o,a,l,r,c,d,u,h,p,k=t[0].siteTitle+"";function g(t,e){return t[2].state===t[3].STATES.resolved?un:dn}let v=g(t),b=v(t);function _(t,e){return t[2].state===t[3].STATES.resolved?pn:hn}let f=_(t),w=f(t);function $(t,e){return t[2].isExpanded?kn:mn}let y=$(t),x=y(t),M=t[2].isExpanded&&gn(t);return{c(){e=L("div"),n=L("div"),i=L("kin-icon"),s=S(),b.c(),o=S(),a=L("div"),l=W(k),r=S(),c=L("div"),w.c(),d=S(),u=L("div"),x.c(),h=S(),M&&M.c(),p=T(),A(i,"name","icon-m-profile"),A(i,"size","24"),z(n,"class","kin_table__icon"),z(u,"class","kin_table__actions"),z(e,"class","kin_table__row dwm__breach_row svelte-olalp4")},m(t,m){I(t,e,m),E(e,n),E(n,i),E(n,s),b.m(n,null),E(e,o),E(e,a),E(a,l),E(e,r),E(e,c),w.m(c,null),E(e,d),E(e,u),x.m(u,null),I(t,h,m),M&&M.m(t,m),I(t,p,m)},p(t,[e]){v!==(v=g(t))&&(b.d(1),b=v(t),b&&(b.c(),b.m(n,null))),1&e&&k!==(k=t[0].siteTitle+"")&&P(l,k),f===(f=_(t))&&w?w.p(t,e):(w.d(1),w=f(t),w&&(w.c(),w.m(c,null))),y===(y=$(t))&&x?x.p(t,e):(x.d(1),x=y(t),x&&(x.c(),x.m(u,null))),t[2].isExpanded?M?M.p(t,e):(M=gn(t),M.c(),M.m(p.parentNode,p)):M&&(M.d(1),M=null)},i:m,o:m,d(t){t&&C(e),b.d(),w.d(),x.d(),t&&C(h),M&&M.d(t),t&&C(p)}}}const Dn=150;function Ln(t,e,n){let i,s;w(t,Ge,(t=>n(14,s=t)));let{ipmElementId:o}=e,{breachData:a={}}=e;const l=new cn(a),r=l.getStore();w(t,r,(t=>n(2,i=t)));let d=!1;return t.$$set=t=>{"ipmElementId"in t&&n(6,o=t.ipmElementId),"breachData"in t&&n(0,a=t.breachData)},[a,d,i,l,r,function(){i.showPassword||!o||s.installed?l.showPassword(!i.showPassword):c.openWindow(o,{p_scr:"passwordscanresults"})},o,()=>l.toggleDetail(),()=>l.toggleDetail(),()=>n(1,d=!0),()=>l.resolve(),()=>l.changePassword(),()=>l.changePassword(),()=>l.resolve()]}class Wn extends gt{constructor(t){var e;super(),document.getElementById("svelte-olalp4-style")||((e=L("style")).id="svelte-olalp4-style",e.textContent=".dwm__breach_row.svelte-olalp4.svelte-olalp4:not(.dwm__breach_row_details){grid-template-columns:6% 30% 50% 14%}.dwm__breach_row.dwm__breach_row_details.svelte-olalp4 .dwm__breach_detail.svelte-olalp4{display:block;padding:20px;font-size:var(--font-size)}.dwm__sub-icon.svelte-olalp4.svelte-olalp4{position:absolute;top:2rem;left:2.4rem}.dwm__account_row.svelte-olalp4.svelte-olalp4{display:grid;grid-template-columns:30% 70%}.dwm__account_hiddenPassword.svelte-olalp4.svelte-olalp4{letter-spacing:4px}",E(document.head,e)),kt(this,t,Ln,Cn,_,{ipmElementId:6,breachData:0})}}function Sn(t,e,n){const i=t.slice();return i[7]=e[n],i}function Tn(t,e,n){const i=t.slice();return i[7]=e[n],i}function Hn(t){let e,n,i,s=o("darkWebMonitor.scan.noLeaks")+"";return{c(){e=L("kin-icon"),n=S(),i=W(s),A(e,"name","circle-ok"),A(e,"size","20"),A(e,"class","g-margin-right--10")},m(t,s){I(t,e,s),I(t,n,s),I(t,i,s)},p:m,i:m,o:m,d(t){t&&C(e),t&&C(n),t&&C(i)}}}function zn(t){let e,n,i,s,o=t[1],a=[];for(let r=0;r<o.length;r+=1)a[r]=An(Tn(t,o,r));const l=t=>ct(a[t],1,1,(()=>{a[t]=null}));return{c(){e=L("kin-table"),n=L("div");for(let t=0;t<a.length;t+=1)a[t].c();z(n,"slot","table-body"),A(e,"datalength",i=t[1].length)},m(t,i){I(t,e,i),E(e,n);for(let e=0;e<a.length;e+=1)a[e].m(n,null);s=!0},p(t,r){if(3&r){let e;for(o=t[1],e=0;e<o.length;e+=1){const i=Tn(t,o,e);a[e]?(a[e].p(i,r),rt(a[e],1)):(a[e]=An(i),a[e].c(),rt(a[e],1),a[e].m(n,null))}for(at(),e=o.length;e<a.length;e+=1)l(e);lt()}(!s||2&r&&i!==(i=t[1].length))&&A(e,"datalength",i)},i(t){if(!s){for(let t=0;t<o.length;t+=1)rt(a[t]);s=!0}},o(t){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)ct(a[e]);s=!1},d(t){t&&C(e),D(a,t)}}}function An(t){let e,n;return e=new Wn({props:{breachData:t[7],ipmElementId:t[0]}}),{c(){ut(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};2&n&&(i.breachData=t[7]),1&n&&(i.ipmElementId=t[0]),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){ct(e.$$.fragment,t),n=!1},d(t){pt(e,t)}}}function Pn(t){let e,n,i,s,o,a,l;function r(t,e){return t[3]?On:jn}let c=r(t),d=c(t),u=t[3]&&Nn(t);return{c(){e=L("div"),n=L("button"),d.c(),i=S(),u&&u.c(),s=T(),z(n,"class","a -small -secondary"),z(n,"data-test","dwm_toggle-history"),z(e,"class","g-margin-top--20 g-margin-bottom--20")},m(r,c){I(r,e,c),E(e,n),d.m(n,null),I(r,i,c),u&&u.m(r,c),I(r,s,c),o=!0,a||(l=H(n,"click",t[4]),a=!0)},p(t,e){c===(c=r(t))&&d?d.p(t,e):(d.d(1),d=c(t),d&&(d.c(),d.m(n,null))),t[3]?u?(u.p(t,e),8&e&&rt(u,1)):(u=Nn(t),u.c(),rt(u,1),u.m(s.parentNode,s)):u&&(at(),ct(u,1,1,(()=>{u=null})),lt())},i(t){o||(rt(u),o=!0)},o(t){ct(u),o=!1},d(t){t&&C(e),d.d(),t&&C(i),u&&u.d(t),t&&C(s),a=!1,l()}}}function jn(t){let e,n=o("darkWebMonitor.breaches.history.show",t[2].length)+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p(t,i){4&i&&n!==(n=o("darkWebMonitor.breaches.history.show",t[2].length)+"")&&P(e,n)},d(t){t&&C(e)}}}function On(t){let e,n=o("darkWebMonitor.breaches.history.hide")+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p:m,d(t){t&&C(e)}}}function Nn(t){let e,n,i,s,a,l,r=t[2],c=[];for(let o=0;o<r.length;o+=1)c[o]=qn(Sn(t,r,o));const d=t=>ct(c[t],1,1,(()=>{c[t]=null}));return{c(){e=L("div"),e.textContent=`${o("darkWebMonitor.breaches.history")}`,n=S(),i=L("kin-table"),s=L("div");for(let t=0;t<c.length;t+=1)c[t].c();z(e,"class","dwm__heading h6 svelte-1ev2tww"),z(s,"slot","table-body"),A(i,"datalength",a=t[2].length)},m(t,o){I(t,e,o),I(t,n,o),I(t,i,o),E(i,s);for(let e=0;e<c.length;e+=1)c[e].m(s,null);l=!0},p(t,e){if(5&e){let n;for(r=t[2],n=0;n<r.length;n+=1){const i=Sn(t,r,n);c[n]?(c[n].p(i,e),rt(c[n],1)):(c[n]=qn(i),c[n].c(),rt(c[n],1),c[n].m(s,null))}for(at(),n=r.length;n<c.length;n+=1)d(n);lt()}(!l||4&e&&a!==(a=t[2].length))&&A(i,"datalength",a)},i(t){if(!l){for(let t=0;t<r.length;t+=1)rt(c[t]);l=!0}},o(t){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)ct(c[e]);l=!1},d(t){t&&C(e),t&&C(n),t&&C(i),D(c,t)}}}function qn(t){let e,n;return e=new Wn({props:{breachData:t[7],ipmElementId:t[0]}}),{c(){ut(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};4&n&&(i.breachData=t[7]),1&n&&(i.ipmElementId=t[0]),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){ct(e.$$.fragment,t),n=!1},d(t){pt(e,t)}}}function Bn(t){let e,n,i,s,a,l,r;const c=[zn,Hn],d=[];function u(t,e){return t[1].length?0:1}i=u(t),s=d[i]=c[i](t);let h=t[2].length&&Pn(t);return{c(){e=L("div"),e.textContent=`${o("darkWebMonitor.breaches.recent")}`,n=S(),s.c(),a=S(),h&&h.c(),l=T(),z(e,"class","dwm__heading h6 svelte-1ev2tww")},m(t,s){I(t,e,s),I(t,n,s),d[i].m(t,s),I(t,a,s),h&&h.m(t,s),I(t,l,s),r=!0},p(t,[e]){let n=i;i=u(t),i===n?d[i].p(t,e):(at(),ct(d[n],1,1,(()=>{d[n]=null})),lt(),s=d[i],s?s.p(t,e):(s=d[i]=c[i](t),s.c()),rt(s,1),s.m(a.parentNode,a)),t[2].length?h?(h.p(t,e),4&e&&rt(h,1)):(h=Pn(t),h.c(),rt(h,1),h.m(l.parentNode,l)):h&&(at(),ct(h,1,1,(()=>{h=null})),lt())},i(t){r||(rt(s),rt(h),r=!0)},o(t){ct(s),ct(h),r=!1},d(t){t&&C(e),t&&C(n),d[i].d(t),t&&C(a),h&&h.d(t),t&&C(l)}}}function Un(t,e,n){let{ipmElementId:i}=e;const s=[],o=[];let a,l=!1;function r(t){n(1,s.length=0,s),n(2,o.length=0,o),t.leaks&&t.leaks.forEach((t=>{s.length<5&&!t.resolved?s.push(t):o.push(t)}))}R((()=>{a=Re.subscribe(r)})),F((()=>{a()}));return t.$$set=t=>{"ipmElementId"in t&&n(0,i=t.ipmElementId)},[i,s,o,l,()=>n(3,l=!l)]}class Rn extends gt{constructor(t){var e;super(),document.getElementById("svelte-1ev2tww-style")||((e=L("style")).id="svelte-1ev2tww-style",e.textContent=".dwm__heading.svelte-1ev2tww{margin:2rem 0rem}",E(document.head,e)),kt(this,t,Un,Bn,_,{ipmElementId:0})}}const Fn="scanning",Gn="scanned";let Jn,Vn=null;const Xn=Me(!1),Zn=Me(!1),Kn=Me({},(()=>ai)),Qn=(Ee(Xn,(t=>t)),Ee(Zn,(t=>t))),Yn=Ee(Kn,(t=>t));function ti(){Ye(!0)}function ei(){Zn.set(!0)}function ni(){Zn.set(!1),Ye(!1)}function ii(){Zn.set(!1)}function si(t=null){return Kn.update((t=>(t.state=Fn,t.progress=0,t.results=!1,t))),t?Ze(t):Xe(!0),function(){const t=new Promise((t=>{Vn=t}));return Jn=setInterval((()=>{Kn.update((t=>(t.progress<100?t.progress=Math.ceil(t.progress+.15*(100-t.progress)):(ai(),Xe().then((t=>{Kn.update((e=>(e.state=Gn,e.results=!t.leaksCount.unresolved,e))),Vn()}))),t)))}),200),t}()}function oi(){Kn.set({}),Vn&&Vn()}function ai(){Jn=clearInterval(Jn)}function li(t){let e,n,i,s;return{c(){e=L("div"),n=L("kin-crumbs"),A(n,"section","privacy"),A(n,"sectionlabel",i=o("privacy")),A(n,"modulelabel",s=o("darkWebMonitor")),z(e,"slot","breadcrumbs")},m(t,i){I(t,e,i),E(e,n)},p:m,d(t){t&&C(e)}}}function ri(t){let e,n,i,s,a,l,r,c,d,u,h,p,m,k,g,b,_=o("darkWebMonitor.desc.on",t[5].email)+"",f=!t[7].installed&&gi(t);return m=new Rn({props:{ipmElementId:t[1]}}),{c(){e=L("kin-view"),n=L("div"),i=L("div"),a=S(),l=L("button"),l.textContent=`${o("darkWebMonitor.monitor.stop")}`,r=S(),c=L("div"),d=L("kin-button"),d.textContent=`${o("darkWebMonitor.scan.start")}`,u=S(),f&&f.c(),h=S(),p=L("div"),ut(m.$$.fragment),s=new N(a),z(l,"class","a -small -secondary"),z(l,"data-test","dwm_stop-monitor"),z(i,"class","kin_description__text"),z(n,"slot","description"),A(d,"data-test","dwm_scan"),z(c,"slot","cta"),z(p,"slot","view-content")},m(o,v){I(o,e,v),E(e,n),E(n,i),s.m(_,i),E(i,a),E(i,l),E(e,r),E(e,c),E(c,d),E(c,u),f&&f.m(c,null),E(e,h),E(e,p),ht(m,p,null),k=!0,g||(b=[H(l,"click",ei),H(d,"click",t[12])],g=!0)},p(t,e){(!k||32&e)&&_!==(_=o("darkWebMonitor.desc.on",t[5].email)+"")&&s.p(_),t[7].installed?f&&(f.d(1),f=null):f?f.p(t,e):(f=gi(t),f.c(),f.m(c,null));const n={};2&e&&(n.ipmElementId=t[1]),m.$set(n)},i(t){k||(rt(m.$$.fragment,t),k=!0)},o(t){ct(m.$$.fragment,t),k=!1},d(t){t&&C(e),f&&f.d(),pt(m),g=!1,v(b)}}}function ci(t){let e,n,i,s,a,l,r,c,d,u,h,p,k,g=!t[7].installed&&vi(t);return{c(){e=L("kin-view"),n=L("div"),i=L("kin-icon"),s=S(),a=L("h2"),a.textContent=`${o("darkWebMonitor.scan.finished")}`,l=S(),r=L("div"),r.textContent=`${o("darkWebMonitor.scan.noLeaks")}`,c=S(),d=L("div"),u=L("kin-button"),u.textContent=`${o("global.next")}`,h=S(),g&&g.c(),A(i,"name","circle-ok"),A(i,"size","96"),A(i,"class","dwm__bigicon g-margin-bottom--20 svelte-161u31g"),z(a,"class","h2"),z(d,"class","dwm__results-actions svelte-161u31g"),z(n,"slot","view-content"),z(n,"class","g-align--center")},m(t,o){I(t,e,o),E(e,n),E(n,i),E(n,s),E(n,a),E(n,l),E(n,r),E(n,c),E(n,d),E(d,u),E(d,h),g&&g.m(d,null),p||(k=H(u,"click",oi),p=!0)},p(t,e){t[7].installed?g&&(g.d(1),g=null):g?g.p(t,e):(g=vi(t),g.c(),g.m(d,null))},i:m,o:m,d(t){t&&C(e),g&&g.d(),p=!1,k()}}}function di(t){let e,n,i,s,a,l,r,c=o("darkWebMonitor.scan.desc")+"";return{c(){e=L("kin-view"),n=L("div"),i=L("div"),s=L("kin-progress"),l=S(),r=W(c),A(s,"percentage",a=t[3].progress),A(s,"dotted","true"),z(i,"class","kin_scan__progress"),z(n,"slot","view-content"),z(n,"class","g-align--center")},m(t,o){I(t,e,o),E(e,n),E(n,i),E(i,s),E(n,l),E(n,r)},p(t,e){8&e&&a!==(a=t[3].progress)&&A(s,"percentage",a)},i:m,o:m,d(t){t&&C(e)}}}function ui(t){let e,n,i,s,a,l,r,c,d,u,h=o("darkWebMonitor.desc.off",t[5].email)+"";return{c(){e=L("kin-view"),n=L("div"),i=L("div"),s=S(),a=L("div"),l=L("kin-button"),l.textContent=`${o("darkWebMonitor.monitor.start")}`,r=S(),c=L("div"),c.innerHTML='<div class="g-align--center g-margin-top--40"><kin-icon name="icon-xl-darkweb-scan" size="220"></kin-icon></div>',z(i,"class","kin_description__text"),z(n,"slot","description"),A(l,"data-test","dwm_start-monitor"),z(a,"slot","cta"),z(c,"slot","view-content")},m(t,o){I(t,e,o),E(e,n),E(n,i),i.innerHTML=h,E(e,s),E(e,a),E(a,l),E(e,r),E(e,c),d||(u=H(l,"click",ti),d=!0)},p(t,e){32&e&&h!==(h=o("darkWebMonitor.desc.off",t[5].email)+"")&&(i.innerHTML=h)},i:m,o:m,d(t){t&&C(e),d=!1,u()}}}function hi(t){let e,n,i,s,a,l,r,c,d,u,h,p,k,g,v,b,_,f,w,$,y,x,M,D,W,T,P,j,O,N;return{c(){e=L("kin-view"),n=L("div"),i=L("p"),i.textContent=`${o("darkWebMonitor.desc.disconnected")}`,s=S(),a=L("div"),l=L("kin-button"),l.textContent=`${o("darkWebMonitor.monitor.login")}`,r=S(),c=L("div"),d=S(),u=L("div"),h=L("div"),p=L("div"),p.textContent=`${o("darkWebMonitor.howitworks.title")}`,k=S(),g=L("ul"),v=L("li"),b=L("kin-icon"),_=S(),f=L("p"),f.textContent=`${o("darkWebMonitor.howitworks.step1")}`,w=S(),$=L("li"),y=L("kin-icon"),x=S(),M=L("p"),M.textContent=`${o("darkWebMonitor.howitworks.step2")}`,D=S(),W=L("li"),T=L("kin-icon"),P=S(),j=L("p"),j.textContent=`${o("darkWebMonitor.howitworks.step3")}`,z(i,"class","kin_description__text"),z(n,"slot","description"),A(l,"data-test","dwm_login"),z(a,"slot","cta"),z(c,"slot","view-content"),z(p,"class","dwm__how-it-works_heading svelte-161u31g"),A(b,"name","icon-l-hacker"),A(b,"size","50"),z(f,"class","dwm__how-it-works-list-item-text svelte-161u31g"),z(v,"class","dwm__how-it-works-list-item svelte-161u31g"),A(y,"name","icon-l-send"),A(y,"size","50"),z(M,"class","dwm__how-it-works-list-item-text svelte-161u31g"),z($,"class","dwm__how-it-works-list-item svelte-161u31g"),A(T,"name","icon-l-warning-sign"),A(T,"size","50"),z(j,"class","dwm__how-it-works-list-item-text svelte-161u31g"),z(W,"class","dwm__how-it-works-list-item svelte-161u31g"),z(g,"class","dwm__how-it-works-list svelte-161u31g"),z(h,"class","dwm__how-it-works svelte-161u31g"),z(u,"class","dwm__how-it-works_container svelte-161u31g")},m(o,m){I(o,e,m),E(e,n),E(n,i),E(e,s),E(e,a),E(a,l),E(e,r),E(e,c),I(o,d,m),I(o,u,m),E(u,h),E(h,p),E(h,k),E(h,g),E(g,v),E(v,b),E(v,_),E(v,f),E(g,w),E(g,$),E($,y),E($,x),E($,M),E(g,D),E(g,W),E(W,T),E(W,P),E(W,j),O||(N=H(l,"click",t[10]),O=!0)},p:m,i:m,o:m,d(t){t&&C(e),t&&C(d),t&&C(u),O=!1,N()}}}function pi(t){let e,n,i,s,a,l,r,c;return{c(){e=L("kin-view"),n=L("div"),i=L("kin-icon"),s=S(),a=L("div"),l=L("h2"),l.textContent=`${o("darkWebMonitor.error.line1")}`,r=S(),c=L("p"),c.textContent=`${o("darkWebMonitor.error.line2")}`,A(i,"name","circle-error"),A(i,"size","96"),A(i,"class","dwm__bigicon svelte-161u31g"),z(l,"class","h2 g-margin-bottom--10"),z(a,"class","dwm__error_text g-margin-top--20 svelte-161u31g"),z(n,"slot","view-content"),z(n,"class","g-align--center")},m(t,o){I(t,e,o),E(e,n),E(n,i),E(n,s),E(n,a),E(a,l),E(a,r),E(a,c)},p:m,i:m,o:m,d(t){t&&C(e)}}}function mi(t){let e,n,i,s,a,l,r,c;return{c(){e=L("kin-view"),n=L("div"),i=L("div"),s=S(),a=L("div"),l=L("h2"),l.textContent=`${o("darkWebMonitor.offline.heading")}`,r=S(),c=L("p"),c.textContent=`${o("darkWebMonitor.offline.desc")}`,z(i,"class","svg -offline sve_offline-page__icon"),z(l,"class","h2 g-margin-bottom--10"),z(a,"class","dwm__error_text g-margin-top--20 svelte-161u31g"),z(n,"slot","view-content"),z(n,"class","g-align--center")},m(t,o){I(t,e,o),E(e,n),E(n,i),E(n,s),E(n,a),E(a,l),E(a,r),E(a,c)},p:m,i:m,o:m,d(t){t&&C(e)}}}function ki(t){let e,n;return{c(){e=L("kin-view"),A(e,"loading",n=!0)},m(t,n){I(t,e,n)},p:m,i:m,o:m,d(t){t&&C(e)}}}function gi(t){let e,n,i;return{c(){e=L("kin-button"),e.textContent=`${o("darkWebMonitor.monitorMoreEmails")}`,A(e,"type","secondary"),A(e,"class","g-margin-left--10")},m(s,o){I(s,e,o),n||(i=H(e,"click",t[13]),n=!0)},p:m,d(t){t&&C(e),n=!1,i()}}}function vi(t){let e,n,i;return{c(){e=L("kin-button"),e.textContent=`${o("darkWebMonitor.monitorMoreEmails")}`,A(e,"type","secondary"),A(e,"class","g-margin-left--10")},m(s,o){I(s,e,o),n||(i=H(e,"click",t[11]),n=!0)},p:m,d(t){t&&C(e),n=!1,i()}}}function bi(t){let e,n,i,s;const o=[ki,mi,pi,hi,ui,di,ci,ri],a=[];function l(t,e){return t[2]===Ie&&t[3].state!==Fn?0:t[4].online?t[2]===De?2:t[5].loggedIn?t[6]?t[3].state===Fn?5:t[3].state===Gn&&t[3].results?6:7:4:3:1}return n=l(t),i=a[n]=o[n](t),{c(){e=L("div"),i.c(),z(e,"slot","page-content"),z(e,"class","dwm_pagecontent svelte-161u31g")},m(t,i){I(t,e,i),a[n].m(e,null),s=!0},p(t,s){let r=n;n=l(t),n===r?a[n].p(t,s):(at(),ct(a[r],1,1,(()=>{a[r]=null})),lt(),i=a[n],i?i.p(t,s):(i=a[n]=o[n](t),i.c()),rt(i,1),i.m(e,null))},i(t){s||(rt(i),s=!0)},o(t){ct(i),s=!1},d(t){t&&C(e),a[n].d()}}}function _i(t){let e;return{c(){e=S()},m(t,n){I(t,e,n)},p:m,i:m,o:m,d(t){t&&C(e)}}}function fi(t){let e,n;return e=new ae({props:{$$slots:{default:[yi],"modal-footer":[$i],"modal-content":[wi]},$$scope:{ctx:t}}}),e.$on("close",ii),{c(){ut(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,n){const i={};32800&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){ct(e.$$.fragment,t),n=!1},d(t){pt(e,t)}}}function wi(t){let e,n,i,s,a,l,r=o("darkWebMonitor.modal.stop.desc",t[5].email)+"";return{c(){e=L("div"),n=L("kin-icon"),i=S(),s=L("h2"),s.textContent=`${o("darkWebMonitor.modal.stop.title")}`,a=S(),l=L("p"),A(n,"name","circle-error"),A(n,"size","96"),z(s,"class","h2 modal__title g-margin-top--30"),z(l,"class","p"),z(e,"slot","modal-content")},m(t,o){I(t,e,o),E(e,n),E(e,i),E(e,s),E(e,a),E(e,l),l.innerHTML=r},p(t,e){32&e&&r!==(r=o("darkWebMonitor.modal.stop.desc",t[5].email)+"")&&(l.innerHTML=r)},d(t){t&&C(e)}}}function $i(t){let e,n,i,s,a,l;return{c(){e=L("div"),n=L("kin-button"),n.textContent=`${o("darkWebMonitor.modal.stop.btn.stop")}`,i=S(),s=L("kin-button"),s.textContent=`${o("global.cancel")}`,A(n,"type","critical"),A(s,"type","secondary"),z(e,"slot","modal-footer")},m(t,o){I(t,e,o),E(e,n),E(e,i),E(e,s),a||(l=[H(n,"click",ni),H(s,"click",ii)],a=!0)},p:m,d(t){t&&C(e),a=!1,v(l)}}}function yi(t){let e;return{c(){e=S()},m(t,n){I(t,e,n)},p:m,d(t){t&&C(e)}}}function xi(t){let e,n,i,s;e=new Rt({props:{heading:o("darkWebMonitor"),backHash:"#privacy",$$slots:{default:[_i],"page-content":[bi],breadcrumbs:[li]},$$scope:{ctx:t}}});let a=t[8]&&fi(t);return{c(){ut(e.$$.fragment),n=S(),a&&a.c(),i=T()},m(t,o){ht(e,t,o),I(t,n,o),a&&a.m(t,o),I(t,i,o),s=!0},p(t,[n]){const s={};33023&n&&(s.$$scope={dirty:n,ctx:t}),e.$set(s),t[8]?a?(a.p(t,n),256&n&&rt(a,1)):(a=fi(t),a.c(),rt(a,1),a.m(i.parentNode,i)):a&&(at(),ct(a,1,1,(()=>{a=null})),lt())},i(t){s||(rt(e.$$.fragment,t),rt(a),s=!0)},o(t){ct(e.$$.fragment,t),ct(a),s=!1},d(t){pt(e,t),t&&C(n),a&&a.d(t),t&&C(i)}}}function Mi(t,e,n){let i,o,a,l,r,d,u;w(t,qe,(t=>n(2,i=t))),w(t,Yn,(t=>n(3,o=t))),w(t,s,(t=>n(4,a=t))),w(t,Be,(t=>n(5,l=t))),w(t,Ue,(t=>n(6,r=t))),w(t,Ge,(t=>n(7,d=t))),w(t,Qn,(t=>n(8,u=t)));let h,{featureHash:p}=e,{ipmElementId:m}=e;function k(t){c.openWindow(m,{p_scr:t})}R((()=>{h=[Be.subscribe((()=>{})),Ue.subscribe((()=>{})),Re.subscribe((()=>{})),Fe.subscribe((()=>{})),Ge.subscribe((()=>{}))]})),F((()=>{h.forEach((t=>t())),Kn.update((t=>(t.state=null,t))),Vn&&Vn()}));return t.$$set=t=>{"featureHash"in t&&n(0,p=t.featureHash),"ipmElementId"in t&&n(1,m=t.ipmElementId)},[p,m,i,o,a,l,r,d,u,k,()=>{return t=p,void(location.hash="#MyLicenses/login?backHash="+t);var t},()=>k("monitorscanfinished"),()=>si(),()=>k("monitorscanresults")]}class Ei extends gt{constructor(t){var e;super(),document.getElementById("svelte-161u31g-style")||((e=L("style")).id="svelte-161u31g-style",e.textContent='.dwm_pagecontent.svelte-161u31g{position:relative;min-height:100%}.dwm__bigicon.svelte-161u31g{margin-top:18vh}.dwm__error_text.svelte-161u31g{width:70%;margin-left:auto;margin-right:auto;line-height:2rem}.dwm__how-it-works_container.svelte-161u31g{padding:0 var(--page-padding) 2rem var(--page-padding);position:absolute;bottom:0em;width:100%}.dwm__how-it-works.svelte-161u31g{border-top:1px solid var(--color-neutral);margin-bottom:1em}.dwm__how-it-works_heading.svelte-161u31g{text-align:center;padding:1rem}.dwm__how-it-works-list.svelte-161u31g{margin-top:2rem;display:flex}.dwm__how-it-works-list-item.svelte-161u31g{text-align:center;width:33.3%;padding:0 5%;position:relative}.dwm__how-it-works-list-item-text.svelte-161u31g{margin-top:1rem}.dwm__how-it-works-list-item.svelte-161u31g:after{content:"";display:inline-block;width:100px;height:2px;background:var(--color-neutral);position:absolute;top:25px;right:-50px}.dwm__how-it-works-list-item.svelte-161u31g:last-child:after{content:initial}.dwm__results-actions.svelte-161u31g{margin-top:14rem}',E(document.head,e)),kt(this,t,Mi,xi,_,{featureHash:0,ipmElementId:1})}}function Ii(t){let e,n=o("darkWebMonitor.toaster.text.leaks",t[0])+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p:m,d(t){t&&C(e)}}}function Ci(t){let e,n=o("darkWebMonitor.toaster.text.account",t[1])+"";return{c(){e=W(n)},m(t,n){I(t,e,n)},p:m,d(t){t&&C(e)}}}function Di(t){let e,n,i,s,a,l,r,c,d,u;let h=function(t,e){return 1===t[0]?Ci:Ii}(t)(t);return{c(){e=L("div"),n=L("div"),n.innerHTML='<kin-icon name="icon-m-tools-darkweb"></kin-icon> \n\t\t\t<kin-icon class="dwm_toaster_sub_icon svelte-hjiqk2" name="badge-critical" size="20"></kin-icon>',i=S(),s=L("h2"),s.textContent=`${o("darkWebMonitor.toaster.title")}`,a=S(),l=L("p"),h.c(),r=S(),c=L("kin-button"),c.textContent=`${o("darkWebMonitor.protect")}`,z(n,"class","dwm_toaster_icon svelte-hjiqk2"),z(s,"class","sve_toaster__title h3"),z(l,"class","p -secondary g-margin-bottom--20"),A(c,"class","g-margin-bottom--20")},m(o,p){I(o,e,p),E(e,n),E(e,i),E(e,s),E(e,a),E(e,l),h.m(l,null),E(e,r),E(e,c),d||(u=H(c,"click",t[2]),d=!0)},p(t,e){h.p(t,e)},d(t){t&&C(e),h.d(),d=!1,u()}}}function Li(t){let e,n;return e=new ye({props:{$$slots:{default:[Di]},$$scope:{ctx:t}}}),{c(){ut(e.$$.fragment)},m(t,i){ht(e,t,i),n=!0},p(t,[n]){const i={};32&n&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){n||(rt(e.$$.fragment,t),n=!0)},o(t){ct(e.$$.fragment,t),n=!1},d(t){pt(e,t)}}}function Wi(e,n,i){let{featureHash:s}=n;const o=t.getUrlParams(),a=parseInt(o.leak_count),l=o.site;return e.$$set=t=>{"featureHash"in t&&i(3,s=t.featureHash)},[a,l,function(){t.openMainWindow({route:s}).then((()=>{t.close({reason:t.CLOSE_REASONS.navigateToOtherWindow})}))},s]}class Si extends gt{constructor(t){var e;super(),document.getElementById("svelte-hjiqk2-style")||((e=L("style")).id="svelte-hjiqk2-style",e.textContent=".dwm_toaster_icon.svelte-hjiqk2{display:inline-block;position:relative}.dwm_toaster_sub_icon.svelte-hjiqk2{position:absolute;bottom:-0.4rem;right:-0.2rem}",E(document.head,e)),kt(this,t,Wi,Li,_,{featureHash:3})}}const Ti=new class{constructor(){this.dwmMonitoring=!1,this.dwmIssues=[],this.dwmIssuesLoadedResolve=null,this.dwmIssuesLoaded=new Promise((t=>{this.dwmIssuesLoadedResolve=t})),this.init()}init(){this._updateLeaks(!0),this._updateMonitoring(!0),this._checkLeaks(),n.on("dwmMonitoring",(t=>this._setMonitoring(t))),n.on("dwmLeakResolved",(()=>this._checkLeaks())),n.on("dwmLeaksUpdated",(()=>this._updateLeaks(!0))),n.on("app.dwm.OnDataChanged",(()=>this._checkLeaks())),n.on("app.lif.account.logged_out",(()=>{this._resetLeaks()})),n.on("app.lif.account.logged_in",(()=>{location.hash.match(/darkweb/i)&&(this._updateLeaks(!1,!1),this._updateMonitoring(!1))}))}loadNotifications(){return this.dwmIssuesLoaded.then((()=>this.dwmMonitoring?this.dwmIssues:[]))}_setDwmIssues(t){const e=Object.keys(t);this.dwmIssues=[],e.forEach((t=>{this.dwmIssues.push({Title:o("darkWebMonitor.notification.title"),Desc:o("darkWebMonitor.notification.text",t),ButtonCaption:o("darkWebMonitor.show"),Link:"#DarkWebMonitor",ItemUID:"dwmItem",Timestamp:Date.now(),Viewed:!0,DarkWebMonitor:!0})}))}_setMonitoring(t){this.dwmMonitoring=t,localStorage.setItem("dwmMonitoring",t?"1":"0"),n.emit("dwmIssuesUpdate")}_updateMonitoring(t=!1){t?(this.dwmMonitoring="1"===localStorage.getItem("dwmMonitoring"),n.emit("dwmIssuesUpdate")):i("app.dwm.DoRequest",{endpoint:"/v1/query/notification-subscriptions/application/new-breaches"}).then((t=>{if(!t||!t.response)return;const e=!!t.response.enabled;this._setMonitoring(e)}))}_resetLeaks(){this.dwmIssues=[],localStorage.setItem("dwmBreaches",JSON.stringify({})),n.emit("dwmIssuesUpdate")}_checkLeaks(){if(!this.dwmMonitoring)return;const t=JSON.parse(localStorage.getItem("dwmBreaches"))||{},e={};t&&t.lastCheck&&(e.sinceTimestamp=t.lastCheck),i("app.dwm.DoRequest",{endpoint:"/v1/query/state-changes",payload:e}).then((e=>{t.lastCheck=Date.now(),localStorage.setItem("dwmBreaches",JSON.stringify(t)),e.response&&e.response.entities&&!e.response.entities.includes("BREACH")||this._updateLeaks()}))}_updateLeaks(t=!1,e=!0){if(t){const t=JSON.parse(localStorage.getItem("dwmBreaches"));t&&t.leaks?this._setDwmIssues(t.leaks):this.dwmIssues=[],this.dwmIssuesLoadedResolve(),n.emit("dwmIssuesUpdate")}else Promise.all([i("app.dwm.DoRequest",{endpoint:"/v2/query/site-breaches/authorized-data"}),i("app.dwm.DoRequest",{endpoint:"/v2/query/site-breaches/unauthorized-data"})]).then((([t,s])=>{const o=t.response,a=s.response;if(!o||!a)return;const l=[o.data,a.data],r={};let c=0,d="";l.forEach((t=>{for(const e in t)for(const n in t[e])for(const i in t[e][n])"RESOLVED"!==t[e][n][i].resolutionState&&(c+=1,d=e,r[n]=r[n]||[],r[n].push(t[e][n][i].breachId))}));const u=(JSON.parse(localStorage.getItem("dwmBreaches"))||{}).leaks||{};let h=!1;for(const e in r)if(h=!u[e]||(h||r[e].some((t=>!u[e].includes(t)))),h)break;if(localStorage.setItem("dwmBreaches",JSON.stringify({lastCheck:Date.now(),leaks:r})),this._setDwmIssues(r),n.emit("dwmIssuesUpdate"),h&&e&&this.dwmMonitoring){const t="?module=DarkWebMonitor&view=leakAlertToaster&leak_count="+c+"&site="+d;i("app.windowManager.ShowToaster",{url:location.origin+location.pathname+t,popupDuration:0})}this.dwmIssuesLoadedResolve()}))}};class Hi extends Si{constructor(t){t.props=t.props||{},t.props.featureHash="DarkWebMonitor",super(t)}}export default class extends Ei{constructor(t){t.props=t.props||{},t.props.featureHash="DarkWebMonitor",t.props.ipmElementId=434,super(t)}}export{Hi as leakAlertToaster,Ti as notificationService};const zi={name:"DarkWebMonitor",version:"1.2.140",created:"2021-03-09T11:54:33.496Z"};export{zi as metadata};