diff --git a/dist/sunsynk-power-flow-card.js b/dist/sunsynk-power-flow-card.js index c827bd91..f248deb1 100644 --- a/dist/sunsynk-power-flow-card.js +++ b/dist/sunsynk-power-flow-card.js @@ -9,7 +9,7 @@ const t=globalThis,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */,{is:s,defineProperty:l,getOwnPropertyDescriptor:d,getOwnPropertyNames:c,getOwnPropertySymbols:u,getPrototypeOf:y}=Object,p=globalThis,h=p.trustedTypes,g=h?h.emptyScript:"",f=p.reactiveElementPolyfillSupport,m=(e,t)=>e,_={toAttribute(e,t){switch(t){case Boolean:e=e?g: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}},v=(e,t)=>!s(e,t),w={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:v};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=w){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)??w}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const e=y(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:_).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:_;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??v)(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:h}=Object,y=globalThis,p=y.trustedTypes,g=p?p.emptyScript:"",f=y.reactiveElementPolyfillSupport,m=(e,t)=>e,_={toAttribute(e,t){switch(t){case Boolean:e=e?g: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}},v=(e,t)=>!s(e,t),w={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),y.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=w){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)??w}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:_).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:_;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??v)(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}),(y.reactiveElementVersions??=[]).push("2.0.4"); /** * @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 ye(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 he;const ge=((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)})(he||(he=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,_e;!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"}(_e||(_e={}));var ve={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",pv5_name:"PV5",pv6_name:"PV6",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"},we={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",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",pv5_name:"PV5 Navn",pv6_name:"PV6 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"}},be={common:ve,errors:we,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",pv5_name:"PV5",pv6_name:"PV6",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Ce={common:Ae,errors:Pe,config:Le},Ee={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",pv5_name:"PV5",pv6_name:"PV6",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",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},ke={common:Ee,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",pv5_name:"PV5",pv6_name:"PV6",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"},Be={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Te={common:Se,errors:Oe,config:Be},Ie={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",pv5_name:"PV5",pv6_name:"PV6",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"},Ve={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"},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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Ge={common:Ie,errors:Ve,config:De},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",pv5_name:"PV5",pv6_name:"PV6",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"},Re={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é"},je={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},He={common:ze,errors:Re,config:je},We={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",pv5_name:"PV5",pv6_name:"PV6",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"},Ue={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"},Fe={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Qe={common:We,errors:Ue,config:Fe},Ze={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",pv5_name:"PV5",pv6_name:"PV6",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 Макс. Мощность",pv5_max_power:"PV5 Макс. Мощность",pv6_max_power:"PV6 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",pv5_name:"PV5 Название",pv6_name:"PV6 Название",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"}},Ke={common:Ze,errors:Ye,config:Xe},Je={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",pv5_name:"PV5",pv6_name:"PV6",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",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},et={common:Je,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",pv5_name:"PV5",pv6_name:"PV6",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},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",pv5_name:"PV5",pv6_name:"PV6",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",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",pv5_max_power:"Màxima Potència PV5",pv6_max_power:"Màxima Potència PV6",pv1_name:"Nom PV1",pv2_name:"Nom PV2",pv3_name:"Nom PV3",pv4_name:"Nom PV4",pv5_name:"Nom PV5",pv6_name:"Nom PV6",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"}},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",pv5_name:"PV5",pv6_name:"PV6",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},yt={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",pv5_name:"PFV5",pv6_name:"PFV6",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"},ht={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"},gt={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},ft={common:pt,errors:ht,config:gt},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",pv5_name:"PV5",pv6_name:"PV6",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"},_t={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"},vt={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",pv5_max_power:"PV5 Max Effekt",pv6_max_power:"PV6 Max Effekt",pv1_name:"PV1 Namn",pv2_name:"PV2 Namn",pv3_name:"PV3 Namn",pv4_name:"PV4 Namn",pv5_name:"PV5 Namn",pv6_name:"PV6 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"}},wt={common:mt,errors:_t,config:vt},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",pv5_name:"PV5",pv6_name:"PV6",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 Макс. Потужність",pv5_max_power:"PV5 Макс. Потужність",pv6_max_power:"PV6 Макс. Потужність",pv1_name:"PV1 Назва",pv2_name:"PV2 Назва",pv3_name:"PV3 Назва",pv4_name:"PV4 Назва",pv5_name:"PV4 Назва",pv6_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"}},Pt={common:xt,errors:bt,config:At};const Lt={hass:null},Ct={da:Object.freeze({__proto__:null,common:ve,config:xe,default:be,errors:we}),de:Object.freeze({__proto__:null,common:Ae,config:Le,default:Ce,errors:Pe}),en:Object.freeze({__proto__:null,common:Ee,config:Me,default:ke,errors:Ne}),es:Object.freeze({__proto__:null,common:Se,config:Be,default:Te,errors:Oe}),et:Object.freeze({__proto__:null,common:Ie,config:De,default:Ge,errors:Ve}),fr:Object.freeze({__proto__:null,common:ze,config:je,default:He,errors:Re}),nl:Object.freeze({__proto__:null,common:We,config:Fe,default:Qe,errors:Ue}),ru:Object.freeze({__proto__:null,common:Ze,config:Xe,default:Ke,errors:Ye}),cs:Object.freeze({__proto__:null,common:Je,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:yt,errors:ct}),pt_BR:Object.freeze({__proto__:null,common:pt,config:gt,default:ft,errors:ht}),sv:Object.freeze({__proto__:null,common:mt,config:vt,default:wt,errors:_t}),uk:Object.freeze({__proto__:null,common:xt,config:At,default:Pt,errors:bt})};function Et(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]),Ct[o])}catch(t){i=e.split(".").reduce(((e,t)=>e[t]),Ct.en)}return void 0===i&&(i=e.split(".").reduce(((e,t)=>e[t]),Ct.en)),""!==t&&""!==n&&(i=i.replace(t,n)),i}var Nt={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:fe.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:Et("common.pv1_name"),pv2_name:Et("common.pv2_name"),pv3_name:Et("common.pv3_name"),pv4_name:Et("common.pv4_name"),pv5_name:Et("common.pv5_name"),pv6_name:Et("common.pv6_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:Et("common.aux_name"),aux_daily_name:Et("common.daily_aux"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:Et("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:Et("common.daily_load")},grid:{colour:"#5490c2",grid_name:Et("common.grid_name"),label_daily_grid_buy:Et("common.daily_grid_buy"),label_daily_grid_sell:Et("common.daily_grid_sell"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:Et("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,5,6],kt=[0,1,2,3],St=[!0,!1],Ot=[!0,!1],Bt=[0,1,2],Tt=["off","0","off-grid","off grid","offgrid"],It=["on","1","on-grid","on grid","ongrid"],Vt="sunsynk-content-card-editor";var Dt,Gt,zt,Rt,jt;!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"}(Dt||(Dt={})),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"}(Rt||(Rt={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(jt||(jt={}));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 Wt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft,Qt={exports:{}};var Zt,Yt,Xt=(Ft||(Ft=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 Wt&&Wt&&Wt.Object===Object&&Wt,y="object"==typeof self&&self&&self.Object===Object&&self,p=u||y||Function("return this")(),h=t&&!t.nodeType&&t,g=h&&e&&!e.nodeType&&e,f=g&&g.exports===h,m=f&&u.process,_=function(){try{var e=g&&g.require&&g.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(e){}}(),v=_&&_.isTypedArray,w=Array.prototype,x=Function.prototype,b=Object.prototype,A=p["__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?p.Buffer:void 0,S=p.Symbol,O=p.Uint8Array;k&&k.allocUnsafe;var B,T,I=(B=Object.getPrototypeOf,T=Object,function(e){return B(T(e))}),V=Object.create,D=b.propertyIsEnumerable,G=w.splice,z=S?S.toStringTag:void 0,R=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),j=k?k.isBuffer:void 0,H=Math.max,W=Date.now,U=ue(p,"Map"),F=ue(Object,"create"),Q=function(){function e(){}return function(t){if(!Ae(t))return{};if(V)return V(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(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 Z,map:new(U||Y),string:new Z}},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},K.prototype.clear=function(){this.__data__=new Y,this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var a=n.__data__;if(!U||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=E.call(e);return a&&(t?e[z]=n:delete e[z]),o}(e):function(e){return E.call(e)}(e)}function oe(e){return Pe(e)&&ae(e)==o}function ie(e){return!(!Ae(e)||function(e){return!!C&&C 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 K),Ae(i))!function(e,t,n,a,o,i,s){var l=he(e,n),d=he(t,n),c=s.get(d);if(c)q(e,n,c);else{var u,y=i?i(l,d,n+"",e,t,s):void 0,p=void 0===y;if(p){var h=_e(d),g=!h&&we(d),f=!h&&!g&&Le(d);y=d,h||g||f?_e(l)?y=l:Pe(u=l)&&ve(u)?y=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")&&!D.call(e,"callee")},_e=Array.isArray;function ve(e){return null!=e&&be(e.length)&&!xe(e)}var we=j||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=v?function(e){return function(t){return e(t)}}(v):function(e){return Pe(e)&&be(e.length)&&!!d[ae(e)]};function Ce(e){return ve(e)?J(e):re(e)}var Ee,Ne=(Ee=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=Ee.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?ve(n)&&ye(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===zt.WATT_HOUR&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").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))};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),Jt(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",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",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",hn="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",gn="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,Vn,Dn,Gn,zn,Rn,jn,Hn,Wn,Un,Fn,Qn,Zn,Yn,Xn,Kn,Jn,qn,$n,ea,ta;var na,aa,oa,ia,ra,sa,la,da,ca,ua,ya,pa,ha,ga,fa,ma,_a,va,wa,xa,ba,Aa,Pa,La,Ca,Ea,Na;class Ma{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 eo(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(Et("common.version"),": ").concat("6.3.0"," "),"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 to=class extends re{constructor(){super(...arguments),this.durationPrev={},this.durationCur={}}static get styles(){return ge}static async getConfigElement(){return await Promise.resolve().then((function(){return uo})),document.createElement(Vt)}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_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"),p=this.getEntity("entities.inverter_status_59",{state:""}),h=this.getEntity("entities.inverter_power_175"),g=this.getEntity("entities.priority_load_243",{state:e.entities.priority_load_243?.toString()??"false"}),f=this.getEntity("entities.use_timer_248",{state:e.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:e.battery.shutdown_soc?.toString()??""}),B=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),T=this.getEntity("entities.battery_soh",{state:""}),I=this.getEntity("battery.soc_end_of_charge",{state:e.battery.soc_end_of_charge?.toString()??""}),V=this.getEntity("entities.battery2_voltage_183"),D=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:e.battery2.shutdown_soc?.toString()??""}),Z=this.getEntity("battery2.shutdown_soc_offgrid",{state:e.battery2.shutdown_soc_offgrid?.toString()??""}),Y=this.getEntity("entities.battery2_soh",{state:""}),X=this.getEntity("battery2.soc_end_of_charge",{state:e.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"),ee=this.getEntity("entities.non_essential_load2"),te=this.getEntity("entities.non_essential_load3"),ne=this.getEntity("entities.non_essential_load1_extra"),ae=this.getEntity("entities.non_essential_load2_extra"),oe=this.getEntity("entities.non_essential_load3_extra"),ie=this.getEntity("entities.essential_load1"),re=this.getEntity("entities.essential_load2"),se=this.getEntity("entities.essential_load3"),le=this.getEntity("entities.essential_load4"),de=this.getEntity("entities.essential_load5"),ce=this.getEntity("entities.essential_load6"),ue=this.getEntity("entities.aux_connected_status",{state:"on"}),ye=this.getEntity("entities.aux_load1"),he=this.getEntity("entities.aux_load2"),ge=this.getEntity("entities.essential_load1_extra"),me=this.getEntity("entities.essential_load2_extra"),ve=this.getEntity("entities.essential_load3_extra"),we=this.getEntity("entities.essential_load4_extra"),xe=this.getEntity("entities.essential_load5_extra"),be=this.getEntity("entities.essential_load6_extra"),Ae=this.getEntity("entities.load_power_L1"),Pe=this.getEntity("entities.load_power_L2"),Le=this.getEntity("entities.load_power_L3"),Ce=this.getEntity("entities.aux_load1_extra"),Ee=this.getEntity("entities.aux_load2_extra"),Ne=this.getEntity("entities.grid_ct_power_172"),Me=this.getEntity("entities.grid_ct_power_L2"),ke=this.getEntity("entities.grid_ct_power_L3"),Se=this.getEntity("entities.grid_ct_power_total"),Oe=this.getEntity("entities.grid_connected_status_194",{state:"on"}),Be=this.getEntity("entities.grid_power_169"),Te=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),Ie=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),Ve=this.getEntity("entities.grid_voltage",null),De=this.getEntity("entities.prepaid_units"),Ge=this.getEntity("entities.max_sell_power"),ze=this.getEntity("entities.pv1_voltage_109"),Re=this.getEntity("entities.pv1_current_110"),je=this.getEntity("entities.pv2_voltage_111"),He=this.getEntity("entities.pv2_current_112"),We=this.getEntity("entities.pv3_voltage_113"),Ue=this.getEntity("entities.pv3_current_114"),Fe=this.getEntity("entities.pv4_voltage_115"),Qe=this.getEntity("entities.pv4_current_116"),Ze=this.getEntity("entities.pv5_voltage"),Ye=this.getEntity("entities.pv5_current"),Xe=this.getEntity("entities.pv6_voltage"),Ke=this.getEntity("entities.pv6_current"),Je=this.getEntity("entities.pv1_power_186"),qe=this.getEntity("entities.pv2_power_187"),$e=this.getEntity("entities.pv3_power_188"),et=this.getEntity("entities.pv4_power_189"),tt=this.getEntity("entities.pv5_power"),nt=this.getEntity("entities.pv6_power"),at=this.getEntity("entities.remaining_solar"),ot=this.getEntity("entities.solar_sell_247",{state:"undefined"}),it=this.getEntity("entities.pv_total"),rt=this.getEntity("entities.total_pv_generation"),{invert_aux:st}=e.load,lt=J.toPower(st),{invert_grid:dt}=e.grid,ct=Ne.toPower(dt),ut=Me.toPower(dt),yt=ke.toPower(dt),pt=e.entities?.grid_ct_power_total?Se.toPower(dt):ct+ut+yt,ht=e.inverter.three_phase?pt:ct,gt=Ve.isNaN()?null:Ve.toNum(0),ft=k.isNaN()?null:k.toNum(0),mt=U.isNaN()?null:U.toNum(0),_t=e.inverter?.modern,vt=e.decimal_places,wt=e.decimal_places_energy,xt=this.colourConvert(e.load?.colour),bt=this.calculateAuxLoadColour(J.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,At=this.colourConvert(e.load?.aux_off_colour||bt),Pt=this.calculateAuxLoadColour(ye.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Ct=this.calculateAuxLoadColour(he.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Nt=this.calculateEssentialLoadColour(ie.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Vt=this.calculateEssentialLoadColour(re.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Dt=this.calculateEssentialLoadColour(se.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Ht=this.calculateEssentialLoadColour(le.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Wt=this.calculateEssentialLoadColour(de.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Ut=this.calculateEssentialLoadColour(ce.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt;e.title_colour=this.colourConvert(e.title_colour);const Ft=e.load?.show_daily,Qt=e.grid?.show_nonessential;let Zt=e.entities?.grid_connected_status_194?Oe.state:"on";It.includes(Zt.toLowerCase())||Tt.includes(Zt.toLowerCase())||(Zt="on");const Yt=e.entities?.aux_connected_status?ue.state:"on",Xt=e.entities?.load_frequency_192?u.toNum(2):0,Kt=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?c.toNum(0):c.toNum(1):0,Jt=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",Ma=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?w.toNum(0):w.toNum(1):"",ka=e.entities?.inverter_current_164?y.toNum(1):0,Sa=e.entities?.inverter_current_L2?x.toNum(1):"",Oa=e.entities?.inverter_current_L3?b.toNum(1):"",Ba=e.entities?.battery_voltage_183?P.toNum(1):0,Ta=e.entities?.battery2_voltage_183?V.toNum(1):0,Ia=e.entities?.inverter_power_175?h.toPower():0,Va=e.entities?.grid_power_169?Be.toPower():0,{invert_load:Da}=e.load,Ga=e.entities?.load_power_L1?Ae.toPower(Da):"",za=e.entities?.load_power_L2?Pe.toPower(Da):"",Ra=e.entities?.load_power_L3?Le.toPower(Da):"",ja=this.colourConvert(e.grid?.colour),Ha=this.colourConvert(e.grid?.export_colour||ja),Wa=this.colourConvert(e.grid?.no_grid_colour||ja);let Ua;switch(!0){case ht<-qt.toNum(e.grid?.off_threshold,0):Ua=Ha;break;case ht>=-qt.toNum(e.grid?.off_threshold,0)&&ht<=qt.toNum(e.grid?.off_threshold,0):Ua=Wa;break;default:Ua=ja}const Fa=Math.abs($.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Ua:"grey",Qa=Math.abs(ee.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Ua:"grey",Za=Math.abs(te.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Ua:"grey",Ya=this.colourConvert(e.grid?.grid_off_colour||Ua);let Xa=e.grid?.additional_loads;kt.includes(Xa)||(Xa=0),e.solar;const Ka=e.grid?.show_daily_buy,Ja=e.grid?.show_daily_sell,eo=this.colourConvert(e.battery?.colour),to=this.colourConvert(e.battery?.charge_colour||eo),no=this.colourConvert(e.battery2?.colour),ao=this.colourConvert(e.battery2?.charge_colour||no),oo=e.battery?.show_daily,io=e.solar?.show_daily;let ro=e.load?.show_aux;Ot.includes(ro)||(ro=!1);const so=e.load?.show_daily_aux;let lo=e.load?.additional_loads;(!Mt.includes(lo)||this.isFullCard&&[3,4,5,6].includes(lo)&&ro||this.isFullCard&&3===lo||!e.wide&&lo>=5)&&(lo=0);let co=e.load?.aux_loads;Bt.includes(co)||(co=0);const uo=e.load?.aux_type,yo=this.getEntity("load.load1_icon",{state:e.load?.load1_icon?.toString()??""}).state,po=this.getEntity("load.load2_icon",{state:e.load?.load2_icon?.toString()??""}).state,ho=this.getEntity("load.load3_icon",{state:e.load?.load3_icon?.toString()??""}).state,go=this.getEntity("load.load4_icon",{state:e.load?.load4_icon?.toString()??""}).state,fo=this.getEntity("load.load5_icon",{state:e.load?.load5_icon?.toString()??""}).state,mo=this.getEntity("load.load6_icon",{state:e.load?.load6_icon?.toString()??""}).state,_o=this.getEntity("load.aux_load1_icon",{state:e.load?.aux_load1_icon?.toString()??""}).state,vo=this.getEntity("load.aux_load2_icon",{state:e.load?.aux_load2_icon?.toString()??""}).state,wo=this.getEntity("grid.nonessential_icon",{state:e.grid?.nonessential_icon?.toString()??""}).state,xo=this.getEntity("grid.load1_icon",{state:e.grid?.load1_icon?.toString()??""}).state,bo=this.getEntity("grid.load2_icon",{state:e.grid?.load2_icon?.toString()??""}).state,Ao=this.getEntity("grid.load3_icon",{state:e.grid?.load3_icon?.toString()??""}).state,Po=this.getEntity("grid.import_icon",{state:e.grid?.import_icon?.toString()??""}).state,Lo=this.getEntity("grid.disconnected_icon",{state:e.grid?.disconnected_icon?.toString()??""}).state,Co=this.getEntity("grid.export_icon",{state:e.grid?.export_icon?.toString()??""}).state,Eo=!!e.entities.remaining_solar&&qt.convertValueNew(at.state,at.attributes?.unit_of_measurement,vt),No=!!e.entities.total_pv_generation&&qt.convertValueNew(rt.state,rt.attributes?.unit_of_measurement,2),Mo=e.large_font,ko=this.colourConvert(e.inverter?.colour),So=e.inverter?.autarky,Oo=!!e.entities.use_timer_248&&f.state,Bo=!!e.entities.priority_load_243&&g.state;let To=C.toPower(e.battery?.invert_power),Io=G.toPower(e.battery2?.invert_power);const Vo=this.getEntity("card_height",{state:e.card_height?.toString()??""}).state,Do=this.getEntity("card_width",{state:e.card_width?.toString()??""}).state,Go=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,zo=ht>=0?Te.toNum(Go):Ie.toNum(Go);let Ro=fe.Sunsynk;Object.values(fe).includes(e.inverter.model)&&(Ro=e.inverter.model);let jo="";const Ho=qa.getInstance(Ro);_t||(jo=Ho.image);let Wo=!1;this.isCompactCard&&(Wo=!0);const Uo=Je.toPower(),Fo=qe.toPower(),Qo=$e.toPower(),Zo=et.toPower(),Yo=tt.toPower(),Xo=nt.toPower(),Ko=Uo+Fo+Qo+Zo+Yo+Xo,Jo=e.entities?.pv_total?it.toNum():Ko,qo=e.solar.dynamic_colour?qt.toNum(Jo,0)>qt.toNum(e.solar?.off_threshold,0)?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour);let $o,ei,ti=e.inverter?.three_phase;St.includes(ti)||(ti=!1);const{essential_power:ni,nonessential_power:ai}=e.entities;ei=!1===ti?"none"!==ai&&ai?q.toPower():ct-Va:"none"!==ai&&ai?q.toPower():ct+ut+yt-Va,$o="none"!==ni&&ni?K.toPower(Da):!0===ti&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(Ga)+Number(za)+Number(Ra):Ia+Va-lt;const oi={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??""})},ii={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??""})},ri={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??""})},si={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??""})},li={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??""})},di={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??""})};let ci=e.battery?.count;(!e.wide||1!==ci&&2!==ci)&&(ci=1);const ui=B.toNum(),yi=O.toNum(),pi=Z.toNum()||ui,hi=Q.toNum()||yi,gi={capacity:yi,entityID:""};switch(!0){case"off"===f.state:case!Oo: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:gi.show=!1;break;default:{gi.show=!0;function Ls(t){const n=[];[oi,ii,ri,si,li,di].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=[oi,ii,ri,si,li,di][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}})),Cs(n,t);for(let a=0;ai&&(t>=o||t{e.start.getTime()50?"on":"off"),null!=ft&&Ro==fe.Solis&&0===ft&&(To=-To),null!=mt&&Ro==fe.Solis&&0===mt&&(Io=-Io);let fi=I.toNum();fi=Math.max(50,Math.min(fi,100));let mi=X.toNum()||fi;mi=Math.max(50,Math.min(mi,100));const _i=2===ci?To+Io:To;let vi=0;if(e.show_battery)if(!0==!gi.show)(!0===e.battery.invert_flow?To<0:To>0)?vi="on"!==Zt&&"1"!==Zt&&"on-grid"!==Zt.toLowerCase()||gi.show?"off"!==Zt&&"0"!==Zt&&"off-grid"!==Zt.toLowerCase()||!B.notEmpty()||gi.show?yi:ui:yi:(!0===e.battery.invert_flow?To>0:To<0)&&(vi=fi);else vi=Ho.getBatteryCapacity(To,Zt,yi,gi,L,fi,e.battery.invert_flow);let wi=0;if(e.show_battery)if(!0==!gi.show)(!0===e.battery2.invert_flow?Io<0:Io>0)?wi="on"!==Zt&&"1"!==Zt&&"on-grid"!==Zt.toLowerCase()||gi.show?"off"!==Zt&&"0"!==Zt&&"off-grid"!==Zt.toLowerCase()||!Z.notEmpty()||gi.show?hi:pi:hi:(!0===e.battery2.invert_flow?Io>0:Io<0)&&(wi=mi);else wi=Ho.getBatteryCapacity(Io,Zt,hi,gi,D,mi,e.battery2.invert_flow);let xi="",bi="",Ai="",Pi="";const Li=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}),Ci=this.getEntity("battery2.energy",{state:e.battery2.energy?.toString()??""});let Ei=Li.toPower(!1),Ni=Ci.toPower(!1);Ba&&S.notEmpty()&&(Ei=qt.toNum(Ba*S.toNum(0),0)),Ta&&F.notEmpty()&&(Ni=qt.toNum(Ta*F.toNum(0),0));const Mi=Ei+Ni;if(e.show_battery||0!==Ei||0!==Ni){const Ns=(e,t,n,a,o,i)=>0===o?(e.toNum(0)-t)/100*a*60*60:(i?o<0:o>0)?(e.toNum(0)-n)/100*a/Math.abs(o)*60*60:(i?o>0:o<0)?(n-e.toNum(0))/100*a/Math.abs(o)*60*60:0;let Ms=0;if(0!==Ei){Ms=Ns(L,yi,vi,Ei,To,e.battery.invert_flow);const Ss=new Date,Os=new Date(Ss.getTime()+1e3*Ms),Bs=Os.getHours(),Ts=Os.getMinutes().toString().padStart(2,"0"),Is=Bs.toString().padStart(2,"0");xi="".concat(Is,":").concat(Ts);const Vs=Math.floor(Ms/86400),Ds=Math.floor(Ms%86400/3600),Gs=Math.floor(Ms%3600/60);Vs>0&&(Ai+="".concat(Vs," ").concat(Et("common.days"),", ")),(Ds>0||Vs>0)&&(Ai+="".concat(Ds," ").concat(Et("common.hrs"),", ")),Ai+="".concat(Gs," ").concat(Et("common.min"))}let ks=0;if(0!==Ni){ks=Ns(D,hi,wi,Ni,Io,e.battery2.invert_flow);const zs=new Date,Rs=new Date(zs.getTime()+1e3*ks),js=Rs.getHours(),Hs=Rs.getMinutes().toString().padStart(2,"0"),Ws=js.toString().padStart(2,"0");bi="".concat(Ws,":").concat(Hs);const Us=Math.floor(ks/86400),Fs=Math.floor(ks%86400/3600),Qs=Math.floor(ks%3600/60);Us>0&&(Pi+="".concat(Us," ").concat(Et("common.days"),", ")),(Fs>0||Us>0)&&(Pi+="".concat(Fs," ").concat(Et("common.hrs"),", ")),Pi+="".concat(Qs," ").concat(Et("common.min"))}}const ki=-2<=E.toNum(0)&&E.toNum(0)<=2&&L.toNum(0)>=99,Si=-2<=z.toNum(0)&&z.toNum(0)<=2&&D.toNum(0)>=99,Oi=2===ci?ki&&Si:ki;let Bi,Ti;Bi=(!0===e.battery.invert_flow?To>0&&!ki:To<0&&!ki)?to:eo,Ti=(!0===e.battery2.invert_flow?Io>0&&!Si:Io<0&&!Si)?ao:no;let Ii="",Vi="",Di=p.state,Gi=!1;Ro==fe.Solis&&(Di=p.isNaN()?p.toString():p.toNum(0).toString());const zi=Ho.statusGroups;if(zi)for(const Zs of Object.keys(zi)){const Ys=zi[Zs],{states:Xs,color:Ks,message:Js}=Ys;if(Xs.includes(Di.toLowerCase())){Ii=Ks,Vi=Js,Gi=!0;break}}Gi||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(Ii="transparent",Vi="Status"):(Ii="transparent",Vi=""));let Ri="transparent",ji="",Hi="transparent",Wi="",Ui=!1,Fi=!1;if([fe.GoodweGridMode,fe.Goodwe,fe.Huawei].includes(Ro)){const qs=Ho.batteryStatusGroups;if(qs)for(const $s of Object.keys(qs)){const el=qs[$s],{states:tl,color:nl,message:al}=el;if(!Ui&&tl.includes(M.state.toLowerCase())&&(Ri=nl,ji=al,Ui=!0),!Fi&&tl.includes(j.state.toLowerCase())&&(Hi=nl,Wi=al,Fi=!0),Ui&&Fi)break}Ui||("none"!==e.entities?.battery_status&&e.entities?.battery_status?(Ri="transparent",ji="Status"):(Ri="transparent",ji="")),Fi||("none"!==e.entities?.battery2_status&&e.entities?.battery2_status?(Hi="transparent",Wi="Status"):(Hi="transparent",Wi=""))}const Qi=t.toNum()+a.toNum(),Zi=n.toNum()+o.toNum(),Yi=s.toNum()+Qi,Xi=i.toNum()+Zi,Ki=0!=Xi?Math.max(Math.min(Math.round(100*Yi/Xi),100),0):0,Ji=0!=Yi?Math.max(Math.min(Math.round(100*Xi/Yi),100),0):0,qi=Jo+qt.toNum("".concat((!0===e.battery.invert_flow?_i<0:_i>0)?Math.abs(_i):0))+qt.toNum("".concat(lt<0?-1*lt:0)),$i=$o+Math.max(ei,0)+qt.toNum("".concat(lt>0?lt:0))+qt.toNum("".concat((!0===e.battery.invert_flow?_i>0:_i<0)?Math.abs(_i):0)),er=0!=$i?Math.max(Math.min(Math.round(100*qi/$i),100),0):0,tr=0!=qi?Math.max(Math.min(Math.round(100*$i/qi),100),0):0,nr=(qt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,ar=qt.toNum(e.min_line_width)||1,or=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(0),ir=this.getEntity("solar.max_power",{state:e.solar.max_power?.toString()??""}),rr=this.getEntity("load.max_power",{state:e.load.max_power?.toString()??""}),sr=this.getEntity("grid.max_power",{state:e.grid.max_power?.toString()??""}),lr=e.solar.max_power?this.dynamicLineWidth(Uo,ir.toNum()||Uo,nr,ar):ar,dr=e.solar.max_power?this.dynamicLineWidth(Fo,ir.toNum()||Fo,nr,ar):ar,cr=e.solar.max_power?this.dynamicLineWidth(Qo,ir.toNum()||Qo,nr,ar):ar,ur=e.solar.max_power?this.dynamicLineWidth(Zo,ir.toNum()||Zo,nr,ar):ar,yr=e.solar.max_power?this.dynamicLineWidth(Yo,ir.toNum()||Yo,nr,ar):ar,pr=e.solar.max_power?this.dynamicLineWidth(Xo,ir.toNum()||Xo,nr,ar):ar,hr=e.battery.max_power?this.dynamicLineWidth(Math.abs(_i),or||Math.abs(_i),nr,ar):ar,gr=e.load.max_power?this.dynamicLineWidth(Math.abs($o),rr.toNum()||Math.abs($o),nr,ar):ar,fr=e.load.max_power?this.dynamicLineWidth(Math.abs(lt),rr.toNum()||Math.abs(lt),nr,ar):ar,mr=e.grid.max_power?this.dynamicLineWidth(Math.abs(ht),sr.toNum()||Math.abs(ht),nr,ar):ar,_r=e.grid.max_power?this.dynamicLineWidth(Math.abs(Va),sr.toNum()||Math.abs(Va),nr,ar):ar,vr=e.grid.max_power?this.dynamicLineWidth(Math.abs(ei),sr.toNum()||Math.abs(ei),nr,ar):ar,wr=e.solar.max_power?this.dynamicLineWidth(Jo,ir.toNum()||Jo,nr,ar):ar;if(e&&e.solar&&e.solar.animation_speed){const ol=e.solar.animation_speed-(e.solar.animation_speed-1)*(Jo/(ir.toNum()||Jo));this.changeAnimationSpeed("solar",ol)}if(e&&e.solar&&e.solar.animation_speed){const il=e.solar.animation_speed-(e.solar.animation_speed-1)*(Uo/(ir.toNum()||Uo));this.changeAnimationSpeed("pv1",il)}if(e&&e.solar&&e.solar.animation_speed){const rl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Fo/(ir.toNum()||Fo));this.changeAnimationSpeed("pv2",rl)}if(e&&e.solar&&e.solar.animation_speed){const sl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Qo/(ir.toNum()||Qo));this.changeAnimationSpeed("pv3",sl)}if(e&&e.solar&&e.solar.animation_speed){const ll=e.solar.animation_speed-(e.solar.animation_speed-1)*(Zo/(ir.toNum()||Zo));this.changeAnimationSpeed("pv4",ll)}if(e&&e.solar&&e.solar.animation_speed){const dl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Yo/(ir.toNum()||Yo));this.changeAnimationSpeed("pv5",dl)}if(e&&e.solar&&e.solar.animation_speed){const cl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Xo/(ir.toNum()||Xo));this.changeAnimationSpeed("pv6",cl)}if(e&&e.battery&&e.battery.animation_speed){const ul=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(_i)/(or||Math.abs(_i)));this.changeAnimationSpeed("battery",ul)}if(e&&e.load&&e.load.animation_speed){const yl=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs($o)/(rr.toNum()||Math.abs($o)));this.changeAnimationSpeed("load",yl),this.changeAnimationSpeed("load1",yl)}if(e&&e.load&&e.load.animation_speed){const pl=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(lt)/(rr.toNum()||Math.abs(lt)));this.changeAnimationSpeed("aux",pl),this.changeAnimationSpeed("aux1",pl)}if(e&&e.grid&&e.grid.animation_speed){const hl=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(ht)/(sr.toNum()||Math.abs(ht)));this.changeAnimationSpeed("grid1",hl),this.changeAnimationSpeed("grid",hl),this.changeAnimationSpeed("grid2",hl)}if(e&&e.grid&&e.grid.animation_speed){const gl=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(ei)/(sr.toNum()||Math.abs(ei)));this.changeAnimationSpeed("ne",gl)}const xr=0===Jo?0:"off"!==Bo&&Bo?Jo/(ti?$o+Math.max(lt,0):$o)*100:!0===e.battery.invert_flow?_i<0?Jo/(ti?$o+Math.max(lt,0):$o)*100:(Jo-Math.abs(_i))/(ti?$o+Math.max(lt,0):$o)*100:_i>0?Jo/(ti?$o+Math.max(lt,0):$o)*100:(Jo-Math.abs(_i))/(ti?$o+Math.max(lt,0):$o)*100,br=!0===e.battery.invert_flow?_i>=0?0:Math.abs(_i)/(ti?$o+Math.max(lt,0):$o)*100:_i<=0?0:Math.abs(_i)/(ti?$o+Math.max(lt,0):$o)*100,Ar=xr+br,Pr=0===Ar?0:xr/Ar*100,Lr=0===Ar?0:br/Ar*100;let Cr=0,Er=0,Nr=0;Ar>100?(Cr=qt.toNum(Pr,0),Er=qt.toNum(Lr,0)):(Cr=qt.toNum(Math.min(xr,100),0),Er=qt.toNum(Math.min(br,100),0),Nr=ht>0?100-(Cr+Er):0);const Mr=0===Jo||(!0===e.battery.invert_flow?_i<=0:_i>=0)?0:"off"!==Bo&&Bo?(Jo-$o)/Math.abs(_i)*100:Jo/Math.abs(_i)*100,kr=(!0===e.battery.invert_flow?To<=0:To>=0)||ht<=0?0:"on"===Bo?Jo-$o>=Math.abs(_i)?0:(ht-Math.max($o-Jo,0))/Math.abs(_i)*100:Jo>=Math.abs(_i)?0:(Math.abs(_i)-Jo)/Math.abs(_i)*100,Sr=Mr+kr,Or=0===Sr?0:Mr/Sr*100,Br=0===Sr?0:kr/Sr*100;let Tr,Ir,Vr,Dr,Gr,zr=0,Rr=0;switch(Sr>100?(zr=qt.toNum(Or,0),Rr=qt.toNum(Br,0)):(zr=qt.toNum(Math.min(Mr,100),0),Rr=qt.toNum(Math.min(kr,100),0)),!0){case zr>=qt.toNum(e.battery?.path_threshold,0):Tr=qo;break;case Rr>=qt.toNum(e.battery?.path_threshold,0):Tr=Ua;break;default:Tr=Bi}switch(!0){case Cr>=qt.toNum(e.load?.path_threshold,0):Ir=qo;break;case Er>=qt.toNum(e.load?.path_threshold,0):Ir=Bi;break;case Nr>=qt.toNum(e.load?.path_threshold,0):Ir=Ua;break;default:Ir=xt}switch(!0){case Cr>=qt.toNum(e.load?.path_threshold,0):Vr=qo;break;case Er>=qt.toNum(e.load?.path_threshold,0):Vr=Bi;break;case Nr>=qt.toNum(e.load?.path_threshold,0):case Rr>=qt.toNum(e.battery?.path_threshold,0):Vr=Ua;break;default:Vr=ko}switch(!0){case xr>=100&&br<=5&&ht-ei<50&&e.load.dynamic_icon:Dr=nn,Gr=1;break;case br>=100&&xr<=5&&ht-ei<50&&e.load.dynamic_icon:Dr=en,Gr=0;break;case xr<5&&br<5&&Nr>0&&e.load.dynamic_icon:Dr=tn,Gr=0;break;default:Dr=$t,Gr=0}const{batteryIcon:jr,batteryCharge:Hr,stopColour:Wr,battery0:Ur}=$a.convert(L),{batteryIcon:Fr,batteryCharge:Qr,stopColour:Zr,battery0:Yr}=$a.convert(D),Xr=this.getEntity("solar.pv1_max_power",{state:e.solar.pv1_max_power?.toString()??""}),Kr=this.getEntity("solar.pv2_max_power",{state:e.solar.pv2_max_power?.toString()??""}),Jr=this.getEntity("solar.pv3_max_power",{state:e.solar.pv3_max_power?.toString()??""}),qr=this.getEntity("solar.pv4_max_power",{state:e.solar.pv4_max_power?.toString()??""}),$r=this.getEntity("solar.pv5_max_power",{state:e.solar.pv5_max_power?.toString()??""}),es=this.getEntity("solar.pv6_max_power",{state:e.solar.pv6_max_power?.toString()??""}),ts=e.solar.max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Jo/ir.toNum()*100,200),0):100,ns=e.solar.pv1_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Uo/Xr.toNum()*100,200),0):100,as=e.solar.pv2_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Fo/Kr.toNum()*100,200),0):100,os=e.solar.pv3_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Qo/Jr.toNum()*100,200),0):100,is=e.solar.pv4_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Zo/qr.toNum()*100,200),0):100,rs=e.solar.pv5_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Yo/$r.toNum()*100,200),0):100,ss=e.solar.pv6_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Xo/es.toNum()*100,200),0):100;let ls,ds,cs,us;switch(!0){case ht<0&&It.includes(Zt.toLowerCase()):ls=Co,ds=Ua;break;case ht>=0&&It.includes(Zt.toLowerCase()):ls=Po,ds=Ua;break;case 0===ht&&Tt.includes(Zt.toLowerCase()):ls=Lo,ds=Ya;break;default:ls=Po,ds=Ua}switch(!0){case!e.show_solar&&e.show_battery&&0===lo:cs="138",us="280";break;case!e.show_solar&&e.show_battery&&[1,2,3,4].includes(lo):cs="70",us="350";break;case e.show_solar&&!e.show_battery&&[2,3,4].includes(lo):cs="0",us="350";break;case e.show_solar&&!e.show_battery&&[0,1].includes(lo):cs="0",us="315";break;case!e.show_solar&&!e.show_battery&&0===lo:cs="115",us="225";break;case!e.show_solar&&!e.show_battery&&1===lo:cs="85",us="230";break;case!e.show_solar&&!e.show_battery&&[2,3,4].includes(lo):cs="65",us="285";break;default:cs="0",us="408"}const ys=qt.toNum(e.load?.off_threshold,0),ps="transparent"===e.load?.off_colour;let hs=xt,gs=xt;const fs={1:[ie],2:[ie],3:[ie],4:[ie,re],5:[ie,re,de],6:[ie,re,de]},ms={2:[re],3:[re,se],4:[se,le],5:[se,le],6:[se,le,ce]},_s={1:[ie],2:[ie,re],4:[ie,re],5:[ie,re,de],6:[ie,re,de]},vs={4:[se,le],5:[se,le],6:[se,le,ce]},ws=(e,t)=>((...e)=>e.every((e=>e.toPower(!1)<=ys)))(...e)?"transparent":t;ps&&(this.isLiteCard||this.isCompactCard)&&(hs=ws(fs[lo]||[],hs),gs=ws(ms[lo]||[],gs)),ps&&this.isFullCard&&(hs=ws(_s[lo]||[],hs),gs=ws(vs[lo]||[],gs));const xs=Zt.toLowerCase();let bs=yi,As=hi;switch(!0){case["on","1","on-grid"].includes(xs):bs=yi,As=hi;break;case["off","0","off-grid"].includes(xs):bs=B.notEmpty()?ui:yi,As=Z.notEmpty()?pi:hi}const Ps={config:e,compactMode:Wo,viewBoxYLite:cs,viewBoxHeightLite:us,cardHeight:Vo,cardWidth:Do,loadColour:xt,load1Colour:hs,load2Colour:gs,batteryColour:Bi,battery2Colour:Ti,gridColour:Ua,isFloating:ki,isFloating2:Si,isFloatingCombined:Oi,inverterColour:ko,solarColour:qo,auxOffColour:At,batteryEnergy:Ei,battery2Energy:Ni,batteryTotalEnergy:Mi,largeFont:Mo,batteryPower:To,battery2Power:Io,batteryPowerTotal:_i,batteryDuration:Ai,batteryDuration2:Pi,batteryCapacity:vi,battery2Capacity:wi,additionalLoad:lo,essIconSize:Gr,essIcon:Dr,stateUseTimer:f,batteryStateMsg:ji,battery2StateMsg:Wi,stateBatterySoc:L,stateBattery2Soc:D,inverterProg:gi,solarShowDaily:io,batteryPercentage:Er,pvPercentage:Cr,loadShowDaily:Ft,stateEnergyCostSell:Ie,stateEnergyCostBuy:Te,loadPowerL1:Ga,loadPowerL2:za,loadPowerL3:Ra,durationCur:this.durationCur,stateEssentialLoad1:ie,stateEssentialLoad2:re,stateEssentialLoad3:se,stateEssentialLoad4:le,stateEssentialLoad5:de,stateEssentialLoad6:ce,gridPower:ct,gridPowerL2:ut,gridPowerL3:yt,decimalPlaces:vt,decimalPlacesEnergy:wt,stateEssentialLoad1Extra:ge,stateEssentialLoad2Extra:me,stateEssentialLoad3Extra:ve,stateEssentialLoad4Extra:we,stateEssentialLoad5Extra:xe,stateEssentialLoad6Extra:be,stateNonEssentialLoad1Extra:ne,stateNonEssentialLoad2Extra:ae,stateNonEssentialLoad3Extra:oe,loadFrequency:Xt,gridShowDailyBuy:Ka,gridShowDailySell:Ja,batteryShowDaily:oo,inverterModel:Ro,batteryShutdown:yi,batteryShutdown2:hi,enableAutarky:So,autarkyPower:er,ratioPower:tr,ratioEnergy:Ji,autarkyEnergy:Ki,shutdownOffGrid2:pi,shutdownOffGrid:ui,batteryOneShutdown:bs,batteryTwoShutdown:As,statePV1Current:Re,statePV2Current:He,statePV3Current:Ue,statePV4Current:Qe,statePV5Current:Ye,statePV6Current:Ke,energyCost:zo,inverterCurrent:ka,inverterCurrentL2:Sa,inverterCurrentL3:Oa,stateRadiatorTemp:_,inverterVoltage:Kt,inverterVoltageL2:Jt,inverterVoltageL3:Ma,batteryVoltage:Ba,battery2Voltage:Ta,stateBatteryCurrent:E,stateBattery2Current:z,batLineWidth:hr,totalGridPower:ht,solarLineWidth:wr,totalPV:Jo,loadLineWidth:gr,pvPercentageBat:zr,gridPercentageBat:Rr,genericInverterImage:_t,battery0:Ur,battery20:Yr,essentialPower:$o,pv1LineWidth:lr,pv2LineWidth:dr,pv3LineWidth:cr,pv4LineWidth:ur,pv5LineWidth:yr,pv6LineWidth:pr,gridLineWidth:mr,pv1PowerWatts:Uo,pv2PowerWatts:Fo,pv3PowerWatts:Qo,pv4PowerWatts:Zo,pv5PowerWatts:Yo,pv6PowerWatts:Xo,stateEnvironmentTemp:A,statePV1Voltage:ze,statePV2Voltage:je,statePV3Voltage:We,statePV4Voltage:Fe,statePV5Voltage:Ze,statePV6Voltage:Xe,batteryStateColour:Ri,battery2StateColour:Hi,inverterStateColour:Ii,stateBatteryTemp:N,stateBattery2Temp:R,statePrepaidUnits:De,stateDCTransformerTemp:m,iconEssentialLoad1:yo,iconEssentialLoad2:po,iconEssentialLoad3:ho,iconEssentialLoad4:go,iconEssentialLoad5:fo,iconEssentialLoad6:mo,enableTimer:Oo,stateSolarSell:ot,priorityLoad:Bo,inverterImg:jo,stateDayPVEnergy:s,remainingSolar:Eo,totalSolarGeneration:No,stateDayLoadEnergy:i,stateDayBatteryDischarge:t,stateDayGridImport:r,stateDayBatteryCharge:n,stateDayGridExport:l,statePVTotal:it,statePV1Power:Je,statePV2Power:qe,statePV3Power:$e,statePV4Power:et,statePV5Power:tt,statePV6Power:nt,minLineWidth:ar,stopColour:Wr,stop2Colour:Zr,gridStatus:Zt,batteryCharge:Hr,battery2Charge:Qr,gridOffColour:Ya,batteryIcon:jr,battery2Icon:Fr,formattedResultTime:xi,formattedResultTime2:bi,showAux:ro,nonessentialIcon:wo,showNonessential:Qt,auxStatus:Yt,nonessentialLoads:Xa,additionalAuxLoad:co,stateAuxLoad1Extra:Ce,stateAuxLoad2Extra:Ee,iconNonessentialLoad1:xo,iconNonessentialLoad2:bo,iconNonessentialLoad3:Ao,inverterStateMsg:Vi,auxType:uo,showDailyAux:so,nonessentialPower:ei,auxPower:lt,nonessLineWidth:vr,grid169LineWidth:_r,auxLineWidth:fr,iconAuxLoad1:_o,iconAuxLoad2:vo,stateDayAuxEnergy:d,stateAuxLoad1:ye,stateAuxLoad2:he,stateNonessentialLoad1:$,stateNonessentialLoad2:ee,stateNonessentialLoad3:te,autoScaledInverterPower:Ia,autoScaledGridPower:Va,auxDynamicColour:bt,auxDynamicColourLoad1:Pt,auxDynamicColourLoad2:Ct,stateMaxSellPower:Ge,totalPVEfficiency:ts,PV1Efficiency:ns,PV2Efficiency:as,PV3Efficiency:os,PV4Efficiency:is,PV5Efficiency:rs,PV6Efficiency:ss,gridPercentage:Nr,flowColour:Ir,flowBatColour:Tr,flowInvColour:Vr,dynamicColourEssentialLoad1:Nt,dynamicColourEssentialLoad2:Vt,dynamicColourEssentialLoad3:Dt,dynamicColourEssentialLoad4:Ht,dynamicColourEssentialLoad5:Wt,dynamicColourEssentialLoad6:Ut,dynamicColourNonEssentialLoad1:Fa,dynamicColourNonEssentialLoad2:Qa,dynamicColourNonEssentialLoad3:Za,stateBatterySOH:T,stateBattery2SOH:Y,customGridIcon:ls,customGridIconColour:ds,maximumSOC:fi,batteryCount:ci};return this.isFullCard?((e,t,n)=>H(Ln||(Ln=pe(["\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 \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 ',"\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 \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 \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 \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,e.title?H(Cn||(Cn=pe(['\n ',""])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.wide?"0 0 720 405":"0 0 483 405",n.cardHeight,n.cardWidth,(e.wide,"3%"),[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,[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,e.show_solar?"":"none",n.solarColour,e.solar.pv1_name||Et("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||Et("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||Et("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||Et("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)||1===e.solar.mppts?"none":"",n.solarColour,n.totalPVEfficiency,1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.total_solar_generation"),1===e.solar.mppts?e.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",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.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",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.solar?.navigate?W(En||(En=pe(['\n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.solar.navigate)),e.show_solar?"":"st12",n.solarColour,Pn):W(Nn||(Nn=pe(['\n \n \n '])),e.show_solar?"":"st12",n.solarColour,Pn),(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,hn,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,gn,(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,e.entities?.pv_total?W(Mn||(Mn=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)):W(kn||(kn=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)),!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.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.AMPERE,(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),e.show_battery?"inline":"none",(e.wide,"3%"),e.wide&&2===n.batteryCount?"inline":"none",n.batteryColour,(n.compactMode,""),!0!==n.largeFont?"st14":"st4",n.batteryColour,e.battery.auto_scale?qt.convertValue(n.batteryPowerTotal,n.decimalPlaces)||0:"".concat(qt.toNum(n.batteryPowerTotal||0,0)," ").concat(Gt.WATT),2===n.batteryCount?"12.25%":"0%",e.battery?.navigate?W(Sn||(Sn=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.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.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge):W(On||(On=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.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.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge),(t=>qt.handlePopup(t,e.entities.battery_temp_182)),e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,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,!n.stateBatterySOH.isValid()||e.entities?.battery_temp_182?"none":"",n.stateBatterySOH.toNum(0),e.battery.show_remaining_energy?"":"none",n.batteryColour,e.battery.remaining_energy_to_shutdown?"".concat(qt.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),2===n.batteryCount?"inline":"none",2===n.batteryCount?"19%":"0%",e.battery2?.navigate?W(Bn||(Bn=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.battery2.navigate)),e.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,e.battery2?.show_remaining_energy?"294":"296.25",n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.battery2.linear_gradient?"":"none",n.battery2Charge):W(Tn||(Tn=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.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,e.battery2?.show_remaining_energy?"294":"296.25",n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.battery2.linear_gradient?"":"none",n.battery2Charge),(t=>qt.handlePopup(t,e.entities.battery2_temp_182)),e.entities?.battery2_temp_182?"st3 left-align":"st12",n.battery2Colour,n.stateBattery2Temp.isValid()?"":"none",n.stateBattery2Temp.toNum(1),(t=>qt.handlePopup(t,e.entities.battery2_soh)),e.entities?.battery2_soh?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2SOH.isValid()||e.entities?.battery2_temp_182?"none":"",n.stateBattery2SOH.toNum(0),e.battery2.show_remaining_energy?"":"none",n.battery2Colour,e.battery2.remaining_energy_to_shutdown?"".concat(qt.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),2===n.batteryCount?"-20%":"0%",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.to"),n.batteryCapacity,Et("common.charge"),n.formattedResultTime,0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Et("common.battery_floating"),n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&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.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc?"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?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.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===e.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===e.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.to"),n.battery2Capacity,Et("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Et("common.battery_floating"),n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),"none"!==e.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===e.entities.battery2_soc_184||e.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.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"!==e.entities?.battery2_status&&e.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,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),2===n.batteryCount?"25":"41",2===n.batteryCount?"329.5":"317","none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183?"":"none",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_power_190)),2===n.batteryCount?"25":"41",2===n.batteryCount?"362":"356","none"===e.entities.battery_power_190?"none":"",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",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)),2===n.batteryCount?"25":"41",2===n.batteryCount?"345.75":"336","none"!==e.entities.battery_current_191&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",e.battery.show_absolute?Math.abs(qt.toNum(n.stateBatteryCurrent.state,1)):qt.toNum(n.stateBatteryCurrent.state,1),Rt.AMPERE,2===n.batteryCount?"inline":"none",n.battery2Colour,(t=>qt.handlePopup(t,e.entities.battery2_voltage_183)),"none"!==e.entities.battery2_voltage_183&&e.entities.battery2_voltage_183?"":"none",n.battery2Colour,n.battery2Voltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery2_power_190)),"none"===e.entities.battery2_power_190?"none":"",n.battery2Colour,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qt.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Gt.WATT):"".concat(n.battery2Power||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.battery2_current_191)),"none"!==e.entities.battery2_current_191&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,e.battery2.show_absolute?Math.abs(qt.toNum(n.stateBattery2Current.state,1)):qt.toNum(n.stateBattery2Current.state,1),Rt.AMPERE,2===n.batteryCount?"-8":e.battery.show_remaining_energy?"8":"73","none"!==e.entities?.battery_status&&e.entities?.battery_status?"":"none",n.batteryStateColour,2===n.batteryCount?"0":e.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),Et("common.daily_charge"),!0!==n.batteryShowDaily?"transparent":"".concat(n.batteryColour),Et("common.daily_discharge"),(t=>qt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&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&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,n.decimalPlacesEnergy),e.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",e.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===e.battery.invert_flow?qt.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(e.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.wide?"30%":"3%",3===n.nonessentialLoads&&(e.battery.hide_soc||e.wide)?"":"none",n.dynamicColourNonEssentialLoad3,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",e.battery.hide_soc||e.wide?"st3 st8":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad3,e.grid.load3_name,e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",(e.battery.hide_soc||e.wide)&&3===n.nonessentialLoads?"":"none",n.iconNonessentialLoad3,(t=>qt.handlePopup(t,e.entities.non_essential_load3)),e.battery.hide_soc||e.wide?"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.non_essential_load3_extra)),e.entities?.non_essential_load3_extra&&3===n.nonessentialLoads&&n.stateNonEssentialLoad3Extra.isValid()&&e.show_grid&&e.wide?"":"none",n.dynamicColourNonEssentialLoad3,n.stateNonEssentialLoad3Extra.toNum(1),n.stateNonEssentialLoad3Extra?.getUOM(),n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",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",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,n.gridColour,e.show_grid?"":"none",e.grid.grid_name||Et("common.grid_name"),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||Et("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||Et("common.daily_grid_sell"),e.show_grid&&n.showNonessential?"":"none",n.gridColour,e.grid.nonessential_name||Et("common.nonessential_name"),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",e.wide?"M143 187 234 187":"M215 187 234 187",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.grid?.navigate?W(In||(In=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",Tt.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",It.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",Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",xn):W(Vn||(Vn=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",Tt.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",It.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",Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",xn),e.grid?.navigate?W(Dn||(Dn=pe(['\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",e.inverter.three_phase?"34px":"65px",e.inverter.three_phase?"34px":"65px",n.customGridIcon,e.inverter.three_phase?"grid-icon-small":"grid-icon"):W(Gn||(Gn=pe(['\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",e.inverter.three_phase?"34px":"65px",e.inverter.three_phase?"34px":"65px",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,"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,(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",Et("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),e.inverter.three_phase?e.entities?.grid_ct_power_total?W(zn||(zn=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))):W(Rn||(Rn=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))):W(jn||(jn=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?.nonessential_power&&"none"!==e.entities.nonessential_power?W(Hn||(Hn=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)):W(Wn||(Wn=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)),n.totalGridPower>=0?W(Un||(Un=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()):W(Fn||(Fn=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.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.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.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),(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,jt.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,jt.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,jt.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.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_load1_extra)),e.entities?.non_essential_load1_extra&&[1,2,3].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,3].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad2Extra.isValid()&&e.show_grid?"":"none",n.dynamicColourNonEssentialLoad2,n.stateNonEssentialLoad2Extra.toNum(1),n.stateNonEssentialLoad2Extra?.getUOM(),e.wide?"30%":"3%",e.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,e.load.load5_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad5,(t=>qt.handlePopup(t,e.entities.essential_load5_extra)),e.entities?.essential_load5_extra&&[5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad5Extra.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5Extra.toNum(1),n.stateEssentialLoad5Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load5)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5.toPowerString(e.load.auto_scale,n.decimalPlaces),e.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,e.load.load6_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad6,(t=>qt.handlePopup(t,e.entities.essential_load6_extra)),e.entities?.essential_load6_extra&&[5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad6Extra.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6Extra.toNum(1),n.stateEssentialLoad6Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load6)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad6.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6.toPowerString(e.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,e.load.essential_name||Et("common.essential"),[1,2].includes(n.additionalLoad)&&n.showAux||!n.showAux&&[4,5,6].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name||Et("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,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,e.load.load1_name,n.showAux?415:418,n.showAux?178:59,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,[4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,[4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad4,e.load.load4_name,0===n.additionalLoad?"377":"238",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),e.load.label_daily_load||Et("common.daily_load"),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.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(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.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",e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,e.load?.navigate?W(Qn||(Qn=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,5,6].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,5,6].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon):W(Zn||(Zn=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 '])),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,5,6].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,5,6].includes(n.additionalLoad)?"none":"",e.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,(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.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,5,6].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,5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),e.entities?.essential_power&&"none"!==e.entities.essential_power?W(Yn||(Yn=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)):W(Xn||(Xn=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)),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,5,6].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,5,6].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,5,6].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,5,6].includes(n.additionalLoad)&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4.toPowerString(e.load.auto_scale,n.decimalPlaces),e.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",e.load.label_daily_load||Et("common.daily_load"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),e.load.aux_name||Et("common.aux_name"),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||Et("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,e.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,(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,(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),e.entities?.aux_power_166?W(Kn||(Kn=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)):W(Jn||(Jn=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.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.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(),e.wide?"20%":"3%",e.inverter.three_phase?60:50,n.inverterColour,n.inverterColour,n.inverterStateMsg,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.autarky"),n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.ratio"),n.inverterStateColour,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,e.inverter?.navigate?W(qn||(qn=pe(['\n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):W($n||($n=pe(['\n \n \n \n \n '])),n.genericInverterImage?1:0,n.inverterColour,ln),(t=>qt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=_e.No?"232":"249","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,yn,n.enableAutarky!=_e.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,pn,n.enableAutarky!=_e.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("common.timer_on"),n.enableAutarky!=_e.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("common.timer_off"),(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!=_e.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Et("common.priority_load"),n.enableAutarky!=_e.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Et("common.priority_batt"),e.inverter?.navigate?W(ea||(ea=pe(['\n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?"st12":"",t):W(ta||(ta=pe(['\n '])),n.genericInverterImage?"st12":"",t),(e=>qt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=_e.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!=_e.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,(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,Rt.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,Rt.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,Rt.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.radiator_temp_91)),4!==e.solar?.mppts||e.wide?"134":"110",4!==e.solar?.mppts||e.wide?"153":"237",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)))(e,jo,Ps):this.isLiteCard||this.isCompactCard?((e,t,n)=>H(na||(na=pe(["\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 ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n '," ",'\n \n \n \n '," ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ',"°\n \n \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 \n \n \n \n \n \n \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,e.title?H(aa||(aa=pe(['\n ',""])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.wide?"0 0 720 405":"-2 ".concat(n.viewBoxYLite," 490 ").concat(n.viewBoxHeightLite),n.cardHeight,n.cardWidth,e.show_solar?"inline":"none",e.wide?"10%":"0%",[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,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,e.show_solar&&e.wide&&[5,6].includes(e.solar.mppts)?"inline":"none",[1,3].includes(e.solar.efficiency)?"url(#PV5LG)":n.solarColour,!e.show_solar||[1,2,3,4].includes(e.solar.mppts)?"st12":"",0===n.PV5Efficiency?"grey":n.solarColour,n.PV5Efficiency,0===n.PV5Efficiency?"grey":n.solarColour,n.PV5Efficiency,n.PV5Efficiency<100?"grey":n.solarColour,n.PV5Efficiency<100?"grey":n.solarColour,e.show_solar?"":"none",n.solarColour,e.solar.pv5_name||Et("common.pv5_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV5Efficiency,e.show_solar?"":"st12",n.solarColour,n.pv5LineWidth,Math.min(2+n.pv5LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv5PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv5,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",(t=>qt.handlePopup(t,e.entities.pv5_voltage)),e.show_solar&&e.entities.pv5_voltage&&"none"!==e.entities.pv5_voltage&&n.statePV5Voltage.isValid()?"":"none",n.solarColour,n.statePV5Voltage.toNum(1),jt.VOLT,(t=>qt.handlePopup(t,e.entities.pv5_current)),e.show_solar&&e.entities.pv5_current&&"none"!==e.entities.pv5_current&&n.statePV5Current.isValid()?"":"none",n.solarColour,n.statePV5Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv5_power)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV5Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv5PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv5PowerWatts||0,0)," ").concat(Gt.WATT),e.show_solar&&e.wide&&6===e.solar.mppts?"inline":"none",[1,3].includes(e.solar.efficiency)?"url(#PV6LG)":n.solarColour,!e.show_solar||[1,2,3,4,5].includes(e.solar.mppts)?"st12":"",0===n.PV6Efficiency?"grey":n.solarColour,n.PV6Efficiency,0===n.PV6Efficiency?"grey":n.solarColour,n.PV6Efficiency,n.PV6Efficiency<100?"grey":n.solarColour,n.PV6Efficiency<100?"grey":n.solarColour,e.show_solar?"":"none",n.solarColour,e.solar.pv6_name||Et("common.pv6_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV6Efficiency,e.show_solar?"":"st12",n.solarColour,n.pv6LineWidth,Math.min(2+n.pv6LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv6PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv6,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",(t=>qt.handlePopup(t,e.entities.pv6_voltage)),e.show_solar&&e.entities.pv6_voltage&&"none"!==e.entities.pv6_voltage&&n.statePV6Voltage.isValid()?"":"none",n.solarColour,n.statePV6Voltage.toNum(1),jt.VOLT,(t=>qt.handlePopup(t,e.entities.pv6_current)),e.show_solar&&e.entities.pv6_current&&"none"!==e.entities.pv6_current&&n.statePV6Current.isValid()?"":"none",n.solarColour,n.statePV6Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv6_power)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV6Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv6PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv6PowerWatts||0,0)," ").concat(Gt.WATT),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.total_solar_generation"),1===e.solar.mppts?"230":"179",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name||Et("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||Et("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||Et("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||Et("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",e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,n.totalPVEfficiency,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",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.solar?.navigate?W(oa||(oa=pe(['\n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.solar.navigate)),e.show_solar?"":"st12",n.solarColour,Pn):W(ia||(ia=pe(['\n \n \n '])),e.show_solar?"":"st12",n.solarColour,Pn),(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,hn,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,gn,(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.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.AMPERE,(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),e.entities?.pv_total?W(ra||(ra=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)):W(sa||(sa=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.show_battery?"inline":"none",e.wide?"10%":"0%",e.wide&&2===n.batteryCount?"inline":"none",n.batteryColour,(n.compactMode,""),!0!==n.largeFont?"st14":"st4",n.batteryColour,e.battery.auto_scale?qt.convertValue(n.batteryPowerTotal,n.decimalPlaces)||0:"".concat(qt.toNum(n.batteryPowerTotal||0,0)," ").concat(Gt.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":"",(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"===e.entities.battery_voltage_183||!e.entities.battery_voltage_183||n.compactMode?"none":"",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&n.compactMode&&2!==n.batteryCount?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&!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),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&n.compactMode&&n.stateBatteryCurrent.isValid()&&2!==n.batteryCount?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_power_190)),n.compactMode?"239":"193",n.compactMode?"307":"386","none"===e.entities.battery_power_190||n.compactMode&&2===n.batteryCount?"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)),n.compactMode?"270":e.entities?.battery_status?"169":"193",n.compactMode?"338":"323",e.entities?.battery_status||n.compactMode?"st3 left-align":"st3",!e.battery.show_remaining_energy||n.compactMode&&2===n.batteryCount?"none":"",n.batteryColour,e.battery.remaining_energy_to_shutdown?"".concat(qt.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.battery.show_remaining_energy?"311":"320",n.compactMode?"none":"",n.batteryColour,n.batteryStateMsg,e.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183?"":"none",n.batteryColour,n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_power_190)),"none"===e.entities.battery_power_190?"none":"",n.batteryColour,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)),e.battery.show_remaining_energy?"":"none",n.batteryColour,e.battery.remaining_energy_to_shutdown?"".concat(qt.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",(t=>qt.handlePopup(t,e.entities.battery2_voltage_183)),"none"!==e.entities.battery2_voltage_183&&e.entities.battery2_voltage_183?"":"none",n.battery2Colour,n.battery2Voltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery2_current_191)),e.entities.battery2_current_191&&"none"!==e.entities.battery2_current_191&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,e.battery2.show_absolute?Math.abs(n.stateBattery2Current.toNum(1)):n.stateBattery2Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery2_power_190)),"none"===e.entities.battery2_power_190?"none":"",n.battery2Colour,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qt.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Gt.WATT):"".concat(n.battery2Power||0," ").concat(Gt.WATT)),e.battery2.show_remaining_energy?"":"none",n.battery2Colour,e.battery2.remaining_energy_to_shutdown?"".concat(qt.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.wide&&2===n.batteryCount&&!n.compactMode?"inline":"none",n.battery2Colour,e.show_battery?"":"none",(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery2_voltage_183&&e.entities.battery2_voltage_183&&e.show_battery?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",n.battery2Voltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery2_current_191)),e.entities.battery2_current_191&&"none"!==e.entities.battery2_current_191&&e.show_battery&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",e.battery2.show_absolute?Math.abs(n.stateBattery2Current.toNum(1)):n.stateBattery2Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery2_power_190)),"none"!==e.entities.battery2_power_190&&e.show_battery?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",e.battery2.auto_scale?"".concat(e.battery2.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qt.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Gt.WATT):"".concat(n.battery2Power||0," ").concat(Gt.WATT)),e.entities?.battery2_status?"169":"193",e.entities?.battery2_status?"st3 left-align":"st3",e.show_battery&&e.battery2.show_remaining_energy?"":"none",n.battery2Colour,e.battery2.remaining_energy_to_shutdown?"".concat(qt.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.battery2.show_remaining_energy?"311":"320",e.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===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.to"),n.batteryCapacity,Et("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Et("common.battery_floating"),n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||n.compactMode&&2===n.batteryCount?"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||n.compactMode&&2===n.batteryCount?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"270":"290","none"===e.entities.battery_soc_184||!n.stateBatterySoc.isValid()||n.compactMode&&2===n.batteryCount?"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.battery.hide_soc||n.compactMode&&2===n.batteryCount?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||n.compactMode&&2===n.batteryCount?"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||n.compactMode&&2===n.batteryCount?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery.shutdown_soc_offgrid?"":"none",e.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===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.to"),n.batteryCapacity,Et("common.charge"),n.formattedResultTime,0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Et("common.battery_floating"),n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&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.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc?"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?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery.shutdown_soc_offgrid?"":"none",e.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===e.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===e.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.to"),n.battery2Capacity,Et("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Et("common.battery_floating"),n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),"none"!==e.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===e.entities.battery2_soc_184||e.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery2.shutdown_soc_offgrid?"":"none",e.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===e.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===e.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.to"),n.battery2Capacity,Et("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Et("common.battery_floating"),n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),"none"!==e.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===e.entities.battery2_soc_184||e.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.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",e.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===e.battery.invert_flow?qt.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(e.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("0;1"):"0;1",2===n.batteryCount?"-6.25%":"0%",(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,!n.stateBatteryTemp.isValid()||n.compactMode&&2===n.batteryCount?"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,!n.stateBatterySOH.isValid()||e.entities?.battery_temp_182||n.compactMode&&2===n.batteryCount?"none":"",n.stateBatterySOH.toNum(0),n.compactMode?"238.5":"162",n.compactMode?"326":e.battery.show_remaining_energy?"310":"319","none"===e.entities?.battery_status||!e.entities?.battery_status||n.compactMode&&2===n.batteryCount?"none":"",n.batteryStateColour,e.battery.navigate?W(la||(la=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&&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,e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.stopColour,e.battery.animate?"y2":"none",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge):W(da||(da=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&&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,e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.stopColour,e.battery.animate?"y2":"none",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge),e.wide&&2===n.batteryCount?"inline":"none",(t=>qt.handlePopup(t,e.entities.battery2_temp_182)),e.entities?.battery2_temp_182?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2Temp.isValid()||n.compactMode&&2===n.batteryCount?"none":"",n.stateBattery2Temp.toNum(1),(t=>qt.handlePopup(t,e.entities.battery2_soh)),e.entities?.battery2_soh?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2SOH.isValid()||e.entities?.battery2_temp_182||n.compactMode&&2===n.batteryCount?"none":"",n.stateBattery2SOH.toNum(0),n.compactMode?"326":e.battery2.show_remaining_energy?"310":"319","none"===e.entities?.battery2_status||!e.entities?.battery2_status||n.compactMode&&2===n.batteryCount?"none":"",n.battery2StateColour,e.battery2.navigate?W(ca||(ca=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.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.battery2.linear_gradient?"":"none",n.battery2Charge):W(ua||(ua=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.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.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),Et("common.daily_charge"),(t=>qt.handlePopup(t,e.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),Et("common.daily_discharge"),(t=>qt.handlePopup(t,e.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,e.show_grid?"":"none",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_buy||Et("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_sell||Et("common.daily_grid_sell"),e.grid.show_daily_buy?"294":"267",n.gridColour,e.show_grid?"":"none",e.grid.grid_name||Et("common.grid_name"),e.wide?"M 173 218 L 287 218":"M 173 218 L 214 218",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.grid?.navigate?W(ya||(ya=pe(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.grid.navigate)),Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",wn):W(pa||(pa=pe(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handlePopup(t,e.entities.grid_connected_status_194)),Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",wn),e.grid?.navigate?W(ha||(ha=pe(['\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):W(ga||(ga=pe(['\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),(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",Et("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),e.inverter.three_phase?e.entities?.grid_ct_power_total?W(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))):W(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))):W(_a||(_a=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))),n.totalGridPower>=0?W(va||(va=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()):W(wa||(wa=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()),(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.wide?"30%":"0%",n.loadColour,n.dynamicColourEssentialLoad1,[1,2,3].includes(n.additionalLoad)?"":"none",[1,2,3].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,e.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,(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_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(),[0,4,5,6].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,n.dynamicColourEssentialLoad2,2===n.additionalLoad?"":"none",2===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,e.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,(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_load2_extra)),e.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,e.load.load2_name,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,3===n.additionalLoad?"":"none",n.iconEssentialLoad2,3===n.additionalLoad?"":"none",n.iconEssentialLoad3,(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&&3===n.additionalLoad&&n.stateEssentialLoad3Extra.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3Extra.toNum(1),n.stateEssentialLoad3Extra.getUOM(),(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),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,e.load.load1_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad4,e.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,(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&n.additionalLoad>=4&&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&&n.additionalLoad>=4&&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&&n.additionalLoad>=4&&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&&n.additionalLoad>=4&&n.stateEssentialLoad4Extra.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4Extra.toNum(1),n.stateEssentialLoad4Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load1)),n.additionalLoad>=4&&n.stateEssentialLoad1.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load2)),n.additionalLoad>=4&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load3)),n.additionalLoad>=4&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load4)),n.additionalLoad>=4&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4?.toPowerString(e.load.auto_scale,n.decimalPlaces),e.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,e.load.load5_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad5,(t=>qt.handlePopup(t,e.entities.essential_load5_extra)),e.entities?.essential_load5_extra&&[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad5Extra.toNum(1),n.stateEssentialLoad5Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load5)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5?.toPowerString(e.load.auto_scale,n.decimalPlaces),e.wide&&6===n.additionalLoad?"0 0 720 405":"0 0 0 0",n.dynamicColourEssentialLoad6,6===n.additionalLoad?"":"none",6===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad6,e.load.load6_name,6===n.additionalLoad?"":"none",n.iconEssentialLoad6,(t=>qt.handlePopup(t,e.entities.essential_load6_extra)),e.entities?.essential_load6_extra&&6===n.additionalLoad&&n.stateEssentialLoad6Extra.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6Extra.toNum(1),n.stateEssentialLoad6Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load6)),6===n.additionalLoad&&n.stateEssentialLoad6.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6?.toPowerString(e.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",e.load.label_daily_load||Et("common.daily_load"),e.wide?"304":"375",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.wide?"304":"375",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.wide?"304":"375",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.wide?"M 304 218.5 L 117 218.5":"M 304 218.5 L 264.7 218.5",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.load1Colour,[2,3,4,5,6].includes(n.additionalLoad)?"":"st12",n.load1Colour,[2,3,4,5,6].includes(n.additionalLoad)?"":"st12",n.load2Colour,e.load?.navigate?W(xa||(xa=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):W(ba||(ba=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),(t=>qt.handlePopup(t,e.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),e.entities?.essential_power&&"none"!==e.entities.essential_power?W(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)):W(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)),e.wide?"10%":"0%",n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.autarky"),n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.ratio"),n.inverterStateColour,e.inverter?.navigate?W(La||(La=pe(['\n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):W(Ca||(Ca=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,yn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,pn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("common.timer_off"),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("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,Et("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Et("common.priority_load"),e.inverter?.navigate?W(Ea||(Ea=pe(['\n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?"st12":"",t):W(Na||(Na=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,_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,(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:"",jt.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:"",Rt.AMPERE,(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)))(e,jo,Ps):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 eo(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):this.colourConvert(this._config.load?.off_colour)||"grey":this.colourConvert(this._config.load?.colour)}setConfig(e){if(e.show_battery&&!e.battery)throw Error(Et("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(Et("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(Et("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(Et("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(Et("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(Et("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(Et("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(Et("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(Et("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(Et("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=Kt({},Nt,n)}getCardSize(){return 2}};e([ue()],to.prototype,"hass",void 0),e([ue()],to.prototype,"_config",void 0),e([ye("#grid-flow")],to.prototype,"gridFlow",void 0),e([ye("#grid1-flow")],to.prototype,"grid1Flow",void 0),e([ye("#solar-flow")],to.prototype,"solarFlow",void 0),e([ye("#pv1-flow")],to.prototype,"pv1Flow",void 0),e([ye("#pv2-flow")],to.prototype,"pv2Flow",void 0),e([ye("#pv3-flow")],to.prototype,"pv3Flow",void 0),e([ye("#pv4-flow")],to.prototype,"pv4Flow",void 0),e([ye("#pv5-flow")],to.prototype,"pv5Flow",void 0),e([ye("#pv6-flow")],to.prototype,"pv6Flow",void 0),e([ye("#battery-flow")],to.prototype,"batteryFlow",void 0),e([ye("#load-flow")],to.prototype,"loadFlow",void 0),e([ye("#aux-flow")],to.prototype,"auxFlow",void 0),e([ye("#ne-flow")],to.prototype,"neFlow",void 0),e([ye("#ne1-flow")],to.prototype,"ne1Flow",void 0),to=e([le("sunsynk-power-flow-card")],to),window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:Et("common.description"),configurable:!0});var no,ao={exports:{}}; +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 ye(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pe;const ge=((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)})(pe||(pe=ye(["\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,_e;!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"}(_e||(_e={}));var ve={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",pv5_name:"PV5",pv6_name:"PV6",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"},we={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",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",pv5_name:"PV5 Navn",pv6_name:"PV6 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"}},be={common:ve,errors:we,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",pv5_name:"PV5",pv6_name:"PV6",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Ce={common:Ae,errors:Pe,config:Le},Ee={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",pv5_name:"PV5",pv6_name:"PV6",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",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},ke={common:Ee,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",pv5_name:"PV5",pv6_name:"PV6",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"},Be={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Te={common:Se,errors:Oe,config:Be},Ie={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",pv5_name:"PV5",pv6_name:"PV6",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"},Ve={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"},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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Ge={common:Ie,errors:Ve,config:De},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",pv5_name:"PV5",pv6_name:"PV6",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"},Re={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é"},je={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},He={common:ze,errors:Re,config:je},We={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",pv5_name:"PV5",pv6_name:"PV6",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"},Ue={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"},Fe={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},Qe={common:We,errors:Ue,config:Fe},Ze={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",pv5_name:"PV5",pv6_name:"PV6",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 Макс. Мощность",pv5_max_power:"PV5 Макс. Мощность",pv6_max_power:"PV6 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",pv5_name:"PV5 Название",pv6_name:"PV6 Название",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"}},Ke={common:Ze,errors:Ye,config:Xe},Je={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",pv5_name:"PV5",pv6_name:"PV6",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",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},et={common:Je,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",pv5_name:"PV5",pv6_name:"PV6",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},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",pv5_name:"PV5",pv6_name:"PV6",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",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",pv5_max_power:"Màxima Potència PV5",pv6_max_power:"Màxima Potència PV6",pv1_name:"Nom PV1",pv2_name:"Nom PV2",pv3_name:"Nom PV3",pv4_name:"Nom PV4",pv5_name:"Nom PV5",pv6_name:"Nom PV6",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"}},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",pv5_name:"PV5",pv6_name:"PV6",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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},ht={common:dt,errors:ct,config:ut},yt={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",pv5_name:"PFV5",pv6_name:"PFV6",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"},pt={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"},gt={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",pv5_max_power:"PV5 Max Power",pv6_max_power:"PV6 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",pv5_name:"PV5 Name",pv6_name:"PV6 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"}},ft={common:yt,errors:pt,config:gt},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",pv5_name:"PV5",pv6_name:"PV6",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"},_t={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"},vt={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",pv5_max_power:"PV5 Max Effekt",pv6_max_power:"PV6 Max Effekt",pv1_name:"PV1 Namn",pv2_name:"PV2 Namn",pv3_name:"PV3 Namn",pv4_name:"PV4 Namn",pv5_name:"PV5 Namn",pv6_name:"PV6 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"}},wt={common:mt,errors:_t,config:vt},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",pv5_name:"PV5",pv6_name:"PV6",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 Макс. Потужність",pv5_max_power:"PV5 Макс. Потужність",pv6_max_power:"PV6 Макс. Потужність",pv1_name:"PV1 Назва",pv2_name:"PV2 Назва",pv3_name:"PV3 Назва",pv4_name:"PV4 Назва",pv5_name:"PV4 Назва",pv6_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"}},Pt={common:xt,errors:bt,config:At};const Lt={hass:null},Ct={da:Object.freeze({__proto__:null,common:ve,config:xe,default:be,errors:we}),de:Object.freeze({__proto__:null,common:Ae,config:Le,default:Ce,errors:Pe}),en:Object.freeze({__proto__:null,common:Ee,config:Me,default:ke,errors:Ne}),es:Object.freeze({__proto__:null,common:Se,config:Be,default:Te,errors:Oe}),et:Object.freeze({__proto__:null,common:Ie,config:De,default:Ge,errors:Ve}),fr:Object.freeze({__proto__:null,common:ze,config:je,default:He,errors:Re}),nl:Object.freeze({__proto__:null,common:We,config:Fe,default:Qe,errors:Ue}),ru:Object.freeze({__proto__:null,common:Ze,config:Xe,default:Ke,errors:Ye}),cs:Object.freeze({__proto__:null,common:Je,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:yt,config:gt,default:ft,errors:pt}),sv:Object.freeze({__proto__:null,common:mt,config:vt,default:wt,errors:_t}),uk:Object.freeze({__proto__:null,common:xt,config:At,default:Pt,errors:bt})};function Et(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]),Ct[o])}catch(t){i=e.split(".").reduce(((e,t)=>e[t]),Ct.en)}return void 0===i&&(i=e.split(".").reduce(((e,t)=>e[t]),Ct.en)),""!==t&&""!==n&&(i=i.replace(t,n)),i}var Nt={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:fe.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:Et("common.pv1_name"),pv2_name:Et("common.pv2_name"),pv3_name:Et("common.pv3_name"),pv4_name:Et("common.pv4_name"),pv5_name:Et("common.pv5_name"),pv6_name:Et("common.pv6_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:Et("common.aux_name"),aux_daily_name:Et("common.daily_aux"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:Et("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:Et("common.daily_load")},grid:{colour:"#5490c2",grid_name:Et("common.grid_name"),label_daily_grid_buy:Et("common.daily_grid_buy"),label_daily_grid_sell:Et("common.daily_grid_sell"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:Et("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,5,6],kt=[0,1,2,3],St=[!0,!1],Ot=[!0,!1],Bt=[0,1,2],Tt=["off","0","off-grid","off grid","offgrid"],It=["on","1","on-grid","on grid","ongrid"],Vt="sunsynk-content-card-editor";var Dt,Gt,zt,Rt,jt;!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"}(Dt||(Dt={})),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"}(Rt||(Rt={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(jt||(jt={}));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 Wt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft,Qt={exports:{}};var Zt,Yt,Xt=(Ft||(Ft=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 Wt&&Wt&&Wt.Object===Object&&Wt,h="object"==typeof self&&self&&self.Object===Object&&self,y=u||h||Function("return this")(),p=t&&!t.nodeType&&t,g=p&&e&&!e.nodeType&&e,f=g&&g.exports===p,m=f&&u.process,_=function(){try{var e=g&&g.require&&g.require("util").types;return e||m&&m.binding&&m.binding("util")}catch(e){}}(),v=_&&_.isTypedArray,w=Array.prototype,x=Function.prototype,b=Object.prototype,A=y["__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?y.Buffer:void 0,S=y.Symbol,O=y.Uint8Array;k&&k.allocUnsafe;var B,T,I=(B=Object.getPrototypeOf,T=Object,function(e){return B(T(e))}),V=Object.create,D=b.propertyIsEnumerable,G=w.splice,z=S?S.toStringTag:void 0,R=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),j=k?k.isBuffer:void 0,H=Math.max,W=Date.now,U=ue(y,"Map"),F=ue(Object,"create"),Q=function(){function e(){}return function(t){if(!Ae(t))return{};if(V)return V(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(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 Z,map:new(U||Y),string:new Z}},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},K.prototype.clear=function(){this.__data__=new Y,this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var a=n.__data__;if(!U||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=E.call(e);return a&&(t?e[z]=n:delete e[z]),o}(e):function(e){return E.call(e)}(e)}function oe(e){return Pe(e)&&ae(e)==o}function ie(e){return!(!Ae(e)||function(e){return!!C&&C 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=ye(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 K),Ae(i))!function(e,t,n,a,o,i,s){var l=pe(e,n),d=pe(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,y=void 0===h;if(y){var p=_e(d),g=!p&&we(d),f=!p&&!g&&Le(d);h=d,p||g||f?_e(l)?h=l:Pe(u=l)&&ve(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")&&!D.call(e,"callee")},_e=Array.isArray;function ve(e){return null!=e&&be(e.length)&&!xe(e)}var we=j||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=v?function(e){return function(t){return e(t)}}(v):function(e){return Pe(e)&&be(e.length)&&!!d[ae(e)]};function Ce(e){return ve(e)?J(e):re(e)}var Ee,Ne=(Ee=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=Ee.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?ve(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===zt.WATT_HOUR&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").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))};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),Jt(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",yn="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",pn="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",gn="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,Vn,Dn,Gn,zn,Rn,jn,Hn,Wn,Un,Fn,Qn,Zn,Yn,Xn,Kn,Jn,qn,$n,ea,ta,na,aa,oa,ia,ra,sa,la,da,ca,ua,ha,ya,pa,ga;var fa,ma,_a,va,wa,xa,ba,Aa,Pa,La,Ca,Ea,Na,Ma,ka,Sa,Oa,Ba,Ta,Ia,Va,Da,Ga,za,Ra,ja,Ha,Wa,Ua,Fa,Qa,Za,Ya,Xa,Ka,Ja,qa,$a,eo,to,no,ao,oo,io,ro,so,lo;class co{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 Io(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(Et("common.version"),": ").concat("6.3.0"," "),"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 Vo=class extends re{constructor(){super(...arguments),this.durationPrev={},this.durationCur={}}static get styles(){return ge}static async getConfigElement(){return await Promise.resolve().then((function(){return Fo})),document.createElement(Vt)}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_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"),h=this.getEntity("entities.inverter_current_164"),y=this.getEntity("entities.inverter_status_59",{state:""}),p=this.getEntity("entities.inverter_power_175"),g=this.getEntity("entities.priority_load_243",{state:e.entities.priority_load_243?.toString()??"false"}),f=this.getEntity("entities.use_timer_248",{state:e.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:e.battery.shutdown_soc?.toString()??""}),B=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),T=this.getEntity("entities.battery_soh",{state:""}),I=this.getEntity("battery.soc_end_of_charge",{state:e.battery.soc_end_of_charge?.toString()??""}),V=this.getEntity("entities.battery2_voltage_183"),D=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:e.battery2.shutdown_soc?.toString()??""}),Z=this.getEntity("battery2.shutdown_soc_offgrid",{state:e.battery2.shutdown_soc_offgrid?.toString()??""}),Y=this.getEntity("entities.battery2_soh",{state:""}),X=this.getEntity("battery2.soc_end_of_charge",{state:e.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"),ee=this.getEntity("entities.non_essential_load2"),te=this.getEntity("entities.non_essential_load3"),ne=this.getEntity("entities.non_essential_load1_extra"),ae=this.getEntity("entities.non_essential_load2_extra"),oe=this.getEntity("entities.non_essential_load3_extra"),ie=this.getEntity("entities.essential_load1"),re=this.getEntity("entities.essential_load2"),se=this.getEntity("entities.essential_load3"),le=this.getEntity("entities.essential_load4"),de=this.getEntity("entities.essential_load5"),ce=this.getEntity("entities.essential_load6"),ue=this.getEntity("entities.aux_connected_status",{state:"on"}),he=this.getEntity("entities.aux_load1"),pe=this.getEntity("entities.aux_load2"),ge=this.getEntity("entities.essential_load1_extra"),me=this.getEntity("entities.essential_load2_extra"),ve=this.getEntity("entities.essential_load3_extra"),we=this.getEntity("entities.essential_load4_extra"),xe=this.getEntity("entities.essential_load5_extra"),be=this.getEntity("entities.essential_load6_extra"),Ae=this.getEntity("entities.load_power_L1"),Pe=this.getEntity("entities.load_power_L2"),Le=this.getEntity("entities.load_power_L3"),Ce=this.getEntity("entities.aux_load1_extra"),Ee=this.getEntity("entities.aux_load2_extra"),Ne=this.getEntity("entities.grid_ct_power_172"),Me=this.getEntity("entities.grid_ct_power_L2"),ke=this.getEntity("entities.grid_ct_power_L3"),Se=this.getEntity("entities.grid_ct_power_total"),Oe=this.getEntity("entities.grid_connected_status_194",{state:"on"}),Be=this.getEntity("entities.grid_power_169"),Te=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),Ie=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),Ve=this.getEntity("entities.grid_voltage",null),De=this.getEntity("entities.prepaid_units"),Ge=this.getEntity("entities.max_sell_power"),ze=this.getEntity("entities.pv1_voltage_109"),Re=this.getEntity("entities.pv1_current_110"),je=this.getEntity("entities.pv2_voltage_111"),He=this.getEntity("entities.pv2_current_112"),We=this.getEntity("entities.pv3_voltage_113"),Ue=this.getEntity("entities.pv3_current_114"),Fe=this.getEntity("entities.pv4_voltage_115"),Qe=this.getEntity("entities.pv4_current_116"),Ze=this.getEntity("entities.pv5_voltage"),Ye=this.getEntity("entities.pv5_current"),Xe=this.getEntity("entities.pv6_voltage"),Ke=this.getEntity("entities.pv6_current"),Je=this.getEntity("entities.pv1_power_186"),qe=this.getEntity("entities.pv2_power_187"),$e=this.getEntity("entities.pv3_power_188"),et=this.getEntity("entities.pv4_power_189"),tt=this.getEntity("entities.pv5_power"),nt=this.getEntity("entities.pv6_power"),at=this.getEntity("entities.remaining_solar"),ot=this.getEntity("entities.solar_sell_247",{state:"undefined"}),it=this.getEntity("entities.pv_total"),rt=this.getEntity("entities.total_pv_generation"),{invert_aux:st}=e.load,lt=J.toPower(st),{invert_grid:dt}=e.grid,ct=Ne.toPower(dt),ut=Me.toPower(dt),ht=ke.toPower(dt),yt=e.entities?.grid_ct_power_total?Se.toPower(dt):ct+ut+ht,pt=e.inverter.three_phase?yt:ct,gt=Ve.isNaN()?null:Ve.toNum(0),ft=k.isNaN()?null:k.toNum(0),mt=U.isNaN()?null:U.toNum(0),_t=e.inverter?.modern,vt=e.decimal_places,wt=e.decimal_places_energy,xt=this.colourConvert(e.load?.colour),bt=this.calculateAuxLoadColour(J.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,At=this.colourConvert(e.load?.aux_off_colour||bt),Pt=this.calculateAuxLoadColour(he.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Ct=this.calculateAuxLoadColour(pe.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Nt=this.calculateEssentialLoadColour(ie.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Vt=this.calculateEssentialLoadColour(re.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Dt=this.calculateEssentialLoadColour(se.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Ht=this.calculateEssentialLoadColour(le.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Wt=this.calculateEssentialLoadColour(de.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt,Ut=this.calculateEssentialLoadColour(ce.toPower(!1),qt.toNum(e.load?.off_threshold,0))||xt;e.title_colour=this.colourConvert(e.title_colour);const Ft=e.load?.show_daily,Qt=e.grid?.show_nonessential;let Zt=e.entities?.grid_connected_status_194?Oe.state:"on";It.includes(Zt.toLowerCase())||Tt.includes(Zt.toLowerCase())||(Zt="on");const Yt=e.entities?.aux_connected_status?ue.state:"on",Xt=e.entities?.load_frequency_192?u.toNum(2):0,Kt=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?c.toNum(0):c.toNum(1):0,Jt=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",co=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?w.toNum(0):w.toNum(1):"",uo=e.entities?.inverter_current_164?h.toNum(1):0,ho=e.entities?.inverter_current_L2?x.toNum(1):"",yo=e.entities?.inverter_current_L3?b.toNum(1):"",po=e.entities?.battery_voltage_183?P.toNum(1):0,go=e.entities?.battery2_voltage_183?V.toNum(1):0,fo=e.entities?.inverter_power_175?p.toPower():0,mo=e.entities?.grid_power_169?Be.toPower():0,{invert_load:_o}=e.load,vo=e.entities?.load_power_L1?Ae.toPower(_o):"",wo=e.entities?.load_power_L2?Pe.toPower(_o):"",xo=e.entities?.load_power_L3?Le.toPower(_o):"",bo=this.colourConvert(e.grid?.colour),Ao=this.colourConvert(e.grid?.export_colour||bo),Po=this.colourConvert(e.grid?.no_grid_colour||bo);let Lo;switch(!0){case pt<-qt.toNum(e.grid?.off_threshold,0):Lo=Ao;break;case pt>=-qt.toNum(e.grid?.off_threshold,0)&&pt<=qt.toNum(e.grid?.off_threshold,0):Lo=Po;break;default:Lo=bo}const Co=Math.abs($.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Lo:"grey",Eo=Math.abs(ee.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Lo:"grey",No=Math.abs(te.toPower(!1))>qt.toNum(e.grid?.off_threshold,0)?Lo:"grey",Mo=this.colourConvert(e.grid?.grid_off_colour||Lo);let ko=e.grid?.additional_loads;kt.includes(ko)||(ko=0),e.solar;const So=e.grid?.show_daily_buy,Oo=e.grid?.show_daily_sell,Io=this.colourConvert(e.battery?.colour),Vo=this.colourConvert(e.battery?.charge_colour||Io),Do=this.colourConvert(e.battery2?.colour),Go=this.colourConvert(e.battery2?.charge_colour||Do),zo=e.battery?.show_daily,Ro=e.solar?.show_daily;let jo=e.load?.show_aux;Ot.includes(jo)||(jo=!1);const Ho=e.load?.show_daily_aux;let Wo=e.load?.additional_loads;(!Mt.includes(Wo)||this.isFullCard&&[3,4,5,6].includes(Wo)&&jo||this.isFullCard&&3===Wo||!e.wide&&Wo>=5)&&(Wo=0);let Uo=e.load?.aux_loads;Bt.includes(Uo)||(Uo=0);const Fo=e.load?.aux_type,Qo=this.getEntity("load.load1_icon",{state:e.load?.load1_icon?.toString()??""}).state,Zo=this.getEntity("load.load2_icon",{state:e.load?.load2_icon?.toString()??""}).state,Yo=this.getEntity("load.load3_icon",{state:e.load?.load3_icon?.toString()??""}).state,Xo=this.getEntity("load.load4_icon",{state:e.load?.load4_icon?.toString()??""}).state,Ko=this.getEntity("load.load5_icon",{state:e.load?.load5_icon?.toString()??""}).state,Jo=this.getEntity("load.load6_icon",{state:e.load?.load6_icon?.toString()??""}).state,qo=this.getEntity("load.aux_load1_icon",{state:e.load?.aux_load1_icon?.toString()??""}).state,$o=this.getEntity("load.aux_load2_icon",{state:e.load?.aux_load2_icon?.toString()??""}).state,ei=this.getEntity("grid.nonessential_icon",{state:e.grid?.nonessential_icon?.toString()??""}).state,ti=this.getEntity("grid.load1_icon",{state:e.grid?.load1_icon?.toString()??""}).state,ni=this.getEntity("grid.load2_icon",{state:e.grid?.load2_icon?.toString()??""}).state,ai=this.getEntity("grid.load3_icon",{state:e.grid?.load3_icon?.toString()??""}).state,oi=this.getEntity("grid.import_icon",{state:e.grid?.import_icon?.toString()??""}).state,ii=this.getEntity("grid.disconnected_icon",{state:e.grid?.disconnected_icon?.toString()??""}).state,ri=this.getEntity("grid.export_icon",{state:e.grid?.export_icon?.toString()??""}).state,si=!!e.entities.remaining_solar&&qt.convertValueNew(at.state,at.attributes?.unit_of_measurement,vt),li=!!e.entities.total_pv_generation&&qt.convertValueNew(rt.state,rt.attributes?.unit_of_measurement,2),di=e.large_font,ci=this.colourConvert(e.inverter?.colour),ui=e.inverter?.autarky,hi=!!e.entities.use_timer_248&&f.state,yi=!!e.entities.priority_load_243&&g.state;let pi=C.toPower(e.battery?.invert_power),gi=G.toPower(e.battery2?.invert_power);const fi=this.getEntity("card_height",{state:e.card_height?.toString()??""}).state,mi=this.getEntity("card_width",{state:e.card_width?.toString()??""}).state,_i=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,vi=pt>=0?Te.toNum(_i):Ie.toNum(_i);let wi=fe.Sunsynk;Object.values(fe).includes(e.inverter.model)&&(wi=e.inverter.model);let xi="";const bi=Bo.getInstance(wi);_t||(xi=bi.image);let Ai=!1;this.isCompactCard&&(Ai=!0);const Pi=Je.toPower(),Li=qe.toPower(),Ci=$e.toPower(),Ei=et.toPower(),Ni=tt.toPower(),Mi=nt.toPower(),ki=Pi+Li+Ci+Ei+Ni+Mi,Si=e.entities?.pv_total?it.toNum():ki,Oi=e.solar.dynamic_colour?qt.toNum(Si,0)>qt.toNum(e.solar?.off_threshold,0)?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour);let Bi,Ti,Ii=e.inverter?.three_phase;St.includes(Ii)||(Ii=!1);const{essential_power:Vi,nonessential_power:Di}=e.entities;Ti=!1===Ii?"none"!==Di&&Di?q.toPower():ct-mo:"none"!==Di&&Di?q.toPower():ct+ut+ht-mo,Bi="none"!==Vi&&Vi?K.toPower(_o):!0===Ii&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(vo)+Number(wo)+Number(xo):fo+mo-lt;const Gi={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??""})},zi={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??""})},Ri={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??""})},ji={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??""})},Hi={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??""})},Wi={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??""})};let Ui=e.battery?.count;(!e.wide||1!==Ui&&2!==Ui)&&(Ui=1);const Fi=B.toNum(),Qi=O.toNum(),Zi=Z.toNum()||Fi,Yi=Q.toNum()||Qi,Xi={capacity:Qi,entityID:""};switch(!0){case"off"===f.state:case!hi: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:Xi.show=!1;break;default:{Xi.show=!0;function il(t){const n=[];[Gi,zi,Ri,ji,Hi,Wi].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=[Gi,zi,Ri,ji,Hi,Wi][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}})),rl(n,t);for(let a=0;ai&&(t>=o||t{e.start.getTime()50?"on":"off"),null!=ft&&wi==fe.Solis&&0===ft&&(pi=-pi),null!=mt&&wi==fe.Solis&&0===mt&&(gi=-gi);let Ki=I.toNum();Ki=Math.max(50,Math.min(Ki,100));let Ji=X.toNum()||Ki;Ji=Math.max(50,Math.min(Ji,100));const qi=2===Ui?pi+gi:pi;let $i=0;if(e.show_battery)if(!0==!Xi.show)(!0===e.battery.invert_flow?pi<0:pi>0)?$i="on"!==Zt&&"1"!==Zt&&"on-grid"!==Zt.toLowerCase()||Xi.show?"off"!==Zt&&"0"!==Zt&&"off-grid"!==Zt.toLowerCase()||!B.notEmpty()||Xi.show?Qi:Fi:Qi:(!0===e.battery.invert_flow?pi>0:pi<0)&&($i=Ki);else $i=bi.getBatteryCapacity(pi,Zt,Qi,Xi,L,Ki,e.battery.invert_flow);let er=0;if(e.show_battery)if(!0==!Xi.show)(!0===e.battery2.invert_flow?gi<0:gi>0)?er="on"!==Zt&&"1"!==Zt&&"on-grid"!==Zt.toLowerCase()||Xi.show?"off"!==Zt&&"0"!==Zt&&"off-grid"!==Zt.toLowerCase()||!Z.notEmpty()||Xi.show?Yi:Zi:Yi:(!0===e.battery2.invert_flow?gi>0:gi<0)&&(er=Ji);else er=bi.getBatteryCapacity(gi,Zt,Yi,Xi,D,Ji,e.battery2.invert_flow);let tr="",nr="",ar="",or="";const ir=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}),rr=this.getEntity("battery2.energy",{state:e.battery2.energy?.toString()??""});let sr=ir.toPower(!1),lr=rr.toPower(!1);po&&S.notEmpty()&&(sr=qt.toNum(po*S.toNum(0),0)),go&&F.notEmpty()&&(lr=qt.toNum(go*F.toNum(0),0));const dr=sr+lr;if(e.show_battery||0!==sr||0!==lr){const ll=(e,t,n,a,o,i)=>0===o?(e.toNum(0)-t)/100*a*60*60:(i?o<0:o>0)?(e.toNum(0)-n)/100*a/Math.abs(o)*60*60:(i?o>0:o<0)?(n-e.toNum(0))/100*a/Math.abs(o)*60*60:0;let dl=0;if(0!==sr){dl=ll(L,Qi,$i,sr,pi,e.battery.invert_flow);const ul=new Date,hl=new Date(ul.getTime()+1e3*dl),yl=hl.getHours(),pl=hl.getMinutes().toString().padStart(2,"0"),gl=yl.toString().padStart(2,"0");tr="".concat(gl,":").concat(pl);const fl=Math.floor(dl/86400),ml=Math.floor(dl%86400/3600),_l=Math.floor(dl%3600/60);fl>0&&(ar+="".concat(fl," ").concat(Et("common.days"),", ")),(ml>0||fl>0)&&(ar+="".concat(ml," ").concat(Et("common.hrs"),", ")),ar+="".concat(_l," ").concat(Et("common.min"))}let cl=0;if(0!==lr){cl=ll(D,Yi,er,lr,gi,e.battery2.invert_flow);const vl=new Date,wl=new Date(vl.getTime()+1e3*cl),xl=wl.getHours(),bl=wl.getMinutes().toString().padStart(2,"0"),Al=xl.toString().padStart(2,"0");nr="".concat(Al,":").concat(bl);const Pl=Math.floor(cl/86400),Ll=Math.floor(cl%86400/3600),Cl=Math.floor(cl%3600/60);Pl>0&&(or+="".concat(Pl," ").concat(Et("common.days"),", ")),(Ll>0||Pl>0)&&(or+="".concat(Ll," ").concat(Et("common.hrs"),", ")),or+="".concat(Cl," ").concat(Et("common.min"))}}const cr=-2<=E.toNum(0)&&E.toNum(0)<=2&&L.toNum(0)>=99,ur=-2<=z.toNum(0)&&z.toNum(0)<=2&&D.toNum(0)>=99,hr=2===Ui?cr&&ur:cr;let yr,pr;yr=(!0===e.battery.invert_flow?pi>0&&!cr:pi<0&&!cr)?Vo:Io,pr=(!0===e.battery2.invert_flow?gi>0&&!ur:gi<0&&!ur)?Go:Do;let gr="",fr="",mr=y.state,_r=!1;wi==fe.Solis&&(mr=y.isNaN()?y.toString():y.toNum(0).toString());const vr=bi.statusGroups;if(vr)for(const El of Object.keys(vr)){const Nl=vr[El],{states:Ml,color:kl,message:Sl}=Nl;if(Ml.includes(mr.toLowerCase())){gr=kl,fr=Sl,_r=!0;break}}_r||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(gr="transparent",fr="Status"):(gr="transparent",fr=""));let wr="transparent",xr="",br="transparent",Ar="",Pr=!1,Lr=!1;if([fe.GoodweGridMode,fe.Goodwe,fe.Huawei].includes(wi)){const Ol=bi.batteryStatusGroups;if(Ol)for(const Bl of Object.keys(Ol)){const Tl=Ol[Bl],{states:Il,color:Vl,message:Dl}=Tl;if(!Pr&&Il.includes(M.state.toLowerCase())&&(wr=Vl,xr=Dl,Pr=!0),!Lr&&Il.includes(j.state.toLowerCase())&&(br=Vl,Ar=Dl,Lr=!0),Pr&&Lr)break}Pr||("none"!==e.entities?.battery_status&&e.entities?.battery_status?(wr="transparent",xr="Status"):(wr="transparent",xr="")),Lr||("none"!==e.entities?.battery2_status&&e.entities?.battery2_status?(br="transparent",Ar="Status"):(br="transparent",Ar=""))}const Cr=t.toNum()+a.toNum(),Er=n.toNum()+o.toNum(),Nr=s.toNum()+Cr,Mr=i.toNum()+Er,kr=0!=Mr?Math.max(Math.min(Math.round(100*Nr/Mr),100),0):0,Sr=0!=Nr?Math.max(Math.min(Math.round(100*Mr/Nr),100),0):0,Or=Si+qt.toNum("".concat((!0===e.battery.invert_flow?qi<0:qi>0)?Math.abs(qi):0))+qt.toNum("".concat(lt<0?-1*lt:0)),Br=Bi+Math.max(Ti,0)+qt.toNum("".concat(lt>0?lt:0))+qt.toNum("".concat((!0===e.battery.invert_flow?qi>0:qi<0)?Math.abs(qi):0)),Tr=0!=Br?Math.max(Math.min(Math.round(100*Or/Br),100),0):0,Ir=0!=Or?Math.max(Math.min(Math.round(100*Br/Or),100),0):0,Vr=(qt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,Dr=qt.toNum(e.min_line_width)||1,Gr=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(0),zr=this.getEntity("solar.max_power",{state:e.solar.max_power?.toString()??""}),Rr=this.getEntity("load.max_power",{state:e.load.max_power?.toString()??""}),jr=this.getEntity("grid.max_power",{state:e.grid.max_power?.toString()??""}),Hr=e.solar.max_power?this.dynamicLineWidth(Pi,zr.toNum()||Pi,Vr,Dr):Dr,Wr=e.solar.max_power?this.dynamicLineWidth(Li,zr.toNum()||Li,Vr,Dr):Dr,Ur=e.solar.max_power?this.dynamicLineWidth(Ci,zr.toNum()||Ci,Vr,Dr):Dr,Fr=e.solar.max_power?this.dynamicLineWidth(Ei,zr.toNum()||Ei,Vr,Dr):Dr,Qr=e.solar.max_power?this.dynamicLineWidth(Ni,zr.toNum()||Ni,Vr,Dr):Dr,Zr=e.solar.max_power?this.dynamicLineWidth(Mi,zr.toNum()||Mi,Vr,Dr):Dr,Yr=e.battery.max_power?this.dynamicLineWidth(Math.abs(qi),Gr||Math.abs(qi),Vr,Dr):Dr,Xr=e.load.max_power?this.dynamicLineWidth(Math.abs(Bi),Rr.toNum()||Math.abs(Bi),Vr,Dr):Dr,Kr=e.load.max_power?this.dynamicLineWidth(Math.abs(lt),Rr.toNum()||Math.abs(lt),Vr,Dr):Dr,Jr=e.grid.max_power?this.dynamicLineWidth(Math.abs(pt),jr.toNum()||Math.abs(pt),Vr,Dr):Dr,qr=e.grid.max_power?this.dynamicLineWidth(Math.abs(mo),jr.toNum()||Math.abs(mo),Vr,Dr):Dr,$r=e.grid.max_power?this.dynamicLineWidth(Math.abs(Ti),jr.toNum()||Math.abs(Ti),Vr,Dr):Dr,es=e.solar.max_power?this.dynamicLineWidth(Si,zr.toNum()||Si,Vr,Dr):Dr;if(e&&e.solar&&e.solar.animation_speed){const Gl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Si/(zr.toNum()||Si));this.changeAnimationSpeed("solar",Gl)}if(e&&e.solar&&e.solar.animation_speed){const zl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Pi/(zr.toNum()||Pi));this.changeAnimationSpeed("pv1",zl)}if(e&&e.solar&&e.solar.animation_speed){const Rl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Li/(zr.toNum()||Li));this.changeAnimationSpeed("pv2",Rl)}if(e&&e.solar&&e.solar.animation_speed){const jl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Ci/(zr.toNum()||Ci));this.changeAnimationSpeed("pv3",jl)}if(e&&e.solar&&e.solar.animation_speed){const Hl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Ei/(zr.toNum()||Ei));this.changeAnimationSpeed("pv4",Hl)}if(e&&e.solar&&e.solar.animation_speed){const Wl=e.solar.animation_speed-(e.solar.animation_speed-1)*(Ni/(zr.toNum()||Ni));this.changeAnimationSpeed("pv5",Wl)}if(e&&e.solar&&e.solar.animation_speed){const Ul=e.solar.animation_speed-(e.solar.animation_speed-1)*(Mi/(zr.toNum()||Mi));this.changeAnimationSpeed("pv6",Ul)}if(e&&e.battery&&e.battery.animation_speed){const Fl=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(qi)/(Gr||Math.abs(qi)));this.changeAnimationSpeed("battery",Fl)}if(e&&e.load&&e.load.animation_speed){const Ql=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Bi)/(Rr.toNum()||Math.abs(Bi)));this.changeAnimationSpeed("load",Ql),this.changeAnimationSpeed("load1",Ql)}if(e&&e.load&&e.load.animation_speed){const Zl=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(lt)/(Rr.toNum()||Math.abs(lt)));this.changeAnimationSpeed("aux",Zl),this.changeAnimationSpeed("aux1",Zl)}if(e&&e.grid&&e.grid.animation_speed){const Yl=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(pt)/(jr.toNum()||Math.abs(pt)));this.changeAnimationSpeed("grid1",Yl),this.changeAnimationSpeed("grid",Yl),this.changeAnimationSpeed("grid2",Yl)}if(e&&e.grid&&e.grid.animation_speed){const Xl=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(Ti)/(jr.toNum()||Math.abs(Ti)));this.changeAnimationSpeed("ne",Xl)}const ts=0===Si?0:"off"!==yi&&yi?Si/(Ii?Bi+Math.max(lt,0):Bi)*100:!0===e.battery.invert_flow?qi<0?Si/(Ii?Bi+Math.max(lt,0):Bi)*100:(Si-Math.abs(qi))/(Ii?Bi+Math.max(lt,0):Bi)*100:qi>0?Si/(Ii?Bi+Math.max(lt,0):Bi)*100:(Si-Math.abs(qi))/(Ii?Bi+Math.max(lt,0):Bi)*100,ns=!0===e.battery.invert_flow?qi>=0?0:Math.abs(qi)/(Ii?Bi+Math.max(lt,0):Bi)*100:qi<=0?0:Math.abs(qi)/(Ii?Bi+Math.max(lt,0):Bi)*100,as=ts+ns,os=0===as?0:ts/as*100,is=0===as?0:ns/as*100;let rs=0,ss=0,ls=0;as>100?(rs=qt.toNum(os,0),ss=qt.toNum(is,0)):(rs=qt.toNum(Math.min(ts,100),0),ss=qt.toNum(Math.min(ns,100),0),ls=pt>0?100-(rs+ss):0);const ds=0===Si||(!0===e.battery.invert_flow?qi<=0:qi>=0)?0:"off"!==yi&&yi?(Si-Bi)/Math.abs(qi)*100:Si/Math.abs(qi)*100,cs=(!0===e.battery.invert_flow?pi<=0:pi>=0)||pt<=0?0:"on"===yi?Si-Bi>=Math.abs(qi)?0:(pt-Math.max(Bi-Si,0))/Math.abs(qi)*100:Si>=Math.abs(qi)?0:(Math.abs(qi)-Si)/Math.abs(qi)*100,us=ds+cs,hs=0===us?0:ds/us*100,ys=0===us?0:cs/us*100;let ps,gs,fs,ms,_s,vs=0,ws=0;switch(us>100?(vs=qt.toNum(hs,0),ws=qt.toNum(ys,0)):(vs=qt.toNum(Math.min(ds,100),0),ws=qt.toNum(Math.min(cs,100),0)),!0){case vs>=qt.toNum(e.battery?.path_threshold,0):ps=Oi;break;case ws>=qt.toNum(e.battery?.path_threshold,0):ps=Lo;break;default:ps=yr}switch(!0){case rs>=qt.toNum(e.load?.path_threshold,0):gs=Oi;break;case ss>=qt.toNum(e.load?.path_threshold,0):gs=yr;break;case ls>=qt.toNum(e.load?.path_threshold,0):gs=Lo;break;default:gs=xt}switch(!0){case rs>=qt.toNum(e.load?.path_threshold,0):fs=Oi;break;case ss>=qt.toNum(e.load?.path_threshold,0):fs=yr;break;case ls>=qt.toNum(e.load?.path_threshold,0):case ws>=qt.toNum(e.battery?.path_threshold,0):fs=Lo;break;default:fs=ci}switch(!0){case ts>=100&&ns<=5&&pt-Ti<50&&e.load.dynamic_icon:ms=nn,_s=1;break;case ns>=100&&ts<=5&&pt-Ti<50&&e.load.dynamic_icon:ms=en,_s=0;break;case ts<5&&ns<5&&ls>0&&e.load.dynamic_icon:ms=tn,_s=0;break;default:ms=$t,_s=0}const{batteryIcon:xs,batteryCharge:bs,stopColour:As,battery0:Ps}=To.convert(L),{batteryIcon:Ls,batteryCharge:Cs,stopColour:Es,battery0:Ns}=To.convert(D),Ms=this.getEntity("solar.pv1_max_power",{state:e.solar.pv1_max_power?.toString()??""}),ks=this.getEntity("solar.pv2_max_power",{state:e.solar.pv2_max_power?.toString()??""}),Ss=this.getEntity("solar.pv3_max_power",{state:e.solar.pv3_max_power?.toString()??""}),Os=this.getEntity("solar.pv4_max_power",{state:e.solar.pv4_max_power?.toString()??""}),Bs=this.getEntity("solar.pv5_max_power",{state:e.solar.pv5_max_power?.toString()??""}),Ts=this.getEntity("solar.pv6_max_power",{state:e.solar.pv6_max_power?.toString()??""}),Is=e.solar.max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Si/zr.toNum()*100,200),0):100,Vs=e.solar.pv1_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Pi/Ms.toNum()*100,200),0):100,Ds=e.solar.pv2_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Li/ks.toNum()*100,200),0):100,Gs=e.solar.pv3_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Ci/Ss.toNum()*100,200),0):100,zs=e.solar.pv4_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Ei/Os.toNum()*100,200),0):100,Rs=e.solar.pv5_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Ni/Bs.toNum()*100,200),0):100,js=e.solar.pv6_max_power&&0!==e.solar.efficiency?qt.toNum(Math.min(Mi/Ts.toNum()*100,200),0):100;let Hs,Ws,Us,Fs;switch(!0){case pt<0&&It.includes(Zt.toLowerCase()):Hs=ri,Ws=Lo;break;case pt>=0&&It.includes(Zt.toLowerCase()):Hs=oi,Ws=Lo;break;case 0===pt&&Tt.includes(Zt.toLowerCase()):Hs=ii,Ws=Mo;break;default:Hs=oi,Ws=Lo}switch(!0){case!e.show_solar&&e.show_battery&&0===Wo:Us="138",Fs="280";break;case!e.show_solar&&e.show_battery&&[1,2,3,4].includes(Wo):Us="70",Fs="350";break;case e.show_solar&&!e.show_battery&&[2,3,4].includes(Wo):Us="0",Fs="350";break;case e.show_solar&&!e.show_battery&&[0,1].includes(Wo):Us="0",Fs="315";break;case!e.show_solar&&!e.show_battery&&0===Wo:Us="115",Fs="225";break;case!e.show_solar&&!e.show_battery&&1===Wo:Us="85",Fs="230";break;case!e.show_solar&&!e.show_battery&&[2,3,4].includes(Wo):Us="65",Fs="285";break;default:Us="0",Fs="408"}const Qs=qt.toNum(e.load?.off_threshold,0),Zs="transparent"===e.load?.off_colour;let Ys=xt,Xs=xt;const Ks={1:[ie],2:[ie],3:[ie],4:[ie,re],5:[ie,re,de],6:[ie,re,de]},Js={2:[re],3:[re,se],4:[se,le],5:[se,le],6:[se,le,ce]},qs={1:[ie],2:[ie,re],4:[ie,re],5:[ie,re,de],6:[ie,re,de]},$s={4:[se,le],5:[se,le],6:[se,le,ce]},el=(e,t)=>((...e)=>e.every((e=>e.toPower(!1)<=Qs)))(...e)?"transparent":t;Zs&&(this.isLiteCard||this.isCompactCard)&&(Ys=el(Ks[Wo]||[],Ys),Xs=el(Js[Wo]||[],Xs)),Zs&&this.isFullCard&&(Ys=el(qs[Wo]||[],Ys),Xs=el($s[Wo]||[],Xs));const tl=Zt.toLowerCase();let nl=Qi,al=Yi;switch(!0){case["on","1","on-grid"].includes(tl):nl=Qi,al=Yi;break;case["off","0","off-grid"].includes(tl):nl=B.notEmpty()?Fi:Qi,al=Z.notEmpty()?Zi:Yi}const ol={config:e,compactMode:Ai,viewBoxYLite:Us,viewBoxHeightLite:Fs,cardHeight:fi,cardWidth:mi,loadColour:xt,load1Colour:Ys,load2Colour:Xs,batteryColour:yr,battery2Colour:pr,gridColour:Lo,isFloating:cr,isFloating2:ur,isFloatingCombined:hr,inverterColour:ci,solarColour:Oi,auxOffColour:At,batteryEnergy:sr,battery2Energy:lr,batteryTotalEnergy:dr,largeFont:di,batteryPower:pi,battery2Power:gi,batteryPowerTotal:qi,batteryDuration:ar,batteryDuration2:or,batteryCapacity:$i,battery2Capacity:er,additionalLoad:Wo,essIconSize:_s,essIcon:ms,stateUseTimer:f,batteryStateMsg:xr,battery2StateMsg:Ar,stateBatterySoc:L,stateBattery2Soc:D,inverterProg:Xi,solarShowDaily:Ro,batteryPercentage:ss,pvPercentage:rs,loadShowDaily:Ft,stateEnergyCostSell:Ie,stateEnergyCostBuy:Te,loadPowerL1:vo,loadPowerL2:wo,loadPowerL3:xo,durationCur:this.durationCur,stateEssentialLoad1:ie,stateEssentialLoad2:re,stateEssentialLoad3:se,stateEssentialLoad4:le,stateEssentialLoad5:de,stateEssentialLoad6:ce,gridPower:ct,gridPowerL2:ut,gridPowerL3:ht,decimalPlaces:vt,decimalPlacesEnergy:wt,stateEssentialLoad1Extra:ge,stateEssentialLoad2Extra:me,stateEssentialLoad3Extra:ve,stateEssentialLoad4Extra:we,stateEssentialLoad5Extra:xe,stateEssentialLoad6Extra:be,stateNonEssentialLoad1Extra:ne,stateNonEssentialLoad2Extra:ae,stateNonEssentialLoad3Extra:oe,loadFrequency:Xt,gridShowDailyBuy:So,gridShowDailySell:Oo,batteryShowDaily:zo,inverterModel:wi,batteryShutdown:Qi,batteryShutdown2:Yi,enableAutarky:ui,autarkyPower:Tr,ratioPower:Ir,ratioEnergy:Sr,autarkyEnergy:kr,shutdownOffGrid2:Zi,shutdownOffGrid:Fi,batteryOneShutdown:nl,batteryTwoShutdown:al,statePV1Current:Re,statePV2Current:He,statePV3Current:Ue,statePV4Current:Qe,statePV5Current:Ye,statePV6Current:Ke,energyCost:vi,inverterCurrent:uo,inverterCurrentL2:ho,inverterCurrentL3:yo,stateRadiatorTemp:_,inverterVoltage:Kt,inverterVoltageL2:Jt,inverterVoltageL3:co,batteryVoltage:po,battery2Voltage:go,stateBatteryCurrent:E,stateBattery2Current:z,batLineWidth:Yr,totalGridPower:pt,solarLineWidth:es,totalPV:Si,loadLineWidth:Xr,pvPercentageBat:vs,gridPercentageBat:ws,genericInverterImage:_t,battery0:Ps,battery20:Ns,essentialPower:Bi,pv1LineWidth:Hr,pv2LineWidth:Wr,pv3LineWidth:Ur,pv4LineWidth:Fr,pv5LineWidth:Qr,pv6LineWidth:Zr,gridLineWidth:Jr,pv1PowerWatts:Pi,pv2PowerWatts:Li,pv3PowerWatts:Ci,pv4PowerWatts:Ei,pv5PowerWatts:Ni,pv6PowerWatts:Mi,stateEnvironmentTemp:A,statePV1Voltage:ze,statePV2Voltage:je,statePV3Voltage:We,statePV4Voltage:Fe,statePV5Voltage:Ze,statePV6Voltage:Xe,batteryStateColour:wr,battery2StateColour:br,inverterStateColour:gr,stateBatteryTemp:N,stateBattery2Temp:R,statePrepaidUnits:De,stateDCTransformerTemp:m,iconEssentialLoad1:Qo,iconEssentialLoad2:Zo,iconEssentialLoad3:Yo,iconEssentialLoad4:Xo,iconEssentialLoad5:Ko,iconEssentialLoad6:Jo,enableTimer:hi,stateSolarSell:ot,priorityLoad:yi,inverterImg:xi,stateDayPVEnergy:s,remainingSolar:si,totalSolarGeneration:li,stateDayLoadEnergy:i,stateDayBatteryDischarge:t,stateDayGridImport:r,stateDayBatteryCharge:n,stateDayGridExport:l,statePVTotal:it,statePV1Power:Je,statePV2Power:qe,statePV3Power:$e,statePV4Power:et,statePV5Power:tt,statePV6Power:nt,minLineWidth:Dr,stopColour:As,stop2Colour:Es,gridStatus:Zt,batteryCharge:bs,battery2Charge:Cs,gridOffColour:Mo,batteryIcon:xs,battery2Icon:Ls,formattedResultTime:tr,formattedResultTime2:nr,showAux:jo,nonessentialIcon:ei,showNonessential:Qt,auxStatus:Yt,nonessentialLoads:ko,additionalAuxLoad:Uo,stateAuxLoad1Extra:Ce,stateAuxLoad2Extra:Ee,iconNonessentialLoad1:ti,iconNonessentialLoad2:ni,iconNonessentialLoad3:ai,inverterStateMsg:fr,auxType:Fo,showDailyAux:Ho,nonessentialPower:Ti,auxPower:lt,nonessLineWidth:$r,grid169LineWidth:qr,auxLineWidth:Kr,iconAuxLoad1:qo,iconAuxLoad2:$o,stateDayAuxEnergy:d,stateAuxLoad1:he,stateAuxLoad2:pe,stateNonessentialLoad1:$,stateNonessentialLoad2:ee,stateNonessentialLoad3:te,autoScaledInverterPower:fo,autoScaledGridPower:mo,auxDynamicColour:bt,auxDynamicColourLoad1:Pt,auxDynamicColourLoad2:Ct,stateMaxSellPower:Ge,totalPVEfficiency:Is,PV1Efficiency:Vs,PV2Efficiency:Ds,PV3Efficiency:Gs,PV4Efficiency:zs,PV5Efficiency:Rs,PV6Efficiency:js,gridPercentage:ls,flowColour:gs,flowBatColour:ps,flowInvColour:fs,dynamicColourEssentialLoad1:Nt,dynamicColourEssentialLoad2:Vt,dynamicColourEssentialLoad3:Dt,dynamicColourEssentialLoad4:Ht,dynamicColourEssentialLoad5:Wt,dynamicColourEssentialLoad6:Ut,dynamicColourNonEssentialLoad1:Co,dynamicColourNonEssentialLoad2:Eo,dynamicColourNonEssentialLoad3:No,stateBatterySOH:T,stateBattery2SOH:Y,customGridIcon:Hs,customGridIconColour:Ws,maximumSOC:Ki,batteryCount:Ui};return this.isFullCard?((e,t,n)=>H(Ln||(Ln=ye(["\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 \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 ',"\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 \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 \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 \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,e.title?H(Cn||(Cn=ye(['\n ',""])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.wide?"0 0 720 405":"0 0 483 405",n.cardHeight,n.cardWidth,(e.wide,"3%"),[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,[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,e.show_solar?"":"none",n.solarColour,e.solar.pv1_name||Et("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||Et("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||Et("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||Et("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)||1===e.solar.mppts?"none":"",n.solarColour,n.totalPVEfficiency,1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.total_solar_generation"),1===e.solar.mppts?e.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",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.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",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.solar?.navigate?W(En||(En=ye(['\n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.solar.navigate)),e.show_solar?"":"st12",n.solarColour,Pn):W(Nn||(Nn=ye(['\n \n \n '])),e.show_solar?"":"st12",n.solarColour,Pn),(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,pn,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,gn,(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,e.entities?.pv_total?W(Mn||(Mn=ye(['\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)):W(kn||(kn=ye(['\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)),!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.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.AMPERE,(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),e.show_battery?"inline":"none",(e.wide,"3%"),e.wide&&2===n.batteryCount?"inline":"none",n.batteryColour,(n.compactMode,""),!0!==n.largeFont?"st14":"st4",n.batteryColour,e.battery.auto_scale?qt.convertValue(n.batteryPowerTotal,n.decimalPlaces)||0:"".concat(qt.toNum(n.batteryPowerTotal||0,0)," ").concat(Gt.WATT),2===n.batteryCount?"12.25%":"0%",e.battery?.navigate?W(Sn||(Sn=ye(['\n \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.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.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge):W(On||(On=ye(['\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.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.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge),(t=>qt.handlePopup(t,e.entities.battery_temp_182)),e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,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,!n.stateBatterySOH.isValid()||e.entities?.battery_temp_182?"none":"",n.stateBatterySOH.toNum(0),e.battery.show_remaining_energy?"":"none",n.batteryColour,e.battery.remaining_energy_to_shutdown?"".concat(qt.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),2===n.batteryCount?"inline":"none",2===n.batteryCount?"19%":"0%",e.battery2?.navigate?W(Bn||(Bn=ye(['\n \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.battery2.navigate)),e.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,e.battery2?.show_remaining_energy?"294":"296.25",n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.battery2.linear_gradient?"":"none",n.battery2Charge):W(Tn||(Tn=ye(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '])),e.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,e.battery2?.show_remaining_energy?"294":"296.25",n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.battery2.linear_gradient?"":"none",n.battery2Charge),(t=>qt.handlePopup(t,e.entities.battery2_temp_182)),e.entities?.battery2_temp_182?"st3 left-align":"st12",n.battery2Colour,n.stateBattery2Temp.isValid()?"":"none",n.stateBattery2Temp.toNum(1),(t=>qt.handlePopup(t,e.entities.battery2_soh)),e.entities?.battery2_soh?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2SOH.isValid()||e.entities?.battery2_temp_182?"none":"",n.stateBattery2SOH.toNum(0),e.battery2.show_remaining_energy?"":"none",n.battery2Colour,e.battery2.remaining_energy_to_shutdown?"".concat(qt.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),2===n.batteryCount?"-20%":"0%",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.to"),n.batteryCapacity,Et("common.charge"),n.formattedResultTime,0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Et("common.battery_floating"),n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&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.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc?"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?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.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===e.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===e.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.to"),n.battery2Capacity,Et("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Et("common.battery_floating"),n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),"none"!==e.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===e.entities.battery2_soc_184||e.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.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"!==e.entities?.battery2_status&&e.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,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),2===n.batteryCount?"25":"41",2===n.batteryCount?"329.5":"317","none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183?"":"none",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_power_190)),2===n.batteryCount?"25":"41",2===n.batteryCount?"362":"356","none"===e.entities.battery_power_190?"none":"",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",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)),2===n.batteryCount?"25":"41",2===n.batteryCount?"345.75":"336","none"!==e.entities.battery_current_191&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,2===n.batteryCount?"st3 st8":!0!==n.largeFont?"st14 st8":"st4 st8",e.battery.show_absolute?Math.abs(qt.toNum(n.stateBatteryCurrent.state,1)):qt.toNum(n.stateBatteryCurrent.state,1),Rt.AMPERE,2===n.batteryCount?"inline":"none",n.battery2Colour,(t=>qt.handlePopup(t,e.entities.battery2_voltage_183)),"none"!==e.entities.battery2_voltage_183&&e.entities.battery2_voltage_183?"":"none",n.battery2Colour,n.battery2Voltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery2_power_190)),"none"===e.entities.battery2_power_190?"none":"",n.battery2Colour,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qt.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Gt.WATT):"".concat(n.battery2Power||0," ").concat(Gt.WATT)),(t=>qt.handlePopup(t,e.entities.battery2_current_191)),"none"!==e.entities.battery2_current_191&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,e.battery2.show_absolute?Math.abs(qt.toNum(n.stateBattery2Current.state,1)):qt.toNum(n.stateBattery2Current.state,1),Rt.AMPERE,2===n.batteryCount?"-8":e.battery.show_remaining_energy?"8":"73","none"!==e.entities?.battery_status&&e.entities?.battery_status?"":"none",n.batteryStateColour,2===n.batteryCount?"0":e.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),Et("common.daily_charge"),!0!==n.batteryShowDaily?"transparent":"".concat(n.batteryColour),Et("common.daily_discharge"),(t=>qt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&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&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,n.decimalPlacesEnergy),e.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",e.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===e.battery.invert_flow?qt.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(e.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("0;1"):"0;1",e.wide?"30%":"3%",3===n.nonessentialLoads&&(e.battery.hide_soc||e.wide)?"":"none",n.dynamicColourNonEssentialLoad3,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",e.battery.hide_soc||e.wide?"st3 st8":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",n.dynamicColourNonEssentialLoad3,e.grid.load3_name,e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",(e.battery.hide_soc||e.wide)&&3===n.nonessentialLoads?"":"none",n.iconNonessentialLoad3,(t=>qt.handlePopup(t,e.entities.non_essential_load3)),e.battery.hide_soc||e.wide?"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.non_essential_load3_extra)),e.entities?.non_essential_load3_extra&&3===n.nonessentialLoads&&n.stateNonEssentialLoad3Extra.isValid()&&e.show_grid&&e.wide?"":"none",n.dynamicColourNonEssentialLoad3,n.stateNonEssentialLoad3Extra.toNum(1),n.stateNonEssentialLoad3Extra?.getUOM(),n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",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",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,n.gridColour,e.show_grid?"":"none",e.grid.grid_name||Et("common.grid_name"),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||Et("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||Et("common.daily_grid_sell"),e.show_grid&&n.showNonessential?"":"none",n.gridColour,e.grid.nonessential_name||Et("common.nonessential_name"),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",e.wide?"M143 187 234 187":"M215 187 234 187",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.grid?.navigate?W(In||(In=ye(['\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",Tt.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",It.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",Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",xn):W(Vn||(Vn=ye(['\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",Tt.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",It.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",Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",xn),e.grid?.navigate?W(Dn||(Dn=ye(['\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",e.inverter.three_phase?"34px":"65px",e.inverter.three_phase?"34px":"65px",n.customGridIcon,e.inverter.three_phase?"grid-icon-small":"grid-icon"):W(Gn||(Gn=ye(['\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",e.inverter.three_phase?"34px":"65px",e.inverter.three_phase?"34px":"65px",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,"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,(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",Et("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),e.inverter.three_phase?e.entities?.grid_ct_power_total?W(zn||(zn=ye(['\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))):W(Rn||(Rn=ye(['\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))):W(jn||(jn=ye(['\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?.nonessential_power&&"none"!==e.entities.nonessential_power?W(Hn||(Hn=ye(['\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)):W(Wn||(Wn=ye(['\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)),n.totalGridPower>=0?W(Un||(Un=ye(['\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()):W(Fn||(Fn=ye(['\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.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.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.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),(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,jt.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,jt.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,jt.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.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_load1_extra)),e.entities?.non_essential_load1_extra&&[1,2,3].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,3].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad2Extra.isValid()&&e.show_grid?"":"none",n.dynamicColourNonEssentialLoad2,n.stateNonEssentialLoad2Extra.toNum(1),n.stateNonEssentialLoad2Extra?.getUOM(),e.wide?"30%":"3%",e.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,e.load.load5_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad5&&e.load.load5_switch?W(Qn||(Qn=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load5_switch)),n.iconEssentialLoad5):W(Zn||(Zn=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad5),(t=>qt.handlePopup(t,e.entities.essential_load5_extra)),e.entities?.essential_load5_extra&&[5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad5Extra.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5Extra.toNum(1),n.stateEssentialLoad5Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load5)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5.toPowerString(e.load.auto_scale,n.decimalPlaces),e.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,e.load.load6_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad6&&e.load.load6_switch?W(Yn||(Yn=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load6_switch)),n.iconEssentialLoad6):W(Xn||(Xn=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad6),(t=>qt.handlePopup(t,e.entities.essential_load6_extra)),e.entities?.essential_load6_extra&&[5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad6Extra.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6Extra.toNum(1),n.stateEssentialLoad6Extra?.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load6)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad6.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6.toPowerString(e.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,e.load.essential_name||Et("common.essential"),[1,2].includes(n.additionalLoad)&&n.showAux||!n.showAux&&[4,5,6].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name||Et("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,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,e.load.load1_name,n.showAux?415:418,n.showAux?178:59,[2,4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,[4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,[4,5,6].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad4,e.load.load4_name,0===n.additionalLoad?"377":"238",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),e.load.label_daily_load||Et("common.daily_load"),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.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(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.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",e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,e.load?.navigate?W(Kn||(Kn=ye(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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,5,6].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,5,6].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon):W(Jn||(Jn=ye(['\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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,5,6].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,5,6].includes(n.additionalLoad)?"none":"",e.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.iconEssentialLoad1&&e.load.load1_switch?W(qn||(qn=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load1_switch)),n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1):W($n||($n=ye(['\n \n
\n \n
\n
'])),n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1),[2,4,5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad2&&e.load.load2_switch?W(ea||(ea=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load2_switch)),n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2):W(ta||(ta=ye(['\n \n
\n \n
\n
'])),n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2),[4,5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad3&&e.load.load3_switch?W(na||(na=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load3_switch)),n.iconEssentialLoad3):W(aa||(aa=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad3),[4,5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad4&&e.load.load4_switch?W(oa||(oa=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load4_switch)),n.iconEssentialLoad4):W(ia||(ia=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad4),1===n.additionalLoad?"":"none",n.iconEssentialLoad1&&e.load.load1_switch?W(ra||(ra=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load1_switch)),(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1):W(sa||(sa=ye(['\n \n
\n \n
\n
'])),(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1),(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.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,5,6].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,5,6].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),e.entities?.essential_power&&"none"!==e.entities.essential_power?W(la||(la=ye(['\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)):W(da||(da=ye(['\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)),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,5,6].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,5,6].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,5,6].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,5,6].includes(n.additionalLoad)&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4.toPowerString(e.load.auto_scale,n.decimalPlaces),e.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",e.load.label_daily_load||Et("common.daily_load"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),e.load.aux_name||Et("common.aux_name"),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||Et("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,e.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,(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,(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),e.entities?.aux_power_166?W(ca||(ca=ye(['\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)):W(ua||(ua=ye(['\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.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.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(),e.wide?"20%":"3%",e.inverter.three_phase?60:50,n.inverterColour,n.inverterColour,n.inverterStateMsg,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.autarky"),n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.ratio"),n.inverterStateColour,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,e.inverter?.navigate?W(ha||(ha=ye(['\n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):W(ya||(ya=ye(['\n \n \n \n \n '])),n.genericInverterImage?1:0,n.inverterColour,ln),(t=>qt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=_e.No?"232":"249","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,hn,n.enableAutarky!=_e.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,yn,n.enableAutarky!=_e.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("common.timer_on"),n.enableAutarky!=_e.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("common.timer_off"),(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!=_e.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Et("common.priority_load"),n.enableAutarky!=_e.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Et("common.priority_batt"),e.inverter?.navigate?W(pa||(pa=ye(['\n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?"st12":"",t):W(ga||(ga=ye(['\n '])),n.genericInverterImage?"st12":"",t),(e=>qt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=_e.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!=_e.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,(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,Rt.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,Rt.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,Rt.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.radiator_temp_91)),[4,5,6].includes(e.solar?.mppts)&&!e.wide?"110":"134",[4,5,6].includes(e.solar?.mppts)&&!e.wide?"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)))(e,xi,ol):this.isLiteCard||this.isCompactCard?((e,t,n)=>H(fa||(fa=ye(["\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 ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n '," ",'\n \n \n \n '," ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ',"°\n \n \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 \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,e.title?H(ma||(ma=ye(['\n ',""])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.wide?"0 0 720 405":"-2 ".concat(n.viewBoxYLite," 490 ").concat(n.viewBoxHeightLite),n.cardHeight,n.cardWidth,e.show_solar?"inline":"none",e.wide?"10%":"0%",[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,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,e.show_solar&&e.wide&&[5,6].includes(e.solar.mppts)?"inline":"none",[1,3].includes(e.solar.efficiency)?"url(#PV5LG)":n.solarColour,!e.show_solar||[1,2,3,4].includes(e.solar.mppts)?"st12":"",0===n.PV5Efficiency?"grey":n.solarColour,n.PV5Efficiency,0===n.PV5Efficiency?"grey":n.solarColour,n.PV5Efficiency,n.PV5Efficiency<100?"grey":n.solarColour,n.PV5Efficiency<100?"grey":n.solarColour,e.show_solar?"":"none",n.solarColour,e.solar.pv5_name||Et("common.pv5_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV5Efficiency,e.show_solar?"":"st12",n.solarColour,n.pv5LineWidth,Math.min(2+n.pv5LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv5PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv5,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",(t=>qt.handlePopup(t,e.entities.pv5_voltage)),e.show_solar&&e.entities.pv5_voltage&&"none"!==e.entities.pv5_voltage&&n.statePV5Voltage.isValid()?"":"none",n.solarColour,n.statePV5Voltage.toNum(1),jt.VOLT,(t=>qt.handlePopup(t,e.entities.pv5_current)),e.show_solar&&e.entities.pv5_current&&"none"!==e.entities.pv5_current&&n.statePV5Current.isValid()?"":"none",n.solarColour,n.statePV5Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv5_power)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV5Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv5PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv5PowerWatts||0,0)," ").concat(Gt.WATT),e.show_solar&&e.wide&&6===e.solar.mppts?"inline":"none",[1,3].includes(e.solar.efficiency)?"url(#PV6LG)":n.solarColour,!e.show_solar||[1,2,3,4,5].includes(e.solar.mppts)?"st12":"",0===n.PV6Efficiency?"grey":n.solarColour,n.PV6Efficiency,0===n.PV6Efficiency?"grey":n.solarColour,n.PV6Efficiency,n.PV6Efficiency<100?"grey":n.solarColour,n.PV6Efficiency<100?"grey":n.solarColour,e.show_solar?"":"none",n.solarColour,e.solar.pv6_name||Et("common.pv6_name"),[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV6Efficiency,e.show_solar?"":"st12",n.solarColour,n.pv6LineWidth,Math.min(2+n.pv6LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv6PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv6,!0===e.solar.invert_flow?qt.invertKeyPoints("0;1"):"0;1",(t=>qt.handlePopup(t,e.entities.pv6_voltage)),e.show_solar&&e.entities.pv6_voltage&&"none"!==e.entities.pv6_voltage&&n.statePV6Voltage.isValid()?"":"none",n.solarColour,n.statePV6Voltage.toNum(1),jt.VOLT,(t=>qt.handlePopup(t,e.entities.pv6_current)),e.show_solar&&e.entities.pv6_current&&"none"!==e.entities.pv6_current&&n.statePV6Current.isValid()?"":"none",n.solarColour,n.statePV6Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.pv6_power)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV6Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?qt.convertValue(n.pv6PowerWatts,n.decimalPlaces)||0:"".concat(qt.toNum(n.pv6PowerWatts||0,0)," ").concat(Gt.WATT),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",Et("common.total_solar_generation"),1===e.solar.mppts?"230":"179",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name||Et("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||Et("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||Et("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||Et("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",e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,n.totalPVEfficiency,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",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.solar?.navigate?W(_a||(_a=ye(['\n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.solar.navigate)),e.show_solar?"":"st12",n.solarColour,Pn):W(va||(va=ye(['\n \n \n '])),e.show_solar?"":"st12",n.solarColour,Pn),(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,pn,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,gn,(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.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.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),jt.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),Rt.AMPERE,(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),e.entities?.pv_total?W(wa||(wa=ye(['\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)):W(xa||(xa=ye(['\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.show_battery?"inline":"none",e.wide?"10%":"0%",e.wide&&2===n.batteryCount?"inline":"none",n.batteryColour,(n.compactMode,""),!0!==n.largeFont?"st14":"st4",n.batteryColour,e.battery.auto_scale?qt.convertValue(n.batteryPowerTotal,n.decimalPlaces)||0:"".concat(qt.toNum(n.batteryPowerTotal||0,0)," ").concat(Gt.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":"",(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"===e.entities.battery_voltage_183||!e.entities.battery_voltage_183||n.compactMode?"none":"",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&n.compactMode&&2!==n.batteryCount?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&!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),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&n.compactMode&&n.stateBatteryCurrent.isValid()&&2!==n.batteryCount?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_power_190)),n.compactMode?"239":"193",n.compactMode?"307":"386","none"===e.entities.battery_power_190||n.compactMode&&2===n.batteryCount?"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)),n.compactMode?"270":e.entities?.battery_status?"169":"193",n.compactMode?"338":"323",e.entities?.battery_status||n.compactMode?"st3 left-align":"st3",!e.battery.show_remaining_energy||n.compactMode&&2===n.batteryCount?"none":"",n.batteryColour,e.battery.remaining_energy_to_shutdown?"".concat(qt.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.battery.show_remaining_energy?"311":"320",n.compactMode?"none":"",n.batteryColour,n.batteryStateMsg,e.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183?"":"none",n.batteryColour,n.batteryVoltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery_power_190)),"none"===e.entities.battery_power_190?"none":"",n.batteryColour,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)),e.battery.show_remaining_energy?"":"none",n.batteryColour,e.battery.remaining_energy_to_shutdown?"".concat(qt.toNum(n.batteryEnergy*((n.stateBatterySoc?.toNum()-n.batteryOneShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.wide&&2===n.batteryCount&&n.compactMode?"inline":"none",(t=>qt.handlePopup(t,e.entities.battery2_voltage_183)),"none"!==e.entities.battery2_voltage_183&&e.entities.battery2_voltage_183?"":"none",n.battery2Colour,n.battery2Voltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery2_current_191)),e.entities.battery2_current_191&&"none"!==e.entities.battery2_current_191&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,e.battery2.show_absolute?Math.abs(n.stateBattery2Current.toNum(1)):n.stateBattery2Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery2_power_190)),"none"===e.entities.battery2_power_190?"none":"",n.battery2Colour,e.battery2.auto_scale?"".concat(e.battery2.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qt.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Gt.WATT):"".concat(n.battery2Power||0," ").concat(Gt.WATT)),e.battery2.show_remaining_energy?"":"none",n.battery2Colour,e.battery2.remaining_energy_to_shutdown?"".concat(qt.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.wide&&2===n.batteryCount&&!n.compactMode?"inline":"none",n.battery2Colour,e.show_battery?"":"none",(t=>qt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery2_voltage_183&&e.entities.battery2_voltage_183&&e.show_battery?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",n.battery2Voltage,jt.VOLT,(t=>qt.handlePopup(t,e.entities.battery2_current_191)),e.entities.battery2_current_191&&"none"!==e.entities.battery2_current_191&&e.show_battery&&n.stateBattery2Current.isValid()?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",e.battery2.show_absolute?Math.abs(n.stateBattery2Current.toNum(1)):n.stateBattery2Current.toNum(1),Rt.AMPERE,(t=>qt.handlePopup(t,e.entities.battery2_power_190)),"none"!==e.entities.battery2_power_190&&e.show_battery?"":"none",n.battery2Colour,!0!==n.largeFont?"st14":"st4",e.battery2.auto_scale?"".concat(e.battery2.show_absolute?"".concat(Math.abs(parseFloat(qt.convertValue(n.battery2Power,n.decimalPlaces)))," ").concat(qt.convertValue(n.battery2Power,n.decimalPlaces).split(" ")[1]):qt.convertValue(n.battery2Power,n.decimalPlaces)||"0"):"".concat(e.battery2.show_absolute?"".concat(Math.abs(n.battery2Power)," ").concat(Gt.WATT):"".concat(n.battery2Power||0," ").concat(Gt.WATT)),e.entities?.battery2_status?"169":"193",e.entities?.battery2_status?"st3 left-align":"st3",e.show_battery&&e.battery2.show_remaining_energy?"":"none",n.battery2Colour,e.battery2.remaining_energy_to_shutdown?"".concat(qt.toNum(n.battery2Energy*((n.stateBattery2Soc?.toNum()-n.batteryTwoShutdown)/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR):"".concat(qt.toNum(n.battery2Energy*(n.stateBattery2Soc.toNum()/100)/1e3,2)," ").concat(zt.KILO_WATT_HOUR),e.battery2.show_remaining_energy?"311":"320",e.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===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.to"),n.batteryCapacity,Et("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",n.compactMode&&2===n.batteryCount?"none":"",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Et("common.battery_floating"),n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||n.compactMode&&2===n.batteryCount?"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||n.compactMode&&2===n.batteryCount?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"270":"290","none"===e.entities.battery_soc_184||!n.stateBatterySoc.isValid()||n.compactMode&&2===n.batteryCount?"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.battery.hide_soc||n.compactMode&&2===n.batteryCount?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||n.compactMode&&2===n.batteryCount?"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||n.compactMode&&2===n.batteryCount?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery.shutdown_soc_offgrid?"":"none",e.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===e.battery.invert_flow?n.batteryPower>=0:n.batteryPower<=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,0===n.batteryEnergy||(!0===e.battery.invert_flow?n.batteryPower<=0:n.batteryPower>=0)||n.isFloating?"transparent":"".concat(n.batteryColour),Et("common.to"),n.batteryCapacity,Et("common.charge"),n.formattedResultTime,0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",Et("common.battery_floating"),n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&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.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc?"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?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery.shutdown_soc_offgrid?"":"none",e.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===e.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===e.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.to"),n.battery2Capacity,Et("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Et("common.battery_floating"),n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),"none"!==e.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===e.entities.battery2_soc_184||e.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.battery2.shutdown_soc_offgrid?"":"none",e.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===e.battery2.invert_flow?n.battery2Power>=0:n.battery2Power<=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.runtime_to"),n.battery2Capacity,n.formattedResultTime2,0===n.battery2Energy||(!0===e.battery2.invert_flow?n.battery2Power<=0:n.battery2Power>=0)||n.isFloating2?"transparent":"".concat(n.battery2Colour),Et("common.to"),n.battery2Capacity,Et("common.charge"),n.formattedResultTime2,0!==n.battery2Energy&&n.isFloating2?"".concat(n.battery2Colour):"transparent",Et("common.battery_floating"),n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.batteryShutdown2,n.battery2Colour,e.battery2.hide_soc?"st12":"st14 left-align",!n.inverterProg.show&&e.battery2?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid2,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),"none"!==e.entities.battery2_soc_184&&n.stateBattery2Soc.isValid()?"":"none",n.battery2Colour,n.stateBattery2Soc.toNum(0),(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,!n.inverterProg.show||"none"===e.entities.battery2_soc_184||e.battery2.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",n.inverterProg.show||!e.battery2?.shutdown_soc||e.battery2?.shutdown_soc_offgrid?"none":"",n.batteryShutdown2||0,(t=>qt.handlePopup(t,e.entities.battery2_soc_184)),n.battery2Colour,e.battery2.hide_soc?"st12":"st13 st8 left-align",!n.inverterProg.show&&e.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",e.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===e.battery.invert_flow?qt.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(e.battery.dynamic_colour?n.flowBatColour:n.batteryColour),n.durationCur.battery,!0===e.battery.invert_flow?qt.invertKeyPoints("0;1"):"0;1",2===n.batteryCount?"-6.25%":"0%",(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,!n.stateBatteryTemp.isValid()||n.compactMode&&2===n.batteryCount?"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,!n.stateBatterySOH.isValid()||e.entities?.battery_temp_182||n.compactMode&&2===n.batteryCount?"none":"",n.stateBatterySOH.toNum(0),n.compactMode?"238.5":"162",n.compactMode?"326":e.battery.show_remaining_energy?"310":"319","none"===e.entities?.battery_status||!e.entities?.battery_status||n.compactMode&&2===n.batteryCount?"none":"",n.batteryStateColour,e.battery.navigate?W(ba||(ba=ye(['\n \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&&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,e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.stopColour,e.battery.animate?"y2":"none",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge):W(Aa||(Aa=ye(['\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,e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode&&1===n.batteryCount?"212.5":"232.5",n.stopColour,e.battery.animate?"y2":"none",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge),e.wide&&2===n.batteryCount?"inline":"none",(t=>qt.handlePopup(t,e.entities.battery2_temp_182)),e.entities?.battery2_temp_182?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2Temp.isValid()||n.compactMode&&2===n.batteryCount?"none":"",n.stateBattery2Temp.toNum(1),(t=>qt.handlePopup(t,e.entities.battery2_soh)),e.entities?.battery2_soh?"st3 left-align":"st12",n.battery2Colour,!n.stateBattery2SOH.isValid()||e.entities?.battery2_temp_182||n.compactMode&&2===n.batteryCount?"none":"",n.stateBattery2SOH.toNum(0),n.compactMode?"326":e.battery2.show_remaining_energy?"310":"319","none"===e.entities?.battery2_status||!e.entities?.battery2_status||n.compactMode&&2===n.batteryCount?"none":"",n.battery2StateColour,e.battery2.navigate?W(Pa||(Pa=ye(['\n \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.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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.battery2.linear_gradient?"":"none",n.battery2Charge):W(La||(La=ye(['\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,e.battery2.dynamic_colour?"url(#b2Lg)":n.battery2Colour,e.battery2.linear_gradient?n.battery20:n.battery2Icon,n.stop2Colour,e.battery2.animate?"y2":"none",e.battery2.linear_gradient?"url(#s2Lg)":n.battery2Colour,e.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),Et("common.daily_charge"),(t=>qt.handlePopup(t,e.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),Et("common.daily_discharge"),(t=>qt.handlePopup(t,e.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,e.show_grid?"":"none",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_buy||Et("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",e.grid.label_daily_grid_sell||Et("common.daily_grid_sell"),e.grid.show_daily_buy?"294":"267",n.gridColour,e.show_grid?"":"none",e.grid.grid_name||Et("common.grid_name"),e.wide?"M 173 218 L 287 218":"M 173 218 L 214 218",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.grid?.navigate?W(Ca||(Ca=ye(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.grid.navigate)),Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",wn):W(Ea||(Ea=ye(['\n \n \n \n \n \n \n \n \n \n \n '])),(t=>qt.handlePopup(t,e.entities.grid_connected_status_194)),Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0||e.grid.import_icon?"none":"",An,It.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,!e.show_grid||e.grid.disconnected_icon?"none":"",bn,Tt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0||e.grid.export_icon?"none":"",wn),e.grid?.navigate?W(Na||(Na=ye(['\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):W(Ma||(Ma=ye(['\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),(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",Et("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),e.inverter.three_phase?e.entities?.grid_ct_power_total?W(ka||(ka=ye(['\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))):W(Sa||(Sa=ye(['\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))):W(Oa||(Oa=ye(['\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))),n.totalGridPower>=0?W(Ba||(Ba=ye(['\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()):W(Ta||(Ta=ye(['\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()),(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.wide?"30%":"0%",n.loadColour,n.dynamicColourEssentialLoad1,[1,2,3].includes(n.additionalLoad)?"":"none",[1,2,3].includes(n.additionalLoad)?"":"none",n.dynamicColourEssentialLoad1,e.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,(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_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(),[0,4,5,6].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1&&e.load.load1_switch?W(Ia||(Ia=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load1_switch)),n.iconEssentialLoad1):W(Va||(Va=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad1),n.dynamicColourEssentialLoad2,2===n.additionalLoad?"":"none",2===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,e.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,(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_load2_extra)),e.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&&e.load.load2_switch?W(Da||(Da=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load2_switch)),n.iconEssentialLoad2):W(Ga||(Ga=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad2),n.dynamicColourEssentialLoad2,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,3===n.additionalLoad?"":"none",3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,3===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,3===n.additionalLoad?"":"none",n.iconEssentialLoad2&&e.load.load2_switch?W(za||(za=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load2_switch)),n.iconEssentialLoad2):W(Ra||(Ra=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad2),3===n.additionalLoad?"":"none",n.iconEssentialLoad3&&e.load.load3_switch?W(ja||(ja=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load3_switch)),n.iconEssentialLoad3):W(Ha||(Ha=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad3),(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&&3===n.additionalLoad&&n.stateEssentialLoad3Extra.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3Extra.toNum(1),n.stateEssentialLoad3Extra.getUOM(),(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),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,e.load.load1_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad2,e.load.load2_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad3,e.load.load3_name,n.additionalLoad>=4?"":"none",n.dynamicColourEssentialLoad4,e.load.load4_name,n.additionalLoad>=4?"":"none",n.iconEssentialLoad1&&e.load.load1_switch?W(Wa||(Wa=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load1_switch)),n.iconEssentialLoad1):W(Ua||(Ua=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad1),n.additionalLoad>=4?"":"none",n.iconEssentialLoad2&&e.load.load2_switch?W(Fa||(Fa=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load2_switch)),n.iconEssentialLoad2):W(Qa||(Qa=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad2),n.additionalLoad>=4?"":"none",n.iconEssentialLoad3&&e.load.load3_switch?W(Za||(Za=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load3_switch)),n.iconEssentialLoad3):W(Ya||(Ya=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad3),n.additionalLoad>=4?"":"none",n.iconEssentialLoad4&&e.load.load4_switch?W(Xa||(Xa=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load4_switch)),n.iconEssentialLoad4):W(Ka||(Ka=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad4),(t=>qt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&n.additionalLoad>=4&&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&&n.additionalLoad>=4&&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&&n.additionalLoad>=4&&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&&n.additionalLoad>=4&&n.stateEssentialLoad4Extra.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4Extra.toNum(1),n.stateEssentialLoad4Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load1)),n.additionalLoad>=4&&n.stateEssentialLoad1.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load2)),n.additionalLoad>=4&&n.stateEssentialLoad2.isValid()?"":"none",n.dynamicColourEssentialLoad2,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load3)),n.additionalLoad>=4&&n.stateEssentialLoad3.isValid()?"":"none",n.dynamicColourEssentialLoad3,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>qt.handlePopup(t,e.entities.essential_load4)),n.additionalLoad>=4&&n.stateEssentialLoad4.isValid()?"":"none",n.dynamicColourEssentialLoad4,n.stateEssentialLoad4?.toPowerString(e.load.auto_scale,n.decimalPlaces),e.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,e.load.load5_name,[5,6].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad5&&e.load.load5_switch?W(Ja||(Ja=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load5_switch)),n.iconEssentialLoad5):W(qa||(qa=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad5),(t=>qt.handlePopup(t,e.entities.essential_load5_extra)),e.entities?.essential_load5_extra&&[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5Extra.isValid()?"":"none",n.dynamicColourEssentialLoad1,n.stateEssentialLoad5Extra.toNum(1),n.stateEssentialLoad5Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load5)),[5,6].includes(n.additionalLoad)&&n.stateEssentialLoad5.isValid()?"":"none",n.dynamicColourEssentialLoad5,n.stateEssentialLoad5?.toPowerString(e.load.auto_scale,n.decimalPlaces),e.wide&&6===n.additionalLoad?"0 0 720 405":"0 0 0 0",n.dynamicColourEssentialLoad6,6===n.additionalLoad?"":"none",6===n.additionalLoad?"":"none",n.dynamicColourEssentialLoad6,e.load.load6_name,6===n.additionalLoad?"":"none",n.iconEssentialLoad6&&e.load.load6_switch?W($a||($a=ye(['\n \n \n
\n \n
\n
\n
'])),(t=>qt.handlePopup(t,e.load.load6_switch)),n.iconEssentialLoad6):W(eo||(eo=ye(['\n \n
\n \n
\n
'])),n.iconEssentialLoad6),(t=>qt.handlePopup(t,e.entities.essential_load6_extra)),e.entities?.essential_load6_extra&&6===n.additionalLoad&&n.stateEssentialLoad6Extra.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6Extra.toNum(1),n.stateEssentialLoad6Extra.getUOM(),(t=>qt.handlePopup(t,e.entities.essential_load6)),6===n.additionalLoad&&n.stateEssentialLoad6.isValid()?"":"none",n.dynamicColourEssentialLoad6,n.stateEssentialLoad6?.toPowerString(e.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",e.load.label_daily_load||Et("common.daily_load"),e.wide?"304":"375",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.wide?"304":"375",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.wide?"304":"375",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.wide?"M 304 218.5 L 117 218.5":"M 304 218.5 L 264.7 218.5",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.load1Colour,[2,3,4,5,6].includes(n.additionalLoad)?"":"st12",n.load1Colour,[2,3,4,5,6].includes(n.additionalLoad)?"":"st12",n.load2Colour,e.load?.navigate?W(to||(to=ye(['\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):W(no||(no=ye(['\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),(t=>qt.handlePopup(t,e.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),e.entities?.essential_power&&"none"!==e.entities.essential_power?W(ao||(ao=ye(['\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)):W(oo||(oo=ye(['\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.wide?"10%":"0%",n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===_e.No?"none":"",n.enableAutarky===_e.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.autarky"),n.enableAutarky===_e.No?"none":"",n.inverterColour,Et("common.ratio"),n.inverterStateColour,e.inverter?.navigate?W(io||(io=ye(['\n \n \n \n \n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?1:0,n.inverterColour,ln):W(ro||(ro=ye(['\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,yn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("common.timer_off"),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,Et("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,Et("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,Et("common.priority_load"),e.inverter?.navigate?W(so||(so=ye(['\n \n \n '])),(t=>qt.handleNavigation(t,e.inverter.navigate)),n.genericInverterImage?"st12":"",t):W(lo||(lo=ye(['\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,_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,(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:"",jt.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:"",Rt.AMPERE,(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)))(e,xi,ol):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 Io(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):this.colourConvert(this._config.load?.off_colour)||"grey":this.colourConvert(this._config.load?.colour)}setConfig(e){if(e.show_battery&&!e.battery)throw Error(Et("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(Et("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(Et("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(Et("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(Et("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(Et("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(Et("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(Et("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(Et("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(Et("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=Kt({},Nt,n)}getCardSize(){return 2}};e([ue()],Vo.prototype,"hass",void 0),e([ue()],Vo.prototype,"_config",void 0),e([he("#grid-flow")],Vo.prototype,"gridFlow",void 0),e([he("#grid1-flow")],Vo.prototype,"grid1Flow",void 0),e([he("#solar-flow")],Vo.prototype,"solarFlow",void 0),e([he("#pv1-flow")],Vo.prototype,"pv1Flow",void 0),e([he("#pv2-flow")],Vo.prototype,"pv2Flow",void 0),e([he("#pv3-flow")],Vo.prototype,"pv3Flow",void 0),e([he("#pv4-flow")],Vo.prototype,"pv4Flow",void 0),e([he("#pv5-flow")],Vo.prototype,"pv5Flow",void 0),e([he("#pv6-flow")],Vo.prototype,"pv6Flow",void 0),e([he("#battery-flow")],Vo.prototype,"batteryFlow",void 0),e([he("#load-flow")],Vo.prototype,"loadFlow",void 0),e([he("#aux-flow")],Vo.prototype,"auxFlow",void 0),e([he("#ne-flow")],Vo.prototype,"neFlow",void 0),e([he("#ne1-flow")],Vo.prototype,"ne1Flow",void 0),Vo=e([le("sunsynk-power-flow-card")],Vo),window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:Et("common.description"),configurable:!0});var Do,Go={exports:{}}; /** * @license * Lodash @@ -51,4 +51,4 @@ function ye(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 oo,io,ro,so,lo=(no||(no=1,oo=ao,io=ao.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,y=4294967295,p=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",r],["rearg",l]],h="[object Arguments]",g="[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]",V="[object Int32Array]",D="[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,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*$/,ye=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,fe=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,we="\\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",Ce="\\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",Ee="['’]",Ne="["+we+"]",Me="["+Ce+"]",ke="["+xe+"]",Se="\\d+",Oe="["+be+"]",Be="["+Ae+"]",Te="[^"+we+Ce+Se+be+Ae+Pe+"]",Ie="\\ud83c[\\udffb-\\udfff]",Ve="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Pe+"]",Re="\\u200d",je="(?:"+Be+"|"+Te+")",He="(?:"+ze+"|"+Te+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+ke+"|"+Ie+")?",Qe="["+Le+"]?",Ze=Qe+Fe+"(?:"+Re+"(?:"+[Ve,De,Ge].join("|")+")"+Qe+Fe+")*",Ye="(?:"+[Oe,De,Ge].join("|")+")"+Ze,Xe="(?:"+[Ve+ke+"?",ke,De,Ge,Ne].join("|")+")",Ke=RegExp(Ee,"g"),Je=RegExp(ke,"g"),qe=RegExp(Ie+"(?="+Ie+")|"+Xe+Ze,"g"),$e=RegExp([ze+"?"+Be+"+"+We+"(?="+[Me,ze,"$"].join("|")+")",He+"+"+Ue+"(?="+[Me,ze+je,"$"].join("|")+")",ze+"?"+je+"+"+We,ze+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ye].join("|"),"g"),et=RegExp("["+Re+we+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[B]=ot[T]=ot[I]=ot[V]=ot[D]=ot[G]=ot[z]=ot[R]=!0,ot[h]=ot[g]=ot[k]=ot[f]=ot[S]=ot[m]=ot[_]=ot[v]=ot[x]=ot[b]=ot[A]=ot[L]=ot[C]=ot[E]=ot[M]=!1;var it={};it[h]=it[g]=it[k]=it[S]=it[f]=it[m]=it[O]=it[B]=it[T]=it[I]=it[V]=it[x]=it[b]=it[A]=it[L]=it[C]=it[E]=it[N]=it[D]=it[G]=it[z]=it[R]=!0,it[_]=it[v]=it[M]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,dt="object"==typeof Wt&&Wt&&Wt.Object===Object&&Wt,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=dt||ct||Function("return this")(),yt=io&&!io.nodeType&&io,pt=yt&&oo&&!oo.nodeType&&oo,ht=pt&&pt.exports===yt,gt=ht&&dt.process,ft=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),mt=ft&&ft.isArrayBuffer,_t=ft&&ft.isDate,vt=ft&&ft.isMap,wt=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=Ft({"À":"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=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});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",""":'"',"'":"'"}),gn=function ae(we){var xe,be=(we=null==we?ut:gn.defaults(ut.Object(),we,gn.pick(ut,nt))).Array,Ae=we.Date,Pe=we.Error,Le=we.Function,Ce=we.Math,Ee=we.Object,Ne=we.RegExp,Me=we.String,ke=we.TypeError,Se=be.prototype,Oe=Le.prototype,Be=Ee.prototype,Te=we["__core-js_shared__"],Ie=Oe.toString,Ve=Be.hasOwnProperty,De=0,Ge=(xe=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+xe:"",ze=Be.toString,Re=Ie.call(Ee),je=ut._,He=Ne("^"+Ie.call(Ve).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ht?we.Buffer:e,Ue=we.Symbol,Fe=we.Uint8Array,Qe=We?We.allocUnsafe:e,Ze=sn(Ee.getPrototypeOf,Ee),Ye=Ee.create,Xe=Be.propertyIsEnumerable,qe=Se.splice,et=Ue?Ue.isConcatSpreadable:e,rt=Ue?Ue.iterator:e,dt=Ue?Ue.toStringTag:e,ct=function(){try{var e=pi(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),yt=we.clearTimeout!==ut.clearTimeout&&we.clearTimeout,pt=Ae&&Ae.now!==ut.Date.now&&Ae.now,gt=we.setTimeout!==ut.setTimeout&&we.setTimeout,ft=Ce.ceil,Vt=Ce.floor,Wt=Ee.getOwnPropertySymbols,Ft=We?We.isBuffer:e,fn=we.isFinite,mn=Se.join,_n=sn(Ee.keys,Ee),vn=Ce.max,wn=Ce.min,xn=Ae.now,bn=we.parseInt,An=Ce.random,Pn=Se.reverse,Ln=pi(we,"DataView"),Cn=pi(we,"Map"),En=pi(we,"Promise"),Nn=pi(we,"Set"),Mn=pi(we,"WeakMap"),kn=pi(Ee,"create"),Sn=Mn&&new Mn,On={},Bn=zi(Ln),Tn=zi(Cn),In=zi(En),Vn=zi(Nn),Dn=zi(Mn),Gn=Ue?Ue.prototype:e,zn=Gn?Gn.valueOf:e,Rn=Gn?Gn.toString:e;function jn(e){if(ns(e)&&!Fr(e)&&!(e instanceof Fn)){if(e instanceof Un)return e;if(Ve.call(e,"__wrapped__"))return Ri(e)}return new Un(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 Wn(){}function Un(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Qn(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=Fr(t);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ve.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return So(t,s)}else{var y=fi(t),p=y==v||y==w;if(Xr(t))return Lo(t,l);if(y==A||y==h||p&&!i){if(s=d||p?{}:_i(t),!l)return d?function(e,t){return Oo(e,gi(e),t)}(t,function(e,t){return e&&Oo(t,Bs(t),e)}(s,t)):function(e,t){return Oo(e,hi(e),t)}(t,ia(s,t))}else{if(!it[y])return i?t:{};s=function(e,t,n){var a,o=e.constructor;switch(t){case k:return Co(e);case f:case m:return new o(+e);case S:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case B:case T:case I:case V:case D:case G:case z:case R:return Eo(e,n);case x:return new o;case b:case E: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 C:return new o;case N:return a=e,zn?Ee(zn.call(a)):{}}}(t,y,l)}}r||(r=new Kn);var g=r.get(t);if(g)return g;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 _=u?e:(c?d?ri:ii:d?Bs:Os)(t);return Lt(_||t,(function(e,o){_&&(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=Ee(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 ya(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,Kt(n))),a?(i=kt,r=!1):t.length>=200&&(i=qt,r=!1,t=new Xn(t));e:for(;++o-1},Zn.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 Qn,map:new(Cn||Zn),string:new Qn}},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)},Kn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Zn){var a=n.__data__;if(!Cn||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=Io(xa),ha=Io(ba,!0);function ga(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?_a(s,t-1,n,a,o):Ot(o,s):a||(o[o.length]=s)}return o}var va=Vo(),wa=Vo(!0);function xa(e,t){return e&&va(e,t,Os)}function ba(e,t){return e&&wa(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&&Ve.call(e,t)}function Ma(e,t){return null!=e&&t in Ee(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,Kt(n))),d=wn(u.length,d),l[s]=!a&&(n||i>=120&&u.length>=120)?new Xn(s&&u):e}u=t[0];var y=-1,p=l[0];e:for(;++y=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Qa(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;wi(o)?qe.call(e,o,1):po(e,o)}}return e}function Xa(e,t){return e+Vt(An()*(t-e+1))}function Ka(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=Vt(t/2))&&(e+=e)}while(t);return n}function Ja(e,t){return Bi(Ni(e,t,ol),e+"")}function qa(e){return qn(js(e))}function $a(e,t){var n=js(e);return Vi(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:Jo(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=yt||function(e){return ut.clearTimeout(e)};function Lo(e,t){if(t)return e.slice();var n=e.length,a=Qe?Qe(n):new e.constructor(n);return e.copy(a),a}function Co(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function Eo(e,t){var n=t?Co(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=Ee(n);++o-1?i[r?n[s]:s]:e}}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 ke(t);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!==ut&&this instanceof s&&(L=m||zo(L)),L.apply(P,v)}}function Wo(e,t){return function(n,a){return function(e,t,n,a){return xa(e,(function(e,o,i){t(a,n(e),o,i)})),a}(n,e,t(a),{})}}function Uo(t,n){return function(a,o){var i;if(a===e&&o===e)return n;if(a!==e&&(i=a),o!==e){if(i===e)return o;"string"==typeof a||"string"==typeof o?(a=uo(a),o=uo(o)):(a=co(a),o=co(o)),i=t(a,o)}return i}}function Fo(e){return oi((function(t){return t=St(t,Kt(ci())),Ja((function(n){var a=this;return e(t,(function(e){return At(e,a,n)}))}))}))}function Qo(t,n){var a=(n=n===e?" ":uo(n)).length;if(a<2)return a?Ka(n,t):n;var o=Ka(n,ft(t/un(n)));return on(n)?Ao(yn(o),0,t).join(""):o.slice(0,t)}function Zo(t){return function(n,a,o){return o&&"number"!=typeof o&&xi(n,a,o)&&(a=o=e),n=hs(n),a===e?(a=n,n=0):a=hs(a),function(e,t,n,a){for(var o=-1,i=vn(ft((t-e)/(n||1)),0),r=be(i);i--;)r[a?i:++o]=e,e+=n;return r}(n,a,o=o===e?nl))return!1;var c=r.get(t),u=r.get(n);if(c&&u)return c==n&&u==t;var y=-1,p=!0,h=2&a?new Xn:e;for(r.set(t,n),r.set(n,t);++y-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 Ii(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 Vi(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=jn(e);return t.__chain__=!0,t}function hr(e,t){return t(e)}var gr=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 Fn&&wi(a)?((o=o.slice(a,+a+(n?1:0))).__actions__.push({func:hr,args:[i],thisArg:e}),new Un(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)})),fr=Bo((function(e,t,n){Ve.call(e,n)?++e[n]:ra(e,n,1)})),mr=Ro(Ui),_r=Ro(Fi);function vr(e,t){return(Fr(e)?Lt:pa)(e,ci(t,3))}function wr(e,t){return(Fr(e)?Ct:ha)(e,ci(t,3))}var xr=Bo((function(e,t,n){Ve.call(e,n)?e[n].push(t):ra(e,n,[t])})),br=Ja((function(e,t,n){var a=-1,o="function"==typeof t,i=Zr(e)?be(e.length):[];return pa(e,(function(e){i[++a]=o?At(t,e,n):Sa(e,t,n)})),i})),Ar=Bo((function(e,t,n){ra(e,n,t)}));function Pr(e,t){return(Fr(e)?St:Ra)(e,ci(t,3))}var Lr=Bo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Cr=Ja((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]]),Fa(e,_a(t,1),[])})),Er=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=gs(n),function(){return--n>0&&(o=a.apply(this,arguments)),n<=1&&(a=e),o}}var kr=Ja((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=Ja((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,y=!1,p=!1,h=!0;if("function"!=typeof n)throw new ke(t);function g(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=Er();if(f(e))return _(e);d=Oi(m,function(e){var t=a-(e-c);return p?wn(t,s-(e-u)):t}(e))}function _(t){return d=e,h&&i?g(t):(i=r=e,l)}function v(){var t=Er(),n=f(t);if(i=arguments,r=this,c=t,n){if(d===e)return function(e){return u=e,d=Oi(m,a),y?g(e):l}(c);if(p)return Po(d),d=Oi(m,a),g(c)}return d===e&&(d=Oi(m,a)),l}return a=ms(a)||0,ts(o)&&(y=!!o.leading,s=(p="maxWait"in o)?vn(ms(o.maxWait)||0,a):s,h="trailing"in o?!!o.trailing:h),v.cancel=function(){d!==e&&Po(d),u=0,i=c=r=d=e},v.flush=function(){return d===e?l:_(Er())},v}var Br=Ja((function(e,t){return ua(e,1,t)})),Tr=Ja((function(e,t,n){return ua(e,ms(t)||0,n)}));function Ir(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(Ir.Cache||Yn),a}function Vr(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)}}Ir.Cache=Yn;var Dr=bo((function(e,t){var n=(t=1==t.length&&Fr(t[0])?St(t[0],Kt(ci())):St(_a(t,1),Kt(ci()))).length;return Ja((function(a){for(var o=-1,i=wn(a.length,n);++o=t})),Ur=Oa(function(){return arguments}())?Oa:function(e){return ns(e)&&Ve.call(e,"callee")&&!Xe.call(e,"callee")},Fr=be.isArray,Qr=mt?Kt(mt):function(e){return ns(e)&&Ca(e)==k};function Zr(e){return null!=e&&es(e.length)&&!qr(e)}function Yr(e){return ns(e)&&Zr(e)}var Xr=Ft||ml,Kr=_t?Kt(_t):function(e){return ns(e)&&Ca(e)==m};function Jr(e){if(!ns(e))return!1;var t=Ca(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function qr(e){if(!ts(e))return!1;var t=Ca(e);return t==v||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $r(e){return"number"==typeof e&&e==gs(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=vt?Kt(vt):function(e){return ns(e)&&fi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Ca(e)==b}function is(e){if(!ns(e)||Ca(e)!=A)return!1;var t=Ze(e);if(null===t)return!0;var n=Ve.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Re}var rs=wt?Kt(wt):function(e){return ns(e)&&Ca(e)==L},ss=xt?Kt(xt):function(e){return ns(e)&&fi(e)==C};function ls(e){return"string"==typeof e||!Fr(e)&&ns(e)&&Ca(e)==E}function ds(e){return"symbol"==typeof e||ns(e)&&Ca(e)==N}var cs=bt?Kt(bt):function(e){return ns(e)&&es(e.length)&&!!ot[Ca(e)]},us=Yo(za),ys=Yo((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Zr(e))return ls(e)?yn(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==C?dn:js)(e)}function hs(e){return e?(e=ms(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function fs(e){return e?la(gs(e),0,y):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||ge.test(e)?lt(e.slice(2),n?2:8):ye.test(e)?u:+e}function _s(e){return Oo(e,Bs(e))}function vs(e){return null==e?"":uo(e)}var ws=To((function(e,t){if(Li(t)||Zr(t))Oo(t,Os(t),e);else for(var n in t)Ve.call(t,n)&&na(e,n,t[n])})),xs=To((function(e,t){Oo(t,Bs(t),e)})),bs=To((function(e,t,n,a){Oo(t,Bs(t),e,a)})),As=To((function(e,t,n,a){Oo(t,Os(t),e,a)})),Ps=oi(sa),Ls=Ja((function(t,n){t=Ee(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})),Ds=oi((function(e,t){return null==e?{}:function(e,t){return Qa(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),Qa(e,n,(function(e,n){return t(e,n[0])}))}var zs=qo(Os),Rs=qo(Bs);function js(e){return null==e?[]:Jt(e,Os(e))}var Hs=Go((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Js(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(me,tn).replace(Je,"")}var Fs=Go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=Go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Zs=Do("toLowerCase"),Ys=Go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xs=Go((function(e,t,n){return e+(n?" ":"")+Js(t)})),Ks=Go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Do("toUpperCase");function qs(t,n,a){return t=vs(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=Ja((function(t,n){try{return At(t,e,n)}catch(e){return Jr(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=jo(),al=jo(!0);function ol(e){return e}function il(e){return Va("function"==typeof e?e:da(e,1))}var rl=Ja((function(e,t){return function(n){return Sa(n,e,t)}})),sl=Ja((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=Fo(St),ul=Fo(Et),yl=Fo(It);function pl(e){return bi(e)?Ut(Gi(e)):function(e){return function(t){return Pa(t,e)}}(e)}var hl=Zo(),gl=Zo(!0);function fl(){return[]}function ml(){return!1}var _l,vl=Uo((function(e,t){return e+t}),0),wl=Ko("ceil"),xl=Uo((function(e,t){return e/t}),1),bl=Ko("floor"),Al=Uo((function(e,t){return e*t}),1),Pl=Ko("round"),Ll=Uo((function(e,t){return e-t}),0);return jn.after=function(e,n){if("function"!=typeof n)throw new ke(t);return e=gs(e),function(){if(--e<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=el,jn.bindKey=Sr,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Fr(e)?e:[e]},jn.chain=pr,jn.chunk=function(t,n,a){n=(a?xi(t,n,a):n===e)?1:vn(gs(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:gs(o))<0&&(o+=i),o=a>o?0:fs(o);a>>0)?(t=vs(t))&&("string"==typeof n||null!=n&&!rs(n))&&!(n=uo(n))&&on(t)?Ao(yn(t),0,a):t.split(n,a):[]},jn.spread=function(e,n){if("function"!=typeof e)throw new ke(t);return n=null==n?0:vn(gs(n),0),Ja((function(t){var a=t[n],o=Ao(t,0,n);return a&&Ot(o,a),At(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},jn.take=function(t,n,a){return t&&t.length?oo(t,0,(n=a||n===e?1:gs(n))<0?0:n):[]},jn.takeRight=function(t,n,a){var o=null==t?0:t.length;return o?oo(t,(n=o-(n=a||n===e?1:gs(n)))<0?0:n,o):[]},jn.takeRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?go(e,ci(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.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})},jn.thru=hr,jn.toArray=ps,jn.toPairs=zs,jn.toPairsIn=Rs,jn.toPath=function(e){return Fr(e)?St(e,Gi):ds(e)?[e]:So(Di(vs(e)))},jn.toPlainObject=_s,jn.transform=function(e,t,n){var a=Fr(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(Ze(e)):{}}return(o?Lt:xa)(e,(function(e,a,o){return t(n,e,a,o)})),n},jn.unary=function(e){return Nr(e,1)},jn.union=nr,jn.unionBy=ar,jn.unionWith=or,jn.uniq=function(e){return e&&e.length?yo(e):[]},jn.uniqBy=function(e,t){return e&&e.length?yo(e,ci(t,2)):[]},jn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?yo(t,e,n):[]},jn.unset=function(e,t){return null==e||po(e,t)},jn.unzip=ir,jn.unzipWith=rr,jn.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},jn.updateWith=function(t,n,a,o){return o="function"==typeof o?o:e,null==t?t:ho(t,n,wo(a),o)},jn.values=js,jn.valuesIn=function(e){return null==e?[]:Jt(e,Bs(e))},jn.without=sr,jn.words=qs,jn.wrap=function(e,t){return Gr(wo(t),e)},jn.xor=lr,jn.xorBy=dr,jn.xorWith=cr,jn.zip=ur,jn.zipObject=function(e,t){return _o(e||[],t||[],na)},jn.zipObjectDeep=function(e,t){return _o(e||[],t||[],eo)},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(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)},jn.clone=function(e){return da(e,4)},jn.cloneDeep=function(e){return da(e,5)},jn.cloneDeepWith=function(t,n){return da(t,5,n="function"==typeof n?n:e)},jn.cloneWith=function(t,n){return da(t,4,n="function"==typeof n?n:e)},jn.conformsTo=function(e,t){return null==t||ca(e,t,Os(t))},jn.deburr=Us,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=xl,jn.endsWith=function(t,n,a){t=vs(t),n=uo(n);var o=t.length,i=a=a===e?o:la(gs(a),0,o);return(a-=n.length)>=0&&t.slice(a,i)==n},jn.eq=jr,jn.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(F,nn):e},jn.escapeRegExp=function(e){return(e=vs(e))&&te.test(e)?e.replace(ee,"\\$&"):e},jn.every=function(t,n,a){var o=Fr(t)?Et:ga;return a&&xi(t,n,a)&&(n=e),o(t,ci(n,3))},jn.find=mr,jn.findIndex=Ui,jn.findKey=function(e,t){return Dt(e,ci(t,3),xa)},jn.findLast=_r,jn.findLastIndex=Fi,jn.findLastKey=function(e,t){return Dt(e,ci(t,3),ba)},jn.floor=bl,jn.forEach=vr,jn.forEachRight=wr,jn.forIn=function(e,t){return null==e?e:va(e,ci(t,3),Bs)},jn.forInRight=function(e,t){return null==e?e:wa(e,ci(t,3),Bs)},jn.forOwn=function(e,t){return e&&xa(e,ci(t,3))},jn.forOwnRight=function(e,t){return e&&ba(e,ci(t,3))},jn.get=Es,jn.gt=Hr,jn.gte=Wr,jn.has=function(e,t){return null!=e&&mi(e,t,Na)},jn.hasIn=Ns,jn.head=Zi,jn.identity=ol,jn.includes=function(e,t,n,a){e=Zr(e)?e:js(e),n=n&&!a?gs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},jn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(a+o,0)),zt(e,t,o)},jn.inRange=function(t,n,a){return n=hs(n),a===e?(a=n,n=0):a=hs(a),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=c},jn.isSet=ss,jn.isString=ls,jn.isSymbol=ds,jn.isTypedArray=cs,jn.isUndefined=function(t){return t===e},jn.isWeakMap=function(e){return ns(e)&&fi(e)==M},jn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ca(e)},jn.join=function(e,t){return null==e?"":mn.call(e,t)},jn.kebabCase=Fs,jn.last=Ji,jn.lastIndexOf=function(t,n,a){var o=null==t?0:t.length;if(!o)return-1;var i=o;return a!==e&&(i=(i=gs(a))<0?vn(o+i,0):wn(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,jt,i,!0)},jn.lowerCase=Qs,jn.lowerFirst=Zs,jn.lt=us,jn.lte=ys,jn.max=function(t){return t&&t.length?fa(t,ol,Ea):e},jn.maxBy=function(t,n){return t&&t.length?fa(t,ci(n,2),Ea):e},jn.mean=function(e){return Ht(e,ol)},jn.meanBy=function(e,t){return Ht(e,ci(t,2))},jn.min=function(t){return t&&t.length?fa(t,ol,za):e},jn.minBy=function(t,n){return t&&t.length?fa(t,ci(n,2),za):e},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(t,n){return t&&t.length?Ua(t,gs(n)):e},jn.noConflict=function(){return ut._===this&&(ut._=je),this},jn.noop=dl,jn.now=Er,jn.pad=function(e,t,n){e=vs(e);var a=(t=gs(t))?un(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return Qo(Vt(o),n)+e+Qo(ft(o),n)},jn.padEnd=function(e,t,n){e=vs(e);var a=(t=gs(t))?un(e):0;return t&&an){var o=t;t=n,n=o}if(a||t%1||n%1){var i=An();return wn(t+i*(n-t+st("1e-"+((i+"").length-1))),n)}return Xa(t,n)},jn.reduce=function(e,t,n){var a=Fr(e)?Bt:Qt,o=arguments.length<3;return a(e,ci(t,4),n,o,pa)},jn.reduceRight=function(e,t,n){var a=Fr(e)?Tt:Qt,o=arguments.length<3;return a(e,ci(t,4),n,o,ha)},jn.repeat=function(t,n,a){return n=(a?xi(t,n,a):n===e)?1:gs(n),Ka(vs(t),n)},jn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(t,n,a){var o=-1,i=(n=xo(n,t)).length;for(i||(i=1,t=e);++oc)return[];var n=y,a=wn(e,y);t=ci(t),e-=y;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,vs(ue.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var y=c.index;d=d.slice(0,y===e?l:y)}}else if(t.indexOf(uo(i),l)!=l){var p=d.lastIndexOf(i);p>-1&&(d=d.slice(0,p))}return d+o},jn.unescape=function(e){return(e=vs(e))&&Q.test(e)?e.replace(U,hn):e},jn.uniqueId=function(e){var t=++De;return vs(e)+t},jn.upperCase=Ks,jn.upperFirst=Js,jn.each=vr,jn.eachRight=wr,jn.first=Zi,ll(jn,(_l={},xa(jn,(function(e,t){Ve.call(jn.prototype,t)||(_l[t]=e)})),_l),{chain:!1}),jn.VERSION="4.17.21",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),Lt(["drop","take"],(function(t,n){Fn.prototype[t]=function(a){a=a===e?1:vn(gs(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:t+(o.__dir__<0?"Right":"")}),o},Fn.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;Fn.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":"");Fn.prototype[e]=function(){return this[n](1).value()[0]}})),Lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(ol)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=Ja((function(e,t){return"function"==typeof e?new Fn(this):this.map((function(n){return Sa(n,e,t)}))})),Fn.prototype.reject=function(e){return this.filter(Vr(ci(e)))},Fn.prototype.slice=function(t,n){t=gs(t);var a=this;return a.__filtered__&&(t>0||n<0)?new Fn(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==e&&(a=(n=gs(n))<0?a.dropRight(-n):a.take(n-t)),a)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(y)},xa(Fn.prototype,(function(t,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(e){var t=i.apply(jn,Ot([e],s));return o&&y?t[0]:t};c&&a&&"function"==typeof d&&1!=d.length&&(l=c=!1);var y=this.__chain__,p=!!this.__actions__.length,h=r&&!y,g=l&&!p;if(!r&&c){n=g?n:new Fn(this);var f=t.apply(n,s);return f.__actions__.push({func:hr,args:[u],thisArg:e}),new Un(f,y)}return h&&g?t.apply(this,s):(f=this.thru(u),h?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);jn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var o=this.value();return t.apply(Fr(o)?o:[],e)}return this[n]((function(n){return t.apply(Fr(n)?n:[],e)}))}})),xa(Fn.prototype,(function(e,t){var n=jn[t];if(n){var a=n.name+"";Ve.call(On,a)||(On[a]=[]),On[a].push({name:t,func:n})}})),On[Ho(e,2).name]=[{name:"wrapper",func:e}],Fn.prototype.clone=function(){var e=new Fn(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},Fn.prototype.reverse=function(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Fr(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__++]}},jn.prototype.plant=function(t){for(var n,a=this;a instanceof Wn;){var o=Ri(a);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;a=a.__wrapped__}return i.__wrapped__=t,n},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var n=t;return this.__actions__.length&&(n=new Fn(this)),(n=n.reverse()).__actions__.push({func:hr,args:[tr],thisArg:e}),new Un(n,this.__chain__)}return this.thru(tr)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,rt&&(jn.prototype[rt]=function(){return this}),jn}();pt?((pt.exports=gn)._=gn,yt._=gn):ut._=gn}.call(ao.exports)),ao.exports);let co=class extends re{constructor(){super(...arguments),this._computeLabelCallback=e=>Et("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this._config&&this.hass?H(so||(so=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:lo.capitalize(e),value:e})))}}},{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(fe).map((e=>({label:lo.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(_e).map((e=>({label:lo.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:6}}},{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:"pv5_name",selector:{text:{}}},{name:"pv6_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:"pv5_max_power",selector:{number:{}}},{name:"pv6_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:{}}},{name:"pv5_max_power",selector:{entity:{}}},{name:"pv6_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:Dt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Dt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Dt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Dt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Dt.POWER}}},{name:"pv5_power",selector:{entity:{device_class:Dt.POWER}}},{name:"pv6_power",selector:{entity:{device_class:Dt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv5_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv5_current",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv6_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv6_current",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Dt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Dt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Dt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Dt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"day_battery_charge_70",selector:{entity:{device_class:Dt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Dt.ENERGY}}}]},{type:"expandable",title:this._title("bat1"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Dt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Dt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Dt.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:Dt.POWER}}},{name:"battery2_current_191",selector:{entity:{device_class:Dt.CURRENT}}},{name:"battery2_temp_182",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"battery2_voltage_183",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"battery2_soc_184",selector:{entity:{device_class:Dt.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:Dt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Dt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Dt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Dt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load5",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load6",selector:{entity:{device_class:Dt.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:Dt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Dt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Dt.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:Dt.POWER}}}]}]}]}],this._valueChanged.bind(this)):H(ro||(ro=pe([""])))}_title(e){return Et("config.cat_title.".concat(e))??e}_valueChanged(e){Jt(this,"config-changed",{config:e.detail.value})}};e([ue()],co.prototype,"hass",void 0),e([ue()],co.prototype,"_config",void 0),e([ue()],co.prototype,"lovelace",void 0),co=e([le(Vt)],co);var uo=Object.freeze({__proto__:null,get SunSynkCardEditor(){return co}});export{to as SunsynkPowerFlowCard}; + */var zo,Ro,jo,Ho,Wo=(Do||(Do=1,zo=Go,Ro=Go.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,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",r],["rearg",l]],p="[object Arguments]",g="[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]",V="[object Int32Array]",D="[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,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,ye=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,fe=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,we="\\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",Ce="\\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",Ee="['’]",Ne="["+we+"]",Me="["+Ce+"]",ke="["+xe+"]",Se="\\d+",Oe="["+be+"]",Be="["+Ae+"]",Te="[^"+we+Ce+Se+be+Ae+Pe+"]",Ie="\\ud83c[\\udffb-\\udfff]",Ve="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Pe+"]",Re="\\u200d",je="(?:"+Be+"|"+Te+")",He="(?:"+ze+"|"+Te+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+ke+"|"+Ie+")?",Qe="["+Le+"]?",Ze=Qe+Fe+"(?:"+Re+"(?:"+[Ve,De,Ge].join("|")+")"+Qe+Fe+")*",Ye="(?:"+[Oe,De,Ge].join("|")+")"+Ze,Xe="(?:"+[Ve+ke+"?",ke,De,Ge,Ne].join("|")+")",Ke=RegExp(Ee,"g"),Je=RegExp(ke,"g"),qe=RegExp(Ie+"(?="+Ie+")|"+Xe+Ze,"g"),$e=RegExp([ze+"?"+Be+"+"+We+"(?="+[Me,ze,"$"].join("|")+")",He+"+"+Ue+"(?="+[Me,ze+je,"$"].join("|")+")",ze+"?"+je+"+"+We,ze+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ye].join("|"),"g"),et=RegExp("["+Re+we+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[B]=ot[T]=ot[I]=ot[V]=ot[D]=ot[G]=ot[z]=ot[R]=!0,ot[p]=ot[g]=ot[k]=ot[f]=ot[S]=ot[m]=ot[_]=ot[v]=ot[x]=ot[b]=ot[A]=ot[L]=ot[C]=ot[E]=ot[M]=!1;var it={};it[p]=it[g]=it[k]=it[S]=it[f]=it[m]=it[O]=it[B]=it[T]=it[I]=it[V]=it[x]=it[b]=it[A]=it[L]=it[C]=it[E]=it[N]=it[D]=it[G]=it[z]=it[R]=!0,it[_]=it[v]=it[M]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,dt="object"==typeof Wt&&Wt&&Wt.Object===Object&&Wt,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=dt||ct||Function("return this")(),ht=Ro&&!Ro.nodeType&&Ro,yt=ht&&zo&&!zo.nodeType&&zo,pt=yt&&yt.exports===ht,gt=pt&&dt.process,ft=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),mt=ft&&ft.isArrayBuffer,_t=ft&&ft.isDate,vt=ft&&ft.isMap,wt=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=Ft({"À":"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=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});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",""":'"',"'":"'"}),gn=function ae(we){var xe,be=(we=null==we?ut:gn.defaults(ut.Object(),we,gn.pick(ut,nt))).Array,Ae=we.Date,Pe=we.Error,Le=we.Function,Ce=we.Math,Ee=we.Object,Ne=we.RegExp,Me=we.String,ke=we.TypeError,Se=be.prototype,Oe=Le.prototype,Be=Ee.prototype,Te=we["__core-js_shared__"],Ie=Oe.toString,Ve=Be.hasOwnProperty,De=0,Ge=(xe=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+xe:"",ze=Be.toString,Re=Ie.call(Ee),je=ut._,He=Ne("^"+Ie.call(Ve).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=pt?we.Buffer:e,Ue=we.Symbol,Fe=we.Uint8Array,Qe=We?We.allocUnsafe:e,Ze=sn(Ee.getPrototypeOf,Ee),Ye=Ee.create,Xe=Be.propertyIsEnumerable,qe=Se.splice,et=Ue?Ue.isConcatSpreadable:e,rt=Ue?Ue.iterator:e,dt=Ue?Ue.toStringTag:e,ct=function(){try{var e=yi(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ht=we.clearTimeout!==ut.clearTimeout&&we.clearTimeout,yt=Ae&&Ae.now!==ut.Date.now&&Ae.now,gt=we.setTimeout!==ut.setTimeout&&we.setTimeout,ft=Ce.ceil,Vt=Ce.floor,Wt=Ee.getOwnPropertySymbols,Ft=We?We.isBuffer:e,fn=we.isFinite,mn=Se.join,_n=sn(Ee.keys,Ee),vn=Ce.max,wn=Ce.min,xn=Ae.now,bn=we.parseInt,An=Ce.random,Pn=Se.reverse,Ln=yi(we,"DataView"),Cn=yi(we,"Map"),En=yi(we,"Promise"),Nn=yi(we,"Set"),Mn=yi(we,"WeakMap"),kn=yi(Ee,"create"),Sn=Mn&&new Mn,On={},Bn=zi(Ln),Tn=zi(Cn),In=zi(En),Vn=zi(Nn),Dn=zi(Mn),Gn=Ue?Ue.prototype:e,zn=Gn?Gn.valueOf:e,Rn=Gn?Gn.toString:e;function jn(e){if(ns(e)&&!Fr(e)&&!(e instanceof Fn)){if(e instanceof Un)return e;if(Ve.call(e,"__wrapped__"))return Ri(e)}return new Un(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 Wn(){}function Un(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Qn(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=Fr(t);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ve.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return So(t,s)}else{var h=fi(t),y=h==v||h==w;if(Xr(t))return Lo(t,l);if(h==A||h==p||y&&!i){if(s=d||y?{}:_i(t),!l)return d?function(e,t){return Oo(e,gi(e),t)}(t,function(e,t){return e&&Oo(t,Bs(t),e)}(s,t)):function(e,t){return Oo(e,pi(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 Co(e);case f:case m:return new o(+e);case S:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case B:case T:case I:case V:case D:case G:case z:case R:return Eo(e,n);case x:return new o;case b:case E: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 C:return new o;case N:return a=e,zn?Ee(zn.call(a)):{}}}(t,h,l)}}r||(r=new Kn);var g=r.get(t);if(g)return g;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 _=u?e:(c?d?ri:ii:d?Bs:Os)(t);return Lt(_||t,(function(e,o){_&&(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=Ee(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,Kt(n))),a?(i=kt,r=!1):t.length>=200&&(i=qt,r=!1,t=new Xn(t));e:for(;++o-1},Zn.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 Qn,map:new(Cn||Zn),string:new Qn}},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)},Kn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Zn){var a=n.__data__;if(!Cn||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 ya=Io(xa),pa=Io(ba,!0);function ga(e,t){var n=!0;return ya(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?_a(s,t-1,n,a,o):Ot(o,s):a||(o[o.length]=s)}return o}var va=Vo(),wa=Vo(!0);function xa(e,t){return e&&va(e,t,Os)}function ba(e,t){return e&&wa(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&&Ve.call(e,t)}function Ma(e,t){return null!=e&&t in Ee(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,Kt(n))),d=wn(u.length,d),l[s]=!a&&(n||i>=120&&u.length>=120)?new Xn(s&&u):e}u=t[0];var h=-1,y=l[0];e:for(;++h=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Qa(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;wi(o)?qe.call(e,o,1):yo(e,o)}}return e}function Xa(e,t){return e+Vt(An()*(t-e+1))}function Ka(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=Vt(t/2))&&(e+=e)}while(t);return n}function Ja(e,t){return Bi(Ni(e,t,ol),e+"")}function qa(e){return qn(js(e))}function $a(e,t){var n=js(e);return Vi(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:Jo(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=Qe?Qe(n):new e.constructor(n);return e.copy(a),a}function Co(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function Eo(e,t){var n=t?Co(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=Ee(n);++o-1?i[r?n[s]:s]:e}}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 ke(t);if(r&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(i=l?i:o;++i1&&v.reverse(),h&&c<_&&(v.length=c),this&&this!==ut&&this instanceof s&&(L=m||zo(L)),L.apply(P,v)}}function Wo(e,t){return function(n,a){return function(e,t,n,a){return xa(e,(function(e,o,i){t(a,n(e),o,i)})),a}(n,e,t(a),{})}}function Uo(t,n){return function(a,o){var i;if(a===e&&o===e)return n;if(a!==e&&(i=a),o!==e){if(i===e)return o;"string"==typeof a||"string"==typeof o?(a=uo(a),o=uo(o)):(a=co(a),o=co(o)),i=t(a,o)}return i}}function Fo(e){return oi((function(t){return t=St(t,Kt(ci())),Ja((function(n){var a=this;return e(t,(function(e){return At(e,a,n)}))}))}))}function Qo(t,n){var a=(n=n===e?" ":uo(n)).length;if(a<2)return a?Ka(n,t):n;var o=Ka(n,ft(t/un(n)));return on(n)?Ao(hn(o),0,t).join(""):o.slice(0,t)}function Zo(t){return function(n,a,o){return o&&"number"!=typeof o&&xi(n,a,o)&&(a=o=e),n=ps(n),a===e?(a=n,n=0):a=ps(a),function(e,t,n,a){for(var o=-1,i=vn(ft((t-e)/(n||1)),0),r=be(i);i--;)r[a?i:++o]=e,e+=n;return r}(n,a,o=o===e?nl))return!1;var c=r.get(t),u=r.get(n);if(c&&u)return c==n&&u==t;var h=-1,y=!0,p=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(y,(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 Ii(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 Vi(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 yr(e){var t=jn(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var gr=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 Fn&&wi(a)?((o=o.slice(a,+a+(n?1:0))).__actions__.push({func:pr,args:[i],thisArg:e}),new Un(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(i)})),fr=Bo((function(e,t,n){Ve.call(e,n)?++e[n]:ra(e,n,1)})),mr=Ro(Ui),_r=Ro(Fi);function vr(e,t){return(Fr(e)?Lt:ya)(e,ci(t,3))}function wr(e,t){return(Fr(e)?Ct:pa)(e,ci(t,3))}var xr=Bo((function(e,t,n){Ve.call(e,n)?e[n].push(t):ra(e,n,[t])})),br=Ja((function(e,t,n){var a=-1,o="function"==typeof t,i=Zr(e)?be(e.length):[];return ya(e,(function(e){i[++a]=o?At(t,e,n):Sa(e,t,n)})),i})),Ar=Bo((function(e,t,n){ra(e,n,t)}));function Pr(e,t){return(Fr(e)?St:Ra)(e,ci(t,3))}var Lr=Bo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Cr=Ja((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]]),Fa(e,_a(t,1),[])})),Er=yt||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=gs(n),function(){return--n>0&&(o=a.apply(this,arguments)),n<=1&&(a=e),o}}var kr=Ja((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=Ja((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,y=!1,p=!0;if("function"!=typeof n)throw new ke(t);function g(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||y&&t-u>=s}function m(){var e=Er();if(f(e))return _(e);d=Oi(m,function(e){var t=a-(e-c);return y?wn(t,s-(e-u)):t}(e))}function _(t){return d=e,p&&i?g(t):(i=r=e,l)}function v(){var t=Er(),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?g(e):l}(c);if(y)return Po(d),d=Oi(m,a),g(c)}return d===e&&(d=Oi(m,a)),l}return a=ms(a)||0,ts(o)&&(h=!!o.leading,s=(y="maxWait"in o)?vn(ms(o.maxWait)||0,a):s,p="trailing"in o?!!o.trailing:p),v.cancel=function(){d!==e&&Po(d),u=0,i=c=r=d=e},v.flush=function(){return d===e?l:_(Er())},v}var Br=Ja((function(e,t){return ua(e,1,t)})),Tr=Ja((function(e,t,n){return ua(e,ms(t)||0,n)}));function Ir(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(Ir.Cache||Yn),a}function Vr(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)}}Ir.Cache=Yn;var Dr=bo((function(e,t){var n=(t=1==t.length&&Fr(t[0])?St(t[0],Kt(ci())):St(_a(t,1),Kt(ci()))).length;return Ja((function(a){for(var o=-1,i=wn(a.length,n);++o=t})),Ur=Oa(function(){return arguments}())?Oa:function(e){return ns(e)&&Ve.call(e,"callee")&&!Xe.call(e,"callee")},Fr=be.isArray,Qr=mt?Kt(mt):function(e){return ns(e)&&Ca(e)==k};function Zr(e){return null!=e&&es(e.length)&&!qr(e)}function Yr(e){return ns(e)&&Zr(e)}var Xr=Ft||ml,Kr=_t?Kt(_t):function(e){return ns(e)&&Ca(e)==m};function Jr(e){if(!ns(e))return!1;var t=Ca(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function qr(e){if(!ts(e))return!1;var t=Ca(e);return t==v||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $r(e){return"number"==typeof e&&e==gs(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=vt?Kt(vt):function(e){return ns(e)&&fi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Ca(e)==b}function is(e){if(!ns(e)||Ca(e)!=A)return!1;var t=Ze(e);if(null===t)return!0;var n=Ve.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Re}var rs=wt?Kt(wt):function(e){return ns(e)&&Ca(e)==L},ss=xt?Kt(xt):function(e){return ns(e)&&fi(e)==C};function ls(e){return"string"==typeof e||!Fr(e)&&ns(e)&&Ca(e)==E}function ds(e){return"symbol"==typeof e||ns(e)&&Ca(e)==N}var cs=bt?Kt(bt):function(e){return ns(e)&&es(e.length)&&!!ot[Ca(e)]},us=Yo(za),hs=Yo((function(e,t){return e<=t}));function ys(e){if(!e)return[];if(Zr(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==C?dn:js)(e)}function ps(e){return e?(e=ms(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function fs(e){return e?la(gs(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=ye.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):he.test(e)?u:+e}function _s(e){return Oo(e,Bs(e))}function vs(e){return null==e?"":uo(e)}var ws=To((function(e,t){if(Li(t)||Zr(t))Oo(t,Os(t),e);else for(var n in t)Ve.call(t,n)&&na(e,n,t[n])})),xs=To((function(e,t){Oo(t,Bs(t),e)})),bs=To((function(e,t,n,a){Oo(t,Bs(t),e,a)})),As=To((function(e,t,n,a){Oo(t,Os(t),e,a)})),Ps=oi(sa),Ls=Ja((function(t,n){t=Ee(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--;)yo(n,t[o]);return n})),Ds=oi((function(e,t){return null==e?{}:function(e,t){return Qa(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),Qa(e,n,(function(e,n){return t(e,n[0])}))}var zs=qo(Os),Rs=qo(Bs);function js(e){return null==e?[]:Jt(e,Os(e))}var Hs=Go((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Js(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(me,tn).replace(Je,"")}var Fs=Go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=Go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Zs=Do("toLowerCase"),Ys=Go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xs=Go((function(e,t,n){return e+(n?" ":"")+Js(t)})),Ks=Go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Do("toUpperCase");function qs(t,n,a){return t=vs(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=Ja((function(t,n){try{return At(t,e,n)}catch(e){return Jr(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=jo(),al=jo(!0);function ol(e){return e}function il(e){return Va("function"==typeof e?e:da(e,1))}var rl=Ja((function(e,t){return function(n){return Sa(n,e,t)}})),sl=Ja((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=Fo(St),ul=Fo(Et),hl=Fo(It);function yl(e){return bi(e)?Ut(Gi(e)):function(e){return function(t){return Pa(t,e)}}(e)}var pl=Zo(),gl=Zo(!0);function fl(){return[]}function ml(){return!1}var _l,vl=Uo((function(e,t){return e+t}),0),wl=Ko("ceil"),xl=Uo((function(e,t){return e/t}),1),bl=Ko("floor"),Al=Uo((function(e,t){return e*t}),1),Pl=Ko("round"),Ll=Uo((function(e,t){return e-t}),0);return jn.after=function(e,n){if("function"!=typeof n)throw new ke(t);return e=gs(e),function(){if(--e<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=el,jn.bindKey=Sr,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Fr(e)?e:[e]},jn.chain=yr,jn.chunk=function(t,n,a){n=(a?xi(t,n,a):n===e)?1:vn(gs(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:gs(o))<0&&(o+=i),o=a>o?0:fs(o);a>>0)?(t=vs(t))&&("string"==typeof n||null!=n&&!rs(n))&&!(n=uo(n))&&on(t)?Ao(hn(t),0,a):t.split(n,a):[]},jn.spread=function(e,n){if("function"!=typeof e)throw new ke(t);return n=null==n?0:vn(gs(n),0),Ja((function(t){var a=t[n],o=Ao(t,0,n);return a&&Ot(o,a),At(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},jn.take=function(t,n,a){return t&&t.length?oo(t,0,(n=a||n===e?1:gs(n))<0?0:n):[]},jn.takeRight=function(t,n,a){var o=null==t?0:t.length;return o?oo(t,(n=o-(n=a||n===e?1:gs(n)))<0?0:n,o):[]},jn.takeRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?go(e,ci(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.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})},jn.thru=pr,jn.toArray=ys,jn.toPairs=zs,jn.toPairsIn=Rs,jn.toPath=function(e){return Fr(e)?St(e,Gi):ds(e)?[e]:So(Di(vs(e)))},jn.toPlainObject=_s,jn.transform=function(e,t,n){var a=Fr(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(Ze(e)):{}}return(o?Lt:xa)(e,(function(e,a,o){return t(n,e,a,o)})),n},jn.unary=function(e){return Nr(e,1)},jn.union=nr,jn.unionBy=ar,jn.unionWith=or,jn.uniq=function(e){return e&&e.length?ho(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ho(e,ci(t,2)):[]},jn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?ho(t,e,n):[]},jn.unset=function(e,t){return null==e||yo(e,t)},jn.unzip=ir,jn.unzipWith=rr,jn.update=function(e,t,n){return null==e?e:po(e,t,wo(n))},jn.updateWith=function(t,n,a,o){return o="function"==typeof o?o:e,null==t?t:po(t,n,wo(a),o)},jn.values=js,jn.valuesIn=function(e){return null==e?[]:Jt(e,Bs(e))},jn.without=sr,jn.words=qs,jn.wrap=function(e,t){return Gr(wo(t),e)},jn.xor=lr,jn.xorBy=dr,jn.xorWith=cr,jn.zip=ur,jn.zipObject=function(e,t){return _o(e||[],t||[],na)},jn.zipObjectDeep=function(e,t){return _o(e||[],t||[],eo)},jn.zipWith=hr,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(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)},jn.clone=function(e){return da(e,4)},jn.cloneDeep=function(e){return da(e,5)},jn.cloneDeepWith=function(t,n){return da(t,5,n="function"==typeof n?n:e)},jn.cloneWith=function(t,n){return da(t,4,n="function"==typeof n?n:e)},jn.conformsTo=function(e,t){return null==t||ca(e,t,Os(t))},jn.deburr=Us,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=xl,jn.endsWith=function(t,n,a){t=vs(t),n=uo(n);var o=t.length,i=a=a===e?o:la(gs(a),0,o);return(a-=n.length)>=0&&t.slice(a,i)==n},jn.eq=jr,jn.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(F,nn):e},jn.escapeRegExp=function(e){return(e=vs(e))&&te.test(e)?e.replace(ee,"\\$&"):e},jn.every=function(t,n,a){var o=Fr(t)?Et:ga;return a&&xi(t,n,a)&&(n=e),o(t,ci(n,3))},jn.find=mr,jn.findIndex=Ui,jn.findKey=function(e,t){return Dt(e,ci(t,3),xa)},jn.findLast=_r,jn.findLastIndex=Fi,jn.findLastKey=function(e,t){return Dt(e,ci(t,3),ba)},jn.floor=bl,jn.forEach=vr,jn.forEachRight=wr,jn.forIn=function(e,t){return null==e?e:va(e,ci(t,3),Bs)},jn.forInRight=function(e,t){return null==e?e:wa(e,ci(t,3),Bs)},jn.forOwn=function(e,t){return e&&xa(e,ci(t,3))},jn.forOwnRight=function(e,t){return e&&ba(e,ci(t,3))},jn.get=Es,jn.gt=Hr,jn.gte=Wr,jn.has=function(e,t){return null!=e&&mi(e,t,Na)},jn.hasIn=Ns,jn.head=Zi,jn.identity=ol,jn.includes=function(e,t,n,a){e=Zr(e)?e:js(e),n=n&&!a?gs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},jn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(a+o,0)),zt(e,t,o)},jn.inRange=function(t,n,a){return n=ps(n),a===e?(a=n,n=0):a=ps(a),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=c},jn.isSet=ss,jn.isString=ls,jn.isSymbol=ds,jn.isTypedArray=cs,jn.isUndefined=function(t){return t===e},jn.isWeakMap=function(e){return ns(e)&&fi(e)==M},jn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ca(e)},jn.join=function(e,t){return null==e?"":mn.call(e,t)},jn.kebabCase=Fs,jn.last=Ji,jn.lastIndexOf=function(t,n,a){var o=null==t?0:t.length;if(!o)return-1;var i=o;return a!==e&&(i=(i=gs(a))<0?vn(o+i,0):wn(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,jt,i,!0)},jn.lowerCase=Qs,jn.lowerFirst=Zs,jn.lt=us,jn.lte=hs,jn.max=function(t){return t&&t.length?fa(t,ol,Ea):e},jn.maxBy=function(t,n){return t&&t.length?fa(t,ci(n,2),Ea):e},jn.mean=function(e){return Ht(e,ol)},jn.meanBy=function(e,t){return Ht(e,ci(t,2))},jn.min=function(t){return t&&t.length?fa(t,ol,za):e},jn.minBy=function(t,n){return t&&t.length?fa(t,ci(n,2),za):e},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(t,n){return t&&t.length?Ua(t,gs(n)):e},jn.noConflict=function(){return ut._===this&&(ut._=je),this},jn.noop=dl,jn.now=Er,jn.pad=function(e,t,n){e=vs(e);var a=(t=gs(t))?un(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return Qo(Vt(o),n)+e+Qo(ft(o),n)},jn.padEnd=function(e,t,n){e=vs(e);var a=(t=gs(t))?un(e):0;return t&&an){var o=t;t=n,n=o}if(a||t%1||n%1){var i=An();return wn(t+i*(n-t+st("1e-"+((i+"").length-1))),n)}return Xa(t,n)},jn.reduce=function(e,t,n){var a=Fr(e)?Bt:Qt,o=arguments.length<3;return a(e,ci(t,4),n,o,ya)},jn.reduceRight=function(e,t,n){var a=Fr(e)?Tt:Qt,o=arguments.length<3;return a(e,ci(t,4),n,o,pa)},jn.repeat=function(t,n,a){return n=(a?xi(t,n,a):n===e)?1:gs(n),Ka(vs(t),n)},jn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.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=wn(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,vs(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 y=d.lastIndexOf(i);y>-1&&(d=d.slice(0,y))}return d+o},jn.unescape=function(e){return(e=vs(e))&&Q.test(e)?e.replace(U,pn):e},jn.uniqueId=function(e){var t=++De;return vs(e)+t},jn.upperCase=Ks,jn.upperFirst=Js,jn.each=vr,jn.eachRight=wr,jn.first=Zi,ll(jn,(_l={},xa(jn,(function(e,t){Ve.call(jn.prototype,t)||(_l[t]=e)})),_l),{chain:!1}),jn.VERSION="4.17.21",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),Lt(["drop","take"],(function(t,n){Fn.prototype[t]=function(a){a=a===e?1:vn(gs(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,h),type:t+(o.__dir__<0?"Right":"")}),o},Fn.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;Fn.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":"");Fn.prototype[e]=function(){return this[n](1).value()[0]}})),Lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(ol)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=Ja((function(e,t){return"function"==typeof e?new Fn(this):this.map((function(n){return Sa(n,e,t)}))})),Fn.prototype.reject=function(e){return this.filter(Vr(ci(e)))},Fn.prototype.slice=function(t,n){t=gs(t);var a=this;return a.__filtered__&&(t>0||n<0)?new Fn(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==e&&(a=(n=gs(n))<0?a.dropRight(-n):a.take(n-t)),a)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(h)},xa(Fn.prototype,(function(t,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(e){var t=i.apply(jn,Ot([e],s));return o&&h?t[0]:t};c&&a&&"function"==typeof d&&1!=d.length&&(l=c=!1);var h=this.__chain__,y=!!this.__actions__.length,p=r&&!h,g=l&&!y;if(!r&&c){n=g?n:new Fn(this);var f=t.apply(n,s);return f.__actions__.push({func:pr,args:[u],thisArg:e}),new Un(f,h)}return p&&g?t.apply(this,s):(f=this.thru(u),p?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);jn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var o=this.value();return t.apply(Fr(o)?o:[],e)}return this[n]((function(n){return t.apply(Fr(n)?n:[],e)}))}})),xa(Fn.prototype,(function(e,t){var n=jn[t];if(n){var a=n.name+"";Ve.call(On,a)||(On[a]=[]),On[a].push({name:t,func:n})}})),On[Ho(e,2).name]=[{name:"wrapper",func:e}],Fn.prototype.clone=function(){var e=new Fn(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},Fn.prototype.reverse=function(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Fr(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__++]}},jn.prototype.plant=function(t){for(var n,a=this;a instanceof Wn;){var o=Ri(a);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;a=a.__wrapped__}return i.__wrapped__=t,n},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var n=t;return this.__actions__.length&&(n=new Fn(this)),(n=n.reverse()).__actions__.push({func:pr,args:[tr],thisArg:e}),new Un(n,this.__chain__)}return this.thru(tr)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,rt&&(jn.prototype[rt]=function(){return this}),jn}();yt?((yt.exports=gn)._=gn,ht._=gn):ut._=gn}.call(Go.exports)),Go.exports);let Uo=class extends re{constructor(){super(...arguments),this._computeLabelCallback=e=>Et("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this._config&&this.hass?H(Ho||(Ho=ye(["\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:Wo.capitalize(e),value:e})))}}},{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(fe).map((e=>({label:Wo.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(_e).map((e=>({label:Wo.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:6}}},{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:"pv5_name",selector:{text:{}}},{name:"pv6_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:"pv5_max_power",selector:{number:{}}},{name:"pv6_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:{}}},{name:"pv5_max_power",selector:{entity:{}}},{name:"pv6_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:"load1_switch",selector:{entity:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load2_switch",selector:{entity:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"load3_switch",selector:{entity:{}}},{name:"load4_name",selector:{text:{}}},{name:"load4_icon",selector:{icon:{}}},{name:"load4_switch",selector:{entity:{}}},{name:"load5_name",selector:{text:{}}},{name:"load5_icon",selector:{icon:{}}},{name:"load5_switch",selector:{entity:{}}},{name:"load6_name",selector:{text:{}}},{name:"load6_icon",selector:{icon:{}}},{name:"load6_switch",selector:{entity:{}}},{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:Dt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Dt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Dt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Dt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Dt.POWER}}},{name:"pv5_power",selector:{entity:{device_class:Dt.POWER}}},{name:"pv6_power",selector:{entity:{device_class:Dt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv5_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv5_current",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv6_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv6_current",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Dt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Dt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Dt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Dt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"day_battery_charge_70",selector:{entity:{device_class:Dt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Dt.ENERGY}}}]},{type:"expandable",title:this._title("bat1"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Dt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Dt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Dt.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:Dt.POWER}}},{name:"battery2_current_191",selector:{entity:{device_class:Dt.CURRENT}}},{name:"battery2_temp_182",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"battery2_voltage_183",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"battery2_soc_184",selector:{entity:{device_class:Dt.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:Dt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Dt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Dt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Dt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load5",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load6",selector:{entity:{device_class:Dt.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:Dt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Dt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Dt.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:Dt.POWER}}}]}]}]}],this._valueChanged.bind(this)):H(jo||(jo=ye([""])))}_title(e){return Et("config.cat_title.".concat(e))??e}_valueChanged(e){Jt(this,"config-changed",{config:e.detail.value})}};e([ue()],Uo.prototype,"hass",void 0),e([ue()],Uo.prototype,"_config",void 0),e([ue()],Uo.prototype,"lovelace",void 0),Uo=e([le(Vt)],Uo);var Fo=Object.freeze({__proto__:null,get SunSynkCardEditor(){return Uo}});export{Vo as SunsynkPowerFlowCard}; diff --git a/docs/configuration.md b/docs/configuration.md index 3b3f7e30..71c238c4 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -163,17 +163,23 @@ These attributes are only needed if `show_solar` is set to `true`. | essential_name: | Optional | `Essential` | Set the display name for the essential load. | additional_loads: | Optional | `0` | Display additional loads on the essential side (`0/1/2/3/4/5/6`). Three loads will only be visable when using the lite and compact card. Up to six loads can be displayed if using the wide screen display mode. Four or more loads are only visable on the full card if `show_aux: false`. | load1_name: | Optional | | Set the display name for the essential load 1. -| load2_name: | Optional | | Set the display name for the essential load 2. -| load3_name: | Optional | | Set the display name for the essential load 3 (Lite/compact card only). -| load4_name: | Optional | | Set the display name for the essential load 4. -| load5_name: | Optional | | Set the display name for the essential load 5. -| load6_name: | Optional | | Set the display name for the essential load 6. | load1_icon: | Optional | none | Set the essential load 1 image using preset or any mdi icon e.g. `mdi:ev-station` Presets are: `boiler`, `pump`, `aircon`, `oven`. You can also provide a sensor that returns the mdi icon. | +| load1_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 1 icon. +| load2_name: | Optional | | Set the display name for the essential load 2. | load2_icon: | Optional | none | Set the essential load 2 image using preset or any mdi icon e.g. `mdi:ev-station` Presets are: `boiler`, `pump`, `aircon`, `oven`. You can also provide a sensor that returns the mdi icon. | +| load2_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 2 icon. +| load3_name: | Optional | | Set the display name for the essential load 3 (Lite/compact card only). | load3_icon: | Optional | none | Set the essential load 3 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. | +| load3_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 3 icon. +| load4_name: | Optional | | Set the display name for the essential load 4. | load4_icon: | Optional | none | Set the essential load 4 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. | +| load4_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 4 icon. +| load5_name: | Optional | | Set the display name for the essential load 5. | load5_icon: | Optional | none | Set the essential load 5 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. | +| load5_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 5 icon. +| load6_name: | Optional | | Set the display name for the essential load 6. | load6_icon: | Optional | none | Set the essential load 6 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. | +| load6_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 6 icon. | auto_scale: | Optional | `true` | If set to `true` the card will use the entities `unit_of_measurement` attribute to perform the correct scaling (i,e, power values greater than 999W will be displayed as kW e.g. 1.23kW) and display the correct unit. The number of decimal places can be changed using the `decimal_places` card attribute apart from the daily energy values which are set using the `decimal_places_energy` attribute. | | off_threshold: | Optional | `0` | When power falls below this value the load will be considered off and colour will change to grey. Requires `dynamic_colour` to be enabled. Can also be set to `-1` to disable. | | path_threshold: | Optional | `100` | Specify threshold to apply dynamic colour to the load path element. The colour of the path will change to the source colour if the percentage supply by a single source equals or exceeds this value. diff --git a/package.json b/package.json index fe8b298b..a993178a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sunsynk-power-flow-card", - "version": "6.3.0", + "version": "6.4.0", "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/cards/compact-card.ts b/src/cards/compact-card.ts index 7d6e2cda..21ca1d74 100644 --- a/src/cards/compact-card.ts +++ b/src/cards/compact-card.ts @@ -1751,11 +1751,22 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str - -
- -
-
+ ${data.iconEssentialLoad1 && config.load.load1_switch + ? svg` + Utils.handlePopup(e, config.load.load1_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
@@ -1806,11 +1817,22 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str - -
- -
-
+ ${data.iconEssentialLoad2 && config.load.load2_switch + ? svg` + Utils.handlePopup(e, config.load.load2_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
@@ -1829,18 +1851,40 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str ${config.load.load3_name} - -
- -
-
+ ${data.iconEssentialLoad2 && config.load.load2_switch + ? svg` + Utils.handlePopup(e, config.load.load2_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- -
- -
-
+ ${data.iconEssentialLoad3 && config.load.load3_switch + ? svg` + Utils.handlePopup(e, config.load.load3_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.essential_load2_extra)}> - -
- -
-
+ ${data.iconEssentialLoad1 && config.load.load1_switch + ? svg` + Utils.handlePopup(e, config.load.load1_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- -
- -
-
+ ${data.iconEssentialLoad2 && config.load.load2_switch + ? svg` + Utils.handlePopup(e, config.load.load2_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- -
- -
-
+ ${data.iconEssentialLoad3 && config.load.load3_switch + ? svg` + Utils.handlePopup(e, config.load.load3_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- -
- -
-
+ ${data.iconEssentialLoad4 && config.load.load4_switch + ? svg` + Utils.handlePopup(e, config.load.load4_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.essential_load1_extra)}> - -
- -
-
+ ${data.iconEssentialLoad5 && config.load.load5_switch + ? svg` + Utils.handlePopup(e, config.load.load5_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.essential_load5_extra)}> - -
- -
-
+ ${data.iconEssentialLoad6 && config.load.load6_switch + ? svg` + Utils.handlePopup(e, config.load.load6_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.essential_load6_extra)}> - -
- -
-
+ ${data.iconEssentialLoad5 && config.load.load5_switch + ? svg` + Utils.handlePopup(e, config.load.load5_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.essential_load5_extra)}> - -
- -
-
+ ${data.iconEssentialLoad6 && config.load.load6_switch + ? svg` + Utils.handlePopup(e, config.load.load6_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.essential_load6_extra)}>
- - -
- -
-
+ ${data.iconEssentialLoad1 && config.load.load1_switch + ? svg` + Utils.handlePopup(e, config.load.load1_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- - -
- -
-
+ ${data.iconEssentialLoad2 && config.load.load2_switch + ? svg` + Utils.handlePopup(e, config.load.load2_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- - -
- -
-
+ ${data.iconEssentialLoad3 && config.load.load3_switch + ? svg` + Utils.handlePopup(e, config.load.load3_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- - -
- -
-
+ ${data.iconEssentialLoad4 && config.load.load4_switch + ? svg` + Utils.handlePopup(e, config.load.load4_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
- - -
- -
-
+ + ${data.iconEssentialLoad1 && config.load.load1_switch + ? svg` + Utils.handlePopup(e, config.load.load1_switch)}> + +
+ +
+
+
` + : svg` + +
+ +
+
` + }
Utils.handlePopup(e, config.entities.day_load_energy_84)}> Utils.handlePopup(e, config.entities.radiator_temp_91)}> - AC: ${data.stateRadiatorTemp.toNum(1)}° diff --git a/src/editor.ts b/src/editor.ts index 1f0f08f3..5750d42a 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -314,16 +314,22 @@ export class SunSynkCardEditor extends LitElement implements LovelaceCardEditor {name: 'additional_loads', selector: {number: {mode: 'box', min: 0, max: 6}}}, {name: 'load1_name', selector: {text: {}}}, {name: 'load1_icon', selector: {icon: {}}}, + {name: 'load1_switch', selector: {entity: {}}}, {name: 'load2_name', selector: {text: {}}}, {name: 'load2_icon', selector: {icon: {}}}, + {name: 'load2_switch', selector: {entity: {}}}, {name: 'load3_name', selector: {text: {}}}, {name: 'load3_icon', selector: {icon: {}}}, + {name: 'load3_switch', selector: {entity: {}}}, {name: 'load4_name', selector: {text: {}}}, {name: 'load4_icon', selector: {icon: {}}}, + {name: 'load4_switch', selector: {entity: {}}}, {name: 'load5_name', selector: {text: {}}}, {name: 'load5_icon', selector: {icon: {}}}, + {name: 'load5_switch', selector: {entity: {}}}, {name: 'load6_name', selector: {text: {}}}, {name: 'load6_icon', selector: {icon: {}}}, + {name: 'load6_switch', selector: {entity: {}}}, {name: 'animation_speed', selector: {number: {}}}, {name: 'max_power', selector: {number: {}}}, {name: 'off_threshold', selector: {number: {}}}, diff --git a/src/types.ts b/src/types.ts index 86cfb226..68164fa1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -171,6 +171,12 @@ export interface sunsynkPowerFlowCardConfig extends LovelaceCardConfig { load4_name: string; load5_name: string; load6_name: string; + load1_switch: string; + load2_switch: string; + load3_switch: string; + load4_switch: string; + load5_switch: string; + load6_switch: string; load1_icon: string; load2_icon: string; load3_icon: string;