var e,t,n,i,o,r,a,l,s,c,u,d,h,p,f,m,v,g,_,y,b,k,w,x,E,C,A,S,T,I,O,M,z,P,L,N,j,$,B,R,H,D,U,V,F,G,Y,K,W,q,X,Z,J,Q,ee,te,ne,ie,oe,re,ae,le,se,ce,ue,de,he,pe,fe,me,ve,ge,_e,ye,be,ke,we,xe,Ee,Ce,Ae,Se,Te,Ie,Oe,Me,ze,Pe,Le,Ne,je,$e,Be,Re,He,De,Ue,Ve,Fe,Ge,Ye,Ke,We,qe,Xe,Ze,Je,Qe,et,tt,nt,it,ot,rt,at,lt,st,ct,ut,dt,ht,pt,ft,mt,vt,gt,_t,yt,bt,kt,wt,xt,Et,Ct,At,St,Tt,It,Ot,Mt,zt,Pt,Lt,Nt,jt,$t,Bt,Rt,Ht,Dt,Ut,Vt,Ft,Gt,Yt,Kt,Wt,qt,Xt,Zt,Jt,Qt,en,tn,nn,on,rn,an,ln,sn,cn,un,dn,hn,pn,fn,mn,vn,gn,_n,yn,bn,kn,wn,xn,En,Cn,An,Sn,Tn,In,On,Mn,zn,Pn,Ln,Nn,jn,$n,Bn,Rn,Hn,Dn,Un,Vn,Fn,Gn,Yn,Kn,Wn,qn,Xn,Zn,Jn,Qn,ei,ti,ni,ii,oi,ri,ai,li,si,ci,ui,di,hi,pi,fi,mi,vi,gi,_i,yi,bi,ki,wi,xi,Ei,Ci,Ai,Si,Ti,Ii,Oi,Mi,zi,Pi,Li,Ni,ji,$i,Bi,Ri,Hi,Di,Ui,Vi,Fi,Gi,Yi,Ki,Wi,qi,Xi,Zi,Ji,Qi,eo,to,no,io,oo,ro,ao,lo,so,co,uo,ho,po,fo,mo,vo,go,_o,yo,bo,ko,wo,xo,Eo,Co,Ao,So,To,Io,Oo,Mo,zo,Po,Lo,No,jo,$o,Bo,Ro,Ho,Do,Uo,Vo,Fo,Go,Yo,Ko,Wo,qo,Xo,Zo,Jo,Qo,er,tr,nr,ir,or,rr,ar,lr,sr,cr,ur,dr,hr,pr,fr,mr,vr,gr,_r,yr,br,kr,wr,xr,Er,Cr,Ar,Sr,Tr,Ir,Or,Mr,zr=["message","explanation"];function Pr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Lr(e){return Yr(e)||Vr(e)||aa(e)||Gr()}function Nr(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ha(e)+" is not iterable")}var jr=Kr().m(es);function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Br(e){for(var t=1;t3?(o=f===i)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((o=n<2&&pi||i>f)&&(r[4]=n,r[5]=i,h.n=f,l=0))}if(o||n>1)return a;throw d=!0,i}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,f),l=u,s=f;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(h.n=-1),p(l,s)):h.n=s:h.v=s);try{if(c=2,r){if(l||(o="next"),t=r[o]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);r=e}else if((t=(d=h.n<0)?s:n.call(i,h))!==a)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,r),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(Wr(t={},i,(function(){return this})),t),d=c.prototype=l.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Wr(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Wr(d,"constructor",c),Wr(c,"constructor",s),s.displayName="GeneratorFunction",Wr(c,o,"GeneratorFunction"),Wr(d),Wr(d,o,"Generator"),Wr(d,i,(function(){return this})),Wr(d,"toString",(function(){return"[object Generator]"})),(Kr=function(){return{w:r,m:h}})()}function Wr(e,t,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wr=function(e,t,n,i){function r(t,n){Wr(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},Wr(e,t,n,i)}function qr(e,t,n,i,o,r,a){try{var l=e[r](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(i,o)}function Xr(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){qr(r,i,o,a,l,"next",e)}function l(e){qr(r,i,o,a,l,"throw",e)}a(void 0)}))}}function Zr(e,t,n){return t=oa(t),Jr(e,na()?Reflect.construct(t,n||[],oa(e).constructor):t.apply(e,n))}function Jr(e,t){if(t&&("object"==ha(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qr(e)}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ea(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ia(e,t)}function ta(e){var t="function"==typeof Map?new Map:void 0;return ta=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(na())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var o=new(e.bind.apply(e,i));return n&&ia(o,n.prototype),o}(e,arguments,oa(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ia(n,e)},ta(e)}function na(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(na=function(){return!!e})()}function ia(e,t){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ia(e,t)}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oa(e)}function ra(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=aa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw r}}}}function aa(e,t){if(e){if("string"==typeof e)return la(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(e,t):void 0}}function la(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n=0;l--)(o=e[l])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function _a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ya(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o1?t-1:0),i=1;i0&&(this._$Ep=t)}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return function(e,t){if(ka)e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet}));else{var n,i=ra(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,r=document.createElement("style"),a=ba.litNonce;void 0!==a&&r.setAttribute("nonce",a),r.textContent=o.cssText,e.appendChild(r)}}catch(e){i.e(e)}finally{i.f()}}}(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$EO)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$EO)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$ET",value:function(e,t){var n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(void 0!==i&&!0===n.reflect){var o,r=(void 0!==(null===(o=n.converter)||void 0===o?void 0:o.toAttribute)?n.converter:Ra).toAttribute(t,n.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}},{key:"_$AK",value:function(e,t){var n=this.constructor,i=n._$Eh.get(e);if(void 0!==i&&this._$Em!==i){var o,r,a,l=n.getPropertyOptions(i),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null===(o=l.converter)||void 0===o?void 0:o.fromAttribute)?l.converter:Ra;this._$Em=i;var c=s.fromAttribute(t,l.type);this[i]=null!==(r=null!=c?c:null===(a=this._$Ej)||void 0===a?void 0:a.get(i))&&void 0!==r?r:c,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,n){if(void 0!==e){var i,o,r=this.constructor,a=this[e];if(null!=n||(n=r.getPropertyOptions(e)),!((null!==(i=n.hasChanged)&&void 0!==i?i:Ha)(a,t)||n.useDefault&&n.reflect&&a===(null===(o=this._$Ej)||void 0===o?void 0:o.get(e))&&!this.hasAttribute(r._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,n,i){var o,r,a,l=n.useDefault,s=n.reflect,c=n.wrapped;l&&!(null!==(o=this._$Ej)&&void 0!==o?o:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!==(r=null!=i?i:t)&&void 0!==r?r:this[e]),!0!==c||void 0!==i)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!==(a=this._$Eq)&&void 0!==a?a:this._$Eq=new Set).add(e))}},{key:"_$EP",value:(n=Xr(Kr().m((function e(){var t,n;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:return this.isUpdatePending=!0,e.p=1,e.n=2,this._$ES;case 2:e.n=4;break;case 3:e.p=3,n=e.v,Promise.reject(n);case 4:if(null==(t=this.scheduleUpdate())){e.n=5;break}return e.n=5,t;case 5:return e.a(2,!this.isUpdatePending)}}),e,this,[[1,3]])}))),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){var e;if(null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this._$Ep){var t,n=ra(this._$Ep);try{for(n.s();!(t=n.n()).done;){var i=Fr(t.value,2),o=i[0],r=i[1];this[o]=r}}catch(e){n.e(e)}finally{n.f()}this._$Ep=void 0}var a=this.constructor.elementProperties;if(a.size>0){var l,s=ra(a);try{for(s.s();!(l=s.n()).done;){var c=Fr(l.value,2),u=c[0],d=c[1],h=d.wrapped,p=this[u];!0!==h||this._$AL.has(u)||void 0===p||this.C(u,void 0,d,p)}}catch(e){s.e(e)}finally{s.f()}}}var f=!1,m=this._$AL;try{var v;(f=this.shouldUpdate(m))?(this.willUpdate(m),null!==(v=this._$EO)&&void 0!==v&&v.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(m)):this._$EM()}catch(m){throw f=!1,this._$EM(),m}f&&this._$AE(m)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null!==(t=this._$EO)&&void 0!==t&&t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach((function(e){return t._$ET(e,t[e])}))),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&Ur(this._$Eh.keys())}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Da;if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var n=Symbol(),i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Ia(this.prototype,e,i)}}},{key:"getPropertyDescriptor",value:function(e,t,n){var i,o=null!==(i=Oa(this.prototype,e))&&void 0!==i?i:{get:function(){return this[t]},set:function(e){this[t]=e}},r=o.get,a=o.set;return{get:r,set:function(t){var i=null==r?void 0:r.call(this);null!=a&&a.call(this,t),this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:Da}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(Ba("elementProperties"))){var e=Pa(this);e.finalize(),void 0!==e.l&&(this.l=Ur(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(Ba("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ba("properties"))){var e,t=this.properties,n=ra([].concat(Ur(Ma(t)),Ur(za(t))));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.createProperty(i,t[i])}}catch(e){n.e(e)}finally{n.f()}}var o=this[Symbol.metadata];if(null!==o){var r=litPropertyMetadata.get(o);if(void 0!==r){var a,l=ra(r);try{for(l.s();!(a=l.n()).done;){var s=Fr(a.value,2),c=s[0],u=s[1];this.elementProperties.set(c,u)}}catch(e){l.e(e)}finally{l.f()}}}this._$Eh=new Map;var d,h=ra(this.elementProperties);try{for(h.s();!(d=h.n()).done;){var p=Fr(d.value,2),f=p[0],m=p[1],v=this._$Eu(f,m);void 0!==v&&this._$Eh.set(v,f)}}catch(e){h.e(e)}finally{h.f()}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,i=ra(new Set(e.flat(1/0).reverse()));try{for(i.s();!(n=i.n()).done;){var o=n.value;t.unshift(Sa(o))}}catch(e){i.e(e)}finally{i.f()}}else void 0!==e&&t.push(Sa(e));return t}},{key:"_$Eu",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]);var n}();Ua.elementStyles=[],Ua.shadowRootOptions={mode:"open"},Ua[Ba("elementProperties")]=new Map,Ua[Ba("finalized")]=new Map,null!=$a&&$a({ReactiveElement:Ua}),(null!==(n=La.reactiveElementVersions)&&void 0!==n?n:La.reactiveElementVersions=[]).push("2.1.1"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var Va=globalThis,Fa=Va.trustedTypes,Ga=Fa?Fa.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,Ya="$lit$",Ka="lit$".concat(Math.random().toFixed(9).slice(2),"$"),Wa="?"+Ka,qa="<".concat(Wa,">"),Xa=document,Za=function(){return Xa.createComment("")},Ja=function(e){return null===e||"object"!=ha(e)&&"function"!=typeof e},Qa=Array.isArray,el="[ \t\n\f\r]",tl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nl=/-->/g,il=/>/g,ol=RegExp(">|".concat(el,"(?:([^\\s\"'>=/]+)(").concat(el,"*=").concat(el,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),rl=/'/g,al=/"/g,ll=/^(?:script|style|textarea|title)$/i,sl=function(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o":3===t?"":"",a=tl,l=0;l"===u[0]?(a=null!=n?n:tl,d=-1):void 0===u[1]?d=-2:(d=a.lastIndex-u[2].length,c=u[1],a=void 0===u[3]?ol:'"'===u[3]?al:rl):a===al||a===rl?a=ol:a===nl||a===il?a=tl:(a=ol,n=void 0);var p=a===ol&&e[l+1].startsWith("/>")?" ":"";r+=a===tl?s+qa:d>=0?(o.push(c),s.slice(0,d)+Ya+s.slice(d)+Ka+p):s+Ka+(-2===d?l:p)}return[ml(e,r+(e[i]||"")+(2===t?"":3===t?"":"")),o]}(o,r),d=Fr(u,2),h=d[0],p=d[1];if(this.el=e.createElement(h,n),fl.currentNode=this.el.content,2===r||3===r){var f=this.el.content.firstChild;f.replaceWith.apply(f,Ur(f.childNodes))}for(;null!==(i=fl.nextNode())&&c.length0){i.textContent=Fa?Fa.emptyScript:"";for(var x=0;x2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===dl)return t;var c=void 0!==s?null===(n=l._$Co)||void 0===n?void 0:n[s]:l._$Cl,u=Ja(t)?void 0:t._$litDirective$;return(null===(i=c)||void 0===i?void 0:i.constructor)!==u&&(null!==(o=c)&&void 0!==o&&null!==(r=o._$AO)&&void 0!==r&&r.call(o,!1),void 0===u?c=void 0:(c=new u(e))._$AT(e,l,s),void 0!==s?(null!==(a=l._$Co)&&void 0!==a?a:l._$Co=[])[s]=c:l._$Cl=c),void 0!==c&&(t=gl(e,c._$AS(e,t.values),c,s)),t}var _l=function(){return ua((function e(t,n){sa(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}),[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,i=n.el.content,o=n.parts,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Xa).importNode(i,!0);fl.currentNode=r;for(var a=fl.nextNode(),l=0,s=0,c=o[0];void 0!==c;){var u;if(l===c.index){var d=void 0;2===c.type?d=new yl(a,a.nextSibling,this,e):1===c.type?d=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(d=new El(a,this,e)),this._$AV.push(d),c=o[++s]}l!==(null===(u=c)||void 0===u?void 0:u.index)&&(a=fl.nextNode(),l++)}return fl.currentNode=Xa,r}},{key:"p",value:function(e){var t,n=0,i=ra(this._$AV);try{for(i.s();!(t=i.n()).done;){var o=t.value;void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}}catch(e){i.e(e)}finally{i.f()}}}])}(),yl=function(){function e(t,n,i,o){var r;sa(this,e),this.type=2,this._$AH=hl,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=o,this._$Cv=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}return ua(e,[{key:"_$AU",get:function(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cv}},{key:"parentNode",get:function(){var e,t=this._$AA.parentNode,n=this._$AM;return void 0!==n&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=n.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=gl(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),Ja(e)?e===hl||null==e||""===e?(this._$AH!==hl&&this._$AR(),this._$AH=hl):e!==this._$AH&&e!==dl&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):function(e){return Qa(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])}(e)?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==hl&&Ja(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xa.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,n=e.values,i=e._$litType$,o="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=vl.createElement(ml(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.p(n);else{var r=new _l(o,this),a=r.u(this.options);r.p(n),this.T(a),this._$AH=r}}},{key:"_$AC",value:function(e){var t=pl.get(e.strings);return void 0===t&&pl.set(e.strings,t=new vl(e)),t}},{key:"k",value:function(t){Qa(this._$AH)||(this._$AH=[],this._$AR());var n,i,o=this._$AH,r=0,a=ra(t);try{for(a.s();!(i=a.n()).done;){var l=i.value;r===o.length?o.push(n=new e(this.O(Za()),this.O(Za()),this,this.options)):n=o[r],n._$AI(l),r++}}catch(e){a.e(e)}finally{a.f()}r0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e!==this._$AB;){var n,i=e.nextSibling;e.remove(),e=i}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),bl=function(){return ua((function e(t,n,i,o,r){sa(this,e),this.type=1,this._$AH=hl,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=hl}),[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=this.strings,r=!1;if(void 0===o)e=gl(this,e,t,0),(r=!Ja(e)||e!==this._$AH&&e!==dl)&&(this._$AH=e);else{var a,l,s=e;for(e=o[0],a=0;a1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:hl)!==dl){var n=this._$AH,i=e===hl&&n!==hl||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==hl&&(n===hl||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}])}(),El=function(){return ua((function e(t,n,i){sa(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){gl(this,e)}}])}(),Cl=Va.litHtmlPolyfillSupport;null!=Cl&&Cl(vl,yl),(null!==(i=Va.litHtmlVersions)&&void 0!==i?i:Va.litHtmlVersions=[]).push("3.3.1");var Al=globalThis,Sl=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).renderOptions={host:Qr(e)},e._$Do=void 0,e}return ea(t,Ua),ua(t,[{key:"createRenderRoot",value:function(){var e,n,i=Hr(t,"createRenderRoot",this,3)([]);return null!==(n=(e=this.renderOptions).renderBefore)&&void 0!==n||(e.renderBefore=i.firstChild),i}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Hr(t,"update",this,3)([e]),this._$Do=function(e,t,n){var i,o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t,r=o._$litPart$;if(void 0===r){var a,l=null!==(a=null==n?void 0:n.renderBefore)&&void 0!==a?a:null;o._$litPart$=r=new yl(t.insertBefore(Za(),l),l,void 0,null!=n?n:{})}return r._$AI(e),r}(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;Hr(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;Hr(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return dl}}])}(); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */Sl._$litElement$=!0,Sl.finalized=!0,null===(o=Al.litElementHydrateSupport)||void 0===o||o.call(Al,{LitElement:Sl});var Tl=Al.litElementPolyfillSupport;null==Tl||Tl({LitElement:Sl}),(null!==(r=Al.litElementVersions)&&void 0!==r?r:Al.litElementVersions=[]).push("4.2.1"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var Il=function(e){return function(t,n){void 0!==n?n.addInitializer((function(){customElements.define(e,t)})):customElements.define(e,t)}},Ol={attribute:!0,type:String,converter:Ra,reflect:!1,hasChanged:Ha},Ml=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ol,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=n.kind,o=n.metadata,r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),r.set(n.name,e),"accessor"===i){var a=n.name;return{set:function(n){var i=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,i,e)},init:function(t){return void 0!==t&&this.C(a,void 0,e,t),t}}}if("setter"===i){var l=n.name;return function(n){var i=this[l];t.call(this,n),this.requestUpdate(l,i,e)}}throw Error("Unsupported decorator location: "+i)}; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function zl(e){return function(t,n){return"object"==ha(n)?Ml(e,t,n):function(e,t,n){var i=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),i?Object.getOwnPropertyDescriptor(t,n):void 0}(e,t,n)}} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function Pl(e){return zl(Br(Br({},e),{},{state:!0,attribute:!1}))} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function Ll(e,t){return function(t,n,i){return function(e,t,n){return n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=ha(t)&&Object.defineProperty(e,t,n),n}(t,n,{get:function(){return function(t){var n,i;return null!==(n=null===(i=t.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null}(this)}})}}var Nl,jl,$l,Bl,Rl,Hl=new Set(["fan","input_boolean","light","switch","group","automation","humidifier","valve"]),Dl=function(e,t,n,i){i=i||{},n=null==n?{}:n;var o=new Event(t,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed});return o.detail=n,e.dispatchEvent(o),o},Ul=function(e){return e.substr(0,e.indexOf("."))},Vl=function(e,t){return Fl(e.attributes,t)},Fl=function(e,t){return 0!=(e.supported_features&t)};!function(e){e.language="language",e.system="system",e.comma_decimal="comma_decimal",e.decimal_comma="decimal_comma",e.space_comma="space_comma",e.none="none"}(Nl||(Nl={})),function(e){e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24"}(jl||(jl={})),function(e){e.local="local",e.server="server"}($l||($l={})),function(e){e.language="language",e.system="system",e.DMY="DMY",e.MDY="MDY",e.YMD="YMD"}(Bl||(Bl={})),function(e){e.language="language",e.monday="monday",e.tuesday="tuesday",e.wednesday="wednesday",e.thursday="thursday",e.friday="friday",e.saturday="saturday",e.sunday="sunday"}(Rl||(Rl={}));var Gl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round(e*Math.pow(10,t))/Math.pow(10,t)},Yl=function(e,t,n){var i=t?function(e){switch(e.number_format){case Nl.comma_decimal:return["en-US","en"];case Nl.decimal_comma:return["de","es","it"];case Nl.space_comma:return["fr","sv","cs"];case Nl.system:return;default:return e.language}}(t):void 0;if(Number.isNaN=Number.isNaN||function e(t){return"number"==typeof t&&e(t)},(null==t?void 0:t.number_format)!==Nl.none&&!Number.isNaN(Number(e))&&Intl)try{return new Intl.NumberFormat(i,Kl(e,n)).format(Number(e))}catch(t){return console.error(t),new Intl.NumberFormat(void 0,Kl(e,n)).format(Number(e))}return"string"==typeof e?e:"".concat(Gl(e,null==n?void 0:n.maximumFractionDigits).toString()).concat("currency"===(null==n?void 0:n.style)?" ".concat(n.currency):"")},Kl=function(e,t){var n=Object.assign({maximumFractionDigits:2},t);if("string"!=typeof e)return n;if(!t||void 0===t.minimumFractionDigits&&void 0===t.maximumFractionDigits){var i=e.indexOf(".")>-1?e.split(".")[1].length:0;n.minimumFractionDigits=i,n.maximumFractionDigits=i}return n},Wl=function(e){function t(e,n){var i,o;sa(this,t);var r=e.message,a=e.explanation,l=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i2&&void 0!==arguments[2]?arguments[2]:{};return Kr().m((function i(){var o,r,a,l,s,c,u,d,h,p,f,m,v,g,_,y,b,k,w,x,E,C,A,S,T,I,O,M,z,P;return Kr().w((function(i){for(;;)switch(i.p=i.n){case 0:o=n.path,r=void 0===o?[]:o,a=n.branch,l=void 0===a?[e]:a,s=n.coerce,c=void 0!==s&&s,u=n.mask,h={path:r,branch:l,mask:d=void 0!==u&&u},c&&(e=t.coercer(e,h)),p="valid",f=ra(t.validator(e,h)),i.p=1,f.s();case 2:if((m=f.n()).done){i.n=4;break}return(v=m.value).explanation=n.message,p="not_valid",i.n=3,[v,void 0];case 3:i.n=2;break;case 4:i.n=6;break;case 5:i.p=5,O=i.v,f.e(O);case 6:return i.p=6,f.f(),i.f(6);case 7:g=ra(t.entries(e,h)),i.p=8,g.s();case 9:if((_=g.n()).done){i.n=19;break}y=Fr(_.value,3),b=y[0],k=y[1],w=y[2],x=ts(k,w,{path:void 0===b?r:[].concat(Ur(r),[b]),branch:void 0===b?l:[].concat(Ur(l),[k]),coerce:c,mask:d,message:n.message}),E=ra(x),i.p=10,E.s();case 11:if((C=E.n()).done){i.n=15;break}if(!(A=C.value)[0]){i.n=13;break}return p=null!=A[0].refinement?"not_refined":"not_valid",i.n=12,[A[0],void 0];case 12:i.n=14;break;case 13:c&&(k=A[1],void 0===b?e=k:e instanceof Map?e.set(b,k):e instanceof Set?e.add(k):Xl(e)&&(void 0!==k||b in e)&&(e[b]=k));case 14:i.n=11;break;case 15:i.n=17;break;case 16:i.p=16,M=i.v,E.e(M);case 17:return i.p=17,E.f(),i.f(17);case 18:i.n=9;break;case 19:i.n=21;break;case 20:i.p=20,z=i.v,g.e(z);case 21:return i.p=21,g.f(),i.f(21);case 22:if("not_valid"===p){i.n=29;break}S=ra(t.refiner(e,h)),i.p=23,S.s();case 24:if((T=S.n()).done){i.n=26;break}return(I=T.value).explanation=n.message,p="not_refined",i.n=25,[I,void 0];case 25:i.n=24;break;case 26:i.n=28;break;case 27:i.p=27,P=i.v,S.e(P);case 28:return i.p=28,S.f(),i.f(28);case 29:if("valid"!==p){i.n=30;break}return i.n=30,[void 0,e];case 30:return i.a(2)}}),i,null,[[23,27,28,29],[10,16,17,18],[8,20,21,22],[1,5,6,7]])}))()}var ns=function(){return ua((function e(t){var n=this;sa(this,e);var i=t.type,o=t.schema,r=t.validator,a=t.refiner,l=t.coercer,s=void 0===l?function(e){return e}:l,c=t.entries,u=void 0===c?Kr().m((function e(){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2)}),e)})):c;this.type=i,this.schema=o,this.entries=u,this.coercer=s,this.validator=r?function(e,t){return es(r(e,t),t,n,e)}:function(){return[]},this.refiner=a?function(e,t){return es(a(e,t),t,n,e)}:function(){return[]}}),[{key:"assert",value:function(e,t){return is(e,this,t)}},{key:"create",value:function(e,t){return function(e,t,n){var i=os(e,t,{coerce:!0,message:n});if(i[0])throw i[0];return i[1]}(e,this,t)}},{key:"is",value:function(e){return function(e,t){var n=os(e,t);return!n[0]}(e,this)}},{key:"mask",value:function(e,t){return function(e,t,n){var i=os(e,t,{coerce:!0,mask:!0,message:n});if(i[0])throw i[0];return i[1]}(e,this,t)}},{key:"validate",value:function(e){return os(e,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}])}();function is(e,t,n){var i=os(e,t,{message:n});if(i[0])throw i[0]}function os(e,t){var n=ts(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),i=function(e){var t=e.next(),n=t.done,i=t.value;return n?void 0:i}(n);return i[0]?[new Wl(i[0],Kr().m((function e(){var t,i,o,r;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:t=ra(n),e.p=1,t.s();case 2:if((i=t.n()).done){e.n=4;break}if(!(o=i.value)[0]){e.n=3;break}return e.n=3,o[0];case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,r=e.v,t.e(r);case 6:return e.p=6,t.f(),e.f(6);case 7:return e.a(2)}}),e,null,[[1,5,6,7]])}))),void 0]:[void 0,i[1]]}function rs(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],o=function(){for(var o=arguments.length,r=new Array(o),a=0;at||Number(r)===t&&Number(a)>=n||void 0!==i};function cc(e,t){var n=t&&t.cache?t.cache:yc,i=t&&t.serializer?t.serializer:gc;return(t&&t.strategy?t.strategy:pc)(e,{cache:n,serializer:i})}function uc(e,t,n,i){var o,r=null==(o=i)||"number"==typeof o||"boolean"==typeof o?i:n(i),a=t.get(r);return void 0===a&&(a=e.call(this,i),t.set(r,a)),a}function dc(e,t,n){var i=Array.prototype.slice.call(arguments,3),o=n(i),r=t.get(o);return void 0===r&&(r=e.apply(this,i),t.set(o,r)),r}function hc(e,t,n,i,o){return n.bind(t,e,i,o)}function pc(e,t){return hc(e,this,1===e.length?uc:dc,t.cache.create(),t.serializer)}var fc,mc,vc,gc=function(){return JSON.stringify(arguments)},_c=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),yc={create:function(){return new _c}},bc={variadic:function(e,t){return hc(e,this,dc,t.cache.create(),t.serializer)}};function kc(e){return e.type===mc.literal}function wc(e){return e.type===mc.argument}function xc(e){return e.type===mc.number}function Ec(e){return e.type===mc.date}function Cc(e){return e.type===mc.time}function Ac(e){return e.type===mc.select}function Sc(e){return e.type===mc.plural}function Tc(e){return e.type===mc.pound}function Ic(e){return e.type===mc.tag}function Oc(e){return!(!e||"object"!==ha(e)||e.type!==vc.number)}function Mc(e){return!(!e||"object"!==ha(e)||e.type!==vc.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(fc||(fc={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(mc||(mc={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(vc||(vc={}));var zc=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Lc(e){var t={};return e.replace(Pc,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Nc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var jc=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$c=/^(@+)?(\+|#+)?[rs]?$/g,Bc=/(\*)(0+)|(#+)(0+)|(0+)/g,Rc=/^(0+)$/;function Hc(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace($c,(function(e,n,i){return"string"!=typeof i?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===i?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof i?i.length:0)),""})),t}function Dc(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Uc(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Rc.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Vc(e){var t=Dc(e);return t||{}}function Fc(e){for(var t={},n=0,i=e;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Bc,(function(e,n,i,o,r,a){if(n)t.minimumIntegerDigits=i.length;else{if(o&&r)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Rc.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(jc.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(jc,(function(e,n,i,o,r,a){return"*"===i?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:r&&a?(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var r=o.options[0];"w"===r?t=va(va({},t),{trailingZeroDisplay:"stripIfInteger"}):r&&(t=va(va({},t),Hc(r)))}else if($c.test(o.stem))t=va(va({},t),Hc(o.stem));else{var a=Dc(o.stem);a&&(t=va(va({},t),a));var l=Uc(o.stem);l&&(t=va(va({},t),l))}}return t}var Gc,Yc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Kc(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,i=e.language;return"root"!==i&&(n=e.maximize().region),(Yc[n||""]||Yc[i||""]||Yc["".concat(i,"-001")]||Yc["001"])[0]}var Wc=new RegExp("^".concat(zc.source,"*")),qc=new RegExp("".concat(zc.source,"*$"));function Xc(e,t){return{start:e,end:t}}var Zc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Jc=!!String.fromCodePoint,Qc=!!Object.fromEntries,eu=!!String.prototype.codePointAt,tu=!!String.prototype.trimStart,nu=!!String.prototype.trimEnd,iu=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ou=!0;try{ou="a"===(null===(Gc=hu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Gc?void 0:Gc[0])}catch(qA){ou=!1}var ru,au=Zc?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},lu=Jc?String.fromCodePoint:function(){for(var e=[],t=0;tr;){if((n=e[r++])>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},su=Qc?Object.fromEntries:function(e){for(var t={},n=0,i=e;n=n)){var i,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?o:i-56320+(o-55296<<10)+65536}},uu=tu?function(e){return e.trimStart()}:function(e){return e.replace(Wc,"")},du=nu?function(e){return e.trimEnd()}:function(e){return e.replace(qc,"")};function hu(e,t){return new RegExp(e,t)}if(ou){var pu=hu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ru=function(e,t){var n;return pu.lastIndex=t,null!==(n=pu.exec(e)[1])&&void 0!==n?n:""}}else ru=function(e,t){for(var n=[];;){var i=cu(e,t);if(void 0===i||_u(i)||yu(i))break;n.push(i),t+=i>=65536?2:1}return lu.apply(void 0,n)};var fu,mu=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var o=this.char();if(123===o){if((r=this.parseArgument(e,n)).err)return r;i.push(r.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(fc.UNMATCHED_CLOSING_TAG,Xc(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&vu(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r;i.push(r.val)}else{var r;if((r=this.parseLiteral(e,t)).err)return r;i.push(r.val)}}else{var a=this.clonePosition();this.bump(),i.push({type:mc.pound,location:Xc(a,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:mc.literal,value:"<".concat(i,"/>"),location:Xc(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var r=o.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:mc.tag,value:i,children:r,location:Xc(n,this.clonePosition())},err:null}:this.error(fc.INVALID_TAG,Xc(a,this.clonePosition())))}return this.error(fc.UNCLOSED_TAG,Xc(n,this.clonePosition()))}return this.error(fc.INVALID_TAG,Xc(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&gu(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(t);if(o)i+=o;else{var r=this.tryParseUnquoted(e,t);if(r)i+=r;else{var a=this.tryParseLeftAngleBracket();if(!a)break;i+=a}}}var l=Xc(n,this.clonePosition());return{val:{type:mc.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vu(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return lu.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),lu(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fc.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(fc.EMPTY_ARGUMENT,Xc(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(fc.MALFORMED_ARGUMENT,Xc(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fc.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:mc.argument,value:i,location:Xc(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fc.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(fc.MALFORMED_ARGUMENT,Xc(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ru(this.message,t),i=t+n.length;return this.bumpTo(i),{value:n,location:Xc(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,i){var o,r=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(fc.EXPECT_ARGUMENT_TYPE,Xc(r,l));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=du(g.val)).length)return this.error(fc.EXPECT_ARGUMENT_STYLE,Xc(this.clonePosition(),this.clonePosition()));s={style:p,styleLocation:Xc(c,this.clonePosition())}}if((_=this.tryParseArgumentClose(i)).err)return _;var u=Xc(i,this.clonePosition());if(s&&au(null==s?void 0:s.style,"::",0)){var d=uu(s.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,s.styleLocation)).err?g:{val:{type:mc.number,value:n,location:u,style:g.val},err:null};if(0===d.length)return this.error(fc.EXPECT_DATE_TIME_SKELETON,u);var h=d;this.locale&&(h=function(e,t){for(var n="",i=0;i>1),s=Kc(t);for("H"!=s&&"k"!=s||(l=0);l-- >0;)n+="a";for(;a-- >0;)n=s+n}else n+="J"===o?"H":o}return n}(d,this.locale));var p={type:vc.dateTime,pattern:h,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?Lc(h):{}};return{val:{type:"date"===a?mc.date:mc.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===a?mc.number:"date"===a?mc.date:mc.time,value:n,location:u,style:null!==(o=null==s?void 0:s.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fc.EXPECT_SELECT_ARGUMENT_OPTIONS,Xc(f,va({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(fc.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xc(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(fc.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fc.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),m=this.parseIdentifierIfPossible(),v=g.val}var _,y=this.tryParsePluralOrSelectOptions(e,a,t,m);if(y.err)return y;if((_=this.tryParseArgumentClose(i)).err)return _;var b=Xc(i,this.clonePosition());return"select"===a?{val:{type:mc.select,value:n,options:su(y.val),location:b},err:null}:{val:{type:mc.plural,value:n,options:su(y.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(fc.INVALID_ARGUMENT_TYPE,Xc(r,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(fc.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fc.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xc(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Nc).filter((function(e){return e.length>0})),n=[],i=0,o=t;i=48&&a<=57))break;o=!0,r=10*r+(a-48),this.bump()}var l=Xc(i,this.clonePosition());return o?iu(r*=n)?{val:r,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=cu(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(au(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_u(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function vu(e){return e>=97&&e<=122||e>=65&&e<=90}function gu(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function _u(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function yu(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function bu(e){e.forEach((function(e){if(delete e.location,Ac(e)||Sc(e))for(var t in e.options)delete e.options[t].location,bu(e.options[t].value);else xc(e)&&Oc(e.style)||(Ec(e)||Cc(e))&&Mc(e.style)?delete e.style.location:Ic(e)&&bu(e.children)}))}function ku(e,t){void 0===t&&(t={}),t=va({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new mu(e,t).parse();if(n.err){var i=SyntaxError(fc[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==t?void 0:t.captureLocation)||bu(n.val),n.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(fu||(fu={}));var wu,xu=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=i,o}return ma(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Eu=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),fu.INVALID_VALUE,o)||this}return ma(t,e),t}(xu),Cu=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),fu.INVALID_VALUE,i)||this}return ma(t,e),t}(xu),Au=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),fu.MISSING_VALUE,n)||this}return ma(t,e),t}(xu);function Su(e){return"function"==typeof e}function Tu(e,t,n,i,o,r,a){if(1===e.length&&kc(e[0]))return[{type:wu.literal,value:e[0].value}];for(var l=[],s=0,c=e;s0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=ku,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),zu={not_found:"لم يتم العثور على الكيان"},Pu={card:{chips:{alignment:"محاذاة"},climate:{hvac_modes:"أوضاع HVAC",show_temperature_control:"التحكم في درجة الحرارة؟"},cover:{show_buttons_control:"أزرار التحكم؟",show_position_control:"التحكم في الموقع؟",show_tilt_position_control:"التحكم في الإمالة؟"},empty:{no_config_options:"لا تحتوي هذه البطاقة على خيارات التكوين."},fan:{show_direction_control:"التحكم بالإتجاه؟",show_oscillate_control:"التحكم في التذبذب؟",show_percentage_control:"التحكم في النسبة المئوية؟"},generic:{collapsible_controls:"تصغير عناصر التحكم عند الإيقاف",color:"اللون",content_info:"المحتوى",fill_container:"ملئ الحاوية",icon_animation:"تحريك الرمز عندما يكون نشطًا؟",icon_color:"لون الأيقونة",icon_type:"نوع الأيقونة",layout:"التخطيط",primary_info:"المعلومات الأساسية",secondary_info:"المعلومات الفرعية",use_entity_picture:"استخدم صورة الكيان؟"},humidifier:{show_target_humidity_control:"التحكم في الرطوبة؟?"},light:{incompatible_controls:"قد لا يتم عرض بعض عناصر التحكم إذا كان الضوء الخاص بك لا يدعم الميزة.",show_brightness_control:"التحكم في السطوع؟",show_color_control:"التحكم في اللون؟",show_color_temp_control:"التحكم في درجة حرارة اللون؟",use_light_color:"استخدم لون فاتح"},lock:{lock:"مقفل",open:"مفتوح",unlock:"إلغاء قفل"},"media-player":{media_controls:"التحكم في الوسائط",media_controls_list:{next:"التالي",on_off:"تشغيل/إيقاف",play_pause_stop:"تشغيل/إيقاف مؤقت/إيقاف",previous:"السابق",repeat:"وضع التكرار",shuffle:"خلط"},show_volume_level:"إظهار مستوى الصوت",use_media_artwork:"استخدم صورة الوسائط",use_media_info:"استخدم معلومات الوسائط",volume_controls:"التحكم في الصوت",volume_controls_list:{volume_buttons:"أزرار الصوت",volume_mute:"كتم",volume_set:"مستوى الصوت"}},number:{display_mode:"وضع العرض",display_mode_list:{buttons:"الأزرار",default:"الافتراضي(سحب)",slider:"سحب"}},template:{badge_color:"لون الشارة",badge_icon:"أيقونة الشارة",content:"المحتوى",entity_extra:"تستخدم في القوالب والإجراءات",label:"التسمية",multiline_secondary:"متعدد الأسطر الثانوية؟",picture:"صورة (ستحل محل الأيقونة)",primary:"المعلومات الأساسية",secondary:"المعلومات الثانوية"},title:{subtitle:"العنوان الفرعي",subtitle_tap_action:"إجراء النقر على العنوان الفرعي",title:"العنوان",title_tap_action:"إجراء النقر على العنوان"},update:{show_buttons_control:"أزرار التحكم؟"},vacuum:{commands:"الاوامر",commands_list:{on_off:"تشغيل/إيقاف"}},weather:{show_conditions:"الأحوال الجوية؟",show_temperature:"الطقس؟"}},chip:{"chip-picker":{add:"أضف رقاقة",chips:"رقاقات",clear:"مسح",edit:"تعديل",select:"اختر الرقاقة",types:{action:"إجراء","alarm-control-panel":"تنبيه",back:"رجوع",conditional:"مشروط",entity:"الكيان",light:"مظيء",menu:"القائمة",quickbar:"تبويب سريع",spacer:"مساحة",template:"قالب",weather:"الطقس"}},conditional:{chip:"رقاقة"},sub_element_editor:{title:"محرر الرقاقة"}},form:{alignment_picker:{values:{center:"توسيط",default:"المحاذاة الافتراضية",end:"نهاية",justify:"مساواة",start:"بداية"}},color_picker:{values:{default:"اللون الإفتراضي"}},icon_type_picker:{values:{default:"النوع افتراضي","entity-picture":"صورة الكيان",icon:"أيقونة",none:"لا شئ"}},info_picker:{values:{default:"المعلومات الافتراضية","last-changed":"آخر تغيير","last-updated":"آخر تحديث",name:"الإسم",none:"لا شئ",state:"الحالة"}},layout_picker:{values:{default:"تخطيط افتراضي",horizontal:"تخطيط أفقي",vertical:"تخطيط رأسي"}}}},Lu={card:zu,editor:Pu},Nu=Object.freeze({__proto__:null,card:zu,default:Lu,editor:Pu}),ju={card:{chips:{alignment:"Подравняване"},climate:{hvac_modes:"HVAC Режими",show_temperature_control:"Контрол на температурата?"},cover:{show_buttons_control:"Контролни бутони?",show_position_control:"Контрол на позицията?",show_tilt_position_control:"Контрол на наклона?"},fan:{show_oscillate_control:"Контрол на трептенето?",show_percentage_control:"Процентов контрол?"},generic:{collapsible_controls:"Свий контролите при изключен",content_info:"Съдържание",fill_container:"Изпълване на контейнера",icon_animation:"Анимирай иконата при активен?",icon_color:"Цвят на икона",icon_type:"Тип на икона",layout:"Оформление",primary_info:"Първостепенна информация",secondary_info:"Второстепенна информация",use_entity_picture:"Използвай снимката на обекта?"},humidifier:{show_target_humidity_control:"Контрол на влажността?"},light:{incompatible_controls:"Някои опции могат да бъдат скрити при условие че осветителното тяло не поддържа фунцията.",show_brightness_control:"Контрол на яркостта?",show_color_control:"Контрол на цвета?",show_color_temp_control:"Контрол на температурата?",use_light_color:"Използвай цвета на светлината"},lock:{lock:"Заключен",open:"Отворен",unlock:"Отключен"},"media-player":{media_controls:"Контрол на Медиата",media_controls_list:{next:"Следващ",on_off:"Вкл./Изкл.",play_pause_stop:"Пусни/пауза/стоп",previous:"Предишен",repeat:"Повтаряне",shuffle:"Разбъркано"},show_volume_level:"Покажи контрола за звук",use_media_artwork:"Използвай визуалните детайли от медията",use_media_info:"Използвай информация от медията",volume_controls:"Контрол на звука",volume_controls_list:{volume_buttons:"Бутони за звук",volume_mute:"Заглуши",volume_set:"Ниво на звука"}},template:{badge_color:"Цвят на значка",badge_icon:"Икона на значка",content:"Съдържание",entity_extra:"Използван в шаблони и действия",multiline_secondary:"Много-редова второстепенна информация?",picture:"Картина (ще замени иконата)",primary:"Първостепенна информация",secondary:"Второстепенна информация"},title:{subtitle:"Подзаглавие",title:"Заглавие"},update:{show_buttons_control:"Контролни бутони?"},vacuum:{commands:"Конади",commands_list:{on_off:"Вкл./Изкл."}},weather:{show_conditions:"Условия?",show_temperature:"Температура?"}},chip:{"chip-picker":{add:"Добави чип",chips:"Чипове",clear:"Изчисти",edit:"Редактирай",select:"Избери чип",types:{action:"Действия","alarm-control-panel":"Аларма",back:"Назад",conditional:"Условни",entity:"Обект",light:"Осветление",menu:"Меню",template:"Шаблон",weather:"Време"}},conditional:{chip:"Чип"},sub_element_editor:{title:"Чип редактор"}},form:{alignment_picker:{values:{center:"Център",default:"Основно подравняване",end:"Край",justify:"Подравнен",start:"Старт"}},color_picker:{values:{default:"Основен цвят"}},icon_type_picker:{values:{default:"Основен тип","entity-picture":"Картина на обекта",icon:"Икона",none:"Липсва"}},info_picker:{values:{default:"Основна информация","last-changed":"Последно Променен","last-updated":"Последно Актуализиран",name:"Име",none:"Липсва",state:"Състояние"}},layout_picker:{values:{default:"Основно оформление",horizontal:"Хоризонтално оформление",vertical:"Вертикално оформление"}}}},$u={editor:ju},Bu=Object.freeze({__proto__:null,default:$u,editor:ju}),Ru={not_found:"No s'ha trobat l'entitat"},Hu={card:{chips:{alignment:"Alineació"},climate:{hvac_modes:"Modes HVAC",show_temperature_control:"Control de temperatura?"},cover:{show_buttons_control:"Botons de control?",show_position_control:"Control de posició?",show_tilt_position_control:"Control d'inclinació?"},fan:{show_oscillate_control:"Control d'oscil·lació?",show_percentage_control:"Control de percentatge?"},generic:{collapsible_controls:"Amaga els controls en desactivar",color:"Color",content_info:"Contingut",fill_container:"Emplena el contenidor",icon_animation:"Animar icona en activar?",icon_color:"Color d'icona",icon_type:"Tipus d'icona",layout:"Distribució",primary_info:"Informació primaria",secondary_info:"Informació secundaria",use_entity_picture:"Fer servir la imatge de l'entitat?"},humidifier:{show_target_humidity_control:"Control d'humitat?"},light:{incompatible_controls:"Alguns controls no es mostraran si l'entitat no suporta eixa funció.",show_brightness_control:"Control de brillantor?",show_color_control:"Control de color?",show_color_temp_control:"Control de la temperatura del color?",use_light_color:"Fes servir el color del llum"},lock:{lock:"Bloqueja",open:"Obri",unlock:"Desbloqueja"},"media-player":{media_controls:"Controls multimèdia",media_controls_list:{next:"Pista següent",on_off:"Engegar/Apagar",play_pause_stop:"Reproduïr/Pausar/Detindre",previous:"Pista anterior",repeat:"Mode de repetició",shuffle:"Mesclar"},show_volume_level:"Mostra el nivell de volum",use_media_artwork:"Fes servir l'art multimèdia",use_media_info:"Empra la informació multimèdia",volume_controls:"Controls de volum",volume_controls_list:{volume_buttons:"Botons de volum",volume_mute:"Silenci",volume_set:"Nivell de volum"}},number:{display_mode:"Mode de visualització",display_mode_list:{buttons:"Botons",default:"Per defecte (lliscant)",slider:"Lliscant"}},template:{badge_color:"Color de la insígnia",badge_icon:"Icona de la insígnia",content:"Contingut",entity_extra:"Utilitzats en plantilles i accions",label:"Etiqueta",multiline_secondary:"Secundaria en varies línies?",picture:"Imatge (reemplaçarà la icona)",primary:"Informació primaria",secondary:"Informació secundaria"},title:{subtitle:"Subtítol",subtitle_tap_action:"Acció en tocar el subtítol",title:"Títol",title_tap_action:"Acció en tocar el títol"},update:{show_buttons_control:"Botons de control?"},vacuum:{commands:"Comandaments",commands_list:{on_off:"Engegar/Apagar"}},weather:{show_conditions:"Condicions?",show_temperature:"Temperatura?"}},chip:{"chip-picker":{add:"Afegir xip",chips:"Xips",clear:"Buidar",edit:"Editar",select:"Seleccionar chip",types:{action:"Acció","alarm-control-panel":"Alarma",back:"Tornar",conditional:"Condicional",entity:"Entitat",light:"Llum",menu:"Menú",spacer:"Espai",template:"Plantilla",weather:"Oratge"}},conditional:{chip:"Xip"},sub_element_editor:{title:"Editor de xips"}},form:{alignment_picker:{values:{center:"Centre",default:"Alineació per defecte",end:"Final",justify:"Justifica",start:"Inici"}},color_picker:{values:{default:"Color per defecte"}},icon_type_picker:{values:{default:"Tipus per defecte","entity-picture":"Entitat d'imatge",icon:"Icona",none:"Cap"}},info_picker:{values:{default:"Informació per defecte","last-changed":"Últim Canvi","last-updated":"Última Actualització",name:"Nom",none:"Cap",state:"Estat"}},layout_picker:{values:{default:"Distribució per defecte",horizontal:"Distribució horitzontal",vertical:"Distribució vertical"}}}},Du={card:Ru,editor:Hu},Uu=Object.freeze({__proto__:null,card:Ru,default:Du,editor:Hu}),Vu={not_found:"Entita nebyla nalezena"},Fu={card:{chips:{alignment:"Zarovnání"},climate:{hvac_modes:"Režimy HVAC",show_temperature_control:"Ovládání teploty?"},cover:{show_buttons_control:"Zobrazit ovládací tlačítka?",show_position_control:"Zobrazit ovládání polohy?",show_tilt_position_control:"Zobrazit ovládání náklonu?"},fan:{show_oscillate_control:"Ovládání oscilaceM",show_percentage_control:"Ovládání v procentech?"},generic:{collapsible_controls:"Pokud je vypnuto, skrýt ovládací prvky",content_info:"Obsah",fill_container:"Vyplnit prostor",icon_animation:"Pokud je aktivní, animovat ikonu?",icon_color:"Barva ikony",icon_type:"Typ ikony",layout:"Rozložení",primary_info:"Primární informace",secondary_info:"Sekundární informace",use_entity_picture:"Použít ikonu entity?"},humidifier:{show_target_humidity_control:"Ovládání vlhkosti?"},light:{incompatible_controls:"Některé ovládací prvky se nemusí zobrazit, pokud vaše světlo tuto funkci nepodporuje.",show_brightness_control:"Ovládání jasu?",show_color_control:"Ovládání barvy světla?",show_color_temp_control:"Ovládání teploty světla?",use_light_color:"Ikona podle barvy světla?"},lock:{lock:"Zamčeno",open:"Otevřeno",unlock:"Odemčeno"},"media-player":{media_controls:"Ovládání médií",media_controls_list:{next:"Další stopa",on_off:"Zapnout/Vypnout",play_pause_stop:"Přehrát/Pauza/Zastavit",previous:"Předchozí stopa",repeat:"Režim opakování",shuffle:"Zamíchat"},show_volume_level:"Zobrazit úroveň hlasitosti",use_media_artwork:"Použít artwork z média",use_media_info:"Použít informace z média",volume_controls:"Ovládání hlasitosti",volume_controls_list:{volume_buttons:"Tlačítka hlasitosti",volume_mute:"Ztlumit",volume_set:"Úroveň hlasitosti"}},number:{display_mode:"Režim zobrazení",display_mode_list:{buttons:"Tlačítka",default:"Výchozí (posuvník)",slider:"Posuvník"}},template:{badge_color:"Barva odznaku",badge_icon:"Ikona odznaku",content:"Obsah",entity_extra:"Použito v šablonách a akcích",multiline_secondary:"Víceřádková sekundární informace?",picture:"Obrázek (nahradí ikonu)",primary:"Primární informace",secondary:"Sekundární informace"},title:{subtitle:"Popis",subtitle_tap_action:"Akce při klepnutí na popis",title:"Nadpis",title_tap_action:"Akce při klepnutí na nadpis"},update:{show_buttons_control:"Zobrazit ovládací tlačítka?"},vacuum:{commands:"Příkazy",commands_list:{on_off:"Zapnout/Vypnout"}},weather:{show_conditions:"Zobrazit podmínky?",show_temperature:"Zobrazit teplotu?"}},chip:{"chip-picker":{add:"Přidat tlačítko",chips:"Tlačítka",clear:"Vymazat",edit:"Upravit",select:"Vybrat tlačítko",types:{action:"Akce","alarm-control-panel":"Alarm",back:"Zpět",conditional:"Podmínka",entity:"Entita",light:"Světlo",menu:"Menu",spacer:"Mezera",template:"Šablona",weather:"Počasí"}},conditional:{chip:"Tlačítko"},sub_element_editor:{title:"Editor tlačítek"}},form:{alignment_picker:{values:{center:"Na střed",default:"Výchozí zarovnání",end:"Na konec",justify:"Do bloku",start:"Na začátek"}},color_picker:{values:{default:"Výchozí barva"}},icon_type_picker:{values:{default:"Výchozí typ","entity-picture":"Ikona entity",icon:"Ikona",none:"Nic"}},info_picker:{values:{default:"Výchozí informace","last-changed":"Poslední změna","last-updated":"Poslední aktualizace",name:"Název",none:"Nic",state:"Stav"}},layout_picker:{values:{default:"Výchozí rozložení",horizontal:"Vodorovné rozložení",vertical:"Svislé rozložení"}}}},Gu={card:Vu,editor:Fu},Yu=Object.freeze({__proto__:null,card:Vu,default:Gu,editor:Fu}),Ku={not_found:"Enhed ikke fundet"},Wu={card:{chips:{alignment:"Justering"},climate:{hvac_modes:"HVAC-tilstande",show_temperature_control:"Temperaturkontrol?"},cover:{show_buttons_control:"Betjeningsknapper?",show_position_control:"Positionskontrol?",show_tilt_position_control:"Tiltkontrol?"},fan:{show_oscillate_control:"Oscillationskontrol?",show_percentage_control:"Procentkontrol?"},generic:{collapsible_controls:"Skjul kontroller når slukket",color:"Farve",content_info:"Indhold",fill_container:"Fyld container",icon_animation:"Animér ikon når aktiv?",icon_color:"Ikon farve",icon_type:"Ikon type",layout:"Layout",primary_info:"Primær information",secondary_info:"Sekundær information",use_entity_picture:"Brug enhedsbillede?"},humidifier:{show_target_humidity_control:"Luftfugtighedskontrol?"},light:{incompatible_controls:"Nogle kontroller vises muligvis ikke, hvis dit lys ikke understøtter funktionen.",show_brightness_control:"Lysstyrkekontrol?",show_color_control:"Farvekontrol?",show_color_temp_control:"Temperaturfarvekontrol?",use_light_color:"Brug lysfarve"},lock:{lock:"Lås",open:"Åben",unlock:"Lås op"},"media-player":{media_controls:"Mediekontrol",media_controls_list:{next:"Næste nummer",on_off:"Tænd/Sluk",play_pause_stop:"Afspil/Pause/Stop",previous:"Forrige nummer",repeat:"Gentagelsestilstand",shuffle:"Bland"},show_volume_level:"Vis lydstyrke",use_media_artwork:"Brug mediebilleder",use_media_info:"Brug medieinformation",volume_controls:"Lydstyrkekontrol",volume_controls_list:{volume_buttons:"Lydstyrkeknapper",volume_mute:"Lydløs",volume_set:"Lydstyrke"}},number:{display_mode:"Visningstilstand",display_mode_list:{buttons:"Knapper",default:"Standard (slider)",slider:"Slider"}},template:{badge_color:"Badge farve",badge_icon:"Badge ikon",content:"Indhold",entity_extra:"Anvendes i skabeloner og handlinger",label:"Label",multiline_secondary:"Multi-linje sekundær?",picture:"Billede (erstatter ikonet)",primary:"Primær information",secondary:"Sekundær information"},title:{subtitle:"Undertitel",subtitle_tap_action:"Undertitel tryk handling",title:"Titel",title_tap_action:"Title tryk handling"},update:{show_buttons_control:"Betjeningsknapper?"},vacuum:{commands:"Kommandoer",commands_list:{on_off:"Slå til/fra"}},weather:{show_conditions:"Vejrforhold?",show_temperature:"Temperatur?"}},chip:{"chip-picker":{add:"Tilføj chip",chips:"Chips",clear:"Nulstil",edit:"Rediger",select:"Vælg chip",types:{action:"Handling","alarm-control-panel":"Alarm",back:"Tilbage",conditional:"Betinget",entity:"Enhed",light:"Lys",menu:"Menu",spacer:"Afstand",template:"Skabelon",weather:"Vejr"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip-editor"}},form:{alignment_picker:{values:{center:"Centrer",default:"Standard justering",end:"Slut",justify:"Lige margener",start:"Start"}},color_picker:{values:{default:"Standardfarve"}},icon_type_picker:{values:{default:"Standard type","entity-picture":"Enhedsbillede",icon:"Ikon",none:"Ingen"}},info_picker:{values:{default:"Standard information","last-changed":"Sidst ændret","last-updated":"Sidst opdateret",name:"Navn",none:"Ingen",state:"Status"}},layout_picker:{values:{default:"Standard layout",horizontal:"Horisontal layout",vertical:"Vertikal layout"}}}},qu={card:Ku,editor:Wu},Xu=Object.freeze({__proto__:null,card:Ku,default:qu,editor:Wu}),Zu={not_found:"Entität nicht gefunden"},Ju={card:{chips:{alignment:"Ausrichtung"},climate:{hvac_modes:"HVAC-Modi",show_temperature_control:"Temperatursteuerung?"},cover:{show_buttons_control:"Schaltflächensteuerung?",show_position_control:"Positionssteuerung?",show_tilt_position_control:"Winkelsteuerung?"},empty:{no_config_options:"Diese Karte hat keine Optionen."},fan:{show_direction_control:"Richtungssteuerung?",show_oscillate_control:"Oszillationssteuerung?",show_percentage_control:"Prozentuale Kontrolle?"},generic:{collapsible_controls:"Schieberegler einklappen, wenn aus",color:"Farbe",content_info:"Inhalt",fill_container:"Container ausfüllen",icon_animation:"Icon animieren, wenn aktiv?",icon_color:"Icon-Farbe",icon_type:"Icon-Typ",layout:"Layout",primary_info:"Primäre Information",secondary_info:"Sekundäre Information",use_entity_picture:"Entitätsbild verwenden?"},humidifier:{show_target_humidity_control:"Luftfeuchtigkeitssteuerung?"},light:{incompatible_controls:"Einige Steuerelemente werden möglicherweise nicht angezeigt, wenn Ihr Licht diese Funktion nicht unterstützt.",show_brightness_control:"Helligkeitsregelung?",show_color_control:"Farbsteuerung?",show_color_temp_control:"Farbtemperatursteuerung?",use_light_color:"Farbsteuerung verwenden"},lock:{lock:"Verriegeln",open:"Öffnen",unlock:"Entriegeln"},"media-player":{media_controls:"Mediensteuerung",media_controls_list:{next:"Nächster Titel",on_off:"Ein/Aus",play_pause_stop:"Play/Pause/Stop",previous:"Vorheriger Titel",repeat:"Wiederholen",shuffle:"Zufällige Wiedergabe"},show_volume_level:"Lautstärke-Level anzeigen",use_media_artwork:"Mediengrafik verwenden",use_media_info:"Medieninfos verwenden",volume_controls:"Lautstärkesteuerung",volume_controls_list:{volume_buttons:"Lautstärke-Buttons",volume_mute:"Stumm",volume_set:"Lautstärke-Level"}},number:{display_mode:"Anzeigemodus",display_mode_list:{buttons:"Buttons",default:"Standard (Schieberegler)",slider:"Schieberegler"}},template:{badge_color:"Badge-Farbe",badge_icon:"Badge-Icon",content:"Inhalt",entity_extra:"Wird in Vorlagen und Aktionen verwendet",label:"Beschriftung",multiline_secondary:"Mehrzeilig sekundär?",picture:"Bild (ersetzt das Icon)",primary:"Primäre Information",secondary:"Sekundäre Information"},title:{subtitle:"Untertitel",subtitle_tap_action:"Untertitel Tipp-Aktion",title:"Titel",title_tap_action:"Titel Tipp-Aktion"},update:{show_buttons_control:"Schaltflächensteuerung?"},vacuum:{commands:"Befehle",commands_list:{on_off:"An/Ausschalten"}},weather:{show_conditions:"Bedingungen?",show_temperature:"Temperatur?"}},chip:{"chip-picker":{add:"Chip hinzufügen",chips:"Chips",clear:"Löschen",edit:"Editieren",select:"Chip auswählen",types:{action:"Aktion","alarm-control-panel":"Alarm",back:"Zurück",conditional:"Bedingung",entity:"Entität",light:"Licht",menu:"Menü",quickbar:"Quickbar",spacer:"Abstand",template:"Vorlage",weather:"Wetter"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip Editor"}},form:{alignment_picker:{values:{center:"Mitte",default:"Standard",end:"Ende",justify:"Ausrichten",start:"Anfang"}},color_picker:{values:{default:"Standardfarbe"}},icon_type_picker:{values:{default:"Standard-Typ","entity-picture":"Entitätsbild",icon:"Icon",none:"Keines"}},info_picker:{values:{default:"Standard-Information","last-changed":"Letzte Änderung","last-updated":"Letzte Aktualisierung",name:"Name",none:"Keine",state:"Zustand"}},layout_picker:{values:{default:"Standard-Layout",horizontal:"Horizontales Layout",vertical:"Vertikales Layout"}}}},Qu={card:Zu,editor:Ju},ed=Object.freeze({__proto__:null,card:Zu,default:Qu,editor:Ju}),td={card:{chips:{alignment:"Ευθυγράμμιση"},cover:{show_buttons_control:"Έλεγχος κουμπιών;",show_position_control:"Έλεγχος θέσης;"},fan:{show_oscillate_control:"Έλεγχος ταλάντωσης;",show_percentage_control:"Έλεγχος ποσοστού;"},generic:{content_info:"Περιεχόμενο",icon_animation:"Κίνηση εικονιδίου όταν είναι ενεργό;",icon_color:"Χρώμα εικονιδίου",layout:"Διάταξη",primary_info:"Πρωτεύουσες πληροφορίες",secondary_info:"Δευτερεύουσες πληροφορίες",use_entity_picture:"Χρήση εικόνας οντότητας;"},light:{incompatible_controls:"Ορισμένα στοιχεία ελέγχου ενδέχεται να μην εμφανίζονται εάν το φωτιστικό σας δεν υποστηρίζει τη λειτουργία.",show_brightness_control:"Έλεγχος φωτεινότητας;",show_color_control:"Έλεγχος χρώματος;",show_color_temp_control:"Έλεγχος χρώματος θερμοκρασίας;",use_light_color:"Χρήση χρώματος φωτος"},"media-player":{media_controls:"Έλεγχος πολυμέσων",media_controls_list:{next:"Επόμενο κομμάτι",on_off:"Ενεργοποίηση/απενεργοποίηση",play_pause_stop:"Αναπαραγωγή/παύση/διακοπή",previous:"Προηγούμενο κομμάτι",repeat:"Λειτουργία επανάληψης",shuffle:"Τυχαία σειρά"},use_media_artwork:"Χρήση έργων τέχνης πολυμέσων",use_media_info:"Χρήση πληροφοριών πολυμέσων",volume_controls:"Χειριστήρια έντασης ήχου",volume_controls_list:{volume_buttons:"Κουμπιά έντασης ήχου",volume_mute:"Σίγαση",volume_set:"Επίπεδο έντασης ήχου"}},template:{content:"Περιεχόμενο",entity_extra:"Χρησιμοποιείται σε πρότυπα και ενέργειες",multiline_secondary:"Δευτερεύουσες πολλαπλών γραμμών;",primary:"Πρωτεύουσες πληροφορίες",secondary:"Δευτερεύουσες πληροφορίες"},title:{subtitle:"Υπότιτλος",title:"Τίτλος"},update:{show_buttons_control:"Έλεγχος κουμπιών;"},vacuum:{commands:"Εντολές"},weather:{show_conditions:"Συνθήκες;",show_temperature:"Θερμοκρασία;"}},chip:{"chip-picker":{add:"Προσθήκη chip",chips:"Chips",clear:"Καθαρισμός",edit:"Επεξεργασία",select:"Επιλογή chip",types:{action:"Ενέργεια","alarm-control-panel":"Συναγερμός",back:"Πίσω",conditional:"Υπό προϋποθέσεις",entity:"Οντότητα",light:"Φως",menu:"Μενού",template:"Πρότυπο",weather:"Καιρός"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Επεξεργαστής Chip"}},form:{alignment_picker:{values:{center:"Στοίχιση στο κέντρο",default:"Προεπιλεγμένη στοίχιση",end:"Στοίχιση δεξιά",justify:"Πλήρης στοίχιση",start:"Στοίχιση αριστερά"}},color_picker:{values:{default:"Προεπιλεγμένο χρώμα"}},info_picker:{values:{default:"Προεπιλεγμένες πληροφορίες","last-changed":"Τελευταία αλλαγή","last-updated":"Τελευταία ενημέρωση",name:"Όνομα",none:"Τίποτα",state:"Κατάσταση"}},layout_picker:{values:{default:"Προεπιλεγμένη διάταξη",horizontal:"Οριζόντια διάταξη",vertical:"Κάθετη διάταξη"}}}},nd={editor:td},id=Object.freeze({__proto__:null,default:nd,editor:td}),od={not_found:"Entity not found"},rd={section:{context:"Context",content:"Content",features:"Features",interactions:"Interactions",layout:"Layout",badge:"Badge"},card:{chips:{alignment:"Alignment"},climate:{hvac_modes:"HVAC Modes",show_temperature_control:"Temperature control?"},cover:{show_buttons_control:"Control buttons?",show_position_control:"Position control?",show_tilt_position_control:"Tilt control?"},empty:{no_config_options:"This card has no config options."},fan:{show_direction_control:"Direction control?",show_oscillate_control:"Oscillate control?",show_percentage_control:"Percentage control?"},generic:{entity:"Entity",area:"Area",color:"Color",content_info:"Content",fill_container:"Fill container",icon_animation:"Animate icon when active?",icon_color:"Icon color",icon_type:"Icon type",layout:"Layout",primary_info:"Primary information",secondary_info:"Secondary information",use_entity_picture:"Use entity picture?",collapsible_controls:"Collapse controls when off",picture:"Picture",picture_helper:"If set, it will replace the icon."},humidifier:{show_target_humidity_control:"Humidity control?"},light:{incompatible_controls:"Some controls may not be displayed if your light does not support the feature.",show_brightness_control:"Brightness control?",show_color_control:"Color control?",show_color_temp_control:"Color temperature control?",use_light_color:"Use light color"},lock:{lock:"Lock",open:"Open",unlock:"Unlock"},"media-player":{media_controls:"Media controls",media_controls_list:{next:"Next track",on_off:"Turn on/off",play_pause_stop:"Play/pause/stop",previous:"Previous track",repeat:"Repeat mode",shuffle:"Shuffle"},show_volume_level:"Show volume level",use_media_artwork:"Use media artwork",use_media_info:"Use media info",volume_controls:"Volume controls",volume_controls_list:{volume_buttons:"Volume buttons",volume_mute:"Mute",volume_set:"Volume level"}},number:{display_mode:"Display Mode",display_mode_list:{buttons:"Buttons",default:"Default (slider)",slider:"Slider"}},template:{area_helper:"Used in templates and features",area:"Area",badge_color:"Badge color",badge_icon:"Badge icon",badge_text_helper:"If set, it will replace the icon.",badge_text:"Badge text",badge:"Badge",content:"Content",entity_helper:"Used in templates, interactions and features",entity_helper_legacy:"Used in templates and interactions",label:"Label",layout:"Layout",multiline_secondary_helper:"The card may be taller to fit the text and will not always align with the grid system.",multiline_secondary:"Allow multiline secondary information",primary:"Primary information",secondary:"Secondary information"},title:{subtitle:"Subtitle",subtitle_tap_action:"Subtitle tap action",title:"Title",title_tap_action:"Title tap action"},update:{show_buttons_control:"Control buttons?"},vacuum:{commands:"Commands",commands_list:{on_off:"Turn on/off"}},weather:{show_conditions:"Conditions?",show_temperature:"Temperature?"}},badge:{template:{label:"Label",content:"Content",entity_helper:"Used in templates and interactions",area_helper:"Used in templates"}},chip:{"chip-picker":{add:"Add chip",chips:"Chips",clear:"Clear",edit:"Edit",select:"Select chip",types:{action:"Action","alarm-control-panel":"Alarm",back:"Back",conditional:"Conditional",entity:"Entity",light:"Light",menu:"Menu",quickbar:"Quickbar",spacer:"Spacer",template:"Template",weather:"Weather"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip editor"}},form:{alignment_picker:{values:{center:"Center",default:"Default alignment",end:"End",justify:"Justify",start:"Start"}},color_picker:{values:{default:"Default color"}},icon_type_picker:{values:{default:"Default type","entity-picture":"Entity picture",icon:"Icon",none:"None"}},info_picker:{values:{default:"Default information","last-changed":"Last Changed","last-updated":"Last Updated",name:"Name",none:"None",state:"State"}},layout_picker:{values:{default:"Default layout",horizontal:"Horizontal layout",vertical:"Vertical layout"}}}},ad={title:"Card updated",description:"Your card’s configuration has been migrated to the new version. You can find more information about the changes in {link}.",post:"the GitHub post",revert:"Revert",ok:"Ok"},ld={card:od,editor:rd,migration:ad},sd=Object.freeze({__proto__:null,card:od,default:ld,editor:rd,migration:ad}),cd={not_found:"Entidad no encontrada"},ud={card:{chips:{alignment:"Alineación"},climate:{hvac_modes:"Modos de climatización",show_temperature_control:"¿Control de temperatura?"},cover:{show_buttons_control:"¿Botones de control?",show_position_control:"¿Control de posición?",show_tilt_position_control:"¿Control de inclinación?"},empty:{no_config_options:"Esta carta no tiene opciones de config."},fan:{show_direction_control:"¿Control de dirección?",show_oscillate_control:"¿Controlar oscilación?",show_percentage_control:"¿Controlar porcentaje?"},generic:{collapsible_controls:"Contraer controles cuando está apagado",color:"Color",content_info:"Contenido",fill_container:"Rellenar",icon_animation:"¿Icono animado cuando está activo?",icon_color:"Color de icono",icon_type:"Tipo de icono",layout:"Diseño",primary_info:"Información primaria",secondary_info:"Información secundaria",use_entity_picture:"¿Usar imagen de entidad?"},humidifier:{show_target_humidity_control:"¿Controlar humedad?"},light:{incompatible_controls:"Es posible que algunos controles no se muestren si la luz no es compatible con esta función.",show_brightness_control:"¿Controlar brillo?",show_color_control:"¿Controlar color?",show_color_temp_control:"¿Controlar temperatura del color?",use_light_color:"Usar color de la luz"},lock:{lock:"Bloquear",open:"Abrir",unlock:"Desbloquear"},"media-player":{media_controls:"Controles multimedia",media_controls_list:{next:"Pista siguiente",on_off:"Activar/desactivar",play_pause_stop:"Reproducir/pausa/parar",previous:"Pista anterior",repeat:"Modo de repetición",shuffle:"Aleatoria"},show_volume_level:"Mostrar nivel de volumen",use_media_artwork:"Usar ilustraciones multimedia",use_media_info:"Usar información multimedia",volume_controls:"Controles de volumen",volume_controls_list:{volume_buttons:"Botones de volumen",volume_mute:"Silenciar",volume_set:"Nivel de volumen"}},number:{display_mode:"Modo de visualización",display_mode_list:{buttons:"Botones",default:"Por defecto (deslizante)",slider:"Control deslizante"}},template:{badge_color:"Color del distintivo",badge_icon:"Icono del distintivo",content:"Contenido",entity_extra:"Utilizado en plantillas y acciones",label:"Etiqueta",multiline_secondary:"¿Secundaria multilínea?",picture:"Imagen (sustituirá al icono)",primary:"Información primaria",secondary:"Información secundaria"},title:{subtitle:"Subtítulo",subtitle_tap_action:"Acción al tocar el subtítulo",title:"Título",title_tap_action:"Acción al tocar el título"},update:{show_buttons_control:"¿Botones de control?"},vacuum:{commands:"Comandos",commands_list:{on_off:"Activar/desactivar"}},weather:{show_conditions:"¿Condiciones?",show_temperature:"¿Temperatura?"}},chip:{"chip-picker":{add:"Añadir chip",chips:"Chips",clear:"Limpiar",edit:"Editar",select:"Seleccionar chip",types:{action:"Acción","alarm-control-panel":"Alarma",back:"Volver",conditional:"Condicional",entity:"Entidad",light:"Luz",menu:"Menú",spacer:"Espaciador",template:"Plantilla",weather:"Clima"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Editor de chip"}},form:{alignment_picker:{values:{center:"Centrado",default:"Alineación predeterminada",end:"Final",justify:"Justificado",start:"Inicio"}},color_picker:{values:{default:"Color predeterminado"}},icon_type_picker:{values:{default:"Por defecto","entity-picture":"Imagen de entidad",icon:"Icono",none:"Ninguno"}},info_picker:{values:{default:"Información predeterminada","last-changed":"Último cambio","last-updated":"Última actualización",name:"Nombre",none:"Ninguno",state:"Estado"}},layout_picker:{values:{default:"Diseño predeterminado",horizontal:"Diseño horizontal",vertical:"Diseño vertical"}}}},dd={card:cd,editor:ud},hd=Object.freeze({__proto__:null,card:cd,default:dd,editor:ud}),pd={not_found:"Entiteettiä ei löytynyt"},fd={card:{chips:{alignment:"Asettelu"},climate:{hvac_modes:"HVAC-tilat",show_temperature_control:"Lämpötilan säätö?"},cover:{show_buttons_control:"Toimintopainikkeet?",show_position_control:"Sijainnin hallinta?",show_tilt_position_control:"Kallistuksen säätö?"},fan:{show_oscillate_control:"Oskillaation säätö?",show_percentage_control:"Prosentuaalinen säätö?"},generic:{collapsible_controls:"Supista säätimet ollessa pois-tilassa",color:"Väri",content_info:"Sisältö",fill_container:"Täytä alue",icon_animation:"Animoi kuvake, kun aktiivinen?",icon_color:"Ikonin väri",icon_type:"Kuvakkeen tyyppi",layout:"Asettelu",primary_info:"Ensisijaiset tiedot",secondary_info:"Toissijaiset tiedot",use_entity_picture:"Käytä kohteen kuvaa?"},humidifier:{show_target_humidity_control:"Kosteudenhallinta?"},light:{incompatible_controls:"Jotkin toiminnot eivät näy, jos valaisimesi ei tue niitä.",show_brightness_control:"Kirkkauden säätö?",show_color_control:"Värin säätö?",show_color_temp_control:"Värilämpötilan säätö?",use_light_color:"Käytä valaisimen väriä"},lock:{lock:"Lukitse",open:"Avaa",unlock:"Poista lukitus"},"media-player":{media_controls:"Toiminnot",media_controls_list:{next:"Seuraava kappale",on_off:"Päälle/pois",play_pause_stop:"Toista/keskeytä/pysäytä",previous:"Edellinen kappale",repeat:"Jatkuva toisto",shuffle:"Sekoita"},show_volume_level:"Näytä äänenvoimakkuuden hallinta",use_media_artwork:"Käytä median kuvituksia",use_media_info:"Käytä median tietoja",volume_controls:"Äänenvoimakkuuden hallinta",volume_controls_list:{volume_buttons:"Äänenvoimakkuuspainikkeet",volume_mute:"Mykistä",volume_set:"Äänenvoimakkuus"}},number:{display_mode:"Näyttötila",display_mode_list:{buttons:"Painikkeet",default:"Oletus (liukusäädin)",slider:"Liukusäädin"}},template:{badge_color:"Merkin väri",badge_icon:"Merkin kuvake",content:"Sisältö",entity_extra:"Käytetään malleissa ja toiminnoissa",label:"Nimiö",multiline_secondary:"Monirivinen toissijainen tieto?",picture:"Kuva (korvaa kuvakkeen)",primary:"Ensisijaiset tiedot",secondary:"Toissijaiset tiedot"},title:{subtitle:"Tekstitys",subtitle_tap_action:"Alaotsikon napautustoiminto",title:"Otsikko",title_tap_action:"Otsikkonapautustoiminto"},update:{show_buttons_control:"Toimintopainikkeet?"},vacuum:{commands:"Komennot",commands_list:{on_off:"Kytke päälle/pois"}},weather:{show_conditions:"Ehdot?",show_temperature:"Lämpötila?"}},chip:{"chip-picker":{add:"Lisää merkki",chips:"Merkit",clear:"Tyhjennä",edit:"Muokkaa",select:"Valitse merkki",types:{action:"Toiminto","alarm-control-panel":"Hälytys",back:"Takaisin",conditional:"Ehdollinen",entity:"Kohde",light:"Valaisin",menu:"Valikko",spacer:"Välikappale",template:"Malli",weather:"Sää"}},conditional:{chip:"Merkki"},sub_element_editor:{title:"Merkkieditori"}},form:{alignment_picker:{values:{center:"Keskitä",default:"Keskitys",end:"Loppu",justify:"Sovita",start:"Alku"}},color_picker:{values:{default:"Oletusväri"}},icon_type_picker:{values:{default:"Oletustyyppi","entity-picture":"Kohteen kuva",icon:"Kuvake",none:"Ei mitään"}},info_picker:{values:{default:"Oletustiedot","last-changed":"Viimeksi muuttunut","last-updated":"Viimeksi päivittynyt",name:"Nimi",none:"Ei mitään",state:"Tila"}},layout_picker:{values:{default:"Oletusasettelu",horizontal:"Vaakasuuntainen",vertical:"Pystysuuntainen"}}}},md={card:pd,editor:fd},vd=Object.freeze({__proto__:null,card:pd,default:md,editor:fd}),gd={not_found:"Entité inconnue"},_d={badge:{template:{area_helper:"Utilisée dans les modèles",content:"Contenu",entity_helper:"Utilisée dans les modèles et les interactions",label:"Libellé"}},card:{chips:{alignment:"Alignement"},climate:{hvac_modes:"Modes du thermostat",show_temperature_control:"Contrôle de la température ?"},cover:{show_buttons_control:"Contrôle avec boutons ?",show_position_control:"Contrôle de la position ?",show_tilt_position_control:"Contrôle de l'inclinaison ?"},empty:{no_config_options:"Cette carte n'a pas de paramètres."},fan:{show_direction_control:"Contrôle de la direction ?",show_oscillate_control:"Contrôle de l'oscillation ?",show_percentage_control:"Contrôle de la vitesse ?"},generic:{area:"Pièce",collapsible_controls:"Reduire les contrôles quand éteint",color:"Couleur",content_info:"Contenu",entity:"Entité",fill_container:"Remplir le conteneur",icon_animation:"Animation de l'icône ?",icon_color:"Couleur de l'icône",icon_type:"Type d'icône",layout:"Disposition",picture:"Image",picture_helper:"Si définie, elle remplacera l'icône.",primary_info:"Information principale",secondary_info:"Information secondaire",use_entity_picture:"Utiliser l'image de l'entité ?"},humidifier:{show_target_humidity_control:"Contrôle d'humidité ?"},light:{incompatible_controls:"Certains contrôles peuvent ne pas être affichés si votre lumière ne supporte pas la fonctionnalité.",show_brightness_control:"Contrôle de luminosité ?",show_color_control:"Contrôle de la couleur ?",show_color_temp_control:"Contrôle de la température ?",use_light_color:"Utiliser la couleur de la lumière"},lock:{lock:"Verrouiller",open:"Ouvrir",unlock:"Déverrouiller"},"media-player":{media_controls:"Contrôles du media",media_controls_list:{next:"Suivant",on_off:"Allumer/Éteindre",play_pause_stop:"Lecture/pause/stop",previous:"Précédent",repeat:"Mode de répétition",shuffle:"Lecture aléatoire"},show_volume_level:"Afficher le niveau de volume",use_media_artwork:"Utiliser l'illustration du media",use_media_info:"Utiliser les informations du media",volume_controls:"Contrôles du volume",volume_controls_list:{volume_buttons:"Bouton de volume",volume_mute:"Muet",volume_set:"Niveau de volume"}},number:{display_mode:"Mode d'affichage",display_mode_list:{buttons:"Boutons",default:"Par défaut (Curseur)",slider:"Curseur"}},template:{area:"Pièce",area_helper:"Utilisée dans les modèles et les fonctionnalités",badge:"Badge",badge_color:"Couleur du badge",badge_icon:"Icône du badge",badge_text:"Texte du badge",badge_text_helper:"Si définie, elle remplacera l'icône.",content:"Contenu",entity_extra:"Utilisée pour les modèles et les actions",entity_helper:"Utilisée dans les modèles, les interactions et les fonctionnalités",entity_helper_legacy:"Utilisé dans les modèles et les interactions",label:"Libellé",layout:"Disposition",multiline_secondary:"Autoriser les informations secondaires sur plusieurs lignes",multiline_secondary_helper:"La carte peut être plus haute pour s'adapter au texte et ne s'alignera pas toujours avec le système de grille.",picture:"Image (remplacera l'icône)",primary:"Information principale",secondary:"Information secondaire"},title:{subtitle:"Sous-titre",subtitle_tap_action:"Appui sur le sous-titre",title:"Titre",title_tap_action:"Appui sur le titre"},update:{show_buttons_control:"Contrôle avec boutons ?"},vacuum:{commands:"Commandes",commands_list:{on_off:"Allumer/Éteindre"}},weather:{show_conditions:"Conditions ?",show_conditons:"Conditions ?",show_temperature:"Température ?"}},chip:{"chip-picker":{add:'Ajouter une "chip"',chips:'"Chips"',clear:"Effacer",edit:"Modifier",select:'Sélectionner une "chip"',types:{action:"Action","alarm-control-panel":"Alarme",back:"Retour",conditional:"Conditionnel",entity:"Entité",light:"Lumière",menu:"Menu",quickbar:"Barre d'accès rapide",spacer:"Espacement",template:"Modèle",weather:"Météo"}},conditional:{chip:"Chip"},sub_element_editor:{title:'Éditeur de "chip"'}},form:{alignment_picker:{values:{center:"Centré",default:"Alignement par défaut",end:"Fin",justify:"Justifié",start:"Début"}},color_picker:{values:{default:"Couleur par défaut"}},icon_type_picker:{values:{default:"Type par défaut","entity-picture":"Image de l'entité",icon:"Icône",none:"Aucune"}},info_picker:{values:{default:"Information par défaut","last-changed":"Dernière modification","last-updated":"Dernière mise à jour",name:"Nom",none:"Aucune",state:"État"}},layout_picker:{values:{default:"Disposition par défault",horizontal:"Disposition horizontale",vertical:"Disposition verticale"}}},section:{badge:"Badge",content:"Contenu",context:"Contexte",features:"Fonctionnalités",interactions:"Interactions",layout:"Disposition"}},yd={description:"La configuration de votre carte a été migrée vers la nouvelle version. Vous pouvez trouver plus d’informations sur les changements dans {link}.",ok:"Ok",post:"l'article sur Github",revert:"Revenir en arrière",title:"Carte mise à jour"},bd={card:gd,editor:_d,migration:yd},kd=Object.freeze({__proto__:null,card:gd,default:bd,editor:_d,migration:yd}),wd={not_found:"היישות לא נמצאה"},xd={card:{chips:{alignment:"יישור"},climate:{hvac_modes:"מצבי שואב אבק",show_temperature_control:"בקרת טמפרטורה?"},cover:{show_buttons_control:"הצג כפתורי שליטה?",show_position_control:"הצג פקדי מיקום?",show_tilt_position_control:"שליטה בהטייה?"},empty:{no_config_options:"לכרטיסיה זו אין אפשרויות להגדרה."},fan:{show_direction_control:"שליטה בכיוון?",show_oscillate_control:"שליטה בהתנדנדות?",show_percentage_control:"שליטה באחוז?"},generic:{collapsible_controls:"הסתר שליטה כשאר מכובה",color:"צבע",content_info:"תוכן",fill_container:"מלא גבולות",icon_animation:"הנפש צלמית אם פעיל?",icon_color:"צבע אייקון",icon_type:"סוג צלמית",layout:"סידור",primary_info:"מידע ראשי",secondary_info:"מידע מישני",use_entity_picture:"השתמש בתמונת הישות?"},humidifier:{show_target_humidity_control:"הצג פקדי לחות?"},light:{incompatible_controls:"יתכן וחלק מהכפתורים לא יופיעו אם התאורה אינה תומכת בתכונה.",show_brightness_control:"שליטה בבהירות?",show_color_control:"הצג פקד צבע?",show_color_temp_control:"הצג פקד גוון תאורה?",use_light_color:"השתמש בצבע האור"},lock:{lock:"נעל",open:"פתח",unlock:"בטל נעילה"},"media-player":{media_controls:"שליטה במדיה",media_controls_list:{next:"רצועה הבאה",on_off:"הדלק/כבה",play_pause_stop:"נגן/השהה/הפסק",previous:"רצועה קודמת",repeat:"חזרה",shuffle:"ערבב"},show_volume_level:"הצג שליטת ווליום",use_media_artwork:"השתמש באומנות מדיה",use_media_info:"השתמש במידע מדיה",volume_controls:"שליטה בווליום",volume_controls_list:{volume_buttons:"כפתורי ווליום",volume_mute:"השתק",volume_set:"רמת ווליום"}},number:{display_mode:"הגדרת מצב תצוגה",display_mode_list:{buttons:"לחצנים",default:"ברירת מחדל (סרגל גלילה)",slider:"סרגל גלילה"}},template:{badge_color:"צבע תג",badge_icon:"צלמית תג",content:"תוכן",entity_extra:"משמש בתבניות ופעולות",label:"תווית",multiline_secondary:"מידע משני בשורות?",picture:"תמונה (תחליף את הצלמית)",primary:"מידע ראשי",secondary:"מידע מישני"},title:{subtitle:"כתובית",subtitle_tap_action:"פעולה בלחיצה על כותרת משנה",title:"כותרת",title_tap_action:"פעולה בלחיצה על הכותרת"},update:{show_buttons_control:"הצג כפתורי שליטה?"},vacuum:{commands:"פקודות",commands_list:{on_off:"כיבוי/הדלקה"},icon_animation:"הנפשת אייקון"},weather:{show_conditions:"הצג תנאים?",show_temperature:"הצג טמפרטורה?"}},chip:{"chip-picker":{add:"הוסף שבב",chips:"שבבים",clear:"נקה",edit:"ערוך",select:"בחר שבב",types:{action:"פעולה","alarm-control-panel":"אזעקה",back:"חזור",conditional:"מותנה",entity:"ישות",light:"אור",menu:"תפריט",spacer:"מרווח",template:"תבנית",weather:"מזג אוויר"}},conditional:{chip:"שבב"},sub_element_editor:{title:"עורך שבב"}},form:{alignment_picker:{values:{center:"אמצע",default:"יישור ברירת מחדל",end:"סוף",justify:"מוצדק",start:"התחלה"}},color_picker:{values:{default:"צבע ברירת מחדל"}},icon_type_picker:{values:{default:"סוג ברירת מחדל","entity-picture":"תמונת יישות",icon:"צלמית",none:"ריק"}},info_picker:{values:{default:"מידע ברירת מחדל","last-changed":"שונה לאחרונה","last-updated":"עודכן לאחרונה",name:"שם",none:"ריק",state:"מצב"}},layout_picker:{values:{default:"סידור ברירת מחדל",horizontal:"סידור מאוזן",vertical:"סידור מאונך"}}}},Ed={card:wd,editor:xd},Cd=Object.freeze({__proto__:null,card:wd,default:Ed,editor:xd}),Ad={not_found:"Entitás nem található"},Sd={card:{chips:{alignment:"Rendezés"},climate:{hvac_modes:"HVAC mód",show_temperature_control:"Hőmérséklet vezérlő"},cover:{show_buttons_control:"Vezérlő gombok",show_position_control:"Pozíció vezérlő",show_tilt_position_control:"Dőlésszög szabályzó"},fan:{show_oscillate_control:"Oszcilláció vezérlő",show_percentage_control:"Százalékos vezérlő"},generic:{collapsible_controls:"Vezérlők összezárása kikapcsolt állapotban",content_info:"Tartalom",fill_container:"Tároló kitöltése",icon_animation:"Ikon animálása aktív állapotban",icon_color:"Ikon szín",icon_type:"Ikon típus",layout:"Elrendezés",primary_info:"Elsődleges információ",secondary_info:"Másodlagos információ",use_entity_picture:"Entitás kép használata"},humidifier:{show_target_humidity_control:"Páratartalom vezérlő"},light:{incompatible_controls:"Azok a vezérlők nem lesznek megjelenítve, amelyeket a fényforrás nem támogat.",show_brightness_control:"Fényerő vezérlő",show_color_control:"Szín vezérlő",show_color_temp_control:"Színhőmérséklet vezérlő",use_light_color:"Fény szín használata"},lock:{lock:"Zár",open:"Nyitva",unlock:"Nyit"},"media-player":{media_controls:"Média vezérlők",media_controls_list:{next:"Következő szám",on_off:"Ki/bekapcsolás",play_pause_stop:"Lejátszás/szünet/állj",previous:"Előző szám",repeat:"Ismétlés módja",shuffle:"Véletlen lejátszás"},show_volume_level:"Hangerő mutatása",use_media_artwork:"Média borító használata",use_media_info:"Média infó használata",volume_controls:"Hangerő vezérlők",volume_controls_list:{volume_buttons:"Hangerő gombok",volume_mute:"Némítás",volume_set:"Hangerő szint"}},number:{display_mode:"Megjelenítési mód",display_mode_list:{buttons:"Gombok",default:"Alepértelmezett (csúszka)",slider:"Csúszka"}},template:{badge_color:"Jelvény szín",badge_icon:"Jelvény ikon",content:"Tartalom",entity_extra:"Műveletek és sablonok használatakor",multiline_secondary:"Másodlagost több sorba?",picture:"Kép (lecseréli az ikont)",primary:"Elsődleges információ",secondary:"Másodlagos információ"},title:{subtitle:"Alcím",subtitle_tap_action:"Alcímre koppintáskor",title:"Fejléc",title_tap_action:"Fejlécre koppintáskor"},update:{show_buttons_control:"Vezérlő gombok"},vacuum:{commands:"Utasítások",commands_list:{on_off:"Ki/Bekapcsolás"}},weather:{show_conditions:"Állapotok",show_temperature:"Hőmérséklet"}},chip:{"chip-picker":{add:"Chip hozzáadása",chips:"Chip-ek",clear:"Ürítés",edit:"Szerkesztés",select:"Chip kiválasztása",types:{action:"Művelet","alarm-control-panel":"Riasztó",back:"Vissza",conditional:"Feltételes",entity:"Entitás",light:"Fényforrás",menu:"Menü",spacer:"Térköz",template:"Sablon",weather:"Időjárás"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip szerkesztő"}},form:{alignment_picker:{values:{center:"Közepe",default:"Alapértelmezett rendezés",end:"Vége",justify:"Sorkizárt",start:"Kezdete"}},color_picker:{values:{default:"Alapértelmezett szín"}},icon_type_picker:{values:{default:"Alapértelmezett típus","entity-picture":"Entitás kép",icon:"Ikon",none:"Egyik sem"}},info_picker:{values:{default:"Alepértelmezett információ","last-changed":"Utoljára módosítva","last-updated":"Utoljára frissítve",name:"Név",none:"Egyik sem",state:"Állapot"}},layout_picker:{values:{default:"Alapértelmezet elrendezés",horizontal:"Vízszintes elrendezés",vertical:"Függőleges elrendezés"}}}},Td={card:Ad,editor:Sd},Id=Object.freeze({__proto__:null,card:Ad,default:Td,editor:Sd}),Od={not_found:"Entitas tidak ditemukan"},Md={card:{chips:{alignment:"Perataan"},climate:{hvac_modes:"Mode HVAC",show_temperature_control:"Kontrol suhu?"},cover:{show_buttons_control:"Tombol kontrol?",show_position_control:"Kontrol posisi?",show_tilt_position_control:"Kontrol kemiringan?"},fan:{show_oscillate_control:"Kontrol osilasi?",show_percentage_control:"Kontrol persentase?"},generic:{collapsible_controls:"Sembunyikan kontrol saat mati",color:"Warna",content_info:"Konten",fill_container:"Isi kontainer",icon_animation:"Animasikan ikon saat aktif?",icon_color:"Warna ikon",icon_type:"Tipe ikon",layout:"Tata letak",primary_info:"Informasi primer",secondary_info:"Informasi sekunder",use_entity_picture:"Gunakan gambar entitas?"},humidifier:{show_target_humidity_control:"Kontrol kelembapan?"},light:{incompatible_controls:"Beberapa kontrol mungkin tidak ditampilkan jika lampu Anda tidak mendukung fitur tersebut.",show_brightness_control:"Kontrol kecerahan?",show_color_control:"Kontrol warna?",show_color_temp_control:"Kontrol suhu warna?",use_light_color:"Gunakan warna lampu"},lock:{lock:"Kunci",open:"Buka",unlock:"Buka kunci"},"media-player":{media_controls:"Kontrol media",media_controls_list:{next:"Lagu berikutnya",on_off:"Nyalakan/Matikan",play_pause_stop:"Putar/jeda/stop",previous:"Lagu sebelumnya",repeat:"Mode pengulangan",shuffle:"Acak"},show_volume_level:"Tampilkan level volume",use_media_artwork:"Gunakan gambar seni media",use_media_info:"Gunakan info media",volume_controls:"Kontrol volume",volume_controls_list:{volume_buttons:"Tombol volume",volume_mute:"Bisukan",volume_set:"Level volume"}},number:{display_mode:"Mode Tampilan",display_mode_list:{buttons:"Tombol",default:"Bawaan (geser)",slider:"Geser"}},template:{badge_color:"Warna lencana",badge_icon:"Ikon lencana",content:"Konten",entity_extra:"Digunakan dalam templat dan tindakan",label:"Label",multiline_secondary:"Info sekunder multibaris?",picture:"Gambar (akan menggantikan ikon)",primary:"Informasi primer",secondary:"Informasi sekunder"},title:{subtitle:"Subjudul",subtitle_tap_action:"Tindakan ketuk subjudul",title:"Judul",title_tap_action:"Tindakan ketuk judul"},update:{show_buttons_control:"Tombol kontrol?"},vacuum:{commands:"Perintah",commands_list:{on_off:"Nyalakan/Matikan"}},weather:{show_conditions:"Kondisi?",show_temperature:"Suhu?"}},chip:{"chip-picker":{add:"Tambah cip",chips:"Cip",clear:"Hapus",edit:"Edit",select:"Pilih cip",types:{action:"Tindakan","alarm-control-panel":"Alarm",back:"Kembali",conditional:"Kondisional",entity:"Entitas",light:"Lampu",menu:"Menu",spacer:"Pemisah",template:"Templat",weather:"Cuaca"}},conditional:{chip:"Cip"},sub_element_editor:{title:"Editor cip"}},form:{alignment_picker:{values:{center:"Tengah",default:"Perataan bawaan",end:"Akhir",justify:"Rata kanan-kiri",start:"Awal"}},color_picker:{values:{default:"Warna bawaan"}},icon_type_picker:{values:{default:"Tipe bawaan","entity-picture":"Gambar entitas",icon:"Ikon",none:"Tidak ada"}},info_picker:{values:{default:"Informasi bawaan","last-changed":"Terakhir Diubah","last-updated":"Terakhir Diperbarui",name:"Nama",none:"Tidak ada",state:"Status"}},layout_picker:{values:{default:"Tata letak bawaan",horizontal:"Tata letak horizontal",vertical:"Tata letak vertikal"}}}},zd={card:Od,editor:Md},Pd=Object.freeze({__proto__:null,card:Od,default:zd,editor:Md}),Ld={not_found:"Entità non trovata"},Nd={card:{chips:{alignment:"Allineamento"},climate:{hvac_modes:"Modalità del termostato",show_temperature_control:"Controllo della temperatura?"},cover:{show_buttons_control:"Pulsanti di controllo",show_position_control:"Controllo percentuale apertura",show_tilt_position_control:"Controllo percentuale inclinazione"},fan:{show_oscillate_control:"Controllo oscillazione",show_percentage_control:"Controllo potenza"},generic:{collapsible_controls:"Nascondi i controlli quando spento",color:"Colore",content_info:"Contenuto",fill_container:"Riempi il contenitore",icon_animation:"Anima l'icona quando attiva",icon_color:"Colore dell'icona",icon_type:"Tipo icona",layout:"Disposizione",primary_info:"Informazione primaria",secondary_info:"Informazione secondaria",use_entity_picture:"Usa l'immagine dell'entità"},humidifier:{show_target_humidity_control:"Controllo umidità"},light:{incompatible_controls:"Alcuni controlli potrebbero non essere mostrati se la tua luce non li supporta.",show_brightness_control:"Controllo luminosità",show_color_control:"Controllo colore",show_color_temp_control:"Controllo temperatura",use_light_color:"Usa il colore della luce"},lock:{lock:"Blocca",open:"Aperto",unlock:"Sblocca"},"media-player":{media_controls:"Controlli media",media_controls_list:{next:"Traccia successiva",on_off:"Accendi/Spegni",play_pause_stop:"Play/Pausa/Stop",previous:"Traccia precedente",repeat:"Ciclo continuo",shuffle:"Riproduzione casuale"},show_volume_level:"Mostra volume",use_media_artwork:"Usa la copertina della sorgente",use_media_info:"Mostra le informazioni della sorgente",volume_controls:"Controlli del Volume",volume_controls_list:{volume_buttons:"Bottoni del volume",volume_mute:"Silenzia",volume_set:"Livello del volume"}},number:{display_mode:"Modalità di visualizzazione",display_mode_list:{buttons:"Pulsanti",default:"Predefinito (cursore)",slider:"Cursore"}},template:{badge_color:"Colore del badge",badge_icon:"Icona del badge",content:"Contenuto",entity_extra:"Usato in templates ed azioni",label:"Etichetta",multiline_secondary:"Abilita frasi multilinea",picture:"Immagine (sostituirà l'icona)",primary:"Informazione primaria",secondary:"Informazione secondaria"},title:{subtitle:"Sottotitolo",subtitle_tap_action:"Azione di tap sul sottotitolo",title:"Titolo",title_tap_action:"Azione di tap sul titolo"},update:{show_buttons_control:"Pulsanti di controllo"},vacuum:{commands:"Comandi",commands_list:{on_off:"Accendi/Spegni"}},weather:{show_conditions:"Condizioni",show_temperature:"Temperatura"}},chip:{"chip-picker":{add:"Aggiungi chip",chips:"Chips",clear:"Rimuovi",edit:"Modifica",select:"Seleziona chip",types:{action:"Azione","alarm-control-panel":"Allarme",back:"Pulsante indietro",conditional:"Condizione",entity:"Entità",light:"Luce",menu:"Menù",spacer:"Distanziere",template:"Modello",weather:"Meteo"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Editor di chip"}},form:{alignment_picker:{values:{center:"Centro",default:"Allineamento predefinito",end:"Fine",justify:"Giustificato",start:"Inizio"}},color_picker:{values:{default:"Colore predefinito"}},icon_type_picker:{values:{default:"Tipo predefinito","entity-picture":"Immagine dell'entità",icon:"Icona",none:"Nessuna"}},info_picker:{values:{default:"Informazione predefinita","last-changed":"Ultimo cambiamento","last-updated":"Ultimo aggiornamento",name:"Nome",none:"Nessuno",state:"Stato"}},layout_picker:{values:{default:"Disposizione predefinita",horizontal:"Disposizione orizzontale",vertical:"Disposizione verticale"}}}},jd={card:Ld,editor:Nd},$d=Object.freeze({__proto__:null,card:Ld,default:jd,editor:Nd}),Bd={card:{chips:{alignment:"정렬"},climate:{hvac_modes:"HVAC 모드",show_temperature_control:"온도 조절 표시"},cover:{show_buttons_control:"컨트롤 버튼 표시",show_position_control:"위치 컨트롤 표시",show_tilt_position_control:"기울기 컨트롤 표시"},fan:{show_oscillate_control:"오실레이트 컨트롤",show_percentage_control:"퍼센트 컨트롤"},generic:{collapsible_controls:"꺼져있을 때 컨트롤 접기",content_info:"내용 정보",fill_container:"콘테이너 채우기",icon_animation:"활성화 시 아이콘 애니메이션 사용",icon_color:"아이콘 색",icon_type:"아이콘 타입",layout:"레이아웃",primary_info:"기본 정보",secondary_info:"보조 정보",use_entity_picture:"엔티티 사진 사용"},humidifier:{show_target_humidity_control:"습도 조절 표시"},light:{incompatible_controls:"조명이 기능을 지원하지 않는 경우 일부 컨트롤이 표시되지 않을 수 있습니다.",show_brightness_control:"밝기 컨트롤 표시",show_color_control:"색 컨트롤 표시",show_color_temp_control:"색 온도 컨트롤 표시",use_light_color:"조명 색 사용"},lock:{lock:"잠금",open:"열기",unlock:"잠금 해제"},"media-player":{media_controls:"미디어 컨트롤",media_controls_list:{next:"다음 트랙",on_off:"켜기/끄기",play_pause_stop:"재생/일시 정지/정지",previous:"이전 트랙",repeat:"반복 모드",shuffle:"섞기"},show_volume_level:"볼륨 레벨 표시",use_media_artwork:"미디어 아트워크 사용",use_media_info:"미디어 정보 사용",volume_controls:"볼륨 컨트롤",volume_controls_list:{volume_buttons:"볼륨 버튼",volume_mute:"음소거",volume_set:"볼륨 레벨"}},template:{badge_color:"뱃지 색",badge_icon:"뱃지 아이콘",content:"내용",entity_extra:"템플릿 및 작업에 사용",multiline_secondary:"Multiline secondary?",picture:"그림 (아이콘 대체)",primary:"기본 정보",secondary:"보조 정보"},title:{subtitle:"부제목",subtitle_tap_action:"부제목 탭 액션",title:"제목",title_tap_action:"제목 탭 액션"},update:{show_buttons_control:"컨트롤 버튼 표시"},vacuum:{commands:"명령어",commands_list:{on_off:"켜기/끄기"}},weather:{show_conditions:"조건 표시",show_temperature:"온도 표시"}},chip:{"chip-picker":{add:"칩 추가",chips:"칩",clear:"클리어",edit:"수정",select:"칩 선택",types:{action:"액션","alarm-control-panel":"알람",back:"이전",conditional:"Conditional",entity:"엔티티",light:"조명",menu:"메뉴",template:"템플릿",weather:"날씨"}},conditional:{chip:"칩"},sub_element_editor:{title:"칩 에디터"}},form:{alignment_picker:{values:{center:"중앙",default:"기본 정렬",end:"끝",justify:"행 정렬",start:"시작"}},color_picker:{values:{default:"기본 색"}},icon_type_picker:{values:{default:"기본 타입","entity-picture":"엔티티 사진",icon:"아이콘",none:"없음"}},info_picker:{values:{default:"기본 정보","last-changed":"마지막 변경","last-updated":"마지막 업데이트",name:"이름",none:"없음",state:"상태"}},layout_picker:{values:{default:"기본 레이아웃",horizontal:"수평 레이아웃",vertical:"수직 레이아웃"}}}},Rd={editor:Bd},Hd=Object.freeze({__proto__:null,default:Rd,editor:Bd}),Dd={not_found:"Enhet ikke funnet"},Ud={card:{chips:{alignment:"Justering"},climate:{hvac_modes:"HVAC-moduser",show_temperature_control:"Temperaturkontroll?"},cover:{show_buttons_control:"Kontrollere med knapper?",show_position_control:"Posisjonskontroll?",show_tilt_position_control:"Vippe kontroll?"},fan:{show_oscillate_control:"Oscillerende kontroll?",show_percentage_control:"Prosentvis kontroll?"},generic:{collapsible_controls:"Skjul kontroller når av",color:"Farge",content_info:"Innhold",fill_container:"Fyll beholder",icon_animation:"Animer ikon når aktivt?",icon_color:"Ikon farge",icon_type:"Ikontype",layout:"Oppsett",primary_info:"Primærinformasjon",secondary_info:"Sekundærinformasjon",use_entity_picture:"Bruk enhetsbilde?"},humidifier:{show_target_humidity_control:"Fuktighetskontroll?"},light:{incompatible_controls:"Noen kontroller vises kanskje ikke hvis lyset ditt ikke støtter denne funksjonen.",show_brightness_control:"Lysstyrkekontroll?",show_color_control:"Fargekontroll?",show_color_temp_control:"Temperatur fargekontroll?",use_light_color:"Bruk lys farge"},lock:{lock:"Lås",open:"Åpne",unlock:"Lås opp"},"media-player":{media_controls:"Media kontroller",media_controls_list:{next:"Neste spor",on_off:"Slå på/av",play_pause_stop:"Spill/pause/stopp",previous:"Forrige spor",repeat:"Gjenta",shuffle:"Bland"},show_volume_level:"Vis volumnivå",use_media_artwork:"Bruk mediabilde",use_media_info:"Bruk mediainformasjon",volume_controls:"Volumkontroller",volume_controls_list:{volume_buttons:"Volumknapper",volume_mute:"Demp",volume_set:"Volumnivå"}},number:{display_mode:"Visningsmodus",display_mode_list:{buttons:"Knapper",default:"Standard (skyveknapp)",slider:"Skyveknapp"}},template:{badge_color:"Badge farge",badge_icon:"Badge ikon",content:"Innhold",entity_extra:"Brukes i maler og handlinger",label:"Etikett",multiline_secondary:"Multilinje sekundær?",picture:"Bilde (erstatter ikonet)",primary:"Primærinformasjon",secondary:"Sekundærinformasjon"},title:{subtitle:"Undertekst",subtitle_tap_action:"Undertekst tap action",title:"Tittel",title_tap_action:"Tittel tap action"},update:{show_buttons_control:"Kontroller knapper?"},vacuum:{commands:"Kommandoer",commands_list:{on_off:"Slå på/av"}},weather:{show_conditions:"Forhold?",show_temperature:"Temperatur?"}},chip:{"chip-picker":{add:"Legg til chip",chips:"Chips",clear:"Klare",edit:"Endre",select:"Velg chip",types:{action:"Handling","alarm-control-panel":"Alarm",back:"Tilbake",conditional:"Betinget",entity:"Entitet",light:"Lys",menu:"Meny",spacer:"Mellomrom",template:"Mal",weather:"Vær"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip redaktør"}},form:{alignment_picker:{values:{center:"Senter",default:"Standard justering",end:"Slutt",justify:"Blokkjuster",start:"Start"}},color_picker:{values:{default:"Standard farge"}},icon_type_picker:{values:{default:"Standard type","entity-picture":"Enhetsbilde",icon:"Ikon",none:"Ingen"}},info_picker:{values:{default:"Standard informasjon","last-changed":"Sist endret","last-updated":"Sist oppdatert",name:"Navn",none:"Ingen",state:"Tilstand"}},layout_picker:{values:{default:"Standardoppsett",horizontal:"Horisontalt oppsett",vertical:"Vertikalt oppsett"}}}},Vd={card:Dd,editor:Ud},Fd=Object.freeze({__proto__:null,card:Dd,default:Vd,editor:Ud}),Gd={not_found:"Entiteit niet gevonden"},Yd={card:{chips:{alignment:"Uitlijning"},climate:{hvac_modes:"HVAC-Modi",show_temperature_control:"Temperatuur bediening?"},cover:{show_buttons_control:"Bedieningsknoppen?",show_position_control:"Positie bediening?",show_tilt_position_control:"Kantel bediening?"},empty:{no_config_options:"Deze kaart heeft geen configuratie opties."},fan:{show_direction_control:"Richting bediening?",show_oscillate_control:"Oscillatie bediening?",show_percentage_control:"Bediening middels percentage?"},generic:{collapsible_controls:"Bedieningselementen verbergen wanneer uitgeschakeld",color:"Kleur",content_info:"Inhoud",fill_container:"Vul container",icon_animation:"Icoon animeren indien actief?",icon_color:"Icoon kleur",icon_type:"Icoon type",layout:"Lay-out",primary_info:"Primaire informatie",secondary_info:"Secundaire informatie",use_entity_picture:"Gebruik afbeelding van entiteit?"},humidifier:{show_target_humidity_control:"Vochtigheid bediening?"},light:{incompatible_controls:"Sommige bedieningselementen worden mogelijk niet weergegeven als uw lamp deze functie niet ondersteunt.",show_brightness_control:"Helderheidsbediening?",show_color_control:"Kleur bediening?",show_color_temp_control:"Kleurtemperatuur bediening?",use_light_color:"Gebruik licht kleur"},lock:{lock:"Vergrendel",open:"Open",unlock:"Ontgrendel"},"media-player":{media_controls:"Mediabediening",media_controls_list:{next:"Volgende nummer",on_off:"Zet aan/uit",play_pause_stop:"Speel/pauze/stop",previous:"Vorige nummer",repeat:"Herhalen",shuffle:"Willekeurig afspelen"},show_volume_level:"Toon volumeniveau",use_media_artwork:"Gebruik media omslag",use_media_info:"Gebruik media informatie",volume_controls:"Volumebediening",volume_controls_list:{volume_buttons:"Volume knoppen",volume_mute:"Dempen",volume_set:"Volumeniveau"}},number:{display_mode:"Weergave Modus",display_mode_list:{buttons:"Knoppen",default:"Standaard (schuifbalk)",slider:"Schuifbalk"}},template:{badge_color:"Badge kleur",badge_icon:"Badge icoon",content:"Inhoud",entity_extra:"Gebruikt in sjablonen en acties",label:"Label",multiline_secondary:"Secundaire informatie op meerdere regels tonen?",picture:"Afbeelding (zal het icoon vervangen)",primary:"Primaire informatie",secondary:"Secundaire informatie"},title:{subtitle:"Ondertitel",subtitle_tap_action:"Ondertitel tik actie",title:"Titel",title_tap_action:"Titel tik actie"},update:{show_buttons_control:"Bedieningsknoppen?"},vacuum:{commands:"Commando's",commands_list:{on_off:"Zet aan/uit"}},weather:{show_conditions:"Weersomstandigheden?",show_temperature:"Temperatuur?"}},chip:{"chip-picker":{add:"Toevoegen chip",chips:"Chips",clear:"Maak leeg",edit:"Bewerk",select:"Selecteer chip",types:{action:"Actie","alarm-control-panel":"Alarm",back:"Terug",conditional:"Voorwaardelijk",entity:"Entiteit",light:"Licht",menu:"Menu",spacer:"Afstandhouder",template:"Sjabloon",weather:"Weer"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip-editor"}},form:{alignment_picker:{values:{center:"Midden",default:"Standaard uitlijning",end:"Einde",justify:"Uitlijnen",start:"Begin"}},color_picker:{values:{default:"Standaard kleur"}},icon_type_picker:{values:{default:"Standaard icoon type","entity-picture":"Entiteit afbeelding",icon:"Icoon",none:"Geen"}},info_picker:{values:{default:"Standaard informatie","last-changed":"Laatst gewijzigd","last-updated":"Laatst bijgewerkt",name:"Naam",none:"Geen",state:"Staat"}},layout_picker:{values:{default:"Standaard lay-out",horizontal:"Horizontale lay-out",vertical:"Verticale lay-out"}}}},Kd={card:Gd,editor:Yd},Wd=Object.freeze({__proto__:null,card:Gd,default:Kd,editor:Yd}),qd={not_found:"Nie znaleziono encji"},Xd={card:{chips:{alignment:"Wyrównanie"},climate:{hvac_modes:"Tryby urządzenia",show_temperature_control:"Sterowanie temperaturą?"},cover:{show_buttons_control:"Przyciski sterujące?",show_position_control:"Sterowanie położeniem?",show_tilt_position_control:"Sterowanie poziomem otwarcia?"},fan:{show_direction_control:"Kontrola kierunku?",show_oscillate_control:"Sterowanie oscylacją?",show_percentage_control:"Sterowanie procentowe?"},generic:{collapsible_controls:"Zwiń sterowanie, jeśli wyłączone",color:"Kolor",content_info:"Zawartość",fill_container:"Wypełnij zawartością",icon_animation:"Animować, gdy aktywny?",icon_color:"Kolor ikony",icon_type:"Typ ikony",layout:"Układ",primary_info:"Informacje główne",secondary_info:"Informacje drugorzędne",use_entity_picture:"Użyć obrazu encji?"},humidifier:{show_target_humidity_control:"Sterowanie wilgotnością?"},light:{incompatible_controls:"Niektóre funkcje są niewidoczne, jeśli światło ich nie obsługuje.",show_brightness_control:"Sterowanie jasnością?",show_color_control:"Sterowanie kolorami?",show_color_temp_control:"Sterowanie temperaturą światła?",use_light_color:"Użyj koloru światła"},lock:{lock:"Zablokuj",open:"Otwórz",unlock:"Odblokuj"},"media-player":{media_controls:"Sterowanie multimediami",media_controls_list:{next:"Następne nagranie",on_off:"Włącz/wyłącz",play_pause_stop:"Odtwórz/Pauza/Zatrzymaj",previous:"Poprzednie nagranie",repeat:"Powtarzanie",shuffle:"Losowo"},show_volume_level:"Wyświetl poziom głośności",use_media_artwork:"Użyj okładek multimediów",use_media_info:"Użyj informacji o multimediach",volume_controls:"Sterowanie głośnością",volume_controls_list:{volume_buttons:"Przyciski głośności",volume_mute:"Wycisz",volume_set:"Poziom głośności"}},number:{display_mode:"Sposób wyświetlania",display_mode_list:{buttons:"Przyciski",default:"Domyślnie (suwak)",slider:"Suwak"}},template:{badge_color:"Kolor odznaki",badge_icon:"Ikona odznaki",content:"Zawartość",entity_extra:"Używane w szablonach i akcjach",label:"Etykieta",multiline_secondary:"Drugorzędne wielowierszowe?",picture:"Obraz (zamiast ikony)",primary:"Informacje główne",secondary:"Informacje drugorzędne"},title:{subtitle:"Podtytuł",subtitle_tap_action:"Akcja na podtytule",title:"Tytuł",title_tap_action:"Akcja na tytule"},update:{show_buttons_control:"Przyciski sterujące?"},vacuum:{commands:"Polecenia",commands_list:{on_off:"Włącz/Wyłącz"}},weather:{show_conditions:"Warunki?",show_temperature:"Temperatura?"}},chip:{"chip-picker":{add:"Dodaj czip",chips:"Czipy",clear:"Wyczyść",edit:"Edytuj",select:"Wybierz czip",types:{action:"Akcja","alarm-control-panel":"Alarm",back:"Wstecz",conditional:"Warunkowy",entity:"Encja",light:"Światło",menu:"Menu",spacer:"Odstęp",template:"Szablon",weather:"Pogoda"}},conditional:{chip:"Czip"},sub_element_editor:{title:"Edytor czipów"}},form:{alignment_picker:{values:{center:"Wyśrodkowanie",default:"Wyrównanie domyślne",end:"Wyrównanie do prawej",justify:"Justowanie",start:"Wyrównanie do lewej"}},color_picker:{values:{default:"Domyślny kolor"}},icon_type_picker:{values:{default:"Domyślny typ","entity-picture":"Obraz encji",icon:"Ikona",none:"Brak"}},info_picker:{values:{default:"Domyślne informacje","last-changed":"Ostatnia zmiana","last-updated":"Ostatnia aktualizacja",name:"Nazwa",none:"Brak",state:"Stan"}},layout_picker:{values:{default:"Układ domyślny",horizontal:"Układ poziomy",vertical:"Układ pionowy"}}}},Zd={card:qd,editor:Xd},Jd=Object.freeze({__proto__:null,card:qd,default:Zd,editor:Xd}),Qd={not_found:"Entidade não encontrada"},eh={card:{chips:{alignment:"Alinhamento"},climate:{hvac_modes:"Modos do HVAC",show_temperature_control:"Controle de temperatura?"},cover:{show_buttons_control:"Botões de controle?",show_position_control:"Controle de posição?",show_tilt_position_control:"Controle de inclinação?"},empty:{no_config_options:"Esse card não possui opções de configuração."},fan:{show_direction_control:"Controle de direção?",show_oscillate_control:"Controle de oscilação?",show_percentage_control:"Controle de porcentagem?"},generic:{collapsible_controls:"Recolher controles quando desligado",color:"Cor",content_info:"Conteúdo",fill_container:"Preencher espaço",icon_animation:"Animar ícone quando ativo?",icon_color:"Cor do ícone",icon_type:"Tipo do ícone",layout:"Layout",primary_info:"Informação primária",secondary_info:"Informação secundária",use_entity_picture:"Usar imagem da entidade?"},humidifier:{show_target_humidity_control:"Controle de umidade?"},light:{incompatible_controls:"Alguns controles podem não ser exibidos se sua luz não suportar o recurso.",show_brightness_control:"Controle de brilho?",show_color_control:"Controle de cor?",show_color_temp_control:"Controle de temperatura de cor?",use_light_color:"Usar cor da luz"},lock:{lock:"Bloquear",open:"Abrir",unlock:"Desbloquear"},"media-player":{media_controls:"Controles de mídia",media_controls_list:{next:"Próxima faixa",on_off:"Ligar/Desligar",play_pause_stop:"Reproduzir/pausar/parar",previous:"Faixa anterior",repeat:"Modo repetição",shuffle:"Embaralhar"},show_volume_level:"Mostrar nível de volume",use_media_artwork:"Usar arte da mídia",use_media_info:"Usar informação da mídia",volume_controls:"Controles de volume",volume_controls_list:{volume_buttons:"Botões de volume",volume_mute:"Mudo",volume_set:"Nível de volume"}},number:{display_mode:"Modo de exibição",display_mode_list:{buttons:"Botões",default:"Padrão (deslizante)",slider:"Deslizante"}},template:{badge_color:"Cor do badge",badge_icon:"Ícone do badge",content:"Conteúdo",entity_extra:"Usado em modelos e ações",label:"Label",multiline_secondary:"Multilinha secundária?",picture:"Imagem (irá substituir o ícone)",primary:"Informação primária",secondary:"Informação secundária"},title:{subtitle:"Legenda",subtitle_tap_action:"Ação de toque na legenda",title:"Título",title_tap_action:"Ação de toque no título"},update:{show_buttons_control:"Botões de controle?"},vacuum:{commands:"Comandos",commands_list:{on_off:"Ligar/Desligar"}},weather:{show_conditions:"Condições?",show_temperature:"Temperatura?"}},chip:{"chip-picker":{add:"Adicionar chip",chips:"Chips",clear:"Limpar",edit:"Editar",select:"Selecionar chip",types:{action:"Ação","alarm-control-panel":"Alarme",back:"Voltar",conditional:"Condicional",entity:"Entidade",light:"Luz",menu:"Menu",quickbar:"Barra rápida",spacer:"Espaçador",template:"Template",weather:"Clima"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Editor de chip"}},form:{alignment_picker:{values:{center:"Centro",default:"Alinhamento padrão",end:"Fim",justify:"Justificado",start:"Início"}},color_picker:{values:{default:"Cor padrão"}},icon_type_picker:{values:{default:"Tipo padrão","entity-picture":"Imagem da entidade",icon:"Ícone",none:"Nenhum"}},info_picker:{values:{default:"Informação padrão","last-changed":"Última alteração","last-updated":"Última atualização",name:"Nome",none:"Nenhum",state:"Estado"}},layout_picker:{values:{default:"Layout padrão",horizontal:"Layout horizontal",vertical:"Layout vertical"}}}},th={card:Qd,editor:eh},nh=Object.freeze({__proto__:null,card:Qd,default:th,editor:eh}),ih={not_found:"Entidade não encontrada"},oh={card:{chips:{alignment:"Alinhamento"},climate:{hvac_modes:"Modos HVAC",show_temperature_control:"Controlo de temperatura?"},cover:{show_buttons_control:"Botões de controlo?",show_position_control:"Controlo de posição?",show_tilt_position_control:"Controlo de inclinação?"},fan:{show_oscillate_control:"Controlo de oscilação?",show_percentage_control:"Controlo de percentagem?"},generic:{collapsible_controls:"Colapsar controlos quando desligado",color:"Cor",content_info:"Conteúdo",fill_container:"Preencher contentor",icon_animation:"Animar ícone quando ativo?",icon_color:"Cor do ícone",icon_type:"Tipo de ícone",layout:"Layout",primary_info:"Informação principal",secondary_info:"Informação secundária",use_entity_picture:"Usar imagem da entidade?"},humidifier:{show_target_humidity_control:"Controlo de humidade?"},light:{incompatible_controls:"Alguns controlos podem não ser exibidos se a luz não suportar a funcionalidade.",show_brightness_control:"Controlo de brilho?",show_color_control:"Controlo de cor?",show_color_temp_control:"Controlo de temperatura da cor?",use_light_color:"Usar cor da luz"},lock:{lock:"Trancar",open:"Aberto",unlock:"Destrancar"},"media-player":{media_controls:"Controlos de media",media_controls_list:{next:"Próxima faixa",on_off:"Ligar/Desligar",play_pause_stop:"Tocar/pausa/stop",previous:"Faixa anterior",repeat:"Modo repetir",shuffle:"Baralhar"},show_volume_level:"Mostrar nível do volume",use_media_artwork:"Usar arte do media",use_media_info:"Usar informação do media",volume_controls:"Controlos de volume",volume_controls_list:{volume_buttons:"Botões de volume",volume_mute:"Calar",volume_set:"Nível do volume"}},number:{display_mode:"Modo de exibição",display_mode_list:{buttons:"Botões",default:"Por defeito (slider)",slider:"Deslizador"}},template:{badge_color:"Cor do crachá",badge_icon:"Icóne do crachá",content:"Conteúdo",entity_extra:"Usado em modelos e ações",label:"Rótulo",multiline_secondary:"Secundária multilinha?",picture:"Imagem (irá substituir o ícone)",primary:"Informação principal",secondary:"Informação secundária"},title:{subtitle:"Subtítulo",subtitle_tap_action:"Ação ao tocar no subtítulo",title:"Título",title_tap_action:"Ação ao tocar no título"},update:{show_buttons_control:"Botões de controlo?"},vacuum:{commands:"Comandos",commands_list:{on_off:"Ligar/Desligar"}},weather:{show_conditions:"Condições?",show_temperature:"Temperatura?"}},chip:{"chip-picker":{add:"Adicionar ficha",chips:"Fichas",clear:"Limpar",edit:"Editar",select:"Selecionar ficha",types:{action:"Ação","alarm-control-panel":"Alarme",back:"Voltar",conditional:"Condicional",entity:"Entidade",light:"Iluminação",menu:"Menu",spacer:"Espaçador",template:"Modelo",weather:"Clima"}},conditional:{chip:"Ficha"},sub_element_editor:{title:"Editor de fichas"}},form:{alignment_picker:{values:{center:"Centrado",default:"Alinhamento predefinido",end:"Fim",justify:"Justificado",start:"Início"}},color_picker:{values:{default:"Cor padrão"}},icon_type_picker:{values:{default:"Tipo predefinido","entity-picture":"Entidade de imagem",icon:"Ícone",none:"Nenhum"}},info_picker:{values:{default:"Informações padrão","last-changed":"Última alteração","last-updated":"Última atualização",name:"Nome",none:"Nenhum",state:"Estado"}},layout_picker:{values:{default:"Layout padrão",horizontal:"Layout horizontal",vertical:"Layout vertical"}}}},rh={card:ih,editor:oh},ah=Object.freeze({__proto__:null,card:ih,default:rh,editor:oh}),lh={card:{chips:{alignment:"Aliniere"},climate:{hvac_modes:"Moduri HVAC",show_temperature_control:"Comenzi temperatură?"},cover:{show_buttons_control:"Comenzi pentru control?",show_position_control:"Comandă pentru poziție?",show_tilt_position_control:"Comandă pentru înclinare?"},fan:{icon_animation:"Animare pictograma la activare?",show_oscillate_control:"Comandă oscilație?",show_percentage_control:"Comandă procent?"},generic:{collapsible_controls:"Restrângere la dezactivare",content_info:"Conținut",fill_container:"Umplere container",icon_color:"Culoare pictogramă",icon_type:"Tip pictogramă",layout:"Aranjare",primary_info:"Informație principală",secondary_info:"Informație secundară",use_entity_picture:"Imagine?"},humidifier:{show_target_humidity_control:"Comenzi umiditate?"},light:{incompatible_controls:"Unele comenzi ar putea să nu fie afișate dacă lumina nu suportă această caracteristică.",show_brightness_control:"Comandă pentru strălucire?",show_color_control:"Comandă pentru culoare?",show_color_temp_control:"Comandă pentru temperatură de culoare?",use_light_color:"Folosește culoarea luminii"},lock:{lock:"Încuie",open:"Deschide",unlock:"Descuie"},"media-player":{media_controls:"Comenzi media",media_controls_list:{next:"Pista următoare",on_off:"Pornit/Oprit",play_pause_stop:"Redare/Pauză/Stop",previous:"Pista anterioară",repeat:"Mod repetare",shuffle:"Amestecare"},show_volume_level:"Nivel volum",use_media_artwork:"Grafică media",use_media_info:"Informații media",volume_controls:"Comenzi volum",volume_controls_list:{volume_buttons:"Comenzi volum",volume_mute:"Dezactivare sunet",volume_set:"Nivel volum"}},template:{badge_color:"Culoare insignă",badge_icon:"Pictogramă insignă",content:"Conținut",entity_extra:"Folosită în șabloane și acțiuni",multiline_secondary:"Informație secundară pe mai multe linii?",picture:"Imagine (inlocuiește pictograma)",primary:"Informație principală",secondary:"Informație secundară"},title:{subtitle:"Subtitlu",title:"Titlu"},update:{show_buttons_control:"Comenzi control?"},vacuum:{commands:"Comenzi"},weather:{show_conditions:"Condiții?",show_temperature:"Temperatură?"}},chip:{"chip-picker":{add:"Adaugă jeton",chips:"Jetoane",clear:"Șterge",edit:"Modifică",select:"Alege jeton",types:{action:"Acțiune","alarm-control-panel":"Alarmă",back:"Înapoi",conditional:"Condițional",entity:"Entitate",light:"Lumină",menu:"Meniu",template:"Șablon",weather:"Vreme"}},conditional:{chip:"Jeton"},sub_element_editor:{title:"Editor jeton"}},form:{alignment_picker:{values:{center:"Centrat",default:"Aliniere implicită",end:"Dreapta",justify:"Umplere",start:"Stânga"}},color_picker:{values:{default:"Culoare implicită"}},icon_type_picker:{values:{default:"Tip implicit","entity-picture":"Imagine",icon:"Pictogramă",none:"Niciuna"}},info_picker:{values:{default:"Informație implicită","last-changed":"Ultima modificare","last-updated":"Ultima actulizare",name:"Nume",none:"Niciuna",state:"Stare"}},layout_picker:{values:{default:"Aranjare implicită",horizontal:"Orizontală",vertical:"Verticală"}}}},sh={editor:lh},ch=Object.freeze({__proto__:null,default:sh,editor:lh}),uh={not_found:"Сущность не найдена"},dh={card:{chips:{alignment:"Выравнивание"},climate:{hvac_modes:"Режимы работы",show_temperature_control:"Управлять целевой температурой?"},cover:{show_buttons_control:"Добавить кнопки управления?",show_position_control:"Управлять позицией?",show_tilt_position_control:"Управлять наклоном?"},empty:{no_config_options:"Эта карточка не имеет опций конфигурации."},fan:{icon_animation:"Анимировать иконку когда включено?",show_direction_control:"Направление?",show_oscillate_control:"Oscillate control?",show_percentage_control:"Управлять процентами?"},generic:{collapsible_controls:"Сворачивать элементы управления при выключении",color:"Цвет",content_info:"Содержимое",fill_container:"Заполнение",icon_animation:"Анимировать иконку, когда активна?",icon_color:"Цвет иконки",icon_type:"Тип иконки",layout:"Расположение",primary_info:"Основная информация",secondary_info:"Второстепенная информация",use_entity_picture:"Использовать изображение объекта?"},humidifier:{show_target_humidity_control:"Управлять целевым уровенем влажности?"},light:{incompatible_controls:"Некоторые элементы управления могут не отображаться, если ваш светильник не поддерживает эти функции.",show_brightness_control:"Управлять яркостью?",show_color_control:"Управлять цветом?",show_color_temp_control:"Управлять цветовой температурой?",use_light_color:"Использовать текущий цвет света"},lock:{lock:"Закрыто",open:"Открыто",unlock:"Разблокировано"},"media-player":{media_controls:"Управление медиа-устройством",media_controls_list:{next:"Следующий трек",on_off:"Включение/выключение",play_pause_stop:"Воспроизведение/пауза/остановка",previous:"Предыдущий трек",repeat:"Режим повтора",shuffle:"Перемешивание"},show_volume_level:"Показать уровень громкости",use_media_artwork:"Использовать обложку с медиа-устройства",use_media_info:"Использовать информацию с медиа-устройства",volume_controls:"Регулятор громкости",volume_controls_list:{volume_buttons:"Кнопки громкости",volume_mute:"Без звука",volume_set:"Уровень громкости"}},number:{display_mode:"Режим отображения",display_mode_list:{buttons:"Кнопки",default:"Стандартно (слайдер)",slider:"Слайдер"}},template:{badge_color:"Цвет значка",badge_icon:"Иконка значка",content:"Содержимое",entity_extra:"Используется в шаблонах и действиях",label:"Ярлык",multiline_secondary:"Многострочная Второстепенная информация?",picture:"Изображение (заменить иконку)",primary:"Основная информация",secondary:"Второстепенная информация"},title:{subtitle:"Подзаголовок",subtitle_tap_action:"Действие при нажатии на подзаголовок",title:"Заголовок",title_tap_action:"Действие при нажатии на заголовок"},update:{show_buttons_control:"Кнопки управления?"},vacuum:{commands:"Команды",commands_list:{on_off:"Включить/выключить"}},weather:{show_conditions:"Условия?",show_temperature:"Температура?"}},chip:{"chip-picker":{add:"Добавить мини-карточку",chips:"Мини-карточки",clear:"Очистить",edit:"Изменить",select:"Выбрать мини-карточку",types:{action:"Действие","alarm-control-panel":"Тревога",back:"Назад",conditional:"Условия",entity:"Объект",light:"Освещение",menu:"Меню",quickbar:"Панель быстрого доступа",spacer:"Пробел",template:"Шаблон",weather:"Погода"}},conditional:{chip:"Мини-карточка"},sub_element_editor:{title:"Редактор мини-карточек"}},form:{alignment_picker:{values:{center:"По центру",default:"Выравнивание по умолчанию",end:"К концу",justify:"На всю ширину",start:"К началу"}},color_picker:{values:{default:"Цвет по умолчанию"}},icon_type_picker:{values:{default:"По умолчанию","entity-picture":"Изображение",icon:"Иконка",none:"Нет"}},info_picker:{values:{default:"По умолчанию","last-changed":"Последнее изменение","last-updated":"Последнее обновление",name:"Имя",none:"Нет",state:"Статус"}},layout_picker:{values:{default:"Расположение по умолчанию",horizontal:"Горизонтальное расположение",vertical:"Вертикальное расположение"}}}},hh={card:uh,editor:dh},ph=Object.freeze({__proto__:null,card:uh,default:hh,editor:dh}),fh={not_found:"Entita nenájdená"},mh={badge:{template:{area_helper:"Používa sa v šablónach",content:"Obsah",entity_helper:"Používa sa v šablónach a interakciách",label:"Nápis"}},card:{chips:{alignment:"Zarovnanie"},climate:{hvac_modes:"HVAC mód",show_temperature_control:"Ovládanie teploty?"},cover:{show_buttons_control:"Zobraziť ovládacie tlačidlá?",show_position_control:"Ovládanie pozície?",show_tilt_position_control:"Ovládanie natočenia?"},empty:{no_config_options:"Táto karta nemá žiadne možnosti konfigurácie."},fan:{show_direction_control:"Ovládanie smeru?",show_oscillate_control:"Ovládanie oscilácie?",show_percentage_control:"Ovládanie rýchlosti v percentách?"},generic:{area:"Oblasť",collapsible_controls:"Skryť ovládanie v stave VYP",color:"Farba",content_info:"Obsah",entity:"Entita",fill_container:"Vyplniť priestor",icon_animation:"Animovaná ikona v stave ZAP?",icon_color:"Farba ikony",icon_type:"Typ ikony",layout:"Rozloženie",picture:"Obrázok",picture_helper:"Ak je nastavené, nahradí ikonu.",primary_info:"Základné info",secondary_info:"Doplnkové info",use_entity_picture:"Použiť obrázok entity?"},humidifier:{show_target_humidity_control:"Ovládanie vlhkosti?"},light:{incompatible_controls:"Niektoré ovládacie prvky sa nemusia zobraziť, pokiaľ ich svetlo nepodporuje.",show_brightness_control:"Ovládanie jasu?",show_color_control:"Ovládanie farby?",show_color_temp_control:"Ovládanie teploty farby?",use_light_color:"Použiť farbu svetla"},lock:{lock:"Zamknuté",open:"Otvorené",unlock:"Odomknuté"},"media-player":{media_controls:"Ovládanie média",media_controls_list:{next:"Ďalšia",on_off:"Zap / Vyp",play_pause_stop:"Spustiť/pauza/stop",previous:"Predchádzajúca",repeat:"Opakovať",shuffle:"Premiešať"},show_volume_level:"Zobraziť úroveň hlasitosti",use_media_artwork:"Použiť obrázok z média",use_media_info:"Použiť info o médiu",volume_controls:"Ovládanie hlasitosti",volume_controls_list:{volume_buttons:"Tlačidlá hlasitosti",volume_mute:"Stlmiť",volume_set:"Úroveň hlasitosti"}},number:{display_mode:"Režim zobrazenia",display_mode_list:{buttons:"Tlačidlá",default:"Predvolené (posúvač)",slider:"Posúvač"}},template:{area:"Oblasť",area_helper:"Používa sa v šablónach a funkciách",badge:"Odznak",badge_color:"Farba odznaku",badge_icon:"Ikona odznaku",badge_text:"Text odznaku",badge_text_helper:"Ak je nastavené, nahradí ikonu.",content:"Obsah",entity_extra:"Použitá v šablónach a akciách",entity_helper:"Používa sa v šablónach, interakciách a funkciách",entity_helper_legacy:"Používa sa v šablónach a interakciách",label:"Štítok",layout:"Rozloženie",multiline_secondary:"Povoliť viacriadkové doplnkové informácie",multiline_secondary_helper:"Karta môže byť vyššia, aby sa do nej vošiel text, a nemusí byť vždy zarovnaná s mriežkovým systémom.",picture:"Obrázok (nahrádza ikonu)",primary:"Základné info",secondary:"Doplnkové info"},title:{subtitle:"Podnadpis",subtitle_tap_action:"Akcia klepnutia na titulky",title:"Nadpis",title_tap_action:"Akcia klepnutia na názov"},update:{show_buttons_control:"Zobraziť ovládacie tlačidlá?"},vacuum:{commands:"Príkazy",commands_list:{on_off:"Zapnúť/Vypnúť"}},weather:{show_conditions:"Zobraziť podmienky?",show_temperature:"Zobraziť teplotu?"}},chip:{"chip-picker":{add:"Pridať štítok",chips:"Štítky",clear:"Vymazať",edit:"Editovať",select:"Vybrať štítok",types:{action:"Akcia","alarm-control-panel":"Alarm",back:"Späť",conditional:"Podmienené",entity:"Entita",light:"Svetlo",menu:"Menu",quickbar:"Rýchla lišta",spacer:"Medzera",template:"Šablóna",weather:"Počasie"}},conditional:{chip:"Čip"},sub_element_editor:{title:"Editor štítkov"}},form:{alignment_picker:{values:{center:"Stred",default:"Predvolené zarovnanie",end:"Koniec",justify:"Vyplniť",start:"Začiatok"}},color_picker:{values:{default:"Predvolená farba"}},icon_type_picker:{values:{default:"Predvolený typ","entity-picture":"Obrázok entity",icon:"Ikona",none:"Žiadny"}},info_picker:{values:{default:"Predvolené informácie","last-changed":"Posledná zmena","last-updated":"Posledná aktualizácia",name:"Názov",none:"Žiadna",state:"Stav"}},layout_picker:{values:{default:"Predvolené rozloženie",horizontal:"Vodorovné rozloženie",vertical:"Zvislé rozloženie"}}},section:{badge:"Odznak",content:"Obsah",context:"Kontext",features:"Funkcie",interactions:"Interakcie",layout:"Rozloženie"}},vh={description:"Nastavenie vašej karty bolo prenesené do novej verzie. Viac informácií o zmenách nájdete na {link}.",ok:"Ok",post:"príspevku na GitHub",revert:"Vrátiť späť",title:"Karta aktualizovaná"},gh={card:fh,editor:mh,migration:vh},_h=Object.freeze({__proto__:null,card:fh,default:gh,editor:mh,migration:vh}),yh={not_found:"Entiteta ni najdena"},bh={card:{chips:{alignment:"Poravnava"},climate:{hvac_modes:"HVAC načini",show_temperature_control:"Nadzor temperature?"},cover:{show_buttons_control:"Gumbi za upravljanje?",show_position_control:"Nadzor položaja?",show_tilt_position_control:"Nadzor nagiba?"},fan:{show_oscillate_control:"Kontrola nihanja?",show_percentage_control:"Kontrola v odstotkih?"},generic:{collapsible_controls:"Strni kontrolnike, ko so izklopljeni",content_info:"Vsebina",fill_container:"Zapolnitev prostora",icon_animation:"Animacija ikone, ko je aktivna?",icon_color:"Barva ikone",icon_type:"Vrsta ikone",layout:"Postavitev",primary_info:"Primarna informacija",secondary_info:"Sekundarna informacija",use_entity_picture:"Uporabi sliko entitete?"},humidifier:{show_target_humidity_control:"Nadzor vlažnosti?"},light:{incompatible_controls:"Nekateri kontrolniki morda ne bodo prikazani, če vaša luč ne podpira te funkcije.",show_brightness_control:"Nadzor svetlosti?",show_color_control:"Nadzor barv?",show_color_temp_control:"Nadzor temperature barve?",use_light_color:"Uporabi svetlo barvo"},lock:{lock:"Zaklepanje",open:"Odprto",unlock:"Odkleni"},"media-player":{media_controls:"Nadzor medijev",media_controls_list:{next:"Naslednja skladba",on_off:"Vklop/izklop",play_pause_stop:"Predvajaj/pavza/ustavi",previous:"Prejšnja skladba",repeat:"Ponavljajoči način",shuffle:"Naključno"},show_volume_level:"Pokaži raven glasnosti",use_media_artwork:"Uporabite medijsko umetniško delo",use_media_info:"Uporabite informacije o medijih",volume_controls:"Kontrole glasnosti",volume_controls_list:{volume_buttons:"Gumbi za glasnost",volume_mute:"Tiho",volume_set:"Raven glasnosti"}},number:{display_mode:"Način prikaza",display_mode_list:{buttons:"Gumbi",default:"Privzeto (drsnik)",slider:"Drsnik"}},template:{badge_color:"Barva značke",badge_icon:"Ikona značke",content:"Vsebina",entity_extra:"Uporablja se v predlogah in dejanjih",multiline_secondary:"Večvrstični sekundarni?",picture:"Slika (nadomestila bo ikono)",primary:"Primarna informacija",secondary:"Sekundarna informacija"},title:{subtitle:"Podnaslov",subtitle_tap_action:"Dejanje dotika podnapisov",title:"Naziv",title_tap_action:"Dejanje dotika naslova"},update:{show_buttons_control:"Gumbi za upravljanje?"},vacuum:{commands:"Ukazi",commands_list:{on_off:"Vklop/izklop"}},weather:{show_conditions:"Pogoji?",show_temperature:"Temperatura?"}},chip:{"chip-picker":{add:"Dodaj čip",chips:"Čipi",clear:"Pobriši",edit:"Uredi",select:"Izbira čipa",types:{action:"Dejanje","alarm-control-panel":"Alarm",back:"Nazaj",conditional:"Pogojno",entity:"Entiteta",light:"Svetloba",menu:"Meni",spacer:"Distančnik",template:"Predloga",weather:"Vreme"}},conditional:{chip:"Ćiš"},sub_element_editor:{title:"Urejevalnik čipov"}},form:{alignment_picker:{values:{center:"Center",default:"Privzeta poravnava",end:"Konec",justify:"Poravnava",start:"Pričetek"}},color_picker:{values:{default:"Privzeta barva"}},icon_type_picker:{values:{default:"Privzeta vrsta","entity-picture":"Slika entitete",icon:"Ikona",none:"Brez"}},info_picker:{values:{default:"Privzete informacije","last-changed":"Zadnja sprememba","last-updated":"Zadnja posodobitev",name:"Naziv",none:"Brez",state:"Stanje"}},layout_picker:{values:{default:"Privzeta postavitev",horizontal:"Horizontalna postavitev",vertical:"Vertikalna postavitev"}}}},kh={card:yh,editor:bh},wh={not_found:"Enheten hittades inte"},xh={card:{chips:{alignment:"Justering"},climate:{hvac_modes:"HVAC-lägen",show_temperature_control:"Temperaturkontroll?"},cover:{show_buttons_control:"Visa kontrollknappar?",show_position_control:"Visa positionskontroll?",show_tilt_position_control:"Visa lutningskontroll?"},empty:{no_config_options:"Detta kort har inga konfigurationsalternativ."},fan:{show_direction_control:"Riktningskontroll?",show_oscillate_control:"Kontroll för oscillera?",show_percentage_control:"Procentuell kontroll?"},generic:{collapsible_controls:"Dölj kontroller när enheten är av",color:"Färg",content_info:"Innehåll",fill_container:"Fyll container",icon_animation:"Animera ikonen när enheten är på?",icon_color:"Ikonens färg",icon_type:"Ikontyp",layout:"Layout",primary_info:"Primär information",secondary_info:"Sekundär information",use_entity_picture:"Använd enhetens bild?"},humidifier:{show_target_humidity_control:"Fuktkontroll?"},light:{incompatible_controls:"Kontroller som inte stöds av enheten kommer inte visas.",show_brightness_control:"Styr ljushet?",show_color_control:"Styr färg?",show_color_temp_control:"Färgtemperaturkontroll?",use_light_color:"Styr ljusets färg"},lock:{lock:"Lås",open:"Öppna",unlock:"Lås upp"},"media-player":{media_controls:"Mediakontroller",media_controls_list:{next:"Nästa spår",on_off:"Slå på/av",play_pause_stop:"Spela/pausa/stoppa",previous:"Föregående spår",repeat:"Upprepa",shuffle:"Blanda"},show_volume_level:"Volymkontroll",use_media_artwork:"Visa mediaomslag",use_media_info:"Använd media information",volume_controls:"Volymkontroller",volume_controls_list:{volume_buttons:"Volymknappar",volume_mute:"Ljud av",volume_set:"Volymnivå"}},number:{display_mode:"Visningsläge",display_mode_list:{buttons:"Knappar",default:"Standard (skjutreglage)",slider:"Skjutreglage"}},template:{badge_color:"Färg på märke",badge_icon:"Märke ikon",content:"Innehåll",entity_extra:"Används i mallar och åtgärder",label:"Etikett",multiline_secondary:"Sekundär med flera rader?",picture:"Bild (ersätter ikonen)",primary:"Primär information",secondary:"Sekundär information"},title:{subtitle:"Underrubrik",subtitle_tap_action:"Subtitle tap action",title:"Rubrik",title_tap_action:"Titel tryck åtgärd"},update:{show_buttons_control:"Visa kontrollknappar?"},vacuum:{commands:"Kommandon",commands_list:{on_off:"Slå av/på"}},weather:{show_conditions:"Förhållanden?",show_temperature:"Temperatur?"}},chip:{"chip-picker":{add:"Lägg till chip",chips:"Chips",clear:"Rensa",edit:"Redigera",select:"Välj chip",types:{action:"Åtgärd","alarm-control-panel":"Alarm",back:"Bakåt",conditional:"Villkorad",entity:"Enhet",light:"Ljus",menu:"Meny",quickbar:"Snabbfält",spacer:"Avståndshållare",template:"Mall",weather:"Väder"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chipredigerare"}},form:{alignment_picker:{values:{center:"Centrerad",default:"Standard (början)",end:"Slutet",justify:"Anpassa",start:"Starta"}},color_picker:{values:{default:"Standardfärg"}},icon_type_picker:{values:{default:"Standard typ","entity-picture":"Enhetsbild",icon:"Ikon",none:"Ingen"}},info_picker:{values:{default:"Förvald information","last-changed":"Sist ändrad","last-updated":"Sist uppdaterad",name:"Namn",none:"Ingen",state:"Status"}},layout_picker:{values:{default:"Standard",horizontal:"Horisontell",vertical:"Vertikal"}}}},Eh={card:wh,editor:xh},Ch={not_found:"Varlık bulunamadı"},Ah={card:{chips:{alignment:"Hizalama"},climate:{hvac_modes:"HVAC Modları",show_temperature_control:"Sıcaklık kontrolü?"},cover:{show_buttons_control:"Düğme kontrolleri?",show_position_control:"Pozisyon kontrolü?",show_tilt_position_control:"Eğim kontrolü?"},empty:{no_config_options:"Bu kartın yapılandırma seçeneği yok."},fan:{show_direction_control:"Yön kontrolü?",show_oscillate_control:"Salınım kontrolü?",show_percentage_control:"Yüzde kontrolü?"},generic:{collapsible_controls:"Kapalıyken kontrolleri daralt",color:"Renk",content_info:"İçerik",fill_container:"Alanı doldur",icon_animation:"Aktif olduğunda simgeyi hareket ettir?",icon_color:"Simge renki",icon_type:"İkon tipi",layout:"Düzen",primary_info:"Birinci bilgi",secondary_info:"İkinci bilgi",use_entity_picture:"Varlık resmi kullanılsın?"},humidifier:{show_target_humidity_control:"Nem kontrolü?"},light:{incompatible_controls:"Kullandığınız lamba bu özellikleri desteklemiyorsa bazı kontroller görüntülenemeyebilir.",show_brightness_control:"Parlaklık kontrolü?",show_color_control:"Renk kontrolü?",show_color_temp_control:"Renk ısısı kontrolü?",use_light_color:"Işık rengini kullan"},lock:{lock:"Kilitle",open:"Aç",unlock:"Kilidi aç"},"media-player":{media_controls:"Medya kontrolleri",media_controls_list:{next:"Sonraki parça",on_off:"Aç/Kapat",play_pause_stop:"Oynat/duraklat/durdur",previous:"Önceki parça",repeat:"Tekrarlama modu",shuffle:"Karışık çal"},show_volume_level:"Ses seviyesini göster",use_media_artwork:"Medya resimlerini kullan",use_media_info:"Medya bilgilerini kullan",volume_controls:"Ses seviyesi kontrolleri",volume_controls_list:{volume_buttons:"Ses butonları",volume_mute:"Sessize al",volume_set:"Ses seviyesi"}},number:{display_mode:"Görüntüleme Modu",display_mode_list:{buttons:"Butonlar",default:"Varsayılan (kayan)",slider:"Kayan"}},template:{badge_color:"Rozet rengi",badge_icon:"Rozet simgesi",content:"İçerik",entity_extra:"Şablonlarda ve eylemlerde kullanılsın",label:"Etiket",multiline_secondary:"İkinci bilgi çok satır olsun?",picture:"Resim (ikonun yerine geçecek)",primary:"Birinci bilgi",secondary:"İkinci bilgi"},title:{subtitle:"Altbaşlık",subtitle_tap_action:"Dokunma eylemi alt başlığı",title:"Başlık",title_tap_action:"Dokunma eylemi başlığı"},update:{show_buttons_control:"Düğme kontrolü?"},vacuum:{commands:"Komutlar",commands_list:{on_off:"Aç/Kapat"}},weather:{show_conditions:"Hava koşulu?",show_temperature:"Sıcaklık?"}},chip:{"chip-picker":{add:"Chip ekle",chips:"Chipler",clear:"Temizle",edit:"Düzenle",select:"Chip seç",types:{action:"Eylem","alarm-control-panel":"Alarm",back:"Geri",conditional:"Koşullu",entity:"Varlık",light:"Işık",menu:"Menü",spacer:"Boşluk",template:"Şablon",weather:"Hava Durumu"}},conditional:{chip:"Chip"},sub_element_editor:{title:"Chip düzenleyici"}},form:{alignment_picker:{values:{center:"Ortala",default:"Varsayılan hizalama",end:"Sağa yasla",justify:"İki yana yasla",start:"Sola yasla"}},color_picker:{values:{default:"Varsayılan renk"}},icon_type_picker:{values:{default:"Varsayılan tip","entity-picture":"Varlık resmi",icon:"Simge",none:"Hiçbiri"}},info_picker:{values:{default:"Varsayılan bilgi","last-changed":"Son Değişim","last-updated":"Son Güncelleme",name:"İsim",none:"None",state:"Durum"}},layout_picker:{values:{default:"Varsayılan düzen",horizontal:"Yatay düzen",vertical:"Dikey düzen"}}}},Sh={card:Ch,editor:Ah},Th={not_found:"Сутність не знайдено"},Ih={card:{chips:{alignment:"Вирівнювання"},climate:{hvac_modes:"Режими",show_temperature_control:"Керування температурою?"},cover:{show_buttons_control:"Кнопки керування?",show_position_control:"Керування позицією?",show_tilt_position_control:"Керування нахилом?"},fan:{show_oscillate_control:"Керування повротом?",show_percentage_control:"Керування швидкістю?"},generic:{collapsible_controls:"Приховувати елементи керування коли вимкнено?",content_info:"Вміст",fill_container:"Заповнити контейнер",icon_animation:"Анімувати іконку при активації?",icon_color:"Колір іконки",icon_type:"Тип іконки",layout:"Розташування",primary_info:"Головна інформація",secondary_info:"Додаткова інформація",use_entity_picture:"Використовувати зображення сутності?"},humidifier:{show_target_humidity_control:"Керування вологістю?"},light:{incompatible_controls:"Деякі елементи керування можуть не відображатись якщо ваш пристрій не підтримує цю функцію.",show_brightness_control:"Контроль яскравості?",show_color_control:"Керування кольором світла?",show_color_temp_control:"Керування температурою світла?",use_light_color:"Використовувати колір світла"},lock:{lock:"Зачинити",open:"Відкрити",unlock:"Відчинити"},"media-player":{media_controls:"Керування медіа",media_controls_list:{next:"Наступний трек",on_off:"Увімкнути/Вимкнути",play_pause_stop:"Відтворити/пауза/стоп",previous:"Попередній трек",repeat:"Режим повторення",shuffle:"Перемішати"},show_volume_level:"Показати рівень гучності",use_media_artwork:"Використовувати зображення медіа",use_media_info:"Використовувати інформацію медіа",volume_controls:"Елементи керування гучністю",volume_controls_list:{volume_buttons:"Кнопки гучності",volume_mute:"Вимк. звук",volume_set:"Рівень гучності"}},number:{display_mode:"Відображати режим",display_mode_list:{buttons:"Кнопки",default:"За замовчуванням (повзунок)",slider:"Повзунок"}},template:{badge_color:"Колір значка",badge_icon:"Іконка значка",content:"Вміст",entity_extra:"Використовується в шаблонах та діях",multiline_secondary:"Багаторядкова додаткова інформація?",picture:"Зображення (замінить іконку)",primary:"Головна інформація",secondary:"Додаткова інформація"},title:{subtitle:"Підзаголовок",subtitle_tap_action:"Дія при дотику до підзаголовку",title:"Заголовок",title_tap_action:"Дія при дотику до заголовку"},update:{show_buttons_control:"Кнопки керування?"},vacuum:{commands:"Команди",commands_list:{on_off:"Увімкнути/Вимкнути"}},weather:{show_conditions:"Умови?",show_temperature:"Температура?"}},chip:{"chip-picker":{add:"Додати міні-картку",chips:"Міні-картки",clear:"Очистити",edit:"Редагувати",select:"Обрати міні-картку",types:{action:"Дія","alarm-control-panel":"Сигналізація",back:"Назад",conditional:"Умовна",entity:"Сутність",light:"Світло",menu:"Меню",spacer:"Порожнє місце",template:"Вручну",weather:"Погода"}},conditional:{chip:"Міні-картка"},sub_element_editor:{title:"Редактор міні-карток"}},form:{alignment_picker:{values:{center:"По центру",default:"Вирівнювання за замовчуванням",end:"В кінці",justify:"Вирівняти",start:"На початку"}},color_picker:{values:{default:"Колір за замовчуванням"}},icon_type_picker:{values:{default:"За замовчуванням","entity-picture":"Зображення сутності",icon:"Іконка",none:"Нічого"}},info_picker:{values:{default:"Інформація за замовчуванням","last-changed":"Востаннє змінено","last-updated":"Востаннє оновлено",name:"Назва",none:"Нічого",state:"Стан"}},layout_picker:{values:{default:"Розташування за замовчуванням",horizontal:"Горизонтальне розташування",vertical:"Вертикальне розташування"}}}},Oh={card:Th,editor:Ih},Mh={not_found:"Không tìm thấy thực thể"},zh={card:{chips:{alignment:"Căn chỉnh"},climate:{hvac_modes:"Chế độ điều hòa",show_temperature_control:"Điều khiển nhiệt độ?"},cover:{show_buttons_control:"Điều khiển nút bấm?",show_position_control:"Điều khiển vị trí?",show_tilt_position_control:"Điều khiển độ nghiêng?"},fan:{show_oscillate_control:"Điều khiển xoay?",show_percentage_control:"Điều khiển dạng phần trăm?"},generic:{collapsible_controls:"Thu nhỏ điều kiển khi tắt",content_info:"Nội dung",fill_container:"Làm đầy ô chứa",icon_animation:"Biểu tượng chuyển động khi kích hoạt?",icon_color:"Màu biểu tượng",icon_type:"Kiểu biểu tượng",layout:"Bố cục",primary_info:"Thông tin chính",secondary_info:"Thông tin phụ",use_entity_picture:"Dùng ảnh của thực thể?"},humidifier:{show_target_humidity_control:"Điều khiển độ ẩm?"},light:{incompatible_controls:"Một số điều khiển sẽ không được hiển thị nếu đèn của bạn không hỗ trợ tính năng đó.",show_brightness_control:"Điều khiển độ sáng?",show_color_control:"Điều khiển màu sắc?",show_color_temp_control:"Điều khiển nhiệt độ màu?",use_light_color:"Dùng màu đèn"},lock:{lock:"Khóa",open:"Mở",unlock:"Mở khóa"},"media-player":{media_controls:"Điều khiển đa phương tiện",media_controls_list:{next:"Bài tiếp theo",on_off:"Bật/tắt",play_pause_stop:"Phát/tạm dừng/dừng",previous:"Bài trước",repeat:"Chế độ lặp lại",shuffle:"Xáo trộn"},show_volume_level:"Hiện mức âm lượng",use_media_artwork:"Dùng ảnh đa phương tiện",use_media_info:"Dùng thông tin đa phương tiện",volume_controls:"Điều khiển âm lượng",volume_controls_list:{volume_buttons:"Nút âm lượng",volume_mute:"Im lặng",volume_set:"Mức âm lượng"}},number:{display_mode:"Chế độ hiển thị",display_mode_list:{buttons:"Nút",default:"Mặc định (thanh trượt)",slider:"Thanh trượt"}},template:{badge_color:"Màu huy hiệu",badge_icon:"Biểu tượng huy hiệu",content:"Nội dung",entity_extra:"Được sử dụng trong bản mẫu và hành động",multiline_secondary:"Nhiều dòng thông tin phụ?",picture:"Ảnh (thay cho biểu tượng)",primary:"Thông tin chính",secondary:"Thông tin phụ"},title:{subtitle:"Phụ đề",subtitle_tap_action:"Hành động khi nhấp phụ đề",title:"Tiêu đề",title_tap_action:"Hành động khi nhấp tiêu đề"},update:{show_buttons_control:"Điều khiển nút bấm?"},vacuum:{commands:"Mệnh lệnh",commands_list:{on_off:"Bật/tắt"}},weather:{show_conditions:"Điều kiện?",show_temperature:"Nhiệt độ?"}},chip:{"chip-picker":{add:"Thêm phỉnh",chips:"Phỉnh",clear:"Tẩy trống",edit:"Chỉnh sửa",select:"Chọn phỉnh",types:{action:"Hành động","alarm-control-panel":"Báo động",back:"Quay về",conditional:"Điều kiện",entity:"Thực thể",light:"Đèn",menu:"Trình đơn",spacer:"Ngăn cách",template:"Mẫu",weather:"Thời tiết"}},conditional:{chip:"Phỉnh"},sub_element_editor:{title:"Trình soạn phỉnh"}},form:{alignment_picker:{values:{center:"Căn giữa",default:"Căn chỉnh mặc định",end:"Căn cuối",justify:"Căn hai bên",start:"Căn đầu"}},color_picker:{values:{default:"Màu mặc định"}},icon_type_picker:{values:{default:"Kiểu mặc định","entity-picture":"Ảnh thực thể",icon:"Biểu tượng",none:"Không có"}},info_picker:{values:{default:"Thông tin mặc định","last-changed":"Lần thay đổi cuối","last-updated":"Lần cập nhật cuối",name:"Tên",none:"Không có",state:"Trạng thái"}},layout_picker:{values:{default:"Bố cục mặc định",horizontal:"Bố cục ngang",vertical:"Bố cục dọc"}}}},Ph={card:Mh,editor:zh},Lh={not_found:"未找到实体"},Nh={card:{chips:{alignment:"对齐"},climate:{hvac_modes:"空调模式",show_temperature_control:"温度控制?"},cover:{show_buttons_control:"按钮控制?",show_position_control:"位置控制?",show_tilt_position_control:"角度控制?"},empty:{no_config_options:"这个卡片没有可配置的选项。"},fan:{show_direction_control:"方向控制?",show_oscillate_control:"摆动控制?",show_percentage_control:"百分比控制?"},generic:{collapsible_controls:"关闭时隐藏控制器",color:"颜色",content_info:"内容",fill_container:"填满容器",icon_animation:"激活时使用动态图标?",icon_color:"图标颜色",icon_type:"图标类型",layout:"布局",primary_info:"首要信息",secondary_info:"次要信息",use_entity_picture:"使用实体图片?"},humidifier:{show_target_humidity_control:"湿度控制?"},light:{incompatible_controls:"设备不支持的控制器将不会显示。",show_brightness_control:"亮度控制?",show_color_control:"颜色控制?",show_color_temp_control:"色温控制?",use_light_color:"使用灯光颜色"},lock:{lock:"锁定",open:"打开",unlock:"解锁"},"media-player":{media_controls:"媒体控制",media_controls_list:{next:"下一曲",on_off:"开启/关闭",play_pause_stop:"播放/暂停/停止",previous:"上一曲",repeat:"循环模式",shuffle:"随机"},show_volume_level:"显示音量大小",use_media_artwork:"使用媒体插图",use_media_info:"使用媒体信息",volume_controls:"音量控制",volume_controls_list:{volume_buttons:"音量按钮",volume_mute:"静音",volume_set:"音量等级"}},number:{display_mode:"显示模式",display_mode_list:{buttons:"按钮",default:"默认 (滑块)",slider:"滑块"}},template:{badge_color:"徽标颜色",badge_icon:"徽标图标",content:"内容",entity_extra:"用于模板和动作",label:"标签",multiline_secondary:"多行次要信息?",picture:"图片 (将会替代图标)",primary:"首要信息",secondary:"次要信息"},title:{subtitle:"子标题",subtitle_tap_action:"子标题点击动作",title:"标题",title_tap_action:"标题点击动作"},update:{show_buttons_control:"控制按钮?"},vacuum:{commands:"命令",commands_list:{on_off:"开/关"}},weather:{show_conditions:"条件?",show_temperature:"温度?"}},chip:{"chip-picker":{add:"添加 chip",chips:"小卡片",clear:"清除",edit:"编辑",select:"选择 chip",types:{action:"动作","alarm-control-panel":"警戒控制台",back:"返回",conditional:"条件显示",entity:"实体",light:"灯光",menu:"菜单",quickbar:"快捷栏",spacer:"占位符",template:"模板",weather:"天气"}},conditional:{chip:"小卡片"},sub_element_editor:{title:"Chip 编辑"}},form:{alignment_picker:{values:{center:"居中对齐",default:"默认",end:"右对齐",justify:"两端对齐",start:"左对齐"}},color_picker:{values:{default:"默认颜色"}},icon_type_picker:{values:{default:"默认类型","entity-picture":"实体图片",icon:"图标",none:"无"}},info_picker:{values:{default:"默认信息","last-changed":"变更时间","last-updated":"更新时间",name:"名称",none:"无",state:"状态"}},layout_picker:{values:{default:"默认布局",horizontal:"水平布局",vertical:"垂直布局"}}}},jh={card:Lh,editor:Nh},$h={not_found:"未找到實體"},Bh={card:{chips:{alignment:"對齊"},climate:{hvac_modes:"空調模式",show_temperature_control:"溫度控制?"},cover:{show_buttons_control:"按鈕控制?",show_position_control:"位置控制?",show_tilt_position_control:"角度控制?"},fan:{show_oscillate_control:"擺頭控制?",show_percentage_control:"百分比控制?"},generic:{collapsible_controls:"關閉時隱藏控制項",color:"顏色",content_info:"內容",fill_container:"填滿容器",icon_animation:"啟動時使用動態圖示?",icon_color:"圖示顏色",icon_type:"圖示樣式",layout:"佈局",primary_info:"主要訊息",secondary_info:"次要訊息",use_entity_picture:"使用實體圖片?"},humidifier:{show_target_humidity_control:"溼度控制?"},light:{incompatible_controls:"不會顯示裝置不支援的控制。",show_brightness_control:"亮度控制?",show_color_control:"色彩控制?",show_color_temp_control:"色溫控制?",use_light_color:"使用燈光顏色"},lock:{lock:"上鎖",open:"打開",unlock:"解鎖"},"media-player":{media_controls:"媒體控制",media_controls_list:{next:"下一首",on_off:"開啟、關閉",play_pause_stop:"播放、暫停、停止",previous:"上一首",repeat:"重複播放",shuffle:"隨機播放"},show_volume_level:"顯示音量大小",use_media_artwork:"使用媒體插圖",use_media_info:"使用媒體資訊",volume_controls:"音量控制",volume_controls_list:{volume_buttons:"音量按鈕",volume_mute:"靜音",volume_set:"音量等級"}},number:{display_mode:"顯示模式",display_mode_list:{buttons:"按鈕",default:"預設 (滑桿)",slider:"滑桿"}},template:{badge_color:"角標顏色",badge_icon:"角標圖示",content:"內容",entity_extra:"用於模板與動作",label:"標籤",multiline_secondary:"多行次要訊息?",picture:"圖片 (將會取代圖示)",primary:"主要訊息",secondary:"次要訊息"},title:{subtitle:"副標題",subtitle_tap_action:"副標題點擊動作",title:"標題",title_tap_action:"標題點擊動作"},update:{show_buttons_control:"按鈕控制?"},vacuum:{commands:"指令",commands_list:{on_off:"開啟、關閉"}},weather:{show_conditions:"狀況?",show_temperature:"溫度?"}},chip:{"chip-picker":{add:"新增小卡片",chips:"小卡片",clear:"清除",edit:"編輯",select:"選擇小卡片",types:{action:"動作","alarm-control-panel":"警報器控制",back:"返回",conditional:"條件",entity:"實體",light:"燈光",menu:"選單",spacer:"佔位符",template:"模板",weather:"天氣"}},conditional:{chip:"小卡片"},sub_element_editor:{title:"小卡片編輯器"}},form:{alignment_picker:{values:{center:"居中對齊",default:"預設對齊",end:"居右對齊",justify:"兩端對齊",start:"居左對齊"}},color_picker:{values:{default:"預設顏色"}},icon_type_picker:{values:{default:"預設樣式","entity-picture":"實體圖片",icon:"圖示",none:"無"}},info_picker:{values:{default:"預設訊息","last-changed":"最近變動時間","last-updated":"最近更新時間",name:"名稱",none:"無",state:"狀態"}},layout_picker:{values:{default:"預設佈局",horizontal:"水平佈局",vertical:"垂直佈局"}}}},Rh={card:$h,editor:Bh},Hh={ar:Nu,bg:Bu,ca:Uu,cs:Yu,da:Xu,de:ed,el:id,en:sd,es:hd,fi:vd,fr:kd,he:Cd,hu:Id,id:Pd,it:$d,"ko-KR":Hd,nb:Fd,nl:Wd,pl:Jd,"pt-BR":nh,"pt-PT":ah,ro:ch,ru:ph,sl:Object.freeze({__proto__:null,card:yh,default:kh,editor:bh}),sk:_h,sv:Object.freeze({__proto__:null,card:wh,default:Eh,editor:xh}),tr:Object.freeze({__proto__:null,card:Ch,default:Sh,editor:Ah}),uk:Object.freeze({__proto__:null,card:Th,default:Oh,editor:Ih}),vi:Object.freeze({__proto__:null,card:Mh,default:Ph,editor:zh}),"zh-Hans":Object.freeze({__proto__:null,card:Lh,default:jh,editor:Nh}),"zh-Hant":Object.freeze({__proto__:null,card:$h,default:Rh,editor:Bh})};function Dh(e,t){try{return e.split(".").reduce((function(e,t){return e[t]}),Hh[t])}catch(e){return}}function Uh(e){return function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null!==(n=null==e?void 0:e.locale.language)&&void 0!==n?n:"en",r=Dh(t,o);if(r||(r=Dh(t,"en")),!r)return t;try{return new Mu(r,o).format(i)}catch(e){return console.error('Error formatting message for key "'.concat(t,'" with lang "').concat(o,'":'),e),r}}} /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var Vh="Unknown",Fh="Backspace",Gh="Enter",Yh="Spacebar",Kh="PageUp",Wh="PageDown",qh="End",Xh="Home",Zh="ArrowLeft",Jh="ArrowUp",Qh="ArrowRight",ep="ArrowDown",tp="Delete",np="Escape",ip="Tab",op=new Set;op.add(Fh),op.add(Gh),op.add(Yh),op.add(Kh),op.add(Wh),op.add(qh),op.add(Xh),op.add(Zh),op.add(Jh),op.add(Qh),op.add(ep),op.add(tp),op.add(np),op.add(ip);var rp=8,ap=13,lp=32,sp=33,cp=34,up=35,dp=36,hp=37,pp=38,fp=39,mp=40,vp=46,gp=27,_p=9,yp=new Map;yp.set(rp,Fh),yp.set(ap,Gh),yp.set(lp,Yh),yp.set(sp,Kh),yp.set(cp,Wh),yp.set(up,qh),yp.set(dp,Xh),yp.set(hp,Zh),yp.set(pp,Jh),yp.set(fp,Qh),yp.set(mp,ep),yp.set(vp,tp),yp.set(gp,np),yp.set(_p,ip);var bp=new Set;function kp(e){var t=e.key;if(op.has(t))return t;var n=yp.get(e.keyCode);return n||Vh} /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */bp.add(Kh),bp.add(Wh),bp.add(qh),bp.add(Xh),bp.add(Zh),bp.add(Jh),bp.add(Qh),bp.add(ep);var wp={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},xp=new Set;xp.add(wp.BACKSPACE),xp.add(wp.ENTER),xp.add(wp.SPACEBAR),xp.add(wp.PAGE_UP),xp.add(wp.PAGE_DOWN),xp.add(wp.END),xp.add(wp.HOME),xp.add(wp.ARROW_LEFT),xp.add(wp.ARROW_UP),xp.add(wp.ARROW_RIGHT),xp.add(wp.ARROW_DOWN),xp.add(wp.DELETE),xp.add(wp.ESCAPE),xp.add(wp.TAB);var Ep=8,Cp=13,Ap=32,Sp=33,Tp=34,Ip=35,Op=36,Mp=37,zp=38,Pp=39,Lp=40,Np=46,jp=27,$p=9,Bp=new Map;Bp.set(Ep,wp.BACKSPACE),Bp.set(Cp,wp.ENTER),Bp.set(Ap,wp.SPACEBAR),Bp.set(Sp,wp.PAGE_UP),Bp.set(Tp,wp.PAGE_DOWN),Bp.set(Ip,wp.END),Bp.set(Op,wp.HOME),Bp.set(Mp,wp.ARROW_LEFT),Bp.set(zp,wp.ARROW_UP),Bp.set(Pp,wp.ARROW_RIGHT),Bp.set(Lp,wp.ARROW_DOWN),Bp.set(Np,wp.DELETE),Bp.set(jp,wp.ESCAPE),Bp.set($p,wp.TAB);var Rp,Hp,Dp=new Set;function Up(e){var t=e.key;if(xp.has(t))return t;var n=Bp.get(e.keyCode);return n||wp.UNKNOWN} /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */Dp.add(wp.PAGE_UP),Dp.add(wp.PAGE_DOWN),Dp.add(wp.END),Dp.add(wp.HOME),Dp.add(wp.ARROW_LEFT),Dp.add(wp.ARROW_UP),Dp.add(wp.ARROW_RIGHT),Dp.add(wp.ARROW_DOWN);var Vp="mdc-list-item--activated",Fp="mdc-list-item",Gp="mdc-list-item--disabled",Yp="mdc-list-item--selected",Kp="mdc-list-item__text",Wp="mdc-list-item__primary-text",qp="mdc-list";(Rp={})[""+Vp]="mdc-list-item--activated",Rp[""+Fp]="mdc-list-item",Rp[""+Gp]="mdc-list-item--disabled",Rp[""+Yp]="mdc-list-item--selected",Rp[""+Wp]="mdc-list-item__primary-text",Rp[""+qp]="mdc-list";var Xp=((Hp={})[""+Vp]="mdc-deprecated-list-item--activated",Hp[""+Fp]="mdc-deprecated-list-item",Hp[""+Gp]="mdc-deprecated-list-item--disabled",Hp[""+Yp]="mdc-deprecated-list-item--selected",Hp[""+Kp]="mdc-deprecated-list-item__text",Hp[""+Wp]="mdc-deprecated-list-item__primary-text",Hp[""+qp]="mdc-deprecated-list",Hp);Xp[Fp],Xp[Fp],Xp[Fp],Xp[Fp],Xp[Fp],Xp[Fp];var Zp={TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},Jp=["input","button","textarea","select"],Qp=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===Jp.indexOf(n)&&e.preventDefault()}}; /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function ef(e,t){for(var n=new Map,i=0;it&&!n(r[l].index)){s=l;break}if(-1!==s)return i.sortedIndexCursor=s,r[i.sortedIndexCursor].index;return-1}(r,a,s,t):function(e,t,n){var i=n.typeaheadBuffer[0],o=e.get(i);if(!o)return-1;var r=o[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;var a=(n.sortedIndexCursor+1)%o.length,l=-1;for(;a!==n.sortedIndexCursor;){var s=o[a],c=0===s.text.lastIndexOf(n.typeaheadBuffer,0),u=!t(s.index);if(c&&u){l=a;break}a=(a+1)%o.length}if(-1!==l)return n.sortedIndexCursor=l,o[n.sortedIndexCursor].index;return-1}(r,s,t),-1===n||l||o(n),n}function nf(e){return e.typeaheadBuffer.length>0} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var of;null===(of=window.HTMLSlotElement)||void 0===of||of.prototype.assignedElements; /** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var rf,af,lf=window,sf=lf.ShadowRoot&&(void 0===lf.ShadyCSS||lf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cf=Symbol(),uf=new WeakMap,df=function(){return ua((function e(t,n,i){if(sa(this,e),this._$cssResult$=!0,i!==cf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}),[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(sf&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=uf.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&uf.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])}(),hf=sf?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",i=ra(e.cssRules);try{for(i.s();!(t=i.n()).done;){n+=t.value.cssText}}catch(e){i.e(e)}finally{i.f()}return function(e){return new df("string"==typeof e?e:e+"",void 0,cf)}(n)}(e):e},pf=window,ff=pf.trustedTypes,mf=ff?ff.emptyScript:"",vf=pf.reactiveElementPolyfillSupport,gf={toAttribute:function(e,t){switch(t){case Boolean:e=e?mf:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},_f=function(e,t){return t!==e&&(t==t||e==e)},yf={attribute:!0,type:String,converter:gf,reflect:!1,hasChanged:_f},bf="finalized",kf=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e._$Eu(),e}return ea(t,ta(HTMLElement)),ua(t,[{key:"_$Eu",value:function(){var e,t=this;this._$E_=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Ei.set(n,e[n]),delete e[n])}))}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return function(e,t){sf?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),i=lf.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,e.appendChild(n)}))}(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yf,o=this.constructor._$Ep(e,i);if(void 0!==o&&!0===i.reflect){var r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:gf).toAttribute(t,i.type);this._$El=e,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}},{key:"_$AK",value:function(e,t){var n,i=this.constructor,o=i._$Ev.get(e);if(void 0!==o&&this._$El!==o){var r=i.getPropertyOptions(o),a="function"==typeof r.converter?{fromAttribute:r.converter}:void 0!==(null===(n=r.converter)||void 0===n?void 0:n.fromAttribute)?r.converter:gf;this._$El=o,this[o]=a.fromAttribute(t,r.type),this._$El=null}}},{key:"requestUpdate",value:function(e,t,n){var i=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||_f)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(n=Xr(Kr().m((function e(){var t,n;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:return this.isUpdatePending=!0,e.p=1,e.n=2,this._$E_;case 2:e.n=4;break;case 3:e.p=3,n=e.v,Promise.reject(n);case 4:if(null==(t=this.scheduleUpdate())){e.n=5;break}return e.n=5,t;case 5:return e.a(2,!this.isUpdatePending)}}),e,this,[[1,3]])}))),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((function(e,n){return t[n]=e})),this._$Ei=void 0);var n=!1,i=this._$AL;try{(n=this.shouldUpdate(i))?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw n=!1,this._$Ek(),e}n&&this._$AE(i)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach((function(e,n){return t._$EO(n,t[n],e)})),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,i){var o=e._$Ep(i,n);void 0!==o&&(e._$Ev.set(o,i),t.push(o))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yf;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==ha(e)?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(i){var o=this[e];this[t]=i,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||yf}},{key:"finalize",value:function(){if(this.hasOwnProperty(bf))return!1;this[bf]=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=Ur(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,i=ra([].concat(Ur(Object.getOwnPropertyNames(n)),Ur(Object.getOwnPropertySymbols(n))));try{for(i.s();!(t=i.n()).done;){var o=t.value;this.createProperty(o,n[o])}}catch(e){i.e(e)}finally{i.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,i=ra(new Set(e.flat(1/0).reverse()));try{for(i.s();!(n=i.n()).done;){var o=n.value;t.unshift(hf(o))}}catch(e){i.e(e)}finally{i.f()}}else void 0!==e&&t.push(hf(e));return t}},{key:"_$Ep",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]);var n}();kf[bf]=!0,kf.elementProperties=new Map,kf.elementStyles=[],kf.shadowRootOptions={mode:"open"},null==vf||vf({ReactiveElement:kf}),(null!==(rf=pf.reactiveElementVersions)&&void 0!==rf?rf:pf.reactiveElementVersions=[]).push("1.6.3");var wf=window,xf=wf.trustedTypes,Ef=xf?xf.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,Cf="$lit$",Af="lit$".concat((Math.random()+"").slice(9),"$"),Sf="?"+Af,Tf="<".concat(Sf,">"),If=document,Of=function(){return If.createComment("")},Mf=function(e){return null===e||"object"!=ha(e)&&"function"!=typeof e},zf=Array.isArray,Pf="[ \t\n\f\r]",Lf=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Nf=/-->/g,jf=/>/g,$f=RegExp(">|".concat(Pf,"(?:([^\\s\"'>=/]+)(").concat(Pf,"*=").concat(Pf,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),Bf=/'/g,Rf=/"/g,Hf=/^(?:script|style|textarea|title)$/i,Df=Symbol.for("lit-noChange"),Uf=Symbol.for("lit-nothing"),Vf=new WeakMap,Ff=If.createTreeWalker(If,129,null,!1);function Gf(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ef?Ef.createHTML(t):t}var Yf=function(){return ua((function e(t,n){var i,o=t.strings,r=t._$litType$;sa(this,e),this.parts=[];var a=0,l=0,s=o.length-1,c=this.parts,u=function(e,t){for(var n,i=e.length-1,o=[],r=2===t?"":"",a=Lf,l=0;l"===u[0]?(a=null!=n?n:Lf,d=-1):void 0===u[1]?d=-2:(d=a.lastIndex-u[2].length,c=u[1],a=void 0===u[3]?$f:'"'===u[3]?Rf:Bf):a===Rf||a===Bf?a=$f:a===Nf||a===jf?a=Lf:(a=$f,n=void 0);var p=a===$f&&e[l+1].startsWith("/>")?" ":"";r+=a===Lf?s+Tf:d>=0?(o.push(c),s.slice(0,d)+Cf+s.slice(d)+Af+p):s+Af+(-2===d?(o.push(void 0),l):p)}return[Gf(e,r+(e[i]||"")+(2===t?"":"")),o]}(o,r),d=Fr(u,2),h=d[0],p=d[1];if(this.el=e.createElement(h,n),Ff.currentNode=this.el.content,2===r){var f=this.el.content,m=f.firstChild;m.remove(),f.append.apply(f,Ur(m.childNodes))}for(;null!==(i=Ff.nextNode())&&c.length0){i.textContent=xf?xf.emptyScript:"";for(var T=0;T2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===Df)return t;var s=void 0!==l?null===(n=a._$Co)||void 0===n?void 0:n[l]:a._$Cl,c=Mf(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(i=null==s?void 0:s._$AO)||void 0===i||i.call(s,!1),void 0===c?s=void 0:(s=new c(e))._$AT(e,a,l),void 0!==l?(null!==(o=(r=a)._$Co)&&void 0!==o?o:r._$Co=[])[l]=s:a._$Cl=s),void 0!==s&&(t=Kf(e,s._$AS(e,t.values),s,l)),t}var Wf=function(){return ua((function e(t,n){sa(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}),[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,i=n.el.content,o=n.parts,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:If).importNode(i,!0);Ff.currentNode=r;for(var a=Ff.nextNode(),l=0,s=0,c=o[0];void 0!==c;){if(l===c.index){var u=void 0;2===c.type?u=new qf(a,a.nextSibling,this,e):1===c.type?u=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(u=new tm(a,this,e)),this._$AV.push(u),c=o[++s]}l!==(null==c?void 0:c.index)&&(a=Ff.nextNode(),l++)}return Ff.currentNode=If,r}},{key:"v",value:function(e){var t,n=0,i=ra(this._$AV);try{for(i.s();!(t=i.n()).done;){var o=t.value;void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}}catch(e){i.e(e)}finally{i.f()}}}])}(),qf=function(){function e(t,n,i,o){var r;sa(this,e),this.type=2,this._$AH=Uf,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}return ua(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=Kf(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),Mf(e)?e===Uf||null==e||""===e?(this._$AH!==Uf&&this._$AR(),this._$AH=Uf):e!==this._$AH&&e!==Df&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):function(e){return zf(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])}(e)?this.T(e):this._(e)}},{key:"k",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"$",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}},{key:"_",value:function(e){this._$AH!==Uf&&Mf(this._$AH)?this._$AA.nextSibling.data=e:this.$(If.createTextNode(e)),this._$AH=e}},{key:"g",value:function(e){var t,n=e.values,i=e._$litType$,o="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=Yf.createElement(Gf(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{var r=new Wf(o,this),a=r.u(this.options);r.v(n),this.$(a),this._$AH=r}}},{key:"_$AC",value:function(e){var t=Vf.get(e.strings);return void 0===t&&Vf.set(e.strings,t=new Yf(e)),t}},{key:"T",value:function(t){zf(this._$AH)||(this._$AH=[],this._$AR());var n,i,o=this._$AH,r=0,a=ra(t);try{for(a.s();!(i=a.n()).done;){var l=i.value;r===o.length?o.push(n=new e(this.k(Of()),this.k(Of()),this,this.options)):n=o[r],n._$AI(l),r++}}catch(e){a.e(e)}finally{a.f()}r0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var i=t.nextSibling;t.remove(),t=i}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),Xf=function(){return ua((function e(t,n,i,o,r){sa(this,e),this.type=1,this._$AH=Uf,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Uf}),[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=this.strings,r=!1;if(void 0===o)e=Kf(this,e,t,0),(r=!Mf(e)||e!==this._$AH&&e!==Df)&&(this._$AH=e);else{var a,l,s=e;for(e=o[0],a=0;a1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:Uf)!==Df){var n=this._$AH,i=e===Uf&&n!==Uf||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Uf&&(n===Uf||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}])}(),tm=function(){return ua((function e(t,n,i){sa(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){Kf(this,e)}}])}(),nm=wf.litHtmlPolyfillSupport;null==nm||nm(Yf,qf),(null!==(af=wf.litHtmlVersions)&&void 0!==af?af:wf.litHtmlVersions=[]).push("2.8.0");var im,om,rm=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).renderOptions={host:Qr(e)},e._$Do=void 0,e}return ea(t,kf),ua(t,[{key:"createRenderRoot",value:function(){var e,n,i=Hr(t,"createRenderRoot",this,3)([]);return null!==(e=(n=this.renderOptions).renderBefore)&&void 0!==e||(n.renderBefore=i.firstChild),i}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Hr(t,"update",this,3)([e]),this._$Do=function(e,t,n){var i,o,r=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t,a=r._$litPart$;if(void 0===a){var l=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;r._$litPart$=a=new qf(t.insertBefore(Of(),l),l,void 0,null!=n?n:{})}return a._$AI(e),a}(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;Hr(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;Hr(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return Df}}])}(); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */rm.finalized=!0,rm._$litElement$=!0,null===(im=globalThis.litElementHydrateSupport)||void 0===im||im.call(globalThis,{LitElement:rm});var am=globalThis.litElementPolyfillSupport;null==am||am({LitElement:rm}),(null!==(om=globalThis.litElementVersions)&&void 0!==om?om:globalThis.litElementVersions=[]).push("3.3.3");function lm(e){return{addClass:function(t){e.classList.add(t)},removeClass:function(t){e.classList.remove(t)},hasClass:function(t){return e.classList.contains(t)}}}var sm=function(){},cm={get passive(){return!1}};document.addEventListener("x",sm,cm),document.removeEventListener("x",sm); /** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: Apache-2.0 */var um,dm,hm=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,rm),ua(t,[{key:"click",value:function(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();Hr(t,"click",this,3)([])}},{key:"createFoundation",value:function(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}},{key:"firstUpdated",value:function(){this.createFoundation()}}])}(),pm=null!==(dm=null===(um=window.ShadyDOM)||void 0===um?void 0:um.inUse)&&void 0!==dm&&dm,fm=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).disabled=!1,e.containingForm=null,e.formDataListener=function(t){e.disabled||e.setFormData(t.formData)},e}return ea(t,hm),ua(t,[{key:"findFormElement",value:function(){if(!this.shadowRoot||pm)return null;for(var e=this.getRootNode().querySelectorAll("form"),t=0,n=Array.from(e);t=this.adapter.getMenuItemCount()||(e===vv.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==vv.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(fv.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(fv.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(fv.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(fv.FOCUSED),n=e||t,i=this.adapter.hasClass(fv.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(fv.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(fv.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(fv.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(fv.FOCUSED)){var t=dv(e)===Pm,n=dv(e)===Lm,i=dv(e)===Hm,o=dv(e)===Um;if(!(e.ctrlKey||e.metaKey)&&(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress())){var r=n?" ":e.key,a=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());return a>=0&&this.setSelectedIndex(a),void e.preventDefault()}(t||n||i||o)&&(this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(fv.FOCUSED);if(e){var n=vv.LABEL_SCALE,i=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(i)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(fv.INVALID),this.adapter.removeMenuClass(fv.MENU_INVALID)):(this.adapter.addClass(fv.INVALID),this.adapter.addMenuClass(fv.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(fv.REQUIRED)&&!this.adapter.hasClass(fv.DISABLED)?this.getSelectedIndex()!==vv.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(fv.REQUIRED):this.adapter.removeClass(fv.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(cv.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(fv.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(fv.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(fv.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(fv.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(mv.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(mv.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),vv.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(Om),_v=window,yv=_v.ShadowRoot&&(void 0===_v.ShadyCSS||_v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bv=Symbol(),kv=new WeakMap,wv=function(){return ua((function e(t,n,i){if(sa(this,e),this._$cssResult$=!0,i!==bv)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}),[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(yv&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=kv.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&kv.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])}(),xv=yv?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",i=ra(e.cssRules);try{for(i.s();!(t=i.n()).done;){n+=t.value.cssText}}catch(e){i.e(e)}finally{i.f()}return function(e){return new wv("string"==typeof e?e:e+"",void 0,bv)}(n)}(e):e},Ev=window,Cv=Ev.trustedTypes,Av=Cv?Cv.emptyScript:"",Sv=Ev.reactiveElementPolyfillSupport,Tv={toAttribute:function(e,t){switch(t){case Boolean:e=e?Av:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},Iv=function(e,t){return t!==e&&(t==t||e==e)},Ov={attribute:!0,type:String,converter:Tv,reflect:!1,hasChanged:Iv},Mv="finalized",zv=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e._$Eu(),e}return ea(t,ta(HTMLElement)),ua(t,[{key:"_$Eu",value:function(){var e,t=this;this._$E_=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Ei.set(n,e[n]),delete e[n])}))}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return function(e,t){yv?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),i=_v.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,e.appendChild(n)}))}(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ov,o=this.constructor._$Ep(e,i);if(void 0!==o&&!0===i.reflect){var r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:Tv).toAttribute(t,i.type);this._$El=e,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}},{key:"_$AK",value:function(e,t){var n,i=this.constructor,o=i._$Ev.get(e);if(void 0!==o&&this._$El!==o){var r=i.getPropertyOptions(o),a="function"==typeof r.converter?{fromAttribute:r.converter}:void 0!==(null===(n=r.converter)||void 0===n?void 0:n.fromAttribute)?r.converter:Tv;this._$El=o,this[o]=a.fromAttribute(t,r.type),this._$El=null}}},{key:"requestUpdate",value:function(e,t,n){var i=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Iv)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(n=Xr(Kr().m((function e(){var t,n;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:return this.isUpdatePending=!0,e.p=1,e.n=2,this._$E_;case 2:e.n=4;break;case 3:e.p=3,n=e.v,Promise.reject(n);case 4:if(null==(t=this.scheduleUpdate())){e.n=5;break}return e.n=5,t;case 5:return e.a(2,!this.isUpdatePending)}}),e,this,[[1,3]])}))),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((function(e,n){return t[n]=e})),this._$Ei=void 0);var n=!1,i=this._$AL;try{(n=this.shouldUpdate(i))?(this.willUpdate(i),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$Ek()}catch(e){throw n=!1,this._$Ek(),e}n&&this._$AE(i)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach((function(e,n){return t._$EO(n,t[n],e)})),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,i){var o=e._$Ep(i,n);void 0!==o&&(e._$Ev.set(o,i),t.push(o))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ov;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==ha(e)?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(i){var o=this[e];this[t]=i,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||Ov}},{key:"finalize",value:function(){if(this.hasOwnProperty(Mv))return!1;this[Mv]=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=Ur(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,i=ra([].concat(Ur(Object.getOwnPropertyNames(n)),Ur(Object.getOwnPropertySymbols(n))));try{for(i.s();!(t=i.n()).done;){var o=t.value;this.createProperty(o,n[o])}}catch(e){i.e(e)}finally{i.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,i=ra(new Set(e.flat(1/0).reverse()));try{for(i.s();!(n=i.n()).done;){var o=n.value;t.unshift(xv(o))}}catch(e){i.e(e)}finally{i.f()}}else void 0!==e&&t.push(xv(e));return t}},{key:"_$Ep",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]);var n}();zv[Mv]=!0,zv.elementProperties=new Map,zv.elementStyles=[],zv.shadowRootOptions={mode:"open"},null==Sv||Sv({ReactiveElement:zv}),(null!==(hv=Ev.reactiveElementVersions)&&void 0!==hv?hv:Ev.reactiveElementVersions=[]).push("1.6.3");var Pv=window,Lv=Pv.trustedTypes,Nv=Lv?Lv.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,jv="$lit$",$v="lit$".concat((Math.random()+"").slice(9),"$"),Bv="?"+$v,Rv="<".concat(Bv,">"),Hv=document,Dv=function(){return Hv.createComment("")},Uv=function(e){return null===e||"object"!=ha(e)&&"function"!=typeof e},Vv=Array.isArray,Fv="[ \t\n\f\r]",Gv=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yv=/-->/g,Kv=/>/g,Wv=RegExp(">|".concat(Fv,"(?:([^\\s\"'>=/]+)(").concat(Fv,"*=").concat(Fv,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),qv=/'/g,Xv=/"/g,Zv=/^(?:script|style|textarea|title)$/i,Jv=function(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o":"",a=Gv,l=0;l"===u[0]?(a=null!=n?n:Gv,d=-1):void 0===u[1]?d=-2:(d=a.lastIndex-u[2].length,c=u[1],a=void 0===u[3]?Wv:'"'===u[3]?Xv:qv):a===Xv||a===qv?a=Wv:a===Yv||a===Kv?a=Gv:(a=Wv,n=void 0);var p=a===Wv&&e[l+1].startsWith("/>")?" ":"";r+=a===Gv?s+Rv:d>=0?(o.push(c),s.slice(0,d)+jv+s.slice(d)+$v+p):s+$v+(-2===d?(o.push(void 0),l):p)}return[ig(e,r+(e[i]||"")+(2===t?"":"")),o]}(o,r),d=Fr(u,2),h=d[0],p=d[1];if(this.el=e.createElement(h,n),ng.currentNode=this.el.content,2===r){var f=this.el.content,m=f.firstChild;m.remove(),f.append.apply(f,Ur(m.childNodes))}for(;null!==(i=ng.nextNode())&&c.length0){i.textContent=Lv?Lv.emptyScript:"";for(var T=0;T2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===Qv)return t;var s=void 0!==l?null===(n=a._$Co)||void 0===n?void 0:n[l]:a._$Cl,c=Uv(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(i=null==s?void 0:s._$AO)||void 0===i||i.call(s,!1),void 0===c?s=void 0:(s=new c(e))._$AT(e,a,l),void 0!==l?(null!==(o=(r=a)._$Co)&&void 0!==o?o:r._$Co=[])[l]=s:a._$Cl=s),void 0!==s&&(t=rg(e,s._$AS(e,t.values),s,l)),t}var ag=function(){return ua((function e(t,n){sa(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}),[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,i=n.el.content,o=n.parts,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Hv).importNode(i,!0);ng.currentNode=r;for(var a=ng.nextNode(),l=0,s=0,c=o[0];void 0!==c;){if(l===c.index){var u=void 0;2===c.type?u=new lg(a,a.nextSibling,this,e):1===c.type?u=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(u=new pg(a,this,e)),this._$AV.push(u),c=o[++s]}l!==(null==c?void 0:c.index)&&(a=ng.nextNode(),l++)}return ng.currentNode=Hv,r}},{key:"v",value:function(e){var t,n=0,i=ra(this._$AV);try{for(i.s();!(t=i.n()).done;){var o=t.value;void 0!==o&&(void 0!==o.strings?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}}catch(e){i.e(e)}finally{i.f()}}}])}(),lg=function(){function e(t,n,i,o){var r;sa(this,e),this.type=2,this._$AH=eg,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}return ua(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=rg(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),Uv(e)?e===eg||null==e||""===e?(this._$AH!==eg&&this._$AR(),this._$AH=eg):e!==this._$AH&&e!==Qv&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):function(e){return Vv(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])}(e)?this.T(e):this._(e)}},{key:"k",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"$",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}},{key:"_",value:function(e){this._$AH!==eg&&Uv(this._$AH)?this._$AA.nextSibling.data=e:this.$(Hv.createTextNode(e)),this._$AH=e}},{key:"g",value:function(e){var t,n=e.values,i=e._$litType$,o="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=og.createElement(ig(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{var r=new ag(o,this),a=r.u(this.options);r.v(n),this.$(a),this._$AH=r}}},{key:"_$AC",value:function(e){var t=tg.get(e.strings);return void 0===t&&tg.set(e.strings,t=new og(e)),t}},{key:"T",value:function(t){Vv(this._$AH)||(this._$AH=[],this._$AR());var n,i,o=this._$AH,r=0,a=ra(t);try{for(a.s();!(i=a.n()).done;){var l=i.value;r===o.length?o.push(n=new e(this.k(Dv()),this.k(Dv()),this,this.options)):n=o[r],n._$AI(l),r++}}catch(e){a.e(e)}finally{a.f()}r0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var i=t.nextSibling;t.remove(),t=i}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),sg=function(){return ua((function e(t,n,i,o,r){sa(this,e),this.type=1,this._$AH=eg,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=eg}),[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=this.strings,r=!1;if(void 0===o)e=rg(this,e,t,0),(r=!Uv(e)||e!==this._$AH&&e!==Qv)&&(this._$AH=e);else{var a,l,s=e;for(e=o[0],a=0;a1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:eg)!==Qv){var n=this._$AH,i=e===eg&&n!==eg||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==eg&&(n===eg||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}])}(),pg=function(){return ua((function e(t,n,i){sa(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){rg(this,e)}}])}(),fg=Pv.litHtmlPolyfillSupport;null==fg||fg(og,lg),(null!==(pv=Pv.litHtmlVersions)&&void 0!==pv?pv:Pv.litHtmlVersions=[]).push("2.8.0");var mg,vg,gg=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).renderOptions={host:Qr(e)},e._$Do=void 0,e}return ea(t,zv),ua(t,[{key:"createRenderRoot",value:function(){var e,n,i=Hr(t,"createRenderRoot",this,3)([]);return null!==(e=(n=this.renderOptions).renderBefore)&&void 0!==e||(n.renderBefore=i.firstChild),i}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Hr(t,"update",this,3)([e]),this._$Do=function(e,t,n){var i,o,r=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t,a=r._$litPart$;if(void 0===a){var l=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;r._$litPart$=a=new lg(t.insertBefore(Dv(),l),l,void 0,null!=n?n:{})}return a._$AI(e),a}(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;Hr(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;Hr(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return Qv}}])}(); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */gg.finalized=!0,gg._$litElement$=!0,null===(mg=globalThis.litElementHydrateSupport)||void 0===mg||mg.call(globalThis,{LitElement:gg});var _g=globalThis.litElementPolyfillSupport;null==_g||_g({LitElement:gg}),(null!==(vg=globalThis.litElementVersions)&&void 0!==vg?vg:globalThis.litElementVersions=[]).push("3.3.3"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var yg=function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?Br(Br({},t),{},{finisher:function(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(n){n.createProperty(t.key,e)}}},bg=function(e,t,n){t.constructor.createProperty(n,e)};function kg(e){return function(t,n){return void 0!==n?bg(e,t,n):yg(e,t)}} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function wg(e){return kg(Br(Br({},e),{},{state:!0}))} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var xg,Eg=function(e){var t=e.finisher,n=e.descriptor;return function(e,i){var o;if(void 0===i){var r=null!==(o=e.originalKey)&&void 0!==o?o:e.key,a=null!=n?{kind:"method",placement:"prototype",key:r,descriptor:n(e.key)}:Br(Br({},e),{},{key:r});return null!=t&&(a.finisher=function(e){t(e,r)}),a}var l=e.constructor;void 0!==n&&Object.defineProperty(e,i,n(i)),null==t||t(l,i)}}; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function Cg(e,t){return Eg({descriptor:function(t){var n={get:function(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};return n}})} /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */null===(xg=window.HTMLSlotElement)||void 0===xg||xg.prototype.assignedElements; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var Ag=1,Sg=function(){return ua((function e(t){sa(this,e)}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,Ur(t))}}])}(),Tg=function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return n}return ea(t,Sg),ua(t,[{key:"render",value:function(e){return" "+Object.keys(e).filter((function(t){return e[t]})).join(" ")+" "}},{key:"update",value:function(e,t){var n,i,o=this,r=Fr(t,1)[0];if(void 0===this.it){for(var a in this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((function(e){return""!==e})))),r)r[a]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(a))&&this.it.add(a);return this.render(r)}var l=e.element.classList;for(var s in this.it.forEach((function(e){e in r||(l.remove(e),o.it.delete(e))})),r){var c=!!r[s];c===this.it.has(s)||(null===(i=this.nt)||void 0===i?void 0:i.has(s))||(c?(l.add(s),this.it.add(s)):(l.remove(s),this.it.delete(s)))}return Qv}}])}()),Ig=function(e){return null!=e?e:eg},Og=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};for(var n in e)t[n]=e[n];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},t)},Mg=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).mdcFoundationClass=gv,e.disabled=!1,e.outlined=!1,e.label="",e.outlineOpen=!1,e.outlineWidth=0,e.value="",e.name="",e.selectedText="",e.icon="",e.menuOpen=!1,e.helper="",e.validateOnInitialRender=!1,e.validationMessage="",e.required=!1,e.naturalMenuWidth=!1,e.isUiValid=!0,e.fixedMenuPosition=!1,e.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},e.sortedIndexByFirstChar=new Map,e.menuElement_=null,e.listeners=[],e.onBodyClickBound=function(){},e._menuUpdateComplete=null,e.valueSetDirectly=!1,e.validityTransform=null,e._validity=Og(),e}return ea(t,fm),ua(t,[{key:"items",get:function(){return this.menuElement_||(this.menuElement_=this.menuElement),this.menuElement_?this.menuElement_.items:[]}},{key:"selected",get:function(){var e=this.menuElement;return e?e.selected:null}},{key:"index",get:function(){var e=this.menuElement;return e?e.index:-1}},{key:"shouldRenderHelperText",get:function(){return!!this.helper||!!this.validationMessage}},{key:"validity",get:function(){return this._checkValidity(this.value),this._validity}},{key:"render",value:function(){var e={"mdc-select--disabled":this.disabled,"mdc-select--no-label":!this.label,"mdc-select--filled":!this.outlined,"mdc-select--outlined":this.outlined,"mdc-select--with-leading-icon":!!this.icon,"mdc-select--required":this.required,"mdc-select--invalid":!this.isUiValid},t=this.label?"label":void 0,n=this.shouldRenderHelperText?"helper-text":void 0;return Jv(l||(l=Pr(['\n \n \n \x3c!-- @ts-ignore --\x3e\n
\n ','\n \n \n \n \n \n \n \n \n \n ',"\n
\n ","\n \n ",""])),Tg(e),this.name,this.value,this.disabled,this.required,this.menuOpen,!this.isUiValid,Ig(t),this.required,Ig(n),this.onClick,this.onFocus,this.onBlur,this.onKeydown,this.renderRipple(),this.outlined?this.renderOutline():this.renderLabel(),this.renderLeadingIcon(),this.selectedText,this.renderLineRipple(),this.renderMenu(),this.renderHelperText())}},{key:"renderMenu",value:function(){var e=this.getMenuClasses();return Jv(s||(s=Pr(['\n \n '])))}},{key:"renderOutline",value:function(){return this.outlined?Jv(d||(d=Pr(["\n \n ',"\n "])),this.outlineWidth,this.outlineOpen,this.renderLabel()):eg}},{key:"renderLabel",value:function(){return this.label?Jv(h||(h=Pr(["\n ',"\n "])),wm(this.label),this.label):eg}},{key:"renderLeadingIcon",value:function(){return this.icon?Jv(p||(p=Pr(['
',"
"])),this.icon):eg}},{key:"renderLineRipple",value:function(){return this.outlined?eg:Jv(f||(f=Pr(["\n \n "])),Im())}},{key:"renderHelperText",value:function(){if(!this.shouldRenderHelperText)return eg;var e=this.validationMessage&&!this.isUiValid,t={"mdc-select-helper-text--validation-msg":e};return Jv(m||(m=Pr(['\n ',"

"])),Tg(t),e?this.validationMessage:this.helper)}},{key:"createAdapter",value:function(){var e,t=this;return Object.assign(Object.assign({},lm(this.mdcRoot)),{activateBottomLine:function(){t.lineRippleElement&&t.lineRippleElement.lineRippleFoundation.activate()},deactivateBottomLine:function(){t.lineRippleElement&&t.lineRippleElement.lineRippleFoundation.deactivate()},hasLabel:function(){return!!t.label},floatLabel:function(e){t.labelElement&&t.labelElement.floatingLabelFoundation.float(e)},getLabelWidth:function(){return t.labelElement?t.labelElement.floatingLabelFoundation.getWidth():0},setLabelRequired:function(e){t.labelElement&&t.labelElement.floatingLabelFoundation.setRequired(e)},hasOutline:function(){return t.outlined},notchOutline:function(e){t.outlineElement&&!t.outlineOpen&&(t.outlineWidth=e,t.outlineOpen=!0)},closeOutline:function(){t.outlineElement&&(t.outlineOpen=!1)},setRippleCenter:function(e){t.lineRippleElement&&t.lineRippleElement.lineRippleFoundation.setRippleCenter(e)},notifyChange:(e=Xr(Kr().m((function e(n){var i;return Kr().w((function(e){for(;;)switch(e.n){case 0:if(t.valueSetDirectly||n!==t.value){e.n=1;break}return e.a(2);case 1:return t.valueSetDirectly=!1,t.value=n,e.n=2,t.updateComplete;case 2:i=new Event("change",{bubbles:!0}),t.dispatchEvent(i);case 3:return e.a(2)}}),e)}))),function(t){return e.apply(this,arguments)}),setSelectedText:function(e){return t.selectedText=e},isSelectAnchorFocused:function(){var e=t.anchorElement;return!!e&&e.getRootNode().activeElement===e},getSelectAnchorAttr:function(e){var n=t.anchorElement;return n?n.getAttribute(e):null},setSelectAnchorAttr:function(e,n){var i=t.anchorElement;i&&i.setAttribute(e,n)},removeSelectAnchorAttr:function(e){var n=t.anchorElement;n&&n.removeAttribute(e)},openMenu:function(){t.menuOpen=!0},closeMenu:function(){t.menuOpen=!1},addMenuClass:function(){},removeMenuClass:function(){},getAnchorElement:function(){return t.anchorElement},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){var e=t.menuElement;e&&(e.corner="BOTTOM_START")},setMenuWrapFocus:function(e){var n=t.menuElement;n&&(n.wrapFocus=e)},focusMenuItemAtIndex:function(e){var n=t.menuElement;if(n){var i=n.items[e];i&&i.focus()}},getMenuItemCount:function(){var e=t.menuElement;return e?e.items.length:0},getMenuItemValues:function(){var e=t.menuElement;return e?e.items.map((function(e){return e.value})):[]},getMenuItemTextAtIndex:function(e){var n=t.menuElement;if(!n)return"";var i=n.items[e];return i?i.text:""},getSelectedIndex:function(){return t.index},setSelectedIndex:function(){},isTypeaheadInProgress:function(){return nf(t.typeaheadState)},typeaheadMatchItem:function(e,n){if(!t.menuElement)return-1;var i={focusItemAtIndex:function(e){t.menuElement.focusItemAtIndex(e)},focusedItemIndex:n||t.menuElement.getFocusedItemIndex(),nextChar:e,sortedIndexByFirstChar:t.sortedIndexByFirstChar,skipFocus:!1,isItemAtIndexDisabled:function(e){return t.items[e].disabled}},o=tf(i,t.typeaheadState);return-1!==o&&t.select(o),o}})}},{key:"checkValidity",value:function(){var e=this._checkValidity(this.value);if(!e){var t=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)}return e}},{key:"reportValidity",value:function(){var e=this.checkValidity();return this.isUiValid=e,e}},{key:"_checkValidity",value:function(e){var t=this.formElement.validity,n=Og(t);if(this.validityTransform){var i=this.validityTransform(e,n);n=Object.assign(Object.assign({},n),i)}return this._validity=n,this._validity.valid}},{key:"setCustomValidity",value:function(e){this.validationMessage=e,this.formElement.setCustomValidity(e)}},{key:"getUpdateComplete",value:(a=Xr(Kr().m((function e(){var n;return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this._menuUpdateComplete;case 1:return e.n=2,Hr(t,"getUpdateComplete",this,3)([]);case 2:return n=e.v,e.a(2,n)}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"firstUpdated",value:(r=Xr(Kr().m((function e(){var n,i,o=this;return Kr().w((function(e){for(;;)switch(e.n){case 0:if(!(n=this.menuElement)){e.n=1;break}return this._menuUpdateComplete=n.updateComplete,e.n=1,this._menuUpdateComplete;case 1:if(Hr(t,"firstUpdated",this,3)([]),this.mdcFoundation.isValid=function(){return!0},this.mdcFoundation.setValid=function(){},this.mdcFoundation.setDisabled(this.disabled),this.validateOnInitialRender&&this.reportValidity(),this.selected){e.n=5;break}if(this.items.length||!this.slotElement||!this.slotElement.assignedNodes({flatten:!0}).length){e.n=3;break}return e.n=2,new Promise((function(e){return requestAnimationFrame(e)}));case 2:return e.n=3,this.layout();case 3:if(i=this.items.length&&""===this.items[0].value,this.value||!i){e.n=4;break}return this.select(0),e.a(2);case 4:this.selectByValue(this.value);case 5:this.sortedIndexByFirstChar=ef(this.items.length,(function(e){return o.items[e].text}));case 6:return e.a(2)}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onItemsUpdated",value:function(){var e=this;this.sortedIndexByFirstChar=ef(this.items.length,(function(t){return e.items[t].text}))}},{key:"select",value:function(e){var t=this.menuElement;t&&t.select(e)}},{key:"selectByValue",value:function(e){for(var t=-1,n=0;n0,o=n&&this.index0&&void 0!==a[0])||a[0],this.mdcFoundation&&this.mdcFoundation.layout(),e.n=1,this.updateComplete;case 1:if((n=this.menuElement)&&n.layout(t),i=this.labelElement){e.n=2;break}return this.outlineOpen=!1,e.a(2);case 2:if(o=!!this.label&&!!this.value,i.floatingLabelFoundation.float(o),this.outlined){e.n=3;break}return e.a(2);case 3:return this.outlineOpen=o,e.n=4,this.updateComplete;case 4:r=i.floatingLabelFoundation.getWidth(),this.outlineOpen&&(this.outlineWidth=r);case 5:return e.a(2)}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"layoutOptions",value:(n=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:if(this.mdcFoundation){e.n=1;break}return e.a(2);case 1:this.mdcFoundation.layoutOptions();case 2:return e.a(2)}}),e,this)}))),function(){return n.apply(this,arguments)})}]);var n,i,o,r,a}();ga([Cg(".mdc-select")],Mg.prototype,"mdcRoot",void 0),ga([Cg(".formElement")],Mg.prototype,"formElement",void 0),ga([Cg("slot")],Mg.prototype,"slotElement",void 0),ga([Cg("select")],Mg.prototype,"nativeSelectElement",void 0),ga([Cg("input")],Mg.prototype,"nativeInputElement",void 0),ga([Cg(".mdc-line-ripple")],Mg.prototype,"lineRippleElement",void 0),ga([Cg(".mdc-floating-label")],Mg.prototype,"labelElement",void 0),ga([Cg("mwc-notched-outline")],Mg.prototype,"outlineElement",void 0),ga([Cg(".mdc-menu")],Mg.prototype,"menuElement",void 0),ga([Cg(".mdc-select__anchor")],Mg.prototype,"anchorElement",void 0),ga([kg({type:Boolean,attribute:"disabled",reflect:!0}),mm((function(e){this.mdcFoundation&&this.mdcFoundation.setDisabled(e)}))],Mg.prototype,"disabled",void 0),ga([kg({type:Boolean}),mm((function(e,t){void 0!==t&&this.outlined!==t&&this.layout(!1)}))],Mg.prototype,"outlined",void 0),ga([kg({type:String}),mm((function(e,t){void 0!==t&&this.label!==t&&this.layout(!1)}))],Mg.prototype,"label",void 0),ga([wg()],Mg.prototype,"outlineOpen",void 0),ga([wg()],Mg.prototype,"outlineWidth",void 0),ga([kg({type:String}),mm((function(e){if(this.mdcFoundation){var t=null===this.selected&&!!e,n=this.selected&&this.selected.value!==e;(t||n)&&this.selectByValue(e),this.reportValidity()}}))],Mg.prototype,"value",void 0),ga([kg()],Mg.prototype,"name",void 0),ga([wg()],Mg.prototype,"selectedText",void 0),ga([kg({type:String})],Mg.prototype,"icon",void 0),ga([wg()],Mg.prototype,"menuOpen",void 0),ga([kg({type:String})],Mg.prototype,"helper",void 0),ga([kg({type:Boolean})],Mg.prototype,"validateOnInitialRender",void 0),ga([kg({type:String})],Mg.prototype,"validationMessage",void 0),ga([kg({type:Boolean})],Mg.prototype,"required",void 0),ga([kg({type:Boolean})],Mg.prototype,"naturalMenuWidth",void 0),ga([wg()],Mg.prototype,"isUiValid",void 0),ga([kg({type:Boolean})],Mg.prototype,"fixedMenuPosition",void 0),ga([function(e){return Eg({finisher:function(t,n){Object.assign(t.prototype[n],e)}})}({capture:!0})],Mg.prototype,"handleTypeahead",null); /** * @license * Copyright 2021 Google LLC * SPDX-LIcense-Identifier: Apache-2.0 */ var zg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i']))):hl}},{key:"connectedCallback",value:function(){Hr(t,"connectedCallback",this,3)([]),window.addEventListener("translations-updated",this._translationsUpdated)}},{key:"disconnectedCallback",value:function(){Hr(t,"disconnectedCallback",this,3)([]),window.removeEventListener("translations-updated",this._translationsUpdated)}}])}();Pg.styles=[zg,Aa(_||(_=Pr(["\n .mdc-select__anchor {\n height: var(--select-height, 56px) !important;\n }\n "])))],ga([zl({type:Boolean})],Pg.prototype,"icon",void 0),Pg=ga([Il("mushroom-select")],Pg);var Lg=["default","start","center","end","justify"],Ng={default:"mdi:format-align-left",start:"mdi:format-align-left",center:"mdi:format-align-center",end:"mdi:format-align-right",justify:"mdi:format-align-justify"},jg=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).label="",e.configValue="",e}return ea(t,Sl),ua(t,[{key:"_selectChanged",value:function(e){var t=e.target.value;t&&this.dispatchEvent(new CustomEvent("value-changed",{detail:{value:"default"!==t?t:""}}))}},{key:"render",value:function(){var e=Uh(this.hass),t=this.value||"default";return cl(y||(y=Pr(["\n \n ','\n =e.length)return!1;var t=e[s_];if(r_.test(t))return!0;if("-"===t){if(e.length-s_<2)return!1;var n=e[s_+1];return!("-"!==n&&!r_.test(n))}return!1}var d_={deg:1,rad:180/Math.PI,grad:.9,turn:360};function h_(e){var t="";if("-"!==e[s_]&&"+"!==e[s_]||(t+=e[s_++]),t+=p_(e),"."===e[s_]&&/\d/.test(e[s_+1])&&(t+=e[s_++]+p_(e)),"e"!==e[s_]&&"E"!==e[s_]||("-"!==e[s_+1]&&"+"!==e[s_+1]||!/\d/.test(e[s_+2])?/\d/.test(e[s_+1])&&(t+=e[s_++]+p_(e)):t+=e[s_++]+e[s_++]+p_(e)),u_(e)){var n=f_(e);return"deg"===n||"rad"===n||"turn"===n||"grad"===n?{type:l_.Hue,value:t*d_[n]}:void 0}return"%"===e[s_]?(s_++,{type:l_.Percentage,value:+t}):{type:l_.Number,value:+t}}function p_(e){for(var t="";/\d/.test(e[s_]);)t+=e[s_++];return t}function f_(e){for(var t="";s_4)){if(4===i.length){if(i[3].type!==l_.Alpha)return;i[3]=i[3].value}return 3===i.length&&i.push({type:l_.None,value:void 0}),i.every((function(e){return e.type!==l_.Alpha}))?i:void 0}}var __=function(e){if("string"==typeof e){for(var t=function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim(),n=[];for(s_=0;s_=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return void 0===o?void 0:y_(o[0],o[1],n-i)}}),k_=function(e){var t=!1,n=e.map((function(e){return void 0!==e?(t=!0,e):1}));return t?n:e},w_={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(e,t){if(t&&("rgb"===t[0]||"rgba"===t[0])){var n={mode:"rgb"},i=Fr(t,5),o=i[1],r=i[2],a=i[3],l=i[4];if(o.type!==l_.Hue&&r.type!==l_.Hue&&a.type!==l_.Hue)return o.type!==l_.None&&(n.r=o.type===l_.Number?o.value/255:o.value/100),r.type!==l_.None&&(n.g=r.type===l_.Number?r.value/255:r.value/100),a.type!==l_.None&&(n.b=a.type===l_.Number?a.value/255:a.value/100),l.type!==l_.None&&(n.alpha=Math.min(1,Math.max(0,l.type===l_.Number?l.value:l.value/100))),n}},function(e){var t;return(t=e.match(Vg))?Dg(parseInt(t[1],16),t[1].length):void 0},function(e){var t,n={mode:"rgb"};if(t=e.match(qg))void 0!==t[1]&&(n.r=t[1]/255),void 0!==t[2]&&(n.g=t[2]/255),void 0!==t[3]&&(n.b=t[3]/255);else{if(!(t=e.match(Xg)))return;void 0!==t[1]&&(n.r=t[1]/100),void 0!==t[2]&&(n.g=t[2]/100),void 0!==t[3]&&(n.b=t[3]/100)}return void 0!==t[4]?n.alpha=Math.max(0,Math.min(1,t[4]/100)):void 0!==t[5]&&(n.alpha=Math.max(0,Math.min(1,+t[5]))),n},function(e){return Dg(Ug[e.toLowerCase()],6)},function(e){return"transparent"===e?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0},"srgb"],serialize:"srgb",interpolate:{r:b_,g:b_,b:b_,alpha:{use:b_,fixup:k_}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},x_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.pow(Math.abs(e),563/256)*Math.sign(e)},E_=function(e){var t=x_(e.r),n=x_(e.g),i=x_(e.b),o={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*i};return void 0!==e.alpha&&(o.alpha=e.alpha),o},C_=function(e){return Math.pow(Math.abs(e),256/563)*Math.sign(e)},A_=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"a98",r:C_(2.0415879038107465*t-.5650069742788597*n-.3447313507783297*i),g:C_(-.9692436362808798*t+1.8759675015077206*n+.0415550574071756*i),b:C_(.0134442806320312*t-.1183623922310184*n+1.0151749943912058*i)};return void 0!==o&&(r.alpha=o),r},S_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},T_=function(e){var t=e.r,n=e.g,i=e.b,o=e.alpha,r={mode:"lrgb",r:S_(t),g:S_(n),b:S_(i)};return void 0!==o&&(r.alpha=o),r},I_=function(e){var t=T_(e),n=t.r,i=t.g,o=t.b,r=t.alpha,a={mode:"xyz65",x:.4123907992659593*n+.357584339383878*i+.1804807884018343*o,y:.2126390058715102*n+.715168678767756*i+.0721923153607337*o,z:.0193308187155918*n+.119194779794626*i+.9505321522496607*o};return void 0!==r&&(a.alpha=r),a},O_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):12.92*e},M_=function(e){var t=e.r,n=e.g,i=e.b,o=e.alpha,r={mode:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb",r:O_(t),g:O_(n),b:O_(i)};return void 0!==o&&(r.alpha=o),r},z_=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=M_({r:3.2409699419045226*t-1.537383177570094*n-.4986107602930034*i,g:-.9692436362808796*t+1.8759675015077204*n+.0415550574071756*i,b:.0556300796969936*t-.2039769588889765*n+1.0569715142428784*i});return void 0!==o&&(r.alpha=o),r},P_=Br(Br({},w_),{},{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:function(e){return A_(I_(e))},xyz65:A_},toMode:{rgb:function(e){return z_(E_(e))},xyz65:E_}}),L_=function(e){return(e%=360)<0?e+360:e},N_=function(e){return function(e,t){return e.map((function(n,i,o){if(void 0===n)return n;var r=L_(n);return 0===i||void 0===e[i-1]?r:t(r-L_(o[i-1]))})).reduce((function(e,t){return e.length&&void 0!==t&&void 0!==e[e.length-1]?(e.push(t+e[e.length-1]),e):(e.push(t),e)}),[])}(e,(function(e){return Math.abs(e)<=180?e:e-360*Math.sign(e)}))},j_=[-.14861,1.78277,-.29227,-.90649,1.97294,0],$_=Math.PI/180,B_=180/Math.PI,R_=j_[3]*j_[4],H_=j_[1]*j_[4],D_=j_[1]*j_[2]-j_[0]*j_[3],U_=function(e,t){if(void 0===e.h||void 0===t.h||!e.s||!t.s)return 0;var n=L_(e.h),i=L_(t.h),o=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*o},V_=function(e,t){if(void 0===e.h||void 0===t.h||!e.c||!t.c)return 0;var n=L_(e.h),i=L_(t.h),o=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*o},F_=function(e){var t=e.reduce((function(e,t){if(void 0!==t){var n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e}),{sin:0,cos:0}),n=180*Math.atan2(t.sin,t.cos)/Math.PI;return n<0?360+n:n},G_={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:function(e){var t=e.r,n=e.g,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=(D_*i+t*R_-n*H_)/(D_+R_-H_),a=i-r,l=(j_[4]*(n-r)-j_[2]*a)/j_[3],s={mode:"cubehelix",l:r,s:0===r||1===r?void 0:Math.sqrt(a*a+l*l)/(j_[4]*r*(1-r))};return s.s&&(s.h=Math.atan2(l,a)*B_-120),void 0!==o&&(s.alpha=o),s}},toMode:{rgb:function(e){var t=e.h,n=e.s,i=e.l,o=e.alpha,r={mode:"rgb"};t=(void 0===t?0:t+120)*$_,void 0===i&&(i=0);var a=void 0===n?0:n*i*(1-i),l=Math.cos(t),s=Math.sin(t);return r.r=i+a*(j_[0]*l+j_[1]*s),r.g=i+a*(j_[2]*l+j_[3]*s),r.b=i+a*(j_[4]*l+j_[5]*s),void 0!==o&&(r.alpha=o),r}},interpolate:{h:{use:b_,fixup:N_},s:b_,l:b_,alpha:{use:b_,fixup:k_}},difference:{h:U_},average:{h:F_}},Y_=function(e){var t=e.l,n=e.a,i=e.b,o=e.alpha,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lch";void 0===n&&(n=0),void 0===i&&(i=0);var a=Math.sqrt(n*n+i*i),l={mode:r,l:t,c:a};return a&&(l.h=L_(180*Math.atan2(i,n)/Math.PI)),void 0!==o&&(l.alpha=o),l},K_=function(e){var t=e.l,n=e.c,i=e.h,o=e.alpha;void 0===i&&(i=0);var r={mode:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lab",l:t,a:n?n*Math.cos(i/180*Math.PI):0,b:n?n*Math.sin(i/180*Math.PI):0};return void 0!==o&&(r.alpha=o),r},W_=Math.pow(29,3)/Math.pow(3,3),q_=Math.pow(6,3)/Math.pow(29,3),X_=.3457/.3585,Z_=1,J_=.2958/.3585,Q_=.3127/.329,ey=1,ty=.3583/.329,ny=function(e){return Math.pow(e,3)>q_?Math.pow(e,3):(116*e-16)/W_},iy=function(e){var t=e.l,n=e.a,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=(t+16)/116,a=r-i/200,l={mode:"xyz65",x:ny(n/500+r)*Q_,y:ny(r)*ey,z:ny(a)*ty};return void 0!==o&&(l.alpha=o),l},oy=function(e){return z_(iy(e))},ry=function(e){return e>q_?Math.cbrt(e):(W_*e+16)/116},ay=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=ry(t/Q_),a=ry(n/ey),l={mode:"lab65",l:116*a-16,a:500*(r-a),b:200*(a-ry(i/ty))};return void 0!==o&&(l.alpha=o),l},ly=function(e){var t=ay(I_(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},sy=26/180*Math.PI,cy=Math.cos(sy),uy=Math.sin(sy),dy=100/Math.log(1.39),hy=function(e){var t=e.l,n=e.c,i=e.h,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"lab65",l:(Math.exp(1*t/dy)-1)/.0039},a=(Math.exp(.0435*n*1*1)-1)/.075,l=a*Math.cos(i/180*Math.PI-sy),s=a*Math.sin(i/180*Math.PI-sy);return r.a=l*cy-s/.83*uy,r.b=l*uy+s/.83*cy,void 0!==o&&(r.alpha=o),r},py=function(e){var t=e.l,n=e.a,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=n*cy+i*uy,a=.83*(i*cy-n*uy),l=Math.sqrt(r*r+a*a),s={mode:"dlch",l:dy/1*Math.log(1+.0039*t),c:Math.log(1+.075*l)/.0435};return s.c&&(s.h=L_((Math.atan2(a,r)+sy)/Math.PI*180)),void 0!==o&&(s.alpha=o),s},fy=function(e){return hy(Y_(e,"dlch"))},my=function(e){return K_(py(e),"dlab")},vy={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:fy,rgb:function(e){return oy(fy(e))}},fromMode:{lab65:my,rgb:function(e){return my(ly(e))}},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:b_,a:b_,b:b_,alpha:{use:b_,fixup:k_}}},gy={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:hy,dlab:function(e){return K_(e,"dlab")},rgb:function(e){return oy(hy(e))}},fromMode:{lab65:py,dlab:function(e){return Y_(e,"dlch")},rgb:function(e){return py(ly(e))}},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:b_,c:b_,h:{use:b_,fixup:N_},alpha:{use:b_,fixup:k_}},difference:{h:V_},average:{h:F_}};var _y={mode:"hsi",toMode:{rgb:function(e){var t=e.h,n=e.s,i=e.i,o=e.alpha;t=L_(void 0!==t?t:0),void 0===n&&(n=0),void 0===i&&(i=0);var r,a=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:i*(1+n*(3/(2-a)-1)),g:i*(1+n*(3*(1-a)/(2-a)-1)),b:i*(1-n)};break;case 1:r={r:i*(1+n*(3*(1-a)/(2-a)-1)),g:i*(1+n*(3/(2-a)-1)),b:i*(1-n)};break;case 2:r={r:i*(1-n),g:i*(1+n*(3/(2-a)-1)),b:i*(1+n*(3*(1-a)/(2-a)-1))};break;case 3:r={r:i*(1-n),g:i*(1+n*(3*(1-a)/(2-a)-1)),b:i*(1+n*(3/(2-a)-1))};break;case 4:r={r:i*(1+n*(3*(1-a)/(2-a)-1)),g:i*(1-n),b:i*(1+n*(3/(2-a)-1))};break;case 5:r={r:i*(1+n*(3/(2-a)-1)),g:i*(1-n),b:i*(1+n*(3*(1-a)/(2-a)-1))};break;default:r={r:i*(1-n),g:i*(1-n),b:i*(1-n)}}return r.mode="rgb",void 0!==o&&(r.alpha=o),r}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function(e){var t=e.r,n=e.g,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=Math.max(t,n,i),a=Math.min(t,n,i),l={mode:"hsi",s:t+n+i===0?0:1-3*a/(t+n+i),i:(t+n+i)/3};return r-a!=0&&(l.h=60*(r===t?(n-i)/(r-a)+6*(n1){var o=n+i;n/=o,i/=o}return ky({h:t,s:1===i?1:1-n/(1-i),v:1-i,alpha:e.alpha})}},fromMode:{rgb:function(e){var t=wy(e);if(void 0!==t){var n=void 0!==t.s?t.s:0,i=void 0!==t.v?t.v:0,o={mode:"hwb",w:(1-n)*i,b:1-i};return void 0!==t.h&&(o.h=t.h),void 0!==t.alpha&&(o.alpha=t.alpha),o}}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(t&&"hwb"===t[0]){var n={mode:"hwb"},i=Fr(t,5),o=i[1],r=i[2],a=i[3],l=i[4];if(o.type!==l_.None){if(o.type===l_.Percentage)return;n.h=o.value}if(r.type!==l_.None){if(r.type===l_.Hue)return;n.w=r.value/100}if(a.type!==l_.None){if(a.type===l_.Hue)return;n.b=a.value/100}return l.type!==l_.None&&(n.alpha=Math.min(1,Math.max(0,l.type===l_.Number?l.value:l.value/100))),n}}],serialize:function(e){return"hwb(".concat(void 0!==e.h?e.h:"none"," ").concat(void 0!==e.w?100*e.w+"%":"none"," ").concat(void 0!==e.b?100*e.b+"%":"none").concat(e.alpha<1?" / ".concat(e.alpha):"",")")},interpolate:{h:{use:b_,fixup:N_},w:b_,b:b_,alpha:{use:b_,fixup:k_}},difference:{h:function(e,t){if(void 0===e.h||void 0===t.h)return 0;var n=L_(e.h),i=L_(t.h);return Math.abs(i-n)>180?n-(i-360*Math.sign(i-n)):i-n}},average:{h:F_}},Cy=.1593017578125,Ay=78.84375,Sy=.8359375,Ty=18.8515625,Iy=18.6875;function Oy(e){if(e<0)return 0;var t=Math.pow(e,1/Ay);return 1e4*Math.pow(Math.max(0,t-Sy)/(Ty-Iy*t),1/Cy)}function My(e){if(e<0)return 0;var t=Math.pow(e/1e4,Cy);return Math.pow((Sy+Ty*t)/(1+Iy*t),Ay)}var zy=function(e){return Math.max(e/203,0)},Py=function(e){var t=e.i,n=e.t,i=e.p,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=Oy(t+.008609037037932761*n+.11102962500302593*i),a=Oy(t-.00860903703793275*n-.11102962500302599*i),l=Oy(t+.5600313357106791*n-.32062717498731885*i),s={mode:"xyz65",x:zy(2.070152218389422*r-1.3263473389671556*a+.2066510476294051*l),y:zy(.3647385209748074*r+.680566024947227*a-.0453045459220346*l),z:zy(-.049747207535812*r-.0492609666966138*a+1.1880659249923042*l)};return void 0!==o&&(s.alpha=o),s},Ly=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.max(203*e,0)},Ny=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha,r=Ly(t),a=Ly(n),l=Ly(i),s=My(.3592832590121217*r+.6976051147779502*a-.0358915932320289*l),c=My(-.1920808463704995*r+1.1004767970374323*a+.0753748658519118*l),u=My(.0070797844607477*r+.0748396662186366*a+.8433265453898765*l),d={mode:"itp",i:.5*s+.5*c,t:1.61376953125*s-3.323486328125*c+1.709716796875*u,p:4.378173828125*s-4.24560546875*c-.132568359375*u};return void 0!==o&&(d.alpha=o),d},jy={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Py,rgb:function(e){return z_(Py(e))}},fromMode:{xyz65:Ny,rgb:function(e){return Ny(I_(e))}},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:b_,t:b_,p:b_,alpha:{use:b_,fixup:k_}}},$y=function(e){if(e<0)return 0;var t=Math.pow(e/1e4,Cy);return Math.pow((Sy+Ty*t)/(1+Iy*t),134.03437499999998)},By=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.max(203*e,0)},Ry=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;t=By(t),n=By(n);var r=1.15*t-.15*(i=By(i)),a=.66*n+.34*t,l=$y(.41478972*r+.579999*a+.014648*i),s=$y(-.20151*r+1.120649*a+.0531008*i),c=$y(-.0166008*r+.2648*a+.6684799*i),u=(l+s)/2,d={mode:"jab",j:.44*u/(1-.56*u)-16295499532821565e-27,a:3.524*l-4.066708*s+.542708*c,b:.199076*l+1.096799*s-1.295875*c};return void 0!==o&&(d.alpha=o),d},Hy=16295499532821565e-27,Dy=function(e){if(e<0)return 0;var t=Math.pow(e,.007460772656268216);return 1e4*Math.pow((Sy-t)/(Iy*t-Ty),1/Cy)},Uy=function(e){return e/203},Vy=function(e){var t=e.j,n=e.a,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=(t+Hy)/(.44+.56*(t+Hy)),a=Dy(r+.13860504*n+.058047316*i),l=Dy(r-.13860504*n-.058047316*i),s=Dy(r-.096019242*n-.8118919*i),c={mode:"xyz65",x:Uy(1.661373024652174*a-.914523081304348*l+.23136208173913045*s),y:Uy(-.3250758611844533*a+1.571847026732543*l-.21825383453227928*s),z:Uy(-.090982811*a-.31272829*l+1.5227666*s)};return void 0!==o&&(c.alpha=o),c},Fy=function(e){var t=Ry(I_(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Gy=function(e){return z_(Vy(e))},Yy={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Fy,xyz65:Ry},toMode:{rgb:Gy,xyz65:Vy},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:b_,a:b_,b:b_,alpha:{use:b_,fixup:k_}}},Ky=function(e){var t=e.j,n=e.a,i=e.b,o=e.alpha;void 0===n&&(n=0),void 0===i&&(i=0);var r=Math.sqrt(n*n+i*i),a={mode:"jch",j:t,c:r};return r&&(a.h=L_(180*Math.atan2(i,n)/Math.PI)),void 0!==o&&(a.alpha=o),a},Wy=function(e){var t=e.j,n=e.c,i=e.h,o=e.alpha;void 0===i&&(i=0);var r={mode:"jab",j:t,a:n?n*Math.cos(i/180*Math.PI):0,b:n?n*Math.sin(i/180*Math.PI):0};return void 0!==o&&(r.alpha=o),r},qy={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Wy,rgb:function(e){return Gy(Wy(e))}},fromMode:{rgb:function(e){return Ky(Fy(e))},jab:Ky},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:b_,fixup:N_},c:b_,j:b_,alpha:{use:b_,fixup:k_}},difference:{h:V_},average:{h:F_}},Xy=Math.pow(29,3)/Math.pow(3,3),Zy=Math.pow(6,3)/Math.pow(29,3),Jy=function(e){return Math.pow(e,3)>Zy?Math.pow(e,3):(116*e-16)/Xy},Qy=function(e){var t=e.l,n=e.a,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=(t+16)/116,a=r-i/200,l={mode:"xyz50",x:Jy(n/500+r)*X_,y:Jy(r)*Z_,z:Jy(a)*J_};return void 0!==o&&(l.alpha=o),l},eb=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=M_({r:3.1341359569958707*t-1.6173863321612538*n-.4906619460083532*i,g:-.978795502912089*t+1.916254567259524*n+.03344273116131949*i,b:.07195537988411677*t-.2289768264158322*n+1.405386058324125*i});return void 0!==o&&(r.alpha=o),r},tb=function(e){return eb(Qy(e))},nb=function(e){var t=T_(e),n=t.r,i=t.g,o=t.b,r=t.alpha,a={mode:"xyz50",x:.436065742824811*n+.3851514688337912*i+.14307845442264197*o,y:.22249319175623702*n+.7168870538238823*i+.06061979053616537*o,z:.013923904500943465*n+.09708128566574634*i+.7140993584005155*o};return void 0!==r&&(a.alpha=r),a},ib=function(e){return e>Zy?Math.cbrt(e):(Xy*e+16)/116},ob=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=ib(t/X_),a=ib(n/Z_),l={mode:"lab",l:116*a-16,a:500*(r-a),b:200*(a-ib(i/J_))};return void 0!==o&&(l.alpha=o),l},rb=function(e){var t=ob(nb(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var ab={mode:"lab",toMode:{xyz50:Qy,rgb:tb},fromMode:{xyz50:ob,rgb:rb},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(e,t){if(t&&"lab"===t[0]){var n={mode:"lab"},i=Fr(t,5),o=i[1],r=i[2],a=i[3],l=i[4];if(o.type!==l_.Hue&&r.type!==l_.Hue&&a.type!==l_.Hue)return o.type!==l_.None&&(n.l=Math.min(Math.max(0,o.value),100)),r.type!==l_.None&&(n.a=r.type===l_.Number?r.value:125*r.value/100),a.type!==l_.None&&(n.b=a.type===l_.Number?a.value:125*a.value/100),l.type!==l_.None&&(n.alpha=Math.min(1,Math.max(0,l.type===l_.Number?l.value:l.value/100))),n}}],serialize:function(e){return"lab(".concat(void 0!==e.l?e.l:"none"," ").concat(void 0!==e.a?e.a:"none"," ").concat(void 0!==e.b?e.b:"none").concat(e.alpha<1?" / ".concat(e.alpha):"",")")},interpolate:{l:b_,a:b_,b:b_,alpha:{use:b_,fixup:k_}}},lb=Br(Br({},ab),{},{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:iy,rgb:oy},fromMode:{xyz65:ay,rgb:ly},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});var sb={mode:"lch",toMode:{lab:K_,rgb:function(e){return tb(K_(e))}},fromMode:{rgb:function(e){return Y_(rb(e))},lab:Y_},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(e,t){if(t&&"lch"===t[0]){var n={mode:"lch"},i=Fr(t,5),o=i[1],r=i[2],a=i[3],l=i[4];if(o.type!==l_.None){if(o.type===l_.Hue)return;n.l=Math.min(Math.max(0,o.value),100)}if(r.type!==l_.None&&(n.c=Math.max(0,r.type===l_.Number?r.value:150*r.value/100)),a.type!==l_.None){if(a.type===l_.Percentage)return;n.h=a.value}return l.type!==l_.None&&(n.alpha=Math.min(1,Math.max(0,l.type===l_.Number?l.value:l.value/100))),n}}],serialize:function(e){return"lch(".concat(void 0!==e.l?e.l:"none"," ").concat(void 0!==e.c?e.c:"none"," ").concat(void 0!==e.h?e.h:"none").concat(e.alpha<1?" / ".concat(e.alpha):"",")")},interpolate:{h:{use:b_,fixup:N_},c:b_,l:b_,alpha:{use:b_,fixup:k_}},difference:{h:V_},average:{h:F_}},cb=Br(Br({},sb),{},{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:function(e){return K_(e,"lab65")},rgb:function(e){return oy(K_(e,"lab65"))}},fromMode:{rgb:function(e){return Y_(ly(e),"lch65")},lab65:function(e){return Y_(e,"lch65")}},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ub=function(e){var t=e.l,n=e.u,i=e.v,o=e.alpha;void 0===n&&(n=0),void 0===i&&(i=0);var r=Math.sqrt(n*n+i*i),a={mode:"lchuv",l:t,c:r};return r&&(a.h=L_(180*Math.atan2(i,n)/Math.PI)),void 0!==o&&(a.alpha=o),a},db=function(e){var t=e.l,n=e.c,i=e.h,o=e.alpha;void 0===i&&(i=0);var r={mode:"luv",l:t,u:n?n*Math.cos(i/180*Math.PI):0,v:n?n*Math.sin(i/180*Math.PI):0};return void 0!==o&&(r.alpha=o),r},hb=function(e,t,n){return 4*e/(e+15*t+3*n)},pb=function(e,t,n){return 9*t/(e+15*t+3*n)},fb=hb(X_,Z_,J_),mb=pb(X_,Z_,J_),vb=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r,a=(r=n/Z_)<=Zy?Xy*r:116*Math.cbrt(r)-16,l=hb(t,n,i),s=pb(t,n,i);isFinite(l)&&isFinite(s)?(l=13*a*(l-fb),s=13*a*(s-mb)):a=l=s=0;var c={mode:"luv",l:a,u:l,v:s};return void 0!==o&&(c.alpha=o),c},gb=function(e,t,n){return 4*e/(e+15*t+3*n)}(X_,Z_,J_),_b=function(e,t,n){return 9*t/(e+15*t+3*n)}(X_,Z_,J_),yb=function(e){var t=e.l,n=e.u,i=e.v,o=e.alpha;if(void 0===t&&(t=0),0===t)return{mode:"xyz50",x:0,y:0,z:0};void 0===n&&(n=0),void 0===i&&(i=0);var r=n/(13*t)+gb,a=i/(13*t)+_b,l=Z_*(t<=8?t/Xy:Math.pow((t+16)/116,3)),s={mode:"xyz50",x:l*(9*r)/(4*a),y:l,z:l*(12-3*r-20*a)/(4*a)};return void 0!==o&&(s.alpha=o),s},bb={mode:"lchuv",toMode:{luv:db,rgb:function(e){return eb(yb(db(e)))}},fromMode:{rgb:function(e){return ub(vb(nb(e)))},luv:ub},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:b_,fixup:N_},c:b_,l:b_,alpha:{use:b_,fixup:k_}},difference:{h:V_},average:{h:F_}},kb=Br(Br({},w_),{},{mode:"lrgb",toMode:{rgb:M_},fromMode:{rgb:T_},parse:["srgb-linear"],serialize:"srgb-linear"}),wb={mode:"luv",toMode:{xyz50:yb,rgb:function(e){return eb(yb(e))}},fromMode:{xyz50:vb,rgb:function(e){return vb(nb(e))}},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:b_,u:b_,v:b_,alpha:{use:b_,fixup:k_}}},xb=function(e){var t=e.r,n=e.g,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=Math.cbrt(.412221469470763*t+.5363325372617348*n+.0514459932675022*i),a=Math.cbrt(.2119034958178252*t+.6806995506452344*n+.1073969535369406*i),l=Math.cbrt(.0883024591900564*t+.2817188391361215*n+.6299787016738222*i),s={mode:"oklab",l:.210454268309314*r+.7936177747023054*a-.0040720430116193*l,a:1.9779985324311684*r-2.42859224204858*a+.450593709617411*l,b:.0259040424655478*r+.7827717124575296*a-.8086757549230774*l};return void 0!==o&&(s.alpha=o),s},Eb=function(e){var t=xb(T_(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Cb=function(e){var t=e.l,n=e.a,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=Math.pow(t+.3963377773761749*n+.2158037573099136*i,3),a=Math.pow(t-.1055613458156586*n-.0638541728258133*i,3),l=Math.pow(t-.0894841775298119*n-1.2914855480194092*i,3),s={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*a+.2309699031821044*l,g:-1.2684379732850317*r+2.6097573492876887*a-.3413193760026573*l,b:-.0041960761386756*r-.7034186179359362*a+1.7076146940746117*l};return void 0!==o&&(s.alpha=o),s},Ab=function(e){return M_(Cb(e))};function Sb(e){var t=.206,n=1.206/1.03;return.5*(n*e-t+Math.sqrt((n*e-t)*(n*e-t)+.12*n*e))}function Tb(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Ib(e,t){var n=function(e,t){var n,i,o,r,a,l,s,c;-1.88170328*e-.80936493*t>1?(n=1.19086277,i=1.76576728,o=.59662641,r=.75515197,a=.56771245,l=4.0767416621,s=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,i=-.45954404,o=.08285427,r=.1254107,a=.14503204,l=-1.2684380046,s=2.6097574011,c=-.3413193965):(n=1.35733652,i=-.00915799,o=-1.1513021,r=-.50559606,a=.00692167,l=-.0041960863,s=-.7034186147,c=1.707614701);var u=n+i*e+o*t+r*e*e+a*e*t,d=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t,f=1+u*d,m=1+u*h,v=1+u*p,g=l*(f*f*f)+s*(m*m*m)+c*(v*v*v),_=l*(3*d*f*f)+s*(3*h*m*m)+c*(3*p*v*v);return u-g*_/(_*_-.5*g*(l*(6*d*d*f)+s*(6*h*h*m)+c*(6*p*p*v)))}(e,t),i=Cb({l:1,a:n*e,b:n*t}),o=Math.cbrt(1/Math.max(i.r,i.g,i.b));return[o,o*n]}function Ob(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n||(n=Ib(e,t));var i=n[0],o=n[1];return[o/i,o/(1-i)]}function Mb(e,t,n){var i=Ib(t,n),o=function(e,t,n,i,o){var r,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(a||(a=Ib(e,t)),(n-o)*a[1]-(a[0]-o)*i<=0)r=a[1]*o/(i*a[0]+a[1]*(o-n));else{var l=n-o,s=.3963377774*e+.2158037573*t,c=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=l+i*s,h=l+i*c,p=l+i*u,f=o*(1-(r=a[1]*(o-1)/(i*(a[0]-1)+a[1]*(o-n))))+r*n,m=r*i,v=f+m*s,g=f+m*c,_=f+m*u,y=v*v*v,b=g*g*g,k=_*_*_,w=3*d*v*v,x=3*h*g*g,E=3*p*_*_,C=6*d*d*v,A=6*h*h*g,S=6*p*p*_,T=4.0767416621*y-3.3077115913*b+.2309699292*k-1,I=4.0767416621*w-3.3077115913*x+.2309699292*E,O=I/(I*I-.5*T*(4.0767416621*C-3.3077115913*A+.2309699292*S)),M=-T*O,z=-1.2684380046*y+2.6097574011*b-.3413193965*k-1,P=-1.2684380046*w+2.6097574011*x-.3413193965*E,L=P/(P*P-.5*z*(-1.2684380046*C+2.6097574011*A-.3413193965*S)),N=-z*L,j=-.0041960863*y-.7034186147*b+1.707614701*k-1,$=-.0041960863*w-.7034186147*x+1.707614701*E,B=$/($*$-.5*j*(-.0041960863*C-.7034186147*A+1.707614701*S)),R=-j*B;M=O>=0?M:1e6,N=L>=0?N:1e6,R=B>=0?R:1e6,r+=Math.min(M,Math.min(N,R))}return r}(t,n,e,1,e,i),r=Ob(t,n,i),a=e*(.11516993+1/(7.4477897+4.1590124*n+t*(1.75198401*n-2.19557347+t*(-2.13704948-10.02301043*n+t*(5.38770819*n-4.24894561+4.69891013*t))))),l=(1-e)*(.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(.6122399*n-.27087943+t*(.00299215-.45399568*n-.14661872*t))))),s=.9*(o/Math.min(e*r[0],(1-e)*r[1]))*Math.sqrt(Math.sqrt(1/(1/(a*a*a*a)+1/(l*l*l*l))));return a=.4*e,l=.8*(1-e),[Math.sqrt(1/(1/(a*a)+1/(l*l))),s,o]}function zb(e){var t=void 0!==e.l?e.l:0,n=void 0!==e.a?e.a:0,i=void 0!==e.b?e.b:0,o={mode:"okhsl",l:Sb(t)};void 0!==e.alpha&&(o.alpha=e.alpha);var r=Math.sqrt(n*n+i*i);if(!r)return o.s=0,o;var a,l=Fr(Mb(t,n/r,i/r),3),s=l[0],c=l[1],u=l[2];if(r=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},Fb=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"prophoto",r:Vb(1.3457868816471585*t-.2555720873797946*n-.0511018649755453*i),g:Vb(-.5446307051249019*t+1.5082477428451466*n+.0205274474364214*i),b:Vb(0*t+0*n+1.2119675456389452*i)};return void 0!==o&&(r.alpha=o),r},Gb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},Yb=function(e){var t=Gb(e.r),n=Gb(e.g),i=Gb(e.b),o={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*i,z:0*t+0*n+.8251046025104602*i};return void 0!==e.alpha&&(o.alpha=e.alpha),o},Kb=Br(Br({},w_),{},{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Fb,rgb:function(e){return Fb(nb(e))}},toMode:{xyz50:Yb,rgb:function(e){return eb(Yb(e))}}}),Wb=1.09929682680944,qb=function(e){var t=Math.abs(e);return t>.018053968510807?(Math.sign(e)||1)*(Wb*Math.pow(t,.45)-(Wb-1)):4.5*e},Xb=function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"rec2020",r:qb(1.7166511879712683*t-.3556707837763925*n-.2533662813736599*i),g:qb(-.6666843518324893*t+1.6164812366349395*n+.0157685458139111*i),b:qb(.0176398574453108*t-.0427706132578085*n+.9421031212354739*i)};return void 0!==o&&(r.alpha=o),r},Zb=1.09929682680944,Jb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Math.abs(e);return t<.08124285829863151?e/4.5:(Math.sign(e)||1)*Math.pow((t+Zb-1)/Zb,1/.45)},Qb=function(e){var t=Jb(e.r),n=Jb(e.g),i=Jb(e.b),o={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*n+.059301716469862*i,z:0*t+.0280726930490874*n+1.0609850577107909*i};return void 0!==e.alpha&&(o.alpha=e.alpha),o},ek=Br(Br({},w_),{},{mode:"rec2020",fromMode:{xyz65:Xb,rgb:function(e){return Xb(I_(e))}},toMode:{xyz65:Qb,rgb:function(e){return z_(Qb(e))}},parse:["rec2020"],serialize:"rec2020"}),tk=.0037930732552754493,nk=Math.cbrt(tk),ik=function(e){return Math.cbrt(e)-nk},ok=function(e){return Math.pow(e+nk,3)},rk={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:function(e){var t=e.x,n=e.y,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=ok(t+n)-tk,a=ok(n-t)-tk,l=ok(i+n)-tk,s=M_({r:11.031566904639861*r-9.866943908131562*a-.16462299650829934*l,g:-3.2541473810744237*r+4.418770377582723*a-.16462299650829934*l,b:-3.6588512867136815*r+2.7129230459360922*a+1.9459282407775895*l});return void 0!==o&&(s.alpha=o),s}},fromMode:{rgb:function(e){var t=T_(e),n=t.r,i=t.g,o=t.b,r=t.alpha,a=ik(.3*n+.622*i+.078*o+tk),l=ik(.23*n+.692*i+.078*o+tk),s={mode:"xyb",x:(a-l)/2,y:(a+l)/2,b:ik(.2434226892454782*n+.2047674442449682*i+.5518098665095535*o+tk)-(a+l)/2};return void 0!==r&&(s.alpha=r),s}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:b_,y:b_,b:b_,alpha:{use:b_,fixup:k_}}},ak={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:eb,lab:ob},fromMode:{rgb:nb,lab:Qy},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:b_,y:b_,z:b_,alpha:{use:b_,fixup:k_}}},lk={mode:"xyz65",toMode:{rgb:z_,xyz50:function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*i};return void 0!==o&&(r.alpha=o),r}},fromMode:{rgb:I_,xyz50:function(e){var t=e.x,n=e.y,i=e.z,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*i};return void 0!==o&&(r.alpha=o),r}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:b_,y:b_,z:b_,alpha:{use:b_,fixup:k_}}},sk={mode:"yiq",toMode:{rgb:function(e){var t=e.y,n=e.i,i=e.q,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"rgb",r:t+.95608445*n+.6208885*i,g:t-.27137664*n-.6486059*i,b:t-1.10561724*n+1.70250126*i};return void 0!==o&&(r.alpha=o),r}},fromMode:{rgb:function(e){var t=e.r,n=e.g,i=e.b,o=e.alpha;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r={mode:"yiq",y:.29889531*t+.58662247*n+.11448223*i,i:.59597799*t-.2741761*n-.32180189*i,q:.21147017*t-.52261711*n+.31114694*i};return void 0!==o&&(r.alpha=o),r}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:b_,i:b_,q:b_,alpha:{use:b_,fixup:k_}}};i_(P_),i_(G_),i_(vy),i_(gy),i_(_y),i_(by);var ck=i_(xy);i_(Ey),i_(jy),i_(Yy),i_(qy),i_(ab),i_(lb);var uk=i_(sb);i_(cb),i_(bb),i_(kb),i_(wb),i_(Lb),i_($b),i_(Bb),i_(Rb),i_(Ub),i_(Kb),i_(ek);var dk=i_(w_);i_(rk),i_(ak),i_(lk),i_(sk);var hk=["primary","accent","red","pink","purple","deep-purple","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","deep-orange","brown","light-grey","grey","dark-grey","blue-grey","black","white","disabled"];function pk(e){if("primary"===e||"accent"===e)return"var(--rgb-".concat(e,"-color)");if(hk.includes(e))return"var(--rgb-".concat(e,")");if(e.startsWith("#"))try{var t=dk(e);if(t){var n=t.r,i=t.g,o=t.b;return"".concat(Math.round(255*n),", ").concat(Math.round(255*i),", ").concat(Math.round(255*o))}return""}catch(e){return""}return e}var fk=Aa(x||(x=Pr(["\n --default-red: 244, 67, 54;\n --default-pink: 233, 30, 99;\n --default-purple: 146, 107, 199;\n --default-deep-purple: 110, 65, 171;\n --default-indigo: 63, 81, 181;\n --default-blue: 33, 150, 243;\n --default-light-blue: 3, 169, 244;\n --default-cyan: 0, 188, 212;\n --default-teal: 0, 150, 136;\n --default-green: 76, 175, 80;\n --default-light-green: 139, 195, 74;\n --default-lime: 205, 220, 57;\n --default-yellow: 255, 235, 59;\n --default-amber: 255, 193, 7;\n --default-orange: 255, 152, 0;\n --default-deep-orange: 255, 111, 34;\n --default-brown: 121, 85, 72;\n --default-light-grey: 189, 189, 189;\n --default-grey: 158, 158, 158;\n --default-dark-grey: 96, 96, 96;\n --default-blue-grey: 96, 125, 139;\n --default-black: 0, 0, 0;\n --default-white: 255, 255, 255;\n --default-disabled: 189, 189, 189;\n"]))),mk=Aa(E||(E=Pr(["\n --default-disabled: 111, 111, 111;\n"]))),vk=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).label="",e.configValue="",e}return ea(t,Sl),ua(t,[{key:"_selectChanged",value:function(e){var t=e.target.value;t&&this.dispatchEvent(new CustomEvent("value-changed",{detail:{value:"default"!==t?t:""}}))}},{key:"render",value:function(){var e=this,t=Uh(this.hass);return cl(C||(C=Pr(["\n ','\n \n ',"\n \n ","\n \n "])),Boolean(this.value),this.label,this.configValue,this._selectChanged,(function(e){return e.stopPropagation()}),this.value||"default",this.renderColorCircle(this.value||"grey"),t("editor.form.color_picker.values.default"),hk.map((function(t){return cl(A||(A=Pr(["\n \n ','\n ',"\n \n "])),t,function(e){return e.split("-").map((function(e){return function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e)})).join(" ")}(t),e.renderColorCircle(t))})))}},{key:"renderColorCircle",value:function(e){return cl(S||(S=Pr(['\n \n \n ',"\n \n ","\n \n "])),this.label,this.configValue,this._selectChanged,(function(e){return e.stopPropagation()}),this.value||"default",e("editor.form.icon_type_picker.values.default"),bk.map((function(t){return cl(L||(L=Pr(["\n \n ","\n \n "])),t,e("editor.form.icon_type_picker.values.".concat(t))||function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(t))})))}}],[{key:"styles",get:function(){return Aa(N||(N=Pr(["\n mushroom-select {\n width: 100%;\n }\n "])))}}])}();ga([zl()],xk.prototype,"label",void 0),ga([zl()],xk.prototype,"value",void 0),ga([zl()],xk.prototype,"configValue",void 0),ga([zl()],xk.prototype,"hass",void 0),xk=ga([Il("mushroom-icon-type-picker")],xk);var Ek=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"render",value:function(){return cl(j||(j=Pr(["\n \n "])),this.hass,this.label,this.value,this._valueChanged)}},{key:"_valueChanged",value:function(e){Dl(this,"value-changed",{value:e.detail.value||void 0})}}])}();ga([zl()],Ek.prototype,"hass",void 0),ga([zl()],Ek.prototype,"selector",void 0),ga([zl()],Ek.prototype,"value",void 0),ga([zl()],Ek.prototype,"label",void 0),Ek=ga([Il("ha-selector-mush_icon_type")],Ek);var Ck=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).label="",e.configValue="",e}return ea(t,Sl),ua(t,[{key:"_selectChanged",value:function(e){var t=e.target.value;t&&this.dispatchEvent(new CustomEvent("value-changed",{detail:{value:"default"!==t?t:""}}))}},{key:"render",value:function(){var e,t=Uh(this.hass);return cl($||($=Pr(["\n \n ',"\n \n ","\n \n "])),this.label,this.configValue,this._selectChanged,(function(e){return e.stopPropagation()}),this.value||"default",t("editor.form.info_picker.values.default"),(null!==(e=this.infos)&&void 0!==e?e:yk).map((function(e){return cl(B||(B=Pr(["\n \n ","\n \n "])),e,t("editor.form.info_picker.values.".concat(e))||function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e))})))}}],[{key:"styles",get:function(){return Aa(R||(R=Pr(["\n mushroom-select {\n width: 100%;\n }\n "])))}}])}();ga([zl()],Ck.prototype,"label",void 0),ga([zl()],Ck.prototype,"value",void 0),ga([zl()],Ck.prototype,"configValue",void 0),ga([zl()],Ck.prototype,"infos",void 0),ga([zl()],Ck.prototype,"hass",void 0),Ck=ga([Il("mushroom-info-picker")],Ck);var Ak=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"render",value:function(){return cl(H||(H=Pr(["\n \n "])),this.hass,this.selector.mush_info.infos,this.label,this.value,this._valueChanged)}},{key:"_valueChanged",value:function(e){Dl(this,"value-changed",{value:e.detail.value||void 0})}}])}();ga([zl()],Ak.prototype,"hass",void 0),ga([zl()],Ak.prototype,"selector",void 0),ga([zl()],Ak.prototype,"value",void 0),ga([zl()],Ak.prototype,"label",void 0),Ak=ga([Il("ha-selector-mush_info")],Ak);var Sk=["default","horizontal","vertical"],Tk={default:"mdi:card-text-outline",vertical:"mdi:focus-field-vertical",horizontal:"mdi:focus-field-horizontal"},Ik=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).label="",e.configValue="",e}return ea(t,Sl),ua(t,[{key:"_selectChanged",value:function(e){var t=e.target.value;t&&this.dispatchEvent(new CustomEvent("value-changed",{detail:{value:"default"!==t?t:""}}))}},{key:"render",value:function(){var e=Uh(this.hass),t=this.value||"default";return cl(D||(D=Pr(["\n \n ','\n \n \n ',"\n ","\n \n "])),null!==(e=this.primary)&&void 0!==e?e:"",this.secondary?cl(le||(le=Pr(['',""])),this.multiline_secondary?" multiline_secondary":"",this.secondary):hl)}}],[{key:"styles",get:function(){return Aa(se||(se=Pr(["\n .container {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .primary {\n font-weight: var(--card-primary-font-weight);\n font-size: var(--card-primary-font-size);\n line-height: var(--card-primary-line-height);\n color: var(--card-primary-color);\n letter-spacing: var(--card-primary-letter-spacing);\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n .secondary {\n font-weight: var(--card-secondary-font-weight);\n font-size: var(--card-secondary-font-size);\n line-height: var(--card-secondary-line-height);\n color: var(--card-secondary-color);\n letter-spacing: var(--card-secondary-letter-spacing);\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n .multiline_secondary {\n white-space: pre-wrap;\n }\n "])))}}])}();ga([zl({attribute:!1})],Vk.prototype,"primary",void 0),ga([zl({attribute:!1})],Vk.prototype,"secondary",void 0),ga([zl({type:Boolean})],Vk.prototype,"multiline_secondary",void 0),Vk=ga([Il("mushroom-state-info")],Vk);var Fk=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"render",value:function(){var e,t,n,i;return cl(ce||(ce=Pr(["\n \n ","\n ","\n \n "])),Mk({container:!0,vertical:"vertical"===(null===(e=this.appearance)||void 0===e?void 0:e.layout)}),"none"!==(null===(t=this.appearance)||void 0===t?void 0:t.icon_type)?cl(ue||(ue=Pr(['\n
\n \n \n
\n ']))):hl,"none"!==(null===(n=this.appearance)||void 0===n?void 0:n.primary_info)||"none"!==(null===(i=this.appearance)||void 0===i?void 0:i.secondary_info)?cl(de||(de=Pr(['\n
\n \n
\n ']))):hl)}}],[{key:"styles",get:function(){return Aa(he||(he=Pr(['\n :host {\n display: block;\n height: 100%;\n }\n .container {\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: var(--spacing);\n gap: var(--spacing);\n }\n .icon {\n position: relative;\n }\n .icon ::slotted(*[slot="badge"]) {\n position: absolute;\n top: -3px;\n right: -3px;\n }\n :host([rtl]) .icon ::slotted(*[slot="badge"]) {\n right: initial;\n left: -3px;\n }\n .info {\n min-width: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n }\n .container.vertical {\n flex-direction: column;\n }\n .container.vertical .info {\n text-align: center;\n }\n '])))}}])}();function Gk(e){var t,n,i,o,r;return{layout:null!==(t=e.layout)&&void 0!==t?t:Yk(e),fill_container:null!==(n=e.fill_container)&&void 0!==n&&n,primary_info:null!==(i=e.primary_info)&&void 0!==i?i:Wk(e),secondary_info:null!==(o=e.secondary_info)&&void 0!==o?o:qk(e),icon_type:null!==(r=e.icon_type)&&void 0!==r?r:Kk(e)}}function Yk(e){return e.vertical?"vertical":"default"}function Kk(e){return e.hide_icon?"none":e.use_entity_picture||e.use_media_artwork?"entity-picture":"icon"}function Wk(e){return e.hide_name?"none":"name"}function qk(e){return e.hide_state?"none":"state"}ga([zl()],Fk.prototype,"appearance",void 0),Fk=ga([Il("mushroom-state-item")],Fk);var Xk=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).picture_url="",e}return ea(t,Sl),ua(t,[{key:"render",value:function(){return cl(pe||(pe=Pr(["\n
\n \n \n \n \n \n ']))):hl}},{key:"renderStateInfo",value:function(e,t,n,i){var o=this.hass.formatEntityState(e),r=null!=i?i:o,a=kk(t.primary_info,n,r,e,this.hass),l=kk(t.secondary_info,n,r,e,this.hass);return cl(we||(we=Pr(['\n =0}iw({type:rw,name:"Mushroom Alarm Control Panel Card",description:"Card for alarm control panel"});var dw=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,tw),ua(t,[{key:"hasControls",get:function(){var e,t;return Boolean(null===(t=null===(e=this._config)||void 0===e?void 0:e.states)||void 0===t?void 0:t.length)}},{key:"_onTap",value:function(e,t){e.stopPropagation(),Lk(this,this.hass,this._stateObj,t)}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){var e=this;if(!this.hass||!this._config||!this._config.entity)return hl;var t=this._stateObj;if(!t)return this.renderNotFound(this._config);var n=this._config.name||t.attributes.friendly_name||"",i=this._config.icon,o=Gk(this._config),r=wk(t,o.icon_type),a=this._config.states&&this._config.states.length>0?function(e){return"disarmed"===e.state}(t)?this._config.states.map((function(e){return{mode:e}})):[{mode:"disarmed"}]:[],l=function(e){return As!==e.state}(t),s=bs(this.hass);return cl(Ee||(Ee=Pr(["\n \n \n \n ","\n ","\n ",";\n \n ","\n \n \n "])),Mk({"fill-container":o.fill_container}),o,s,s,o,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),r?this.renderPicture(r):this.renderIcon(t,i),this.renderBadge(t),this.renderStateInfo(t,o,n),a.length>0?cl(Ce||(Ce=Pr(['\n
\n \n \n
\n ']))))}}],[{key:"styles",get:function(){return[Dk,Aa(ze||(ze=Pr(["\n :host {\n --icon-color: var(--primary-text-color);\n --text-color: var(--primary-text-color);\n }\n ha-card {\n box-sizing: border-box;\n height: var(--chip-height);\n min-width: var(--chip-height);\n font-size: var(--chip-height);\n width: auto;\n border-radius: var(--chip-border-radius);\n display: flex;\n flex-direction: row;\n align-items: center;\n background: var(--chip-background);\n border-width: var(--chip-border-width);\n border-color: var(--chip-border-color);\n box-shadow: var(--chip-box-shadow);\n box-sizing: content-box;\n }\n .avatar {\n --avatar-size: calc(\n var(--chip-height) - 2 * var(--chip-avatar-padding)\n );\n border-radius: var(--chip-avatar-border-radius);\n height: var(--avatar-size);\n width: var(--avatar-size);\n margin-left: var(--chip-avatar-padding);\n box-sizing: border-box;\n object-fit: cover;\n }\n :host([rtl]) .avatar {\n margin-left: initial;\n margin-right: var(--chip-avatar-padding);\n }\n .content {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: var(--chip-padding);\n line-height: 0;\n }\n ::slotted(ha-icon),\n ::slotted(ha-state-icon) {\n display: flex;\n line-height: 0;\n --mdc-icon-size: var(--chip-icon-size);\n color: var(--icon-color);\n }\n ::slotted(svg) {\n width: var(--chip-icon-size);\n height: var(--chip-icon-size);\n display: flex;\n }\n ::slotted(span) {\n font-weight: var(--chip-font-weight);\n font-size: var(--chip-font-size);\n line-height: 1;\n color: var(--text-color);\n }\n ::slotted(*:not(:last-child)) {\n margin-right: 0.15em;\n }\n :host([rtl]) ::slotted(*:not(:last-child)) {\n margin-right: initial;\n margin-left: 0.15em;\n }\n "])))]}}])}();ga([zl()],hw.prototype,"icon",void 0),ga([zl()],hw.prototype,"label",void 0),ga([zl()],hw.prototype,"avatar",void 0),ga([zl()],hw.prototype,"avatarOnly",void 0),hw=ga([Il("mushroom-chip")],hw);var pw=function(e){try{var t=fw(e.type);if(customElements.get(t)){var n=document.createElement(t,e);return n.setConfig(e),n}var i=document.createElement(t);return customElements.whenDefined(t).then((function(){try{customElements.upgrade(i),i.setConfig(e)}catch(e){}})),i}catch(e){return void console.error(e)}};function fw(e){return"".concat(ow,"-").concat(e,"-chip")}function mw(e){return"".concat(ow,"-").concat(e,"-chip-editor")}var vw=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){var e;if(!this.hass||!this._config||!this._config.entity)return hl;var t=this._config.entity,n=this.hass.states[t];if(!n)return hl;var i=this._config.name||n.attributes.friendly_name||"",o=this._config.icon,r=this._config.icon_color,a=this._config.use_entity_picture?Ps(n):void 0,l=this.hass.formatEntityState(n),s=Os(n),c=kk(null!==(e=this._config.content_info)&&void 0!==e?e:"state",i,l,n,this.hass),u=bs(this.hass);return cl(Pe||(Pe=Pr(["\n \n ","\n ","\n \n "])),u,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),a?this.hass.hassUrl(a):void 0,a&&!c,a?hl:this.renderIcon(n,o,r,s),c?cl(Le||(Le=Pr(["",""])),c):hl)}},{key:"renderIcon",value:function(e,t,n,i){var o={};if(n){var r=pk(n);o["--color"]="rgb(".concat(r,")")}return cl(Ne||(Ne=Pr(["\n \n "])),this.hass,e,t,Hg(o),Mk({active:i}))}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return GC}));case 1:return e.a(2,document.createElement(mw("entity")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){var n;return Kr().w((function(e){for(;;)if(0===e.n)return n=Object.keys(t.states),e.a(2,{type:"entity",entity:n[0]})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(je||(je=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n ha-state-icon.active {\n color: var(--color);\n }\n "])))}}]);var n,i}();ga([zl({attribute:!1})],vw.prototype,"hass",void 0),ga([Pl()],vw.prototype,"_config",void 0),vw=ga([Il(fw("entity"))],vw);var gw=new Set(["partlycloudy","cloudy","fog","windy","windy-variant","hail","rainy","snowy","snowy-rainy","pouring","lightning","lightning-rainy"]),_w=new Set(["hail","rainy","pouring"]),yw=new Set(["windy","windy-variant"]),bw=new Set(["snowy","snowy-rainy"]),kw=new Set(["lightning","lightning-rainy"]),ww=Aa($e||($e=Pr(["\n .rain {\n fill: var(--weather-icon-rain-color, #30b3ff);\n }\n .sun {\n fill: var(--weather-icon-sun-color, #fdd93c);\n }\n .moon {\n fill: var(--weather-icon-moon-color, #fcf497);\n }\n .cloud-back {\n fill: var(--weather-icon-cloud-back-color, #d4d4d4);\n }\n .cloud-front {\n fill: var(--weather-icon-cloud-front-color, #f9f9f9);\n }\n"]))),xw=function(e,t){return ul(Be||(Be=Pr(['\n \n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n "])),"sunny"===e?ul(Re||(Re=Pr(['\n \n ']))):"","clear-night"===e?ul(He||(He=Pr(['\n \n ']))):"","partlycloudy"===e&&t?ul(De||(De=Pr(['\n \n ']))):"partlycloudy"===e?ul(Ue||(Ue=Pr(['\n \n ']))):"",gw.has(e)?ul(Ve||(Ve=Pr(['\n \n \n ']))):"",_w.has(e)?ul(Fe||(Fe=Pr(['\n \n \n \n \n ']))):"","pouring"===e?ul(Ge||(Ge=Pr(['\n \n \n ']))):"",yw.has(e)?ul(Ye||(Ye=Pr(['\n \n \n ']))):"",bw.has(e)?ul(Ke||(Ke=Pr(['\n \n \n \n ']))):"",kw.has(e)?ul(We||(We=Pr(['\n \n ']))):"")},Ew=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this.hass||!this._config||!this._config.entity)return hl;var e=this._config.entity,t=this.hass.states[e];if(!t)return hl;var n=xw(t.state,!0),i=[];if(this._config.show_conditions){var o=this.hass.formatEntityState(t);i.push(o)}if(this._config.show_temperature){var r=this.hass.formatEntityAttributeValue(t,"temperature");i.push(r)}var a=bs(this.hass);return cl(qe||(qe=Pr(["\n \n ","\n ","\n \n "])),a,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),n,i.length>0?cl(Xe||(Xe=Pr(["",""])),i.join(" ⸱ ")):hl)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return ZC}));case 1:return e.a(2,document.createElement(mw("weather")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){var n,i;return Kr().w((function(e){for(;;)if(0===e.n)return n=Object.keys(t.states),i=n.filter((function(e){return"weather"===e.split(".")[0]})),e.a(2,{type:"weather",entity:i[0]})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return[ww,Aa(Ze||(Ze=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n "])))]}}]);var n,i}();ga([zl({attribute:!1})],Ew.prototype,"hass",void 0),ga([Pl()],Ew.prototype,"_config",void 0),Ew=ga([Il(fw("weather"))],Ew);var Cw="mdi:arrow-left",Aw=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(){window.history.back()}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;var e=this._config.icon||Cw,t=bs(this.hass);return cl(Je||(Je=Pr(["\n \n \n \n "])),t,this._handleAction,qs(),this.hass,e)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return eA}));case 1:return e.a(2,document.createElement(mw("back")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"back"})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(Qe||(Qe=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n "])))}}]);var n,i}();ga([zl({attribute:!1})],Aw.prototype,"hass",void 0),ga([Pl()],Aw.prototype,"_config",void 0),Aw=ga([Il(fw("back"))],Aw);var Sw="mdi:flash",Tw=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;var e=this._config.icon||Sw,t=this._config.icon_color,n={};if(t){var i=pk(t);n["--color"]="rgb(".concat(i,")")}var o=bs(this.hass);return cl(et||(et=Pr(["\n \n \n \n "])),o,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),this.hass,e,Hg(n))}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return oA}));case 1:return e.a(2,document.createElement(mw("action")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"action"})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(tt||(tt=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n ha-state-icon {\n color: var(--color);\n }\n "])))}}]);var n,i}();ga([zl({attribute:!1})],Tw.prototype,"hass",void 0),ga([Pl()],Tw.prototype,"_config",void 0),Tw=ga([Il(fw("action"))],Tw);var Iw="mdi:menu",Ow=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(){Dl(this,"hass-toggle-menu")}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;var e=this._config.icon||Iw,t=bs(this.hass);return cl(nt||(nt=Pr(["\n \n \n \n "])),t,this._handleAction,qs(),this.hass,e)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return lA}));case 1:return e.a(2,document.createElement(mw("menu")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"menu"})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(it||(it=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n "])))}}]);var n,i}();ga([zl({attribute:!1})],Ow.prototype,"hass",void 0),ga([Pl()],Ow.prototype,"_config",void 0),Ow=ga([Il(fw("menu"))],Ow);var Mw="mdi:magnify",zw=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(){if(this.hass&&this._config){var e;switch(this._config.mode||"entity"){case"command":e="c";break;case"device":e="d";break;case"entity":e="e"}var t=new KeyboardEvent("keydown",{bubbles:!0,composed:!0,key:e});this.dispatchEvent(t)}}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;var e=this._config.icon||Mw,t=bs(this.hass);return cl(ot||(ot=Pr(["\n \n \n \n "])),t,this._handleAction,qs(),this.hass,e)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return uA}));case 1:return e.a(2,document.createElement(mw("quickbar")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"quickbar"})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(rt||(rt=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n "])))}}]);var n,i}();function Pw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}ga([zl({attribute:!1})],zw.prototype,"hass",void 0),ga([Pl()],zw.prototype,"_config",void 0),zw=ga([Il(fw("quickbar"))],zw);var Nw,jw={exports:{}};var $w=(Nw||(Nw=1,jw.exports=function e(t,n,i){function o(a,l){if(!n[a]){if(!t[a]){if(!l&&Lw)return Lw(a);if(r)return r(a,!0);throw new Error("Cannot find module '"+a+"'")}l=n[a]={exports:{}},t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,n,i)}return n[a].exports}for(var r=Lw,a=0;a>16),s((65280&i)>>8),s(255&i);return 2==o?s(255&(i=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==o&&(s((i=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),s(255&i)),r},e.fromByteArray=function(e){var t,n,i,o,r=e.length%3,a="";function l(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,i=e.length-r;t>18&63)+l(o>>12&63)+l(o>>6&63)+l(63&o);switch(r){case 1:a=(a+=l((n=e[e.length-1])>>2))+l(n<<4&63)+"==";break;case 2:a=(a=(a+=l((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+l(n>>4&63))+l(n<<2&63)+"="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,i,o,r,a,l,s,c,u){var d=e("base64-js"),h=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var i,r,a,l,s=ha(e);if("base64"===t&&"string"==s)for(e=(l=e).trim?l.trim():l.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)i=O(e);else if("string"==s)i=o.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");i=O(e.length)}if(o._useTypedArrays?r=o._augment(new Uint8Array(i)):((r=this).length=i,r._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)r._set(e);else if(M(l=e)||o.isBuffer(l)||l&&"object"==ha(l)&&"number"==typeof l.length)for(a=0;a>8,n%=256,i.push(n),i.push(t);return i}(t),e,n,i)}function m(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o>>0)):(t+1>>0),o}function _(e,t,n,i){if(i||(H("boolean"==typeof n,"missing or invalid endian"),H(null!=t,"missing offset"),H(t+1>>8*(i?r:1-r)}function x(e,t,n,i,o){if(o||(H(null!=t,"missing value"),H("boolean"==typeof i,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+3>>8*(i?r:3-r)&255}function E(e,t,n,i,o){o||(H(null!=t,"missing value"),H("boolean"==typeof i,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+1this.length&&(i=this.length);var r=(i=e.length-t=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return g(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return g(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(H(null!=e,"missing offset"),H(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return _(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return _(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return k(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return k(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(H(null!=e,"missing value"),H(null!=t,"missing offset"),H(t=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){w(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){w(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){x(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){x(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(H(null!=e,"missing value"),H(null!=t,"missing offset"),H(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){C(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){C(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){A(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){A(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){S(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){S(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,H("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),H(t<=n,"end < start"),n!==t&&0!==this.length){H(0<=t&&t"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function j(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function $(e,t){H("number"==typeof e,"cannot write a non-number as a number"),H(0<=e,"specified a negative value for writing an unsigned value"),H(e<=t,"value is larger than maximum value for type"),H(Math.floor(e)===e,"value has a fractional component")}function B(e,t,n){H("number"==typeof e,"cannot write a non-number as a number"),H(e<=t,"value larger than maximum allowed value"),H(n<=e,"value smaller than minimum allowed value"),H(Math.floor(e)===e,"value has a fractional component")}function R(e,t,n){H("number"==typeof e,"cannot write a non-number as a number"),H(e<=t,"value larger than maximum allowed value"),H(n<=e,"value smaller than minimum allowed value")}function H(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=T.get,e.set=T.set,e.write=T.write,e.toString=T.toString,e.toLocaleString=T.toString,e.toJSON=T.toJSON,e.copy=T.copy,e.slice=T.slice,e.readUInt8=T.readUInt8,e.readUInt16LE=T.readUInt16LE,e.readUInt16BE=T.readUInt16BE,e.readUInt32LE=T.readUInt32LE,e.readUInt32BE=T.readUInt32BE,e.readInt8=T.readInt8,e.readInt16LE=T.readInt16LE,e.readInt16BE=T.readInt16BE,e.readInt32LE=T.readInt32LE,e.readInt32BE=T.readInt32BE,e.readFloatLE=T.readFloatLE,e.readFloatBE=T.readFloatBE,e.readDoubleLE=T.readDoubleLE,e.readDoubleBE=T.readDoubleBE,e.writeUInt8=T.writeUInt8,e.writeUInt16LE=T.writeUInt16LE,e.writeUInt16BE=T.writeUInt16BE,e.writeUInt32LE=T.writeUInt32LE,e.writeUInt32BE=T.writeUInt32BE,e.writeInt8=T.writeInt8,e.writeInt16LE=T.writeInt16LE,e.writeInt16BE=T.writeInt16BE,e.writeInt32LE=T.writeInt32LE,e.writeInt32BE=T.writeInt32BE,e.writeFloatLE=T.writeFloatLE,e.writeFloatBE=T.writeFloatBE,e.writeDoubleLE=T.writeDoubleLE,e.writeDoubleBE=T.writeDoubleBE,e.fill=T.fill,e.inspect=T.inspect,e.toArrayBuffer=T.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,i,o,r,a,l,s,c,u){o=e("buffer").Buffer;var d=4,h=new o(d);h.fill(0),t.exports={hash:function(e,t,n,i){for(var r=t(function(e,t){e.length%d!=0&&(n=e.length+(d-e.length%d),e=o.concat([e,h],n));for(var n,i=[],r=t?e.readInt32BE:e.readInt32LE,a=0;am?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,i=-271733879,o=-1732584194,r=271733878,a=0;a>>32-o,n)}function f(e,t,n,i,o,r,a){return p(t&n|~t&i,e,t,o,r,a)}function m(e,t,n,i,o,r,a){return p(t&i|n&~i,e,t,o,r,a)}function v(e,t,n,i,o,r,a){return p(t^n^i,e,t,o,r,a)}function g(e,t,n,i,o,r,a){return p(n^(t|~i),e,t,o,r,a)}function _(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,i,o,r,a,l,s,c){t.exports=function(e){for(var t,n=new Array(e),i=0;i>>((3&i)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,i,o,r,a,l,s,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,i,o,r=Array(80),a=1732584193,l=-271733879,s=-1732584194,c=271733878,u=-1009589776,d=0;d>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,i,o,r,a,l,s,c,u){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){var n,i=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),o=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),r=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var a,l,s=0;s>>t|e<<32-t},m=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,h,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,i,o,r,a,l,s,c){n.read=function(e,t,n,i,o){var r,a,l=8*o-i-1,s=(1<>1,u=-7,d=n?o-1:0,h=n?-1:1;for(o=e[t+d],d+=h,r=o&(1<<-u)-1,o>>=-u,u+=l;0>=-u,u+=i;0>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:r-1,p=i?1:-1;for(r=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-a))<1&&(a--,i*=2),2<=(t+=1<=a+u?d/i:d*Math.pow(2,1-u))*i&&(a++,i/=2),c<=a+u?(l=0,a=c):1<=a+u?(l=(t*i-1)*Math.pow(2,o),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));8<=o;e[n+h]=255&l,h+=p,l/=256,o-=8);for(a=a<\n ","\n ","\n \n "])),o,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),i?this.hass.hassUrl(i):void 0,i&&!n||!1,i?hl:r||(e?this.renderIcon(e,t):hl),n?this.renderContent(n):hl)}},{key:"renderIcon",value:function(e,t){var n={};if(t){var i=pk(t);n["--color"]="rgb(".concat(i,")")}return cl(lt||(lt=Pr([""])),this.hass,e,Hg(n))}},{key:"renderContent",value:function(e){return cl(st||(st=Pr(["",""])),e)}},{key:"updated",value:function(e){Hr(t,"updated",this,3)([e]),this._config&&this.hass&&this._tryConnect()}},{key:"_tryConnect",value:(l=Xr(Kr().m((function e(){var t=this;return Kr().w((function(e){for(;;)switch(e.n){case 0:Vw.forEach((function(e){t._tryConnectKey(e)}));case 1:return e.a(2)}}),e)}))),function(){return l.apply(this,arguments)})},{key:"_tryConnectKey",value:(a=Xr(Kr().m((function e(t){var n,i,o,r,a=this;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:if(void 0===this._unsubRenderTemplates.get(t)&&this.hass&&this._config&&this.isTemplate(t)){e.n=1;break}return e.a(2);case 1:return e.p=1,o=Fs(this.hass.connection,(function(e){a._templateResults=Object.assign(Object.assign({},a._templateResults),Rr({},t,e))}),{template:null!==(n=this._config[t])&&void 0!==n?n:"",entity_ids:this._config.entity_id,variables:{config:this._config,user:this.hass.user.name,entity:this._config.entity},strict:!0}),this._unsubRenderTemplates.set(t,o),e.n=2,o;case 2:e.n=4;break;case 3:e.p=3,e.v,r={result:null!==(i=this._config[t])&&void 0!==i?i:"",listeners:{all:!1,domains:[],entities:[],time:!1}},this._templateResults=Object.assign(Object.assign({},this._templateResults),Rr({},t,r)),this._unsubRenderTemplates.delete(t);case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(e){return a.apply(this,arguments)})},{key:"_tryDisconnect",value:(r=Xr(Kr().m((function e(){var t=this;return Kr().w((function(e){for(;;)switch(e.n){case 0:Vw.forEach((function(e){t._tryDisconnectKey(e)}));case 1:return e.a(2)}}),e)}))),function(){return r.apply(this,arguments)})},{key:"_tryDisconnectKey",value:(o=Xr(Kr().m((function e(t){var n,i;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n=this._unsubRenderTemplates.get(t)){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,n;case 2:(0,e.v)(),this._unsubRenderTemplates.delete(t),e.n=5;break;case 3:if(e.p=3,"not_found"!==(i=e.v).code&&"template_error"!==i.code){e.n=4;break}e.n=5;break;case 4:throw i;case 5:return e.a(2)}}),e,this,[[1,3]])}))),function(e){return o.apply(this,arguments)})}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return bA}));case 1:return e.a(2,document.createElement(mw("template")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"template"})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(ct||(ct=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n ha-state-icon {\n color: var(--color);\n }\n ","\n "])),ww)}}]);var n,i,o,r,a,l}();ga([zl({attribute:!1})],Fw.prototype,"hass",void 0),ga([Pl()],Fw.prototype,"_config",void 0),ga([Pl()],Fw.prototype,"_templateResults",void 0),ga([Pl()],Fw.prototype,"_unsubRenderTemplates",void 0),Fw=ga([Il(fw("template"))],Fw);var Gw=function(){var e,t,n;customElements.get("ha-form")&&customElements.get("hui-card-features-editor")||null===(e=customElements.get("hui-tile-card"))||void 0===e||e.getConfigElement(),customElements.get("ha-entity-picker")||null===(t=customElements.get("hui-entities-card"))||void 0===t||t.getConfigElement(),customElements.get("ha-card-conditions-editor")||null===(n=customElements.get("hui-conditional-card"))||void 0===n||n.getConfigElement()},Yw=function(){var e=Xr(Kr().m((function e(t){var n;return Kr().w((function(e){for(;;)switch(e.n){case 0:if(!(n=customElements.get(t))){e.n=1;break}return e.a(2,n);case 1:return e.n=2,customElements.whenDefined(t);case 2:return e.a(2,customElements.get(t))}}),e)})));return function(t){return e.apply(this,arguments)}}(),Kw=fw("conditional"),Ww=function(){var e=Xr(Kr().m((function e(){var t,n;return Kr().w((function(e){for(;;)switch(e.n){case 0:if(!customElements.get(Kw)){e.n=1;break}return e.a(2);case 1:if(customElements.get("hui-conditional-base")){e.n=3;break}return e.n=2,window.loadCardHelpers();case 2:e.v.createCardElement({type:"conditional",card:{type:"button"},conditions:[]});case 3:return e.n=4,Yw("hui-conditional-base");case 4:t=e.v,n=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,e),ua(t,[{key:"setConfig",value:function(e){if(this.validateConfig(e),!e.chip)throw new Error("No chip configured");this._element=pw(e.chip)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return DO}));case 1:return e.a(2,document.createElement(mw("conditional")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"conditional",conditions:[]})}),e)}))),function(){return n.apply(this,arguments)})}]);var n,i}(t),customElements.get(Kw)||customElements.define(Kw,n);case 5:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();function qw(e){return null!=e.attributes.rgb_color?e.attributes.rgb_color:void 0}function Xw(e){var t={mode:"rgb",r:e[0]/255,g:e[1]/255,b:e[2]/255},n=uk(t);return((null==n?void 0:n.l)||0)>96}function Zw(e){var t={mode:"rgb",r:e[0]/255,g:e[1]/255,b:e[2]/255},n=uk(t);return((null==n?void 0:n.l)||0)>97}function Jw(e){return function(e){var t;return(null===(t=e.attributes.supported_color_modes)||void 0===t?void 0:t.some((function(e){return Ls.includes(e)})))||!1}(e)}function Qw(e){return function(e){var t;return(null===(t=e.attributes.supported_color_modes)||void 0===t?void 0:t.some((function(e){return Ns.includes(e)})))||!1}(e)}var ex=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=Object.assign({tap_action:{action:"toggle"},hold_action:{action:"more-info"}},e)}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){var e,t;if(!this.hass||!this._config||!this._config.entity)return hl;var n=this._config.entity,i=this.hass.states[n];if(!i)return hl;var o=this._config.name||i.attributes.friendly_name||"",r=this._config.icon,a=this.hass.formatEntityState(i),l=Os(i),s=qw(i),c={};if(s&&(null===(e=this._config)||void 0===e?void 0:e.use_light_color)){var u=s.join(",");c["--color"]="rgb(".concat(u,")"),Zw(s)&&(c["--color"]="rgba(var(--rgb-primary-text-color), 0.2)")}var d=kk(null!==(t=this._config.content_info)&&void 0!==t?t:"state",o,a,i,this.hass),h=bs(this.hass);return cl(ut||(ut=Pr(["\n \n \n ","\n \n "])),h,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),this.hass,i,r,Hg(c),Mk({active:l}),d?cl(dt||(dt=Pr(["",""])),d):hl)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return qO}));case 1:return e.a(2,document.createElement(mw("light")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){var n,i;return Kr().w((function(e){for(;;)if(0===e.n)return n=Object.keys(t.states),i=n.filter((function(e){return"light"===e.split(".")[0]})),e.a(2,{type:"light",entity:i[0]})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(ht||(ht=Pr(["\n :host {\n --color: rgb(var(--rgb-state-light));\n }\n mushroom-chip {\n cursor: pointer;\n }\n ha-state-icon.active {\n color: var(--color);\n }\n "])))}}]);var n,i}();ga([zl({attribute:!1})],ex.prototype,"hass",void 0),ga([Pl()],ex.prototype,"_config",void 0),ex=ga([Il(fw("light"))],ex);var tx=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){var e;if(!this.hass||!this._config||!this._config.entity)return hl;var t=this._config.entity,n=this.hass.states[t];if(!n)return hl;var i=this._config.name||n.attributes.friendly_name||"",o=this._config.icon,r=cw(n.state),a=uw(n.state),l=this.hass.formatEntityState(n),s={};if(r){var c=pk(r);s["--color"]="rgb(".concat(c,")")}var u=kk(null!==(e=this._config.content_info)&&void 0!==e?e:"state",i,l,n,this.hass),d=bs(this.hass);return cl(pt||(pt=Pr(["\n \n \n ","\n \n "])),d,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),this.hass,n,o,Hg(s),Mk({pulse:a}),u?cl(ft||(ft=Pr(["",""])),u):hl)}}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return QO}));case 1:return e.a(2,document.createElement(mw("alarm-control-panel")))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){var n,i;return Kr().w((function(e){for(;;)if(0===e.n)return n=Object.keys(t.states),i=n.filter((function(e){return lw.includes(e.split(".")[0])})),e.a(2,{type:"alarm-control-panel",entity:i[0]})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return Aa(mt||(mt=Pr(["\n mushroom-chip {\n cursor: pointer;\n }\n ha-state-icon {\n color: var(--color);\n }\n ha-state-icon.pulse {\n animation: 1s ease 0s infinite normal none running pulse;\n }\n ","\n "])),Hk.pulse)}}]);var n,i}();ga([zl({attribute:!1})],tx.prototype,"hass",void 0),ga([Pl()],tx.prototype,"_config",void 0),tx=ga([Il(fw("alarm-control-panel"))],tx);var nx=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"setConfig",value:function(){}}],[{key:"styles",get:function(){return Aa(vt||(vt=Pr(["\n :host {\n flex-grow: 1;\n }\n "])))}}])}();nx=ga([Il(fw("spacer"))],nx);var ix="".concat(ow,"-chips-card"),ox="".concat(ix,"-editor");iw({type:ix,name:"Mushroom Chips Card",description:"Card with chips to display informations"});var rx=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"hass",set:function(e){var t,n=Qk(this._hass),i=Qk(e);n!==i&&this.toggleAttribute("dark-mode",i),this._hass=e,null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("div > *").forEach((function(t){t.hass=e}))}},{key:"getCardSize",value:function(){return 1}},{key:"setConfig",value:function(e){this._config=e}},{key:"render",value:function(){var e=this;if(!this._config||!this._hass)return hl;var t="";this._config.alignment&&(t="align-".concat(this._config.alignment));var n=bs(this._hass);return cl(gt||(gt=Pr(['\n \n
\n \n \n \n \n \n \n \n
\n '])),this._decrementValue,this.disabled,Mk({value:!0,pending:this.pending,disabled:this.disabled}),e,this._incrementValue,this.disabled)}}],[{key:"styles",get:function(){return Aa(xt||(xt=Pr(["\n :host {\n --text-color: var(--primary-text-color);\n --text-color-disabled: rgb(var(--rgb-disabled));\n --icon-color: var(--primary-text-color);\n --icon-color-disabled: rgb(var(--rgb-disabled));\n --bg-color: rgba(var(--rgb-primary-text-color), 0.05);\n --bg-color-disabled: rgba(var(--rgb-disabled), 0.2);\n height: var(--control-height);\n width: calc(var(--control-height) * var(--control-button-ratio) * 3);\n flex: none;\n }\n .container {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n padding: 6px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: var(--control-border-radius);\n border: none;\n background-color: var(--bg-color);\n transition: background-color 280ms ease-in-out;\n height: var(--control-height);\n overflow: hidden;\n }\n .button {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 4px;\n border: none;\n background: none;\n cursor: pointer;\n border-radius: var(--control-border-radius);\n line-height: 0;\n height: 100%;\n }\n .minus {\n padding-right: 0;\n }\n .plus {\n padding-left: 0;\n }\n .button:disabled {\n cursor: not-allowed;\n }\n .button ha-icon {\n font-size: var(--control-height);\n --mdc-icon-size: var(--control-icon-size);\n color: var(--icon-color);\n pointer-events: none;\n }\n .button:disabled ha-icon {\n color: var(--icon-color-disabled);\n }\n .value {\n text-align: center;\n flex-grow: 1;\n flex-shrink: 0;\n flex-basis: 20px;\n font-weight: bold;\n color: var(--text-color);\n }\n .value.disabled {\n color: var(--text-color-disabled);\n }\n .value.pending {\n opacity: 0.5;\n }\n "])))}}])}();ga([zl({attribute:!1})],mx.prototype,"locale",void 0),ga([zl({type:Boolean})],mx.prototype,"disabled",void 0),ga([zl({attribute:!1,type:Number,reflect:!0})],mx.prototype,"value",void 0),ga([zl({type:Number})],mx.prototype,"step",void 0),ga([zl({type:Number})],mx.prototype,"min",void 0),ga([zl({type:Number})],mx.prototype,"max",void 0),ga([zl({attribute:!1})],mx.prototype,"formatOptions",void 0),ga([Pl()],mx.prototype,"pending",void 0),ga([Ll("#container")],mx.prototype,"container",void 0),mx=ga([Il("mushroom-input-number")],mx);var vx=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).fill=!1,e}return ea(t,Sl),ua(t,[{key:"_stepSize",get:function(){return this.entity.attributes.target_temp_step?this.entity.attributes.target_temp_step:"°F"===this.hass.config.unit_system.temperature?1:.5}},{key:"onValueChange",value:function(e){var t=e.detail.value;this.hass.callService("climate","set_temperature",{entity_id:this.entity.entity_id,temperature:t})}},{key:"onLowValueChange",value:function(e){var t=e.detail.value;this.hass.callService("climate","set_temperature",{entity_id:this.entity.entity_id,target_temp_low:t,target_temp_high:this.entity.attributes.target_temp_high})}},{key:"onHighValueChange",value:function(e){var t=e.detail.value;this.hass.callService("climate","set_temperature",{entity_id:this.entity.entity_id,target_temp_low:this.entity.attributes.target_temp_low,target_temp_high:t})}},{key:"render",value:function(){var e=bs(this.hass),t=Ms(this.entity),n=1===this._stepSize?{maximumFractionDigits:0}:{minimumFractionDigits:1,maximumFractionDigits:1},i=function(e){return{"--bg-color":"rgba(var(--rgb-state-climate-".concat(e,"), 0.05)"),"--icon-color":"rgb(var(--rgb-state-climate-".concat(e,"))"),"--text-color":"rgb(var(--rgb-state-climate-".concat(e,"))")}};return cl(Et||(Et=Pr(["\n \n ","\n ","\n \n "])),this.fill,e,null!=this.entity.attributes.temperature?cl(Ct||(Ct=Pr(["\n \n "])),this.hass.locale,this.entity.attributes.temperature,this._stepSize,this.entity.attributes.min_temp,this.entity.attributes.max_temp,!t,n,this.onValueChange):hl,null!=this.entity.attributes.target_temp_low&&null!=this.entity.attributes.target_temp_high?cl(At||(At=Pr(["\n \n "])),Hg(i("heat")),this.hass.locale,this.entity.attributes.target_temp_low,this._stepSize,this.entity.attributes.min_temp,this.entity.attributes.max_temp,!t,n,this.onLowValueChange,Hg(i("cool")),this.hass.locale,this.entity.attributes.target_temp_high,this._stepSize,this.entity.attributes.min_temp,this.entity.attributes.max_temp,!t,n,this.onHighValueChange):hl)}}])}();ga([zl({attribute:!1})],vx.prototype,"hass",void 0),ga([zl({attribute:!1})],vx.prototype,"entity",void 0),ga([zl()],vx.prototype,"fill",void 0),vx=ga([Il("mushroom-climate-temperature-control")],vx);var gx={temperature_control:"mdi:thermometer",hvac_mode_control:"mdi:thermostat"};iw({type:ax,name:"Mushroom Climate Card",description:"Card for climate entity"});var _x=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,tw),ua(t,[{key:"_controls",get:function(){if(!this._config||!this._stateObj)return[];var e,t=this._stateObj,n=[];return(null!=(e=t).attributes.temperature||null!=e.attributes.target_temp_low&&null!=e.attributes.target_temp_high)&&this._config.show_temperature_control&&n.push("temperature_control"),function(e,t){return(e.attributes.hvac_modes||[]).some((function(e){return(null!=t?t:[]).includes(e)}))}(t,this._config.hvac_modes)&&n.push("hvac_mode_control"),n}},{key:"hasControls",get:function(){return this._controls.length>0}},{key:"_onControlTap",value:function(e,t){t.stopPropagation(),this._activeControl=e}},{key:"setConfig",value:function(e){Hr(t,"setConfig",this,3)([Object.assign({tap_action:{action:"toggle"},hold_action:{action:"more-info"}},e)]),this.updateActiveControl()}},{key:"updated",value:function(e){Hr(t,"updated",this,3)([e]),this.hass&&e.has("hass")&&this.updateActiveControl()}},{key:"updateActiveControl",value:function(){var e=!!this._activeControl&&this._controls.includes(this._activeControl);this._activeControl=e?this._activeControl:this._controls[0]}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this.hass||!this._config||!this._config.entity)return hl;var e=this._stateObj;if(!e)return this.renderNotFound(this._config);var t=this._config.name||e.attributes.friendly_name||"",n=this._config.icon,i=Gk(this._config),o=wk(e,i.icon_type),r=this.hass.formatEntityState(e);if(null!==e.attributes.current_temperature){var a=this.hass.formatEntityAttributeValue(e,"current_temperature");r+=" ⸱ ".concat(a)}var l=bs(this.hass),s=(!this._config.collapsible_controls||Os(e))&&this._controls.length;return cl(St||(St=Pr(["\n \n \n \n ","\n ","\n ",";\n \n ","\n \n
\n "])),Mk({"fill-container":i.fill_container}),i,l,l,i,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),o?this.renderPicture(o):this.renderIcon(e,n),this.renderBadge(e),this.renderStateInfo(e,i,t,r),s?cl(Tt||(Tt=Pr(['\n
\n \n \n '])),!Ms(this.entity),this._onStopTap):void 0,Vl(this.entity,2)?cl(Rt||(Rt=Pr(["\n \n \n \n "])),!Ms(this.entity)||this.closedDisabled,this._onCloseTap,function(e){switch(e.attributes.device_class){case"awning":case"curtain":case"door":case"gate":return"mdi:arrow-collapse-horizontal";default:return"mdi:arrow-down"}}(this.entity)):void 0)}}])}();ga([zl({attribute:!1})],wx.prototype,"hass",void 0),ga([zl({attribute:!1})],wx.prototype,"entity",void 0),ga([zl()],wx.prototype,"fill",void 0),wx=ga([Il("mushroom-cover-buttons-control")],wx);var xx,Ex,Cx={exports:{}}; /*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */xx||(xx=1,Ex=Cx,function(e,t,n,i){var o,r=["","webkit","Moz","MS","ms","o"],a=t.createElement("div"),l="function",s=Math.round,c=Math.abs,u=Date.now;function d(e,t,n){return setTimeout(_(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(p(e,n[t],n),!0)}function p(e,t,n){var o;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=e.console&&(e.console.warn||e.console.log);return r&&r.call(e.console,o,i),t.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function C(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;in[t]})),i}function I(e,t){for(var n,o,a=t[0].toUpperCase()+t.slice(1),l=0;l1&&!n.firstMultiple?n.firstMultiple=Q(t):1===r&&(n.firstMultiple=!1);var a=n.firstInput,l=n.firstMultiple,s=l?l.center:a.center,d=t.center=ee(o);t.timeStamp=u(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=oe(s,d),t.distance=ie(s,d),function(e,t){var n=t.center,i=e.offsetDelta||{},o=e.prevDelta||{},r=e.prevInput||{};t.eventType!==B&&r.eventType!==R||(o=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-i.x),t.deltaY=o.y+(n.y-i.y)}(n,t),t.offsetDirection=ne(t.deltaX,t.deltaY);var h,p,f=te(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=c(f.x)>c(f.y)?f.x:f.y,t.scale=l?(h=l.pointers,ie((p=o)[0],p[1],X)/ie(h[0],h[1],X)):1,t.rotation=l?function(e,t){return oe(t[1],t[0],X)+oe(e[1],e[0],X)}(l.pointers,o):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,o,r,a,l=e.lastInterval||t,s=t.timeStamp-l.timeStamp;if(t.eventType!=H&&(s>$||l.velocity===i)){var u=t.deltaX-l.deltaX,d=t.deltaY-l.deltaY,h=te(s,u,d);o=h.x,r=h.y,n=c(h.x)>c(h.y)?h.x:h.y,a=ne(u,d),e.lastInterval=t}else n=l.velocity,o=l.velocityX,r=l.velocityY,a=l.direction;t.velocity=n,t.velocityX=o,t.velocityY=r,t.direction=a}(n,t);var m=e.element;x(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function Q(e){for(var t=[],n=0;n=c(t)?e<0?U:V:t<0?F:G}function ie(e,t,n){n||(n=q);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(i*i+o*o)}function oe(e,t,n){n||(n=q);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,i)/Math.PI}Z.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(M(this.element),this.evWin,this.domHandler)}};var re={mousedown:B,mousemove:2,mouseup:R},ae="mousedown",le="mousemove mouseup";function se(){this.evEl=ae,this.evWin=le,this.pressed=!1,Z.apply(this,arguments)}g(se,Z,{handler:function(e){var t=re[e.type];t&B&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=R),this.pressed&&(t&R&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:j,srcEvent:e}))}});var ce={pointerdown:B,pointermove:2,pointerup:R,pointercancel:H,pointerout:H},ue={2:N,3:"pen",4:j,5:"kinect"},de="pointerdown",he="pointermove pointerup pointercancel";function pe(){this.evEl=de,this.evWin=he,Z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(de="MSPointerDown",he="MSPointerMove MSPointerUp MSPointerCancel"),g(pe,Z,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),o=ce[i],r=ue[e.pointerType]||e.pointerType,a=r==N,l=A(t,e.pointerId,"pointerId");o&B&&(0===e.button||a)?l<0&&(t.push(e),l=t.length-1):o&(R|H)&&(n=!0),l<0||(t[l]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(l,1))}});var fe={touchstart:B,touchmove:2,touchend:R,touchcancel:H};function me(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Z.apply(this,arguments)}function ve(e,t){var n=S(e.touches),i=S(e.changedTouches);return t&(R|H)&&(n=T(n.concat(i),"identifier")),[n,i]}g(me,Z,{handler:function(e){var t=fe[e.type];if(t===B&&(this.started=!0),this.started){var n=ve.call(this,e,t);t&(R|H)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}});var ge={touchstart:B,touchmove:2,touchend:R,touchcancel:H},_e="touchstart touchmove touchend touchcancel";function ye(){this.evTarget=_e,this.targetIds={},Z.apply(this,arguments)}function be(e,t){var n=S(e.touches),i=this.targetIds;if(t&(2|B)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,a=S(e.changedTouches),l=[],s=this.target;if(r=n.filter((function(e){return x(e.target,s)})),t===B)for(o=0;o-1&&i.splice(e,1)}),ke)}}function Ce(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Re(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Re(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=$e},canEmit:function(){for(var e=0;et.threshold&&o&t.direction},attrTest:function(e){return Ue.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=He(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),g(Fe,Ue,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Me]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),g(Ge,Be,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ie]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distancet.time;if(this._input=e,!i||!n||e.eventType&(R|H)&&!o)this.reset();else if(e.eventType&B)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&R)return 8;return $e},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&R?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),g(Ye,Ue,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Me]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),g(Ke,Ue,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|K,pointers:1},getTouchAction:function(){return Ve.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Y|K)?t=e.overallVelocity:n&Y?t=e.overallVelocityX:n&K&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&e.eventType&R},emit:function(e){var t=He(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),g(We,Be,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Oe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance\n
\n ',"\n ","\n
\n
\n "])),Mk({container:!0,inactive:this.inactive||this.disabled,controlled:this.controlled}),Hg({"--value":"".concat(this.valueToPercentage(null!==(e=this.value)&&void 0!==e?e:0))}),this.showActive?cl(Dt||(Dt=Pr(['
']))):hl,this.showIndicator?cl(Ut||(Ut=Pr(['
']))):hl)}}],[{key:"styles",get:function(){return Aa(Vt||(Vt=Pr(['\n :host {\n --main-color: rgba(var(--rgb-secondary-text-color), 1);\n --bg-gradient: none;\n --bg-color: rgba(var(--rgb-secondary-text-color), 0.2);\n --main-color-inactive: rgb(var(--rgb-disabled));\n --bg-color-inactive: rgba(var(--rgb-disabled), 0.2);\n }\n .container {\n display: flex;\n flex-direction: row;\n height: var(--control-height);\n }\n .slider {\n position: relative;\n height: 100%;\n width: 100%;\n border-radius: var(--control-border-radius);\n transform: translateZ(0);\n overflow: hidden;\n cursor: pointer;\n }\n .slider * {\n pointer-events: none;\n }\n .slider .slider-track-background {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background-color: var(--bg-color);\n background-image: var(--gradient);\n }\n .slider .slider-track-active {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n transform: scale3d(var(--value, 0), 1, 1);\n transform-origin: left;\n background-color: var(--main-color);\n transition: transform 180ms ease-in-out;\n }\n .slider .slider-track-indicator {\n position: absolute;\n top: 0;\n bottom: 0;\n left: calc(var(--value, 0) * (100% - 10px));\n width: 10px;\n border-radius: 3px;\n background-color: white;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);\n transition: left 180ms ease-in-out;\n }\n .slider .slider-track-indicator:after {\n display: block;\n content: "";\n background-color: var(--main-color);\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n margin: auto;\n height: 20px;\n width: 2px;\n border-radius: 1px;\n }\n .inactive .slider .slider-track-background {\n background-color: var(--bg-color-inactive);\n background-image: none;\n }\n .inactive .slider .slider-track-indicator:after {\n background-color: var(--main-color-inactive);\n }\n .inactive .slider .slider-track-active {\n background-color: var(--main-color-inactive);\n }\n .controlled .slider .slider-track-active {\n transition: none;\n }\n .controlled .slider .slider-track-indicator {\n transition: none;\n }\n '])))}}])}();function Tx(e){return null!=e.attributes.current_position?Math.round(e.attributes.current_position):void 0}function Ix(e){var t=e.state;return"open"===t||"opening"===t?"var(--rgb-state-cover-open)":"closed"===t||"closing"===t?"var(--rgb-state-cover-closed)":"var(--rgb-disabled)"}ga([zl({type:Boolean})],Sx.prototype,"disabled",void 0),ga([zl({type:Boolean})],Sx.prototype,"inactive",void 0),ga([zl({type:Boolean,attribute:"show-active"})],Sx.prototype,"showActive",void 0),ga([zl({type:Boolean,attribute:"show-indicator"})],Sx.prototype,"showIndicator",void 0),ga([zl({attribute:!1,type:Number,reflect:!0})],Sx.prototype,"value",void 0),ga([zl({type:Number})],Sx.prototype,"step",void 0),ga([zl({type:Number})],Sx.prototype,"min",void 0),ga([zl({type:Number})],Sx.prototype,"max",void 0),ga([Pl()],Sx.prototype,"controlled",void 0),ga([Ll("#slider")],Sx.prototype,"slider",void 0),Sx=ga([Il("mushroom-slider")],Sx);var Ox=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,Sl),ua(t,[{key:"onChange",value:function(e){var t=e.detail.value;this.hass.callService("cover","set_cover_position",{entity_id:this.entity.entity_id,position:t})}},{key:"onCurrentChange",value:function(e){var t=e.detail.value;this.dispatchEvent(new CustomEvent("current-change",{detail:{value:t}}))}},{key:"render",value:function(){var e=Tx(this.entity);return cl(Ft||(Ft=Pr(["\n \n "])),e,!Ms(this.entity),!0,this.onChange,this.onCurrentChange)}}],[{key:"styles",get:function(){return Aa(Gt||(Gt=Pr(["\n mushroom-slider {\n --main-color: var(--slider-color);\n --bg-color: var(--slider-bg-color);\n }\n "])))}}])}();ga([zl({attribute:!1})],Ox.prototype,"hass",void 0),ga([zl({attribute:!1})],Ox.prototype,"entity",void 0),Ox=ga([Il("mushroom-cover-position-control")],Ox);var Mx=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,n=[],i=0;i\n "])),t,!Ms(this.entity),!0,this.onChange,this.onCurrentChange)}}],[{key:"styles",get:function(){var e=Mx.map((function(e){var t=Fr(e,2),n=t[0],i=t[1];return"".concat(i," ").concat(100*n,"%")})).join(", ");return Aa(Kt||(Kt=Pr(["\n mushroom-slider {\n --main-color: var(--slider-color);\n --bg-color: var(--slider-bg-color);\n --gradient: -webkit-linear-gradient(right, ",");\n }\n "])),Ca(e))}}])}();ga([zl({attribute:!1})],zx.prototype,"hass",void 0),ga([zl({attribute:!1})],zx.prototype,"entity",void 0),zx=ga([Il("mushroom-cover-tilt-position-control")],zx);var Px={buttons_control:"mdi:gesture-tap-button",position_control:"mdi:gesture-swipe-horizontal",tilt_position_control:"mdi:rotate-right"};iw({type:yx,name:"Mushroom Cover Card",description:"Card for cover entity"});var Lx=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,tw),ua(t,[{key:"hasControls",get:function(){return this._controls.length>0}},{key:"_nextControl",get:function(){var e;if(this._activeControl)return null!==(e=this._controls[this._controls.indexOf(this._activeControl)+1])&&void 0!==e?e:this._controls[0]}},{key:"_onNextControlTap",value:function(e){e.stopPropagation(),this._activeControl=this._nextControl}},{key:"getCardSize",value:function(){return 1}},{key:"setConfig",value:function(e){Hr(t,"setConfig",this,3)([Object.assign({tap_action:{action:"toggle"},hold_action:{action:"more-info"}},e)]),this.updateActiveControl(),this.updatePosition()}},{key:"_controls",get:function(){if(!this._config||!this._stateObj)return[];var e=[];return this._config.show_buttons_control&&e.push("buttons_control"),this._config.show_position_control&&e.push("position_control"),this._config.show_tilt_position_control&&e.push("tilt_position_control"),e}},{key:"updateActiveControl",value:function(){var e=!!this._activeControl&&this._controls.includes(this._activeControl);this._activeControl=e?this._activeControl:this._controls[0]}},{key:"updated",value:function(e){Hr(t,"updated",this,3)([e]),this.hass&&e.has("hass")&&(this.updatePosition(),this.updateActiveControl())}},{key:"updatePosition",value:function(){this.position=void 0;var e=this._stateObj;e&&(this.position=Tx(e))}},{key:"onCurrentPositionChange",value:function(e){null!=e.detail.value&&(this.position=e.detail.value)}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this.hass||!this._config||!this._config.entity)return hl;var e=this._stateObj;if(!e)return this.renderNotFound(this._config);var t=this._config.name||e.attributes.friendly_name||"",n=this._config.icon,i=Gk(this._config),o=wk(e,i.icon_type),r=this.hass.formatEntityState(e);if(this.position){var a=this.hass.formatEntityAttributeValue(e,"current_position",this.position);r+=" ⸱ ".concat(a)}var l=bs(this.hass);return cl(Wt||(Wt=Pr(["\n \n \n \n ","\n ","\n ",";\n \n ","\n \n \n "])),Mk({"fill-container":i.fill_container}),i,l,l,i,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),o?this.renderPicture(o):this.renderIcon(e,n),this.renderBadge(e),this.renderStateInfo(e,i,t,r),this._controls.length>0?cl(qt||(qt=Pr(['\n
\n \n \n ']))):hl}}],[{key:"getConfigElement",value:(n=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return zM}));case 1:return e.a(2,document.createElement(jx))}}),e)}))),function(){return n.apply(this,arguments)})},{key:"styles",get:function(){return[Hr(t,"styles",this),Aa(on||(on=Pr(["\n :host {\n display: block;\n height: 100%;\n }\n\n ha-card {\n background: none;\n height: 100%;\n min-height: 56px;\n display: flex;\n justify-content: center;\n align-items: center;\n --mdc-icon-size: 40px;\n --icon-primary-color: var(--divider-color, rgba(0, 0, 0, 0.12));\n }\n "])))]}}]);var n}();ga([zl({type:Boolean})],$x.prototype,"preview",void 0),$x=ga([Il(Nx)],$x);var Bx="".concat(ow,"-entity-card"),Rx="".concat(Bx,"-editor");iw({type:Bx,name:"Mushroom Entity Card",description:"Card for all entities"});var Hx=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,tw),ua(t,[{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this._config||!this.hass||!this._config.entity)return hl;var e=this._stateObj;if(!e)return this.renderNotFound(this._config);var t=this._config.name||e.attributes.friendly_name||"",n=this._config.icon,i=Gk(this._config),o=wk(e,i.icon_type),r=bs(this.hass);return cl(rn||(rn=Pr(["\n \n \n \n ","\n ","\n ",";\n \n \n \n "])),Mk({"fill-container":i.fill_container}),i,r,r,i,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),o?this.renderPicture(o):this.renderIcon(e,n),this.renderBadge(e),this.renderStateInfo(e,i,t))}},{key:"renderIcon",value:function(e,t){var n,i=Os(e),o={},r=null===(n=this._config)||void 0===n?void 0:n.icon_color;if(r){var a=pk(r);o["--icon-color"]="rgb(".concat(a,")"),o["--shape-color"]="rgba(".concat(a,", 0.2)")}return cl(an||(an=Pr(['\n ',"
"])),u):e?this.renderIcon(e,t):hl,(e||a)&&n?this.renderBadgeIcon(n,i):void 0,o,r,l)}},{key:"renderPicture",value:function(e){return cl(In||(In=Pr(['\n \n \n
\n \n '])),"volume_down",!Ms(this.entity)||zs(this.entity),this.handleClick):void 0,s?cl(ri||(ri=Pr(["\n \n '])),"volume_up",!Ms(this.entity)||zs(this.entity),this.handleClick):void 0)}}],[{key:"styles",get:function(){return Aa(ai||(ai=Pr(["\n mushroom-slider {\n flex: 1;\n --main-color: rgb(var(--rgb-state-media-player));\n --bg-color: rgba(var(--rgb-state-media-player), 0.2);\n }\n "])))}}])}();ga([zl({attribute:!1})],OE.prototype,"hass",void 0),ga([zl({attribute:!1})],OE.prototype,"entity",void 0),ga([zl({type:Boolean})],OE.prototype,"fill",void 0),ga([zl({attribute:!1})],OE.prototype,"controls",void 0),OE=ga([Il("mushroom-media-player-volume-control")],OE);var ME={media_control:"mdi:play-pause",volume_control:"mdi:volume-high"};iw({type:EE,name:"Mushroom Media Card",description:"Card for media player entity"});var zE=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,tw),ua(t,[{key:"hasControls",get:function(){var e,t,n,i;return Boolean(null===(t=null===(e=this._config)||void 0===e?void 0:e.media_controls)||void 0===t?void 0:t.length)||Boolean(null===(i=null===(n=this._config)||void 0===n?void 0:n.volume_controls)||void 0===i?void 0:i.length)}},{key:"_controls",get:function(){if(!this._config||!this._stateObj)return[];var e=this._stateObj,t=[];return function(e,t){return SE(e,null!=t?t:[]).length>0}(e,this._config.media_controls)&&t.push("media_control"),function(e,t){return(null==t?void 0:t.includes("volume_buttons"))&&Vl(e,1024)||(null==t?void 0:t.includes("volume_mute"))&&Vl(e,8)||(null==t?void 0:t.includes("volume_set"))&&Vl(e,4)}(e,this._config.volume_controls)&&t.push("volume_control"),t}},{key:"_onControlTap",value:function(e,t){t.stopPropagation(),this._activeControl=e}},{key:"setConfig",value:function(e){Hr(t,"setConfig",this,3)([e]),this.updateActiveControl(),this.updateVolume()}},{key:"updated",value:function(e){Hr(t,"updated",this,3)([e]),this.hass&&e.has("hass")&&(this.updateActiveControl(),this.updateVolume())}},{key:"updateVolume",value:function(){this.volume=void 0;var e=this._stateObj;e&&(this.volume=e.attributes.volume_level)}},{key:"onCurrentVolumeChange",value:function(e){null!=e.detail.value&&(this.volume=e.detail.value/100)}},{key:"updateActiveControl",value:function(){var e=!!this._activeControl&&this._controls.includes(this._activeControl);this._activeControl=e?this._activeControl:this._controls[0]}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this._config||!this.hass||!this._config.entity)return hl;var e=this._stateObj;if(!e)return this.renderNotFound(this._config);var t,n,i,o=function(e,t){var n,i=e.icon;if(![As,Ss,Ts].includes(t.state)&&e.use_media_info)switch(null===(n=t.attributes.app_name)||void 0===n?void 0:n.toLowerCase()){case"spotify":return"mdi:spotify";case"google podcasts":return"mdi:google-podcast";case"plex":return"mdi:plex";case"soundcloud":return"mdi:soundcloud";case"youtube":return"mdi:youtube";case"oto music":return"mdi:music-circle";case"netflix":return"mdi:netflix";default:return}return i}(this._config,e),r=(t=this._config,n=e,i=t.name||n.attributes.friendly_name||"",![As,Ss,Ts].includes(n.state)&&t.use_media_info&&n.attributes.media_title&&(i=n.attributes.media_title),i),a=Gk(this._config),l=wk(e,a.icon_type),s=function(e,t,n){var i=n.formatEntityState(t);return![As,Ss,Ts].includes(t.state)&&e.use_media_info&&function(e){var t;switch(e.attributes.media_content_type){case"music":case"image":t=e.attributes.media_artist;break;case"playlist":t=e.attributes.media_playlist;break;case"tvshow":t=e.attributes.media_series_title,e.attributes.media_season&&(t+=" S"+e.attributes.media_season,e.attributes.media_episode&&(t+="E"+e.attributes.media_episode));break;default:t=e.attributes.app_name||""}return t}(t)||i}(this._config,e,this.hass);if(null!=this.volume&&this._config.show_volume_level){var c=this.hass.formatEntityAttributeValue(e,"volume_level",this.volume);s+=" ⸱ ".concat(c)}var u=bs(this.hass),d=(!this._config.collapsible_controls||Os(e))&&this._controls.length;return cl(li||(li=Pr(["\n \n \n \n ","\n ","\n ",";\n \n ","\n \n \n "])),Mk({"fill-container":a.fill_container}),a,u,u,a,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),l?this.renderPicture(l):this.renderIcon(e,o),this.renderBadge(e),this.renderStateInfo(e,a,r,s),d?cl(si||(si=Pr(['\n
\n
\n
\n \n \n
\n
\n ',"\n ","\n
\n \n "])),Hg(d),this._handleAction,qs({disabled:!this._hasCardAction,hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),WE(this._hasCardAction?"button":void 0),WE(this._hasCardAction?"0":void 0),!this._hasCardAction,g,e||r||i||o?cl(Oi||(Oi=Pr(['
\n ',"\n ","\n
"])),_,e||r?cl(Mi||(Mi=Pr(["\n \n ","\n ","\n \n "])),WE(this._hasIconAction?"button":void 0),WE(this._hasIconAction?"0":void 0),this._handleIconAction,qs({disabled:!this._hasIconAction,hasHold:Zs(this._config.icon_hold_action),hasDoubleClick:Zs(this._config.icon_double_tap_action)}),this._hasIconAction,r?this.hass.hassUrl(r):void 0,u?"weather":"",u?cl(zi||(zi=Pr(['
',"
"])),u):cl(Pi||(Pi=Pr(['','\n \n

',"","

\n
\n "])),WE(i?"button":void 0),WE(i?"0":void 0),Mk({actionable:i}),this._handleTitleAction,qs(),e,this.renderArrow()):hl,t?cl(Fi||(Fi=Pr(["\n ',"","\n
\n "])),WE(o?"button":void 0),WE(o?"0":void 0),Mk({actionable:o}),this._handleSubtitleAction,qs(),t,this.renderArrow()):hl)}},{key:"renderArrow",value:function(){var e=bs(this.hass);return cl(Gi||(Gi=Pr(["
"])),e?"mdi:chevron-left":"mdi:chevron-right")}},{key:"updated",value:function(e){Hr(t,"updated",this,3)([e]),this._config&&this.hass&&this._tryConnect()}},{key:"_tryConnect",value:(l=Xr(Kr().m((function e(){var t=this;return Kr().w((function(e){for(;;)switch(e.n){case 0:cC.forEach((function(e){t._tryConnectKey(e)}));case 1:return e.a(2)}}),e)}))),function(){return l.apply(this,arguments)})},{key:"_tryConnectKey",value:(a=Xr(Kr().m((function e(t){var n,i,o,r,a=this;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:if(void 0===this._unsubRenderTemplates.get(t)&&this.hass&&this._config&&this.isTemplate(t)){e.n=1;break}return e.a(2);case 1:return e.p=1,o=Fs(this.hass.connection,(function(e){a._templateResults=Object.assign(Object.assign({},a._templateResults),Rr({},t,e))}),{template:null!==(n=this._config[t])&&void 0!==n?n:"",entity_ids:this._config.entity_id,variables:{config:this._config,user:this.hass.user.name},strict:!0}),this._unsubRenderTemplates.set(t,o),e.n=2,o;case 2:e.n=4;break;case 3:e.p=3,e.v,r={result:null!==(i=this._config[t])&&void 0!==i?i:"",listeners:{all:!1,domains:[],entities:[],time:!1}},this._templateResults=Object.assign(Object.assign({},this._templateResults),Rr({},t,r)),this._unsubRenderTemplates.delete(t);case 4:return e.a(2)}}),e,this,[[1,3]])}))),function(e){return a.apply(this,arguments)})},{key:"_tryDisconnect",value:(r=Xr(Kr().m((function e(){var t=this;return Kr().w((function(e){for(;;)switch(e.n){case 0:cC.forEach((function(e){t._tryDisconnectKey(e)}));case 1:return e.a(2)}}),e)}))),function(){return r.apply(this,arguments)})},{key:"_tryDisconnectKey",value:(o=Xr(Kr().m((function e(t){var n,i;return Kr().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n=this._unsubRenderTemplates.get(t)){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,n;case 2:(0,e.v)(),this._unsubRenderTemplates.delete(t),e.n=5;break;case 3:if(e.p=3,"not_found"!==(i=e.v).code&&"template_error"!==i.code){e.n=4;break}e.n=5;break;case 4:throw i;case 5:return e.a(2)}}),e,this,[[1,3]])}))),function(e){return o.apply(this,arguments)})}],[{key:"getConfigElement",value:(i=Xr(Kr().m((function e(){return Kr().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.resolve().then((function(){return Oz}));case 1:return e.a(2,document.createElement(lC))}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getStubConfig",value:(n=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,{type:"custom:".concat(aC),title:"Hello, {{ user }} !"})}),e)}))),function(e){return n.apply(this,arguments)})},{key:"styles",get:function(){return[Hr(t,"styles",this),nw,Aa(Yi||(Yi=Pr(["\n .header {\n display: block;\n padding: var(--title-padding);\n background: none;\n border: none;\n box-shadow: none;\n text-align: var(--card-text-align, inherit);\n }\n .header div * {\n margin: 0;\n white-space: pre-wrap;\n }\n .header div:not(:last-of-type) {\n margin-bottom: var(--title-spacing);\n }\n .actionable {\n cursor: pointer;\n }\n .header ha-icon {\n display: none;\n }\n .actionable ha-icon {\n display: inline-block;\n margin-left: 4px;\n transition: transform 180ms ease-in-out;\n }\n .actionable:hover ha-icon {\n transform: translateX(4px);\n }\n [rtl] .actionable ha-icon {\n margin-left: initial;\n margin-right: 4px;\n }\n [rtl] .actionable:hover ha-icon {\n transform: translateX(-4px);\n }\n .title {\n color: var(--title-color);\n font-size: var(--title-font-size);\n font-weight: var(--title-font-weight);\n line-height: var(--title-line-height);\n letter-spacing: var(--title-letter-spacing);\n --mdc-icon-size: var(--title-font-size);\n }\n .subtitle {\n color: var(--subtitle-color);\n font-size: var(--subtitle-font-size);\n font-weight: var(--subtitle-font-weight);\n line-height: var(--subtitle-line-height);\n letter-spacing: var(--subtitle-letter-spacing);\n --mdc-icon-size: var(--subtitle-font-size);\n }\n .align-start {\n text-align: start;\n }\n .align-end {\n text-align: end;\n }\n .align-center {\n text-align: center;\n }\n .align-justify {\n text-align: justify;\n }\n "])))]}}]);var n,i,o,r,a,l}();ga([Pl()],uC.prototype,"_config",void 0),ga([Pl()],uC.prototype,"_templateResults",void 0),ga([Pl()],uC.prototype,"_unsubRenderTemplates",void 0),uC=ga([Il(aC)],uC);var dC="".concat(ow,"-update-card"),hC="".concat(dC,"-editor"),pC=["update"],fC={on:"var(--rgb-state-update-on)",off:"var(--rgb-state-update-off)",installing:"var(--rgb-state-update-installing)"},mC=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments)).fill=!1,e}return ea(t,Sl),ua(t,[{key:"_handleInstall",value:function(){this.hass.callService("update","install",{entity_id:this.entity.entity_id})}},{key:"_handleSkip",value:function(e){e.stopPropagation(),this.hass.callService("update","skip",{entity_id:this.entity.entity_id})}},{key:"installDisabled",get:function(){if(!Ms(this.entity))return!0;var e=this.entity.attributes.latest_version&&this.entity.attributes.skipped_version===this.entity.attributes.latest_version;return!Os(this.entity)&&!e||Ds(this.entity)}},{key:"skipDisabled",get:function(){return!Ms(this.entity)||(this.entity.attributes.latest_version&&this.entity.attributes.skipped_version===this.entity.attributes.latest_version||!Os(this.entity)||Ds(this.entity))}},{key:"render",value:function(){var e=bs(this.hass);return cl(Ki||(Ki=Pr(["\n \n \n \n \n \n \n \n '])),this.fill,e,this.skipDisabled,this._handleSkip,this.installDisabled,this._handleInstall)}}])}();ga([zl({attribute:!1})],mC.prototype,"hass",void 0),ga([zl({attribute:!1})],mC.prototype,"entity",void 0),ga([zl({type:Boolean})],mC.prototype,"fill",void 0),mC=ga([Il("mushroom-update-buttons-control")],mC),iw({type:dC,name:"Mushroom Update Card",description:"Card for update entity"});var vC=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,tw),ua(t,[{key:"hasControls",get:function(){return!(!this._stateObj||!this._config)&&(Boolean(this._config.show_buttons_control)&&Vl(this._stateObj,1))}},{key:"_handleAction",value:function(e){Xs(this,this.hass,this._config,e.detail.action)}},{key:"render",value:function(){if(!this._config||!this.hass||!this._config.entity)return hl;var e=this._stateObj;if(!e)return this.renderNotFound(this._config);var t=this._config.name||e.attributes.friendly_name||"",n=this._config.icon,i=Gk(this._config),o=wk(e,i.icon_type),r=bs(this.hass),a=(!this._config.collapsible_controls||Os(e))&&this._config.show_buttons_control&&Vl(e,1);return cl(Wi||(Wi=Pr(["\n \n \n \n ","\n ","\n ",";\n \n ","\n \n \n "])),Mk({"fill-container":i.fill_container}),i,r,r,i,this._handleAction,qs({hasHold:Zs(this._config.hold_action),hasDoubleClick:Zs(this._config.double_tap_action)}),o?this.renderPicture(o):this.renderIcon(e,n),this.renderBadge(e),this.renderStateInfo(e,i,t),a?cl(qi||(qi=Pr(['\n \n "])),void 0!==(null===(e=this._config.chip)||void 0===e?void 0:e.type)?cl(Wo||(Wo=Pr(['\n
\n \n ',"\n \n ",'\n
\n \n
\n \n \n \n ','\n
\n \n ',"\n \n
\n ","\n "])),this.hass.localize("ui.common.back"),this._goBack,e("editor.chip.sub_element_editor.title"),!this._guiModeAvailable,this._toggleMode,this.hass.localize(this._guiMode?"ui.panel.lovelace.editor.edit_card.show_code_editor":"ui.panel.lovelace.editor.edit_card.show_visual_editor"),"chip"===this.config.type?cl(ir||(ir=Pr(['\n \n
\n ',"\n
\n \n ","\n \n "])),this.label||"".concat(t("editor.chip.chip-picker.chips")," (").concat(this.hass.localize("ui.panel.lovelace.editor.card.config.required"),")"),iM([this.chips,this._renderEmptySortable],(function(){return e._renderEmptySortable?"":e.chips.map((function(n,i){return cl(ar||(ar=Pr(['\n
\n
\n \n
\n ',"\n ","\n \n \n \n
\n '])),cl(lr||(lr=Pr(['\n
\n
\n ','\n \n ',"\n \n
\n
\n "])),e._renderChipLabel(n),e._renderChipSecondary(n)),oM.has(n.type)?hl:cl(sr||(sr=Pr(["\n \n \n \n '])),t("editor.chip.chip-picker.edit"),i,e._editChip),t("editor.chip.chip-picker.clear"),i,e._removeChip)}))})),t("editor.chip.chip-picker.add"),this._addChips,(function(e){return e.stopPropagation()}),RO.map((function(e){return cl(cr||(cr=Pr(["\n \n ","\n \n "])),e,t("editor.chip.chip-picker.types.".concat(e)))})))}},{key:"updated",value:function(e){var n;Hr(t,"updated",this,3)([e]);var i=e.has("_attached"),o=e.has("chips");if(o||i)return i&&!this._attached?(null===(n=this._sortable)||void 0===n||n.destroy(),void(this._sortable=void 0)):void(this._sortable||!this.chips?o&&this._handleChipsChanged():this._createSortable())}},{key:"_handleChipsChanged",value:(o=Xr(Kr().m((function e(){var t;return Kr().w((function(e){for(;;)switch(e.n){case 0:return this._renderEmptySortable=!0,e.n=1,this.updateComplete;case 1:for(t=this.shadowRoot.querySelector(".chips");t.lastElementChild;)t.removeChild(t.lastElementChild);this._renderEmptySortable=!1;case 2:return e.a(2)}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_createSortable",value:(i=Xr(Kr().m((function e(){var t,n=this;return Kr().w((function(e){for(;;)switch(e.n){case 0:if(tM){e.n=2;break}return e.n=1,Promise.resolve().then((function(){return JL}));case 1:t=e.v,(tM=t.Sortable).mount(t.OnSpill),tM.mount(t.AutoScroll());case 2:this._sortable=new tM(this.shadowRoot.querySelector(".chips"),{animation:150,fallbackClass:"sortable-fallback",handle:".handle",onEnd:function(){var e=Xr(Kr().m((function e(t){return Kr().w((function(e){for(;;)if(0===e.n)return e.a(2,n._chipMoved(t))}),e)})));return function(t){return e.apply(this,arguments)}}()});case 3:return e.a(2)}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_addChips",value:(n=Xr(Kr().m((function e(t){var n,i,o,r,a;return Kr().w((function(e){for(;;)switch(e.n){case 0:if(n=t.target,""!==(i=n.value)){e.n=1;break}return e.a(2);case 1:if("conditional"!==i){e.n=2;break}return e.n=2,Ww();case 2:if(!(r=BO(i))||!r.getStubConfig){e.n=4;break}return e.n=3,r.getStubConfig(this.hass);case 3:o=e.v,e.n=5;break;case 4:o={type:i};case 5:a=this.chips.concat(o),n.value="",Dl(this,"chips-changed",{chips:a});case 6:return e.a(2)}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_chipMoved",value:function(e){if(e.oldIndex!==e.newIndex){var t=this.chips.concat();t.splice(e.newIndex,0,t.splice(e.oldIndex,1)[0]),Dl(this,"chips-changed",{chips:t})}}},{key:"_removeChip",value:function(e){var t=e.currentTarget.index,n=this.chips.concat();n.splice(t,1),Dl(this,"chips-changed",{chips:n})}},{key:"_editChip",value:function(e){var t=e.currentTarget.index;Dl(this,"edit-detail-element",{subElementConfig:{index:t,type:"chip",elementConfig:this.chips[t]}})}},{key:"_renderChipLabel",value:function(e){return Uh(this.hass)("editor.chip.chip-picker.types.".concat(e.type))}},{key:"_renderChipSecondary",value:function(e){var t,n,i=Uh(this.hass);if("entity"in e&&e.entity)return"".concat(null!==(n=null!==(t=this.getEntityName(e.entity))&&void 0!==t?t:e.entity)&&void 0!==n?n:"");if("chip"in e&&e.chip){var o=i("editor.chip.chip-picker.types.".concat(e.chip.type));return this._renderChipSecondary(e.chip)?"".concat(this._renderChipSecondary(e.chip)," (via ").concat(o,")"):o}return""}},{key:"getEntityName",value:function(e){if(this.hass){var t=this.hass.states[e];if(t)return t.attributes.friendly_name}}}],[{key:"styles",get:function(){return[Hr(t,"styles",this),lc,Aa(ur||(ur=Pr(["\n .chip {\n display: flex;\n align-items: center;\n }\n\n ha-icon {\n display: flex;\n }\n\n mushroom-select {\n width: 100%;\n }\n\n .chip .handle {\n padding-right: 8px;\n cursor: move;\n }\n\n .chip .handle > * {\n pointer-events: none;\n }\n\n .special-row {\n height: 60px;\n font-size: 16px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n }\n\n .special-row div {\n display: flex;\n flex-direction: column;\n }\n\n .remove-icon,\n .edit-icon {\n --mdc-icon-button-size: 36px;\n color: var(--secondary-text-color);\n }\n\n .secondary {\n font-size: 12px;\n color: var(--secondary-text-color);\n }\n "])))]}}]);var n,i,o}();ga([zl({attribute:!1})],rM.prototype,"chips",void 0),ga([zl()],rM.prototype,"label",void 0),ga([Pl()],rM.prototype,"_attached",void 0),ga([Pl()],rM.prototype,"_renderEmptySortable",void 0),rM=ga([Il("mushroom-chips-card-chips-editor")],rM);var aM=fs({type:hs("action"),icon:ms(vs()),icon_color:ms(vs()),tap_action:ms(ac),hold_action:ms(ac),double_tap_action:ms(ac)}),lM=fs({type:hs("back"),icon:ms(vs()),icon_color:ms(vs())}),sM=fs({type:hs("entity"),entity:ms(vs()),name:ms(vs()),content_info:ms(vs()),icon:ms(vs()),icon_color:ms(vs()),use_entity_picture:ms(us()),tap_action:ms(ac),hold_action:ms(ac),double_tap_action:ms(ac)}),cM=fs({type:hs("menu"),icon:ms(vs()),icon_color:ms(vs())}),uM=fs({type:hs("quickbar"),icon:ms(vs()),mode:ms(ds(["command","device","entity"]))}),dM=fs({type:hs("weather"),entity:ms(vs()),tap_action:ms(ac),hold_action:ms(ac),double_tap_action:ms(ac),show_temperature:ms(us()),show_conditions:ms(us())}),hM=fs({type:hs("conditional"),chip:ms(ss()),conditions:ms(cs(ss()))}),pM=fs({type:hs("light"),entity:ms(vs()),name:ms(vs()),content_info:ms(vs()),icon:ms(vs()),use_light_color:ms(us()),tap_action:ms(ac),hold_action:ms(ac),double_tap_action:ms(ac)}),fM=fs({type:hs("template"),entity:ms(vs()),tap_action:ms(ac),hold_action:ms(ac),double_tap_action:ms(ac),content:ms(vs()),icon:ms(vs()),icon_color:ms(vs()),picture:ms(vs()),entity_id:ms(_s([vs(),cs(vs())]))}),mM=fs({type:hs("spacer")}),vM=ls((function(e){if(e&&"object"===ha(e)&&"type"in e)switch(e.type){case"action":return aM;case"back":return lM;case"entity":return sM;case"menu":return cM;case"quickbar":return uM;case"weather":return dM;case"conditional":return hM;case"light":return pM;case"template":return fM;case"spacer":return mM}return fs()})),gM=rs(QE,fs({chips:cs(vM),alignment:ms(vs())})),_M=function(e){function t(){return sa(this,t),Zr(this,t,arguments)}return ea(t,ew),ua(t,[{key:"connectedCallback",value:function(){Hr(t,"connectedCallback",this,3)([]),Gw()}},{key:"setConfig",value:function(e){is(e,gM),this._config=e}},{key:"_title",get:function(){return this._config.title||""}},{key:"_theme",get:function(){return this._config.theme||""}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;if(this._subElementEditorConfig)return cl(dr||(dr=Pr(["\n \n \n "])),this.hass,this._subElementEditorConfig,this._goBack,this._handleSubElementChanged);var e=Uh(this.hass);return cl(hr||(hr=Pr(['\n
\n \n \n \n

\n ','\n

\n
\n \n
\n \n ',"\n "])),n("migration.post"))}),this._revertToLegacy,n("migration.revert"),this._done,n("migration.ok")):hl,this.hass,i,t,this._computeLabel,this._computeHelper,this._valueChanged,this.hass.localize("ui.panel.lovelace.editor.card.generic.features"),this.hass,i,o,this._computeLabel,this._computeHelper,this._valueChanged,this.hass,r,null!==(e=this._config.features)&&void 0!==e?e:[],this._featuresChanged,this._editDetailElement)}},{key:"_featuresChanged",value:function(e){if(e.stopPropagation(),this._config&&this.hass){var t=e.detail.features,n=Object.assign(Object.assign({},this._config),{features:t});0===t.length&&delete n.features,Dl(this,"config-changed",{config:n})}}},{key:"_editDetailElement",value:function(e){var t=this,n=e.detail.subElementConfig.index,i=this._config.features[n],o=this._featureContext(this._config);Dl(this,"edit-sub-element",{config:i,saveConfig:function(e){return t._updateFeature(n,e)},context:o,type:"feature"})}},{key:"_updateFeature",value:function(e,t){var n=this._config.features.concat();n[e]=t;var i=Object.assign(Object.assign({},this._config),{features:n});Dl(this,"config-changed",{config:i})}},{key:"_valueChanged",value:function(e){if(e.stopPropagation(),this._config&&this.hass){var t=e.detail.value,n=Object.assign({features:this._config.features},t);n.content_layout&&(n.vertical="vertical"===n.content_layout,delete n.content_layout),n.vertical||delete n.vertical,Dl(this,"config-changed",{config:n})}}}],[{key:"styles",get:function(){return[Aa(Sr||(Sr=Pr(['\n ha-form {\n display: block;\n margin-bottom: 24px;\n }\n .features-form {\n margin-bottom: 8px;\n }\n ha-expansion-panel {\n display: block;\n --expansion-panel-content-padding: 0;\n border-radius: 6px;\n --ha-card-border-radius: 6px;\n }\n ha-expansion-panel .content {\n padding: 12px;\n }\n ha-expansion-panel > *[slot="header"] {\n margin: 0;\n font-size: inherit;\n font-weight: inherit;\n }\n ha-expansion-panel ha-icon {\n color: var(--secondary-text-color);\n }\n ha-alert {\n margin-bottom: 16px;\n display: block;\n }\n ha-alert a {\n color: var(--primary-color);\n }\n ha-alert .actions {\n display: flex;\n width: 100%;\n flex: 1;\n align-items: flex-end;\n flex-direction: row;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 8px;\n border-radius: 8px;\n }\n '])))]}}])}();ga([zl({attribute:!1})],xz.prototype,"hass",void 0),ga([Pl()],xz.prototype,"_config",void 0),ga([Pl()],xz.prototype,"_legacyConfig",void 0),xz=ga([Il("mushroom-template-card-editor")],xz);var Ez=Object.freeze({__proto__:null,get MushroomTemplateCardEditor(){return xz},TEMPLATE_CARD_HELPERS:wz,TEMPLATE_CARD_LABELS:bz,TILE_LABELS:kz}),Cz=rs(QE,fs({title:ms(vs()),subtitle:ms(vs()),alignment:ms(vs()),title_tap_action:ms(ac),subtitle_tap_action:ms(ac)})),Az=["navigate","url","perform-action","none"],Sz=["title","subtitle","title_tap_action","subtitle_tap_action"],Tz=[{name:"title",selector:{template:{}}},{name:"subtitle",selector:{template:{}}},{name:"alignment",selector:{mush_alignment:{}}},{name:"title_tap_action",selector:{ui_action:{actions:Az}}},{name:"subtitle_tap_action",selector:{ui_action:{actions:Az}}}],Iz=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments))._computeLabel=function(t){var n=Uh(e.hass);return Sz.includes(t.name)?n("editor.card.title.".concat(t.name)):e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(t.name))},e}return ea(t,ew),ua(t,[{key:"connectedCallback",value:function(){Hr(t,"connectedCallback",this,3)([]),Gw()}},{key:"setConfig",value:function(e){is(e,Cz),this._config=e}},{key:"render",value:function(){return this.hass&&this._config?cl(Tr||(Tr=Pr(["\n \n "])),this.hass,this._config,Tz,this._computeLabel,this._valueChanged):hl}},{key:"_valueChanged",value:function(e){Dl(this,"config-changed",{config:e.detail.value})}}])}();ga([Pl()],Iz.prototype,"_config",void 0),Iz=ga([Il(lC)],Iz);var Oz=Object.freeze({__proto__:null,get TitleCardEditor(){return Iz}}),Mz=rs(QE,rs(jC,zC,OC),fs({show_buttons_control:ms(us()),collapsible_controls:ms(us())})),zz=["show_buttons_control"],Pz=["more-info","navigate","url","perform-action","assist","none"],Lz=Rs((function(){return[{name:"entity",selector:{entity:{domain:pC}}},{name:"name",selector:{text:{}}},{name:"icon",selector:{icon:{}},context:{icon_entity:"entity"}}].concat(PC,[{type:"grid",name:"",schema:[{name:"show_buttons_control",selector:{boolean:{}}},{name:"collapsible_controls",selector:{boolean:{}}}]}],Ur(MC(Pz)))})),Nz=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments))._computeLabel=function(t){var n=Uh(e.hass);return LC.includes(t.name)?n("editor.card.generic.".concat(t.name)):zz.includes(t.name)?n("editor.card.update.".concat(t.name)):e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(t.name))},e}return ea(t,ew),ua(t,[{key:"connectedCallback",value:function(){Hr(t,"connectedCallback",this,3)([]),Gw()}},{key:"setConfig",value:function(e){is(e,Mz),this._config=e}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;var e=Lz();return cl(Ir||(Ir=Pr(["\n \n "])),this.hass,this._config,e,this._computeLabel,this._valueChanged)}},{key:"_valueChanged",value:function(e){Dl(this,"config-changed",{config:e.detail.value})}}])}();ga([Pl()],Nz.prototype,"_config",void 0),Nz=ga([Il(hC)],Nz);var jz=Object.freeze({__proto__:null,get UpdateCardEditor(){return Nz}}),$z=["on_off","start_pause","stop","locate","clean_spot","return_home"],Bz=rs(QE,rs(jC,zC,OC),fs({icon_animation:ms(us()),commands:ms(cs(vs()))})),Rz=["commands"],Hz=Rs((function(e,t){return[{name:"entity",selector:{entity:{domain:yC}}},{name:"name",selector:{text:{}}},{type:"grid",name:"",schema:[{name:"icon",selector:{icon:{}},context:{icon_entity:"entity"}},{name:"icon_animation",selector:{boolean:{}}}]}].concat(PC,[{name:"commands",selector:{select:{mode:"list",multiple:!0,options:$z.map((function(n){return{value:n,label:"on_off"===n?t("editor.card.vacuum.commands_list.".concat(n)):e("ui.dialogs.more_info_control.vacuum.".concat(n))}}))}}}],Ur(MC()))})),Dz=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments))._computeLabel=function(t){var n=Uh(e.hass);return LC.includes(t.name)?n("editor.card.generic.".concat(t.name)):Rz.includes(t.name)?n("editor.card.vacuum.".concat(t.name)):e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(t.name))},e}return ea(t,ew),ua(t,[{key:"connectedCallback",value:function(){Hr(t,"connectedCallback",this,3)([]),Gw()}},{key:"setConfig",value:function(e){is(e,Bz),this._config=e}},{key:"render",value:function(){if(!this.hass||!this._config)return hl;var e=Uh(this.hass),t=Hz(this.hass.localize,e);return cl(Or||(Or=Pr(["\n \n "])),this.hass,this._config,t,this._computeLabel,this._valueChanged)}},{key:"_valueChanged",value:function(e){Dl(this,"config-changed",{config:e.detail.value})}}])}();ga([Pl()],Dz.prototype,"_config",void 0),Dz=ga([Il(_C)],Dz);var Uz=Object.freeze({__proto__:null,get VacuumCardEditor(){return Dz}}),Vz=rs(fs({type:vs(),visibility:ss()}),OC,fs({entity:ms(vs()),area:ms(vs()),icon:ms(vs()),color:ms(vs()),label:ms(vs()),content:ms(vs()),picture:ms(vs()),entity_id:ms(_s([vs(),cs(vs())]))})),Fz=["label","content"],Gz=[{name:"context",flatten:!0,type:"expandable",icon:"mdi:shape",schema:[{name:"entity",selector:{entity:{}}},{name:"area",selector:{area:{}}}]},{name:"content",flatten:!0,type:"expandable",icon:"mdi:text-short",schema:[{name:"label",selector:{template:{}}},{name:"content",selector:{template:{}}},{name:"color",selector:{template:{}}},{name:"icon",selector:{template:{}}},{name:"picture",selector:{template:{}}}]},{name:"interactions",type:"expandable",flatten:!0,icon:"mdi:gesture-tap",schema:[{name:"tap_action",selector:{ui_action:{default_action:"none"}}},{name:"",type:"optional_actions",flatten:!0,schema:["hold_action","double_tap_action"].map((function(e){return{name:e,selector:{ui_action:{default_action:"none"}}}}))}]}],Yz=function(e){function t(){var e;return sa(this,t),(e=Zr(this,t,arguments))._computeLabel=function(t){var n=Uh(e.hass);return"expandable"===t.type?n("editor.section.".concat(t.name)):LC.includes(t.name)?n("editor.card.generic.".concat(t.name)):Fz.includes(t.name)?n("editor.card.template.".concat(t.name)):e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(t.name))},e._computeHelper=function(t){if("expandable"!==t.type){var n=Uh(e.hass);return NC.includes(t.name)?n("editor.card.generic.".concat(t.name,"_helper")):Fz.includes(t.name)?n("editor.card.template.".concat(t.name,"_helper")):void 0}},e}return ea(t,Sl),ua(t,[{key:"connectedCallback",value:function(){Hr(t,"connectedCallback",this,3)([]),Gw()}},{key:"setConfig",value:function(e){is(e,Vz),this._config=e}},{key:"render",value:function(){return this.hass&&this._config?cl(Mr||(Mr=Pr(["\n \n "])),this.hass,this._config,Gz,this._computeLabel,this._computeHelper,this._valueChanged):hl}},{key:"_valueChanged",value:function(e){Dl(this,"config-changed",{config:e.detail.value})}}])}();ga([zl({attribute:!1})],Yz.prototype,"hass",void 0),ga([Pl()],Yz.prototype,"_config",void 0),Yz=ga([Il("mushroom-template-badge-editor")],Yz);var Kz=Object.freeze({__proto__:null,get MushroomTemplateBadgeEditor(){return Yz},TEMPLATE_BADGE_LABELS:Fz}); /**! * Sortable 1.15.6 * @author RubaXa * @author owenm * @license MIT */function Wz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qz(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eP(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var tP=eP(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),nP=eP(/Edge/i),iP=eP(/firefox/i),oP=eP(/safari/i)&&!eP(/chrome/i)&&!eP(/android/i),rP=eP(/iP(ad|od|hone)/i),aP=eP(/chrome/i)&&eP(/android/i),lP={capture:!1,passive:!1};function sP(e,t,n){e.addEventListener(t,n,!tP&&lP)}function cP(e,t,n){e.removeEventListener(t,n,!tP&&lP)}function uP(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function dP(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function hP(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&uP(e,t):uP(e,t))||i&&e===n)return e;if(e===n)break}while(e=dP(e))}return null}var pP,fP=/\s+/g;function mP(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(fP," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(fP," ")}}function vP(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function gP(e,t){var n="";if("string"==typeof e)n=e;else do{var i=vP(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function _P(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o=bP(i)[n]))return i;if(i===yP())break;i=AP(i,!1)}return!1}function wP(e,t,n,i){for(var o=0,r=0,a=e.children;r2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=Qz(n,$P);jP.pluginEvent.bind(OL)(e,t,qz({dragEl:HP,parentEl:DP,ghostEl:UP,rootEl:VP,nextEl:FP,lastDownEl:GP,cloneEl:YP,cloneHidden:KP,dragStarted:aL,putSortable:QP,activeSortable:OL.active,originalEvent:i,oldIndex:WP,oldDraggableIndex:XP,newIndex:qP,newDraggableIndex:ZP,hideGhostForTarget:AL,unhideGhostForTarget:SL,cloneNowHidden:function(){KP=!0},cloneNowShown:function(){KP=!1},dispatchSortableEvent:function(e){RP({sortable:t,name:e,originalEvent:i})}},o))};function RP(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[zP]){var m,v=t.options,g="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||tP||nP?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=o||n,m.clone=r,m.oldIndex=s,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=p?p.lastPutMode:void 0;var _=qz(qz({},f),jP.getEventProperties(i,t));for(var y in _)m[y]=_[y];n&&n.dispatchEvent(m),v[g]&&v[g].call(t,m)}}(qz({putSortable:QP,cloneEl:YP,targetEl:HP,rootEl:VP,oldIndex:WP,oldDraggableIndex:XP,newIndex:qP,newDraggableIndex:ZP},e))}var HP,DP,UP,VP,FP,GP,YP,KP,WP,qP,XP,ZP,JP,QP,eL,tL,nL,iL,oL,rL,aL,lL,sL,cL,uL,dL=!1,hL=!1,pL=[],fL=!1,mL=!1,vL=[],gL=!1,_L=[],yL="undefined"!=typeof document,bL=rP,kL=nP||tP?"cssFloat":"float",wL=yL&&!aP&&!rP&&"draggable"in document.createElement("div"),xL=function(){if(yL){if(tP)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),EL=function(e,t){var n=vP(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=wP(e,0,t),r=wP(e,1,t),a=o&&vP(o),l=r&&vP(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+bP(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+bP(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=i&&"none"===n[kL]||r&&"none"===n[kL]&&s+c>i)?"vertical":"horizontal"},CL=function(e){function t(e,n){return function(i,o,r,a){var l=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,o,r,a),n)(i,o,r,a);var s=(n?i:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},i=e.group;i&&"object"==Xz(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},AL=function(){!xL&&UP&&vP(UP,"display","none")},SL=function(){!xL&&UP&&vP(UP,"display","")};yL&&!aP&&document.addEventListener("click",(function(e){if(hL)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),hL=!1,!1}),!0);var TL=function(e){if(HP){var t=function(e,t){var n;return pL.some((function(i){var o=i[zP].options.emptyInsertThreshold;if(o&&!xP(i)){var r=bP(i),a=e>=r.left-o&&e<=r.right+o,l=t>=r.top-o&&t<=r.bottom+o;return a&&l?n=i:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[zP]._onDragOver(n)}}},IL=function(e){HP&&HP.parentNode[zP]._isOutsideThisEl(e.target)};function OL(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Jz({},t),e[zP]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return EL(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==OL.supportPointer&&"PointerEvent"in window&&(!oP||rP),emptyInsertThreshold:5};for(var i in jP.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var o in CL(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&wL,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?sP(e,"pointerdown",this._onTapStart):(sP(e,"mousedown",this._onTapStart),sP(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(sP(e,"dragover",this),sP(e,"dragenter",this)),pL.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Jz(this,PP())}function ML(e,t,n,i,o,r,a,l){var s,c,u=e[zP],d=u.options.onMove;return!window.CustomEvent||tP||nP?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=i,s.related=o||t,s.relatedRect=r||bP(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function zL(e){e.draggable=!1}function PL(){gL=!1}function LL(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function NL(e){return setTimeout(e,0)}function jL(e){return clearTimeout(e)}OL.prototype={constructor:OL,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(lL=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,HP):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=i.filter;if(function(e){_L.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&_L.push(i)}}(n),!HP&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!oP||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=hP(l,i.draggable,n,!1))&&l.animated||GP===l)){if(WP=EP(l),XP=EP(l,i.draggable),"function"==typeof c){if(c.call(this,e,l,this))return RP({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),BP("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=hP(s,i.trim(),n,!1))return RP({sortable:t,rootEl:i,name:"filter",targetEl:l,fromEl:n,toEl:n}),BP("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());i.handle&&!hP(s,i.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,a=o.options,l=r.ownerDocument;if(n&&!HP&&n.parentNode===r){var s=bP(n);if(VP=r,DP=(HP=n).parentNode,FP=HP.nextSibling,GP=n,JP=a.group,OL.dragged=HP,eL={target:HP,clientX:(t||e).clientX,clientY:(t||e).clientY},oL=eL.clientX-s.left,rL=eL.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,HP.style["will-change"]="all",i=function(){BP("delayEnded",o,{evt:e}),OL.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!iP&&o.nativeDraggable&&(HP.draggable=!0),o._triggerDragStart(e,t),RP({sortable:o,name:"choose",originalEvent:e}),mP(HP,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){_P(HP,e.trim(),zL)})),sP(l,"dragover",TL),sP(l,"mousemove",TL),sP(l,"touchmove",TL),a.supportPointer?(sP(l,"pointerup",o._onDrop),!this.nativeDraggable&&sP(l,"pointercancel",o._onDrop)):(sP(l,"mouseup",o._onDrop),sP(l,"touchend",o._onDrop),sP(l,"touchcancel",o._onDrop)),iP&&this.nativeDraggable&&(this.options.touchStartThreshold=4,HP.draggable=!0),BP("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(nP||tP))i();else{if(OL.eventCanceled)return void this._onDrop();a.supportPointer?(sP(l,"pointerup",o._disableDelayedDrag),sP(l,"pointercancel",o._disableDelayedDrag)):(sP(l,"mouseup",o._disableDelayedDrag),sP(l,"touchend",o._disableDelayedDrag),sP(l,"touchcancel",o._disableDelayedDrag)),sP(l,"mousemove",o._delayedDragTouchMoveHandler),sP(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&sP(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){HP&&zL(HP),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;cP(e,"mouseup",this._disableDelayedDrag),cP(e,"touchend",this._disableDelayedDrag),cP(e,"touchcancel",this._disableDelayedDrag),cP(e,"pointerup",this._disableDelayedDrag),cP(e,"pointercancel",this._disableDelayedDrag),cP(e,"mousemove",this._delayedDragTouchMoveHandler),cP(e,"touchmove",this._delayedDragTouchMoveHandler),cP(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?sP(document,"pointermove",this._onTouchMove):sP(document,t?"touchmove":"mousemove",this._onTouchMove):(sP(HP,"dragend",this),sP(VP,"dragstart",this._onDragStart));try{document.selection?NL((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(dL=!1,VP&&HP){BP("dragStarted",this,{evt:t}),this.nativeDraggable&&sP(document,"dragover",IL);var n=this.options;!e&&mP(HP,n.dragClass,!1),mP(HP,n.ghostClass,!0),OL.active=this,e&&this._appendGhost(),RP({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(tL){this._lastX=tL.clientX,this._lastY=tL.clientY,AL();for(var e=document.elementFromPoint(tL.clientX,tL.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(tL.clientX,tL.clientY))!==t;)t=e;if(HP.parentNode[zP]._isOutsideThisEl(e),t)do{if(t[zP]){if(t[zP]._onDragOver({clientX:tL.clientX,clientY:tL.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=dP(t));SL()}},_onTouchMove:function(e){if(eL){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=UP&&gP(UP,!0),a=UP&&r&&r.a,l=UP&&r&&r.d,s=bL&&uL&&CP(uL),c=(o.clientX-eL.clientX+i.x)/(a||1)+(s?s[0]-vL[0]:0)/(a||1),u=(o.clientY-eL.clientY+i.y)/(l||1)+(s?s[1]-vL[1]:0)/(l||1);if(!OL.active&&!dL){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}(e,o,this)&&!m.animated){if(m===HP)return M(!1);if(m&&r===e.target&&(a=m),a&&(n=bP(a)),!1!==ML(VP,r,HP,t,a,n,e,!!a))return O(),m&&m.nextSibling?r.insertBefore(HP,m.nextSibling):r.appendChild(HP),DP=r,z(),M(!0)}else if(m&&function(e,t,n){var i=bP(wP(n.el,0,n.options,!0)),o=MP(n.el,n.options,UP),r=10;return t?e.clientXu+c*r/2:sd-cL)return-sL}else if(s>u+c*(1-o)/2&&sd-c*r/2))return s>u+c/2?1:-1;return 0}(e,a,n,o,k?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,mL,lL===a),0!==g){var C=EP(HP);do{C-=g,y=DP.children[C]}while(y&&("none"===vP(y,"display")||y===UP))}if(0===g||y===a)return M(!1);lL=a,sL=g;var A=a.nextElementSibling,S=!1,T=ML(VP,r,HP,t,a,n,e,S=1===g);if(!1!==T)return 1!==T&&-1!==T||(S=1===T),gL=!0,setTimeout(PL,30),O(),S&&!A?r.appendChild(HP):a.parentNode.insertBefore(HP,S?A:a),x&&IP(x,0,E-x.scrollTop),DP=HP.parentNode,void 0===_||mL||(cL=Math.abs(_-bP(a)[w])),z(),M(!0)}if(r.contains(HP))return M(!1)}return!1}function I(l,s){BP(l,p,qz({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:a,completed:M,onMove:function(n,i){return ML(VP,r,HP,t,n,bP(n),e,i)},changed:z},s))}function O(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function M(t){return I("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==h&&(mP(HP,QP?QP.options.ghostClass:c.options.ghostClass,!1),mP(HP,l.ghostClass,!0)),QP!==p&&p!==OL.active?QP=p:p===OL.active&&QP&&(QP=null),h===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===HP&&!HP.animated||a===r&&!a.animated)&&(lL=null),l.dragoverBubble||e.rootEl||a===document||(HP.parentNode[zP]._isOutsideThisEl(e.target),!t&&TL(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function z(){qP=EP(HP),ZP=EP(HP,l.draggable),RP({sortable:p,name:"change",toEl:r,newIndex:qP,newDraggableIndex:ZP,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){cP(document,"mousemove",this._onTouchMove),cP(document,"touchmove",this._onTouchMove),cP(document,"pointermove",this._onTouchMove),cP(document,"dragover",TL),cP(document,"mousemove",TL),cP(document,"touchmove",TL)},_offUpEvents:function(){var e=this.el.ownerDocument;cP(e,"mouseup",this._onDrop),cP(e,"touchend",this._onDrop),cP(e,"pointerup",this._onDrop),cP(e,"pointercancel",this._onDrop),cP(e,"touchcancel",this._onDrop),cP(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;qP=EP(HP),ZP=EP(HP,n.draggable),BP("drop",this,{evt:e}),DP=HP&&HP.parentNode,qP=EP(HP),ZP=EP(HP,n.draggable),OL.eventCanceled||(dL=!1,mL=!1,fL=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),jL(this.cloneId),jL(this._dragStartId),this.nativeDraggable&&(cP(document,"drop",this),cP(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),oP&&vP(document.body,"user-select",""),vP(HP,"transform",""),e&&(aL&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),UP&&UP.parentNode&&UP.parentNode.removeChild(UP),(VP===DP||QP&&"clone"!==QP.lastPutMode)&&YP&&YP.parentNode&&YP.parentNode.removeChild(YP),HP&&(this.nativeDraggable&&cP(HP,"dragend",this),zL(HP),HP.style["will-change"]="",aL&&!dL&&mP(HP,QP?QP.options.ghostClass:this.options.ghostClass,!1),mP(HP,this.options.chosenClass,!1),RP({sortable:this,name:"unchoose",toEl:DP,newIndex:null,newDraggableIndex:null,originalEvent:e}),VP!==DP?(qP>=0&&(RP({rootEl:DP,name:"add",toEl:DP,fromEl:VP,originalEvent:e}),RP({sortable:this,name:"remove",toEl:DP,originalEvent:e}),RP({rootEl:DP,name:"sort",toEl:DP,fromEl:VP,originalEvent:e}),RP({sortable:this,name:"sort",toEl:DP,originalEvent:e})),QP&&QP.save()):qP!==WP&&qP>=0&&(RP({sortable:this,name:"update",toEl:DP,originalEvent:e}),RP({sortable:this,name:"sort",toEl:DP,originalEvent:e})),OL.active&&(null!=qP&&-1!==qP||(qP=WP,ZP=XP),RP({sortable:this,name:"end",toEl:DP,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){BP("nulling",this),VP=HP=DP=UP=FP=YP=GP=KP=eL=tL=aL=qP=ZP=WP=XP=lL=sL=QP=JP=OL.dragged=OL.ghost=OL.clone=OL.active=null,_L.forEach((function(e){e.checked=!0})),_L.length=nL=iL=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":HP&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i