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/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/default_av/BatterySaver.js
//{"name":"BatterySaver","version":"1.2.114","created":"2021-03-09T09:28:59.548Z"}
import{nls as t}from"./i18n.js";import{serviceRequest as e,eventer as n}from"./napi.js";import{ipmService as i}from"./napiExtensions.js";import{objectFromEntriesPolyfill as a}from"./plugins.js";import{TabableToggler as s}from"./libs.js";function l(){}function o(t){return t()}function r(){return Object.create(null)}function c(t){t.forEach(o)}function h(t){return"function"==typeof t}function k(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function d(t,e,n,i){if(t){const a=p(t,e,n,i);return t[0](a)}}function p(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 v(t,e,n,i,a,s,l){const o=function(t,e,n,i){if(t[2]&&i){const a=t[2](i(n));if(void 0===e.dirty)return a;if("object"==typeof a){const t=[],n=Math.max(e.dirty.length,a.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|a[i];return t}return e.dirty|a}return e.dirty}(e,i,a,s);if(o){const a=p(e,n,i,l);t.p(a,o)}}function u(t,e){t.appendChild(e)}function g(t,e,n){t.insertBefore(e,n||null)}function _(t){t.parentNode.removeChild(t)}function b(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function $(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function y(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function x(t,e,n){e in t?t[e]=n:y(t,e,n)}function w(t,e,n,i){t.style.setProperty(e,n,i?"important":"")}function j(t,e,n){t.classList[n?"add":"remove"](e)}let E;function C(t){E=t}function z(){if(!E)throw new Error("Function called outside component initialization");return E}function M(t){z().$$.on_mount.push(t)}function H(){const t=z();return(e,n)=>{const i=t.$$.callbacks[e];if(i){const a=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,a)}))}}}const T=[],S=[],L=[],O=[],U=Promise.resolve();let B=!1;function I(t){L.push(t)}let A=!1;const N=new Set;function D(){if(!A){A=!0;do{for(let t=0;t<T.length;t+=1){const e=T[t];C(e),F(e.$$)}for(C(null),T.length=0;S.length;)S.pop()();for(let t=0;t<L.length;t+=1){const e=L[t];N.has(e)||(N.add(e),e())}L.length=0}while(T.length);for(;O.length;)O.pop()();B=!1,A=!1,N.clear()}}function F(t){if(null!==t.fragment){t.update(),c(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I)}}const P=new Set;let X;function q(){X={r:0,c:[],p:X}}function W(){X.r||c(X.c),X=X.p}function Z(t,e){t&&t.i&&(P.delete(t),t.i(e))}function G(t,e,n,i){if(t&&t.o){if(P.has(t))return;P.add(t),X.c.push((()=>{P.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}const J="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function K(t,e,n){const{fragment:i,on_mount:a,on_destroy:s,after_update:l}=t.$$;i&&i.m(e,n),I((()=>{const e=a.map(o).filter(h);s?s.push(...e):c(e),t.$$.on_mount=[]})),l.forEach(I)}function Q(t,e){const n=t.$$;null!==n.fragment&&(c(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function R(t,e){-1===t.$$.dirty[0]&&(T.push(t),B||(B=!0,U.then(D)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function V(t,e,n,i,a,s,o=[-1]){const h=E;C(t);const k=e.props||{},d=t.$$={fragment:null,ctx:null,props:s,update:l,not_equal:a,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(h?h.$$.context:[]),callbacks:r(),dirty:o,skip_bound:!1};let p=!1;if(d.ctx=n?n(t,k,((e,n,...i)=>{const s=i.length?i[0]:n;return d.ctx&&a(d.ctx[e],d.ctx[e]=s)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](s),p&&R(t,e)),n})):[],d.update(),p=!0,c(d.before_update),d.fragment=!!i&&i(d.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);d.fragment&&d.fragment.l(t),t.forEach(_)}else d.fragment&&d.fragment.c();e.intro&&Z(t.$$.fragment),K(t,e.target,e.anchor),D()}C(h)}class Y{$destroy(){Q(this,1),this.$destroy=l}$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)}}a();const{document:tt}=J;const et=t=>({}),nt=t=>({}),it=t=>({}),at=t=>({}),st=t=>({}),lt=t=>({}),ot=t=>({}),rt=t=>({}),ct=t=>({}),ht=t=>({}),kt=t=>({}),dt=t=>({});function pt(t){let e,n,i,a,s;const l=[ut,vt],o=[];function r(t,e){return""!=t[0]?0:1}return e=r(t),n=o[e]=l[e](t),{c(){n.c(),i=m(),a=b("kin-loading"),x(a,"fullscreen","true"),x(a,"class","svelte-kh5tai")},m(t,n){o[e].m(t,n),g(t,i,n),g(t,a,n),s=!0},p(t,a){let s=e;e=r(t),e===s?o[e].p(t,a):(q(),G(o[s],1,1,(()=>{o[s]=null})),W(),n=o[e],n?n.p(t,a):(n=o[e]=l[e](t),n.c()),Z(n,1),n.m(i.parentNode,i))},i(t){s||(Z(n),s=!0)},o(t){G(n),s=!1},d(t){o[e].d(t),t&&_(i),t&&_(a)}}}function vt(t){let e,n;const i=t[16]["page-title"],a=d(i,t,t[15],dt);return{c(){e=b("div"),a&&a.c(),y(e,"class","kin_loading__title svelte-kh5tai"),w(e,"color","transparent")},m(t,i){g(t,e,i),a&&a.m(e,null),n=!0},p(t,e){a&&a.p&&32768&e&&v(a,i,t,t[15],e,kt,dt)},i(t){n||(Z(a,t),n=!0)},o(t){G(a,t),n=!1},d(t){t&&_(e),a&&a.d(t)}}}function ut(t){let e;return{c(){e=b("h1"),y(e,"class","kin_loading__title svelte-kh5tai"),w(e,"color","transparent")},m(n,i){g(n,e,i),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},i:l,o:l,d(t){t&&_(e)}}}function gt(t){let e,n;const i=t[16]["page-title"],a=d(i,t,t[15],rt);return{c(){e=b("div"),a&&a.c(),y(e,"class","kin_header__title svelte-kh5tai")},m(t,i){g(t,e,i),a&&a.m(e,null),n=!0},p(t,e){a&&a.p&&32768&e&&v(a,i,t,t[15],e,ot,rt)},i(t){n||(Z(a,t),n=!0)},o(t){G(a,t),n=!1},d(t){t&&_(e),a&&a.d(t)}}}function _t(t){let e;return{c(){e=b("h1"),y(e,"class","kin_header__title svelte-kh5tai")},m(n,i){g(n,e,i),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},i:l,o:l,d(t){t&&_(e)}}}function bt(t){let e,n,i;const a=t[16].controls,s=d(a,t,t[15],lt);let l=t[4]&&t[5]&&ft(t);return{c(){e=b("div"),s&&s.c(),n=m(),l&&l.c(),y(e,"class","kin_header__controls svelte-kh5tai")},m(t,a){g(t,e,a),s&&s.m(e,null),u(e,n),l&&l.m(e,null),i=!0},p(t,n){s&&s.p&&32768&n&&v(s,a,t,t[15],n,st,lt),t[4]&&t[5]?l?l.p(t,n):(l=ft(t),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(t){i||(Z(s,t),i=!0)},o(t){G(s,t),i=!1},d(t){t&&_(e),s&&s.d(t),l&&l.d()}}}function ft(t){let e,n;return{c(){e=b("div"),n=f(t[5]),y(e,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-kh5tai")},m(t,i){g(t,e,i),u(e,n)},p(t,e){32&e&&function(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}(n,t[5])},d(t){t&&_(e)}}}function mt(e){let n,i,a,s,o;return{c(){n=b("button"),i=b("kin-icon"),x(i,"name","icon-s-controls-arrow-left"),x(i,"size","20"),x(i,"class","svelte-kh5tai"),y(n,"class","kin_back-btn svelte-kh5tai"),y(n,"title",a=t("global.goBack"))},m(t,a){g(t,n,a),u(n,i),s||(o=$(n,"click",e[17]),s=!0)},p:l,d(t){t&&_(n),s=!1,o()}}}function $t(e){let n,i,a,s;return{c(){n=b("a"),i=b("kin-icon"),x(i,"name","icon-s-controls-arrow-left"),x(i,"size","20"),x(i,"class","svelte-kh5tai"),y(n,"class","kin_back-btn svelte-kh5tai"),y(n,"href",a=e[9]||"#Dashboard"),y(n,"title",s=t("global.goBack"))},m(t,e){g(t,n,e),u(n,i)},p(t,e){512&e&&a!==(a=t[9]||"#Dashboard")&&y(n,"href",a)},d(t){t&&_(n)}}}function yt(e){let n,i,a;return{c(){n=b("a"),i=b("kin-icon"),x(i,"name","icon-s-settings-button"),x(i,"size","20"),x(i,"class","svelte-kh5tai"),y(n,"class","kin_settings-btn svelte-kh5tai"),y(n,"href",e[1]),y(n,"title",a=t("settings"))},m(t,e){g(t,n,e),u(n,i)},p(t,e){2&e&&y(n,"href",t[1])},d(t){t&&_(n)}}}function xt(t){let e,n,i,a,s;const o=t[16]["page-content"],r=d(o,t,t[15],nt);return{c(){e=b("div"),r&&r.c(),y(e,"class","kin_page__content svelte-kh5tai"),j(e,"-disabled",t[4])},m(o,c){var k;g(o,e,c),r&&r.m(e,null),i=!0,a||(k=n=t[13].call(null,e),s=k&&h(k.destroy)?k.destroy:l,a=!0)},p(t,n){r&&r.p&&32768&n&&v(r,o,t,t[15],n,et,nt),16&n&&j(e,"-disabled",t[4])},i(t){i||(Z(r,t),i=!0)},o(t){G(r,t),i=!1},d(t){t&&_(e),r&&r.d(t),a=!1,s()}}}function wt(t){let e,n;const i=t[16].upsell,a=d(i,t,t[15],at);return{c(){e=b("div"),a&&a.c(),y(e,"class","kin_page__content svelte-kh5tai")},m(t,i){g(t,e,i),a&&a.m(e,null),n=!0},p(t,e){a&&a.p&&32768&e&&v(a,i,t,t[15],e,it,at)},i(t){n||(Z(a,t),n=!0)},o(t){G(a,t),n=!1},d(t){t&&_(e),a&&a.d(t)}}}function jt(t){let e,n,i,a,s,l,o,r,c,h,k,p,f,$,x,w,E,C=t[10]&&pt(t);const z=t[16].breadcrumbs,M=d(z,t,t[15],ht),H=[_t,gt],T=[];function S(t,e){return t[0]?0:1}r=S(t),c=T[r]=H[r](t);let L=!t[3]&&bt(t);function O(t,e){return t[7]&&!t[8]?$t:t[8]?mt:void 0}let U=O(t),B=U&&U(t),I=t[1]&&!t[3]&&yt(t);const A=[wt,xt],N=[];function D(t,e){return t[3]?0:1}return $=D(t),x=N[$]=A[$](t),{c(){e=b("div"),C&&C.c(),n=m(),i=b("div"),a=b("header"),s=b("div"),M&&M.c(),l=m(),o=b("div"),c.c(),h=m(),L&&L.c(),k=m(),B&&B.c(),p=m(),I&&I.c(),f=m(),x.c(),y(s,"class","kin_header__crumbs crumbs svelte-kh5tai"),y(o,"class","kin_header__content svelte-kh5tai"),y(a,"class","kin_header svelte-kh5tai"),y(i,"class","svelte-kh5tai"),j(i,"invisible",t[10]),y(e,"class",w="kin_page "+("ltr"!=t[11]?"-"+t[11]:"")+" "+(t[6]?"-"+t[6]:"")+" "+t[2]+" svelte-kh5tai")},m(t,c){g(t,e,c),C&&C.m(e,null),u(e,n),u(e,i),u(i,a),u(a,s),M&&M.m(s,null),u(a,l),u(a,o),T[r].m(o,null),u(o,h),L&&L.m(o,null),u(a,k),B&&B.m(a,null),u(a,p),I&&I.m(a,null),u(i,f),N[$].m(i,null),E=!0},p(t,[s]){t[10]?C?(C.p(t,s),1024&s&&Z(C,1)):(C=pt(t),C.c(),Z(C,1),C.m(e,n)):C&&(q(),G(C,1,1,(()=>{C=null})),W()),M&&M.p&&32768&s&&v(M,z,t,t[15],s,ct,ht);let l=r;r=S(t),r===l?T[r].p(t,s):(q(),G(T[l],1,1,(()=>{T[l]=null})),W(),c=T[r],c?c.p(t,s):(c=T[r]=H[r](t),c.c()),Z(c,1),c.m(o,h)),t[3]?L&&(q(),G(L,1,1,(()=>{L=null})),W()):L?(L.p(t,s),8&s&&Z(L,1)):(L=bt(t),L.c(),Z(L,1),L.m(o,null)),U===(U=O(t))&&B?B.p(t,s):(B&&B.d(1),B=U&&U(t),B&&(B.c(),B.m(a,p))),t[1]&&!t[3]?I?I.p(t,s):(I=yt(t),I.c(),I.m(a,null)):I&&(I.d(1),I=null);let k=$;$=D(t),$===k?N[$].p(t,s):(q(),G(N[k],1,1,(()=>{N[k]=null})),W(),x=N[$],x?x.p(t,s):(x=N[$]=A[$](t),x.c()),Z(x,1),x.m(i,null)),1024&s&&j(i,"invisible",t[10]),(!E||2116&s&&w!==(w="kin_page "+("ltr"!=t[11]?"-"+t[11]:"")+" "+(t[6]?"-"+t[6]:"")+" "+t[2]+" svelte-kh5tai"))&&y(e,"class",w)},i(t){E||(Z(C),Z(M,t),Z(c),Z(L),Z(x),E=!0)},o(t){G(C),G(M,t),G(c),G(L),G(x),E=!1},d(t){t&&_(e),C&&C.d(),M&&M.d(t),T[r].d(),L&&L.d(),B&&B.d(),I&&I.d(),N[$].d()}}}function Et(t,e,n){let{$$slots:i={},$$scope:a}=e,{heading:l}=e,{settingsUrl:o}=e,{cssCls:r}=e,{upsell:c=!1}=e,{inactive:h=!1}=e,{inactiveMsg:k}=e,{layout:d}=e,{back:p=!0}=e,{backEvent:v=!1}=e,{backHash:u}=e,{loading:g=!1}=e;const _=H();let b,f="ltr";M((()=>{n(11,f=document.body.dir)}));return t.$$set=t=>{"heading"in t&&n(0,l=t.heading),"settingsUrl"in t&&n(1,o=t.settingsUrl),"cssCls"in t&&n(2,r=t.cssCls),"upsell"in t&&n(3,c=t.upsell),"inactive"in t&&n(4,h=t.inactive),"inactiveMsg"in t&&n(5,k=t.inactiveMsg),"layout"in t&&n(6,d=t.layout),"back"in t&&n(7,p=t.back),"backEvent"in t&&n(8,v=t.backEvent),"backHash"in t&&n(9,u=t.backHash),"loading"in t&&n(10,g=t.loading),"$$scope"in t&&n(15,a=t.$$scope)},t.$$.update=()=>{16400&t.$$.dirty&&b&&b.set(!h)},[l,o,r,c,h,k,d,p,v,u,g,f,_,function(t){return n(14,b=new s(t)),{destroy:b.destroy.bind(b)}},b,a,i,()=>_("backClick")]}class Ct extends Y{constructor(t){var e;super(),tt.getElementById("svelte-kh5tai-style")||((e=b("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}",u(tt.head,e)),V(this,t,Et,jt,k,{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}),D()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(t){this.$set({settingsUrl:t}),D()}get cssCls(){return this.$$.ctx[2]}set cssCls(t){this.$set({cssCls:t}),D()}get upsell(){return this.$$.ctx[3]}set upsell(t){this.$set({upsell:t}),D()}get inactive(){return this.$$.ctx[4]}set inactive(t){this.$set({inactive:t}),D()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(t){this.$set({inactiveMsg:t}),D()}get layout(){return this.$$.ctx[6]}set layout(t){this.$set({layout:t}),D()}get back(){return this.$$.ctx[7]}set back(t){this.$set({back:t}),D()}get backEvent(){return this.$$.ctx[8]}set backEvent(t){this.$set({backEvent:t}),D()}get backHash(){return this.$$.ctx[9]}set backHash(t){this.$set({backHash:t}),D()}get loading(){return this.$$.ctx[10]}set loading(t){this.$set({loading:t}),D()}}var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Mt="object"==typeof zt&&zt&&zt.Object===Object&&zt,Ht="object"==typeof self&&self&&self.Object===Object&&self;Mt||Ht||Function("return this")();function Tt(e){let n,i,a,s;return{c(){n=b("div"),i=b("kin-crumbs"),x(i,"section","performance"),x(i,"sectionlabel",a=t("performance")),x(i,"modulelabel",s=t("batterySaver")),y(n,"slot","breadcrumbs")},m(t,e){g(t,n,e),u(n,i)},p:l,d(t){t&&_(n)}}}function St(e){let n,i,a,s,o,r,c,h,k,d=t("batterySaver.notInstalled.desc")+"";return{c(){n=b("div"),i=m(),a=b("h2"),a.textContent=`${t("batterySaver.notInstalled.title")}`,s=m(),o=b("p"),r=m(),c=b("button"),c.textContent=`${t("batterySaver.notInstalled.btn")}`,y(n,"class","svg bts_illustration -battery-saver-not-installed svelte-1jt3p1x"),y(a,"class","h3 g-margin-bottom--20"),y(o,"class","p -secondary"),y(c,"class","btn -large g-margin-top--20")},m(t,l){g(t,n,l),g(t,i,l),g(t,a,l),g(t,s,l),g(t,o,l),o.innerHTML=d,g(t,r,l),g(t,c,l),h||(k=$(c,"click",e[3]),h=!0)},p:l,d(t){t&&_(n),t&&_(i),t&&_(a),t&&_(s),t&&_(o),t&&_(r),t&&_(c),h=!1,k()}}}function Lt(e){let n,i,a,s,o,r,c,h,k;return{c(){n=b("div"),i=m(),a=b("h2"),a.textContent=`${t("batterySaver.installed.title")}`,s=m(),o=b("p"),o.textContent=`${t("batterySaver.installed.desc")}`,r=m(),c=b("button"),c.textContent=`${t("batterySaver.installed.btn")}`,y(n,"class","svg bts_illustration -battery-saver svelte-1jt3p1x"),y(a,"class","h3 g-margin-bottom--20"),y(o,"class","p -secondary"),y(c,"class","btn -large  g-margin-top--20")},m(t,l){g(t,n,l),g(t,i,l),g(t,a,l),g(t,s,l),g(t,o,l),g(t,r,l),g(t,c,l),h||(k=$(c,"click",e[2]),h=!0)},p:l,d(t){t&&_(n),t&&_(i),t&&_(a),t&&_(s),t&&_(o),t&&_(r),t&&_(c),h=!1,k()}}}function Ot(t){let e,n,i,a;function s(t,e){return t[1]?Lt:St}let l=s(t),o=l(t);return{c(){e=b("div"),n=b("kin-view"),i=b("div"),a=b("div"),o.c(),y(a,"class","nui_icon-page"),y(i,"slot","view-content"),x(n,"loading",t[0]),y(e,"slot","page-content")},m(t,s){g(t,e,s),u(e,n),u(n,i),u(i,a),o.m(a,null)},p(t,e){l===(l=s(t))&&o?o.p(t,e):(o.d(1),o=l(t),o&&(o.c(),o.m(a,null))),1&e&&x(n,"loading",t[0])},d(t){t&&_(e),o.d()}}}function Ut(t){let e;return{c(){e=m()},m(t,n){g(t,e,n)},p:l,d(t){t&&_(e)}}}function Bt(e){let n,i;return n=new Ct({props:{heading:t("batterySaver"),backHash:"#performance",$$slots:{default:[Ut],"page-content":[Ot],breadcrumbs:[Tt]},$$scope:{ctx:e}}}),{c(){var t;(t=n.$$.fragment)&&t.c()},m(t,e){K(n,t,e),i=!0},p(t,[e]){const i={};131&e&&(i.$$scope={dirty:e,ctx:t}),n.$set(i)},i(t){i||(Z(n.$$.fragment,t),i=!0)},o(t){G(n.$$.fragment,t),i=!1},d(t){Q(n,t)}}}function It(t,a,s){let l=!0,o=!1;const r=[];var c;function h(){return e("app.avast.lis.get.install",{ids:["bs"]}).then((t=>t&&t.products&&t.products.bs.installed)).catch((t=>{console.error("app.avast.lis.get.install",t)}))}return M((()=>{h().then((t=>{s(1,o=t),s(0,l=!1)}))})),c=()=>{r.forEach((t=>t()))},z().$$.on_destroy.push(c),[l,o,function(){e("app.avast.lis.open.ui",{id:"bs"}).catch((t=>{console.error("app.avast.lis.open.ui",t)}))},function(){i.openWindow(343),r.push(n.on("app.avast.lis.install.event",(t=>{t&&"finish"===t.step&&h().then((t=>{s(1,o=t)}))})))}]}export default class extends Y{constructor(t){var e;super(),document.getElementById("svelte-1jt3p1x-style")||((e=b("style")).id="svelte-1jt3p1x-style",e.textContent=".bts_illustration.svelte-1jt3p1x{margin-top:80px;margin-bottom:30px;font-size:160px}",u(document.head,e)),V(this,t,It,Bt,k,{})}}const At={name:"BatterySaver",version:"1.2.114",created:"2021-03-09T09:28:59.548Z"};export{At as metadata};