diff --git a/dist/sunsynk-power-flow-card.js b/dist/sunsynk-power-flow-card.js
index 03d13a85..f8cffa6a 100644
--- a/dist/sunsynk-power-flow-card.js
+++ b/dist/sunsynk-power-flow-card.js
@@ -1,38 +1,38 @@
-function e(e,t,n,a){var o,i=arguments.length,r=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(i<3?o(r):i>3?o(t,n,r):o(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}"function"==typeof SuppressedError&&SuppressedError;
+function t(t,e,n,a){var o,i=arguments.length,r=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(i<3?o(r):i>3?o(e,n,r):o(e,n))||r);return i>3&&r&&Object.defineProperty(e,n,r),r}"function"==typeof SuppressedError&&SuppressedError;
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const t=globalThis,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),o=new WeakMap;let i=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(n&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(t,e))}return e}toString(){return this.cssText}};const r=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new i("string"==typeof e?e:e+"",void 0,a))(t)})(e):e
+const e=globalThis,n=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),o=new WeakMap;let i=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(e,t))}return t}toString(){return this.cssText}};const r=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,a))(e)})(t):t
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */,{is:s,defineProperty:l,getOwnPropertyDescriptor:d,getOwnPropertyNames:c,getOwnPropertySymbols:u,getPrototypeOf:h}=Object,p=globalThis,g=p.trustedTypes,y=g?g.emptyScript:"",f=p.reactiveElementPolyfillSupport,m=(e,t)=>e,v={toAttribute(e,t){switch(t){case Boolean:e=e?y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},w=(e,t)=>!s(e,t),_={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:w};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),a=this.getPropertyDescriptor(e,n,t);void 0!==a&&l(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){const{get:a,set:o}=d(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return a?.call(this)},set(t){const i=a?.call(this);o.call(this,t),this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const e=h(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const e=this.properties,t=[...c(e),...u(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(r(e))}else void 0!==e&&t.push(r(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,a)=>{if(n)e.adoptedStyleSheets=a.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of a){const a=document.createElement("style"),o=t.litNonce;void 0!==o&&a.setAttribute("nonce",o),a.textContent=n.cssText,e.appendChild(a)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(void 0!==a&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:v).toAttribute(t,n.type);this._$Em=e,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(e,t){const n=this.constructor,a=n._$Eh.get(e);if(void 0!==a&&this._$Em!==a){const e=n.getPropertyOptions(a),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:v;this._$Em=a,this[a]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??w)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e)!0!==n.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[m("elementProperties")]=new Map,x[m("finalized")]=new Map,f?.({ReactiveElement:x}),(p.reactiveElementVersions??=[]).push("2.0.4");
+ */,{is:s,defineProperty:l,getOwnPropertyDescriptor:d,getOwnPropertyNames:c,getOwnPropertySymbols:u,getPrototypeOf:y}=Object,h=globalThis,g=h.trustedTypes,p=g?g.emptyScript:"",f=h.reactiveElementPolyfillSupport,m=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},v=(t,e)=>!s(t,e),w={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),h.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),a=this.getPropertyDescriptor(t,n,e);void 0!==a&&l(this.prototype,t,a)}}static getPropertyDescriptor(t,e,n){const{get:a,set:o}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return a?.call(this)},set(e){const i=a?.call(this);o.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...c(t),...u(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,a)=>{if(n)t.adoptedStyleSheets=a.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const n of a){const a=document.createElement("style"),o=e.litNonce;void 0!==o&&a.setAttribute("nonce",o),a.textContent=n.cssText,t.appendChild(a)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){const n=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,n);if(void 0!==a&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:_).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(t,e){const n=this.constructor,a=n._$Eh.get(t);if(void 0!==a&&this._$Em!==a){const t=n.getPropertyOptions(a),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:_;this._$Em=a,this[a]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??v)(this[t],e))return;this.P(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t)!0!==n.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[m("elementProperties")]=new Map,x[m("finalized")]=new Map,f?.({ReactiveElement:x}),(h.reactiveElementVersions??=[]).push("2.0.4");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const b=globalThis,A=b.trustedTypes,P=A?A.createPolicy("lit-html",{createHTML:e=>e}):void 0,L="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+E,N=`<${C}>`,M=document,k=()=>M.createComment(""),S=e=>null===e||"object"!=typeof e&&"function"!=typeof e,O=Array.isArray,D="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,B=/>/g,V=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,z=/"/g,j=/^(?:script|style|textarea|title)$/i,R=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),H=R(1),U=R(2),W=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Z=new WeakMap,F=M.createTreeWalker(M,129);function Y(e,t){if(!O(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(t):t}const X=(e,t)=>{const n=e.length-1,a=[];let o,i=2===t?"":3===t?"":"")),a]};class J{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let o=0,i=0;const r=e.length-1,s=this.parts,[l,d]=X(e,t);if(this.el=J.createElement(l,n),F.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=F.nextNode())&&s.length0){a.textContent=A?A.emptyScript:"";for(let n=0;nO(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Q&&S(this._$AH)?this._$AA.nextSibling.data=e:this.T(M.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,a="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=J.createElement(Y(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{const e=new q(a,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Z.get(e.strings);return void 0===t&&Z.set(e.strings,t=new J(e)),t}k(e){O(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,a=0;for(const o of e)a===t.length?t.push(n=new $(this.O(k()),this.O(k()),this,this.options)):n=t[a],n._$AI(o),a++;a2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}_$AI(e,t=this,n,a){const o=this.strings;let i=!1;if(void 0===o)e=K(this,e,t,0),i=!S(e)||e!==this._$AH&&e!==W,i&&(this._$AH=e);else{const a=e;let r,s;for(e=o[0],r=0;rt}):void 0,L="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,E="?"+C,N=`<${E}>`,M=document,k=()=>M.createComment(""),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,B="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,V=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,z=/"/g,R=/^(?:script|style|textarea|title)$/i,j=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),H=j(1),W=j(2),U=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Q=new WeakMap,Z=M.createTreeWalker(M,129);function Y(t,e){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}const X=(t,e)=>{const n=t.length-1,a=[];let o,i=2===e?"":3===e?"":"")),a]};class K{constructor({strings:t,_$litType$:e},n){let a;this.parts=[];let o=0,i=0;const r=t.length-1,s=this.parts,[l,d]=X(t,e);if(this.el=K.createElement(l,n),Z.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=Z.nextNode())&&s.length0){a.textContent=A?A.emptyScript:"";for(let n=0;nO(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==F&&S(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,a="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=K.createElement(Y(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(e);else{const t=new q(a,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new K(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,a=0;for(const o of t)a===e.length?e.push(n=new $(this.O(k()),this.O(k()),this,this.options)):n=e[a],n._$AI(o),a++;a2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}_$AI(t,e=this,n,a){const o=this.strings;let i=!1;if(void 0===o)t=J(this,t,e,0),i=!S(t)||t!==this._$AH&&t!==U,i&&(this._$AH=t);else{const a=t;let r,s;for(t=o[0],r=0;r{const a=n?.renderBefore??t;let o=a._$litPart$;if(void 0===o){const e=n?.renderBefore??null;a._$litPart$=o=new $(t.insertBefore(k(),e),e,void 0,n??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}};re._$litElement$=!0,re.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:re});const se=globalThis.litElementPolyfillSupport;se?.({LitElement:re}),(globalThis.litElementVersions??=[]).push("4.1.1");
+let rt=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{const a=n?.renderBefore??e;let o=a._$litPart$;if(void 0===o){const t=n?.renderBefore??null;a._$litPart$=o=new $(e.insertBefore(k(),t),t,void 0,n??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};rt._$litElement$=!0,rt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:rt});const st=globalThis.litElementPolyfillSupport;st?.({LitElement:rt}),(globalThis.litElementVersions??=[]).push("4.1.1");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const le=e=>(t,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)}
+const lt=t=>(e,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */,de={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:w},ce=(e=de,t,n)=>{const{kind:a,metadata:o}=n;let i=globalThis.litPropertyMetadata.get(o);if(void 0===i&&globalThis.litPropertyMetadata.set(o,i=new Map),i.set(n.name,e),"accessor"===a){const{name:a}=n;return{set(n){const o=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,o,e)},init(t){return void 0!==t&&this.P(a,void 0,e),t}}}if("setter"===a){const{name:a}=n;return function(n){const o=this[a];t.call(this,n),this.requestUpdate(a,o,e)}}throw Error("Unsupported decorator location: "+a)};function ue(e){return(t,n)=>"object"==typeof n?ce(e,t,n):((e,t,n)=>{const a=t.hasOwnProperty(n);return t.constructor.createProperty(n,a?{...e,wrapped:!0}:e),a?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)
+ */,dt={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:v},ct=(t=dt,e,n)=>{const{kind:a,metadata:o}=n;let i=globalThis.litPropertyMetadata.get(o);if(void 0===i&&globalThis.litPropertyMetadata.set(o,i=new Map),i.set(n.name,t),"accessor"===a){const{name:a}=n;return{set(n){const o=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,o,t)},init(e){return void 0!==e&&this.P(a,void 0,t),e}}}if("setter"===a){const{name:a}=n;return function(n){const o=this[a];e.call(this,n),this.requestUpdate(a,o,t)}}throw Error("Unsupported decorator location: "+a)};function ut(t){return(e,n)=>"object"==typeof n?ct(t,e,n):((t,e,n)=>{const a=e.hasOwnProperty(n);return e.constructor.createProperty(n,a?{...t,wrapped:!0}:t),a?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)
/**
* @license
* Copyright 2017 Google LLC
@@ -43,7 +43,7 @@ const le=e=>(t,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(e,t)
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-function he(e,t){return(t,n,a)=>((e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n))(t,n,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}function pe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ge;const ye=((e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,a)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[a+1]),e[0]);return new i(n,e,a)})(ge||(ge=pe(["\n .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n padding: 5px;\n }\n\n .card {\n border-radius: var(--ha-card-border-radius, 10px);\n box-shadow: var(--ha-card-box-shadow, 0px 0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));\n background: var(--ha-card-background, var(--card-background-color, white));\n border-width: var(--ha-card-border-width);\n padding: 0px;\n }\n\n text { text-anchor: middle; dominant-baseline: middle; }\n\n .left-align {text-anchor: start;}\n .right-align {text-anchor: end;}\n .st1{fill:#ff9b30;}\n .st2{fill:#f3b3ca;}\n .st3{font-size:9px;}\n .st4{font-size:14px;}\n .st5{fill:#969696;}\n .st6{fill:#5fb6ad;}\n .st7{fill:#5490c2;}\n .st8{font-weight:500}\n .st9{fill:#959595;}\n .st10{font-size:16px;}\n .st11{fill:transparent;}\n .st12{display:none;}\n .st13{font-size:22px;}\n .st14{font-size:12px;}\n\n "])));var fe,me,ve;!function(e){e.Azzurro="azzurro",e.CESBatteryBox="ces-battery-box",e.Deye="deye",e.E3dc="e3dc",e.FoxESS="foxess",e.Fronius="fronius",e.Goodwe="goodwe",e.GoodweGridMode="goodwe_gridmode",e.Growatt="growatt",e.Huawei="huawei",e.Lux="lux",e.MPPSolar="mppsolar",e.PowMr="powmr",e.SMASolar="smasolar",e.Solax="solax",e.SolarEdge="solaredge",e.Sofar="sofar",e.Solis="solis",e.Sungrow="sungrow",e.Sunsynk="sunsynk",e.Victron="victron"}(fe||(fe={})),function(e){e.Compact="compact",e.Lite="lite",e.Full="full"}(me||(me={})),function(e){e.Energy="energy",e.Power="power",e.No="no"}(ve||(ve={}));var we={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"Køretid til",battery_floating:"BATTERI SVÆVER",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG FORBRUG",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF EL",daily_grid_sell:"DAGLIG SALG AF EL",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RESTERENDE ENERGI",total_solar_generation:"DAGLIG SOLAR / TOTAL SOLAR",daily_charge:"DAGLIG OPLADNING",daily_discharge:"DAGLIG AFLADNING",ratio:"Forhold",timer_off:"Timer slukket",timer_on:"Timer tændt",priority_batt:"Batteri Prioriteret",priority_load:"Forbrug Prioriteret",nonessential_name:"Uvæsentlig",aux_name:"Sekundær",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Væsentlig",autarky:"Autarky",discharging:"Aflader",charging:"Oplader",waiting:"Venter",standby:"Standby",no_battery:"Ingen batteri",selftest:"Selvtest",normal:"Normal",alarm:"Alarm",fault:"Fejl",days:"dage",hrs:"timer",min:"min",flash:"Flash",check:"Check",idle:"Inaktiv",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Slukket",offline:"Offline",running:"Kører",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},_e={battery:{bat:"Ingen batteriattributter defineret",energy:"Angiv venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Angiv venligst batteri shutdown_soc-attribut og værdi, f.eks. shutdown_soc: 20",full_capacity:"Fuld kapacitet skal være mellem 80 og 100",empty_capacity:"Tom kapacitet skal være <= 40",show_daily:"Angiv venligst day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen sol attributter defineret",mppts:"Angiv venligst attributten og værdien for sol-MPPT'er; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Angiv venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Angiv venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er ikke indstillet. Angiv venligst inverter_power_175-attribut og enheds-ID så kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Angiv venligst grid_power_169-attribut og enheds-ID så kortet kan beregne denne værdi.",missing_entity:"Angiv venligst attributten og enheds-ID'en"},xe={title:"Titel",title_colour:"Titel Farve",title_size:"Titel Størrelse (px)",card_height:"Card Højde (px)",card_width:"Card Bredde (px)",decimal_places:"Antal viste Decimaler",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Kortstil",large_font:"Stor Font",modern:"Moderne",show_solar:"Vis Solar",show_battery:"Vis Battery",show_grid:"Vis Grid",show_aux:"Vis Aux",dynamic_line_width:"Dynamisk Linje Bredde",max_line_width:"Max Linje Bredde",min_line_width:"Min Linje Bredde",solar:"Solar",mppts:"MPPTs",show_daily:"Vis Daglig",show_daily_aux:"Vis Daglig Aux",animation_speed:"Anim. Hast.",max_power:"Max Effekt",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Batteri",load1_name:"Load 1 Navn",load2_name:"Load 2 Navn",load3_name:"Load 3 Navn",load4_name:"Load 4 Navn",load1_icon:"Load 1 Ikon",load2_icon:"Load 2 Ikon",load3_icon:"Load 3 Ikon",load4_icon:"Load 4 Ikon",aux_load1_name:"Aux Load 1 Navn",aux_load2_name:"Aux Load 2 Navn",aux_load1_icon:"Aux Load 1 Ikon",aux_load2_icon:"Aux Load 2 Ikon",show_daily_buy:"Vis Daglig Køb",show_daily_sell:"Vis Daglig Salg",no_grid_colour:"Ingen Grid Farve",grid_off_colour:"Grid Off Farve",grid_name:"Grid Navn",colour:"Farve",charge_colour:"Ladnings Farve",linear_gradient:"Lineær Gradient",animate:"Animate Linear Gradient",aux_colour:"Farve",aux_dynamic_colour:"Aux Dynamisk Farve",aux_off_colour:"Off Farve",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Inverter Værdier",invert_load:"Inverter Værdier",shutdown_soc:"Nedluknings SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energi",auto_scale:"Auto Skalering",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Farve",dynamic_icon:"Dynamisk Ikon",invert_power:"Inverter Effekt",show_absolute:"Vis Absolut",hide_soc:"Skjul SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Vis Absolut",show_nonessential:"Vis ikke Essentiel",aux_name:"Aux Navn",aux_daily_name:"Daglig Aux Navn",aux_type:"Aux Ikon",aux_loads:"Aux belastning",essential_name:"Essentielt Navn",additional_loads:"Ekstra Belastninger",export_colour:"Eksport Farve",nonessential_name:"Ikke Essentielt Navn",nonessential_icon:"Ikke Essentielt Ikon",energy_cost_decimals:"Energiudgift Decimaler",show_remaining_energy:"Vis resterende Energi",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Titel Options",general:"Generelle Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Batteri Options",grid:"Grid Options",load:"Belastnings Options",entities:"Entities",aux:"Aux Options",energy:"Energi Entities",bat:"Batteri Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Belastnings Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},be={common:we,errors:_e,config:xe},Ae={description:"Eine Home Assistant-Karte zur Emulation des Sunsynk-Stromflusses, der auf dem Inverter-Bildschirm angezeigt wird",version:"Version",runtime_to:"LAUFZEIT BIS",battery_floating:"BATTERIE haltend",charge:"AUFLADEN",to:"ZU",daily_load:"ENERGIE heute",daily_aux:"HILFSANTRIEB heute",daily_grid_buy:"NETZEINKAUF heute",daily_grid_sell:"NETZVERKAUF heute",daily_solar:"SOLAR heute",daily_solar_left:"SOLAR heute / VERBLEIBEND heute",total_solar_generation:"SOLAR heute / TOTAL SOLAR",daily_charge:"AUFLADUNG heute",daily_discharge:"ENTNAHME heute",ratio:"Verhältnis",timer_off:"Timer aus",timer_on:"Timer ein",priority_batt:"Batteriepriorität",priority_load:"Lastpriorität",nonessential_name:"Nebenverbraucher",aux_name:"Hilfsantrieb",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Hauptverbraucher",autarky:"Autark",discharging:"Entladen",charging:"Laden",waiting:"Warten",standby:"Bereitschaft",no_battery:"Keine Batterie",selftest:"Selbsttest",normal:"Normal",alarm:"Alarm",fault:"Fehler",days:"Tage",hrs:"Std",min:"Min",flash:"Flash",check:"Check",idle:"Leerlauf",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Pe={battery:{bat:"Keine Batterieattribute definiert",energy:"Bitte fügen Sie das Batterieenergieattribut und den Wert in Wh hinzu, z.B. 5.32 Batterieenergie: 5320",shutdown_soc:"Bitte fügen Sie das Batterie-Shutdown-SOC-Attribut und den Wert hinzu, z.B. shutdown_soc: 20",full_capacity:"Die volle Kapazität muss zwischen 80 und 100 liegen",empty_capacity:"Die leere Kapazität muss <= 40 sein",show_daily:"Bitte fügen Sie die Tages-Batterieladung_70- und Tages-Batterieentladung_71-Attribute und die Entity-IDs hinzu"},solar:{sol:"Keine Solarattribute definiert",mppts:"Bitte fügen Sie das Solar-MPPT-Attribut und den Wert hinzu; 1,2,3 oder 4 z.B. mppts: 2",show_daily:"Bitte fügen Sie das Tages-PV-Energie_108-Attribut und die Entity-ID hinzu"},grid:{show_daily:"Bitte fügen Sie die Tages-Grideinspeisung_76- und Tages-Gridexport_77-Attribute und die Entity-IDs hinzu"},essential_power:"Das Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Inverter-Power_175-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",nonessential_power:"Das Nicht-Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Grid-Power_169-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",missing_entity:"Bitte fügen Sie das Attribut und die Entity-ID hinzu"},Le={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",aux_dynamic_colour:"Aux Dynamic Colour",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},Ee={common:Ae,errors:Pe,config:Le},Ce={description:"A Home Assistant card to emulate the Sunsynk power flow that's shown on the Inverter screen",version:"Version",runtime_to:"RUNTIME TO",battery_floating:"BATTERY FLOATING",charge:"CHARGE",to:"TO",daily_load:"DAILY LOAD",daily_aux:"DAILY AUX",daily_grid_buy:"DAILY GRID BUY",daily_grid_sell:"DAILY GRID SELL",daily_solar:"DAILY SOLAR",daily_solar_left:"DAILY SOLAR / LEFT TODAY",total_solar_generation:"DAILY SOLAR / TOTAL SOLAR",daily_charge:"DAILY CHARGE",daily_discharge:"DAILY DISCHARGE",ratio:"Ratio",timer_off:"Timer off",timer_on:"Timer on",priority_batt:"Priority Batt",priority_load:"Priority Load",nonessential_name:"Non Essential",aux_name:"Auxiliary",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essential",autarky:"Autarky",discharging:"Discharging",charging:"Charging",waiting:"Waiting",standby:"Standby",no_battery:"No Battery",selftest:"Selftest",normal:"Normal",alarm:"Alarm",fault:"Fault",days:"days",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Idle",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Ne={battery:{bat:"No battery attributes defined",energy:"Please include the battery energy attribute and value in Wh e.g. 5.32 Battery energy: 5320",shutdown_soc:"Please include the battery shutdown_soc attribute and value e.g shutdown_soc: 20",full_capacity:"Full capacity needs to be between 80 and 100",empty_capacity:"Empty capacity needs to be <= 40",show_daily:"Please include the day_battery_charge_70 and day_battery_discharge_71 attributes and entity IDs"},solar:{sol:"No solar attributes defined",mppts:"Please include the solar mppts attribute and value; 1,2,3 or 4 e.g. mppts: 2",show_daily:"Please include the day_pv_energy_108 attribute and entity ID"},grid:{show_daily:"Please include the day_grid_import_76 and day_grid_export_77 attributes and entity IDs"},essential_power:"The essential_power attribute is set to none. Please include the inverter_power_175 attribute and entity ID in order for the card to calculate this value.",nonessential_power:"The nonessential_power attribute is set to none. Please include the grid_power_169 attribute and entity ID in order for the card to calculate this value.",missing_entity:"`Please include the attribute and entity ID"},Me={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",off_threshold:"Off Threshold",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},ke={common:Ce,errors:Ne,config:Me},Se={description:"Una tarjeta de Home Assistant para emular el flujo de energía Sunsynk que se muestra en la pantalla del inversor",version:"Versión",runtime_to:"TIEMPO DE FUNCIONAMIENTO HASTA",battery_floating:"BATERÍA EN FLOTACIÓN",charge:"CARGA",to:"A",daily_load:"CARGA DIARIA",daily_aux:"AUXILIAR DIARIO",daily_grid_buy:"COMPRA DIARIA DE LA RED",daily_grid_sell:"VENTA DIARIA A LA RED",daily_solar:"SOLAR DIARIO",daily_solar_left:"SOLAR DIARIO / LO QUE QUEDA HOY",total_solar_generation:"SOLAR DIARIO / TOTAL SOLAR",daily_charge:"CARGA DIARIA",daily_discharge:"DESCARGA DIARIA",ratio:"Relación",timer_off:"Temporizador apagado",timer_on:"Temporizador encendido",priority_batt:"Prioridad de la Batería",priority_load:"Prioridad de la Carga",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Esencial",autarky:"Autarky",discharging:"Descargando",charging:"Cargando",waiting:"Esperando",standby:"En Espera",no_battery:"Sin Batería",selftest:"Autoevaluación",normal:"Normal",alarm:"Alarma",fault:"Fallo",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inactivo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Oe={battery:{bat:"No se han definido atributos de la batería",energy:"Por favor, incluye el atributo de energía de la batería y su valor en Wh, por ejemplo, 5.32 Energía de la batería: 5320",shutdown_soc:"Por favor, incluye el atributo shutdown_soc de la batería y su valor, por ejemplo shutdown_soc: 20",full_capacity:"La capacidad completa debe estar entre 80 y 100",empty_capacity:"La capacidad vacía debe ser <= 40",show_daily:"Por favor, incluye los atributos day_battery_charge_70 y day_battery_discharge_71 y las IDs de las entidades"},solar:{sol:"No se han definido atributos solares",mppts:"Por favor, incluye el atributo mppts solares y su valor; 1,2,3 o 4, por ejemplo, mppts: 2",show_daily:"Por favor, incluye el atributo day_pv_energy_108 y la ID de la entidad"},grid:{show_daily:"Por favor, incluye los atributos day_grid_import_76 y day_grid_export_77 y las IDs de las entidades"},essential_power:"El atributo essential_power está configurado como ninguno. Por favor, incluye el atributo inverter_power_175 y la ID de la entidad para que la tarjeta pueda calcular este valor.",nonessential_power:"El atributo nonessential_power está configurado como ninguno. Por favor, incluye el atributo grid_power_169 y la ID de la entidad para que la tarjeta pueda calcular este valor.",missing_entity:"Por favor, incluye el atributo y la ID de la entidad"},De={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},Ie={common:Se,errors:Oe,config:De},Te={description:"Home Assistant kaart Sunsynk võimsusvoogu emuleerimiseks, mis kuvatakse inverteri ekraanil",version:"Versioon",runtime_to:"TÖÖAEG KUNI",battery_floating:"UJUV AKU",charge:"LAADIMINE",to:"KUNI",daily_load:"PÄEVA KOORMUS",daily_aux:"PÄEVA ABISTAV",daily_grid_buy:"PÄEVA VÕRGUST OST",daily_grid_sell:"PÄEVA VÕRGU MÜÜK",daily_solar:"PÄEVA PÄIKE",daily_solar_left:"PÄEVA PÄIKE / TÄNA JÄÄNUD",total_solar_generation:"PÄEVA PÄIKE / TOTAL SOLAR",daily_charge:"PÄEVA LAADIMINE",daily_discharge:"PÄEVA TÜHJENDAMINE",ratio:"Suhe",timer_off:"Ajastus välja",timer_on:"Ajastus sisse",priority_batt:"Akuprioriteet",priority_load:"Koormuse prioriteet",nonessential_name:"Mitteoluline",aux_name:"Abiseadmed",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Oluline",autarky:"Autarky",discharging:"Tühjenemine",charging:"Laadimine",waiting:"Ootamine",standby:"Ooterežiim",no_battery:"Puudub aku",selftest:"Eneseanalüüs",normal:"Tavaline",alarm:"Häire",fault:"Rike",days:"päeva",hrs:"tundi",min:"min",flash:"Flash",check:"Check",idle:"Tühikäik",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Be={battery:{bat:"Aku atribuute pole määratletud",energy:"Palun sisestage aku energiat atribuut ja väärtus Wh-s, näiteks 5,32 Aku energia: 5320",shutdown_soc:"Palun sisestage aku shutdown_soc atribuut ja väärtus, näiteks shutdown_soc: 20",full_capacity:"Täiskasvanu maht peab olema vahemikus 80 kuni 100",empty_capacity:"Tühi mahutavus peab olema <= 40",show_daily:"Palun sisestage päeva_battery_charge_70 ja päeva_battery_discharge_71 atribuudid ning seadmete ID-d"},solar:{sol:"Päikesepaneelide atribuute pole määratletud",mppts:"Palun sisestage päikesepaneelide mppts atribuut ja väärtus; 1,2,3 või 4, näiteks mppts: 2",show_daily:"Palun sisestage päeva_pv_energy_108 atribuut ja seadme ID"},grid:{show_daily:"Palun sisestage päeva_grid_import_76 ja päeva_grid_export_77 atribuudid ning seadmete ID-d"},essential_power:"Olulise võimsuse atribuut on määratud puuduvaks. Palun sisestage inverteri_power_175 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",nonessential_power:"Mittetähtsa võimsuse atribuut on määratud puuduvaks. Palun sisestage võrgu_power_169 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",missing_entity:"Sisestage palun atribuut ja seadme ID"},Ve={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},Ge={common:Te,errors:Be,config:Ve},ze={description:"Une carte Home Assistant pour émuler les flux d'énergie affichés à l'écran des onduleurs Sunsynk ",version:"Version",runtime_to:"DÉCHARGÉE À",battery_floating:"BATTERIE FLOTTANTE",charge:"CHARGE",to:"À",daily_load:"CHARGE (JOUR)",daily_aux:"CHARGE AUX (JOUR)",daily_grid_buy:"ACHAT (JOUR)",daily_grid_sell:"VENTE (JOUR)",daily_solar:"PRODUCTION (JOUR)",daily_solar_left:"PRODUCTION / RESTANT (JOUR)",total_solar_generation:"PRODUCTION / TOTAL SOLAR",daily_charge:"CHARGE (JOUR)",daily_discharge:"DÉCHARGE (JOUR)",ratio:"Ratio",timer_off:"Prog. Off",timer_on:"Prog. On",priority_batt:"Batterie en 1er",priority_load:"Charges en 1er",nonessential_name:"Non Essentielles",aux_name:"Auxiliaire",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentielles",autarky:"AutoConso",discharging:"Décharge",charging:"Charge",waiting:"En attente",standby:"Veille",no_battery:"Pas de batterie",selftest:"Auto-test",normal:"Normal",alarm:"Alarme",fault:"Défaut",days:"jours",hrs:"heures",min:"min",flash:"Flash",check:"Check",idle:"Inactif",exporting:"Exportation",importing:"Importation",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Réseau",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},je={battery:{bat:"Aucun attribut de batterie défini",energy:"Veuillez inclure l'attribut d'énergie de la batterie et la valeur en Wh, par exemple 5.32 Énergie de la batterie : 5320",shutdown_soc:"Veuillez inclure l'attribut de batterie shutdown_soc et la valeur, par exemple shutdown_soc : 20",full_capacity:"La capacité totale doit être comprise entre 80 et 100",empty_capacity:"La capacité vide doit être <= 40",show_daily:"Veuillez inclure les attributs day_battery_charge_70 et day_battery_discharge_71 ainsi que les ID d'entité"},solar:{sol:"Aucun attribut solaire défini",mppts:"Veuillez inclure l'attribut solaire mppts et la valeur ; 1,2,3 ou 4 par exemple mppts : 2",show_daily:"Veuillez inclure l'attribut day_pv_energy_108 et l'ID d'entité"},grid:{show_daily:"Veuillez inclure les attributs day_grid_import_76 et day_grid_export_77 ainsi que les ID d'entité"},essential_power:"L'attribut essential_power est réglé sur 'none'. Veuillez inclure l'attribut inverter_power_175 et l'ID d'entité afin que la carte puisse calculer cette valeur.",nonessential_power:"L'attribut nonessential_power est réglé sur 'none'. Veuillez inclure l'attribut grid_power_169 et l'ID d'entité afin que la carte puisse calculer cette valeur.",missing_entity:"Veuillez inclure l'attribut et l'ID d'entité"},Re={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},He={common:ze,errors:je,config:Re},Ue={description:"Een Home Assistant-kaart om de Sunsynk energiestroom te emuleren die op het omvormerscherm wordt weergegeven",version:"Versie",runtime_to:"WERKTIJD TOT",battery_floating:"DRIJVENDE BATTERIJ",charge:"LADEN",to:"TOT",daily_load:"DAGELIJKSE BELASTING",daily_aux:"DAGELIJKSE HULP",daily_grid_buy:"DAGELIJKS NETSTROOM KOPEN",daily_grid_sell:"DAGELIJKSE NETSTROOM VERKOPEN",daily_solar:"DAGELIJKSE ZONNE-ENERGIE",daily_solar_left:"DAGELIJKSE ZONNE-ENERGIE / OVER VANDAAG",total_solar_generation:"DAGELIJKSE ZONNE-ENERGIE / TOTAL SOLAR",daily_charge:"DAGELIJKSE LADING",daily_discharge:"DAGELIJKSE ONTLADING",ratio:"Verhouding",timer_off:"Timer uit",timer_on:"Timer aan",priority_batt:"Batterijprioriteit",priority_load:"Belastingsprioriteit",nonessential_name:"Niet-Essentieel",aux_name:"Hulp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentieel",autarky:"Autarky",discharging:"Ontladen",charging:"Opladen",waiting:"Wachten",standby:"Standby",no_battery:"Geen batterij",selftest:"Zelftest",normal:"Normaal",alarm:"Alarm",fault:"Fout",days:"dagen",hrs:"uren",min:"minuten",flash:"Flash",check:"Check",idle:"Inactief",exporting:"Exporteren",importing:"Importeren",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},We={battery:{bat:"Geen batterijattributen gedefinieerd",energy:"Voeg alstublieft het batterij-energieattribuut en de waarde in Wh toe, bijvoorbeeld 5.32 Batterij-energie: 5320",shutdown_soc:"Voeg alstublieft het batterij-shutdown_soc-attribuut en de waarde toe, bijvoorbeeld shutdown_soc: 20",full_capacity:"De volledige capaciteit moet tussen 80 en 100 liggen",empty_capacity:"De lege capaciteit moet <= 40 zijn",show_daily:"Voeg alstublieft de attributen day_battery_charge_70 en day_battery_discharge_71 toe, evenals de entiteits-ID's"},solar:{sol:"Geen zonne-attributen gedefinieerd",mppts:"Voeg alstublieft het zonne-mppts-attribuut en de waarde toe; 1,2,3 of 4 bijvoorbeeld mppts: 2",show_daily:"Voeg alstublieft het day_pv_energy_108-attribuut en de entiteits-ID toe"},grid:{show_daily:"Voeg alstublieft de attributen day_grid_import_76 en day_grid_export_77 toe, evenals de entiteits-ID's"},essential_power:"Het essential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het inverter_power_175-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",nonessential_power:"Het nonessential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het grid_power_169-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",missing_entity:"Voeg alstublieft het attribuut en de entiteits-ID toe"},Qe={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},Ze={common:Ue,errors:We,config:Qe},Fe={description:"Карта Home Assistant для эмуляции потока энергии Sunsynk, отображаемого на экране инвертора",version:"Версия",runtime_to:"ВРЕМЯ ДО",battery_floating:"ПЛАВАЮЩАЯ БАТАРЕЯ",charge:"ЗАРЯД",to:"ДО",daily_load:"НАГРУЗКА",daily_aux:"ВСПОМОГАТЕЛЬНАЯ",daily_grid_buy:"ПОКУПКА ИЗ СЕТИ",daily_grid_sell:"ПРОДАЖА В СЕТЬ",daily_solar:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_solar_left:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ОСТАЛОСЬ СЕГОДНЯ",total_solar_generation:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ИТОГО СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_charge:"ЗАРЯД",daily_discharge:"РАЗРЯД",ratio:"Соотношение",timer_off:"Таймер выключен",timer_on:"Таймер включен",priority_batt:"Приоритет батареи",priority_load:"Приоритет нагрузки",nonessential_name:"Не существенное",aux_name:"Вспомогательное",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Существенное",autarky:"Autarky",discharging:"Разряд",charging:"Заряд",waiting:"Ожидание",standby:"Режим ожидания",no_battery:"Без батареи",selftest:"Самодиагностика",normal:"Нормально",alarm:"Авария",fault:"Неисправность",days:"дни",hrs:"часов",min:"мин",flash:"Flash",check:"Check",idle:"Бездействие",exporting:"Экспорт",importing:"Импорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:"Остановка",shutdown:"Отключение",offline:"Оффлайн",running:"Работает",sleepmode:"Спящий Режим",grid_name:"Сеть",limit:"Лимит",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Ye={battery:{bat:"Не определены атрибуты батареи",energy:"Пожалуйста, включите атрибут батарейной энергии и значение в Втч, например, 5.32 Энергия батареи: 5320",shutdown_soc:"Пожалуйста, включите атрибут батарейного shutdown_soc и значение, например, shutdown_soc: 20",full_capacity:"Полная емкость должна быть в диапазоне от 80 до 100",empty_capacity:"Пустая емкость должна быть <= 40",show_daily:"Пожалуйста, включите атрибуты day_battery_charge_70 и day_battery_discharge_71 и идентификаторы сущностей"},solar:{sol:"Не определены атрибуты солнечной энергии",mppts:"Пожалуйста, включите атрибут солнечных mppts и значение; 1,2,3 или 4, например, mppts: 2",show_daily:"Пожалуйста, включите атрибут day_pv_energy_108 и идентификатор сущности"},grid:{show_daily:"Пожалуйста, включите атрибуты day_grid_import_76 и day_grid_export_77 и идентификаторы сущностей"},essential_power:"Атрибут essential_power установлен на 'none'. Пожалуйста, включите атрибут inverter_power_175 и идентификатор сущности, чтобы карта могла вычислить это значение.",nonessential_power:"Атрибут nonessential_power установлен на 'none'. Пожалуйста, включите атрибут grid_power_169 и идентификатор сущности, чтобы карта могла вычислить это значение.",missing_entity:"Пожалуйста, включите атрибут и идентификатор сущности"},Xe={title:"Заголовок",title_colour:"Цвет Заголовка",title_size:"Размер Заголовка (px)",card_height:"Высота Карточки (px)",card_width:"Ширина Карточки (px)",decimal_places:"Десятичные Знаки",decimal_places_energy:"Десятичные Знаки (Ежедневная Енергия)",model:"Модель",autarky:"Autarky",cardstyle:"Стиль Карточки",large_font:"Увеличенный Шрифт",modern:"Современный Инвертор",show_solar:"Показать PV",show_battery:"Показать Батарею",show_grid:"Показать Сеть",show_aux:"Показать Вспомогательный",dynamic_line_width:"Динамические линии",max_line_width:"Макс. Ширина Линий",min_line_width:"Мин. Ширина Линий",solar:"Solar",mppts:"MPPTs",show_daily:"Ежедневный Показатель",show_daily_aux:"Ежедневный показатель вспомогательный",animation_speed:"Скорость Анимации",max_power:"Макс. Мощность",pv1_max_power:"PV1 Макс. Мощность",pv2_max_power:"PV2 Макс. Мощность",pv3_max_power:"PV3 Макс. Мощность",pv4_max_power:"PV4 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",display_mode:"Режим Отображения",efficiency:"Режим Эффективности",battery:"Батарея",load1_name:"Нагрузка 1 Название",load2_name:"Нагрузка 2 Название",load3_name:"Нагрузка 3 Название",load4_name:"Нагрузка 4 Название",load1_icon:"Нагрузка 1 Иконка",load2_icon:"Нагрузка 2 Иконка",load3_icon:"Нагрузка 3 Иконка",load4_icon:"Нагрузка 4 Иконка",aux_load1_name:"Вспом. Нагр. 1 Название",aux_load2_name:"Вспом. Нагр. 2 Название",aux_load1_icon:"Вспом. Нагр. 2 Иконка",aux_load2_icon:"Вспом. Нагр. 2 Иконка",aux_dynamic_colour:"Вспом. Нагр. Динамический Цвет",show_daily_buy:"Показать Ежедневную Покупку",show_daily_sell:"Показать Ежедневную Продажу",no_grid_colour:"Нет Сети Цвет",grid_off_colour:"Сеть Отключена Цвет",grid_name:"Название Сети",colour:"Цвет",charge_colour:"Цвет Зарядки",linear_gradient:"Градиент",animate:"Анимированный Градиент",aux_colour:"Цвет",aux_off_colour:"Цвет выключенного",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Инвертировать показания",invert_load:"Инвертировать показания",shutdown_soc:"% Отключения",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Энергия",auto_scale:"Масштабирование",three_phase:"Три Фазы",dynamic_colour:"Динамический Цвет",dynamic_icon:"Динамическая Иконка",invert_power:"Инвертировать Мощность",show_absolute:"Убрать Отрицательные",hide_soc:"Скрыть SOC",invert_aux:"Инвертировать Вспомогательную",show_absolute_aux:"Убрать Отрицательные",show_nonessential:"Показать Не Обязательную Нагрузку",aux_name:"Название вспомогательного",aux_daily_name:"Название вспомогательного ежедневного",aux_type:"Тип вспомогательного",aux_loads:"Нагрузка вспомогательного",essential_name:"Название Обязательной Нагрузки",additional_loads:"Количество Нагрузок",export_colour:"Цвет Экспорта",nonessential_name:"Название Не Обязательной Нагрузки",nonessential_icon:"Иконка Не Обязательной Нагрузки",energy_cost_decimals:"Разрядность Стоимости Энергии",show_remaining_energy:"Показать Остаток Энергии",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Параметры Заголовка",general:"Общие Настройки",inverter:"Настройки Инвертора",solar:"Настройки Солнечного Поля",battery:"Настройки Батареи",grid:"Настройки Сети",load:"Настройки Нагрузки",entities:"Сущности",aux:"Настройки Всп. Нагрузки",energy:"Сущности Энергии",bat:"Сущности Батареи",sol:"Сущности Солнечного Поля",inv:"Сущности Инвертора",ld:"Сущности Нагрузки",gri:"Сущности Сети",sensor:"Optional Sensors"}},Je={common:Fe,errors:Ye,config:Xe},Ke={description:"Karta Home Assistant pro emulaci toku energie, který je zobrazen na displeji měniče Sunsynk",version:"Verze",runtime_to:"ČAS DO",battery_floating:"BATERIE JE NABITÁ",charge:"NABÍT",to:"DO",daily_load:"DNES SPOTŘEBA",daily_aux:"DENNÍ VSTUP",daily_grid_buy:"DNES NÁKUP",daily_grid_sell:"DNES PRODEJ",daily_solar:"DNES VÝROBA",daily_solar_left:"DNES VÝROBA / OČEKÁVANÁ VÝROBA",total_solar_generation:"DNES VÝROBA / CELKOVÁ VÝROBA",daily_charge:"DNES NABÍJENÍ",daily_discharge:"DNES VYBÍJENÍ",ratio:"Poměr",timer_off:"Časovač off",timer_on:"Časovač on",priority_batt:"Nabít Baterii z DS",priority_load:"Nabíjím Baterii z DS",nonessential_name:"Nedostupné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Nezbytný",autarky:"Vlastní",discharging:"Vybíjí se",charging:"Nabíjí se",waiting:"Čeká",standby:"Standby",no_battery:"Není baterie",selftest:"Vlastní test",normal:"Normální",alarm:"Alarm",fault:"Chyba",days:"dní",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinný",exporting:"Odesílání",importing:"Příjem",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Omezení",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},qe={battery:{bat:"Nejsou definovány žádné atributy baterie",energy:"Uveďte prosím atribut energie baterie a hodnotu ve Wh, např. 5,32 Energie baterie: 5320",shutdown_soc:"Uveďte atribut battery shut down_soc a hodnotu, např. shutdown_soc: 20 shutdown_soc: 20",full_capacity:"Plná kapacita musí být mezi 80 a 100",empty_capacity:"Prázdná kapacita musí být <= 40",show_daily:"Uveďte prosím atributy day_battery_charge_70 a day_battery_discharge_71 a ID entit"},solar:{sol:"Nejsou definovány žádné solar atributy",mppts:"Uveďte prosím atribut a hodnotu solar mppts; 1,2,3 nebo 4 např. mppts: 2",show_daily:"Uveďte prosím atribut day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte prosím atributy day_grid_import_76 a day_grid_export_77 a ID entit"},essential_power:"Atribut essential_power je nastaven na hodnotu none. Uveďte prosím atribut inverter_power_175 a ID entity, aby karta mohla vypočítat tuto hodnotu.",nonessential_power:"Atribut neesenciální_výkon je nastaven na hodnotu none. Uveďte prosím atribut grid_power_169 a ID entity, aby karta mohla vypočítat tuto hodnotu.",missing_entity:"Uveďte prosím atribut a ID entity"},$e={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",aux_dynamic_colour:"Aux Dynamic Colour",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},et={common:Ke,errors:qe,config:$e},tt={description:"Una scheda Home Assistant per emulare il flusso di potenza Sunsynk visualizzato sullo schermo dell'inverter",version:"Versione",runtime_to:"DURATA AL",battery_floating:"BATTERY CARICA",charge:"CARICA",to:"A",daily_load:"CONSUMO OGGI",daily_aux:"AUX OGGI",daily_grid_buy:"PRELIEVO OGGI DA RETE",daily_grid_sell:"CESSIONE OGGI IN RETE",daily_solar:"ENERGIA SOLARE OGGI",daily_solar_left:"ENERGIA SOLARE OGGI / STIMA RIMANENTE",total_solar_generation:"ENERGIA SOLARE OGGI / TOTAL SOLAR",daily_charge:"CARICA OGGI",daily_discharge:"SCARICA OGGI",ratio:"Autoconsumo",timer_off:"Spegnimento timer",timer_on:"Accensione timer",priority_batt:"Priorità batteria",priority_load:"Priorità carico",nonessential_name:" Non Essenziale",aux_name:"Ausiliario",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essenziale",autarky:"Autosuff.",discharging:"Scarica",charging:"Carica",waiting:"In attesa",standby:"Standby",no_battery:"Nessuna batteria",selftest:"Auto-test",normal:"Normale",alarm:"Allarme",fault:"Guasto",days:"giorni",hrs:"ore",min:"min",flash:"Flash",check:"Check",idle:"Inattivo",exporting:"Esportazione",importing:"Importazione",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},nt={battery:{bat:"Nessun attributo della batteria definito",energy:"Si prega di includere l'attributo dell'energia della batteria e il valore in Wh, ad esempio 5,32 Energia della batteria: 5320",shutdown_soc:"Si prega di includere l'attributo di spegnimento della batteria e il valore, ad esempio spegnimento_soc: 20",full_capacity:"La capacità massima deve essere compresa tra 80 e 100",empty_capacity:"La capacità vuota deve essere <= 40",show_daily:"Si prega di includere gli attributi day_battery_charge_70 e day_battery_discharge_71 e gli ID delle entità"},solar:{sol:"Nessun attributo solare definito",mppts:"Si prega di includere l'attributo solare mppts e il valore; 1,2,3 o 4, ad esempio mppts: 2",show_daily:"Si prega di includere l'attributo day_pv_energy_108 e l'ID dell'entità"},grid:{show_daily:"Si prega di includere gli attributi day_grid_import_76 e day_grid_export_77 e gli ID delle entità"},essential_power:"L'attributo essential_power è impostato su none. Si prega di includere l'attributo inverter_power_175 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",nonessential_power:"L'attributo nonessential_power è impostato su none. Si prega di includere l'attributo grid_power_169 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",missing_entity:"Si prega di includere l'attributo e l'ID dell'entità"},at={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",label_daily_load:"Daily Load Label",invert_flow:"Invert Flow",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},ot={common:tt,errors:nt,config:at},it={description:"Una tarjeta de Home Assistant per emular el flxue d'energoa Sunsynk que es mostra a la pantalla de l'inversor",version:"Versió",runtime_to:"TEMPS FUNCIONAMENT FINS",battery_floating:"BATERIA EN FLOTACIÓ",charge:"CÀRREGA",to:"A",daily_load:"CÀRREGA DIÀRIA",daily_aux:"AUXILIAR DIARI",daily_grid_buy:"COMPRA DIÀRIA XARXA",daily_grid_sell:"VENDA DIÀRIA XARXA",daily_solar:"SOLAR DIARI",daily_solar_left:"SOLAR DIARI / RESTA AVUI",total_solar_generation:"SOLAR DIARI / TOTAL SOLAR",daily_charge:"CÀRREGA DIÀRIA",daily_discharge:"DESCÀRREGA DIÀRIA",ratio:"Relació",timer_off:"Temporitzador apagat",timer_on:"Temporitzador encès",priority_batt:"Prioritat de la Bateria",priority_load:"Prioritat de la Càrrega",nonessential_name:"No Essencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Esencial",autarky:"Autarquia",discharging:"Descàrrega",charging:"Càrrega",waiting:"Esperant",standby:"En espera",no_battery:"Sense bateria",selftest:"Prova automàtica",normal:"Normal",alarm:"Alarma",fault:"Avaria",days:"dies",hrs:"hrs",min:"min",flash:"Flash",check:"Comprova",idle:"Inactiu",exporting:"Exportació",importing:"Importació",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorció",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"Control Extern"},rt={battery:{bat:"No s'han definit atributs de la bateria",energy:"Si us plau, inclou l'atribut d'energia de la bateria i el seu valor a Wh, per exemple, 5.32 Energia de la bateria: 5320",shutdown_soc:"Si us plau, inclou l'atribut shutdown_soc de la bateria i el seu valor, per exemple shutdown_soc: 20",full_capacity:"La capacitat completa ha d'estar entre 80 i 100",empty_capacity:"La capacitat buida ha de ser <= 40",show_daily:"Si us plau, inclou els atributs day_battery_charge_70 i day_battery_discharge_71 i les IDs de les entitats"},solar:{sol:"No s'han definit cap atribut solar",mppts:"Si us plau, inclou l'atribut mppts solars i el seu valor; 1,2,3 o 4, per exemple, mppts: 2",show_daily:"Si us plau, inclou l'atribut day_pv_energy_108 i la ID de l'entitat"},grid:{show_daily:"Si us plau, inclou els atributs day_grid_import_76 i day_grid_export_77 i les IDs de les entitats"},essential_power:"L'atribut essential_power està configurat com a cap. Inclou l'atribut inverter_power_175 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",nonessential_power:"L'atribut nonessential_power està configurat com a cap. Inclou l'atribut grid_power_169 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",missing_entity:"Si us plau, inclou l'atribut i la ID de l'entitat"},st={title:"Títol",title_colour:"Color Títol",title_size:"Mida Títol (px)",decimal_places:"Posicions Decimals",decimal_places_energy:"Posicions Decimals (Energia Diaria)",card_height:"Alçada Targeta (px)",card_width:"Amplada Targeta (px)",model:"Model",autarky:"Autarquia",cardstyle:"Estil Targeta",large_font:"Font Gran",modern:"Modern",show_solar:"Mostra Solar",show_battery:"Mostra Bateria",show_grid:"Mostra Xarxa",show_aux:"Mostra Aux",dynamic_line_width:"Gruix Línia Dinàmic",max_line_width:"Màx. Gruix Línia",min_line_width:"Min Gruix Línia",solar:"Solar",mppts:"MPPTs",show_daily:"Mostra Diari",show_daily_aux:"Mostra Diari Aux",animation_speed:"Anim. Velocitat",max_power:"Màxima Potència",pv1_max_power:"Màxima Potència PV1",pv2_max_power:"Màxima Potència PV2",pv3_max_power:"Màxima Potència PV3",pv4_max_power:"Màxima Potència PV4",pv1_name:"Nom PV1",pv2_name:"Nom PV2",pv3_name:"Nom PV3",pv4_name:"Nom PV4",display_mode:"Mode Visualització",efficiency:"Mode d'Eficiència",battery:"Bateria",load1_name:"Nom Càrrega 1",load2_name:"Nom Càrrega 2",load3_name:"Nom Càrrega 3",load4_name:"Nom Càrrega 4",load1_icon:"Icona Càrrega 1",load2_icon:"Icona Càrrega 2",load3_icon:"Icona Càrrega 3",load4_icon:"Icona Càrrega 4",aux_load1_name:"Nom Càrrega Aux 1",aux_load2_name:"Nom Càrrega Aux 2",aux_load1_icon:"Icona Càrrega Aux 1",aux_load2_icon:"Icona Càrrega Aux 2",show_daily_buy:"Mostra Compra diària",show_daily_sell:"Mostra Venta diària",no_grid_colour:"Xarxa Sense Color",grid_off_colour:"Color Xarxa Caiguda",grid_name:"Nom Xarxa",colour:"Color",charge_colour:"Color Càrrega",linear_gradient:"Gradient Lineal",animate:"Gradient Lineal Animat",aux_colour:"Color",aux_off_colour:"Color Caigut",off_threshold:"Umbral de Caiguda",panel_mode:"Mode de Panell",invert_grid:"Invertir Valors",invert_load:"Invertir Valors",shutdown_soc:"SOC d'Apagada",shutdown_soc_offgrid:"SOC d'Apagada (Sense Xarxa)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energia",auto_scale:"Escala Automàtica",three_phase:"Trifàsic",dynamic_colour:"Color Dinàmic",aux_dynamic_colour:"Color Dinàmic Aux",dynamic_icon:"Icona Dinàmica",invert_power:"Invertir Potència",show_absolute:"Mostra Absoluts",hide_soc:"Oculta SOC",invert_aux:"Invertir Aux",show_absolute_aux:"Mostra Absoluts",show_nonessential:"Mostra No Essencial",aux_name:"Nom Aux",aux_daily_name:"Nom Diari Aux",aux_type:"Icona Aux",aux_loads:"Càrregues Aux",essential_name:"Nom Essencials",additional_loads:"Càrregues addicionals",export_colour:"Color Exportació",nonessential_name:"Nom No Essencials",nonessential_icon:"Icona No Essencials",energy_cost_decimals:"Decimals Cost Energia",show_remaining_energy:"Mostra Energia Romanent",path_threshold:"Umbral Ruta",label_daily_grid_buy:"Etiqueta Compra Diària Xarxa",label_daily_grid_sell:"Etiqueta Venta Diària Xarxa",invert_flow:"Invert Flow",cat_title:{title:"Opcions Títol",general:"Opcions Generals",inverter:"Opcions Inversor",solar:"Opcions Solar",battery:"Opcions Bateria",grid:"Opcions Xarxa",load:"Opcions Càrrega",entities:"Entitats",aux:"Opcions Aux",energy:"Entitats Energia",bat:"Entitats Bateria",sol:"Entitats Solar",inv:"Entitats Inversor",ld:"Entitats Càrrega",gri:"Entitats Xarxa",sensor:"Sensors Opcionals"}},lt={common:it,errors:rt,config:st},dt={description:"Karta Home Assistant na emuláciu Sunsynk power flow, ktorý sa zobrazuje na obrazovke invertora",version:"Verzia",runtime_to:"RUNTIME DO",battery_floating:"PLÁVAJÚCA BATÉRIA",charge:"NABÍJANIE",to:"DO",daily_load:"DENNÁ ZÁŤAŽ",daily_aux:"DAILY POM",daily_grid_buy:"SIEŤ DENNÝ NÁKUP",daily_grid_sell:"SIEŤ DENNÝ PREDAJ",daily_solar:"DENNÝ SLNKO",daily_solar_left:"DENNÉ SLNKO / ZOSTÁVA DNES",total_solar_generation:"DENNÉ SLNKO / CELKOVO SLNKO",daily_charge:"DENNÉ NABÍJANIE",daily_discharge:"DENNÉ VYBÍJANIE",ratio:"Pomer",timer_off:"Časovač vypnutý",timer_on:"Časovač zapnutý",priority_batt:"Priorita Bat",priority_load:"Priorita Záťaž",nonessential_name:"Nepodstatné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Podstatné",autarky:"Autarky",discharging:"Vykladanie",charging:"Nabíjanie",waiting:"Čakanie",standby:"Pohotovostný režim",no_battery:"Žiadna batéria",selftest:"Samotest",normal:"Normálny",alarm:"Poplach",fault:"Porucha",days:"dni",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinnosť",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},ct={battery:{bat:"Nie sú definované žiadne atribúty batérie",energy:"Uveďte atribút energie batérie a hodnotu vo Wh, napr. 5,32 Energia batérie: 5320",shutdown_soc:"Uveďte atribút vypnutia batérie a hodnotu, napr. shutdown_soc: 20",full_capacity:"Plná kapacita musí byť medzi 80 a 100",empty_capacity:"Prázdna kapacita musí byť <= 40",show_daily:"Uveďte atribúty day_battery_charge_70 a day_battery_discharge_71 a ID entity"},solar:{sol:"Nie sú definované žiadne solárne atribúty",mppts:"Uveďte atribút a hodnotu solar mppts; 1,2,3 alebo 4 napr. mppts: 2",show_daily:"Uveďte atribút day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte atribúty day_grid_import_76 a day_grid_export_77 a ID entity"},essential_power:"Atribút essential_power je nastavený na hodnotu none. Uveďte atribút inverter_power_175 a ID entity, aby karta vypočítala túto hodnotu.",nonessential_power:"Atribút noesential_power je nastavený na hodnotu none. Uveďte atribút grid_power_169 a ID entity, aby karta vypočítala túto hodnotu.",missing_entity:"`Uveďte atribút a ID entity"},ut={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},ht={common:dt,errors:ct,config:ut},pt={description:"Um Card para o Home Assistant que ajuda a emular o fluxo de energia exibido na tela do inversor",version:"Versão",runtime_to:"TEMPO DE ATIVIDADE",battery_floating:"FLUTUAÇÃO DA BATERIA",charge:"CARGA",to:"PARA",daily_load:"USO DIÁRIO",daily_aux:"AUXILIAR DIÁRIO",daily_grid_buy:"CONSUMO DIÁRIO",daily_grid_sell:"ENVIO DIÁRIO",daily_solar:"SOLAR DIÁRIO",daily_solar_left:"PRODUÇÃO DIÁRIA / RESTANTE DIÁRIO",total_solar_generation:"PRODUÇÃO DIÁRIA / PREVISÃO SOLAR",daily_charge:"CARGA DIÁRIA",daily_discharge:"DESCARGA DIÁRIA",ratio:"Proporção",timer_off:"Temporizador desligado",timer_on:"Temporizador ligado",priority_batt:"Prioridade da Bateria",priority_load:"Prioridade de Uso",nonessential_name:"Desnecessário",aux_name:"Auxiliar",pv1_name:"PFV1",pv2_name:"PFV2",pv3_name:"PFV3",pv4_name:"PFV4",essential:"Essencial",autarky:"Autoconsumo",discharging:"Descaregando",charging:"Caregando",waiting:"Aguardando",standby:"Em espera",no_battery:"Sem Bateria",selftest:"Autoteste",normal:"Normal",alarm:"Alarme",fault:"Falta",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inativo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Parado",shutdown:"Desligar",offline:"Offline",running:"Rodando",sleepmode:"Dormindo",grid_name:"Rede",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},gt={battery:{bat:"Nenhum atributo de bateria definido",energy:"Inclua o atributo de energia da bateria e seu valor em Wh, por exemplo: 5,32 Potência da bateria: 5320",shutdown_soc:"Inclua o atributo shutdown_soc da bateria e seu valor, por exemplo shutdown_soc: 20",full_capacity:"A capacidade total deve estar entre 80 e 100",empty_capacity:"A capacidade vazia deve ser <= 40",show_daily:"Por favor, inclua os atributos day_battery_charge_70 e day_battery_discharge_71 e os IDs das entidade"},solar:{sol:"Nenhum atributo solar definido",mppts:"Por favor, inclua o atributo solar mppts e seu valor; 1,2,3 ou 4, por exemplo, mppts: 2",show_daily:"Por favor, inclua o atributo day_pv_energy_108 e o ID da entidade"},grid:{show_daily:"Por favor, inclua os atributos day_grid_import_76 e day_grid_export_77 e os IDs das entidade"},essential_power:"O atributo Essential_Power está definido como nenhum. Inclua o atributo inverter_power_175 e o ID da entidade para que o cartão possa calcular esse valor.",nonessential_power:"O atributo nonessential_power está configurado como nenhum. Inclua o atributo grid_power_169 e o ID da entidade para que o cartão possa calcular esse valor.",missing_entity:"Por favor, inclua o atributo e o ID da entidade"},yt={title:"Título",title_colour:"Cor do Título",title_size:"Tamanho do Título (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Casas decimais",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Modelo",autarky:"Autoconsumo",cardstyle:"Estilo do Cartão",large_font:"Largura da fonte",modern:"Moderno",show_solar:"Exibir Solar",show_battery:"Exibir Bateria",show_grid:"Exibir Rede",show_aux:"Exibir Aux",dynamic_line_width:"Largura da linha dinâmica",max_line_width:"Largura máxima da linha",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Exibir Diário",show_daily_aux:"Exibir Diário Aux",animation_speed:"Velocidade de Animação",max_power:"Potência Max",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",display_mode:"Mode de Exibição",efficiency:"Efficiency Mode",battery:"Bateria",load1_name:"Nome Uso1",load2_name:"Nome Uso2",load3_name:"Nome Uso3",load4_name:"Nome Uso4",load1_icon:"Icone Uso1",load2_icon:"Icone Uso2",load3_icon:"Icone Uso3",load4_icon:"Icone Uso4",aux_load1_name:"Nome Aux_Uso1",aux_load2_name:"Nome Aux_Uso2",aux_load1_icon:"Nome Aux_Uso3",aux_load2_icon:"Nome Aux_Uso4",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Consumo Diário",show_daily_sell:"Produção Diária",no_grid_colour:"Cor No_Grid",grid_off_colour:"Cor Grid_Off",grid_name:"Nome Grid",colour:"Cor",charge_colour:"Cor Charge",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Cor",aux_off_colour:"Cor Off",off_threshold:"Off Threshold",panel_mode:"Modo do Painel",invert_grid:"Inverter Valores",invert_load:"Inverter Valores",shutdown_soc:"Desligamento do SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energia",auto_scale:"Escala automática",three_phase:"Trifásico",dynamic_colour:"Cor Dinâmica",dynamic_icon:"Ícone Dinâmico",invert_power:"Potência do Inversor",show_absolute:"Exibir valor absoluto",hide_soc:"Ocultar SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Exibir absoluto_aux",show_nonessential:"Exibir Desnecessário",aux_name:"Nome Aux",aux_daily_name:"Daily Aux Name",aux_type:"Icone Aux",aux_loads:"Aux Loads",essential_name:"Nome Essencial",additional_loads:"Uso Adicional",export_colour:"Cor Expor",nonessential_name:"Nome Desnecessário",nonessential_icon:"Icone Desnecessário",energy_cost_decimals:"Decimais do custo de energia",show_remaining_energy:"Exibir energia restante",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Opções de título",general:"Opções gerais",inverter:"Opções do inversor",solar:"Opções Solar",battery:"Opções da Bateria",grid:"Opções da Rede",load:"Opções Load",entities:"Entidades",aux:"Opções do Aux",energy:"Entidade de Enêrgia",bat:"Entidades da Bateria ",sol:"Entidades de Solar",inv:"Entidades do Inversor",ld:"Entidade do Load",gri:"Entidade da Rede",sensor:"Optional Sensors"}},ft={common:pt,errors:gt,config:yt},mt={description:"Ett Home Assistant-kort för att emulera Sunsynk-energiflödet som visas på omvandlarskärmen",version:"Version",runtime_to:"DRIFTTID TILL",battery_floating:"BATTERI FLYTANDE",charge:"LADDNING",to:"TILL",daily_load:"DAGLIG BELASTNING",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIGT NÄTKÖP",daily_grid_sell:"DAGLIGT NÄTSÄLJ",daily_solar:"DAGLIG SOL",daily_solar_left:"DAGLIG SOL / KVAR IDAG",total_solar_generation:"DAGLIG SOL / TOTAL SOL",daily_charge:"DAGLIG LADDNING",daily_discharge:"DAGLIG URLADDNING",ratio:"Förhållande",timer_off:"Timer av",timer_on:"Timer på",priority_batt:"Prioritet Batteri",priority_load:"Prioritet Belastning",nonessential_name:"Icke Nödvändigt",aux_name:"Hjälp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Nödvändig",autarky:"Självförsörjning",discharging:"Urladdning",charging:"Laddning",waiting:"Väntar",standby:"Standby",no_battery:"Inget Batteri",selftest:"Självtest",normal:"Normal",alarm:"Larm",fault:"Fel",days:"dagar",hrs:"timmar",min:"min",flash:"Blinka",check:"Kontrollera",idle:"Inaktiv",exporting:"Export",importing:"Import",ongrid:"Ansluten till nätet",offgrid:"Frånkopplad från nätet",normalstop:"Normal Stopp",shutdown:"Avstängning",offline:"Offline",running:"Igång",sleepmode:"Viloläge",grid_name:"Nät",limit:"Begränsa",off:"Av",lowpower:"Låg Effekt",bulk:"Bulk",absorption:"Absorption",float:"Flytande",storage:"Lagring",equalize:"Utjämna",passthru:"Passera genom",inverting:"Inverterar",powerassist:"Ström Assistans",powersupply:"Strömförsörjning",sustain:"Upprätthålla",externalcontrol:"Extern Kontroll"},vt={battery:{bat:"Inga batteriattribut definierade",energy:"Vänligen inkludera batterienergiattributet och värdet i Wh, t.ex. 5.32 Batterienergi: 5320",shutdown_soc:"Vänligen inkludera batteriets shutdown_soc-attribut och värde, t.ex shutdown_soc: 20",full_capacity:"Full kapacitet måste vara mellan 80 och 100",empty_capacity:"Tom kapacitet måste vara <= 40",show_daily:"Vänligen inkludera dag_battery_charge_70 och dag_battery_discharge_71 attribut och entitets-ID"},solar:{sol:"Inga solattribut definierade",mppts:"Vänligen inkludera solens mppts-attribut och värde; 1, 2, 3 eller 4 t.ex. mppts: 2",show_daily:"Vänligen inkludera dag_pv_energy_108 attribut och entitets-ID"},grid:{show_daily:"Vänligen inkludera dag_grid_import_76 och dag_grid_export_77 attribut och entitets-ID"},essential_power:"essential_power-attributet är inställt på none. Vänligen inkludera inverter_power_175-attributet och entitets-ID så att kortet kan beräkna detta värde.",nonessential_power:"nonessential_power-attributet är inställt på none. Vänligen inkludera grid_power_169-attributet och entitets-ID så att kortet kan beräkna detta värde.",missing_entity:"Vänligen inkludera attributet och entitets-ID"},wt={title:"Titel",title_colour:"Titel Färg",title_size:"Titel Storlek (px)",card_height:"Kort Höjd (px)",card_width:"Kort Bredd (px)",decimal_places:"Decimaler",decimal_places_energy:"Decimaler (Daglig Energi)",model:"Modell",autarky:"Självförsörjning",cardstyle:"Kortstil",large_font:"Stor Text",modern:"Modern",show_solar:"Visa Sol",show_battery:"Visa Batteri",show_grid:"Visa Nät",show_aux:"Visa Aux",dynamic_line_width:"Dynamisk Linjebredd",max_line_width:"Max Linjebredd",min_line_width:"Min Linjebredd",solar:"Sol",mppts:"MPPTs",show_daily:"Visa Daglig",show_daily_aux:"Visa Daglig Aux",animation_speed:"Animationshastighet",max_power:"Max Effekt",pv1_max_power:"PV1 Max Effekt",pv2_max_power:"PV2 Max Effekt",pv3_max_power:"PV3 Max Effekt",pv4_max_power:"PV4 Max Effekt",pv1_name:"PV1 Namn",pv2_name:"PV2 Namn",pv3_name:"PV3 Namn",pv4_name:"PV4 Namn",display_mode:"Visningsläge",efficiency:"Effektivitet",battery:"Batteri",load1_name:"Belastning 1 Namn",load2_name:"Belastning 2 Namn",load3_name:"Belastning 3 Namn",load4_name:"Belastning 4 Namn",load1_icon:"Belastning 1 Ikon",load2_icon:"Belastning 2 Ikon",load3_icon:"Belastning 3 Ikon",load4_icon:"Belastning 4 Ikon",aux_load1_name:"Aux Belastning 1 Namn",aux_load2_name:"Aux Belastning 2 Namn",aux_load1_icon:"Aux Belastning 1 Ikon",aux_load2_icon:"Aux Belastning 2 Ikon",aux_dynamic_colour:"Aux Dynamisk Färg",off_threshold:"Av Gränsvärde",show_daily_buy:"Visa Dagligt Köp",show_daily_sell:"Visa Dagligt Sälj",no_grid_colour:"Inget Nät Färg",grid_off_colour:"Nät Av Färg",grid_name:"Nät Namn",colour:"Färg",charge_colour:"Laddningsfärg",linear_gradient:"Linjär Gradient",animate:"Animera Linjär Gradient",aux_colour:"Färg",aux_off_colour:"Av Färg",panel_mode:"Panel Läge",invert_grid:"Invertera Värden",invert_load:"Invertera Värden",shutdown_soc:"Avstängning SOC",shutdown_soc_offgrid:"Avstängning SOC (Av Nät)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energi",auto_scale:"Skala Automatiskt",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Färg",dynamic_icon:"Dynamisk Ikon",invert_power:"Invertera Effekt",show_absolute:"Visa Absolut",hide_soc:"Dölj SOC",invert_aux:"Invertera Aux",show_absolute_aux:"Visa Absolut",show_nonessential:"Visa Icke Nödvändigt",aux_name:"Aux Namn",aux_daily_name:"Daglig Aux Namn",aux_type:"Aux Ikon",aux_loads:"Aux Belastningar",essential_name:"Nödvändig Namn",additional_loads:"Ytterligare Belastningar",export_colour:"Export Färg",nonessential_name:"Icke Nödvändigt Namn",nonessential_icon:"Icke Nödvändig Ikon",energy_cost_decimals:"Energikostnad Decimaler",show_remaining_energy:"Visa Återstående Energi",path_threshold:"Väg Tröskelvärde",label_daily_grid_buy:"Daglig Nätköp Etikett",label_daily_grid_sell:"Daglig Nätsälj Etikett",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",cat_title:{title:"Titelalternativ",general:"Allmänna Alternativ",inverter:"Växlaralternativ",solar:"Solalternativ",battery:"Batterialternativ",grid:"Nätalternativ",load:"Belastningsalternativ",entities:"Entiteter",aux:"Aux Alternativ",energy:"Energientiteter",bat:"Batterientiteter",sol:"Solentiteter",inv:"Inverterentiteter",ld:"Belastningsentiteter",gri:"Nätentiteter",sensor:"Valfria Sensorer"}},_t={common:mt,errors:vt,config:wt},xt={description:"Карта Home Assistant для емуляції потоку енергії Sunsynk, що відображається на екрані інвертора",version:"Версія",runtime_to:"ЧАС ДО",battery_floating:"ПІДТРИМУЮЧИЙ ЗАРЯД БАТАРЕЇ",charge:"ЗАРЯД",to:"ДО",daily_load:"ДОБОВЕ НАВАНТАЖЕННЯ",daily_aux:"ДОБОВЕ ДОП. НАВАНТАЖЕННЯ",daily_grid_buy:"З МЕРЕЖІ ЗА ДОБУ",daily_grid_sell:"ПРОДАЖ В МЕРЕЖУ ЗА ДОБУ",daily_solar:"СОНЯЧНА ЗА ДЕНЬ",daily_solar_left:"СОНЯЧНА ЗА ДЕНЬ/ЗАЛИШОК СЬОГОДНІ",total_solar_generation:"ЩОДЕННА СОНЯЧНА/ЗАГАЛЬНА СОНЯЧНА",daily_charge:"ДОБОВИЙ ЗАРЯД",daily_discharge:"ДОБОВИЙ РОЗРЯД",ratio:"Співвідношення",timer_off:"Таймер Вимк.",timer_on:"Таймер Ввімк.",priority_batt:"Пріор. Бат.",priority_load:"Пріор. Наван.",nonessential_name:"Необов'язкове",aux_name:"Доп. Навантаження",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Основний Споживач",autarky:"Самодостатність",discharging:"Розрядка",charging:"Зарядка",waiting:"Чекаю",standby:"Режим Очікування",no_battery:"Без Батареї",selftest:"Самодіагностика",normal:"Нормально",alarm:"Аварія",fault:"Несправність",days:"дн",hrs:"год",min:"хв",flash:"Flash",check:"Перевірити",idle:"Бездіяльність",exporting:"Експорт",importing:"Імпорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:"Звичайна Зупинка",shutdown:"Відключення",offline:"Не в мережі",running:"Працює",sleepmode:"Режим Сну",grid_name:"Мережа",limit:"Ліміт",off:"Вимкнено",lowpower:"Низька Потужність",bulk:"Bulk",absorption:"Поглинання",float:"Плаваючий Режим",storage:"Зберігання",equalize:"Зрівняти",passthru:"Наскрізний Режим",inverting:"Інвертування",powerassist:"Power Assist",powersupply:"Джерело живлення",sustain:"Підтримка",externalcontrol:"Зовнішній контроль"},bt={battery:{bat:"Атрибути батареї не визначено",energy:"Будь ласка, ввімкніть атрибут енергії батареї та значення у Вт-год, наприклад 5.32 Енергія батареї: 5320",shutdown_soc:"Будь ласка, додайте атрибут shutdown_soc батареї та значення, наприклад shutdown_soc: 20",full_capacity:"Повна ємність має становити від 80 до 100",empty_capacity:"Порожня ємність має бути <= 40",show_daily:"Будь ласка, додайте атрибути day_battery_charge_70 і day_battery_discharge_71 та ідентифікатори сутності"},solar:{sol:"Сонячні атрибути не визначені",mppts:"Будь ласка, додайте атрибут і значення solar mppts; 1, 2, 3 або 4 напр. mppts: 2",show_daily:"Будь ласка, додайте атрибут day_pv_energy_108 та ідентифікатор сутності"},grid:{show_daily:"Будь ласка додайте атрибути day_grid_import_76 і day_grid_export_77 та ідентифікатори сутності"},essential_power:"Для атрибута essential_power встановлено значення none. Додайте атрибут inverter_power_175 та ідентифікатор сутності, щоб картка могла обчислити це значення.",nonessential_power:"Для атрибута nonessential_power встановлено значення none. Додайте атрибут grid_power_169 і ідентифікатор сутності, щоб картка могла обчислити це значення.",missing_entity:"Будь ласка, додайте атрибут і ідентифікатор сутності"},At={title:"Назва",title_colour:"Колір Заголовку",title_size:"Розмір Заголовка (px)",card_height:"Висота Картки (px)",card_width:"Ширина Картки (px)",decimal_places:"Десяткові Знаки",decimal_places_energy:"Десяткові Знаки (Добова Енергія)",model:"Модель",autarky:"Самодостатність",cardstyle:"Стиль Картки",large_font:"Збільшений Шрифт",modern:"Modern",show_solar:"Показати Сонячне Поле",show_battery:"Показати Батарею",show_grid:"Показати Мережу",show_aux:"Показати Доп. Нав.",dynamic_line_width:"Ширина Динамічної Лінії",max_line_width:"Макс. Ширина Лінії",min_line_width:"Мін. Ширина Лінії",solar:"Сонячне Поле",mppts:"MPPTs",show_daily:"Показати Добове",show_daily_aux:"Показати Добове Доп. Нав.",animation_speed:"Швидкість Анімації",max_power:"Макс. Потужність",pv1_max_power:"PV1 Макс. Потужність",pv2_max_power:"PV2 Макс. Потужність",pv3_max_power:"PV3 Макс. Потужність",pv4_max_power:"PV4 Макс. Потужність",pv1_name:"PV1 Назва",pv2_name:"PV2 Назва",pv3_name:"PV3 Назва",pv4_name:"PV4 Назва",display_mode:"Режим Відображення",efficiency:"Режим Ефективності",battery:"Батарея",load1_name:"Нав. 1 Назва",load2_name:"Нав. 2 Назва",load3_name:"Нав. 3 Назва",load4_name:"Нав. 4 Назва",load1_icon:"Нав. 1 Значок",load2_icon:"Нав. 2 Значок",load3_icon:"Нав. 3 Значок",load4_icon:"Нав. 4 Значок",aux_load1_name:"Доп. Нав. 1 Назва",aux_load2_name:"Доп. Нав. 2 Назва",aux_load1_icon:"Доп. Нав. 1 Значок",aux_load2_icon:"Доп. Нав. 2 Значок",aux_dynamic_colour:"Доп. Нав. Динамічний Колір",show_daily_buy:"Показати Купівлю За Добу",show_daily_sell:"Показати Продаж За Добу",no_grid_colour:"Колір Коли Немає Мережі",grid_off_colour:"Колір Коли Мережі Вимкнена",grid_name:"Назва Мережі",colour:"Колір",charge_colour:"Колір Під Час Зарядки",linear_gradient:"Лінейний Градієнт",animate:"Анімація Лінійного Градієнта",aux_colour:"Колір Доп. Нав.",aux_off_colour:"Колір Вимкненого Доп. Нав.",off_threshold:"Поріг Вимкнення",panel_mode:"Режим Панелі",invert_grid:"Інвертувати Мережу",invert_load:"Інвертувати Навантаження",shutdown_soc:"SOC Вимкнення",shutdown_soc_offgrid:"SOC Вимкнення (Off Grid)",soc_end_of_charge:"SOC Завершення заряду",navigate:"Шлях Навігації",energy:"Енергія",auto_scale:"Автомаштабування",three_phase:"Три Фази",dynamic_colour:"Динамічний Колір",dynamic_icon:"Динамічний Значок",invert_power:"Інвертувати Потужніть",show_absolute:"Показати Абсолютні Значення",hide_soc:"Сховати SOC",invert_aux:"Інвертувати Доп.Нав.",show_absolute_aux:"Показати Абсолютні Значення",show_nonessential:"Показувати Необов'язкове",aux_name:"Назва Доп. Нав.",aux_daily_name:"Назва Доп. Нав. За Добу",aux_type:"Тип Доп. Нав.",aux_loads:"Навантаження Доп. Нав.",essential_name:"Назва Важливого",additional_loads:"Додаткові Навантаження",export_colour:"Колір Експорта",nonessential_name:"Назва необов'язкового пристрою",nonessential_icon:"Значок необов'язкового пристрою",energy_cost_decimals:"Десяткові Знаки Вартості Енергії",show_remaining_energy:"Показати Залишок Енергії",path_threshold:"Шлях Threshold",label_daily_grid_buy:"Етикетка Купівлі З Мережі За Добу",label_daily_grid_sell:"Етикетка Продажу В Мережу За Добу",invert_flow:"Інвертувати Потік",label_daily_load:"Етикетка Добового Навантаження",cat_title:{title:"Параметри Заголовка",general:"Загальні Параметри",inverter:"Параметри Інвертора",solar:"Параметри Сонячного Поля",battery:"Параметри Батареї",grid:"Параметри Мережі",load:"Параметри Навантаження",entities:"Сутності",aux:"Параметри Доп. Навантаження",energy:"Сутності Енергії",bat:"Сутності Батареї",sol:"Сутності Сонячного поля",inv:"Сутності Інвертора",ld:"Сутності Навантаження",gri:"Сутності Мережі",sensor:"Додаткові Датчики"}},Pt={common:xt,errors:bt,config:At};const Lt={hass:null},Et={da:Object.freeze({__proto__:null,common:we,config:xe,default:be,errors:_e}),de:Object.freeze({__proto__:null,common:Ae,config:Le,default:Ee,errors:Pe}),en:Object.freeze({__proto__:null,common:Ce,config:Me,default:ke,errors:Ne}),es:Object.freeze({__proto__:null,common:Se,config:De,default:Ie,errors:Oe}),et:Object.freeze({__proto__:null,common:Te,config:Ve,default:Ge,errors:Be}),fr:Object.freeze({__proto__:null,common:ze,config:Re,default:He,errors:je}),nl:Object.freeze({__proto__:null,common:Ue,config:Qe,default:Ze,errors:We}),ru:Object.freeze({__proto__:null,common:Fe,config:Xe,default:Je,errors:Ye}),cs:Object.freeze({__proto__:null,common:Ke,config:$e,default:et,errors:qe}),it:Object.freeze({__proto__:null,common:tt,config:at,default:ot,errors:nt}),ca:Object.freeze({__proto__:null,common:it,config:st,default:lt,errors:rt}),sk:Object.freeze({__proto__:null,common:dt,config:ut,default:ht,errors:ct}),pt_BR:Object.freeze({__proto__:null,common:pt,config:yt,default:ft,errors:gt}),sv:Object.freeze({__proto__:null,common:mt,config:wt,default:_t,errors:vt}),uk:Object.freeze({__proto__:null,common:xt,config:At,default:Pt,errors:bt})};function Ct(e,t="",n=""){const a=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_"),o="".concat(Lt.hass?.selectedLanguage||Lt.hass?.locale?.language||Lt.hass?.language||a);let i;try{i=e.split(".").reduce(((e,t)=>e[t]),Et[o])}catch(t){i=e.split(".").reduce(((e,t)=>e[t]),Et.en)}return void 0===i&&(i=e.split(".").reduce(((e,t)=>e[t]),Et.en)),""!==t&&""!==n&&(i=i.replace(t,n)),i}var Nt={cardstyle:"lite",panel_mode:!1,large_font:!1,show_solar:!0,show_battery:!0,show_grid:!0,card_height:"396px",card_width:"100%",decimal_places:2,decimal_places_energy:1,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"grey",autarky:"power",model:fe.Sunsynk,auto_scale:!0,three_phase:!1,navigate:""},battery:{energy:0,shutdown_soc:20,soc_end_of_charge:100,invert_power:!1,hide_soc:!1,colour:"pink",show_daily:!1,show_remaining_energy:!0,animation_speed:6,max_power:4500,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0,animate:!0,path_threshold:100,navigate:"",invert_flow:!1},solar:{colour:"orange",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:Ct("common.pv1_name"),pv2_name:Ct("common.pv2_name"),pv3_name:Ct("common.pv3_name"),pv4_name:Ct("common.pv4_name"),auto_scale:!0,display_mode:1,dynamic_colour:!0,efficiency:3,off_threshold:10,navigate:"",invert_flow:!1},load:{colour:"#5fb6ad",dynamic_colour:!0,dynamic_icon:!0,aux_dynamic_colour:!0,off_threshold:0,show_daily:!1,show_aux:!1,show_daily_aux:!1,invert_aux:!1,invert_load:!1,show_absolute_aux:!1,animation_speed:4,max_power:8e3,aux_name:Ct("common.aux_name"),aux_daily_name:Ct("common.daily_aux"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:Ct("common.essential"),load1_icon:"default",load2_icon:"default",load1_name:"",load2_name:"",load3_name:"",load4_name:"",auto_scale:!0,path_threshold:100,navigate:"",invert_flow:!1,label_daily_load:Ct("common.daily_load")},grid:{colour:"#5490c2",grid_name:Ct("common.grid_name"),label_daily_grid_buy:Ct("common.daily_grid_buy"),label_daily_grid_sell:Ct("common.daily_grid_sell"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:Ct("common.nonessential_name"),additional_loads:0,load1_name:"",load2_name:"",load3_name:"",load1_icon:"default",load2_icon:"default",load3_icon:"default",invert_grid:!1,animation_speed:8,max_power:8e3,auto_scale:!0,energy_cost_decimals:2,show_absolute:!1,off_threshold:0,navigate:"",invert_flow:!1}};const Mt=[0,1,2,3,4],kt=[0,1,2,3],St=[!0,!1],Ot=[!0,!1],Dt=[0,1,2],It=["off","0","off-grid","off grid","offgrid"],Tt=["on","1","on-grid","on grid","ongrid"],Bt="sunsynk-content-card-editor-dev";var Vt,Gt,zt,jt,Rt;!function(e){e.DATE="date",e.ENUM="enum",e.TIMESTAMP="timestamp",e.APPARENT_POWER="apparent_power",e.ATMOSPHERIC_PRESSURE="atmospheric_pressure",e.BATTERY="battery",e.CO="carbon_monoxide",e.CO2="carbon_dioxide",e.CURRENT="current",e.ENERGY="energy",e.ENERGY_STORAGE="energy_storage",e.FREQUENCY="frequency",e.IRRADIANCE="irradiance",e.MONETARY="monetary",e.POWER_FACTOR="power_factor",e.POWER="power",e.REACTIVE_POWER="reactive_power",e.TEMPERATURE="temperature",e.VOLTAGE="voltage"}(Vt||(Vt={})),function(e){e.WATT="W",e.KILO_WATT="kW",e.MEGA_WATT="MW",e.BTU_PER_HOUR="BTU/h"}(Gt||(Gt={})),function(e){e.GIGA_JOULE="GJ",e.KILO_WATT_HOUR="kWh",e.MEGA_JOULE="MJ",e.MEGA_WATT_HOUR="MWh",e.WATT_HOUR="Wh"}(zt||(zt={})),function(e){e.MILLIAMPERE="mA",e.AMPERE="A"}(jt||(jt={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(Rt||(Rt={}));const Ht={[zt.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:zt.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:zt.KILO_WATT_HOUR,decimal:1}],[zt.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:zt.MEGA_WATT_HOUR,decimal:2}],[zt.MEGA_WATT_HOUR]:[],[zt.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:zt.MEGA_JOULE}],[zt.MEGA_JOULE]:[],[Gt.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:Gt.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:Gt.KILO_WATT}],[Gt.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:Gt.MEGA_WATT}],[Gt.MEGA_WATT]:[],[Gt.BTU_PER_HOUR]:[]};var Ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qt,Zt={exports:{}};var Ft,Yt,Xt=(Qt||(Qt=1,function(e,t){var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Function]",r="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[o]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d[i]=d["[object Map]"]=d["[object Number]"]=d[r]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1;var c,u="object"==typeof Ut&&Ut&&Ut.Object===Object&&Ut,h="object"==typeof self&&self&&self.Object===Object&&self,p=u||h||Function("return this")(),g=t&&!t.nodeType&&t,y=g&&e&&!e.nodeType&&e,f=y&&y.exports===g,m=f&&u.process,v=function(){try{var e=y&&y.require&&y.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(e){}}(),w=v&&v.isTypedArray,_=Array.prototype,x=Function.prototype,b=Object.prototype,A=p["__core-js_shared__"],P=x.toString,L=b.hasOwnProperty,E=(c=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",C=b.toString,N=P.call(Object),M=RegExp("^"+P.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=f?p.Buffer:void 0,S=p.Symbol,O=p.Uint8Array;k&&k.allocUnsafe;var D,I,T=(D=Object.getPrototypeOf,I=Object,function(e){return D(I(e))}),B=Object.create,V=b.propertyIsEnumerable,G=_.splice,z=S?S.toStringTag:void 0,j=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),R=k?k.isBuffer:void 0,H=Math.max,U=Date.now,W=ue(p,"Map"),Q=ue(Object,"create"),Z=function(){function e(){}return function(t){if(!Ae(t))return{};if(B)return B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function F(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Y.prototype.set=function(e,t){var n=this.__data__,a=ee(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new F,map:new(W||Y),string:new F}},X.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return ce(this,e).get(e)},X.prototype.has=function(e){return ce(this,e).has(e)},X.prototype.set=function(e,t){var n=ce(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},J.prototype.clear=function(){this.__data__=new Y,this.size=0},J.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var a=n.__data__;if(!W||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new X(a)}return n.set(e,t),this.size=n.size,this};var ne=function(e,t,n){for(var a=-1,o=Object(e),i=n(e),r=i.length;r--;){var s=i[++a];if(!1===t(o[s],s,o))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=L.call(e,z),n=e[z];try{e[z]=void 0;var a=!0}catch(e){}var o=C.call(e);return a&&(t?e[z]=n:delete e[z]),o}(e):function(e){return C.call(e)}(e)}function oe(e){return Pe(e)&&ae(e)==o}function ie(e){return!(!Ae(e)||function(e){return!!E&&E in e}(e))&&(xe(e)?M:s).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function re(e){if(!Ae(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=pe(e),n=[];for(var a in e)("constructor"!=a||!t&&L.call(e,a))&&n.push(a);return n}function se(e,t,n,a,o){e!==t&&ne(t,(function(i,s){if(o||(o=new J),Ae(i))!function(e,t,n,a,o,i,s){var l=ge(e,n),d=ge(t,n),c=s.get(d);if(c)q(e,n,c);else{var u,h=i?i(l,d,n+"",e,t,s):void 0,p=void 0===h;if(p){var g=ve(d),y=!g&&_e(d),f=!g&&!y&&Le(d);h=d,g||y||f?ve(l)?h=l:Pe(u=l)&&we(u)?h=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(de);function fe(e,t){return e===t||e!=e&&t!=t}var me=oe(function(){return arguments}())?oe:function(e){return Pe(e)&&L.call(e,"callee")&&!V.call(e,"callee")},ve=Array.isArray;function we(e){return null!=e&&be(e.length)&&!xe(e)}var _e=R||function(){return!1};function xe(e){if(!Ae(e))return!1;var t=ae(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ae(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Le=w?function(e){return function(t){return e(t)}}(w):function(e){return Pe(e)&&be(e.length)&&!!d[ae(e)]};function Ee(e){return we(e)?K(e):re(e)}var Ce,Ne=(Ce=function(e,t,n){se(e,t,n)},le((function(e,t){var n=-1,a=t.length,o=a>1?t[a-1]:void 0,i=a>2?t[2]:void 0;for(o=Ce.length>3&&"function"==typeof o?(a--,o):void 0,i&&function(e,t,n){if(!Ae(n))return!1;var a=typeof t;return!!("number"==a?we(n)&&he(t,n.length):"string"==a&&t in n)&&fe(n[t],e)}(t[0],t[1],i)&&(o=a<3?void 0:o,a=1),e=Object(e);++n=0&&(a=parseFloat(a.toFixed(t))),n&&(a*=-1),a)}static invertKeyPoints(e){return e.split(";").reverse().join(";")}static convertValue(e,t=2){return t=Number.isNaN(t)?2:t,Math.abs(e)>=1e6?"".concat((e/1e6).toFixed(t)," MW"):Math.abs(e)>=1e3?"".concat((e/1e3).toFixed(t)," kW"):"".concat(Math.round(e)," W")}static convertValueNew(e,t="",n=2){n=isNaN(n)?2:n;const a=Number(e);if(isNaN(a))return 0;const o=Ht[t];if(!o)return"".concat(a.toFixed(n)," ").concat(t);if(t===Gt.WATT&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").concat(t);if(t===Gt.KILO_WATT&&Math.abs(a)<1)return"".concat(Math.round(1e3*a)," W");if(t===Gt.MEGA_WATT&&Math.abs(a)<1)return"".concat((1e3*a).toFixed(n)," kW");for(const e of o)if(Math.abs(a)>=e.threshold){const t=(a/e.divisor).toFixed(e.decimal||n);return"".concat(t," ").concat(e.targetUnit)}return"".concat(a.toFixed(n)," ").concat(t)}static handlePopup(e,t){t&&(e.preventDefault(),this._handleClick(e,{action:"more-info"},t))}static handleNavigation(e,t){t&&(e.preventDefault(),this._handleClick(e,{action:"navigate",navigation_path:t},null))}static _handleClick(e,t,n){if(e&&(n||t.navigation_path))switch(e.stopPropagation(),t.action){case"more-info":this._dispatchMoreInfoEvent(e,n);break;case"navigate":this._handleNavigationEvent(e,t.navigation_path);break;default:console.warn("Action '".concat(t.action,"' is not supported."))}}static _dispatchMoreInfoEvent(e,t){if(qt.isPopupOpen)return;qt.isPopupOpen=!0;const n=new CustomEvent("hass-more-info",{composed:!0,detail:{entityId:t}});history.pushState({popupOpen:!0},"",window.location.href),e.target.dispatchEvent(n);const a=()=>{qt.isPopupOpen&&(qt.isPopupOpen=!1,window.removeEventListener("popstate",a),history.back())};window.addEventListener("popstate",a,{once:!0})}static _handleNavigationEvent(e,t){t?function(e,t,n){void 0===n&&(n=!1),n?history.replaceState(null,"",t):history.pushState(null,"",t),Kt(window,"location-changed",{replace:n})}(e.target,t):console.warn("Navigation path is not provided.")}}qt.isPopupOpen=!1;const $t="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",en="M15 9h1V7.5h4V9h1c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-6c-.55 0-1-.45-1-1V10c0-.55.45-1 1-1m1 2v3h4v-3h-4m-4-5.31l-5 4.5V18h5v2H5v-8H2l10-9l2.78 2.5H14v1.67l-.24.1L12 5.69Z",tn="M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",nn="M11.6 3.45zM18.25 19.6v-7.6h2.85L11.6 3.45 2.1 12h2.85v7.6zM11.6 6.015l4.75 4.275V17.7H6.85v-7.41zM6.58 2.8v1.42L8 3.508zm-.4 2.4L5.2 6.184l1.5.5zM2.8 6.58 3.508 8l.712-1.42zM6 2.8H2.8v3.2c.228.068.468.1.708.1 1.432.004 2.596-1.16 2.6-2.6-.004-.236-.04-.472-.108-.7M12.5 3.844l2.25 2.026.5-.5-2.24-2.04zM17.71 8.53 18.2 8.04 15.76 5.84 15.26 6.34ZM20.52 11.09l.48-.49-2.31-2.14-.5.5z M18.1299 5.1169 17.318 4.6482l2.4492-1.6171-.75 1.299.8119.4687-2.4492 1.6171z",an="M9.3 10.775q0 .475.163.925t.462.825q.05-.3.2-.588t.375-.487L12 10l1.475 1.475q.225.2.375.475t.2.575q.275-.375.487-.8t.213-.9q0-.475-.15-.913t-.45-.812q-.275.125-.563.2T13 9.375q-.75 0-1.375-.425t-.95-1.125q-.3.3-.55.637t-.438.713Q9.5 9.55 9.4 9.95t-.1.825ZM12 12.1l-.425.425q-.1.1-.138.2t-.037.225q0 .25.175.4t.425.15q.25 0 .425-.15t.175-.4q0-.125-.037-.225t-.138-.2L12 12.1ZM12 5v1.9q0 .425.3.713t.725.287q.275 0 .5-.162t.4-.388l.175-.25q1.025.575 1.588 1.563t.562 2.162q0 1.75-1.25 2.963T12 15q-1.75 0-2.975-1.225T7.8 10.8q0-1.925 1.225-3.425T12 5ZM6 22q-.825 0-1.413-.588T4 20V6q0-1.65 1.175-2.825T8 2h8q1.65 0 2.825 1.175T20 6v14q0 .825-.588 1.413T18 22H6Zm0-4v2h12v-2q-.75 0-1.2.5T15 19q-1.35 0-1.763-.5T12 18q-.825 0-1.238.5T9 19q-1.35 0-1.763-.5T6 18Zm3-1q.825 0 1.238-.5T12 16q1.35 0 1.8.5t1.2.5q.75 0 1.2-.5T18 16V6q0-.825-.588-1.413T16 4H8q-.825 0-1.413.588T6 6v10q1.35 0 1.763.5T9 17Z",on="M3 7.5A4.5 4.5 0 0 1 7.5 3h17A4.5 4.5 0 0 1 29 7.5v17a4.5 4.5 0 0 1-4.5 4.5h-17A4.5 4.5 0 0 1 3 24.5v-17Zm24 0A2.5 2.5 0 0 0 24.5 5h-17A2.5 2.5 0 0 0 5 7.5V11h22V7.5Zm0 17V13H5v11.5A2.5 2.5 0 0 0 7.5 27h17a2.5 2.5 0 0 0 2.5-2.5Zm-17-15a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Zm6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3ZM23.5 8a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0ZM9 23v-6h14v6H9Zm-.5-8A1.5 1.5 0 0 0 7 16.5v7A1.5 1.5 0 0 0 8.5 25h15a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5h-15Z",rn="M6.59.66c2.34-1.81 4.88.4 5.45 3.84c.43 0 .85.12 1.23.34c.52-.6.98-1.42.8-2.34c-.42-2.15 1.99-3.89 4.28-.92c1.81 2.34-.4 4.88-3.85 5.45c0 .43-.11.86-.34 1.24c.6.51 1.42.97 2.34.79c2.13-.42 3.88 1.98.91 4.28c-2.34 1.81-4.88-.4-5.45-3.84c-.43 0-.85-.13-1.22-.35c-.52.6-.99 1.43-.81 2.35c.42 2.14-1.99 3.89-4.28.92c-1.82-2.35.4-4.89 3.85-5.45c0-.43.13-.85.35-1.23c-.6-.51-1.42-.98-2.35-.8c-2.13.42-3.88-1.98-.91-4.28M5 16h2a2 2 0 0 1 2 2v6H7v-2H5v2H3v-6a2 2 0 0 1 2-2m0 2v2h2v-2H5m7.93-2H15l-2.93 8H10l2.93-8M18 16h3v2h-3v4h3v2h-3a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z",sn="M3 17h4.1q-.425-.425-.787-.925T5.675 15H3v2Zm9 0q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7Q9.925 7 8.462 8.463T7 12q0 2.075 1.463 3.538T12 17Zm6.325-8H21V7h-4.1q.425.425.788.925T18.325 9ZM1 20v-8h2v1h2.075q-.05-.25-.063-.488T5 12q0-2.925 2.038-4.963T12 5h9V4h2v8h-2v-1h-2.075q.05.25.063.488T19 12q0 2.925-2.038 4.963T12 19H3v1H1Zm2-3v-2v2Zm18-8V7v2Zm-9 3Zm0 3q-.825 0-1.413-.588T10 13q0-.575.238-1.137t.912-1.613L12 9l.85 1.25q.675 1.05.913 1.613T14 13q0 .825-.588 1.413T12 15Z",ln="M35 887 l-27 -23 0 -404 0 -404 27 -23 c26 -23 28 -23 329 -23 284 0 305 1 327 19 l24 19 0 412 0 412 -24 19 c-22 18 -43 19 -327 19 -301 0 -303 0 -329 -23z m585 -157 l0 -80 -255 0 -255 0 0 80 0 80 255 0 255 0 0 -80z m-242 -229 c44 -34 40 -46 -14 -46 -60 0 -97 -38 -93 -94 5 -64 -23 -80 -35 -20 -9 44 24 113 63 134 35 18 34 15 21 50 -11 29 -14 30 58 -24z m110 -129 c4 -51 -19 -97 -59 -117 -27 -14 -30 -20 -23 -48 l6 -31 -51 43 c-29 24 -49 46 -46 49 3 4 23 5 44 3 58 -4 95 32 97 95 3 60 1 57 17 52 6 -3 13 -23 15 -46z",dn="M6 3a2 2 0 0 0-2 2v11h2v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h2V5a2 2 0 0 0-2-2H6m6 4V5h6v2h-6m0 2h6v2h-6V9M8 5v4h2l-3 6v-4H5l3-6m14 15v2H2v-2h20Z",cn="M5 20v-8H2l10-9l10 9h-3v8H5m7-14.31l-5 4.5V18h10v-7.81l-5-4.5M11.5 18v-4H9l3.5-7v4H15l-3.5 7Z",un="M 12 3 z z M 19 20 v -8 h 3 L 12 3 L 2 12 h 3 v 8 z M 12 5.7 l 5 4.5 V 18 H 7 v -7.8 z",hn="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0 0 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a8.994 8.994 0 0 0 7.03-14.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7s7 3.13 7 7s-3.13 7-7 7z",pn="m19.95 17.15l-1.5-1.5q.275-.675.413-1.337T19 13q0-2.9-2.05-4.95T12 6q-.6 0-1.275.125t-1.4.4l-1.5-1.5q.95-.5 2.012-.763T12 4q1.5 0 2.938.5t2.712 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.95 1.275 1.45 2.713T21 13q0 1.05-.263 2.087t-.787 2.063ZM13 10.2V8h-2v.2l2 2Zm6.8 12.4l-2.4-2.4q-1.2.875-2.588 1.338T12 22q-1.85 0-3.488-.713T5.65 19.35q-1.225-1.225-1.938-2.863T3 13q0-1.5.463-2.888T4.8 7.6L1.4 4.2l1.4-1.4l18.4 18.4l-1.4 1.4ZM12 20q1.05 0 2.05-.325t1.875-.925L6.2 9.025q-.6.875-.9 1.875T5 13q0 2.9 2.05 4.95T12 20ZM9 3V1h6v2H9Zm2.075 10.875Zm2.825-2.8Z",gn="m5.18 5.45l-1.78-.9L4.66 2h8.47l1.27 2.55l-1.78.89L11.9 4h-6l-.72 1.45M15.5 8H11l-.8-3H7.6l-.79 3H2.28L1 10.55l1.79.89L3.5 10h10.78l.72 1.45l1.79-.89L15.5 8m-.83 14H12.6l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H3.13L6 11h2.09l-.36 1.35L8.9 14.1l1.16-1.75L9.71 11h2.07l2.89 11M8.3 15l-.9-1.35l-1.18 4.48L8.3 15m3.28 3.12l-1.18-4.48L9.5 15l2.08 3.12M23 16l-4-4v3h-4v2h4v3l4-4Z",yn="M 26 16 L 22 12 L 22 15 L 18 15 L 18 17 L 22 17 L 22 20 L 26 16 Z M 22.1 21.5 L 2.4 1.7 L 1.1 3 L 6.1 8 L 5.4 8 L 4.1 10.5 L 5.9 11.4 L 6.6 10 L 8.1 10 L 9.1 11 L 6.2 22 L 8.3 22 L 8.5 21.1 L 12 15.9 L 15.5 21.1 L 15.7 22 L 17.8 22 L 17 18.8 L 20.9 22.7 L 22.1 21.5 M 9.3 18.1 L 10.5 13.6 L 11.4 14.9 L 9.3 18.1 M 14.7 18.1 L 12.6 15 L 12.8 14.7 L 14.1 16 L 14.7 18.1 M 14.2 11 L 14.9 11 L 15.1 11.9 L 14.2 11 M 14.1 8 L 18.6 8 L 19.9 10.6 L 18.1 11.5 L 17.4 10 L 13.2 10 L 10.2 7 L 10.7 5 L 13.3 5 L 14.1 8 M 8.4 5.2 L 6.9 3.7 L 7.8 2 L 16.3 2 L 17.6 4.5 L 15.8 5.4 L 15 4 L 9 4 L 8.4 5.2 Z",fn="M15.95 21.175L13.1 18.35l1.425-1.4l1.425 1.4l3.525-3.525l1.425 1.4l-4.95 4.95ZM8 22q-.425 0-.713-.288T7 21V5q0-.425.288-.713T8 4h2V2h4v2h2q.425 0 .713.288T17 5v7q-.525 0-1.025.088T15 12.35V6H9v14h2.35q.2.575.488 1.075t.687.925H8Zm1-2h2.35H11h.35H9Z",mn="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",vn="M11.5 19h1v-1.85l3.5-3.5V9H8v4.65l3.5 3.5V19Zm-2 2v-3L6 14.5V9q0-.825.588-1.413T8 7h1L8 8V3h2v4h4V3h2v5l-1-1h1q.825 0 1.413.588T18 9v5.5L14.5 18v3h-5Zm2.5-7Z",wn="M10 3H8v1.88l2 2zm6 6v3.88l1.8 1.8l.2-.2V9c0-1.1-.9-2-2-2V3h-2v4h-3.88l2 2H16zM4.12 3.84L2.71 5.25L6 8.54v5.96L9.5 18v3h5v-3l.48-.48l4.47 4.47l1.41-1.41L4.12 3.84zm8.38 13.33V19h-1v-1.83L8 13.65v-3.11l5.57 5.57l-1.07 1.06z",_n="m5.39 5.45-1.78-.9L4.87 2h8.47l1.27 2.55-1.78.89L12.11 4h-6zM15.73 8H11.2l-.79-3h-2.6L7 8H2.5l-1.29 2.55 1.79.89.73-1.44H14.5l.71 1.45 1.79-.89zm-.85 14h-2.07l-.24-.9-3.46-5.2-3.47 5.2-.23.9H3.34l2.89-11h2.07l-.36 1.35 1.17 1.75 1.16-1.75-.35-1.35H12zm-6.38-7-.89-1.35-1.18 4.48zm3.29 3.12-1.18-4.48-.9 1.36zM15 16l4-4v3H23v2h-4v3z",xn="m11.39 5.45l-1.78-.9L10.87 2h8.47l1.27 2.55l-1.78.89L18.11 4h-6zM21.73 8H17.2l-.79-3h-2.6L13 8H8.5l-1.29 2.55l1.79.89l.73-1.44H20.5l.71 1.45l1.79-.89zm-.85 14h-2.07l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H9.34l2.89-11h2.07l-.36 1.35l1.17 1.75l1.16-1.75l-.35-1.35H18zm-6.38-7l-.89-1.35l-1.18 4.48zm3.29 3.12l-1.18-4.48l-.9 1.36zM9 16l-4-4v3H1v2h4v3z",bn="M22.1 21.5L2.4 1.7L1.1 3l5 5h-.7l-1.3 2.5l1.8.9l.7-1.4h1.5l1 1l-2.9 11h2.1l.2-.9l3.5-5.2l3.5 5.2l.2.9h2.1l-.8-3.2l3.9 3.9l1.2-1.2M9.3 18.1l1.2-4.5l.9 1.3l-2.1 3.2m5.4 0L12.6 15l.2-.3l1.3 1.3l.6 2.1m-.5-7.1h.7l.2.9l-.9-.9m-.1-3h4.5l1.3 2.6l-1.8.9l-.7-1.5h-4.2l-3-3l.5-2h2.6l.8 3M8.4 5.2L6.9 3.7L7.8 2h8.5l1.3 2.5l-1.8.9L15 4H9l-.6 1.2Z",An="m8.28 5.45l-1.78-.9L7.76 2h8.47l1.27 2.55l-1.78.89L15 4H9l-.72 1.45M18.62 8h-4.53l-.79-3h-2.6l-.79 3H5.38L4.1 10.55l1.79.89l.73-1.44h10.76l.72 1.45l1.79-.89L18.62 8m-.85 14H15.7l-.24-.9L12 15.9l-3.47 5.2l-.23.9H6.23l2.89-11h2.07l-.36 1.35L12 14.1l1.16-1.75l-.35-1.35h2.07l2.89 11m-6.37-7l-.9-1.35l-1.18 4.48L11.4 15m3.28 3.12l-1.18-4.48l-.9 1.36l2.08 3.12Z",Pn="M11.45 2v3.55L15 3.77L11.45 2m-1 6L8 10.46l3.75 1.25L10.45 8M2 11.45L3.77 15l1.78-3.55H2M10 2H2v8c.57.17 1.17.25 1.77.25c3.58.01 6.49-2.9 6.5-6.5c-.01-.59-.1-1.18-.27-1.75m7 20v-6h-3l5-9v6h3l-5 9Z";var Ln,En,Cn,Nn,Mn,kn,Sn,On,Dn,In,Tn,Bn,Vn,Gn,zn,jn,Rn,Hn,Un,Wn,Qn,Zn,Fn,Yn,Xn,Jn,Kn,qn,$n;var ea,ta,na,aa,oa,ia,ra,sa,la,da,ca,ua,ha,pa,ga,ya,fa,ma,va,wa,_a,xa,ba,Aa,Pa;class La{constructor(){}getBatteryCapacity(e,t,n,a,o,i,r){let s=0;return(!0===r?e<0:e>0)?s="off"===t||"0"===t||"off-grid"===t.toLowerCase()||!a.show||parseInt(o.state)<=a.capacity?n:a.capacity:(!0===r?e>0:e<0)&&("off"===t||"0"===t||"off-grid"===t.toLowerCase()||!a.show||parseInt(o.state)>=a.capacity?s=i:parseInt(o.state)=95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",o="green";break;case 85<=parseInt(e.state)&&parseInt(e.state)<95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",o="green";break;case 75<=parseInt(e.state)&&parseInt(e.state)<85:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zH5z",o="#9ACD32";break;case 65<=parseInt(e.state)&&parseInt(e.state)<75:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 11z",o="gold";break;case 55<=parseInt(e.state)&&parseInt(e.state)<65:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",o="gold";break;case 45<=parseInt(e.state)&&parseInt(e.state)<55:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zH5z",o="gold";break;case 35<=parseInt(e.state)&&parseInt(e.state)<45:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",o="orange";break;case 25<=parseInt(e.state)&&parseInt(e.state)<35:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",o="orange";break;case 10<=parseInt(e.state)&&parseInt(e.state)<25:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",o="orange";break;case 0<=parseInt(e.state)&&parseInt(e.state)<10:default:n=t,a=t,o="red"}return{batteryIcon:n,batteryCharge:a,stopColour:o,battery0:t}}}function Ja(e){return{...e,toNum:(t,n)=>qt.toNum(e?.state,t,n),isValid:()=>null!==e?.state&&void 0!==e.state&&"unknown"!==e.state||!1,notEmpty:()=>""!==e?.state&&null!==e?.state&&"unknown"!==e?.state&&void 0!==e.state||!1,isNaN:()=>null===e?.state||Number.isNaN(e?.state),toPower:t=>{const n=(e.attributes?.unit_of_measurement||"").toLowerCase();return"kw"===n||"kwh"===n?qt.toNum(1e3*(e?.state||"0"),0,t):"mw"===n||"mwh"===n?qt.toNum(1e6*(e?.state||"0"),0,t):qt.toNum(e?.state||"0",0,t)||0},toPowerString:(t,n,a)=>t?qt.convertValueNew(e?.state,e?.attributes?.unit_of_measurement,n||0):"".concat(qt.toNum(e?.state,0,a)," ").concat(e?.attributes?.unit_of_measurement||""),toString:()=>e?.state?.toString()||"",getUOM:()=>e?.attributes?.unit_of_measurement||""}}console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(Ct("common.version"),": ").concat("5.3.2"," "),"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),console.log("Readme:","https://github.com/slipx06/sunsynk-power-flow-card"),console.groupEnd();let Ka=class extends re{constructor(){super(...arguments),this.durationPrev={},this.durationCur={}}static get styles(){return ye}static async getConfigElement(){return await Promise.resolve().then((function(){return ro})),document.createElement(Bt)}static getStubConfig(){return{cardstyle:me.Lite,show_solar:!0,battery:{energy:0,shutdown_soc:20,show_daily:!0},solar:{show_daily:!0,mppts:2},load:{show_daily:!0},grid:{show_daily_buy:!0,show_daily_sell:!1,show_nonessential:!0},entities:{use_timer_248:"switch.sunsynk_toggle_system_timer",priority_load_243:"switch.sunsynk_toggle_priority_load",inverter_voltage_154:"sensor.sunsynk_inverter_voltage",load_frequency_192:"sensor.sunsynk_load_frequency",inverter_current_164:"sensor.sunsynk_inverter_current",inverter_power_175:"sensor.sunsynk_inverter_power",grid_connected_status_194:"binary_sensor.sunsynk_grid_connected_status",inverter_status_59:"sensor.sunsynk_overall_state",day_battery_charge_70:"sensor.sunsynk_day_battery_charge",day_battery_discharge_71:"sensor.sunsynk_day_battery_discharge",battery_voltage_183:"sensor.sunsynk_battery_voltage",battery_soc_184:"sensor.sunsynk_battery_soc",battery_power_190:"sensor.sunsynk_battery_power",battery_current_191:"sensor.sunsynk_battery_current",grid_power_169:"sensor.sunsynk_grid_power",day_grid_import_76:"sensor.sunsynk_day_grid_import",day_grid_export_77:"sensor.sunsynk_day_grid_export",grid_ct_power_172:"sensor.sunsynk_grid_ct_power",day_load_energy_84:"sensor.sunsynk_day_load_energy",essential_power:"none",nonessential_power:"none",aux_power_166:"sensor.sunsynk_aux_power",day_pv_energy_108:"sensor.sunsynk_day_pv_energy",pv1_power_186:"sensor.sunsynk_pv1_power",pv2_power_187:"sensor.sunsynk_pv2_power",pv1_voltage_109:"sensor.sunsynk_pv1_voltage",pv1_current_110:"sensor.sunsynk_pv1_current",pv2_voltage_111:"sensor.sunsynk_pv2_voltage",pv2_current_112:"sensor.sunsynk_pv2_current"}}}render(){Lt.hass=this.hass;const e=this._config,t=this.getEntity("entities.day_battery_discharge_71"),n=this.getEntity("entities.day_battery_charge_70"),a=this.getEntity("entities.day_load_energy_84"),o=this.getEntity("entities.day_grid_import_76"),i=this.getEntity("entities.day_pv_energy_108"),r=this.getEntity("entities.day_grid_export_77"),s=this.getEntity("entities.day_aux_energy"),l=this.getEntity("entities.inverter_voltage_154"),d=this.getEntity("entities.load_frequency_192"),c=this.getEntity("entities.inverter_current_164"),u=this.getEntity("entities.inverter_status_59",{state:""}),h=this.getEntity("entities.inverter_power_175"),p=this.getEntity("entities.priority_load_243",{state:e.entities.priority_load_243?.toString()??"false"}),g=this.getEntity("entities.use_timer_248",{state:e.entities.use_timer_248?.toString()??"false"}),y=this.getEntity("entities.dc_transformer_temp_90",{state:""}),f=this.getEntity("entities.radiator_temp_91",{state:""}),m=this.getEntity("entities.inverter_voltage_L2",{state:""}),v=this.getEntity("entities.inverter_voltage_L3",{state:""}),w=this.getEntity("entities.inverter_current_L2",{state:""}),_=this.getEntity("entities.inverter_current_L3",{state:""}),x=this.getEntity("entities.environment_temp",{state:""}),b=this.getEntity("entities.battery_voltage_183"),A=this.getEntity("entities.battery_soc_184"),P=this.getEntity("entities.battery_power_190"),L=this.getEntity("entities.battery_current_191"),E=this.getEntity("entities.battery_temp_182",{state:""}),C=this.getEntity("entities.battery_status",{state:""}),N=this.getEntity("entities.battery_current_direction",{state:""}),M=this.getEntity("entities.battery_rated_capacity",{state:""}),k=this.getEntity("battery.shutdown_soc",{state:e.battery.shutdown_soc?.toString()??""}),S=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),O=this.getEntity("entities.battery_soh",{state:""}),D=this.getEntity("battery.soc_end_of_charge",{state:e.battery.soc_end_of_charge?.toString()??""}),I=this.getEntity("entities.essential_power"),T=this.getEntity("entities.aux_power_166"),B=this.getEntity("entities.nonessential_power"),V=this.getEntity("entities.non_essential_load1"),G=this.getEntity("entities.non_essential_load2"),z=this.getEntity("entities.non_essential_load3"),j=this.getEntity("entities.non_essential_load1_extra"),R=this.getEntity("entities.non_essential_load2_extra"),W=this.getEntity("entities.essential_load1"),Q=this.getEntity("entities.essential_load2"),Z=this.getEntity("entities.essential_load3"),F=this.getEntity("entities.essential_load4"),Y=this.getEntity("entities.aux_connected_status",{state:"on"}),X=this.getEntity("entities.aux_load1"),J=this.getEntity("entities.aux_load2"),K=this.getEntity("entities.essential_load1_extra"),q=this.getEntity("entities.essential_load2_extra"),$=this.getEntity("entities.essential_load3_extra"),ee=this.getEntity("entities.essential_load4_extra"),te=this.getEntity("entities.load_power_L1"),ne=this.getEntity("entities.load_power_L2"),ae=this.getEntity("entities.load_power_L3"),oe=this.getEntity("entities.aux_load1_extra"),ie=this.getEntity("entities.aux_load2_extra"),re=this.getEntity("entities.grid_ct_power_172"),se=this.getEntity("entities.grid_ct_power_L2"),le=this.getEntity("entities.grid_ct_power_L3"),de=this.getEntity("entities.grid_ct_power_total"),ce=this.getEntity("entities.grid_connected_status_194",{state:"on"}),ue=this.getEntity("entities.grid_power_169"),he=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),ge=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),ye=this.getEntity("entities.grid_voltage",null),me=this.getEntity("entities.prepaid_units"),we=this.getEntity("entities.max_sell_power"),_e=this.getEntity("entities.pv1_voltage_109"),xe=this.getEntity("entities.pv1_current_110"),be=this.getEntity("entities.pv2_voltage_111"),Ae=this.getEntity("entities.pv2_current_112"),Pe=this.getEntity("entities.pv3_voltage_113"),Le=this.getEntity("entities.pv3_current_114"),Ee=this.getEntity("entities.pv4_voltage_115"),Ce=this.getEntity("entities.pv4_current_116"),Ne=this.getEntity("entities.pv1_power_186"),Me=this.getEntity("entities.pv2_power_187"),ke=this.getEntity("entities.pv3_power_188"),Se=this.getEntity("entities.pv4_power_189"),Oe=this.getEntity("entities.remaining_solar"),De=this.getEntity("entities.solar_sell_247",{state:"undefined"}),Ie=this.getEntity("entities.pv_total"),Te=this.getEntity("entities.total_pv_generation"),{invert_aux:Be}=e.load,Ve=T.toPower(Be),{invert_grid:Ge}=e.grid,ze=re.toPower(Ge),je=se.toPower(Ge),Re=le.toPower(Ge),He=e.entities?.grid_ct_power_total?de.toPower(Ge):ze+je+Re,Ue=e.inverter.three_phase?He:ze,We=ye.isNaN()?null:ye.toNum(0),Qe=N.isNaN()?null:N.toNum(0),Ze=e.inverter?.modern,Fe=e.decimal_places,Ye=e.decimal_places_energy,Xe=this.colourConvert(e.load?.colour),Je=this.calculateAuxLoadColour(T.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe,Ke=this.colourConvert(e.load?.aux_off_colour||Je),qe=this.calculateAuxLoadColour(X.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe,$e=this.calculateAuxLoadColour(J.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe,et=this.calculateEssentialLoadColour(W.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe,tt=this.calculateEssentialLoadColour(Q.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe,nt=this.calculateEssentialLoadColour(Z.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe,at=this.calculateEssentialLoadColour(F.toPower(!1),qt.toNum(e.load?.off_threshold,0))||Xe;e.title_colour=this.colourConvert(e.title_colour);const ot=e.load?.show_daily,it=e.grid?.show_nonessential;let rt=e.entities?.grid_connected_status_194?ce.state:"on";Tt.includes(rt.toLowerCase())||It.includes(rt.toLowerCase())||(rt="on");const st=e.entities?.aux_connected_status?Y.state:"on",lt=e.entities?.load_frequency_192?d.toNum(2):0,dt=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?l.toNum(0):l.toNum(1):0,ct=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?m.toNum(0):m.toNum(1):"",ut=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",ht=e.entities?.inverter_current_164?c.toNum(1):0,pt=e.entities?.inverter_current_L2?w.toNum(1):"",gt=e.entities?.inverter_current_L3?_.toNum(1):"",yt=e.entities?.battery_voltage_183?b.toNum(1):0,ft=e.entities?.inverter_power_175?h.toPower():0,mt=e.entities?.grid_power_169?ue.toPower():0,{invert_load:vt}=e.load,wt=e.entities?.load_power_L1?te.toPower(vt):"",_t=e.entities?.load_power_L2?ne.toPower(vt):"",xt=e.entities?.load_power_L3?ae.toPower(vt):"",bt=this.colourConvert(e.grid?.colour),At=this.colourConvert(e.grid?.export_colour||bt),Pt=this.colourConvert(e.grid?.no_grid_colour||bt);let Et;switch(!0){case Ue<0:Et=At;break;case Ue>=0&&Ue<=qt.toNum(e.grid?.off_threshold,0):Et=Pt;break;default:Et=bt}const Nt=Math.abs(V.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Et:"grey",Bt=Math.abs(G.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Et:"grey",Vt=Math.abs(z.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Et:"grey",Ht=this.colourConvert(e.grid?.grid_off_colour||Et);let Ut=e.grid?.additional_loads;kt.includes(Ut)||(Ut=0),e.solar;const Wt=e.grid?.show_daily_buy,Qt=e.grid?.show_daily_sell,Zt=this.colourConvert(e.battery?.colour),Ft=this.colourConvert(e.battery?.charge_colour||Zt),Yt=e.battery?.show_daily,Xt=e.solar?.show_daily;let Jt=e.load?.show_aux;Ot.includes(Jt)||(Jt=!1);const Kt=e.load?.show_daily_aux;let La=e.load?.additional_loads;(!Mt.includes(La)||this.isFullCard&&[3,4].includes(La)&&Jt||this.isFullCard&&[3].includes(La))&&(La=0);let Ea=e.load?.aux_loads;Dt.includes(Ea)||(Ea=0);const Ca=e.load?.aux_type,Na=this.getEntity("load.load1_icon",{state:e.load?.load1_icon?.toString()??""}).state,Ma=this.getEntity("load.load2_icon",{state:e.load?.load2_icon?.toString()??""}).state,ka=this.getEntity("load.load3_icon",{state:e.load?.load3_icon?.toString()??""}).state,Sa=this.getEntity("load.load4_icon",{state:e.load?.load4_icon?.toString()??""}).state,Oa=this.getEntity("load.aux_load1_icon",{state:e.load?.aux_load1_icon?.toString()??""}).state,Da=this.getEntity("load.aux_load2_icon",{state:e.load?.aux_load2_icon?.toString()??""}).state,Ia=this.getEntity("grid.nonessential_icon",{state:e.grid?.nonessential_icon?.toString()??""}).state,Ta=this.getEntity("grid.load1_icon",{state:e.grid?.load1_icon?.toString()??""}).state,Ba=this.getEntity("grid.load2_icon",{state:e.grid?.load2_icon?.toString()??""}).state,Va=this.getEntity("grid.load3_icon",{state:e.grid?.load3_icon?.toString()??""}).state,Ga=this.getEntity("grid.import_icon",{state:e.grid?.import_icon?.toString()??""}).state,za=this.getEntity("grid.disconnected_icon",{state:e.grid?.disconnected_icon?.toString()??""}).state,ja=this.getEntity("grid.export_icon",{state:e.grid?.export_icon?.toString()??""}).state,Ra=!!e.entities.remaining_solar&&qt.convertValueNew(Oe.state,Oe.attributes?.unit_of_measurement,Fe),Ha=!!e.entities.total_pv_generation&&qt.convertValueNew(Te.state,Te.attributes?.unit_of_measurement,2),Ua=e.large_font,Wa=e.panel_mode,Qa=this.colourConvert(e.inverter?.colour),Za=e.inverter?.autarky,Fa=!!e.entities.use_timer_248&&g.state,Ja=!!e.entities.priority_load_243&&p.state;let Ka=P.toPower(e.battery?.invert_power);const qa=this.getEntity("card_height",{state:e.card_height?.toString()??""}).state,$a=this.getEntity("card_width",{state:e.card_width?.toString()??""}).state,eo=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,to=Ue>=0?he.toNum(eo):ge.toNum(eo);let no=fe.Sunsynk;Object.values(fe).includes(e.inverter.model)&&(no=e.inverter.model);let ao="";const oo=Ya.getInstance(no);Ze||(ao=oo.image);let io=!1;this.isCompactCard&&(io=!0);const ro=Ne.toPower(),so=Me.toPower(),lo=ke.toPower(),co=Se.toPower(),uo=ro+so+lo+co,ho=e.entities?.pv_total?Ie.toNum():uo,po=e.solar.dynamic_colour?qt.toNum(ho,0)>qt.toNum(e.solar?.off_threshold,0)?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour);let go,yo,fo=e.inverter?.three_phase;St.includes(fo)||(fo=!1);const{essential_power:mo,nonessential_power:vo}=e.entities;yo=!1===fo?"none"!==vo&&vo?B.toPower():ze-mt:"none"!==vo&&vo?B.toPower():ze+je+Re-mt,go="none"!==mo&&mo?I.toPower(vt):!0===fo&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(wt)+Number(_t)+Number(xt):ft+mt-Ve;const wo={time:this.getEntity("entities.prog1_time",{state:e.entities.prog1_time??""}),capacity:this.getEntity("entities.prog1_capacity",{state:e.entities.prog1_capacity??""}),charge:this.getEntity("entities.prog1_charge",{state:e.entities.prog1_charge??""})},_o={time:this.getEntity("entities.prog2_time",{state:e.entities.prog2_time??""}),capacity:this.getEntity("entities.prog2_capacity",{state:e.entities.prog2_capacity??""}),charge:this.getEntity("entities.prog2_charge",{state:e.entities.prog2_charge??""})},xo={time:this.getEntity("entities.prog3_time",{state:e.entities.prog3_time??""}),capacity:this.getEntity("entities.prog3_capacity",{state:e.entities.prog3_capacity??""}),charge:this.getEntity("entities.prog3_charge",{state:e.entities.prog3_charge??""})},bo={time:this.getEntity("entities.prog4_time",{state:e.entities.prog4_time??""}),capacity:this.getEntity("entities.prog4_capacity",{state:e.entities.prog4_capacity??""}),charge:this.getEntity("entities.prog4_charge",{state:e.entities.prog4_charge??""})},Ao={time:this.getEntity("entities.prog5_time",{state:e.entities.prog5_time??""}),capacity:this.getEntity("entities.prog5_capacity",{state:e.entities.prog5_capacity??""}),charge:this.getEntity("entities.prog5_charge",{state:e.entities.prog5_charge??""})},Po={time:this.getEntity("entities.prog6_time",{state:e.entities.prog6_time??""}),capacity:this.getEntity("entities.prog6_capacity",{state:e.entities.prog6_capacity??""}),charge:this.getEntity("entities.prog6_charge",{state:e.entities.prog6_charge??""})},Lo=S.toNum(),Eo=k.toNum(),Co={capacity:Eo,entityID:""};switch(!0){case"off"===g.state:case!Fa:case!e.entities.prog1_time:case!e.entities.prog2_time:case!e.entities.prog3_time:case!e.entities.prog4_time:case!e.entities.prog5_time:case!e.entities.prog6_time:Co.show=!1;break;default:{Co.show=!0;function Ji(t){const n=[];[wo,_o,xo,bo,Ao,Po].forEach(((e,a)=>{if(!e||!e.time||!e.time.state)return void console.error("Program ".concat(a+1," is not defined or has no valid time."));const[o,i]=e.time.state.split(":").map((e=>parseInt(e,10))),r=new Date(t.getTime());r.setHours(o),r.setMinutes(i);const s=(a+1)%6,l=[wo,_o,xo,bo,Ao,Po][s],d=(l&&l.time&&l.time.state,new Date(t.getTime()));if(l&&l.time&&l.time.state){const[e,t]=l.time.state.split(":").map((e=>parseInt(e,10)));d.setHours(e),d.setMinutes(t)}else console.warn("Next program ".concat(s+1," is not defined or has no valid time."));n[a]={start:r,end:d}})),Ki(n,t);for(let a=0;ai&&(t>=o||t{e.start.getTime()50?"on":"off"),null!=Qe&&no==fe.Solis&&0===Qe&&(Ka=-Ka);let No=D.toNum();No=Math.max(50,Math.min(No,100));let Mo=0;if(e.show_battery)if(!0==!Co.show)(!0===e.battery.invert_flow?Ka<0:Ka>0)?Mo="on"!==rt&&"1"!==rt&&"on-grid"!==rt.toLowerCase()||Co.show?"off"!==rt&&"0"!==rt&&"off-grid"!==rt.toLowerCase()||!S.notEmpty()||Co.show?Eo:Lo:Eo:(!0===e.battery.invert_flow?Ka>0:Ka<0)&&(Mo=No);else Mo=oo.getBatteryCapacity(Ka,rt,Eo,Co,A,No,e.battery.invert_flow);let ko=0,So="",Oo="";let Do=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}).toPower(!1);if(yt&&M.notEmpty()&&(Do=qt.toNum(yt*M.toNum(0),0)),e.show_battery||0!==Do){0===Ka?ko=(A.toNum()-Eo)/100*Do*60*60:(!0===e.battery.invert_flow?Ka<0:Ka>0)?ko=(A.toNum()-Mo)/100*Do/Math.abs(Ka)*60*60:(!0===e.battery.invert_flow?Ka>0:Ka<0)&&(ko=(Mo-A.toNum(0))/100*Do/Math.abs(Ka)*60*60);const $i=new Date,er=1e3*ko,tr=new Date($i.getTime()+er),nr=tr.getHours(),ar=tr.getMinutes().toString().padStart(2,"0"),or=nr.toString().padStart(2,"0");So="".concat(or,":").concat(ar);const ir=Math.floor(ko/86400),rr=Math.floor(ko%86400/3600),sr=Math.floor(ko%3600/60);ir>0&&(Oo+="".concat(ir," ").concat(Ct("common.days"),",")),(rr>0||ir>0)&&(Oo+="".concat(rr," ").concat(Ct("common.hrs"),",")),Oo+="".concat(sr," ").concat(Ct("common.min"))}const Io=-2<=L.toNum(0)&&L.toNum(0)<=2&&A.toNum(0)>=99;let To;To=(!0===e.battery.invert_flow?Ka>0&&!Io:Ka<0&&!Io)?Ft:Zt;let Bo="",Vo="",Go=u.state,zo=!1;no==fe.Solis&&(Go=u.isNaN()?u.toString():u.toNum(0).toString());const jo=oo.statusGroups;if(jo)for(const lr of Object.keys(jo)){const dr=jo[lr],{states:cr,color:ur,message:hr}=dr;if(cr.includes(Go.toLowerCase())){Bo=ur,Vo=hr,zo=!0;break}}zo||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(Bo="transparent",Vo="Status"):(Bo="transparent",Vo=""));let Ro="transparent",Ho="";if([fe.GoodweGridMode,fe.Goodwe,fe.Huawei].includes(no)){const pr=oo.batteryStatusGroups;if(pr)for(const gr of Object.keys(pr)){const yr=pr[gr],{states:fr,color:mr,message:vr}=yr;if(fr.includes(C.state.toLowerCase())){Ro=mr,Ho=vr,zo=!0;break}}zo||("none"!==e.entities?.battery_status&&e.entities?.battery_status?(Ro="transparent",Ho="Status"):(Ro="transparent",Ho=""))}const Uo=i.toNum()+t.toNum(),Wo=a.toNum()+n.toNum(),Qo=0!=Wo?Math.max(Math.min(Math.round(100*Uo/Wo),100),0):0,Zo=0!=Uo?Math.max(Math.min(Math.round(100*Wo/Uo),100),0):0,Fo=ho+qt.toNum("".concat((!0===e.battery.invert_flow?Ka<0:Ka>0)?Math.abs(Ka):0))+qt.toNum("".concat(Ve<0?-1*Ve:0)),Yo=go+Math.max(yo,0)+qt.toNum("".concat(Ve>0?Ve:0))+qt.toNum("".concat((!0===e.battery.invert_flow?Ka>0:Ka<0)?Math.abs(Ka):0)),Xo=0!=Yo?Math.max(Math.min(Math.round(100*Fo/Yo),100),0):0,Jo=0!=Fo?Math.max(Math.min(Math.round(100*Yo/Fo),100),0):0,Ko=(qt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,qo=qt.toNum(e.min_line_width)||1,$o=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(0),ei=this.getEntity("solar.max_power",{state:e.solar.max_power?.toString()??""}),ti=this.getEntity("load.max_power",{state:e.load.max_power?.toString()??""}),ni=this.getEntity("grid.max_power",{state:e.grid.max_power?.toString()??""}),ai=e.solar.max_power?this.dynamicLineWidth(ro,ei.toNum()||ro,Ko,qo):qo,oi=e.solar.max_power?this.dynamicLineWidth(so,ei.toNum()||so,Ko,qo):qo,ii=e.solar.max_power?this.dynamicLineWidth(lo,ei.toNum()||lo,Ko,qo):qo,ri=e.solar.max_power?this.dynamicLineWidth(co,ei.toNum()||co,Ko,qo):qo,si=e.battery.max_power?this.dynamicLineWidth(Math.abs(Ka),$o||Math.abs(Ka),Ko,qo):qo,li=e.load.max_power?this.dynamicLineWidth(Math.abs(go),ti.toNum()||Math.abs(go),Ko,qo):qo,di=e.load.max_power?this.dynamicLineWidth(Math.abs(Ve),ti.toNum()||Math.abs(Ve),Ko,qo):qo,ci=e.grid.max_power?this.dynamicLineWidth(Math.abs(Ue),ni.toNum()||Math.abs(Ue),Ko,qo):qo,ui=e.grid.max_power?this.dynamicLineWidth(Math.abs(mt),ni.toNum()||Math.abs(mt),Ko,qo):qo,hi=e.grid.max_power?this.dynamicLineWidth(Math.abs(yo),ni.toNum()||Math.abs(yo),Ko,qo):qo,pi=e.solar.max_power?this.dynamicLineWidth(ho,ei.toNum()||ho,Ko,qo):qo;if(e&&e.solar&&e.solar.animation_speed){const wr=e.solar.animation_speed-(e.solar.animation_speed-1)*(ho/(ei.toNum()||ho));this.changeAnimationSpeed("solar",wr)}if(e&&e.solar&&e.solar.animation_speed){const _r=e.solar.animation_speed-(e.solar.animation_speed-1)*(ro/(ei.toNum()||ro));this.changeAnimationSpeed("pv1",_r)}if(e&&e.solar&&e.solar.animation_speed){const xr=e.solar.animation_speed-(e.solar.animation_speed-1)*(so/(ei.toNum()||so));this.changeAnimationSpeed("pv2",xr)}if(e&&e.solar&&e.solar.animation_speed){const br=e.solar.animation_speed-(e.solar.animation_speed-1)*(lo/(ei.toNum()||lo));this.changeAnimationSpeed("pv3",br)}if(e&&e.solar&&e.solar.animation_speed){const Ar=e.solar.animation_speed-(e.solar.animation_speed-1)*(co/(ei.toNum()||co));this.changeAnimationSpeed("pv4",Ar)}if(e&&e.battery&&e.battery.animation_speed){const Pr=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(Ka)/($o||Math.abs(Ka)));this.changeAnimationSpeed("battery",Pr)}if(e&&e.load&&e.load.animation_speed){const Lr=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(go)/(ti.toNum()||Math.abs(go)));this.changeAnimationSpeed("load",Lr),this.changeAnimationSpeed("load1",Lr)}if(e&&e.load&&e.load.animation_speed){const Er=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Ve)/(ti.toNum()||Math.abs(Ve)));this.changeAnimationSpeed("aux",Er),this.changeAnimationSpeed("aux1",Er)}if(e&&e.grid&&e.grid.animation_speed){const Cr=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(Ue)/(ni.toNum()||Math.abs(Ue)));this.changeAnimationSpeed("grid1",Cr),this.changeAnimationSpeed("grid",Cr),this.changeAnimationSpeed("grid2",Cr)}if(e&&e.grid&&e.grid.animation_speed){const Nr=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(yo)/(ni.toNum()||Math.abs(yo)));this.changeAnimationSpeed("ne",Nr)}const gi=0===ho?0:"off"!==Ja&&Ja?ho/(fo?go+Math.max(Ve,0):go)*100:!0===e.battery.invert_flow?Ka<0?ho/(fo?go+Math.max(Ve,0):go)*100:(ho-Math.abs(Ka))/(fo?go+Math.max(Ve,0):go)*100:Ka>0?ho/(fo?go+Math.max(Ve,0):go)*100:(ho-Math.abs(Ka))/(fo?go+Math.max(Ve,0):go)*100,yi=!0===e.battery.invert_flow?Ka>=0?0:Math.abs(Ka)/(fo?go+Math.max(Ve,0):go)*100:Ka<=0?0:Math.abs(Ka)/(fo?go+Math.max(Ve,0):go)*100,fi=gi+yi,mi=0===fi?0:gi/fi*100,vi=0===fi?0:yi/fi*100;let wi=0,_i=0,xi=0;fi>100?(wi=qt.toNum(mi,0),_i=qt.toNum(vi,0)):(wi=qt.toNum(Math.min(gi,100),0),_i=qt.toNum(Math.min(yi,100),0),xi=100-(wi+_i));const bi=0===ho||(!0===e.battery.invert_flow?Ka<=0:Ka>=0)?0:"off"!==Ja&&Ja?(ho-go)/Math.abs(Ka)*100:ho/Math.abs(Ka)*100,Ai=(!0===e.battery.invert_flow?Ka<=0:Ka>=0)||Ue<=0?0:"on"===Ja?ho-go>=Math.abs(Ka)?0:(Ue-Math.max(go-ho,0))/Math.abs(Ka)*100:ho>=Math.abs(Ka)?0:(Math.abs(Ka)-ho)/Math.abs(Ka)*100,Pi=bi+Ai,Li=0===Pi?0:bi/Pi*100,Ei=0===Pi?0:Ai/Pi*100;let Ci,Ni,Mi,ki,Si,Oi=0,Di=0;switch(Pi>100?(Oi=qt.toNum(Li,0),Di=qt.toNum(Ei,0)):(Oi=qt.toNum(Math.min(bi,100),0),Di=qt.toNum(Math.min(Ai,100),0)),!0){case Oi>=qt.toNum(e.battery?.path_threshold,0):Ci=po;break;case Di>=qt.toNum(e.battery?.path_threshold,0):Ci=Et;break;default:Ci=To}switch(!0){case wi>=qt.toNum(e.load?.path_threshold,0):Ni=po;break;case _i>=qt.toNum(e.load?.path_threshold,0):Ni=To;break;case xi>=qt.toNum(e.load?.path_threshold,0):Ni=Et;break;default:Ni=Xe}switch(!0){case wi>=qt.toNum(e.load?.path_threshold,0):Mi=po;break;case _i>=qt.toNum(e.load?.path_threshold,0):Mi=To;break;case xi>=qt.toNum(e.load?.path_threshold,0):case Di>=qt.toNum(e.battery?.path_threshold,0):Mi=Et;break;default:Mi=Qa}switch(!0){case gi>=100&&yi<=5&&Ue-yo<50&&e.load.dynamic_icon:ki=nn,Si=1;break;case yi>=100&&gi<=5&&Ue-yo<50&&e.load.dynamic_icon:ki=en,Si=0;break;case gi<5&&yi<5&&xi>0&&e.load.dynamic_icon:ki=tn,Si=0;break;default:ki=$t,Si=0}const{batteryIcon:Ii,batteryCharge:Ti,stopColour:Bi,battery0:Vi}=Xa.convert(A),Gi=this.getEntity("solar.pv1_max_power",{state:e.solar.pv1_max_power?.toString()??""}),zi=this.getEntity("solar.pv2_max_power",{state:e.solar.pv2_max_power?.toString()??""}),ji=this.getEntity("solar.pv3_max_power",{state:e.solar.pv3_max_power?.toString()??""}),Ri=this.getEntity("solar.pv4_max_power",{state:e.solar.pv4_max_power?.toString()??""}),Hi=e.solar.max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(ho/ei.toNum()*100,200),0):100,Ui=e.solar.pv1_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(ro/Gi.toNum()*100,200),0):100,Wi=e.solar.pv2_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(so/zi.toNum()*100,200),0):100,Qi=e.solar.pv3_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(lo/ji.toNum()*100,200),0):100,Zi=e.solar.pv4_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(co/Ri.toNum()*100,200),0):100;let Fi,Yi;switch(!0){case Ue<0&&Tt.includes(rt.toLowerCase()):Fi=ja,Yi=Et;break;case Ue>=0&&Tt.includes(rt.toLowerCase()):Fi=Ga,Yi=Et;break;case 0===Ue&&It.includes(rt.toLowerCase()):Fi=za,Yi=Ht;break;default:Fi=Ga,Yi=Et}const Xi={config:e,panelMode:Wa,compactMode:io,cardHeight:qa,cardWidth:$a,loadColour:Xe,batteryColour:To,gridColour:Et,isFloating:Io,inverterColour:Qa,solarColour:po,auxOffColour:Ke,batteryEnergy:Do,largeFont:Ua,batteryPower:Ka,batteryDuration:Oo,batteryCapacity:Mo,additionalLoad:La,essIconSize:Si,essIcon:ki,stateUseTimer:g,batteryStateMsg:Ho,stateBatterySoc:A,inverterProg:Co,solarShowDaily:Xt,batteryPercentage:_i,pvPercentage:wi,loadShowDaily:ot,stateEnergyCostSell:ge,stateEnergyCostBuy:he,loadPowerL1:wt,loadPowerL2:_t,loadPowerL3:xt,durationCur:this.durationCur,stateEssentialLoad1:W,stateEssentialLoad2:Q,stateEssentialLoad3:Z,stateEssentialLoad4:F,gridPower:ze,gridPowerL2:je,gridPowerL3:Re,decimalPlaces:Fe,decimalPlacesEnergy:Ye,stateEssentialLoad1Extra:K,stateEssentialLoad2Extra:q,stateEssentialLoad3Extra:$,stateEssentialLoad4Extra:ee,stateNonEssentialLoad1Extra:j,stateNonEssentialLoad2Extra:R,loadFrequency:lt,statePV4Current:Ce,gridShowDailyBuy:Wt,gridShowDailySell:Qt,batteryShowDaily:Yt,inverterModel:no,batteryShutdown:Eo,enableAutarky:Za,autarkyPower:Xo,ratioPower:Jo,ratioEnergy:Zo,autarkyEnergy:Qo,shutdownOffGrid:Lo,statePV1Current:xe,statePV2Current:Ae,statePV3Current:Le,energyCost:to,inverterCurrent:ht,inverterCurrentL2:pt,inverterCurrentL3:gt,stateRadiatorTemp:f,inverterVoltage:dt,inverterVoltageL2:ct,inverterVoltageL3:ut,batteryVoltage:yt,stateBatteryCurrent:L,batLineWidth:si,totalGridPower:Ue,solarLineWidth:pi,totalPV:ho,loadLineWidth:li,pvPercentageBat:Oi,gridPercentageBat:Di,genericInverterImage:Ze,battery0:Vi,essentialPower:go,pv1LineWidth:ai,pv2LineWidth:oi,pv3LineWidth:ii,pv4LineWidth:ri,gridLineWidth:ci,pv1PowerWatts:ro,pv2PowerWatts:so,pv3PowerWatts:lo,pv4PowerWatts:co,stateEnvironmentTemp:x,statePV1Voltage:_e,statePV2Voltage:be,statePV3Voltage:Pe,statePV4Voltage:Ee,batteryStateColour:Ro,inverterStateColour:Bo,stateBatteryTemp:E,statePrepaidUnits:me,stateDCTransformerTemp:y,iconEssentialLoad1:Na,iconEssentialLoad2:Ma,iconEssentialLoad3:ka,iconEssentialLoad4:Sa,enableTimer:Fa,stateSolarSell:De,priorityLoad:Ja,inverterImg:ao,stateDayPVEnergy:i,statePV2Power:Me,statePV3Power:ke,statePV4Power:Se,remainingSolar:Ra,totalSolarGeneration:Ha,stateDayLoadEnergy:a,stateDayBatteryDischarge:t,stateDayGridImport:o,stateDayBatteryCharge:n,stateDayGridExport:r,statePVTotal:Ie,statePV1Power:Ne,minLineWidth:qo,stopColour:Bi,gridStatus:rt,batteryCharge:Ti,gridOffColour:Ht,batteryIcon:Ii,formattedResultTime:So,showAux:Jt,nonessentialIcon:Ia,showNonessential:it,auxStatus:st,nonessentialLoads:Ut,additionalAuxLoad:Ea,stateAuxLoad1Extra:oe,stateAuxLoad2Extra:ie,iconNonessentialLoad1:Ta,iconNonessentialLoad2:Ba,iconNonessentialLoad3:Va,inverterStateMsg:Vo,auxType:Ca,showDailyAux:Kt,nonessentialPower:yo,auxPower:Ve,nonessLineWidth:hi,grid169LineWidth:ui,auxLineWidth:di,iconAuxLoad1:Oa,iconAuxLoad2:Da,stateDayAuxEnergy:s,stateAuxLoad1:X,stateAuxLoad2:J,stateNonessentialLoad1:V,stateNonessentialLoad2:G,stateNonessentialLoad3:z,autoScaledInverterPower:ft,autoScaledGridPower:mt,auxDynamicColour:Je,auxDynamicColourLoad1:qe,auxDynamicColourLoad2:$e,stateMaxSellPower:we,totalPVEfficiency:Hi,PV1Efficiency:Ui,PV2Efficiency:Wi,PV3Efficiency:Qi,PV4Efficiency:Zi,gridPercentage:xi,flowColour:Ni,flowBatColour:Ci,flowInvColour:Mi,dynamicColourEssentialLoad1:et,dynamicColourEssentialLoad2:tt,dynamicColourEssentialLoad3:nt,dynamicColourEssentialLoad4:at,dynamicColourNonEssentialLoad1:Nt,dynamicColourNonEssentialLoad2:Bt,dynamicColourNonEssentialLoad3:Vt,stateBatterySOH:O,customGridIcon:Fi,customGridIconColour:Yi,maximumSOC:No};return this.isFullCard?((e,t,n)=>H(Ln||(Ln=pe(["\n \n \n \n ','\n
\n
\n \n "])),n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad3,n.dynamicColourEssentialLoad4,n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad3,n.dynamicColourEssentialLoad4,n.auxDynamicColour,n.auxDynamicColourLoad1,n.auxDynamicColourLoad2,n.auxOffColour,n.dynamicColourNonEssentialLoad1,n.dynamicColourNonEssentialLoad2,n.dynamicColourNonEssentialLoad3,n.gridColour,n.customGridIconColour,n.customGridIconColour,e.title?H(En||(En=pe(['\n ',"
"])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",!0!==n.panelMode?"".concat(n.cardHeight):"100%",!0===n.panelMode?"".concat(n.cardWidth):"100%",[1,3].includes(e.solar.efficiency)?"url(#SlG)":n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,n.batteryColour,e.show_battery?"":"none",n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",n.auxDynamicColour,n.showAux?"":"st12",n.loadColour,e.inverter.three_phase?60:50,n.inverterColour,[1,3].includes(e.solar.efficiency)?"url(#PV1LG)":n.solarColour,e.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV2LG)":n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV3LG)":n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV4LG)":n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,n.gridColour,n.showNonessential?"":"st12",e.show_grid?"":"none",1===n.nonessentialLoads?"":"none",n.dynamicColourNonEssentialLoad1,e.show_grid&&n.showNonessential?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad2,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",3===n.nonessentialLoads&&e.battery.hide_soc?"":"none",n.dynamicColourNonEssentialLoad3,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",n.showAux?"143":"30",n.dynamicColourEssentialLoad1,1===n.additionalLoad?"":"none",n.showAux?"373":"376",n.showAux?"149":"30",n.dynamicColourEssentialLoad1,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"410":"413",n.showAux?"149":"30",n.dynamicColourEssentialLoad2,[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad3,!n.showAux&&[3,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad4,!n.showAux&&[3,4].includes(n.additionalLoad)?"":"none",n.auxDynamicColourLoad1,n.showAux?"":"none",[1,2].includes(n.additionalAuxLoad)?"":"st12",n.auxDynamicColourLoad2,n.showAux?"":"none",2===n.additionalAuxLoad?"":"st12",!0!==n.largeFont?"st14":"st4",e.show_battery?"":"none",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,e.show_battery?"":"none",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ct("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,e.show_battery?"":"none",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ct("common.to"),n.batteryCapacity,Ct("common.charge"),n.formattedResultTime,e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Ct("common.battery_floating"),e.show_solar?"":"none",n.solarColour,e.solar.pv1_name||Ct("common.pv1_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name||Ct("common.pv2_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||1===e.solar.mppts||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name||Ct("common.pv3_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[1,2].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name||Ct("common.pv4_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[1,2,3].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.totalPVEfficiency,n.gridColour,e.show_grid?"":"none",e.grid.grid_name||Ct("common.grid_name"),n.inverterColour,n.inverterStateMsg,e.battery.show_remaining_energy?"15":"80",e.show_battery?"":"none",n.batteryColour,n.batteryStateMsg,e.show_battery&&e.battery.show_remaining_energy?"":"none",n.batteryColour,qt.toNum(n.batteryEnergy*(n.stateBatterySoc?.toNum()/100)/1e3,2),zt.KILO_WATT_HOUR,[0].includes(n.additionalLoad)||!n.showAux&&[1,2].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name||Ct("common.essential"),[1,2].includes(n.additionalLoad)&&n.showAux||!n.showAux&&[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name||Ct("common.essential"),n.showAux?181:70,1===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad1,e.load.load1_name,n.showAux?402:405,n.showAux?178:59,[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,e.load.load1_name,n.showAux?415:418,n.showAux?178:59,[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,[4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,[4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad4,e.load.load4_name,(n.additionalAuxLoad,"238"),n.loadShowDaily&&n.showAux?"".concat(n.loadColour):"transparent",e.load.label_daily_load||Ct("common.daily_load"),0===n.additionalLoad?"377":"238",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),e.load.label_daily_load||Ct("common.daily_load"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Ct("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Ct("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Ct("common.total_solar_generation"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",Ct("common.daily_charge"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",Ct("common.daily_discharge"),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"256":"253":"368",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_buy||Ct("common.daily_grid_buy"),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"225":"222":"337",!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_sell||Ct("common.daily_grid_sell"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),e.load.aux_name||Ct("common.aux_name"),e.show_grid&&n.showNonessential?"":"none",n.gridColour,e.grid.nonessential_name||Ct("common.nonessential_name"),e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,e.grid.load1_name,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,e.grid.load1_name,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad2,e.grid.load2_name,e.battery.hide_soc?"st3 st8":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad3,e.grid.load3_name,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===ve.No?"none":"",n.inverterColour,Ct("common.autarky"),n.enableAutarky===ve.No?"none":"",n.inverterColour,Ct("common.ratio"),1===n.additionalAuxLoad?53:14,n.showAux&&0!==n.additionalAuxLoad?"":"none",n.auxDynamicColourLoad1,e.load.aux_load1_name,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.auxDynamicColourLoad2,e.load.aux_load2_name,([1,2].includes(n.additionalAuxLoad),"238"),n.showAux&&!0===n.showDailyAux?"":"none",n.auxDynamicColour,e.load.aux_daily_name||Ct("common.daily_aux"),e.inverter.three_phase&&e.entities?.load_power_L1?"":"none",n.loadColour,e.inverter.three_phase&&e.entities?.load_power_L1?n.loadPowerL1:"0",e.inverter.three_phase&&e.entities?.load_power_L2?"| "+n.loadPowerL2:"",e.inverter.three_phase&&e.entities?.load_power_L3?"| "+n.loadPowerL3:"",Gt.WATT,n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,n.inverterStateColour,e.battery.show_remaining_energy?"8":"73","none"!==e.entities?.battery_status&&e.entities?.battery_status&&e.show_battery?"":"none",n.batteryStateColour,n.showAux?"":"none",[1,2].includes(n.additionalLoad)?"":"st12",n.loadColour,n.showAux?"none":"",[4].includes(n.additionalLoad)?"":"st12",n.loadColour,n.showAux?"none":"",1===n.additionalLoad?"":"st12",n.loadColour,n.showAux?"none":"",[2,4].includes(n.additionalLoad)?"":"st12",n.loadColour,1===e.solar.mppts?"M 86 175 M 155 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 162 L 86 56 Q 86 56 86 56 L 70 56",e.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,!0===e.solar.invert_flow?qt.invertKeyPoints("1;0"):"1;0",e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!0===e.solar.invert_flow?qt.invertKeyPoints("1;0"):"1;0",!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!0===e.solar.invert_flow?qt.invertKeyPoints("1;0"):"1;0",!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,!0===e.solar.invert_flow?qt.invertKeyPoints("1;0"):"1;0",e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,!0===e.solar.invert_flow?qt.invertKeyPoints("1;0"):"1;0",e.show_battery?"":"st12",e.battery.dynamic_colour?n.flowBatColour:n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(e.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("0;1"):"0;1",n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.inverter.three_phase?"M 421 295 L 421 337":"M 421 295 L 421 310.5",n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid/1.5,!0===e.grid.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid/1.5,!0===e.grid.invert_flow?qt.invertKeyPoints("0;1"):"0;1",n.gridColour,n.nonessLineWidth,e.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),8),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.ne/1.5,!0===e.grid.invert_flow?qt.invertKeyPoints("0;1"):"0;1",n.gridColour,n.nonessLineWidth,e.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),5),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.ne,!0===e.grid.invert_flow?qt.invertKeyPoints("1;0"):"1;0",n.showAux?"":"st12",n.auxDynamicColour,n.auxLineWidth,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower<0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower>0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,n.showAux?"":"st12",n.auxDynamicColour,n.auxLineWidth,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower<0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower>0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,n.gridColour,n.grid169LineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower<0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower>0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.inverter.three_phase?"M 180 223 L 180 235":"M 180 212 L 180 235",e.battery.dynamic_colour&&e.load.dynamic_colour?n.flowInvColour:n.inverterColour,n.minLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("0;1"):"0;1",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("1;0"):"1;0",e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,e.inverter?.navigate?U(Cn||(Cn=pe(['\n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):U(Nn||(Nn=pe(['\n \n \n \n \n '])),n.genericInverterImage?1:0,n.inverterColour,ln),e.battery?.navigate?U(Mn||(Mn=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.battery.navigate)),e.battery?.show_remaining_energy?"294":"296.25",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,e.battery?.show_remaining_energy?"294":"296.25",n.stopColour,e.battery.animate?"y2":"none",e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge):U(kn||(kn=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),e.battery?.show_remaining_energy?"294":"296.25",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,e.battery?.show_remaining_energy?"294":"296.25",n.stopColour,e.battery.animate?"y2":"none",e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge),e.solar?.navigate?U(Sn||(Sn=pe(['\n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.solar.navigate)),e.show_solar?"":"st12",n.solarColour,Pn):U(On||(On=pe(['\n \n \n '])),e.show_solar?"":"st12",n.solarColour,Pn),e.grid?.navigate?U(Dn||(Dn=pe(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.grid.navigate)),e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",xn):U(In||(In=pe(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handlePopup(t,e.entities.grid_connected_status_194)),e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",xn),e.grid?.navigate?U(Tn||(Tn=pe(['\n \n \n \n \n \n \n
\n \n \n \n '])),(t=>qt.handleNavigation(t,e.grid.navigate)),e.show_grid||e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon?"":"none",e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",n.customGridIcon,e.inverter.three_phase?"grid-icon-small":"grid-icon"):U(Bn||(Bn=pe(['\n \n \n \n \n \n \n
\n \n \n \n '])),(t=>qt.handlePopup(t,e.entities.grid_connected_status_194)),e.show_grid||e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon?"":"none",e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",n.customGridIcon,e.inverter.three_phase?"grid-icon-small":"grid-icon"),"default"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"oven"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"boiler"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"pump"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,sn,"aircon"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,rn,e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.nonessentialIcon,"default"===n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"default"===n.iconNonessentialLoad1&&"default"!=n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"default"!=n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"boiler"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,sn,"pump"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,sn,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"oven"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,rn,"aircon"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,rn,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad2,e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&e.battery.hide_soc?"":"none",e.battery.hide_soc?1:0,n.iconNonessentialLoad3,"default"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,un,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,an,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,sn,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,on,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,rn,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,e.load?.navigate?U(Vn||(Vn=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.load.navigate)),1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[4].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2,3,4].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon):U(Gn||(Gn=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[4].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2,3,4].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon),(t=>qt.handlePopup(t,e.entities.aux_connected_status)),"default"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),cn,"gen"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),dn,"inverter"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),ln,"oven"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),on,"boiler"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),an,"aircon"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),rn,"pump"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),sn,!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"",n.auxType,"on"===n.auxStatus||"1"===n.auxStatus?"aux-icon":"aux-off-icon",n.showAux&&0!==n.additionalAuxLoad?"":"none",n.iconAuxLoad1,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.iconAuxLoad2,"boiler"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"boiler"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,an,"boiler"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"boiler"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,an,"boiler"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"boiler"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"aircon"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"aircon"===n.iconEssentialLoad2&&[2,3,4].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,rn,"aircon"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"aircon"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,rn,"aircon"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"aircon"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"pump"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"pump"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,sn,"pump"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"pump"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,sn,"pump"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"pump"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"oven"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,on,"oven"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,on,"oven"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2,[4].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad3,[4].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad4,[1].includes(n.additionalLoad)?"":"none",(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1,(t=>qt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=ve.No?"232":"249","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,hn,n.enableAutarky!=ve.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,pn,n.enableAutarky!=ve.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ct("common.timer_on"),n.enableAutarky!=ve.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ct("common.timer_off"),(t=>qt.handlePopup(t,e.entities.solar_sell_247)),e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&e.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,gn,e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&e.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,yn,(t=>qt.handlePopup(t,e.entities.priority_load_243)),"no"!=n.enableAutarky?"251":"268","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,fn,"no"!=n.enableAutarky?"251":"268","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,mn,n.enableAutarky!=ve.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ct("common.priority_load"),n.enableAutarky!=ve.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ct("common.priority_batt"),e.inverter?.navigate?U(zn||(zn=pe(['\n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?"st12":"",t):U(jn||(jn=pe(['\n '])),n.genericInverterImage?"st12":"",t),(e=>qt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=ve.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,vn,n.enableAutarky!=ve.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,wn,(t=>qt.handlePopup(t,e.entities.day_pv_energy_108)),1===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_pv_energy_108)),2===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,n.decimalPlacesEnergy),n.remainingSolar,(t=>qt.handlePopup(t,e.entities.day_pv_energy_108)),3===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,n.decimalPlacesEnergy),n.totalSolarGeneration,(t=>qt.handlePopup(t,e.entities.day_load_energy_84)),(n.additionalAuxLoad,"238"),n.loadShowDaily&&n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_load_energy_84)),0===n.additionalLoad?"377":"238",0===n.additionalLoad?"57":"80",n.loadShowDaily&&!n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_battery_discharge_71)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_grid_import_76)),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"242":"239":"354",e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_grid_export_77)),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"212":"209":"323",e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.max_sell_power)),n.showNonessential?"347":"311",n.showNonessential?"198":"309",["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,e.show_grid&&n.stateMaxSellPower.isValid&&e.entities?.max_sell_power?"":"none",Ct("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.day_aux_energy)),([1,2].includes(n.additionalAuxLoad),"238"),n.showAux&&!0===n.showDailyAux&&n.stateDayAuxEnergy.isValid()?"":"none",n.auxDynamicColour,n.stateDayAuxEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&1===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&1===n.additionalLoad&&n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[2,4].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&[2,4].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.non_essential_load1_extra)),e.entities?.non_essential_load1_extra&&[1,2].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad1Extra.isValid()&&e.show_grid?"":"none",n.dynamicColourNonEssentialLoad1,n.stateNonEssentialLoad1Extra.toNum(1),n.stateNonEssentialLoad1Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.non_essential_load2_extra)),e.entities?.non_essential_load2_extra&&2===n.nonessentialLoads&&n.stateNonEssentialLoad2Extra.isValid()&&e.show_grid?"":"none",n.dynamicColourNonEssentialLoad2,n.stateNonEssentialLoad2Extra.toNum(1),n.stateNonEssentialLoad2Extra?.getUOM(),e.inverter.three_phase?e.entities?.grid_ct_power_total?U(Rn||(Rn=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.grid_ct_power_total)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Gt.WATT):"".concat(n.totalGridPower||0," ").concat(Gt.WATT))):U(Hn||(Hn=pe(['\n \n ',"\n "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Gt.WATT):"".concat(n.totalGridPower||0," ").concat(Gt.WATT))):U(Un||(Un=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.grid_ct_power_172)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Gt.WATT):"".concat(n.totalGridPower||0," ").concat(Gt.WATT))),e.entities?.pv_total?U(Wn||(Wn=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.pv_total)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?qt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):qt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qt.toNum(n.totalPV||0,0)," ").concat(Gt.WATT)):U(Qn||(Qn=pe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?qt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):qt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qt.toNum(n.totalPV||0,0)," ").concat(Gt.WATT)),e.entities?.essential_power&&"none"!==e.entities.essential_power?U(Zn||(Zn=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Gt.WATT)):U(Fn||(Fn=pe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Gt.WATT)),e.entities?.nonessential_power&&"none"!==e.entities.nonessential_power?U(Yn||(Yn=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.nonessential_power)),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(qt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Gt.WATT)):U(Xn||(Xn=pe(['\n \n ',"\n "])),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(qt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Gt.WATT)),e.entities?.aux_power_166?U(Jn||(Jn=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.aux_power_166)),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(qt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Gt.WATT)):U(Kn||(Kn=pe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(qt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.pv1_power_186)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv1PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv2PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv3PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2,3].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv4PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.aux_load1)),!0!==n.largeFont?"st14":"st4",n.showAux&&0!==n.additionalAuxLoad&&n.stateAuxLoad1.isValid()?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.aux_load2)),!0!==n.largeFont?"st14":"st4",n.showAux&&![0,1].includes(n.additionalAuxLoad)&&n.stateAuxLoad2.isValid()?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.non_essential_load1)),e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.dynamicColourNonEssentialLoad1,n.stateNonessentialLoad1.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.non_essential_load1)),e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.dynamicColourNonEssentialLoad1,n.stateNonessentialLoad1.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.non_essential_load2)),e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad2.isValid()?"":"none",n.dynamicColourNonEssentialLoad2,n.stateNonessentialLoad2.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.non_essential_load3)),e.battery.hide_soc?"st3":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&n.stateNonessentialLoad3.isValid()?"":"none",n.dynamicColourNonEssentialLoad3,n.stateNonessentialLoad3.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load1)),n.showAux?"158":"47",1===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load1)),n.showAux?"391":"394",n.showAux?"160":"41",[2,4].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load2)),n.showAux?"427":"430",n.showAux?"160":"41",[2,4].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load3)),[4].includes(n.additionalLoad)&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load4)),[4].includes(n.additionalLoad)&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4.toPowerString(e.load.auto_scale,n.decimalPlaces),n.totalGridPower>=0?U(qn||(qn=pe(['\n \n \n '," ",'\n \n \n ','\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.energy_cost_buy)),e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()&&!e.entities.non_essential_load2_extra?"":"none",n.energyCost,n.stateEnergyCostBuy?.getUOM(),e.inverter?.three_phase?"414":"430",e.show_grid?e.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()&&e.entities.non_essential_load2_extra?"":"none",n.energyCost,e.inverter?.three_phase?"414":"437",e.show_grid?e.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()&&e.entities.non_essential_load2_extra?"":"none",n.stateEnergyCostBuy?.getUOM()):U($n||($n=pe(['\n \n \n '," ",'\n \n \n ','\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.energy_cost_sell)),e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()&&!e.entities.non_essential_load2_extra?"":"none",n.energyCost,n.stateEnergyCostSell?.getUOM(),e.inverter?.three_phase?"414":"430",e.show_grid?e.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()&&e.entities.non_essential_load2_extra?"":"none",n.energyCost,e.inverter?.three_phase?"414":"437",e.show_grid?e.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()&&e.entities.non_essential_load2_extra?"":"none",n.stateEnergyCostSell?.getUOM()),(t=>qt.handlePopup(t,e.entities.inverter_voltage_154)),e.inverter.three_phase?"164":"170.4",e.show_grid&&"none"!==e.entities.inverter_voltage_154&&e.entities.inverter_voltage_154?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.inverterVoltage,Rt.VOLT,(t=>qt.handlePopup(t,e.entities.inverter_voltage_L2)),e.inverter.three_phase&&e.entities?.inverter_voltage_L2?"":"none",e.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL2,Rt.VOLT,(t=>qt.handlePopup(t,e.entities.inverter_voltage_L3)),e.inverter.three_phase&&e.entities?.inverter_voltage_L3?"":"none",e.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL3,Rt.VOLT,(t=>qt.handlePopup(t,e.entities.load_frequency_192)),e.inverter.three_phase?"203":"189.5",e.show_grid&&"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.loadFrequency,(t=>qt.handlePopup(t,e.entities.inverter_current_164)),e.inverter.three_phase?"188":"199","none"!==e.entities.inverter_current_164&&e.entities.inverter_current_164?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrent,jt.AMPERE,(t=>qt.handlePopup(t,e.entities.inverter_current_L2)),e.inverter.three_phase&&e.entities?.inverter_current_L2?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL2,jt.AMPERE,(t=>qt.handlePopup(t,e.entities.inverter_current_L3)),e.inverter.three_phase&&e.entities?.inverter_current_L3?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL3,jt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,Rt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&e.show_battery&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,n.inverterProg.show&&"none"!==e.entities.battery_soc_184&&e.show_battery&&!e.battery.hide_soc?"":"none",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"",n.batteryShutdown||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",(t=>qt.handlePopup(t,e.entities.battery_power_190)),"none"!==e.entities.battery_power_190&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.auto_scale?"".concat(e.battery.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Gt.WATT):"".concat(n.batteryPower||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.battery_current_191)),"none"!==e.entities.battery_current_191&&e.show_battery&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.show_absolute?Math.abs(qt.toNum(n.stateBatteryCurrent.state,1)):qt.toNum(n.stateBatteryCurrent.state,1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.inverter_power_175)),e.inverter.three_phase?"174":"178","none"===e.entities.inverter_power_175?"none":"",!0!==n.largeFont?"st14":"st4",n.inverterColour,e.inverter.auto_scale?"".concat(qt.convertValue(n.autoScaledInverterPower,n.decimalPlaces)||0):"".concat(n.autoScaledInverterPower," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.grid_power_169)),e.inverter.three_phase?"216":"209",e.show_grid&&"none"!==e.entities.grid_power_169?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.autoScaledGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.autoScaledGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.autoScaledGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.autoScaledGridPower)," ").concat(Gt.WATT):"".concat(n.autoScaledGridPower||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.pv1_voltage_109)),e.show_solar&&e.entities.pv1_voltage_109&&"none"!==e.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv1_current_110)),e.show_solar&&e.entities.pv1_current_110&&"none"!==e.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv2_voltage_111)),e.show_solar&&e.entities.pv2_voltage_111&&"none"!==e.entities.pv2_voltage_111&&1!==e.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv2_current_112)),e.show_solar&&e.entities.pv2_current_112&&"none"!==e.entities.pv2_current_112&&1!==e.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv3_voltage_113)),e.show_solar&&e.entities.pv3_voltage_113&&"none"!==e.entities.pv3_voltage_113&&![1,2].includes(e.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv3_current_114)),e.show_solar&&e.entities.pv3_current_114&&"none"!==e.entities.pv3_current_114&&![1,2].includes(e.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv4_voltage_115)),e.show_solar&&e.entities.pv4_voltage_115&&"none"!==e.entities.pv4_voltage_115&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv4_current_116)),e.show_solar&&e.entities.pv4_current_116&&"none"!==e.entities.pv4_current_116&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_temp_182)),e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.battery_soh)),e.entities?.battery_soh?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatterySOH.isValid()&&!e.entities?.battery_temp_182?"":"none",n.stateBatterySOH.toNum(0),(t=>qt.handlePopup(t,e.entities.radiator_temp_91)),4===e.solar?.mppts?"110":"134",4===e.solar?.mppts?"237":"153",n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.dc_transformer_temp_90)),n.inverterColour,e.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.environment_temp)),e.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,e.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.prepaid_units)),e.entities?.prepaid_units?"st3 left-align":"st12",n.gridColour,e.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1),(t=>qt.handlePopup(t,e.entities.aux_load1_extra)),n.showAux&&![1,2].includes(n.additionalAuxLoad)&&e.entities.aux_load1_extra?"":"none","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.aux_load1_extra)),n.showAux&&[1,2].includes(n.additionalAuxLoad)&&e.entities.aux_load1_extra?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.aux_load2_extra)),n.showAux&&![0,1].includes(n.additionalAuxLoad)&&e.entities.aux_load2_extra?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2Extra.toNum(1),n.stateAuxLoad2Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.grid_ct_power_172)),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(qt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.grid_ct_power_L2)),e.inverter.three_phase&&e.entities?.grid_ct_power_L2?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(qt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.grid_ct_power_L3)),e.inverter.three_phase&&e.entities?.grid_ct_power_L3?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(qt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Gt.WATT)))(e,ao,Xi):this.isLiteCard||this.isCompactCard?((e,t,n)=>H(ea||(ea=pe(["\n \n \n \n ','\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','%\n \n \n ','\n \n ','%\n \n \n ','\n \n ','%\n \n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',"\n ",'\n \n \n ','%\n \n \n ','%\n \n \n ','\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n '," \n "," \n "," \n "," \n "," \n ",' \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',": ",'\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n ',' Hz\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n ',"\n ","\n \n \n ",'\n \n '," ",'\n \n \n \n '," ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ','°\n \n \n \n \n ','%\n \n \n \n \n AC:\n ','°\n \n \n \n \n DC:\n ','°\n \n \n \n \n ','°\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ","\n\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n \n
\n \n "])),n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad3,n.dynamicColourEssentialLoad4,n.customGridIconColour,e.title?H(ta||(ta=pe(['\n ',"
"])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.show_solar?1:0===n.additionalLoad&&e.show_battery?145.33:80,e.show_solar?e.show_battery?408:[2,3,4].includes(n.additionalLoad)?350:300:e.show_battery&&0!==n.additionalLoad?350:270.67,!1===n.panelMode?"".concat(e.show_solar||e.show_battery?e.show_solar?e.show_solar&&!e.show_battery?[2,3,4].includes(n.additionalLoad)?"350px":"300px":"".concat(n.cardHeight):0!==n.additionalLoad?"330px":"246px":"270px"):"".concat(e.show_solar?"100%":"75%"),!0===n.panelMode?"".concat(n.cardWidth):"100%",n.loadColour,[1,3].includes(e.solar.efficiency)?"url(#SlG)":n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,n.batteryColour,e.show_battery?"":"none",n.compactMode?"":"st12",n.compactMode?"348":"329.75",n.compactMode?"50":"70",n.compactMode?"7.5":"10.5",n.compactMode?"7.5":"10.5",n.batteryColour,e.show_battery?"":"none",n.compactMode?"st12":"",n.gridColour,e.show_grid?"":"none",1===e.solar.mppts?"205":"154",[1,3].includes(e.solar.efficiency)?"url(#PV1LG)":n.solarColour,e.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV2LG)":n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV3LG)":n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV4LG)":n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,n.dynamicColourEssentialLoad1,[1,2,3].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,2===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad1,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad4,4===n.additionalLoad?"":"none",n.compactMode?"270":"290",!0!==n.largeFont?"st14":"st4",e.show_battery?"":"none",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,n.compactMode?"270":"290",e.show_battery?"":"none",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ct("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ct("common.to"),n.batteryCapacity,Ct("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Ct("common.battery_floating"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",Ct("common.daily_charge"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",Ct("common.daily_discharge"),[2,3,4].includes(n.additionalLoad)?"365":"412",[2,3,4].includes(n.additionalLoad)?"189":"282.1",n.loadShowDaily?"".concat(n.loadColour):"transparent",e.load.label_daily_load||Ct("common.daily_load"),!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_buy||Ct("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_sell||Ct("common.daily_grid_sell"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Ct("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Ct("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Ct("common.total_solar_generation"),1===e.solar.mppts?"230":"179",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name||Ct("common.pv1_name"),1===e.solar.mppts?"230":"179",[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name||Ct("common.pv2_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||1===e.solar.mppts||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name||Ct("common.pv3_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[1,2].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name||Ct("common.pv4_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[1,2,3].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(e.solar.efficiency)?"st3 st8":"st12",1===e.solar.mppts?"none":"",n.solarColour,n.totalPVEfficiency,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===ve.No?"none":"",n.enableAutarky===ve.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===ve.No?"none":"",n.inverterColour,Ct("common.autarky"),n.enableAutarky===ve.No?"none":"",n.inverterColour,Ct("common.ratio"),[1,2,3].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,e.load.load1_name,2===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad1,e.load.load1_name,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,4===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad4,e.load.load4_name,e.inverter.three_phase&&e.entities?.load_power_L1?"":"none",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.loadPowerL1,n.decimalPlaces)||0):"".concat(n.loadPowerL1||0," ").concat(Gt.WATT),e.inverter.three_phase&&e.entities?.load_power_L2?"":"none",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.loadPowerL2,n.decimalPlaces)||0):"".concat(n.loadPowerL2||0," ").concat(Gt.WATT),e.inverter.three_phase&&e.entities?.load_power_L3?"":"none",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.loadPowerL3,n.decimalPlaces)||0):"".concat(n.loadPowerL3||0," ").concat(Gt.WATT),e.battery.show_remaining_energy?"311":"320",!e.show_battery||n.compactMode?"none":"",n.batteryColour,n.batteryStateMsg,n.compactMode?"270":e.entities?.battery_status?"169":"193",n.compactMode?"338":"323",e.entities?.battery_status||n.compactMode?"st3 left-align":"st3",e.show_battery&&e.battery.show_remaining_energy?"":"none",n.batteryColour,qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum(2)/100)/1e3,2),zt.KILO_WATT_HOUR,n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,e.grid.show_daily_buy?"294":"267",n.gridColour,e.show_grid?"":"none",e.grid.grid_name||Ct("common.grid_name"),n.inverterStateColour,n.compactMode?"238.5":"162",n.compactMode?"326":e.battery.show_remaining_energy?"310":"319","none"!==e.entities?.battery_status&&e.entities?.battery_status&&e.show_battery?"":"none",n.batteryStateColour,1===e.solar.mppts?"M 239.23 84 L 239 190":"M 187 84 L 187 122 Q 187 132 195 132 L 205 132.03",e.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",n.compactMode?"M 239 250 L 239 290":"M 239 250 L 239 324",e.show_battery?"":"st12",e.battery.dynamic_colour?n.flowBatColour:n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(e.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,!0===e.solar.invert_flow?qt.invertKeyPoints("1;0"):"1;0",n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("0;1"):"0;1",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("1;0"):"1;0",n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,!0===e.grid.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("1;0"):"1;0",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("0;1"):"0;1",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===e.load.invert_flow?qt.invertKeyPoints("1;0"):"1;0",1===n.additionalLoad?"":"st12",n.loadColour,[2,3,4].includes(n.additionalLoad)?"":"st12",n.loadColour,[2,3,4].includes(n.additionalLoad)?"":"st12",n.loadColour,"oven"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,on,"pump"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,sn,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,sn,"aircon"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,rn,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,rn,"boiler"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,an,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,an,[0,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,[0,1,3,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad2,4===n.additionalLoad?"":"none",n.iconEssentialLoad1,4===n.additionalLoad?"":"none",n.iconEssentialLoad2,4===n.additionalLoad?"":"none",n.iconEssentialLoad3,4===n.additionalLoad?"":"none",n.iconEssentialLoad4,3===n.additionalLoad?"":"none",n.iconEssentialLoad2,3===n.additionalLoad?"":"none",n.iconEssentialLoad3,e.solar?.navigate?U(na||(na=pe(['\n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.solar.navigate)),e.show_solar?"":"st12",n.solarColour,Pn):U(aa||(aa=pe(['\n \n \n '])),e.show_solar?"":"st12",n.solarColour,Pn),e.battery.navigate?U(oa||(oa=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.battery.navigate)),n.compactMode?"212.5":"232.5",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode?"212.5":"232.5",n.stopColour,e.battery.animate?"y2":"none",e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge):U(ia||(ia=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),n.compactMode?"212.5":"232.5",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode?"212.5":"232.5",n.stopColour,e.battery.animate?"y2":"none",e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge),e.grid?.navigate?U(ra||(ra=pe(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.grid.navigate)),It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",_n):U(sa||(sa=pe(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handlePopup(t,e.entities.grid_connected_status_194)),It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",_n),e.grid?.navigate?U(la||(la=pe(['\n \n \n \n \n \n \n
\n \n \n \n '])),(t=>qt.handleNavigation(t,e.grid.navigate)),e.show_grid||e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon?"":"none",n.customGridIcon):U(da||(da=pe(['\n \n \n \n \n \n \n
\n \n \n \n '])),(t=>qt.handlePopup(t,e.entities.grid_connected_status_194)),e.show_grid||e.grid.import_icon||e.grid.disconnected_icon||e.grid.export_icon?"":"none",n.customGridIcon),e.load?.navigate?U(ca||(ca=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.load.navigate)),1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon):U(ua||(ua=pe(['\n \n \n \n \n \n \n \n \n \n \n \n \n '])),1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon),e.inverter?.navigate?U(ha||(ha=pe(['\n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):U(pa||(pa=pe(['\n \n \n \n \n '])),n.genericInverterImage?1:0,n.inverterColour,ln),(t=>qt.handlePopup(t,e.entities.use_timer_248)),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,hn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,pn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ct("common.timer_off"),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ct("common.timer_on"),(t=>qt.handlePopup(t,e.entities.priority_load_243)),"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,fn,"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,mn,"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ct("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ct("common.priority_load"),(t=>qt.handlePopup(t,e.entities.solar_sell_247)),e.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&e.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,gn,e.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&e.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,yn,e.inverter?.navigate?U(ga||(ga=pe(['\n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?"st12":"",t):U(ya||(ya=pe(['\n '])),n.genericInverterImage?"st12":"",t),(e=>qt.handlePopup(e,n.inverterProg.entityID)),!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,vn,!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,wn,(t=>qt.handlePopup(t,e.entities.day_battery_charge_70)),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge?.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_pv_energy_108)),1===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_pv_energy_108)),2===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,n.decimalPlacesEnergy)+" / "+n.remainingSolar,(t=>qt.handlePopup(t,e.entities.day_pv_energy_108)),3===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,n.decimalPlacesEnergy)+" / "+n.totalSolarGeneration,(t=>qt.handlePopup(t,e.entities.day_battery_discharge_71)),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge?.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_load_energy_84)),[2,3,4].includes(n.additionalLoad)?"365":"412",[2,3,4].includes(n.additionalLoad)?"175":"267.9",n.loadShowDaily&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy?.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_grid_import_76)),e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport?.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.day_grid_export_77)),e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport?.toPowerString(!0,n.decimalPlacesEnergy),(t=>qt.handlePopup(t,e.entities.max_sell_power)),["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,e.show_grid&&n.stateMaxSellPower.isValid&&e.entities?.max_sell_power?"":"none",Ct("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.inverter_voltage_154)),"none"!==e.entities.inverter_voltage_154&&e.entities.inverter_voltage_154?"":"none",n.inverterColour,n.inverterVoltage,e.inverter.three_phase&&e.entities?.inverter_voltage_L2?"| "+n.inverterVoltageL2:"",e.inverter.three_phase&&e.entities?.inverter_voltage_L3?"| "+n.inverterVoltageL3:"",Rt.VOLT,(t=>qt.handlePopup(t,e.entities.load_frequency_192)),"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",n.inverterColour,n.loadFrequency,(t=>qt.handlePopup(t,e.entities.inverter_current_164)),"none"!==e.entities.inverter_current_164&&e.entities.inverter_current_164?"":"none",n.inverterColour,n.inverterCurrent,e.inverter.three_phase&&e.entities?.inverter_current_L2?"| "+n.inverterCurrentL2:"",e.inverter.three_phase&&e.entities?.inverter_current_L3?"| "+n.inverterCurrentL3:"",jt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery&&!n.compactMode?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,Rt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery&&n.compactMode?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",n.batteryVoltage,Rt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"270":"290","none"!==e.entities.battery_soc_184&&e.show_battery&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,n.inverterProg.show&&"none"!==e.entities.battery_soc_184&&e.show_battery&&!e.battery.hide_soc?"":"none",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery?.shutdown_soc||e.battery?.shutdown_soc_offgrid?"none":"",n.batteryShutdown||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery.shutdown_soc_offgrid?"":"none",(t=>qt.handlePopup(t,e.entities.battery_power_190)),n.compactMode?"239":"193",n.compactMode?"307":"386","none"!==e.entities.battery_power_190&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.auto_scale?"".concat(e.battery.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Gt.WATT):"".concat(n.batteryPower||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&e.show_battery&&!n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&e.show_battery&&n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),jt.AMPERE,e.inverter.three_phase?e.entities?.grid_ct_power_total?U(fa||(fa=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.grid_ct_power_total)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Gt.WATT):"".concat(n.totalGridPower||0," ").concat(Gt.WATT))):U(ma||(ma=pe(['\n \n ',"\n "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Gt.WATT):"".concat(n.totalGridPower||0," ").concat(Gt.WATT))):U(va||(va=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.grid_ct_power_172)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Gt.WATT):"".concat(n.totalGridPower||0," ").concat(Gt.WATT))),(t=>qt.handlePopup(t,e.entities.pv1_voltage_109)),1===e.solar.mppts?"244.7":"194",e.show_solar&&e.entities.pv1_voltage_109&&"none"!==e.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv1_current_110)),1===e.solar.mppts?"244.7":"194",e.show_solar&&e.entities.pv1_current_110&&"none"!==e.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv2_voltage_111)),e.show_solar&&e.entities.pv2_voltage_111&&"none"!==e.entities.pv2_voltage_111&&1!==e.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv2_current_112)),e.show_solar&&e.entities.pv2_current_112&&"none"!==e.entities.pv2_current_112&&1!==e.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv3_voltage_113)),e.show_solar&&e.entities.pv3_voltage_113&&"none"!==e.entities.pv3_voltage_113&&![1,2].includes(e.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv3_current_114)),e.show_solar&&e.entities.pv3_current_114&&"none"!==e.entities.pv3_current_114&&![1,2].includes(e.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv4_voltage_115)),e.show_solar&&e.entities.pv4_voltage_115&&"none"!==e.entities.pv4_voltage_115&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),Rt.VOLT,(t=>qt.handlePopup(t,e.entities.pv4_current_116)),e.show_solar&&e.entities.pv4_current_116&&"none"!==e.entities.pv4_current_116&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),jt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_temp_182)),n.compactMode?"205":"250",n.compactMode?"332":"324.5",e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.battery_soh)),n.compactMode?"205":"250",n.compactMode?"332":"324.5",e.entities?.battery_soh?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatterySOH.isValid()&&!e.entities?.battery_temp_182?"":"none",n.stateBatterySOH.toNum(0),(t=>qt.handlePopup(t,e.entities.radiator_temp_91)),n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.dc_transformer_temp_90)),n.inverterColour,e.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.environment_temp)),e.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,e.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&4===n.additionalLoad&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&2===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&4===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&3===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load3_extra)),e.entities?.essential_load3_extra&&4===n.additionalLoad&&n.stateEssentialLoad3Extra.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3Extra.toNum(1),n.stateEssentialLoad3Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load3_extra)),e.entities?.essential_load3_extra&&3===n.additionalLoad&&n.stateEssentialLoad3Extra.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3Extra.toNum(1),n.stateEssentialLoad3Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load4_extra)),e.entities?.essential_load4_extra&&4===n.additionalLoad&&n.stateEssentialLoad4Extra.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4Extra.toNum(1),n.stateEssentialLoad4Extra.getUOM(),n.totalGridPower>=0?U(wa||(wa=pe(['\n \n \n '," ","\n \n "])),(t=>qt.handlePopup(t,e.entities.energy_cost_buy)),e.show_grid?"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.energyCost,n.stateEnergyCostBuy.getUOM()):U(_a||(_a=pe(['\n \n \n '," ","\n \n "])),(t=>qt.handlePopup(t,e.entities.energy_cost_sell)),e.show_grid?"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.energyCost,n.stateEnergyCostSell.getUOM()),e.entities?.pv_total?U(xa||(xa=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.pv_total)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?qt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):qt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qt.toNum(n.totalPV||0,0)," ").concat(Gt.WATT)):U(ba||(ba=pe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?qt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):qt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qt.toNum(n.totalPV||0,0)," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.pv1_power_186)),1===e.solar.mppts?"238.8":"188.1",!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv1PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv2PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv3PowerWatts||0,0)," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv4PowerWatts||0,0)," ").concat(Gt.WATT),e.entities?.essential_power&&"none"!==e.entities.essential_power?U(Aa||(Aa=pe(['\n \n \n ',"\n \n "])),(t=>qt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Gt.WATT)):U(Pa||(Pa=pe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(qt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.essential_load1)),[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load2)),2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load1)),4===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load2)),4===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load3)),4===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load4)),4===n.additionalLoad&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load2)),3===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load3)),3===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.prepaid_units)),e.entities?.prepaid_units?"st3":"st12",n.gridColour,e.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1),(t=>qt.handlePopup(t,e.entities.grid_ct_power_172)),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(qt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.grid_ct_power_L2)),e.inverter.three_phase&&e.entities?.grid_ct_power_L2?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(qt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Gt.WATT),(t=>qt.handlePopup(t,e.entities.grid_ct_power_L3)),e.inverter.three_phase&&e.entities?.grid_ct_power_L3?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(qt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Gt.WATT)))(e,ao,Xi):void 0}getEntity(e,t={state:"0",attributes:{unit_of_measurement:""}}){let n;const a=String(e).split(".");a.length>1?n=this._config[a[0]][a[1]]:a.length>0&&(n=this._config[a[0]]);const o=n?this.hass.states[n]:void 0;return Ja(void 0!==o?o:t||{state:void 0})}changeAnimationSpeed(e,t){const n=t>=1?qt.toNum(t,3):1,a=this["".concat(e,"Flow")];this.durationCur[e]=n,a&&this.durationPrev[e]!=n&&a.setCurrentTime(a.getCurrentTime()*(n/this.durationPrev[e])),this.durationPrev[e]=this.durationCur[e]}get isCompactCard(){return this._config.cardstyle==me.Compact}get isLiteCard(){return this._config.cardstyle==me.Lite}get isFullCard(){return this._config.cardstyle==me.Full}colourConvert(e){return e&&Array.isArray(e)?"rgb(".concat(e,")"):e}dynamicLineWidth(e,t,n,a=1){let o;return o=this._config.dynamic_line_width?Math.min(a+Math.min(e/t,1)*n,8):Math.min(a,8),o}calculateAuxLoadColour(e,t){return this._config.load.aux_dynamic_colour?Math.abs(e)>t?this.colourConvert(this._config.load?.aux_colour):"grey":this.colourConvert(this._config.load?.aux_colour)}calculateEssentialLoadColour(e,t){return this._config.load.dynamic_colour?Math.abs(e)>t?this.colourConvert(this._config.load?.colour):"grey":this.colourConvert(this._config.load?.colour)}setConfig(e){if(e.show_battery&&!e.battery)throw Error(Ct("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(Ct("errors.battery.shutdown_soc"));if(e.show_battery&&e.battery.show_daily&&(!e.entities.day_battery_charge_70||!e.entities.day_battery_discharge_71))throw Error(Ct("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(Ct("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(Ct("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(Ct("errors.solar.show_daily"));if(e&&e.grid&&e.grid.show_daily_buy&&!e.entities.day_grid_import_76||e&&e.grid&&e.grid.show_daily_sell&&!e.entities.day_grid_export_77)throw Error(Ct("errors.grid.show_daily"));if(e&&e.entities&&"none"===e.entities.essential_power&&!e.entities.inverter_power_175||e&&e.entities&&"none"===e.entities.essential_power&&"none"===e.entities.inverter_power_175)throw Error(Ct("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(Ct("errors.nonessential_power"));const t=["battery_soc_184","battery_power_190","battery_current_191","grid_ct_power_172","pv1_power_186"];for(const n of t)if("pv1_power_186"===n&&e.show_solar&&!e.entities[n]&&!e.entities[n])throw new Error("".concat(Ct("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=Jt({},Nt,n)}getCardSize(){return 2}};e([ue()],Ka.prototype,"hass",void 0),e([ue()],Ka.prototype,"_config",void 0),e([he("#grid-flow")],Ka.prototype,"gridFlow",void 0),e([he("#grid1-flow")],Ka.prototype,"grid1Flow",void 0),e([he("#solar-flow")],Ka.prototype,"solarFlow",void 0),e([he("#pv1-flow")],Ka.prototype,"pv1Flow",void 0),e([he("#pv2-flow")],Ka.prototype,"pv2Flow",void 0),e([he("#pv3-flow")],Ka.prototype,"pv3Flow",void 0),e([he("#pv4-flow")],Ka.prototype,"pv4Flow",void 0),e([he("#battery-flow")],Ka.prototype,"batteryFlow",void 0),e([he("#load-flow")],Ka.prototype,"loadFlow",void 0),e([he("#aux-flow")],Ka.prototype,"auxFlow",void 0),e([he("#ne-flow")],Ka.prototype,"neFlow",void 0),e([he("#ne1-flow")],Ka.prototype,"ne1Flow",void 0),Ka=e([le("sunsynk-power-flow-card-dev")],Ka),window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:Ct("common.description"),configurable:!0});var qa,$a={exports:{}};
+function yt(t,e){return(e,n,a)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}function ht(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var gt;const pt=((t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,a)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1]),t[0]);return new i(n,t,a)})(gt||(gt=ht(["\n .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n padding: 5px;\n }\n\n .card {\n border-radius: var(--ha-card-border-radius, 10px);\n box-shadow: var(--ha-card-box-shadow, 0px 0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));\n background: var(--ha-card-background, var(--card-background-color, white));\n border-width: var(--ha-card-border-width);\n padding: 0px;\n }\n\n text { text-anchor: middle; dominant-baseline: middle; }\n\n .left-align {text-anchor: start;}\n .right-align {text-anchor: end;}\n .st1{fill:#ff9b30;}\n .st2{fill:#f3b3ca;}\n .st3{font-size:9px;}\n .st4{font-size:14px;}\n .st5{fill:#969696;}\n .st6{fill:#5fb6ad;}\n .st7{fill:#5490c2;}\n .st8{font-weight:500}\n .st9{fill:#959595;}\n .st10{font-size:16px;}\n .st11{fill:transparent;}\n .st12{display:none;}\n .st13{font-size:22px;}\n .st14{font-size:12px;}\n\n "])));var ft,mt,_t;!function(t){t.Azzurro="azzurro",t.CESBatteryBox="ces-battery-box",t.Deye="deye",t.E3dc="e3dc",t.FoxESS="foxess",t.Fronius="fronius",t.Goodwe="goodwe",t.GoodweGridMode="goodwe_gridmode",t.Growatt="growatt",t.Huawei="huawei",t.Lux="lux",t.MPPSolar="mppsolar",t.PowMr="powmr",t.SMASolar="smasolar",t.Solax="solax",t.SolarEdge="solaredge",t.Sofar="sofar",t.Solis="solis",t.Sungrow="sungrow",t.Sunsynk="sunsynk",t.Victron="victron"}(ft||(ft={})),function(t){t.Compact="compact",t.Lite="lite",t.Full="full"}(mt||(mt={})),function(t){t.Energy="energy",t.Power="power",t.No="no"}(_t||(_t={}));var vt={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"Køretid til",battery_floating:"BATTERI SVÆVER",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG FORBRUG",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF EL",daily_grid_sell:"DAGLIG SALG AF EL",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RESTERENDE ENERGI",total_solar_generation:"DAGLIG SOLAR / TOTAL SOLAR",daily_charge:"DAGLIG OPLADNING",daily_discharge:"DAGLIG AFLADNING",ratio:"Forhold",timer_off:"Timer slukket",timer_on:"Timer tændt",priority_batt:"Batteri Prioriteret",priority_load:"Forbrug Prioriteret",nonessential_name:"Uvæsentlig",aux_name:"Sekundær",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Væsentlig",autarky:"Autarky",discharging:"Aflader",charging:"Oplader",waiting:"Venter",standby:"Standby",no_battery:"Ingen batteri",selftest:"Selvtest",normal:"Normal",alarm:"Alarm",fault:"Fejl",days:"dage",hrs:"timer",min:"min",flash:"Flash",check:"Check",idle:"Inaktiv",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Slukket",offline:"Offline",running:"Kører",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},wt={battery:{bat:"Ingen batteriattributter defineret",energy:"Angiv venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Angiv venligst batteri shutdown_soc-attribut og værdi, f.eks. shutdown_soc: 20",full_capacity:"Fuld kapacitet skal være mellem 80 og 100",empty_capacity:"Tom kapacitet skal være <= 40",show_daily:"Angiv venligst day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen sol attributter defineret",mppts:"Angiv venligst attributten og værdien for sol-MPPT'er; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Angiv venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Angiv venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er ikke indstillet. Angiv venligst inverter_power_175-attribut og enheds-ID så kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Angiv venligst grid_power_169-attribut og enheds-ID så kortet kan beregne denne værdi.",missing_entity:"Angiv venligst attributten og enheds-ID'en"},xt={title:"Titel",title_colour:"Titel Farve",title_size:"Titel Størrelse (px)",card_height:"Card Højde (px)",card_width:"Card Bredde (px)",decimal_places:"Antal viste Decimaler",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",wide:"Wide Screen Layout",autarky:"Autarky",cardstyle:"Kortstil",large_font:"Stor Font",modern:"Moderne",show_solar:"Vis Solar",show_battery:"Vis Battery",show_grid:"Vis Grid",show_aux:"Vis Aux",dynamic_line_width:"Dynamisk Linje Bredde",max_line_width:"Max Linje Bredde",min_line_width:"Min Linje Bredde",solar:"Solar",mppts:"MPPTs",show_daily:"Vis Daglig",show_daily_aux:"Vis Daglig Aux",animation_speed:"Anim. Hast.",max_power:"Max Effekt",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Batteri",load1_name:"Load 1 Navn",load2_name:"Load 2 Navn",load3_name:"Load 3 Navn",load4_name:"Load 4 Navn",load1_icon:"Load 1 Ikon",load2_icon:"Load 2 Ikon",load3_icon:"Load 3 Ikon",load4_icon:"Load 4 Ikon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Navn",aux_load2_name:"Aux Load 2 Navn",aux_load1_icon:"Aux Load 1 Ikon",aux_load2_icon:"Aux Load 2 Ikon",show_daily_buy:"Vis Daglig Køb",show_daily_sell:"Vis Daglig Salg",no_grid_colour:"Ingen Grid Farve",grid_off_colour:"Grid Off Farve",grid_name:"Grid Navn",colour:"Farve",charge_colour:"Ladnings Farve",linear_gradient:"Lineær Gradient",animate:"Animate Linear Gradient",aux_colour:"Farve",aux_dynamic_colour:"Aux Dynamisk Farve",aux_off_colour:"Off Farve",off_threshold:"Off Threshold",invert_grid:"Inverter Værdier",invert_load:"Inverter Værdier",shutdown_soc:"Nedluknings SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energi",auto_scale:"Auto Skalering",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Farve",dynamic_icon:"Dynamisk Ikon",invert_power:"Inverter Effekt",show_absolute:"Vis Absolut",hide_soc:"Skjul SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Vis Absolut",show_nonessential:"Vis ikke Essentiel",aux_name:"Aux Navn",aux_daily_name:"Daglig Aux Navn",aux_type:"Aux Ikon",aux_loads:"Aux belastning",essential_name:"Essentielt Navn",additional_loads:"Ekstra Belastninger",export_colour:"Eksport Farve",nonessential_name:"Ikke Essentielt Navn",nonessential_icon:"Ikke Essentielt Ikon",energy_cost_decimals:"Energiudgift Decimaler",show_remaining_energy:"Vis resterende Energi",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Titel Options",general:"Generelle Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Batteri Options",grid:"Grid Options",load:"Belastnings Options",entities:"Entities",aux:"Aux Options",energy:"Energi Entities",bat:"Batteri Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Belastnings Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},bt={common:vt,errors:wt,config:xt},At={description:"Eine Home Assistant-Karte zur Emulation des Sunsynk-Stromflusses, der auf dem Inverter-Bildschirm angezeigt wird",version:"Version",runtime_to:"LAUFZEIT BIS",battery_floating:"BATTERIE haltend",charge:"AUFLADEN",to:"ZU",daily_load:"ENERGIE heute",daily_aux:"HILFSANTRIEB heute",daily_grid_buy:"NETZEINKAUF heute",daily_grid_sell:"NETZVERKAUF heute",daily_solar:"SOLAR heute",daily_solar_left:"SOLAR heute / VERBLEIBEND heute",total_solar_generation:"SOLAR heute / TOTAL SOLAR",daily_charge:"AUFLADUNG heute",daily_discharge:"ENTNAHME heute",ratio:"Verhältnis",timer_off:"Timer aus",timer_on:"Timer ein",priority_batt:"Batteriepriorität",priority_load:"Lastpriorität",nonessential_name:"Nebenverbraucher",aux_name:"Hilfsantrieb",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Hauptverbraucher",autarky:"Autark",discharging:"Entladen",charging:"Laden",waiting:"Warten",standby:"Bereitschaft",no_battery:"Keine Batterie",selftest:"Selbsttest",normal:"Normal",alarm:"Alarm",fault:"Fehler",days:"Tage",hrs:"Std",min:"Min",flash:"Flash",check:"Check",idle:"Leerlauf",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Pt={battery:{bat:"Keine Batterieattribute definiert",energy:"Bitte fügen Sie das Batterieenergieattribut und den Wert in Wh hinzu, z.B. 5.32 Batterieenergie: 5320",shutdown_soc:"Bitte fügen Sie das Batterie-Shutdown-SOC-Attribut und den Wert hinzu, z.B. shutdown_soc: 20",full_capacity:"Die volle Kapazität muss zwischen 80 und 100 liegen",empty_capacity:"Die leere Kapazität muss <= 40 sein",show_daily:"Bitte fügen Sie die Tages-Batterieladung_70- und Tages-Batterieentladung_71-Attribute und die Entity-IDs hinzu"},solar:{sol:"Keine Solarattribute definiert",mppts:"Bitte fügen Sie das Solar-MPPT-Attribut und den Wert hinzu; 1,2,3 oder 4 z.B. mppts: 2",show_daily:"Bitte fügen Sie das Tages-PV-Energie_108-Attribut und die Entity-ID hinzu"},grid:{show_daily:"Bitte fügen Sie die Tages-Grideinspeisung_76- und Tages-Gridexport_77-Attribute und die Entity-IDs hinzu"},essential_power:"Das Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Inverter-Power_175-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",nonessential_power:"Das Nicht-Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Grid-Power_169-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",missing_entity:"Bitte fügen Sie das Attribut und die Entity-ID hinzu"},Lt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",aux_dynamic_colour:"Aux Dynamic Colour",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Ct={common:At,errors:Pt,config:Lt},Et={description:"A Home Assistant card to emulate the Sunsynk power flow that's shown on the Inverter screen",version:"Version",runtime_to:"RUNTIME TO",battery_floating:"BATTERY FLOATING",charge:"CHARGE",to:"TO",daily_load:"DAILY LOAD",daily_aux:"DAILY AUX",daily_grid_buy:"DAILY GRID BUY",daily_grid_sell:"DAILY GRID SELL",daily_solar:"DAILY SOLAR",daily_solar_left:"DAILY SOLAR / LEFT TODAY",total_solar_generation:"DAILY SOLAR / TOTAL SOLAR",daily_charge:"DAILY CHARGE",daily_discharge:"DAILY DISCHARGE",ratio:"Ratio",timer_off:"Timer off",timer_on:"Timer on",priority_batt:"Priority Batt",priority_load:"Priority Load",nonessential_name:"Non Essential",aux_name:"Auxiliary",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essential",autarky:"Autarky",discharging:"Discharging",charging:"Charging",waiting:"Waiting",standby:"Standby",no_battery:"No Battery",selftest:"Selftest",normal:"Normal",alarm:"Alarm",fault:"Fault",days:"days",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Idle",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Nt={battery:{bat:"No battery attributes defined",energy:"Please include the battery energy attribute and value in Wh e.g. 5.32 Battery energy: 5320",shutdown_soc:"Please include the battery shutdown_soc attribute and value e.g shutdown_soc: 20",full_capacity:"Full capacity needs to be between 80 and 100",empty_capacity:"Empty capacity needs to be <= 40",show_daily:"Please include the day_battery_charge_70 and day_battery_discharge_71 attributes and entity IDs"},solar:{sol:"No solar attributes defined",mppts:"Please include the solar mppts attribute and value; 1,2,3 or 4 e.g. mppts: 2",show_daily:"Please include the day_pv_energy_108 attribute and entity ID"},grid:{show_daily:"Please include the day_grid_import_76 and day_grid_export_77 attributes and entity IDs"},essential_power:"The essential_power attribute is set to none. Please include the inverter_power_175 attribute and entity ID in order for the card to calculate this value.",nonessential_power:"The nonessential_power attribute is set to none. Please include the grid_power_169 attribute and entity ID in order for the card to calculate this value.",missing_entity:"`Please include the attribute and entity ID"},Mt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",wide:"Wide Screen Layout",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",off_threshold:"Off Threshold",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},kt={common:Et,errors:Nt,config:Mt},St={description:"Una tarjeta de Home Assistant para emular el flujo de energía Sunsynk que se muestra en la pantalla del inversor",version:"Versión",runtime_to:"TIEMPO DE FUNCIONAMIENTO HASTA",battery_floating:"BATERÍA EN FLOTACIÓN",charge:"CARGA",to:"A",daily_load:"CARGA DIARIA",daily_aux:"AUXILIAR DIARIO",daily_grid_buy:"COMPRA DIARIA DE LA RED",daily_grid_sell:"VENTA DIARIA A LA RED",daily_solar:"SOLAR DIARIO",daily_solar_left:"SOLAR DIARIO / LO QUE QUEDA HOY",total_solar_generation:"SOLAR DIARIO / TOTAL SOLAR",daily_charge:"CARGA DIARIA",daily_discharge:"DESCARGA DIARIA",ratio:"Relación",timer_off:"Temporizador apagado",timer_on:"Temporizador encendido",priority_batt:"Prioridad de la Batería",priority_load:"Prioridad de la Carga",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Esencial",autarky:"Autarky",discharging:"Descargando",charging:"Cargando",waiting:"Esperando",standby:"En Espera",no_battery:"Sin Batería",selftest:"Autoevaluación",normal:"Normal",alarm:"Alarma",fault:"Fallo",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inactivo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Ot={battery:{bat:"No se han definido atributos de la batería",energy:"Por favor, incluye el atributo de energía de la batería y su valor en Wh, por ejemplo, 5.32 Energía de la batería: 5320",shutdown_soc:"Por favor, incluye el atributo shutdown_soc de la batería y su valor, por ejemplo shutdown_soc: 20",full_capacity:"La capacidad completa debe estar entre 80 y 100",empty_capacity:"La capacidad vacía debe ser <= 40",show_daily:"Por favor, incluye los atributos day_battery_charge_70 y day_battery_discharge_71 y las IDs de las entidades"},solar:{sol:"No se han definido atributos solares",mppts:"Por favor, incluye el atributo mppts solares y su valor; 1,2,3 o 4, por ejemplo, mppts: 2",show_daily:"Por favor, incluye el atributo day_pv_energy_108 y la ID de la entidad"},grid:{show_daily:"Por favor, incluye los atributos day_grid_import_76 y day_grid_export_77 y las IDs de las entidades"},essential_power:"El atributo essential_power está configurado como ninguno. Por favor, incluye el atributo inverter_power_175 y la ID de la entidad para que la tarjeta pueda calcular este valor.",nonessential_power:"El atributo nonessential_power está configurado como ninguno. Por favor, incluye el atributo grid_power_169 y la ID de la entidad para que la tarjeta pueda calcular este valor.",missing_entity:"Por favor, incluye el atributo y la ID de la entidad"},Bt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Tt={common:St,errors:Ot,config:Bt},It={description:"Home Assistant kaart Sunsynk võimsusvoogu emuleerimiseks, mis kuvatakse inverteri ekraanil",version:"Versioon",runtime_to:"TÖÖAEG KUNI",battery_floating:"UJUV AKU",charge:"LAADIMINE",to:"KUNI",daily_load:"PÄEVA KOORMUS",daily_aux:"PÄEVA ABISTAV",daily_grid_buy:"PÄEVA VÕRGUST OST",daily_grid_sell:"PÄEVA VÕRGU MÜÜK",daily_solar:"PÄEVA PÄIKE",daily_solar_left:"PÄEVA PÄIKE / TÄNA JÄÄNUD",total_solar_generation:"PÄEVA PÄIKE / TOTAL SOLAR",daily_charge:"PÄEVA LAADIMINE",daily_discharge:"PÄEVA TÜHJENDAMINE",ratio:"Suhe",timer_off:"Ajastus välja",timer_on:"Ajastus sisse",priority_batt:"Akuprioriteet",priority_load:"Koormuse prioriteet",nonessential_name:"Mitteoluline",aux_name:"Abiseadmed",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Oluline",autarky:"Autarky",discharging:"Tühjenemine",charging:"Laadimine",waiting:"Ootamine",standby:"Ooterežiim",no_battery:"Puudub aku",selftest:"Eneseanalüüs",normal:"Tavaline",alarm:"Häire",fault:"Rike",days:"päeva",hrs:"tundi",min:"min",flash:"Flash",check:"Check",idle:"Tühikäik",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Dt={battery:{bat:"Aku atribuute pole määratletud",energy:"Palun sisestage aku energiat atribuut ja väärtus Wh-s, näiteks 5,32 Aku energia: 5320",shutdown_soc:"Palun sisestage aku shutdown_soc atribuut ja väärtus, näiteks shutdown_soc: 20",full_capacity:"Täiskasvanu maht peab olema vahemikus 80 kuni 100",empty_capacity:"Tühi mahutavus peab olema <= 40",show_daily:"Palun sisestage päeva_battery_charge_70 ja päeva_battery_discharge_71 atribuudid ning seadmete ID-d"},solar:{sol:"Päikesepaneelide atribuute pole määratletud",mppts:"Palun sisestage päikesepaneelide mppts atribuut ja väärtus; 1,2,3 või 4, näiteks mppts: 2",show_daily:"Palun sisestage päeva_pv_energy_108 atribuut ja seadme ID"},grid:{show_daily:"Palun sisestage päeva_grid_import_76 ja päeva_grid_export_77 atribuudid ning seadmete ID-d"},essential_power:"Olulise võimsuse atribuut on määratud puuduvaks. Palun sisestage inverteri_power_175 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",nonessential_power:"Mittetähtsa võimsuse atribuut on määratud puuduvaks. Palun sisestage võrgu_power_169 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",missing_entity:"Sisestage palun atribuut ja seadme ID"},Vt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Gt={common:It,errors:Dt,config:Vt},zt={description:"Une carte Home Assistant pour émuler les flux d'énergie affichés à l'écran des onduleurs Sunsynk ",version:"Version",runtime_to:"DÉCHARGÉE À",battery_floating:"BATTERIE FLOTTANTE",charge:"CHARGE",to:"À",daily_load:"CHARGE (JOUR)",daily_aux:"CHARGE AUX (JOUR)",daily_grid_buy:"ACHAT (JOUR)",daily_grid_sell:"VENTE (JOUR)",daily_solar:"PRODUCTION (JOUR)",daily_solar_left:"PRODUCTION / RESTANT (JOUR)",total_solar_generation:"PRODUCTION / TOTAL SOLAR",daily_charge:"CHARGE (JOUR)",daily_discharge:"DÉCHARGE (JOUR)",ratio:"Ratio",timer_off:"Prog. Off",timer_on:"Prog. On",priority_batt:"Batterie en 1er",priority_load:"Charges en 1er",nonessential_name:"Non Essentielles",aux_name:"Auxiliaire",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentielles",autarky:"AutoConso",discharging:"Décharge",charging:"Charge",waiting:"En attente",standby:"Veille",no_battery:"Pas de batterie",selftest:"Auto-test",normal:"Normal",alarm:"Alarme",fault:"Défaut",days:"jours",hrs:"heures",min:"min",flash:"Flash",check:"Check",idle:"Inactif",exporting:"Exportation",importing:"Importation",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Réseau",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Rt={battery:{bat:"Aucun attribut de batterie défini",energy:"Veuillez inclure l'attribut d'énergie de la batterie et la valeur en Wh, par exemple 5.32 Énergie de la batterie : 5320",shutdown_soc:"Veuillez inclure l'attribut de batterie shutdown_soc et la valeur, par exemple shutdown_soc : 20",full_capacity:"La capacité totale doit être comprise entre 80 et 100",empty_capacity:"La capacité vide doit être <= 40",show_daily:"Veuillez inclure les attributs day_battery_charge_70 et day_battery_discharge_71 ainsi que les ID d'entité"},solar:{sol:"Aucun attribut solaire défini",mppts:"Veuillez inclure l'attribut solaire mppts et la valeur ; 1,2,3 ou 4 par exemple mppts : 2",show_daily:"Veuillez inclure l'attribut day_pv_energy_108 et l'ID d'entité"},grid:{show_daily:"Veuillez inclure les attributs day_grid_import_76 et day_grid_export_77 ainsi que les ID d'entité"},essential_power:"L'attribut essential_power est réglé sur 'none'. Veuillez inclure l'attribut inverter_power_175 et l'ID d'entité afin que la carte puisse calculer cette valeur.",nonessential_power:"L'attribut nonessential_power est réglé sur 'none'. Veuillez inclure l'attribut grid_power_169 et l'ID d'entité afin que la carte puisse calculer cette valeur.",missing_entity:"Veuillez inclure l'attribut et l'ID d'entité"},jt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Ht={common:zt,errors:Rt,config:jt},Wt={description:"Een Home Assistant-kaart om de Sunsynk energiestroom te emuleren die op het omvormerscherm wordt weergegeven",version:"Versie",runtime_to:"WERKTIJD TOT",battery_floating:"DRIJVENDE BATTERIJ",charge:"LADEN",to:"TOT",daily_load:"DAGELIJKSE BELASTING",daily_aux:"DAGELIJKSE HULP",daily_grid_buy:"DAGELIJKS NETSTROOM KOPEN",daily_grid_sell:"DAGELIJKSE NETSTROOM VERKOPEN",daily_solar:"DAGELIJKSE ZONNE-ENERGIE",daily_solar_left:"DAGELIJKSE ZONNE-ENERGIE / OVER VANDAAG",total_solar_generation:"DAGELIJKSE ZONNE-ENERGIE / TOTAL SOLAR",daily_charge:"DAGELIJKSE LADING",daily_discharge:"DAGELIJKSE ONTLADING",ratio:"Verhouding",timer_off:"Timer uit",timer_on:"Timer aan",priority_batt:"Batterijprioriteit",priority_load:"Belastingsprioriteit",nonessential_name:"Niet-Essentieel",aux_name:"Hulp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentieel",autarky:"Autarky",discharging:"Ontladen",charging:"Opladen",waiting:"Wachten",standby:"Standby",no_battery:"Geen batterij",selftest:"Zelftest",normal:"Normaal",alarm:"Alarm",fault:"Fout",days:"dagen",hrs:"uren",min:"minuten",flash:"Flash",check:"Check",idle:"Inactief",exporting:"Exporteren",importing:"Importeren",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Ut={battery:{bat:"Geen batterijattributen gedefinieerd",energy:"Voeg alstublieft het batterij-energieattribuut en de waarde in Wh toe, bijvoorbeeld 5.32 Batterij-energie: 5320",shutdown_soc:"Voeg alstublieft het batterij-shutdown_soc-attribuut en de waarde toe, bijvoorbeeld shutdown_soc: 20",full_capacity:"De volledige capaciteit moet tussen 80 en 100 liggen",empty_capacity:"De lege capaciteit moet <= 40 zijn",show_daily:"Voeg alstublieft de attributen day_battery_charge_70 en day_battery_discharge_71 toe, evenals de entiteits-ID's"},solar:{sol:"Geen zonne-attributen gedefinieerd",mppts:"Voeg alstublieft het zonne-mppts-attribuut en de waarde toe; 1,2,3 of 4 bijvoorbeeld mppts: 2",show_daily:"Voeg alstublieft het day_pv_energy_108-attribuut en de entiteits-ID toe"},grid:{show_daily:"Voeg alstublieft de attributen day_grid_import_76 en day_grid_export_77 toe, evenals de entiteits-ID's"},essential_power:"Het essential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het inverter_power_175-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",nonessential_power:"Het nonessential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het grid_power_169-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",missing_entity:"Voeg alstublieft het attribuut en de entiteits-ID toe"},Ft={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Qt={common:Wt,errors:Ut,config:Ft},Zt={description:"Карта Home Assistant для эмуляции потока энергии Sunsynk, отображаемого на экране инвертора",version:"Версия",runtime_to:"ВРЕМЯ ДО",battery_floating:"ПЛАВАЮЩАЯ БАТАРЕЯ",charge:"ЗАРЯД",to:"ДО",daily_load:"НАГРУЗКА",daily_aux:"ВСПОМОГАТЕЛЬНАЯ",daily_grid_buy:"ПОКУПКА ИЗ СЕТИ",daily_grid_sell:"ПРОДАЖА В СЕТЬ",daily_solar:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_solar_left:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ОСТАЛОСЬ СЕГОДНЯ",total_solar_generation:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ИТОГО СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_charge:"ЗАРЯД",daily_discharge:"РАЗРЯД",ratio:"Соотношение",timer_off:"Таймер выключен",timer_on:"Таймер включен",priority_batt:"Приоритет батареи",priority_load:"Приоритет нагрузки",nonessential_name:"Не существенное",aux_name:"Вспомогательное",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Существенное",autarky:"Autarky",discharging:"Разряд",charging:"Заряд",waiting:"Ожидание",standby:"Режим ожидания",no_battery:"Без батареи",selftest:"Самодиагностика",normal:"Нормально",alarm:"Авария",fault:"Неисправность",days:"дни",hrs:"часов",min:"мин",flash:"Flash",check:"Check",idle:"Бездействие",exporting:"Экспорт",importing:"Импорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:"Остановка",shutdown:"Отключение",offline:"Оффлайн",running:"Работает",sleepmode:"Спящий Режим",grid_name:"Сеть",limit:"Лимит",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Yt={battery:{bat:"Не определены атрибуты батареи",energy:"Пожалуйста, включите атрибут батарейной энергии и значение в Втч, например, 5.32 Энергия батареи: 5320",shutdown_soc:"Пожалуйста, включите атрибут батарейного shutdown_soc и значение, например, shutdown_soc: 20",full_capacity:"Полная емкость должна быть в диапазоне от 80 до 100",empty_capacity:"Пустая емкость должна быть <= 40",show_daily:"Пожалуйста, включите атрибуты day_battery_charge_70 и day_battery_discharge_71 и идентификаторы сущностей"},solar:{sol:"Не определены атрибуты солнечной энергии",mppts:"Пожалуйста, включите атрибут солнечных mppts и значение; 1,2,3 или 4, например, mppts: 2",show_daily:"Пожалуйста, включите атрибут day_pv_energy_108 и идентификатор сущности"},grid:{show_daily:"Пожалуйста, включите атрибуты day_grid_import_76 и day_grid_export_77 и идентификаторы сущностей"},essential_power:"Атрибут essential_power установлен на 'none'. Пожалуйста, включите атрибут inverter_power_175 и идентификатор сущности, чтобы карта могла вычислить это значение.",nonessential_power:"Атрибут nonessential_power установлен на 'none'. Пожалуйста, включите атрибут grid_power_169 и идентификатор сущности, чтобы карта могла вычислить это значение.",missing_entity:"Пожалуйста, включите атрибут и идентификатор сущности"},Xt={title:"Заголовок",title_colour:"Цвет Заголовка",title_size:"Размер Заголовка (px)",card_height:"Высота Карточки (px)",card_width:"Ширина Карточки (px)",decimal_places:"Десятичные Знаки",decimal_places_energy:"Десятичные Знаки (Ежедневная Енергия)",model:"Модель",autarky:"Autarky",cardstyle:"Стиль Карточки",large_font:"Увеличенный Шрифт",modern:"Современный Инвертор",show_solar:"Показать PV",show_battery:"Показать Батарею",show_grid:"Показать Сеть",show_aux:"Показать Вспомогательный",dynamic_line_width:"Динамические линии",max_line_width:"Макс. Ширина Линий",min_line_width:"Мин. Ширина Линий",solar:"Solar",mppts:"MPPTs",show_daily:"Ежедневный Показатель",show_daily_aux:"Ежедневный показатель вспомогательный",animation_speed:"Скорость Анимации",max_power:"Макс. Мощность",pv1_max_power:"PV1 Макс. Мощность",pv2_max_power:"PV2 Макс. Мощность",pv3_max_power:"PV3 Макс. Мощность",pv4_max_power:"PV4 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",display_mode:"Режим Отображения",efficiency:"Режим Эффективности",battery:"Батарея",load1_name:"Нагрузка 1 Название",load2_name:"Нагрузка 2 Название",load3_name:"Нагрузка 3 Название",load4_name:"Нагрузка 4 Название",load1_icon:"Нагрузка 1 Иконка",load2_icon:"Нагрузка 2 Иконка",load3_icon:"Нагрузка 3 Иконка",load4_icon:"Нагрузка 4 Иконка",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Вспом. Нагр. 1 Название",aux_load2_name:"Вспом. Нагр. 2 Название",aux_load1_icon:"Вспом. Нагр. 2 Иконка",aux_load2_icon:"Вспом. Нагр. 2 Иконка",aux_dynamic_colour:"Вспом. Нагр. Динамический Цвет",show_daily_buy:"Показать Ежедневную Покупку",show_daily_sell:"Показать Ежедневную Продажу",no_grid_colour:"Нет Сети Цвет",grid_off_colour:"Сеть Отключена Цвет",grid_name:"Название Сети",colour:"Цвет",charge_colour:"Цвет Зарядки",linear_gradient:"Градиент",animate:"Анимированный Градиент",aux_colour:"Цвет",aux_off_colour:"Цвет выключенного",off_threshold:"Off Threshold",invert_grid:"Инвертировать показания",invert_load:"Инвертировать показания",shutdown_soc:"% Отключения",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Энергия",auto_scale:"Масштабирование",three_phase:"Три Фазы",dynamic_colour:"Динамический Цвет",dynamic_icon:"Динамическая Иконка",invert_power:"Инвертировать Мощность",show_absolute:"Убрать Отрицательные",hide_soc:"Скрыть SOC",invert_aux:"Инвертировать Вспомогательную",show_absolute_aux:"Убрать Отрицательные",show_nonessential:"Показать Не Обязательную Нагрузку",aux_name:"Название вспомогательного",aux_daily_name:"Название вспомогательного ежедневного",aux_type:"Тип вспомогательного",aux_loads:"Нагрузка вспомогательного",essential_name:"Название Обязательной Нагрузки",additional_loads:"Количество Нагрузок",export_colour:"Цвет Экспорта",nonessential_name:"Название Не Обязательной Нагрузки",nonessential_icon:"Иконка Не Обязательной Нагрузки",energy_cost_decimals:"Разрядность Стоимости Энергии",show_remaining_energy:"Показать Остаток Энергии",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Параметры Заголовка",general:"Общие Настройки",inverter:"Настройки Инвертора",solar:"Настройки Солнечного Поля",battery:"Настройки Батареи",grid:"Настройки Сети",load:"Настройки Нагрузки",entities:"Сущности",aux:"Настройки Всп. Нагрузки",energy:"Сущности Энергии",bat:"Сущности Батареи",sol:"Сущности Солнечного Поля",inv:"Сущности Инвертора",ld:"Сущности Нагрузки",gri:"Сущности Сети",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},Kt={common:Zt,errors:Yt,config:Xt},Jt={description:"Karta Home Assistant pro emulaci toku energie, který je zobrazen na displeji měniče Sunsynk",version:"Verze",runtime_to:"ČAS DO",battery_floating:"BATERIE JE NABITÁ",charge:"NABÍT",to:"DO",daily_load:"DNES SPOTŘEBA",daily_aux:"DENNÍ VSTUP",daily_grid_buy:"DNES NÁKUP",daily_grid_sell:"DNES PRODEJ",daily_solar:"DNES VÝROBA",daily_solar_left:"DNES VÝROBA / OČEKÁVANÁ VÝROBA",total_solar_generation:"DNES VÝROBA / CELKOVÁ VÝROBA",daily_charge:"DNES NABÍJENÍ",daily_discharge:"DNES VYBÍJENÍ",ratio:"Poměr",timer_off:"Časovač off",timer_on:"Časovač on",priority_batt:"Nabít Baterii z DS",priority_load:"Nabíjím Baterii z DS",nonessential_name:"Nedostupné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Nezbytný",autarky:"Vlastní",discharging:"Vybíjí se",charging:"Nabíjí se",waiting:"Čeká",standby:"Standby",no_battery:"Není baterie",selftest:"Vlastní test",normal:"Normální",alarm:"Alarm",fault:"Chyba",days:"dní",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinný",exporting:"Odesílání",importing:"Příjem",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Omezení",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},qt={battery:{bat:"Nejsou definovány žádné atributy baterie",energy:"Uveďte prosím atribut energie baterie a hodnotu ve Wh, např. 5,32 Energie baterie: 5320",shutdown_soc:"Uveďte atribut battery shut down_soc a hodnotu, např. shutdown_soc: 20 shutdown_soc: 20",full_capacity:"Plná kapacita musí být mezi 80 a 100",empty_capacity:"Prázdná kapacita musí být <= 40",show_daily:"Uveďte prosím atributy day_battery_charge_70 a day_battery_discharge_71 a ID entit"},solar:{sol:"Nejsou definovány žádné solar atributy",mppts:"Uveďte prosím atribut a hodnotu solar mppts; 1,2,3 nebo 4 např. mppts: 2",show_daily:"Uveďte prosím atribut day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte prosím atributy day_grid_import_76 a day_grid_export_77 a ID entit"},essential_power:"Atribut essential_power je nastaven na hodnotu none. Uveďte prosím atribut inverter_power_175 a ID entity, aby karta mohla vypočítat tuto hodnotu.",nonessential_power:"Atribut neesenciální_výkon je nastaven na hodnotu none. Uveďte prosím atribut grid_power_169 a ID entity, aby karta mohla vypočítat tuto hodnotu.",missing_entity:"Uveďte prosím atribut a ID entity"},$t={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",wide:"Wide Screen Layout",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",aux_dynamic_colour:"Aux Dynamic Colour",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},te={common:Jt,errors:qt,config:$t},ee={description:"Una scheda Home Assistant per emulare il flusso di potenza Sunsynk visualizzato sullo schermo dell'inverter",version:"Versione",runtime_to:"DURATA AL",battery_floating:"BATTERY CARICA",charge:"CARICA",to:"A",daily_load:"CONSUMO OGGI",daily_aux:"AUX OGGI",daily_grid_buy:"PRELIEVO OGGI DA RETE",daily_grid_sell:"CESSIONE OGGI IN RETE",daily_solar:"ENERGIA SOLARE OGGI",daily_solar_left:"ENERGIA SOLARE OGGI / STIMA RIMANENTE",total_solar_generation:"ENERGIA SOLARE OGGI / TOTAL SOLAR",daily_charge:"CARICA OGGI",daily_discharge:"SCARICA OGGI",ratio:"Autoconsumo",timer_off:"Spegnimento timer",timer_on:"Accensione timer",priority_batt:"Priorità batteria",priority_load:"Priorità carico",nonessential_name:" Non Essenziale",aux_name:"Ausiliario",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essenziale",autarky:"Autosuff.",discharging:"Scarica",charging:"Carica",waiting:"In attesa",standby:"Standby",no_battery:"Nessuna batteria",selftest:"Auto-test",normal:"Normale",alarm:"Allarme",fault:"Guasto",days:"giorni",hrs:"ore",min:"min",flash:"Flash",check:"Check",idle:"Inattivo",exporting:"Esportazione",importing:"Importazione",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},ne={battery:{bat:"Nessun attributo della batteria definito",energy:"Si prega di includere l'attributo dell'energia della batteria e il valore in Wh, ad esempio 5,32 Energia della batteria: 5320",shutdown_soc:"Si prega di includere l'attributo di spegnimento della batteria e il valore, ad esempio spegnimento_soc: 20",full_capacity:"La capacità massima deve essere compresa tra 80 e 100",empty_capacity:"La capacità vuota deve essere <= 40",show_daily:"Si prega di includere gli attributi day_battery_charge_70 e day_battery_discharge_71 e gli ID delle entità"},solar:{sol:"Nessun attributo solare definito",mppts:"Si prega di includere l'attributo solare mppts e il valore; 1,2,3 o 4, ad esempio mppts: 2",show_daily:"Si prega di includere l'attributo day_pv_energy_108 e l'ID dell'entità"},grid:{show_daily:"Si prega di includere gli attributi day_grid_import_76 e day_grid_export_77 e gli ID delle entità"},essential_power:"L'attributo essential_power è impostato su none. Si prega di includere l'attributo inverter_power_175 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",nonessential_power:"L'attributo nonessential_power è impostato su none. Si prega di includere l'attributo grid_power_169 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",missing_entity:"Si prega di includere l'attributo e l'ID dell'entità"},ae={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",label_daily_load:"Daily Load Label",invert_flow:"Invert Flow",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},oe={common:ee,errors:ne,config:ae},ie={description:"Una tarjeta de Home Assistant per emular el flxue d'energoa Sunsynk que es mostra a la pantalla de l'inversor",version:"Versió",runtime_to:"TEMPS FUNCIONAMENT FINS",battery_floating:"BATERIA EN FLOTACIÓ",charge:"CÀRREGA",to:"A",daily_load:"CÀRREGA DIÀRIA",daily_aux:"AUXILIAR DIARI",daily_grid_buy:"COMPRA DIÀRIA XARXA",daily_grid_sell:"VENDA DIÀRIA XARXA",daily_solar:"SOLAR DIARI",daily_solar_left:"SOLAR DIARI / RESTA AVUI",total_solar_generation:"SOLAR DIARI / TOTAL SOLAR",daily_charge:"CÀRREGA DIÀRIA",daily_discharge:"DESCÀRREGA DIÀRIA",ratio:"Relació",timer_off:"Temporitzador apagat",timer_on:"Temporitzador encès",priority_batt:"Prioritat de la Bateria",priority_load:"Prioritat de la Càrrega",nonessential_name:"No Essencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Esencial",autarky:"Autarquia",discharging:"Descàrrega",charging:"Càrrega",waiting:"Esperant",standby:"En espera",no_battery:"Sense bateria",selftest:"Prova automàtica",normal:"Normal",alarm:"Alarma",fault:"Avaria",days:"dies",hrs:"hrs",min:"min",flash:"Flash",check:"Comprova",idle:"Inactiu",exporting:"Exportació",importing:"Importació",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorció",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"Control Extern"},re={battery:{bat:"No s'han definit atributs de la bateria",energy:"Si us plau, inclou l'atribut d'energia de la bateria i el seu valor a Wh, per exemple, 5.32 Energia de la bateria: 5320",shutdown_soc:"Si us plau, inclou l'atribut shutdown_soc de la bateria i el seu valor, per exemple shutdown_soc: 20",full_capacity:"La capacitat completa ha d'estar entre 80 i 100",empty_capacity:"La capacitat buida ha de ser <= 40",show_daily:"Si us plau, inclou els atributs day_battery_charge_70 i day_battery_discharge_71 i les IDs de les entitats"},solar:{sol:"No s'han definit cap atribut solar",mppts:"Si us plau, inclou l'atribut mppts solars i el seu valor; 1,2,3 o 4, per exemple, mppts: 2",show_daily:"Si us plau, inclou l'atribut day_pv_energy_108 i la ID de l'entitat"},grid:{show_daily:"Si us plau, inclou els atributs day_grid_import_76 i day_grid_export_77 i les IDs de les entitats"},essential_power:"L'atribut essential_power està configurat com a cap. Inclou l'atribut inverter_power_175 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",nonessential_power:"L'atribut nonessential_power està configurat com a cap. Inclou l'atribut grid_power_169 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",missing_entity:"Si us plau, inclou l'atribut i la ID de l'entitat"},se={title:"Títol",title_colour:"Color Títol",title_size:"Mida Títol (px)",decimal_places:"Posicions Decimals",decimal_places_energy:"Posicions Decimals (Energia Diaria)",card_height:"Alçada Targeta (px)",card_width:"Amplada Targeta (px)",model:"Model",wide:"Wide Screen Layout",autarky:"Autarquia",cardstyle:"Estil Targeta",large_font:"Font Gran",modern:"Modern",show_solar:"Mostra Solar",show_battery:"Mostra Bateria",show_grid:"Mostra Xarxa",show_aux:"Mostra Aux",dynamic_line_width:"Gruix Línia Dinàmic",max_line_width:"Màx. Gruix Línia",min_line_width:"Min Gruix Línia",solar:"Solar",mppts:"MPPTs",show_daily:"Mostra Diari",show_daily_aux:"Mostra Diari Aux",animation_speed:"Anim. Velocitat",max_power:"Màxima Potència",pv1_max_power:"Màxima Potència PV1",pv2_max_power:"Màxima Potència PV2",pv3_max_power:"Màxima Potència PV3",pv4_max_power:"Màxima Potència PV4",pv1_name:"Nom PV1",pv2_name:"Nom PV2",pv3_name:"Nom PV3",pv4_name:"Nom PV4",display_mode:"Mode Visualització",efficiency:"Mode d'Eficiència",battery:"Bateria",load1_name:"Nom Càrrega 1",load2_name:"Nom Càrrega 2",load3_name:"Nom Càrrega 3",load4_name:"Nom Càrrega 4",load1_icon:"Icona Càrrega 1",load2_icon:"Icona Càrrega 2",load3_icon:"Icona Càrrega 3",load4_icon:"Icona Càrrega 4",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Nom Càrrega Aux 1",aux_load2_name:"Nom Càrrega Aux 2",aux_load1_icon:"Icona Càrrega Aux 1",aux_load2_icon:"Icona Càrrega Aux 2",show_daily_buy:"Mostra Compra diària",show_daily_sell:"Mostra Venta diària",no_grid_colour:"Xarxa Sense Color",grid_off_colour:"Color Xarxa Caiguda",grid_name:"Nom Xarxa",colour:"Color",charge_colour:"Color Càrrega",linear_gradient:"Gradient Lineal",animate:"Gradient Lineal Animat",aux_colour:"Color",aux_off_colour:"Color Caigut",off_threshold:"Umbral de Caiguda",invert_grid:"Invertir Valors",invert_load:"Invertir Valors",shutdown_soc:"SOC d'Apagada",shutdown_soc_offgrid:"SOC d'Apagada (Sense Xarxa)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energia",auto_scale:"Escala Automàtica",three_phase:"Trifàsic",dynamic_colour:"Color Dinàmic",aux_dynamic_colour:"Color Dinàmic Aux",dynamic_icon:"Icona Dinàmica",invert_power:"Invertir Potència",show_absolute:"Mostra Absoluts",hide_soc:"Oculta SOC",invert_aux:"Invertir Aux",show_absolute_aux:"Mostra Absoluts",show_nonessential:"Mostra No Essencial",aux_name:"Nom Aux",aux_daily_name:"Nom Diari Aux",aux_type:"Icona Aux",aux_loads:"Càrregues Aux",essential_name:"Nom Essencials",additional_loads:"Càrregues addicionals",export_colour:"Color Exportació",nonessential_name:"Nom No Essencials",nonessential_icon:"Icona No Essencials",energy_cost_decimals:"Decimals Cost Energia",show_remaining_energy:"Mostra Energia Romanent",path_threshold:"Umbral Ruta",label_daily_grid_buy:"Etiqueta Compra Diària Xarxa",label_daily_grid_sell:"Etiqueta Venta Diària Xarxa",invert_flow:"Invert Flow",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Opcions Títol",general:"Opcions Generals",inverter:"Opcions Inversor",solar:"Opcions Solar",battery:"Opcions Bateria",grid:"Opcions Xarxa",load:"Opcions Càrrega",entities:"Entitats",aux:"Opcions Aux",energy:"Entitats Energia",bat:"Entitats Bateria",sol:"Entitats Solar",inv:"Entitats Inversor",ld:"Entitats Càrrega",gri:"Entitats Xarxa",sensor:"Sensors Opcionals",bat1:"Battery 1",bat2:"Battery 2"}},le={common:ie,errors:re,config:se},de={description:"Karta Home Assistant na emuláciu Sunsynk power flow, ktorý sa zobrazuje na obrazovke invertora",version:"Verzia",runtime_to:"RUNTIME DO",battery_floating:"PLÁVAJÚCA BATÉRIA",charge:"NABÍJANIE",to:"DO",daily_load:"DENNÁ ZÁŤAŽ",daily_aux:"DAILY POM",daily_grid_buy:"SIEŤ DENNÝ NÁKUP",daily_grid_sell:"SIEŤ DENNÝ PREDAJ",daily_solar:"DENNÝ SLNKO",daily_solar_left:"DENNÉ SLNKO / ZOSTÁVA DNES",total_solar_generation:"DENNÉ SLNKO / CELKOVO SLNKO",daily_charge:"DENNÉ NABÍJANIE",daily_discharge:"DENNÉ VYBÍJANIE",ratio:"Pomer",timer_off:"Časovač vypnutý",timer_on:"Časovač zapnutý",priority_batt:"Priorita Bat",priority_load:"Priorita Záťaž",nonessential_name:"Nepodstatné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Podstatné",autarky:"Autarky",discharging:"Vykladanie",charging:"Nabíjanie",waiting:"Čakanie",standby:"Pohotovostný režim",no_battery:"Žiadna batéria",selftest:"Samotest",normal:"Normálny",alarm:"Poplach",fault:"Porucha",days:"dni",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinnosť",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},ce={battery:{bat:"Nie sú definované žiadne atribúty batérie",energy:"Uveďte atribút energie batérie a hodnotu vo Wh, napr. 5,32 Energia batérie: 5320",shutdown_soc:"Uveďte atribút vypnutia batérie a hodnotu, napr. shutdown_soc: 20",full_capacity:"Plná kapacita musí byť medzi 80 a 100",empty_capacity:"Prázdna kapacita musí byť <= 40",show_daily:"Uveďte atribúty day_battery_charge_70 a day_battery_discharge_71 a ID entity"},solar:{sol:"Nie sú definované žiadne solárne atribúty",mppts:"Uveďte atribút a hodnotu solar mppts; 1,2,3 alebo 4 napr. mppts: 2",show_daily:"Uveďte atribút day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte atribúty day_grid_import_76 a day_grid_export_77 a ID entity"},essential_power:"Atribút essential_power je nastavený na hodnotu none. Uveďte atribút inverter_power_175 a ID entity, aby karta vypočítala túto hodnotu.",nonessential_power:"Atribút noesential_power je nastavený na hodnotu none. Uveďte atribút grid_power_169 a ID entity, aby karta vypočítala túto hodnotu.",missing_entity:"`Uveďte atribút a ID entity"},ue={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",off_threshold:"Off Threshold",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_daily_name:"Daily Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},ye={common:de,errors:ce,config:ue},he={description:"Um Card para o Home Assistant que ajuda a emular o fluxo de energia exibido na tela do inversor",version:"Versão",runtime_to:"TEMPO DE ATIVIDADE",battery_floating:"FLUTUAÇÃO DA BATERIA",charge:"CARGA",to:"PARA",daily_load:"USO DIÁRIO",daily_aux:"AUXILIAR DIÁRIO",daily_grid_buy:"CONSUMO DIÁRIO",daily_grid_sell:"ENVIO DIÁRIO",daily_solar:"SOLAR DIÁRIO",daily_solar_left:"PRODUÇÃO DIÁRIA / RESTANTE DIÁRIO",total_solar_generation:"PRODUÇÃO DIÁRIA / PREVISÃO SOLAR",daily_charge:"CARGA DIÁRIA",daily_discharge:"DESCARGA DIÁRIA",ratio:"Proporção",timer_off:"Temporizador desligado",timer_on:"Temporizador ligado",priority_batt:"Prioridade da Bateria",priority_load:"Prioridade de Uso",nonessential_name:"Desnecessário",aux_name:"Auxiliar",pv1_name:"PFV1",pv2_name:"PFV2",pv3_name:"PFV3",pv4_name:"PFV4",essential:"Essencial",autarky:"Autoconsumo",discharging:"Descaregando",charging:"Caregando",waiting:"Aguardando",standby:"Em espera",no_battery:"Sem Bateria",selftest:"Autoteste",normal:"Normal",alarm:"Alarme",fault:"Falta",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inativo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Parado",shutdown:"Desligar",offline:"Offline",running:"Rodando",sleepmode:"Dormindo",grid_name:"Rede",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},ge={battery:{bat:"Nenhum atributo de bateria definido",energy:"Inclua o atributo de energia da bateria e seu valor em Wh, por exemplo: 5,32 Potência da bateria: 5320",shutdown_soc:"Inclua o atributo shutdown_soc da bateria e seu valor, por exemplo shutdown_soc: 20",full_capacity:"A capacidade total deve estar entre 80 e 100",empty_capacity:"A capacidade vazia deve ser <= 40",show_daily:"Por favor, inclua os atributos day_battery_charge_70 e day_battery_discharge_71 e os IDs das entidade"},solar:{sol:"Nenhum atributo solar definido",mppts:"Por favor, inclua o atributo solar mppts e seu valor; 1,2,3 ou 4, por exemplo, mppts: 2",show_daily:"Por favor, inclua o atributo day_pv_energy_108 e o ID da entidade"},grid:{show_daily:"Por favor, inclua os atributos day_grid_import_76 e day_grid_export_77 e os IDs das entidade"},essential_power:"O atributo Essential_Power está definido como nenhum. Inclua o atributo inverter_power_175 e o ID da entidade para que o cartão possa calcular esse valor.",nonessential_power:"O atributo nonessential_power está configurado como nenhum. Inclua o atributo grid_power_169 e o ID da entidade para que o cartão possa calcular esse valor.",missing_entity:"Por favor, inclua o atributo e o ID da entidade"},pe={title:"Título",title_colour:"Cor do Título",title_size:"Tamanho do Título (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Casas decimais",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Modelo",autarky:"Autoconsumo",cardstyle:"Estilo do Cartão",large_font:"Largura da fonte",modern:"Moderno",show_solar:"Exibir Solar",show_battery:"Exibir Bateria",show_grid:"Exibir Rede",show_aux:"Exibir Aux",dynamic_line_width:"Largura da linha dinâmica",max_line_width:"Largura máxima da linha",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Exibir Diário",show_daily_aux:"Exibir Diário Aux",animation_speed:"Velocidade de Animação",max_power:"Potência Max",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",display_mode:"Mode de Exibição",efficiency:"Efficiency Mode",battery:"Bateria",load1_name:"Nome Uso1",load2_name:"Nome Uso2",load3_name:"Nome Uso3",load4_name:"Nome Uso4",load1_icon:"Icone Uso1",load2_icon:"Icone Uso2",load3_icon:"Icone Uso3",load4_icon:"Icone Uso4",load5_name:"Load 5 Name",load6_name:"Load 6 Name",load5_icon:"Load 5 Icon",load6_icon:"Load 6 Icon",aux_load1_name:"Nome Aux_Uso1",aux_load2_name:"Nome Aux_Uso2",aux_load1_icon:"Nome Aux_Uso3",aux_load2_icon:"Nome Aux_Uso4",aux_dynamic_colour:"Aux Dynamic Colour",show_daily_buy:"Consumo Diário",show_daily_sell:"Produção Diária",no_grid_colour:"Cor No_Grid",grid_off_colour:"Cor Grid_Off",grid_name:"Nome Grid",colour:"Cor",charge_colour:"Cor Charge",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",aux_colour:"Cor",aux_off_colour:"Cor Off",off_threshold:"Off Threshold",invert_grid:"Inverter Valores",invert_load:"Inverter Valores",shutdown_soc:"Desligamento do SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energia",auto_scale:"Escala automática",three_phase:"Trifásico",dynamic_colour:"Cor Dinâmica",dynamic_icon:"Ícone Dinâmico",invert_power:"Potência do Inversor",show_absolute:"Exibir valor absoluto",hide_soc:"Ocultar SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Exibir absoluto_aux",show_nonessential:"Exibir Desnecessário",aux_name:"Nome Aux",aux_daily_name:"Daily Aux Name",aux_type:"Icone Aux",aux_loads:"Aux Loads",essential_name:"Nome Essencial",additional_loads:"Uso Adicional",export_colour:"Cor Expor",nonessential_name:"Nome Desnecessário",nonessential_icon:"Icone Desnecessário",energy_cost_decimals:"Decimais do custo de energia",show_remaining_energy:"Exibir energia restante",path_threshold:"Path Threshold",label_daily_grid_buy:"Daily Grid Buy Label",label_daily_grid_sell:"Daily Grid Sell Label",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Opções de título",general:"Opções gerais",inverter:"Opções do inversor",solar:"Opções Solar",battery:"Opções da Bateria",grid:"Opções da Rede",load:"Opções Load",entities:"Entidades",aux:"Opções do Aux",energy:"Entidade de Enêrgia",bat:"Entidades da Bateria ",sol:"Entidades de Solar",inv:"Entidades do Inversor",ld:"Entidade do Load",gri:"Entidade da Rede",sensor:"Optional Sensors",bat1:"Battery 1",bat2:"Battery 2"}},fe={common:he,errors:ge,config:pe},me={description:"Ett Home Assistant-kort för att emulera Sunsynk-energiflödet som visas på omvandlarskärmen",version:"Version",runtime_to:"DRIFTTID TILL",battery_floating:"BATTERI FLYTANDE",charge:"LADDNING",to:"TILL",daily_load:"DAGLIG BELASTNING",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIGT NÄTKÖP",daily_grid_sell:"DAGLIGT NÄTSÄLJ",daily_solar:"DAGLIG SOL",daily_solar_left:"DAGLIG SOL / KVAR IDAG",total_solar_generation:"DAGLIG SOL / TOTAL SOL",daily_charge:"DAGLIG LADDNING",daily_discharge:"DAGLIG URLADDNING",ratio:"Förhållande",timer_off:"Timer av",timer_on:"Timer på",priority_batt:"Prioritet Batteri",priority_load:"Prioritet Belastning",nonessential_name:"Icke Nödvändigt",aux_name:"Hjälp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Nödvändig",autarky:"Självförsörjning",discharging:"Urladdning",charging:"Laddning",waiting:"Väntar",standby:"Standby",no_battery:"Inget Batteri",selftest:"Självtest",normal:"Normal",alarm:"Larm",fault:"Fel",days:"dagar",hrs:"timmar",min:"min",flash:"Blinka",check:"Kontrollera",idle:"Inaktiv",exporting:"Export",importing:"Import",ongrid:"Ansluten till nätet",offgrid:"Frånkopplad från nätet",normalstop:"Normal Stopp",shutdown:"Avstängning",offline:"Offline",running:"Igång",sleepmode:"Viloläge",grid_name:"Nät",limit:"Begränsa",off:"Av",lowpower:"Låg Effekt",bulk:"Bulk",absorption:"Absorption",float:"Flytande",storage:"Lagring",equalize:"Utjämna",passthru:"Passera genom",inverting:"Inverterar",powerassist:"Ström Assistans",powersupply:"Strömförsörjning",sustain:"Upprätthålla",externalcontrol:"Extern Kontroll"},_e={battery:{bat:"Inga batteriattribut definierade",energy:"Vänligen inkludera batterienergiattributet och värdet i Wh, t.ex. 5.32 Batterienergi: 5320",shutdown_soc:"Vänligen inkludera batteriets shutdown_soc-attribut och värde, t.ex shutdown_soc: 20",full_capacity:"Full kapacitet måste vara mellan 80 och 100",empty_capacity:"Tom kapacitet måste vara <= 40",show_daily:"Vänligen inkludera dag_battery_charge_70 och dag_battery_discharge_71 attribut och entitets-ID"},solar:{sol:"Inga solattribut definierade",mppts:"Vänligen inkludera solens mppts-attribut och värde; 1, 2, 3 eller 4 t.ex. mppts: 2",show_daily:"Vänligen inkludera dag_pv_energy_108 attribut och entitets-ID"},grid:{show_daily:"Vänligen inkludera dag_grid_import_76 och dag_grid_export_77 attribut och entitets-ID"},essential_power:"essential_power-attributet är inställt på none. Vänligen inkludera inverter_power_175-attributet och entitets-ID så att kortet kan beräkna detta värde.",nonessential_power:"nonessential_power-attributet är inställt på none. Vänligen inkludera grid_power_169-attributet och entitets-ID så att kortet kan beräkna detta värde.",missing_entity:"Vänligen inkludera attributet och entitets-ID"},ve={title:"Titel",title_colour:"Titel Färg",title_size:"Titel Storlek (px)",card_height:"Kort Höjd (px)",card_width:"Kort Bredd (px)",decimal_places:"Decimaler",decimal_places_energy:"Decimaler (Daglig Energi)",model:"Modell",autarky:"Självförsörjning",cardstyle:"Kortstil",large_font:"Stor Text",modern:"Modern",show_solar:"Visa Sol",show_battery:"Visa Batteri",show_grid:"Visa Nät",show_aux:"Visa Aux",dynamic_line_width:"Dynamisk Linjebredd",max_line_width:"Max Linjebredd",min_line_width:"Min Linjebredd",solar:"Sol",mppts:"MPPTs",show_daily:"Visa Daglig",show_daily_aux:"Visa Daglig Aux",animation_speed:"Animationshastighet",max_power:"Max Effekt",pv1_max_power:"PV1 Max Effekt",pv2_max_power:"PV2 Max Effekt",pv3_max_power:"PV3 Max Effekt",pv4_max_power:"PV4 Max Effekt",pv1_name:"PV1 Namn",pv2_name:"PV2 Namn",pv3_name:"PV3 Namn",pv4_name:"PV4 Namn",display_mode:"Visningsläge",efficiency:"Effektivitet",battery:"Batteri",load1_name:"Belastning 1 Namn",load2_name:"Belastning 2 Namn",load3_name:"Belastning 3 Namn",load4_name:"Belastning 4 Namn",load1_icon:"Belastning 1 Ikon",load2_icon:"Belastning 2 Ikon",load3_icon:"Belastning 3 Ikon",load4_icon:"Belastning 4 Ikon",load5_name:"Belastning 5 Namn",load6_name:"Belastning 6 Namn",load5_icon:"Belastning 5 Ikon",load6_icon:"Belastning 6 Ikon",aux_load1_name:"Aux Belastning 1 Namn",aux_load2_name:"Aux Belastning 2 Namn",aux_load1_icon:"Aux Belastning 1 Ikon",aux_load2_icon:"Aux Belastning 2 Ikon",aux_dynamic_colour:"Aux Dynamisk Färg",off_threshold:"Av Gränsvärde",show_daily_buy:"Visa Dagligt Köp",show_daily_sell:"Visa Dagligt Sälj",no_grid_colour:"Inget Nät Färg",grid_off_colour:"Nät Av Färg",grid_name:"Nät Namn",colour:"Färg",charge_colour:"Laddningsfärg",linear_gradient:"Linjär Gradient",animate:"Animera Linjär Gradient",aux_colour:"Färg",aux_off_colour:"Av Färg",invert_grid:"Invertera Värden",invert_load:"Invertera Värden",shutdown_soc:"Avstängning SOC",shutdown_soc_offgrid:"Avstängning SOC (Av Nät)",soc_end_of_charge:"SOC End of Charge",navigate:"Navigation Path",energy:"Energi",auto_scale:"Skala Automatiskt",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Färg",dynamic_icon:"Dynamisk Ikon",invert_power:"Invertera Effekt",show_absolute:"Visa Absolut",hide_soc:"Dölj SOC",invert_aux:"Invertera Aux",show_absolute_aux:"Visa Absolut",show_nonessential:"Visa Icke Nödvändigt",aux_name:"Aux Namn",aux_daily_name:"Daglig Aux Namn",aux_type:"Aux Ikon",aux_loads:"Aux Belastningar",essential_name:"Nödvändig Namn",additional_loads:"Ytterligare Belastningar",export_colour:"Export Färg",nonessential_name:"Icke Nödvändigt Namn",nonessential_icon:"Icke Nödvändig Ikon",energy_cost_decimals:"Energikostnad Decimaler",show_remaining_energy:"Visa Återstående Energi",path_threshold:"Väg Tröskelvärde",label_daily_grid_buy:"Daglig Nätköp Etikett",label_daily_grid_sell:"Daglig Nätsälj Etikett",invert_flow:"Invert Flow",label_daily_load:"Daily Load Label",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Titelalternativ",general:"Allmänna Alternativ",inverter:"Växlaralternativ",solar:"Solalternativ",battery:"Batterialternativ",grid:"Nätalternativ",load:"Belastningsalternativ",entities:"Entiteter",aux:"Aux Alternativ",energy:"Energientiteter",bat:"Batterientiteter",sol:"Solentiteter",inv:"Inverterentiteter",ld:"Belastningsentiteter",gri:"Nätentiteter",sensor:"Valfria Sensorer",bat1:"Battery 1",bat2:"Battery 2"}},we={common:me,errors:_e,config:ve},xe={description:"Карта Home Assistant для емуляції потоку енергії Sunsynk, що відображається на екрані інвертора",version:"Версія",runtime_to:"ЧАС ДО",battery_floating:"ПІДТРИМУЮЧИЙ ЗАРЯД БАТАРЕЇ",charge:"ЗАРЯД",to:"ДО",daily_load:"ДОБОВЕ НАВАНТАЖЕННЯ",daily_aux:"ДОБОВЕ ДОП. НАВАНТАЖЕННЯ",daily_grid_buy:"З МЕРЕЖІ ЗА ДОБУ",daily_grid_sell:"ПРОДАЖ В МЕРЕЖУ ЗА ДОБУ",daily_solar:"СОНЯЧНА ЗА ДЕНЬ",daily_solar_left:"СОНЯЧНА ЗА ДЕНЬ/ЗАЛИШОК СЬОГОДНІ",total_solar_generation:"ЩОДЕННА СОНЯЧНА/ЗАГАЛЬНА СОНЯЧНА",daily_charge:"ДОБОВИЙ ЗАРЯД",daily_discharge:"ДОБОВИЙ РОЗРЯД",ratio:"Пропорція",timer_off:"Таймер Вимк.",timer_on:"Таймер Ввімк.",priority_batt:"Пріор. Бат.",priority_load:"Пріор. Наван.",nonessential_name:"Необов'язкове",aux_name:"Доп. Навантаження",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Основний Споживач",autarky:"Автономність",discharging:"Розрядка",charging:"Зарядка",waiting:"Чекаю",standby:"Режим Очікування",no_battery:"Без Батареї",selftest:"Самодіагностика",normal:"Нормально",alarm:"Аварія",fault:"Несправність",days:"дн",hrs:"год",min:"хв",flash:"Flash",check:"Перевірити",idle:"Бездіяльність",exporting:"Експорт",importing:"Імпорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:"Звичайна Зупинка",shutdown:"Відключення",offline:"Не в мережі",running:"Працює",sleepmode:"Режим Сну",grid_name:"Мережа",limit:"Ліміт",off:"Вимкнено",lowpower:"Низька Потужність",bulk:"Bulk",absorption:"Поглинання",float:"Плаваючий Режим",storage:"Зберігання",equalize:"Зрівняти",passthru:"Наскрізний Режим",inverting:"Інвертування",powerassist:"Power Assist",powersupply:"Джерело живлення",sustain:"Підтримка",externalcontrol:"Зовнішній контроль"},be={battery:{bat:"Атрибути батареї не визначено",energy:"Будь ласка, ввімкніть атрибут енергії батареї та значення у Вт-год, наприклад 5.32 Енергія батареї: 5320",shutdown_soc:"Будь ласка, додайте атрибут shutdown_soc батареї та значення, наприклад shutdown_soc: 20",full_capacity:"Повна ємність має становити від 80 до 100",empty_capacity:"Порожня ємність має бути <= 40",show_daily:"Будь ласка, додайте атрибути day_battery_charge_70 і day_battery_discharge_71 та ідентифікатори сутності"},solar:{sol:"Сонячні атрибути не визначені",mppts:"Будь ласка, додайте атрибут і значення solar mppts; 1, 2, 3 або 4 напр. mppts: 2",show_daily:"Будь ласка, додайте атрибут day_pv_energy_108 та ідентифікатор сутності"},grid:{show_daily:"Будь ласка додайте атрибути day_grid_import_76 і day_grid_export_77 та ідентифікатори сутності"},essential_power:"Для атрибута essential_power встановлено значення none. Додайте атрибут inverter_power_175 та ідентифікатор сутності, щоб картка могла обчислити це значення.",nonessential_power:"Для атрибута nonessential_power встановлено значення none. Додайте атрибут grid_power_169 і ідентифікатор сутності, щоб картка могла обчислити це значення.",missing_entity:"Будь ласка, додайте атрибут і ідентифікатор сутності"},Ae={title:"Назва",title_colour:"Колір Заголовку",title_size:"Розмір Заголовка (px)",card_height:"Висота Картки (px)",card_width:"Ширина Картки (px)",decimal_places:"Десяткові Знаки",decimal_places_energy:"Десяткові Знаки (Добова Енергія)",model:"Модель",autarky:"Самодостатність",cardstyle:"Стиль Картки",large_font:"Збільшений Шрифт",modern:"Modern",show_solar:"Показати Сонячне Поле",show_battery:"Показати Батарею",show_grid:"Показати Мережу",show_aux:"Показати Доп. Нав.",dynamic_line_width:"Ширина Динамічної Лінії",max_line_width:"Макс. Ширина Лінії",min_line_width:"Мін. Ширина Лінії",solar:"Сонячне Поле",mppts:"MPPTs",show_daily:"Показати Добове",show_daily_aux:"Показати Добове Доп. Нав.",animation_speed:"Швидкість Анімації",max_power:"Макс. Потужність",pv1_max_power:"PV1 Макс. Потужність",pv2_max_power:"PV2 Макс. Потужність",pv3_max_power:"PV3 Макс. Потужність",pv4_max_power:"PV4 Макс. Потужність",pv1_name:"PV1 Назва",pv2_name:"PV2 Назва",pv3_name:"PV3 Назва",pv4_name:"PV4 Назва",display_mode:"Режим Відображення",efficiency:"Режим Ефективності",battery:"Батарея",load1_name:"Нав. 1 Назва",load2_name:"Нав. 2 Назва",load3_name:"Нав. 3 Назва",load4_name:"Нав. 4 Назва",load1_icon:"Нав. 1 Значок",load2_icon:"Нав. 2 Значок",load3_icon:"Нав. 3 Значок",load4_icon:"Нав. 4 Значок",load5_name:"Нав. 5 Назва",load6_name:"Нав. 6 Назва",load5_icon:"Нав. 5 Значок",load6_icon:"Нав. 6 Значок",aux_load1_name:"Доп. Нав. 1 Назва",aux_load2_name:"Доп. Нав. 2 Назва",aux_load1_icon:"Доп. Нав. 1 Значок",aux_load2_icon:"Доп. Нав. 2 Значок",aux_dynamic_colour:"Доп. Нав. Динамічний Колір",show_daily_buy:"Показати Купівлю За Добу",show_daily_sell:"Показати Продаж За Добу",no_grid_colour:"Колір Коли Немає Мережі",grid_off_colour:"Колір Коли Мережі Вимкнена",grid_name:"Назва Мережі",colour:"Колір",charge_colour:"Колір Під Час Зарядки",linear_gradient:"Лінейний Градієнт",animate:"Анімація Лінійного Градієнта",aux_colour:"Колір Доп. Нав.",aux_off_colour:"Колір Вимкненого Доп. Нав.",off_threshold:"Поріг Вимкнення",invert_grid:"Інвертувати Мережу",invert_load:"Інвертувати Навантаження",shutdown_soc:"SOC Вимкнення",shutdown_soc_offgrid:"SOC Вимкнення (Off Grid)",soc_end_of_charge:"SOC Завершення заряду",navigate:"Шлях Навігації",energy:"Енергія",auto_scale:"Автомаштабування",three_phase:"Три Фази",dynamic_colour:"Динамічний Колір",dynamic_icon:"Динамічний Значок",invert_power:"Інвертувати Потужніть",show_absolute:"Показати Абсолютні Значення",hide_soc:"Сховати SOC",invert_aux:"Інвертувати Доп.Нав.",show_absolute_aux:"Показати Абсолютні Значення",show_nonessential:"Показувати Необов'язкове",aux_name:"Назва Доп. Нав.",aux_daily_name:"Назва Доп. Нав. За Добу",aux_type:"Тип Доп. Нав.",aux_loads:"Навантаження Доп. Нав.",essential_name:"Назва Важливого",additional_loads:"Додаткові Навантаження",export_colour:"Колір Експорта",nonessential_name:"Назва необов'язкового пристрою",nonessential_icon:"Значок необов'язкового пристрою",energy_cost_decimals:"Десяткові Знаки Вартості Енергії",show_remaining_energy:"Показати Залишок Енергії",path_threshold:"Шлях Threshold",label_daily_grid_buy:"Етикетка Купівлі З Мережі За Добу",label_daily_grid_sell:"Етикетка Продажу В Мережу За Добу",invert_flow:"Інвертувати Потік",label_daily_load:"Етикетка Добового Навантаження",wide:"Wide Screen Layout",remaining_energy_to_shutdown:"Remaining Energy to Shutdown",off_colour:"Off Colour",cat_title:{title:"Параметри Заголовка",general:"Загальні Параметри",inverter:"Параметри Інвертора",solar:"Параметри Сонячного Поля",battery:"Параметри Батареї",grid:"Параметри Мережі",load:"Параметри Навантаження",entities:"Сутності",aux:"Параметри Доп. Навантаження",energy:"Сутності Енергії",bat:"Сутності Батареї",sol:"Сутності Сонячного поля",inv:"Сутності Інвертора",ld:"Сутності Навантаження",gri:"Сутності Мережі",sensor:"Додаткові Датчики",bat1:"Battery 1",bat2:"Battery 2"}},Pe={common:xe,errors:be,config:Ae};const Le={hass:null},Ce={da:Object.freeze({__proto__:null,common:vt,config:xt,default:bt,errors:wt}),de:Object.freeze({__proto__:null,common:At,config:Lt,default:Ct,errors:Pt}),en:Object.freeze({__proto__:null,common:Et,config:Mt,default:kt,errors:Nt}),es:Object.freeze({__proto__:null,common:St,config:Bt,default:Tt,errors:Ot}),et:Object.freeze({__proto__:null,common:It,config:Vt,default:Gt,errors:Dt}),fr:Object.freeze({__proto__:null,common:zt,config:jt,default:Ht,errors:Rt}),nl:Object.freeze({__proto__:null,common:Wt,config:Ft,default:Qt,errors:Ut}),ru:Object.freeze({__proto__:null,common:Zt,config:Xt,default:Kt,errors:Yt}),cs:Object.freeze({__proto__:null,common:Jt,config:$t,default:te,errors:qt}),it:Object.freeze({__proto__:null,common:ee,config:ae,default:oe,errors:ne}),ca:Object.freeze({__proto__:null,common:ie,config:se,default:le,errors:re}),sk:Object.freeze({__proto__:null,common:de,config:ue,default:ye,errors:ce}),pt_BR:Object.freeze({__proto__:null,common:he,config:pe,default:fe,errors:ge}),sv:Object.freeze({__proto__:null,common:me,config:ve,default:we,errors:_e}),uk:Object.freeze({__proto__:null,common:xe,config:Ae,default:Pe,errors:be})};function Ee(t,e="",n=""){const a=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_"),o="".concat(Le.hass?.selectedLanguage||Le.hass?.locale?.language||Le.hass?.language||a);let i;try{i=t.split(".").reduce(((t,e)=>t[e]),Ce[o])}catch(e){i=t.split(".").reduce(((t,e)=>t[e]),Ce.en)}return void 0===i&&(i=t.split(".").reduce(((t,e)=>t[e]),Ce.en)),""!==e&&""!==n&&(i=i.replace(e,n)),i}var Ne={cardstyle:"lite",wide:!1,large_font:!1,show_solar:!0,show_battery:!0,show_grid:!0,card_height:"100%",card_width:"100%",decimal_places:2,decimal_places_energy:1,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"grey",autarky:"power",model:ft.Sunsynk,auto_scale:!0,three_phase:!1,navigate:""},battery:{count:1,energy:0,shutdown_soc:20,soc_end_of_charge:100,invert_power:!1,hide_soc:!1,colour:"pink",show_daily:!1,show_remaining_energy:!0,remaining_energy_to_shutdown:!1,animation_speed:6,max_power:4500,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0,animate:!0,path_threshold:100,navigate:"",invert_flow:!1},battery2:{energy:0,shutdown_soc:20,soc_end_of_charge:100,invert_power:!1,hide_soc:!1,colour:"pink",show_remaining_energy:!0,remaining_energy_to_shutdown:!1,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0,animate:!0,path_threshold:100,navigate:"",invert_flow:!1},solar:{colour:"orange",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:Ee("common.pv1_name"),pv2_name:Ee("common.pv2_name"),pv3_name:Ee("common.pv3_name"),pv4_name:Ee("common.pv4_name"),auto_scale:!0,display_mode:1,dynamic_colour:!0,efficiency:3,off_threshold:10,navigate:"",invert_flow:!1},load:{colour:"#5fb6ad",off_colour:"grey",dynamic_colour:!0,dynamic_icon:!0,aux_dynamic_colour:!0,off_threshold:0,show_daily:!1,show_aux:!1,show_daily_aux:!1,invert_aux:!1,invert_load:!1,show_absolute_aux:!1,animation_speed:4,max_power:8e3,aux_name:Ee("common.aux_name"),aux_daily_name:Ee("common.daily_aux"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:Ee("common.essential"),load1_icon:"default",load2_icon:"default",load1_name:"",load2_name:"",load3_name:"",load4_name:"",load5_name:"",load6_name:"",auto_scale:!0,path_threshold:100,navigate:"",invert_flow:!1,label_daily_load:Ee("common.daily_load")},grid:{colour:"#5490c2",grid_name:Ee("common.grid_name"),label_daily_grid_buy:Ee("common.daily_grid_buy"),label_daily_grid_sell:Ee("common.daily_grid_sell"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:Ee("common.nonessential_name"),additional_loads:0,load1_name:"",load2_name:"",load3_name:"",load1_icon:"default",load2_icon:"default",load3_icon:"default",invert_grid:!1,animation_speed:8,max_power:8e3,auto_scale:!0,energy_cost_decimals:2,show_absolute:!1,off_threshold:0,navigate:"",invert_flow:!1}};const Me=[0,1,2,3,4,5,6],ke=[0,1,2,3],Se=[!0,!1],Oe=[!0,!1],Be=[0,1,2],Te=["off","0","off-grid","off grid","offgrid"],Ie=["on","1","on-grid","on grid","ongrid"],De="sunsynk-content-card-editor";var Ve,Ge,ze,Re,je;!function(t){t.DATE="date",t.ENUM="enum",t.TIMESTAMP="timestamp",t.APPARENT_POWER="apparent_power",t.ATMOSPHERIC_PRESSURE="atmospheric_pressure",t.BATTERY="battery",t.CO="carbon_monoxide",t.CO2="carbon_dioxide",t.CURRENT="current",t.ENERGY="energy",t.ENERGY_STORAGE="energy_storage",t.FREQUENCY="frequency",t.IRRADIANCE="irradiance",t.MONETARY="monetary",t.POWER_FACTOR="power_factor",t.POWER="power",t.REACTIVE_POWER="reactive_power",t.TEMPERATURE="temperature",t.VOLTAGE="voltage"}(Ve||(Ve={})),function(t){t.WATT="W",t.KILO_WATT="kW",t.MEGA_WATT="MW",t.BTU_PER_HOUR="BTU/h"}(Ge||(Ge={})),function(t){t.GIGA_JOULE="GJ",t.KILO_WATT_HOUR="kWh",t.MEGA_JOULE="MJ",t.MEGA_WATT_HOUR="MWh",t.WATT_HOUR="Wh"}(ze||(ze={})),function(t){t.MILLIAMPERE="mA",t.AMPERE="A"}(Re||(Re={})),function(t){t.MILLIVOLT="mV",t.VOLT="V"}(je||(je={}));const He={[ze.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:ze.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:ze.KILO_WATT_HOUR,decimal:1}],[ze.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:ze.MEGA_WATT_HOUR,decimal:2}],[ze.MEGA_WATT_HOUR]:[],[ze.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:ze.MEGA_JOULE}],[ze.MEGA_JOULE]:[],[Ge.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:Ge.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:Ge.KILO_WATT}],[Ge.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:Ge.MEGA_WATT}],[Ge.MEGA_WATT]:[],[Ge.BTU_PER_HOUR]:[]};var We="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ue(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fe,Qe={exports:{}};var Ze,Ye,Xe=(Fe||(Fe=1,function(t,e){var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Function]",r="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[o]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d[i]=d["[object Map]"]=d["[object Number]"]=d[r]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1;var c,u="object"==typeof We&&We&&We.Object===Object&&We,y="object"==typeof self&&self&&self.Object===Object&&self,h=u||y||Function("return this")(),g=e&&!e.nodeType&&e,p=g&&t&&!t.nodeType&&t,f=p&&p.exports===g,m=f&&u.process,_=function(){try{var t=p&&p.require&&p.require("util").types;return t||m&&m.binding&&m.binding("util")}catch(t){}}(),v=_&&_.isTypedArray,w=Array.prototype,x=Function.prototype,b=Object.prototype,A=h["__core-js_shared__"],P=x.toString,L=b.hasOwnProperty,C=(c=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",E=b.toString,N=P.call(Object),M=RegExp("^"+P.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=f?h.Buffer:void 0,S=h.Symbol,O=h.Uint8Array;k&&k.allocUnsafe;var B,T,I=(B=Object.getPrototypeOf,T=Object,function(t){return B(T(t))}),D=Object.create,V=b.propertyIsEnumerable,G=w.splice,z=S?S.toStringTag:void 0,R=function(){try{var t=ut(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),j=k?k.isBuffer:void 0,H=Math.max,W=Date.now,U=ut(h,"Map"),F=ut(Object,"create"),Q=function(){function t(){}return function(e){if(!At(e))return{};if(D)return D(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Z(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1},Y.prototype.set=function(t,e){var n=this.__data__,a=tt(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(U||Y),string:new Z}},X.prototype.delete=function(t){var e=ct(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return ct(this,t).get(t)},X.prototype.has=function(t){return ct(this,t).has(t)},X.prototype.set=function(t,e){var n=ct(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this},K.prototype.clear=function(){this.__data__=new Y,this.size=0},K.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},K.prototype.get=function(t){return this.__data__.get(t)},K.prototype.has=function(t){return this.__data__.has(t)},K.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Y){var a=n.__data__;if(!U||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new X(a)}return n.set(t,e),this.size=n.size,this};var nt=function(t,e,n){for(var a=-1,o=Object(t),i=n(t),r=i.length;r--;){var s=i[++a];if(!1===e(o[s],s,o))break}return t};function at(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?function(t){var e=L.call(t,z),n=t[z];try{t[z]=void 0;var a=!0}catch(t){}var o=E.call(t);return a&&(e?t[z]=n:delete t[z]),o}(t):function(t){return E.call(t)}(t)}function ot(t){return Pt(t)&&at(t)==o}function it(t){return!(!At(t)||function(t){return!!C&&C in t}(t))&&(xt(t)?M:s).test(function(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function rt(t){if(!At(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=ht(t),n=[];for(var a in t)("constructor"!=a||!e&&L.call(t,a))&&n.push(a);return n}function st(t,e,n,a,o){t!==e&&nt(e,(function(i,s){if(o||(o=new K),At(i))!function(t,e,n,a,o,i,s){var l=gt(t,n),d=gt(e,n),c=s.get(d);if(c)q(t,n,c);else{var u,y=i?i(l,d,n+"",t,e,s):void 0,h=void 0===y;if(h){var g=_t(d),p=!g&&wt(d),f=!g&&!p&&Lt(d);y=d,g||p||f?_t(l)?y=l:Pt(u=l)&&vt(u)?y=function(t,e){var n=-1,a=t.length;for(e||(e=Array(a));++n-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(dt);function ft(t,e){return t===e||t!=t&&e!=e}var mt=ot(function(){return arguments}())?ot:function(t){return Pt(t)&&L.call(t,"callee")&&!V.call(t,"callee")},_t=Array.isArray;function vt(t){return null!=t&&bt(t.length)&&!xt(t)}var wt=j||function(){return!1};function xt(t){if(!At(t))return!1;var e=at(t);return e==i||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function bt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function At(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pt(t){return null!=t&&"object"==typeof t}var Lt=v?function(t){return function(e){return t(e)}}(v):function(t){return Pt(t)&&bt(t.length)&&!!d[at(t)]};function Ct(t){return vt(t)?J(t):rt(t)}var Et,Nt=(Et=function(t,e,n){st(t,e,n)},lt((function(t,e){var n=-1,a=e.length,o=a>1?e[a-1]:void 0,i=a>2?e[2]:void 0;for(o=Et.length>3&&"function"==typeof o?(a--,o):void 0,i&&function(t,e,n){if(!At(n))return!1;var a=typeof e;return!!("number"==a?vt(n)&&yt(e,n.length):"string"==a&&e in n)&&ft(n[e],t)}(e[0],e[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=0&&(a=parseFloat(a.toFixed(e))),n&&(a*=-1),a)}static invertKeyPoints(t){return t.split(";").reverse().join(";")}static convertValue(t,e=2){return e=Number.isNaN(e)?2:e,Math.abs(t)>=1e6?"".concat((t/1e6).toFixed(e)," MW"):Math.abs(t)>=1e3?"".concat((t/1e3).toFixed(e)," kW"):"".concat(Math.round(t)," W")}static convertValueNew(t,e="",n=2){n=isNaN(n)?2:n;const a=Number(t);if(isNaN(a))return 0;const o=He[e];if(!o)return"".concat(a.toFixed(n)," ").concat(e);if(e===ze.WATT_HOUR&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").concat(e);if(e===Ge.WATT&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").concat(e);if(e===Ge.KILO_WATT&&Math.abs(a)<1)return"".concat(Math.round(1e3*a)," W");if(e===Ge.MEGA_WATT&&Math.abs(a)<1)return"".concat((1e3*a).toFixed(n)," kW");for(const t of o)if(Math.abs(a)>=t.threshold){const e=(a/t.divisor).toFixed(t.decimal||n);return"".concat(e," ").concat(t.targetUnit)}return"".concat(a.toFixed(n)," ").concat(e)}static handlePopup(t,e){e&&(t.preventDefault(),this._handleClick(t,{action:"more-info"},e))}static handleNavigation(t,e){e&&(t.preventDefault(),this._handleClick(t,{action:"navigate",navigation_path:e},null))}static _handleClick(t,e,n){if(t&&(n||e.navigation_path))switch(t.stopPropagation(),e.action){case"more-info":this._dispatchMoreInfoEvent(t,n);break;case"navigate":this._handleNavigationEvent(t,e.navigation_path);break;default:console.warn("Action '".concat(e.action,"' is not supported."))}}static _dispatchMoreInfoEvent(t,e){if(qe.isPopupOpen)return;qe.isPopupOpen=!0;const n=new CustomEvent("hass-more-info",{composed:!0,detail:{entityId:e}});history.pushState({popupOpen:!0},"",window.location.href),t.target.dispatchEvent(n);const a=()=>{qe.isPopupOpen&&(qe.isPopupOpen=!1,window.removeEventListener("popstate",a))};window.addEventListener("popstate",a,{once:!0})}static _handleNavigationEvent(t,e){e?function(t,e,n){void 0===n&&(n=!1),n?history.replaceState(null,"",e):history.pushState(null,"",e),Je(window,"location-changed",{replace:n})}(t.target,e):console.warn("Navigation path is not provided.")}}qe.isPopupOpen=!1;const $e="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",tn="M15 9h1V7.5h4V9h1c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-6c-.55 0-1-.45-1-1V10c0-.55.45-1 1-1m1 2v3h4v-3h-4m-4-5.31l-5 4.5V18h5v2H5v-8H2l10-9l2.78 2.5H14v1.67l-.24.1L12 5.69Z",en="M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",nn="M11.6 3.45zM18.25 19.6v-7.6h2.85L11.6 3.45 2.1 12h2.85v7.6zM11.6 6.015l4.75 4.275V17.7H6.85v-7.41zM6.58 2.8v1.42L8 3.508zm-.4 2.4L5.2 6.184l1.5.5zM2.8 6.58 3.508 8l.712-1.42zM6 2.8H2.8v3.2c.228.068.468.1.708.1 1.432.004 2.596-1.16 2.6-2.6-.004-.236-.04-.472-.108-.7M12.5 3.844l2.25 2.026.5-.5-2.24-2.04zM17.71 8.53 18.2 8.04 15.76 5.84 15.26 6.34ZM20.52 11.09l.48-.49-2.31-2.14-.5.5z M18.1299 5.1169 17.318 4.6482l2.4492-1.6171-.75 1.299.8119.4687-2.4492 1.6171z",an="M9.3 10.775q0 .475.163.925t.462.825q.05-.3.2-.588t.375-.487L12 10l1.475 1.475q.225.2.375.475t.2.575q.275-.375.487-.8t.213-.9q0-.475-.15-.913t-.45-.812q-.275.125-.563.2T13 9.375q-.75 0-1.375-.425t-.95-1.125q-.3.3-.55.637t-.438.713Q9.5 9.55 9.4 9.95t-.1.825ZM12 12.1l-.425.425q-.1.1-.138.2t-.037.225q0 .25.175.4t.425.15q.25 0 .425-.15t.175-.4q0-.125-.037-.225t-.138-.2L12 12.1ZM12 5v1.9q0 .425.3.713t.725.287q.275 0 .5-.162t.4-.388l.175-.25q1.025.575 1.588 1.563t.562 2.162q0 1.75-1.25 2.963T12 15q-1.75 0-2.975-1.225T7.8 10.8q0-1.925 1.225-3.425T12 5ZM6 22q-.825 0-1.413-.588T4 20V6q0-1.65 1.175-2.825T8 2h8q1.65 0 2.825 1.175T20 6v14q0 .825-.588 1.413T18 22H6Zm0-4v2h12v-2q-.75 0-1.2.5T15 19q-1.35 0-1.763-.5T12 18q-.825 0-1.238.5T9 19q-1.35 0-1.763-.5T6 18Zm3-1q.825 0 1.238-.5T12 16q1.35 0 1.8.5t1.2.5q.75 0 1.2-.5T18 16V6q0-.825-.588-1.413T16 4H8q-.825 0-1.413.588T6 6v10q1.35 0 1.763.5T9 17Z",on="M3 7.5A4.5 4.5 0 0 1 7.5 3h17A4.5 4.5 0 0 1 29 7.5v17a4.5 4.5 0 0 1-4.5 4.5h-17A4.5 4.5 0 0 1 3 24.5v-17Zm24 0A2.5 2.5 0 0 0 24.5 5h-17A2.5 2.5 0 0 0 5 7.5V11h22V7.5Zm0 17V13H5v11.5A2.5 2.5 0 0 0 7.5 27h17a2.5 2.5 0 0 0 2.5-2.5Zm-17-15a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Zm6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3ZM23.5 8a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0ZM9 23v-6h14v6H9Zm-.5-8A1.5 1.5 0 0 0 7 16.5v7A1.5 1.5 0 0 0 8.5 25h15a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5h-15Z",rn="M6.59.66c2.34-1.81 4.88.4 5.45 3.84c.43 0 .85.12 1.23.34c.52-.6.98-1.42.8-2.34c-.42-2.15 1.99-3.89 4.28-.92c1.81 2.34-.4 4.88-3.85 5.45c0 .43-.11.86-.34 1.24c.6.51 1.42.97 2.34.79c2.13-.42 3.88 1.98.91 4.28c-2.34 1.81-4.88-.4-5.45-3.84c-.43 0-.85-.13-1.22-.35c-.52.6-.99 1.43-.81 2.35c.42 2.14-1.99 3.89-4.28.92c-1.82-2.35.4-4.89 3.85-5.45c0-.43.13-.85.35-1.23c-.6-.51-1.42-.98-2.35-.8c-2.13.42-3.88-1.98-.91-4.28M5 16h2a2 2 0 0 1 2 2v6H7v-2H5v2H3v-6a2 2 0 0 1 2-2m0 2v2h2v-2H5m7.93-2H15l-2.93 8H10l2.93-8M18 16h3v2h-3v4h3v2h-3a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z",sn="M3 17h4.1q-.425-.425-.787-.925T5.675 15H3v2Zm9 0q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7Q9.925 7 8.462 8.463T7 12q0 2.075 1.463 3.538T12 17Zm6.325-8H21V7h-4.1q.425.425.788.925T18.325 9ZM1 20v-8h2v1h2.075q-.05-.25-.063-.488T5 12q0-2.925 2.038-4.963T12 5h9V4h2v8h-2v-1h-2.075q.05.25.063.488T19 12q0 2.925-2.038 4.963T12 19H3v1H1Zm2-3v-2v2Zm18-8V7v2Zm-9 3Zm0 3q-.825 0-1.413-.588T10 13q0-.575.238-1.137t.912-1.613L12 9l.85 1.25q.675 1.05.913 1.613T14 13q0 .825-.588 1.413T12 15Z",ln="M35 887 l-27 -23 0 -404 0 -404 27 -23 c26 -23 28 -23 329 -23 284 0 305 1 327 19 l24 19 0 412 0 412 -24 19 c-22 18 -43 19 -327 19 -301 0 -303 0 -329 -23z m585 -157 l0 -80 -255 0 -255 0 0 80 0 80 255 0 255 0 0 -80z m-242 -229 c44 -34 40 -46 -14 -46 -60 0 -97 -38 -93 -94 5 -64 -23 -80 -35 -20 -9 44 24 113 63 134 35 18 34 15 21 50 -11 29 -14 30 58 -24z m110 -129 c4 -51 -19 -97 -59 -117 -27 -14 -30 -20 -23 -48 l6 -31 -51 43 c-29 24 -49 46 -46 49 3 4 23 5 44 3 58 -4 95 32 97 95 3 60 1 57 17 52 6 -3 13 -23 15 -46z",dn="M6 3a2 2 0 0 0-2 2v11h2v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h2V5a2 2 0 0 0-2-2H6m6 4V5h6v2h-6m0 2h6v2h-6V9M8 5v4h2l-3 6v-4H5l3-6m14 15v2H2v-2h20Z",cn="M5 20v-8H2l10-9l10 9h-3v8H5m7-14.31l-5 4.5V18h10v-7.81l-5-4.5M11.5 18v-4H9l3.5-7v4H15l-3.5 7Z",un="M 12 3 z z M 19 20 v -8 h 3 L 12 3 L 2 12 h 3 v 8 z M 12 5.7 l 5 4.5 V 18 H 7 v -7.8 z",yn="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0 0 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a8.994 8.994 0 0 0 7.03-14.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7s7 3.13 7 7s-3.13 7-7 7z",hn="m19.95 17.15l-1.5-1.5q.275-.675.413-1.337T19 13q0-2.9-2.05-4.95T12 6q-.6 0-1.275.125t-1.4.4l-1.5-1.5q.95-.5 2.012-.763T12 4q1.5 0 2.938.5t2.712 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.95 1.275 1.45 2.713T21 13q0 1.05-.263 2.087t-.787 2.063ZM13 10.2V8h-2v.2l2 2Zm6.8 12.4l-2.4-2.4q-1.2.875-2.588 1.338T12 22q-1.85 0-3.488-.713T5.65 19.35q-1.225-1.225-1.938-2.863T3 13q0-1.5.463-2.888T4.8 7.6L1.4 4.2l1.4-1.4l18.4 18.4l-1.4 1.4ZM12 20q1.05 0 2.05-.325t1.875-.925L6.2 9.025q-.6.875-.9 1.875T5 13q0 2.9 2.05 4.95T12 20ZM9 3V1h6v2H9Zm2.075 10.875Zm2.825-2.8Z",gn="m5.18 5.45l-1.78-.9L4.66 2h8.47l1.27 2.55l-1.78.89L11.9 4h-6l-.72 1.45M15.5 8H11l-.8-3H7.6l-.79 3H2.28L1 10.55l1.79.89L3.5 10h10.78l.72 1.45l1.79-.89L15.5 8m-.83 14H12.6l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H3.13L6 11h2.09l-.36 1.35L8.9 14.1l1.16-1.75L9.71 11h2.07l2.89 11M8.3 15l-.9-1.35l-1.18 4.48L8.3 15m3.28 3.12l-1.18-4.48L9.5 15l2.08 3.12M23 16l-4-4v3h-4v2h4v3l4-4Z",pn="M 26 16 L 22 12 L 22 15 L 18 15 L 18 17 L 22 17 L 22 20 L 26 16 Z M 22.1 21.5 L 2.4 1.7 L 1.1 3 L 6.1 8 L 5.4 8 L 4.1 10.5 L 5.9 11.4 L 6.6 10 L 8.1 10 L 9.1 11 L 6.2 22 L 8.3 22 L 8.5 21.1 L 12 15.9 L 15.5 21.1 L 15.7 22 L 17.8 22 L 17 18.8 L 20.9 22.7 L 22.1 21.5 M 9.3 18.1 L 10.5 13.6 L 11.4 14.9 L 9.3 18.1 M 14.7 18.1 L 12.6 15 L 12.8 14.7 L 14.1 16 L 14.7 18.1 M 14.2 11 L 14.9 11 L 15.1 11.9 L 14.2 11 M 14.1 8 L 18.6 8 L 19.9 10.6 L 18.1 11.5 L 17.4 10 L 13.2 10 L 10.2 7 L 10.7 5 L 13.3 5 L 14.1 8 M 8.4 5.2 L 6.9 3.7 L 7.8 2 L 16.3 2 L 17.6 4.5 L 15.8 5.4 L 15 4 L 9 4 L 8.4 5.2 Z",fn="M15.95 21.175L13.1 18.35l1.425-1.4l1.425 1.4l3.525-3.525l1.425 1.4l-4.95 4.95ZM8 22q-.425 0-.713-.288T7 21V5q0-.425.288-.713T8 4h2V2h4v2h2q.425 0 .713.288T17 5v7q-.525 0-1.025.088T15 12.35V6H9v14h2.35q.2.575.488 1.075t.687.925H8Zm1-2h2.35H11h.35H9Z",mn="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",_n="M11.5 19h1v-1.85l3.5-3.5V9H8v4.65l3.5 3.5V19Zm-2 2v-3L6 14.5V9q0-.825.588-1.413T8 7h1L8 8V3h2v4h4V3h2v5l-1-1h1q.825 0 1.413.588T18 9v5.5L14.5 18v3h-5Zm2.5-7Z",vn="M10 3H8v1.88l2 2zm6 6v3.88l1.8 1.8l.2-.2V9c0-1.1-.9-2-2-2V3h-2v4h-3.88l2 2H16zM4.12 3.84L2.71 5.25L6 8.54v5.96L9.5 18v3h5v-3l.48-.48l4.47 4.47l1.41-1.41L4.12 3.84zm8.38 13.33V19h-1v-1.83L8 13.65v-3.11l5.57 5.57l-1.07 1.06z",wn="m5.39 5.45-1.78-.9L4.87 2h8.47l1.27 2.55-1.78.89L12.11 4h-6zM15.73 8H11.2l-.79-3h-2.6L7 8H2.5l-1.29 2.55 1.79.89.73-1.44H14.5l.71 1.45 1.79-.89zm-.85 14h-2.07l-.24-.9-3.46-5.2-3.47 5.2-.23.9H3.34l2.89-11h2.07l-.36 1.35 1.17 1.75 1.16-1.75-.35-1.35H12zm-6.38-7-.89-1.35-1.18 4.48zm3.29 3.12-1.18-4.48-.9 1.36zM15 16l4-4v3H23v2h-4v3z",xn="m11.39 5.45l-1.78-.9L10.87 2h8.47l1.27 2.55l-1.78.89L18.11 4h-6zM21.73 8H17.2l-.79-3h-2.6L13 8H8.5l-1.29 2.55l1.79.89l.73-1.44H20.5l.71 1.45l1.79-.89zm-.85 14h-2.07l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H9.34l2.89-11h2.07l-.36 1.35l1.17 1.75l1.16-1.75l-.35-1.35H18zm-6.38-7l-.89-1.35l-1.18 4.48zm3.29 3.12l-1.18-4.48l-.9 1.36zM9 16l-4-4v3H1v2h4v3z",bn="M22.1 21.5L2.4 1.7L1.1 3l5 5h-.7l-1.3 2.5l1.8.9l.7-1.4h1.5l1 1l-2.9 11h2.1l.2-.9l3.5-5.2l3.5 5.2l.2.9h2.1l-.8-3.2l3.9 3.9l1.2-1.2M9.3 18.1l1.2-4.5l.9 1.3l-2.1 3.2m5.4 0L12.6 15l.2-.3l1.3 1.3l.6 2.1m-.5-7.1h.7l.2.9l-.9-.9m-.1-3h4.5l1.3 2.6l-1.8.9l-.7-1.5h-4.2l-3-3l.5-2h2.6l.8 3M8.4 5.2L6.9 3.7L7.8 2h8.5l1.3 2.5l-1.8.9L15 4H9l-.6 1.2Z",An="m8.28 5.45l-1.78-.9L7.76 2h8.47l1.27 2.55l-1.78.89L15 4H9l-.72 1.45M18.62 8h-4.53l-.79-3h-2.6l-.79 3H5.38L4.1 10.55l1.79.89l.73-1.44h10.76l.72 1.45l1.79-.89L18.62 8m-.85 14H15.7l-.24-.9L12 15.9l-3.47 5.2l-.23.9H6.23l2.89-11h2.07l-.36 1.35L12 14.1l1.16-1.75l-.35-1.35h2.07l2.89 11m-6.37-7l-.9-1.35l-1.18 4.48L11.4 15m3.28 3.12l-1.18-4.48l-.9 1.36l2.08 3.12Z",Pn="M11.45 2v3.55L15 3.77L11.45 2m-1 6L8 10.46l3.75 1.25L10.45 8M2 11.45L3.77 15l1.78-3.55H2M10 2H2v8c.57.17 1.17.25 1.77.25c3.58.01 6.49-2.9 6.5-6.5c-.01-.59-.1-1.18-.27-1.75m7 20v-6h-3l5-9v6h3l-5 9Z";var Ln,Cn,En,Nn,Mn,kn,Sn,On,Bn,Tn,In,Dn,Vn,Gn,zn,Rn,jn,Hn,Wn,Un,Fn,Qn,Zn,Yn,Xn,Kn,Jn,qn,$n,ta,ea;var na,aa,oa,ia,ra,sa,la,da,ca,ua,ya,ha,ga,pa,fa,ma,_a,va,wa,xa,ba,Aa,Pa,La,Ca,Ea,Na;class Ma{constructor(){}getBatteryCapacity(t,e,n,a,o,i,r){let s=0;return(!0===r?t<0:t>0)?s="off"===e||"0"===e||"off-grid"===e.toLowerCase()||!a.show||parseInt(o.state)<=a.capacity?n:a.capacity:(!0===r?t>0:t<0)&&("off"===e||"0"===e||"off-grid"===e.toLowerCase()||!a.show||parseInt(o.state)>=a.capacity?s=i:parseInt(o.state)=95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",o="green";break;case 85<=parseInt(t.state)&&parseInt(t.state)<95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",o="green";break;case 75<=parseInt(t.state)&&parseInt(t.state)<85:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zH5z",o="#9ACD32";break;case 65<=parseInt(t.state)&&parseInt(t.state)<75:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 11z",o="gold";break;case 55<=parseInt(t.state)&&parseInt(t.state)<65:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",o="gold";break;case 45<=parseInt(t.state)&&parseInt(t.state)<55:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zH5z",o="gold";break;case 35<=parseInt(t.state)&&parseInt(t.state)<45:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",o="orange";break;case 25<=parseInt(t.state)&&parseInt(t.state)<35:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",o="orange";break;case 10<=parseInt(t.state)&&parseInt(t.state)<25:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",o="orange";break;case 0<=parseInt(t.state)&&parseInt(t.state)<10:default:n=e,a=e,o="red"}return{batteryIcon:n,batteryCharge:a,stopColour:o,battery0:e}}}function to(t){return{...t,toNum:(e,n)=>qe.toNum(t?.state,e,n),isValid:()=>null!==t?.state&&void 0!==t.state&&"unknown"!==t.state||!1,notEmpty:()=>""!==t?.state&&null!==t?.state&&"unknown"!==t?.state&&void 0!==t.state||!1,isNaN:()=>null===t?.state||Number.isNaN(t?.state),toPower:e=>{const n=(t.attributes?.unit_of_measurement||"").toLowerCase();return"kw"===n||"kwh"===n?qe.toNum(1e3*(t?.state||"0"),0,e):"mw"===n||"mwh"===n?qe.toNum(1e6*(t?.state||"0"),0,e):qe.toNum(t?.state||"0",0,e)||0},toPowerString:(e,n,a)=>e?qe.convertValueNew(t?.state,t?.attributes?.unit_of_measurement,n||0):"".concat(qe.toNum(t?.state,0,a)," ").concat(t?.attributes?.unit_of_measurement||""),toString:()=>t?.state?.toString()||"",getUOM:()=>t?.attributes?.unit_of_measurement||""}}console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(Ee("common.version"),": ").concat("6.2.1"," "),"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),console.log("Readme:","https://github.com/slipx06/sunsynk-power-flow-card"),console.groupEnd();let eo=class extends rt{constructor(){super(...arguments),this.durationPrev={},this.durationCur={}}static get styles(){return pt}static async getConfigElement(){return await Promise.resolve().then((function(){return uo})),document.createElement(De)}static getStubConfig(){return{cardstyle:mt.Lite,show_solar:!0,battery:{energy:0,shutdown_soc:20,show_daily:!0},solar:{show_daily:!0,mppts:2},load:{show_daily:!0},grid:{show_daily_buy:!0,show_daily_sell:!1,show_nonessential:!0},entities:{use_timer_248:"switch.sunsynk_toggle_system_timer",priority_load_243:"switch.sunsynk_toggle_priority_load",inverter_voltage_154:"sensor.sunsynk_inverter_voltage",load_frequency_192:"sensor.sunsynk_load_frequency",inverter_current_164:"sensor.sunsynk_inverter_current",inverter_power_175:"sensor.sunsynk_inverter_power",grid_connected_status_194:"binary_sensor.sunsynk_grid_connected_status",inverter_status_59:"sensor.sunsynk_overall_state",day_battery_charge_70:"sensor.sunsynk_day_battery_charge",day_battery_discharge_71:"sensor.sunsynk_day_battery_discharge",battery_voltage_183:"sensor.sunsynk_battery_voltage",battery_soc_184:"sensor.sunsynk_battery_soc",battery_power_190:"sensor.sunsynk_battery_power",battery_current_191:"sensor.sunsynk_battery_current",grid_power_169:"sensor.sunsynk_grid_power",day_grid_import_76:"sensor.sunsynk_day_grid_import",day_grid_export_77:"sensor.sunsynk_day_grid_export",grid_ct_power_172:"sensor.sunsynk_grid_ct_power",day_load_energy_84:"sensor.sunsynk_day_load_energy",essential_power:"none",nonessential_power:"none",aux_power_166:"sensor.sunsynk_aux_power",day_pv_energy_108:"sensor.sunsynk_day_pv_energy",pv1_power_186:"sensor.sunsynk_pv1_power",pv2_power_187:"sensor.sunsynk_pv2_power",pv1_voltage_109:"sensor.sunsynk_pv1_voltage",pv1_current_110:"sensor.sunsynk_pv1_current",pv2_voltage_111:"sensor.sunsynk_pv2_voltage",pv2_current_112:"sensor.sunsynk_pv2_current"}}}render(){Le.hass=this.hass;const t=this._config,e=this.getEntity("entities.day_battery_discharge_71"),n=this.getEntity("entities.day_battery_charge_70"),a=this.getEntity("entities.day_battery2_discharge_71"),o=this.getEntity("entities.day_battery2_charge_70"),i=this.getEntity("entities.day_load_energy_84"),r=this.getEntity("entities.day_grid_import_76"),s=this.getEntity("entities.day_pv_energy_108"),l=this.getEntity("entities.day_grid_export_77"),d=this.getEntity("entities.day_aux_energy"),c=this.getEntity("entities.inverter_voltage_154"),u=this.getEntity("entities.load_frequency_192"),y=this.getEntity("entities.inverter_current_164"),h=this.getEntity("entities.inverter_status_59",{state:""}),g=this.getEntity("entities.inverter_power_175"),p=this.getEntity("entities.priority_load_243",{state:t.entities.priority_load_243?.toString()??"false"}),f=this.getEntity("entities.use_timer_248",{state:t.entities.use_timer_248?.toString()??"false"}),m=this.getEntity("entities.dc_transformer_temp_90",{state:""}),_=this.getEntity("entities.radiator_temp_91",{state:""}),v=this.getEntity("entities.inverter_voltage_L2",{state:""}),w=this.getEntity("entities.inverter_voltage_L3",{state:""}),x=this.getEntity("entities.inverter_current_L2",{state:""}),b=this.getEntity("entities.inverter_current_L3",{state:""}),A=this.getEntity("entities.environment_temp",{state:""}),P=this.getEntity("entities.battery_voltage_183"),L=this.getEntity("entities.battery_soc_184"),C=this.getEntity("entities.battery_power_190"),E=this.getEntity("entities.battery_current_191"),N=this.getEntity("entities.battery_temp_182",{state:""}),M=this.getEntity("entities.battery_status",{state:""}),k=this.getEntity("entities.battery_current_direction",{state:""}),S=this.getEntity("entities.battery_rated_capacity",{state:""}),O=this.getEntity("battery.shutdown_soc",{state:t.battery.shutdown_soc?.toString()??""}),B=this.getEntity("battery.shutdown_soc_offgrid",{state:t.battery.shutdown_soc_offgrid?.toString()??""}),T=this.getEntity("entities.battery_soh",{state:""}),I=this.getEntity("battery.soc_end_of_charge",{state:t.battery.soc_end_of_charge?.toString()??""}),D=this.getEntity("entities.battery2_voltage_183"),V=this.getEntity("entities.battery2_soc_184"),G=this.getEntity("entities.battery2_power_190"),z=this.getEntity("entities.battery2_current_191"),R=this.getEntity("entities.battery2_temp_182",{state:""}),j=this.getEntity("entities.battery2_status",{state:""}),U=this.getEntity("entities.battery2_current_direction",{state:""}),F=this.getEntity("entities.battery2_rated_capacity",{state:""}),Q=this.getEntity("battery2.shutdown_soc",{state:t.battery2.shutdown_soc?.toString()??""}),Z=this.getEntity("battery2.shutdown_soc_offgrid",{state:t.battery2.shutdown_soc_offgrid?.toString()??""}),Y=this.getEntity("entities.battery2_soh",{state:""}),X=this.getEntity("battery2.soc_end_of_charge",{state:t.battery2.soc_end_of_charge?.toString()??""}),K=this.getEntity("entities.essential_power"),J=this.getEntity("entities.aux_power_166"),q=this.getEntity("entities.nonessential_power"),$=this.getEntity("entities.non_essential_load1"),tt=this.getEntity("entities.non_essential_load2"),et=this.getEntity("entities.non_essential_load3"),nt=this.getEntity("entities.non_essential_load1_extra"),at=this.getEntity("entities.non_essential_load2_extra"),ot=this.getEntity("entities.non_essential_load3_extra"),it=this.getEntity("entities.essential_load1"),rt=this.getEntity("entities.essential_load2"),st=this.getEntity("entities.essential_load3"),lt=this.getEntity("entities.essential_load4"),dt=this.getEntity("entities.essential_load5"),ct=this.getEntity("entities.essential_load6"),ut=this.getEntity("entities.aux_connected_status",{state:"on"}),yt=this.getEntity("entities.aux_load1"),gt=this.getEntity("entities.aux_load2"),pt=this.getEntity("entities.essential_load1_extra"),mt=this.getEntity("entities.essential_load2_extra"),vt=this.getEntity("entities.essential_load3_extra"),wt=this.getEntity("entities.essential_load4_extra"),xt=this.getEntity("entities.essential_load5_extra"),bt=this.getEntity("entities.essential_load6_extra"),At=this.getEntity("entities.load_power_L1"),Pt=this.getEntity("entities.load_power_L2"),Lt=this.getEntity("entities.load_power_L3"),Ct=this.getEntity("entities.aux_load1_extra"),Et=this.getEntity("entities.aux_load2_extra"),Nt=this.getEntity("entities.grid_ct_power_172"),Mt=this.getEntity("entities.grid_ct_power_L2"),kt=this.getEntity("entities.grid_ct_power_L3"),St=this.getEntity("entities.grid_ct_power_total"),Ot=this.getEntity("entities.grid_connected_status_194",{state:"on"}),Bt=this.getEntity("entities.grid_power_169"),Tt=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),It=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),Dt=this.getEntity("entities.grid_voltage",null),Vt=this.getEntity("entities.prepaid_units"),Gt=this.getEntity("entities.max_sell_power"),zt=this.getEntity("entities.pv1_voltage_109"),Rt=this.getEntity("entities.pv1_current_110"),jt=this.getEntity("entities.pv2_voltage_111"),Ht=this.getEntity("entities.pv2_current_112"),Wt=this.getEntity("entities.pv3_voltage_113"),Ut=this.getEntity("entities.pv3_current_114"),Ft=this.getEntity("entities.pv4_voltage_115"),Qt=this.getEntity("entities.pv4_current_116"),Zt=this.getEntity("entities.pv1_power_186"),Yt=this.getEntity("entities.pv2_power_187"),Xt=this.getEntity("entities.pv3_power_188"),Kt=this.getEntity("entities.pv4_power_189"),Jt=this.getEntity("entities.remaining_solar"),qt=this.getEntity("entities.solar_sell_247",{state:"undefined"}),$t=this.getEntity("entities.pv_total"),te=this.getEntity("entities.total_pv_generation"),{invert_aux:ee}=t.load,ne=J.toPower(ee),{invert_grid:ae}=t.grid,oe=Nt.toPower(ae),ie=Mt.toPower(ae),re=kt.toPower(ae),se=t.entities?.grid_ct_power_total?St.toPower(ae):oe+ie+re,le=t.inverter.three_phase?se:oe,de=Dt.isNaN()?null:Dt.toNum(0),ce=k.isNaN()?null:k.toNum(0),ue=U.isNaN()?null:U.toNum(0),ye=t.inverter?.modern,he=t.decimal_places,ge=t.decimal_places_energy,pe=this.colourConvert(t.load?.colour),fe=this.calculateAuxLoadColour(J.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,me=this.colourConvert(t.load?.aux_off_colour||fe),_e=this.calculateAuxLoadColour(yt.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,ve=this.calculateAuxLoadColour(gt.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,we=this.calculateEssentialLoadColour(it.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,xe=this.calculateEssentialLoadColour(rt.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,be=this.calculateEssentialLoadColour(st.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,Ae=this.calculateEssentialLoadColour(lt.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,Pe=this.calculateEssentialLoadColour(dt.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe,Ce=this.calculateEssentialLoadColour(ct.toPower(!1),qe.toNum(t.load?.off_threshold,0))||pe;t.title_colour=this.colourConvert(t.title_colour);const Ne=t.load?.show_daily,De=t.grid?.show_nonessential;let Ve=t.entities?.grid_connected_status_194?Ot.state:"on";Ie.includes(Ve.toLowerCase())||Te.includes(Ve.toLowerCase())||(Ve="on");const He=t.entities?.aux_connected_status?ut.state:"on",We=t.entities?.load_frequency_192?u.toNum(2):0,Ue=t.entities?.inverter_voltage_154?t.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?c.toNum(0):c.toNum(1):0,Fe=t.entities?.inverter_voltage_L2?t.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",Qe=t.entities?.inverter_voltage_L3?t.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?w.toNum(0):w.toNum(1):"",Ze=t.entities?.inverter_current_164?y.toNum(1):0,Ye=t.entities?.inverter_current_L2?x.toNum(1):"",Xe=t.entities?.inverter_current_L3?b.toNum(1):"",Ke=t.entities?.battery_voltage_183?P.toNum(1):0,Je=t.entities?.battery2_voltage_183?D.toNum(1):0,Ma=t.entities?.inverter_power_175?g.toPower():0,ka=t.entities?.grid_power_169?Bt.toPower():0,{invert_load:Sa}=t.load,Oa=t.entities?.load_power_L1?At.toPower(Sa):"",Ba=t.entities?.load_power_L2?Pt.toPower(Sa):"",Ta=t.entities?.load_power_L3?Lt.toPower(Sa):"",Ia=this.colourConvert(t.grid?.colour),Da=this.colourConvert(t.grid?.export_colour||Ia),Va=this.colourConvert(t.grid?.no_grid_colour||Ia);let Ga;switch(!0){case le<-qe.toNum(t.grid?.off_threshold,0):Ga=Da;break;case le>=-qe.toNum(t.grid?.off_threshold,0)&&le<=qe.toNum(t.grid?.off_threshold,0):Ga=Va;break;default:Ga=Ia}const za=Math.abs($.toPower(!1))>qe.toNum(t.grid?.off_threshold,0)?Ga:"grey",Ra=Math.abs(tt.toPower(!1))>qe.toNum(t.grid?.off_threshold,0)?Ga:"grey",ja=Math.abs(et.toPower(!1))>qe.toNum(t.grid?.off_threshold,0)?Ga:"grey",Ha=this.colourConvert(t.grid?.grid_off_colour||Ga);let Wa=t.grid?.additional_loads;ke.includes(Wa)||(Wa=0),t.solar;const Ua=t.grid?.show_daily_buy,Fa=t.grid?.show_daily_sell,Qa=this.colourConvert(t.battery?.colour),Za=this.colourConvert(t.battery?.charge_colour||Qa),Ya=this.colourConvert(t.battery2?.colour),Xa=this.colourConvert(t.battery2?.charge_colour||Ya),Ka=t.battery?.show_daily,Ja=t.solar?.show_daily;let to=t.load?.show_aux;Oe.includes(to)||(to=!1);const eo=t.load?.show_daily_aux;let no=t.load?.additional_loads;(!Me.includes(no)||this.isFullCard&&[3,4,5,6].includes(no)&&to||this.isFullCard&&3===no||!t.wide&&no>=5)&&(no=0);let ao=t.load?.aux_loads;Be.includes(ao)||(ao=0);const oo=t.load?.aux_type,io=this.getEntity("load.load1_icon",{state:t.load?.load1_icon?.toString()??""}).state,ro=this.getEntity("load.load2_icon",{state:t.load?.load2_icon?.toString()??""}).state,so=this.getEntity("load.load3_icon",{state:t.load?.load3_icon?.toString()??""}).state,lo=this.getEntity("load.load4_icon",{state:t.load?.load4_icon?.toString()??""}).state,co=this.getEntity("load.load5_icon",{state:t.load?.load5_icon?.toString()??""}).state,uo=this.getEntity("load.load6_icon",{state:t.load?.load6_icon?.toString()??""}).state,yo=this.getEntity("load.aux_load1_icon",{state:t.load?.aux_load1_icon?.toString()??""}).state,ho=this.getEntity("load.aux_load2_icon",{state:t.load?.aux_load2_icon?.toString()??""}).state,go=this.getEntity("grid.nonessential_icon",{state:t.grid?.nonessential_icon?.toString()??""}).state,po=this.getEntity("grid.load1_icon",{state:t.grid?.load1_icon?.toString()??""}).state,fo=this.getEntity("grid.load2_icon",{state:t.grid?.load2_icon?.toString()??""}).state,mo=this.getEntity("grid.load3_icon",{state:t.grid?.load3_icon?.toString()??""}).state,_o=this.getEntity("grid.import_icon",{state:t.grid?.import_icon?.toString()??""}).state,vo=this.getEntity("grid.disconnected_icon",{state:t.grid?.disconnected_icon?.toString()??""}).state,wo=this.getEntity("grid.export_icon",{state:t.grid?.export_icon?.toString()??""}).state,xo=!!t.entities.remaining_solar&&qe.convertValueNew(Jt.state,Jt.attributes?.unit_of_measurement,he),bo=!!t.entities.total_pv_generation&&qe.convertValueNew(te.state,te.attributes?.unit_of_measurement,2),Ao=t.large_font,Po=this.colourConvert(t.inverter?.colour),Lo=t.inverter?.autarky,Co=!!t.entities.use_timer_248&&f.state,Eo=!!t.entities.priority_load_243&&p.state;let No=C.toPower(t.battery?.invert_power),Mo=G.toPower(t.battery2?.invert_power);const ko=this.getEntity("card_height",{state:t.card_height?.toString()??""}).state,So=this.getEntity("card_width",{state:t.card_width?.toString()??""}).state,Oo=0===t.grid?.energy_cost_decimals?0:t.grid?.energy_cost_decimals||2,Bo=le>=0?Tt.toNum(Oo):It.toNum(Oo);let To=ft.Sunsynk;Object.values(ft).includes(t.inverter.model)&&(To=t.inverter.model);let Io="";const Do=qa.getInstance(To);ye||(Io=Do.image);let Vo=!1;this.isCompactCard&&(Vo=!0);const Go=Zt.toPower(),zo=Yt.toPower(),Ro=Xt.toPower(),jo=Kt.toPower(),Ho=Go+zo+Ro+jo,Wo=t.entities?.pv_total?$t.toNum():Ho,Uo=t.solar.dynamic_colour?qe.toNum(Wo,0)>qe.toNum(t.solar?.off_threshold,0)?this.colourConvert(t.solar?.colour):"grey":this.colourConvert(t.solar?.colour);let Fo,Qo,Zo=t.inverter?.three_phase;Se.includes(Zo)||(Zo=!1);const{essential_power:Yo,nonessential_power:Xo}=t.entities;Qo=!1===Zo?"none"!==Xo&&Xo?q.toPower():oe-ka:"none"!==Xo&&Xo?q.toPower():oe+ie+re-ka,Fo="none"!==Yo&&Yo?K.toPower(Sa):!0===Zo&&t.entities.load_power_L1&&t.entities.load_power_L2?Number(Oa)+Number(Ba)+Number(Ta):Ma+ka-ne;const Ko={time:this.getEntity("entities.prog1_time",{state:t.entities.prog1_time??""}),capacity:this.getEntity("entities.prog1_capacity",{state:t.entities.prog1_capacity??""}),charge:this.getEntity("entities.prog1_charge",{state:t.entities.prog1_charge??""})},Jo={time:this.getEntity("entities.prog2_time",{state:t.entities.prog2_time??""}),capacity:this.getEntity("entities.prog2_capacity",{state:t.entities.prog2_capacity??""}),charge:this.getEntity("entities.prog2_charge",{state:t.entities.prog2_charge??""})},qo={time:this.getEntity("entities.prog3_time",{state:t.entities.prog3_time??""}),capacity:this.getEntity("entities.prog3_capacity",{state:t.entities.prog3_capacity??""}),charge:this.getEntity("entities.prog3_charge",{state:t.entities.prog3_charge??""})},$o={time:this.getEntity("entities.prog4_time",{state:t.entities.prog4_time??""}),capacity:this.getEntity("entities.prog4_capacity",{state:t.entities.prog4_capacity??""}),charge:this.getEntity("entities.prog4_charge",{state:t.entities.prog4_charge??""})},ti={time:this.getEntity("entities.prog5_time",{state:t.entities.prog5_time??""}),capacity:this.getEntity("entities.prog5_capacity",{state:t.entities.prog5_capacity??""}),charge:this.getEntity("entities.prog5_charge",{state:t.entities.prog5_charge??""})},ei={time:this.getEntity("entities.prog6_time",{state:t.entities.prog6_time??""}),capacity:this.getEntity("entities.prog6_capacity",{state:t.entities.prog6_capacity??""}),charge:this.getEntity("entities.prog6_charge",{state:t.entities.prog6_charge??""})};let ni=t.battery?.count;(!t.wide||1!==ni&&2!==ni)&&(ni=1);const ai=B.toNum(),oi=O.toNum(),ii=Z.toNum()||ai,ri=Q.toNum()||oi,si={capacity:oi,entityID:""};switch(!0){case"off"===f.state:case!Co:case!t.entities.prog1_time:case!t.entities.prog2_time:case!t.entities.prog3_time:case!t.entities.prog4_time:case!t.entities.prog5_time:case!t.entities.prog6_time:si.show=!1;break;default:{si.show=!0;function us(e){const n=[];[Ko,Jo,qo,$o,ti,ei].forEach(((t,a)=>{if(!t||!t.time||!t.time.state)return void console.error("Program ".concat(a+1," is not defined or has no valid time."));const[o,i]=t.time.state.split(":").map((t=>parseInt(t,10))),r=new Date(e.getTime());r.setHours(o),r.setMinutes(i);const s=(a+1)%6,l=[Ko,Jo,qo,$o,ti,ei][s],d=(l&&l.time&&l.time.state,new Date(e.getTime()));if(l&&l.time&&l.time.state){const[t,e]=l.time.state.split(":").map((t=>parseInt(t,10)));d.setHours(t),d.setMinutes(e)}else console.warn("Next program ".concat(s+1," is not defined or has no valid time."));n[a]={start:r,end:d}})),ys(n,e);for(let a=0;ai&&(e>=o||e{t.start.getTime()50?"on":"off"),null!=ce&&To==ft.Solis&&0===ce&&(No=-No),null!=ue&&To==ft.Solis&&0===ue&&(Mo=-Mo);let li=I.toNum();li=Math.max(50,Math.min(li,100));let di=X.toNum()||li;di=Math.max(50,Math.min(di,100));const ci=2===ni?No+Mo:No;let ui=0;if(t.show_battery)if(!0==!si.show)(!0===t.battery.invert_flow?No<0:No>0)?ui="on"!==Ve&&"1"!==Ve&&"on-grid"!==Ve.toLowerCase()||si.show?"off"!==Ve&&"0"!==Ve&&"off-grid"!==Ve.toLowerCase()||!B.notEmpty()||si.show?oi:ai:oi:(!0===t.battery.invert_flow?No>0:No<0)&&(ui=li);else ui=Do.getBatteryCapacity(No,Ve,oi,si,L,li,t.battery.invert_flow);let yi=0;if(t.show_battery)if(!0==!si.show)(!0===t.battery2.invert_flow?Mo<0:Mo>0)?yi="on"!==Ve&&"1"!==Ve&&"on-grid"!==Ve.toLowerCase()||si.show?"off"!==Ve&&"0"!==Ve&&"off-grid"!==Ve.toLowerCase()||!Z.notEmpty()||si.show?ri:ii:ri:(!0===t.battery2.invert_flow?Mo>0:Mo<0)&&(yi=di);else yi=Do.getBatteryCapacity(Mo,Ve,ri,si,V,di,t.battery2.invert_flow);let hi="",gi="",pi="",fi="";const mi=this.getEntity("battery.energy",{state:t.battery.energy?.toString()??""}),_i=this.getEntity("battery2.energy",{state:t.battery2.energy?.toString()??""});let vi=mi.toPower(!1),wi=_i.toPower(!1);Ke&&S.notEmpty()&&(vi=qe.toNum(Ke*S.toNum(0),0)),Je&&F.notEmpty()&&(wi=qe.toNum(Je*F.toNum(0),0));const xi=vi+wi;if(t.show_battery||0!==vi||0!==wi){const gs=(t,e,n,a,o,i)=>0===o?(t.toNum(0)-e)/100*a*60*60:(i?o<0:o>0)?(t.toNum(0)-n)/100*a/Math.abs(o)*60*60:(i?o>0:o<0)?(n-t.toNum(0))/100*a/Math.abs(o)*60*60:0;let ps=0;if(0!==vi){ps=gs(L,oi,ui,vi,No,t.battery.invert_flow);const ms=new Date,_s=new Date(ms.getTime()+1e3*ps),vs=_s.getHours(),ws=_s.getMinutes().toString().padStart(2,"0"),xs=vs.toString().padStart(2,"0");hi="".concat(xs,":").concat(ws);const bs=Math.floor(ps/86400),As=Math.floor(ps%86400/3600),Ps=Math.floor(ps%3600/60);bs>0&&(pi+="".concat(bs," ").concat(Ee("common.days"),", ")),(As>0||bs>0)&&(pi+="".concat(As," ").concat(Ee("common.hrs"),", ")),pi+="".concat(Ps," ").concat(Ee("common.min"))}let fs=0;if(0!==wi){fs=gs(V,ri,yi,wi,Mo,t.battery2.invert_flow);const Ls=new Date,Cs=new Date(Ls.getTime()+1e3*fs),Es=Cs.getHours(),Ns=Cs.getMinutes().toString().padStart(2,"0"),Ms=Es.toString().padStart(2,"0");gi="".concat(Ms,":").concat(Ns);const ks=Math.floor(fs/86400),Ss=Math.floor(fs%86400/3600),Os=Math.floor(fs%3600/60);ks>0&&(fi+="".concat(ks," ").concat(Ee("common.days"),", ")),(Ss>0||ks>0)&&(fi+="".concat(Ss," ").concat(Ee("common.hrs"),", ")),fi+="".concat(Os," ").concat(Ee("common.min"))}}const bi=-2<=E.toNum(0)&&E.toNum(0)<=2&&L.toNum(0)>=99,Ai=-2<=z.toNum(0)&&z.toNum(0)<=2&&V.toNum(0)>=99,Pi=2===ni?bi&&Ai:bi;let Li,Ci;Li=(!0===t.battery.invert_flow?No>0&&!bi:No<0&&!bi)?Za:Qa,Ci=(!0===t.battery2.invert_flow?Mo>0&&!Ai:Mo<0&&!Ai)?Xa:Ya;let Ei="",Ni="",Mi=h.state,ki=!1;To==ft.Solis&&(Mi=h.isNaN()?h.toString():h.toNum(0).toString());const Si=Do.statusGroups;if(Si)for(const Bs of Object.keys(Si)){const Ts=Si[Bs],{states:Is,color:Ds,message:Vs}=Ts;if(Is.includes(Mi.toLowerCase())){Ei=Ds,Ni=Vs,ki=!0;break}}ki||("none"!==t.entities?.inverter_status_59&&t.entities?.inverter_status_59?(Ei="transparent",Ni="Status"):(Ei="transparent",Ni=""));let Oi="transparent",Bi="",Ti="transparent",Ii="",Di=!1,Vi=!1;if([ft.GoodweGridMode,ft.Goodwe,ft.Huawei].includes(To)){const Gs=Do.batteryStatusGroups;if(Gs)for(const zs of Object.keys(Gs)){const Rs=Gs[zs],{states:js,color:Hs,message:Ws}=Rs;if(!Di&&js.includes(M.state.toLowerCase())&&(Oi=Hs,Bi=Ws,Di=!0),!Vi&&js.includes(j.state.toLowerCase())&&(Ti=Hs,Ii=Ws,Vi=!0),Di&&Vi)break}Di||("none"!==t.entities?.battery_status&&t.entities?.battery_status?(Oi="transparent",Bi="Status"):(Oi="transparent",Bi="")),Vi||("none"!==t.entities?.battery2_status&&t.entities?.battery2_status?(Ti="transparent",Ii="Status"):(Ti="transparent",Ii=""))}const Gi=e.toNum()+a.toNum(),zi=n.toNum()+o.toNum(),Ri=s.toNum()+Gi,ji=i.toNum()+zi,Hi=0!=ji?Math.max(Math.min(Math.round(100*Ri/ji),100),0):0,Wi=0!=Ri?Math.max(Math.min(Math.round(100*ji/Ri),100),0):0,Ui=Wo+qe.toNum("".concat((!0===t.battery.invert_flow?ci<0:ci>0)?Math.abs(ci):0))+qe.toNum("".concat(ne<0?-1*ne:0)),Fi=Fo+Math.max(Qo,0)+qe.toNum("".concat(ne>0?ne:0))+qe.toNum("".concat((!0===t.battery.invert_flow?ci>0:ci<0)?Math.abs(ci):0)),Qi=0!=Fi?Math.max(Math.min(Math.round(100*Ui/Fi),100),0):0,Zi=0!=Ui?Math.max(Math.min(Math.round(100*Fi/Ui),100),0):0,Yi=(qe.toNum(t.max_line_width)<1?1:t.max_line_width)-1,Xi=qe.toNum(t.min_line_width)||1,Ki=this.getEntity("battery.max_power",{state:t.battery.max_power?.toString()??""}).toNum(0),Ji=this.getEntity("solar.max_power",{state:t.solar.max_power?.toString()??""}),qi=this.getEntity("load.max_power",{state:t.load.max_power?.toString()??""}),$i=this.getEntity("grid.max_power",{state:t.grid.max_power?.toString()??""}),tr=t.solar.max_power?this.dynamicLineWidth(Go,Ji.toNum()||Go,Yi,Xi):Xi,er=t.solar.max_power?this.dynamicLineWidth(zo,Ji.toNum()||zo,Yi,Xi):Xi,nr=t.solar.max_power?this.dynamicLineWidth(Ro,Ji.toNum()||Ro,Yi,Xi):Xi,ar=t.solar.max_power?this.dynamicLineWidth(jo,Ji.toNum()||jo,Yi,Xi):Xi,or=t.battery.max_power?this.dynamicLineWidth(Math.abs(ci),Ki||Math.abs(ci),Yi,Xi):Xi,ir=t.load.max_power?this.dynamicLineWidth(Math.abs(Fo),qi.toNum()||Math.abs(Fo),Yi,Xi):Xi,rr=t.load.max_power?this.dynamicLineWidth(Math.abs(ne),qi.toNum()||Math.abs(ne),Yi,Xi):Xi,sr=t.grid.max_power?this.dynamicLineWidth(Math.abs(le),$i.toNum()||Math.abs(le),Yi,Xi):Xi,lr=t.grid.max_power?this.dynamicLineWidth(Math.abs(ka),$i.toNum()||Math.abs(ka),Yi,Xi):Xi,dr=t.grid.max_power?this.dynamicLineWidth(Math.abs(Qo),$i.toNum()||Math.abs(Qo),Yi,Xi):Xi,cr=t.solar.max_power?this.dynamicLineWidth(Wo,Ji.toNum()||Wo,Yi,Xi):Xi;if(t&&t.solar&&t.solar.animation_speed){const Us=t.solar.animation_speed-(t.solar.animation_speed-1)*(Wo/(Ji.toNum()||Wo));this.changeAnimationSpeed("solar",Us)}if(t&&t.solar&&t.solar.animation_speed){const Fs=t.solar.animation_speed-(t.solar.animation_speed-1)*(Go/(Ji.toNum()||Go));this.changeAnimationSpeed("pv1",Fs)}if(t&&t.solar&&t.solar.animation_speed){const Qs=t.solar.animation_speed-(t.solar.animation_speed-1)*(zo/(Ji.toNum()||zo));this.changeAnimationSpeed("pv2",Qs)}if(t&&t.solar&&t.solar.animation_speed){const Zs=t.solar.animation_speed-(t.solar.animation_speed-1)*(Ro/(Ji.toNum()||Ro));this.changeAnimationSpeed("pv3",Zs)}if(t&&t.solar&&t.solar.animation_speed){const Ys=t.solar.animation_speed-(t.solar.animation_speed-1)*(jo/(Ji.toNum()||jo));this.changeAnimationSpeed("pv4",Ys)}if(t&&t.battery&&t.battery.animation_speed){const Xs=t.battery.animation_speed-(t.battery.animation_speed-1)*(Math.abs(ci)/(Ki||Math.abs(ci)));this.changeAnimationSpeed("battery",Xs)}if(t&&t.load&&t.load.animation_speed){const Ks=t.load.animation_speed-(t.load.animation_speed-1)*(Math.abs(Fo)/(qi.toNum()||Math.abs(Fo)));this.changeAnimationSpeed("load",Ks),this.changeAnimationSpeed("load1",Ks)}if(t&&t.load&&t.load.animation_speed){const Js=t.load.animation_speed-(t.load.animation_speed-1)*(Math.abs(ne)/(qi.toNum()||Math.abs(ne)));this.changeAnimationSpeed("aux",Js),this.changeAnimationSpeed("aux1",Js)}if(t&&t.grid&&t.grid.animation_speed){const qs=t.grid.animation_speed-(t.grid.animation_speed-1)*(Math.abs(le)/($i.toNum()||Math.abs(le)));this.changeAnimationSpeed("grid1",qs),this.changeAnimationSpeed("grid",qs),this.changeAnimationSpeed("grid2",qs)}if(t&&t.grid&&t.grid.animation_speed){const $s=t.grid.animation_speed-(t.grid.animation_speed-1)*(Math.abs(Qo)/($i.toNum()||Math.abs(Qo)));this.changeAnimationSpeed("ne",$s)}const ur=0===Wo?0:"off"!==Eo&&Eo?Wo/(Zo?Fo+Math.max(ne,0):Fo)*100:!0===t.battery.invert_flow?ci<0?Wo/(Zo?Fo+Math.max(ne,0):Fo)*100:(Wo-Math.abs(ci))/(Zo?Fo+Math.max(ne,0):Fo)*100:ci>0?Wo/(Zo?Fo+Math.max(ne,0):Fo)*100:(Wo-Math.abs(ci))/(Zo?Fo+Math.max(ne,0):Fo)*100,yr=!0===t.battery.invert_flow?ci>=0?0:Math.abs(ci)/(Zo?Fo+Math.max(ne,0):Fo)*100:ci<=0?0:Math.abs(ci)/(Zo?Fo+Math.max(ne,0):Fo)*100,hr=ur+yr,gr=0===hr?0:ur/hr*100,pr=0===hr?0:yr/hr*100;let fr=0,mr=0,_r=0;hr>100?(fr=qe.toNum(gr,0),mr=qe.toNum(pr,0)):(fr=qe.toNum(Math.min(ur,100),0),mr=qe.toNum(Math.min(yr,100),0),_r=le>0?100-(fr+mr):0);const vr=0===Wo||(!0===t.battery.invert_flow?ci<=0:ci>=0)?0:"off"!==Eo&&Eo?(Wo-Fo)/Math.abs(ci)*100:Wo/Math.abs(ci)*100,wr=(!0===t.battery.invert_flow?No<=0:No>=0)||le<=0?0:"on"===Eo?Wo-Fo>=Math.abs(ci)?0:(le-Math.max(Fo-Wo,0))/Math.abs(ci)*100:Wo>=Math.abs(ci)?0:(Math.abs(ci)-Wo)/Math.abs(ci)*100,xr=vr+wr,br=0===xr?0:vr/xr*100,Ar=0===xr?0:wr/xr*100;let Pr,Lr,Cr,Er,Nr,Mr=0,kr=0;switch(xr>100?(Mr=qe.toNum(br,0),kr=qe.toNum(Ar,0)):(Mr=qe.toNum(Math.min(vr,100),0),kr=qe.toNum(Math.min(wr,100),0)),!0){case Mr>=qe.toNum(t.battery?.path_threshold,0):Pr=Uo;break;case kr>=qe.toNum(t.battery?.path_threshold,0):Pr=Ga;break;default:Pr=Li}switch(!0){case fr>=qe.toNum(t.load?.path_threshold,0):Lr=Uo;break;case mr>=qe.toNum(t.load?.path_threshold,0):Lr=Li;break;case _r>=qe.toNum(t.load?.path_threshold,0):Lr=Ga;break;default:Lr=pe}switch(!0){case fr>=qe.toNum(t.load?.path_threshold,0):Cr=Uo;break;case mr>=qe.toNum(t.load?.path_threshold,0):Cr=Li;break;case _r>=qe.toNum(t.load?.path_threshold,0):case kr>=qe.toNum(t.battery?.path_threshold,0):Cr=Ga;break;default:Cr=Po}switch(!0){case ur>=100&&yr<=5&&le-Qo<50&&t.load.dynamic_icon:Er=nn,Nr=1;break;case yr>=100&&ur<=5&&le-Qo<50&&t.load.dynamic_icon:Er=tn,Nr=0;break;case ur<5&&yr<5&&_r>0&&t.load.dynamic_icon:Er=en,Nr=0;break;default:Er=$e,Nr=0}const{batteryIcon:Sr,batteryCharge:Or,stopColour:Br,battery0:Tr}=$a.convert(L),{batteryIcon:Ir,batteryCharge:Dr,stopColour:Vr,battery0:Gr}=$a.convert(V),zr=this.getEntity("solar.pv1_max_power",{state:t.solar.pv1_max_power?.toString()??""}),Rr=this.getEntity("solar.pv2_max_power",{state:t.solar.pv2_max_power?.toString()??""}),jr=this.getEntity("solar.pv3_max_power",{state:t.solar.pv3_max_power?.toString()??""}),Hr=this.getEntity("solar.pv4_max_power",{state:t.solar.pv4_max_power?.toString()??""}),Wr=t.solar.max_power&&0!==t.solar.efficiency?qe.toNum(Math.min(Wo/Ji.toNum()*100,200),0):100,Ur=t.solar.pv1_max_power&&0!==t.solar.efficiency?qe.toNum(Math.min(Go/zr.toNum()*100,200),0):100,Fr=t.solar.pv2_max_power&&0!==t.solar.efficiency?qe.toNum(Math.min(zo/Rr.toNum()*100,200),0):100,Qr=t.solar.pv3_max_power&&0!==t.solar.efficiency?qe.toNum(Math.min(Ro/jr.toNum()*100,200),0):100,Zr=t.solar.pv4_max_power&&0!==t.solar.efficiency?qe.toNum(Math.min(jo/Hr.toNum()*100,200),0):100;let Yr,Xr,Kr,Jr;switch(!0){case le<0&&Ie.includes(Ve.toLowerCase()):Yr=wo,Xr=Ga;break;case le>=0&&Ie.includes(Ve.toLowerCase()):Yr=_o,Xr=Ga;break;case 0===le&&Te.includes(Ve.toLowerCase()):Yr=vo,Xr=Ha;break;default:Yr=_o,Xr=Ga}switch(!0){case!t.show_solar&&t.show_battery&&0===no:Kr="138",Jr="280";break;case!t.show_solar&&t.show_battery&&[1,2,3,4].includes(no):Kr="70",Jr="350";break;case t.show_solar&&!t.show_battery&&[2,3,4].includes(no):Kr="0",Jr="350";break;case t.show_solar&&!t.show_battery&&[0,1].includes(no):Kr="0",Jr="315";break;case!t.show_solar&&!t.show_battery&&0===no:Kr="115",Jr="225";break;case!t.show_solar&&!t.show_battery&&1===no:Kr="85",Jr="230";break;case!t.show_solar&&!t.show_battery&&[2,3,4].includes(no):Kr="65",Jr="285";break;default:Kr="0",Jr="408"}const qr=qe.toNum(t.load?.off_threshold,0),$r="transparent"===t.load?.off_colour;let ts=pe,es=pe;const ns={1:[it],2:[it],3:[it],4:[it,rt],5:[it,rt,dt],6:[it,rt,dt]},as={2:[rt],3:[rt,st],4:[st,lt],5:[st,lt],6:[st,lt,ct]},os={1:[it],2:[it,rt],4:[it,rt],5:[it,rt,dt],6:[it,rt,dt]},is={4:[st,lt],5:[st,lt],6:[st,lt,ct]},rs=(t,e)=>((...t)=>t.every((t=>t.toPower(!1)<=qr)))(...t)?"transparent":e;$r&&(this.isLiteCard||this.isCompactCard)&&(ts=rs(ns[no]||[],ts),es=rs(as[no]||[],es)),$r&&this.isFullCard&&(ts=rs(os[no]||[],ts),es=rs(is[no]||[],es));const ss=Ve.toLowerCase();let ls=oi,ds=ri;switch(!0){case["on","1","on-grid"].includes(ss):ls=oi,ds=ri;break;case["off","0","off-grid"].includes(ss):ls=B.notEmpty()?ai:oi,ds=Z.notEmpty()?ii:ri}const cs={config:t,compactMode:Vo,viewBoxYLite:Kr,viewBoxHeightLite:Jr,cardHeight:ko,cardWidth:So,loadColour:pe,load1Colour:ts,load2Colour:es,batteryColour:Li,battery2Colour:Ci,gridColour:Ga,isFloating:bi,isFloating2:Ai,isFloatingCombined:Pi,inverterColour:Po,solarColour:Uo,auxOffColour:me,batteryEnergy:vi,battery2Energy:wi,batteryTotalEnergy:xi,largeFont:Ao,batteryPower:No,battery2Power:Mo,batteryPowerTotal:ci,batteryDuration:pi,batteryDuration2:fi,batteryCapacity:ui,battery2Capacity:yi,additionalLoad:no,essIconSize:Nr,essIcon:Er,stateUseTimer:f,batteryStateMsg:Bi,battery2StateMsg:Ii,stateBatterySoc:L,stateBattery2Soc:V,inverterProg:si,solarShowDaily:Ja,batteryPercentage:mr,pvPercentage:fr,loadShowDaily:Ne,stateEnergyCostSell:It,stateEnergyCostBuy:Tt,loadPowerL1:Oa,loadPowerL2:Ba,loadPowerL3:Ta,durationCur:this.durationCur,stateEssentialLoad1:it,stateEssentialLoad2:rt,stateEssentialLoad3:st,stateEssentialLoad4:lt,stateEssentialLoad5:dt,stateEssentialLoad6:ct,gridPower:oe,gridPowerL2:ie,gridPowerL3:re,decimalPlaces:he,decimalPlacesEnergy:ge,stateEssentialLoad1Extra:pt,stateEssentialLoad2Extra:mt,stateEssentialLoad3Extra:vt,stateEssentialLoad4Extra:wt,stateEssentialLoad5Extra:xt,stateEssentialLoad6Extra:bt,stateNonEssentialLoad1Extra:nt,stateNonEssentialLoad2Extra:at,stateNonEssentialLoad3Extra:ot,loadFrequency:We,statePV4Current:Qt,gridShowDailyBuy:Ua,gridShowDailySell:Fa,batteryShowDaily:Ka,inverterModel:To,batteryShutdown:oi,batteryShutdown2:ri,enableAutarky:Lo,autarkyPower:Qi,ratioPower:Zi,ratioEnergy:Wi,autarkyEnergy:Hi,shutdownOffGrid2:ii,shutdownOffGrid:ai,batteryOneShutdown:ls,batteryTwoShutdown:ds,statePV1Current:Rt,statePV2Current:Ht,statePV3Current:Ut,energyCost:Bo,inverterCurrent:Ze,inverterCurrentL2:Ye,inverterCurrentL3:Xe,stateRadiatorTemp:_,inverterVoltage:Ue,inverterVoltageL2:Fe,inverterVoltageL3:Qe,batteryVoltage:Ke,battery2Voltage:Je,stateBatteryCurrent:E,stateBattery2Current:z,batLineWidth:or,totalGridPower:le,solarLineWidth:cr,totalPV:Wo,loadLineWidth:ir,pvPercentageBat:Mr,gridPercentageBat:kr,genericInverterImage:ye,battery0:Tr,battery20:Gr,essentialPower:Fo,pv1LineWidth:tr,pv2LineWidth:er,pv3LineWidth:nr,pv4LineWidth:ar,gridLineWidth:sr,pv1PowerWatts:Go,pv2PowerWatts:zo,pv3PowerWatts:Ro,pv4PowerWatts:jo,stateEnvironmentTemp:A,statePV1Voltage:zt,statePV2Voltage:jt,statePV3Voltage:Wt,statePV4Voltage:Ft,batteryStateColour:Oi,battery2StateColour:Ti,inverterStateColour:Ei,stateBatteryTemp:N,stateBattery2Temp:R,statePrepaidUnits:Vt,stateDCTransformerTemp:m,iconEssentialLoad1:io,iconEssentialLoad2:ro,iconEssentialLoad3:so,iconEssentialLoad4:lo,iconEssentialLoad5:co,iconEssentialLoad6:uo,enableTimer:Co,stateSolarSell:qt,priorityLoad:Eo,inverterImg:Io,stateDayPVEnergy:s,statePV2Power:Yt,statePV3Power:Xt,statePV4Power:Kt,remainingSolar:xo,totalSolarGeneration:bo,stateDayLoadEnergy:i,stateDayBatteryDischarge:e,stateDayGridImport:r,stateDayBatteryCharge:n,stateDayGridExport:l,statePVTotal:$t,statePV1Power:Zt,minLineWidth:Xi,stopColour:Br,stop2Colour:Vr,gridStatus:Ve,batteryCharge:Or,battery2Charge:Dr,gridOffColour:Ha,batteryIcon:Sr,battery2Icon:Ir,formattedResultTime:hi,formattedResultTime2:gi,showAux:to,nonessentialIcon:go,showNonessential:De,auxStatus:He,nonessentialLoads:Wa,additionalAuxLoad:ao,stateAuxLoad1Extra:Ct,stateAuxLoad2Extra:Et,iconNonessentialLoad1:po,iconNonessentialLoad2:fo,iconNonessentialLoad3:mo,inverterStateMsg:Ni,auxType:oo,showDailyAux:eo,nonessentialPower:Qo,auxPower:ne,nonessLineWidth:dr,grid169LineWidth:lr,auxLineWidth:rr,iconAuxLoad1:yo,iconAuxLoad2:ho,stateDayAuxEnergy:d,stateAuxLoad1:yt,stateAuxLoad2:gt,stateNonessentialLoad1:$,stateNonessentialLoad2:tt,stateNonessentialLoad3:et,autoScaledInverterPower:Ma,autoScaledGridPower:ka,auxDynamicColour:fe,auxDynamicColourLoad1:_e,auxDynamicColourLoad2:ve,stateMaxSellPower:Gt,totalPVEfficiency:Wr,PV1Efficiency:Ur,PV2Efficiency:Fr,PV3Efficiency:Qr,PV4Efficiency:Zr,gridPercentage:_r,flowColour:Lr,flowBatColour:Pr,flowInvColour:Cr,dynamicColourEssentialLoad1:we,dynamicColourEssentialLoad2:xe,dynamicColourEssentialLoad3:be,dynamicColourEssentialLoad4:Ae,dynamicColourEssentialLoad5:Pe,dynamicColourEssentialLoad6:Ce,dynamicColourNonEssentialLoad1:za,dynamicColourNonEssentialLoad2:Ra,dynamicColourNonEssentialLoad3:ja,stateBatterySOH:T,stateBattery2SOH:Y,customGridIcon:Yr,customGridIconColour:Xr,maximumSOC:li,batteryCount:ni};return this.isFullCard?((t,e,n)=>H(Ln||(Ln=ht(["\n \n \n \n ','\n
\n\n \x3c!-- Solar Elements --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n ','%\n \n \n ','\n \n ','%\n \n \n ','\n \n ','%\n \n \n ','\n \n ','%\n \n ','%\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n '," / ",'\n \n \n \n \n '," /\n ","\n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ','°\n \n \n \n \n \x3c!-- Battery Elements --\x3e\n \n \n \n \n ','\n \n \n \n ','\n \n \n ','°\n \n \n \n \n ','%\n \n \n \n ','\n \n \n \n ','\n \n \n ','°\n \n \n \n \n ','%\n \n \n \n ','\n \n \n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','%\n \n \n ','%\n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n ','\n \n \n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','%\n \n \n ','%\n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n ','\n \n \n ','\n \n \n \n \n \n \n '," ",'\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n \n \n \n '," ",'\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n ','\n \n \n ','\n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Grid Elements --\x3e\n \n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '," \n ",'\n \x3c!-- Nonessential Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n \x3c!-- Nonessential Load Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',": ","\n \n \n ","\n ","\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' Hz\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n\n \x3c!-- Load Elements --\x3e\n \n \n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',"\n ","\n ","\n ",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \x3c!-- Essential Icon --\x3e\n ','\n \x3c!-- Essential Boiler Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Aircon Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Pump Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Oven Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n
\n \n \n\n \n \n \n \n
\n \n \n\n \n \n \n \n
\n \n \n\n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \x3c!-- AUX Elements --\x3e\n \n \n \n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \x3c!-- Aux Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n ',"\n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \x3c!-- Inverter Elements --\x3e\n \n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n \n \n ','\n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ',"\n \n \n ",'\n \n \n \n \n \n \n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ','\n \n \n \n AC:\n ','°\n \n \n \n DC:\n ',"°\n \n \n \n \n
\n \n "])),n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad3,n.dynamicColourEssentialLoad4,n.dynamicColourEssentialLoad5,n.dynamicColourEssentialLoad6,n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad3,n.dynamicColourEssentialLoad4,n.auxDynamicColour,n.auxDynamicColourLoad1,n.auxDynamicColourLoad2,n.auxOffColour,n.dynamicColourNonEssentialLoad1,n.dynamicColourNonEssentialLoad2,n.dynamicColourNonEssentialLoad3,n.gridColour,n.customGridIconColour,n.customGridIconColour,t.title?H(Cn||(Cn=ht(['\n ',"
"])),t.title_colour||"inherit",t.title_size||"32px",t.title):"",t.wide?"0 0 720 405":"0 0 483 405",n.cardHeight,n.cardWidth,(t.wide,"3%"),[1,3].includes(t.solar.efficiency)?"url(#SlG)":n.solarColour,1===t.solar.mppts?"none":"",t.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV1LG)":n.solarColour,t.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV2LG)":n.solarColour,t.show_solar&&1!==t.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV3LG)":n.solarColour,!t.show_solar||[1,2].includes(t.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV4LG)":n.solarColour,!t.show_solar||[1,2,3].includes(t.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,t.show_solar?"":"none",n.solarColour,t.solar.pv1_name||Ee("common.pv1_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 left-align":"st12",!t.show_solar||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,t.show_solar&&1!==t.solar.mppts?"":"none",n.solarColour,t.solar.pv2_name||Ee("common.pv2_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 left-align":"st12",!t.show_solar||1===t.solar.mppts||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!t.show_solar||[1,2].includes(t.solar.mppts)?"none":"",n.solarColour,t.solar.pv3_name||Ee("common.pv3_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 left-align":"st12",!t.show_solar||[1,2].includes(t.solar.mppts)||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!t.show_solar||[1,2,3].includes(t.solar.mppts)?"none":"",n.solarColour,t.solar.pv4_name||Ee("common.pv4_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 left-align":"st12",!t.show_solar||[1,2,3].includes(t.solar.mppts)||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(t.solar.efficiency)?"st3 st8 left-align":"st12",!t.show_solar||[0,1].includes(t.solar.efficiency)||1===t.solar.mppts?"none":"",n.solarColour,n.totalPVEfficiency,1===t.solar.display_mode?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",Ee("common.daily_solar"),2===t.solar.display_mode?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",Ee("common.daily_solar_left"),3===t.solar.display_mode?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",Ee("common.total_solar_generation"),1===t.solar.mppts?t.wide?"M 86 175 M 278 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 175 M 155 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 162 L 86 56 Q 86 56 86 56 L 70 56",t.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),t.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,!0===t.solar.invert_flow?qe.invertKeyPoints("1;0"):"1;0",t.show_solar&&1!==t.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),t.show_solar&&1!==t.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!0===t.solar.invert_flow?qe.invertKeyPoints("1;0"):"1;0",!t.show_solar||[1,2].includes(t.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!t.show_solar||[1,2].includes(t.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!0===t.solar.invert_flow?qe.invertKeyPoints("1;0"):"1;0",!t.show_solar||[1,2,3].includes(t.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!t.show_solar||[1,2,3].includes(t.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,!0===t.solar.invert_flow?qe.invertKeyPoints("1;0"):"1;0",t.wide?"M 278 250 L 96 250 Q 86 250 86 240 L 86 192":"M 155 250 L 96 250 Q 86 250 86 240 L 86 192",t.show_solar&&1!==t.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),t.show_solar&&1!==t.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,!0===t.solar.invert_flow?qe.invertKeyPoints("1;0"):"1;0",t.solar?.navigate?W(En||(En=ht(['\n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.solar.navigate)),t.show_solar?"":"st12",n.solarColour,Pn):W(Nn||(Nn=ht(['\n \n \n '])),t.show_solar?"":"st12",n.solarColour,Pn),(e=>qe.handlePopup(e,t.entities.solar_sell_247)),t.entities.solar_sell_247&&"none"!==t.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&t.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,gn,t.entities.solar_sell_247&&"none"!==t.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&t.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,pn,(e=>qe.handlePopup(e,t.entities.day_pv_energy_108)),1===t.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.day_pv_energy_108)),2===t.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,n.decimalPlacesEnergy),n.remainingSolar,(e=>qe.handlePopup(e,t.entities.day_pv_energy_108)),3===t.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,n.decimalPlacesEnergy),n.totalSolarGeneration,t.entities?.pv_total?W(Mn||(Mn=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.pv_total)),!0!==n.largeFont?"st14":"st4",t.show_solar&&1!==t.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,t.solar.auto_scale?t.entities?.pv_total?qe.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):qe.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qe.toNum(n.totalPV||0,0)," ").concat(Ge.WATT)):W(kn||(kn=ht(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",t.show_solar&&1!==t.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,t.solar.auto_scale?t.entities?.pv_total?qe.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):qe.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qe.toNum(n.totalPV||0,0)," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.pv1_power_186)),!0!==n.largeFont?"st14":"st4",t.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv1PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",t.show_solar&&1!==t.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv2PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",t.show_solar&&![1,2].includes(t.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv3PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",t.show_solar&&![1,2,3].includes(t.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv4PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv1_voltage_109)),t.show_solar&&t.entities.pv1_voltage_109&&"none"!==t.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv1_current_110)),t.show_solar&&t.entities.pv1_current_110&&"none"!==t.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.pv2_voltage_111)),t.show_solar&&t.entities.pv2_voltage_111&&"none"!==t.entities.pv2_voltage_111&&1!==t.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv2_current_112)),t.show_solar&&t.entities.pv2_current_112&&"none"!==t.entities.pv2_current_112&&1!==t.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.pv3_voltage_113)),t.show_solar&&t.entities.pv3_voltage_113&&"none"!==t.entities.pv3_voltage_113&&![1,2].includes(t.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv3_current_114)),t.show_solar&&t.entities.pv3_current_114&&"none"!==t.entities.pv3_current_114&&![1,2].includes(t.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.pv4_voltage_115)),t.show_solar&&t.entities.pv4_voltage_115&&"none"!==t.entities.pv4_voltage_115&&![1,2,3].includes(t.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv4_current_116)),t.show_solar&&t.entities.pv4_current_116&&"none"!==t.entities.pv4_current_116&&![1,2,3].includes(t.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.environment_temp)),t.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,t.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),t.show_battery?"inline":"none",(t.wide,"3%"),t.wide&&2===n.batteryCount?"inline":"none",n.batteryColour,(n.compactMode,""),!0!==n.largeFont?"st14":"st4",n.batteryColour,t.battery.auto_scale?qe.convertValue(n.batteryPowerTotal,n.decimalPlaces)||0:"".concat(qe.toNum(n.batteryPowerTotal||0,0)," ").concat(Ge.WATT),2===n.batteryCount?"12.25%":"0%",t.battery?.navigate?W(Sn||(Sn=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.battery.navigate)),t.battery?.show_remaining_energy?"294":"296.25",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,t.battery.dynamic_colour?"url(#bLg)":n.batteryColour,t.battery.linear_gradient?n.battery0:n.batteryIcon,t.battery?.show_remaining_energy?"294":"296.25",n.stopColour,t.battery.animate?"y2":"none",t.battery.linear_gradient?"url(#sLg)":n.batteryColour,t.battery.linear_gradient?"":"none",n.batteryCharge):W(On||(On=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),t.battery?.show_remaining_energy?"294":"296.25",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,t.battery.dynamic_colour?"url(#bLg)":n.batteryColour,t.battery.linear_gradient?n.battery0:n.batteryIcon,t.battery?.show_remaining_energy?"294":"296.25",n.stopColour,t.battery.animate?"y2":"none",t.battery.linear_gradient?"url(#sLg)":n.batteryColour,t.battery.linear_gradient?"":"none",n.batteryCharge),(e=>qe.handlePopup(e,t.entities.battery_temp_182)),t.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(e=>qe.handlePopup(e,t.entities.battery_soh)),t.entities?.battery_soh?"st3 left-align":"st12",n.batteryColour,!n.stateBatterySOH.isValid()||t.entities?.battery_temp_182?"none":"",n.stateBatterySOH.toNum(0),t.battery.show_remaining_energy?"":"none",n.batteryColour,t.battery.remaining_energy_to_shutdown?"".concat(qe.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR):"".concat(qe.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR),2===n.batteryCount?"inline":"none",2===n.batteryCount?"19%":"0%",t.battery2?.navigate?W(Bn||(Bn=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.battery2.navigate)),t.battery2?.show_remaining_energy?"294":"296.25",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.battery2Colour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.battery2Colour,n.battery2Colour,t.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,t.battery2.linear_gradient?n.battery20:n.battery2Icon,t.battery2?.show_remaining_energy?"294":"296.25",n.stop2Colour,t.battery2.animate?"y2":"none",t.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,t.battery2.linear_gradient?"":"none",n.battery2Charge):W(Tn||(Tn=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),t.battery2?.show_remaining_energy?"294":"296.25",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.battery2Colour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.battery2Colour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.battery2Colour,n.battery2Colour,t.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,t.battery2.linear_gradient?n.battery20:n.battery2Icon,t.battery2?.show_remaining_energy?"294":"296.25",n.stop2Colour,t.battery2.animate?"y2":"none",t.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,t.battery2.linear_gradient?"":"none",n.battery2Charge),(e=>qe.handlePopup(e,t.entities.battery2_temp_182)),t.entities?.battery2_temp_182?"st3 left-align":"st12",n.battery2Colour,n.stateBattery2Temp.isValid()?"":"none",n.stateBattery2Temp.toNum(1),(e=>qe.handlePopup(e,t.entities.battery2_soh)),t.entities?.battery2_soh?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2SOH.isValid()||t.entities?.battery2_temp_182?"none":"",n.stateBattery2SOH.toNum(0),t.battery2.show_remaining_energy?"":"none",n.battery2Colour,t.battery2.remaining_energy_to_shutdown?"".concat(qe.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR):"".concat(qe.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR),2===n.batteryCount?"-20%":"0%",0===n.batteryEnergy||(!0===t.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ee("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,0===n.batteryEnergy||(!0===t.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ee("common.to"),n.batteryCapacity,Ee("common.charge"),n.formattedResultTime,0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Ee("common.battery_floating"),n.batteryColour,t.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,t.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),"none"!==t.entities.battery_soc_184&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(0),(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.batteryColour,!n.inverterProg.show||"none"===t.entities.battery_soc_184||t.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.batteryColour,t.battery.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!t.battery?.shutdown_soc||t.battery?.shutdown_soc_offgrid?"none":"",n.batteryShutdown||0,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.batteryColour,t.battery.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",!0!==n.largeFont?"st14":"st4",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,2===n.batteryCount?"inline":"none",2===n.batteryCount?"25%":"0%",0===n.battery2Energy||(!0===t.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Ee("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===t.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Ee("common.to"),n.battery2Capacity,Ee("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Ee("common.battery_floating"),n.battery2Colour,t.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,t.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),"none"!==t.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===t.entities.battery2_soc_184||t.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,t.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!t.battery2?.shutdown_soc||t.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,t.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",!0!==n.largeFont?"st14":"st4",0===n.battery2Energy||n.isFloating2||0===n.battery2Power?"transparent":"".concat(n.battery2Colour),n.batteryDuration2,"none"!==t.entities?.battery2_status&&t.entities?.battery2_status?"":"none",n.battery2StateColour,n.battery2Colour,n.battery2StateMsg,2===n.batteryCount?"16.25%":"0%",2===n.batteryCount?"320.75":"300.75",2===n.batteryCount?40:70,2===n.batteryCount?50:70,2===n.batteryCount?4.5:10.5,2===n.batteryCount?4.5:10.5,n.batteryColour,(e=>qe.handlePopup(e,t.entities.battery_voltage_183)),2===n.batteryCount?"25":"41",2===n.batteryCount?"329.5":"317","none"!==t.entities.battery_voltage_183&&t.entities.battery_voltage_183?"":"none",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",n.batteryVoltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery_power_190)),2===n.batteryCount?"25":"41",2===n.batteryCount?"362":"356","none"===t.entities.battery_power_190?"none":"",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",t.battery.auto_scale?"".concat(t.battery.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(t.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ge.WATT):"".concat(n.batteryPower||0," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.battery_current_191)),2===n.batteryCount?"25":"41",2===n.batteryCount?"345.75":"336","none"!==t.entities.battery_current_191&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",t.battery.show_absolute?Math.abs(qe.toNum(n.stateBatteryCurrent.state,1)):qe.toNum(n.stateBatteryCurrent.state,1),Re.AMPERE,2===n.batteryCount?"inline":"none",n.battery2Colour,(e=>qe.handlePopup(e,t.entities.battery2_voltage_183)),"none"!==t.entities.battery2_voltage_183&&t.entities.battery2_voltage_183?"":"none",n.battery2Colour,n.battery2Voltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery2_power_190)),"none"===t.entities.battery2_power_190?"none":"",n.battery2Colour,t.battery2.auto_scale?"".concat(t.battery2.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qe.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(t.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Ge.WATT):"".concat(n.battery2Power||0," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.battery2_current_191)),"none"!==t.entities.battery2_current_191&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,t.battery2.show_absolute?Math.abs(qe.toNum(n.stateBattery2Current.state,1)):qe.toNum(n.stateBattery2Current.state,1),Re.AMPERE,2===n.batteryCount?"-8":t.battery.show_remaining_energy?"8":"73","none"!==t.entities?.battery_status&&t.entities?.battery_status?"":"none",n.batteryStateColour,2===n.batteryCount?"0":t.battery.show_remaining_energy?"15":"80",n.batteryColour,n.batteryStateMsg,2===n.batteryCount?"-2%":"0%",2===n.batteryCount?"2%":"0%",!0!==n.batteryShowDaily?"transparent":"".concat(n.batteryColour),Ee("common.daily_charge"),!0!==n.batteryShowDaily?"transparent":"".concat(n.batteryColour),Ee("common.daily_discharge"),(e=>qe.handlePopup(e,t.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.day_battery_discharge_71)),!0===n.batteryShowDaily&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,n.decimalPlacesEnergy),t.wide?2===n.batteryCount?"M 279 280 L 156 281":"M 279 280 L 96 280 Q 86 280 86 290 L 86 297":"M 155 280 L 96 280 Q 86 280 86 290 L 86 297",t.battery.dynamic_colour?n.flowBatColour:n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,!0===t.battery.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(t.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===t.battery.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.wide?"30%":"3%",3===n.nonessentialLoads&&(t.battery.hide_soc||t.wide)?"":"none",n.dynamicColourNonEssentialLoad3,t.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",t.battery.hide_soc||t.wide?"st3 st8":"st12",t.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad3,t.grid.load3_name,t.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",(t.battery.hide_soc||t.wide)&&3===n.nonessentialLoads?"":"none",n.iconNonessentialLoad3,(e=>qe.handlePopup(e,t.entities.non_essential_load3)),t.battery.hide_soc||t.wide?"st3":"st12",t.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&n.stateNonessentialLoad3.isValid()?"":"none",n.dynamicColourNonEssentialLoad3,n.stateNonessentialLoad3.toPowerString(t.grid.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.non_essential_load3_extra)),t.entities?.non_essential_load3_extra&&3===n.nonessentialLoads&&n.stateNonEssentialLoad3Extra.isValid()&&t.show_grid&&t.wide?"":"none",n.dynamicColourNonEssentialLoad3,n.stateNonEssentialLoad3Extra.toNum(1),n.stateNonEssentialLoad3Extra?.getUOM(),n.gridColour,t.show_grid?"":"none",n.gridColour,t.show_grid?"":"none",n.gridColour,n.showNonessential?"":"st12",t.show_grid?"":"none",1===n.nonessentialLoads?"":"none",n.dynamicColourNonEssentialLoad1,t.show_grid&&n.showNonessential?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,t.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad2,t.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,t.grid.load1_name,t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,t.grid.load1_name,t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad2,t.grid.load2_name,n.gridColour,t.show_grid?"":"none",t.grid.grid_name||Ee("common.grid_name"),n.showNonessential?"347":"311",n.showNonessential?t.entities?.max_sell_power?"256":"253":"368",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",t.grid.label_daily_grid_buy||Ee("common.daily_grid_buy"),n.showNonessential?"347":"311",n.showNonessential?t.entities?.max_sell_power?"225":"222":"337",!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",t.grid.label_daily_grid_sell||Ee("common.daily_grid_sell"),t.show_grid&&n.showNonessential?"":"none",n.gridColour,t.grid.nonessential_name||Ee("common.nonessential_name"),n.gridColour,n.gridLineWidth,t.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.inverter.three_phase?"M 421 295 L 421 337":"M 421 295 L 421 310.5",n.gridColour,n.gridLineWidth,t.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid/1.5,!0===t.grid.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid/1.5,!0===t.grid.invert_flow?qe.invertKeyPoints("0;1"):"0;1",n.gridColour,n.nonessLineWidth,t.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),8),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.ne/1.5,!0===t.grid.invert_flow?qe.invertKeyPoints("0;1"):"0;1",n.gridColour,n.nonessLineWidth,t.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),5),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.ne,!0===t.grid.invert_flow?qe.invertKeyPoints("1;0"):"1;0",t.wide?"M143 187 234 187":"M215 187 234 187",n.gridColour,n.grid169LineWidth,t.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower<0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower>0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.grid?.navigate?W(In||(In=ht(['\n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.grid.navigate)),t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower<0||t.grid.import_icon?"none":"",An,t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",Ie.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!t.show_grid||t.grid.disconnected_icon?"none":"",bn,t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower>=0||t.grid.export_icon?"none":"",xn):W(Dn||(Dn=ht(['\n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handlePopup(e,t.entities.grid_connected_status_194)),t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower<0||t.grid.import_icon?"none":"",An,t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",Ie.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!t.show_grid||t.grid.disconnected_icon?"none":"",bn,t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower>=0||t.grid.export_icon?"none":"",xn),t.grid?.navigate?W(Vn||(Vn=ht(['\n \n \n \n \n \n
\n \n \n '])),(e=>qe.handleNavigation(e,t.grid.navigate)),t.show_grid||t.grid.import_icon||t.grid.disconnected_icon||t.grid.export_icon?"":"none",t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34px":"65px",t.inverter.three_phase?"34px":"65px",n.customGridIcon,t.inverter.three_phase?"grid-icon-small":"grid-icon"):W(Gn||(Gn=ht(['\n \n \n \n \n \n
\n \n \n '])),(e=>qe.handlePopup(e,t.entities.grid_connected_status_194)),t.show_grid||t.grid.import_icon||t.grid.disconnected_icon||t.grid.export_icon?"":"none",t.inverter.three_phase?"404":"389",t.inverter.three_phase?"339":"308",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34":"65",t.inverter.three_phase?"34px":"65px",t.inverter.three_phase?"34px":"65px",n.customGridIcon,t.inverter.three_phase?"grid-icon-small":"grid-icon"),"default"===n.nonessentialIcon?"1":"0",t.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"oven"===n.nonessentialIcon?"1":"0",t.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"boiler"===n.nonessentialIcon?"1":"0",t.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"pump"===n.nonessentialIcon?"1":"0",t.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,sn,"aircon"===n.nonessentialIcon?"1":"0",t.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,rn,t.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.nonessentialIcon,"default"===n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"default"===n.iconNonessentialLoad1&&"default"!=n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"default"!=n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,un,"boiler"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"boiler"===n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"pump"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,sn,"pump"===n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,sn,"oven"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"oven"===n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"aircon"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,rn,"aircon"===n.iconNonessentialLoad2?"1":"0",t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,rn,t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad2,"default"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,un,"boiler"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,an,"pump"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,sn,"oven"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,on,"aircon"===n.iconNonessentialLoad1?"1":"0",t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad1,rn,t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,(e=>qe.handlePopup(e,t.entities.day_grid_import_76)),n.showNonessential?"347":"311",n.showNonessential?t.entities?.max_sell_power?"242":"239":"354",t.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.day_grid_export_77)),n.showNonessential?"347":"311",n.showNonessential?t.entities?.max_sell_power?"212":"209":"323",t.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.max_sell_power)),n.showNonessential?"347":"311",n.showNonessential?"198":"309",["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,t.show_grid&&n.stateMaxSellPower.isValid&&t.entities?.max_sell_power?"":"none",Ee("common.limit"),n.stateMaxSellPower.toPowerString(t.grid.auto_scale,n.decimalPlaces),t.inverter.three_phase?t.entities?.grid_ct_power_total?W(zn||(zn=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.grid_ct_power_total)),t.show_grid&&"none"!==t.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ge.WATT):"".concat(n.totalGridPower||0," ").concat(Ge.WATT))):W(Rn||(Rn=ht(['\n \n ',"\n "])),t.show_grid&&"none"!==t.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ge.WATT):"".concat(n.totalGridPower||0," ").concat(Ge.WATT))):W(jn||(jn=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.grid_ct_power_172)),t.show_grid&&"none"!==t.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ge.WATT):"".concat(n.totalGridPower||0," ").concat(Ge.WATT))),t.entities?.nonessential_power&&"none"!==t.entities.nonessential_power?W(Hn||(Hn=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.nonessential_power)),t.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(qe.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Ge.WATT)):W(Wn||(Wn=ht(['\n \n ',"\n "])),t.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(qe.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Ge.WATT)),n.totalGridPower>=0?W(Un||(Un=ht(['\n \n \n '," ",'\n \n \n ','\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.energy_cost_buy)),t.show_grid?"st3 right-align":"st12",n.gridColour,t.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()&&!t.entities.non_essential_load2_extra?"":"none",n.energyCost,n.stateEnergyCostBuy?.getUOM(),t.inverter?.three_phase?"414":"430",t.show_grid?t.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,t.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()&&t.entities.non_essential_load2_extra?"":"none",n.energyCost,t.inverter?.three_phase?"414":"437",t.show_grid?t.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,t.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()&&t.entities.non_essential_load2_extra?"":"none",n.stateEnergyCostBuy?.getUOM()):W(Fn||(Fn=ht(['\n \n \n '," ",'\n \n \n ','\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.energy_cost_sell)),t.show_grid?"st3 right-align":"st12",n.gridColour,t.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()&&!t.entities.non_essential_load2_extra?"":"none",n.energyCost,n.stateEnergyCostSell?.getUOM(),t.inverter?.three_phase?"414":"430",t.show_grid?t.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,t.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()&&t.entities.non_essential_load2_extra?"":"none",n.energyCost,t.inverter?.three_phase?"414":"437",t.show_grid?t.inverter?.three_phase?"st3 right-align":"st3 left-align":"st12",n.gridColour,t.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()&&t.entities.non_essential_load2_extra?"":"none",n.stateEnergyCostSell?.getUOM()),(e=>qe.handlePopup(e,t.entities.grid_power_169)),t.inverter.three_phase?"216":"209",t.show_grid&&"none"!==t.entities.grid_power_169?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.autoScaledGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.autoScaledGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.autoScaledGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.autoScaledGridPower)," ").concat(Ge.WATT):"".concat(n.autoScaledGridPower||0," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.prepaid_units)),t.entities?.prepaid_units?"st3 left-align":"st12",n.gridColour,t.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1),(e=>qe.handlePopup(e,t.entities.grid_ct_power_172)),t.inverter.three_phase?"":"none",t.show_grid?"st3 left-align":"st12",n.gridColour,t.load.auto_scale?"".concat(qe.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.grid_ct_power_L2)),t.inverter.three_phase&&t.entities?.grid_ct_power_L2?"":"none",t.show_grid?"st3 left-align":"st12",n.gridColour,t.load.auto_scale?"".concat(qe.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.grid_ct_power_L3)),t.inverter.three_phase&&t.entities?.grid_ct_power_L3?"":"none",t.show_grid?"st3 left-align":"st12",n.gridColour,t.load.auto_scale?"".concat(qe.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.inverter_voltage_154)),t.inverter.three_phase?"164":"170.4",t.show_grid&&"none"!==t.entities.inverter_voltage_154&&t.entities.inverter_voltage_154?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.inverterVoltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.inverter_voltage_L2)),t.inverter.three_phase&&t.entities?.inverter_voltage_L2?"":"none",t.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL2,je.VOLT,(e=>qe.handlePopup(e,t.entities.inverter_voltage_L3)),t.inverter.three_phase&&t.entities?.inverter_voltage_L3?"":"none",t.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL3,je.VOLT,(e=>qe.handlePopup(e,t.entities.load_frequency_192)),t.inverter.three_phase?"203":"189.5",t.show_grid&&"none"!==t.entities.load_frequency_192&&t.entities.load_frequency_192?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.loadFrequency,(e=>qe.handlePopup(e,t.entities.non_essential_load1)),t.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.dynamicColourNonEssentialLoad1,n.stateNonessentialLoad1.toPowerString(t.grid.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.non_essential_load1)),t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.dynamicColourNonEssentialLoad1,n.stateNonessentialLoad1.toPowerString(t.grid.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.non_essential_load2)),t.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad2.isValid()?"":"none",n.dynamicColourNonEssentialLoad2,n.stateNonessentialLoad2.toPowerString(t.grid.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.non_essential_load1_extra)),t.entities?.non_essential_load1_extra&&[1,2,3].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad1Extra.isValid()&&t.show_grid?"":"none",n.dynamicColourNonEssentialLoad1,n.stateNonEssentialLoad1Extra.toNum(1),n.stateNonEssentialLoad1Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.non_essential_load2_extra)),t.entities?.non_essential_load2_extra&&[2,3].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad2Extra.isValid()&&t.show_grid?"":"none",n.dynamicColourNonEssentialLoad2,n.stateNonEssentialLoad2Extra.toNum(1),n.stateNonEssentialLoad2Extra?.getUOM(),t.wide?"30%":"3%",t.wide&&[5,6].includes(n.additionalLoad)?"0 0 720 405":"0 0 0 0",n.dynamicColourEssentialLoad5,[5,6].includes(n.additionalLoad)?"":"none",[5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad5,t.load.load5_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad5,(e=>qe.handlePopup(e,t.entities.essential_load5_extra)),t.entities?.essential_load5_extra&&[5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad5Extra.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5Extra.toNum(1),n.stateEssentialLoad5Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load5)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5.toPowerString(t.load.auto_scale,n.decimalPlaces),t.wide&&[6].includes(n.additionalLoad)?"0 0 720 405":"0 0 0 0",n.dynamicColourEssentialLoad6,[5,6].includes(n.additionalLoad)?"":"none",[5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad6,t.load.load6_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad6,(e=>qe.handlePopup(e,t.entities.essential_load6_extra)),t.entities?.essential_load6_extra&&[5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad6Extra.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6Extra.toNum(1),n.stateEssentialLoad6Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load6)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad6.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6.toPowerString(t.load.auto_scale,n.decimalPlaces),n.loadColour,n.showAux?"143":"30",n.dynamicColourEssentialLoad1,1===n.additionalLoad?"":"none",n.showAux?"373":"376",n.showAux?"149":"30",n.dynamicColourEssentialLoad1,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.showAux?"410":"413",n.showAux?"149":"30",n.dynamicColourEssentialLoad2,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad3,!n.showAux&&[3,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad4,!n.showAux&&[3,4,5,6].includes(n.additionalLoad)?"":"none",[0].includes(n.additionalLoad)||!n.showAux&&[1,2].includes(n.additionalLoad)?"":"none",n.loadColour,t.load.essential_name||Ee("common.essential"),[1,2].includes(n.additionalLoad)&&n.showAux||!n.showAux&&[4,5,6].includes(n.additionalLoad)?"":"none",n.loadColour,t.load.essential_name||Ee("common.essential"),n.showAux?181:70,1===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad1,t.load.load1_name,n.showAux?402:405,n.showAux?178:59,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,t.load.load1_name,n.showAux?415:418,n.showAux?178:59,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,t.load.load2_name,[4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad3,t.load.load3_name,[4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad4,t.load.load4_name,0===n.additionalLoad?"377":"238",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),t.load.label_daily_load||Ee("common.daily_load"),t.inverter.three_phase&&t.entities?.load_power_L1?"":"none",n.loadColour,t.inverter.three_phase&&t.entities?.load_power_L1?n.loadPowerL1:"0",t.inverter.three_phase&&t.entities?.load_power_L2?"| "+n.loadPowerL2:"",t.inverter.three_phase&&t.entities?.load_power_L3?"| "+n.loadPowerL3:"",Ge.WATT,n.showAux?"":"none",[1,2].includes(n.additionalLoad)?"":"st12",n.load1Colour,n.showAux?"none":"",[4,5,6].includes(n.additionalLoad)?"":"st12",n.load2Colour,n.showAux?"none":"",1===n.additionalLoad?"":"st12",n.load1Colour,n.showAux?"none":"",[2,4,5,6].includes(n.additionalLoad)?"":"st12",n.load1Colour,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("0;1"):"0;1",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("1;0"):"1;0",t.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.wide?"M 236 118 L 118 118 Q 108 118 108 128 L 108 162":"M 236 118 L 190 118 Q 180 118 180 128 L 180 162",t.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,t.load?.navigate?W(Qn||(Qn=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.load.navigate)),1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[4,5,6].includes(n.additionalLoad)&&!n.showAux?"":"none",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2,3,4,5,6].includes(n.additionalLoad)?"none":"",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon):W(Zn||(Zn=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[4,5,6].includes(n.additionalLoad)&&!n.showAux?"":"none",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2,3,4,5,6].includes(n.additionalLoad)?"none":"",t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon),"boiler"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"boiler"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,an,"boiler"===n.iconEssentialLoad1&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"boiler"===n.iconEssentialLoad2&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,an,"boiler"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"boiler"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,an,"aircon"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"aircon"===n.iconEssentialLoad2&&[2,3,4,5,6].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,rn,"aircon"===n.iconEssentialLoad1&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"aircon"===n.iconEssentialLoad2&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,rn,"aircon"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"aircon"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,rn,"pump"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"pump"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,sn,"pump"===n.iconEssentialLoad1&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"pump"===n.iconEssentialLoad2&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,sn,"pump"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"pump"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,sn,"oven"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,on,"oven"===n.iconEssentialLoad1&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad2&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,on,"oven"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,"oven"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,on,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2,[4,5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad3,[4,5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad4,[1].includes(n.additionalLoad)?"":"none",(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1,(e=>qe.handlePopup(e,t.entities.day_load_energy_84)),(n.additionalAuxLoad,"238"),n.loadShowDaily&&n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.day_load_energy_84)),0===n.additionalLoad?"377":"238",0===n.additionalLoad?"57":"80",n.loadShowDaily&&!n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.essential_load1_extra)),t.entities?.essential_load1_extra&&1===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load1_extra)),t.entities?.essential_load1_extra&&1===n.additionalLoad&&n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load1_extra)),t.entities?.essential_load1_extra&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load2_extra)),t.entities?.essential_load2_extra&&[2,4,5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),t.entities?.essential_power&&"none"!==t.entities.essential_power?W(Yn||(Yn=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ge.WATT)):W(Xn||(Xn=ht(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.essential_load1)),n.showAux?"158":"47",1===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load1)),n.showAux?"391":"394",n.showAux?"160":"41",[2,4,5,6].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load2)),n.showAux?"427":"430",n.showAux?"160":"41",[2,4,5,6].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load3)),[4,5,6].includes(n.additionalLoad)&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load4)),[4,5,6].includes(n.additionalLoad)&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4.toPowerString(t.load.auto_scale,n.decimalPlaces),t.wide?"30%":"3%",n.auxDynamicColour,n.showAux?"":"st12",n.auxDynamicColourLoad1,n.showAux?"":"none",[1,2].includes(n.additionalAuxLoad)?"":"st12",n.auxDynamicColourLoad2,n.showAux?"":"none",2===n.additionalAuxLoad?"":"st12",(n.additionalAuxLoad,"238"),n.loadShowDaily&&n.showAux?"".concat(n.loadColour):"transparent",t.load.label_daily_load||Ee("common.daily_load"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),t.load.aux_name||Ee("common.aux_name"),1===n.additionalAuxLoad?53:14,n.showAux&&0!==n.additionalAuxLoad?"":"none",n.auxDynamicColourLoad1,t.load.aux_load1_name,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.auxDynamicColourLoad2,t.load.aux_load2_name,([1,2].includes(n.additionalAuxLoad),"238"),n.showAux&&!0===n.showDailyAux?"":"none",n.auxDynamicColour,t.load.aux_daily_name||Ee("common.daily_aux"),n.showAux?"":"st12",n.auxDynamicColour,n.auxLineWidth,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower<0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower>0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,t.wide?"M 108 162 L 108 57 Q 108 47 118 47 L 237 47":"M 180 162 L 180 57 Q 180 47 190 47 L 237 47",n.showAux?"":"st12",n.auxDynamicColour,n.auxLineWidth,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower<0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower>0?"transparent":"".concat(n.auxDynamicColour),n.durationCur.aux,(e=>qe.handlePopup(e,t.entities.aux_connected_status)),"default"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),cn,"gen"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),dn,"inverter"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),ln,"oven"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),on,"boiler"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),an,"aircon"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),rn,"pump"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),sn,!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"",n.auxType,"on"===n.auxStatus||"1"===n.auxStatus?"aux-icon":"aux-off-icon",n.showAux&&0!==n.additionalAuxLoad?"":"none",n.iconAuxLoad1,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.iconAuxLoad2,(e=>qe.handlePopup(e,t.entities.day_aux_energy)),([1,2].includes(n.additionalAuxLoad),"238"),n.showAux&&!0===n.showDailyAux&&n.stateDayAuxEnergy.isValid()?"":"none",n.auxDynamicColour,n.stateDayAuxEnergy.toPowerString(!0,n.decimalPlacesEnergy),t.entities?.aux_power_166?W(Kn||(Kn=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.aux_power_166)),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,t.load.auto_scale?"".concat(t.load.show_absolute_aux?"".concat(Math.abs(parseFloat(qe.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(t.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Ge.WATT)):W(Jn||(Jn=ht(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,t.load.auto_scale?"".concat(t.load.show_absolute_aux?"".concat(Math.abs(parseFloat(qe.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(t.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.aux_load1)),!0!==n.largeFont?"st14":"st4",n.showAux&&0!==n.additionalAuxLoad&&n.stateAuxLoad1.isValid()?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.aux_load2)),!0!==n.largeFont?"st14":"st4",n.showAux&&![0,1].includes(n.additionalAuxLoad)&&n.stateAuxLoad2.isValid()?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.aux_load1_extra)),n.showAux&&![1,2].includes(n.additionalAuxLoad)&&t.entities.aux_load1_extra?"":"none","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.aux_load1_extra)),n.showAux&&[1,2].includes(n.additionalAuxLoad)&&t.entities.aux_load1_extra?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(e=>qe.handlePopup(e,t.entities.aux_load2_extra)),n.showAux&&![0,1].includes(n.additionalAuxLoad)&&t.entities.aux_load2_extra?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2Extra.toNum(1),n.stateAuxLoad2Extra?.getUOM(),t.wide?"20%":"3%",t.inverter.three_phase?60:50,n.inverterColour,n.inverterColour,n.inverterStateMsg,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===_t.No?"none":"",n.inverterColour,Ee("common.autarky"),n.enableAutarky===_t.No?"none":"",n.inverterColour,Ee("common.ratio"),n.inverterStateColour,t.inverter.three_phase?"M 180 223 L 180 235":"M 180 212 L 180 235",t.battery.dynamic_colour&&t.load.dynamic_colour?n.flowInvColour:n.inverterColour,n.minLineWidth,t.inverter?.navigate?W(qn||(qn=ht(['\n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):W($n||($n=ht(['\n \n \n \n \n '])),n.genericInverterImage?1:0,n.inverterColour,ln),(e=>qe.handlePopup(e,t.entities.use_timer_248)),n.enableAutarky!=_t.No?"232":"249","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,yn,n.enableAutarky!=_t.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,hn,n.enableAutarky!=_t.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ee("common.timer_on"),n.enableAutarky!=_t.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ee("common.timer_off"),(e=>qe.handlePopup(e,t.entities.priority_load_243)),"no"!=n.enableAutarky?"251":"268","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,fn,"no"!=n.enableAutarky?"251":"268","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,mn,n.enableAutarky!=_t.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ee("common.priority_load"),n.enableAutarky!=_t.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ee("common.priority_batt"),t.inverter?.navigate?W(ta||(ta=ht(['\n \n \n '])),(e=>qe.handleNavigation(e,t.inverter.navigate)),n.genericInverterImage?"st12":"",e):W(ea||(ea=ht(['\n '])),n.genericInverterImage?"st12":"",e),(t=>qe.handlePopup(t,n.inverterProg.entityID)),n.enableAutarky!=_t.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,_n,n.enableAutarky!=_t.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,vn,(e=>qe.handlePopup(e,t.entities.inverter_current_164)),t.inverter.three_phase?"188":"199","none"!==t.entities.inverter_current_164&&t.entities.inverter_current_164?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrent,Re.AMPERE,(e=>qe.handlePopup(e,t.entities.inverter_current_L2)),t.inverter.three_phase&&t.entities?.inverter_current_L2?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL2,Re.AMPERE,(e=>qe.handlePopup(e,t.entities.inverter_current_L3)),t.inverter.three_phase&&t.entities?.inverter_current_L3?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL3,Re.AMPERE,(e=>qe.handlePopup(e,t.entities.inverter_power_175)),t.inverter.three_phase?"174":"178","none"===t.entities.inverter_power_175?"none":"",!0!==n.largeFont?"st14":"st4",n.inverterColour,t.inverter.auto_scale?"".concat(qe.convertValue(n.autoScaledInverterPower,n.decimalPlaces)||0):"".concat(n.autoScaledInverterPower," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.radiator_temp_91)),4!==t.solar?.mppts||t.wide?"134":"110",4!==t.solar?.mppts||t.wide?"153":"237",n.inverterColour,t.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(e=>qe.handlePopup(e,t.entities.dc_transformer_temp_90)),n.inverterColour,t.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1)))(t,Io,cs):this.isLiteCard||this.isCompactCard?((t,e,n)=>H(na||(na=ht(["\n \n \n \n ','\n
\n \n \x3c!-- Solar Elements --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','%\n \n \n ','\n \n ','%\n \n \n ','\n \n ','%\n \n \n ','\n \n ','%\n \n ','%\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n '," ",'\n \n \n \n '," ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ',"°\n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n\n \x3c!-- Battery Elements --\x3e\n \n \n \n \n ','\n \n \n \n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',"\n ",'\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n ','\n \n \n ','\n \n \n \n \n \n '," ",'\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n ','\n \n \n \n \n \n '," ",'\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n ','\n \n \n \n \n \n \n '," ",'\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n ','\n \n \n ','\n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','%\n \n \n ','%\n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','%\n \n \n ','%\n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','%\n \n \n ','%\n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','%\n \n \n ','%\n \n \n \n ','%\n \n \n \n \n | ','%\n \n \n \n \n | ','%\n \n \n \n \n |\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','°\n \n \n \n \n ','%\n \n \n \n ','\n \n \n \n \n ','°\n \n \n \n \n ','%\n \n \n \n ','\n \n \n \n \n ','\n \n \n \n ','\n \n \n \n \n \n ','\n \n \n \n ','\n \n \n \n \n \n\n \x3c!-- Grid Elements --\x3e\n \n \n \n ','\n \n \n ','\n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '," \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',": ","\n \n \n ","\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n\n \x3c!-- Load Elements --\x3e\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n ','\n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n \n \n \n ','\n \n \n \n \n \n \n ','\n \n \n \n \n \n
\n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n ',"\n \n \n ",'\n \n\n \x3c!-- Inverter Elements --\x3e\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n \n ',' \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ',"\n \n \n ",'\n \n \n \n \n \n \n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n ',' Hz\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n \n AC:\n ','°\n \n \n \n \n DC:\n ',"°\n \n \n \n \n
\n \n "])),n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad1,n.dynamicColourEssentialLoad2,n.dynamicColourEssentialLoad3,n.dynamicColourEssentialLoad4,n.dynamicColourEssentialLoad5,n.dynamicColourEssentialLoad6,n.customGridIconColour,t.title?H(aa||(aa=ht(['\n ',"
"])),t.title_colour||"inherit",t.title_size||"32px",t.title):"",t.wide?"0 0 720 405":"-2 ".concat(n.viewBoxYLite," 490 ").concat(n.viewBoxHeightLite),n.cardHeight,n.cardWidth,t.show_solar?"inline":"none",t.wide?"10%":"0%",[1,3].includes(t.solar.efficiency)?"url(#SlG)":n.solarColour,1===t.solar.mppts?"none":"",t.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,1===t.solar.mppts?"205":"154",[1,3].includes(t.solar.efficiency)?"url(#PV1LG)":n.solarColour,t.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV2LG)":n.solarColour,t.show_solar&&1!==t.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV3LG)":n.solarColour,!t.show_solar||[1,2].includes(t.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(t.solar.efficiency)?"url(#PV4LG)":n.solarColour,!t.show_solar||[1,2,3].includes(t.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,1===t.solar.display_mode?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",Ee("common.daily_solar"),2===t.solar.display_mode?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",Ee("common.daily_solar_left"),3===t.solar.display_mode?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",Ee("common.total_solar_generation"),1===t.solar.mppts?"230":"179",t.show_solar?"":"none",n.solarColour,t.solar.pv1_name||Ee("common.pv1_name"),1===t.solar.mppts?"230":"179",[2,3].includes(t.solar.efficiency)?"st3 st8 right-align":"st12",!t.show_solar||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,t.show_solar&&1!==t.solar.mppts?"":"none",n.solarColour,t.solar.pv2_name||Ee("common.pv2_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 right-align":"st12",!t.show_solar||1===t.solar.mppts||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!t.show_solar||[1,2].includes(t.solar.mppts)?"none":"",n.solarColour,t.solar.pv3_name||Ee("common.pv3_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 right-align":"st12",!t.show_solar||[1,2].includes(t.solar.mppts)||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!t.show_solar||[1,2,3].includes(t.solar.mppts)?"none":"",n.solarColour,t.solar.pv4_name||Ee("common.pv4_name"),[2,3].includes(t.solar.efficiency)?"st3 st8 right-align":"st12",!t.show_solar||[1,2,3].includes(t.solar.mppts)||[0,1].includes(t.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(t.solar.efficiency)?"st3 st8":"st12",t.show_solar&&1!==t.solar.mppts?"":"none",n.solarColour,n.totalPVEfficiency,1===t.solar.mppts?"M 239.23 84 L 239 190":"M 187 84 L 187 122 Q 187 132 195 132 L 205 132.03",t.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),t.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,!0===t.solar.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.show_solar&&1!==t.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),t.show_solar&&1!==t.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!0===t.solar.invert_flow?qe.invertKeyPoints("0;1"):"0;1",!t.show_solar||[1,2].includes(t.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!t.show_solar||[1,2].includes(t.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!0===t.solar.invert_flow?qe.invertKeyPoints("0;1"):"0;1",!t.show_solar||[1,2,3].includes(t.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!t.show_solar||[1,2,3].includes(t.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,!0===t.solar.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.show_solar&&1!==t.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),t.show_solar&&1!==t.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,!0===t.solar.invert_flow?qe.invertKeyPoints("1;0"):"1;0",t.solar?.navigate?W(oa||(oa=ht(['\n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.solar.navigate)),t.show_solar?"":"st12",n.solarColour,Pn):W(ia||(ia=ht(['\n \n \n '])),t.show_solar?"":"st12",n.solarColour,Pn),(e=>qe.handlePopup(e,t.entities.solar_sell_247)),t.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&t.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,gn,t.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&t.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,pn,(e=>qe.handlePopup(e,t.entities.day_pv_energy_108)),1===t.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.day_pv_energy_108)),2===t.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,n.decimalPlacesEnergy)+" / "+n.remainingSolar,(e=>qe.handlePopup(e,t.entities.day_pv_energy_108)),3===t.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&t.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,n.decimalPlacesEnergy)+" / "+n.totalSolarGeneration,(e=>qe.handlePopup(e,t.entities.pv1_voltage_109)),1===t.solar.mppts?"244.7":"194",t.show_solar&&t.entities.pv1_voltage_109&&"none"!==t.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv1_current_110)),1===t.solar.mppts?"244.7":"194",t.show_solar&&t.entities.pv1_current_110&&"none"!==t.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.pv2_voltage_111)),t.show_solar&&t.entities.pv2_voltage_111&&"none"!==t.entities.pv2_voltage_111&&1!==t.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv2_current_112)),t.show_solar&&t.entities.pv2_current_112&&"none"!==t.entities.pv2_current_112&&1!==t.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.pv3_voltage_113)),t.show_solar&&t.entities.pv3_voltage_113&&"none"!==t.entities.pv3_voltage_113&&![1,2].includes(t.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv3_current_114)),t.show_solar&&t.entities.pv3_current_114&&"none"!==t.entities.pv3_current_114&&![1,2].includes(t.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.pv4_voltage_115)),t.show_solar&&t.entities.pv4_voltage_115&&"none"!==t.entities.pv4_voltage_115&&![1,2,3].includes(t.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),je.VOLT,(e=>qe.handlePopup(e,t.entities.pv4_current_116)),t.show_solar&&t.entities.pv4_current_116&&"none"!==t.entities.pv4_current_116&&![1,2,3].includes(t.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.environment_temp)),t.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,t.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),t.entities?.pv_total?W(ra||(ra=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.pv_total)),!0!==n.largeFont?"st14":"st4",t.show_solar&&1!==t.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,t.solar.auto_scale?t.entities?.pv_total?qe.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):qe.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qe.toNum(n.totalPV||0,0)," ").concat(Ge.WATT)):W(sa||(sa=ht(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",t.show_solar&&1!==t.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,t.solar.auto_scale?t.entities?.pv_total?qe.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):qe.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(qe.toNum(n.totalPV||0,0)," ").concat(Ge.WATT)),(e=>qe.handlePopup(e,t.entities.pv1_power_186)),1===t.solar.mppts?"238.8":"188.1",!0!==n.largeFont?"st14":"st4",t.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv1PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",t.show_solar&&1!==t.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv2PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",t.show_solar&&![1,2].includes(t.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv3PowerWatts||0,0)," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",t.show_solar&&![1,2,3].includes(t.solar.mppts)&&n.statePV4Power.isValid()?"":"none",n.solarColour,t.solar.auto_scale?qe.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(qe.toNum(n.pv4PowerWatts||0,0)," ").concat(Ge.WATT),t.show_battery?"inline":"none",t.wide?"10%":"0%",t.wide&&2===n.batteryCount?"inline":"none",n.batteryColour,(n.compactMode,""),!0!==n.largeFont?"st14":"st4",n.batteryColour,t.battery.auto_scale?qe.convertValue(n.batteryPowerTotal,n.decimalPlaces)||0:"".concat(qe.toNum(n.batteryPowerTotal||0,0)," ").concat(Ge.WATT),2===n.batteryCount?"-6.5%":"0%",n.batteryColour,n.compactMode&&1===n.batteryCount?"":"st12",n.compactMode?"348":"329.75",n.compactMode?"50":"70",n.compactMode?"7.5":"10.5",n.compactMode?"7.5":"10.5",n.batteryColour,n.compactMode?"st12":"",(e=>qe.handlePopup(e,t.entities.battery_voltage_183)),"none"===t.entities.battery_voltage_183||!t.entities.battery_voltage_183||n.compactMode?"none":"",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery_voltage_183)),"none"!==t.entities.battery_voltage_183&&t.entities.battery_voltage_183&&n.compactMode&&2!==n.batteryCount?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",n.batteryVoltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery_current_191)),t.entities.battery_current_191&&"none"!==t.entities.battery_current_191&&!n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",t.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.battery_current_191)),t.entities.battery_current_191&&"none"!==t.entities.battery_current_191&&n.compactMode&&n.stateBatteryCurrent.isValid()&&2!==n.batteryCount?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",t.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.battery_power_190)),n.compactMode?"239":"193",n.compactMode?"307":"386","none"===t.entities.battery_power_190||n.compactMode&&2===n.batteryCount?"none":"",n.batteryColour,!0!==n.largeFont?"st14":"st4",t.battery.auto_scale?"".concat(t.battery.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(t.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ge.WATT):"".concat(n.batteryPower||0," ").concat(Ge.WATT)),n.compactMode?"270":t.entities?.battery_status?"169":"193",n.compactMode?"338":"323",t.entities?.battery_status||n.compactMode?"st3 left-align":"st3",!t.battery.show_remaining_energy||n.compactMode&&2===n.batteryCount?"none":"",n.batteryColour,t.battery.remaining_energy_to_shutdown?"".concat(qe.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR):"".concat(qe.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR),t.battery.show_remaining_energy?"311":"320",n.compactMode?"none":"",n.batteryColour,n.batteryStateMsg,t.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",(e=>qe.handlePopup(e,t.entities.battery_voltage_183)),"none"!==t.entities.battery_voltage_183&&t.entities.battery_voltage_183?"":"none",n.batteryColour,n.batteryVoltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery_current_191)),t.entities.battery_current_191&&"none"!==t.entities.battery_current_191&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,t.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.battery_power_190)),"none"===t.entities.battery_power_190?"none":"",n.batteryColour,t.battery.auto_scale?"".concat(t.battery.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(t.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ge.WATT):"".concat(n.batteryPower||0," ").concat(Ge.WATT)),t.battery.show_remaining_energy?"":"none",n.batteryColour,t.battery.remaining_energy_to_shutdown?"".concat(qe.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR):"".concat(qe.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR),t.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",(e=>qe.handlePopup(e,t.entities.battery2_voltage_183)),"none"!==t.entities.battery2_voltage_183&&t.entities.battery2_voltage_183?"":"none",n.battery2Colour,n.battery2Voltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery2_current_191)),t.entities.battery2_current_191&&"none"!==t.entities.battery2_current_191&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,t.battery2.show_absolute?Math.abs(n.stateBattery2Current.toNum(1)):n.stateBattery2Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.battery2_power_190)),"none"===t.entities.battery2_power_190?"none":"",n.battery2Colour,t.battery2.auto_scale?"".concat(t.battery2.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qe.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(t.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Ge.WATT):"".concat(n.battery2Power||0," ").concat(Ge.WATT)),t.battery2.show_remaining_energy?"":"none",n.battery2Colour,t.battery2.remaining_energy_to_shutdown?"".concat(qe.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR):"".concat(qe.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR),t.wide&&2===n.batteryCount&&!n.compactMode?"inline":"none",n.battery2Colour,t.show_battery?"":"none",(e=>qe.handlePopup(e,t.entities.battery_voltage_183)),"none"!==t.entities.battery2_voltage_183&&t.entities.battery2_voltage_183&&t.show_battery?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",n.battery2Voltage,je.VOLT,(e=>qe.handlePopup(e,t.entities.battery2_current_191)),t.entities.battery2_current_191&&"none"!==t.entities.battery2_current_191&&t.show_battery&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",t.battery2.show_absolute?Math.abs(n.stateBattery2Current.toNum(1)):n.stateBattery2Current.toNum(1),Re.AMPERE,(e=>qe.handlePopup(e,t.entities.battery2_power_190)),"none"!==t.entities.battery2_power_190&&t.show_battery?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",t.battery2.auto_scale?"".concat(t.battery2.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qe.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(t.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Ge.WATT):"".concat(n.battery2Power||0," ").concat(Ge.WATT)),t.entities?.battery2_status?"169":"193",t.entities?.battery2_status?"st3 left-align":"st3",t.show_battery&&t.battery2.show_remaining_energy?"":"none",n.battery2Colour,t.battery2.remaining_energy_to_shutdown?"".concat(qe.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR):"".concat(qe.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(ze.KILO_WATT_HOUR),t.battery2.show_remaining_energy?"311":"320",t.show_battery?"":"none",n.battery2Colour,n.battery2StateMsg,2===n.batteryCount?"-43.5%":"0%",n.compactMode?"270":"290",!0!==n.largeFont?"st14":"st4",n.compactMode&&2===n.batteryCount?"none":"",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0===n.batteryEnergy||(!0===t.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ee("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0===n.batteryEnergy||(!0===t.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ee("common.to"),n.batteryCapacity,Ee("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Ee("common.battery_floating"),n.compactMode?"343":"363",n.batteryColour,t.battery.hide_soc||n.compactMode&&2===n.batteryCount?"st12":"st14 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.compactMode?"343":"363",n.batteryColour,t.battery.hide_soc||n.compactMode&&2===n.batteryCount?"st12":"st14 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.compactMode?"270":"290","none"===t.entities.battery_soc_184||!n.stateBatterySoc.isValid()||n.compactMode&&2===n.batteryCount?"none":"",n.batteryColour,n.stateBatterySoc.toNum(0),(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,!n.inverterProg.show||"none"===t.entities.battery_soc_184||t.battery.hide_soc||n.compactMode&&2===n.batteryCount?"none":"",n.inverterProg.capacity||0,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,t.battery.hide_soc||n.compactMode&&2===n.batteryCount?"st12":"st13 st8 left-align",n.inverterProg.show||!t.battery?.shutdown_soc||t.battery?.shutdown_soc_offgrid?"none":"",n.batteryShutdown||0,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,t.battery.hide_soc||n.compactMode&&2===n.batteryCount?"st12":"st13 st8 left-align",!n.inverterProg.show&&t.battery.shutdown_soc_offgrid?"":"none",t.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",!0!==n.largeFont?"st14":"st4",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,1===n.batteryCount?"none":"",0===n.batteryEnergy||(!0===t.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ee("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,0===n.batteryEnergy||(!0===t.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Ee("common.to"),n.batteryCapacity,Ee("common.charge"),n.formattedResultTime,0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Ee("common.battery_floating"),n.batteryColour,t.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,t.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),"none"!==t.entities.battery_soc_184&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(0),(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.batteryColour,!n.inverterProg.show||"none"===t.entities.battery_soc_184||t.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.batteryColour,t.battery.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!t.battery?.shutdown_soc||t.battery?.shutdown_soc_offgrid?"none":"",n.batteryShutdown||0,(e=>qe.handlePopup(e,t.entities.battery_soc_184)),n.batteryColour,t.battery.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&t.battery.shutdown_soc_offgrid?"":"none",t.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",!0!==n.largeFont?"st14":"st4",0===n.battery2Energy||n.isFloating2||0===n.battery2Power?"transparent":"".concat(n.battery2Colour),n.batteryDuration2,0===n.battery2Energy||(!0===t.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Ee("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===t.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Ee("common.to"),n.battery2Capacity,Ee("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Ee("common.battery_floating"),n.battery2Colour,t.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,t.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),"none"!==t.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===t.entities.battery2_soc_184||t.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,t.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!t.battery2?.shutdown_soc||t.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,t.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&t.battery2.shutdown_soc_offgrid?"":"none",t.wide&&2===n.batteryCount&&!n.compactMode?"inline":"none",!0!==n.largeFont?"st14":"st4",0===n.battery2Energy||n.isFloating2||0===n.battery2Power?"transparent":"".concat(n.battery2Colour),n.batteryDuration2,0===n.battery2Energy||(!0===t.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Ee("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===t.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Ee("common.to"),n.battery2Capacity,Ee("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Ee("common.battery_floating"),n.battery2Colour,t.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,t.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&t.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),"none"!==t.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===t.entities.battery2_soc_184||t.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,t.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!t.battery2?.shutdown_soc||t.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(e=>qe.handlePopup(e,t.entities.battery2_soc_184)),n.battery2Colour,t.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&t.battery2.shutdown_soc_offgrid?"":"none",2===n.batteryCount?"M 239 250 L 239 285":n.compactMode?"M 239 250 L 239 290":"M 239 250 L 239 324",t.battery.dynamic_colour?n.flowBatColour:n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,!0===t.battery.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(t.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===t.battery.invert_flow?qe.invertKeyPoints("0;1"):"0;1",2===n.batteryCount?"-6.25%":"0%",(e=>qe.handlePopup(e,t.entities.battery_temp_182)),n.compactMode?"205":"250",n.compactMode?"332":"324.5",t.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,!n.stateBatteryTemp.isValid()||n.compactMode&&2===n.batteryCount?"none":"",n.stateBatteryTemp.toNum(1),(e=>qe.handlePopup(e,t.entities.battery_soh)),n.compactMode?"205":"250",n.compactMode?"332":"324.5",t.entities?.battery_soh?"st3 left-align":"st12",n.batteryColour,!n.stateBatterySOH.isValid()||t.entities?.battery_temp_182||n.compactMode&&2===n.batteryCount?"none":"",n.stateBatterySOH.toNum(0),n.compactMode?"238.5":"162",n.compactMode?"326":t.battery.show_remaining_energy?"310":"319","none"===t.entities?.battery_status||!t.entities?.battery_status||n.compactMode&&2===n.batteryCount?"none":"",n.batteryStateColour,t.battery.navigate?W(la||(la=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.battery.navigate)),n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,t.battery.dynamic_colour?"url(#bLg)":n.batteryColour,t.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.stopColour,t.battery.animate?"y2":"none",t.battery.linear_gradient?"url(#sLg)":n.batteryColour,t.battery.linear_gradient?"":"none",n.batteryCharge):W(da||(da=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.batteryColour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.batteryColour,n.batteryColour,t.battery.dynamic_colour?"url(#bLg)":n.batteryColour,t.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.stopColour,t.battery.animate?"y2":"none",t.battery.linear_gradient?"url(#sLg)":n.batteryColour,t.battery.linear_gradient?"":"none",n.batteryCharge),t.wide&&2===n.batteryCount?"inline":"none",(e=>qe.handlePopup(e,t.entities.battery2_temp_182)),t.entities?.battery2_temp_182?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2Temp.isValid()||n.compactMode&&2===n.batteryCount?"none":"",n.stateBattery2Temp.toNum(1),(e=>qe.handlePopup(e,t.entities.battery2_soh)),t.entities?.battery2_soh?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2SOH.isValid()||t.entities?.battery2_temp_182||n.compactMode&&2===n.batteryCount?"none":"",n.stateBattery2SOH.toNum(0),n.compactMode?"326":t.battery2.show_remaining_energy?"310":"319","none"===t.entities?.battery2_status||!t.entities?.battery2_status||n.compactMode&&2===n.batteryCount?"none":"",n.battery2StateColour,t.battery2.navigate?W(ca||(ca=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.battery2.navigate)),n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.battery2Colour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.batteryColour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.battery2Colour,n.battery2Colour,t.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,t.battery2.linear_gradient?n.battery20:n.battery2Icon,n.stop2Colour,t.battery2.animate?"y2":"none",t.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,t.battery2.linear_gradient?"":"none",n.battery2Charge):W(ua||(ua=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.gridPercentageBat>0?n.gridColour:n.pvPercentageBat>0?n.solarColour:n.battery2Colour,n.gridPercentageBat<2?0:n.gridPercentageBat,n.pvPercentageBat>0?n.solarColour:n.battery2Colour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.pvPercentageBat>0?n.solarColour:n.battery2Colour,(n.gridPercentageBat<2?0:n.gridPercentageBat)+(n.pvPercentageBat<2?0:n.pvPercentageBat),n.battery2Colour,n.battery2Colour,t.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,t.battery2.linear_gradient?n.battery20:n.battery2Icon,n.stop2Colour,t.battery2.animate?"y2":"none",t.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,t.battery2.linear_gradient?"":"none",n.battery2Charge),2===n.batteryCount?"42%":"0%",2===n.batteryCount?"-20%":"0%",n.compactMode&&1===n.batteryCount?"132":"77.2",!0!==n.batteryShowDaily?"transparent":"".concat(n.batteryColour),Ee("common.daily_charge"),(e=>qe.handlePopup(e,t.entities.day_battery_charge_70)),n.compactMode&&1===n.batteryCount?"132":"77.2",!0===n.batteryShowDaily&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge?.toPowerString(!0,n.decimalPlacesEnergy),2===n.batteryCount?"42%":"0%",2===n.batteryCount?"-20%":"0%",n.compactMode&&1===n.batteryCount?"132":"77.2",!0!==n.batteryShowDaily?"transparent":"".concat(n.batteryColour),Ee("common.daily_discharge"),(e=>qe.handlePopup(e,t.entities.day_battery_discharge_71)),n.compactMode&&1===n.batteryCount?"132":"77.2",!0===n.batteryShowDaily&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge?.toPowerString(!0,n.decimalPlacesEnergy),n.gridColour,t.show_grid?"":"none",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",t.grid.label_daily_grid_buy||Ee("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",t.grid.label_daily_grid_sell||Ee("common.daily_grid_sell"),t.grid.show_daily_buy?"294":"267",n.gridColour,t.show_grid?"":"none",t.grid.grid_name||Ee("common.grid_name"),t.wide?"M 173 218 L 287 218":"M 173 218 L 214 218",n.gridColour,n.gridLineWidth,t.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("0;1"):"0;1",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("1;0"):"1;0",n.gridColour,n.gridLineWidth,t.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),t.show_grid?"":"none",n.durationCur.grid,!0===t.grid.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.grid?.navigate?W(ya||(ya=ht(['\n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.grid.navigate)),Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower<0||t.grid.import_icon?"none":"",An,Ie.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!t.show_grid||t.grid.disconnected_icon?"none":"",bn,Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower>=0||t.grid.export_icon?"none":"",wn):W(ha||(ha=ht(['\n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handlePopup(e,t.entities.grid_connected_status_194)),Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower<0||t.grid.import_icon?"none":"",An,Ie.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!t.show_grid||t.grid.disconnected_icon?"none":"",bn,Te.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!t.show_grid||n.totalGridPower>=0||t.grid.export_icon?"none":"",wn),t.grid?.navigate?W(ga||(ga=ht(['\n \n \n \n \n \n
\n \n \n '])),(e=>qe.handleNavigation(e,t.grid.navigate)),t.show_grid||t.grid.import_icon||t.grid.disconnected_icon||t.grid.export_icon?"":"none",n.customGridIcon):W(pa||(pa=ht(['\n \n \n \n \n \n
\n \n \n '])),(e=>qe.handlePopup(e,t.entities.grid_connected_status_194)),t.show_grid||t.grid.import_icon||t.grid.disconnected_icon||t.grid.export_icon?"":"none",n.customGridIcon),(e=>qe.handlePopup(e,t.entities.day_grid_import_76)),t.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport?.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.day_grid_export_77)),t.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport?.toPowerString(!0,n.decimalPlacesEnergy),(e=>qe.handlePopup(e,t.entities.max_sell_power)),["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,t.show_grid&&n.stateMaxSellPower.isValid&&t.entities?.max_sell_power?"":"none",Ee("common.limit"),n.stateMaxSellPower.toPowerString(t.grid.auto_scale,n.decimalPlaces),t.inverter.three_phase?t.entities?.grid_ct_power_total?W(fa||(fa=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.grid_ct_power_total)),t.show_grid&&"none"!==t.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ge.WATT):"".concat(n.totalGridPower||0," ").concat(Ge.WATT))):W(ma||(ma=ht(['\n \n ',"\n "])),t.show_grid&&"none"!==t.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ge.WATT):"".concat(n.totalGridPower||0," ").concat(Ge.WATT))):W(_a||(_a=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.grid_ct_power_172)),t.show_grid&&"none"!==t.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,t.grid.auto_scale?"".concat(t.grid.show_absolute?"".concat(Math.abs(parseFloat(qe.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(qe.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):qe.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(t.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ge.WATT):"".concat(n.totalGridPower||0," ").concat(Ge.WATT))),n.totalGridPower>=0?W(va||(va=ht(['\n \n \n '," ","\n \n "])),(e=>qe.handlePopup(e,t.entities.energy_cost_buy)),t.show_grid?"st3 left-align":"st12",n.gridColour,t.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.energyCost,n.stateEnergyCostBuy.getUOM()):W(wa||(wa=ht(['\n \n \n '," ","\n \n "])),(e=>qe.handlePopup(e,t.entities.energy_cost_sell)),t.show_grid?"st3 left-align":"st12",n.gridColour,t.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.energyCost,n.stateEnergyCostSell.getUOM()),(e=>qe.handlePopup(e,t.entities.prepaid_units)),t.entities?.prepaid_units?"st3":"st12",n.gridColour,t.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1),(e=>qe.handlePopup(e,t.entities.grid_ct_power_172)),t.inverter.three_phase?"":"none",t.show_grid?"st3 left-align":"st12",n.gridColour,t.load.auto_scale?"".concat(qe.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.grid_ct_power_L2)),t.inverter.three_phase&&t.entities?.grid_ct_power_L2?"":"none",t.show_grid?"st3 left-align":"st12",n.gridColour,t.load.auto_scale?"".concat(qe.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Ge.WATT),(e=>qe.handlePopup(e,t.entities.grid_ct_power_L3)),t.inverter.three_phase&&t.entities?.grid_ct_power_L3?"":"none",t.show_grid?"st3 left-align":"st12",n.gridColour,t.load.auto_scale?"".concat(qe.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Ge.WATT),t.wide?"30%":"0%",n.loadColour,n.dynamicColourEssentialLoad1,[1,2,3].includes(n.additionalLoad)?"":"none",[1,2,3].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,t.load.load1_name,"oven"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,on,"pump"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,sn,"aircon"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,rn,"boiler"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad1,an,(e=>qe.handlePopup(e,t.entities.essential_load1)),[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1?.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load1_extra)),t.entities?.essential_load1_extra&&[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),[0,4,5,6].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,n.dynamicColourEssentialLoad2,2===n.additionalLoad?"":"none",2===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,t.load.load2_name,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,on,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,sn,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,rn,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.dynamicColourEssentialLoad2,an,(e=>qe.handlePopup(e,t.entities.essential_load2)),2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load2_extra)),t.entities?.essential_load2_extra&&2===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),2===n.additionalLoad?"":"none",n.iconEssentialLoad2,n.dynamicColourEssentialLoad2,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,3===n.additionalLoad?"":"none",3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,t.load.load2_name,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,t.load.load3_name,3===n.additionalLoad?"":"none",n.iconEssentialLoad2,3===n.additionalLoad?"":"none",n.iconEssentialLoad3,(e=>qe.handlePopup(e,t.entities.essential_load2_extra)),t.entities?.essential_load2_extra&&3===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load3_extra)),t.entities?.essential_load3_extra&&3===n.additionalLoad&&n.stateEssentialLoad3Extra.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3Extra.toNum(1),n.stateEssentialLoad3Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load2)),3===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load3)),3===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3?.toPowerString(t.load.auto_scale,n.decimalPlaces),n.dynamicColourEssentialLoad3,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad1,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad2,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad4,n.additionalLoad>=4?"":"none",n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad1,t.load.load1_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad2,t.load.load2_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad3,t.load.load3_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad4,t.load.load4_name,n.additionalLoad>=4?"":"none",n.iconEssentialLoad1,n.additionalLoad>=4?"":"none",n.iconEssentialLoad2,n.additionalLoad>=4?"":"none",n.iconEssentialLoad3,n.additionalLoad>=4?"":"none",n.iconEssentialLoad4,(e=>qe.handlePopup(e,t.entities.essential_load1_extra)),t.entities?.essential_load1_extra&&n.additionalLoad>=4&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load2_extra)),t.entities?.essential_load2_extra&&n.additionalLoad>=4&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load3_extra)),t.entities?.essential_load3_extra&&n.additionalLoad>=4&&n.stateEssentialLoad3Extra.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3Extra.toNum(1),n.stateEssentialLoad3Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load4_extra)),t.entities?.essential_load4_extra&&n.additionalLoad>=4&&n.stateEssentialLoad4Extra.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4Extra.toNum(1),n.stateEssentialLoad4Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load1)),n.additionalLoad>=4&&n.stateEssentialLoad1.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1?.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load2)),n.additionalLoad>=4&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load3)),n.additionalLoad>=4&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3?.toPowerString(t.load.auto_scale,n.decimalPlaces),(e=>qe.handlePopup(e,t.entities.essential_load4)),n.additionalLoad>=4&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4?.toPowerString(t.load.auto_scale,n.decimalPlaces),t.wide&&[5,6].includes(n.additionalLoad)?"0 0 720 405":"0 0 0 0",n.dynamicColourEssentialLoad5,[5,6].includes(n.additionalLoad)?"":"none",[5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad5,t.load.load5_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad5,(e=>qe.handlePopup(e,t.entities.essential_load5_extra)),t.entities?.essential_load5_extra&&[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad5Extra.toNum(1),n.stateEssentialLoad5Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load5)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5?.toPowerString(t.load.auto_scale,n.decimalPlaces),t.wide&&6===n.additionalLoad?"0 0 720 405":"0 0 0 0",n.dynamicColourEssentialLoad6,6===n.additionalLoad?"":"none",6===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad6,t.load.load6_name,6===n.additionalLoad?"":"none",n.iconEssentialLoad6,(e=>qe.handlePopup(e,t.entities.essential_load6_extra)),t.entities?.essential_load6_extra&&6===n.additionalLoad&&n.stateEssentialLoad6Extra.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6Extra.toNum(1),n.stateEssentialLoad6Extra.getUOM(),(e=>qe.handlePopup(e,t.entities.essential_load6)),6===n.additionalLoad&&n.stateEssentialLoad6.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6?.toPowerString(t.load.auto_scale,n.decimalPlaces),[2,3,4,5,6].includes(n.additionalLoad)?"365":"412",[2,3,4,5,6].includes(n.additionalLoad)?"189":"282.1",n.loadShowDaily?"".concat(n.loadColour):"transparent",t.load.label_daily_load||Ee("common.daily_load"),t.wide?"304":"375",t.inverter.three_phase&&t.entities?.load_power_L1?"":"none",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.loadPowerL1,n.decimalPlaces)||0):"".concat(n.loadPowerL1||0," ").concat(Ge.WATT),t.wide?"304":"375",t.inverter.three_phase&&t.entities?.load_power_L2?"":"none",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.loadPowerL2,n.decimalPlaces)||0):"".concat(n.loadPowerL2||0," ").concat(Ge.WATT),t.wide?"304":"375",t.inverter.three_phase&&t.entities?.load_power_L3?"":"none",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.loadPowerL3,n.decimalPlaces)||0):"".concat(n.loadPowerL3||0," ").concat(Ge.WATT),t.wide?"M 304 218.5 L 117 218.5":"M 304 218.5 L 264.7 218.5",t.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("1;0"):"1;0",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("0;1"):"0;1",t.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower<0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("0;1"):"0;1",Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower||n.essentialPower>0?"transparent":"".concat(t.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,!0===t.load.invert_flow?qe.invertKeyPoints("1;0"):"1;0",1===n.additionalLoad?"":"st12",n.load1Colour,[2,3,4,5,6].includes(n.additionalLoad)?"":"st12",n.load1Colour,[2,3,4,5,6].includes(n.additionalLoad)?"":"st12",n.load2Colour,t.load?.navigate?W(xa||(xa=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.load.navigate)),1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon):W(ba||(ba=ht(['\n \n \n \n \n \n \n \n \n \n \n \n \n '])),1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,t.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon),(e=>qe.handlePopup(e,t.entities.day_load_energy_84)),[2,3,4,5,6].includes(n.additionalLoad)?"365":"412",[2,3,4,5,6].includes(n.additionalLoad)?"175":"267.9",n.loadShowDaily&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy?.toPowerString(!0,n.decimalPlacesEnergy),t.entities?.essential_power&&"none"!==t.entities.essential_power?W(Aa||(Aa=ht(['\n \n \n ',"\n \n "])),(e=>qe.handlePopup(e,t.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ge.WATT)):W(Pa||(Pa=ht(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,t.load.auto_scale?"".concat(qe.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ge.WATT)),t.wide?"10%":"0%",n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===_t.No?"none":"",n.enableAutarky===_t.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===_t.No?"none":"",n.inverterColour,Ee("common.autarky"),n.enableAutarky===_t.No?"none":"",n.inverterColour,Ee("common.ratio"),n.inverterStateColour,t.inverter?.navigate?W(La||(La=ht(['\n \n \n \n \n \n \n '])),(e=>qe.handleNavigation(e,t.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):W(Ca||(Ca=ht(['\n \n \n \n \n '])),n.genericInverterImage?1:0,n.inverterColour,ln),(e=>qe.handlePopup(e,t.entities.use_timer_248)),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,yn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,hn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ee("common.timer_off"),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Ee("common.timer_on"),(e=>qe.handlePopup(e,t.entities.priority_load_243)),"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,fn,"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,mn,"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ee("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Ee("common.priority_load"),t.inverter?.navigate?W(Ea||(Ea=ht(['\n \n \n '])),(e=>qe.handleNavigation(e,t.inverter.navigate)),n.genericInverterImage?"st12":"",e):W(Na||(Na=ht(['\n '])),n.genericInverterImage?"st12":"",e),(t=>qe.handlePopup(t,n.inverterProg.entityID)),!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,_n,!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,vn,(e=>qe.handlePopup(e,t.entities.inverter_voltage_154)),"none"!==t.entities.inverter_voltage_154&&t.entities.inverter_voltage_154?"":"none",n.inverterColour,n.inverterVoltage,t.inverter.three_phase&&t.entities?.inverter_voltage_L2?"| "+n.inverterVoltageL2:"",t.inverter.three_phase&&t.entities?.inverter_voltage_L3?"| "+n.inverterVoltageL3:"",je.VOLT,(e=>qe.handlePopup(e,t.entities.load_frequency_192)),"none"!==t.entities.load_frequency_192&&t.entities.load_frequency_192?"":"none",n.inverterColour,n.loadFrequency,(e=>qe.handlePopup(e,t.entities.inverter_current_164)),"none"!==t.entities.inverter_current_164&&t.entities.inverter_current_164?"":"none",n.inverterColour,n.inverterCurrent,t.inverter.three_phase&&t.entities?.inverter_current_L2?"| "+n.inverterCurrentL2:"",t.inverter.three_phase&&t.entities?.inverter_current_L3?"| "+n.inverterCurrentL3:"",Re.AMPERE,(e=>qe.handlePopup(e,t.entities.radiator_temp_91)),n.inverterColour,t.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(e=>qe.handlePopup(e,t.entities.dc_transformer_temp_90)),n.inverterColour,t.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1)))(t,Io,cs):void 0}getEntity(t,e={state:"0",attributes:{unit_of_measurement:""}}){let n;const a=String(t).split(".");a.length>1?n=this._config[a[0]][a[1]]:a.length>0&&(n=this._config[a[0]]);const o=n?this.hass.states[n]:void 0;return to(void 0!==o?o:e||{state:void 0})}changeAnimationSpeed(t,e){const n=e>=1?qe.toNum(e,3):1,a=this["".concat(t,"Flow")];this.durationCur[t]=n,a&&this.durationPrev[t]!=n&&a.setCurrentTime(a.getCurrentTime()*(n/this.durationPrev[t])),this.durationPrev[t]=this.durationCur[t]}get isCompactCard(){return this._config.cardstyle==mt.Compact}get isLiteCard(){return this._config.cardstyle==mt.Lite}get isFullCard(){return this._config.cardstyle==mt.Full}colourConvert(t){return t&&Array.isArray(t)?"rgb(".concat(t,")"):t}dynamicLineWidth(t,e,n,a=1){let o;return o=this._config.dynamic_line_width?Math.min(a+Math.min(t/e,1)*n,8):Math.min(a,8),o}calculateAuxLoadColour(t,e){return this._config.load.aux_dynamic_colour?Math.abs(t)>e?this.colourConvert(this._config.load?.aux_colour):"grey":this.colourConvert(this._config.load?.aux_colour)}calculateEssentialLoadColour(t,e){return this._config.load.dynamic_colour?Math.abs(t)>e?this.colourConvert(this._config.load?.colour):this.colourConvert(this._config.load?.off_colour)||"grey":this.colourConvert(this._config.load?.colour)}setConfig(t){if(t.show_battery&&!t.battery)throw Error(Ee("errors.battery.bat"));if(t.show_battery&&!t.battery.shutdown_soc)throw new Error(Ee("errors.battery.shutdown_soc"));if(t.show_battery&&t.battery.show_daily&&(!t.entities.day_battery_charge_70||!t.entities.day_battery_discharge_71))throw Error(Ee("errors.battery.show_daily"));if(t.show_solar&&!t.solar)throw Error(Ee("errors.solar.sol"));if(t.show_solar&&!t.solar.mppts)throw Error(Ee("errors.solar.mppts"));if(t&&t.solar&&t.show_solar&&t.solar.show_daily&&!t.entities.day_pv_energy_108)throw Error(Ee("errors.solar.show_daily"));if(t&&t.grid&&t.grid.show_daily_buy&&!t.entities.day_grid_import_76||t&&t.grid&&t.grid.show_daily_sell&&!t.entities.day_grid_export_77)throw Error(Ee("errors.grid.show_daily"));if(t&&t.entities&&"none"===t.entities.essential_power&&!t.entities.inverter_power_175||t&&t.entities&&"none"===t.entities.essential_power&&"none"===t.entities.inverter_power_175)throw Error(Ee("errors.essential_power"));if(t&&t.entities&&"none"===t.entities.nonessential_power&&!t.entities.grid_power_169)throw Error(Ee("errors.nonessential_power"));const e=["battery_soc_184","battery_power_190","battery_current_191","grid_ct_power_172","pv1_power_186"];for(const n of e)if("pv1_power_186"===n&&t.show_solar&&!t.entities[n]&&!t.entities[n])throw new Error("".concat(Ee("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=t;this._config=Ke({},Ne,n)}getCardSize(){return 2}};t([ut()],eo.prototype,"hass",void 0),t([ut()],eo.prototype,"_config",void 0),t([yt("#grid-flow")],eo.prototype,"gridFlow",void 0),t([yt("#grid1-flow")],eo.prototype,"grid1Flow",void 0),t([yt("#solar-flow")],eo.prototype,"solarFlow",void 0),t([yt("#pv1-flow")],eo.prototype,"pv1Flow",void 0),t([yt("#pv2-flow")],eo.prototype,"pv2Flow",void 0),t([yt("#pv3-flow")],eo.prototype,"pv3Flow",void 0),t([yt("#pv4-flow")],eo.prototype,"pv4Flow",void 0),t([yt("#battery-flow")],eo.prototype,"batteryFlow",void 0),t([yt("#load-flow")],eo.prototype,"loadFlow",void 0),t([yt("#aux-flow")],eo.prototype,"auxFlow",void 0),t([yt("#ne-flow")],eo.prototype,"neFlow",void 0),t([yt("#ne1-flow")],eo.prototype,"ne1Flow",void 0),eo=t([lt("sunsynk-power-flow-card")],eo),window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:Ee("common.description"),configurable:!0});var no,ao={exports:{}};
/**
* @license
* Lodash
@@ -51,4 +51,4 @@ function he(e,t){return(t,n,a)=>((e,t,n)=>(n.configurable=!0,n.enumerable=!0,Ref
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var eo,to,no,ao,oo=(qa||(qa=1,eo=$a,to=$a.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,i=32,r=64,s=128,l=256,d=1/0,c=9007199254740991,u=NaN,h=4294967295,p=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",r],["rearg",l]],g="[object Arguments]",y="[object Array]",f="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Function]",_="[object GeneratorFunction]",x="[object Map]",b="[object Number]",A="[object Object]",P="[object Promise]",L="[object RegExp]",E="[object Set]",C="[object String]",N="[object Symbol]",M="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",O="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",T="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",z="[object Uint16Array]",j="[object Uint32Array]",R=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Z=RegExp(W.source),F=RegExp(Q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,ae=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,fe=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",be="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",Le="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="['’]",Ne="["+_e+"]",Me="["+Ee+"]",ke="["+xe+"]",Se="\\d+",Oe="["+be+"]",De="["+Ae+"]",Ie="[^"+_e+Ee+Se+be+Ae+Pe+"]",Te="\\ud83c[\\udffb-\\udfff]",Be="[^"+_e+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Pe+"]",je="\\u200d",Re="(?:"+De+"|"+Ie+")",He="(?:"+ze+"|"+Ie+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+ke+"|"+Te+")?",Ze="["+Le+"]?",Fe=Ze+Qe+"(?:"+je+"(?:"+[Be,Ve,Ge].join("|")+")"+Ze+Qe+")*",Ye="(?:"+[Oe,Ve,Ge].join("|")+")"+Fe,Xe="(?:"+[Be+ke+"?",ke,Ve,Ge,Ne].join("|")+")",Je=RegExp(Ce,"g"),Ke=RegExp(ke,"g"),qe=RegExp(Te+"(?="+Te+")|"+Xe+Fe,"g"),$e=RegExp([ze+"?"+De+"+"+Ue+"(?="+[Me,ze,"$"].join("|")+")",He+"+"+We+"(?="+[Me,ze+Re,"$"].join("|")+")",ze+"?"+Re+"+"+Ue,ze+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ye].join("|"),"g"),et=RegExp("["+je+_e+xe+Le+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ot={};ot[O]=ot[D]=ot[I]=ot[T]=ot[B]=ot[V]=ot[G]=ot[z]=ot[j]=!0,ot[g]=ot[y]=ot[k]=ot[f]=ot[S]=ot[m]=ot[v]=ot[w]=ot[x]=ot[b]=ot[A]=ot[L]=ot[E]=ot[C]=ot[M]=!1;var it={};it[g]=it[y]=it[k]=it[S]=it[f]=it[m]=it[O]=it[D]=it[I]=it[T]=it[B]=it[x]=it[b]=it[A]=it[L]=it[E]=it[C]=it[N]=it[V]=it[G]=it[z]=it[j]=!0,it[v]=it[w]=it[M]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,dt="object"==typeof Ut&&Ut&&Ut.Object===Object&&Ut,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=dt||ct||Function("return this")(),ht=to&&!to.nodeType&&to,pt=ht&&eo&&!eo.nodeType&&eo,gt=pt&&pt.exports===ht,yt=gt&&dt.process,ft=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),mt=ft&&ft.isArrayBuffer,vt=ft&&ft.isDate,wt=ft&&ft.isMap,_t=ft&&ft.isRegExp,xt=ft&&ft.isSet,bt=ft&&ft.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pt(e,t,n,a){for(var o=-1,i=null==e?0:e.length;++o-1}function kt(e,t,n){for(var a=-1,o=null==e?0:e.length;++a-1;);return n}function en(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var tn=Qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+rt[e]}function on(e){return et.test(e)}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,o=e.length,i=0,r=[];++n",""":'"',"'":"'"}),yn=function ae(_e){var xe,be=(_e=null==_e?ut:yn.defaults(ut.Object(),_e,yn.pick(ut,nt))).Array,Ae=_e.Date,Pe=_e.Error,Le=_e.Function,Ee=_e.Math,Ce=_e.Object,Ne=_e.RegExp,Me=_e.String,ke=_e.TypeError,Se=be.prototype,Oe=Le.prototype,De=Ce.prototype,Ie=_e["__core-js_shared__"],Te=Oe.toString,Be=De.hasOwnProperty,Ve=0,Ge=(xe=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+xe:"",ze=De.toString,je=Te.call(Ce),Re=ut._,He=Ne("^"+Te.call(Be).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=gt?_e.Buffer:e,We=_e.Symbol,Qe=_e.Uint8Array,Ze=Ue?Ue.allocUnsafe:e,Fe=sn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=De.propertyIsEnumerable,qe=Se.splice,et=We?We.isConcatSpreadable:e,rt=We?We.iterator:e,dt=We?We.toStringTag:e,ct=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ht=_e.clearTimeout!==ut.clearTimeout&&_e.clearTimeout,pt=Ae&&Ae.now!==ut.Date.now&&Ae.now,yt=_e.setTimeout!==ut.setTimeout&&_e.setTimeout,ft=Ee.ceil,Bt=Ee.floor,Ut=Ce.getOwnPropertySymbols,Qt=Ue?Ue.isBuffer:e,fn=_e.isFinite,mn=Se.join,vn=sn(Ce.keys,Ce),wn=Ee.max,_n=Ee.min,xn=Ae.now,bn=_e.parseInt,An=Ee.random,Pn=Se.reverse,Ln=pi(_e,"DataView"),En=pi(_e,"Map"),Cn=pi(_e,"Promise"),Nn=pi(_e,"Set"),Mn=pi(_e,"WeakMap"),kn=pi(Ce,"create"),Sn=Mn&&new Mn,On={},Dn=zi(Ln),In=zi(En),Tn=zi(Cn),Bn=zi(Nn),Vn=zi(Mn),Gn=We?We.prototype:e,zn=Gn?Gn.valueOf:e,jn=Gn?Gn.toString:e;function Rn(e){if(ns(e)&&!Qr(e)&&!(e instanceof Qn)){if(e instanceof Wn)return e;if(Be.call(e,"__wrapped__"))return ji(e)}return new Wn(e)}var Hn=function(){function t(){}return function(n){if(!ts(n))return{};if(Ye)return Ye(n);t.prototype=n;var a=new t;return t.prototype=e,a}}();function Un(){}function Wn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n?t:n)),t}function da(t,n,a,o,i,r){var s,l=1&n,d=2&n,c=4&n;if(a&&(s=i?a(t,o,i,r):a(t)),s!==e)return s;if(!ts(t))return t;var u=Qr(t);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return So(t,s)}else{var h=fi(t),p=h==w||h==_;if(Xr(t))return Lo(t,l);if(h==A||h==g||p&&!i){if(s=d||p?{}:vi(t),!l)return d?function(e,t){return Oo(e,yi(e),t)}(t,function(e,t){return e&&Oo(t,Ds(t),e)}(s,t)):function(e,t){return Oo(e,gi(e),t)}(t,ia(s,t))}else{if(!it[h])return i?t:{};s=function(e,t,n){var a,o=e.constructor;switch(t){case k:return Eo(e);case f:case m:return new o(+e);case S:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case D:case I:case T:case B:case V:case G:case z:case j:return Co(e,n);case x:return new o;case b:case C:return new o(e);case L:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new o;case N:return a=e,zn?Ce(zn.call(a)):{}}}(t,h,l)}}r||(r=new Jn);var y=r.get(t);if(y)return y;r.set(t,s),ss(t)?t.forEach((function(e){s.add(da(e,n,a,e,t,r))})):as(t)&&t.forEach((function(e,o){s.set(o,da(e,n,a,o,t,r))}));var v=u?e:(c?d?ri:ii:d?Ds:Os)(t);return Lt(v||t,(function(e,o){v&&(e=t[o=e]),na(s,o,da(e,n,a,o,t,r))})),s}function ca(t,n,a){var o=a.length;if(null==t)return!o;for(t=Ce(t);o--;){var i=a[o],r=n[i],s=t[i];if(s===e&&!(i in t)||!r(s))return!1}return!0}function ua(n,a,o){if("function"!=typeof n)throw new ke(t);return Oi((function(){n.apply(e,o)}),a)}function ha(e,t,n,a){var o=-1,i=Mt,r=!0,s=e.length,l=[],d=t.length;if(!s)return l;n&&(t=St(t,Jt(n))),a?(i=kt,r=!1):t.length>=200&&(i=qt,r=!1,t=new Xn(t));e:for(;++o-1},Fn.prototype.set=function(e,t){var n=this.__data__,a=aa(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(En||Fn),string:new Zn}},Yn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ui(this,e).get(e)},Yn.prototype.has=function(e){return ui(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ui(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,n),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Fn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var a=n.__data__;if(!En||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(a)}return n.set(e,t),this.size=n.size,this};var pa=To(xa),ga=To(ba,!0);function ya(e,t){var n=!0;return pa(e,(function(e,a,o){return n=!!t(e,a,o)})),n}function fa(t,n,a){for(var o=-1,i=t.length;++o0&&n(s)?t>1?va(s,t-1,n,a,o):Ot(o,s):a||(o[o.length]=s)}return o}var wa=Bo(),_a=Bo(!0);function xa(e,t){return e&&wa(e,t,Os)}function ba(e,t){return e&&_a(e,t,Os)}function Aa(e,t){return Nt(t,(function(t){return qr(e[t])}))}function Pa(t,n){for(var a=0,o=(n=xo(n,t)).length;null!=t&&at}function Na(e,t){return null!=e&&Be.call(e,t)}function Ma(e,t){return null!=e&&t in Ce(e)}function ka(t,n,a){for(var o=a?kt:Mt,i=t[0].length,r=t.length,s=r,l=be(r),d=1/0,c=[];s--;){var u=t[s];s&&n&&(u=St(u,Jt(n))),d=_n(u.length,d),l[s]=!a&&(n||i>=120&&u.length>=120)?new Xn(s&&u):e}u=t[0];var h=-1,p=l[0];e:for(;++h=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Za(e,t,n){for(var a=-1,o=t.length,i={};++a-1;)s!==e&&qe.call(s,l,1),qe.call(e,l,1);return e}function Ya(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==i){var i=o;_i(o)?qe.call(e,o,1):po(e,o)}}return e}function Xa(e,t){return e+Bt(An()*(t-e+1))}function Ja(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=Bt(t/2))&&(e+=e)}while(t);return n}function Ka(e,t){return Di(Ni(e,t,ol),e+"")}function qa(e){return qn(Rs(e))}function $a(e,t){var n=Rs(e);return Bi(n,la(t,0,n.length))}function eo(t,n,a,o){if(!ts(t))return t;for(var i=-1,r=(n=xo(n,t)).length,s=r-1,l=t;null!=l&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=be(o);++a>>1,r=e[i];null!==r&&!ds(r)&&(n?r<=t:r=200){var d=t?null:Ko(e);if(d)return dn(d);r=!1,o=qt,l=new Xn}else l=t?[]:s;e:for(;++a=o?t:oo(t,n,a)}var Po=ht||function(e){return ut.clearTimeout(e)};function Lo(e,t){if(t)return e.slice();var n=e.length,a=Ze?Ze(n):new e.constructor(n);return e.copy(a),a}function Eo(e){var t=new e.constructor(e.byteLength);return new Qe(t).set(new Qe(e)),t}function Co(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function No(t,n){if(t!==n){var a=t!==e,o=null===t,i=t==t,r=ds(t),s=n!==e,l=null===n,d=n==n,c=ds(n);if(!l&&!c&&!r&&t>n||r&&s&&d&&!l&&!c||o&&s&&d||!a&&d||!i)return 1;if(!o&&!r&&!c&&t1?a[i-1]:e,s=i>2?a[2]:e;for(r=t.length>3&&"function"==typeof r?(i--,r):e,s&&xi(a[0],a[1],s)&&(r=i<3?e:r,i=1),n=Ce(n);++o-1?i[r?n[s]:s]:e}}function Ro(n){return oi((function(a){var o=a.length,i=o,r=Wn.prototype.thru;for(n&&a.reverse();i--;){var s=a[i];if("function"!=typeof s)throw new ke(t);if(r&&!l&&"wrapper"==li(s))var l=new Wn([],!0)}for(i=l?i:o;++i1&&w.reverse(),h&&cl))return!1;var c=r.get(t),u=r.get(n);if(c&&u)return c==n&&u==t;var h=-1,p=!0,g=2&a?new Xn:e;for(r.set(t,n),r.set(n,t);++h-1&&e%1==0&&e1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return Lt(p,(function(n){var a="_."+n[0];t&n[1]&&!Mt(e,a)&&e.push(a)})),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(re):[]}(a),n)))}function Ti(t){var n=0,a=0;return function(){var o=xn(),i=16-(o-a);if(a=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Bi(t,n){var a=-1,o=t.length,i=o-1;for(n=n===e?o:n;++a1?t[n-1]:e;return a="function"==typeof a?(t.pop(),a):e,rr(t,a)}));function pr(e){var t=Rn(e);return t.__chain__=!0,t}function gr(e,t){return t(e)}var yr=oi((function(t){var n=t.length,a=n?t[0]:0,o=this.__wrapped__,i=function(e){return sa(e,t)};return!(n>1||this.__actions__.length)&&o instanceof Qn&&_i(a)?((o=o.slice(a,+a+(n?1:0))).__actions__.push({func:gr,args:[i],thisArg:e}),new Wn(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)})),fr=Do((function(e,t,n){Be.call(e,n)?++e[n]:ra(e,n,1)})),mr=jo(Wi),vr=jo(Qi);function wr(e,t){return(Qr(e)?Lt:pa)(e,ci(t,3))}function _r(e,t){return(Qr(e)?Et:ga)(e,ci(t,3))}var xr=Do((function(e,t,n){Be.call(e,n)?e[n].push(t):ra(e,n,[t])})),br=Ka((function(e,t,n){var a=-1,o="function"==typeof t,i=Fr(e)?be(e.length):[];return pa(e,(function(e){i[++a]=o?At(t,e,n):Sa(e,t,n)})),i})),Ar=Do((function(e,t,n){ra(e,n,t)}));function Pr(e,t){return(Qr(e)?St:ja)(e,ci(t,3))}var Lr=Do((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Er=Ka((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Qa(e,va(t,1),[])})),Cr=pt||function(){return ut.Date.now()};function Nr(t,n,a){return n=a?e:n,n=t&&null==n?t.length:n,$o(t,s,e,e,e,e,n)}function Mr(n,a){var o;if("function"!=typeof a)throw new ke(t);return n=ys(n),function(){return--n>0&&(o=a.apply(this,arguments)),n<=1&&(a=e),o}}var kr=Ka((function(e,t,n){var a=1;if(n.length){var o=ln(n,di(kr));a|=i}return $o(e,a,t,n,o)})),Sr=Ka((function(e,t,n){var a=3;if(n.length){var o=ln(n,di(Sr));a|=i}return $o(t,a,e,n,o)}));function Or(n,a,o){var i,r,s,l,d,c,u=0,h=!1,p=!1,g=!0;if("function"!=typeof n)throw new ke(t);function y(t){var a=i,o=r;return i=r=e,u=t,l=n.apply(o,a)}function f(t){var n=t-c;return c===e||n>=a||n<0||p&&t-u>=s}function m(){var e=Cr();if(f(e))return v(e);d=Oi(m,function(e){var t=a-(e-c);return p?_n(t,s-(e-u)):t}(e))}function v(t){return d=e,g&&i?y(t):(i=r=e,l)}function w(){var t=Cr(),n=f(t);if(i=arguments,r=this,c=t,n){if(d===e)return function(e){return u=e,d=Oi(m,a),h?y(e):l}(c);if(p)return Po(d),d=Oi(m,a),y(c)}return d===e&&(d=Oi(m,a)),l}return a=ms(a)||0,ts(o)&&(h=!!o.leading,s=(p="maxWait"in o)?wn(ms(o.maxWait)||0,a):s,g="trailing"in o?!!o.trailing:g),w.cancel=function(){d!==e&&Po(d),u=0,i=c=r=d=e},w.flush=function(){return d===e?l:v(Cr())},w}var Dr=Ka((function(e,t){return ua(e,1,t)})),Ir=Ka((function(e,t,n){return ua(e,ms(t)||0,n)}));function Tr(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new ke(t);var a=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=a.cache;if(i.has(o))return i.get(o);var r=e.apply(this,t);return a.cache=i.set(o,r)||i,r};return a.cache=new(Tr.Cache||Yn),a}function Br(e){if("function"!=typeof e)throw new ke(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Tr.Cache=Yn;var Vr=bo((function(e,t){var n=(t=1==t.length&&Qr(t[0])?St(t[0],Jt(ci())):St(va(t,1),Jt(ci()))).length;return Ka((function(a){for(var o=-1,i=_n(a.length,n);++o=t})),Wr=Oa(function(){return arguments}())?Oa:function(e){return ns(e)&&Be.call(e,"callee")&&!Xe.call(e,"callee")},Qr=be.isArray,Zr=mt?Jt(mt):function(e){return ns(e)&&Ea(e)==k};function Fr(e){return null!=e&&es(e.length)&&!qr(e)}function Yr(e){return ns(e)&&Fr(e)}var Xr=Qt||ml,Jr=vt?Jt(vt):function(e){return ns(e)&&Ea(e)==m};function Kr(e){if(!ns(e))return!1;var t=Ea(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function qr(e){if(!ts(e))return!1;var t=Ea(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $r(e){return"number"==typeof e&&e==ys(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var as=wt?Jt(wt):function(e){return ns(e)&&fi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Ea(e)==b}function is(e){if(!ns(e)||Ea(e)!=A)return!1;var t=Fe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==je}var rs=_t?Jt(_t):function(e){return ns(e)&&Ea(e)==L},ss=xt?Jt(xt):function(e){return ns(e)&&fi(e)==E};function ls(e){return"string"==typeof e||!Qr(e)&&ns(e)&&Ea(e)==C}function ds(e){return"symbol"==typeof e||ns(e)&&Ea(e)==N}var cs=bt?Jt(bt):function(e){return ns(e)&&es(e.length)&&!!ot[Ea(e)]},us=Yo(za),hs=Yo((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Fr(e))return ls(e)?hn(e):So(e);if(rt&&e[rt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[rt]());var t=fi(e);return(t==x?rn:t==E?dn:Rs)(e)}function gs(e){return e?(e=ms(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ys(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function fs(e){return e?la(ys(e),0,h):0}function ms(e){if("number"==typeof e)return e;if(ds(e))return u;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=pe.test(e);return n||ye.test(e)?lt(e.slice(2),n?2:8):he.test(e)?u:+e}function vs(e){return Oo(e,Ds(e))}function ws(e){return null==e?"":uo(e)}var _s=Io((function(e,t){if(Li(t)||Fr(t))Oo(t,Os(t),e);else for(var n in t)Be.call(t,n)&&na(e,n,t[n])})),xs=Io((function(e,t){Oo(t,Ds(t),e)})),bs=Io((function(e,t,n,a){Oo(t,Ds(t),e,a)})),As=Io((function(e,t,n,a){Oo(t,Os(t),e,a)})),Ps=oi(sa),Ls=Ka((function(t,n){t=Ce(t);var a=-1,o=n.length,i=o>2?n[2]:e;for(i&&xi(n[0],n[1],i)&&(o=1);++a1),t})),Oo(e,ri(e),n),a&&(n=da(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n})),Vs=oi((function(e,t){return null==e?{}:function(e,t){return Za(e,t,(function(t,n){return Ns(e,n)}))}(e,t)}));function Gs(e,t){if(null==e)return{};var n=St(ri(e),(function(e){return[e]}));return t=ci(t),Za(e,n,(function(e,n){return t(e,n[0])}))}var zs=qo(Os),js=qo(Ds);function Rs(e){return null==e?[]:Kt(e,Os(e))}var Hs=Go((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Ks(ws(e).toLowerCase())}function Ws(e){return(e=ws(e))&&e.replace(me,tn).replace(Ke,"")}var Qs=Go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zs=Go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fs=Vo("toLowerCase"),Ys=Go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xs=Go((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Js=Go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Vo("toUpperCase");function qs(t,n,a){return t=ws(t),(n=a?e:n)===e?function(e){return tt.test(e)}(t)?function(e){return e.match($e)||[]}(t):function(e){return e.match(se)||[]}(t):t.match(n)||[]}var $s=Ka((function(t,n){try{return At(t,e,n)}catch(e){return Kr(e)?e:new Pe(e)}})),el=oi((function(e,t){return Lt(t,(function(t){t=Gi(t),ra(e,t,kr(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Ro(),al=Ro(!0);function ol(e){return e}function il(e){return Ba("function"==typeof e?e:da(e,1))}var rl=Ka((function(e,t){return function(n){return Sa(n,e,t)}})),sl=Ka((function(e,t){return function(n){return Sa(e,n,t)}}));function ll(e,t,n){var a=Os(t),o=Aa(t,a);null!=n||ts(t)&&(o.length||!a.length)||(n=t,t=e,e=this,o=Aa(t,Os(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),r=qr(e);return Lt(o,(function(n){var a=t[n];e[n]=a,r&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=So(this.__actions__)).push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Ot([this.value()],arguments))})})),e}function dl(){}var cl=Qo(St),ul=Qo(Ct),hl=Qo(Tt);function pl(e){return bi(e)?Wt(Gi(e)):function(e){return function(t){return Pa(t,e)}}(e)}var gl=Fo(),yl=Fo(!0);function fl(){return[]}function ml(){return!1}var vl,wl=Wo((function(e,t){return e+t}),0),_l=Jo("ceil"),xl=Wo((function(e,t){return e/t}),1),bl=Jo("floor"),Al=Wo((function(e,t){return e*t}),1),Pl=Jo("round"),Ll=Wo((function(e,t){return e-t}),0);return Rn.after=function(e,n){if("function"!=typeof n)throw new ke(t);return e=ys(e),function(){if(--e<1)return n.apply(this,arguments)}},Rn.ary=Nr,Rn.assign=_s,Rn.assignIn=xs,Rn.assignInWith=bs,Rn.assignWith=As,Rn.at=Ps,Rn.before=Mr,Rn.bind=kr,Rn.bindAll=el,Rn.bindKey=Sr,Rn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qr(e)?e:[e]},Rn.chain=pr,Rn.chunk=function(t,n,a){n=(a?xi(t,n,a):n===e)?1:wn(ys(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,r=0,s=be(ft(o/n));ii?0:i+a),(o=o===e||o>i?i:ys(o))<0&&(o+=i),o=a>o?0:fs(o);a>>0)?(t=ws(t))&&("string"==typeof n||null!=n&&!rs(n))&&!(n=uo(n))&&on(t)?Ao(hn(t),0,a):t.split(n,a):[]},Rn.spread=function(e,n){if("function"!=typeof e)throw new ke(t);return n=null==n?0:wn(ys(n),0),Ka((function(t){var a=t[n],o=Ao(t,0,n);return a&&Ot(o,a),At(e,this,o)}))},Rn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Rn.take=function(t,n,a){return t&&t.length?oo(t,0,(n=a||n===e?1:ys(n))<0?0:n):[]},Rn.takeRight=function(t,n,a){var o=null==t?0:t.length;return o?oo(t,(n=o-(n=a||n===e?1:ys(n)))<0?0:n,o):[]},Rn.takeRightWhile=function(e,t){return e&&e.length?yo(e,ci(t,3),!1,!0):[]},Rn.takeWhile=function(e,t){return e&&e.length?yo(e,ci(t,3)):[]},Rn.tap=function(e,t){return t(e),e},Rn.throttle=function(e,n,a){var o=!0,i=!0;if("function"!=typeof e)throw new ke(t);return ts(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),Or(e,n,{leading:o,maxWait:n,trailing:i})},Rn.thru=gr,Rn.toArray=ps,Rn.toPairs=zs,Rn.toPairsIn=js,Rn.toPath=function(e){return Qr(e)?St(e,Gi):ds(e)?[e]:So(Vi(ws(e)))},Rn.toPlainObject=vs,Rn.transform=function(e,t,n){var a=Qr(e),o=a||Xr(e)||cs(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?a?new i:[]:ts(e)&&qr(i)?Hn(Fe(e)):{}}return(o?Lt:xa)(e,(function(e,a,o){return t(n,e,a,o)})),n},Rn.unary=function(e){return Nr(e,1)},Rn.union=nr,Rn.unionBy=ar,Rn.unionWith=or,Rn.uniq=function(e){return e&&e.length?ho(e):[]},Rn.uniqBy=function(e,t){return e&&e.length?ho(e,ci(t,2)):[]},Rn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?ho(t,e,n):[]},Rn.unset=function(e,t){return null==e||po(e,t)},Rn.unzip=ir,Rn.unzipWith=rr,Rn.update=function(e,t,n){return null==e?e:go(e,t,_o(n))},Rn.updateWith=function(t,n,a,o){return o="function"==typeof o?o:e,null==t?t:go(t,n,_o(a),o)},Rn.values=Rs,Rn.valuesIn=function(e){return null==e?[]:Kt(e,Ds(e))},Rn.without=sr,Rn.words=qs,Rn.wrap=function(e,t){return Gr(_o(t),e)},Rn.xor=lr,Rn.xorBy=dr,Rn.xorWith=cr,Rn.zip=ur,Rn.zipObject=function(e,t){return vo(e||[],t||[],na)},Rn.zipObjectDeep=function(e,t){return vo(e||[],t||[],eo)},Rn.zipWith=hr,Rn.entries=zs,Rn.entriesIn=js,Rn.extend=xs,Rn.extendWith=bs,ll(Rn,Rn),Rn.add=wl,Rn.attempt=$s,Rn.camelCase=Hs,Rn.capitalize=Us,Rn.ceil=_l,Rn.clamp=function(t,n,a){return a===e&&(a=n,n=e),a!==e&&(a=(a=ms(a))==a?a:0),n!==e&&(n=(n=ms(n))==n?n:0),la(ms(t),n,a)},Rn.clone=function(e){return da(e,4)},Rn.cloneDeep=function(e){return da(e,5)},Rn.cloneDeepWith=function(t,n){return da(t,5,n="function"==typeof n?n:e)},Rn.cloneWith=function(t,n){return da(t,4,n="function"==typeof n?n:e)},Rn.conformsTo=function(e,t){return null==t||ca(e,t,Os(t))},Rn.deburr=Ws,Rn.defaultTo=function(e,t){return null==e||e!=e?t:e},Rn.divide=xl,Rn.endsWith=function(t,n,a){t=ws(t),n=uo(n);var o=t.length,i=a=a===e?o:la(ys(a),0,o);return(a-=n.length)>=0&&t.slice(a,i)==n},Rn.eq=Rr,Rn.escape=function(e){return(e=ws(e))&&F.test(e)?e.replace(Q,nn):e},Rn.escapeRegExp=function(e){return(e=ws(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Rn.every=function(t,n,a){var o=Qr(t)?Ct:ya;return a&&xi(t,n,a)&&(n=e),o(t,ci(n,3))},Rn.find=mr,Rn.findIndex=Wi,Rn.findKey=function(e,t){return Vt(e,ci(t,3),xa)},Rn.findLast=vr,Rn.findLastIndex=Qi,Rn.findLastKey=function(e,t){return Vt(e,ci(t,3),ba)},Rn.floor=bl,Rn.forEach=wr,Rn.forEachRight=_r,Rn.forIn=function(e,t){return null==e?e:wa(e,ci(t,3),Ds)},Rn.forInRight=function(e,t){return null==e?e:_a(e,ci(t,3),Ds)},Rn.forOwn=function(e,t){return e&&xa(e,ci(t,3))},Rn.forOwnRight=function(e,t){return e&&ba(e,ci(t,3))},Rn.get=Cs,Rn.gt=Hr,Rn.gte=Ur,Rn.has=function(e,t){return null!=e&&mi(e,t,Na)},Rn.hasIn=Ns,Rn.head=Fi,Rn.identity=ol,Rn.includes=function(e,t,n,a){e=Fr(e)?e:Rs(e),n=n&&!a?ys(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},Rn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:ys(n);return o<0&&(o=wn(a+o,0)),zt(e,t,o)},Rn.inRange=function(t,n,a){return n=gs(n),a===e?(a=n,n=0):a=gs(a),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=c},Rn.isSet=ss,Rn.isString=ls,Rn.isSymbol=ds,Rn.isTypedArray=cs,Rn.isUndefined=function(t){return t===e},Rn.isWeakMap=function(e){return ns(e)&&fi(e)==M},Rn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ea(e)},Rn.join=function(e,t){return null==e?"":mn.call(e,t)},Rn.kebabCase=Qs,Rn.last=Ki,Rn.lastIndexOf=function(t,n,a){var o=null==t?0:t.length;if(!o)return-1;var i=o;return a!==e&&(i=(i=ys(a))<0?wn(o+i,0):_n(i,o-1)),n==n?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(t,n,i):Gt(t,Rt,i,!0)},Rn.lowerCase=Zs,Rn.lowerFirst=Fs,Rn.lt=us,Rn.lte=hs,Rn.max=function(t){return t&&t.length?fa(t,ol,Ca):e},Rn.maxBy=function(t,n){return t&&t.length?fa(t,ci(n,2),Ca):e},Rn.mean=function(e){return Ht(e,ol)},Rn.meanBy=function(e,t){return Ht(e,ci(t,2))},Rn.min=function(t){return t&&t.length?fa(t,ol,za):e},Rn.minBy=function(t,n){return t&&t.length?fa(t,ci(n,2),za):e},Rn.stubArray=fl,Rn.stubFalse=ml,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=Al,Rn.nth=function(t,n){return t&&t.length?Wa(t,ys(n)):e},Rn.noConflict=function(){return ut._===this&&(ut._=Re),this},Rn.noop=dl,Rn.now=Cr,Rn.pad=function(e,t,n){e=ws(e);var a=(t=ys(t))?un(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return Zo(Bt(o),n)+e+Zo(ft(o),n)},Rn.padEnd=function(e,t,n){e=ws(e);var a=(t=ys(t))?un(e):0;return t&&an){var o=t;t=n,n=o}if(a||t%1||n%1){var i=An();return _n(t+i*(n-t+st("1e-"+((i+"").length-1))),n)}return Xa(t,n)},Rn.reduce=function(e,t,n){var a=Qr(e)?Dt:Zt,o=arguments.length<3;return a(e,ci(t,4),n,o,pa)},Rn.reduceRight=function(e,t,n){var a=Qr(e)?It:Zt,o=arguments.length<3;return a(e,ci(t,4),n,o,ga)},Rn.repeat=function(t,n,a){return n=(a?xi(t,n,a):n===e)?1:ys(n),Ja(ws(t),n)},Rn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Rn.result=function(t,n,a){var o=-1,i=(n=xo(n,t)).length;for(i||(i=1,t=e);++oc)return[];var n=h,a=_n(e,h);t=ci(t),e-=h;for(var o=Yt(a,t);++n=r)return t;var l=a-un(o);if(l<1)return o;var d=s?Ao(s,0,l).join(""):t.slice(0,l);if(i===e)return d+o;if(s&&(l+=d.length-l),rs(i)){if(t.slice(l).search(i)){var c,u=d;for(i.global||(i=Ne(i.source,ws(ue.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var h=c.index;d=d.slice(0,h===e?l:h)}}else if(t.indexOf(uo(i),l)!=l){var p=d.lastIndexOf(i);p>-1&&(d=d.slice(0,p))}return d+o},Rn.unescape=function(e){return(e=ws(e))&&Z.test(e)?e.replace(W,gn):e},Rn.uniqueId=function(e){var t=++Ve;return ws(e)+t},Rn.upperCase=Js,Rn.upperFirst=Ks,Rn.each=wr,Rn.eachRight=_r,Rn.first=Fi,ll(Rn,(vl={},xa(Rn,(function(e,t){Be.call(Rn.prototype,t)||(vl[t]=e)})),vl),{chain:!1}),Rn.VERSION="4.17.21",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Rn[e].placeholder=Rn})),Lt(["drop","take"],(function(t,n){Qn.prototype[t]=function(a){a=a===e?1:wn(ys(a),0);var o=this.__filtered__&&!n?new Qn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(a,o.__takeCount__):o.__views__.push({size:_n(a,h),type:t+(o.__dir__<0?"Right":"")}),o},Qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Lt(["filter","map","takeWhile"],(function(e,t){var n=t+1,a=1==n||3==n;Qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||a,t}})),Lt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Qn.prototype[e]=function(){return this[n](1).value()[0]}})),Lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Qn.prototype[e]=function(){return this.__filtered__?new Qn(this):this[n](1)}})),Qn.prototype.compact=function(){return this.filter(ol)},Qn.prototype.find=function(e){return this.filter(e).head()},Qn.prototype.findLast=function(e){return this.reverse().find(e)},Qn.prototype.invokeMap=Ka((function(e,t){return"function"==typeof e?new Qn(this):this.map((function(n){return Sa(n,e,t)}))})),Qn.prototype.reject=function(e){return this.filter(Br(ci(e)))},Qn.prototype.slice=function(t,n){t=ys(t);var a=this;return a.__filtered__&&(t>0||n<0)?new Qn(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==e&&(a=(n=ys(n))<0?a.dropRight(-n):a.take(n-t)),a)},Qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qn.prototype.toArray=function(){return this.take(h)},xa(Qn.prototype,(function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=Rn[o?"take"+("last"==n?"Right":""):n],r=o||/^find/.test(n);i&&(Rn.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,l=n instanceof Qn,d=s[0],c=l||Qr(n),u=function(e){var t=i.apply(Rn,Ot([e],s));return o&&h?t[0]:t};c&&a&&"function"==typeof d&&1!=d.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,g=r&&!h,y=l&&!p;if(!r&&c){n=y?n:new Qn(this);var f=t.apply(n,s);return f.__actions__.push({func:gr,args:[u],thisArg:e}),new Wn(f,h)}return g&&y?t.apply(this,s):(f=this.thru(u),g?o?f.value()[0]:f.value():f)})})),Lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Rn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var o=this.value();return t.apply(Qr(o)?o:[],e)}return this[n]((function(n){return t.apply(Qr(n)?n:[],e)}))}})),xa(Qn.prototype,(function(e,t){var n=Rn[t];if(n){var a=n.name+"";Be.call(On,a)||(On[a]=[]),On[a].push({name:t,func:n})}})),On[Ho(e,2).name]=[{name:"wrapper",func:e}],Qn.prototype.clone=function(){var e=new Qn(this.__wrapped__);return e.__actions__=So(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=So(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=So(this.__views__),e},Qn.prototype.reverse=function(){if(this.__filtered__){var e=new Qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qr(e),a=t<0,o=n?e.length:0,i=function(e,t,n){for(var a=-1,o=n.length;++a=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Rn.prototype.plant=function(t){for(var n,a=this;a instanceof Un;){var o=ji(a);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;a=a.__wrapped__}return i.__wrapped__=t,n},Rn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Qn){var n=t;return this.__actions__.length&&(n=new Qn(this)),(n=n.reverse()).__actions__.push({func:gr,args:[tr],thisArg:e}),new Wn(n,this.__chain__)}return this.thru(tr)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,rt&&(Rn.prototype[rt]=function(){return this}),Rn}();pt?((pt.exports=yn)._=yn,ht._=yn):ut._=yn}.call($a.exports)),$a.exports);let io=class extends re{constructor(){super(...arguments),this._computeLabelCallback=e=>Ct("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this._config&&this.hass?H(ao||(ao=pe(["\n\t\t\t\n\t\t"])),this.hass,this._config,this._computeLabelCallback.bind(this),[{type:"expandable",title:this._title("title"),schema:[{type:"grid",schema:[{name:"title",selector:{text:{}}},{name:"title_colour",selector:{color_rgb:{}}},{name:"title_size",selector:{text:{}}}]}]},{name:"cardstyle",selector:{select:{options:Object.values(me).map((e=>({label:oo.capitalize(e),value:e})))}}},{type:"expandable",title:this._title("general"),schema:[{type:"grid",schema:[{name:"large_font",selector:{boolean:{}}},{name:"panel_mode",selector:{boolean:{}}},{name:"card_height",selector:{text:{}}},{name:"card_width",selector:{text:{}}},{name:"show_solar",selector:{boolean:{}}},{name:"show_battery",selector:{boolean:{}}},{name:"show_grid",selector:{boolean:{}}},{name:"decimal_places",selector:{number:{}}},{name:"decimal_places_energy",selector:{number:{}}},{name:"dynamic_line_width",selector:{boolean:{}}},{name:"max_line_width",selector:{number:{}}},{name:"min_line_width",selector:{number:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{type:"grid",schema:[{name:"card_height",selector:{entity:{}}},{name:"card_width",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("inverter"),schema:[{name:"inverter",type:"grid",schema:[{name:"three_phase",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"model",selector:{select:{options:Object.values(fe).map((e=>({label:oo.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(ve).map((e=>({label:oo.capitalize(e),value:e})))}}},{name:"colour",selector:{color_rgb:{}}},{name:"navigate",selector:{text:{}}}]}]},{type:"expandable",title:this._title("solar"),schema:[{name:"solar",type:"grid",schema:[{name:"mppts",selector:{number:{min:1,max:4}}},{name:"show_daily",selector:{boolean:{}}},{name:"pv1_name",selector:{text:{}}},{name:"pv2_name",selector:{text:{}}},{name:"pv3_name",selector:{text:{}}},{name:"pv4_name",selector:{text:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"display_mode",selector:{number:{mode:"box",min:1,max:3}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"pv1_max_power",selector:{number:{}}},{name:"pv2_max_power",selector:{number:{}}},{name:"pv3_max_power",selector:{number:{}}},{name:"pv4_max_power",selector:{number:{}}},{name:"efficiency",selector:{number:{mode:"box",min:0,max:3}}},{name:"off_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"solar",type:"grid",schema:[{name:"max_power",selector:{entity:{}}},{name:"pv1_max_power",selector:{entity:{}}},{name:"pv2_max_power",selector:{entity:{}}},{name:"pv3_max_power",selector:{entity:{}}},{name:"pv4_max_power",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("battery"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"shutdown_soc_offgrid",selector:{number:{mode:"box",min:0,max:100}}},{name:"soc_end_of_charge",selector:{number:{mode:"box",min:80,max:100}}},{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"animate",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"path_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"soc_end_of_charge",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("load"),schema:[{name:"load",type:"grid",schema:[{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"dynamic_icon",selector:{boolean:{}}},{name:"invert_load",selector:{boolean:{}}},{name:"essential_name",selector:{text:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:4}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"load4_name",selector:{text:{}}},{name:"load4_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"off_threshold",selector:{number:{}}},{name:"path_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}},{name:"label_daily_load",selector:{text:{}}}]},{type:"expandable",title:this._title("aux"),schema:[{name:"load",type:"grid",schema:[{name:"show_aux",selector:{boolean:{}}},{name:"aux_name",selector:{text:{}}},{name:"aux_daily_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_dynamic_colour",selector:{boolean:{}}},{name:"aux_colour",selector:{color_rgb:{}}},{name:"aux_off_colour",selector:{color_rgb:{}}},{name:"aux_loads",selector:{number:{mode:"box",min:0,max:2}}},{name:"aux_load1_name",selector:{text:{}}},{name:"aux_load1_icon",selector:{icon:{}}},{name:"aux_load2_name",selector:{text:{}}},{name:"aux_load2_icon",selector:{icon:{}}},{name:"show_daily_aux",selector:{boolean:{}}}]}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"load",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"load4_icon",selector:{entity:{}}},{name:"aux_load1_icon",selector:{entity:{}}},{name:"aux_load2_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("grid"),schema:[{name:"grid",type:"grid",schema:[{name:"show_daily_buy",selector:{boolean:{}}},{name:"show_daily_sell",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_grid",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"no_grid_colour",selector:{color_rgb:{}}},{name:"export_colour",selector:{color_rgb:{}}},{name:"grid_off_colour",selector:{color_rgb:{}}},{name:"grid_name",selector:{text:{}}},{name:"label_daily_grid_buy",selector:{text:{}}},{name:"label_daily_grid_sell",selector:{text:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"energy_cost_decimals",selector:{number:{mode:"box",min:0,max:3}}},{name:"show_nonessential",selector:{boolean:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:3}}},{name:"nonessential_name",selector:{text:{}}},{name:"nonessential_icon",selector:{icon:{}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"off_threshold",selector:{number:{}}},{name:"import_icon",selector:{icon:{}}},{name:"export_icon",selector:{icon:{}}},{name:"disconnected_icon",selector:{icon:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"grid",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}},{name:"import_icon",selector:{entity:{}}},{name:"export_icon",selector:{entity:{}}},{name:"disconnected_icon",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("entities"),schema:[{type:"expandable",title:this._title("sol"),schema:[{name:"entities",type:"grid",schema:[{name:"day_pv_energy_108",selector:{entity:{device_class:Vt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Vt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Vt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Vt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Vt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Vt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Vt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Vt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Vt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Vt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Vt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Vt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Vt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Vt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Vt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Vt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Vt.BATTERY}}},{name:"day_battery_charge_70",selector:{entity:{device_class:Vt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Vt.ENERGY}}},{name:"battery_rated_capacity",selector:{entity:{}}},{name:"battery_soh",selector:{entity:{}}},{name:"battery_current_direction",selector:{entity:{}}},{name:"battery_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("inv"),schema:[{name:"entities",type:"grid",schema:[{name:"inverter_status_59",selector:{entity:{}}},{name:"use_timer_248",selector:{entity:{}}},{name:"priority_load_243",selector:{entity:{}}},{name:"inverter_voltage_154",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Vt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Vt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Vt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Vt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Vt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Vt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Vt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Vt.TEMPERATURE}}},{name:"prog1_time",selector:{entity:{}}},{name:"prog1_capacity",selector:{entity:{}}},{name:"prog1_charge",selector:{entity:{}}},{name:"prog2_time",selector:{entity:{}}},{name:"prog2_capacity",selector:{entity:{}}},{name:"prog2_charge",selector:{entity:{}}},{name:"prog3_time",selector:{entity:{}}},{name:"prog3_capacity",selector:{entity:{}}},{name:"prog3_charge",selector:{entity:{}}},{name:"prog4_time",selector:{entity:{}}},{name:"prog4_capacity",selector:{entity:{}}},{name:"prog4_charge",selector:{entity:{}}},{name:"prog5_time",selector:{entity:{}}},{name:"prog5_capacity",selector:{entity:{}}},{name:"prog5_charge",selector:{entity:{}}},{name:"prog6_time",selector:{entity:{}}},{name:"prog6_capacity",selector:{entity:{}}},{name:"prog6_charge",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("ld"),schema:[{name:"entities",type:"grid",schema:[{name:"day_load_energy_84",selector:{entity:{device_class:Vt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Vt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Vt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Vt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Vt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Vt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Vt.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"essential_load3_extra",selector:{entity:{}}},{name:"essential_load4_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:Vt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Vt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Vt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Vt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Vt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Vt.POWER}}},{name:"aux_load1_extra",selector:{entity:{}}},{name:"aux_load2_extra",selector:{entity:{}}},{name:"aux_connected_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("gri"),schema:[{name:"entities",type:"grid",schema:[{name:"day_grid_import_76",selector:{entity:{device_class:Vt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Vt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Vt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Vt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Vt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Vt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Vt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Vt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Vt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Vt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Vt.POWER}}},{name:"non_essential_load1_extra",selector:{entity:{}}},{name:"non_essential_load2_extra",selector:{entity:{}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}},{name:"max_sell_power",selector:{entity:{device_class:Vt.POWER}}}]}]}]}],this._valueChanged.bind(this)):H(no||(no=pe([""])))}_title(e){return Ct("config.cat_title.".concat(e))??e}_valueChanged(e){Kt(this,"config-changed",{config:e.detail.value})}};e([ue()],io.prototype,"hass",void 0),e([ue()],io.prototype,"_config",void 0),e([ue()],io.prototype,"lovelace",void 0),io=e([le(Bt)],io);var ro=Object.freeze({__proto__:null,get SunSynkCardEditor(){return io}});export{Ka as SunsynkPowerFlowCard};
+ */var oo,io,ro,so,lo=(no||(no=1,oo=ao,io=ao.exports,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,i=32,r=64,s=128,l=256,d=1/0,c=9007199254740991,u=NaN,y=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",r],["rearg",l]],g="[object Arguments]",p="[object Array]",f="[object Boolean]",m="[object Date]",_="[object Error]",v="[object Function]",w="[object GeneratorFunction]",x="[object Map]",b="[object Number]",A="[object Object]",P="[object Promise]",L="[object RegExp]",C="[object Set]",E="[object String]",N="[object Symbol]",M="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",O="[object Float32Array]",B="[object Float64Array]",T="[object Int8Array]",I="[object Int16Array]",D="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",z="[object Uint16Array]",R="[object Uint32Array]",j=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,Q=RegExp(U.source),Z=RegExp(F.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),nt=/^\s+/,at=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,rt=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,yt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,pt=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,vt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="\\u2700-\\u27bf",At="a-z\\xdf-\\xf6\\xf8-\\xff",Pt="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="['’]",Nt="["+wt+"]",Mt="["+Ct+"]",kt="["+xt+"]",St="\\d+",Ot="["+bt+"]",Bt="["+At+"]",Tt="[^"+wt+Ct+St+bt+At+Pt+"]",It="\\ud83c[\\udffb-\\udfff]",Dt="[^"+wt+"]",Vt="(?:\\ud83c[\\udde6-\\uddff]){2}",Gt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+Pt+"]",Rt="\\u200d",jt="(?:"+Bt+"|"+Tt+")",Ht="(?:"+zt+"|"+Tt+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ut="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ft="(?:"+kt+"|"+It+")?",Qt="["+Lt+"]?",Zt=Qt+Ft+"(?:"+Rt+"(?:"+[Dt,Vt,Gt].join("|")+")"+Qt+Ft+")*",Yt="(?:"+[Ot,Vt,Gt].join("|")+")"+Zt,Xt="(?:"+[Dt+kt+"?",kt,Vt,Gt,Nt].join("|")+")",Kt=RegExp(Et,"g"),Jt=RegExp(kt,"g"),qt=RegExp(It+"(?="+It+")|"+Xt+Zt,"g"),$t=RegExp([zt+"?"+Bt+"+"+Wt+"(?="+[Mt,zt,"$"].join("|")+")",Ht+"+"+Ut+"(?="+[Mt,zt+jt,"$"].join("|")+")",zt+"?"+jt+"+"+Wt,zt+"+"+Ut,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Yt].join("|"),"g"),te=RegExp("["+Rt+wt+xt+Lt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ae=-1,oe={};oe[O]=oe[B]=oe[T]=oe[I]=oe[D]=oe[V]=oe[G]=oe[z]=oe[R]=!0,oe[g]=oe[p]=oe[k]=oe[f]=oe[S]=oe[m]=oe[_]=oe[v]=oe[x]=oe[b]=oe[A]=oe[L]=oe[C]=oe[E]=oe[M]=!1;var ie={};ie[g]=ie[p]=ie[k]=ie[S]=ie[f]=ie[m]=ie[O]=ie[B]=ie[T]=ie[I]=ie[D]=ie[x]=ie[b]=ie[A]=ie[L]=ie[C]=ie[E]=ie[N]=ie[V]=ie[G]=ie[z]=ie[R]=!0,ie[_]=ie[v]=ie[M]=!1;var re={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,le=parseInt,de="object"==typeof We&&We&&We.Object===Object&&We,ce="object"==typeof self&&self&&self.Object===Object&&self,ue=de||ce||Function("return this")(),ye=io&&!io.nodeType&&io,he=ye&&oo&&!oo.nodeType&&oo,ge=he&&he.exports===ye,pe=ge&&de.process,fe=function(){try{var t=he&&he.require&&he.require("util").types;return t||pe&&pe.binding&&pe.binding("util")}catch(t){}}(),me=fe&&fe.isArrayBuffer,_e=fe&&fe.isDate,ve=fe&&fe.isMap,we=fe&&fe.isRegExp,xe=fe&&fe.isSet,be=fe&&fe.isTypedArray;function Ae(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Pe(t,e,n,a){for(var o=-1,i=null==t?0:t.length;++o-1}function ke(t,e,n){for(var a=-1,o=null==t?0:t.length;++a-1;);return n}function tn(t,e){for(var n=t.length;n--&&ze(e,t[n],0)>-1;);return n}var en=Fe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Fe({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+re[t]}function on(t){return te.test(t)}function rn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,a){n[++e]=[a,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,o=t.length,i=0,r=[];++n",""":'"',"'":"'"}),pn=function at(wt){var xt,bt=(wt=null==wt?ue:pn.defaults(ue.Object(),wt,pn.pick(ue,ne))).Array,At=wt.Date,Pt=wt.Error,Lt=wt.Function,Ct=wt.Math,Et=wt.Object,Nt=wt.RegExp,Mt=wt.String,kt=wt.TypeError,St=bt.prototype,Ot=Lt.prototype,Bt=Et.prototype,Tt=wt["__core-js_shared__"],It=Ot.toString,Dt=Bt.hasOwnProperty,Vt=0,Gt=(xt=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+xt:"",zt=Bt.toString,Rt=It.call(Et),jt=ue._,Ht=Nt("^"+It.call(Dt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=ge?wt.Buffer:t,Ut=wt.Symbol,Ft=wt.Uint8Array,Qt=Wt?Wt.allocUnsafe:t,Zt=sn(Et.getPrototypeOf,Et),Yt=Et.create,Xt=Bt.propertyIsEnumerable,qt=St.splice,te=Ut?Ut.isConcatSpreadable:t,re=Ut?Ut.iterator:t,de=Ut?Ut.toStringTag:t,ce=function(){try{var t=hi(Et,"defineProperty");return t({},"",{}),t}catch(t){}}(),ye=wt.clearTimeout!==ue.clearTimeout&&wt.clearTimeout,he=At&&At.now!==ue.Date.now&&At.now,pe=wt.setTimeout!==ue.setTimeout&&wt.setTimeout,fe=Ct.ceil,De=Ct.floor,We=Et.getOwnPropertySymbols,Fe=Wt?Wt.isBuffer:t,fn=wt.isFinite,mn=St.join,_n=sn(Et.keys,Et),vn=Ct.max,wn=Ct.min,xn=At.now,bn=wt.parseInt,An=Ct.random,Pn=St.reverse,Ln=hi(wt,"DataView"),Cn=hi(wt,"Map"),En=hi(wt,"Promise"),Nn=hi(wt,"Set"),Mn=hi(wt,"WeakMap"),kn=hi(Et,"create"),Sn=Mn&&new Mn,On={},Bn=zi(Ln),Tn=zi(Cn),In=zi(En),Dn=zi(Nn),Vn=zi(Mn),Gn=Ut?Ut.prototype:t,zn=Gn?Gn.valueOf:t,Rn=Gn?Gn.toString:t;function jn(t){if(ns(t)&&!Fr(t)&&!(t instanceof Fn)){if(t instanceof Un)return t;if(Dt.call(t,"__wrapped__"))return Ri(t)}return new Un(t)}var Hn=function(){function e(){}return function(n){if(!es(n))return{};if(Yt)return Yt(n);e.prototype=n;var a=new e;return e.prototype=t,a}}();function Wn(){}function Un(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function Fn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=n?e:n)),e}function da(e,n,a,o,i,r){var s,l=1&n,d=2&n,c=4&n;if(a&&(s=i?a(e,o,i,r):a(e)),s!==t)return s;if(!es(e))return e;var u=Fr(e);if(u){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Dt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return So(e,s)}else{var y=fi(e),h=y==v||y==w;if(Xr(e))return Lo(e,l);if(y==A||y==g||h&&!i){if(s=d||h?{}:_i(e),!l)return d?function(t,e){return Oo(t,pi(t),e)}(e,function(t,e){return t&&Oo(e,Bs(e),t)}(s,e)):function(t,e){return Oo(t,gi(t),e)}(e,ia(s,e))}else{if(!ie[y])return i?e:{};s=function(t,e,n){var a,o=t.constructor;switch(e){case k:return Co(t);case f:case m:return new o(+t);case S:return function(t,e){var n=e?Co(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case O:case B:case T:case I:case D:case V:case G:case z:case R:return Eo(t,n);case x:return new o;case b:case E:return new o(t);case L:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new o;case N:return a=t,zn?Et(zn.call(a)):{}}}(e,y,l)}}r||(r=new Kn);var p=r.get(e);if(p)return p;r.set(e,s),ss(e)?e.forEach((function(t){s.add(da(t,n,a,t,e,r))})):as(e)&&e.forEach((function(t,o){s.set(o,da(t,n,a,o,e,r))}));var _=u?t:(c?d?ri:ii:d?Bs:Os)(e);return Le(_||e,(function(t,o){_&&(t=e[o=t]),na(s,o,da(t,n,a,o,e,r))})),s}function ca(e,n,a){var o=a.length;if(null==e)return!o;for(e=Et(e);o--;){var i=a[o],r=n[i],s=e[i];if(s===t&&!(i in e)||!r(s))return!1}return!0}function ua(n,a,o){if("function"!=typeof n)throw new kt(e);return Oi((function(){n.apply(t,o)}),a)}function ya(t,e,n,a){var o=-1,i=Me,r=!0,s=t.length,l=[],d=e.length;if(!s)return l;n&&(e=Se(e,Ke(n))),a?(i=ke,r=!1):e.length>=200&&(i=qe,r=!1,e=new Xn(e));t:for(;++o-1},Zn.prototype.set=function(t,e){var n=this.__data__,a=aa(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Qn,map:new(Cn||Zn),string:new Qn}},Yn.prototype.delete=function(t){var e=ui(this,t).delete(t);return this.size-=e?1:0,e},Yn.prototype.get=function(t){return ui(this,t).get(t)},Yn.prototype.has=function(t){return ui(this,t).has(t)},Yn.prototype.set=function(t,e){var n=ui(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,n),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Kn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Kn.prototype.get=function(t){return this.__data__.get(t)},Kn.prototype.has=function(t){return this.__data__.has(t)},Kn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Zn){var a=n.__data__;if(!Cn||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new Yn(a)}return n.set(t,e),this.size=n.size,this};var ha=Io(xa),ga=Io(ba,!0);function pa(t,e){var n=!0;return ha(t,(function(t,a,o){return n=!!e(t,a,o)})),n}function fa(e,n,a){for(var o=-1,i=e.length;++o0&&n(s)?e>1?_a(s,e-1,n,a,o):Oe(o,s):a||(o[o.length]=s)}return o}var va=Do(),wa=Do(!0);function xa(t,e){return t&&va(t,e,Os)}function ba(t,e){return t&&wa(t,e,Os)}function Aa(t,e){return Ne(e,(function(e){return qr(t[e])}))}function Pa(e,n){for(var a=0,o=(n=xo(n,e)).length;null!=e&&ae}function Na(t,e){return null!=t&&Dt.call(t,e)}function Ma(t,e){return null!=t&&e in Et(t)}function ka(e,n,a){for(var o=a?ke:Me,i=e[0].length,r=e.length,s=r,l=bt(r),d=1/0,c=[];s--;){var u=e[s];s&&n&&(u=Se(u,Ke(n))),d=wn(u.length,d),l[s]=!a&&(n||i>=120&&u.length>=120)?new Xn(s&&u):t}u=e[0];var y=-1,h=l[0];t:for(;++y=s?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}(t,e,n)}))}function Qa(t,e,n){for(var a=-1,o=e.length,i={};++a-1;)s!==t&&qt.call(s,l,1),qt.call(t,l,1);return t}function Ya(t,e){for(var n=t?e.length:0,a=n-1;n--;){var o=e[n];if(n==a||o!==i){var i=o;wi(o)?qt.call(t,o,1):ho(t,o)}}return t}function Xa(t,e){return t+De(An()*(e-t+1))}function Ka(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=De(e/2))&&(t+=t)}while(e);return n}function Ja(t,e){return Bi(Ni(t,e,ol),t+"")}function qa(t){return qn(js(t))}function $a(t,e){var n=js(t);return Di(n,la(e,0,n.length))}function to(e,n,a,o){if(!es(e))return e;for(var i=-1,r=(n=xo(n,e)).length,s=r-1,l=e;null!=l&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=bt(o);++a>>1,r=t[i];null!==r&&!ds(r)&&(n?r<=e:r=200){var d=e?null:Jo(t);if(d)return dn(d);r=!1,o=qe,l=new Xn}else l=e?[]:s;t:for(;++a=o?e:oo(e,n,a)}var Po=ye||function(t){return ue.clearTimeout(t)};function Lo(t,e){if(e)return t.slice();var n=t.length,a=Qt?Qt(n):new t.constructor(n);return t.copy(a),a}function Co(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function Eo(t,e){var n=e?Co(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function No(e,n){if(e!==n){var a=e!==t,o=null===e,i=e==e,r=ds(e),s=n!==t,l=null===n,d=n==n,c=ds(n);if(!l&&!c&&!r&&e>n||r&&s&&d&&!l&&!c||o&&s&&d||!a&&d||!i)return 1;if(!o&&!r&&!c&&e1?a[i-1]:t,s=i>2?a[2]:t;for(r=e.length>3&&"function"==typeof r?(i--,r):t,s&&xi(a[0],a[1],s)&&(r=i<3?t:r,i=1),n=Et(n);++o-1?i[r?n[s]:s]:t}}function jo(n){return oi((function(a){var o=a.length,i=o,r=Un.prototype.thru;for(n&&a.reverse();i--;){var s=a[i];if("function"!=typeof s)throw new kt(e);if(r&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(i=l?i:o;++i1&&v.reverse(),y&&c<_&&(v.length=c),this&&this!==ue&&this instanceof s&&(L=m||zo(L)),L.apply(P,v)}}function Wo(t,e){return function(n,a){return function(t,e,n,a){return xa(t,(function(t,o,i){e(a,n(t),o,i)})),a}(n,t,e(a),{})}}function Uo(e,n){return function(a,o){var i;if(a===t&&o===t)return n;if(a!==t&&(i=a),o!==t){if(i===t)return o;"string"==typeof a||"string"==typeof o?(a=uo(a),o=uo(o)):(a=co(a),o=co(o)),i=e(a,o)}return i}}function Fo(t){return oi((function(e){return e=Se(e,Ke(ci())),Ja((function(n){var a=this;return t(e,(function(t){return Ae(t,a,n)}))}))}))}function Qo(e,n){var a=(n=n===t?" ":uo(n)).length;if(a<2)return a?Ka(n,e):n;var o=Ka(n,fe(e/un(n)));return on(n)?Ao(yn(o),0,e).join(""):o.slice(0,e)}function Zo(e){return function(n,a,o){return o&&"number"!=typeof o&&xi(n,a,o)&&(a=o=t),n=gs(n),a===t?(a=n,n=0):a=gs(a),function(t,e,n,a){for(var o=-1,i=vn(fe((e-t)/(n||1)),0),r=bt(i);i--;)r[a?i:++o]=t,t+=n;return r}(n,a,o=o===t?nl))return!1;var c=r.get(e),u=r.get(n);if(c&&u)return c==n&&u==e;var y=-1,h=!0,g=2&a?new Xn:t;for(r.set(e,n),r.set(n,e);++y-1&&t%1==0&&t1?"& ":"")+e[a],e=e.join(n>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(a,function(t,e){return Le(h,(function(n){var a="_."+n[0];e&n[1]&&!Me(t,a)&&t.push(a)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(rt):[]}(a),n)))}function Ii(e){var n=0,a=0;return function(){var o=xn(),i=16-(o-a);if(a=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Di(e,n){var a=-1,o=e.length,i=o-1;for(n=n===t?o:n;++a1?e[n-1]:t;return a="function"==typeof a?(e.pop(),a):t,rr(e,a)}));function hr(t){var e=jn(t);return e.__chain__=!0,e}function gr(t,e){return e(t)}var pr=oi((function(e){var n=e.length,a=n?e[0]:0,o=this.__wrapped__,i=function(t){return sa(t,e)};return!(n>1||this.__actions__.length)&&o instanceof Fn&&wi(a)?((o=o.slice(a,+a+(n?1:0))).__actions__.push({func:gr,args:[i],thisArg:t}),new Un(o,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(i)})),fr=Bo((function(t,e,n){Dt.call(t,n)?++t[n]:ra(t,n,1)})),mr=Ro(Ui),_r=Ro(Fi);function vr(t,e){return(Fr(t)?Le:ha)(t,ci(e,3))}function wr(t,e){return(Fr(t)?Ce:ga)(t,ci(e,3))}var xr=Bo((function(t,e,n){Dt.call(t,n)?t[n].push(e):ra(t,n,[e])})),br=Ja((function(t,e,n){var a=-1,o="function"==typeof e,i=Zr(t)?bt(t.length):[];return ha(t,(function(t){i[++a]=o?Ae(e,t,n):Sa(t,e,n)})),i})),Ar=Bo((function(t,e,n){ra(t,n,e)}));function Pr(t,e){return(Fr(t)?Se:Ra)(t,ci(e,3))}var Lr=Bo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Cr=Ja((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xi(t,e[0],e[1])?e=[]:n>2&&xi(e[0],e[1],e[2])&&(e=[e[0]]),Fa(t,_a(e,1),[])})),Er=he||function(){return ue.Date.now()};function Nr(e,n,a){return n=a?t:n,n=e&&null==n?e.length:n,$o(e,s,t,t,t,t,n)}function Mr(n,a){var o;if("function"!=typeof a)throw new kt(e);return n=ps(n),function(){return--n>0&&(o=a.apply(this,arguments)),n<=1&&(a=t),o}}var kr=Ja((function(t,e,n){var a=1;if(n.length){var o=ln(n,di(kr));a|=i}return $o(t,a,e,n,o)})),Sr=Ja((function(t,e,n){var a=3;if(n.length){var o=ln(n,di(Sr));a|=i}return $o(e,a,t,n,o)}));function Or(n,a,o){var i,r,s,l,d,c,u=0,y=!1,h=!1,g=!0;if("function"!=typeof n)throw new kt(e);function p(e){var a=i,o=r;return i=r=t,u=e,l=n.apply(o,a)}function f(e){var n=e-c;return c===t||n>=a||n<0||h&&e-u>=s}function m(){var t=Er();if(f(t))return _(t);d=Oi(m,function(t){var e=a-(t-c);return h?wn(e,s-(t-u)):e}(t))}function _(e){return d=t,g&&i?p(e):(i=r=t,l)}function v(){var e=Er(),n=f(e);if(i=arguments,r=this,c=e,n){if(d===t)return function(t){return u=t,d=Oi(m,a),y?p(t):l}(c);if(h)return Po(d),d=Oi(m,a),p(c)}return d===t&&(d=Oi(m,a)),l}return a=ms(a)||0,es(o)&&(y=!!o.leading,s=(h="maxWait"in o)?vn(ms(o.maxWait)||0,a):s,g="trailing"in o?!!o.trailing:g),v.cancel=function(){d!==t&&Po(d),u=0,i=c=r=d=t},v.flush=function(){return d===t?l:_(Er())},v}var Br=Ja((function(t,e){return ua(t,1,e)})),Tr=Ja((function(t,e,n){return ua(t,ms(e)||0,n)}));function Ir(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new kt(e);var a=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=a.cache;if(i.has(o))return i.get(o);var r=t.apply(this,e);return a.cache=i.set(o,r)||i,r};return a.cache=new(Ir.Cache||Yn),a}function Dr(t){if("function"!=typeof t)throw new kt(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ir.Cache=Yn;var Vr=bo((function(t,e){var n=(e=1==e.length&&Fr(e[0])?Se(e[0],Ke(ci())):Se(_a(e,1),Ke(ci()))).length;return Ja((function(a){for(var o=-1,i=wn(a.length,n);++o=e})),Ur=Oa(function(){return arguments}())?Oa:function(t){return ns(t)&&Dt.call(t,"callee")&&!Xt.call(t,"callee")},Fr=bt.isArray,Qr=me?Ke(me):function(t){return ns(t)&&Ca(t)==k};function Zr(t){return null!=t&&ts(t.length)&&!qr(t)}function Yr(t){return ns(t)&&Zr(t)}var Xr=Fe||ml,Kr=_e?Ke(_e):function(t){return ns(t)&&Ca(t)==m};function Jr(t){if(!ns(t))return!1;var e=Ca(t);return e==_||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!is(t)}function qr(t){if(!es(t))return!1;var e=Ca(t);return e==v||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function $r(t){return"number"==typeof t&&t==ps(t)}function ts(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ns(t){return null!=t&&"object"==typeof t}var as=ve?Ke(ve):function(t){return ns(t)&&fi(t)==x};function os(t){return"number"==typeof t||ns(t)&&Ca(t)==b}function is(t){if(!ns(t)||Ca(t)!=A)return!1;var e=Zt(t);if(null===e)return!0;var n=Dt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Rt}var rs=we?Ke(we):function(t){return ns(t)&&Ca(t)==L},ss=xe?Ke(xe):function(t){return ns(t)&&fi(t)==C};function ls(t){return"string"==typeof t||!Fr(t)&&ns(t)&&Ca(t)==E}function ds(t){return"symbol"==typeof t||ns(t)&&Ca(t)==N}var cs=be?Ke(be):function(t){return ns(t)&&ts(t.length)&&!!oe[Ca(t)]},us=Yo(za),ys=Yo((function(t,e){return t<=e}));function hs(t){if(!t)return[];if(Zr(t))return ls(t)?yn(t):So(t);if(re&&t[re])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[re]());var e=fi(t);return(e==x?rn:e==C?dn:js)(t)}function gs(t){return t?(t=ms(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ps(t){var e=gs(t),n=e%1;return e==e?n?e-n:e:0}function fs(t){return t?la(ps(t),0,y):0}function ms(t){if("number"==typeof t)return t;if(ds(t))return u;if(es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Xe(t);var n=ht.test(t);return n||pt.test(t)?le(t.slice(2),n?2:8):yt.test(t)?u:+t}function _s(t){return Oo(t,Bs(t))}function vs(t){return null==t?"":uo(t)}var ws=To((function(t,e){if(Li(e)||Zr(e))Oo(e,Os(e),t);else for(var n in e)Dt.call(e,n)&&na(t,n,e[n])})),xs=To((function(t,e){Oo(e,Bs(e),t)})),bs=To((function(t,e,n,a){Oo(e,Bs(e),t,a)})),As=To((function(t,e,n,a){Oo(e,Os(e),t,a)})),Ps=oi(sa),Ls=Ja((function(e,n){e=Et(e);var a=-1,o=n.length,i=o>2?n[2]:t;for(i&&xi(n[0],n[1],i)&&(o=1);++a1),e})),Oo(t,ri(t),n),a&&(n=da(n,7,ni));for(var o=e.length;o--;)ho(n,e[o]);return n})),Vs=oi((function(t,e){return null==t?{}:function(t,e){return Qa(t,e,(function(e,n){return Ns(t,n)}))}(t,e)}));function Gs(t,e){if(null==t)return{};var n=Se(ri(t),(function(t){return[t]}));return e=ci(e),Qa(t,n,(function(t,n){return e(t,n[0])}))}var zs=qo(Os),Rs=qo(Bs);function js(t){return null==t?[]:Je(t,Os(t))}var Hs=Go((function(t,e,n){return e=e.toLowerCase(),t+(n?Ws(e):e)}));function Ws(t){return Js(vs(t).toLowerCase())}function Us(t){return(t=vs(t))&&t.replace(mt,en).replace(Jt,"")}var Fs=Go((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Qs=Go((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Zs=Vo("toLowerCase"),Ys=Go((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Xs=Go((function(t,e,n){return t+(n?" ":"")+Js(e)})),Ks=Go((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Js=Vo("toUpperCase");function qs(e,n,a){return e=vs(e),(n=a?t:n)===t?function(t){return ee.test(t)}(e)?function(t){return t.match($t)||[]}(e):function(t){return t.match(st)||[]}(e):e.match(n)||[]}var $s=Ja((function(e,n){try{return Ae(e,t,n)}catch(t){return Jr(t)?t:new Pt(t)}})),tl=oi((function(t,e){return Le(e,(function(e){e=Gi(e),ra(t,e,kr(t[e],t))})),t}));function el(t){return function(){return t}}var nl=jo(),al=jo(!0);function ol(t){return t}function il(t){return Da("function"==typeof t?t:da(t,1))}var rl=Ja((function(t,e){return function(n){return Sa(n,t,e)}})),sl=Ja((function(t,e){return function(n){return Sa(t,n,e)}}));function ll(t,e,n){var a=Os(e),o=Aa(e,a);null!=n||es(e)&&(o.length||!a.length)||(n=e,e=t,t=this,o=Aa(e,Os(e)));var i=!(es(n)&&"chain"in n&&!n.chain),r=qr(t);return Le(o,(function(n){var a=e[n];t[n]=a,r&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=So(this.__actions__)).push({func:a,args:arguments,thisArg:t}),n.__chain__=e,n}return a.apply(t,Oe([this.value()],arguments))})})),t}function dl(){}var cl=Fo(Se),ul=Fo(Ee),yl=Fo(Ie);function hl(t){return bi(t)?Ue(Gi(t)):function(t){return function(e){return Pa(e,t)}}(t)}var gl=Zo(),pl=Zo(!0);function fl(){return[]}function ml(){return!1}var _l,vl=Uo((function(t,e){return t+e}),0),wl=Ko("ceil"),xl=Uo((function(t,e){return t/e}),1),bl=Ko("floor"),Al=Uo((function(t,e){return t*e}),1),Pl=Ko("round"),Ll=Uo((function(t,e){return t-e}),0);return jn.after=function(t,n){if("function"!=typeof n)throw new kt(e);return t=ps(t),function(){if(--t<1)return n.apply(this,arguments)}},jn.ary=Nr,jn.assign=ws,jn.assignIn=xs,jn.assignInWith=bs,jn.assignWith=As,jn.at=Ps,jn.before=Mr,jn.bind=kr,jn.bindAll=tl,jn.bindKey=Sr,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fr(t)?t:[t]},jn.chain=hr,jn.chunk=function(e,n,a){n=(a?xi(e,n,a):n===t)?1:vn(ps(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var i=0,r=0,s=bt(fe(o/n));ii?0:i+a),(o=o===t||o>i?i:ps(o))<0&&(o+=i),o=a>o?0:fs(o);a>>0)?(e=vs(e))&&("string"==typeof n||null!=n&&!rs(n))&&!(n=uo(n))&&on(e)?Ao(yn(e),0,a):e.split(n,a):[]},jn.spread=function(t,n){if("function"!=typeof t)throw new kt(e);return n=null==n?0:vn(ps(n),0),Ja((function(e){var a=e[n],o=Ao(e,0,n);return a&&Oe(o,a),Ae(t,this,o)}))},jn.tail=function(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]},jn.take=function(e,n,a){return e&&e.length?oo(e,0,(n=a||n===t?1:ps(n))<0?0:n):[]},jn.takeRight=function(e,n,a){var o=null==e?0:e.length;return o?oo(e,(n=o-(n=a||n===t?1:ps(n)))<0?0:n,o):[]},jn.takeRightWhile=function(t,e){return t&&t.length?po(t,ci(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?po(t,ci(e,3)):[]},jn.tap=function(t,e){return e(t),t},jn.throttle=function(t,n,a){var o=!0,i=!0;if("function"!=typeof t)throw new kt(e);return es(a)&&(o="leading"in a?!!a.leading:o,i="trailing"in a?!!a.trailing:i),Or(t,n,{leading:o,maxWait:n,trailing:i})},jn.thru=gr,jn.toArray=hs,jn.toPairs=zs,jn.toPairsIn=Rs,jn.toPath=function(t){return Fr(t)?Se(t,Gi):ds(t)?[t]:So(Vi(vs(t)))},jn.toPlainObject=_s,jn.transform=function(t,e,n){var a=Fr(t),o=a||Xr(t)||cs(t);if(e=ci(e,4),null==n){var i=t&&t.constructor;n=o?a?new i:[]:es(t)&&qr(i)?Hn(Zt(t)):{}}return(o?Le:xa)(t,(function(t,a,o){return e(n,t,a,o)})),n},jn.unary=function(t){return Nr(t,1)},jn.union=nr,jn.unionBy=ar,jn.unionWith=or,jn.uniq=function(t){return t&&t.length?yo(t):[]},jn.uniqBy=function(t,e){return t&&t.length?yo(t,ci(e,2)):[]},jn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?yo(e,t,n):[]},jn.unset=function(t,e){return null==t||ho(t,e)},jn.unzip=ir,jn.unzipWith=rr,jn.update=function(t,e,n){return null==t?t:go(t,e,wo(n))},jn.updateWith=function(e,n,a,o){return o="function"==typeof o?o:t,null==e?e:go(e,n,wo(a),o)},jn.values=js,jn.valuesIn=function(t){return null==t?[]:Je(t,Bs(t))},jn.without=sr,jn.words=qs,jn.wrap=function(t,e){return Gr(wo(e),t)},jn.xor=lr,jn.xorBy=dr,jn.xorWith=cr,jn.zip=ur,jn.zipObject=function(t,e){return _o(t||[],e||[],na)},jn.zipObjectDeep=function(t,e){return _o(t||[],e||[],to)},jn.zipWith=yr,jn.entries=zs,jn.entriesIn=Rs,jn.extend=xs,jn.extendWith=bs,ll(jn,jn),jn.add=vl,jn.attempt=$s,jn.camelCase=Hs,jn.capitalize=Ws,jn.ceil=wl,jn.clamp=function(e,n,a){return a===t&&(a=n,n=t),a!==t&&(a=(a=ms(a))==a?a:0),n!==t&&(n=(n=ms(n))==n?n:0),la(ms(e),n,a)},jn.clone=function(t){return da(t,4)},jn.cloneDeep=function(t){return da(t,5)},jn.cloneDeepWith=function(e,n){return da(e,5,n="function"==typeof n?n:t)},jn.cloneWith=function(e,n){return da(e,4,n="function"==typeof n?n:t)},jn.conformsTo=function(t,e){return null==e||ca(t,e,Os(e))},jn.deburr=Us,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=xl,jn.endsWith=function(e,n,a){e=vs(e),n=uo(n);var o=e.length,i=a=a===t?o:la(ps(a),0,o);return(a-=n.length)>=0&&e.slice(a,i)==n},jn.eq=jr,jn.escape=function(t){return(t=vs(t))&&Z.test(t)?t.replace(F,nn):t},jn.escapeRegExp=function(t){return(t=vs(t))&&et.test(t)?t.replace(tt,"\\$&"):t},jn.every=function(e,n,a){var o=Fr(e)?Ee:pa;return a&&xi(e,n,a)&&(n=t),o(e,ci(n,3))},jn.find=mr,jn.findIndex=Ui,jn.findKey=function(t,e){return Ve(t,ci(e,3),xa)},jn.findLast=_r,jn.findLastIndex=Fi,jn.findLastKey=function(t,e){return Ve(t,ci(e,3),ba)},jn.floor=bl,jn.forEach=vr,jn.forEachRight=wr,jn.forIn=function(t,e){return null==t?t:va(t,ci(e,3),Bs)},jn.forInRight=function(t,e){return null==t?t:wa(t,ci(e,3),Bs)},jn.forOwn=function(t,e){return t&&xa(t,ci(e,3))},jn.forOwnRight=function(t,e){return t&&ba(t,ci(e,3))},jn.get=Es,jn.gt=Hr,jn.gte=Wr,jn.has=function(t,e){return null!=t&&mi(t,e,Na)},jn.hasIn=Ns,jn.head=Zi,jn.identity=ol,jn.includes=function(t,e,n,a){t=Zr(t)?t:js(t),n=n&&!a?ps(n):0;var o=t.length;return n<0&&(n=vn(o+n,0)),ls(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&ze(t,e,n)>-1},jn.indexOf=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var o=null==n?0:ps(n);return o<0&&(o=vn(a+o,0)),ze(t,e,o)},jn.inRange=function(e,n,a){return n=gs(n),a===t?(a=n,n=0):a=gs(a),function(t,e,n){return t>=wn(e,n)&&t=-9007199254740991&&t<=c},jn.isSet=ss,jn.isString=ls,jn.isSymbol=ds,jn.isTypedArray=cs,jn.isUndefined=function(e){return e===t},jn.isWeakMap=function(t){return ns(t)&&fi(t)==M},jn.isWeakSet=function(t){return ns(t)&&"[object WeakSet]"==Ca(t)},jn.join=function(t,e){return null==t?"":mn.call(t,e)},jn.kebabCase=Fs,jn.last=Ji,jn.lastIndexOf=function(e,n,a){var o=null==e?0:e.length;if(!o)return-1;var i=o;return a!==t&&(i=(i=ps(a))<0?vn(o+i,0):wn(i,o-1)),n==n?function(t,e,n){for(var a=n+1;a--;)if(t[a]===e)return a;return a}(e,n,i):Ge(e,je,i,!0)},jn.lowerCase=Qs,jn.lowerFirst=Zs,jn.lt=us,jn.lte=ys,jn.max=function(e){return e&&e.length?fa(e,ol,Ea):t},jn.maxBy=function(e,n){return e&&e.length?fa(e,ci(n,2),Ea):t},jn.mean=function(t){return He(t,ol)},jn.meanBy=function(t,e){return He(t,ci(e,2))},jn.min=function(e){return e&&e.length?fa(e,ol,za):t},jn.minBy=function(e,n){return e&&e.length?fa(e,ci(n,2),za):t},jn.stubArray=fl,jn.stubFalse=ml,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Al,jn.nth=function(e,n){return e&&e.length?Ua(e,ps(n)):t},jn.noConflict=function(){return ue._===this&&(ue._=jt),this},jn.noop=dl,jn.now=Er,jn.pad=function(t,e,n){t=vs(t);var a=(e=ps(e))?un(t):0;if(!e||a>=e)return t;var o=(e-a)/2;return Qo(De(o),n)+t+Qo(fe(o),n)},jn.padEnd=function(t,e,n){t=vs(t);var a=(e=ps(e))?un(t):0;return e&&an){var o=e;e=n,n=o}if(a||e%1||n%1){var i=An();return wn(e+i*(n-e+se("1e-"+((i+"").length-1))),n)}return Xa(e,n)},jn.reduce=function(t,e,n){var a=Fr(t)?Be:Qe,o=arguments.length<3;return a(t,ci(e,4),n,o,ha)},jn.reduceRight=function(t,e,n){var a=Fr(t)?Te:Qe,o=arguments.length<3;return a(t,ci(e,4),n,o,ga)},jn.repeat=function(e,n,a){return n=(a?xi(e,n,a):n===t)?1:ps(n),Ka(vs(e),n)},jn.replace=function(){var t=arguments,e=vs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jn.result=function(e,n,a){var o=-1,i=(n=xo(n,e)).length;for(i||(i=1,e=t);++oc)return[];var n=y,a=wn(t,y);e=ci(e),t-=y;for(var o=Ye(a,e);++n=r)return e;var l=a-un(o);if(l<1)return o;var d=s?Ao(s,0,l).join(""):e.slice(0,l);if(i===t)return d+o;if(s&&(l+=d.length-l),rs(i)){if(e.slice(l).search(i)){var c,u=d;for(i.global||(i=Nt(i.source,vs(ut.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var y=c.index;d=d.slice(0,y===t?l:y)}}else if(e.indexOf(uo(i),l)!=l){var h=d.lastIndexOf(i);h>-1&&(d=d.slice(0,h))}return d+o},jn.unescape=function(t){return(t=vs(t))&&Q.test(t)?t.replace(U,gn):t},jn.uniqueId=function(t){var e=++Vt;return vs(t)+e},jn.upperCase=Ks,jn.upperFirst=Js,jn.each=vr,jn.eachRight=wr,jn.first=Zi,ll(jn,(_l={},xa(jn,(function(t,e){Dt.call(jn.prototype,e)||(_l[e]=t)})),_l),{chain:!1}),jn.VERSION="4.17.21",Le(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jn[t].placeholder=jn})),Le(["drop","take"],(function(e,n){Fn.prototype[e]=function(a){a=a===t?1:vn(ps(a),0);var o=this.__filtered__&&!n?new Fn(this):this.clone();return o.__filtered__?o.__takeCount__=wn(a,o.__takeCount__):o.__views__.push({size:wn(a,y),type:e+(o.__dir__<0?"Right":"")}),o},Fn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Le(["filter","map","takeWhile"],(function(t,e){var n=e+1,a=1==n||3==n;Fn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ci(t,3),type:n}),e.__filtered__=e.__filtered__||a,e}})),Le(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Fn.prototype[t]=function(){return this[n](1).value()[0]}})),Le(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Fn.prototype[t]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(ol)},Fn.prototype.find=function(t){return this.filter(t).head()},Fn.prototype.findLast=function(t){return this.reverse().find(t)},Fn.prototype.invokeMap=Ja((function(t,e){return"function"==typeof t?new Fn(this):this.map((function(n){return Sa(n,t,e)}))})),Fn.prototype.reject=function(t){return this.filter(Dr(ci(t)))},Fn.prototype.slice=function(e,n){e=ps(e);var a=this;return a.__filtered__&&(e>0||n<0)?new Fn(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),n!==t&&(a=(n=ps(n))<0?a.dropRight(-n):a.take(n-e)),a)},Fn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fn.prototype.toArray=function(){return this.take(y)},xa(Fn.prototype,(function(e,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=jn[o?"take"+("last"==n?"Right":""):n],r=o||/^find/.test(n);i&&(jn.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,l=n instanceof Fn,d=s[0],c=l||Fr(n),u=function(t){var e=i.apply(jn,Oe([t],s));return o&&y?e[0]:e};c&&a&&"function"==typeof d&&1!=d.length&&(l=c=!1);var y=this.__chain__,h=!!this.__actions__.length,g=r&&!y,p=l&&!h;if(!r&&c){n=p?n:new Fn(this);var f=e.apply(n,s);return f.__actions__.push({func:gr,args:[u],thisArg:t}),new Un(f,y)}return g&&p?e.apply(this,s):(f=this.thru(u),g?o?f.value()[0]:f.value():f)})})),Le(["pop","push","shift","sort","splice","unshift"],(function(t){var e=St[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",a=/^(?:pop|shift)$/.test(t);jn.prototype[t]=function(){var t=arguments;if(a&&!this.__chain__){var o=this.value();return e.apply(Fr(o)?o:[],t)}return this[n]((function(n){return e.apply(Fr(n)?n:[],t)}))}})),xa(Fn.prototype,(function(t,e){var n=jn[e];if(n){var a=n.name+"";Dt.call(On,a)||(On[a]=[]),On[a].push({name:e,func:n})}})),On[Ho(t,2).name]=[{name:"wrapper",func:t}],Fn.prototype.clone=function(){var t=new Fn(this.__wrapped__);return t.__actions__=So(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=So(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=So(this.__views__),t},Fn.prototype.reverse=function(){if(this.__filtered__){var t=new Fn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Fr(t),a=e<0,o=n?t.length:0,i=function(t,e,n){for(var a=-1,o=n.length;++a=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var n,a=this;a instanceof Wn;){var o=Ri(a);o.__index__=0,o.__values__=t,n?i.__wrapped__=o:n=o;var i=o;a=a.__wrapped__}return i.__wrapped__=e,n},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Fn){var n=e;return this.__actions__.length&&(n=new Fn(this)),(n=n.reverse()).__actions__.push({func:gr,args:[er],thisArg:t}),new Un(n,this.__chain__)}return this.thru(er)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,re&&(jn.prototype[re]=function(){return this}),jn}();he?((he.exports=pn)._=pn,ye._=pn):ue._=pn}.call(ao.exports)),ao.exports);let co=class extends rt{constructor(){super(...arguments),this._computeLabelCallback=t=>Ee("config.".concat(t.name))??t.name}setConfig(t){this._config={...this._config,...t}}render(){return this._config&&this.hass?H(so||(so=ht(["\n\t\t\t\n\t\t"])),this.hass,this._config,this._computeLabelCallback.bind(this),[{type:"expandable",title:this._title("title"),schema:[{type:"grid",schema:[{name:"title",selector:{text:{}}},{name:"title_colour",selector:{color_rgb:{}}},{name:"title_size",selector:{text:{}}}]}]},{name:"cardstyle",selector:{select:{options:Object.values(mt).map((t=>({label:lo.capitalize(t),value:t})))}}},{type:"expandable",title:this._title("general"),schema:[{type:"grid",schema:[{name:"large_font",selector:{boolean:{}}},{name:"wide",selector:{boolean:{}}},{name:"card_height",selector:{text:{}}},{name:"card_width",selector:{text:{}}},{name:"show_solar",selector:{boolean:{}}},{name:"show_battery",selector:{boolean:{}}},{name:"show_grid",selector:{boolean:{}}},{name:"decimal_places",selector:{number:{}}},{name:"decimal_places_energy",selector:{number:{}}},{name:"dynamic_line_width",selector:{boolean:{}}},{name:"max_line_width",selector:{number:{}}},{name:"min_line_width",selector:{number:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{type:"grid",schema:[{name:"card_height",selector:{entity:{}}},{name:"card_width",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("inverter"),schema:[{name:"inverter",type:"grid",schema:[{name:"three_phase",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"model",selector:{select:{options:Object.values(ft).map((t=>({label:lo.capitalize(t),value:t})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(_t).map((t=>({label:lo.capitalize(t),value:t})))}}},{name:"colour",selector:{color_rgb:{}}},{name:"navigate",selector:{text:{}}}]}]},{type:"expandable",title:this._title("solar"),schema:[{name:"solar",type:"grid",schema:[{name:"mppts",selector:{number:{min:1,max:4}}},{name:"show_daily",selector:{boolean:{}}},{name:"pv1_name",selector:{text:{}}},{name:"pv2_name",selector:{text:{}}},{name:"pv3_name",selector:{text:{}}},{name:"pv4_name",selector:{text:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"display_mode",selector:{number:{mode:"box",min:1,max:3}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"pv1_max_power",selector:{number:{}}},{name:"pv2_max_power",selector:{number:{}}},{name:"pv3_max_power",selector:{number:{}}},{name:"pv4_max_power",selector:{number:{}}},{name:"efficiency",selector:{number:{mode:"box",min:0,max:3}}},{name:"off_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"solar",type:"grid",schema:[{name:"max_power",selector:{entity:{}}},{name:"pv1_max_power",selector:{entity:{}}},{name:"pv2_max_power",selector:{entity:{}}},{name:"pv3_max_power",selector:{entity:{}}},{name:"pv4_max_power",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("battery"),schema:[{name:"battery",type:"grid",schema:[{name:"count",selector:{number:{mode:"box",min:1,max:2}}},{name:"show_daily",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"path_threshold",selector:{number:{}}}]},{type:"expandable",title:this._title("bat1"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"shutdown_soc_offgrid",selector:{number:{mode:"box",min:0,max:100}}},{name:"soc_end_of_charge",selector:{number:{mode:"box",min:80,max:100}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"animate",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"remaining_energy_to_shutdown",selector:{boolean:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"soc_end_of_charge",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("bat2"),schema:[{name:"battery2",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"shutdown_soc_offgrid",selector:{number:{mode:"box",min:0,max:100}}},{name:"soc_end_of_charge",selector:{number:{mode:"box",min:80,max:100}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"animate",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"remaining_energy_to_shutdown",selector:{boolean:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"battery2",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"soc_end_of_charge",selector:{entity:{}}}]}]}]}]},{type:"expandable",title:this._title("load"),schema:[{name:"load",type:"grid",schema:[{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"off_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"dynamic_icon",selector:{boolean:{}}},{name:"invert_load",selector:{boolean:{}}},{name:"essential_name",selector:{text:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:6}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"load4_name",selector:{text:{}}},{name:"load4_icon",selector:{icon:{}}},{name:"load5_name",selector:{text:{}}},{name:"load5_icon",selector:{icon:{}}},{name:"load6_name",selector:{text:{}}},{name:"load6_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"off_threshold",selector:{number:{}}},{name:"path_threshold",selector:{number:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}},{name:"label_daily_load",selector:{text:{}}}]},{type:"expandable",title:this._title("aux"),schema:[{name:"load",type:"grid",schema:[{name:"show_aux",selector:{boolean:{}}},{name:"aux_name",selector:{text:{}}},{name:"aux_daily_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_dynamic_colour",selector:{boolean:{}}},{name:"aux_colour",selector:{color_rgb:{}}},{name:"aux_off_colour",selector:{color_rgb:{}}},{name:"aux_loads",selector:{number:{mode:"box",min:0,max:2}}},{name:"aux_load1_name",selector:{text:{}}},{name:"aux_load1_icon",selector:{icon:{}}},{name:"aux_load2_name",selector:{text:{}}},{name:"aux_load2_icon",selector:{icon:{}}},{name:"show_daily_aux",selector:{boolean:{}}}]}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"load",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"load4_icon",selector:{entity:{}}},{name:"aux_load1_icon",selector:{entity:{}}},{name:"aux_load2_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("grid"),schema:[{name:"grid",type:"grid",schema:[{name:"show_daily_buy",selector:{boolean:{}}},{name:"show_daily_sell",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_grid",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"no_grid_colour",selector:{color_rgb:{}}},{name:"export_colour",selector:{color_rgb:{}}},{name:"grid_off_colour",selector:{color_rgb:{}}},{name:"grid_name",selector:{text:{}}},{name:"label_daily_grid_buy",selector:{text:{}}},{name:"label_daily_grid_sell",selector:{text:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"energy_cost_decimals",selector:{number:{mode:"box",min:0,max:3}}},{name:"show_nonessential",selector:{boolean:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:3}}},{name:"nonessential_name",selector:{text:{}}},{name:"nonessential_icon",selector:{icon:{}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}},{name:"off_threshold",selector:{number:{}}},{name:"import_icon",selector:{icon:{}}},{name:"export_icon",selector:{icon:{}}},{name:"disconnected_icon",selector:{icon:{}}},{name:"navigate",selector:{text:{}}},{name:"invert_flow",selector:{boolean:{}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"grid",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}},{name:"import_icon",selector:{entity:{}}},{name:"export_icon",selector:{entity:{}}},{name:"disconnected_icon",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("entities"),schema:[{type:"expandable",title:this._title("sol"),schema:[{name:"entities",type:"grid",schema:[{name:"day_pv_energy_108",selector:{entity:{device_class:Ve.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Ve.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Ve.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Ve.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Ve.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Ve.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Ve.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Ve.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Ve.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Ve.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Ve.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Ve.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Ve.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"day_battery_charge_70",selector:{entity:{device_class:Ve.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Ve.ENERGY}}}]},{type:"expandable",title:this._title("bat1"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Ve.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Ve.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Ve.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Ve.BATTERY}}},{name:"battery_rated_capacity",selector:{entity:{}}},{name:"battery_soh",selector:{entity:{}}},{name:"battery_current_direction",selector:{entity:{}}},{name:"battery_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("bat2"),schema:[{name:"entities",type:"grid",schema:[{name:"battery2_power_190",selector:{entity:{device_class:Ve.POWER}}},{name:"battery2_current_191",selector:{entity:{device_class:Ve.CURRENT}}},{name:"battery2_temp_182",selector:{entity:{device_class:Ve.TEMPERATURE}}},{name:"battery2_voltage_183",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"battery2_soc_184",selector:{entity:{device_class:Ve.BATTERY}}},{name:"battery2_rated_capacity",selector:{entity:{}}},{name:"battery2_soh",selector:{entity:{}}},{name:"battery2_current_direction",selector:{entity:{}}},{name:"battery2_status",selector:{entity:{}}}]}]}]},{type:"expandable",title:this._title("inv"),schema:[{name:"entities",type:"grid",schema:[{name:"inverter_status_59",selector:{entity:{}}},{name:"use_timer_248",selector:{entity:{}}},{name:"priority_load_243",selector:{entity:{}}},{name:"inverter_voltage_154",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Ve.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Ve.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Ve.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Ve.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Ve.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Ve.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Ve.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Ve.TEMPERATURE}}},{name:"prog1_time",selector:{entity:{}}},{name:"prog1_capacity",selector:{entity:{}}},{name:"prog1_charge",selector:{entity:{}}},{name:"prog2_time",selector:{entity:{}}},{name:"prog2_capacity",selector:{entity:{}}},{name:"prog2_charge",selector:{entity:{}}},{name:"prog3_time",selector:{entity:{}}},{name:"prog3_capacity",selector:{entity:{}}},{name:"prog3_charge",selector:{entity:{}}},{name:"prog4_time",selector:{entity:{}}},{name:"prog4_capacity",selector:{entity:{}}},{name:"prog4_charge",selector:{entity:{}}},{name:"prog5_time",selector:{entity:{}}},{name:"prog5_capacity",selector:{entity:{}}},{name:"prog5_charge",selector:{entity:{}}},{name:"prog6_time",selector:{entity:{}}},{name:"prog6_capacity",selector:{entity:{}}},{name:"prog6_charge",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("ld"),schema:[{name:"entities",type:"grid",schema:[{name:"day_load_energy_84",selector:{entity:{device_class:Ve.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Ve.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load5",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load6",selector:{entity:{device_class:Ve.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"essential_load3_extra",selector:{entity:{}}},{name:"essential_load4_extra",selector:{entity:{}}},{name:"essential_load5_extra",selector:{entity:{}}},{name:"essential_load6_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:Ve.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Ve.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Ve.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Ve.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Ve.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Ve.POWER}}},{name:"aux_load1_extra",selector:{entity:{}}},{name:"aux_load2_extra",selector:{entity:{}}},{name:"aux_connected_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("gri"),schema:[{name:"entities",type:"grid",schema:[{name:"day_grid_import_76",selector:{entity:{device_class:Ve.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Ve.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Ve.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Ve.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Ve.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Ve.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Ve.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Ve.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Ve.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Ve.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Ve.POWER}}},{name:"non_essential_load1_extra",selector:{entity:{}}},{name:"non_essential_load2_extra",selector:{entity:{}}},{name:"non_essential_load3_extra",selector:{entity:{}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}},{name:"max_sell_power",selector:{entity:{device_class:Ve.POWER}}}]}]}]}],this._valueChanged.bind(this)):H(ro||(ro=ht([""])))}_title(t){return Ee("config.cat_title.".concat(t))??t}_valueChanged(t){Je(this,"config-changed",{config:t.detail.value})}};t([ut()],co.prototype,"hass",void 0),t([ut()],co.prototype,"_config",void 0),t([ut()],co.prototype,"lovelace",void 0),co=t([lt(De)],co);var uo=Object.freeze({__proto__:null,get SunSynkCardEditor(){return co}});export{eo as SunsynkPowerFlowCard};
diff --git a/package.json b/package.json
index d2d1fe97..46631499 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sunsynk-power-flow-card",
- "version": "6.2.0",
+ "version": "6.2.1",
"description": "A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.",
"main": "sunsynk-power-flow-card.js",
"scripts": {
diff --git a/src/helpers/utils.ts b/src/helpers/utils.ts
index af9985e7..2742b8b5 100644
--- a/src/helpers/utils.ts
+++ b/src/helpers/utils.ts
@@ -125,7 +125,7 @@ export class Utils {
if (Utils.isPopupOpen) {
Utils.isPopupOpen = false;
window.removeEventListener('popstate', closePopup);
- history.back(); // Optionally close the popup with history.back() if needed
+ //history.back(); // Optionally close the popup with history.back() if needed
}
};