Home-AssistantConfig/config/www/community/vacuum-card/vacuum-card.js

5 lines
89 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function t(t,e,a,o){var i,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,a,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(n=(r<3?i(n):r>3?i(e,a,n):i(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n}const e=window,a=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),i=new WeakMap;class r{constructor(t,e,a){if(this._$cssResult$=!0,a!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const a=void 0!==e&&1===e.length;a&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),a&&i.set(e,t))}return t}toString(){return this.cssText}}const n=(t,...e)=>{const a=1===t.length?t[0]:e.reduce(((e,a,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+t[o+1]),t[0]);return new r(a,t,o)},s=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const a of t.cssRules)e+=a.cssText;return(t=>new r("string"==typeof t?t:t+"",void 0,o))(e)})(t):t;var l;const c=window,u=c.trustedTypes,_=u?u.emptyScript:"",d=c.reactiveElementPolyfillSupport,h={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let a=t;switch(e){case Boolean:a=null!==t;break;case Number:a=null===t?null:Number(t);break;case Object:case Array:try{a=JSON.parse(t)}catch(t){a=null}}return a}},m=(t,e)=>e!==t&&(e==e||t==t),p={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:m};class v extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,a)=>{const o=this._$Ep(a,e);void 0!==o&&(this._$Ev.set(o,a),t.push(o))})),t}static createProperty(t,e=p){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const a="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,a,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,a){return{get(){return this[e]},set(o){const i=this[t];this[e]=o,this.requestUpdate(t,i,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||p}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const a of e)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const a=new Set(t.flat(1/0).reverse());for(const t of a)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Ep(t,e){const a=e.attribute;return!1===a?void 0:"string"==typeof a?a:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,a;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(a=t.hostConnected)||void 0===a||a.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const o=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{a?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((a=>{const o=document.createElement("style"),i=e.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=a.cssText,t.appendChild(o)}))})(o,this.constructor.elementStyles),o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,a){this._$AK(t,a)}_$EO(t,e,a=p){var o;const i=this.constructor._$Ep(t,a);if(void 0!==i&&!0===a.reflect){const r=(void 0!==(null===(o=a.converter)||void 0===o?void 0:o.toAttribute)?a.converter:h).toAttribute(e,a.type);this._$El=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$El=null}}_$AK(t,e){var a;const o=this.constructor,i=o._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(a=t.converter)||void 0===a?void 0:a.fromAttribute)?t.converter:h;this._$El=i,this[i]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,a){let o=!0;void 0!==t&&(((a=a||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===a.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,a))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const a=this._$AL;try{e=this.shouldUpdate(a),e?(this.willUpdate(a),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(a)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(a)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var g;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:v}),(null!==(l=c.reactiveElementVersions)&&void 0!==l?l:c.reactiveElementVersions=[]).push("1.6.1");const f=window,b=f.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,y="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,$="?"+k,S=`<${$}>`,A=document,z=()=>A.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,x="[ \t\n\f\r]",E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,P=/>/g,V=RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),M=/'/g,T=/"/g,N=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...a)=>({_$litType$:t,strings:e,values:a}))(1),R=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),U=new WeakMap,D=A.createTreeWalker(A,129,null,!1),L=(t,e)=>{const a=t.length-1,o=[];let i,r=2===e?"<svg>":"",n=E;for(let e=0;e<a;e++){const a=t[e];let s,l,c=-1,u=0;for(;u<a.length&&(n.lastIndex=u,l=n.exec(a),null!==l);)u=n.lastIndex,n===E?"!--"===l[1]?n=O:void 0!==l[1]?n=P:void 0!==l[2]?(N.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=V):void 0!==l[3]&&(n=V):n===V?">"===l[0]?(n=null!=i?i:E,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?V:'"'===l[3]?T:M):n===T||n===M?n=V:n===O||n===P?n=E:(n=V,i=void 0);const _=n===V&&t[e+1].startsWith("/>")?" ":"";r+=n===E?a+S:c>=0?(o.push(s),a.slice(0,c)+y+a.slice(c)+k+_):a+k+(-2===c?(o.push(void 0),e):_)}const s=r+(t[a]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(s):s,o]};class B{constructor({strings:t,_$litType$:e},a){let o;this.parts=[];let i=0,r=0;const n=t.length-1,s=this.parts,[l,c]=L(t,e);if(this.el=B.createElement(l,a),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(y)||e.startsWith(k)){const a=c[r++];if(t.push(e),void 0!==a){const t=o.getAttribute(a.toLowerCase()+y).split(k),e=/([.?@])?(.*)/.exec(a);s.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?F:"?"===e[1]?J:"@"===e[1]?X:W})}else s.push({type:6,index:i})}for(const e of t)o.removeAttribute(e)}if(N.test(o.tagName)){const t=o.textContent.split(k),e=t.length-1;if(e>0){o.textContent=b?b.emptyScript:"";for(let a=0;a<e;a++)o.append(t[a],z()),D.nextNode(),s.push({type:2,index:++i});o.append(t[e],z())}}}else if(8===o.nodeType)if(o.data===$)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)s.push({type:7,index:i}),t+=k.length-1}i++}}static createElement(t,e){const a=A.createElement("template");return a.innerHTML=t,a}}function Z(t,e,a=t,o){var i,r,n,s;if(e===R)return e;let l=void 0!==o?null===(i=a._$Co)||void 0===i?void 0:i[o]:a._$Cl;const c=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,a,o)),void 0!==o?(null!==(n=(s=a)._$Co)&&void 0!==n?n:s._$Co=[])[o]=l:a._$Cl=l),void 0!==l&&(e=Z(t,l._$AS(t,e.values),l,o)),e}class q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:a},parts:o}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(a,!0);D.currentNode=i;let r=D.nextNode(),n=0,s=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new K(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Y(r,this,t)),this._$AV.push(e),l=o[++s]}n!==(null==l?void 0:l.index)&&(r=D.nextNode(),n++)}return D.currentNode=A,i}v(t){let e=0;for(const a of this._$AV)void 0!==a&&(void 0!==a.strings?(a._$AI(t,a,e),e+=a.strings.length-2):a._$AI(t[e])),e++}}class K{constructor(t,e,a,o){var i;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=a,this.options=o,this._$Cp=null===(i=null==o?void 0:o.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),j(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:a,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(a);else{const t=new q(i,this),e=t.u(this.options);t.v(a),this.$(e),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new B(t)),e}T(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let a,o=0;for(const i of t)o===e.length?e.push(a=new K(this.k(z()),this.k(z()),this,this.options)):a=e[o],a._$AI(i),o++;o<e.length&&(this._$AR(a&&a._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var a;for(null===(a=this._$AP)||void 0===a||a.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class W{constructor(t,e,a,o,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,a.length>2||""!==a[0]||""!==a[1]?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,a,o){const i=this.strings;let r=!1;if(void 0===i)t=Z(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==R,r&&(this._$AH=t);else{const o=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=Z(this,o[a+n],e,n),s===R&&(s=this._$AH[n]),r||(r=!j(s)||s!==this._$AH[n]),s===H?t=H:t!==H&&(t+=(null!=s?s:"")+i[n+1]),this._$AH[n]=s}r&&!o&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const G=b?b.emptyScript:"";class J extends W{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class X extends W{constructor(t,e,a,o,i){super(t,e,a,o,i),this.type=5}_$AI(t,e=this){var a;if((t=null!==(a=Z(this,t,e,0))&&void 0!==a?a:H)===R)return;const o=this._$AH,i=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,a;"function"==typeof this._$AH?this._$AH.call(null!==(a=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==a?a:this.element,t):this._$AH.handleEvent(t)}}class Y{constructor(t,e,a){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const Q=f.litHtmlPolyfillSupport;null==Q||Q(B,K),(null!==(g=f.litHtmlVersions)&&void 0!==g?g:f.litHtmlVersions=[]).push("2.7.4");var tt,et;class at extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const a=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=a.firstChild),a}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,a)=>{var o,i;const r=null!==(o=null==a?void 0:a.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(i=null==a?void 0:a.renderBefore)&&void 0!==i?i:null;r._$litPart$=n=new K(e.insertBefore(z(),t),t,void 0,null!=a?a:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return R}}at.finalized=!0,at._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:at});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:at}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.3.2");const it=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:a,elements:o}=e;return{kind:a,elements:o,finisher(e){customElements.define(t,e)}}})(t,e),rt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(a){a.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(a){a.createProperty(e.key,t)}};function nt(t){return(e,a)=>void 0!==a?((t,e,a)=>{e.constructor.createProperty(a,t)})(t,e,a):rt(t,e)}function st(t){return nt({...t,state:!0})}var lt,ct,ut;null===(lt=window.HTMLSlotElement)||void 0===lt||lt.prototype.assignedElements,function(t){t.language="language",t.system="system",t.comma_decimal="comma_decimal",t.decimal_comma="decimal_comma",t.space_comma="space_comma",t.none="none"}(ct||(ct={})),function(t){t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24"}(ut||(ut={}));var _t=function(t,e,a,o){o=o||{},a=null==a?{}:a;var i=new Event(e,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});return i.detail=a,t.dispatchEvent(i),i};function dt(t,e,a,o){var i,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,a,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(n=(r<3?i(n):r>3?i(e,a,n):i(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n}class ht extends at{constructor(){super(...arguments),this.template="",this.variables={},this.value=null,this.unsubscribePromise=null}connectedCallback(){super.connectedCallback(),this.hass?this.unsubscribePromise||this.template&&(this.unsubscribePromise=this.hass.connection.subscribeMessage((t=>{this.value=t.result}),{type:"render_template",template:this.template,variables:this.variables})):console.warn("hass object is not provided")}async disconnectedCallback(){if(super.disconnectedCallback(),this.unsubscribePromise)try{const t=await this.unsubscribePromise;return this.unsubscribePromise=null,t()}catch(t){if("not_found"!==t.code)throw t}}render(){var t;return null!==(t=this.value)&&void 0!==t?t:H}}dt([nt()],ht.prototype,"hass",void 0),dt([nt()],ht.prototype,"template",void 0),dt([nt()],ht.prototype,"variables",void 0),dt([nt()],ht.prototype,"value",void 0),dt([st()],ht.prototype,"unsubscribePromise",void 0);var mt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vt=Array.isArray,gt="object"==typeof mt&&mt&&mt.Object===Object&&mt,ft="object"==typeof self&&self&&self.Object===Object&&self,bt=gt||ft||Function("return this")(),wt=bt.Symbol,yt=wt,kt=Object.prototype,$t=kt.hasOwnProperty,St=kt.toString,At=yt?yt.toStringTag:void 0;var zt=function(t){var e=$t.call(t,At),a=t[At];try{t[At]=void 0;var o=!0}catch(t){}var i=St.call(t);return o&&(e?t[At]=a:delete t[At]),i},jt=Object.prototype.toString;var Ct=zt,xt=function(t){return jt.call(t)},Et=wt?wt.toStringTag:void 0;var Ot=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Et&&Et in Object(t)?Ct(t):xt(t)};var Pt=Ot,Vt=function(t){return null!=t&&"object"==typeof t};var Mt=function(t){return"symbol"==typeof t||Vt(t)&&"[object Symbol]"==Pt(t)},Tt=vt,Nt=Mt,It=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rt=/^\w*$/;var Ht=function(t,e){if(Tt(t))return!1;var a=typeof t;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=t&&!Nt(t))||(Rt.test(t)||!It.test(t)||null!=e&&t in Object(e))};var Ut=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Dt=Ot,Lt=Ut;var Bt,Zt=function(t){if(!Lt(t))return!1;var e=Dt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},qt=bt["__core-js_shared__"],Kt=(Bt=/[^.]+$/.exec(qt&&qt.keys&&qt.keys.IE_PROTO||""))?"Symbol(src)_1."+Bt:"";var Wt=function(t){return!!Kt&&Kt in t},Ft=Function.prototype.toString;var Gt=Zt,Jt=Wt,Xt=Ut,Yt=function(t){if(null!=t){try{return Ft.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Qt=/^\[object .+?Constructor\]$/,te=Function.prototype,ee=Object.prototype,ae=te.toString,oe=ee.hasOwnProperty,ie=RegExp("^"+ae.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(t){return!(!Xt(t)||Jt(t))&&(Gt(t)?ie:Qt).test(Yt(t))},ne=function(t,e){return null==t?void 0:t[e]};var se=function(t,e){var a=ne(t,e);return re(a)?a:void 0},le=se(Object,"create"),ce=le;var ue=function(){this.__data__=ce?ce(null):{},this.size=0};var _e=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},de=le,he=Object.prototype.hasOwnProperty;var me=function(t){var e=this.__data__;if(de){var a=e[t];return"__lodash_hash_undefined__"===a?void 0:a}return he.call(e,t)?e[t]:void 0},pe=le,ve=Object.prototype.hasOwnProperty;var ge=le;var fe=ue,be=_e,we=me,ye=function(t){var e=this.__data__;return pe?void 0!==e[t]:ve.call(e,t)},ke=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=ge&&void 0===e?"__lodash_hash_undefined__":e,this};function $e(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var o=t[e];this.set(o[0],o[1])}}$e.prototype.clear=fe,$e.prototype.delete=be,$e.prototype.get=we,$e.prototype.has=ye,$e.prototype.set=ke;var Se=$e;var Ae=function(){this.__data__=[],this.size=0};var ze=function(t,e){return t===e||t!=t&&e!=e};var je=function(t,e){for(var a=t.length;a--;)if(ze(t[a][0],e))return a;return-1},Ce=je,xe=Array.prototype.splice;var Ee=je;var Oe=je;var Pe=je;var Ve=Ae,Me=function(t){var e=this.__data__,a=Ce(e,t);return!(a<0)&&(a==e.length-1?e.pop():xe.call(e,a,1),--this.size,!0)},Te=function(t){var e=this.__data__,a=Ee(e,t);return a<0?void 0:e[a][1]},Ne=function(t){return Oe(this.__data__,t)>-1},Ie=function(t,e){var a=this.__data__,o=Pe(a,t);return o<0?(++this.size,a.push([t,e])):a[o][1]=e,this};function Re(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var o=t[e];this.set(o[0],o[1])}}Re.prototype.clear=Ve,Re.prototype.delete=Me,Re.prototype.get=Te,Re.prototype.has=Ne,Re.prototype.set=Ie;var He=Re,Ue=se(bt,"Map"),De=Se,Le=He,Be=Ue;var Ze=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var qe=function(t,e){var a=t.__data__;return Ze(e)?a["string"==typeof e?"string":"hash"]:a.map},Ke=qe;var We=qe;var Fe=qe;var Ge=qe;var Je=function(){this.size=0,this.__data__={hash:new De,map:new(Be||Le),string:new De}},Xe=function(t){var e=Ke(this,t).delete(t);return this.size-=e?1:0,e},Ye=function(t){return We(this,t).get(t)},Qe=function(t){return Fe(this,t).has(t)},ta=function(t,e){var a=Ge(this,t),o=a.size;return a.set(t,e),this.size+=a.size==o?0:1,this};function ea(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var o=t[e];this.set(o[0],o[1])}}ea.prototype.clear=Je,ea.prototype.delete=Xe,ea.prototype.get=Ye,ea.prototype.has=Qe,ea.prototype.set=ta;var aa=ea;function oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var a=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=a.cache;if(r.has(i))return r.get(i);var n=t.apply(this,o);return a.cache=r.set(i,n)||r,n};return a.cache=new(oa.Cache||aa),a}oa.Cache=aa;var ia=oa;var ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,na=/\\(\\)?/g,sa=function(t){var e=ia(t,(function(t){return 500===a.size&&a.clear(),t})),a=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ra,(function(t,a,o,i){e.push(o?i.replace(na,"$1"):a||t)})),e}));var la=function(t,e){for(var a=-1,o=null==t?0:t.length,i=Array(o);++a<o;)i[a]=e(t[a],a,t);return i},ca=vt,ua=Mt,_a=wt?wt.prototype:void 0,da=_a?_a.toString:void 0;var ha=function t(e){if("string"==typeof e)return e;if(ca(e))return la(e,t)+"";if(ua(e))return da?da.call(e):"";var a=e+"";return"0"==a&&1/e==-Infinity?"-0":a},ma=ha;var pa=vt,va=Ht,ga=sa,fa=function(t){return null==t?"":ma(t)};var ba=Mt;var wa=function(t,e){return pa(t)?t:va(t,e)?[t]:ga(fa(t))},ya=function(t){if("string"==typeof t||ba(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var ka=function(t,e){for(var a=0,o=(e=wa(e,t)).length;null!=t&&a<o;)t=t[ya(e[a++])];return a&&a==o?t:void 0};var $a=function(t,e,a){var o=null==t?void 0:ka(t,e);return void 0===o?a:o},Sa=pt($a),Aa={cleaning:"Netejant",paused:"En pausa",idle:"Inactiu",charging:"Carregant","returning home":"Tornant a la base",docked:"A la base"},za={gentle:"Delicat",silent:"Silenciós",standard:"Estàndard",medium:"Mitjà",turbo:"Turbo"},ja={name:"Vacuum Card",description:"Vacuum card us permet controlar el robot aspirador.",start:"Neteja",continue:"Continua",pause:"Pausa",stop:"Atura",return_to_base:"Torna a la base",locate:"Localitza",not_available:"No disponible"},Ca={missing_entity:"Cal especificar una entitat."},xa={entity:"Entitat (Requerit)",map:"Càmera de mapa (Opcional)",image:"Imatge (Opcional)",compact_view:"Visualització compacta",compact_view_aria_label_on:"Activar visualització compacta",compact_view_aria_label_off:"Desactivar visualització compacta",show_name:"Mostrar nom",show_name_aria_label_on:"Mostra nom",show_name_aria_label_off:"Amaga nom",show_status:"Mostrar estat",show_status_aria_label_on:"Mostra estat",show_status_aria_label_off:"Amaga estat",show_toolbar:"Mostrar barra d'eines",show_toolbar_aria_label_on:"Mostra barra d'eines",show_toolbar_aria_label_off:"Amaga barra d'eines",code_only_note:"Nota: Configuració de les accions i estadístiques només disponible des de l'Editor de Codi."},Ea={status:Aa,source:za,common:ja,error:Ca,editor:xa},Oa={cleaning:"清扫中",auto:"自动清扫",spot:"区域清扫",edge:"边缘清扫",single_room:"单房间清扫",paused:"暂停中",idle:"闲置中",stop:"已停止",charging:"充电中","returning home":"回充",returning:"回充",docked:"充电中",unknown:"未知",offline:"离线",error:"错误"},Pa={gentle:"轻柔",silent:"安静",standard:"标准",medium:"中等",turbo:"强力",normal:"正常",high:"高",strong:"强力",quiet:"安静",max:"Max","max+":"Max+"},Va={name:"Vacuum Card",description:"Vacuum Card 允许您控制您的扫地机器人。",start:"清扫",continue:"继续",pause:"暂停",stop:"停止",return_to_base:"回充",locate:"定位扫地机器人",not_available:"扫地机器人不可用"},Ma={missing_entity:"必须指定一个实体!"},Ta={actions_array:'警告: "动作" 是为了覆盖现有按钮的默认动作而保留的。如果你的目的是增加额外的动作,请使用"快捷键"选项来代替。'},Na={entity:"实体 (必填)",map:"地图 (选填)",image:"图片 (选填)",compact_view:"紧凑视图",compact_view_aria_label_on:"开启紧凑视图",compact_view_aria_label_off:"关闭紧凑视图",show_name:"显示名称",show_name_aria_label_on:"开启名称显示",show_name_aria_label_off:"关闭名称显示",show_status:"显示状态",show_status_aria_label_on:"开启状态显示",show_status_aria_label_off:"关闭状态显示",show_toolbar:"显示工具栏",show_toolbar_aria_label_on:"开启工具栏显示",show_toolbar_aria_label_off:"关闭工具栏显示",code_only_note:"注意: 设置动作和统计选项只能使用代码编辑器。"},Ia={status:Oa,source:Pa,common:Va,error:Ma,warning:Ta,editor:Na},Ra={cleaning:"Vysává se",auto:"Automatické vysávání",spot:"Vysávání na místě",edge:"Vysávání při okraji",single_room:"Vysávání jedné místnosti",paused:"Pozastaveno",idle:"Nečinný",stop:"Zastavený",charging:"Nabíjí se","returning home":"Vrací se do stanice",returning:"Vrací se",docked:"Ve stanici",unknown:"Neznámý",offline:"Vypnuto",error:"Chyba"},Ha={gentle:"Mírný",silent:"Tichý",standard:"Standardní",medium:"Střední",turbo:"Turbo",normal:"Normální",high:"Vysoký",strong:"Silný",quiet:"Tichý",max:"Max","max+":"Max+"},Ua={name:"Karta vysavače",description:"Karta vysavače vám dovolí ovládat svůj vysavač.",start:"Začni vysávat",continue:"Pokračuj",pause:"Pozastav",stop:"Zastav",return_to_base:"Vrať se domů",locate:"Lokalizuj",not_available:"Vysavač není dostupný"},Da={missing_entity:"Je vyžadováno specifikování entity!"},La={actions_array:"VAROVÁNÍ: 'actions' jsou rezervovány pro přepsání původních akcí u existujících tlačítek. Pokud jste chtěli měli v plánu přidat další akce, použijte namísto toho možnost 'shortcuts'."},Ba={entity:"Entita (Povinný)",map:"Mapa (Nepovinný)",image:"Fotka (Nepovinný)",compact_view:"Kompaktní zobrazení",compact_view_aria_label_on:"Zapni kompaktní zobrazení",compact_view_aria_label_off:"Vypni kompaktní zobrazení",show_name:"Zobraz název",show_name_aria_label_on:"Zapni zobrazení názvu",show_name_aria_label_off:"Vypni zobrazení názvu",show_status:"Zobraz status",show_status_aria_label_on:"Zapni zobrazení statusu",show_status_aria_label_off:"Vypni zobrazení statusu",show_toolbar:"Zobraz lištu",show_toolbar_aria_label_on:"Zapni zobrazení lišty",show_toolbar_aria_label_off:"Vypni zobrazení lišty",code_only_note:"Poznámka: Nastavení akcí a infa je dostupné pouze v editoru kódu."},Za={status:Ra,source:Ha,common:Ua,error:Da,warning:La,editor:Ba},qa={cleaning:"Støvsuger",paused:"Pauset",idle:"Inaktiv",charging:"Lader","returning home":"Returnerer til dock"},Ka={gentle:"Mild",silent:"Stille",standard:"Standard",medium:"Medium",turbo:"Turbo"},Wa={name:"Vacuum Card",description:"Vacuum card lader dig kontrollere din robotstøvsuger.",start:"Start",continue:"Fortsæt",pause:"Pause",stop:"Stop",return_to_base:"Gå til dock",locate:"Find støvsuger",not_available:"Støvsuger er ikke tilgængelig"},Fa={missing_entity:"En enhed skal specificeres!"},Ga={actions_array:""},Ja={entity:"Enhed (Påkrævet)",map:"Map Camera (Valgfrit)",image:"Billede (Valgfrit)",compact_view:"Kompakt visning",compact_view_aria_label_on:"Slå kompakt visning til",compact_view_aria_label_off:"Slå kompakt visning fra",show_name:"Vis navn",show_name_aria_label_on:"Slå visning af navn til",show_name_aria_label_off:"Slå visning af navn fra",show_status:"Vis Status",show_status_aria_label_on:"Slå visning af status til",show_status_aria_label_off:"Slå visning af status fra",show_toolbar:"Vis værktøjslinje",show_toolbar_aria_label_on:"Slå visning af værktøjslinje til",show_toolbar_aria_label_off:"Slå visning af værktøjslinje fra",code_only_note:"Bemærk: Indstilling af actions og statistik er udelukkende muligt via Code Editor."},Xa={status:qa,source:Ka,common:Wa,error:Fa,warning:Ga,editor:Ja},Ya={cleaning:"Reinigen",paused:"Pausiert",idle:"Untätig",charging:"Aufladen","returning home":"Rückkehr zu Dockingstation",returning:"Rückkehr zu Dockingstation","segment cleaning":"Zimmerreinigung",docked:"Angedockt",error:"Fehler"},Qa={silent:"Leise",standard:"Standard",medium:"Mittel",turbo:"Max",quiet:"Leise",max:"Maximal","max+":"Maximal+",gentle:"Schonend"},to={name:"Vacuum Card",description:"Vacuum card ermöglicht es Ihnen, Ihr Staubsaugerroboter zu steuern.",start:"Reinigen",continue:"Weiter",pause:"Pause",stop:"Stop",return_to_base:"Dock",locate:"Staubsauger lokalisieren"},eo={missing_entity:"Angabe der Entität ist erforderlich!"},ao={actions_array:""},oo={entity:"Entität (Erforderlich)",map:"Map Camera (Optional)",image:"Bild (Optional)",compact_view:"kompakte Ansicht",compact_view_aria_label_on:"Schalte kompakte Ansicht ein",compact_view_aria_label_off:"Schalte kompakte Ansicht aus",show_name:"Zeige Namen",show_name_aria_label_on:"Schalte 'Zeige Namen' ein",show_name_aria_label_off:"Schalte 'Zeige Namen' aus",show_toolbar:"Zeige Toolbar",show_toolbar_aria_label_on:"Schalte 'Zeige Toolbar' ein",show_toolbar_aria_label_off:"Schalte 'Zeige Toolbar' aus",code_only_note:"Hinweis: Das Festlegen von Aktionen und Statistikoptionen ist ausschließlich mit dem Code-Editor möglich."},io={status:Ya,source:Qa,common:to,error:eo,warning:ao,editor:oo},ro={cleaning:"Cleaning",auto:"Automatic Cleaning",spot:"Spot Cleaning",edge:"Edge Cleaning",single_room:"Single Room Cleaning",paused:"Paused",idle:"Idle",stop:"Stopped",charging:"Charging","returning home":"Returning Home",returning:"Returning Home",docked:"Docked",unknown:"Unknown",offline:"Offline",error:"Error"},no={gentle:"Gentle",silent:"Silent",standard:"Standard",medium:"Medium",turbo:"Turbo",normal:"Normal",high:"High",strong:"Strong",quiet:"Quiet",max:"Max","max+":"Max+"},so={name:"Vacuum Card",description:"Vacuum card allows you to control your robot vacuum.",start:"Clean",continue:"Continue",pause:"Pause",stop:"Stop",return_to_base:"Dock",locate:"Locate Vacuum",not_available:"Vacuum is not available"},lo={invalid_config:"Invalid configuration",missing_entity:"Specifying entity is required!"},co={actions_array:"WARNING: 'actions' is reserved to override default actions for existing buttons. If your intention was to add additional actions, use the 'shortcuts' option instead."},uo={entity:"Entity (Required)",map:"Map Camera (Optional)",image:"Image (Optional)",compact_view:"Compact View",compact_view_aria_label_on:"Toggle compact view on",compact_view_aria_label_off:"Toggle compact view off",show_name:"Show Name",show_name_aria_label_on:"Toggle display name on",show_name_aria_label_off:"Toggle display name off",show_status:"Show Status",show_status_aria_label_on:"Toggle display status on",show_status_aria_label_off:"Toggle display status off",show_toolbar:"Show Toolbar",show_toolbar_aria_label_on:"Toggle display toolbar on",show_toolbar_aria_label_off:"Toggle display toolbar off",code_only_note:"Note: Setting actions and stats options are available exclusively using Code Editor."},_o={status:ro,source:no,common:so,error:lo,warning:co,editor:uo},ho={cleaning:"Limpiando",paused:"En pausa",idle:"Inactivo",charging:"Cargando","returning home":"Volviendo a la base",docked:"En la base","segment cleaning":"Limpiando zona",returning:"Volviendo a la base"},mo={gentle:"Delicado",silent:"Silencioso",standard:"Estándar",medium:"Medio",turbo:"Turbo",strong:"Fuerte"},po={name:"Vacuum Card",description:"Vacuum card te permite controlar tu robot aspirador.",start:"Comenzar",continue:"Continuar",pause:"Pausar",stop:"Detener",return_to_base:"Volver a la base",locate:"Localizar",not_available:"Vacuum no está disponible"},vo={missing_entity:"¡Se requiere especificar una entidad!"},go={actions_array:"ATENCIÓN: La opcion 'actions' está reservada para sobreescribir el comportamiento por defecto de los botones existentes. Si su intención es añadir acciones adicionales, debe utilizar la opcion 'shortcuts' en su lugar."},fo={entity:"Entidad (Requerido)",map:"Map Camera (Opcional)",image:"Imagen (Opcional)",compact_view:"Vista compacta",compact_view_aria_label_on:"Activar vista compacta",compact_view_aria_label_off:"Desactivar vista compacta",show_name:"Nombre a mostrar",show_name_aria_label_on:"Mostrar nombre",show_name_aria_label_off:"Ocultar nombre",show_status:"Mostrar estado",show_status_aria_label_on:"Activar estado de la pantalla",show_status_aria_label_off:"Desactivar estado de la pantalla",show_toolbar:"Mostrar barra de herramientas",show_toolbar_aria_label_on:"Activar la barra de herramientas",show_toolbar_aria_label_off:"Desactivar la barra de herramientas",code_only_note:"Nota: La configuración de las acciones y estadísticas está únicamente disponible a través del Editor de Código."},bo={status:ho,source:mo,common:po,error:vo,warning:go,editor:fo},wo={Cleaning:"Siivoaa",Paused:"Pysäytetty",Idle:"Toimeton",Charging:"Latauksessa","Returning home":"Palaa kotiin"},yo={Gentle:"Hellävarainen",Silent:"Hiljainen",Standard:"Normaali",Medium:"Keskitaso",Turbo:"Turbo"},ko={name:"Pölynimurikortti",description:"Pölynimurikortti sallii robotti imurin ohjauksen.",start:"Siivoa",continue:"Jatka",pause:"Tauko",stop:"Pysähdy",return_to_base:"Latausasemaan",locate:"Paikanna imuri",not_available:"Imuri ei saatavilla"},$o={missing_entity:"Entiteetti puuttuu!"},So={entity:"Entiteetti (Vaaditaan)",map:"Kartan kamera (Valinnainen)",image:"Kuva (Valinnainen)",compact_view:"Kompakti näkymä",compact_view_aria_label_on:"Kompakti näkymä päälle",compact_view_aria_label_off:"Kompakti näkymä pois",show_name:"Näytä Nimi",show_name_aria_label_on:"Näyttönimi päälle",show_name_aria_label_off:"Näyttönimi pois",show_status:"Näytä Tila",show_status_aria_label_on:"Tilanäyttö päälle",show_status_aria_label_off:"Tilanäyttö pois",show_toolbar:"Näytä työkalurivi",show_toolbar_aria_label_on:"Työkalurivi päälle",show_toolbar_aria_label_off:"Työkalurivi pois",code_only_note:"Huom: Toimintojen ja tilastojen optiot ovat saatavilla ainoastaan koodieditorissa"},Ao={status:wo,source:yo,common:ko,error:$o,editor:So},zo={cleaning:"Nettoyage",auto:"Nettoyage Automatique",spot:"Nettoyage Localisé",edge:"Nettoyage Contours",single_room:"Nettoyage Pièce Unique",paused:"En pause",idle:"Inactif",stop:"Arrêté",charging:"En charge","returning home":"Retour à la base",returning:"Retour à la base",docked:"A la base",unknown:"Inconnu",offline:"Déconnecté"},jo={gentle:"Doux",silent:"Silencieux",standard:"Standard",medium:"Moyen",turbo:"Turbo",normal:"Normal",high:"Intense"},Co={name:"Vacuum Carte",description:"Vacuum carte vous permet de contrôler votre robot aspirateur.",start:"Nettoyer",continue:"Continuer",pause:"Pause",stop:"Stop",return_to_base:"Retour base",locate:"Localiser aspirateur",not_available:"L'aspirateur n'est pas disponible"},xo={missing_entity:"La spécification de l'entité est requise !"},Eo={actions_array:""},Oo={entity:"Entité (obligatoire)",map:"Caméra de carte (facultatif)",image:"Image (facultatif)",compact_view:"Vue compacte",compact_view_aria_label_on:"Activer la vue compacte",compact_view_aria_label_off:"Désactiver la vue compacte",show_name:"Afficher le nom",show_name_aria_label_on:"Activer affichage du nom",show_name_aria_label_off:"Désactiver affichage du nom",show_status:"Afficher l'état",show_status_aria_label_on:"Activer l'affichage de l'état",show_status_aria_label_off:"Désactiver l'affichage de l'état",show_toolbar:"Afficher la barre d'outils",show_toolbar_aria_label_on:"Activer l'affichage de la barre d'outils",show_toolbar_aria_label_off:"Désactiver l'affichage de la barre d'outils",code_only_note:"Remarque: Les options de réglage des actions et statistiques sont disponibles exclusivement en utilisant l'éditeur de code."},Po={status:zo,source:jo,common:Co,error:xo,warning:Eo,editor:Oo},Vo={cleaning:"מנקה","segment cleaning":"ניקוי מקטע",auto:"ניקוי אוטומטי",spot:"ניקוי אזור",edge:"ניקוי פינה",single_room:"ניקוי חדר יחיד",paused:"מושהה",idle:"ממתין",stop:"נעצר",charging:"בטעינה","returning home":"בחזרה הביתה",returning:"חוזר",docked:"בתחנה",unknown:"לא ידוע",offline:"מנותק",error:"שגיאה"},Mo={gentle:"עדין",silent:"שקט",standard:"רגיל",medium:"בינוני",turbo:"טורבו",normal:"נורמלי",high:"גבוה",auto:"אוטומטי"},To={name:"כרטיס שואב",description:"כרטיס שואב מאפשר לך שליטה על שואב האבק שלך.",start:"נקה",continue:"המשך",pause:"השהה",stop:"עצור",return_to_base:"עגינה",locate:"אתר שואב",not_available:"השואב אינו זמין"},No={missing_entity:"יש צורך לציין ישות!"},Io={actions_array:""},Ro={entity:"ישות (נדרש)",map:"מצלמת מפה (אפשרי)",image:"תמונה (אפשרי)",compact_view:"תצוגה קומפקטית",compact_view_aria_label_on:"החלף תצוגה קומפקטית",compact_view_aria_label_off:"כבה את התצוגה הקומפקטית",show_name:"שם תצוגה",show_name_aria_label_on:"הפעל את שם התצוגה למצב מופעל",show_name_aria_label_off:"כבה את שם התצוגה",show_status:"הצג סטטוס",show_status_aria_label_on:"הפעל את מצב התצוגה למצב פעיל",show_status_aria_label_off:"כבה את מצב התצוגה",show_toolbar:"הצג סרגל כלים",show_toolbar_aria_label_on:"הפעל את סרגל הכלים לתצוגה",show_toolbar_aria_label_off:"כבה את סרגל הכלים לתצוגה",code_only_note:"הערה: הגדרת פעולות ואפשרויות סטטיסטיקה זמינות אך ורק באמצעות עורך הקוד."},Ho={status:Vo,source:Mo,common:To,error:No,warning:Io,editor:Ro},Uo={cleaning:"Tisztítás",paused:"Szünet",idle:"Tétlen",charging:"Töltés","returning home":"Hazatérés"},Do={gentle:"Gyengéd",silent:"Csendes",standard:"Alap",medium:"Közepes",turbo:"Turbo"},Lo={name:"Porszívó Kártya",description:"Ez a kártya lehetővé teszi, hogy robot porszívódat irányítsd.",start:"Tisztítás",continue:"Folytatás",pause:"Szünet",stop:"Megszakítás",return_to_base:"Hazatérés",locate:"Porszívó megkeresése",not_available:"A porszívó nem elérhető"},Bo={missing_entity:"Entitás megadása kötelező!"},Zo={actions_array:""},qo={entity:"Entitás (Kötelező)",map:"Térkép kamera (Opcionális)",image:"Kép (Opcionális)",compact_view:"Kompakt nézet",compact_view_aria_label_on:"Kompakt nézet bekapcsolása",compact_view_aria_label_off:"Kompakt nézet kikapcsolása",show_name:"Név megjelenítése",show_name_aria_label_on:"Név megjelenítése",show_name_aria_label_off:"Név elrejtése",show_status:"Állapot megjelenítése",show_status_aria_label_on:"Állapot megjelenítése",show_status_aria_label_off:"Állapot elrejtése",show_toolbar:"Eszköztár megjelenítése",show_toolbar_aria_label_on:"Eszköztár megjelenítése",show_toolbar_aria_label_off:"Eszköztár elrejtése",code_only_note:"Megjegyzés: Parancsok és statisztikák beállítása csak a kódszerkesztőben elérhetőek."},Ko={status:Uo,source:Do,common:Lo,error:Bo,warning:Zo,editor:qo},Wo={cleaning:"In pulizia",paused:"In pausa",idle:"Inattivo",charging:"In carica","returning home":"In rientro alla base",docked:"In Base"},Fo={gentle:"Gentile",silent:"Silenzioso",standard:"Normale",medium:"Medio",turbo:"Turbo"},Go={name:"Vacuum Card",description:"Vacuum card consente di controllare il tuo aspirapolvere.",start:"Pulisci",continue:"Continua",pause:"Pausa",stop:"Stop",return_to_base:"Base",locate:"Trova aspirapolvere",not_available:"Vacuum non disponibile"},Jo={missing_entity:"È necessario specificare l'entità!"},Xo={actions_array:""},Yo={entity:"Entità (Richiesto)",map:"Mappa (Opzionale)",image:"Immagine (Opzionale)",compact_view:"Vista compatta",compact_view_aria_label_on:"Attiva vista compatta",compact_view_aria_label_off:"Disattiva vista compatta",show_name:"Mostra Nome",show_name_aria_label_on:"Attiva nome",show_name_aria_label_off:"Disattiva nome",show_status:"Mostra Stato",show_status_aria_label_on:"Attiva stato",show_status_aria_label_off:"Disattiva stato",show_toolbar:"Mostra barra degli strumenti",show_toolbar_aria_label_on:"Attiva barra degli strumenti",show_toolbar_aria_label_off:"Disattiva barra degli strumenti",code_only_note:"NB: La configurazione di azioni e statistiche sono disponibili soltanto nell'editor di codice."},Qo={status:Wo,source:Fo,common:Go,error:Jo,warning:Xo,editor:Yo},ti={cleaning:"청소 중",auto:"자동 청소",spot:"부분 청소",edge:"가장자리 청소",single_room:"방 청소",paused:"일시 정지",idle:"유휴 중",stop:"중지됨",charging:"충전 중","returning home":"충전대로 복귀 중",returning:"충전대로 복귀 중",docked:"도킹됨",unknown:"알수 없음",offline:"오프라인",error:"오류"},ei={gentle:"저속",silent:"저소음",standard:"표준",medium:"중간",turbo:"터보",normal:"보통",high:"높음",strong:"강함",quiet:"조용함",max:"맥스","max+":"맥스+"},ai={name:"청소기 카드",description:"청소기 카드를 사용하면 로봇 청소기를 제어할 수 있습니다.",start:"청소 시작",continue:"청소 재개",pause:"일시 정지",stop:"중지",return_to_base:"충전대로 복귀",locate:"청소기 위치",not_available:"청소기 사용 불가"},oi={missing_entity:"구성요소 지정이 필요합니다!"},ii={actions_array:"경고: '동작'은 기존 버튼에 대한 기본 동작을 재정의하도록 예약되어 있습니다. 다른 동작을 추가하려는 경우 '바로가기' 옵션을 대신 사용하십시오."},ri={entity:"구성요소 (필수)",map:"도면 (선택)",image:"이미지 (선택)",compact_view:"간단히 보기",compact_view_aria_label_on:"간단히 보기 켜기",compact_view_aria_label_off:"간단히 보기 끄기",show_name:"Show Name",show_name_aria_label_on:"이름 표시 켜기",show_name_aria_label_off:"이름 표시 끄기",show_status:"상태 표시",show_status_aria_label_on:"상태 표시 켜기",show_status_aria_label_off:"상태 표시 끄기",show_toolbar:"툴바 표시",show_toolbar_aria_label_on:"툴바 표시 켜기",show_toolbar_aria_label_off:"툴바 표시 끄기",code_only_note:"참고: 동작 및 상태 옵션 설정은 코드 편집기에서만 사용할 수 있습니다."},ni={status:ti,source:ei,common:ai,error:oi,warning:ii,editor:ri},si={cleaning:"Valo",paused:"Pristabdytas",idle:"Neturi darbo",charging:"Kraunasi","returning home":"Grįžtą namo",docked:"Doke"},li={gentle:"Švelnus",silent:"Tylus",standard:"Standartinis",medium:"Vidutinis",turbo:"Turbo"},ci={name:"Siurblio kortelė",description:"Siurblio kortelė leidžia valdyti jūsų robotą siurblį",start:"Valyti",continue:"Tęsti",pause:"Pristabdyti",stop:"Sustabdyti",return_to_base:"Statyti į doką",locate:"Ieškoti siurblio",not_available:"Siurblys yra nepasiekiamas"},ui={missing_entity:"Būtina nurodyti entity!"},_i={entity:"Entity (Būtina)",map:"Žemėlapio kamera (Neprivaloma)",image:"Paveikslėlis (Neprivaloma)",compact_view:"Glaustas vaizdas",compact_view_aria_label_on:"Įjungti glaustą vaizdą",compact_view_aria_label_off:"Išjungti glaustą vaizdą",show_name:"Rodyti pavadinimą",show_name_aria_label_on:"Įjungti pavadinimo rodymą",show_name_aria_label_off:"Išjungti pavadinimo rodymą",show_status:"Rodyti būseną",show_status_aria_label_on:"Įjungti būsenos rodymą",show_status_aria_label_off:"Išjungti būsenos rodymą",show_toolbar:"Rodyti įrankių juostą",show_toolbar_aria_label_on:"Įjungti įrankių juostos rodymą",show_toolbar_aria_label_off:"Išjungti įrankių juostos rodymą",code_only_note:"Pastaba: Veiksmų ir statistikos nustatymai gali būti redaguojami tik naudojantis kodo redaguotoju."},di={status:si,source:li,common:ci,error:ui,editor:_i},hi={cleaning:"Rengjøring",paused:"Pauset",idle:"Tomgang",charging:"Lader","returning home":"Returnerer hjem"},mi={gentle:"Skånsom",silent:"Stille",standard:"Standard",medium:"Medium",turbo:"Turbo"},pi={name:"Støvsuger kort",description:"Støvsugerkortet lar deg kontrollere robotstøvsugeren din",start:"Rengjør",continue:"fortsett",pause:"Pause",stop:"Stop",return_to_base:"Dock",locate:"Lokaliser støvsuger",not_available:"Støvsugeren er ikke tilgjengelig"},vi={missing_entity:"Spesifiserende enhet kreves!"},gi={actions_array:""},fi={entity:"Enhet (påkrevd)",map:"Kartkamera (valgfritt)",image:"Bilde (Valgfritt)",compact_view:"Kompakt visning",compact_view_aria_label_on:"Slå på kompakt visning",compact_view_aria_label_off:"Slå av kompakt visningf",show_name:"Vis navn",show_name_aria_label_on:"Slå visningsnavnet på",show_name_aria_label_off:"Slå visningsnavnet av",show_status:"Vis Status",show_status_aria_label_on:"Slå skjermstatus på",show_status_aria_label_off:"Slå skjermstatus av",show_toolbar:"Vis verktøylinjen",show_toolbar_aria_label_on:"Slå skjermverktøylinjen på",show_toolbar_aria_label_off:"Slå skjermverktøylinjen av",code_only_note:"Merk: Innstillingshandlinger og statistikkalternativer er eksklusivt tilgjengelige ved hjelp av Code Editor."},bi={status:hi,source:mi,common:pi,error:vi,warning:gi,editor:fi},wi={cleaning:"Aan het schoonmaken",paused:"Gepauzeerd",idle:"Inactief",charging:"Aan het opladen","returning home":"Keert terug naar dock"},yi={name:"Stofzuiger kaart",description:"Stofzuiger kaart maakt het makkelijk om je robotstofzuiger te bedienen.",start:"Start",continue:"Doorgaan",pause:"Pauze",stop:"Stop",return_to_base:"Terugkeren",locate:"Zoek stofzuiger"},ki={missing_entity:"Het specificeren van een entiteit is verplicht!"},$i={actions_array:""},Si={entity:"Entiteit (Verplicht)",map:"Kaart Camera (Optioneel)",image:"Afbeelding (Optioneel)",compact_view:"Compacte weergave",compact_view_aria_label_on:"Zet compacte weergave aan",compact_view_aria_label_off:"Zet compacte weergave uit",show_name:"Naam laten zien?",show_name_aria_label_on:"Zet weergavenaam aan",show_name_aria_label_off:"Zet weergavenaam uit",show_toolbar:"Werkbalk laten zien?",show_toolbar_aria_label_on:"Zet werkbalk aan",show_toolbar_aria_label_off:"Zet werkbalk uit",code_only_note:"Notitie: Instel acties en status opties zijn alleen beschikbaar in de Code Editor"},Ai={status:wi,common:yi,error:ki,warning:$i,editor:Si},zi={cleaning:"Rengjer",paused:"Pausa",idle:"Tomgang",charging:"Ladar","returning home":"Returnerer heim"},ji={gentle:"Skånsam",silent:"Stille",standard:"Standard",medium:"Medium",turbo:"Turbo"},Ci={name:"Støvsugarkort",description:"Støvsugarkortet let deg kontrollere robotstøvsugaren din",start:"Reingjer",continue:"Fortsett",pause:"Sett på pause",stop:"Stopp",return_to_base:"Dokk",locate:"Lokaliser støvsugar",not_available:"Støvsugaren er ikkje tilgjengeleg"},xi={missing_entity:"Spesifiserande oppføring kravd!"},Ei={entity:"Oppføring (påkravd)",map:"Kartkamera (valfritt)",image:"Bilde (valfritt)",compact_view:"Kompakt vising",compact_view_aria_label_on:"Slå på kompakt vising",compact_view_aria_label_off:"Slå av kompakt vising",show_name:"Vis namn",show_name_aria_label_on:"Slå visingsnanet på",show_name_aria_label_off:"Slå visingsnamnet av",show_status:"Vis status",show_status_aria_label_on:"Slå skjermstatus på",show_status_aria_label_off:"Slå skjermstatus av",show_toolbar:"Vis verktøylinja",show_toolbar_aria_label_on:"Slå skjermverktøylinja på",show_toolbar_aria_label_off:"Slå skjermverktøylinja av",code_only_note:"Merk: Innstillingshandlingar og statistikkalternativ er berre tilgjengeleg ved hjelp av Code Editor."},Oi={status:zi,source:ji,common:Ci,error:xi,editor:Ei},Pi={cleaning:"Sprzątanie",auto:"Automatyczne sprzątanie",spot:"Sprzątanie miejscowe",edge:"Sprzątanie krawędziowe",single_room:"Sprzątanie pojedyńczego pokoju",paused:"Wstrzymany",idle:"Bezczynny",stop:"Zatrzymany",charging:"Ładowanie","returning home":"Powrót do bazy",returning:"Powrót do bazy",docked:"Zadokowany",unknown:"Nieznany",offline:"Offline",error:"Błąd"},Vi={gentle:"Delikatne",low:"Niskie",silent:"Ciche",standard:"Standardowe",medium:"Średnie",turbo:"Turbo",normal:"Normalne",high:"Wysokie",max:"Maksymalne",strong:"Mocne"},Mi={name:"Vacuum Card",description:"Vacuum card pozwala zdalnie kontrolować odkurzacz.",start:"Sprzątaj",continue:"Kontynuuj",pause:"Wstrzymaj",stop:"Zatrzymaj",return_to_base:"Powrót do bazy",locate:"Zlokalizuj odkurzacz",not_available:"Odkurzacz jest niedostępny"},Ti={missing_entity:"Ustawienie encji jest wymagane!"},Ni={actions_array:"OSTRZEŻENIE: 'actions' jest zarezerwowane dla zmiany zachowania domyślnych akcji przycisków. Jeśli chcesz dodać dodatkowe akcje, użyj w zamian opcji 'shortcuts'."},Ii={entity:"Encja (wymagane)",map:"Kamera z mapą (opcjonalna)",image:"Obraz (opcjonalny)",compact_view:"Widok kompaktowy",compact_view_aria_label_on:"Włącz widok kompaktowy",compact_view_aria_label_off:"Wyłącz widok kompaktowy",show_name:"Pokaż nazwę",show_name_aria_label_on:"Włącz widok nazwy",show_name_aria_label_off:"Wyłącz widok nazwy",show_status:"Pokaż pasek statusu",show_status_aria_label_on:"Włącz widok paska statusu",show_status_aria_label_off:"Wyłącz widok paska statusu",show_toolbar:"Pasek narzędzi",show_toolbar_aria_label_on:"Włącz pasek narzędzi",show_toolbar_aria_label_off:"Wyłącz pasek narzędzi",code_only_note:"Uwaga: Ustawianie opcji i informacji statystyk jest dostępne tylko poprzez edytor kodu YAML."},Ri={status:Pi,source:Vi,common:Mi,error:Ti,warning:Ni,editor:Ii},Hi={cleaning:"A Limpar",paused:"Pausado",idle:"Parado",charging:"A Carregar","returning home":"Voltar para a Base"},Ui={gentle:"Delicado",silent:"Silencioso",standard:"Standard",medium:"Medio",turbo:"Turbo"},Di={name:"Vacuum Card",description:"Vacuum card permite controlar o robô aspirador.",start:"Começar",continue:"Continuar",pause:"Pausa",stop:"Parar",return_to_base:"Base",locate:"Localizar aspirador",not_available:"Aspirador indisponível"},Li={missing_entity:"Entidade obrigatória!"},Bi={actions_array:""},Zi={entity:"Entidade (Obrigatório)",map:"Mapa (Opcional)",image:"Imagem (Opcional)",compact_view:"Vista Compacta",compact_view_aria_label_on:"Ativar visualização compacta",compact_view_aria_label_off:"Desativar a visualização compacta",show_name:"Mostrar nome",show_name_aria_label_on:"Mostrar nome",show_name_aria_label_off:"Ocultar nome",show_status:"Mostrar estado",show_status_aria_label_on:"Mostrar estado",show_status_aria_label_off:"Ocultar estado",show_toolbar:"Mostrar barra de ferramentas",show_toolbar_aria_label_on:"Mostrar barra de ferramentas",show_toolbar_aria_label_off:"Ocultar barra de ferramentas",code_only_note:"Nota: Ações e estatísticas estão disponiveis exclusivamente usando o editor de código."},qi={status:Hi,source:Ui,common:Di,error:Li,warning:Bi,editor:Zi},Ki={cleaning:"Limpando",auto:"Limpeza automatica",spot:"Limpando local",edge:"Limpando borda",single_room:"Limpando um quarto",paused:"Em pausa",idle:"Ocioso",stop:"Parado",charging:"Carregando","returning home":"Voltando à base",returning:"Voltando",docked:"Na base",unknown:"Desconhecido",offline:"Offline",error:"Erro"},Wi={gentle:"Delicado",silent:"Silencioso",standard:"Padrão",medium:"Médio",turbo:"Turbo",normal:"Normal",high:"Alto",strong:"Forte"},Fi={name:"Vacuum Card",description:"Vacuum card para controlar seu robô aspirador.",start:"Limpar",continue:"Continuar",pause:"Pausa",stop:"Parar",return_to_base:"Retornar à base",locate:"Localizar aspirador",not_available:"Aspirador indisponível"},Gi={missing_entity:"Entidade obrigatória"},Ji={actions_array:"AVISO: 'actions' são reservadas para substituir as ações padrões para botões existentes. Se sua intenção era adicionar ações adicionais, use a opção 'shortcuts'."},Xi={entity:"Entidade (Obrigatória)",map:"Mapa (Opcional)",image:"Imagem (Opcional)",compact_view:"Vista Compacta",compact_view_aria_label_on:"Ativar visualização compacta",compact_view_aria_label_off:"Desativar visualização compacta",show_name:"Mostrar nome",show_name_aria_label_on:"Mostrar nome",show_name_aria_label_off:"Ocultar nome",show_status:"Mostrar estado",show_status_aria_label_on:"Mostrar estado",show_status_aria_label_off:"Ocultar estado",show_toolbar:"Mostrar barra de ferramentas",show_toolbar_aria_label_on:"Mostrar barra de ferramentas",show_toolbar_aria_label_off:"Ocultar barra de ferramentas",code_only_note:"Nota: Ações e estatísticas estão disponiveis exclusivamente usando o editor de código."},Yi={status:Ki,source:Wi,common:Fi,error:Gi,warning:Ji,editor:Xi},Qi={cleaning:"Curățare",auto:"Curățare Automată",spot:"Curățare Punct",edge:"Curățare Margini",single_room:"Curățare o singură cameră",paused:"Repauz",idle:"Inactiv",stop:"Oprit",charging:"Încărcare","returning home":"Revenire Acasă",returning:"Revenire Acasă",docked:"Parcat",unknown:"Necunoscut",offline:"Deconectat",error:"Eroare"},tr={gentle:"Blând",silent:"Silențios",standard:"Standard",medium:"Mediu",turbo:"Turbo",normal:"Normal",high:"Ridicat"},er={name:"Card de vid.",description:"Un card de vid vă permite să controlați vidul robotului.",start:"Curat",continue:"Continuă",pause:"Repauz",stop:"Stop",return_to_base:"Parchează",locate:"Găsește Aspirator",not_available:"Aspiratorul nu este disponibil"},ar={missing_entity:"Este necesară specificarea entității!"},or={entity:"Entitate (Necesar)",map:"Camera Harta (Optional)",image:"Imagine (Optional)",compact_view:"Vizualizare compactă",compact_view_aria_label_on:"Pornește vizualizare compactă",compact_view_aria_label_off:"Oprește vizualizare compactă compact view off",show_name:"Arată Nume",show_name_aria_label_on:"Pornește arată nume",show_name_aria_label_off:"Oprește arată nume",show_status:"Arată Status",show_status_aria_label_on:"Pornește arată status",show_status_aria_label_off:"Oprește arată status",show_toolbar:"Arată bara de instrumente",show_toolbar_aria_label_on:"Pornește arată bara de instrumente",show_toolbar_aria_label_off:"Oprește arată bara de instrumente",code_only_note:"Notă: Acțiunile de setare și opțiunile de statistici sunt disponibile exclusiv folosind Editorul de cod."},ir={status:Qi,source:tr,common:er,error:ar,editor:or},rr={cleaning:"Убирает",paused:"Пауза",idle:"Ожидает",charging:"Заряжается","returning home":"Возвращается",returning:"Возвращается",docked:"На базе","segment cleaning":"Уборка зоны/комнаты",mopping:"Мытье полов"},nr={gentle:"Деликатный",silent:"Тихий",standard:"Стандартный",medium:"Средний",turbo:"Турбо",strong:"Сильный"},sr={name:"Пылесос",description:'Карта "пылесос" позволяет управлять роботом-пылесосом.',start:"Запуск",continue:"Продолжить",pause:"Пауза",stop:"Остановить",return_to_base:"На базу",locate:"Найти",not_available:"Пылесос недоступен"},lr={missing_entity:"Объект является обязательным полем!"},cr={actions_array:""},ur={entity:"Объект (Обязательное)",map:"Камера для карты (Опциональное)",image:"Изображение (Опциональное)",compact_view:"Компактный просмотр",compact_view_aria_label_on:"Включить компактный просмотр",compact_view_aria_label_off:"Выключить компактный просмотр",show_name:"Показать название?",show_name_aria_label_on:"Показать название",show_name_aria_label_off:"Скрыть название",show_status:"Показать статус?",show_status_aria_label_on:"Показать статус",show_status_aria_label_off:"Скрыть статус",show_toolbar:"Показать панель действий?",show_toolbar_aria_label_on:"Показать панель действий",show_toolbar_aria_label_off:"Скрыть панель действий",code_only_note:"Внимание: Опции actions и stats доступны исключительно через редактор кода."},_r={status:rr,source:nr,common:sr,error:lr,warning:cr,editor:ur},dr={cleaning:"Städar",paused:"Pausad",idle:"Inaktiv",charging:"Laddar","returning home":"Återvänder hem"},hr={gentle:"Extra försiktig",silent:"Eco - tyst",standard:"Standard",medium:"Medium",turbo:"Turbo"},mr={name:"Dammsugarkort",description:"Dammsugarkort låter dig att kontrollera din robotdammsugare.",start:"Städa",continue:"Fortsätt",pause:"Paus",stop:"Stopp",return_to_base:"Docka",locate:"Lokalisera dammsugare",not_available:"Dammsugare är inte tillgänglig"},pr={missing_entity:"Specificera entitet är obligatoriskt!"},vr={actions_array:""},gr={entity:"Entitet (Obligatoriskt)",map:"Kartkamera (Valfritt)",image:"Bild (Valfritt)",compact_view:"Kompakt vy",compact_view_aria_label_on:"Aktivera kompakt vy",compact_view_aria_label_off:"Inaktivera kompakt vy",show_name:"Visa namn",show_name_aria_label_on:"Aktivera namn",show_name_aria_label_off:"Inaktivera namn",show_status:"Visa status",show_status_aria_label_on:"Aktivera status",show_status_aria_label_off:"Inaktivera status",show_toolbar:"Visa verktygsvält",show_toolbar_aria_label_on:"Aktivera verktygsfält",show_toolbar_aria_label_off:"Inaktivera verktygsfält",code_only_note:"Obs! Inställningar för händelser och statistikalternativ är enbart tillgängliga med kodredigeraren."},fr={status:dr,source:hr,common:mr,error:pr,warning:vr,editor:gr},br={Cleaning:"清掃中",Paused:"暫停中",Idle:"閒置中",Charging:"充電中","Returning home":"正在返回充電座",docked:"返回充電座","segment cleaning":"區域清掃"},wr={Gentle:"拖地",Silent:"安靜",Standard:"標準",Medium:"強力",Turbo:"MAX"},yr={name:"Vacuum Card",description:"Vacuum Card 可以讓您控制掃地機器人",start:"開始清掃",continue:"繼續清掃",pause:"暫停清掃",stop:"停止清掃",return_to_base:"返回充電座",locate:"定位掃地機器人",not_available:"掃地機器人並不支援"},kr={missing_entity:"必須指定一個實體!"},$r={entity:"實體 (必填)",map:"地圖 (選填)",image:"圖片 (選填)",compact_view:"精簡檢視",compact_view_aria_label_on:"開啟精簡檢視",compact_view_aria_label_off:"關閉精簡檢視",show_name:"顯示名字",show_name_aria_label_on:"開啟名字顯示",show_name_aria_label_off:"關閉名字顯示",show_status:"顯示狀態",show_status_aria_label_on:"開啟狀態顯示",show_status_aria_label_off:"關閉狀態顯示",show_toolbar:"顯示工具欄",show_toolbar_aria_label_on:"開啟工具欄顯示",show_toolbar_aria_label_off:"關閉工具欄顯示",code_only_note:"提醒: 如果要使用 actions 和 stats 選項,請使用編碼編輯器編輯"},Sr={status:br,source:wr,common:yr,error:kr,editor:$r},Ar={cleaning:"Прибирає",auto:"Автоматичне прибирання",spot:"Прибирання зони",edge:"Прибирання по периметру",single_room:"Прибирання кімнати",paused:"Пауза",idle:"Очікування",stop:"Зупинений",charging:"Заряджається","returning home":"Повертається",returning:"Повертається",docked:"На док-станції",unknown:"Невідомо",offline:"Оффлайн",error:"Помилка"},zr={low:"Низький",gentle:"Делікатний",silent:"Тихий",standard:"Стандартний",medium:"Середній",turbo:"Турбо",normal:"Нормальний",max:"Максимальний",high:"Високий"},jr={name:"Пилосос",description:'Картка "пилосос" дозволяє керувати роботом-пилососом.',start:"Старт",continue:"Продовжити",pause:"Пауза",stop:"Стоп",return_to_base:"На базу",locate:"Знайти",not_available:"Пилосос недоступний"},Cr={missing_entity:"Необхідно вказати сутність!"},xr={actions_array:"УВАГА: 'actions' зарезервовані для зміни поведінки вбудованих кнопок. Якщо ви хотіли додати додаткові кнопки, скористайтесь об’єктом 'shortcuts'."},Er={entity:"Сутність (обов'язково)",map:"Камера для карти (Додатково)",image:"Зображення (Додатково)",compact_view:"Компактний вигляд",compact_view_aria_label_on:"Увімкнути компактний вигляд",compact_view_aria_label_off:"Вимкнути компактний вигляд",show_name:"Показувати ім’я?",show_name_aria_label_on:"Показати ім’я",show_name_aria_label_off:"Приховати ім’я",show_status:"Показувати статус?",show_status_aria_label_on:"Показати статус",show_status_aria_label_off:"Приховати статус",show_toolbar:"Показувати панель дій?",show_toolbar_aria_label_on:"Показати панель дій",show_toolbar_aria_label_off:"Приховати панель дій",code_only_note:"Увага: Опції actions та stats доступні виключно через редактор коду."},Or={status:Ar,source:zr,common:jr,error:Cr,warning:xr,editor:Er},Pr={cleaning:"Đang dọn dẹp",paused:"Dừng",idle:"Nghỉ",charging:"Đang sạc","returning home":"Đang về Dock",docked:"Đang ở Dock"},Vr={gentle:"Nhẹ",silent:"Yên tĩnh",standard:"Tiêu chuẩn",medium:"Vừa phải",turbo:"Tối đa"},Mr={name:"Robot hút bụi Card",description:"Robot hút bụi Card cho phép bạn điều khiển robot hút bụi một cách dễ dàng",start:"Dọn dẹp",continue:"Tiếp tục",pause:"Tạm dừng",stop:"Dừng",return_to_base:"Về Dock",locate:"Định vị",not_available:"Thiết bị không khả dụng"},Tr={missing_entity:"Khai báo thiếu Entity"},Nr={entity:"Entity (Yêu cầu)",map:"Hiển thị sơ đồ (Tuỳ chọn)",image:"Image (Tuỳ chọn)",compact_view:"Thu gọn",compact_view_aria_label_on:"Xem thu gọn",compact_view_aria_label_off:"Xem mở rộng",show_name:"Hiện tên",show_name_aria_label_on:"Hiện tên",show_name_aria_label_off:"Ẩn tên",show_status:"Hiện trạng thái",show_status_aria_label_on:"Hiện trạng thái",show_status_aria_label_off:"Ẩn trạng thái",show_toolbar:"Hiện thanh công cụ",show_toolbar_aria_label_on:"Hiện thanh công cụ",show_toolbar_aria_label_off:"Ẩn thanh công cụ",code_only_note:"Lưu ý: Cài đặt thao tác và tùy chọn thống kê chỉ có sẵn bằng trình chỉnh sửa mã"},Ir={status:Pr,source:Vr,common:Mr,error:Tr,editor:Nr};const Rr={ca:Object.freeze({__proto__:null,status:Aa,source:za,common:ja,error:Ca,editor:xa,default:Ea}),cn:Object.freeze({__proto__:null,status:Oa,source:Pa,common:Va,error:Ma,warning:Ta,editor:Na,default:Ia}),cs:Object.freeze({__proto__:null,status:Ra,source:Ha,common:Ua,error:Da,warning:La,editor:Ba,default:Za}),da:Object.freeze({__proto__:null,status:qa,source:Ka,common:Wa,error:Fa,warning:Ga,editor:Ja,default:Xa}),de:Object.freeze({__proto__:null,status:Ya,source:Qa,common:to,error:eo,warning:ao,editor:oo,default:io}),en:Object.freeze({__proto__:null,status:ro,source:no,common:so,error:lo,warning:co,editor:uo,default:_o}),es:Object.freeze({__proto__:null,status:ho,source:mo,common:po,error:vo,warning:go,editor:fo,default:bo}),fi:Object.freeze({__proto__:null,status:wo,source:yo,common:ko,error:$o,editor:So,default:Ao}),fr:Object.freeze({__proto__:null,status:zo,source:jo,common:Co,error:xo,warning:Eo,editor:Oo,default:Po}),he:Object.freeze({__proto__:null,status:Vo,source:Mo,common:To,error:No,warning:Io,editor:Ro,default:Ho}),hu:Object.freeze({__proto__:null,status:Uo,source:Do,common:Lo,error:Bo,warning:Zo,editor:qo,default:Ko}),it:Object.freeze({__proto__:null,status:Wo,source:Fo,common:Go,error:Jo,warning:Xo,editor:Yo,default:Qo}),ko:Object.freeze({__proto__:null,status:ti,source:ei,common:ai,error:oi,warning:ii,editor:ri,default:ni}),lt:Object.freeze({__proto__:null,status:si,source:li,common:ci,error:ui,editor:_i,default:di}),nb:Object.freeze({__proto__:null,status:hi,source:mi,common:pi,error:vi,warning:gi,editor:fi,default:bi}),nl:Object.freeze({__proto__:null,status:wi,common:yi,error:ki,warning:$i,editor:Si,default:Ai}),nn:Object.freeze({__proto__:null,status:zi,source:ji,common:Ci,error:xi,editor:Ei,default:Oi}),pl:Object.freeze({__proto__:null,status:Pi,source:Vi,common:Mi,error:Ti,warning:Ni,editor:Ii,default:Ri}),pt:Object.freeze({__proto__:null,status:Hi,source:Ui,common:Di,error:Li,warning:Bi,editor:Zi,default:qi}),pt_br:Object.freeze({__proto__:null,status:Ki,source:Wi,common:Fi,error:Gi,warning:Ji,editor:Xi,default:Yi}),ro:Object.freeze({__proto__:null,status:Qi,source:tr,common:er,error:ar,editor:or,default:ir}),ru:Object.freeze({__proto__:null,status:rr,source:nr,common:sr,error:lr,warning:cr,editor:ur,default:_r}),sv:Object.freeze({__proto__:null,status:dr,source:hr,common:mr,error:pr,warning:vr,editor:gr,default:fr}),tw:Object.freeze({__proto__:null,status:br,source:wr,common:yr,error:kr,editor:$r,default:Sr}),uk:Object.freeze({__proto__:null,status:Ar,source:zr,common:jr,error:Cr,warning:xr,editor:Er,default:Or}),vi:Object.freeze({__proto__:null,status:Pr,source:Vr,common:Mr,error:Tr,editor:Nr,default:Ir})},Hr="en";function Ur(t,e,a){var o;const[i,r]=t.toLowerCase().split(".");let n=null;try{n=JSON.parse(null!==(o=localStorage.getItem("selectedLanguage"))&&void 0!==o?o:"")}catch(t){n=localStorage.getItem("selectedLanguage")}const s=(n||navigator.language.split("-")[0]||Hr).replace(/['"]+/g,"").replace("-","_");let l;try{l=Rr[s][i][r]}catch(t){l=Rr[Hr][i][r]}if(void 0===l&&(l=Rr[Hr][i][r]),void 0!==l)return e&&a&&(l=null==l?void 0:l.replace(e,a)),l}function Dr(t,e){void 0===e&&(e={});var a=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===a&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var Lr=n`:host{--vc-background:var(
--ha-card-background,
var(--card-background-color, white)
);--vc-primary-text-color:var(--primary-text-color);--vc-secondary-text-color:var(--secondary-text-color);--vc-icon-color:var(--secondary-text-color);--vc-toolbar-background:var(--vc-background);--vc-toolbar-text-color:var(--secondary-text-color);--vc-toolbar-icon-color:var(--secondary-text-color);--vc-divider-color:var(--entities-divider-color, var(--divider-color));--vc-spacing:10px;display:flex;flex:1;flex-direction:column}ha-card{flex-direction:column;flex:1;position:relative;overflow:hidden}.preview{background:var(--vc-background);position:relative;text-align:center}.preview.not-available{filter:grayscale(1)}.header{display:flex;justify-content:space-between}.tips{display:flex;gap:var(--vc-spacing);flex-grow:1;flex-wrap:wrap;padding:var(--vc-spacing)}.tips .tip{cursor:pointer}.map{max-width:95%;image-rendering:crisp-edges;cursor:pointer}@keyframes cleaning{0%{transform:rotate(0) translate(0)}5%{transform:rotate(0) translate(0,-10px)}10%{transform:rotate(0) translate(0,5px)}15%{transform:rotate(0) translate(0)}20%{transform:rotate(30deg) translate(0)}25%{transform:rotate(30deg) translate(0,-10px)}30%{transform:rotate(30deg) translate(0,5px)}35%{transform:rotate(30deg) translate(0)}40%{transform:rotate(0) translate(0)}45%{transform:rotate(-30deg) translate(0)}50%{transform:rotate(-30deg) translate(0,-10px)}55%{transform:rotate(-30deg) translate(0,5px)}60%{transform:rotate(-30deg) translate(0)}70%{transform:rotate(0) translate(0)}100%{transform:rotate(0)}}@keyframes returning{0%{transform:rotate(0)}25%{transform:rotate(10deg)}50%{transform:rotate(0)}75%{transform:rotate(-10deg)}100%{transform:rotate(0)}}.vacuum{display:block;max-width:90%;max-height:200px;image-rendering:crisp-edges;margin:var(--vc-spacing) auto;cursor:pointer;filter:brightness(.9)}.vacuum.auto,.vacuum.cleaning,.vacuum.edge,.vacuum.on,.vacuum.single_room,.vacuum.spot{animation:cleaning 5s linear infinite}.vacuum.returning{animation:returning 2s linear infinite}.vacuum.paused{opacity:1}.vacuum.docked{opacity:.5}.fill-gap{flex-grow:1}.more-info ha-icon{display:flex}.status{display:flex;align-items:center;justify-content:center;direction:ltr}.status-text{color:var(--vc-secondary-text-color);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-left:calc(28px + var(--vc-spacing))}.status mwc-circular-progress{--mdc-theme-primary:var(--vc-secondary-text-color)!important}.status mwc-circular-progress{margin-left:var(--vc-spacing)}.vacuum-name{text-align:center;font-weight:700;color:var(--vc-primary-text-color);font-size:16px}.not-available .offline{text-align:center;color:var(--vc-primary-text-color);font-size:16px}.metadata{margin:var(--vc-spacing) auto}.stats{border-top:1px solid var(--vc-divider-color);display:flex;flex-direction:row;justify-content:space-evenly;color:var(--vc-secondary-text-color)}.stats-block{cursor:pointer;padding:var(--vc-spacing) 0;text-align:center;border-right:1px solid var(--vc-divider-color);flex-grow:1}.stats-block:last-of-type{border-right:0}.stats-value{font-size:20px;color:var(--vc-primary-text-color)}ha-icon{color:var(--vc-icon-color)}.toolbar{background:var(--vc-toolbar-background);min-height:30px;display:flex;flex-direction:row;flex-flow:row wrap;flex-wrap:wrap;justify-content:space-evenly;padding:5px;border-top:1px solid var(--vc-divider-color)}.toolbar ha-icon-button{color:var(--vc-toolbar-text-color);flex-direction:column;width:44px;height:44px;--mdc-icon-button-size:44px}.toolbar paper-button{color:var(--vc-toolbar-text-color);display:flex;align-items:center;margin-right:10px;padding:15px 10px;cursor:pointer}.toolbar paper-button ha-icon{margin-right:5px;color:var(--vc-toolbar-icon-color)}.toolbar ha-icon{color:var(--vc-toolbar-icon-color);display:flex}.icon-title{display:inline-block;vertical-align:middle;padding:0 3px}`;Dr(Lr);var Br;!function(t="ha-template"){customElements.get(t)||customElements.define(t,ht)}();console.info("%c VACUUM-CARD %c 2.7.3","color: white; background: blue; font-weight: 700;","color: blue; background: white; font-weight: 700;"),customElements.get("ha-icon-button")||customElements.define("ha-icon-button",class extends(null!==(Br=customElements.get("paper-icon-button"))&&void 0!==Br?Br:HTMLElement){});let Zr=class extends at{constructor(){super(...arguments),this.requestInProgress=!1,this.thumbUpdater=null}static get styles(){return Lr}static async getConfigElement(){return await Promise.resolve().then((function(){return Wr})),document.createElement("vacuum-card-editor")}static getStubConfig(t,e){const[a]=e.filter((t=>t.startsWith("vacuum")));return{entity:null!=a?a:""}}get entity(){return this.hass.states[this.config.entity]}get map(){return this.hass&&this.config.map?this.hass.states[this.config.map]:null}setConfig(t){this.config=function(t){var e,a,o,i,r,n,s,l,c,u;if(!t)throw new Error(Ur("error.invalid_config"));if(!t.entity)throw new Error(Ur("error.missing_entity"));const _=t.actions;return _&&Array.isArray(_)&&console.warn(Ur("warning.actions_array")),{entity:t.entity,map:null!==(e=t.map)&&void 0!==e?e:"",map_refresh:null!==(a=t.map_refresh)&&void 0!==a?a:5,image:null!==(o=t.image)&&void 0!==o?o:"default",show_name:null===(i=t.show_name)||void 0===i||i,show_status:null===(r=t.show_status)||void 0===r||r,show_toolbar:null===(n=t.show_toolbar)||void 0===n||n,compact_view:null!==(s=t.compact_view)&&void 0!==s&&s,stats:null!==(l=t.stats)&&void 0!==l?l:{},actions:null!==(c=t.actions)&&void 0!==c?c:{},shortcuts:null!==(u=t.shortcuts)&&void 0!==u?u:[]}}(t)}getCardSize(){return this.config.compact_view?3:8}shouldUpdate(t){return function(t,e,a){if(e.has("config")||a)return!0;if(t.config.entity){var o=e.get("hass");return!o||o.states[t.config.entity]!==t.hass.states[t.config.entity]}return!1}(this,t,!1)}updated(t){t.get("hass")&&t.get("hass").states[this.config.entity].state!==this.hass.states[this.config.entity].state&&(this.requestInProgress=!1)}connectedCallback(){super.connectedCallback(),!this.config.compact_view&&this.map&&(this.requestUpdate(),this.thumbUpdater=setInterval((()=>this.requestUpdate()),1e3*this.config.map_refresh))}disconnectedCallback(){super.disconnectedCallback(),this.map&&this.thumbUpdater&&clearInterval(this.thumbUpdater)}handleMore(t=this.entity.entity_id){_t(this,"hass-more-info",{entityId:t},{bubbles:!1,composed:!0})}callService(t){const{service:e,service_data:a}=t,[o,i]=e.split(".");this.hass.callService(o,i,a)}callVacuumService(t,e={request:!0},a={}){this.hass.callService("vacuum",t,Object.assign({entity_id:this.config.entity},a)),e.request&&(this.requestInProgress=!0,this.requestUpdate())}handleSpeed(t){const e=t.target.getAttribute("value");this.callVacuumService("set_fan_speed",{request:!1},{fan_speed:e})}handleVacuumAction(t,e={request:!0}){return()=>{if(!this.config.actions[t])return this.callVacuumService(e.defaultService||t,e);this.callService(this.config.actions[t])}}getAttributes(t){const{status:e,state:a}=t.attributes;return Object.assign({status:e||a||t.state},t.attributes)}renderSource(){const{fan_speed:t,fan_speed_list:e}=this.getAttributes(this.entity);if(!e||!t)return H;const a=e.indexOf(t);return I`<div class="tip"><ha-button-menu @click="${t=>t.stopPropagation()}"><div slot="trigger"><ha-icon icon="mdi:fan"></ha-icon><span class="icon-title">${Ur(`source.${t.toLowerCase()}`)||t}</span></div>${e.map(((t,e)=>I`<mwc-list-item ?activated="${a===e}" value="${t}" @click="${this.handleSpeed}">${Ur(`source.${t.toLowerCase()}`)||t}</mwc-list-item>`))}</ha-button-menu></div>`}renderBattery(){const{battery_level:t,battery_icon:e}=this.getAttributes(this.entity);return I`<div class="tip" @click="${()=>this.handleMore()}"><ha-icon icon="${e}"></ha-icon><span class="icon-title">${t}%</span></div>`}renderMapOrImage(t){if(this.config.compact_view)return H;if(this.map)return this.map&&this.map.attributes.entity_picture?I`<img class="map" src="${this.map.attributes.entity_picture}&v=${Date.now()}" @click="${()=>this.handleMore(this.config.map)}">`:H;const e="default"===this.config.image?"data:image/svg+xml,%3csvg width='490' height='490' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M490 245c0 135.31-109.69 245-245 245S0 380.31 0 245c0-3.013.0543891-6.013.162239-9H5l5 3v-12l-8.84919-5.899C13.1643 97.0064 117.754 0 245 0c127.089 0 231.578 96.7672 243.804 220.641L480 227v12.5l5-4h4.819c.12 3.152.181 6.319.181 9.5Z' fill='white'/%3e%3cpath d='M411.749 119c-6.307-8.348-13.27-16.258-20.851-23.6492C351.81 57.243 299.364 35.941 244.774 36.0001c-54.59.0591-106.99 21.4746-145.9954 59.667C59.7735 133.86 37.2596 185.797 36.0512 240.374l2.0895.046c.918-41.46 14.2556-81.382 37.8593-114.798V126h116v-2H77.1576c.7253-1.006 1.46-2.006 2.204-3H192v-2H80.8779c5.8988-7.683 12.3626-14.985 19.3631-21.8395 38.615-37.8105 90.491-59.0119 144.535-59.0704 54.044-.0585 105.966 21.0305 144.663 58.7572 7.123 6.9447 13.694 14.3517 19.683 22.1527H299v2h111.638c.744.994 1.479 1.994 2.204 3H299v2h115.266c23.35 33.213 36.583 72.821 37.583 113.972l2.089-.051c-1.066-43.848-15.882-85.962-41.938-120.589V119h-.251Z' fill='%23AAA'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M300 122.5c0 30.1-24.624 54.5-55 54.5s-55-24.4-55-54.5c0-30.0995 24.624-54.5 55-54.5s55 24.4005 55 54.5Zm-4 0c0 27.856-22.799 50.5-51 50.5s-51-22.644-51-50.5S216.799 72 245 72s51 22.644 51 50.5Z' fill='%23666'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.12741 221.523C6.9567 160.97 35.1055 104.75 80.0964 63.8045 125.087 22.8589 183.702.115675 244.536.00044016 305.369-.114809 364.07 22.4061 409.216 63.1811c44.985 40.6299 73.305 96.4879 79.5 156.7719l.011.001c-.002.013-.004.025-.007.038.021.202.042.405.062.607l-.279.028c-.145.286-.312.483-.382.565l-.003.005c-.185.218-.402.426-.611.612-.425.377-.994.817-1.651 1.294-1.325.963-3.171 2.194-5.341 3.588-.17.109-.341.219-.515.33v12.215l.249-.174c1.54-1.073 2.823-1.981 3.736-2.644.39-.283.703-.515.936-.693l-.007-.183.254-.01c.048-.038.083-.067.106-.087l.008-.007-.01.01c-.01.009-.033.032-.063.066l-.015.017 4.616-.182c1.298 32.938-4.063 65.799-15.764 96.616-11.7 30.816-29.499 58.955-52.331 82.731-22.832 23.776-50.226 42.7-80.544 55.64-30.317 12.939-62.934 19.627-95.898 19.664-32.963.037-65.594-6.579-95.941-19.45-30.346-12.872-57.783-31.735-80.6677-55.46-22.8846-23.725-40.7463-51.824-52.5157-82.614-11.76935-30.791-17.20429-63.64-15.979377-96.58l3.830807.142V236c.18555 0 .35898.025.50489.057l.56091.021-.00581.158c.13048.053.26118.112.38589.171.35305.167.78483.397 1.26649.667.87404.489 1.99915 1.158 3.2876 1.949v-12.13l-.4815-.302c-2.17716-1.367-4.02092-2.536-5.35246-3.398-.66426-.431-1.21155-.792-1.61262-1.066-.19905-.136-.37589-.261-.51834-.366l-.01222-.009c-.04061-.03-.11781-.087-.20795-.163l-.6875-.066ZM464.644 236.475c3.564-2.147 7.127-4.312 10.356-6.313v12.528c-1.909 1.31-3.945 2.699-5.987 4.086-4.093 2.779-8.206 5.546-11.376 7.648-1.586 1.052-2.93 1.933-3.915 2.566-.474.304-.857.546-1.14.719l-.19-.011-.007.131c-.063.037-.107.062-.135.079-.03.017-.042.025-.042.025l.024-.009c.01-.004.023-.01.039-.016l.095.241c-3.217 52.86-26.453 102.516-64.989 138.858-38.646 36.444-89.759 56.743-142.878 56.743-53.12 0-104.232-20.3-142.878-56.745-38.6453-36.445-61.9029-86.281-65.0136-139.31l-.2108.013c-.0549-.17-.1194-.3-.1616-.378-.0859-.16-.1788-.29-.2489-.38-.1401-.181-.2992-.346-.4386-.482-.2858-.279-.6601-.598-1.0796-.936-.8488-.684-2.029-1.563-3.413-2.556-2.7761-1.991-6.4661-4.507-10.1873-6.974-1.9862-1.317-3.9866-2.622-5.8676-3.83v-12.157c3.2173 2.001 6.7542 4.19 10.2783 6.365 5.686 3.509 11.3427 6.985 15.5776 9.583 2.1175 1.299 3.8798 2.379 5.1126 3.134l1.0774.66c1.0989 51.017 21.909 99.675 58.1301 135.725 36.902 36.729 86.816 57.401 138.881 57.518 52.066.116 102.072-20.331 139.139-56.895 36.507-36.012 57.554-84.787 58.75-135.992.352-.224.817-.513 1.385-.861 1.325-.813 3.172-1.923 5.371-3.238 1.287-.77 2.693-1.609 4.183-2.498l.097-.058c3.574-2.133 7.624-4.55 11.662-6.983ZM6.22995 219.764l.11131.072c1.3071.847 3.13156 2.004 5.30424 3.368 4.343 2.727 10.0507 6.265 15.7336 9.772 5.6819 3.507 11.3354 6.98 15.5686 9.578 2.1165 1.298 3.8778 2.377 5.11 3.132l1.9049 1.166.9921-.007c.3546 51.024 20.8428 99.843 57.0073 135.837 36.165 35.995 85.08 56.253 136.104 56.367 51.025.115 100.03-19.924 136.356-55.756 36.325-35.832 57.032-84.559 57.615-135.58l.585.006-.071-.066c.19-.204.434-.374.522-.435l.012-.008c.144-.101.323-.22.524-.35.406-.262.96-.607 1.631-1.018 1.346-.826 3.21-1.946 5.409-3.261 1.321-.79 2.764-1.651 4.292-2.563 3.571-2.131 7.608-4.54 11.639-6.969 5.757-3.469 11.476-6.963 15.773-9.723 2.152-1.384 3.921-2.565 5.152-3.459.053-.038.104-.076.154-.113l.102-.075c-6.233-58.782-33.937-113.219-77.829-152.8616C361.689 26.858 304.162 4.78749 244.545 4.90042 184.928 5.01336 127.486 27.3017 83.3945 67.4284 39.856 107.052 12.4116 161.271 6.22995 219.764Zm2.09908 22.928c-1.35577-.837-2.51273-1.53-3.38991-2.026-.55505 30.74 4.79901 61.315 15.78648 90.06 11.534 30.175 29.0385 57.712 51.4654 80.963 22.427 23.25 49.315 41.736 79.055 54.35 29.739 12.614 61.718 19.097 94.022 19.061 32.304-.036 64.269-6.591 93.98-19.271 29.711-12.681 56.558-31.226 78.933-54.527 22.375-23.3 39.818-50.876 51.284-81.077 10.871-28.632 16.159-59.064 15.594-89.655-.734.522-1.584 1.119-2.522 1.773-3.095 2.159-7.176 4.958-11.277 7.742-4.101 2.785-8.227 5.56-11.412 7.673-1.284.851-2.419 1.597-3.34 2.194-3.637 53.361-27.268 103.418-66.216 140.147C350.858 437.287 298.702 458 244.498 458c-54.204 0-106.359-20.714-145.7927-57.903-39.1679-36.938-62.8452-87.356-66.2735-141.057-.1301-.112-.2876-.243-.4742-.394-.7611-.613-1.8697-1.441-3.2341-2.419-2.7209-1.952-6.3663-4.439-10.0659-6.891-3.6986-2.452-7.4329-4.857-10.32857-6.644Z' fill='%23666'/%3e%3crect x='233' y='365' width='24' height='53' rx='12' stroke='%23AAA' stroke-width='2'/%3e%3c/svg%3e":this.config.image;return I`<img class="vacuum ${t}" src="${e}" @click="${()=>this.handleMore()}">`}renderStats(t){const e=(this.config.stats[t]||this.config.stats.default||[]).map((({entity_id:t,attribute:e,value_template:a,unit:o,subtitle:i})=>{if(!t&&!e)return H;let r="";if(t&&e)r=Sa(this.hass.states[t].attributes,e);else if(e)r=Sa(this.entity.attributes,e);else{if(!t)return H;r=this.hass.states[t].state}const n=I`<ha-template hass="${this.hass}" template="${a}" value="${r}" variables="${{value:r}}"></ha-template>`;return I`<div class="stats-block" @click="${()=>this.handleMore(t)}"><span class="stats-value">${n}</span> ${o}<div class="stats-subtitle">${i}</div></div>`}));return e.length?I`<div class="stats">${e}</div>`:H}renderName(){const{friendly_name:t}=this.getAttributes(this.entity);return this.config.show_name?I`<div class="vacuum-name">${t}</div>`:H}renderStatus(){const{status:t}=this.getAttributes(this.entity),e=Ur(`status.${t.toLowerCase()}`)||t;return this.config.show_status?I`<div class="status"><span class="status-text" alt="${e}">${e}</span><mwc-circular-progress .indeterminate="${this.requestInProgress}" density="-5"></mwc-circular-progress></div>`:H}renderToolbar(t){if(!this.config.show_toolbar)return H;switch(t){case"on":case"auto":case"spot":case"edge":case"single_room":case"cleaning":return I`<div class="toolbar"><paper-button @click="${this.handleVacuumAction("pause")}"><ha-icon icon="hass:pause"></ha-icon>${Ur("common.pause")}</paper-button><paper-button @click="${this.handleVacuumAction("stop")}"><ha-icon icon="hass:stop"></ha-icon>${Ur("common.stop")}</paper-button><paper-button @click="${this.handleVacuumAction("return_to_base")}"><ha-icon icon="hass:home-map-marker"></ha-icon>${Ur("common.return_to_base")}</paper-button></div>`;case"paused":return I`<div class="toolbar"><paper-button @click="${this.handleVacuumAction("resume",{defaultService:"start",request:!0})}"><ha-icon icon="hass:play"></ha-icon>${Ur("common.continue")}</paper-button><paper-button @click="${this.handleVacuumAction("return_to_base")}"><ha-icon icon="hass:home-map-marker"></ha-icon>${Ur("common.return_to_base")}</paper-button></div>`;case"returning":return I`<div class="toolbar"><paper-button @click="${this.handleVacuumAction("resume",{defaultService:"start",request:!0})}"><ha-icon icon="hass:play"></ha-icon>${Ur("common.continue")}</paper-button><paper-button @click="${this.handleVacuumAction("pause")}"><ha-icon icon="hass:pause"></ha-icon>${Ur("common.pause")}</paper-button></div>`;default:{const e=this.config.shortcuts.map((({name:t,service:e,icon:a,service_data:o})=>I`<ha-icon-button label="${t}" @click="${()=>{if(e)return this.callService({service:e,service_data:o})}}"><ha-icon icon="${a}"></ha-icon></ha-icon-button>`)),a=I`<ha-icon-button label="${Ur("common.return_to_base")}" @click="${this.handleVacuumAction("return_to_base")}"><ha-icon icon="hass:home-map-marker"></ha-icon></ha-icon-button>`;return I`<div class="toolbar"><ha-icon-button label="${Ur("common.start")}" @click="${this.handleVacuumAction("start")}"><ha-icon icon="hass:play"></ha-icon></ha-icon-button><ha-icon-button label="${Ur("common.locate")}" @click="${this.handleVacuumAction("locate",{request:!1})}"><ha-icon icon="mdi:map-marker"></ha-icon></ha-icon-button>${"idle"===t?a:""}<div class="fill-gap"></div>${e}</div>`}}}renderUnavailable(){return I`<ha-card><div class="preview not-available"><div class="metadata"><div class="not-available">${Ur("common.not_available")}</div><div></div></div></div></ha-card>`}render(){return this.entity?I`<ha-card><div class="preview"><div class="header"><div class="tips">${this.renderSource()} ${this.renderBattery()}</div><ha-icon-button class="more-info" icon="mdi:dots-vertical" ?more-info="true" @click="${()=>this.handleMore()}"><ha-icon icon="mdi:dots-vertical"></ha-icon></ha-icon-button></div>${this.renderMapOrImage(this.entity.state)}<div class="metadata">${this.renderName()} ${this.renderStatus()}</div>${this.renderStats(this.entity.state)}</div>${this.renderToolbar(this.entity.state)}</ha-card>`:this.renderUnavailable()}};t([nt({attribute:!1})],Zr.prototype,"hass",void 0),t([st()],Zr.prototype,"config",void 0),t([st()],Zr.prototype,"requestInProgress",void 0),t([st()],Zr.prototype,"thumbUpdater",void 0),Zr=t([it("vacuum-card")],Zr),window.customCards=window.customCards||[],window.customCards.push({preview:!0,type:"vacuum-card",name:Ur("common.name"),description:Ur("common.description")});var qr=n`.card-config{flex-direction:column;display:flex;gap:10px}.option{display:flex;align-items:center}.option ha-switch{margin-right:10px}.option ha-select,.option paper-input{width:100%}`;Dr(qr);let Kr=class extends at{constructor(){super(...arguments),this.image=void 0,this.compact_view=!1,this.show_name=!0,this.show_status=!0,this.show_toolbar=!0}setConfig(t){this.config=t,this.config.entity||(this.config.entity=this.getEntitiesByType("vacuum")[0]||"",_t(this,"config-changed",{config:this.config}))}getEntitiesByType(t){return this.hass?Object.keys(this.hass.states).filter((e=>e.startsWith(t))):[]}render(){if(!this.hass)return H;const t=this.getEntitiesByType("vacuum"),e=this.getEntitiesByType("camera");return I`<div class="card-config"><div class="option"><ha-select .label="${Ur("editor.entity")}" @selected="${this.valueChanged}" .configValue="${"entity"}" .value="${this.config.entity}" @closed="${t=>t.stopPropagation()}" fixedMenuPosition naturalMenuWidth required validationMessage="${Ur("error.missing_entity")}">${t.map((t=>I`<mwc-list-item .value="${t}">${t}</mwc-list-item>`))}</ha-select></div><div class="option"><ha-select .label="${Ur("editor.map")}" @selected="${this.valueChanged}" .configValue="${"map"}" .value="${this.config.map}" @closed="${t=>t.stopPropagation()}" fixedMenuPosition naturalMenuWidth>${e.map((t=>I`<mwc-list-item .value="${t}">${t}</mwc-list-item>`))}</ha-select></div><div class="option"><paper-input label="${Ur("editor.image")}" .value="${this.image}" .configValue="${"image"}" @value-changed="${this.valueChanged}"></paper-input></div><div class="option"><ha-switch aria-label="${Ur(this.compact_view?"editor.compact_view_aria_label_off":"editor.compact_view_aria_label_on")}" .checked="${Boolean(this.compact_view)}" .configValue="${"compact_view"}" @change="${this.valueChanged}"></ha-switch>${Ur("editor.compact_view")}</div><div class="option"><ha-switch aria-label="${Ur(this.show_name?"editor.show_name_aria_label_off":"editor.show_name_aria_label_on")}" .checked="${Boolean(this.show_name)}" .configValue="${"show_name"}" @change="${this.valueChanged}"></ha-switch>${Ur("editor.show_name")}</div><div class="option"><ha-switch aria-label="${Ur(this.show_status?"editor.show_status_aria_label_off":"editor.show_status_aria_label_on")}" .checked="${Boolean(this.show_status)}" .configValue="${"show_status"}" @change="${this.valueChanged}"></ha-switch>${Ur("editor.show_status")}</div><div class="option"><ha-switch aria-label="${Ur(this.show_toolbar?"editor.show_toolbar_aria_label_off":"editor.show_toolbar_aria_label_on")}" .checked="${Boolean(this.show_toolbar)}" .configValue="${"show_toolbar"}" @change="${this.valueChanged}"></ha-switch>${Ur("editor.show_toolbar")}</div><strong>${Ur("editor.code_only_note")}</strong></div>`}valueChanged(t){if(!this.config||!this.hass||!t.target)return;const e=t.target;e.configValue&&this.config[e.configValue]!==(null==e?void 0:e.value)&&(e.configValue&&(""===e.value?delete this.config[e.configValue]:this.config=Object.assign(Object.assign({},this.config),{[e.configValue]:void 0!==e.checked?e.checked:e.value})),_t(this,"config-changed",{config:this.config}))}static get styles(){return qr}};t([nt({attribute:!1})],Kr.prototype,"hass",void 0),t([st()],Kr.prototype,"config",void 0),t([st()],Kr.prototype,"image",void 0),t([st()],Kr.prototype,"compact_view",void 0),t([st()],Kr.prototype,"show_name",void 0),t([st()],Kr.prototype,"show_status",void 0),t([st()],Kr.prototype,"show_toolbar",void 0),Kr=t([it("vacuum-card-editor")],Kr);var Wr=Object.freeze({__proto__:null,get VacuumCardEditor(){return Kr}});export{Zr as VacuumCard};