5 lines
98 KiB
JavaScript
5 lines
98 KiB
JavaScript
function t(t,e,a,o){var i,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n<3?i(r):n>3?i(e,a,r):i(e,a))||r);return n>3&&r&&Object.defineProperty(e,a,r),r}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 n{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 r=(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 n(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 n("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 g 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 n=(void 0!==(null===(o=a.converter)||void 0===o?void 0:o.toAttribute)?a.converter:h).toAttribute(e,a.type);this._$El=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),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),n="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]=n.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 v;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(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,z=`<${$}>`,A=document,S=()=>A.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,C="[ \t\n\f\r]",E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,P=/>/g,M=RegExp(`>|${C}(?:([^\\s"'>=/]+)(${C}*=${C}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/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"),L=Symbol.for("lit-nothing"),U=new WeakMap,H=A.createTreeWalker(A,129,null,!1);function D(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==w?w.createHTML(e):e}const Z=(t,e)=>{const a=t.length-1,o=[];let i,n=2===e?"<svg>":"",r=E;for(let e=0;e<a;e++){const a=t[e];let s,l,c=-1,u=0;for(;u<a.length&&(r.lastIndex=u,l=r.exec(a),null!==l);)u=r.lastIndex,r===E?"!--"===l[1]?r=O:void 0!==l[1]?r=P:void 0!==l[2]?(N.test(l[2])&&(i=RegExp("</"+l[2],"g")),r=M):void 0!==l[3]&&(r=M):r===M?">"===l[0]?(r=null!=i?i:E,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?M:'"'===l[3]?T:V):r===T||r===V?r=M:r===O||r===P?r=E:(r=M,i=void 0);const _=r===M&&t[e+1].startsWith("/>")?" ":"";n+=r===E?a+z:c>=0?(o.push(s),a.slice(0,c)+y+a.slice(c)+k+_):a+k+(-2===c?(o.push(void 0),e):_)}return[D(t,n+(t[a]||"<?>")+(2===e?"</svg>":"")),o]};class q{constructor({strings:t,_$litType$:e},a){let o;this.parts=[];let i=0,n=0;const r=t.length-1,s=this.parts,[l,c]=Z(t,e);if(this.el=q.createElement(l,a),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=H.nextNode())&&s.length<r;){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[n++];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]?G:"?"===e[1]?Y:"@"===e[1]?X:F})}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],S()),H.nextNode(),s.push({type:2,index:++i});o.append(t[e],S())}}}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 B(t,e,a=t,o){var i,n,r,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===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,a,o)),void 0!==o?(null!==(r=(s=a)._$Co)&&void 0!==r?r:s._$Co=[])[o]=l:a._$Cl=l),void 0!==l&&(e=B(t,l._$AS(t,e.values),l,o)),e}class K{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);H.currentNode=i;let n=H.nextNode(),r=0,s=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new W(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Q(n,this,t)),this._$AV.push(e),l=o[++s]}r!==(null==l?void 0:l.index)&&(n=H.nextNode(),r++)}return H.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 W{constructor(t,e,a,o){var i;this.type=2,this._$AH=L,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=B(this,t,e),j(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>x(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!==L&&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=q.createElement(D(o.h,o.h[0]),this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(a);else{const t=new K(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 q(t)),e}T(t){x(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 W(this.k(S()),this.k(S()),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 F{constructor(t,e,a,o,i){this.type=1,this._$AH=L,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=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,a,o){const i=this.strings;let n=!1;if(void 0===i)t=B(this,t,e,0),n=!j(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const o=t;let r,s;for(t=i[0],r=0;r<i.length-1;r++)s=B(this,o[a+r],e,r),s===R&&(s=this._$AH[r]),n||(n=!j(s)||s!==this._$AH[r]),s===L?t=L:t!==L&&(t+=(null!=s?s:"")+i[r+1]),this._$AH[r]=s}n&&!o&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}const J=b?b.emptyScript:"";class Y extends F{constructor(){super(...arguments),this.type=4}j(t){t&&t!==L?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class X extends F{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=B(this,t,e,0))&&void 0!==a?a:L)===R)return;const o=this._$AH,i=t===L&&o!==L||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==L&&(o===L||i);i&&this.element.removeEventListener(this.name,this,o),n&&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 Q{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){B(this,t)}}const tt=f.litHtmlPolyfillSupport;null==tt||tt(q,W),(null!==(v=f.litHtmlVersions)&&void 0!==v?v:f.litHtmlVersions=[]).push("2.8.0");var et,at;class ot extends g{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 n=null!==(o=null==a?void 0:a.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(i=null==a?void 0:a.renderBefore)&&void 0!==i?i:null;n._$litPart$=r=new W(e.insertBefore(S(),t),t,void 0,null!=a?a:{})}return r._$AI(t),r})(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}}ot.finalized=!0,ot._$litElement$=!0,null===(et=globalThis.litElementHydrateSupport)||void 0===et||et.call(globalThis,{LitElement:ot});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:ot}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.3.2");const nt=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 st(t){return(e,a)=>void 0!==a?((t,e,a)=>{e.constructor.createProperty(a,t)})(t,e,a):rt(t,e)}function lt(t){return st({...t,state:!0})}var ct,ut,_t;null===(ct=window.HTMLSlotElement)||void 0===ct||ct.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"}(ut||(ut={})),function(t){t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24"}(_t||(_t={}));var dt=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 ht(t,e,a,o){var i,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n<3?i(r):n>3?i(e,a,r):i(e,a))||r);return n>3&&r&&Object.defineProperty(e,a,r),r}class mt extends ot{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:L}}ht([st()],mt.prototype,"hass",void 0),ht([st()],mt.prototype,"template",void 0),ht([st()],mt.prototype,"variables",void 0),ht([st()],mt.prototype,"value",void 0),ht([lt()],mt.prototype,"unsubscribePromise",void 0);var pt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vt=Array.isArray,ft="object"==typeof pt&&pt&&pt.Object===Object&&pt,bt="object"==typeof self&&self&&self.Object===Object&&self,wt=ft||bt||Function("return this")(),yt=wt.Symbol,kt=yt,$t=Object.prototype,zt=$t.hasOwnProperty,At=$t.toString,St=kt?kt.toStringTag:void 0;var jt=function(t){var e=zt.call(t,St),a=t[St];try{t[St]=void 0;var o=!0}catch(t){}var i=At.call(t);return o&&(e?t[St]=a:delete t[St]),i},xt=Object.prototype.toString;var Ct=jt,Et=function(t){return xt.call(t)},Ot=yt?yt.toStringTag:void 0;var Pt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ot&&Ot in Object(t)?Ct(t):Et(t)};var Mt=Pt,Vt=function(t){return null!=t&&"object"==typeof t};var Tt=function(t){return"symbol"==typeof t||Vt(t)&&"[object Symbol]"==Mt(t)},Nt=vt,It=Tt,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lt=/^\w*$/;var Ut=function(t,e){if(Nt(t))return!1;var a=typeof t;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=t&&!It(t))||(Lt.test(t)||!Rt.test(t)||null!=e&&t in Object(e))};var Ht=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Dt=Pt,Zt=Ht;var qt,Bt=function(t){if(!Zt(t))return!1;var e=Dt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Kt=wt["__core-js_shared__"],Wt=(qt=/[^.]+$/.exec(Kt&&Kt.keys&&Kt.keys.IE_PROTO||""))?"Symbol(src)_1."+qt:"";var Ft=function(t){return!!Wt&&Wt in t},Gt=Function.prototype.toString;var Jt=Bt,Yt=Ft,Xt=Ht,Qt=function(t){if(null!=t){try{return Gt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},te=/^\[object .+?Constructor\]$/,ee=Function.prototype,ae=Object.prototype,oe=ee.toString,ie=ae.hasOwnProperty,ne=RegExp("^"+oe.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(t){return!(!Xt(t)||Yt(t))&&(Jt(t)?ne:te).test(Qt(t))},se=function(t,e){return null==t?void 0:t[e]};var le=function(t,e){var a=se(t,e);return re(a)?a:void 0},ce=le(Object,"create"),ue=ce;var _e=function(){this.__data__=ue?ue(null):{},this.size=0};var de=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},he=ce,me=Object.prototype.hasOwnProperty;var pe=function(t){var e=this.__data__;if(he){var a=e[t];return"__lodash_hash_undefined__"===a?void 0:a}return me.call(e,t)?e[t]:void 0},ge=ce,ve=Object.prototype.hasOwnProperty;var fe=ce;var be=_e,we=de,ye=pe,ke=function(t){var e=this.__data__;return ge?void 0!==e[t]:ve.call(e,t)},$e=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=fe&&void 0===e?"__lodash_hash_undefined__":e,this};function ze(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])}}ze.prototype.clear=be,ze.prototype.delete=we,ze.prototype.get=ye,ze.prototype.has=ke,ze.prototype.set=$e;var Ae=ze;var Se=function(){this.__data__=[],this.size=0};var je=function(t,e){return t===e||t!=t&&e!=e};var xe=function(t,e){for(var a=t.length;a--;)if(je(t[a][0],e))return a;return-1},Ce=xe,Ee=Array.prototype.splice;var Oe=xe;var Pe=xe;var Me=xe;var Ve=Se,Te=function(t){var e=this.__data__,a=Ce(e,t);return!(a<0)&&(a==e.length-1?e.pop():Ee.call(e,a,1),--this.size,!0)},Ne=function(t){var e=this.__data__,a=Oe(e,t);return a<0?void 0:e[a][1]},Ie=function(t){return Pe(this.__data__,t)>-1},Re=function(t,e){var a=this.__data__,o=Me(a,t);return o<0?(++this.size,a.push([t,e])):a[o][1]=e,this};function Le(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])}}Le.prototype.clear=Ve,Le.prototype.delete=Te,Le.prototype.get=Ne,Le.prototype.has=Ie,Le.prototype.set=Re;var Ue=Le,He=le(wt,"Map"),De=Ae,Ze=Ue,qe=He;var Be=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ke=function(t,e){var a=t.__data__;return Be(e)?a["string"==typeof e?"string":"hash"]:a.map},We=Ke;var Fe=Ke;var Ge=Ke;var Je=Ke;var Ye=function(){this.size=0,this.__data__={hash:new De,map:new(qe||Ze),string:new De}},Xe=function(t){var e=We(this,t).delete(t);return this.size-=e?1:0,e},Qe=function(t){return Fe(this,t).get(t)},ta=function(t){return Ge(this,t).has(t)},ea=function(t,e){var a=Je(this,t),o=a.size;return a.set(t,e),this.size+=a.size==o?0:1,this};function aa(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])}}aa.prototype.clear=Ye,aa.prototype.delete=Xe,aa.prototype.get=Qe,aa.prototype.has=ta,aa.prototype.set=ea;var oa=aa;function ia(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],n=a.cache;if(n.has(i))return n.get(i);var r=t.apply(this,o);return a.cache=n.set(i,r)||n,r};return a.cache=new(ia.Cache||oa),a}ia.Cache=oa;var na=ia;var ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sa=/\\(\\)?/g,la=function(t){var e=na(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(sa,"$1"):a||t)})),e}));var ca=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},ua=vt,_a=Tt,da=yt?yt.prototype:void 0,ha=da?da.toString:void 0;var ma=function t(e){if("string"==typeof e)return e;if(ua(e))return ca(e,t)+"";if(_a(e))return ha?ha.call(e):"";var a=e+"";return"0"==a&&1/e==-Infinity?"-0":a},pa=ma;var ga=vt,va=Ut,fa=la,ba=function(t){return null==t?"":pa(t)};var wa=Tt;var ya=function(t,e){return ga(t)?t:va(t,e)?[t]:fa(ba(t))},ka=function(t){if("string"==typeof t||wa(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var $a=function(t,e){for(var a=0,o=(e=ya(e,t)).length;null!=t&&a<o;)t=t[ka(e[a++])];return a&&a==o?t:void 0};var za=function(t,e,a){var o=null==t?void 0:$a(t,e);return void 0===o?a:o},Aa=gt(za),Sa={cleaning:"Netejant",paused:"En pausa",idle:"Inactiu",charging:"Carregant","returning home":"Tornant a la base",docked:"A la base"},ja={gentle:"Delicat",silent:"Silenciós",standard:"Estàndard",medium:"Mitjà",turbo:"Turbo"},xa={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."},Ea={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."},Oa={status:Sa,source:ja,common:xa,error:Ca,editor:Ea},Pa=Object.freeze({__proto__:null,status:Sa,source:ja,common:xa,error:Ca,editor:Ea,default:Oa}),Ma={cleaning:"清扫中",auto:"自动清扫",spot:"区域清扫",edge:"边缘清扫",single_room:"单房间清扫",paused:"暂停中",idle:"闲置中",stop:"已停止",charging:"充电中","returning home":"回充",returning:"回充",docked:"充电中",unknown:"未知",offline:"离线",error:"错误"},Va={gentle:"轻柔",silent:"安静",standard:"标准",medium:"中等",turbo:"强力",normal:"正常",high:"高",strong:"强力",quiet:"安静",max:"Max","max+":"Max+"},Ta={name:"Vacuum Card",description:"Vacuum Card 允许您控制您的扫地机器人。",start:"清扫",continue:"继续",pause:"暂停",stop:"停止",return_to_base:"回充",locate:"定位扫地机器人",not_available:"扫地机器人不可用"},Na={missing_entity:"必须指定一个实体!"},Ia={actions_array:'警告: "动作" 是为了覆盖现有按钮的默认动作而保留的。如果你的目的是增加额外的动作,请使用"快捷键"选项来代替。'},Ra={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:"注意: 设置动作和统计选项只能使用代码编辑器。"},La={status:Ma,source:Va,common:Ta,error:Na,warning:Ia,editor:Ra},Ua={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+"},Da={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ý"},Za={missing_entity:"Je vyžadováno specifikování entity!"},qa={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."},Ka={status:Ua,source:Ha,common:Da,error:Za,warning:qa,editor:Ba},Wa={cleaning:"Støvsuger",paused:"Pauset",idle:"Inaktiv",charging:"Lader","returning home":"Returnerer til dock"},Fa={gentle:"Mild",silent:"Stille",standard:"Standard",medium:"Medium",turbo:"Turbo"},Ga={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"},Ja={missing_entity:"En enhed skal specificeres!"},Ya={actions_array:""},Xa={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."},Qa={status:Wa,source:Fa,common:Ga,error:Ja,warning:Ya,editor:Xa},to={cleaning:"Reinigen",auto:"Automatisches Reinigen",spot:"Punktreinigung",edge:"Kantenreinigung",single_room:"Zimmerreinigung",paused:"Pausiert",idle:"Untätig",stop:"Angehalten",charging:"Aufladen",returning:"Rückkehr zu Dockingstation",returning_home:"Rückkehr zu Dockingstation",docked:"Angedockt",unknown:"Unbekannt",offline:"Offline",error:"Fehler",charger_disconnected:"Ladestation nicht angeschlossen",remote_control_active:"Fernsteuerung aktiv",manual_mode:"Manueller Modus",shutting_down:"Herunterfahren",updating:"Aktualisierung",going_to_target:"Fahrt zum Zielpunkt",zoned_cleaning:"Zonenreinigung",segment_cleaning:"Zimmerreinigung"},eo={gentle:"Schonend",silent:"Leise",standard:"Standard",medium:"Mittel",turbo:"Max",normal:"Normal",max:"Maximal",max_plus:"Maximal+",high:"Hoch",strong:"Stark",quiet:"Leise",auto:"Auto",balanced:"Ausgeglichen",custom:"Benutzerdefiniert",off:"Aus"},ao={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",not_available:"Staubsaugerroboter ist nicht verfügbar"},oo={invalid_config:"Ungeültige Konfiguration",missing_entity:"Angabe der Entität ist erforderlich!"},io={actions_array:"WARNUNG: 'actions' ist dafür vorgesehen, die Standardaktionen für vorhandene Schaltflächen zu überschreiben. Wenn Sie zusätzliche Aktionen hinzufügen möchten, verwenden Sie stattdessen die Option 'shortcuts'."},no={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_status:"Zeige Status",show_status_aria_label_on:"Schalte 'Zeige Status' ein",show_status_aria_label_off:"Schalte 'Zeige Status' 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."},ro={status:to,source:eo,common:ao,error:oo,warning:io,editor:no},so={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:"Returning home",returning_home:"Returning home",docked:"Docked",unknown:"Unknown",offline:"Offline",error:"Error",charger_disconnected:"Charger disconnected",remote_control_active:"Remote control active",manual_mode:"Manual mode",shutting_down:"Shutting down",updating:"Updating",going_to_target:"Going to target",zoned_cleaning:"Zoned cleaning",segment_cleaning:"Segment cleaning"},lo={gentle:"Gentle",silent:"Silent",standard:"Standard",medium:"Medium",turbo:"Turbo",normal:"Normal",max:"Max",max_plus:"Max+",high:"High",strong:"Strong",quiet:"Quiet",auto:"Auto",balanced:"Balanced",custom:"Custom",off:"Off"},co={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"},uo={invalid_config:"Invalid configuration",missing_entity:"Specifying entity is required!"},_o={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."},ho={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."},mo={status:so,source:lo,common:co,error:uo,warning:_o,editor:ho},po={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"},go={gentle:"Delicado",silent:"Silencioso",standard:"Estándar",medium:"Medio",turbo:"Turbo",strong:"Fuerte"},vo={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"},fo={missing_entity:"¡Se requiere especificar una entidad!"},bo={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."},wo={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."},yo={status:po,source:go,common:vo,error:fo,warning:bo,editor:wo},ko={cleaning:"Siivoaa",auto:"Automaattisiivous",spot:"Kohdesiivous",edge:"Reunasiivous",single_room:"Huonesiivous",paused:"Tauotettu",idle:"Toimeton",stop:"Pysäytetty",charging:"Lataa",returning:"Palaamassa",returning_home:"Palaamassa latausasemaan",docked:"Telakoitu",unknown:"Tuntematon",offline:"Poissa linjalta",error:"Virhe",charger_disconnected:"Laturi ei ole kytketty",remote_control_active:"Etäohjaus päällä",manual_mode:"Manuaalinen tila",shutting_down:"Sammutetaan",updating:"Päivitetään",going_to_target:"Menossa kohteeseen",zoned_cleaning:"Aluesiivous",segment_cleaning:"Lohkosiivous"},$o={gentle:"Hellävarainen",silent:"Hiljainen",standard:"Perustaso",medium:"Keskitaso",turbo:"Turbo",normal:"Normaali",max:"Max",max_plus:"Max+",high:"High",strong:"Voimakas",quiet:"Quiet",auto:"Automaattinen",balanced:"Tasapainoinen",custom:"Mukautettu",off:"Pois päältä"},zo={name:"Imurikortti",description:"Imurikortti mahdollistaa robotti-imurin ohjauksen.",start:"Käynnistä",continue:"Jatka",pause:"Tauko",stop:"Pysähdy",return_to_base:"Latausasemaan",locate:"Paikanna imuri",not_available:"Ei saatavilla"},Ao={invalid_config:"Virheellinen konfiguraatio",missing_entity:"Entiteetti puuttuu!"},So={actions_array:"VAROITUS: 'actions' on varattu oletustoimintojen ylikirjoittamiseen olemassaolevissa painikkeissa. Jos tarkoituksesi on lisätä toimintoja, käytä 'shortcuts' -toimintoa."},jo={entity:"Entiteetti (vaaditaan)",map:"Karttakamera (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:"Näyttönimi päällä",show_status_aria_label_off:"Näyttönimi 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:"Huomaa: toimintojen ja tilastojen asetukset saatavilla ainoastaan koodieditorissa."},xo={status:ko,source:$o,common:zo,error:Ao,warning:So,editor:jo},Co={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é"},Eo={gentle:"Doux",silent:"Silencieux",standard:"Standard",medium:"Moyen",turbo:"Turbo",normal:"Normal",high:"Intense"},Oo={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"},Po={missing_entity:"La spécification de l'entité est requise !"},Mo={actions_array:""},Vo={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."},To={status:Co,source:Eo,common:Oo,error:Po,warning:Mo,editor:Vo},No={cleaning:"מנקה","segment cleaning":"ניקוי מקטע",auto:"ניקוי אוטומטי",spot:"ניקוי אזור",edge:"ניקוי פינה",single_room:"ניקוי חדר יחיד",paused:"מושהה",idle:"ממתין",stop:"נעצר",charging:"בטעינה","returning home":"בחזרה הביתה",returning:"חוזר",docked:"בתחנה",unknown:"לא ידוע",offline:"מנותק",error:"שגיאה"},Io={gentle:"עדין",silent:"שקט",standard:"רגיל",medium:"בינוני",turbo:"טורבו",normal:"נורמלי",high:"גבוה",auto:"אוטומטי"},Ro={name:"כרטיס שואב",description:"כרטיס שואב מאפשר לך שליטה על שואב האבק שלך.",start:"נקה",continue:"המשך",pause:"השהה",stop:"עצור",return_to_base:"עגינה",locate:"אתר שואב",not_available:"השואב אינו זמין"},Lo={missing_entity:"יש צורך לציין ישות!"},Uo={actions_array:""},Ho={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:"הערה: הגדרת פעולות ואפשרויות סטטיסטיקה זמינות אך ורק באמצעות עורך הקוד."},Do={status:No,source:Io,common:Ro,error:Lo,warning:Uo,editor:Ho},Zo={cleaning:"Takarítás",auto:"Automatikus takarítás",spot:"Célzott takarítás",edge:"Széltakarítás",single_room:"Egyetlen szoba takarítás",paused:"Szüneteltetve",idle:"Tétlen",stop:"Megállítva",charging:"Töltés",returning:"Hazatérés",returning_home:"Hazatérés",docked:"Dokkolva",unknown:"Ismeretlen",offline:"Offline",error:"Hiba",charger_disconnected:"Töltő leválasztva",remote_control_active:"Távirányítás aktív",manual_mode:"Kézi üzemmód",shutting_down:"Kikapcsolás",updating:"Frissítés",going_to_target:"Cél felé halad",zoned_cleaning:"Zóna takarítás",segment_cleaning:"Szegmens takarítás"},qo={gentle:"Gyengéd",silent:"Csendes",standard:"Alap",medium:"Közepes",turbo:"Turbó",normal:"Normál",max:"Maximum",max_plus:"Maximum+",high:"Magas",strong:"Erős",quiet:"Csendes",auto:"Automatikus",balanced:"Kiegyensúlyozott",custom:"Egyedi",off:"Kikapcsolva"},Bo={name:"Porszívó kártya",description:"A porszívó kártya lehetővé teszi a robotporszívó vezérlését.",start:"Indítás",continue:"Folytatás",pause:"Szünet",stop:"Megállás",return_to_base:"Dokkolás",locate:"Porszívó keresése",not_available:"A porszívó nem elérhető"},Ko={invalid_config:"Érvénytelen konfiguráció",missing_entity:"Entitás megadása kötelező!"},Wo={actions_array:"FIGYELEM: A 'actions' a meglévő gombok alapértelmezett műveleteinek felülbírálására szolgál. Ha további műveleteket szeretne hozzáadni, használja inkább a 'shortcuts' lehetőséget."},Fo={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ésének bekapcsolása",show_name_aria_label_off:"Név megjelenítésének kikapcsolása",show_status:"Állapot megjelenítése",show_status_aria_label_on:"Állapot megjelenítésének bekapcsolása",show_status_aria_label_off:"Állapot megjelenítésének kikapcsolása",show_toolbar:"Eszköztár megjelenítése",show_toolbar_aria_label_on:"Eszköztár megjelenítésének bekapcsolása",show_toolbar_aria_label_off:"Eszköztár megjelenítésének kikapcsolása",code_only_note:"Megjegyzés: A műveletek és statisztika beállítások kizárólag a kód szerkesztő használatával érhetők el."},Go={status:Zo,source:qo,common:Bo,error:Ko,warning:Wo,editor:Fo},Jo={cleaning:"In pulizia",paused:"In pausa",idle:"Inattivo",charging:"In carica",returning_home:"In rientro alla base",docked:"Alla Base"},Yo={gentle:"Gentile",silent:"Silenzioso",standard:"Normale",medium:"Medio",turbo:"Turbo"},Xo={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:"Aspirapolvere non disponibile"},Qo={missing_entity:"È necessario specificare l'entità!"},ti={actions_array:""},ei={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."},ai={status:Jo,source:Yo,common:Xo,error:Qo,warning:ti,editor:ei},oi={cleaning:"掃除中",auto:"自動",spot:"スポット",edge:"エッジ清掃",single_room:"シングルルームモード",paused:"一時停止",idle:"アイドル",stop:"停止",charging:"充電中",returning:"ホームに戻っています",returning_home:"ホームに戻る",docked:"ドックに接続中",unknown:"不明",offline:"オフライン",error:"エラー",charger_disconnected:"充電器が接続されていません",remote_control_active:"リモート操作有効",manual_mode:"マニュアルモード",shutting_down:"シャットダウン",updating:"更新中",going_to_target:"目的地へ移動中",zoned_cleaning:"ゾーン清掃",segment_cleaning:"セグメント清掃"},ii={gentle:"やさしく",silent:"無音",standard:"標準",medium:"中",turbo:"ターボ",normal:"通常",max:"最大",max_plus:"最大+",high:"高",strong:"最強",quiet:"静音",auto:"自動",balanced:"バランス",custom:"カスタム",off:"オフ"},ni={name:"掃除機カード",description:"掃除機かーどはロボット掃除機の操作に使用します。",start:"開始",continue:"続ける",pause:"一時停止",stop:"中止",return_to_base:"ドック",locate:"掃除機の場所",not_available:"掃除機は利用できません"},ri={invalid_config:"設定が無効です",missing_entity:"エンティティを選択してください。"},si={actions_array:"警告:'actions'は既存のボタンのデフォルトアクションを上書きするために使用されています。アクションを追加したい場合は、'shortcuts' オプションを使用してください。"},li={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:"注:actionとstatsのオプション設定は、コードエディターで行ってください。"},ci={status:oi,source:ii,common:ni,error:ri,warning:si,editor:li},ui={cleaning:"청소 중",auto:"자동 청소",spot:"부분 청소",edge:"가장자리 청소",single_room:"방 청소",paused:"일시 정지",idle:"유휴 중",stop:"중지됨",charging:"충전 중","returning home":"충전대로 복귀 중",returning:"충전대로 복귀 중",docked:"도킹됨",unknown:"알수 없음",offline:"오프라인",error:"오류"},_i={gentle:"저속",silent:"저소음",standard:"표준",medium:"중간",turbo:"터보",normal:"보통",high:"높음",strong:"강함",quiet:"조용함",max:"맥스","max+":"맥스+"},di={name:"청소기 카드",description:"청소기 카드를 사용하면 로봇 청소기를 제어할 수 있습니다.",start:"청소 시작",continue:"청소 재개",pause:"일시 정지",stop:"중지",return_to_base:"충전대로 복귀",locate:"청소기 위치",not_available:"청소기 사용 불가"},hi={missing_entity:"구성요소 지정이 필요합니다!"},mi={actions_array:"경고: '동작'은 기존 버튼에 대한 기본 동작을 재정의하도록 예약되어 있습니다. 다른 동작을 추가하려는 경우 '바로가기' 옵션을 대신 사용하십시오."},pi={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:"참고: 동작 및 상태 옵션 설정은 코드 편집기에서만 사용할 수 있습니다."},gi={status:ui,source:_i,common:di,error:hi,warning:mi,editor:pi},vi={cleaning:"Valo",paused:"Pristabdytas",idle:"Neturi darbo",charging:"Kraunasi","returning home":"Grįžtą namo",docked:"Doke"},fi={gentle:"Švelnus",silent:"Tylus",standard:"Standartinis",medium:"Vidutinis",turbo:"Turbo"},bi={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"},wi={missing_entity:"Būtina nurodyti entity!"},yi={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."},ki={status:vi,source:fi,common:bi,error:wi,editor:yi},$i={cleaning:"Rengjøring",paused:"Pauset",idle:"Tomgang",charging:"Lader","returning home":"Returnerer hjem"},zi={gentle:"Skånsom",silent:"Stille",standard:"Standard",medium:"Medium",turbo:"Turbo"},Ai={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"},Si={missing_entity:"Spesifiserende enhet kreves!"},ji={actions_array:""},xi={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."},Ci={status:$i,source:zi,common:Ai,error:Si,warning:ji,editor:xi},Ei={cleaning:"Aan het schoonmaken",paused:"Gepauzeerd",idle:"Inactief",charging:"Aan het opladen","returning home":"Keert terug naar dock"},Oi={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"},Pi={missing_entity:"Het specificeren van een entiteit is verplicht!"},Mi={actions_array:""},Vi={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"},Ti={status:Ei,common:Oi,error:Pi,warning:Mi,editor:Vi},Ni={cleaning:"Rengjer",paused:"Pausa",idle:"Tomgang",charging:"Ladar","returning home":"Returnerer heim"},Ii={gentle:"Skånsam",silent:"Stille",standard:"Standard",medium:"Medium",turbo:"Turbo"},Ri={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"},Li={missing_entity:"Spesifiserande oppføring kravd!"},Ui={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."},Hi={status:Ni,source:Ii,common:Ri,error:Li,editor:Ui},Di={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:"Powracanie",returning_home:"Powrót do bazy",docked:"Zadokowany",unknown:"Nieznany",offline:"Offline",error:"Błąd",charger_disconnected:"Ładowarka odłączona",remote_control_active:"Zdalne sterowanie",manual_mode:"Tryb manualny",shutting_down:"Wyłączanie",updating:"Aktualizowanie",going_to_target:"Podróż do celu",zoned_cleaning:"Sprzątanie obszaru",segment_cleaning:"Sprzątanie segmentu","returning home":"Powrót do bazy"},Zi={gentle:"Delikatne",silent:"Ciche",standard:"Standardowe",medium:"Średnie",turbo:"Turbo",normal:"Normalne",max:"Maksymalne",max_plus:"Max+",high:"Wysokie",strong:"Mocne",quiet:"Ciche",auto:"Auto",balanced:"Zbalansowane",custom:"Własne",off:"Wyłączone",low:"Niskie"},qi={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"},Bi={invalid_config:"Nieprawidłowa konfiguracja",missing_entity:"Ustawienie encji jest wymagane!"},Ki={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'."},Wi={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."},Fi={status:Di,source:Zi,common:qi,error:Bi,warning:Ki,editor:Wi},Gi={cleaning:"A Limpar",auto:"Limpeza automática",spot:"Limpeza localizada",edge:"Limpeza de bordas",single_room:"Limpeza de um único quarto",paused:"Pausado",idle:"Inativo",stop:"Parado",charging:"A Carregar",returning:"A regressar","returning home":"A regressar à base",docked:"Na base",unknown:"Desconhecido",offline:"Offline",error:"Erro",charger_disconnected:"Carregador desconectado",remote_control_active:"Controlo remoto ativo",manual_mode:"Modo manual",shutting_down:"A desligar",updating:"A atualizar",going_to_target:"A caminho do destino",zoned_cleaning:"Limpeza por zonas",segment_cleaning:"Limpeza por segmentos"},Ji={gentle:"Delicado",silent:"Silencioso",standard:"Padrão",medium:"Médio",turbo:"Turbo",normal:"Normal",max:"Máximo",max_plus:"Máximo+",high:"Alto",strong:"Forte",quiet:"Silencioso",auto:"Automático",balanced:"Equilibrado",custom:"Personalizado",off:"Desligado"},Yi={name:"Vacuum Card",description:"Vacuum card permite controlar o seu robô aspirador.",start:"Limpar",continue:"Continuar",pause:"Pausar",stop:"Parar",return_to_base:"Base",locate:"Localizar Aspirador",not_available:"Aspirador indisponível"},Xi={invalid_config:"Configuração inválida",missing_entity:"Entidade especificada obrigatória!"},Qi={actions_array:"AVISO: 'actions' está reservado para substituir ações padrão de botões existentes. Se a sua intenção era adicionar ações adicionais, utilize a opção 'shortcuts'."},tn={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."},en={status:Gi,source:Ji,common:Yi,error:Xi,warning:Qi,editor:tn},an={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"},on={gentle:"Delicado",silent:"Silencioso",standard:"Padrão",medium:"Médio",turbo:"Turbo",normal:"Normal",high:"Alto",strong:"Forte"},nn={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"},rn={missing_entity:"Entidade obrigatória"},sn={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'."},ln={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."},cn={status:an,source:on,common:nn,error:rn,warning:sn,editor:ln},un={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"},_n={gentle:"Blând",silent:"Silențios",standard:"Standard",medium:"Mediu",turbo:"Turbo",normal:"Normal",high:"Ridicat"},dn={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"},hn={missing_entity:"Este necesară specificarea entității!"},mn={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."},pn={status:un,source:_n,common:dn,error:hn,editor:mn},gn={cleaning:"Убирает",paused:"Пауза",idle:"Ожидает",charging:"Заряжается","returning home":"Возвращается",returning:"Возвращается",docked:"На базе","segment cleaning":"Уборка зоны/комнаты",mopping:"Мытье полов",auto:"Автоматическая уборка",spot:"Уборка пятна",edge:"Уборка вдоль стен",single_room:"Уборка 1й комнаты",stop:"Остановлен",unknown:"Неизвестен",offline:"Офлайн",error:"Ошибка",charger_disconnected:"Зарядное устройство не подключено",remote_control_active:"Активировано удалённое управление",manual_mode:"Ручной режим",shutting_down:"Выключается",updating:"Обновляется",going_to_target:"Едет к точке назначения",zoned_cleaning:"Очищает зону"},vn={gentle:"Деликатный",silent:"Тихий",standard:"Стандартный",medium:"Средний",turbo:"Турбо",strong:"Сильный",normal:"Нормальный",max:"Максимальный",max_plus:"Максимальный+",high:"Высокий",quiet:"Тихий",auto:"Автоматический",balanced:"Сбалансированный",custom:"Пользовательский",off:"Выключен"},fn={name:"Пылесос",description:'Карта "пылесос" позволяет управлять роботом-пылесосом.',start:"Запуск",continue:"Продолжить",pause:"Пауза",stop:"Остановить",return_to_base:"На базу",locate:"Найти",not_available:"Пылесос недоступен"},bn={invalid_config:"Неверная конфигурация",missing_entity:"Объект является обязательным полем!"},wn={actions_array:"WARNING: 'actions' зарезервированы для переопределения действий встроенных кнопок. Если вы хотите добавить дополнительные действия, используйте опцию 'shortcuts'."},yn={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 доступны исключительно через редактор кода."},kn={status:gn,source:vn,common:fn,error:bn,warning:wn,editor:yn},$n={cleaning:"Städar",paused:"Pausad",idle:"Inaktiv",charging:"Laddar","returning home":"Återvänder hem"},zn={gentle:"Extra försiktig",silent:"Eco - tyst",standard:"Standard",medium:"Medium",turbo:"Turbo"},An={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"},Sn={missing_entity:"Specificera entitet är obligatoriskt!"},jn={actions_array:""},xn={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."},Cn={status:$n,source:zn,common:An,error:Sn,warning:jn,editor:xn},En={Cleaning:"清掃中",Paused:"暫停中",Idle:"閒置中",Charging:"充電中","Returning home":"正在返回充電座",docked:"返回充電座","segment cleaning":"區域清掃"},On={Gentle:"拖地",Silent:"安靜",Standard:"標準",Medium:"強力",Turbo:"MAX"},Pn={name:"Vacuum Card",description:"Vacuum Card 可以讓您控制掃地機器人",start:"開始清掃",continue:"繼續清掃",pause:"暫停清掃",stop:"停止清掃",return_to_base:"返回充電座",locate:"定位掃地機器人",not_available:"掃地機器人並不支援"},Mn={missing_entity:"必須指定一個實體!"},Vn={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 選項,請使用編碼編輯器編輯"},Tn={status:En,source:On,common:Pn,error:Mn,editor:Vn},Nn={cleaning:"Прибирає",auto:"Автоматичне прибирання",spot:"Прибирання зони",edge:"Прибирання по периметру",single_room:"Прибирання кімнати",paused:"Пауза",idle:"Очікування",stop:"Зупинений",charging:"Заряджається","returning home":"Повертається",returning:"Повертається",docked:"На док-станції",unknown:"Невідомо",offline:"Офлайн",error:"Помилка",charger_disconnected:"Зарядку не під'єднано",remote_control_active:"Ручний режим активовано",returning_home:"Повернення на базу",manual_mode:"Ручний режим",shutting_down:"Вимкнення",updating:"Оновлення",going_to_target:"Рух до цілі",zoned_cleaning:"Зональне прибирання",segment_cleaning:"Прибирання сегменту"},In={low:"Низький",gentle:"Делікатний",silent:"Тихий",standard:"Стандартний",medium:"Середній",turbo:"Турбо",normal:"Нормальний",max:"Максимальний",max_plus:"Максимальний+",high:"Високий",strong:"Сильний",quiet:"Тихий",auto:"Aвто",balanced:"Збалансований",custom:"Власний",off:"Вимкнено"},Rn={name:"Пилосос",description:'Картка "пилосос" дозволяє керувати роботом-пилососом.',start:"Старт",continue:"Продовжити",pause:"Пауза",stop:"Стоп",return_to_base:"На базу",locate:"Знайти",not_available:"Пилосос недоступний"},Ln={missing_entity:"Необхідно вказати сутність!"},Un={actions_array:"УВАГА: 'actions' зарезервовані для зміни поведінки вбудованих кнопок. Якщо ви хотіли додати додаткові кнопки, скористайтесь об’єктом 'shortcuts'."},Hn={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 доступні виключно через редактор коду."},Dn={status:Nn,source:In,common:Rn,error:Ln,warning:Un,editor:Hn},Zn={cleaning:"Đang dọn dẹp",paused:"Dừng",idle:"Nghỉ",charging:"Đang sạc","returning home":"Đang về Dock",docked:"Đang ở Dock"},qn={gentle:"Nhẹ",silent:"Yên tĩnh",standard:"Tiêu chuẩn",medium:"Vừa phải",turbo:"Tối đa"},Bn={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"},Kn={missing_entity:"Khai báo thiếu Entity"},Wn={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ã"},Fn={status:Zn,source:qn,common:Bn,error:Kn,editor:Wn};const Gn={ca:Pa,cn:Object.freeze({__proto__:null,status:Ma,source:Va,common:Ta,error:Na,warning:Ia,editor:Ra,default:La}),cs:Object.freeze({__proto__:null,status:Ua,source:Ha,common:Da,error:Za,warning:qa,editor:Ba,default:Ka}),da:Object.freeze({__proto__:null,status:Wa,source:Fa,common:Ga,error:Ja,warning:Ya,editor:Xa,default:Qa}),de:Object.freeze({__proto__:null,status:to,source:eo,common:ao,error:oo,warning:io,editor:no,default:ro}),en:Object.freeze({__proto__:null,status:so,source:lo,common:co,error:uo,warning:_o,editor:ho,default:mo}),es:Object.freeze({__proto__:null,status:po,source:go,common:vo,error:fo,warning:bo,editor:wo,default:yo}),fi:Object.freeze({__proto__:null,status:ko,source:$o,common:zo,error:Ao,warning:So,editor:jo,default:xo}),fr:Object.freeze({__proto__:null,status:Co,source:Eo,common:Oo,error:Po,warning:Mo,editor:Vo,default:To}),he:Object.freeze({__proto__:null,status:No,source:Io,common:Ro,error:Lo,warning:Uo,editor:Ho,default:Do}),hu:Object.freeze({__proto__:null,status:Zo,source:qo,common:Bo,error:Ko,warning:Wo,editor:Fo,default:Go}),it:Object.freeze({__proto__:null,status:Jo,source:Yo,common:Xo,error:Qo,warning:ti,editor:ei,default:ai}),ja:Object.freeze({__proto__:null,status:oi,source:ii,common:ni,error:ri,warning:si,editor:li,default:ci}),ko:Object.freeze({__proto__:null,status:ui,source:_i,common:di,error:hi,warning:mi,editor:pi,default:gi}),lt:Object.freeze({__proto__:null,status:vi,source:fi,common:bi,error:wi,editor:yi,default:ki}),nb:Object.freeze({__proto__:null,status:$i,source:zi,common:Ai,error:Si,warning:ji,editor:xi,default:Ci}),nl:Object.freeze({__proto__:null,status:Ei,common:Oi,error:Pi,warning:Mi,editor:Vi,default:Ti}),nn:Object.freeze({__proto__:null,status:Ni,source:Ii,common:Ri,error:Li,editor:Ui,default:Hi}),pl:Object.freeze({__proto__:null,status:Di,source:Zi,common:qi,error:Bi,warning:Ki,editor:Wi,default:Fi}),pt:Object.freeze({__proto__:null,status:Gi,source:Ji,common:Yi,error:Xi,warning:Qi,editor:tn,default:en}),pt_br:Object.freeze({__proto__:null,status:an,source:on,common:nn,error:rn,warning:sn,editor:ln,default:cn}),ro:Object.freeze({__proto__:null,status:un,source:_n,common:dn,error:hn,editor:mn,default:pn}),ru:Object.freeze({__proto__:null,status:gn,source:vn,common:fn,error:bn,warning:wn,editor:yn,default:kn}),sv:Object.freeze({__proto__:null,status:$n,source:zn,common:An,error:Sn,warning:jn,editor:xn,default:Cn}),tw:Object.freeze({__proto__:null,status:En,source:On,common:Pn,error:Mn,editor:Vn,default:Tn}),uk:Object.freeze({__proto__:null,status:Nn,source:In,common:Rn,error:Ln,warning:Un,editor:Hn,default:Dn}),vi:Object.freeze({__proto__:null,status:Zn,source:qn,common:Bn,error:Kn,editor:Wn,default:Fn})},Jn="en";function Yn(t,e,a){var o;const[i,n]=t.toLowerCase().split(".");let r=null;try{r=JSON.parse(null!==(o=localStorage.getItem("selectedLanguage"))&&void 0!==o?o:"")}catch(t){r=localStorage.getItem("selectedLanguage")}const s=(r||navigator.language.split("-")[0]||Jn).replace(/['"]+/g,"").replace("-","_");let l;try{l=Gn[s][i][n]}catch(t){l=Gn[Jn][i][n]}if(void 0===l&&(l=Gn[Jn][i][n]),void 0!==l)return e&&a&&(l=null==l?void 0:l.replace(e,a)),l}function Xn(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 Qn=r`: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;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}`;Xn(Qn);var tr;!function(t="ha-template"){customElements.get(t)||customElements.define(t,mt)}();console.info("%c VACUUM-CARD %c 2.10.0","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!==(tr=customElements.get("paper-icon-button"))&&void 0!==tr?tr:HTMLElement){});let er=class extends ot{constructor(){super(...arguments),this.requestInProgress=!1,this.thumbUpdater=null}static get styles(){return Qn}static async getConfigElement(){return await Promise.resolve().then((function(){return ir})),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,n,r,s,l,c,u;if(!t)throw new Error(Yn("error.invalid_config"));if(!t.entity)throw new Error(Yn("error.missing_entity"));const _=t.actions;return _&&Array.isArray(_)&&console.warn(Yn("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===(n=t.show_status)||void 0===n||n,show_toolbar:null===(r=t.show_toolbar)||void 0===r||r,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){dt(this,"hass-more-info",{entityId:t},{bubbles:!1,composed:!0})}callService(t){const{service:e,service_data:a,target:o}=t,[i,n]=e.split(".");this.hass.callService(i,n,a,o)}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){var e;const{status:a,state:o}=t.attributes;return Object.assign(Object.assign({},t.attributes),{status:null!==(e=null!=a?a:o)&&void 0!==e?e:t.state})}renderSource(){const{fan_speed:t,fan_speed_list:e}=this.getAttributes(this.entity);if(!e||!t)return L;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">${Yn(`source.${t.toLowerCase()}`)||t}</span></div>${e.map(((t,e)=>I`<mwc-list-item ?activated="${a===e}" value="${t}" @click="${this.handleSpeed}">${Yn(`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 L;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)}">`:L;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 L;let n="";if(t&&e)n=Aa(this.hass.states[t].attributes,e);else if(e)n=Aa(this.entity.attributes,e);else{if(!t)return L;n=this.hass.states[t].state}const r=I`<ha-template hass="${this.hass}" template="${a}" value="${n}" variables="${{value:n}}"></ha-template>`;return I`<div class="stats-block" @click="${()=>this.handleMore(t)}"><span class="stats-value">${r}</span> ${o}<div class="stats-subtitle">${i}</div></div>`}));return e.length?I`<div class="stats">${e}</div>`:L}renderName(){const{friendly_name:t}=this.getAttributes(this.entity);return this.config.show_name?I`<div class="vacuum-name">${t}</div>`:L}renderStatus(){const{status:t}=this.getAttributes(this.entity),e=Yn(`status.${t.toLowerCase()}`)||t;return this.config.show_status?I`<div class="status"><span class="status-text" alt="${e}">${e}</span><ha-circular-progress .indeterminate="${this.requestInProgress}" size="small"></ha-circular-progress></div>`:L}renderToolbar(t){if(!this.config.show_toolbar)return L;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>${Yn("common.pause")}</paper-button><paper-button @click="${this.handleVacuumAction("stop")}"><ha-icon icon="hass:stop"></ha-icon>${Yn("common.stop")}</paper-button><paper-button @click="${this.handleVacuumAction("return_to_base")}"><ha-icon icon="hass:home-map-marker"></ha-icon>${Yn("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>${Yn("common.continue")}</paper-button><paper-button @click="${this.handleVacuumAction("return_to_base")}"><ha-icon icon="hass:home-map-marker"></ha-icon>${Yn("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>${Yn("common.continue")}</paper-button><paper-button @click="${this.handleVacuumAction("pause")}"><ha-icon icon="hass:pause"></ha-icon>${Yn("common.pause")}</paper-button></div>`;default:{const e=this.config.shortcuts.map((({name:t,service:e,icon:a,service_data:o,target:i})=>I`<ha-icon-button label="${t}" @click="${()=>{if(e)return this.callService({service:e,service_data:o,target:i})}}"><ha-icon icon="${a}"></ha-icon></ha-icon-button>`)),a=I`<ha-icon-button label="${Yn("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="${Yn("common.start")}" @click="${this.handleVacuumAction("start")}"><ha-icon icon="hass:play"></ha-icon></ha-icon-button><ha-icon-button label="${Yn("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">${Yn("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([st({attribute:!1})],er.prototype,"hass",void 0),t([lt()],er.prototype,"config",void 0),t([lt()],er.prototype,"requestInProgress",void 0),t([lt()],er.prototype,"thumbUpdater",void 0),er=t([nt("vacuum-card")],er),window.customCards=window.customCards||[],window.customCards.push({preview:!0,type:"vacuum-card",name:Yn("common.name"),description:Yn("common.description")});var ar=r`.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%}`;Xn(ar);let or=class extends ot{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]||"",dt(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 L;const t=this.getEntitiesByType("vacuum"),e=[...this.getEntitiesByType("camera"),...this.getEntitiesByType("image")];return I`<div class="card-config"><div class="option"><ha-select .label="${Yn("editor.entity")}" @selected="${this.valueChanged}" .configValue="${"entity"}" .value="${this.config.entity}" @closed="${t=>t.stopPropagation()}" fixedMenuPosition naturalMenuWidth required validationMessage="${Yn("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="${Yn("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="${Yn("editor.image")}" .value="${this.image}" .configValue="${"image"}" @value-changed="${this.valueChanged}"></paper-input></div><div class="option"><ha-switch aria-label="${Yn(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>${Yn("editor.compact_view")}</div><div class="option"><ha-switch aria-label="${Yn(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>${Yn("editor.show_name")}</div><div class="option"><ha-switch aria-label="${Yn(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>${Yn("editor.show_status")}</div><div class="option"><ha-switch aria-label="${Yn(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>${Yn("editor.show_toolbar")}</div><strong>${Yn("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})),dt(this,"config-changed",{config:this.config}))}static get styles(){return ar}};t([st({attribute:!1})],or.prototype,"hass",void 0),t([lt()],or.prototype,"config",void 0),t([lt()],or.prototype,"image",void 0),t([lt()],or.prototype,"compact_view",void 0),t([lt()],or.prototype,"show_name",void 0),t([lt()],or.prototype,"show_status",void 0),t([lt()],or.prototype,"show_toolbar",void 0),or=t([nt("vacuum-card-editor")],or);var ir=Object.freeze({__proto__:null,get VacuumCardEditor(){return or}});export{er as VacuumCard};
|